@arc-ui/components 11.5.0 → 11.7.0

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 (315) hide show
  1. package/dist/Alert/Alert.cjs.d.ts +1 -1
  2. package/dist/Alert/Alert.cjs.js +4 -4
  3. package/dist/Alert/Alert.esm.d.ts +1 -1
  4. package/dist/Alert/Alert.esm.js +4 -4
  5. package/dist/Badge/Badge.cjs.js +2 -2
  6. package/dist/Badge/Badge.esm.js +2 -2
  7. package/dist/Box/Box.cjs.d.ts +1 -0
  8. package/dist/Box/Box.cjs.js +13 -0
  9. package/dist/Box/Box.esm.d.ts +1 -0
  10. package/dist/Box/Box.esm.js +5 -0
  11. package/dist/Box/package.json +7 -0
  12. package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
  13. package/dist/BrandLogo/BrandLogo.cjs.js +2 -2
  14. package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
  15. package/dist/BrandLogo/BrandLogo.esm.js +2 -2
  16. package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -61
  17. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +10 -642
  18. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -61
  19. package/dist/Breadcrumbs/Breadcrumbs.esm.js +9 -641
  20. package/dist/Button/Button.cjs.d.ts +1 -1
  21. package/dist/Button/Button.cjs.js +4 -3
  22. package/dist/Button/Button.esm.d.ts +1 -1
  23. package/dist/Button/Button.esm.js +4 -3
  24. package/dist/Card/Card.cjs.d.ts +1 -130
  25. package/dist/Card/Card.cjs.js +12 -119
  26. package/dist/Card/Card.esm.d.ts +1 -130
  27. package/dist/Card/Card.esm.js +11 -118
  28. package/dist/Checkbox/Checkbox.cjs.d.ts +1 -64
  29. package/dist/Checkbox/Checkbox.cjs.js +11 -60
  30. package/dist/Checkbox/Checkbox.esm.d.ts +1 -64
  31. package/dist/Checkbox/Checkbox.esm.js +10 -59
  32. package/dist/Columns/Columns.cjs.d.ts +1 -76
  33. package/dist/Columns/Columns.cjs.js +6 -52
  34. package/dist/Columns/Columns.esm.d.ts +1 -76
  35. package/dist/Columns/Columns.esm.js +5 -51
  36. package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
  37. package/dist/Disclosure/Disclosure.cjs.js +2 -2
  38. package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
  39. package/dist/Disclosure/Disclosure.esm.js +2 -2
  40. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
  41. package/dist/DisclosureMini/DisclosureMini.cjs.js +3 -3
  42. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
  43. package/dist/DisclosureMini/DisclosureMini.esm.js +3 -3
  44. package/dist/Filter/Filter.cjs.d.ts +1 -0
  45. package/dist/Filter/Filter.cjs.js +13 -0
  46. package/dist/Filter/Filter.esm.d.ts +1 -0
  47. package/dist/Filter/Filter.esm.js +5 -0
  48. package/dist/Filter/package.json +7 -0
  49. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  50. package/dist/FormControl/FormControl.cjs.js +4 -5
  51. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  52. package/dist/FormControl/FormControl.esm.js +4 -5
  53. package/dist/Group/Group.cjs.d.ts +1 -46
  54. package/dist/Group/Group.cjs.js +6 -43
  55. package/dist/Group/Group.esm.d.ts +1 -46
  56. package/dist/Group/Group.esm.js +5 -42
  57. package/dist/Heading/Heading.cjs.d.ts +1 -1
  58. package/dist/Heading/Heading.cjs.js +2 -2
  59. package/dist/Heading/Heading.esm.d.ts +1 -1
  60. package/dist/Heading/Heading.esm.js +2 -2
  61. package/dist/Icon/Icon.cjs.d.ts +1 -1
  62. package/dist/Icon/Icon.cjs.js +2 -2
  63. package/dist/Icon/Icon.esm.d.ts +1 -1
  64. package/dist/Icon/Icon.esm.js +2 -2
  65. package/dist/Image/Image.cjs.d.ts +1 -1
  66. package/dist/Image/Image.cjs.js +2 -1
  67. package/dist/Image/Image.esm.d.ts +1 -1
  68. package/dist/Image/Image.esm.js +1 -1
  69. package/dist/Markup/Markup.cjs.js +1 -1
  70. package/dist/Markup/Markup.esm.js +1 -1
  71. package/dist/MediaCard/MediaCard.cjs.d.ts +61 -0
  72. package/dist/MediaCard/MediaCard.cjs.js +31 -0
  73. package/dist/MediaCard/MediaCard.esm.d.ts +61 -0
  74. package/dist/MediaCard/MediaCard.esm.js +23 -0
  75. package/dist/MediaCard/package.json +7 -0
  76. package/dist/Modal/Modal.cjs.d.ts +31 -0
  77. package/dist/Modal/Modal.cjs.js +388 -0
  78. package/dist/Modal/Modal.esm.d.ts +31 -0
  79. package/dist/Modal/Modal.esm.js +380 -0
  80. package/dist/Modal/package.json +7 -0
  81. package/dist/Pagination/Pagination.cjs.d.ts +20 -0
  82. package/dist/Pagination/Pagination.cjs.js +87 -0
  83. package/dist/Pagination/Pagination.esm.d.ts +20 -0
  84. package/dist/Pagination/Pagination.esm.js +79 -0
  85. package/dist/Pagination/package.json +7 -0
  86. package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +28 -0
  87. package/dist/PaginationSimple/PaginationSimple.cjs.js +47 -0
  88. package/dist/PaginationSimple/PaginationSimple.esm.d.ts +28 -0
  89. package/dist/PaginationSimple/PaginationSimple.esm.js +39 -0
  90. package/dist/PaginationSimple/package.json +7 -0
  91. package/dist/Poster/Poster.cjs.d.ts +1 -81
  92. package/dist/Poster/Poster.cjs.js +8 -45
  93. package/dist/Poster/Poster.esm.d.ts +1 -81
  94. package/dist/Poster/Poster.esm.js +7 -44
  95. package/dist/ProgressBar/ProgressBar.cjs.js +4 -4
  96. package/dist/ProgressBar/ProgressBar.esm.js +4 -4
  97. package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +89 -0
  98. package/dist/ProgressStepper/ProgressStepper.cjs.js +152 -0
  99. package/dist/ProgressStepper/ProgressStepper.esm.d.ts +89 -0
  100. package/dist/ProgressStepper/ProgressStepper.esm.js +144 -0
  101. package/dist/ProgressStepper/package.json +7 -0
  102. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -85
  103. package/dist/RadioGroup/RadioGroup.cjs.js +9 -68
  104. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -85
  105. package/dist/RadioGroup/RadioGroup.esm.js +8 -67
  106. package/dist/Rule/Rule.cjs.js +1 -1
  107. package/dist/Rule/Rule.esm.js +1 -1
  108. package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +25 -0
  109. package/dist/ScrollToTop/ScrollToTop.cjs.js +68 -0
  110. package/dist/ScrollToTop/ScrollToTop.esm.d.ts +25 -0
  111. package/dist/ScrollToTop/ScrollToTop.esm.js +60 -0
  112. package/dist/ScrollToTop/package.json +7 -0
  113. package/dist/Select/Select.cjs.d.ts +2 -2
  114. package/dist/Select/Select.cjs.js +20 -1419
  115. package/dist/Select/Select.esm.d.ts +2 -2
  116. package/dist/Select/Select.esm.js +10 -1390
  117. package/dist/SiteFooter/SiteFooter.cjs.d.ts +2 -62
  118. package/dist/SiteFooter/SiteFooter.cjs.js +10 -65
  119. package/dist/SiteFooter/SiteFooter.esm.d.ts +2 -62
  120. package/dist/SiteFooter/SiteFooter.esm.js +12 -66
  121. package/dist/SiteHeader/SiteHeader.cjs.d.ts +2 -260
  122. package/dist/SiteHeader/SiteHeader.cjs.js +17 -669
  123. package/dist/SiteHeader/SiteHeader.esm.d.ts +2 -260
  124. package/dist/SiteHeader/SiteHeader.esm.js +15 -667
  125. package/dist/Surface/Surface.cjs.d.ts +1 -1
  126. package/dist/Surface/Surface.cjs.js +1 -1
  127. package/dist/Surface/Surface.esm.d.ts +1 -1
  128. package/dist/Surface/Surface.esm.js +1 -1
  129. package/dist/Switch/Switch.cjs.d.ts +2 -2
  130. package/dist/Switch/Switch.cjs.js +8 -7
  131. package/dist/Switch/Switch.esm.d.ts +2 -2
  132. package/dist/Switch/Switch.esm.js +7 -6
  133. package/dist/Tag/Tag.cjs.js +2 -2
  134. package/dist/Tag/Tag.esm.js +2 -2
  135. package/dist/Text/Text.cjs.d.ts +1 -1
  136. package/dist/Text/Text.cjs.js +2 -2
  137. package/dist/Text/Text.esm.d.ts +1 -1
  138. package/dist/Text/Text.esm.js +2 -2
  139. package/dist/TextArea/TextArea.cjs.d.ts +61 -0
  140. package/dist/TextArea/TextArea.cjs.js +87 -0
  141. package/dist/TextArea/TextArea.esm.d.ts +61 -0
  142. package/dist/TextArea/TextArea.esm.js +79 -0
  143. package/dist/TextArea/package.json +7 -0
  144. package/dist/TextInput/TextInput.cjs.d.ts +1 -75
  145. package/dist/TextInput/TextInput.cjs.js +10 -76
  146. package/dist/TextInput/TextInput.esm.d.ts +1 -75
  147. package/dist/TextInput/TextInput.esm.js +9 -75
  148. package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -26
  149. package/dist/UniversalHeader/UniversalHeader.cjs.js +5 -30
  150. package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -26
  151. package/dist/UniversalHeader/UniversalHeader.esm.js +4 -29
  152. package/dist/_shared/cjs/Box-ebe2b7be.d.ts +39 -0
  153. package/dist/_shared/cjs/Box-ebe2b7be.js +30 -0
  154. package/dist/_shared/cjs/{BrandLogo-8008f0c4.js → BrandLogo-8107d59f.js} +1 -1
  155. package/dist/_shared/cjs/Breadcrumbs-9f580f69.d.ts +61 -0
  156. package/dist/_shared/cjs/Breadcrumbs-9f580f69.js +106 -0
  157. package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +31 -0
  158. package/dist/_shared/cjs/{Button-5dff284a.js → Button-b4d6ccc8.js} +8 -29
  159. package/dist/_shared/cjs/Card-f1108bfe.d.ts +136 -0
  160. package/dist/_shared/cjs/Card-f1108bfe.js +124 -0
  161. package/dist/_shared/cjs/Checkbox-c927b62f.d.ts +64 -0
  162. package/dist/_shared/cjs/Checkbox-c927b62f.js +62 -0
  163. package/dist/_shared/cjs/Columns-e90798f8.d.ts +76 -0
  164. package/dist/_shared/cjs/Columns-e90798f8.js +57 -0
  165. package/dist/_shared/cjs/{DisclosureMini-5af13d3c.js → DisclosureMini-2a10006e.js} +5 -3
  166. package/dist/_shared/cjs/Filter-a7574fe7.d.ts +83 -0
  167. package/dist/_shared/cjs/Filter-a7574fe7.js +121 -0
  168. package/dist/_shared/{esm/FormControl-0744f93f.d.ts → cjs/FormControl-78b007b7.d.ts} +4 -0
  169. package/dist/_shared/cjs/{FormControl-42360ae8.js → FormControl-78b007b7.js} +10 -10
  170. package/dist/_shared/cjs/Group-f85dd4c0.d.ts +46 -0
  171. package/dist/_shared/cjs/Group-f85dd4c0.js +48 -0
  172. package/dist/_shared/cjs/{Heading-d45f6a7f.js → Heading-ed1cb455.js} +1 -1
  173. package/dist/_shared/cjs/{Icon-9ae8dbe1.js → Icon-e1dd45eb.js} +1 -1
  174. package/dist/_shared/cjs/{Image-3bf4b4f3.js → Image-0e393cbf.js} +2 -0
  175. package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +27 -0
  176. package/dist/_shared/cjs/NavItem-df20237c.d.ts +43 -0
  177. package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +49 -0
  178. package/dist/_shared/cjs/Poster-faea1ad3.d.ts +81 -0
  179. package/dist/_shared/cjs/Poster-faea1ad3.js +50 -0
  180. package/dist/_shared/cjs/RadioGroup-8e17de70.d.ts +97 -0
  181. package/dist/_shared/cjs/RadioGroup-8e17de70.js +70 -0
  182. package/dist/_shared/cjs/SiteFooter-9f7f9c2d.d.ts +62 -0
  183. package/dist/_shared/cjs/SiteFooter-9f7f9c2d.js +73 -0
  184. package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +78 -0
  185. package/dist/_shared/cjs/SiteHeader.rehydrator-ccbebde6.d.ts +78 -0
  186. package/dist/_shared/cjs/SiteHeader.rehydrator-ccbebde6.js +673 -0
  187. package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +48 -0
  188. package/dist/_shared/cjs/{Surface-6da0a78e.d.ts → Surface-b7c51b2b.d.ts} +3 -2
  189. package/dist/_shared/cjs/{Surface-6da0a78e.js → Surface-b7c51b2b.js} +1 -1
  190. package/dist/_shared/cjs/{Text-6f2827e6.js → Text-555a29a4.js} +1 -1
  191. package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +75 -0
  192. package/dist/_shared/cjs/TextInput-b768e346.d.ts +10 -0
  193. package/dist/_shared/cjs/TextInput-b768e346.js +78 -0
  194. package/dist/_shared/cjs/UniversalHeader-da622e1a.d.ts +26 -0
  195. package/dist/_shared/cjs/UniversalHeader-da622e1a.js +35 -0
  196. package/dist/_shared/cjs/debounce-506538c5.js +544 -0
  197. package/dist/_shared/cjs/index-31fbb076.js +1416 -0
  198. package/dist/_shared/cjs/index-699086a7.d.ts +2 -0
  199. package/dist/_shared/cjs/index-74488a9f.d.ts +2 -0
  200. package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
  201. package/dist/_shared/cjs/index-e340924e.d.ts +2 -0
  202. package/dist/_shared/cjs/index-e6d20018.d.ts +3 -0
  203. package/dist/_shared/cjs/index-eb06f640.d.ts +2 -0
  204. package/dist/_shared/cjs/index-f419cf04.d.ts +2 -0
  205. package/dist/_shared/cjs/index.module-5ea728f4.js +23 -0
  206. package/dist/_shared/cjs/{index.module-af7c85f2.js → index.module-9b87a34d.js} +84 -103
  207. package/dist/_shared/esm/Box-06d99d8a.d.ts +39 -0
  208. package/dist/_shared/esm/Box-06d99d8a.js +24 -0
  209. package/dist/_shared/esm/{BrandLogo-56699561.js → BrandLogo-9ec620e8.js} +1 -1
  210. package/dist/_shared/esm/Breadcrumbs-5dc0afa7.d.ts +61 -0
  211. package/dist/_shared/esm/Breadcrumbs-5dc0afa7.js +100 -0
  212. package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +25 -0
  213. package/dist/_shared/esm/{Button-61241dd0.js → Button-9c3b0b11.js} +4 -25
  214. package/dist/_shared/esm/Card-79b6eae0.d.ts +136 -0
  215. package/dist/_shared/esm/Card-79b6eae0.js +118 -0
  216. package/dist/_shared/esm/Checkbox-2d144384.d.ts +64 -0
  217. package/dist/_shared/esm/Checkbox-2d144384.js +56 -0
  218. package/dist/_shared/esm/Columns-8704515b.d.ts +76 -0
  219. package/dist/_shared/esm/Columns-8704515b.js +51 -0
  220. package/dist/_shared/esm/{DisclosureMini-322fccc0.js → DisclosureMini-78a8f392.js} +5 -3
  221. package/dist/_shared/esm/Filter-a01aed11.d.ts +83 -0
  222. package/dist/_shared/esm/Filter-a01aed11.js +115 -0
  223. package/dist/_shared/{cjs/FormControl-42360ae8.d.ts → esm/FormControl-2fa7aae5.d.ts} +4 -0
  224. package/dist/_shared/esm/{FormControl-0744f93f.js → FormControl-2fa7aae5.js} +10 -10
  225. package/dist/_shared/esm/Group-fb26fd32.d.ts +46 -0
  226. package/dist/_shared/esm/Group-fb26fd32.js +42 -0
  227. package/dist/_shared/esm/{Heading-b61432fb.js → Heading-ee6bec51.js} +1 -1
  228. package/dist/_shared/esm/{Icon-fd247973.js → Icon-c1af47bc.js} +1 -1
  229. package/dist/_shared/esm/{Image-3596ce55.js → Image-3ed3863c.js} +2 -1
  230. package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +27 -0
  231. package/dist/_shared/esm/NavItem-df20237c.d.ts +43 -0
  232. package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +49 -0
  233. package/dist/_shared/esm/Poster-a83ae770.d.ts +81 -0
  234. package/dist/_shared/esm/Poster-a83ae770.js +44 -0
  235. package/dist/_shared/esm/RadioGroup-65b8c8bf.d.ts +97 -0
  236. package/dist/_shared/esm/RadioGroup-65b8c8bf.js +64 -0
  237. package/dist/_shared/esm/SiteFooter-51bdc7df.d.ts +62 -0
  238. package/dist/_shared/esm/SiteFooter-51bdc7df.js +67 -0
  239. package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +78 -0
  240. package/dist/_shared/esm/SiteHeader.rehydrator-382d1c03.d.ts +78 -0
  241. package/dist/_shared/esm/SiteHeader.rehydrator-382d1c03.js +666 -0
  242. package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +48 -0
  243. package/dist/_shared/esm/{Surface-bb100ef8.d.ts → Surface-dde51789.d.ts} +3 -2
  244. package/dist/_shared/esm/{Surface-bb100ef8.js → Surface-dde51789.js} +1 -1
  245. package/dist/_shared/esm/{Text-00e9743b.js → Text-14deb70e.js} +1 -1
  246. package/dist/_shared/esm/TextInput-62bb7dee.d.ts +10 -0
  247. package/dist/_shared/esm/TextInput-62bb7dee.js +72 -0
  248. package/dist/_shared/esm/TextInput-7ed03a48.d.ts +75 -0
  249. package/dist/_shared/esm/UniversalHeader-1c5a886d.d.ts +26 -0
  250. package/dist/_shared/esm/UniversalHeader-1c5a886d.js +29 -0
  251. package/dist/_shared/esm/debounce-e228705f.js +542 -0
  252. package/dist/_shared/esm/index-4fa635bd.js +1386 -0
  253. package/dist/_shared/esm/index-699086a7.d.ts +2 -0
  254. package/dist/_shared/esm/index-74488a9f.d.ts +2 -0
  255. package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
  256. package/dist/_shared/esm/index-e340924e.d.ts +2 -0
  257. package/dist/_shared/esm/index-e6d20018.d.ts +3 -0
  258. package/dist/_shared/esm/index-eb06f640.d.ts +2 -0
  259. package/dist/_shared/esm/index-f419cf04.d.ts +2 -0
  260. package/dist/_shared/esm/{index.module-599b86dd.js → index.module-216016b5.js} +86 -104
  261. package/dist/_shared/esm/index.module-88179159.js +21 -0
  262. package/dist/index.es.js +179 -28
  263. package/dist/index.es.js.map +1 -1
  264. package/dist/index.js +180 -27
  265. package/dist/index.js.map +1 -1
  266. package/dist/styles.css +1 -1
  267. package/dist/types/components/Box/Box.d.ts +36 -0
  268. package/dist/types/components/Box/index.d.ts +1 -0
  269. package/dist/types/components/Filter/Filter.d.ts +38 -0
  270. package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +16 -0
  271. package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +12 -0
  272. package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +12 -0
  273. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +12 -0
  274. package/dist/types/components/Filter/index.d.ts +1 -0
  275. package/dist/types/components/FormControl/FormControl.d.ts +4 -0
  276. package/dist/types/components/Image/index.d.ts +1 -1
  277. package/dist/types/components/MediaCard/MediaCard.d.ts +57 -0
  278. package/dist/types/components/MediaCard/index.d.ts +1 -0
  279. package/dist/types/components/Modal/Modal.stories-wip.d.ts +9 -0
  280. package/dist/types/components/Pagination/Pagination.d.ts +19 -0
  281. package/dist/types/components/Pagination/index.d.ts +1 -0
  282. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +27 -0
  283. package/dist/types/components/PaginationSimple/index.d.ts +1 -0
  284. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +28 -0
  285. package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +62 -0
  286. package/dist/types/components/ProgressStepper/index.d.ts +1 -0
  287. package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -0
  288. package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
  289. package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +24 -0
  290. package/dist/types/components/ScrollToTop/index.d.ts +1 -0
  291. package/dist/types/components/Select/Select.d.ts +1 -1
  292. package/dist/types/components/Surface/Surface.d.ts +2 -1
  293. package/dist/types/components/Surface/index.d.ts +1 -1
  294. package/dist/types/components/Switch/Switch.d.ts +1 -1
  295. package/dist/types/components/TextArea/TextArea.d.ts +60 -0
  296. package/dist/types/components/TextArea/index.d.ts +1 -0
  297. package/dist/types/components/TextInput/TextInput.d.ts +1 -1
  298. package/dist/types/components/index.d.ts +2 -0
  299. package/dist/types/hooks/use-pagination.d.ts +1 -0
  300. package/dist/types/styles.d.ts +10 -0
  301. package/package.json +4 -4
  302. /package/dist/_shared/cjs/{BrandLogo-8008f0c4.d.ts → BrandLogo-8107d59f.d.ts} +0 -0
  303. /package/dist/_shared/cjs/{Button-5dff284a.d.ts → Button-b4d6ccc8.d.ts} +0 -0
  304. /package/dist/_shared/cjs/{DisclosureMini-5af13d3c.d.ts → DisclosureMini-2a10006e.d.ts} +0 -0
  305. /package/dist/_shared/cjs/{Heading-d45f6a7f.d.ts → Heading-ed1cb455.d.ts} +0 -0
  306. /package/dist/_shared/cjs/{Icon-9ae8dbe1.d.ts → Icon-e1dd45eb.d.ts} +0 -0
  307. /package/dist/_shared/cjs/{Image-3bf4b4f3.d.ts → Image-0e393cbf.d.ts} +0 -0
  308. /package/dist/_shared/cjs/{Text-6f2827e6.d.ts → Text-555a29a4.d.ts} +0 -0
  309. /package/dist/_shared/esm/{BrandLogo-56699561.d.ts → BrandLogo-9ec620e8.d.ts} +0 -0
  310. /package/dist/_shared/esm/{Button-61241dd0.d.ts → Button-9c3b0b11.d.ts} +0 -0
  311. /package/dist/_shared/esm/{DisclosureMini-322fccc0.d.ts → DisclosureMini-78a8f392.d.ts} +0 -0
  312. /package/dist/_shared/esm/{Heading-b61432fb.d.ts → Heading-ee6bec51.d.ts} +0 -0
  313. /package/dist/_shared/esm/{Icon-fd247973.d.ts → Icon-c1af47bc.d.ts} +0 -0
  314. /package/dist/_shared/esm/{Image-3596ce55.d.ts → Image-3ed3863c.d.ts} +0 -0
  315. /package/dist/_shared/esm/{Text-00e9743b.d.ts → Text-14deb70e.d.ts} +0 -0
@@ -0,0 +1,1416 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var index_module = require('./index.module-9b87a34d.js');
5
+ var $7SXl2$reactdom = require('react-dom');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
28
+ var $7SXl2$reactdom__default = /*#__PURE__*/_interopDefaultLegacy($7SXl2$reactdom);
29
+
30
+ const $1746a345f3d73bb7$var$useReactId = React__namespace['useId'.toString()] || (()=>undefined
31
+ );
32
+ let $1746a345f3d73bb7$var$count = 0;
33
+ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
34
+ const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
35
+ index_module.$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
36
+ if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
37
+ );
38
+ }, [
39
+ deterministicId
40
+ ]);
41
+ return deterministicId || (id ? `radix-${id}` : '');
42
+ }
43
+
44
+ /**
45
+ * Listens for when the escape key is down
46
+ */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
47
+ const onEscapeKeyDown = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
48
+ React.useEffect(()=>{
49
+ const handleKeyDown = (event)=>{
50
+ if (event.key === 'Escape') onEscapeKeyDown(event);
51
+ };
52
+ ownerDocument.addEventListener('keydown', handleKeyDown);
53
+ return ()=>ownerDocument.removeEventListener('keydown', handleKeyDown)
54
+ ;
55
+ }, [
56
+ onEscapeKeyDown,
57
+ ownerDocument
58
+ ]);
59
+ }
60
+
61
+ const $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';
62
+ const $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';
63
+ const $5cb92bef7577960e$var$FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';
64
+ let $5cb92bef7577960e$var$originalBodyPointerEvents;
65
+ const $5cb92bef7577960e$var$DismissableLayerContext = /*#__PURE__*/ React.createContext({
66
+ layers: new Set(),
67
+ layersWithOutsidePointerEventsDisabled: new Set(),
68
+ branches: new Set()
69
+ });
70
+ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
71
+ var _node$ownerDocument;
72
+ const { disableOutsidePointerEvents: disableOutsidePointerEvents = false , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , ...layerProps } = props;
73
+ const context = React.useContext($5cb92bef7577960e$var$DismissableLayerContext);
74
+ const [node1, setNode] = React.useState(null);
75
+ const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
76
+ const [, force] = React.useState({});
77
+ const composedRefs = index_module.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setNode(node)
78
+ );
79
+ const layers = Array.from(context.layers);
80
+ const [highestLayerWithOutsidePointerEventsDisabled] = [
81
+ ...context.layersWithOutsidePointerEventsDisabled
82
+ ].slice(-1); // prettier-ignore
83
+ const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled); // prettier-ignore
84
+ const index = node1 ? layers.indexOf(node1) : -1;
85
+ const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
86
+ const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
87
+ const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event)=>{
88
+ const target = event.target;
89
+ const isPointerDownOnBranch = [
90
+ ...context.branches
91
+ ].some((branch)=>branch.contains(target)
92
+ );
93
+ if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
94
+ onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
95
+ onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
96
+ if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
97
+ }, ownerDocument);
98
+ const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event)=>{
99
+ const target = event.target;
100
+ const isFocusInBranch = [
101
+ ...context.branches
102
+ ].some((branch)=>branch.contains(target)
103
+ );
104
+ if (isFocusInBranch) return;
105
+ onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
106
+ onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
107
+ if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
108
+ }, ownerDocument);
109
+ $addc16e1bbe58fd0$export$3a72a57244d6e765((event)=>{
110
+ const isHighestLayer = index === context.layers.size - 1;
111
+ if (!isHighestLayer) return;
112
+ onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
113
+ if (!event.defaultPrevented && onDismiss) {
114
+ event.preventDefault();
115
+ onDismiss();
116
+ }
117
+ }, ownerDocument);
118
+ React.useEffect(()=>{
119
+ if (!node1) return;
120
+ if (disableOutsidePointerEvents) {
121
+ if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
122
+ $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
123
+ ownerDocument.body.style.pointerEvents = 'none';
124
+ }
125
+ context.layersWithOutsidePointerEventsDisabled.add(node1);
126
+ }
127
+ context.layers.add(node1);
128
+ $5cb92bef7577960e$var$dispatchUpdate();
129
+ return ()=>{
130
+ if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
131
+ };
132
+ }, [
133
+ node1,
134
+ ownerDocument,
135
+ disableOutsidePointerEvents,
136
+ context
137
+ ]);
138
+ /**
139
+ * We purposefully prevent combining this effect with the `disableOutsidePointerEvents` effect
140
+ * because a change to `disableOutsidePointerEvents` would remove this layer from the stack
141
+ * and add it to the end again so the layering order wouldn't be _creation order_.
142
+ * We only want them to be removed from context stacks when unmounted.
143
+ */ React.useEffect(()=>{
144
+ return ()=>{
145
+ if (!node1) return;
146
+ context.layers.delete(node1);
147
+ context.layersWithOutsidePointerEventsDisabled.delete(node1);
148
+ $5cb92bef7577960e$var$dispatchUpdate();
149
+ };
150
+ }, [
151
+ node1,
152
+ context
153
+ ]);
154
+ React.useEffect(()=>{
155
+ const handleUpdate = ()=>force({})
156
+ ;
157
+ document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
158
+ return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
159
+ ;
160
+ }, []);
161
+ return /*#__PURE__*/ React.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.div, index_module._extends({}, layerProps, {
162
+ ref: composedRefs,
163
+ style: {
164
+ pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
165
+ ...props.style
166
+ },
167
+ onFocusCapture: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusCapture, focusOutside.onFocusCapture),
168
+ onBlurCapture: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlurCapture, focusOutside.onBlurCapture),
169
+ onPointerDownCapture: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
170
+ }));
171
+ });
172
+ /* -----------------------------------------------------------------------------------------------*/ /**
173
+ * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`
174
+ * to mimic layer dismissing behaviour present in OS.
175
+ * Returns props to pass to the node we want to check for outside events.
176
+ */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
177
+ const handlePointerDownOutside = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPointerDownOutside);
178
+ const isPointerInsideReactTreeRef = React.useRef(false);
179
+ const handleClickRef = React.useRef(()=>{});
180
+ React.useEffect(()=>{
181
+ const handlePointerDown = (event)=>{
182
+ if (event.target && !isPointerInsideReactTreeRef.current) {
183
+ const eventDetail = {
184
+ originalEvent: event
185
+ };
186
+ function handleAndDispatchPointerDownOutsideEvent() {
187
+ $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {
188
+ discrete: true
189
+ });
190
+ }
191
+ /**
192
+ * On touch devices, we need to wait for a click event because browsers implement
193
+ * a ~350ms delay between the time the user stops touching the display and when the
194
+ * browser executres events. We need to ensure we don't reactivate pointer-events within
195
+ * this timeframe otherwise the browser may execute events that should have been prevented.
196
+ *
197
+ * Additionally, this also lets us deal automatically with cancellations when a click event
198
+ * isn't raised because the page was considered scrolled/drag-scrolled, long-pressed, etc.
199
+ *
200
+ * This is why we also continuously remove the previous listener, because we cannot be
201
+ * certain that it was raised, and therefore cleaned-up.
202
+ */ if (event.pointerType === 'touch') {
203
+ ownerDocument.removeEventListener('click', handleClickRef.current);
204
+ handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;
205
+ ownerDocument.addEventListener('click', handleClickRef.current, {
206
+ once: true
207
+ });
208
+ } else handleAndDispatchPointerDownOutsideEvent();
209
+ }
210
+ isPointerInsideReactTreeRef.current = false;
211
+ };
212
+ /**
213
+ * if this hook executes in a component that mounts via a `pointerdown` event, the event
214
+ * would bubble up to the document and trigger a `pointerDownOutside` event. We avoid
215
+ * this by delaying the event listener registration on the document.
216
+ * This is not React specific, but rather how the DOM works, ie:
217
+ * ```
218
+ * button.addEventListener('pointerdown', () => {
219
+ * console.log('I will log');
220
+ * document.addEventListener('pointerdown', () => {
221
+ * console.log('I will also log');
222
+ * })
223
+ * });
224
+ */ const timerId = window.setTimeout(()=>{
225
+ ownerDocument.addEventListener('pointerdown', handlePointerDown);
226
+ }, 0);
227
+ return ()=>{
228
+ window.clearTimeout(timerId);
229
+ ownerDocument.removeEventListener('pointerdown', handlePointerDown);
230
+ ownerDocument.removeEventListener('click', handleClickRef.current);
231
+ };
232
+ }, [
233
+ ownerDocument,
234
+ handlePointerDownOutside
235
+ ]);
236
+ return {
237
+ // ensures we check React component tree (not just DOM tree)
238
+ onPointerDownCapture: ()=>isPointerInsideReactTreeRef.current = true
239
+ };
240
+ }
241
+ /**
242
+ * Listens for when focus happens outside a react subtree.
243
+ * Returns props to pass to the root (node) of the subtree we want to check.
244
+ */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
245
+ const handleFocusOutside = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onFocusOutside);
246
+ const isFocusInsideReactTreeRef = React.useRef(false);
247
+ React.useEffect(()=>{
248
+ const handleFocus = (event)=>{
249
+ if (event.target && !isFocusInsideReactTreeRef.current) {
250
+ const eventDetail = {
251
+ originalEvent: event
252
+ };
253
+ $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
254
+ discrete: false
255
+ });
256
+ }
257
+ };
258
+ ownerDocument.addEventListener('focusin', handleFocus);
259
+ return ()=>ownerDocument.removeEventListener('focusin', handleFocus)
260
+ ;
261
+ }, [
262
+ ownerDocument,
263
+ handleFocusOutside
264
+ ]);
265
+ return {
266
+ onFocusCapture: ()=>isFocusInsideReactTreeRef.current = true
267
+ ,
268
+ onBlurCapture: ()=>isFocusInsideReactTreeRef.current = false
269
+ };
270
+ }
271
+ function $5cb92bef7577960e$var$dispatchUpdate() {
272
+ const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);
273
+ document.dispatchEvent(event);
274
+ }
275
+ function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {
276
+ const target = detail.originalEvent.target;
277
+ const event = new CustomEvent(name, {
278
+ bubbles: false,
279
+ cancelable: true,
280
+ detail: detail
281
+ });
282
+ if (handler) target.addEventListener(name, handler, {
283
+ once: true
284
+ });
285
+ if (discrete) index_module.$8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
286
+ else target.dispatchEvent(event);
287
+ }
288
+
289
+ const $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT = 'focusScope.autoFocusOnMount';
290
+ const $d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT = 'focusScope.autoFocusOnUnmount';
291
+ const $d3863c46a17e8a28$var$EVENT_OPTIONS = {
292
+ bubbles: false,
293
+ cancelable: true
294
+ };
295
+ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
296
+ const { loop: loop = false , trapped: trapped = false , onMountAutoFocus: onMountAutoFocusProp , onUnmountAutoFocus: onUnmountAutoFocusProp , ...scopeProps } = props;
297
+ const [container1, setContainer] = React.useState(null);
298
+ const onMountAutoFocus = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onMountAutoFocusProp);
299
+ const onUnmountAutoFocus = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onUnmountAutoFocusProp);
300
+ const lastFocusedElementRef = React.useRef(null);
301
+ const composedRefs = index_module.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContainer(node)
302
+ );
303
+ const focusScope = React.useRef({
304
+ paused: false,
305
+ pause () {
306
+ this.paused = true;
307
+ },
308
+ resume () {
309
+ this.paused = false;
310
+ }
311
+ }).current; // Takes care of trapping focus if focus is moved outside programmatically for example
312
+ React.useEffect(()=>{
313
+ if (trapped) {
314
+ function handleFocusIn(event) {
315
+ if (focusScope.paused || !container1) return;
316
+ const target = event.target;
317
+ if (container1.contains(target)) lastFocusedElementRef.current = target;
318
+ else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
319
+ select: true
320
+ });
321
+ }
322
+ function handleFocusOut(event) {
323
+ if (focusScope.paused || !container1) return;
324
+ if (!container1.contains(event.relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
325
+ select: true
326
+ });
327
+ }
328
+ document.addEventListener('focusin', handleFocusIn);
329
+ document.addEventListener('focusout', handleFocusOut);
330
+ return ()=>{
331
+ document.removeEventListener('focusin', handleFocusIn);
332
+ document.removeEventListener('focusout', handleFocusOut);
333
+ };
334
+ }
335
+ }, [
336
+ trapped,
337
+ container1,
338
+ focusScope.paused
339
+ ]);
340
+ React.useEffect(()=>{
341
+ if (container1) {
342
+ $d3863c46a17e8a28$var$focusScopesStack.add(focusScope);
343
+ const previouslyFocusedElement = document.activeElement;
344
+ const hasFocusedCandidate = container1.contains(previouslyFocusedElement);
345
+ if (!hasFocusedCandidate) {
346
+ const mountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);
347
+ container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
348
+ container1.dispatchEvent(mountEvent);
349
+ if (!mountEvent.defaultPrevented) {
350
+ $d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {
351
+ select: true
352
+ });
353
+ if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);
354
+ }
355
+ }
356
+ return ()=>{
357
+ container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus); // We hit a react bug (fixed in v17) with focusing in unmount.
358
+ // We need to delay the focus a little to get around it for now.
359
+ // See: https://github.com/facebook/react/issues/17894
360
+ setTimeout(()=>{
361
+ const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);
362
+ container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
363
+ container1.dispatchEvent(unmountEvent);
364
+ if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {
365
+ select: true
366
+ });
367
+ // we need to remove the listener after we `dispatchEvent`
368
+ container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
369
+ $d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);
370
+ }, 0);
371
+ };
372
+ }
373
+ }, [
374
+ container1,
375
+ onMountAutoFocus,
376
+ onUnmountAutoFocus,
377
+ focusScope
378
+ ]); // Takes care of looping focus (when tabbing whilst at the edges)
379
+ const handleKeyDown = React.useCallback((event)=>{
380
+ if (!loop && !trapped) return;
381
+ if (focusScope.paused) return;
382
+ const isTabKey = event.key === 'Tab' && !event.altKey && !event.ctrlKey && !event.metaKey;
383
+ const focusedElement = document.activeElement;
384
+ if (isTabKey && focusedElement) {
385
+ const container = event.currentTarget;
386
+ const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);
387
+ const hasTabbableElementsInside = first && last; // we can only wrap focus if we have tabbable edges
388
+ if (!hasTabbableElementsInside) {
389
+ if (focusedElement === container) event.preventDefault();
390
+ } else {
391
+ if (!event.shiftKey && focusedElement === last) {
392
+ event.preventDefault();
393
+ if (loop) $d3863c46a17e8a28$var$focus(first, {
394
+ select: true
395
+ });
396
+ } else if (event.shiftKey && focusedElement === first) {
397
+ event.preventDefault();
398
+ if (loop) $d3863c46a17e8a28$var$focus(last, {
399
+ select: true
400
+ });
401
+ }
402
+ }
403
+ }
404
+ }, [
405
+ loop,
406
+ trapped,
407
+ focusScope.paused
408
+ ]);
409
+ return /*#__PURE__*/ React.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.div, index_module._extends({
410
+ tabIndex: -1
411
+ }, scopeProps, {
412
+ ref: composedRefs,
413
+ onKeyDown: handleKeyDown
414
+ }));
415
+ });
416
+ /* -------------------------------------------------------------------------------------------------
417
+ * Utils
418
+ * -----------------------------------------------------------------------------------------------*/ /**
419
+ * Attempts focusing the first element in a list of candidates.
420
+ * Stops when focus has actually moved.
421
+ */ function $d3863c46a17e8a28$var$focusFirst(candidates, { select: select = false } = {}) {
422
+ const previouslyFocusedElement = document.activeElement;
423
+ for (const candidate of candidates){
424
+ $d3863c46a17e8a28$var$focus(candidate, {
425
+ select: select
426
+ });
427
+ if (document.activeElement !== previouslyFocusedElement) return;
428
+ }
429
+ }
430
+ /**
431
+ * Returns the first and last tabbable elements inside a container.
432
+ */ function $d3863c46a17e8a28$var$getTabbableEdges(container) {
433
+ const candidates = $d3863c46a17e8a28$var$getTabbableCandidates(container);
434
+ const first = $d3863c46a17e8a28$var$findVisible(candidates, container);
435
+ const last = $d3863c46a17e8a28$var$findVisible(candidates.reverse(), container);
436
+ return [
437
+ first,
438
+ last
439
+ ];
440
+ }
441
+ /**
442
+ * Returns a list of potential tabbable candidates.
443
+ *
444
+ * NOTE: This is only a close approximation. For example it doesn't take into account cases like when
445
+ * elements are not visible. This cannot be worked out easily by just reading a property, but rather
446
+ * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.
447
+ *
448
+ * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker
449
+ * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1
450
+ */ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {
451
+ const nodes = [];
452
+ const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
453
+ acceptNode: (node)=>{
454
+ const isHiddenInput = node.tagName === 'INPUT' && node.type === 'hidden';
455
+ if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; // `.tabIndex` is not the same as the `tabindex` attribute. It works on the
456
+ // runtime's understanding of tabbability, so this automatically accounts
457
+ // for any kind of element that could be tabbed to.
458
+ return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
459
+ }
460
+ });
461
+ while(walker.nextNode())nodes.push(walker.currentNode); // we do not take into account the order of nodes with positive `tabIndex` as it
462
+ // hinders accessibility to have tab order different from visual order.
463
+ return nodes;
464
+ }
465
+ /**
466
+ * Returns the first visible element in a list.
467
+ * NOTE: Only checks visibility up to the `container`.
468
+ */ function $d3863c46a17e8a28$var$findVisible(elements, container) {
469
+ for (const element of elements){
470
+ // we stop checking if it's hidden at the `container` level (excluding)
471
+ if (!$d3863c46a17e8a28$var$isHidden(element, {
472
+ upTo: container
473
+ })) return element;
474
+ }
475
+ }
476
+ function $d3863c46a17e8a28$var$isHidden(node, { upTo: upTo }) {
477
+ if (getComputedStyle(node).visibility === 'hidden') return true;
478
+ while(node){
479
+ // we stop at `upTo` (excluding it)
480
+ if (upTo !== undefined && node === upTo) return false;
481
+ if (getComputedStyle(node).display === 'none') return true;
482
+ node = node.parentElement;
483
+ }
484
+ return false;
485
+ }
486
+ function $d3863c46a17e8a28$var$isSelectableInput(element) {
487
+ return element instanceof HTMLInputElement && 'select' in element;
488
+ }
489
+ function $d3863c46a17e8a28$var$focus(element, { select: select = false } = {}) {
490
+ // only focus if that element is focusable
491
+ if (element && element.focus) {
492
+ const previouslyFocusedElement = document.activeElement; // NOTE: we prevent scrolling on focus, to minimize jarring transitions for users
493
+ element.focus({
494
+ preventScroll: true
495
+ }); // only select if its not the same element, it supports selection and we need to select
496
+ if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();
497
+ }
498
+ }
499
+ /* -------------------------------------------------------------------------------------------------
500
+ * FocusScope stack
501
+ * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();
502
+ function $d3863c46a17e8a28$var$createFocusScopesStack() {
503
+ /** A stack of focus scopes, with the active one at the top */ let stack = [];
504
+ return {
505
+ add (focusScope) {
506
+ // pause the currently active focus scope (at the top of the stack)
507
+ const activeFocusScope = stack[0];
508
+ if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();
509
+ // remove in case it already exists (because we'll re-add it at the top of the stack)
510
+ stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);
511
+ stack.unshift(focusScope);
512
+ },
513
+ remove (focusScope) {
514
+ var _stack$;
515
+ stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);
516
+ (_stack$ = stack[0]) === null || _stack$ === void 0 || _stack$.resume();
517
+ }
518
+ };
519
+ }
520
+ function $d3863c46a17e8a28$var$arrayRemove(array, item) {
521
+ const updatedArray = [
522
+ ...array
523
+ ];
524
+ const index = updatedArray.indexOf(item);
525
+ if (index !== -1) updatedArray.splice(index, 1);
526
+ return updatedArray;
527
+ }
528
+ function $d3863c46a17e8a28$var$removeLinks(items) {
529
+ return items.filter((item)=>item.tagName !== 'A'
530
+ );
531
+ }
532
+
533
+ const $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
534
+ var _globalThis$document;
535
+ const { container: container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body , ...portalProps } = props;
536
+ return container ? /*#__PURE__*/ $7SXl2$reactdom__default["default"].createPortal(/*#__PURE__*/ React.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.div, index_module._extends({}, portalProps, {
537
+ ref: forwardedRef
538
+ })), container) : null;
539
+ });
540
+
541
+ /** Number of components which have requested interest to have focus guards */ let $3db38b7d1fb3fe6a$var$count = 0;
542
+ /**
543
+ * Injects a pair of focus guards at the edges of the whole DOM tree
544
+ * to ensure `focusin` & `focusout` events can be caught consistently.
545
+ */ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
546
+ React.useEffect(()=>{
547
+ var _edgeGuards$, _edgeGuards$2;
548
+ const edgeGuards = document.querySelectorAll('[data-radix-focus-guard]');
549
+ document.body.insertAdjacentElement('afterbegin', (_edgeGuards$ = edgeGuards[0]) !== null && _edgeGuards$ !== void 0 ? _edgeGuards$ : $3db38b7d1fb3fe6a$var$createFocusGuard());
550
+ document.body.insertAdjacentElement('beforeend', (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());
551
+ $3db38b7d1fb3fe6a$var$count++;
552
+ return ()=>{
553
+ if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll('[data-radix-focus-guard]').forEach((node)=>node.remove()
554
+ );
555
+ $3db38b7d1fb3fe6a$var$count--;
556
+ };
557
+ }, []);
558
+ }
559
+ function $3db38b7d1fb3fe6a$var$createFocusGuard() {
560
+ const element = document.createElement('span');
561
+ element.setAttribute('data-radix-focus-guard', '');
562
+ element.tabIndex = 0;
563
+ element.style.cssText = 'outline: none; opacity: 0; position: fixed; pointer-events: none';
564
+ return element;
565
+ }
566
+
567
+ /******************************************************************************
568
+ Copyright (c) Microsoft Corporation.
569
+
570
+ Permission to use, copy, modify, and/or distribute this software for any
571
+ purpose with or without fee is hereby granted.
572
+
573
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
574
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
575
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
576
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
577
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
578
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
579
+ PERFORMANCE OF THIS SOFTWARE.
580
+ ***************************************************************************** */
581
+
582
+ var __assign$1 = function() {
583
+ __assign$1 = Object.assign || function __assign(t) {
584
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
585
+ s = arguments[i];
586
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
587
+ }
588
+ return t;
589
+ };
590
+ return __assign$1.apply(this, arguments);
591
+ };
592
+
593
+ function __rest$1(s, e) {
594
+ var t = {};
595
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
596
+ t[p] = s[p];
597
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
598
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
599
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
600
+ t[p[i]] = s[p[i]];
601
+ }
602
+ return t;
603
+ }
604
+
605
+ function __spreadArray(to, from, pack) {
606
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
607
+ if (ar || !(i in from)) {
608
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
609
+ ar[i] = from[i];
610
+ }
611
+ }
612
+ return to.concat(ar || Array.prototype.slice.call(from));
613
+ }
614
+
615
+ var zeroRightClassName = 'right-scroll-bar-position';
616
+ var fullWidthClassName = 'width-before-scroll-bar';
617
+ var noScrollbarsClassName = 'with-scroll-bars-hidden';
618
+ /**
619
+ * Name of a CSS variable containing the amount of "hidden" scrollbar
620
+ * ! might be undefined ! use will fallback!
621
+ */
622
+ var removedBarSizeVariable = '--removed-body-scroll-bar-size';
623
+
624
+ /**
625
+ * Assigns a value for a given ref, no matter of the ref format
626
+ * @param {RefObject} ref - a callback function or ref object
627
+ * @param value - a new value
628
+ *
629
+ * @see https://github.com/theKashey/use-callback-ref#assignref
630
+ * @example
631
+ * const refObject = useRef();
632
+ * const refFn = (ref) => {....}
633
+ *
634
+ * assignRef(refObject, "refValue");
635
+ * assignRef(refFn, "refValue");
636
+ */
637
+ function assignRef(ref, value) {
638
+ if (typeof ref === 'function') {
639
+ ref(value);
640
+ }
641
+ else if (ref) {
642
+ ref.current = value;
643
+ }
644
+ return ref;
645
+ }
646
+
647
+ /**
648
+ * creates a MutableRef with ref change callback
649
+ * @param initialValue - initial ref value
650
+ * @param {Function} callback - a callback to run when value changes
651
+ *
652
+ * @example
653
+ * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
654
+ * ref.current = 1;
655
+ * // prints 0 -> 1
656
+ *
657
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
658
+ * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
659
+ * @returns {MutableRefObject}
660
+ */
661
+ function useCallbackRef(initialValue, callback) {
662
+ var ref = React.useState(function () { return ({
663
+ // value
664
+ value: initialValue,
665
+ // last callback
666
+ callback: callback,
667
+ // "memoized" public interface
668
+ facade: {
669
+ get current() {
670
+ return ref.value;
671
+ },
672
+ set current(value) {
673
+ var last = ref.value;
674
+ if (last !== value) {
675
+ ref.value = value;
676
+ ref.callback(value, last);
677
+ }
678
+ },
679
+ },
680
+ }); })[0];
681
+ // update callback
682
+ ref.callback = callback;
683
+ return ref.facade;
684
+ }
685
+
686
+ /**
687
+ * Merges two or more refs together providing a single interface to set their value
688
+ * @param {RefObject|Ref} refs
689
+ * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
690
+ *
691
+ * @see {@link mergeRefs} a version without buit-in memoization
692
+ * @see https://github.com/theKashey/use-callback-ref#usemergerefs
693
+ * @example
694
+ * const Component = React.forwardRef((props, ref) => {
695
+ * const ownRef = useRef();
696
+ * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
697
+ * return <div ref={domRef}>...</div>
698
+ * }
699
+ */
700
+ function useMergeRefs(refs, defaultValue) {
701
+ return useCallbackRef(defaultValue || null, function (newValue) { return refs.forEach(function (ref) { return assignRef(ref, newValue); }); });
702
+ }
703
+
704
+ /*! *****************************************************************************
705
+ Copyright (c) Microsoft Corporation.
706
+
707
+ Permission to use, copy, modify, and/or distribute this software for any
708
+ purpose with or without fee is hereby granted.
709
+
710
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
711
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
712
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
713
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
714
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
715
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
716
+ PERFORMANCE OF THIS SOFTWARE.
717
+ ***************************************************************************** */
718
+
719
+ var __assign = function() {
720
+ __assign = Object.assign || function __assign(t) {
721
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
722
+ s = arguments[i];
723
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
724
+ }
725
+ return t;
726
+ };
727
+ return __assign.apply(this, arguments);
728
+ };
729
+
730
+ function __rest(s, e) {
731
+ var t = {};
732
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
733
+ t[p] = s[p];
734
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
735
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
736
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
737
+ t[p[i]] = s[p[i]];
738
+ }
739
+ return t;
740
+ }
741
+
742
+ function ItoI(a) {
743
+ return a;
744
+ }
745
+ function innerCreateMedium(defaults, middleware) {
746
+ if (middleware === void 0) { middleware = ItoI; }
747
+ var buffer = [];
748
+ var assigned = false;
749
+ var medium = {
750
+ read: function () {
751
+ if (assigned) {
752
+ throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
753
+ }
754
+ if (buffer.length) {
755
+ return buffer[buffer.length - 1];
756
+ }
757
+ return defaults;
758
+ },
759
+ useMedium: function (data) {
760
+ var item = middleware(data, assigned);
761
+ buffer.push(item);
762
+ return function () {
763
+ buffer = buffer.filter(function (x) { return x !== item; });
764
+ };
765
+ },
766
+ assignSyncMedium: function (cb) {
767
+ assigned = true;
768
+ while (buffer.length) {
769
+ var cbs = buffer;
770
+ buffer = [];
771
+ cbs.forEach(cb);
772
+ }
773
+ buffer = {
774
+ push: function (x) { return cb(x); },
775
+ filter: function () { return buffer; },
776
+ };
777
+ },
778
+ assignMedium: function (cb) {
779
+ assigned = true;
780
+ var pendingQueue = [];
781
+ if (buffer.length) {
782
+ var cbs = buffer;
783
+ buffer = [];
784
+ cbs.forEach(cb);
785
+ pendingQueue = buffer;
786
+ }
787
+ var executeQueue = function () {
788
+ var cbs = pendingQueue;
789
+ pendingQueue = [];
790
+ cbs.forEach(cb);
791
+ };
792
+ var cycle = function () { return Promise.resolve().then(executeQueue); };
793
+ cycle();
794
+ buffer = {
795
+ push: function (x) {
796
+ pendingQueue.push(x);
797
+ cycle();
798
+ },
799
+ filter: function (filter) {
800
+ pendingQueue = pendingQueue.filter(filter);
801
+ return buffer;
802
+ },
803
+ };
804
+ },
805
+ };
806
+ return medium;
807
+ }
808
+ // eslint-disable-next-line @typescript-eslint/ban-types
809
+ function createSidecarMedium(options) {
810
+ if (options === void 0) { options = {}; }
811
+ var medium = innerCreateMedium(null);
812
+ medium.options = __assign({ async: true, ssr: false }, options);
813
+ return medium;
814
+ }
815
+
816
+ var SideCar$1 = function (_a) {
817
+ var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
818
+ if (!sideCar) {
819
+ throw new Error('Sidecar: please provide `sideCar` property to import the right car');
820
+ }
821
+ var Target = sideCar.read();
822
+ if (!Target) {
823
+ throw new Error('Sidecar medium not found');
824
+ }
825
+ return React__namespace.createElement(Target, __assign({}, rest));
826
+ };
827
+ SideCar$1.isSideCarExport = true;
828
+ function exportSidecar(medium, exported) {
829
+ medium.useMedium(exported);
830
+ return SideCar$1;
831
+ }
832
+
833
+ var effectCar = createSidecarMedium();
834
+
835
+ var nothing = function () {
836
+ return;
837
+ };
838
+ /**
839
+ * Removes scrollbar from the page and contain the scroll within the Lock
840
+ */
841
+ var RemoveScroll = React__namespace.forwardRef(function (props, parentRef) {
842
+ var ref = React__namespace.useRef(null);
843
+ var _a = React__namespace.useState({
844
+ onScrollCapture: nothing,
845
+ onWheelCapture: nothing,
846
+ onTouchMoveCapture: nothing,
847
+ }), callbacks = _a[0], setCallbacks = _a[1];
848
+ var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, rest = __rest$1(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]);
849
+ var SideCar = sideCar;
850
+ var containerRef = useMergeRefs([ref, parentRef]);
851
+ var containerProps = __assign$1(__assign$1({}, rest), callbacks);
852
+ return (React__namespace.createElement(React__namespace.Fragment, null,
853
+ enabled && (React__namespace.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),
854
+ forwardProps ? (React__namespace.cloneElement(React__namespace.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef }))) : (React__namespace.createElement(Container, __assign$1({}, containerProps, { className: className, ref: containerRef }), children))));
855
+ });
856
+ RemoveScroll.defaultProps = {
857
+ enabled: true,
858
+ removeScrollBar: true,
859
+ inert: false,
860
+ };
861
+ RemoveScroll.classNames = {
862
+ fullWidth: fullWidthClassName,
863
+ zeroRight: zeroRightClassName,
864
+ };
865
+
866
+ var getNonce = function () {
867
+ if (typeof __webpack_nonce__ !== 'undefined') {
868
+ return __webpack_nonce__;
869
+ }
870
+ return undefined;
871
+ };
872
+
873
+ function makeStyleTag() {
874
+ if (!document)
875
+ return null;
876
+ var tag = document.createElement('style');
877
+ tag.type = 'text/css';
878
+ var nonce = getNonce();
879
+ if (nonce) {
880
+ tag.setAttribute('nonce', nonce);
881
+ }
882
+ return tag;
883
+ }
884
+ function injectStyles(tag, css) {
885
+ // @ts-ignore
886
+ if (tag.styleSheet) {
887
+ // @ts-ignore
888
+ tag.styleSheet.cssText = css;
889
+ }
890
+ else {
891
+ tag.appendChild(document.createTextNode(css));
892
+ }
893
+ }
894
+ function insertStyleTag(tag) {
895
+ var head = document.head || document.getElementsByTagName('head')[0];
896
+ head.appendChild(tag);
897
+ }
898
+ var stylesheetSingleton = function () {
899
+ var counter = 0;
900
+ var stylesheet = null;
901
+ return {
902
+ add: function (style) {
903
+ if (counter == 0) {
904
+ if ((stylesheet = makeStyleTag())) {
905
+ injectStyles(stylesheet, style);
906
+ insertStyleTag(stylesheet);
907
+ }
908
+ }
909
+ counter++;
910
+ },
911
+ remove: function () {
912
+ counter--;
913
+ if (!counter && stylesheet) {
914
+ stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
915
+ stylesheet = null;
916
+ }
917
+ },
918
+ };
919
+ };
920
+
921
+ /**
922
+ * creates a hook to control style singleton
923
+ * @see {@link styleSingleton} for a safer component version
924
+ * @example
925
+ * ```tsx
926
+ * const useStyle = styleHookSingleton();
927
+ * ///
928
+ * useStyle('body { overflow: hidden}');
929
+ */
930
+ var styleHookSingleton = function () {
931
+ var sheet = stylesheetSingleton();
932
+ return function (styles, isDynamic) {
933
+ React__namespace.useEffect(function () {
934
+ sheet.add(styles);
935
+ return function () {
936
+ sheet.remove();
937
+ };
938
+ }, [styles && isDynamic]);
939
+ };
940
+ };
941
+
942
+ /**
943
+ * create a Component to add styles on demand
944
+ * - styles are added when first instance is mounted
945
+ * - styles are removed when the last instance is unmounted
946
+ * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
947
+ */
948
+ var styleSingleton = function () {
949
+ var useStyle = styleHookSingleton();
950
+ var Sheet = function (_a) {
951
+ var styles = _a.styles, dynamic = _a.dynamic;
952
+ useStyle(styles, dynamic);
953
+ return null;
954
+ };
955
+ return Sheet;
956
+ };
957
+
958
+ var zeroGap = {
959
+ left: 0,
960
+ top: 0,
961
+ right: 0,
962
+ gap: 0,
963
+ };
964
+ var parse = function (x) { return parseInt(x || '', 10) || 0; };
965
+ var getOffset = function (gapMode) {
966
+ var cs = window.getComputedStyle(document.body);
967
+ var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
968
+ var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
969
+ var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
970
+ return [parse(left), parse(top), parse(right)];
971
+ };
972
+ var getGapWidth = function (gapMode) {
973
+ if (gapMode === void 0) { gapMode = 'margin'; }
974
+ if (typeof window === 'undefined') {
975
+ return zeroGap;
976
+ }
977
+ var offsets = getOffset(gapMode);
978
+ var documentWidth = document.documentElement.clientWidth;
979
+ var windowWidth = window.innerWidth;
980
+ return {
981
+ left: offsets[0],
982
+ top: offsets[1],
983
+ right: offsets[2],
984
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
985
+ };
986
+ };
987
+
988
+ var Style = styleSingleton();
989
+ // important tip - once we measure scrollBar width and remove them
990
+ // we could not repeat this operation
991
+ // thus we are using style-singleton - only the first "yet correct" style will be applied.
992
+ var getStyles = function (_a, allowRelative, gapMode, important) {
993
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
994
+ if (gapMode === void 0) { gapMode = 'margin'; }
995
+ return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
996
+ allowRelative && "position: relative ".concat(important, ";"),
997
+ gapMode === 'margin' &&
998
+ "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
999
+ gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
1000
+ ]
1001
+ .filter(Boolean)
1002
+ .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
1003
+ };
1004
+ /**
1005
+ * Removes page scrollbar and blocks page scroll when mounted
1006
+ */
1007
+ var RemoveScrollBar = function (props) {
1008
+ var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? 'margin' : _a;
1009
+ /*
1010
+ gap will be measured on every component mount
1011
+ however it will be used only by the "first" invocation
1012
+ due to singleton nature of <Style
1013
+ */
1014
+ var gap = React__namespace.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
1015
+ return React__namespace.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
1016
+ };
1017
+
1018
+ var passiveSupported = false;
1019
+ if (typeof window !== 'undefined') {
1020
+ try {
1021
+ var options = Object.defineProperty({}, 'passive', {
1022
+ get: function () {
1023
+ passiveSupported = true;
1024
+ return true;
1025
+ },
1026
+ });
1027
+ // @ts-ignore
1028
+ window.addEventListener('test', options, options);
1029
+ // @ts-ignore
1030
+ window.removeEventListener('test', options, options);
1031
+ }
1032
+ catch (err) {
1033
+ passiveSupported = false;
1034
+ }
1035
+ }
1036
+ var nonPassive = passiveSupported ? { passive: false } : false;
1037
+
1038
+ var alwaysContainsScroll = function (node) {
1039
+ // textarea will always _contain_ scroll inside self. It only can be hidden
1040
+ return node.tagName === 'TEXTAREA';
1041
+ };
1042
+ var elementCanBeScrolled = function (node, overflow) {
1043
+ var styles = window.getComputedStyle(node);
1044
+ return (
1045
+ // not-not-scrollable
1046
+ styles[overflow] !== 'hidden' &&
1047
+ // contains scroll inside self
1048
+ !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
1049
+ };
1050
+ var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
1051
+ var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
1052
+ var locationCouldBeScrolled = function (axis, node) {
1053
+ var current = node;
1054
+ do {
1055
+ // Skip over shadow root
1056
+ if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
1057
+ current = current.host;
1058
+ }
1059
+ var isScrollable = elementCouldBeScrolled(axis, current);
1060
+ if (isScrollable) {
1061
+ var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];
1062
+ if (s > d) {
1063
+ return true;
1064
+ }
1065
+ }
1066
+ current = current.parentNode;
1067
+ } while (current && current !== document.body);
1068
+ return false;
1069
+ };
1070
+ var getVScrollVariables = function (_a) {
1071
+ var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
1072
+ return [
1073
+ scrollTop,
1074
+ scrollHeight,
1075
+ clientHeight,
1076
+ ];
1077
+ };
1078
+ var getHScrollVariables = function (_a) {
1079
+ var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
1080
+ return [
1081
+ scrollLeft,
1082
+ scrollWidth,
1083
+ clientWidth,
1084
+ ];
1085
+ };
1086
+ var elementCouldBeScrolled = function (axis, node) {
1087
+ return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
1088
+ };
1089
+ var getScrollVariables = function (axis, node) {
1090
+ return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
1091
+ };
1092
+ var getDirectionFactor = function (axis, direction) {
1093
+ /**
1094
+ * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
1095
+ * and then increasingly negative as you scroll towards the end of the content.
1096
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
1097
+ */
1098
+ return axis === 'h' && direction === 'rtl' ? -1 : 1;
1099
+ };
1100
+ var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
1101
+ var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
1102
+ var delta = directionFactor * sourceDelta;
1103
+ // find scrollable target
1104
+ var target = event.target;
1105
+ var targetInLock = endTarget.contains(target);
1106
+ var shouldCancelScroll = false;
1107
+ var isDeltaPositive = delta > 0;
1108
+ var availableScroll = 0;
1109
+ var availableScrollTop = 0;
1110
+ do {
1111
+ var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
1112
+ var elementScroll = scroll_1 - capacity - directionFactor * position;
1113
+ if (position || elementScroll) {
1114
+ if (elementCouldBeScrolled(axis, target)) {
1115
+ availableScroll += elementScroll;
1116
+ availableScrollTop += position;
1117
+ }
1118
+ }
1119
+ target = target.parentNode;
1120
+ } while (
1121
+ // portaled content
1122
+ (!targetInLock && target !== document.body) ||
1123
+ // self content
1124
+ (targetInLock && (endTarget.contains(target) || endTarget === target)));
1125
+ if (isDeltaPositive && ((noOverscroll && availableScroll === 0) || (!noOverscroll && delta > availableScroll))) {
1126
+ shouldCancelScroll = true;
1127
+ }
1128
+ else if (!isDeltaPositive &&
1129
+ ((noOverscroll && availableScrollTop === 0) || (!noOverscroll && -delta > availableScrollTop))) {
1130
+ shouldCancelScroll = true;
1131
+ }
1132
+ return shouldCancelScroll;
1133
+ };
1134
+
1135
+ var getTouchXY = function (event) {
1136
+ return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
1137
+ };
1138
+ var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
1139
+ var extractRef = function (ref) {
1140
+ return ref && 'current' in ref ? ref.current : ref;
1141
+ };
1142
+ var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
1143
+ var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
1144
+ var idCounter = 0;
1145
+ var lockStack = [];
1146
+ function RemoveScrollSideCar(props) {
1147
+ var shouldPreventQueue = React__namespace.useRef([]);
1148
+ var touchStartRef = React__namespace.useRef([0, 0]);
1149
+ var activeAxis = React__namespace.useRef();
1150
+ var id = React__namespace.useState(idCounter++)[0];
1151
+ var Style = React__namespace.useState(function () { return styleSingleton(); })[0];
1152
+ var lastProps = React__namespace.useRef(props);
1153
+ React__namespace.useEffect(function () {
1154
+ lastProps.current = props;
1155
+ }, [props]);
1156
+ React__namespace.useEffect(function () {
1157
+ if (props.inert) {
1158
+ document.body.classList.add("block-interactivity-".concat(id));
1159
+ var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
1160
+ allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
1161
+ return function () {
1162
+ document.body.classList.remove("block-interactivity-".concat(id));
1163
+ allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
1164
+ };
1165
+ }
1166
+ return;
1167
+ }, [props.inert, props.lockRef.current, props.shards]);
1168
+ var shouldCancelEvent = React__namespace.useCallback(function (event, parent) {
1169
+ if ('touches' in event && event.touches.length === 2) {
1170
+ return !lastProps.current.allowPinchZoom;
1171
+ }
1172
+ var touch = getTouchXY(event);
1173
+ var touchStart = touchStartRef.current;
1174
+ var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
1175
+ var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
1176
+ var currentAxis;
1177
+ var target = event.target;
1178
+ var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
1179
+ // allow horizontal touch move on Range inputs. They will not cause any scroll
1180
+ if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
1181
+ return false;
1182
+ }
1183
+ var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1184
+ if (!canBeScrolledInMainDirection) {
1185
+ return true;
1186
+ }
1187
+ if (canBeScrolledInMainDirection) {
1188
+ currentAxis = moveDirection;
1189
+ }
1190
+ else {
1191
+ currentAxis = moveDirection === 'v' ? 'h' : 'v';
1192
+ canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1193
+ // other axis might be not scrollable
1194
+ }
1195
+ if (!canBeScrolledInMainDirection) {
1196
+ return false;
1197
+ }
1198
+ if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
1199
+ activeAxis.current = currentAxis;
1200
+ }
1201
+ if (!currentAxis) {
1202
+ return true;
1203
+ }
1204
+ var cancelingAxis = activeAxis.current || currentAxis;
1205
+ return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);
1206
+ }, []);
1207
+ var shouldPrevent = React__namespace.useCallback(function (_event) {
1208
+ var event = _event;
1209
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
1210
+ // not the last active
1211
+ return;
1212
+ }
1213
+ var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
1214
+ var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];
1215
+ // self event, and should be canceled
1216
+ if (sourceEvent && sourceEvent.should) {
1217
+ if (event.cancelable) {
1218
+ event.preventDefault();
1219
+ }
1220
+ return;
1221
+ }
1222
+ // outside or shard event
1223
+ if (!sourceEvent) {
1224
+ var shardNodes = (lastProps.current.shards || [])
1225
+ .map(extractRef)
1226
+ .filter(Boolean)
1227
+ .filter(function (node) { return node.contains(event.target); });
1228
+ var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
1229
+ if (shouldStop) {
1230
+ if (event.cancelable) {
1231
+ event.preventDefault();
1232
+ }
1233
+ }
1234
+ }
1235
+ }, []);
1236
+ var shouldCancel = React__namespace.useCallback(function (name, delta, target, should) {
1237
+ var event = { name: name, delta: delta, target: target, should: should };
1238
+ shouldPreventQueue.current.push(event);
1239
+ setTimeout(function () {
1240
+ shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
1241
+ }, 1);
1242
+ }, []);
1243
+ var scrollTouchStart = React__namespace.useCallback(function (event) {
1244
+ touchStartRef.current = getTouchXY(event);
1245
+ activeAxis.current = undefined;
1246
+ }, []);
1247
+ var scrollWheel = React__namespace.useCallback(function (event) {
1248
+ shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1249
+ }, []);
1250
+ var scrollTouchMove = React__namespace.useCallback(function (event) {
1251
+ shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1252
+ }, []);
1253
+ React__namespace.useEffect(function () {
1254
+ lockStack.push(Style);
1255
+ props.setCallbacks({
1256
+ onScrollCapture: scrollWheel,
1257
+ onWheelCapture: scrollWheel,
1258
+ onTouchMoveCapture: scrollTouchMove,
1259
+ });
1260
+ document.addEventListener('wheel', shouldPrevent, nonPassive);
1261
+ document.addEventListener('touchmove', shouldPrevent, nonPassive);
1262
+ document.addEventListener('touchstart', scrollTouchStart, nonPassive);
1263
+ return function () {
1264
+ lockStack = lockStack.filter(function (inst) { return inst !== Style; });
1265
+ document.removeEventListener('wheel', shouldPrevent, nonPassive);
1266
+ document.removeEventListener('touchmove', shouldPrevent, nonPassive);
1267
+ document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
1268
+ };
1269
+ }, []);
1270
+ var removeScrollBar = props.removeScrollBar, inert = props.inert;
1271
+ return (React__namespace.createElement(React__namespace.Fragment, null,
1272
+ inert ? React__namespace.createElement(Style, { styles: generateStyle(id) }) : null,
1273
+ removeScrollBar ? React__namespace.createElement(RemoveScrollBar, { gapMode: "margin" }) : null));
1274
+ }
1275
+
1276
+ var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
1277
+
1278
+ var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { return (React__namespace.createElement(RemoveScroll, __assign$1({}, props, { ref: ref, sideCar: SideCar }))); });
1279
+ ReactRemoveScroll.classNames = RemoveScroll.classNames;
1280
+ var $01b9c$RemoveScroll = ReactRemoveScroll;
1281
+
1282
+ var getDefaultParent = function (originalTarget) {
1283
+ if (typeof document === 'undefined') {
1284
+ return null;
1285
+ }
1286
+ var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
1287
+ return sampleTarget.ownerDocument.body;
1288
+ };
1289
+ var counterMap = new WeakMap();
1290
+ var uncontrolledNodes = new WeakMap();
1291
+ var markerMap = {};
1292
+ var lockCount = 0;
1293
+ var unwrapHost = function (node) {
1294
+ return node && (node.host || unwrapHost(node.parentNode));
1295
+ };
1296
+ var correctTargets = function (parent, targets) {
1297
+ return targets.map(function (target) {
1298
+ if (parent.contains(target)) {
1299
+ return target;
1300
+ }
1301
+ var correctedTarget = unwrapHost(target);
1302
+ if (correctedTarget && parent.contains(correctedTarget)) {
1303
+ return correctedTarget;
1304
+ }
1305
+ console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');
1306
+ return null;
1307
+ }).filter(function (x) { return Boolean(x); });
1308
+ };
1309
+ /**
1310
+ * Marks everything except given node(or nodes) as aria-hidden
1311
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
1312
+ * @param [parentNode] - top element, defaults to document.body
1313
+ * @param {String} [markerName] - a special attribute to mark every node
1314
+ * @param {String} [controlAttribute] - html Attribute to control
1315
+ * @return {Undo} undo command
1316
+ */
1317
+ var applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {
1318
+ var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
1319
+ if (!markerMap[markerName]) {
1320
+ markerMap[markerName] = new WeakMap();
1321
+ }
1322
+ var markerCounter = markerMap[markerName];
1323
+ var hiddenNodes = [];
1324
+ var elementsToKeep = new Set();
1325
+ var elementsToStop = new Set(targets);
1326
+ var keep = function (el) {
1327
+ if (!el || elementsToKeep.has(el)) {
1328
+ return;
1329
+ }
1330
+ elementsToKeep.add(el);
1331
+ keep(el.parentNode);
1332
+ };
1333
+ targets.forEach(keep);
1334
+ var deep = function (parent) {
1335
+ if (!parent || elementsToStop.has(parent)) {
1336
+ return;
1337
+ }
1338
+ Array.prototype.forEach.call(parent.children, function (node) {
1339
+ if (elementsToKeep.has(node)) {
1340
+ deep(node);
1341
+ }
1342
+ else {
1343
+ var attr = node.getAttribute(controlAttribute);
1344
+ var alreadyHidden = attr !== null && attr !== 'false';
1345
+ var counterValue = (counterMap.get(node) || 0) + 1;
1346
+ var markerValue = (markerCounter.get(node) || 0) + 1;
1347
+ counterMap.set(node, counterValue);
1348
+ markerCounter.set(node, markerValue);
1349
+ hiddenNodes.push(node);
1350
+ if (counterValue === 1 && alreadyHidden) {
1351
+ uncontrolledNodes.set(node, true);
1352
+ }
1353
+ if (markerValue === 1) {
1354
+ node.setAttribute(markerName, 'true');
1355
+ }
1356
+ if (!alreadyHidden) {
1357
+ node.setAttribute(controlAttribute, 'true');
1358
+ }
1359
+ }
1360
+ });
1361
+ };
1362
+ deep(parentNode);
1363
+ elementsToKeep.clear();
1364
+ lockCount++;
1365
+ return function () {
1366
+ hiddenNodes.forEach(function (node) {
1367
+ var counterValue = counterMap.get(node) - 1;
1368
+ var markerValue = markerCounter.get(node) - 1;
1369
+ counterMap.set(node, counterValue);
1370
+ markerCounter.set(node, markerValue);
1371
+ if (!counterValue) {
1372
+ if (!uncontrolledNodes.has(node)) {
1373
+ node.removeAttribute(controlAttribute);
1374
+ }
1375
+ uncontrolledNodes.delete(node);
1376
+ }
1377
+ if (!markerValue) {
1378
+ node.removeAttribute(markerName);
1379
+ }
1380
+ });
1381
+ lockCount--;
1382
+ if (!lockCount) {
1383
+ // clear
1384
+ counterMap = new WeakMap();
1385
+ counterMap = new WeakMap();
1386
+ uncontrolledNodes = new WeakMap();
1387
+ markerMap = {};
1388
+ }
1389
+ };
1390
+ };
1391
+ /**
1392
+ * Marks everything except given node(or nodes) as aria-hidden
1393
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
1394
+ * @param [parentNode] - top element, defaults to document.body
1395
+ * @param {String} [markerName] - a special attribute to mark every node
1396
+ * @return {Undo} undo command
1397
+ */
1398
+ var hideOthers = function (originalTarget, parentNode, markerName) {
1399
+ if (markerName === void 0) { markerName = 'data-aria-hidden'; }
1400
+ var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
1401
+ var activeParentNode = parentNode || getDefaultParent(originalTarget);
1402
+ if (!activeParentNode) {
1403
+ return function () { return null; };
1404
+ }
1405
+ // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10
1406
+ targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));
1407
+ return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');
1408
+ };
1409
+
1410
+ exports.$01b9c$RemoveScroll = $01b9c$RemoveScroll;
1411
+ exports.$1746a345f3d73bb7$export$f680877a34711e37 = $1746a345f3d73bb7$export$f680877a34711e37;
1412
+ exports.$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c = $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c;
1413
+ exports.$5cb92bef7577960e$export$177fb62ff3ec1f22 = $5cb92bef7577960e$export$177fb62ff3ec1f22;
1414
+ exports.$d3863c46a17e8a28$export$20e40289641fbbb6 = $d3863c46a17e8a28$export$20e40289641fbbb6;
1415
+ exports.$f1701beae083dbae$export$602eac185826482c = $f1701beae083dbae$export$602eac185826482c;
1416
+ exports.hideOthers = hideOthers;