@gv-tech/ui-web 2.29.1 → 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 (273) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.mjs +53 -2
  3. package/dist/alert-dialog.cjs +1 -1
  4. package/dist/alert-dialog.mjs +99 -2
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.mjs +2 -3
  7. package/dist/aspect-ratio.cjs +1 -1
  8. package/dist/aspect-ratio.mjs +10 -2
  9. package/dist/attachment.cjs +1 -1
  10. package/dist/attachment.mjs +26 -26
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.mjs +49 -2
  13. package/dist/badge.cjs +1 -1
  14. package/dist/badge.mjs +5 -5
  15. package/dist/breadcrumb.cjs +1 -1
  16. package/dist/breadcrumb.mjs +13 -13
  17. package/dist/bubble.cjs +1 -1
  18. package/dist/bubble.mjs +5 -5
  19. package/dist/button-group.cjs +1 -1
  20. package/dist/button-group.mjs +13 -13
  21. package/dist/button.cjs +1 -1
  22. package/dist/button.mjs +5 -5
  23. package/dist/calendar.cjs +1 -1
  24. package/dist/calendar.mjs +97 -2
  25. package/dist/card.cjs +1 -1
  26. package/dist/card.mjs +2 -3
  27. package/dist/carousel.cjs +1 -1
  28. package/dist/carousel.mjs +107 -2
  29. package/dist/chart.cjs +2 -2
  30. package/dist/chart.mjs +14 -15
  31. package/dist/checkbox.cjs +1 -1
  32. package/dist/checkbox.mjs +19 -2
  33. package/dist/collapsible.cjs +1 -1
  34. package/dist/collapsible.mjs +13 -14
  35. package/dist/combobox.cjs +1 -1
  36. package/dist/combobox.mjs +161 -2
  37. package/dist/command.cjs +1 -1
  38. package/dist/command.mjs +89 -2
  39. package/dist/context-menu.cjs +1 -1
  40. package/dist/context-menu.mjs +123 -2
  41. package/dist/dialog.cjs +1 -1
  42. package/dist/dialog.mjs +41 -42
  43. package/dist/direction.cjs +1 -1
  44. package/dist/direction.mjs +8 -9
  45. package/dist/drawer.cjs +1 -1
  46. package/dist/drawer.mjs +2 -3
  47. package/dist/dropdown-menu.cjs +1 -1
  48. package/dist/dropdown-menu.mjs +126 -2
  49. package/dist/empty.cjs +1 -1
  50. package/dist/empty.mjs +2 -3
  51. package/dist/field.cjs +1 -1
  52. package/dist/field.mjs +37 -38
  53. package/dist/form.cjs +1 -1
  54. package/dist/form.mjs +34 -35
  55. package/dist/hooks/use-theme.d.ts +52 -52
  56. package/dist/hover-card.cjs +1 -1
  57. package/dist/hover-card.mjs +30 -2
  58. package/dist/index.cjs +1 -1
  59. package/dist/index.mjs +66 -66
  60. package/dist/input-group.cjs +1 -1
  61. package/dist/input-group.mjs +27 -28
  62. package/dist/input-otp.cjs +1 -1
  63. package/dist/input-otp.mjs +45 -2
  64. package/dist/input.cjs +1 -1
  65. package/dist/input.mjs +2 -3
  66. package/dist/item.cjs +1 -1
  67. package/dist/item.mjs +29 -29
  68. package/dist/kbd.cjs +1 -1
  69. package/dist/kbd.mjs +2 -3
  70. package/dist/label.cjs +1 -1
  71. package/dist/label.mjs +13 -2
  72. package/dist/marker.cjs +1 -1
  73. package/dist/marker.mjs +5 -5
  74. package/dist/menubar.cjs +1 -1
  75. package/dist/menubar.mjs +133 -2
  76. package/dist/message-scroller.cjs +1 -1
  77. package/dist/message-scroller.mjs +59 -2
  78. package/dist/message.cjs +1 -1
  79. package/dist/message.mjs +2 -3
  80. package/dist/native-select.cjs +1 -1
  81. package/dist/native-select.mjs +2 -3
  82. package/dist/navigation-menu.cjs +1 -1
  83. package/dist/navigation-menu.mjs +79 -2
  84. package/dist/pagination.cjs +1 -1
  85. package/dist/pagination.mjs +15 -16
  86. package/dist/popover.cjs +1 -1
  87. package/dist/popover.mjs +54 -2
  88. package/dist/progress.cjs +1 -1
  89. package/dist/progress.mjs +19 -2
  90. package/dist/questionnaire.cjs +1 -1
  91. package/dist/questionnaire.mjs +168 -2
  92. package/dist/radio-group.cjs +1 -1
  93. package/dist/radio-group.mjs +25 -2
  94. package/dist/resizable.cjs +1 -1
  95. package/dist/resizable.mjs +26 -2
  96. package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
  97. package/dist/scroll-area.cjs +1 -1
  98. package/dist/scroll-area.mjs +35 -2
  99. package/dist/scroll-to-top.cjs +1 -1
  100. package/dist/scroll-to-top.mjs +6 -11
  101. package/dist/search.cjs +1 -1
  102. package/dist/search.mjs +12 -13
  103. package/dist/select.cjs +1 -1
  104. package/dist/select.mjs +98 -2
  105. package/dist/separator.cjs +1 -1
  106. package/dist/separator.mjs +15 -2
  107. package/dist/sheet.cjs +1 -1
  108. package/dist/sheet.mjs +39 -40
  109. package/dist/{sidebar-DM9ee9wf.mjs → sidebar-DrU3nKaL.mjs} +137 -135
  110. package/dist/sidebar-uOtFHnBs.js +1 -0
  111. package/dist/sidebar.cjs +1 -1
  112. package/dist/sidebar.mjs +3 -2
  113. package/dist/skeleton.cjs +1 -1
  114. package/dist/skeleton.mjs +2 -3
  115. package/dist/slider.cjs +1 -1
  116. package/dist/slider.mjs +34 -2
  117. package/dist/sonner.mjs +1 -2
  118. package/dist/spinner.cjs +1 -1
  119. package/dist/spinner.mjs +2 -3
  120. package/dist/support-fab.cjs +1 -1
  121. package/dist/support-fab.mjs +21 -22
  122. package/dist/switch.cjs +1 -1
  123. package/dist/switch.mjs +18 -2
  124. package/dist/table-of-contents.cjs +1 -1
  125. package/dist/table-of-contents.mjs +5 -6
  126. package/dist/table.cjs +1 -1
  127. package/dist/table.mjs +2 -3
  128. package/dist/tabs.cjs +1 -1
  129. package/dist/tabs.mjs +44 -2
  130. package/dist/text.cjs +1 -1
  131. package/dist/text.mjs +14 -12
  132. package/dist/textarea.cjs +1 -1
  133. package/dist/textarea.mjs +2 -3
  134. package/dist/theme-provider.mjs +1 -2
  135. package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-9KtAIRxy.mjs} +18 -20
  136. package/dist/theme-toggle-DkNI3bfh.js +1 -0
  137. package/dist/theme-toggle.cjs +1 -1
  138. package/dist/theme-toggle.mjs +2 -2
  139. package/dist/toast.cjs +1 -1
  140. package/dist/toast.mjs +52 -2
  141. package/dist/{toaster-gT2b7mfE.mjs → toaster-8RrHPtlc.mjs} +10 -12
  142. package/dist/toaster-AFud4l6l.js +1 -0
  143. package/dist/toaster.cjs +1 -1
  144. package/dist/toaster.mjs +2 -2
  145. package/dist/toggle-group.cjs +1 -1
  146. package/dist/toggle-group.mjs +49 -2
  147. package/dist/toggle.cjs +1 -1
  148. package/dist/toggle.mjs +35 -2
  149. package/dist/tooltip.cjs +1 -1
  150. package/dist/tooltip.mjs +34 -2
  151. package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
  152. package/package.json +3 -3
  153. package/dist/accordion-D5QXSsCK.mjs +0 -248
  154. package/dist/accordion-DjyDOX-h.js +0 -1
  155. package/dist/alert-dialog-B-a0Wa1M.mjs +0 -182
  156. package/dist/alert-dialog-DYQAhGBC.js +0 -1
  157. package/dist/aspect-ratio-C-KOOyGP.js +0 -1
  158. package/dist/aspect-ratio-s7Ji1MSr.mjs +0 -40
  159. package/dist/avatar-4K3XjhP8.js +0 -1
  160. package/dist/avatar-d8Di248f.mjs +0 -138
  161. package/dist/calendar-DFj14O6r.js +0 -1
  162. package/dist/calendar-UW8h9dfh.mjs +0 -3182
  163. package/dist/carousel-CNGpg5df.js +0 -1
  164. package/dist/carousel-DG9xGJns.mjs +0 -1171
  165. package/dist/checkbox-BCgbTAdU.js +0 -1
  166. package/dist/checkbox-Dq8VHKDH.mjs +0 -186
  167. package/dist/chunk-BmowowmI.mjs +0 -14
  168. package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
  169. package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +0 -63
  170. package/dist/chunk-mLOUI7ql.js +0 -1
  171. package/dist/combobox-CpPIGtPJ.js +0 -4
  172. package/dist/combobox-b4OmCNw1.mjs +0 -5887
  173. package/dist/command-5hobOyGG.mjs +0 -545
  174. package/dist/command-Dbqnm9kI.js +0 -1
  175. package/dist/context-menu-DyTUismw.js +0 -1
  176. package/dist/context-menu-DzzU-_v8.mjs +0 -317
  177. package/dist/dist-1zUKVGvf.js +0 -1
  178. package/dist/dist-B057I8ju.mjs +0 -30
  179. package/dist/dist-BB78QQyQ.mjs +0 -41
  180. package/dist/dist-BBvidwzC.js +0 -1
  181. package/dist/dist-BEbV0Hal.mjs +0 -45
  182. package/dist/dist-BPL7gUpg.mjs +0 -18
  183. package/dist/dist-BTUvBzOm.js +0 -1
  184. package/dist/dist-BU-TFzJf.js +0 -1
  185. package/dist/dist-Bb5W_J2F.mjs +0 -39
  186. package/dist/dist-BbI6NHqR.mjs +0 -23
  187. package/dist/dist-BexAB6yo.mjs +0 -192
  188. package/dist/dist-BgXIqHHq.js +0 -1
  189. package/dist/dist-Bvfb4y_L.mjs +0 -100
  190. package/dist/dist-C8Pm6LRc.js +0 -1
  191. package/dist/dist-CGgemr2V.js +0 -1
  192. package/dist/dist-CPAF050o.mjs +0 -90
  193. package/dist/dist-CS572Be42.mjs +0 -11
  194. package/dist/dist-CUvxOuXM.mjs +0 -551
  195. package/dist/dist-C_iFkwIX.js +0 -1
  196. package/dist/dist-ClYM7l1t.js +0 -1
  197. package/dist/dist-CpKLY_uZ.mjs +0 -96
  198. package/dist/dist-D1qkELLT.js +0 -1
  199. package/dist/dist-D7-Fky36.js +0 -1
  200. package/dist/dist-DEpkkABT.js +0 -1
  201. package/dist/dist-DI1vapnL.mjs +0 -20
  202. package/dist/dist-DJqkhIXb2.js +0 -1
  203. package/dist/dist-DKXojpVG.js +0 -1
  204. package/dist/dist-DYUvPCPC.js +0 -1
  205. package/dist/dist-DZiOPWLp.js +0 -1
  206. package/dist/dist-DatgTWLz.mjs +0 -202
  207. package/dist/dist-Dm3IQk5b.mjs +0 -685
  208. package/dist/dist-DoivLw3t.js +0 -1
  209. package/dist/dist-Dq-h6VAy.mjs +0 -118
  210. package/dist/dist-Dt6m-kwU.mjs +0 -221
  211. package/dist/dist-E8ieJTBC.mjs +0 -190
  212. package/dist/dist-GazS1kfR.mjs +0 -5
  213. package/dist/dist-N97cIp0_.js +0 -1
  214. package/dist/dist-OqDzLHTa.mjs +0 -460
  215. package/dist/dist-Qm9hFvM1.js +0 -1
  216. package/dist/dist-UkWa-Arh.mjs +0 -16
  217. package/dist/dist-UnTrOmPV.js +0 -1
  218. package/dist/dist-YAADIsyo.js +0 -1
  219. package/dist/dist-Zs2sjYhL.js +0 -1
  220. package/dist/dist-hFLuJoMi.js +0 -1
  221. package/dist/dist-s7ibhASj.mjs +0 -181
  222. package/dist/dist-vu20fMUK.mjs +0 -93
  223. package/dist/dropdown-menu-BqAhn64y.mjs +0 -313
  224. package/dist/dropdown-menu-BtKOr--r.js +0 -1
  225. package/dist/es2015-DbAsWDbs.js +0 -41
  226. package/dist/es2015-DbsmTzuc.mjs +0 -571
  227. package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
  228. package/dist/floating-ui.react-dom-CyupHsR6.mjs +0 -1062
  229. package/dist/hover-card-DMsxpR9G.mjs +0 -178
  230. package/dist/hover-card-DWXusgiI.js +0 -1
  231. package/dist/input-otp-D49Y9VcH.mjs +0 -409
  232. package/dist/input-otp-u3obpt-Q.js +0 -20
  233. package/dist/label-Dacwh21G.js +0 -1
  234. package/dist/label-DsSICLPc.mjs +0 -28
  235. package/dist/menubar-BYNeRuzx.js +0 -1
  236. package/dist/menubar-DZqEj6S1.mjs +0 -407
  237. package/dist/message-scroller-CS4t7Ypn.mjs +0 -824
  238. package/dist/message-scroller-DqLu0YI6.js +0 -1
  239. package/dist/navigation-menu-B36G3O83.js +0 -1
  240. package/dist/navigation-menu-RO6thDOF.mjs +0 -636
  241. package/dist/popover-DSBkc70V.mjs +0 -243
  242. package/dist/popover-DUHbvKB8.js +0 -1
  243. package/dist/progress-B9z08UXf.js +0 -6
  244. package/dist/progress-CQ4nQ85t.mjs +0 -92
  245. package/dist/questionnaire-CVED7G7R.mjs +0 -1159
  246. package/dist/questionnaire-PWClWvST.js +0 -1
  247. package/dist/radio-group-Bd3WbH5I.js +0 -1
  248. package/dist/radio-group-TRiAhMZB.mjs +0 -266
  249. package/dist/resizable-Cq60hEWB.js +0 -1
  250. package/dist/resizable-Qc8cVUKd.mjs +0 -2857
  251. package/dist/scroll-area-D6MiNHnJ.mjs +0 -564
  252. package/dist/scroll-area-DFUdJeSZ.js +0 -1
  253. package/dist/select-BFJUmjvX.mjs +0 -830
  254. package/dist/select-iQFoKU1s.js +0 -1
  255. package/dist/separator-2kr96SyF.mjs +0 -40
  256. package/dist/separator-Bo49G2aj.js +0 -1
  257. package/dist/sidebar-C6O8hLkz.js +0 -1
  258. package/dist/slider-CagVxozY.js +0 -1
  259. package/dist/slider-CdTCoQu1.mjs +0 -485
  260. package/dist/switch-CoeAC1Wk.js +0 -1
  261. package/dist/switch-zUBdj7jK.mjs +0 -174
  262. package/dist/tabs-DaE9pEbo.mjs +0 -160
  263. package/dist/tabs-TMhXe20x.js +0 -1
  264. package/dist/theme-toggle-DKh8WFLT.js +0 -1
  265. package/dist/toast-B0S3F09s.js +0 -1
  266. package/dist/toast-D0Yb-K84.mjs +0 -445
  267. package/dist/toaster-CX9im8R_.js +0 -1
  268. package/dist/toggle-B0hXPsi7.js +0 -1
  269. package/dist/toggle-BAeKd2N0.mjs +0 -59
  270. package/dist/toggle-group-CEKhUozD.mjs +0 -167
  271. package/dist/toggle-group-htyug3G7.js +0 -1
  272. package/dist/tooltip-BZazhXDZ.js +0 -1
  273. package/dist/tooltip-R_nK_Qh5.mjs +0 -390
@@ -1,41 +0,0 @@
1
- const e=require("./chunk-mLOUI7ql.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();return}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}});
@@ -1,571 +0,0 @@
1
- import * as e from "react";
2
- import { useState as t } from "react";
3
- //#region ../../node_modules/.bun/@radix-ui+react-focus-guards@1.2.0+c841d34b494ec30a/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
- //#endregion
31
- //#region ../../node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
32
- var l = function() {
33
- return l = Object.assign || function(e) {
34
- 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]);
35
- return e;
36
- }, l.apply(this, arguments);
37
- };
38
- function u(e, t) {
39
- var n = {};
40
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
41
- 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]]);
42
- return n;
43
- }
44
- function d(e, t, n) {
45
- 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]);
46
- return e.concat(a || Array.prototype.slice.call(t));
47
- }
48
- //#endregion
49
- //#region ../../node_modules/.bun/react-remove-scroll-bar@2.3.8+c841d34b494ec30a/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
50
- var f = "right-scroll-bar-position", p = "width-before-scroll-bar", m = "with-scroll-bars-hidden", h = "--removed-body-scroll-bar-size";
51
- //#endregion
52
- //#region ../../node_modules/.bun/use-callback-ref@1.3.3+c841d34b494ec30a/node_modules/use-callback-ref/dist/es2015/assignRef.js
53
- function g(e, t) {
54
- return typeof e == "function" ? e(t) : e && (e.current = t), e;
55
- }
56
- //#endregion
57
- //#region ../../node_modules/.bun/use-callback-ref@1.3.3+c841d34b494ec30a/node_modules/use-callback-ref/dist/es2015/useRef.js
58
- function _(e, n) {
59
- var r = t(function() {
60
- return {
61
- value: e,
62
- callback: n,
63
- facade: {
64
- get current() {
65
- return r.value;
66
- },
67
- set current(e) {
68
- var t = r.value;
69
- t !== e && (r.value = e, r.callback(e, t));
70
- }
71
- }
72
- };
73
- })[0];
74
- return r.callback = n, r.facade;
75
- }
76
- //#endregion
77
- //#region ../../node_modules/.bun/use-callback-ref@1.3.3+c841d34b494ec30a/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
78
- var v = typeof window < "u" ? e.useLayoutEffect : e.useEffect, y = /* @__PURE__ */ new WeakMap();
79
- function ee(e, t) {
80
- var n = _(t || null, function(t) {
81
- return e.forEach(function(e) {
82
- return g(e, t);
83
- });
84
- });
85
- return v(function() {
86
- var t = y.get(n);
87
- if (t) {
88
- var r = new Set(t), i = new Set(e), a = n.current;
89
- r.forEach(function(e) {
90
- i.has(e) || g(e, null);
91
- }), i.forEach(function(e) {
92
- r.has(e) || g(e, a);
93
- });
94
- }
95
- y.set(n, e);
96
- }, [e]), n;
97
- }
98
- //#endregion
99
- //#region ../../node_modules/.bun/use-sidecar@1.1.3+c841d34b494ec30a/node_modules/use-sidecar/dist/es2015/medium.js
100
- function b(e) {
101
- return e;
102
- }
103
- function x(e, t) {
104
- t === void 0 && (t = b);
105
- var n = [], r = !1;
106
- return {
107
- read: function() {
108
- if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
109
- return n.length ? n[n.length - 1] : e;
110
- },
111
- useMedium: function(e) {
112
- var i = t(e, r);
113
- return n.push(i), function() {
114
- n = n.filter(function(e) {
115
- return e !== i;
116
- });
117
- };
118
- },
119
- assignSyncMedium: function(e) {
120
- for (r = !0; n.length;) {
121
- var t = n;
122
- n = [], t.forEach(e);
123
- }
124
- n = {
125
- push: function(t) {
126
- return e(t);
127
- },
128
- filter: function() {
129
- return n;
130
- }
131
- };
132
- },
133
- assignMedium: function(e) {
134
- r = !0;
135
- var t = [];
136
- if (n.length) {
137
- var i = n;
138
- n = [], i.forEach(e), t = n;
139
- }
140
- var a = function() {
141
- var n = t;
142
- t = [], n.forEach(e);
143
- }, o = function() {
144
- return Promise.resolve().then(a);
145
- };
146
- o(), n = {
147
- push: function(e) {
148
- t.push(e), o();
149
- },
150
- filter: function(e) {
151
- return t = t.filter(e), n;
152
- }
153
- };
154
- }
155
- };
156
- }
157
- function S(e) {
158
- e === void 0 && (e = {});
159
- var t = x(null);
160
- return t.options = l({
161
- async: !0,
162
- ssr: !1
163
- }, e), t;
164
- }
165
- //#endregion
166
- //#region ../../node_modules/.bun/use-sidecar@1.1.3+c841d34b494ec30a/node_modules/use-sidecar/dist/es2015/exports.js
167
- var C = function(t) {
168
- var n = t.sideCar, r = u(t, ["sideCar"]);
169
- if (!n) throw Error("Sidecar: please provide `sideCar` property to import the right car");
170
- var i = n.read();
171
- if (!i) throw Error("Sidecar medium not found");
172
- return e.createElement(i, l({}, r));
173
- };
174
- C.isSideCarExport = !0;
175
- function w(e, t) {
176
- return e.useMedium(t), C;
177
- }
178
- //#endregion
179
- //#region ../../node_modules/.bun/react-remove-scroll@2.7.2+c841d34b494ec30a/node_modules/react-remove-scroll/dist/es2015/medium.js
180
- var T = S(), E = function() {}, D = e.forwardRef(function(t, n) {
181
- var r = e.useRef(null), i = e.useState({
182
- onScrollCapture: E,
183
- onWheelCapture: E,
184
- onTouchMoveCapture: E
185
- }), 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, [
186
- "forwardProps",
187
- "children",
188
- "className",
189
- "removeScrollBar",
190
- "enabled",
191
- "shards",
192
- "sideCar",
193
- "noRelative",
194
- "noIsolation",
195
- "inert",
196
- "allowPinchZoom",
197
- "as",
198
- "gapMode"
199
- ]), w = h, D = ee([r, n]), O = l(l({}, C), a);
200
- return e.createElement(e.Fragment, null, p && e.createElement(w, {
201
- sideCar: T,
202
- removeScrollBar: f,
203
- shards: m,
204
- noRelative: g,
205
- noIsolation: _,
206
- inert: v,
207
- setCallbacks: o,
208
- allowPinchZoom: !!y,
209
- lockRef: r,
210
- gapMode: S
211
- }), s ? e.cloneElement(e.Children.only(c), l(l({}, O), { ref: D })) : e.createElement(x, l({}, O, {
212
- className: d,
213
- ref: D
214
- }), c));
215
- });
216
- D.defaultProps = {
217
- enabled: !0,
218
- removeScrollBar: !0,
219
- inert: !1
220
- }, D.classNames = {
221
- fullWidth: p,
222
- zeroRight: f
223
- };
224
- //#endregion
225
- //#region ../../node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
226
- var O, te = function() {
227
- if (O) return O;
228
- if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
229
- };
230
- //#endregion
231
- //#region ../../node_modules/.bun/react-style-singleton@2.2.3+c841d34b494ec30a/node_modules/react-style-singleton/dist/es2015/singleton.js
232
- function ne() {
233
- if (!document) return null;
234
- var e = document.createElement("style");
235
- e.type = "text/css";
236
- var t = te();
237
- return t && e.setAttribute("nonce", t), e;
238
- }
239
- function re(e, t) {
240
- e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
241
- }
242
- function ie(e) {
243
- (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
244
- }
245
- var ae = function() {
246
- var e = 0, t = null;
247
- return {
248
- add: function(n) {
249
- e == 0 && (t = ne()) && (re(t, n), ie(t)), e++;
250
- },
251
- remove: function() {
252
- e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
253
- }
254
- };
255
- }, oe = function() {
256
- var t = ae();
257
- return function(n, r) {
258
- e.useEffect(function() {
259
- return t.add(n), function() {
260
- t.remove();
261
- };
262
- }, [n && r]);
263
- };
264
- }, k = function() {
265
- var e = oe();
266
- return function(t) {
267
- var n = t.styles, r = t.dynamic;
268
- return e(n, r), null;
269
- };
270
- }, A = {
271
- left: 0,
272
- top: 0,
273
- right: 0,
274
- gap: 0
275
- }, j = function(e) {
276
- return parseInt(e || "", 10) || 0;
277
- }, se = function(e) {
278
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
279
- return [
280
- j(n),
281
- j(r),
282
- j(i)
283
- ];
284
- }, ce = function(e) {
285
- if (e === void 0 && (e = "margin"), typeof window > "u") return A;
286
- var t = se(e), n = document.documentElement.clientWidth, r = window.innerWidth;
287
- return {
288
- left: t[0],
289
- top: t[1],
290
- right: t[2],
291
- gap: Math.max(0, r - n + t[2] - t[0])
292
- };
293
- }, le = k(), M = "data-scroll-locked", ue = function(e, t, n, r) {
294
- var i = e.left, a = e.top, o = e.right, s = e.gap;
295
- return n === void 0 && (n = "margin"), `
296
- .${m} {
297
- overflow: hidden ${r};
298
- padding-right: ${s}px ${r};
299
- }
300
- body[${M}] {
301
- overflow: hidden ${r};
302
- overscroll-behavior: contain;
303
- ${[
304
- t && `position: relative ${r};`,
305
- n === "margin" && `
306
- padding-left: ${i}px;
307
- padding-top: ${a}px;
308
- padding-right: ${o}px;
309
- margin-left:0;
310
- margin-top:0;
311
- margin-right: ${s}px ${r};
312
- `,
313
- n === "padding" && `padding-right: ${s}px ${r};`
314
- ].filter(Boolean).join("")}
315
- }
316
-
317
- .${f} {
318
- right: ${s}px ${r};
319
- }
320
-
321
- .${p} {
322
- margin-right: ${s}px ${r};
323
- }
324
-
325
- .${f} .${f} {
326
- right: 0 ${r};
327
- }
328
-
329
- .${p} .${p} {
330
- margin-right: 0 ${r};
331
- }
332
-
333
- body[${M}] {
334
- ${h}: ${s}px;
335
- }
336
- `;
337
- }, N = function() {
338
- var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
339
- return isFinite(e) ? e : 0;
340
- }, de = function() {
341
- e.useEffect(function() {
342
- return document.body.setAttribute(M, (N() + 1).toString()), function() {
343
- var e = N() - 1;
344
- e <= 0 ? document.body.removeAttribute(M) : document.body.setAttribute(M, e.toString());
345
- };
346
- }, []);
347
- }, fe = function(t) {
348
- var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
349
- de();
350
- var o = e.useMemo(function() {
351
- return ce(a);
352
- }, [a]);
353
- return e.createElement(le, { styles: ue(o, !n, a, r ? "" : "!important") });
354
- }, P = !1;
355
- if (typeof window < "u") try {
356
- var F = Object.defineProperty({}, "passive", { get: function() {
357
- return P = !0, !0;
358
- } });
359
- window.addEventListener("test", F, F), window.removeEventListener("test", F, F);
360
- } catch {
361
- P = !1;
362
- }
363
- var I = P ? { passive: !1 } : !1, pe = function(e) {
364
- return e.tagName === "TEXTAREA";
365
- }, L = function(e, t) {
366
- if (!(e instanceof Element)) return !1;
367
- var n = window.getComputedStyle(e);
368
- return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !pe(e) && n[t] === "visible");
369
- }, R = function(e) {
370
- return L(e, "overflowY");
371
- }, z = function(e) {
372
- return L(e, "overflowX");
373
- }, B = function(e, t) {
374
- var n = t.ownerDocument, r = t;
375
- do {
376
- if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), H(e, r)) {
377
- var i = U(e, r);
378
- if (i[1] > i[2]) return !0;
379
- }
380
- r = r.parentNode;
381
- } while (r && r !== n.body);
382
- return !1;
383
- }, V = function(e) {
384
- return [
385
- e.scrollTop,
386
- e.scrollHeight,
387
- e.clientHeight
388
- ];
389
- }, me = function(e) {
390
- return [
391
- e.scrollLeft,
392
- e.scrollWidth,
393
- e.clientWidth
394
- ];
395
- }, H = function(e, t) {
396
- return e === "v" ? R(t) : z(t);
397
- }, U = function(e, t) {
398
- return e === "v" ? V(t) : me(t);
399
- }, he = function(e, t) {
400
- return e === "h" && t === "rtl" ? -1 : 1;
401
- }, ge = function(e, t, n, r, i) {
402
- var a = he(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
403
- do {
404
- if (!s) break;
405
- var p = U(e, s), m = p[0], h = p[1] - p[2] - a * m;
406
- (m || h) && H(e, s) && (d += h, f += m);
407
- var g = s.parentNode;
408
- s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
409
- } while (!c && s !== document.body || c && (t.contains(s) || t === s));
410
- return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
411
- }, W = function(e) {
412
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
413
- }, G = function(e) {
414
- return [e.deltaX, e.deltaY];
415
- }, K = function(e) {
416
- return e && "current" in e ? e.current : e;
417
- }, _e = function(e, t) {
418
- return e[0] === t[0] && e[1] === t[1];
419
- }, ve = function(e) {
420
- return `
421
- .block-interactivity-${e} {pointer-events: none;}
422
- .allow-interactivity-${e} {pointer-events: all;}
423
- `;
424
- }, ye = 0, q = [];
425
- function be(t) {
426
- var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(ye++)[0], o = e.useState(k)[0], s = e.useRef(t);
427
- e.useEffect(function() {
428
- s.current = t;
429
- }, [t]), e.useEffect(function() {
430
- if (t.inert) {
431
- document.body.classList.add(`block-interactivity-${a}`);
432
- var e = d([t.lockRef.current], (t.shards || []).map(K), !0).filter(Boolean);
433
- return e.forEach(function(e) {
434
- return e.classList.add(`allow-interactivity-${a}`);
435
- }), function() {
436
- document.body.classList.remove(`block-interactivity-${a}`), e.forEach(function(e) {
437
- return e.classList.remove(`allow-interactivity-${a}`);
438
- });
439
- };
440
- }
441
- }, [
442
- t.inert,
443
- t.lockRef.current,
444
- t.shards
445
- ]);
446
- var c = e.useCallback(function(e, t) {
447
- if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !s.current.allowPinchZoom;
448
- 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";
449
- if ("touches" in e && d === "h" && u.type === "range") return !1;
450
- var f = window.getSelection(), p = f && f.anchorNode;
451
- if (p && (p === u || p.contains(u))) return !1;
452
- var m = B(d, u);
453
- if (!m) return !0;
454
- if (m ? l = d : (l = d === "v" ? "h" : "v", m = B(d, u)), !m) return !1;
455
- if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
456
- var h = i.current || l;
457
- return ge(h, t, e, h === "h" ? o : c, !0);
458
- }, []), l = e.useCallback(function(e) {
459
- var t = e;
460
- if (!(!q.length || q[q.length - 1] !== o)) {
461
- var r = "deltaY" in t ? G(t) : W(t), i = n.current.filter(function(e) {
462
- return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && _e(e.delta, r);
463
- })[0];
464
- if (i && i.should) {
465
- t.cancelable && t.preventDefault();
466
- return;
467
- }
468
- if (!i) {
469
- var a = (s.current.shards || []).map(K).filter(Boolean).filter(function(e) {
470
- return e.contains(t.target);
471
- });
472
- (a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
473
- }
474
- }
475
- }, []), u = e.useCallback(function(e, t, r, i) {
476
- var a = {
477
- name: e,
478
- delta: t,
479
- target: r,
480
- should: i,
481
- shadowParent: xe(r)
482
- };
483
- n.current.push(a), setTimeout(function() {
484
- n.current = n.current.filter(function(e) {
485
- return e !== a;
486
- });
487
- }, 1);
488
- }, []), f = e.useCallback(function(e) {
489
- r.current = W(e), i.current = void 0;
490
- }, []), p = e.useCallback(function(e) {
491
- u(e.type, G(e), e.target, c(e, t.lockRef.current));
492
- }, []), m = e.useCallback(function(e) {
493
- u(e.type, W(e), e.target, c(e, t.lockRef.current));
494
- }, []);
495
- e.useEffect(function() {
496
- return q.push(o), t.setCallbacks({
497
- onScrollCapture: p,
498
- onWheelCapture: p,
499
- onTouchMoveCapture: m
500
- }), document.addEventListener("wheel", l, I), document.addEventListener("touchmove", l, I), document.addEventListener("touchstart", f, I), function() {
501
- q = q.filter(function(e) {
502
- return e !== o;
503
- }), document.removeEventListener("wheel", l, I), document.removeEventListener("touchmove", l, I), document.removeEventListener("touchstart", f, I);
504
- };
505
- }, []);
506
- var h = t.removeScrollBar, g = t.inert;
507
- return e.createElement(e.Fragment, null, g ? e.createElement(o, { styles: ve(a) }) : null, h ? e.createElement(fe, {
508
- noRelative: t.noRelative,
509
- gapMode: t.gapMode
510
- }) : null);
511
- }
512
- function xe(e) {
513
- for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
514
- return t;
515
- }
516
- //#endregion
517
- //#region ../../node_modules/.bun/react-remove-scroll@2.7.2+c841d34b494ec30a/node_modules/react-remove-scroll/dist/es2015/sidecar.js
518
- var Se = w(T, be), J = e.forwardRef(function(t, n) {
519
- return e.createElement(D, l({}, t, {
520
- ref: n,
521
- sideCar: Se
522
- }));
523
- });
524
- J.classNames = D.classNames;
525
- //#endregion
526
- //#region ../../node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
527
- var Ce = function(e) {
528
- return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
529
- }, Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = {}, Q = 0, $ = function(e) {
530
- return e && (e.host || $(e.parentNode));
531
- }, we = function(e, t) {
532
- return t.map(function(t) {
533
- if (e.contains(t)) return t;
534
- var n = $(t);
535
- return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
536
- }).filter(function(e) {
537
- return !!e;
538
- });
539
- }, Te = function(e, t, n, r) {
540
- var i = we(t, Array.isArray(e) ? e : [e]);
541
- Z[n] || (Z[n] = /* @__PURE__ */ new WeakMap());
542
- var a = Z[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
543
- !e || s.has(e) || (s.add(e), l(e.parentNode));
544
- };
545
- i.forEach(l);
546
- var u = function(e) {
547
- !e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
548
- if (s.has(e)) u(e);
549
- else try {
550
- var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Y.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
551
- 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");
552
- } catch (t) {
553
- console.error("aria-hidden: cannot operate on ", e, t);
554
- }
555
- });
556
- };
557
- return u(t), s.clear(), Q++, function() {
558
- o.forEach(function(e) {
559
- var t = Y.get(e) - 1, i = a.get(e) - 1;
560
- Y.set(e, t), a.set(e, i), t || (X.has(e) || e.removeAttribute(r), X.delete(e)), i || e.removeAttribute(n);
561
- }), Q--, Q || (Y = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = {});
562
- };
563
- }, Ee = function(e, t, n) {
564
- n === void 0 && (n = "data-aria-hidden");
565
- var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Ce(e);
566
- return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Te(r, i, n, "aria-hidden")) : function() {
567
- return null;
568
- };
569
- };
570
- //#endregion
571
- export { J as n, s as r, Ee as t };