@gv-tech/ui-web 2.29.2 → 2.29.3

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 (265) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.mjs +53 -1
  3. package/dist/alert-dialog.cjs +1 -1
  4. package/dist/alert-dialog.mjs +99 -1
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.mjs +1 -1
  7. package/dist/aspect-ratio.cjs +1 -1
  8. package/dist/aspect-ratio.mjs +10 -1
  9. package/dist/attachment.cjs +1 -1
  10. package/dist/attachment.mjs +25 -24
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.mjs +49 -1
  13. package/dist/badge.cjs +1 -1
  14. package/dist/badge.mjs +5 -4
  15. package/dist/breadcrumb.cjs +1 -1
  16. package/dist/breadcrumb.mjs +12 -11
  17. package/dist/bubble.cjs +1 -1
  18. package/dist/bubble.mjs +4 -3
  19. package/dist/button-group.cjs +1 -1
  20. package/dist/button-group.mjs +12 -11
  21. package/dist/button.cjs +1 -1
  22. package/dist/button.mjs +4 -3
  23. package/dist/calendar.cjs +1 -1
  24. package/dist/calendar.mjs +97 -1
  25. package/dist/card.cjs +1 -1
  26. package/dist/card.mjs +1 -1
  27. package/dist/carousel.cjs +1 -1
  28. package/dist/carousel.mjs +107 -1
  29. package/dist/chart.cjs +2 -2
  30. package/dist/chart.mjs +1 -1
  31. package/dist/checkbox.cjs +1 -1
  32. package/dist/checkbox.mjs +19 -1
  33. package/dist/collapsible.cjs +1 -1
  34. package/dist/collapsible.mjs +12 -12
  35. package/dist/combobox.cjs +1 -1
  36. package/dist/combobox.mjs +161 -1
  37. package/dist/command.cjs +1 -1
  38. package/dist/command.mjs +89 -1
  39. package/dist/context-menu.cjs +1 -1
  40. package/dist/context-menu.mjs +123 -1
  41. package/dist/dialog.cjs +1 -1
  42. package/dist/dialog.mjs +40 -40
  43. package/dist/direction.cjs +1 -1
  44. package/dist/direction.mjs +7 -7
  45. package/dist/drawer.cjs +1 -1
  46. package/dist/drawer.mjs +1 -1
  47. package/dist/dropdown-menu.cjs +1 -1
  48. package/dist/dropdown-menu.mjs +126 -1
  49. package/dist/empty.cjs +1 -1
  50. package/dist/empty.mjs +1 -1
  51. package/dist/field.cjs +1 -1
  52. package/dist/field.mjs +36 -36
  53. package/dist/form.cjs +1 -1
  54. package/dist/form.mjs +36 -36
  55. package/dist/hover-card.cjs +1 -1
  56. package/dist/hover-card.mjs +30 -1
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.mjs +36 -36
  59. package/dist/input-group.cjs +1 -1
  60. package/dist/input-group.mjs +26 -26
  61. package/dist/input-otp.cjs +1 -1
  62. package/dist/input-otp.mjs +45 -1
  63. package/dist/input.cjs +1 -1
  64. package/dist/input.mjs +1 -1
  65. package/dist/item.cjs +1 -1
  66. package/dist/item.mjs +28 -27
  67. package/dist/kbd.cjs +1 -1
  68. package/dist/kbd.mjs +1 -1
  69. package/dist/label.cjs +1 -1
  70. package/dist/label.mjs +13 -1
  71. package/dist/marker.cjs +1 -1
  72. package/dist/marker.mjs +4 -3
  73. package/dist/menubar.cjs +1 -1
  74. package/dist/menubar.mjs +133 -1
  75. package/dist/message-scroller.cjs +1 -1
  76. package/dist/message-scroller.mjs +59 -1
  77. package/dist/message.cjs +1 -1
  78. package/dist/message.mjs +1 -1
  79. package/dist/native-select.cjs +1 -1
  80. package/dist/native-select.mjs +1 -1
  81. package/dist/navigation-menu.cjs +1 -1
  82. package/dist/navigation-menu.mjs +79 -1
  83. package/dist/pagination.cjs +1 -1
  84. package/dist/pagination.mjs +14 -14
  85. package/dist/popover.cjs +1 -1
  86. package/dist/popover.mjs +54 -1
  87. package/dist/progress.cjs +1 -1
  88. package/dist/progress.mjs +19 -1
  89. package/dist/questionnaire.cjs +1 -1
  90. package/dist/questionnaire.mjs +168 -1
  91. package/dist/radio-group.cjs +1 -1
  92. package/dist/radio-group.mjs +25 -1
  93. package/dist/resizable.cjs +1 -1
  94. package/dist/resizable.mjs +26 -1
  95. package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
  96. package/dist/scroll-area.cjs +1 -1
  97. package/dist/scroll-area.mjs +35 -1
  98. package/dist/scroll-to-top.cjs +1 -1
  99. package/dist/search.cjs +1 -1
  100. package/dist/search.mjs +1 -1
  101. package/dist/select.cjs +1 -1
  102. package/dist/select.mjs +98 -1
  103. package/dist/separator.cjs +1 -1
  104. package/dist/separator.mjs +15 -1
  105. package/dist/sheet.cjs +1 -1
  106. package/dist/sheet.mjs +38 -38
  107. package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
  108. package/dist/sidebar-uOtFHnBs.js +1 -0
  109. package/dist/sidebar.cjs +1 -1
  110. package/dist/sidebar.mjs +3 -1
  111. package/dist/skeleton.cjs +1 -1
  112. package/dist/skeleton.mjs +1 -1
  113. package/dist/slider.cjs +1 -1
  114. package/dist/slider.mjs +34 -1
  115. package/dist/spinner.cjs +1 -1
  116. package/dist/spinner.mjs +1 -1
  117. package/dist/support-fab.cjs +1 -1
  118. package/dist/switch.cjs +1 -1
  119. package/dist/switch.mjs +18 -1
  120. package/dist/table-of-contents.cjs +1 -1
  121. package/dist/table.cjs +1 -1
  122. package/dist/table.mjs +1 -1
  123. package/dist/tabs.cjs +1 -1
  124. package/dist/tabs.mjs +44 -1
  125. package/dist/text.cjs +1 -1
  126. package/dist/textarea.cjs +1 -1
  127. package/dist/textarea.mjs +1 -1
  128. package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
  129. package/dist/theme-toggle-DkNI3bfh.js +1 -0
  130. package/dist/theme-toggle.cjs +1 -1
  131. package/dist/theme-toggle.mjs +2 -1
  132. package/dist/toast.cjs +1 -1
  133. package/dist/toast.mjs +52 -1
  134. package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
  135. package/dist/toaster-AFud4l6l.js +1 -0
  136. package/dist/toaster.cjs +1 -1
  137. package/dist/toaster.mjs +2 -1
  138. package/dist/toggle-group.cjs +1 -1
  139. package/dist/toggle-group.mjs +49 -1
  140. package/dist/toggle.cjs +1 -1
  141. package/dist/toggle.mjs +35 -1
  142. package/dist/tooltip.cjs +1 -1
  143. package/dist/tooltip.mjs +34 -1
  144. package/package.json +1 -1
  145. package/dist/accordion-Bd0-CZQn.js +0 -1
  146. package/dist/accordion-Cf6DNbLH.mjs +0 -244
  147. package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
  148. package/dist/alert-dialog-C6vNmGBL.js +0 -1
  149. package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
  150. package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
  151. package/dist/avatar-B5PWwGhY.mjs +0 -136
  152. package/dist/avatar-CFhYRM52.js +0 -1
  153. package/dist/calendar-D5qgt2o2.js +0 -1
  154. package/dist/calendar-DIqXNjOR.mjs +0 -3029
  155. package/dist/carousel-D-xEqRCX.js +0 -1
  156. package/dist/carousel-DPjWmM_A.mjs +0 -1169
  157. package/dist/checkbox-DEPm1BBc.mjs +0 -184
  158. package/dist/checkbox-DI9Hn_e_.js +0 -1
  159. package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
  160. package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
  161. package/dist/combobox-C4y8AbZX.mjs +0 -5644
  162. package/dist/combobox-boXp-mix.js +0 -3
  163. package/dist/command-BnW6UIVk.js +0 -1
  164. package/dist/command-Cbsp7PBx.mjs +0 -542
  165. package/dist/context-menu-CwsdFpx1.js +0 -1
  166. package/dist/context-menu-FNgV55ZV.mjs +0 -315
  167. package/dist/dist-7YyzJonC.mjs +0 -39
  168. package/dist/dist-AlmToDtO.mjs +0 -17
  169. package/dist/dist-B76UOZbx.mjs +0 -40
  170. package/dist/dist-B7Ph9-T6.mjs +0 -44
  171. package/dist/dist-B7jnFMko.js +0 -1
  172. package/dist/dist-BOiFyvyS.mjs +0 -10
  173. package/dist/dist-BQkDLAY7.js +0 -1
  174. package/dist/dist-Bal96K8t.js +0 -1
  175. package/dist/dist-Blgp9lfa.js +0 -1
  176. package/dist/dist-BnlI08Je.mjs +0 -96
  177. package/dist/dist-Bu-uFV1C.mjs +0 -191
  178. package/dist/dist-C2BHd5i1.mjs +0 -460
  179. package/dist/dist-C516Vwxy.mjs +0 -116
  180. package/dist/dist-CBlqVBTk.js +0 -1
  181. package/dist/dist-CDcZ8WMF.js +0 -1
  182. package/dist/dist-CDksSmTD.mjs +0 -189
  183. package/dist/dist-CF-qVmmV.js +0 -1
  184. package/dist/dist-CIgGRTmJ.js +0 -1
  185. package/dist/dist-CJqVmdrU.js +0 -1
  186. package/dist/dist-COqM3IM6.mjs +0 -89
  187. package/dist/dist-CbWpCWog.mjs +0 -180
  188. package/dist/dist-CcGLWbPa.mjs +0 -19
  189. package/dist/dist-Cn4F8XlY.mjs +0 -220
  190. package/dist/dist-CoTs6T03.js +0 -1
  191. package/dist/dist-Co_xSt6d.js +0 -1
  192. package/dist/dist-Cu0GG-3j.mjs +0 -15
  193. package/dist/dist-DJqkhIXb.js +0 -1
  194. package/dist/dist-DKI-XYwI.mjs +0 -98
  195. package/dist/dist-DQeXXRYL.mjs +0 -201
  196. package/dist/dist-DW2ltK5-.js +0 -1
  197. package/dist/dist-DWcKY_sJ.js +0 -1
  198. package/dist/dist-DZiOPWLp.js +0 -1
  199. package/dist/dist-DdAeWIwf.js +0 -1
  200. package/dist/dist-DhubV_gU.mjs +0 -4
  201. package/dist/dist-DmY7elIQ.js +0 -1
  202. package/dist/dist-DoWtzxYc.mjs +0 -684
  203. package/dist/dist-DuQlxGyN.js +0 -1
  204. package/dist/dist-KFF7QKuL.js +0 -1
  205. package/dist/dist-RXrZgzkO.js +0 -1
  206. package/dist/dist-R_G5UQRm.js +0 -1
  207. package/dist/dist-dwRwxUPt.mjs +0 -22
  208. package/dist/dist-fzmUl3YX.mjs +0 -553
  209. package/dist/dist-hBsne-A2.mjs +0 -92
  210. package/dist/dist-ljiGYyay.mjs +0 -29
  211. package/dist/dist-pqMcQ1Nk.js +0 -1
  212. package/dist/dist-zmnQp5Xf.js +0 -1
  213. package/dist/dropdown-menu-ChuqZeix.js +0 -1
  214. package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
  215. package/dist/es2015-BooeZGhO.mjs +0 -554
  216. package/dist/es2015-Dggv0vx3.js +0 -41
  217. package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
  218. package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
  219. package/dist/hover-card-BeqCs_2R.js +0 -1
  220. package/dist/hover-card-w8PmCyw2.mjs +0 -176
  221. package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
  222. package/dist/input-otp-CTRB_0Xp.js +0 -20
  223. package/dist/label-Da0kELfR.mjs +0 -26
  224. package/dist/label-JMa1tFfC.js +0 -1
  225. package/dist/menubar-B7sRxpE4.mjs +0 -405
  226. package/dist/menubar-Bd-QKMcw.js +0 -1
  227. package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
  228. package/dist/message-scroller-BJb4Mh_I.js +0 -1
  229. package/dist/navigation-menu-B-RwfscB.mjs +0 -638
  230. package/dist/navigation-menu-kPwxYZCR.js +0 -1
  231. package/dist/popover-Cq5cTNtC.js +0 -1
  232. package/dist/popover-T6Ra737i.mjs +0 -241
  233. package/dist/progress-e9YzxvRo.mjs +0 -90
  234. package/dist/progress-iUSEI7J9.js +0 -6
  235. package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
  236. package/dist/questionnaire-CcymIPae.js +0 -1
  237. package/dist/radio-group-BKpiDcIb.mjs +0 -264
  238. package/dist/radio-group-DPEzCmxe.js +0 -1
  239. package/dist/resizable-ByF0NmN9.mjs +0 -2153
  240. package/dist/resizable-oL3v42zT.js +0 -1
  241. package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
  242. package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
  243. package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
  244. package/dist/scroll-area-s4_ZJK59.js +0 -1
  245. package/dist/select-B_nRxX2Y.mjs +0 -831
  246. package/dist/select-j5_dph9S.js +0 -1
  247. package/dist/separator-Bn-3XUSJ.js +0 -1
  248. package/dist/separator-CCcMNS78.mjs +0 -38
  249. package/dist/sidebar-Cnem2n5A.js +0 -1
  250. package/dist/slider-B2PUTc7W.mjs +0 -484
  251. package/dist/slider-wZuXwuib.js +0 -1
  252. package/dist/switch-CD675xU7.js +0 -1
  253. package/dist/switch-ikzIzrme.mjs +0 -172
  254. package/dist/tabs-DCm5zOYB.mjs +0 -158
  255. package/dist/tabs-fcahDQDp.js +0 -1
  256. package/dist/theme-toggle-BGTJsIA-.js +0 -1
  257. package/dist/toast-C31v9P1K.js +0 -1
  258. package/dist/toast-vU5ISM03.mjs +0 -445
  259. package/dist/toaster-CaJyOCyC.js +0 -1
  260. package/dist/toggle-CSZdCCwX.js +0 -1
  261. package/dist/toggle-Cv9YYwLI.mjs +0 -58
  262. package/dist/toggle-group-RT8wyBwK.js +0 -1
  263. package/dist/toggle-group-qvjasXS-.mjs +0 -166
  264. package/dist/tooltip-7ERoN5mV.mjs +0 -386
  265. package/dist/tooltip-CC9_spXT.js +0 -1
@@ -1,554 +0,0 @@
1
- import * as e from "react";
2
- import { useState as t } from "react";
3
- // ../../node_modules/.bun/@radix-ui+react-focus-guards@1.2.0+0ac650c021fb1b59/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
4
- var n = Object.defineProperty, r = (e, t) => n(e, "name", {
5
- value: t,
6
- configurable: !0
7
- }), i = 0, a = null;
8
- function o(e) {
9
- return s(), e.children;
10
- }
11
- r(o, "FocusGuards");
12
- function s() {
13
- e.useEffect(() => {
14
- a ||= {
15
- start: c(),
16
- end: c()
17
- };
18
- let { start: e, end: t } = a;
19
- return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), i++, () => {
20
- i === 1 && (a?.start.remove(), a?.end.remove(), a = null), i = Math.max(0, i - 1);
21
- };
22
- }, []);
23
- }
24
- r(s, "useFocusGuards");
25
- function c() {
26
- let e = document.createElement("span");
27
- 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;
28
- }
29
- r(c, "createFocusGuard");
30
- // ../../node_modules/.bun/tslib@2.9.1/node_modules/tslib/tslib.es6.mjs
31
- var l = function() {
32
- return l = Object.assign || function(e) {
33
- for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
34
- return e;
35
- }, l.apply(this, arguments);
36
- };
37
- function u(e, t) {
38
- var n = {};
39
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
40
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
41
- return n;
42
- }
43
- function d(e, t, n) {
44
- if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
45
- return e.concat(a || Array.prototype.slice.call(t));
46
- }
47
- // ../../node_modules/.bun/react-remove-scroll-bar@2.3.8+0ac650c021fb1b59/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
48
- var f = "right-scroll-bar-position", p = "width-before-scroll-bar", m = "with-scroll-bars-hidden", h = "--removed-body-scroll-bar-size";
49
- // ../../node_modules/.bun/use-callback-ref@1.3.3+0ac650c021fb1b59/node_modules/use-callback-ref/dist/es2015/assignRef.js
50
- function g(e, t) {
51
- return typeof e == "function" ? e(t) : e && (e.current = t), e;
52
- }
53
- // ../../node_modules/.bun/use-callback-ref@1.3.3+0ac650c021fb1b59/node_modules/use-callback-ref/dist/es2015/useRef.js
54
- function _(e, n) {
55
- var r = t(function() {
56
- return {
57
- value: e,
58
- callback: n,
59
- facade: {
60
- get current() {
61
- return r.value;
62
- },
63
- set current(e) {
64
- var t = r.value;
65
- t !== e && (r.value = e, r.callback(e, t));
66
- }
67
- }
68
- };
69
- })[0];
70
- return r.callback = n, r.facade;
71
- }
72
- // ../../node_modules/.bun/use-callback-ref@1.3.3+0ac650c021fb1b59/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
73
- var v = typeof window < "u" ? e.useLayoutEffect : e.useEffect, y = /* @__PURE__ */ new WeakMap();
74
- function ee(e, t) {
75
- var n = _(t || null, function(t) {
76
- return e.forEach(function(e) {
77
- return g(e, t);
78
- });
79
- });
80
- return v(function() {
81
- var t = y.get(n);
82
- if (t) {
83
- var r = new Set(t), i = new Set(e), a = n.current;
84
- r.forEach(function(e) {
85
- i.has(e) || g(e, null);
86
- }), i.forEach(function(e) {
87
- r.has(e) || g(e, a);
88
- });
89
- }
90
- y.set(n, e);
91
- }, [e]), n;
92
- }
93
- // ../../node_modules/.bun/use-sidecar@1.1.3+0ac650c021fb1b59/node_modules/use-sidecar/dist/es2015/medium.js
94
- function b(e) {
95
- return e;
96
- }
97
- function x(e, t) {
98
- t === void 0 && (t = b);
99
- var n = [], r = !1;
100
- return {
101
- read: function() {
102
- if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
103
- return n.length ? n[n.length - 1] : e;
104
- },
105
- useMedium: function(e) {
106
- var i = t(e, r);
107
- return n.push(i), function() {
108
- n = n.filter(function(e) {
109
- return e !== i;
110
- });
111
- };
112
- },
113
- assignSyncMedium: function(e) {
114
- for (r = !0; n.length;) {
115
- var t = n;
116
- n = [], t.forEach(e);
117
- }
118
- n = {
119
- push: function(t) {
120
- return e(t);
121
- },
122
- filter: function() {
123
- return n;
124
- }
125
- };
126
- },
127
- assignMedium: function(e) {
128
- r = !0;
129
- var t = [];
130
- if (n.length) {
131
- var i = n;
132
- n = [], i.forEach(e), t = n;
133
- }
134
- var a = function() {
135
- var n = t;
136
- t = [], n.forEach(e);
137
- }, o = function() {
138
- return Promise.resolve().then(a);
139
- };
140
- o(), n = {
141
- push: function(e) {
142
- t.push(e), o();
143
- },
144
- filter: function(e) {
145
- return t = t.filter(e), n;
146
- }
147
- };
148
- }
149
- };
150
- }
151
- function S(e) {
152
- e === void 0 && (e = {});
153
- var t = x(null);
154
- return t.options = l({
155
- async: !0,
156
- ssr: !1
157
- }, e), t;
158
- }
159
- // ../../node_modules/.bun/use-sidecar@1.1.3+0ac650c021fb1b59/node_modules/use-sidecar/dist/es2015/exports.js
160
- var C = function(t) {
161
- var n = t.sideCar, r = u(t, ["sideCar"]);
162
- if (!n) throw Error("Sidecar: please provide `sideCar` property to import the right car");
163
- var i = n.read();
164
- if (!i) throw Error("Sidecar medium not found");
165
- return e.createElement(i, l({}, r));
166
- };
167
- C.isSideCarExport = !0;
168
- function w(e, t) {
169
- return e.useMedium(t), C;
170
- }
171
- // ../../node_modules/.bun/react-remove-scroll@2.7.2+0ac650c021fb1b59/node_modules/react-remove-scroll/dist/es2015/medium.js
172
- var T = S(), E = function() {}, D = e.forwardRef(function(t, n) {
173
- var r = e.useRef(null), i = e.useState({
174
- onScrollCapture: E,
175
- onWheelCapture: E,
176
- onTouchMoveCapture: E
177
- }), a = i[0], o = i[1], s = t.forwardProps, c = t.children, d = t.className, f = t.removeScrollBar, p = t.enabled, m = t.shards, h = t.sideCar, g = t.noRelative, _ = t.noIsolation, v = t.inert, y = t.allowPinchZoom, b = t.as, x = b === void 0 ? "div" : b, S = t.gapMode, C = u(t, [
178
- "forwardProps",
179
- "children",
180
- "className",
181
- "removeScrollBar",
182
- "enabled",
183
- "shards",
184
- "sideCar",
185
- "noRelative",
186
- "noIsolation",
187
- "inert",
188
- "allowPinchZoom",
189
- "as",
190
- "gapMode"
191
- ]), w = h, D = ee([r, n]), O = l(l({}, C), a);
192
- return e.createElement(e.Fragment, null, p && e.createElement(w, {
193
- sideCar: T,
194
- removeScrollBar: f,
195
- shards: m,
196
- noRelative: g,
197
- noIsolation: _,
198
- inert: v,
199
- setCallbacks: o,
200
- allowPinchZoom: !!y,
201
- lockRef: r,
202
- gapMode: S
203
- }), s ? e.cloneElement(e.Children.only(c), l(l({}, O), { ref: D })) : e.createElement(x, l({}, O, {
204
- className: d,
205
- ref: D
206
- }), c));
207
- });
208
- D.defaultProps = {
209
- enabled: !0,
210
- removeScrollBar: !0,
211
- inert: !1
212
- }, D.classNames = {
213
- fullWidth: p,
214
- zeroRight: f
215
- };
216
- // ../../node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
217
- var O = function() {
218
- if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
219
- };
220
- // ../../node_modules/.bun/react-style-singleton@2.2.3+0ac650c021fb1b59/node_modules/react-style-singleton/dist/es2015/singleton.js
221
- function k() {
222
- if (!document) return null;
223
- var e = document.createElement("style");
224
- e.type = "text/css";
225
- var t = O();
226
- return t && e.setAttribute("nonce", t), e;
227
- }
228
- function te(e, t) {
229
- e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
230
- }
231
- function ne(e) {
232
- (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
233
- }
234
- var re = function() {
235
- var e = 0, t = null;
236
- return {
237
- add: function(n) {
238
- e == 0 && (t = k()) && (te(t, n), ne(t)), e++;
239
- },
240
- remove: function() {
241
- e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
242
- }
243
- };
244
- }, ie = function() {
245
- var t = re();
246
- return function(n, r) {
247
- e.useEffect(function() {
248
- return t.add(n), function() {
249
- t.remove();
250
- };
251
- }, [n && r]);
252
- };
253
- }, A = function() {
254
- var e = ie();
255
- return function(t) {
256
- var n = t.styles, r = t.dynamic;
257
- return e(n, r), null;
258
- };
259
- }, j = {
260
- left: 0,
261
- top: 0,
262
- right: 0,
263
- gap: 0
264
- }, M = function(e) {
265
- return parseInt(e || "", 10) || 0;
266
- }, ae = function(e) {
267
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
268
- return [
269
- M(n),
270
- M(r),
271
- M(i)
272
- ];
273
- }, N = function(e) {
274
- if (e === void 0 && (e = "margin"), typeof window > "u") return j;
275
- var t = ae(e), n = document.documentElement.clientWidth, r = window.innerWidth;
276
- return {
277
- left: t[0],
278
- top: t[1],
279
- right: t[2],
280
- gap: Math.max(0, r - n + t[2] - t[0])
281
- };
282
- }, oe = A(), P = "data-scroll-locked", se = function(e, t, n, r) {
283
- var i = e.left, a = e.top, o = e.right, s = e.gap;
284
- return n === void 0 && (n = "margin"), `
285
- .${m} {
286
- overflow: hidden ${r};
287
- padding-right: ${s}px ${r};
288
- }
289
- body[${P}] {
290
- overflow: hidden ${r};
291
- overscroll-behavior: contain;
292
- ${[
293
- t && `position: relative ${r};`,
294
- n === "margin" && `
295
- padding-left: ${i}px;
296
- padding-top: ${a}px;
297
- padding-right: ${o}px;
298
- margin-left:0;
299
- margin-top:0;
300
- margin-right: ${s}px ${r};
301
- `,
302
- n === "padding" && `padding-right: ${s}px ${r};`
303
- ].filter(Boolean).join("")}
304
- }
305
-
306
- .${f} {
307
- right: ${s}px ${r};
308
- }
309
-
310
- .${p} {
311
- margin-right: ${s}px ${r};
312
- }
313
-
314
- .${f} .${f} {
315
- right: 0 ${r};
316
- }
317
-
318
- .${p} .${p} {
319
- margin-right: 0 ${r};
320
- }
321
-
322
- body[${P}] {
323
- ${h}: ${s}px;
324
- }
325
- `;
326
- }, F = function() {
327
- var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
328
- return isFinite(e) ? e : 0;
329
- }, ce = function() {
330
- e.useEffect(function() {
331
- return document.body.setAttribute(P, (F() + 1).toString()), function() {
332
- var e = F() - 1;
333
- e <= 0 ? document.body.removeAttribute(P) : document.body.setAttribute(P, e.toString());
334
- };
335
- }, []);
336
- }, le = function(t) {
337
- var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
338
- ce();
339
- var o = e.useMemo(function() {
340
- return N(a);
341
- }, [a]);
342
- return e.createElement(oe, { styles: se(o, !n, a, r ? "" : "!important") });
343
- }, I = !1;
344
- if (typeof window < "u") try {
345
- var L = Object.defineProperty({}, "passive", { get: function() {
346
- return I = !0, !0;
347
- } });
348
- window.addEventListener("test", L, L), window.removeEventListener("test", L, L);
349
- } catch {
350
- I = !1;
351
- }
352
- var R = I ? { passive: !1 } : !1, ue = function(e) {
353
- return e.tagName === "TEXTAREA";
354
- }, z = function(e, t) {
355
- if (!(e instanceof Element)) return !1;
356
- var n = window.getComputedStyle(e);
357
- return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !ue(e) && n[t] === "visible");
358
- }, de = function(e) {
359
- return z(e, "overflowY");
360
- }, B = function(e) {
361
- return z(e, "overflowX");
362
- }, V = function(e, t) {
363
- var n = t.ownerDocument, r = t;
364
- do {
365
- if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), H(e, r)) {
366
- var i = U(e, r);
367
- if (i[1] > i[2]) return !0;
368
- }
369
- r = r.parentNode;
370
- } while (r && r !== n.body);
371
- return !1;
372
- }, fe = function(e) {
373
- return [
374
- e.scrollTop,
375
- e.scrollHeight,
376
- e.clientHeight
377
- ];
378
- }, pe = function(e) {
379
- return [
380
- e.scrollLeft,
381
- e.scrollWidth,
382
- e.clientWidth
383
- ];
384
- }, H = function(e, t) {
385
- return e === "v" ? de(t) : B(t);
386
- }, U = function(e, t) {
387
- return e === "v" ? fe(t) : pe(t);
388
- }, me = function(e, t) {
389
- return e === "h" && t === "rtl" ? -1 : 1;
390
- }, he = function(e, t, n, r, i) {
391
- var a = me(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
392
- do {
393
- if (!s) break;
394
- var p = U(e, s), m = p[0], h = p[1] - p[2] - a * m;
395
- (m || h) && H(e, s) && (d += h, f += m);
396
- var g = s.parentNode;
397
- s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
398
- } while (!c && s !== document.body || c && (t.contains(s) || t === s));
399
- return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
400
- }, W = function(e) {
401
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
402
- }, G = function(e) {
403
- return [e.deltaX, e.deltaY];
404
- }, K = function(e) {
405
- return e && "current" in e ? e.current : e;
406
- }, ge = function(e, t) {
407
- return e[0] === t[0] && e[1] === t[1];
408
- }, _e = function(e) {
409
- return `
410
- .block-interactivity-${e} {pointer-events: none;}
411
- .allow-interactivity-${e} {pointer-events: all;}
412
- `;
413
- }, ve = 0, q = [];
414
- function ye(t) {
415
- var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(ve++)[0], o = e.useState(A)[0], s = e.useRef(t);
416
- e.useEffect(function() {
417
- s.current = t;
418
- }, [t]), e.useEffect(function() {
419
- if (t.inert) {
420
- document.body.classList.add(`block-interactivity-${a}`);
421
- var e = d([t.lockRef.current], (t.shards || []).map(K), !0).filter(Boolean);
422
- return e.forEach(function(e) {
423
- return e.classList.add(`allow-interactivity-${a}`);
424
- }), function() {
425
- document.body.classList.remove(`block-interactivity-${a}`), e.forEach(function(e) {
426
- return e.classList.remove(`allow-interactivity-${a}`);
427
- });
428
- };
429
- }
430
- }, [
431
- t.inert,
432
- t.lockRef.current,
433
- t.shards
434
- ]);
435
- var c = e.useCallback(function(e, t) {
436
- if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !s.current.allowPinchZoom;
437
- var n = W(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
438
- if ("touches" in e && d === "h" && u.type === "range") return !1;
439
- var f = window.getSelection(), p = f && f.anchorNode;
440
- if (p && (p === u || p.contains(u))) return !1;
441
- var m = V(d, u);
442
- if (!m) return !0;
443
- if (m ? l = d : (l = d === "v" ? "h" : "v", m = V(d, u)), !m) return !1;
444
- if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
445
- var h = i.current || l;
446
- return he(h, t, e, h === "h" ? o : c, !0);
447
- }, []), l = e.useCallback(function(e) {
448
- var t = e;
449
- if (q.length && q[q.length - 1] === o) {
450
- var r = "deltaY" in t ? G(t) : W(t), i = n.current.filter(function(e) {
451
- return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && ge(e.delta, r);
452
- })[0];
453
- if (i && i.should) t.cancelable && t.preventDefault();
454
- else if (!i) {
455
- var a = (s.current.shards || []).map(K).filter(Boolean).filter(function(e) {
456
- return e.contains(t.target);
457
- });
458
- (a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
459
- }
460
- }
461
- }, []), u = e.useCallback(function(e, t, r, i) {
462
- var a = {
463
- name: e,
464
- delta: t,
465
- target: r,
466
- should: i,
467
- shadowParent: be(r)
468
- };
469
- n.current.push(a), setTimeout(function() {
470
- n.current = n.current.filter(function(e) {
471
- return e !== a;
472
- });
473
- }, 1);
474
- }, []), f = e.useCallback(function(e) {
475
- r.current = W(e), i.current = void 0;
476
- }, []), p = e.useCallback(function(e) {
477
- u(e.type, G(e), e.target, c(e, t.lockRef.current));
478
- }, []), m = e.useCallback(function(e) {
479
- u(e.type, W(e), e.target, c(e, t.lockRef.current));
480
- }, []);
481
- e.useEffect(function() {
482
- return q.push(o), t.setCallbacks({
483
- onScrollCapture: p,
484
- onWheelCapture: p,
485
- onTouchMoveCapture: m
486
- }), document.addEventListener("wheel", l, R), document.addEventListener("touchmove", l, R), document.addEventListener("touchstart", f, R), function() {
487
- q = q.filter(function(e) {
488
- return e !== o;
489
- }), document.removeEventListener("wheel", l, R), document.removeEventListener("touchmove", l, R), document.removeEventListener("touchstart", f, R);
490
- };
491
- }, []);
492
- var h = t.removeScrollBar, g = t.inert;
493
- return e.createElement(e.Fragment, null, g ? e.createElement(o, { styles: _e(a) }) : null, h ? e.createElement(le, {
494
- noRelative: t.noRelative,
495
- gapMode: t.gapMode
496
- }) : null);
497
- }
498
- function be(e) {
499
- for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
500
- return t;
501
- }
502
- // ../../node_modules/.bun/react-remove-scroll@2.7.2+0ac650c021fb1b59/node_modules/react-remove-scroll/dist/es2015/sidecar.js
503
- var xe = w(T, ye), J = e.forwardRef(function(t, n) {
504
- return e.createElement(D, l({}, t, {
505
- ref: n,
506
- sideCar: xe
507
- }));
508
- });
509
- J.classNames = D.classNames;
510
- // ../../node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
511
- var Se = function(e) {
512
- return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
513
- }, Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = {}, Q = 0, $ = function(e) {
514
- return e && (e.host || $(e.parentNode));
515
- }, Ce = function(e, t) {
516
- return t.map(function(t) {
517
- if (e.contains(t)) return t;
518
- var n = $(t);
519
- return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
520
- }).filter(function(e) {
521
- return !!e;
522
- });
523
- }, we = function(e, t, n, r) {
524
- var i = Ce(t, Array.isArray(e) ? e : [e]);
525
- Z[n] || (Z[n] = /* @__PURE__ */ new WeakMap());
526
- var a = Z[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
527
- e && !s.has(e) && (s.add(e), l(e.parentNode));
528
- };
529
- i.forEach(l);
530
- var u = function(e) {
531
- e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
532
- if (s.has(e)) u(e);
533
- else try {
534
- var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Y.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
535
- Y.set(e, c), a.set(e, l), o.push(e), c === 1 && i && X.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
536
- } catch (t) {
537
- console.error("aria-hidden: cannot operate on ", e, t);
538
- }
539
- });
540
- };
541
- return u(t), s.clear(), Q++, function() {
542
- o.forEach(function(e) {
543
- var t = Y.get(e) - 1, i = a.get(e) - 1;
544
- Y.set(e, t), a.set(e, i), t || (X.has(e) || e.removeAttribute(r), X.delete(e)), i || e.removeAttribute(n);
545
- }), Q--, Q || (Y = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = {});
546
- };
547
- }, Te = function(e, t, n) {
548
- n === void 0 && (n = "data-aria-hidden");
549
- var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Se(e);
550
- return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), we(r, i, n, "aria-hidden")) : function() {
551
- return null;
552
- };
553
- };
554
- export { J as n, s as r, Te as t };
@@ -1,41 +0,0 @@
1
- const e=require("./rolldown-runtime-DbbDpzbe.js");let t=require("react"),n=e.r(t,1);t=e.r(t);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0}),a=0,o=null;function s(e){return c(),e.children}i(s,`FocusGuards`);function c(){n.useEffect(()=>{o||={start:l(),end:l()};let{start:e,end:t}=o;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),a++,()=>{a===1&&(o?.start.remove(),o?.end.remove(),o=null),a=Math.max(0,a-1)}},[])}i(c,`useFocusGuards`);function l(){let 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}i(l,`createFocusGuard`);var u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)};function d(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function f(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var p=`right-scroll-bar-position`,m=`width-before-scroll-bar`,h=`with-scroll-bars-hidden`,g=`--removed-body-scroll-bar-size`;function _(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function v(e,n){var r=(0,t.useState)(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=n,r.facade}var y=typeof window<`u`?t.useLayoutEffect:t.useEffect,b=new WeakMap;function ee(e,t){var n=v(t||null,function(t){return e.forEach(function(e){return _(e,t)})});return y(function(){var t=b.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||_(e,null)}),i.forEach(function(e){r.has(e)||_(e,a)})}b.set(n,e)},[e]),n}function x(e){return e}function S(e,t){t===void 0&&(t=x);var n=[],r=!1;return{read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function C(e){e===void 0&&(e={});var t=S(null);return t.options=u({async:!0,ssr:!1},e),t}var w=function(e){var n=e.sideCar,r=d(e,[`sideCar`]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error(`Sidecar medium not found`);return t.createElement(i,u({},r))};w.isSideCarExport=!0;function T(e,t){return e.useMedium(t),w}var E=C(),D=function(){},O=t.forwardRef(function(e,n){var r=t.useRef(null),i=t.useState({onScrollCapture:D,onWheelCapture:D,onTouchMoveCapture:D}),a=i[0],o=i[1],s=e.forwardProps,c=e.children,l=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,h=e.sideCar,g=e.noRelative,_=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?`div`:b,S=e.gapMode,C=d(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),w=h,T=ee([r,n]),O=u(u({},C),a);return t.createElement(t.Fragment,null,p&&t.createElement(w,{sideCar:E,removeScrollBar:f,shards:m,noRelative:g,noIsolation:_,inert:v,setCallbacks:o,allowPinchZoom:!!y,lockRef:r,gapMode:S}),s?t.cloneElement(t.Children.only(c),u(u({},O),{ref:T})):t.createElement(x,u({},O,{className:l,ref:T}),c))});O.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},O.classNames={fullWidth:m,zeroRight:p};var k,A=function(){if(k)return k;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function te(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=A();return t&&e.setAttribute(`nonce`,t),e}function ne(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function re(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var ie=function(){var e=0,t=null;return{add:function(n){e==0&&(t=te())&&(ne(t,n),re(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ae=function(){var e=ie();return function(n,r){t.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},j=function(){var e=ae();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},oe={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||``,10)||0},se=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[M(n),M(r),M(i)]},ce=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return oe;var t=se(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])}},le=j(),N=`data-scroll-locked`,ue=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
- .${h} {
3
- overflow: hidden ${r};
4
- padding-right: ${s}px ${r};
5
- }
6
- body[${N}] {
7
- overflow: hidden ${r};
8
- overscroll-behavior: contain;
9
- ${[t&&`position: relative ${r};`,n===`margin`&&`
10
- padding-left: ${i}px;
11
- padding-top: ${a}px;
12
- padding-right: ${o}px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: ${s}px ${r};
16
- `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
- }
18
-
19
- .${p} {
20
- right: ${s}px ${r};
21
- }
22
-
23
- .${m} {
24
- margin-right: ${s}px ${r};
25
- }
26
-
27
- .${p} .${p} {
28
- right: 0 ${r};
29
- }
30
-
31
- .${m} .${m} {
32
- margin-right: 0 ${r};
33
- }
34
-
35
- body[${N}] {
36
- ${g}: ${s}px;
37
- }
38
- `},P=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},de=function(){t.useEffect(function(){return document.body.setAttribute(N,(P()+1).toString()),function(){var e=P()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},fe=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?`margin`:i;de();var o=t.useMemo(function(){return ce(a)},[a]);return t.createElement(le,{styles:ue(o,!n,a,r?``:`!important`)})},F=!1;if(typeof window<`u`)try{var I=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener(`test`,I,I),window.removeEventListener(`test`,I,I)}catch{F=!1}var L=F?{passive:!1}:!1,pe=function(e){return e.tagName===`TEXTAREA`},R=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!pe(e)&&n[t]===`visible`)},z=function(e){return R(e,`overflowY`)},me=function(e){return R(e,`overflowX`)},B=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),V(e,r)){var i=H(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},he=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},ge=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},V=function(e,t){return e===`v`?z(t):me(t)},H=function(e,t){return e===`v`?he(t):ge(t)},_e=function(e,t){return e===`h`&&t===`rtl`?-1:1},ve=function(e,t,n,r,i){var a=_e(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=H(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&V(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},U=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W=function(e){return[e.deltaX,e.deltaY]},G=function(e){return e&&`current`in e?e.current:e},ye=function(e,t){return e[0]===t[0]&&e[1]===t[1]},be=function(e){return`
39
- .block-interactivity-${e} {pointer-events: none;}
40
- .allow-interactivity-${e} {pointer-events: all;}
41
- `},xe=0,K=[];function Se(e){var n=t.useRef([]),r=t.useRef([0,0]),i=t.useRef(),a=t.useState(xe++)[0],o=t.useState(j)[0],s=t.useRef(e);t.useEffect(function(){s.current=e},[e]),t.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=f([e.lockRef.current],(e.shards||[]).map(G),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=t.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=U(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=B(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=B(d,u)),!m)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var h=i.current||l;return ve(h,t,e,h===`h`?o:c,!0)},[]),l=t.useCallback(function(e){var t=e;if(K.length&&K[K.length-1]===o){var r=`deltaY`in t?W(t):U(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&ye(e.delta,r)})[0];if(i&&i.should)t.cancelable&&t.preventDefault();else if(!i){var a=(s.current.shards||[]).map(G).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?c(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=t.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:Ce(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=t.useCallback(function(e){r.current=U(e),i.current=void 0},[]),p=t.useCallback(function(t){u(t.type,W(t),t.target,c(t,e.lockRef.current))},[]),m=t.useCallback(function(t){u(t.type,U(t),t.target,c(t,e.lockRef.current))},[]);t.useEffect(function(){return K.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener(`wheel`,l,L),document.addEventListener(`touchmove`,l,L),document.addEventListener(`touchstart`,d,L),function(){K=K.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,L),document.removeEventListener(`touchmove`,l,L),document.removeEventListener(`touchstart`,d,L)}},[]);var h=e.removeScrollBar,g=e.inert;return t.createElement(t.Fragment,null,g?t.createElement(o,{styles:be(a)}):null,h?t.createElement(fe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ce(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var q=T(E,Se),J=t.forwardRef(function(e,n){return t.createElement(O,u({},e,{ref:n,sideCar:q}))});J.classNames=O.classNames;var we=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Y=new WeakMap,X=new WeakMap,Z={},Q=0,$=function(e){return e&&(e.host||$(e.parentNode))},Te=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=$(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ee=function(e,t,n,r){var i=Te(t,Array.isArray(e)?e:[e]);Z[n]||(Z[n]=new WeakMap);var a=Z[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Y.get(e)||0)+1,l=(a.get(e)||0)+1;Y.set(e,c),a.set(e,l),o.push(e),c===1&&i&&X.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Q++,function(){o.forEach(function(e){var t=Y.get(e)-1,i=a.get(e)-1;Y.set(e,t),a.set(e,i),t||(X.has(e)||e.removeAttribute(r),X.delete(e)),i||e.removeAttribute(n)}),Q--,Q||(Y=new WeakMap,Y=new WeakMap,X=new WeakMap,Z={})}},De=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||we(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ee(r,i,n,`aria-hidden`)):function(){return null}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return De}});