@senitix/ui 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/avatar-BT_SPwFW.cjs +18 -0
  2. package/dist/{avatar-C0aVNCG9.cjs.map → avatar-BT_SPwFW.cjs.map} +1 -1
  3. package/dist/avatar-C5-ZWIqT.js +305 -0
  4. package/dist/{avatar-CN6wcrqY.js.map → avatar-C5-ZWIqT.js.map} +1 -1
  5. package/dist/calendar-BF5drX5u.cjs +12 -0
  6. package/dist/{calendar-BUm7YrNf.cjs.map → calendar-BF5drX5u.cjs.map} +1 -1
  7. package/dist/calendar-CUxm1K7J.js +17 -0
  8. package/dist/{calendar-ChJkFXXr.js.map → calendar-CUxm1K7J.js.map} +1 -1
  9. package/dist/calendar-D3RWU0_G.cjs +7 -0
  10. package/dist/{calendar-SwL5isYC.cjs.map → calendar-D3RWU0_G.cjs.map} +1 -1
  11. package/dist/{calendar-BFWc4IB7.js → calendar-DgnhzEfp.js} +126 -112
  12. package/dist/{calendar-BFWc4IB7.js.map → calendar-DgnhzEfp.js.map} +1 -1
  13. package/dist/{card-tMkUxpmW.cjs → card-DISL3sPJ.cjs} +2 -2
  14. package/dist/{card-tMkUxpmW.cjs.map → card-DISL3sPJ.cjs.map} +1 -1
  15. package/dist/{card-K4fxyYwE.js → card-fId5vof_.js} +2 -2
  16. package/dist/{card-K4fxyYwE.js.map → card-fId5vof_.js.map} +1 -1
  17. package/dist/{checkbox-CpOq5hkT.js → checkbox-BY2zxQVv.js} +5 -5
  18. package/dist/{checkbox-CpOq5hkT.js.map → checkbox-BY2zxQVv.js.map} +1 -1
  19. package/dist/checkbox-CL6u7vL6.cjs +2 -0
  20. package/dist/{checkbox-D7-LQyCl.cjs.map → checkbox-CL6u7vL6.cjs.map} +1 -1
  21. package/dist/chevron-down-BiUlxZA-.js +14 -0
  22. package/dist/{chevron-down-DJ1_YIFu.js.map → chevron-down-BiUlxZA-.js.map} +1 -1
  23. package/dist/chevron-down-Ce0kqXiD.cjs +7 -0
  24. package/dist/{chevron-down-DHdXqOqK.cjs.map → chevron-down-Ce0kqXiD.cjs.map} +1 -1
  25. package/dist/chevron-right-BLyGmyaF.js +14 -0
  26. package/dist/{chevron-right-B3bovvh0.js.map → chevron-right-BLyGmyaF.js.map} +1 -1
  27. package/dist/chevron-right-Bxf8i4gi.cjs +7 -0
  28. package/dist/{chevron-right-Dvyd11q0.cjs.map → chevron-right-Bxf8i4gi.cjs.map} +1 -1
  29. package/dist/chevron-up-BmYZUtrk.js +12 -0
  30. package/dist/{chevron-up-CGtXOr51.js.map → chevron-up-BmYZUtrk.js.map} +1 -1
  31. package/dist/chevron-up-C3RClqXD.cjs +7 -0
  32. package/dist/{chevron-up-B9fuiZhc.cjs.map → chevron-up-C3RClqXD.cjs.map} +1 -1
  33. package/dist/components/charts/index.cjs.js +1 -1
  34. package/dist/components/charts/index.es.js +1 -1
  35. package/dist/components/data-display/index.cjs.js +1 -1
  36. package/dist/components/data-display/index.es.js +1 -1
  37. package/dist/components/dnd/index.cjs.js +1 -1
  38. package/dist/components/dnd/index.es.js +1 -1
  39. package/dist/components/feedback/index.cjs.js +1 -1
  40. package/dist/components/feedback/index.es.js +1 -1
  41. package/dist/components/forms/index.cjs.js +1 -1
  42. package/dist/components/forms/index.es.js +1 -1
  43. package/dist/components/layouts/index.cjs.js +1 -1
  44. package/dist/components/layouts/index.es.js +1 -1
  45. package/dist/components/navigation/index.cjs.js +1 -1
  46. package/dist/components/navigation/index.es.js +1 -1
  47. package/dist/components/ui/index.cjs.js +1 -1
  48. package/dist/components/ui/index.es.js +13 -13
  49. package/dist/{createLucideIcon-BbeNo6vq.js → createLucideIcon-BC8wu-bu.js} +25 -1
  50. package/dist/{createLucideIcon-BbeNo6vq.js.map → createLucideIcon-BC8wu-bu.js.map} +1 -1
  51. package/dist/createLucideIcon-Cv8nC2E9.cjs +22 -0
  52. package/dist/{createLucideIcon-i5GEhNMV.cjs.map → createLucideIcon-Cv8nC2E9.cjs.map} +1 -1
  53. package/dist/ellipsis-6eUne95u.js +16 -0
  54. package/dist/{ellipsis-CiKEaUNP.js.map → ellipsis-6eUne95u.js.map} +1 -1
  55. package/dist/ellipsis-DkM3GBF5.cjs +7 -0
  56. package/dist/{ellipsis-BW2gWki8.cjs.map → ellipsis-DkM3GBF5.cjs.map} +1 -1
  57. package/dist/file-Cp5UoYUZ.cjs +7 -0
  58. package/dist/{file-V_hhCUhr.cjs.map → file-Cp5UoYUZ.cjs.map} +1 -1
  59. package/dist/file-Cw_u_aJB.js +15 -0
  60. package/dist/{file-wzTXnWqz.js.map → file-Cw_u_aJB.js.map} +1 -1
  61. package/dist/filter-tags-DoRzXjuY.cjs +48 -0
  62. package/dist/{filter-tags-DjUaNXHR.cjs.map → filter-tags-DoRzXjuY.cjs.map} +1 -1
  63. package/dist/{filter-tags-i_I8qV1N.js → filter-tags-zEQmRhEU.js} +353 -299
  64. package/dist/{filter-tags-i_I8qV1N.js.map → filter-tags-zEQmRhEU.js.map} +1 -1
  65. package/dist/{full-calendar-7ac2FFU6.js → full-calendar-5Z4JSj8g.js} +1176 -1143
  66. package/dist/{full-calendar-7ac2FFU6.js.map → full-calendar-5Z4JSj8g.js.map} +1 -1
  67. package/dist/full-calendar-DjAvCfuE.cjs +23 -0
  68. package/dist/{full-calendar-Cpeh5xMP.cjs.map → full-calendar-DjAvCfuE.cjs.map} +1 -1
  69. package/dist/{global-search-h1rVbP2q.js → global-search-BbZfc-VL.js} +514 -486
  70. package/dist/global-search-BbZfc-VL.js.map +1 -0
  71. package/dist/global-search-Bd74_wPV.cjs +22 -0
  72. package/dist/global-search-Bd74_wPV.cjs.map +1 -0
  73. package/dist/hooks/index.cjs.js +1 -1
  74. package/dist/hooks/index.es.js +1 -1
  75. package/dist/index-D2U2F80P.cjs +2 -0
  76. package/dist/index-D2U2F80P.cjs.map +1 -0
  77. package/dist/index-DG0KV-sw.cjs +11 -0
  78. package/dist/{index-CzVK9Zyb.cjs.map → index-DG0KV-sw.cjs.map} +1 -1
  79. package/dist/{index-Co9o9StL.js → index-Dk_Et2WJ.js} +2 -2
  80. package/dist/{index-Co9o9StL.js.map → index-Dk_Et2WJ.js.map} +1 -1
  81. package/dist/{index-CwJPJKOE.js → index-DtaLkIY8.js} +1072 -573
  82. package/dist/index-DtaLkIY8.js.map +1 -0
  83. package/dist/index-XnFSmCuh.js +299 -0
  84. package/dist/{index-l828OqQN.js.map → index-XnFSmCuh.js.map} +1 -1
  85. package/dist/{index-lT9bLt9X.cjs → index-gVbM3K4f.cjs} +2 -2
  86. package/dist/{index-lT9bLt9X.cjs.map → index-gVbM3K4f.cjs.map} +1 -1
  87. package/dist/index.cjs.js +1 -1
  88. package/dist/index.es.js +23 -23
  89. package/dist/input-BgPy-4Qu.js +3658 -0
  90. package/dist/{input-D4AoiWxo.js.map → input-BgPy-4Qu.js.map} +1 -1
  91. package/dist/input-Cfr2WB-P.cjs +47 -0
  92. package/dist/{input-CZrckPLk.cjs.map → input-Cfr2WB-P.cjs.map} +1 -1
  93. package/dist/locale-provider-BojNdf1Y.cjs +2 -0
  94. package/dist/{locale-provider-DHMwuneF.cjs.map → locale-provider-BojNdf1Y.cjs.map} +1 -1
  95. package/dist/{locale-provider-DanG6RRG.js → locale-provider-DzBeb-X3.js} +62 -61
  96. package/dist/{locale-provider-DanG6RRG.js.map → locale-provider-DzBeb-X3.js.map} +1 -1
  97. package/dist/locale-selector-BD1IWk6X.cjs +22 -0
  98. package/dist/{locale-selector-Ppe0KTi-.cjs.map → locale-selector-BD1IWk6X.cjs.map} +1 -1
  99. package/dist/locale-selector-DLRSyVye.js +1772 -0
  100. package/dist/{locale-selector-xn2GpdP9.js.map → locale-selector-DLRSyVye.js.map} +1 -1
  101. package/dist/minus-C0uyaz70.cjs +7 -0
  102. package/dist/{minus-BXBFZSZs.cjs.map → minus-C0uyaz70.cjs.map} +1 -1
  103. package/dist/minus-CiwV65ZG.js +12 -0
  104. package/dist/{minus-DvlYtl96.js.map → minus-CiwV65ZG.js.map} +1 -1
  105. package/dist/{multi-container-C2UpSw5f.js → multi-container-BZia7HCU.js} +181 -164
  106. package/dist/{multi-container-C2UpSw5f.js.map → multi-container-BZia7HCU.js.map} +1 -1
  107. package/dist/multi-container-BdNbgtPZ.cjs +7 -0
  108. package/dist/{multi-container-DMKL8c9B.cjs.map → multi-container-BdNbgtPZ.cjs.map} +1 -1
  109. package/dist/pipeline-Dh052Dvj.cjs +27 -0
  110. package/dist/{pipeline-By5_8AFg.cjs.map → pipeline-Dh052Dvj.cjs.map} +1 -1
  111. package/dist/pipeline-DqWvleNy.js +1076 -0
  112. package/dist/{pipeline-D-QNSU0U.js.map → pipeline-DqWvleNy.js.map} +1 -1
  113. package/dist/plus-BsV82JJ5.cjs +7 -0
  114. package/dist/{plus-8wKRkVu-.cjs.map → plus-BsV82JJ5.cjs.map} +1 -1
  115. package/dist/plus-DxD6rofl.js +15 -0
  116. package/dist/{plus-CJD68KQD.js.map → plus-DxD6rofl.js.map} +1 -1
  117. package/dist/popover-BgLxmm1z.cjs +7 -0
  118. package/dist/{popover-ivh-plLc.cjs.map → popover-BgLxmm1z.cjs.map} +1 -1
  119. package/dist/{popover-4V4sGe1U.js → popover-PI9jbhnS.js} +85 -75
  120. package/dist/{popover-4V4sGe1U.js.map → popover-PI9jbhnS.js.map} +1 -1
  121. package/dist/progress-CTTt_CP3.js +260 -0
  122. package/dist/{progress-D5AsrWa6.js.map → progress-CTTt_CP3.js.map} +1 -1
  123. package/dist/progress-CTWb7X1Q.cjs +37 -0
  124. package/dist/{progress-CFnuLqnS.cjs.map → progress-CTWb7X1Q.cjs.map} +1 -1
  125. package/dist/providers/index.cjs.js +1 -1
  126. package/dist/providers/index.es.js +1 -1
  127. package/dist/{scroll-area-DQeqDp3Y.js → scroll-area-A3jGu-Ta.js} +302 -280
  128. package/dist/{scroll-area-DQeqDp3Y.js.map → scroll-area-A3jGu-Ta.js.map} +1 -1
  129. package/dist/scroll-area-DzDnWIYJ.cjs +12 -0
  130. package/dist/{scroll-area-DYOiJMXh.cjs.map → scroll-area-DzDnWIYJ.cjs.map} +1 -1
  131. package/dist/select-BJpZrtep.js +989 -0
  132. package/dist/{select-C1rNBi6c.js.map → select-BJpZrtep.js.map} +1 -1
  133. package/dist/select-Ii8HRuXa.cjs +2 -0
  134. package/dist/{select-m-Mqwxu3.cjs.map → select-Ii8HRuXa.cjs.map} +1 -1
  135. package/dist/separator-BzcDE0Ei.cjs +2 -0
  136. package/dist/{separator-DBUivkHq.cjs.map → separator-BzcDE0Ei.cjs.map} +1 -1
  137. package/dist/{separator-DsfoJx-2.js → separator-DyarVo1-.js} +66 -65
  138. package/dist/{separator-DsfoJx-2.js.map → separator-DyarVo1-.js.map} +1 -1
  139. package/dist/{sheet-BVWCpq7E.js → sheet-DPSdOoE6.js} +4 -4
  140. package/dist/{sheet-BVWCpq7E.js.map → sheet-DPSdOoE6.js.map} +1 -1
  141. package/dist/{sheet-mKiFLVnK.cjs → sheet-XtjvbEMq.cjs} +2 -2
  142. package/dist/{sheet-mKiFLVnK.cjs.map → sheet-XtjvbEMq.cjs.map} +1 -1
  143. package/dist/{skeleton-BmGbfJw3.js → skeleton-Bl6FAxHT.js} +2 -2
  144. package/dist/{skeleton-BmGbfJw3.js.map → skeleton-Bl6FAxHT.js.map} +1 -1
  145. package/dist/{skeleton-BSwwYaQU.cjs → skeleton-Cb6MWerF.cjs} +2 -2
  146. package/dist/{skeleton-BSwwYaQU.cjs.map → skeleton-Cb6MWerF.cjs.map} +1 -1
  147. package/dist/sortable.esm-5DsiICDg.cjs +6 -0
  148. package/dist/{sortable.esm-DcQYlXi3.cjs.map → sortable.esm-5DsiICDg.cjs.map} +1 -1
  149. package/dist/{sortable.esm-Blhf_jh1.js → sortable.esm-Cb8oRBzU.js} +42 -42
  150. package/dist/{sortable.esm-Blhf_jh1.js.map → sortable.esm-Cb8oRBzU.js.map} +1 -1
  151. package/dist/sparkline-chart-CeCDeMNk.cjs +102 -0
  152. package/dist/{sparkline-chart-ca3uTzVK.cjs.map → sparkline-chart-CeCDeMNk.cjs.map} +1 -1
  153. package/dist/{sparkline-chart-Da-ehDGv.js → sparkline-chart-DUS4CoW_.js} +7799 -9094
  154. package/dist/{sparkline-chart-Da-ehDGv.js.map → sparkline-chart-DUS4CoW_.js.map} +1 -1
  155. package/dist/styles.css +1 -0
  156. package/dist/trending-up-BBjz_E69.cjs +7 -0
  157. package/dist/{trending-up-D3Nfrhi3.cjs.map → trending-up-BBjz_E69.cjs.map} +1 -1
  158. package/dist/trending-up-BHFXgLWy.js +15 -0
  159. package/dist/{trending-up-DPwlYzQb.js.map → trending-up-BHFXgLWy.js.map} +1 -1
  160. package/dist/{use-formatters-l1_2c8z0.js → use-formatters-Bgj3JA4i.js} +731 -746
  161. package/dist/{use-formatters-l1_2c8z0.js.map → use-formatters-Bgj3JA4i.js.map} +1 -1
  162. package/dist/use-formatters-CObUgipW.cjs +2 -0
  163. package/dist/{use-formatters-d97RVcmg.cjs.map → use-formatters-CObUgipW.cjs.map} +1 -1
  164. package/dist/utils/index.cjs.js +1 -1
  165. package/dist/utils/index.es.js +1 -1
  166. package/dist/welcome-card-CNuEa6Ck.cjs +67 -0
  167. package/dist/{welcome-card-CPolYl1D.cjs.map → welcome-card-CNuEa6Ck.cjs.map} +1 -1
  168. package/dist/{welcome-card-CxMJZ8bv.js → welcome-card-Cp6t6G3j.js} +197 -119
  169. package/dist/{welcome-card-CxMJZ8bv.js.map → welcome-card-Cp6t6G3j.js.map} +1 -1
  170. package/package.json +14 -12
  171. package/dist/avatar-C0aVNCG9.cjs +0 -2
  172. package/dist/avatar-CN6wcrqY.js +0 -288
  173. package/dist/calendar-BUm7YrNf.cjs +0 -2
  174. package/dist/calendar-ChJkFXXr.js +0 -11
  175. package/dist/calendar-SwL5isYC.cjs +0 -2
  176. package/dist/checkbox-D7-LQyCl.cjs +0 -2
  177. package/dist/chevron-down-DHdXqOqK.cjs +0 -2
  178. package/dist/chevron-down-DJ1_YIFu.js +0 -8
  179. package/dist/chevron-right-B3bovvh0.js +0 -8
  180. package/dist/chevron-right-Dvyd11q0.cjs +0 -2
  181. package/dist/chevron-up-B9fuiZhc.cjs +0 -2
  182. package/dist/chevron-up-CGtXOr51.js +0 -6
  183. package/dist/createLucideIcon-i5GEhNMV.cjs +0 -2
  184. package/dist/ellipsis-BW2gWki8.cjs +0 -2
  185. package/dist/ellipsis-CiKEaUNP.js +0 -10
  186. package/dist/file-V_hhCUhr.cjs +0 -2
  187. package/dist/file-wzTXnWqz.js +0 -9
  188. package/dist/filter-tags-DjUaNXHR.cjs +0 -5
  189. package/dist/full-calendar-Cpeh5xMP.cjs +0 -8
  190. package/dist/global-search-UNXjoFlI.cjs +0 -2
  191. package/dist/global-search-UNXjoFlI.cjs.map +0 -1
  192. package/dist/global-search-h1rVbP2q.js.map +0 -1
  193. package/dist/index-CwJPJKOE.js.map +0 -1
  194. package/dist/index-CzVK9Zyb.cjs +0 -6
  195. package/dist/index-l828OqQN.js +0 -288
  196. package/dist/index-lGzB9daF.cjs +0 -2
  197. package/dist/index-lGzB9daF.cjs.map +0 -1
  198. package/dist/input-CZrckPLk.cjs +0 -42
  199. package/dist/input-D4AoiWxo.js +0 -3629
  200. package/dist/locale-provider-DHMwuneF.cjs +0 -2
  201. package/dist/locale-selector-Ppe0KTi-.cjs +0 -2
  202. package/dist/locale-selector-xn2GpdP9.js +0 -1745
  203. package/dist/minus-BXBFZSZs.cjs +0 -2
  204. package/dist/minus-DvlYtl96.js +0 -6
  205. package/dist/multi-container-DMKL8c9B.cjs +0 -2
  206. package/dist/pipeline-By5_8AFg.cjs +0 -2
  207. package/dist/pipeline-D-QNSU0U.js +0 -1036
  208. package/dist/plus-8wKRkVu-.cjs +0 -2
  209. package/dist/plus-CJD68KQD.js +0 -9
  210. package/dist/popover-ivh-plLc.cjs +0 -2
  211. package/dist/progress-CFnuLqnS.cjs +0 -7
  212. package/dist/progress-D5AsrWa6.js +0 -222
  213. package/dist/scroll-area-DYOiJMXh.cjs +0 -2
  214. package/dist/select-C1rNBi6c.js +0 -974
  215. package/dist/select-m-Mqwxu3.cjs +0 -2
  216. package/dist/separator-DBUivkHq.cjs +0 -2
  217. package/dist/sortable.esm-DcQYlXi3.cjs +0 -6
  218. package/dist/sparkline-chart-ca3uTzVK.cjs +0 -68
  219. package/dist/trending-up-D3Nfrhi3.cjs +0 -2
  220. package/dist/trending-up-DPwlYzQb.js +0 -9
  221. package/dist/ui.css +0 -1
  222. package/dist/use-formatters-d97RVcmg.cjs +0 -2
  223. package/dist/welcome-card-CPolYl1D.cjs +0 -2
@@ -1,17 +1,17 @@
1
- import { c as te } from "./createLucideIcon-BbeNo6vq.js";
1
+ import { c as te } from "./createLucideIcon-BC8wu-bu.js";
2
2
  import { jsx as m, jsxs as re, Fragment as Se } from "react/jsx-runtime";
3
- import * as s from "react";
4
- import { a as we, c as z } from "./index-CwJPJKOE.js";
3
+ import * as i from "react";
4
+ import { a as we, c as U } from "./index-DtaLkIY8.js";
5
5
  import * as ye from "react-dom";
6
6
  function ht(e, t) {
7
- const r = s.createContext(t), o = (l) => {
8
- const { children: i, ...c } = l, a = s.useMemo(() => c, Object.values(c));
9
- return /* @__PURE__ */ m(r.Provider, { value: a, children: i });
7
+ const r = i.createContext(t), o = (l) => {
8
+ const { children: c, ...s } = l, a = i.useMemo(() => s, Object.values(s));
9
+ return /* @__PURE__ */ m(r.Provider, { value: a, children: c });
10
10
  };
11
11
  o.displayName = e + "Provider";
12
12
  function n(l) {
13
- const i = s.useContext(r);
14
- if (i) return i;
13
+ const c = i.useContext(r);
14
+ if (c) return c;
15
15
  if (t !== void 0) return t;
16
16
  throw new Error(`\`${l}\` must be used within \`${e}\``);
17
17
  }
@@ -19,29 +19,31 @@ function ht(e, t) {
19
19
  }
20
20
  function Ce(e, t = []) {
21
21
  let r = [];
22
- function o(l, i) {
23
- const c = s.createContext(i), a = r.length;
24
- r = [...r, i];
25
- const u = (h) => {
26
- const { scope: f, children: p, ...v } = h, g = f?.[e]?.[a] || c, w = s.useMemo(() => v, Object.values(v));
22
+ function o(l, c) {
23
+ const s = i.createContext(c), a = r.length;
24
+ r = [...r, c];
25
+ const u = (f) => {
26
+ var C;
27
+ const { scope: h, children: p, ...v } = f, g = ((C = h == null ? void 0 : h[e]) == null ? void 0 : C[a]) || s, w = i.useMemo(() => v, Object.values(v));
27
28
  return /* @__PURE__ */ m(g.Provider, { value: w, children: p });
28
29
  };
29
30
  u.displayName = l + "Provider";
30
- function d(h, f) {
31
- const p = f?.[e]?.[a] || c, v = s.useContext(p);
31
+ function d(f, h) {
32
+ var g;
33
+ const p = ((g = h == null ? void 0 : h[e]) == null ? void 0 : g[a]) || s, v = i.useContext(p);
32
34
  if (v) return v;
33
- if (i !== void 0) return i;
34
- throw new Error(`\`${h}\` must be used within \`${l}\``);
35
+ if (c !== void 0) return c;
36
+ throw new Error(`\`${f}\` must be used within \`${l}\``);
35
37
  }
36
38
  return [u, d];
37
39
  }
38
40
  const n = () => {
39
- const l = r.map((i) => s.createContext(i));
40
- return function(c) {
41
- const a = c?.[e] || l;
42
- return s.useMemo(
43
- () => ({ [`__scope${e}`]: { ...c, [e]: a } }),
44
- [c, a]
41
+ const l = r.map((c) => i.createContext(c));
42
+ return function(s) {
43
+ const a = (s == null ? void 0 : s[e]) || l;
44
+ return i.useMemo(
45
+ () => ({ [`__scope${e}`]: { ...s, [e]: a } }),
46
+ [s, a]
45
47
  );
46
48
  };
47
49
  };
@@ -56,11 +58,11 @@ function Pe(...e) {
56
58
  scopeName: n.scopeName
57
59
  }));
58
60
  return function(l) {
59
- const i = o.reduce((c, { useScope: a, scopeName: u }) => {
60
- const h = a(l)[`__scope${u}`];
61
- return { ...c, ...h };
61
+ const c = o.reduce((s, { useScope: a, scopeName: u }) => {
62
+ const f = a(l)[`__scope${u}`];
63
+ return { ...s, ...f };
62
64
  }, {});
63
- return s.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
65
+ return i.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
64
66
  };
65
67
  };
66
68
  return r.scopeName = t.scopeName, r;
@@ -87,58 +89,59 @@ function Y(...e) {
87
89
  };
88
90
  }
89
91
  function R(...e) {
90
- return s.useCallback(Y(...e), e);
92
+ return i.useCallback(Y(...e), e);
91
93
  }
92
- function x(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
94
+ function E(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
93
95
  return function(n) {
94
- if (e?.(n), r === !1 || !n.defaultPrevented)
95
- return t?.(n);
96
+ if (e == null || e(n), r === !1 || !n.defaultPrevented)
97
+ return t == null ? void 0 : t(n);
96
98
  };
97
99
  }
98
- var X = globalThis?.document ? s.useLayoutEffect : () => {
100
+ var X = globalThis != null && globalThis.document ? i.useLayoutEffect : () => {
99
101
  };
100
102
  // @__NO_SIDE_EFFECTS__
101
- function Ee(e) {
102
- const t = /* @__PURE__ */ xe(e), r = s.forwardRef((o, n) => {
103
- const { children: l, ...i } = o, c = s.Children.toArray(l), a = c.find(Ae);
103
+ function xe(e) {
104
+ const t = /* @__PURE__ */ Ee(e), r = i.forwardRef((o, n) => {
105
+ const { children: l, ...c } = o, s = i.Children.toArray(l), a = s.find(Ae);
104
106
  if (a) {
105
- const u = a.props.children, d = c.map((h) => h === a ? s.Children.count(u) > 1 ? s.Children.only(null) : s.isValidElement(u) ? u.props.children : null : h);
106
- return /* @__PURE__ */ m(t, { ...i, ref: n, children: s.isValidElement(u) ? s.cloneElement(u, void 0, d) : null });
107
+ const u = a.props.children, d = s.map((f) => f === a ? i.Children.count(u) > 1 ? i.Children.only(null) : i.isValidElement(u) ? u.props.children : null : f);
108
+ return /* @__PURE__ */ m(t, { ...c, ref: n, children: i.isValidElement(u) ? i.cloneElement(u, void 0, d) : null });
107
109
  }
108
- return /* @__PURE__ */ m(t, { ...i, ref: n, children: l });
110
+ return /* @__PURE__ */ m(t, { ...c, ref: n, children: l });
109
111
  });
110
112
  return r.displayName = `${e}.Slot`, r;
111
113
  }
112
114
  // @__NO_SIDE_EFFECTS__
113
- function xe(e) {
114
- const t = s.forwardRef((r, o) => {
115
+ function Ee(e) {
116
+ const t = i.forwardRef((r, o) => {
115
117
  const { children: n, ...l } = r;
116
- if (s.isValidElement(n)) {
117
- const i = Ne(n), c = Te(l, n.props);
118
- return n.type !== s.Fragment && (c.ref = o ? Y(o, i) : i), s.cloneElement(n, c);
118
+ if (i.isValidElement(n)) {
119
+ const c = Ne(n), s = Te(l, n.props);
120
+ return n.type !== i.Fragment && (s.ref = o ? Y(o, c) : c), i.cloneElement(n, s);
119
121
  }
120
- return s.Children.count(n) > 1 ? s.Children.only(null) : null;
122
+ return i.Children.count(n) > 1 ? i.Children.only(null) : null;
121
123
  });
122
124
  return t.displayName = `${e}.SlotClone`, t;
123
125
  }
124
- var Re = /* @__PURE__ */ Symbol("radix.slottable");
126
+ var Re = Symbol("radix.slottable");
125
127
  function Ae(e) {
126
- return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Re;
128
+ return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Re;
127
129
  }
128
130
  function Te(e, t) {
129
131
  const r = { ...t };
130
132
  for (const o in t) {
131
133
  const n = e[o], l = t[o];
132
- /^on[A-Z]/.test(o) ? n && l ? r[o] = (...c) => {
133
- const a = l(...c);
134
- return n(...c), a;
134
+ /^on[A-Z]/.test(o) ? n && l ? r[o] = (...s) => {
135
+ const a = l(...s);
136
+ return n(...s), a;
135
137
  } : n && (r[o] = n) : o === "style" ? r[o] = { ...n, ...l } : o === "className" && (r[o] = [n, l].filter(Boolean).join(" "));
136
138
  }
137
139
  return { ...e, ...r };
138
140
  }
139
141
  function Ne(e) {
140
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
141
- 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);
142
+ var o, n;
143
+ let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning;
144
+ return r ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
142
145
  }
143
146
  var _e = [
144
147
  "a",
@@ -159,9 +162,9 @@ var _e = [
159
162
  "svg",
160
163
  "ul"
161
164
  ], _ = _e.reduce((e, t) => {
162
- const r = /* @__PURE__ */ Ee(`Primitive.${t}`), o = s.forwardRef((n, l) => {
163
- const { asChild: i, ...c } = n, a = i ? r : t;
164
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ m(a, { ...c, ref: l });
165
+ const r = /* @__PURE__ */ xe(`Primitive.${t}`), o = i.forwardRef((n, l) => {
166
+ const { asChild: c, ...s } = n, a = c ? r : t;
167
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ m(a, { ...s, ref: l });
165
168
  });
166
169
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
167
170
  }, {});
@@ -169,15 +172,15 @@ function mt(e, t) {
169
172
  e && ye.flushSync(() => e.dispatchEvent(t));
170
173
  }
171
174
  function Le(e, t) {
172
- return s.useReducer((r, o) => t[r][o] ?? r, e);
175
+ return i.useReducer((r, o) => t[r][o] ?? r, e);
173
176
  }
174
177
  var L = (e) => {
175
- const { present: t, children: r } = e, o = Oe(t), n = typeof r == "function" ? r({ present: o.isPresent }) : s.Children.only(r), l = R(o.ref, De(n));
176
- return typeof r == "function" || o.isPresent ? s.cloneElement(n, { ref: l }) : null;
178
+ const { present: t, children: r } = e, o = Oe(t), n = typeof r == "function" ? r({ present: o.isPresent }) : i.Children.only(r), l = R(o.ref, De(n));
179
+ return typeof r == "function" || o.isPresent ? i.cloneElement(n, { ref: l }) : null;
177
180
  };
178
181
  L.displayName = "Presence";
179
182
  function Oe(e) {
180
- const [t, r] = s.useState(), o = s.useRef(null), n = s.useRef(e), l = s.useRef("none"), i = e ? "mounted" : "unmounted", [c, a] = Le(i, {
183
+ const [t, r] = i.useState(), o = i.useRef(null), n = i.useRef(e), l = i.useRef("none"), c = e ? "mounted" : "unmounted", [s, a] = Le(c, {
181
184
  mounted: {
182
185
  UNMOUNT: "unmounted",
183
186
  ANIMATION_OUT: "unmountSuspended"
@@ -190,19 +193,19 @@ function Oe(e) {
190
193
  MOUNT: "mounted"
191
194
  }
192
195
  });
193
- return s.useEffect(() => {
196
+ return i.useEffect(() => {
194
197
  const u = V(o.current);
195
- l.current = c === "mounted" ? u : "none";
196
- }, [c]), X(() => {
198
+ l.current = s === "mounted" ? u : "none";
199
+ }, [s]), X(() => {
197
200
  const u = o.current, d = n.current;
198
201
  if (d !== e) {
199
- const f = l.current, p = V(u);
200
- e ? a("MOUNT") : p === "none" || u?.display === "none" ? a("UNMOUNT") : a(d && f !== p ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
202
+ const h = l.current, p = V(u);
203
+ e ? a("MOUNT") : p === "none" || (u == null ? void 0 : u.display) === "none" ? a("UNMOUNT") : a(d && h !== p ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
201
204
  }
202
205
  }, [e, a]), X(() => {
203
206
  if (t) {
204
207
  let u;
205
- const d = t.ownerDocument.defaultView ?? window, h = (p) => {
208
+ const d = t.ownerDocument.defaultView ?? window, f = (p) => {
206
209
  const g = V(o.current).includes(CSS.escape(p.animationName));
207
210
  if (p.target === t && g && (a("ANIMATION_END"), !n.current)) {
208
211
  const w = t.style.animationFillMode;
@@ -210,74 +213,90 @@ function Oe(e) {
210
213
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = w);
211
214
  });
212
215
  }
213
- }, f = (p) => {
216
+ }, h = (p) => {
214
217
  p.target === t && (l.current = V(o.current));
215
218
  };
216
- return t.addEventListener("animationstart", f), t.addEventListener("animationcancel", h), t.addEventListener("animationend", h), () => {
217
- d.clearTimeout(u), t.removeEventListener("animationstart", f), t.removeEventListener("animationcancel", h), t.removeEventListener("animationend", h);
219
+ return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
220
+ d.clearTimeout(u), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
218
221
  };
219
222
  } else
220
223
  a("ANIMATION_END");
221
224
  }, [t, a]), {
222
- isPresent: ["mounted", "unmountSuspended"].includes(c),
223
- ref: s.useCallback((u) => {
225
+ isPresent: ["mounted", "unmountSuspended"].includes(s),
226
+ ref: i.useCallback((u) => {
224
227
  o.current = u ? getComputedStyle(u) : null, r(u);
225
228
  }, [])
226
229
  };
227
230
  }
228
231
  function V(e) {
229
- return e?.animationName || "none";
232
+ return (e == null ? void 0 : e.animationName) || "none";
230
233
  }
231
234
  function De(e) {
232
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
233
- 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);
235
+ var o, n;
236
+ let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning;
237
+ return r ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
234
238
  }
235
- var Me = s.createContext(void 0);
239
+ var Me = i.createContext(void 0);
236
240
  function We(e) {
237
- const t = s.useContext(Me);
241
+ const t = i.useContext(Me);
238
242
  return e || t || "ltr";
239
243
  }
244
+ /**
245
+ * @license lucide-react v0.441.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */
240
250
  const pt = te("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
251
+ /**
252
+ * @license lucide-react v0.441.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */
241
257
  const vt = te("X", [
242
258
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
243
259
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
244
260
  ]), J = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Q = we, ne = (e, t) => (r) => {
245
261
  var o;
246
- if (t?.variants == null) return Q(e, r?.class, r?.className);
247
- const { variants: n, defaultVariants: l } = t, i = Object.keys(n).map((u) => {
248
- const d = r?.[u], h = l?.[u];
262
+ if ((t == null ? void 0 : t.variants) == null) return Q(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
263
+ const { variants: n, defaultVariants: l } = t, c = Object.keys(n).map((u) => {
264
+ const d = r == null ? void 0 : r[u], f = l == null ? void 0 : l[u];
249
265
  if (d === null) return null;
250
- const f = J(d) || J(h);
251
- return n[u][f];
252
- }), c = r && Object.entries(r).reduce((u, d) => {
253
- let [h, f] = d;
254
- return f === void 0 || (u[h] = f), u;
266
+ const h = J(d) || J(f);
267
+ return n[u][h];
268
+ }), s = r && Object.entries(r).reduce((u, d) => {
269
+ let [f, h] = d;
270
+ return h === void 0 || (u[f] = h), u;
255
271
  }, {}), a = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((u, d) => {
256
- let { class: h, className: f, ...p } = d;
272
+ let { class: f, className: h, ...p } = d;
257
273
  return Object.entries(p).every((v) => {
258
274
  let [g, w] = v;
259
275
  return Array.isArray(w) ? w.includes({
260
276
  ...l,
261
- ...c
277
+ ...s
262
278
  }[g]) : {
263
279
  ...l,
264
- ...c
280
+ ...s
265
281
  }[g] === w;
266
282
  }) ? [
267
283
  ...u,
268
- h,
269
- f
284
+ f,
285
+ h
270
286
  ] : u;
271
287
  }, []);
272
- return Q(e, i, a, r?.class, r?.className);
288
+ return Q(e, c, a, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
273
289
  };
274
- function E(e) {
275
- const t = s.useRef(e);
276
- return s.useEffect(() => {
290
+ function x(e) {
291
+ const t = i.useRef(e);
292
+ return i.useEffect(() => {
277
293
  t.current = e;
278
- }), s.useMemo(() => (...r) => t.current?.(...r), []);
294
+ }), i.useMemo(() => (...r) => {
295
+ var o;
296
+ return (o = t.current) == null ? void 0 : o.call(t, ...r);
297
+ }, []);
279
298
  }
280
- var Ie = /* @__PURE__ */ Symbol.for("react.lazy"), H = s[" use ".trim().toString()];
299
+ var Ie = Symbol.for("react.lazy"), $ = i[" use ".trim().toString()];
281
300
  function Ve(e) {
282
301
  return typeof e == "object" && e !== null && "then" in e;
283
302
  }
@@ -285,50 +304,51 @@ function oe(e) {
285
304
  return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Ie && "_payload" in e && Ve(e._payload);
286
305
  }
287
306
  // @__NO_SIDE_EFFECTS__
288
- function He(e) {
289
- const t = /* @__PURE__ */ $e(e), r = s.forwardRef((o, n) => {
290
- let { children: l, ...i } = o;
291
- oe(l) && typeof H == "function" && (l = H(l._payload));
292
- const c = s.Children.toArray(l), a = c.find(Ue);
307
+ function $e(e) {
308
+ const t = /* @__PURE__ */ ke(e), r = i.forwardRef((o, n) => {
309
+ let { children: l, ...c } = o;
310
+ oe(l) && typeof $ == "function" && (l = $(l._payload));
311
+ const s = i.Children.toArray(l), a = s.find(He);
293
312
  if (a) {
294
- const u = a.props.children, d = c.map((h) => h === a ? s.Children.count(u) > 1 ? s.Children.only(null) : s.isValidElement(u) ? u.props.children : null : h);
295
- return /* @__PURE__ */ m(t, { ...i, ref: n, children: s.isValidElement(u) ? s.cloneElement(u, void 0, d) : null });
313
+ const u = a.props.children, d = s.map((f) => f === a ? i.Children.count(u) > 1 ? i.Children.only(null) : i.isValidElement(u) ? u.props.children : null : f);
314
+ return /* @__PURE__ */ m(t, { ...c, ref: n, children: i.isValidElement(u) ? i.cloneElement(u, void 0, d) : null });
296
315
  }
297
- return /* @__PURE__ */ m(t, { ...i, ref: n, children: l });
316
+ return /* @__PURE__ */ m(t, { ...c, ref: n, children: l });
298
317
  });
299
318
  return r.displayName = `${e}.Slot`, r;
300
319
  }
301
- var ke = /* @__PURE__ */ He("Slot");
320
+ var ze = /* @__PURE__ */ $e("Slot");
302
321
  // @__NO_SIDE_EFFECTS__
303
- function $e(e) {
304
- const t = s.forwardRef((r, o) => {
322
+ function ke(e) {
323
+ const t = i.forwardRef((r, o) => {
305
324
  let { children: n, ...l } = r;
306
- if (oe(n) && typeof H == "function" && (n = H(n._payload)), s.isValidElement(n)) {
307
- const i = Fe(n), c = Be(l, n.props);
308
- return n.type !== s.Fragment && (c.ref = o ? Y(o, i) : i), s.cloneElement(n, c);
325
+ if (oe(n) && typeof $ == "function" && (n = $(n._payload)), i.isValidElement(n)) {
326
+ const c = Fe(n), s = Be(l, n.props);
327
+ return n.type !== i.Fragment && (s.ref = o ? Y(o, c) : c), i.cloneElement(n, s);
309
328
  }
310
- return s.Children.count(n) > 1 ? s.Children.only(null) : null;
329
+ return i.Children.count(n) > 1 ? i.Children.only(null) : null;
311
330
  });
312
331
  return t.displayName = `${e}.SlotClone`, t;
313
332
  }
314
- var ze = /* @__PURE__ */ Symbol("radix.slottable");
315
- function Ue(e) {
316
- return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ze;
333
+ var Ue = Symbol("radix.slottable");
334
+ function He(e) {
335
+ return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ue;
317
336
  }
318
337
  function Be(e, t) {
319
338
  const r = { ...t };
320
339
  for (const o in t) {
321
340
  const n = e[o], l = t[o];
322
- /^on[A-Z]/.test(o) ? n && l ? r[o] = (...c) => {
323
- const a = l(...c);
324
- return n(...c), a;
341
+ /^on[A-Z]/.test(o) ? n && l ? r[o] = (...s) => {
342
+ const a = l(...s);
343
+ return n(...s), a;
325
344
  } : n && (r[o] = n) : o === "style" ? r[o] = { ...n, ...l } : o === "className" && (r[o] = [n, l].filter(Boolean).join(" "));
326
345
  }
327
346
  return { ...e, ...r };
328
347
  }
329
348
  function Fe(e) {
330
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
331
- 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);
349
+ var o, n;
350
+ let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning;
351
+ return r ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
332
352
  }
333
353
  const Xe = ne(
334
354
  "inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98]",
@@ -356,8 +376,8 @@ const Xe = ne(
356
376
  size: "default"
357
377
  }
358
378
  }
359
- ), Ye = s.forwardRef(
360
- ({ className: e, variant: t, size: r, asChild: o = !1, ...n }, l) => /* @__PURE__ */ m(o ? ke : "button", { className: z(Xe({ variant: t, size: r, className: e })), ref: l, ...n })
379
+ ), Ye = i.forwardRef(
380
+ ({ className: e, variant: t, size: r, asChild: o = !1, ...n }, l) => /* @__PURE__ */ m(o ? ze : "button", { className: U(Xe({ variant: t, size: r, className: e })), ref: l, ...n })
361
381
  );
362
382
  Ye.displayName = "Button";
363
383
  const je = ne(
@@ -380,23 +400,23 @@ const je = ne(
380
400
  }
381
401
  );
382
402
  function bt({ className: e, variant: t, ...r }) {
383
- return /* @__PURE__ */ m("div", { className: z(je({ variant: t }), e), ...r });
403
+ return /* @__PURE__ */ m("div", { className: U(je({ variant: t }), e), ...r });
384
404
  }
385
405
  function qe(e, [t, r]) {
386
406
  return Math.min(r, Math.max(t, e));
387
407
  }
388
408
  function Ze(e, t) {
389
- return s.useReducer((r, o) => t[r][o] ?? r, e);
409
+ return i.useReducer((r, o) => t[r][o] ?? r, e);
390
410
  }
391
- var j = "ScrollArea", [le] = Ce(j), [Ke, S] = le(j), se = s.forwardRef(
411
+ var j = "ScrollArea", [le] = Ce(j), [Ke, S] = le(j), ie = i.forwardRef(
392
412
  (e, t) => {
393
413
  const {
394
414
  __scopeScrollArea: r,
395
415
  type: o = "hover",
396
416
  dir: n,
397
417
  scrollHideDelay: l = 600,
398
- ...i
399
- } = e, [c, a] = s.useState(null), [u, d] = s.useState(null), [h, f] = s.useState(null), [p, v] = s.useState(null), [g, w] = s.useState(null), [P, O] = s.useState(0), [F, D] = s.useState(0), [M, N] = s.useState(!1), [W, I] = s.useState(!1), b = R(t, (A) => a(A)), y = We(n);
418
+ ...c
419
+ } = e, [s, a] = i.useState(null), [u, d] = i.useState(null), [f, h] = i.useState(null), [p, v] = i.useState(null), [g, w] = i.useState(null), [C, O] = i.useState(0), [F, D] = i.useState(0), [M, N] = i.useState(!1), [W, I] = i.useState(!1), b = R(t, (A) => a(A)), y = We(n);
400
420
  return /* @__PURE__ */ m(
401
421
  Ke,
402
422
  {
@@ -404,11 +424,11 @@ var j = "ScrollArea", [le] = Ce(j), [Ke, S] = le(j), se = s.forwardRef(
404
424
  type: o,
405
425
  dir: y,
406
426
  scrollHideDelay: l,
407
- scrollArea: c,
427
+ scrollArea: s,
408
428
  viewport: u,
409
429
  onViewportChange: d,
410
- content: h,
411
- onContentChange: f,
430
+ content: f,
431
+ onContentChange: h,
412
432
  scrollbarX: p,
413
433
  onScrollbarXChange: v,
414
434
  scrollbarXEnabled: M,
@@ -423,12 +443,12 @@ var j = "ScrollArea", [le] = Ce(j), [Ke, S] = le(j), se = s.forwardRef(
423
443
  _.div,
424
444
  {
425
445
  dir: y,
426
- ...i,
446
+ ...c,
427
447
  ref: b,
428
448
  style: {
429
449
  position: "relative",
430
450
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
431
- "--radix-scroll-area-corner-width": P + "px",
451
+ "--radix-scroll-area-corner-width": C + "px",
432
452
  "--radix-scroll-area-corner-height": F + "px",
433
453
  ...e.style
434
454
  }
@@ -438,10 +458,10 @@ var j = "ScrollArea", [le] = Ce(j), [Ke, S] = le(j), se = s.forwardRef(
438
458
  );
439
459
  }
440
460
  );
441
- se.displayName = j;
442
- var ie = "ScrollAreaViewport", ce = s.forwardRef(
461
+ ie.displayName = j;
462
+ var se = "ScrollAreaViewport", ce = i.forwardRef(
443
463
  (e, t) => {
444
- const { __scopeScrollArea: r, children: o, nonce: n, ...l } = e, i = S(ie, r), c = s.useRef(null), a = R(t, c, i.onViewportChange);
464
+ const { __scopeScrollArea: r, children: o, nonce: n, ...l } = e, c = S(se, r), s = i.useRef(null), a = R(t, s, c.onViewportChange);
445
465
  return /* @__PURE__ */ re(Se, { children: [
446
466
  /* @__PURE__ */ m(
447
467
  "style",
@@ -470,39 +490,39 @@ var ie = "ScrollAreaViewport", ce = s.forwardRef(
470
490
  * the browser from having to work out whether to render native scrollbars or not,
471
491
  * we tell it to with the intention of hiding them in CSS.
472
492
  */
473
- overflowX: i.scrollbarXEnabled ? "scroll" : "hidden",
474
- overflowY: i.scrollbarYEnabled ? "scroll" : "hidden",
493
+ overflowX: c.scrollbarXEnabled ? "scroll" : "hidden",
494
+ overflowY: c.scrollbarYEnabled ? "scroll" : "hidden",
475
495
  ...e.style
476
496
  },
477
- children: /* @__PURE__ */ m("div", { ref: i.onContentChange, style: { minWidth: "100%", display: "table" }, children: o })
497
+ children: /* @__PURE__ */ m("div", { ref: c.onContentChange, style: { minWidth: "100%", display: "table" }, children: o })
478
498
  }
479
499
  )
480
500
  ] });
481
501
  }
482
502
  );
483
- ce.displayName = ie;
484
- var C = "ScrollAreaScrollbar", q = s.forwardRef(
503
+ ce.displayName = se;
504
+ var P = "ScrollAreaScrollbar", q = i.forwardRef(
485
505
  (e, t) => {
486
- const { forceMount: r, ...o } = e, n = S(C, e.__scopeScrollArea), { onScrollbarXEnabledChange: l, onScrollbarYEnabledChange: i } = n, c = e.orientation === "horizontal";
487
- return s.useEffect(() => (c ? l(!0) : i(!0), () => {
488
- c ? l(!1) : i(!1);
489
- }), [c, l, i]), n.type === "hover" ? /* @__PURE__ */ m(Ge, { ...o, ref: t, forceMount: r }) : n.type === "scroll" ? /* @__PURE__ */ m(Je, { ...o, ref: t, forceMount: r }) : n.type === "auto" ? /* @__PURE__ */ m(ae, { ...o, ref: t, forceMount: r }) : n.type === "always" ? /* @__PURE__ */ m(Z, { ...o, ref: t }) : null;
506
+ const { forceMount: r, ...o } = e, n = S(P, e.__scopeScrollArea), { onScrollbarXEnabledChange: l, onScrollbarYEnabledChange: c } = n, s = e.orientation === "horizontal";
507
+ return i.useEffect(() => (s ? l(!0) : c(!0), () => {
508
+ s ? l(!1) : c(!1);
509
+ }), [s, l, c]), n.type === "hover" ? /* @__PURE__ */ m(Ge, { ...o, ref: t, forceMount: r }) : n.type === "scroll" ? /* @__PURE__ */ m(Je, { ...o, ref: t, forceMount: r }) : n.type === "auto" ? /* @__PURE__ */ m(ae, { ...o, ref: t, forceMount: r }) : n.type === "always" ? /* @__PURE__ */ m(Z, { ...o, ref: t }) : null;
490
510
  }
491
511
  );
492
- q.displayName = C;
493
- var Ge = s.forwardRef((e, t) => {
494
- const { forceMount: r, ...o } = e, n = S(C, e.__scopeScrollArea), [l, i] = s.useState(!1);
495
- return s.useEffect(() => {
496
- const c = n.scrollArea;
512
+ q.displayName = P;
513
+ var Ge = i.forwardRef((e, t) => {
514
+ const { forceMount: r, ...o } = e, n = S(P, e.__scopeScrollArea), [l, c] = i.useState(!1);
515
+ return i.useEffect(() => {
516
+ const s = n.scrollArea;
497
517
  let a = 0;
498
- if (c) {
518
+ if (s) {
499
519
  const u = () => {
500
- window.clearTimeout(a), i(!0);
520
+ window.clearTimeout(a), c(!0);
501
521
  }, d = () => {
502
- a = window.setTimeout(() => i(!1), n.scrollHideDelay);
522
+ a = window.setTimeout(() => c(!1), n.scrollHideDelay);
503
523
  };
504
- return c.addEventListener("pointerenter", u), c.addEventListener("pointerleave", d), () => {
505
- window.clearTimeout(a), c.removeEventListener("pointerenter", u), c.removeEventListener("pointerleave", d);
524
+ return s.addEventListener("pointerenter", u), s.addEventListener("pointerleave", d), () => {
525
+ window.clearTimeout(a), s.removeEventListener("pointerenter", u), s.removeEventListener("pointerleave", d);
506
526
  };
507
527
  }
508
528
  }, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ m(L, { present: r || l, children: /* @__PURE__ */ m(
@@ -513,8 +533,8 @@ var Ge = s.forwardRef((e, t) => {
513
533
  ref: t
514
534
  }
515
535
  ) });
516
- }), Je = s.forwardRef((e, t) => {
517
- const { forceMount: r, ...o } = e, n = S(C, e.__scopeScrollArea), l = e.orientation === "horizontal", i = B(() => a("SCROLL_END"), 100), [c, a] = Ze("hidden", {
536
+ }), Je = i.forwardRef((e, t) => {
537
+ const { forceMount: r, ...o } = e, n = S(P, e.__scopeScrollArea), l = e.orientation === "horizontal", c = B(() => a("SCROLL_END"), 100), [s, a] = Ze("hidden", {
518
538
  hidden: {
519
539
  SCROLL: "scrolling"
520
540
  },
@@ -532,36 +552,36 @@ var Ge = s.forwardRef((e, t) => {
532
552
  POINTER_ENTER: "interacting"
533
553
  }
534
554
  });
535
- return s.useEffect(() => {
536
- if (c === "idle") {
555
+ return i.useEffect(() => {
556
+ if (s === "idle") {
537
557
  const u = window.setTimeout(() => a("HIDE"), n.scrollHideDelay);
538
558
  return () => window.clearTimeout(u);
539
559
  }
540
- }, [c, n.scrollHideDelay, a]), s.useEffect(() => {
560
+ }, [s, n.scrollHideDelay, a]), i.useEffect(() => {
541
561
  const u = n.viewport, d = l ? "scrollLeft" : "scrollTop";
542
562
  if (u) {
543
- let h = u[d];
544
- const f = () => {
563
+ let f = u[d];
564
+ const h = () => {
545
565
  const p = u[d];
546
- h !== p && (a("SCROLL"), i()), h = p;
566
+ f !== p && (a("SCROLL"), c()), f = p;
547
567
  };
548
- return u.addEventListener("scroll", f), () => u.removeEventListener("scroll", f);
568
+ return u.addEventListener("scroll", h), () => u.removeEventListener("scroll", h);
549
569
  }
550
- }, [n.viewport, l, a, i]), /* @__PURE__ */ m(L, { present: r || c !== "hidden", children: /* @__PURE__ */ m(
570
+ }, [n.viewport, l, a, c]), /* @__PURE__ */ m(L, { present: r || s !== "hidden", children: /* @__PURE__ */ m(
551
571
  Z,
552
572
  {
553
- "data-state": c === "hidden" ? "hidden" : "visible",
573
+ "data-state": s === "hidden" ? "hidden" : "visible",
554
574
  ...o,
555
575
  ref: t,
556
- onPointerEnter: x(e.onPointerEnter, () => a("POINTER_ENTER")),
557
- onPointerLeave: x(e.onPointerLeave, () => a("POINTER_LEAVE"))
576
+ onPointerEnter: E(e.onPointerEnter, () => a("POINTER_ENTER")),
577
+ onPointerLeave: E(e.onPointerLeave, () => a("POINTER_LEAVE"))
558
578
  }
559
579
  ) });
560
- }), ae = s.forwardRef((e, t) => {
561
- const r = S(C, e.__scopeScrollArea), { forceMount: o, ...n } = e, [l, i] = s.useState(!1), c = e.orientation === "horizontal", a = B(() => {
580
+ }), ae = i.forwardRef((e, t) => {
581
+ const r = S(P, e.__scopeScrollArea), { forceMount: o, ...n } = e, [l, c] = i.useState(!1), s = e.orientation === "horizontal", a = B(() => {
562
582
  if (r.viewport) {
563
583
  const u = r.viewport.offsetWidth < r.viewport.scrollWidth, d = r.viewport.offsetHeight < r.viewport.scrollHeight;
564
- i(c ? u : d);
584
+ c(s ? u : d);
565
585
  }
566
586
  }, 10);
567
587
  return T(r.viewport, a), T(r.content, a), /* @__PURE__ */ m(L, { present: o || l, children: /* @__PURE__ */ m(
@@ -572,22 +592,22 @@ var Ge = s.forwardRef((e, t) => {
572
592
  ref: t
573
593
  }
574
594
  ) });
575
- }), Z = s.forwardRef((e, t) => {
576
- const { orientation: r = "vertical", ...o } = e, n = S(C, e.__scopeScrollArea), l = s.useRef(null), i = s.useRef(0), [c, a] = s.useState({
595
+ }), Z = i.forwardRef((e, t) => {
596
+ const { orientation: r = "vertical", ...o } = e, n = S(P, e.__scopeScrollArea), l = i.useRef(null), c = i.useRef(0), [s, a] = i.useState({
577
597
  content: 0,
578
598
  viewport: 0,
579
599
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
580
- }), u = me(c.viewport, c.content), d = {
600
+ }), u = me(s.viewport, s.content), d = {
581
601
  ...o,
582
- sizes: c,
602
+ sizes: s,
583
603
  onSizesChange: a,
584
604
  hasThumb: u > 0 && u < 1,
585
- onThumbChange: (f) => l.current = f,
586
- onThumbPointerUp: () => i.current = 0,
587
- onThumbPointerDown: (f) => i.current = f
605
+ onThumbChange: (h) => l.current = h,
606
+ onThumbPointerUp: () => c.current = 0,
607
+ onThumbPointerDown: (h) => c.current = h
588
608
  };
589
- function h(f, p) {
590
- return ot(f, i.current, c, p);
609
+ function f(h, p) {
610
+ return ot(h, c.current, s, p);
591
611
  }
592
612
  return r === "horizontal" ? /* @__PURE__ */ m(
593
613
  Qe,
@@ -596,15 +616,15 @@ var Ge = s.forwardRef((e, t) => {
596
616
  ref: t,
597
617
  onThumbPositionChange: () => {
598
618
  if (n.viewport && l.current) {
599
- const f = n.viewport.scrollLeft, p = ee(f, c, n.dir);
619
+ const h = n.viewport.scrollLeft, p = ee(h, s, n.dir);
600
620
  l.current.style.transform = `translate3d(${p}px, 0, 0)`;
601
621
  }
602
622
  },
603
- onWheelScroll: (f) => {
604
- n.viewport && (n.viewport.scrollLeft = f);
623
+ onWheelScroll: (h) => {
624
+ n.viewport && (n.viewport.scrollLeft = h);
605
625
  },
606
- onDragScroll: (f) => {
607
- n.viewport && (n.viewport.scrollLeft = h(f, n.dir));
626
+ onDragScroll: (h) => {
627
+ n.viewport && (n.viewport.scrollLeft = f(h, n.dir));
608
628
  }
609
629
  }
610
630
  ) : r === "vertical" ? /* @__PURE__ */ m(
@@ -614,22 +634,22 @@ var Ge = s.forwardRef((e, t) => {
614
634
  ref: t,
615
635
  onThumbPositionChange: () => {
616
636
  if (n.viewport && l.current) {
617
- const f = n.viewport.scrollTop, p = ee(f, c);
637
+ const h = n.viewport.scrollTop, p = ee(h, s);
618
638
  l.current.style.transform = `translate3d(0, ${p}px, 0)`;
619
639
  }
620
640
  },
621
- onWheelScroll: (f) => {
622
- n.viewport && (n.viewport.scrollTop = f);
641
+ onWheelScroll: (h) => {
642
+ n.viewport && (n.viewport.scrollTop = h);
623
643
  },
624
- onDragScroll: (f) => {
625
- n.viewport && (n.viewport.scrollTop = h(f));
644
+ onDragScroll: (h) => {
645
+ n.viewport && (n.viewport.scrollTop = f(h));
626
646
  }
627
647
  }
628
648
  ) : null;
629
- }), Qe = s.forwardRef((e, t) => {
630
- const { sizes: r, onSizesChange: o, ...n } = e, l = S(C, e.__scopeScrollArea), [i, c] = s.useState(), a = s.useRef(null), u = R(t, a, l.onScrollbarXChange);
631
- return s.useEffect(() => {
632
- a.current && c(getComputedStyle(a.current));
649
+ }), Qe = i.forwardRef((e, t) => {
650
+ const { sizes: r, onSizesChange: o, ...n } = e, l = S(P, e.__scopeScrollArea), [c, s] = i.useState(), a = i.useRef(null), u = R(t, a, l.onScrollbarXChange);
651
+ return i.useEffect(() => {
652
+ a.current && s(getComputedStyle(a.current));
633
653
  }, [a]), /* @__PURE__ */ m(
634
654
  de,
635
655
  {
@@ -641,34 +661,34 @@ var Ge = s.forwardRef((e, t) => {
641
661
  bottom: 0,
642
662
  left: l.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
643
663
  right: l.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
644
- "--radix-scroll-area-thumb-width": U(r) + "px",
664
+ "--radix-scroll-area-thumb-width": H(r) + "px",
645
665
  ...e.style
646
666
  },
647
667
  onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
648
668
  onDragScroll: (d) => e.onDragScroll(d.x),
649
- onWheelScroll: (d, h) => {
669
+ onWheelScroll: (d, f) => {
650
670
  if (l.viewport) {
651
- const f = l.viewport.scrollLeft + d.deltaX;
652
- e.onWheelScroll(f), ve(f, h) && d.preventDefault();
671
+ const h = l.viewport.scrollLeft + d.deltaX;
672
+ e.onWheelScroll(h), ve(h, f) && d.preventDefault();
653
673
  }
654
674
  },
655
675
  onResize: () => {
656
- a.current && l.viewport && i && o({
676
+ a.current && l.viewport && c && o({
657
677
  content: l.viewport.scrollWidth,
658
678
  viewport: l.viewport.offsetWidth,
659
679
  scrollbar: {
660
680
  size: a.current.clientWidth,
661
- paddingStart: $(i.paddingLeft),
662
- paddingEnd: $(i.paddingRight)
681
+ paddingStart: k(c.paddingLeft),
682
+ paddingEnd: k(c.paddingRight)
663
683
  }
664
684
  });
665
685
  }
666
686
  }
667
687
  );
668
- }), et = s.forwardRef((e, t) => {
669
- const { sizes: r, onSizesChange: o, ...n } = e, l = S(C, e.__scopeScrollArea), [i, c] = s.useState(), a = s.useRef(null), u = R(t, a, l.onScrollbarYChange);
670
- return s.useEffect(() => {
671
- a.current && c(getComputedStyle(a.current));
688
+ }), et = i.forwardRef((e, t) => {
689
+ const { sizes: r, onSizesChange: o, ...n } = e, l = S(P, e.__scopeScrollArea), [c, s] = i.useState(), a = i.useRef(null), u = R(t, a, l.onScrollbarYChange);
690
+ return i.useEffect(() => {
691
+ a.current && s(getComputedStyle(a.current));
672
692
  }, [a]), /* @__PURE__ */ m(
673
693
  de,
674
694
  {
@@ -681,112 +701,112 @@ var Ge = s.forwardRef((e, t) => {
681
701
  right: l.dir === "ltr" ? 0 : void 0,
682
702
  left: l.dir === "rtl" ? 0 : void 0,
683
703
  bottom: "var(--radix-scroll-area-corner-height)",
684
- "--radix-scroll-area-thumb-height": U(r) + "px",
704
+ "--radix-scroll-area-thumb-height": H(r) + "px",
685
705
  ...e.style
686
706
  },
687
707
  onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
688
708
  onDragScroll: (d) => e.onDragScroll(d.y),
689
- onWheelScroll: (d, h) => {
709
+ onWheelScroll: (d, f) => {
690
710
  if (l.viewport) {
691
- const f = l.viewport.scrollTop + d.deltaY;
692
- e.onWheelScroll(f), ve(f, h) && d.preventDefault();
711
+ const h = l.viewport.scrollTop + d.deltaY;
712
+ e.onWheelScroll(h), ve(h, f) && d.preventDefault();
693
713
  }
694
714
  },
695
715
  onResize: () => {
696
- a.current && l.viewport && i && o({
716
+ a.current && l.viewport && c && o({
697
717
  content: l.viewport.scrollHeight,
698
718
  viewport: l.viewport.offsetHeight,
699
719
  scrollbar: {
700
720
  size: a.current.clientHeight,
701
- paddingStart: $(i.paddingTop),
702
- paddingEnd: $(i.paddingBottom)
721
+ paddingStart: k(c.paddingTop),
722
+ paddingEnd: k(c.paddingBottom)
703
723
  }
704
724
  });
705
725
  }
706
726
  }
707
727
  );
708
- }), [tt, ue] = le(C), de = s.forwardRef((e, t) => {
728
+ }), [tt, ue] = le(P), de = i.forwardRef((e, t) => {
709
729
  const {
710
730
  __scopeScrollArea: r,
711
731
  sizes: o,
712
732
  hasThumb: n,
713
733
  onThumbChange: l,
714
- onThumbPointerUp: i,
715
- onThumbPointerDown: c,
734
+ onThumbPointerUp: c,
735
+ onThumbPointerDown: s,
716
736
  onThumbPositionChange: a,
717
737
  onDragScroll: u,
718
738
  onWheelScroll: d,
719
- onResize: h,
720
- ...f
721
- } = e, p = S(C, r), [v, g] = s.useState(null), w = R(t, (b) => g(b)), P = s.useRef(null), O = s.useRef(""), F = p.viewport, D = o.content - o.viewport, M = E(d), N = E(a), W = B(h, 10);
739
+ onResize: f,
740
+ ...h
741
+ } = e, p = S(P, r), [v, g] = i.useState(null), w = R(t, (b) => g(b)), C = i.useRef(null), O = i.useRef(""), F = p.viewport, D = o.content - o.viewport, M = x(d), N = x(a), W = B(f, 10);
722
742
  function I(b) {
723
- if (P.current) {
724
- const y = b.clientX - P.current.left, A = b.clientY - P.current.top;
743
+ if (C.current) {
744
+ const y = b.clientX - C.current.left, A = b.clientY - C.current.top;
725
745
  u({ x: y, y: A });
726
746
  }
727
747
  }
728
- return s.useEffect(() => {
748
+ return i.useEffect(() => {
729
749
  const b = (y) => {
730
750
  const A = y.target;
731
- v?.contains(A) && M(y, D);
751
+ (v == null ? void 0 : v.contains(A)) && M(y, D);
732
752
  };
733
753
  return document.addEventListener("wheel", b, { passive: !1 }), () => document.removeEventListener("wheel", b, { passive: !1 });
734
- }, [F, v, D, M]), s.useEffect(N, [o, N]), T(v, W), T(p.content, W), /* @__PURE__ */ m(
754
+ }, [F, v, D, M]), i.useEffect(N, [o, N]), T(v, W), T(p.content, W), /* @__PURE__ */ m(
735
755
  tt,
736
756
  {
737
757
  scope: r,
738
758
  scrollbar: v,
739
759
  hasThumb: n,
740
- onThumbChange: E(l),
741
- onThumbPointerUp: E(i),
760
+ onThumbChange: x(l),
761
+ onThumbPointerUp: x(c),
742
762
  onThumbPositionChange: N,
743
- onThumbPointerDown: E(c),
763
+ onThumbPointerDown: x(s),
744
764
  children: /* @__PURE__ */ m(
745
765
  _.div,
746
766
  {
747
- ...f,
767
+ ...h,
748
768
  ref: w,
749
- style: { position: "absolute", ...f.style },
750
- onPointerDown: x(e.onPointerDown, (b) => {
751
- b.button === 0 && (b.target.setPointerCapture(b.pointerId), P.current = v.getBoundingClientRect(), O.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), I(b));
769
+ style: { position: "absolute", ...h.style },
770
+ onPointerDown: E(e.onPointerDown, (b) => {
771
+ b.button === 0 && (b.target.setPointerCapture(b.pointerId), C.current = v.getBoundingClientRect(), O.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), I(b));
752
772
  }),
753
- onPointerMove: x(e.onPointerMove, I),
754
- onPointerUp: x(e.onPointerUp, (b) => {
773
+ onPointerMove: E(e.onPointerMove, I),
774
+ onPointerUp: E(e.onPointerUp, (b) => {
755
775
  const y = b.target;
756
- y.hasPointerCapture(b.pointerId) && y.releasePointerCapture(b.pointerId), document.body.style.webkitUserSelect = O.current, p.viewport && (p.viewport.style.scrollBehavior = ""), P.current = null;
776
+ y.hasPointerCapture(b.pointerId) && y.releasePointerCapture(b.pointerId), document.body.style.webkitUserSelect = O.current, p.viewport && (p.viewport.style.scrollBehavior = ""), C.current = null;
757
777
  })
758
778
  }
759
779
  )
760
780
  }
761
781
  );
762
- }), k = "ScrollAreaThumb", fe = s.forwardRef(
782
+ }), z = "ScrollAreaThumb", fe = i.forwardRef(
763
783
  (e, t) => {
764
- const { forceMount: r, ...o } = e, n = ue(k, e.__scopeScrollArea);
784
+ const { forceMount: r, ...o } = e, n = ue(z, e.__scopeScrollArea);
765
785
  return /* @__PURE__ */ m(L, { present: r || n.hasThumb, children: /* @__PURE__ */ m(rt, { ref: t, ...o }) });
766
786
  }
767
- ), rt = s.forwardRef(
787
+ ), rt = i.forwardRef(
768
788
  (e, t) => {
769
- const { __scopeScrollArea: r, style: o, ...n } = e, l = S(k, r), i = ue(k, r), { onThumbPositionChange: c } = i, a = R(
789
+ const { __scopeScrollArea: r, style: o, ...n } = e, l = S(z, r), c = ue(z, r), { onThumbPositionChange: s } = c, a = R(
770
790
  t,
771
- (h) => i.onThumbChange(h)
772
- ), u = s.useRef(void 0), d = B(() => {
791
+ (f) => c.onThumbChange(f)
792
+ ), u = i.useRef(void 0), d = B(() => {
773
793
  u.current && (u.current(), u.current = void 0);
774
794
  }, 100);
775
- return s.useEffect(() => {
776
- const h = l.viewport;
777
- if (h) {
778
- const f = () => {
795
+ return i.useEffect(() => {
796
+ const f = l.viewport;
797
+ if (f) {
798
+ const h = () => {
779
799
  if (d(), !u.current) {
780
- const p = lt(h, c);
781
- u.current = p, c();
800
+ const p = lt(f, s);
801
+ u.current = p, s();
782
802
  }
783
803
  };
784
- return c(), h.addEventListener("scroll", f), () => h.removeEventListener("scroll", f);
804
+ return s(), f.addEventListener("scroll", h), () => f.removeEventListener("scroll", h);
785
805
  }
786
- }, [l.viewport, d, c]), /* @__PURE__ */ m(
806
+ }, [l.viewport, d, s]), /* @__PURE__ */ m(
787
807
  _.div,
788
808
  {
789
- "data-state": i.hasThumb ? "visible" : "hidden",
809
+ "data-state": c.hasThumb ? "visible" : "hidden",
790
810
  ...n,
791
811
  ref: a,
792
812
  style: {
@@ -794,31 +814,33 @@ var Ge = s.forwardRef((e, t) => {
794
814
  height: "var(--radix-scroll-area-thumb-height)",
795
815
  ...o
796
816
  },
797
- onPointerDownCapture: x(e.onPointerDownCapture, (h) => {
798
- const p = h.target.getBoundingClientRect(), v = h.clientX - p.left, g = h.clientY - p.top;
799
- i.onThumbPointerDown({ x: v, y: g });
817
+ onPointerDownCapture: E(e.onPointerDownCapture, (f) => {
818
+ const p = f.target.getBoundingClientRect(), v = f.clientX - p.left, g = f.clientY - p.top;
819
+ c.onThumbPointerDown({ x: v, y: g });
800
820
  }),
801
- onPointerUp: x(e.onPointerUp, i.onThumbPointerUp)
821
+ onPointerUp: E(e.onPointerUp, c.onThumbPointerUp)
802
822
  }
803
823
  );
804
824
  }
805
825
  );
806
- fe.displayName = k;
807
- var K = "ScrollAreaCorner", he = s.forwardRef(
826
+ fe.displayName = z;
827
+ var K = "ScrollAreaCorner", he = i.forwardRef(
808
828
  (e, t) => {
809
829
  const r = S(K, e.__scopeScrollArea), o = !!(r.scrollbarX && r.scrollbarY);
810
830
  return r.type !== "scroll" && o ? /* @__PURE__ */ m(nt, { ...e, ref: t }) : null;
811
831
  }
812
832
  );
813
833
  he.displayName = K;
814
- var nt = s.forwardRef((e, t) => {
815
- const { __scopeScrollArea: r, ...o } = e, n = S(K, r), [l, i] = s.useState(0), [c, a] = s.useState(0), u = !!(l && c);
834
+ var nt = i.forwardRef((e, t) => {
835
+ const { __scopeScrollArea: r, ...o } = e, n = S(K, r), [l, c] = i.useState(0), [s, a] = i.useState(0), u = !!(l && s);
816
836
  return T(n.scrollbarX, () => {
817
- const d = n.scrollbarX?.offsetHeight || 0;
837
+ var f;
838
+ const d = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
818
839
  n.onCornerHeightChange(d), a(d);
819
840
  }), T(n.scrollbarY, () => {
820
- const d = n.scrollbarY?.offsetWidth || 0;
821
- n.onCornerWidthChange(d), i(d);
841
+ var f;
842
+ const d = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
843
+ n.onCornerWidthChange(d), c(d);
822
844
  }), u ? /* @__PURE__ */ m(
823
845
  _.div,
824
846
  {
@@ -826,7 +848,7 @@ var nt = s.forwardRef((e, t) => {
826
848
  ref: t,
827
849
  style: {
828
850
  width: l,
829
- height: c,
851
+ height: s,
830
852
  position: "absolute",
831
853
  right: n.dir === "ltr" ? 0 : void 0,
832
854
  left: n.dir === "rtl" ? 0 : void 0,
@@ -836,24 +858,24 @@ var nt = s.forwardRef((e, t) => {
836
858
  }
837
859
  ) : null;
838
860
  });
839
- function $(e) {
861
+ function k(e) {
840
862
  return e ? parseInt(e, 10) : 0;
841
863
  }
842
864
  function me(e, t) {
843
865
  const r = e / t;
844
866
  return isNaN(r) ? 0 : r;
845
867
  }
846
- function U(e) {
868
+ function H(e) {
847
869
  const t = me(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - r) * t;
848
870
  return Math.max(o, 18);
849
871
  }
850
872
  function ot(e, t, r, o = "ltr") {
851
- const n = U(r), l = n / 2, i = t || l, c = n - i, a = r.scrollbar.paddingStart + i, u = r.scrollbar.size - r.scrollbar.paddingEnd - c, d = r.content - r.viewport, h = o === "ltr" ? [0, d] : [d * -1, 0];
852
- return pe([a, u], h)(e);
873
+ const n = H(r), l = n / 2, c = t || l, s = n - c, a = r.scrollbar.paddingStart + c, u = r.scrollbar.size - r.scrollbar.paddingEnd - s, d = r.content - r.viewport, f = o === "ltr" ? [0, d] : [d * -1, 0];
874
+ return pe([a, u], f)(e);
853
875
  }
854
876
  function ee(e, t, r = "ltr") {
855
- const o = U(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, l = t.scrollbar.size - n, i = t.content - t.viewport, c = l - o, a = r === "ltr" ? [0, i] : [i * -1, 0], u = qe(e, a);
856
- return pe([0, i], [0, c])(u);
877
+ const o = H(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, l = t.scrollbar.size - n, c = t.content - t.viewport, s = l - o, a = r === "ltr" ? [0, c] : [c * -1, 0], u = qe(e, a);
878
+ return pe([0, c], [0, s])(u);
857
879
  }
858
880
  function pe(e, t) {
859
881
  return (r) => {
@@ -868,19 +890,19 @@ function ve(e, t) {
868
890
  var lt = (e, t = () => {
869
891
  }) => {
870
892
  let r = { left: e.scrollLeft, top: e.scrollTop }, o = 0;
871
- return (function n() {
872
- const l = { left: e.scrollLeft, top: e.scrollTop }, i = r.left !== l.left, c = r.top !== l.top;
873
- (i || c) && t(), r = l, o = window.requestAnimationFrame(n);
874
- })(), () => window.cancelAnimationFrame(o);
893
+ return function n() {
894
+ const l = { left: e.scrollLeft, top: e.scrollTop }, c = r.left !== l.left, s = r.top !== l.top;
895
+ (c || s) && t(), r = l, o = window.requestAnimationFrame(n);
896
+ }(), () => window.cancelAnimationFrame(o);
875
897
  };
876
898
  function B(e, t) {
877
- const r = E(e), o = s.useRef(0);
878
- return s.useEffect(() => () => window.clearTimeout(o.current), []), s.useCallback(() => {
899
+ const r = x(e), o = i.useRef(0);
900
+ return i.useEffect(() => () => window.clearTimeout(o.current), []), i.useCallback(() => {
879
901
  window.clearTimeout(o.current), o.current = window.setTimeout(r, t);
880
902
  }, [r, t]);
881
903
  }
882
904
  function T(e, t) {
883
- const r = E(t);
905
+ const r = x(t);
884
906
  X(() => {
885
907
  let o = 0;
886
908
  if (e) {
@@ -893,27 +915,27 @@ function T(e, t) {
893
915
  }
894
916
  }, [e, r]);
895
917
  }
896
- var be = se, st = ce, it = he;
897
- const ct = s.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ re(
918
+ var be = ie, it = ce, st = he;
919
+ const ct = i.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ re(
898
920
  be,
899
921
  {
900
922
  ref: o,
901
- className: z("relative overflow-hidden", e),
923
+ className: U("relative overflow-hidden", e),
902
924
  ...r,
903
925
  children: [
904
- /* @__PURE__ */ m(st, { className: "h-full w-full rounded-[inherit]", children: t }),
926
+ /* @__PURE__ */ m(it, { className: "h-full w-full rounded-[inherit]", children: t }),
905
927
  /* @__PURE__ */ m(ge, {}),
906
- /* @__PURE__ */ m(it, {})
928
+ /* @__PURE__ */ m(st, {})
907
929
  ]
908
930
  }
909
931
  ));
910
932
  ct.displayName = be.displayName;
911
- const ge = s.forwardRef(({ className: e, orientation: t = "vertical", ...r }, o) => /* @__PURE__ */ m(
933
+ const ge = i.forwardRef(({ className: e, orientation: t = "vertical", ...r }, o) => /* @__PURE__ */ m(
912
934
  q,
913
935
  {
914
936
  ref: o,
915
937
  orientation: t,
916
- className: z(
938
+ className: U(
917
939
  "flex touch-none select-none transition-colors",
918
940
  t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
919
941
  t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
@@ -939,14 +961,14 @@ export {
939
961
  Ce as g,
940
962
  R as h,
941
963
  X as i,
942
- x as j,
943
- E as k,
964
+ E as j,
965
+ x as k,
944
966
  qe as l,
945
967
  L as m,
946
968
  ht as n,
947
- He as o,
948
- ke as p,
969
+ $e as o,
970
+ ze as p,
949
971
  mt as q,
950
972
  We as u
951
973
  };
952
- //# sourceMappingURL=scroll-area-DQeqDp3Y.js.map
974
+ //# sourceMappingURL=scroll-area-A3jGu-Ta.js.map