@arc-ui/components 12.0.0-beta7 → 12.1.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 (1194) hide show
  1. package/lib/Alert/Alert.cjs +77 -0
  2. package/lib/Alert/Alert.mjs +75 -0
  3. package/lib/Alert/styles.css +1 -0
  4. package/lib/Align/Align.cjs +29 -0
  5. package/lib/Align/Align.mjs +27 -0
  6. package/lib/Align/styles.css +1 -0
  7. package/lib/AppButton/AppButton.cjs +72 -0
  8. package/lib/AppButton/AppButton.mjs +70 -0
  9. package/lib/AppButton/styles.css +1 -0
  10. package/lib/Avatar/Avatar.cjs +21 -0
  11. package/lib/Avatar/Avatar.mjs +15 -0
  12. package/lib/Avatar/styles.css +1 -0
  13. package/lib/AvatarGroup/AvatarGroup.cjs +37 -0
  14. package/lib/AvatarGroup/AvatarGroup.mjs +35 -0
  15. package/lib/AvatarGroup/styles.css +1 -0
  16. package/lib/Badge/Badge.cjs +13 -0
  17. package/lib/Badge/Badge.mjs +7 -0
  18. package/lib/Badge/styles.css +1 -0
  19. package/lib/Banner/Banner.cjs +26 -0
  20. package/lib/Banner/Banner.mjs +24 -0
  21. package/lib/Box/Box.cjs +13 -0
  22. package/lib/Box/Box.mjs +7 -0
  23. package/lib/Box/styles.css +1 -0
  24. package/lib/BrandLogo/BrandLogo.cjs +16 -0
  25. package/lib/BrandLogo/BrandLogo.mjs +9 -0
  26. package/lib/BrandLogo/styles.css +1 -0
  27. package/lib/Breadcrumbs/Breadcrumbs.cjs +101 -0
  28. package/lib/Breadcrumbs/Breadcrumbs.mjs +97 -0
  29. package/lib/Breadcrumbs/styles.css +1 -0
  30. package/lib/Button/Button.cjs +17 -0
  31. package/lib/Button/Button.mjs +11 -0
  32. package/lib/Button/styles.css +1 -0
  33. package/lib/ButtonGroup/ButtonGroup.cjs +38 -0
  34. package/lib/ButtonGroup/ButtonGroup.mjs +36 -0
  35. package/lib/ButtonGroup/styles.css +1 -0
  36. package/lib/ButtonV2/ButtonV2.cjs +17 -0
  37. package/lib/ButtonV2/ButtonV2.mjs +11 -0
  38. package/lib/ButtonV2/styles.css +1 -0
  39. package/lib/Calendar/Calendar.cjs +24 -0
  40. package/lib/Calendar/Calendar.mjs +18 -0
  41. package/lib/Calendar/styles.css +1 -0
  42. package/lib/CardFooter/CardFooter.cjs +16 -0
  43. package/lib/CardFooter/CardFooter.mjs +10 -0
  44. package/lib/CardFooter/styles.css +1 -0
  45. package/lib/CardHeading/CardHeading.cjs +17 -0
  46. package/lib/CardHeading/CardHeading.mjs +11 -0
  47. package/lib/CardHeading/styles.css +1 -0
  48. package/lib/Carousel/Carousel.cjs +2250 -0
  49. package/lib/Carousel/Carousel.mjs +2248 -0
  50. package/lib/Carousel/styles.css +1 -0
  51. package/lib/Checkbox/Checkbox.cjs +60 -0
  52. package/lib/Checkbox/Checkbox.mjs +58 -0
  53. package/lib/Checkbox/styles.css +1 -0
  54. package/lib/CheckboxIcon/CheckboxIcon.cjs +19 -0
  55. package/lib/CheckboxIcon/CheckboxIcon.mjs +13 -0
  56. package/lib/CheckboxIcon/styles.css +1 -0
  57. package/lib/ClientSideVisible/ClientSideVisible.cjs +8 -0
  58. package/lib/ClientSideVisible/ClientSideVisible.mjs +2 -0
  59. package/lib/Columns/Columns.cjs +49 -0
  60. package/lib/Columns/Columns.mjs +46 -0
  61. package/lib/Columns/styles.css +1 -0
  62. package/lib/ComboBox/ComboBox.cjs +296 -0
  63. package/lib/ComboBox/ComboBox.mjs +294 -0
  64. package/lib/ComboBox/styles.css +1 -0
  65. package/lib/ConditionalWrapper/ConditionalWrapper.cjs +8 -0
  66. package/lib/ConditionalWrapper/ConditionalWrapper.mjs +2 -0
  67. package/lib/ContentSwitcher/ContentSwitcher.cjs +25 -0
  68. package/lib/ContentSwitcher/ContentSwitcher.mjs +16 -0
  69. package/lib/ContentSwitcher/styles.css +1 -0
  70. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +26 -0
  71. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +19 -0
  72. package/lib/ContentSwitcherDropdown/styles.css +1 -0
  73. package/lib/DatePicker/DatePicker.cjs +539 -0
  74. package/lib/DatePicker/DatePicker.mjs +531 -0
  75. package/lib/DatePicker/styles.css +1 -0
  76. package/lib/Disclosure/Disclosure.cjs +37 -0
  77. package/lib/Disclosure/Disclosure.mjs +35 -0
  78. package/lib/Disclosure/styles.css +1 -0
  79. package/lib/DisclosureMini/DisclosureMini.cjs +17 -0
  80. package/lib/DisclosureMini/DisclosureMini.mjs +11 -0
  81. package/lib/DisclosureMini/styles.css +1 -0
  82. package/lib/Download/Download.cjs +18 -0
  83. package/lib/Download/Download.mjs +12 -0
  84. package/lib/Download/styles.css +1 -0
  85. package/lib/Drawer/Drawer.cjs +218 -0
  86. package/lib/Drawer/Drawer.mjs +213 -0
  87. package/lib/Drawer/styles.css +1 -0
  88. package/lib/Elevation/Elevation.cjs +25 -0
  89. package/lib/Elevation/Elevation.mjs +23 -0
  90. package/lib/Elevation/styles.css +1 -0
  91. package/lib/Filter/Filter.cjs +91 -0
  92. package/lib/Filter/Filter.mjs +85 -0
  93. package/lib/Filter/styles.css +1 -0
  94. package/lib/FilterControl/FilterControl.cjs +14 -0
  95. package/lib/FilterControl/FilterControl.mjs +8 -0
  96. package/lib/FormControl/FormControl.cjs +20 -0
  97. package/lib/FormControl/FormControl.mjs +13 -0
  98. package/lib/FormControl/styles.css +1 -0
  99. package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +36 -0
  100. package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +34 -0
  101. package/lib/GhostedHeroBanner/styles.css +1 -0
  102. package/lib/GradientPageBackground/GradientPageBackground.cjs +159 -0
  103. package/lib/GradientPageBackground/GradientPageBackground.mjs +139 -0
  104. package/lib/GradientPageBackground/styles.css +1 -0
  105. package/lib/Grid/Grid.cjs +15 -0
  106. package/lib/Grid/Grid.mjs +7 -0
  107. package/lib/Grid/styles.css +1 -0
  108. package/lib/Group/Group.cjs +42 -0
  109. package/lib/Group/Group.mjs +39 -0
  110. package/lib/Group/styles.css +1 -0
  111. package/lib/Heading/Heading.cjs +16 -0
  112. package/lib/Heading/Heading.mjs +10 -0
  113. package/lib/Heading/styles.css +1 -0
  114. package/lib/HeroBanner/HeroBanner.cjs +31 -0
  115. package/lib/HeroBanner/HeroBanner.mjs +29 -0
  116. package/lib/HeroBanner/styles.css +1 -0
  117. package/lib/HeroButton/HeroButton.cjs +88 -0
  118. package/lib/HeroButton/HeroButton.mjs +86 -0
  119. package/lib/HeroButton/styles.css +1 -0
  120. package/lib/Hidden/Hidden.cjs +11 -0
  121. package/lib/Hidden/Hidden.mjs +5 -0
  122. package/lib/Hidden/styles.css +1 -0
  123. package/lib/HorizontalCard/HorizontalCard.cjs +40 -0
  124. package/lib/HorizontalCard/HorizontalCard.mjs +38 -0
  125. package/lib/HorizontalCard/styles.css +1 -0
  126. package/lib/Icon/Icon.cjs +16 -0
  127. package/lib/Icon/Icon.mjs +9 -0
  128. package/lib/Icon/styles.css +1 -0
  129. package/lib/Image/Image.cjs +18 -0
  130. package/lib/Image/Image.mjs +8 -0
  131. package/lib/Image/styles.css +1 -0
  132. package/lib/ImpactCard/ImpactCard.cjs +43 -0
  133. package/lib/ImpactCard/ImpactCard.mjs +41 -0
  134. package/lib/ImpactCard/styles.css +1 -0
  135. package/lib/InformationCard/InformationCard.cjs +91 -0
  136. package/lib/InformationCard/InformationCard.mjs +89 -0
  137. package/lib/InformationCard/styles.css +1 -0
  138. package/lib/Link/Link.cjs +17 -0
  139. package/lib/Link/Link.mjs +11 -0
  140. package/lib/Link/styles.css +1 -0
  141. package/lib/Markup/Markup.cjs +24 -0
  142. package/lib/Markup/Markup.mjs +22 -0
  143. package/lib/Markup/styles.css +1 -0
  144. package/lib/MediaCard/MediaCard.cjs +64 -0
  145. package/lib/MediaCard/MediaCard.mjs +62 -0
  146. package/lib/MediaCard/styles.css +1 -0
  147. package/lib/Menu/Menu.cjs +1688 -0
  148. package/lib/Menu/Menu.mjs +1651 -0
  149. package/lib/Menu/styles.css +1 -0
  150. package/lib/Modal/Modal.cjs +93 -0
  151. package/lib/Modal/Modal.mjs +91 -0
  152. package/lib/Modal/styles.css +1 -0
  153. package/lib/NavigationHeader/NavigationHeader.cjs +1423 -0
  154. package/lib/NavigationHeader/NavigationHeader.mjs +1418 -0
  155. package/lib/NavigationHeader/styles.css +1 -0
  156. package/lib/Pagination/Pagination.cjs +79 -0
  157. package/lib/Pagination/Pagination.mjs +77 -0
  158. package/lib/Pagination/styles.css +1 -0
  159. package/lib/PaginationSimple/PaginationSimple.cjs +74 -0
  160. package/lib/PaginationSimple/PaginationSimple.mjs +72 -0
  161. package/lib/PaginationSimple/styles.css +1 -0
  162. package/lib/Popover/Popover.cjs +22 -0
  163. package/lib/Popover/Popover.mjs +16 -0
  164. package/lib/Popover/styles.css +1 -0
  165. package/lib/Poster/Poster.cjs +44 -0
  166. package/lib/Poster/Poster.mjs +40 -0
  167. package/lib/Poster/styles.css +1 -0
  168. package/lib/ProgressBar/ProgressBar.cjs +68 -0
  169. package/lib/ProgressBar/ProgressBar.mjs +66 -0
  170. package/lib/ProgressBar/styles.css +1 -0
  171. package/lib/ProgressStepper/ProgressStepper.cjs +19 -0
  172. package/lib/ProgressStepper/ProgressStepper.mjs +12 -0
  173. package/lib/ProgressStepper/styles.css +1 -0
  174. package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +107 -0
  175. package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +104 -0
  176. package/lib/ProgressStepperOverflow/styles.css +1 -0
  177. package/lib/RadioCardGroup/RadioCardGroup.cjs +86 -0
  178. package/lib/RadioCardGroup/RadioCardGroup.mjs +83 -0
  179. package/lib/RadioCardGroup/styles.css +1 -0
  180. package/lib/RadioGroup/RadioGroup.cjs +81 -0
  181. package/lib/RadioGroup/RadioGroup.mjs +77 -0
  182. package/lib/RadioGroup/styles.css +1 -0
  183. package/lib/Rule/Rule.cjs +14 -0
  184. package/lib/Rule/Rule.mjs +8 -0
  185. package/lib/Rule/styles.css +1 -0
  186. package/lib/ScrollToTop/ScrollToTop.cjs +51 -0
  187. package/lib/ScrollToTop/ScrollToTop.mjs +49 -0
  188. package/lib/ScrollToTop/styles.css +1 -0
  189. package/lib/Section/Section.cjs +12 -0
  190. package/lib/Section/Section.mjs +6 -0
  191. package/lib/Section/styles.css +1 -0
  192. package/lib/Select/Select.cjs +88 -0
  193. package/lib/Select/Select.mjs +86 -0
  194. package/lib/Select/styles.css +1 -0
  195. package/lib/SemanticHeading/SemanticHeading.cjs +10 -0
  196. package/lib/SemanticHeading/SemanticHeading.mjs +4 -0
  197. package/lib/SemanticHeading/styles.css +1 -0
  198. package/lib/SiteFooter/SiteFooter.cjs +60 -0
  199. package/lib/SiteFooter/SiteFooter.mjs +56 -0
  200. package/lib/SiteFooter/styles.css +1 -0
  201. package/lib/SiteFooterV2/SiteFooterV2.cjs +106 -0
  202. package/lib/SiteFooterV2/SiteFooterV2.mjs +100 -0
  203. package/lib/SiteFooterV2/styles.css +1 -0
  204. package/lib/SiteHeaderV2/SiteHeaderV2.cjs +604 -0
  205. package/lib/SiteHeaderV2/SiteHeaderV2.mjs +594 -0
  206. package/lib/SiteHeaderV2/styles.css +1 -0
  207. package/lib/Skeleton/Skeleton.cjs +21 -0
  208. package/lib/Skeleton/Skeleton.mjs +19 -0
  209. package/lib/Skeleton/styles.css +1 -0
  210. package/lib/SkipLink/SkipLink.cjs +19 -0
  211. package/lib/SkipLink/SkipLink.mjs +16 -0
  212. package/lib/SkipLink/styles.css +1 -0
  213. package/lib/Spinner/Spinner.cjs +11 -0
  214. package/lib/Spinner/Spinner.mjs +5 -0
  215. package/lib/Spinner/styles.css +1 -0
  216. package/lib/Surface/Surface.cjs +16 -0
  217. package/lib/Surface/Surface.mjs +7 -0
  218. package/lib/Surface/styles.css +1 -0
  219. package/lib/Switch/Switch.cjs +237 -0
  220. package/lib/Switch/Switch.mjs +235 -0
  221. package/lib/Switch/styles.css +1 -0
  222. package/lib/TabbedBanner/TabbedBanner.cjs +65 -0
  223. package/lib/TabbedBanner/TabbedBanner.mjs +63 -0
  224. package/lib/TabbedBanner/styles.css +1 -0
  225. package/lib/Tabs/Tabs.cjs +93 -0
  226. package/lib/Tabs/Tabs.mjs +88 -0
  227. package/lib/Tabs/styles.css +1 -0
  228. package/lib/Tag/Tag.cjs +62 -0
  229. package/lib/Tag/Tag.mjs +60 -0
  230. package/lib/Tag/styles.css +1 -0
  231. package/lib/TemplateBanner/TemplateBanner.cjs +23 -0
  232. package/lib/TemplateBanner/TemplateBanner.mjs +17 -0
  233. package/lib/TemplateBanner/styles.css +1 -0
  234. package/lib/Text/Text.cjs +15 -0
  235. package/lib/Text/Text.mjs +9 -0
  236. package/lib/Text/styles.css +1 -0
  237. package/lib/TextArea/TextArea.cjs +70 -0
  238. package/lib/TextArea/TextArea.mjs +68 -0
  239. package/lib/TextArea/styles.css +1 -0
  240. package/lib/TextInput/TextInput.cjs +28 -0
  241. package/lib/TextInput/TextInput.mjs +21 -0
  242. package/lib/TextInput/styles.css +1 -0
  243. package/lib/Theme/Theme.cjs +76 -0
  244. package/lib/Theme/Theme.mjs +73 -0
  245. package/lib/Theme/styles.css +1 -0
  246. package/lib/ThemeIcon/ThemeIcon.cjs +15 -0
  247. package/lib/ThemeIcon/ThemeIcon.mjs +9 -0
  248. package/lib/ThemeIcon/styles.css +1 -0
  249. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +31 -0
  250. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +29 -0
  251. package/lib/ThumbnailSignpost/styles.css +1 -0
  252. package/lib/Toast/Toast.cjs +1003 -0
  253. package/lib/Toast/Toast.mjs +1000 -0
  254. package/lib/Toast/styles.css +1 -0
  255. package/lib/Tooltip/Tooltip.cjs +21 -0
  256. package/lib/Tooltip/Tooltip.mjs +15 -0
  257. package/lib/Tooltip/styles.css +1 -0
  258. package/lib/Truncate/Truncate.cjs +14 -0
  259. package/lib/Truncate/Truncate.mjs +12 -0
  260. package/lib/Truncate/styles.css +1 -0
  261. package/lib/TypographyCard/TypographyCard.cjs +40 -0
  262. package/lib/TypographyCard/TypographyCard.mjs +38 -0
  263. package/lib/TypographyCard/styles.css +1 -0
  264. package/lib/UniversalHeader/UniversalHeader.cjs +31 -0
  265. package/lib/UniversalHeader/UniversalHeader.mjs +28 -0
  266. package/lib/UniversalHeader/styles.css +1 -0
  267. package/lib/VerticalSpace/VerticalSpace.cjs +11 -0
  268. package/lib/VerticalSpace/VerticalSpace.mjs +5 -0
  269. package/lib/VerticalSpace/styles.css +1 -0
  270. package/lib/VideoPlayer/VideoPlayer.cjs +3212 -0
  271. package/lib/VideoPlayer/VideoPlayer.mjs +3210 -0
  272. package/lib/VideoPlayer/styles.css +1 -0
  273. package/lib/Visible/Visible.cjs +11 -0
  274. package/lib/Visible/Visible.mjs +5 -0
  275. package/lib/Visible/styles.css +1 -0
  276. package/lib/VisuallyHidden/VisuallyHidden.cjs +10 -0
  277. package/lib/VisuallyHidden/VisuallyHidden.mjs +4 -0
  278. package/lib/VisuallyHidden/styles.css +1 -0
  279. package/lib/_shared/cjs/Avatar-CCKArHo9.cjs +48 -0
  280. package/lib/_shared/cjs/Badge-DX5PjtiZ.cjs +15 -0
  281. package/lib/_shared/cjs/BannerImage-CYHLvtfL.cjs +13 -0
  282. package/lib/_shared/cjs/Box-Va2g7Gdp.cjs +26 -0
  283. package/lib/_shared/cjs/BrandLogo-coNfTwRv.cjs +30 -0
  284. package/lib/_shared/cjs/BtIconArrowRight-Bm5PIn_6.cjs +11 -0
  285. package/lib/_shared/cjs/BtIconChevronRight2Px-CIRaur2B.cjs +20 -0
  286. package/lib/_shared/cjs/BtIconChevronRightMid-eGxk3ae6.cjs +11 -0
  287. package/lib/_shared/cjs/Button-BN4jUsg5.cjs +51 -0
  288. package/lib/_shared/cjs/ButtonV2-bUu36xW8.cjs +61 -0
  289. package/lib/_shared/cjs/Calendar-D_jZ0cgf.cjs +1898 -0
  290. package/lib/_shared/cjs/CardFooter-PoifazZ1.cjs +32 -0
  291. package/lib/_shared/cjs/CardHeading-lGy1u6eD.cjs +14 -0
  292. package/lib/_shared/cjs/CheckboxIcon-BTkdXfpp.cjs +53 -0
  293. package/lib/_shared/cjs/ClientSideVisible-BhW-T6kb.cjs +16 -0
  294. package/lib/_shared/cjs/Combination-6m6aOXZq.cjs +1466 -0
  295. package/lib/_shared/cjs/ConditionalWrapper-Cl6kgjCL.cjs +11 -0
  296. package/lib/_shared/cjs/ContentSwitcherDropdown-BLXyhXVS.cjs +87 -0
  297. package/lib/_shared/cjs/ContentSwitcherList-DgychllS.cjs +111 -0
  298. package/lib/_shared/cjs/DisclosureMini-Cy7hNc90.cjs +38 -0
  299. package/lib/_shared/cjs/Download-Chs-DEGO.cjs +43 -0
  300. package/lib/_shared/cjs/FilterControl-BIwtgTjP.cjs +27 -0
  301. package/lib/_shared/cjs/FormControl-TtboqHRx.cjs +117 -0
  302. package/lib/_shared/cjs/GridRow-l_SePUqV.cjs +45 -0
  303. package/lib/_shared/cjs/Heading-BYBmZkmS.cjs +33 -0
  304. package/lib/_shared/cjs/Hidden-BpWHucG2.cjs +21 -0
  305. package/lib/_shared/cjs/Icon-Dk2XHa7V.cjs +40 -0
  306. package/lib/_shared/cjs/Image-MS1rBzbW.cjs +50 -0
  307. package/lib/_shared/cjs/Link-BZsSf3Nn.cjs +51 -0
  308. package/lib/_shared/cjs/Popover-CYcqjefw.cjs +35 -0
  309. package/lib/_shared/cjs/Preview-BYuMaIh7.cjs +175 -0
  310. package/lib/_shared/cjs/ProgressStepper-mTgKZYEl.cjs +210 -0
  311. package/lib/_shared/cjs/Rule-jmvOpci7.cjs +24 -0
  312. package/lib/_shared/cjs/Section-BorWFfNe.cjs +22 -0
  313. package/lib/_shared/cjs/SemanticHeading-C1-fyc3V.cjs +16 -0
  314. package/lib/_shared/cjs/Spinner-427lpnHI.cjs +17 -0
  315. package/lib/_shared/cjs/Surface-DIU5ciDT.cjs +56 -0
  316. package/lib/_shared/cjs/TemplateBanner-CzDAL0lq.cjs +84 -0
  317. package/lib/_shared/cjs/Text-jwsn80lQ.cjs +30 -0
  318. package/lib/_shared/cjs/TextInput-BHzuoI7E.cjs +163 -0
  319. package/lib/_shared/cjs/ThemeIcon-CwYN77IF.cjs +25 -0
  320. package/lib/_shared/cjs/Tooltip-CEb7YEP2.cjs +1379 -0
  321. package/lib/_shared/cjs/VerticalSpace-DLQUYsvc.cjs +27 -0
  322. package/lib/_shared/cjs/Visible-Ca2H20zc.cjs +21 -0
  323. package/lib/_shared/cjs/VisuallyHidden-CQg3cOVK.cjs +15 -0
  324. package/lib/_shared/cjs/arc-breakpoints-DFPoWNR4.cjs +33 -0
  325. package/lib/_shared/cjs/debounce-uPMetQ6J.cjs +412 -0
  326. package/lib/_shared/cjs/filter-attrs-D19P2s1V.cjs +15 -0
  327. package/lib/_shared/cjs/index-B11wQrRa.cjs +2208 -0
  328. package/lib/_shared/cjs/index-BCu-VH8y.cjs +416 -0
  329. package/lib/_shared/cjs/index-BGGFOAAx.cjs +152 -0
  330. package/lib/_shared/cjs/index-BLRjGROQ.cjs +2197 -0
  331. package/lib/_shared/cjs/index-BWfgSvRQ.cjs +313 -0
  332. package/lib/_shared/cjs/index-CDVpHNP8.cjs +1204 -0
  333. package/lib/_shared/cjs/index-CTlXMLug.cjs +106 -0
  334. package/lib/_shared/cjs/index-CklPiHsS.cjs +97 -0
  335. package/lib/_shared/cjs/index-CztwwwKE.cjs +375 -0
  336. package/lib/_shared/cjs/index-D9onmVh5.cjs +333 -0
  337. package/lib/_shared/cjs/index-DR8Rkav9.cjs +130 -0
  338. package/lib/_shared/cjs/index-DXNM3D1d.cjs +196 -0
  339. package/lib/_shared/cjs/index-DmvtEa22.cjs +219 -0
  340. package/lib/_shared/cjs/index-KrMgv4q_.cjs +318 -0
  341. package/lib/_shared/cjs/index.es-B2ZfX2D7.cjs +19 -0
  342. package/lib/_shared/cjs/isSymbol-BGrHFUbV.cjs +255 -0
  343. package/lib/_shared/cjs/suffix-modifier-DLUGR-yG.cjs +10 -0
  344. package/lib/_shared/cjs/tslib.es6-CCZ3TN_7.cjs +59 -0
  345. package/lib/_shared/cjs/use-media-query-BJV2IbHi.cjs +58 -0
  346. package/lib/_shared/esm/Avatar-BgK-wY7Z.mjs +46 -0
  347. package/lib/_shared/esm/Badge-C_3PBa0p.mjs +13 -0
  348. package/lib/_shared/esm/BannerImage-BdPAHkVD.mjs +11 -0
  349. package/lib/_shared/esm/Box-C8iK8x5c.mjs +24 -0
  350. package/lib/_shared/esm/BrandLogo-Dc-d_8ZN.mjs +27 -0
  351. package/lib/_shared/esm/BtIconArrowRight-DpUmY3g3.mjs +9 -0
  352. package/lib/_shared/esm/BtIconChevronRight2Px-DzWb16fR.mjs +17 -0
  353. package/lib/_shared/esm/BtIconChevronRightMid-DE4lmVaG.mjs +9 -0
  354. package/lib/_shared/esm/Button-DTiOFT9M.mjs +49 -0
  355. package/lib/_shared/esm/ButtonV2-ByW5P8Hq.mjs +59 -0
  356. package/lib/_shared/esm/Calendar-wG6UVDgO.mjs +1893 -0
  357. package/lib/_shared/esm/CardFooter-DX3Ym8M6.mjs +30 -0
  358. package/lib/_shared/esm/CardHeading-CfPEEmBO.mjs +12 -0
  359. package/lib/_shared/esm/CheckboxIcon-BcVQe6mC.mjs +51 -0
  360. package/lib/_shared/esm/ClientSideVisible-D_iBE-3U.mjs +14 -0
  361. package/lib/_shared/esm/Combination-BQ4XBtF-.mjs +1435 -0
  362. package/lib/_shared/esm/ConditionalWrapper-CbEvXHTj.mjs +9 -0
  363. package/lib/_shared/esm/ContentSwitcherDropdown-ckPG4pry.mjs +84 -0
  364. package/lib/_shared/esm/ContentSwitcherList-CWZcMblg.mjs +106 -0
  365. package/lib/_shared/esm/DisclosureMini-DeQZyvDN.mjs +36 -0
  366. package/lib/_shared/esm/Download-CsJLNRAD.mjs +41 -0
  367. package/lib/_shared/esm/FilterControl-22MNdP1r.mjs +25 -0
  368. package/lib/_shared/esm/FormControl-DopDD_nC.mjs +113 -0
  369. package/lib/_shared/esm/GridRow-vjacXnq0.mjs +41 -0
  370. package/lib/_shared/esm/Heading-Da-o0d5x.mjs +31 -0
  371. package/lib/_shared/esm/Hidden-ByDYDWcI.mjs +19 -0
  372. package/lib/_shared/esm/Icon-CCUbr_AO.mjs +37 -0
  373. package/lib/_shared/esm/Image-DLYifxlu.mjs +44 -0
  374. package/lib/_shared/esm/Link-CoHABYiD.mjs +49 -0
  375. package/lib/_shared/esm/Popover-BHCEpLSa.mjs +33 -0
  376. package/lib/_shared/esm/Preview-AHYIJh9S.mjs +173 -0
  377. package/lib/_shared/esm/ProgressStepper-DxZrJR0q.mjs +207 -0
  378. package/lib/_shared/esm/Rule-I1w3EaZi.mjs +22 -0
  379. package/lib/_shared/esm/Section-COc1l3mp.mjs +20 -0
  380. package/lib/_shared/esm/SemanticHeading-DpEBq7pG.mjs +14 -0
  381. package/lib/_shared/esm/Spinner-DvngCIwx.mjs +15 -0
  382. package/lib/_shared/esm/Surface-C69KVzkY.mjs +51 -0
  383. package/lib/_shared/esm/TemplateBanner-CZSTdma0.mjs +82 -0
  384. package/lib/_shared/esm/Text-BAzOkkzN.mjs +28 -0
  385. package/lib/_shared/esm/TextInput-CZaNXVHl.mjs +159 -0
  386. package/lib/_shared/esm/ThemeIcon-B0n6cKRb.mjs +23 -0
  387. package/lib/_shared/esm/Tooltip-BpSzN3Tx.mjs +1359 -0
  388. package/lib/_shared/esm/VerticalSpace-BLWB02I7.mjs +25 -0
  389. package/lib/_shared/esm/Visible-C4eEyTBM.mjs +19 -0
  390. package/lib/_shared/esm/VisuallyHidden-aSQ4RA1o.mjs +13 -0
  391. package/lib/_shared/esm/arc-breakpoints-TEKN0W5t.mjs +26 -0
  392. package/lib/_shared/esm/debounce-D_Nx5go6.mjs +410 -0
  393. package/lib/_shared/esm/filter-attrs-v_SweZXP.mjs +13 -0
  394. package/lib/_shared/esm/index-5C0-U8cc.mjs +101 -0
  395. package/lib/_shared/esm/index-6HtUz28p.mjs +216 -0
  396. package/lib/_shared/esm/index-BFKdmv_g.mjs +293 -0
  397. package/lib/_shared/esm/index-BWkI4Dwz.mjs +393 -0
  398. package/lib/_shared/esm/index-Bz2JQq34.mjs +169 -0
  399. package/lib/_shared/esm/index-CN4hP3Wu.mjs +307 -0
  400. package/lib/_shared/esm/index-CWHcEz3_.mjs +2178 -0
  401. package/lib/_shared/esm/index-Cr6KeQLU.mjs +2188 -0
  402. package/lib/_shared/esm/index-DXHprNQ6.mjs +364 -0
  403. package/lib/_shared/esm/index-Do2wfP-X.mjs +287 -0
  404. package/lib/_shared/esm/index-GCEHSsY8.mjs +131 -0
  405. package/lib/_shared/esm/index-Spae4j7j.mjs +128 -0
  406. package/lib/_shared/esm/index-u47CK8Y0.mjs +76 -0
  407. package/lib/_shared/esm/index-vnVJe9rH.mjs +1171 -0
  408. package/lib/_shared/esm/index.es-Co1d96HB.mjs +12 -0
  409. package/lib/_shared/esm/isSymbol-DgWNE2Tm.mjs +251 -0
  410. package/lib/_shared/esm/suffix-modifier-B_pO0UkF.mjs +8 -0
  411. package/lib/_shared/esm/tslib.es6-w7hdJ3oZ.mjs +56 -0
  412. package/lib/_shared/esm/use-media-query-l6Sou0dd.mjs +56 -0
  413. package/lib/index.cjs +28308 -0
  414. package/lib/index.cjs.map +1 -0
  415. package/lib/index.d.cts +5278 -0
  416. package/lib/index.d.mts +5278 -0
  417. package/lib/index.js.map +1 -0
  418. package/lib/index.mjs +28117 -0
  419. package/lib/index.mjs.map +1 -0
  420. package/lib/styles.css +3 -0
  421. package/lib/use-media-query/use-media-query.cjs +8 -0
  422. package/lib/use-media-query/use-media-query.mjs +2 -0
  423. package/package.json +105 -83
  424. package/dist/Alert/Alert.cjs.js +0 -51
  425. package/dist/Alert/Alert.esm.js +0 -43
  426. package/dist/Alert/package.json +0 -7
  427. package/dist/Alert/styles.css +0 -1
  428. package/dist/Align/Align.cjs.js +0 -32
  429. package/dist/Align/Align.esm.js +0 -24
  430. package/dist/Align/package.json +0 -7
  431. package/dist/Align/styles.css +0 -1
  432. package/dist/AppButton/AppButton.cjs.js +0 -74
  433. package/dist/AppButton/AppButton.esm.js +0 -66
  434. package/dist/AppButton/package.json +0 -7
  435. package/dist/AppButton/styles.css +0 -1
  436. package/dist/Avatar/Avatar.cjs.js +0 -17
  437. package/dist/Avatar/Avatar.esm.js +0 -9
  438. package/dist/Avatar/package.json +0 -7
  439. package/dist/Avatar/styles.css +0 -1
  440. package/dist/AvatarGroup/AvatarGroup.cjs.js +0 -37
  441. package/dist/AvatarGroup/AvatarGroup.esm.js +0 -29
  442. package/dist/AvatarGroup/package.json +0 -7
  443. package/dist/AvatarGroup/styles.css +0 -1
  444. package/dist/Badge/Badge.cjs.js +0 -12
  445. package/dist/Badge/Badge.esm.js +0 -4
  446. package/dist/Badge/package.json +0 -7
  447. package/dist/Badge/styles.css +0 -1
  448. package/dist/Box/Box.cjs.js +0 -13
  449. package/dist/Box/Box.esm.js +0 -5
  450. package/dist/Box/package.json +0 -7
  451. package/dist/Box/styles.css +0 -1
  452. package/dist/BrandLogo/BrandLogo.cjs.js +0 -13
  453. package/dist/BrandLogo/BrandLogo.esm.js +0 -5
  454. package/dist/BrandLogo/package.json +0 -7
  455. package/dist/BrandLogo/styles.css +0 -1
  456. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +0 -17
  457. package/dist/Breadcrumbs/Breadcrumbs.esm.js +0 -9
  458. package/dist/Breadcrumbs/package.json +0 -7
  459. package/dist/Breadcrumbs/styles.css +0 -1
  460. package/dist/Button/Button.cjs.js +0 -15
  461. package/dist/Button/Button.esm.js +0 -7
  462. package/dist/Button/package.json +0 -7
  463. package/dist/Button/styles.css +0 -1
  464. package/dist/ButtonV2/ButtonV2.cjs.js +0 -15
  465. package/dist/ButtonV2/ButtonV2.esm.js +0 -7
  466. package/dist/ButtonV2/package.json +0 -7
  467. package/dist/ButtonV2/styles.css +0 -1
  468. package/dist/Calendar/Calendar.cjs.js +0 -21
  469. package/dist/Calendar/Calendar.esm.js +0 -13
  470. package/dist/Calendar/package.json +0 -7
  471. package/dist/Calendar/styles.css +0 -1
  472. package/dist/CardFooter/CardFooter.cjs.js +0 -17
  473. package/dist/CardFooter/CardFooter.esm.js +0 -9
  474. package/dist/CardFooter/package.json +0 -7
  475. package/dist/CardFooter/styles.css +0 -1
  476. package/dist/CardHeading/CardHeading.cjs.js +0 -14
  477. package/dist/CardHeading/CardHeading.esm.js +0 -6
  478. package/dist/CardHeading/package.json +0 -7
  479. package/dist/CardHeading/styles.css +0 -1
  480. package/dist/Carousel/Carousel.cjs.js +0 -457
  481. package/dist/Carousel/Carousel.esm.js +0 -431
  482. package/dist/Carousel/package.json +0 -7
  483. package/dist/Carousel/styles.css +0 -1
  484. package/dist/Checkbox/Checkbox.cjs.js +0 -18
  485. package/dist/Checkbox/Checkbox.esm.js +0 -10
  486. package/dist/Checkbox/package.json +0 -7
  487. package/dist/Checkbox/styles.css +0 -1
  488. package/dist/Columns/Columns.cjs.js +0 -12
  489. package/dist/Columns/Columns.esm.js +0 -4
  490. package/dist/Columns/package.json +0 -7
  491. package/dist/Columns/styles.css +0 -1
  492. package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +0 -10
  493. package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +0 -2
  494. package/dist/ConditionalWrapper/package.json +0 -7
  495. package/dist/ContentSwitcher/ContentSwitcher.cjs.js +0 -20
  496. package/dist/ContentSwitcher/ContentSwitcher.esm.js +0 -12
  497. package/dist/ContentSwitcher/package.json +0 -7
  498. package/dist/ContentSwitcher/styles.css +0 -1
  499. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +0 -23
  500. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +0 -15
  501. package/dist/ContentSwitcherDropdown/package.json +0 -7
  502. package/dist/ContentSwitcherDropdown/styles.css +0 -1
  503. package/dist/DatePicker/DatePicker.cjs.js +0 -36
  504. package/dist/DatePicker/DatePicker.esm.js +0 -23
  505. package/dist/DatePicker/package.json +0 -7
  506. package/dist/DatePicker/styles.css +0 -1
  507. package/dist/Disclosure/Disclosure.cjs.js +0 -38
  508. package/dist/Disclosure/Disclosure.esm.js +0 -30
  509. package/dist/Disclosure/package.json +0 -7
  510. package/dist/Disclosure/styles.css +0 -1
  511. package/dist/DisclosureMini/DisclosureMini.cjs.js +0 -15
  512. package/dist/DisclosureMini/DisclosureMini.esm.js +0 -7
  513. package/dist/DisclosureMini/package.json +0 -7
  514. package/dist/DisclosureMini/styles.css +0 -1
  515. package/dist/Elevation/Elevation.cjs.js +0 -27
  516. package/dist/Elevation/Elevation.esm.js +0 -19
  517. package/dist/Elevation/package.json +0 -7
  518. package/dist/Elevation/styles.css +0 -1
  519. package/dist/Filter/Filter.cjs.js +0 -14
  520. package/dist/Filter/Filter.esm.js +0 -6
  521. package/dist/Filter/package.json +0 -7
  522. package/dist/Filter/styles.css +0 -1
  523. package/dist/FormControl/FormControl.cjs.js +0 -18
  524. package/dist/FormControl/FormControl.esm.js +0 -9
  525. package/dist/FormControl/package.json +0 -7
  526. package/dist/FormControl/styles.css +0 -1
  527. package/dist/Grid/Grid.cjs.js +0 -12
  528. package/dist/Grid/Grid.esm.js +0 -4
  529. package/dist/Grid/package.json +0 -7
  530. package/dist/Grid/styles.css +0 -1
  531. package/dist/Group/Group.cjs.js +0 -13
  532. package/dist/Group/Group.esm.js +0 -5
  533. package/dist/Group/package.json +0 -7
  534. package/dist/Group/styles.css +0 -1
  535. package/dist/Heading/Heading.cjs.js +0 -13
  536. package/dist/Heading/Heading.esm.js +0 -5
  537. package/dist/Heading/package.json +0 -7
  538. package/dist/Heading/styles.css +0 -1
  539. package/dist/HeroBanner/HeroBanner.cjs.js +0 -63
  540. package/dist/HeroBanner/HeroBanner.esm.js +0 -55
  541. package/dist/HeroBanner/package.json +0 -7
  542. package/dist/HeroBanner/styles.css +0 -1
  543. package/dist/HeroButton/HeroButton.cjs.js +0 -15
  544. package/dist/HeroButton/HeroButton.esm.js +0 -7
  545. package/dist/HeroButton/package.json +0 -7
  546. package/dist/HeroButton/styles.css +0 -1
  547. package/dist/Hidden/Hidden.cjs.js +0 -24
  548. package/dist/Hidden/Hidden.esm.js +0 -16
  549. package/dist/Hidden/package.json +0 -7
  550. package/dist/Hidden/styles.css +0 -1
  551. package/dist/Icon/Icon.cjs.js +0 -13
  552. package/dist/Icon/Icon.esm.js +0 -5
  553. package/dist/Icon/package.json +0 -7
  554. package/dist/Icon/styles.css +0 -1
  555. package/dist/Image/Image.cjs.js +0 -13
  556. package/dist/Image/Image.esm.js +0 -4
  557. package/dist/Image/package.json +0 -7
  558. package/dist/Image/styles.css +0 -1
  559. package/dist/ImpactCard/ImpactCard.cjs.js +0 -43
  560. package/dist/ImpactCard/ImpactCard.esm.js +0 -35
  561. package/dist/ImpactCard/package.json +0 -7
  562. package/dist/ImpactCard/styles.css +0 -1
  563. package/dist/InformationCard/InformationCard.cjs.js +0 -60
  564. package/dist/InformationCard/InformationCard.esm.js +0 -52
  565. package/dist/InformationCard/package.json +0 -7
  566. package/dist/InformationCard/styles.css +0 -1
  567. package/dist/Link/Link.cjs.js +0 -75
  568. package/dist/Link/Link.esm.js +0 -67
  569. package/dist/Link/package.json +0 -7
  570. package/dist/Link/styles.css +0 -1
  571. package/dist/Markup/Markup.cjs.js +0 -27
  572. package/dist/Markup/Markup.esm.js +0 -19
  573. package/dist/Markup/package.json +0 -7
  574. package/dist/Markup/styles.css +0 -1
  575. package/dist/MediaCard/MediaCard.cjs.js +0 -26
  576. package/dist/MediaCard/MediaCard.esm.js +0 -18
  577. package/dist/MediaCard/package.json +0 -7
  578. package/dist/MediaCard/styles.css +0 -1
  579. package/dist/Modal/Modal.cjs.js +0 -393
  580. package/dist/Modal/Modal.esm.js +0 -367
  581. package/dist/Modal/package.json +0 -7
  582. package/dist/Modal/styles.css +0 -1
  583. package/dist/Pagination/Pagination.cjs.js +0 -81
  584. package/dist/Pagination/Pagination.esm.js +0 -73
  585. package/dist/Pagination/package.json +0 -7
  586. package/dist/Pagination/styles.css +0 -1
  587. package/dist/PaginationSimple/PaginationSimple.cjs.js +0 -41
  588. package/dist/PaginationSimple/PaginationSimple.esm.js +0 -33
  589. package/dist/PaginationSimple/package.json +0 -7
  590. package/dist/PaginationSimple/styles.css +0 -1
  591. package/dist/Poster/Poster.cjs.js +0 -14
  592. package/dist/Poster/Poster.esm.js +0 -6
  593. package/dist/Poster/package.json +0 -7
  594. package/dist/Poster/styles.css +0 -1
  595. package/dist/ProgressBar/ProgressBar.cjs.js +0 -69
  596. package/dist/ProgressBar/ProgressBar.esm.js +0 -61
  597. package/dist/ProgressBar/package.json +0 -7
  598. package/dist/ProgressBar/styles.css +0 -1
  599. package/dist/ProgressStepper/ProgressStepper.cjs.js +0 -15
  600. package/dist/ProgressStepper/ProgressStepper.esm.js +0 -7
  601. package/dist/ProgressStepper/package.json +0 -7
  602. package/dist/ProgressStepper/styles.css +0 -1
  603. package/dist/RadioGroup/RadioGroup.cjs.js +0 -19
  604. package/dist/RadioGroup/RadioGroup.esm.js +0 -10
  605. package/dist/RadioGroup/package.json +0 -7
  606. package/dist/RadioGroup/styles.css +0 -1
  607. package/dist/Rule/Rule.cjs.js +0 -29
  608. package/dist/Rule/Rule.esm.js +0 -21
  609. package/dist/Rule/package.json +0 -7
  610. package/dist/Rule/styles.css +0 -1
  611. package/dist/ScrollToTop/ScrollToTop.cjs.js +0 -50
  612. package/dist/ScrollToTop/ScrollToTop.esm.js +0 -42
  613. package/dist/ScrollToTop/package.json +0 -7
  614. package/dist/ScrollToTop/styles.css +0 -1
  615. package/dist/Section/Section.cjs.js +0 -12
  616. package/dist/Section/Section.esm.js +0 -4
  617. package/dist/Section/package.json +0 -7
  618. package/dist/Section/styles.css +0 -1
  619. package/dist/Select/Select.cjs.js +0 -88
  620. package/dist/Select/Select.esm.js +0 -80
  621. package/dist/Select/package.json +0 -7
  622. package/dist/Select/styles.css +0 -1
  623. package/dist/SiteFooter/SiteFooter.cjs.js +0 -19
  624. package/dist/SiteFooter/SiteFooter.esm.js +0 -11
  625. package/dist/SiteFooter/package.json +0 -7
  626. package/dist/SiteFooter/styles.css +0 -1
  627. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +0 -23
  628. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +0 -15
  629. package/dist/SiteHeaderV2/package.json +0 -7
  630. package/dist/SiteHeaderV2/styles.css +0 -1
  631. package/dist/SkipLink/SkipLink.cjs.js +0 -24
  632. package/dist/SkipLink/SkipLink.esm.js +0 -16
  633. package/dist/SkipLink/package.json +0 -7
  634. package/dist/SkipLink/styles.css +0 -1
  635. package/dist/Spinner/Spinner.cjs.js +0 -12
  636. package/dist/Spinner/Spinner.esm.js +0 -4
  637. package/dist/Spinner/package.json +0 -7
  638. package/dist/Spinner/styles.css +0 -1
  639. package/dist/Surface/Surface.cjs.js +0 -15
  640. package/dist/Surface/Surface.esm.js +0 -4
  641. package/dist/Surface/package.json +0 -7
  642. package/dist/Surface/styles.css +0 -1
  643. package/dist/Switch/Switch.cjs.js +0 -164
  644. package/dist/Switch/Switch.esm.js +0 -156
  645. package/dist/Switch/package.json +0 -7
  646. package/dist/Switch/styles.css +0 -1
  647. package/dist/Tabs/Tabs.cjs.js +0 -21
  648. package/dist/Tabs/Tabs.esm.js +0 -13
  649. package/dist/Tabs/package.json +0 -7
  650. package/dist/Tabs/styles.css +0 -1
  651. package/dist/Tag/Tag.cjs.js +0 -84
  652. package/dist/Tag/Tag.esm.js +0 -76
  653. package/dist/Tag/package.json +0 -7
  654. package/dist/Tag/styles.css +0 -1
  655. package/dist/Text/Text.cjs.js +0 -13
  656. package/dist/Text/Text.esm.js +0 -5
  657. package/dist/Text/package.json +0 -7
  658. package/dist/Text/styles.css +0 -1
  659. package/dist/TextArea/TextArea.cjs.js +0 -115
  660. package/dist/TextArea/TextArea.esm.js +0 -107
  661. package/dist/TextArea/package.json +0 -7
  662. package/dist/TextArea/styles.css +0 -1
  663. package/dist/TextInput/TextInput.cjs.js +0 -19
  664. package/dist/TextInput/TextInput.esm.js +0 -11
  665. package/dist/TextInput/package.json +0 -7
  666. package/dist/TextInput/styles.css +0 -1
  667. package/dist/Theme/Theme.cjs.js +0 -30
  668. package/dist/Theme/Theme.esm.js +0 -21
  669. package/dist/Theme/package.json +0 -7
  670. package/dist/Theme/styles.css +0 -1
  671. package/dist/ThemeIcon/ThemeIcon.cjs.js +0 -13
  672. package/dist/ThemeIcon/ThemeIcon.esm.js +0 -5
  673. package/dist/ThemeIcon/package.json +0 -7
  674. package/dist/ThemeIcon/styles.css +0 -1
  675. package/dist/Toast/Toast.cjs.js +0 -19
  676. package/dist/Toast/Toast.esm.js +0 -11
  677. package/dist/Toast/package.json +0 -7
  678. package/dist/Toast/styles.css +0 -1
  679. package/dist/Truncate/Truncate.cjs.js +0 -18
  680. package/dist/Truncate/Truncate.esm.js +0 -10
  681. package/dist/Truncate/package.json +0 -7
  682. package/dist/Truncate/styles.css +0 -1
  683. package/dist/TypographyCard/TypographyCard.cjs.js +0 -40
  684. package/dist/TypographyCard/TypographyCard.esm.js +0 -32
  685. package/dist/TypographyCard/package.json +0 -7
  686. package/dist/TypographyCard/styles.css +0 -1
  687. package/dist/UniversalHeader/UniversalHeader.cjs.js +0 -13
  688. package/dist/UniversalHeader/UniversalHeader.esm.js +0 -5
  689. package/dist/UniversalHeader/package.json +0 -7
  690. package/dist/UniversalHeader/styles.css +0 -1
  691. package/dist/VerticalSpace/VerticalSpace.cjs.js +0 -12
  692. package/dist/VerticalSpace/VerticalSpace.esm.js +0 -4
  693. package/dist/VerticalSpace/package.json +0 -7
  694. package/dist/VerticalSpace/styles.css +0 -1
  695. package/dist/VideoPlayer/VideoPlayer.cjs.js +0 -3012
  696. package/dist/VideoPlayer/VideoPlayer.esm.js +0 -3004
  697. package/dist/VideoPlayer/package.json +0 -7
  698. package/dist/VideoPlayer/styles.css +0 -1
  699. package/dist/Visible/Visible.cjs.js +0 -24
  700. package/dist/Visible/Visible.esm.js +0 -16
  701. package/dist/Visible/package.json +0 -7
  702. package/dist/Visible/styles.css +0 -1
  703. package/dist/VisuallyHidden/VisuallyHidden.cjs.js +0 -11
  704. package/dist/VisuallyHidden/VisuallyHidden.esm.js +0 -3
  705. package/dist/VisuallyHidden/package.json +0 -7
  706. package/dist/VisuallyHidden/styles.css +0 -1
  707. package/dist/_shared/cjs/Avatar-e6ba0881.js +0 -48
  708. package/dist/_shared/cjs/Badge-1f86304b.js +0 -17
  709. package/dist/_shared/cjs/Box-d177ee32.js +0 -29
  710. package/dist/_shared/cjs/BrandLogo-d4a6fd05.js +0 -30
  711. package/dist/_shared/cjs/Breadcrumbs-ca30086e.js +0 -103
  712. package/dist/_shared/cjs/BtIconArrowRight.esm-6053bb79.js +0 -30
  713. package/dist/_shared/cjs/BtIconChevronRightMid.esm-3e8d18a9.js +0 -28
  714. package/dist/_shared/cjs/BtIconPlayFill.esm-b8997cfc.js +0 -30
  715. package/dist/_shared/cjs/Button-a2150286.js +0 -53
  716. package/dist/_shared/cjs/ButtonV2-7c437d1a.js +0 -53
  717. package/dist/_shared/cjs/Calendar-9b4b01c8.js +0 -1927
  718. package/dist/_shared/cjs/CardFooter-68235081.js +0 -79
  719. package/dist/_shared/cjs/CardHeading-88edadd4.js +0 -16
  720. package/dist/_shared/cjs/Checkbox-f6712cc5.js +0 -70
  721. package/dist/_shared/cjs/Columns-5c6bab74.js +0 -48
  722. package/dist/_shared/cjs/Combination-854a36ce.js +0 -1203
  723. package/dist/_shared/cjs/ConditionalWrapper-bf944594.js +0 -14
  724. package/dist/_shared/cjs/ContentSwitcher-88b00e11.js +0 -98
  725. package/dist/_shared/cjs/ContentSwitcherDropdown-ba5330ed.js +0 -47
  726. package/dist/_shared/cjs/DatePicker-61d66a55.js +0 -956
  727. package/dist/_shared/cjs/DisclosureMini-a46a4838.js +0 -41
  728. package/dist/_shared/cjs/Filter-b6ca2a39.js +0 -125
  729. package/dist/_shared/cjs/FormControl-0fba93b8.js +0 -111
  730. package/dist/_shared/cjs/Grid-69ed0e5c.js +0 -45
  731. package/dist/_shared/cjs/Group-7e6b78c9.js +0 -40
  732. package/dist/_shared/cjs/Heading-25d11688.js +0 -39
  733. package/dist/_shared/cjs/HeroButton-19814c26.js +0 -126
  734. package/dist/_shared/cjs/Icon-08447959.js +0 -47
  735. package/dist/_shared/cjs/Image-c8969ad9.js +0 -55
  736. package/dist/_shared/cjs/MediaCard-7bbe8aa0.js +0 -65
  737. package/dist/_shared/cjs/Poster-96aa286e.js +0 -45
  738. package/dist/_shared/cjs/Preview-0bf3f6e8.js +0 -167
  739. package/dist/_shared/cjs/ProgressStepper-c59ec56c.js +0 -97
  740. package/dist/_shared/cjs/RadioGroup-11f4b232.js +0 -85
  741. package/dist/_shared/cjs/Section-46646353.js +0 -23
  742. package/dist/_shared/cjs/SiteFooter-d839f66a.js +0 -70
  743. package/dist/_shared/cjs/SiteHeaderV2-3793453c.js +0 -687
  744. package/dist/_shared/cjs/Spinner-56122c43.js +0 -24
  745. package/dist/_shared/cjs/Surface-1b5c2ac8.js +0 -175
  746. package/dist/_shared/cjs/Tabs-30a12f1a.js +0 -93
  747. package/dist/_shared/cjs/Text-c187d9ef.js +0 -31
  748. package/dist/_shared/cjs/TextInput-d39f5a80.js +0 -103
  749. package/dist/_shared/cjs/ThemeIcon-7f537bd2.js +0 -26
  750. package/dist/_shared/cjs/Toast-35c83925.js +0 -965
  751. package/dist/_shared/cjs/UniversalHeader-f9ef793f.js +0 -29
  752. package/dist/_shared/cjs/VerticalSpace-973deefe.js +0 -29
  753. package/dist/_shared/cjs/VisuallyHidden-25393f58.js +0 -18
  754. package/dist/_shared/cjs/_commonjsHelpers-56412ec5.js +0 -21
  755. package/dist/_shared/cjs/component-4e71e3d3.js +0 -505
  756. package/dist/_shared/cjs/debounce-a74c28cf.js +0 -544
  757. package/dist/_shared/cjs/floating-ui.react-dom-08b8b87c.js +0 -1908
  758. package/dist/_shared/cjs/index-1e7a1fce.js +0 -379
  759. package/dist/_shared/cjs/index-28fbfd5b.js +0 -2206
  760. package/dist/_shared/cjs/index-2bf59363.js +0 -44
  761. package/dist/_shared/cjs/index-527f962b.js +0 -131
  762. package/dist/_shared/cjs/index-76f7dd53.js +0 -380
  763. package/dist/_shared/cjs/index-879e71ee.js +0 -47
  764. package/dist/_shared/cjs/index-89c323a4.js +0 -2204
  765. package/dist/_shared/cjs/index-9947ac13.js +0 -64
  766. package/dist/_shared/cjs/index-ba3141f5.js +0 -72
  767. package/dist/_shared/cjs/index-dbc843d3.js +0 -97
  768. package/dist/_shared/cjs/index.es-c26e8978.js +0 -201
  769. package/dist/_shared/cjs/index.es-f23456fa.js +0 -13
  770. package/dist/_shared/cjs/use-media-query-d34c83b9.js +0 -41
  771. package/dist/_shared/esm/Avatar-3537bca7.js +0 -42
  772. package/dist/_shared/esm/Badge-7bc80706.js +0 -11
  773. package/dist/_shared/esm/Box-557fb3b1.js +0 -23
  774. package/dist/_shared/esm/BrandLogo-45d0d795.js +0 -24
  775. package/dist/_shared/esm/Breadcrumbs-bcf9ca79.js +0 -97
  776. package/dist/_shared/esm/BtIconArrowRight.esm-93da96bb.js +0 -24
  777. package/dist/_shared/esm/BtIconChevronRightMid.esm-4764708f.js +0 -22
  778. package/dist/_shared/esm/BtIconPlayFill.esm-05fc0344.js +0 -24
  779. package/dist/_shared/esm/Button-0506afa7.js +0 -47
  780. package/dist/_shared/esm/ButtonV2-c83db10c.js +0 -47
  781. package/dist/_shared/esm/Calendar-34b10bd5.js +0 -1918
  782. package/dist/_shared/esm/CardFooter-bf886438.js +0 -73
  783. package/dist/_shared/esm/CardHeading-c65f9fb2.js +0 -10
  784. package/dist/_shared/esm/Checkbox-8195c42c.js +0 -64
  785. package/dist/_shared/esm/Columns-9aa5df4a.js +0 -42
  786. package/dist/_shared/esm/Combination-2af75870.js +0 -1163
  787. package/dist/_shared/esm/ConditionalWrapper-b85979de.js +0 -8
  788. package/dist/_shared/esm/ContentSwitcher-bae1f0a7.js +0 -92
  789. package/dist/_shared/esm/ContentSwitcherDropdown-65291c09.js +0 -41
  790. package/dist/_shared/esm/DatePicker-aafbdea8.js +0 -927
  791. package/dist/_shared/esm/DisclosureMini-f6d8c9bc.js +0 -35
  792. package/dist/_shared/esm/Filter-a5bf3fe3.js +0 -119
  793. package/dist/_shared/esm/FormControl-ff671eb8.js +0 -103
  794. package/dist/_shared/esm/Grid-727d05d6.js +0 -39
  795. package/dist/_shared/esm/Group-c4f6c745.js +0 -34
  796. package/dist/_shared/esm/Heading-0a8d3545.js +0 -33
  797. package/dist/_shared/esm/HeroButton-a98767b7.js +0 -120
  798. package/dist/_shared/esm/Icon-a5cb17de.js +0 -41
  799. package/dist/_shared/esm/Image-c1dc10b5.js +0 -48
  800. package/dist/_shared/esm/MediaCard-fdc76670.js +0 -59
  801. package/dist/_shared/esm/Poster-dc3d7ee8.js +0 -39
  802. package/dist/_shared/esm/Preview-43b2a75d.js +0 -161
  803. package/dist/_shared/esm/ProgressStepper-427f24e3.js +0 -91
  804. package/dist/_shared/esm/RadioGroup-5b654bee.js +0 -78
  805. package/dist/_shared/esm/Section-c1dc6e37.js +0 -17
  806. package/dist/_shared/esm/SiteFooter-1cdba967.js +0 -64
  807. package/dist/_shared/esm/SiteHeaderV2-743847f6.js +0 -681
  808. package/dist/_shared/esm/Spinner-6704017c.js +0 -18
  809. package/dist/_shared/esm/Surface-0af6a69a.js +0 -165
  810. package/dist/_shared/esm/Tabs-d360207d.js +0 -87
  811. package/dist/_shared/esm/Text-df93be85.js +0 -25
  812. package/dist/_shared/esm/TextInput-7ab39a54.js +0 -96
  813. package/dist/_shared/esm/ThemeIcon-e1e19266.js +0 -20
  814. package/dist/_shared/esm/Toast-abd517c8.js +0 -958
  815. package/dist/_shared/esm/UniversalHeader-8ebc5322.js +0 -23
  816. package/dist/_shared/esm/VerticalSpace-6a3533db.js +0 -23
  817. package/dist/_shared/esm/VisuallyHidden-cf45ac18.js +0 -12
  818. package/dist/_shared/esm/_commonjsHelpers-0109d574.js +0 -18
  819. package/dist/_shared/esm/component-3e60a45e.js +0 -476
  820. package/dist/_shared/esm/debounce-c8e41002.js +0 -542
  821. package/dist/_shared/esm/floating-ui.react-dom-1bb71aae.js +0 -1878
  822. package/dist/_shared/esm/index-14c7f4da.js +0 -91
  823. package/dist/_shared/esm/index-2e73c2e9.js +0 -62
  824. package/dist/_shared/esm/index-57d4cb34.js +0 -369
  825. package/dist/_shared/esm/index-89a7c31c.js +0 -374
  826. package/dist/_shared/esm/index-ac50b180.js +0 -69
  827. package/dist/_shared/esm/index-afbf540d.js +0 -2169
  828. package/dist/_shared/esm/index-b9923ee4.js +0 -25
  829. package/dist/_shared/esm/index-ce6dee84.js +0 -2197
  830. package/dist/_shared/esm/index-e969452b.js +0 -41
  831. package/dist/_shared/esm/index-f2ddcbe2.js +0 -129
  832. package/dist/_shared/esm/index.es-5496ec12.js +0 -196
  833. package/dist/_shared/esm/index.es-932db59a.js +0 -9
  834. package/dist/_shared/esm/use-media-query-d3622da8.js +0 -39
  835. package/dist/index.es.js +0 -20394
  836. package/dist/index.es.js.map +0 -1
  837. package/dist/index.js +0 -20486
  838. package/dist/index.js.map +0 -1
  839. package/dist/styles.css +0 -15
  840. package/dist/types/components/Alert/Alert.d.ts +0 -54
  841. package/dist/types/components/Alert/index.d.ts +0 -1
  842. package/dist/types/components/Align/Align.d.ts +0 -30
  843. package/dist/types/components/Align/index.d.ts +0 -1
  844. package/dist/types/components/AppButton/AppButton.d.ts +0 -9
  845. package/dist/types/components/AppButton/icons/AppStore.d.ts +0 -2
  846. package/dist/types/components/AppButton/icons/GooglePlay.d.ts +0 -2
  847. package/dist/types/components/AppButton/index.d.ts +0 -1
  848. package/dist/types/components/Avatar/Avatar.d.ts +0 -14
  849. package/dist/types/components/Avatar/components/AvatarContent/AvatarContent.d.ts +0 -9
  850. package/dist/types/components/Avatar/index.d.ts +0 -1
  851. package/dist/types/components/Avatar/types/avatar-icon-size.d.ts +0 -1
  852. package/dist/types/components/Avatar/types/avatar-image.d.ts +0 -2
  853. package/dist/types/components/Avatar/types/avatar-size.d.ts +0 -1
  854. package/dist/types/components/Avatar/types/avatar-text-size.d.ts +0 -2
  855. package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +0 -14
  856. package/dist/types/components/AvatarGroup/index.d.ts +0 -1
  857. package/dist/types/components/AvatarGroup/types/group-avatar.d.ts +0 -2
  858. package/dist/types/components/AvatarGroup/utils/get-avatars.d.ts +0 -2
  859. package/dist/types/components/Badge/Badge.d.ts +0 -21
  860. package/dist/types/components/Badge/index.d.ts +0 -1
  861. package/dist/types/components/Box/Box.d.ts +0 -40
  862. package/dist/types/components/Box/index.d.ts +0 -1
  863. package/dist/types/components/BrandLogo/BrandLogo.d.ts +0 -25
  864. package/dist/types/components/BrandLogo/index.d.ts +0 -1
  865. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -18
  866. package/dist/types/components/Breadcrumbs/BreadcrumbsItem/BreadcrumbsItem.d.ts +0 -17
  867. package/dist/types/components/Breadcrumbs/BreadcrumbsLink/BreadcrumbsLink.d.ts +0 -29
  868. package/dist/types/components/Breadcrumbs/index.d.ts +0 -1
  869. package/dist/types/components/Button/Button.d.ts +0 -104
  870. package/dist/types/components/Button/index.d.ts +0 -1
  871. package/dist/types/components/ButtonV2/ButtonV2.d.ts +0 -79
  872. package/dist/types/components/ButtonV2/index.d.ts +0 -1
  873. package/dist/types/components/Calendar/Calendar.d.ts +0 -50
  874. package/dist/types/components/Calendar/Calendar.provider.d.ts +0 -21
  875. package/dist/types/components/Calendar/components/CalendarDateSelect/CalendarDateSelect.d.ts +0 -15
  876. package/dist/types/components/Calendar/components/CalendarDateSelect/index.d.ts +0 -1
  877. package/dist/types/components/Calendar/components/CalendarDayGrid/CalendarDayGrid.d.ts +0 -6
  878. package/dist/types/components/Calendar/components/CalendarDayGrid/index.d.ts +0 -1
  879. package/dist/types/components/Calendar/components/CalendarDayNumber/CalendarDayNumber.d.ts +0 -8
  880. package/dist/types/components/Calendar/components/CalendarDayNumber/index.d.ts +0 -1
  881. package/dist/types/components/Calendar/components/CalendarDoubleMonthView/CalendarDoubleMonthView.d.ts +0 -9
  882. package/dist/types/components/Calendar/components/CalendarDoubleMonthView/index.d.ts +0 -1
  883. package/dist/types/components/Calendar/components/CalendarFooter/CalendarFooter.d.ts +0 -6
  884. package/dist/types/components/Calendar/components/CalendarFooter/index.d.ts +0 -1
  885. package/dist/types/components/Calendar/components/CalendarMonthView/CalendarMonthView.d.ts +0 -9
  886. package/dist/types/components/Calendar/components/CalendarMonthView/index.d.ts +0 -1
  887. package/dist/types/components/Calendar/components/CalendarMonthYearView/CalendarMonthYearView.d.ts +0 -11
  888. package/dist/types/components/Calendar/components/CalendarMonthYearView/index.d.ts +0 -1
  889. package/dist/types/components/Calendar/components/CalendarNavButton/CalendarNavButton.d.ts +0 -10
  890. package/dist/types/components/Calendar/components/CalendarNavButton/index.d.ts +0 -1
  891. package/dist/types/components/Calendar/components/CalendarWrapper/CalendarWrapper.d.ts +0 -5
  892. package/dist/types/components/Calendar/components/CalendarWrapper/index.d.ts +0 -1
  893. package/dist/types/components/Calendar/components/index.d.ts +0 -6
  894. package/dist/types/components/Calendar/constants/day-names.d.ts +0 -5
  895. package/dist/types/components/Calendar/constants/index.d.ts +0 -1
  896. package/dist/types/components/Calendar/helpers/contains-date.d.ts +0 -1
  897. package/dist/types/components/Calendar/helpers/contains-date.test.d.ts +0 -1
  898. package/dist/types/components/Calendar/helpers/date-without-time.d.ts +0 -1
  899. package/dist/types/components/Calendar/helpers/date-without-time.test.d.ts +0 -1
  900. package/dist/types/components/Calendar/helpers/get-calendar-type.d.ts +0 -2
  901. package/dist/types/components/Calendar/helpers/get-calendar-type.test.d.ts +0 -1
  902. package/dist/types/components/Calendar/helpers/get-dates-in-month.d.ts +0 -1
  903. package/dist/types/components/Calendar/helpers/get-dates-in-month.test.d.ts +0 -1
  904. package/dist/types/components/Calendar/helpers/get-double-month-display-range.d.ts +0 -1
  905. package/dist/types/components/Calendar/helpers/get-double-month-display-range.test.d.ts +0 -1
  906. package/dist/types/components/Calendar/helpers/get-focus-date.d.ts +0 -5
  907. package/dist/types/components/Calendar/helpers/get-focus-date.test.d.ts +0 -1
  908. package/dist/types/components/Calendar/helpers/get-highlighted-range.d.ts +0 -6
  909. package/dist/types/components/Calendar/helpers/get-highlighted-range.test.d.ts +0 -1
  910. package/dist/types/components/Calendar/helpers/get-keydown-date.d.ts +0 -6
  911. package/dist/types/components/Calendar/helpers/get-keydown-date.test.d.ts +0 -1
  912. package/dist/types/components/Calendar/helpers/index.d.ts +0 -13
  913. package/dist/types/components/Calendar/helpers/is-day.d.ts +0 -2
  914. package/dist/types/components/Calendar/helpers/is-day.test.d.ts +0 -1
  915. package/dist/types/components/Calendar/helpers/is-disabled-date.d.ts +0 -1
  916. package/dist/types/components/Calendar/helpers/is-disabled-date.test.d.ts +0 -1
  917. package/dist/types/components/Calendar/helpers/is-month-after-max-date.d.ts +0 -1
  918. package/dist/types/components/Calendar/helpers/is-month-after-max-date.test.d.ts +0 -1
  919. package/dist/types/components/Calendar/helpers/is-month-before-min-date.d.ts +0 -1
  920. package/dist/types/components/Calendar/helpers/is-month-before-min-date.test.d.ts +0 -1
  921. package/dist/types/components/Calendar/helpers/process-selected-range.d.ts +0 -9
  922. package/dist/types/components/Calendar/helpers/process-selected-range.test.d.ts +0 -1
  923. package/dist/types/components/Calendar/index.d.ts +0 -2
  924. package/dist/types/components/Calendar/state/handlers/calendar-keydown-handler.d.ts +0 -3
  925. package/dist/types/components/Calendar/state/handlers/day-grid-leave-handler.d.ts +0 -3
  926. package/dist/types/components/Calendar/state/handlers/day-number-select-handler.d.ts +0 -3
  927. package/dist/types/components/Calendar/state/handlers/default-handler.d.ts +0 -2
  928. package/dist/types/components/Calendar/state/handlers/dropdown-change-month-handler.d.ts +0 -3
  929. package/dist/types/components/Calendar/state/handlers/dropdown-change-year-handler.d.ts +0 -3
  930. package/dist/types/components/Calendar/state/handlers/highlight-range-handler.d.ts +0 -3
  931. package/dist/types/components/Calendar/state/handlers/index.d.ts +0 -12
  932. package/dist/types/components/Calendar/state/handlers/range-select-handler.d.ts +0 -3
  933. package/dist/types/components/Calendar/state/handlers/show-next-double-month-handler.d.ts +0 -3
  934. package/dist/types/components/Calendar/state/handlers/show-next-month-handler.d.ts +0 -3
  935. package/dist/types/components/Calendar/state/handlers/show-previous-double-month-handler.d.ts +0 -3
  936. package/dist/types/components/Calendar/state/handlers/show-previous-month-handler.d.ts +0 -3
  937. package/dist/types/components/Calendar/state/index.d.ts +0 -2
  938. package/dist/types/components/Calendar/state/reducer.d.ts +0 -3
  939. package/dist/types/components/Calendar/state/reducer.test.d.ts +0 -1
  940. package/dist/types/components/Calendar/state/types/actions.d.ts +0 -81
  941. package/dist/types/components/Calendar/state/types/state-handler.d.ts +0 -3
  942. package/dist/types/components/Calendar/state/types/state.d.ts +0 -5
  943. package/dist/types/components/Calendar/types/calendar-type.d.ts +0 -1
  944. package/dist/types/components/Calendar/types/date-select-value.d.ts +0 -2
  945. package/dist/types/components/Calendar/types/index.d.ts +0 -6
  946. package/dist/types/components/Calendar/types/key-names.d.ts +0 -13
  947. package/dist/types/components/Calendar/types/range-selection.d.ts +0 -10
  948. package/dist/types/components/Calendar/types/selection-type.d.ts +0 -1
  949. package/dist/types/components/Calendar/types/week-days.d.ts +0 -18
  950. package/dist/types/components/CardFooter/CardFooter.d.ts +0 -11
  951. package/dist/types/components/CardFooter/index.d.ts +0 -1
  952. package/dist/types/components/CardHeading/CardHeading.d.ts +0 -19
  953. package/dist/types/components/CardHeading/index.d.ts +0 -1
  954. package/dist/types/components/Carousel/Carousel.d.ts +0 -12
  955. package/dist/types/components/Carousel/helpers/get-slide-config.d.ts +0 -4
  956. package/dist/types/components/Carousel/helpers/get-slider-position.d.ts +0 -9
  957. package/dist/types/components/Carousel/helpers/is-last-slide.d.ts +0 -2
  958. package/dist/types/components/Carousel/helpers/is-slide-hidden.d.ts +0 -2
  959. package/dist/types/components/Carousel/hooks/use-slides.d.ts +0 -18
  960. package/dist/types/components/Carousel/index.d.ts +0 -1
  961. package/dist/types/components/Carousel/types/breakpoints.d.ts +0 -1
  962. package/dist/types/components/Carousel/types/responsive.d.ts +0 -3
  963. package/dist/types/components/Carousel/types/screen-sizes.d.ts +0 -2
  964. package/dist/types/components/Carousel/types/slide-config.d.ts +0 -5
  965. package/dist/types/components/Carousel/types/slide.d.ts +0 -4
  966. package/dist/types/components/Checkbox/Checkbox.d.ts +0 -66
  967. package/dist/types/components/Checkbox/index.d.ts +0 -1
  968. package/dist/types/components/Columns/Columns.d.ts +0 -76
  969. package/dist/types/components/Columns/index.d.ts +0 -1
  970. package/dist/types/components/ConditionalWrapper/ConditionalWrapper.d.ts +0 -7
  971. package/dist/types/components/ConditionalWrapper/index.d.ts +0 -1
  972. package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +0 -28
  973. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +0 -12
  974. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +0 -1
  975. package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +0 -24
  976. package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +0 -1
  977. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +0 -17
  978. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +0 -1
  979. package/dist/types/components/ContentSwitcher/index.d.ts +0 -1
  980. package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +0 -37
  981. package/dist/types/components/ContentSwitcherDropdown/index.d.ts +0 -1
  982. package/dist/types/components/DatePicker/DatePicker.d.ts +0 -20
  983. package/dist/types/components/DatePicker/constants/date-format.d.ts +0 -1
  984. package/dist/types/components/DatePicker/constants/index.d.ts +0 -1
  985. package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.d.ts +0 -1
  986. package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.test.d.ts +0 -1
  987. package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.d.ts +0 -1
  988. package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.test.d.ts +0 -1
  989. package/dist/types/components/DatePicker/helpers/format-date.d.ts +0 -1
  990. package/dist/types/components/DatePicker/helpers/format-date.test.d.ts +0 -1
  991. package/dist/types/components/DatePicker/helpers/index.d.ts +0 -8
  992. package/dist/types/components/DatePicker/helpers/is-date-valid.d.ts +0 -1
  993. package/dist/types/components/DatePicker/helpers/is-date-valid.test.d.ts +0 -1
  994. package/dist/types/components/DatePicker/helpers/is-disabled-date.d.ts +0 -1
  995. package/dist/types/components/DatePicker/helpers/is-disabled-date.test.d.ts +0 -1
  996. package/dist/types/components/DatePicker/helpers/is-range-valid.d.ts +0 -1
  997. package/dist/types/components/DatePicker/helpers/is-range-valid.test.d.ts +0 -1
  998. package/dist/types/components/DatePicker/helpers/parse-date-string.d.ts +0 -5
  999. package/dist/types/components/DatePicker/helpers/parse-date-string.test.d.ts +0 -1
  1000. package/dist/types/components/DatePicker/helpers/parse-range-string.d.ts +0 -14
  1001. package/dist/types/components/DatePicker/helpers/parse-range-string.test.d.ts +0 -1
  1002. package/dist/types/components/DatePicker/index.d.ts +0 -6
  1003. package/dist/types/components/Disclosure/Disclosure.d.ts +0 -29
  1004. package/dist/types/components/Disclosure/index.d.ts +0 -1
  1005. package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +0 -35
  1006. package/dist/types/components/DisclosureMini/index.d.ts +0 -1
  1007. package/dist/types/components/Elevation/Elevation.d.ts +0 -19
  1008. package/dist/types/components/Elevation/index.d.ts +0 -1
  1009. package/dist/types/components/Filter/Filter.d.ts +0 -38
  1010. package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +0 -16
  1011. package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +0 -12
  1012. package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +0 -12
  1013. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +0 -16
  1014. package/dist/types/components/Filter/index.d.ts +0 -1
  1015. package/dist/types/components/FormControl/FormControl.d.ts +0 -79
  1016. package/dist/types/components/FormControl/index.d.ts +0 -1
  1017. package/dist/types/components/Grid/Grid.constants.d.ts +0 -1
  1018. package/dist/types/components/Grid/Grid.d.ts +0 -28
  1019. package/dist/types/components/Grid/Grid.types.d.ts +0 -10
  1020. package/dist/types/components/Grid/components/Col/Col.d.ts +0 -10
  1021. package/dist/types/components/Grid/components/Col/index.d.ts +0 -1
  1022. package/dist/types/components/Grid/components/Row/Row.d.ts +0 -10
  1023. package/dist/types/components/Grid/components/Row/index.d.ts +0 -1
  1024. package/dist/types/components/Grid/index.d.ts +0 -2
  1025. package/dist/types/components/Group/Group.d.ts +0 -45
  1026. package/dist/types/components/Group/GroupItem/GroupItem.d.ts +0 -17
  1027. package/dist/types/components/Group/index.d.ts +0 -1
  1028. package/dist/types/components/Heading/Heading.d.ts +0 -49
  1029. package/dist/types/components/Heading/index.d.ts +0 -1
  1030. package/dist/types/components/HeroBanner/HeroBanner.d.ts +0 -52
  1031. package/dist/types/components/HeroBanner/index.d.ts +0 -1
  1032. package/dist/types/components/HeroButton/HeroButton.d.ts +0 -66
  1033. package/dist/types/components/HeroButton/index.d.ts +0 -1
  1034. package/dist/types/components/Hidden/Hidden.d.ts +0 -11
  1035. package/dist/types/components/Hidden/index.d.ts +0 -1
  1036. package/dist/types/components/Icon/Icon.d.ts +0 -37
  1037. package/dist/types/components/Icon/index.d.ts +0 -1
  1038. package/dist/types/components/Image/Image.d.ts +0 -97
  1039. package/dist/types/components/Image/index.d.ts +0 -1
  1040. package/dist/types/components/ImpactCard/ImpactCard.d.ts +0 -58
  1041. package/dist/types/components/ImpactCard/index.d.ts +0 -1
  1042. package/dist/types/components/InformationCard/InformationCard.d.ts +0 -62
  1043. package/dist/types/components/InformationCard/index.d.ts +0 -1
  1044. package/dist/types/components/Link/Link.d.ts +0 -52
  1045. package/dist/types/components/Link/index.d.ts +0 -1
  1046. package/dist/types/components/Markup/Markup.d.ts +0 -15
  1047. package/dist/types/components/Markup/index.d.ts +0 -1
  1048. package/dist/types/components/MediaCard/MediaCard.d.ts +0 -56
  1049. package/dist/types/components/MediaCard/index.d.ts +0 -1
  1050. package/dist/types/components/MediaCard/types/index.d.ts +0 -2
  1051. package/dist/types/components/MediaCard/types/media-card-image.d.ts +0 -4
  1052. package/dist/types/components/MediaCard/types/media-card-video.d.ts +0 -4
  1053. package/dist/types/components/Modal/Modal.d.ts +0 -50
  1054. package/dist/types/components/Modal/index.d.ts +0 -1
  1055. package/dist/types/components/Pagination/Pagination.d.ts +0 -19
  1056. package/dist/types/components/Pagination/index.d.ts +0 -1
  1057. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +0 -35
  1058. package/dist/types/components/PaginationSimple/index.d.ts +0 -1
  1059. package/dist/types/components/Poster/Poster.d.ts +0 -29
  1060. package/dist/types/components/Poster/PosterImage.d.ts +0 -34
  1061. package/dist/types/components/Poster/PosterVideo.d.ts +0 -21
  1062. package/dist/types/components/Poster/index.d.ts +0 -1
  1063. package/dist/types/components/ProgressBar/ProgressBar.d.ts +0 -50
  1064. package/dist/types/components/ProgressBar/constants/progress-bar-icon-map.d.ts +0 -3
  1065. package/dist/types/components/ProgressBar/index.d.ts +0 -1
  1066. package/dist/types/components/ProgressBar/types/progress-bar-icons.d.ts +0 -1
  1067. package/dist/types/components/ProgressBar/types/progress-bar-state.d.ts +0 -1
  1068. package/dist/types/components/ProgressBar/utils/get-progress-bar-props.d.ts +0 -1
  1069. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +0 -28
  1070. package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +0 -58
  1071. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Complete.d.ts +0 -2
  1072. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Current.d.ts +0 -2
  1073. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Error.d.ts +0 -2
  1074. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Warning.d.ts +0 -2
  1075. package/dist/types/components/ProgressStepper/index.d.ts +0 -1
  1076. package/dist/types/components/ProgressStepper/progressStatus.d.ts +0 -1
  1077. package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +0 -21
  1078. package/dist/types/components/RadioGroup/RadioButton/index.d.ts +0 -1
  1079. package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +0 -36
  1080. package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +0 -1
  1081. package/dist/types/components/RadioGroup/RadioGroup.d.ts +0 -66
  1082. package/dist/types/components/RadioGroup/context.d.ts +0 -14
  1083. package/dist/types/components/RadioGroup/index.d.ts +0 -2
  1084. package/dist/types/components/Rule/Rule.d.ts +0 -8
  1085. package/dist/types/components/Rule/index.d.ts +0 -1
  1086. package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +0 -24
  1087. package/dist/types/components/ScrollToTop/index.d.ts +0 -1
  1088. package/dist/types/components/Section/Section.d.ts +0 -20
  1089. package/dist/types/components/Section/index.d.ts +0 -1
  1090. package/dist/types/components/Select/Select.d.ts +0 -77
  1091. package/dist/types/components/Select/index.d.ts +0 -1
  1092. package/dist/types/components/SiteFooter/SiteFooter.d.ts +0 -57
  1093. package/dist/types/components/SiteFooter/index.d.ts +0 -1
  1094. package/dist/types/components/SiteHeaderV2/SiteHeaderV2.d.ts +0 -82
  1095. package/dist/types/components/SiteHeaderV2/components/BackButton/BackButton.d.ts +0 -6
  1096. package/dist/types/components/SiteHeaderV2/components/BackButton/index.d.ts +0 -1
  1097. package/dist/types/components/SiteHeaderV2/components/Column/Column.d.ts +0 -8
  1098. package/dist/types/components/SiteHeaderV2/components/Column/index.d.ts +0 -1
  1099. package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/HorizontalPanel.d.ts +0 -13
  1100. package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/index.d.ts +0 -1
  1101. package/dist/types/components/SiteHeaderV2/components/Item/Item.d.ts +0 -20
  1102. package/dist/types/components/SiteHeaderV2/components/Item/index.d.ts +0 -1
  1103. package/dist/types/components/SiteHeaderV2/components/ItemGroup/ItemGroup.d.ts +0 -27
  1104. package/dist/types/components/SiteHeaderV2/components/ItemGroup/index.d.ts +0 -1
  1105. package/dist/types/components/SiteHeaderV2/components/MenuButton/MenuButton.d.ts +0 -6
  1106. package/dist/types/components/SiteHeaderV2/components/MenuButton/index.d.ts +0 -1
  1107. package/dist/types/components/SiteHeaderV2/components/NavItem/NavItem.d.ts +0 -41
  1108. package/dist/types/components/SiteHeaderV2/components/NavItem/NavItemWithSubNav.d.ts +0 -56
  1109. package/dist/types/components/SiteHeaderV2/components/NavItem/index.d.ts +0 -2
  1110. package/dist/types/components/SiteHeaderV2/components/NodeItem/NodeItem.d.ts +0 -8
  1111. package/dist/types/components/SiteHeaderV2/components/Panel/Panel.d.ts +0 -28
  1112. package/dist/types/components/SiteHeaderV2/components/Panel/index.d.ts +0 -1
  1113. package/dist/types/components/SiteHeaderV2/components/SubNavItem/SubNavItem.d.ts +0 -45
  1114. package/dist/types/components/SiteHeaderV2/components/SubNavItem/index.d.ts +0 -1
  1115. package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +0 -2
  1116. package/dist/types/components/SiteHeaderV2/components/VerticalDivider/index.d.ts +0 -1
  1117. package/dist/types/components/SiteHeaderV2/index.d.ts +0 -1
  1118. package/dist/types/components/SkipLink/SkipLink.d.ts +0 -12
  1119. package/dist/types/components/SkipLink/SkipLinkItem/SkipLinkItem.d.ts +0 -16
  1120. package/dist/types/components/SkipLink/index.d.ts +0 -1
  1121. package/dist/types/components/Spinner/Spinner.d.ts +0 -16
  1122. package/dist/types/components/Spinner/index.d.ts +0 -1
  1123. package/dist/types/components/Surface/Surface.d.ts +0 -53
  1124. package/dist/types/components/Surface/index.d.ts +0 -1
  1125. package/dist/types/components/Switch/Switch.d.ts +0 -43
  1126. package/dist/types/components/Switch/index.d.ts +0 -1
  1127. package/dist/types/components/Tabs/Tab/Tab.d.ts +0 -22
  1128. package/dist/types/components/Tabs/Tab/index.d.ts +0 -1
  1129. package/dist/types/components/Tabs/TabContent/TabContent.d.ts +0 -12
  1130. package/dist/types/components/Tabs/TabContent/index.d.ts +0 -1
  1131. package/dist/types/components/Tabs/Tabs.d.ts +0 -28
  1132. package/dist/types/components/Tabs/TabsList/TabsList.d.ts +0 -20
  1133. package/dist/types/components/Tabs/TabsList/index.d.ts +0 -1
  1134. package/dist/types/components/Tabs/index.d.ts +0 -1
  1135. package/dist/types/components/Tag/Tag.d.ts +0 -36
  1136. package/dist/types/components/Tag/index.d.ts +0 -1
  1137. package/dist/types/components/Text/Text.d.ts +0 -37
  1138. package/dist/types/components/Text/index.d.ts +0 -1
  1139. package/dist/types/components/TextArea/TextArea.d.ts +0 -80
  1140. package/dist/types/components/TextArea/index.d.ts +0 -1
  1141. package/dist/types/components/TextInput/TextInput.d.ts +0 -119
  1142. package/dist/types/components/TextInput/index.d.ts +0 -1
  1143. package/dist/types/components/Theme/Theme.d.ts +0 -21
  1144. package/dist/types/components/Theme/index.d.ts +0 -1
  1145. package/dist/types/components/ThemeIcon/ThemeIcon.d.ts +0 -18
  1146. package/dist/types/components/ThemeIcon/icon-names.d.ts +0 -1
  1147. package/dist/types/components/ThemeIcon/index.d.ts +0 -1
  1148. package/dist/types/components/Toast/Toast.d.ts +0 -17
  1149. package/dist/types/components/Toast/ToastNotification.d.ts +0 -39
  1150. package/dist/types/components/Toast/index.d.ts +0 -1
  1151. package/dist/types/components/Truncate/Truncate.d.ts +0 -17
  1152. package/dist/types/components/Truncate/index.d.ts +0 -1
  1153. package/dist/types/components/TypographyCard/TypographyCard.d.ts +0 -58
  1154. package/dist/types/components/TypographyCard/index.d.ts +0 -1
  1155. package/dist/types/components/UniversalHeader/UniversalHeader.d.ts +0 -29
  1156. package/dist/types/components/UniversalHeader/index.d.ts +0 -1
  1157. package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +0 -33
  1158. package/dist/types/components/VerticalSpace/index.d.ts +0 -1
  1159. package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +0 -18
  1160. package/dist/types/components/VideoPlayer/index.d.ts +0 -1
  1161. package/dist/types/components/Visible/Visible.d.ts +0 -11
  1162. package/dist/types/components/Visible/index.d.ts +0 -1
  1163. package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +0 -11
  1164. package/dist/types/components/VisuallyHidden/index.d.ts +0 -1
  1165. package/dist/types/components/index.d.ts +0 -64
  1166. package/dist/types/helpers/anchor-points.d.ts +0 -1
  1167. package/dist/types/helpers/get-theme-img.d.ts +0 -6
  1168. package/dist/types/helpers/handle-link-click.d.ts +0 -7
  1169. package/dist/types/helpers/index.d.ts +0 -2
  1170. package/dist/types/hooks/__tests__/use-aria-describedby.test.d.ts +0 -1
  1171. package/dist/types/hooks/__tests__/use-numeric-input.test.d.ts +0 -1
  1172. package/dist/types/hooks/index.d.ts +0 -2
  1173. package/dist/types/hooks/private/index.d.ts +0 -5
  1174. package/dist/types/hooks/private/use-aria-describedby/index.d.ts +0 -1
  1175. package/dist/types/hooks/private/use-aria-describedby/use-aria-describedby.d.ts +0 -22
  1176. package/dist/types/hooks/private/use-interaction-mode/index.d.ts +0 -1
  1177. package/dist/types/hooks/private/use-interaction-mode/use-interaction-mode.d.ts +0 -6
  1178. package/dist/types/hooks/private/use-numeric-input/index.d.ts +0 -1
  1179. package/dist/types/hooks/private/use-numeric-input/use-numeric-input.d.ts +0 -9
  1180. package/dist/types/hooks/private/use-pagination/index.d.ts +0 -1
  1181. package/dist/types/hooks/private/use-pagination/use-pagination.d.ts +0 -1
  1182. package/dist/types/hooks/private/use-theme-element/index.d.ts +0 -1
  1183. package/dist/types/hooks/public/index.d.ts +0 -1
  1184. package/dist/types/hooks/public/use-media-query/index.d.ts +0 -1
  1185. package/dist/types/hooks/public/use-media-query/use-media-query.d.ts +0 -19
  1186. package/dist/types/index.d.ts +0 -2
  1187. package/dist/types/styles.d.ts +0 -72
  1188. package/dist/types/types/arc-icon.d.ts +0 -2
  1189. package/dist/types/types/auto-complete-types.d.ts +0 -1
  1190. package/dist/use-media-query/package.json +0 -7
  1191. package/dist/use-media-query/use-media-query.cjs.js +0 -10
  1192. package/dist/use-media-query/use-media-query.esm.js +0 -2
  1193. /package/{dist/_shared/cjs/handle-link-click-17a44cf4.js → lib/_shared/cjs/handle-link-click-C7BvOIYa.cjs} +0 -0
  1194. /package/{dist/_shared/esm/handle-link-click-f64f55a2.js → lib/_shared/esm/handle-link-click-CIgZ7pa0.mjs} +0 -0
@@ -0,0 +1,2248 @@
1
+ 'use client';
2
+ import { a as __assign, b as __spreadArray } from '../_shared/esm/tslib.es6-w7hdJ3oZ.mjs';
3
+ import React__default, { useRef, useState, useCallback, useEffect, useId } from 'react';
4
+ import { c as classNames } from '../_shared/esm/index-5C0-U8cc.mjs';
5
+ import { u as useMediaQuery } from '../_shared/esm/use-media-query-l6Sou0dd.mjs';
6
+ import { T as ThemeIcon } from '../_shared/esm/ThemeIcon-B0n6cKRb.mjs';
7
+ import { e as ArcSizeBreakpointsXs, A as ArcSizeBreakpointsS, a as ArcSizeBreakpointsM, b as ArcSizeBreakpointsL, c as ArcSizeBreakpointsXl } from '../_shared/esm/index.es-Co1d96HB.mjs';
8
+ import '../_shared/esm/suffix-modifier-B_pO0UkF.mjs';
9
+ import '../_shared/esm/index-Spae4j7j.mjs';
10
+ import '../_shared/esm/filter-attrs-v_SweZXP.mjs';
11
+ import '../_shared/esm/Surface-C69KVzkY.mjs';
12
+
13
+ const defaultOptions$2 = {
14
+ active: true,
15
+ breakpoints: {},
16
+ snapped: 'is-snapped',
17
+ inView: 'is-in-view',
18
+ draggable: 'is-draggable',
19
+ dragging: 'is-dragging',
20
+ loop: 'is-loop'
21
+ };
22
+
23
+ function normalizeClassNames(classNames) {
24
+ const normalized = Array.isArray(classNames) ? classNames : [classNames];
25
+ return normalized.filter(Boolean);
26
+ }
27
+ function removeClass(node, classNames) {
28
+ if (!node || !classNames.length) return;
29
+ node.classList.remove(...classNames);
30
+ }
31
+ function addClass(node, classNames) {
32
+ if (!node || !classNames.length) return;
33
+ node.classList.add(...classNames);
34
+ }
35
+
36
+ function ClassNames(userOptions = {}) {
37
+ let options;
38
+ let emblaApi;
39
+ let root;
40
+ let slides;
41
+ let snappedIndexes = [];
42
+ let inViewIndexes = [];
43
+ const selectedEvents = ['select'];
44
+ const draggingEvents = ['pointerDown', 'pointerUp'];
45
+ const inViewEvents = ['slidesInView'];
46
+ const classNames = {
47
+ snapped: [],
48
+ inView: [],
49
+ draggable: [],
50
+ dragging: [],
51
+ loop: []
52
+ };
53
+ function init(emblaApiInstance, optionsHandler) {
54
+ emblaApi = emblaApiInstance;
55
+ const {
56
+ mergeOptions,
57
+ optionsAtMedia
58
+ } = optionsHandler;
59
+ const optionsBase = mergeOptions(defaultOptions$2, ClassNames.globalOptions);
60
+ const allOptions = mergeOptions(optionsBase, userOptions);
61
+ options = optionsAtMedia(allOptions);
62
+ root = emblaApi.rootNode();
63
+ slides = emblaApi.slideNodes();
64
+ const {
65
+ watchDrag,
66
+ loop
67
+ } = emblaApi.internalEngine().options;
68
+ const isDraggable = !!watchDrag;
69
+ if (options.loop && loop) {
70
+ classNames.loop = normalizeClassNames(options.loop);
71
+ addClass(root, classNames.loop);
72
+ }
73
+ if (options.draggable && isDraggable) {
74
+ classNames.draggable = normalizeClassNames(options.draggable);
75
+ addClass(root, classNames.draggable);
76
+ }
77
+ if (options.dragging) {
78
+ classNames.dragging = normalizeClassNames(options.dragging);
79
+ draggingEvents.forEach(evt => emblaApi.on(evt, toggleDraggingClass));
80
+ }
81
+ if (options.snapped) {
82
+ classNames.snapped = normalizeClassNames(options.snapped);
83
+ selectedEvents.forEach(evt => emblaApi.on(evt, toggleSnappedClasses));
84
+ toggleSnappedClasses();
85
+ }
86
+ if (options.inView) {
87
+ classNames.inView = normalizeClassNames(options.inView);
88
+ inViewEvents.forEach(evt => emblaApi.on(evt, toggleInViewClasses));
89
+ toggleInViewClasses();
90
+ }
91
+ }
92
+ function destroy() {
93
+ draggingEvents.forEach(evt => emblaApi.off(evt, toggleDraggingClass));
94
+ selectedEvents.forEach(evt => emblaApi.off(evt, toggleSnappedClasses));
95
+ inViewEvents.forEach(evt => emblaApi.off(evt, toggleInViewClasses));
96
+ removeClass(root, classNames.loop);
97
+ removeClass(root, classNames.draggable);
98
+ removeClass(root, classNames.dragging);
99
+ toggleSlideClasses([], snappedIndexes, classNames.snapped);
100
+ toggleSlideClasses([], inViewIndexes, classNames.inView);
101
+ Object.keys(classNames).forEach(classNameKey => {
102
+ const key = classNameKey;
103
+ classNames[key] = [];
104
+ });
105
+ }
106
+ function toggleDraggingClass(_, evt) {
107
+ const toggleClass = evt === 'pointerDown' ? addClass : removeClass;
108
+ toggleClass(root, classNames.dragging);
109
+ }
110
+ function toggleSlideClasses(addClassIndexes = [], removeClassIndexes = [], classNames) {
111
+ const removeClassSlides = removeClassIndexes.map(index => slides[index]);
112
+ const addClassSlides = addClassIndexes.map(index => slides[index]);
113
+ removeClassSlides.forEach(slide => removeClass(slide, classNames));
114
+ addClassSlides.forEach(slide => addClass(slide, classNames));
115
+ return addClassIndexes;
116
+ }
117
+ function toggleSnappedClasses() {
118
+ const {
119
+ slideRegistry
120
+ } = emblaApi.internalEngine();
121
+ const newSnappedIndexes = slideRegistry[emblaApi.selectedScrollSnap()];
122
+ snappedIndexes = toggleSlideClasses(newSnappedIndexes, snappedIndexes, classNames.snapped);
123
+ }
124
+ function toggleInViewClasses() {
125
+ const newInViewIndexes = emblaApi.slidesInView();
126
+ inViewIndexes = toggleSlideClasses(newInViewIndexes, inViewIndexes, classNames.inView);
127
+ }
128
+ const self = {
129
+ name: 'classNames',
130
+ options: userOptions,
131
+ init,
132
+ destroy
133
+ };
134
+ return self;
135
+ }
136
+ ClassNames.globalOptions = undefined;
137
+
138
+ function isObject$1(subject) {
139
+ return Object.prototype.toString.call(subject) === '[object Object]';
140
+ }
141
+ function isRecord(subject) {
142
+ return isObject$1(subject) || Array.isArray(subject);
143
+ }
144
+ function canUseDOM() {
145
+ return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
146
+ }
147
+ function areOptionsEqual(optionsA, optionsB) {
148
+ const optionsAKeys = Object.keys(optionsA);
149
+ const optionsBKeys = Object.keys(optionsB);
150
+ if (optionsAKeys.length !== optionsBKeys.length) return false;
151
+ const breakpointsA = JSON.stringify(Object.keys(optionsA.breakpoints || {}));
152
+ const breakpointsB = JSON.stringify(Object.keys(optionsB.breakpoints || {}));
153
+ if (breakpointsA !== breakpointsB) return false;
154
+ return optionsAKeys.every(key => {
155
+ const valueA = optionsA[key];
156
+ const valueB = optionsB[key];
157
+ if (typeof valueA === 'function') return `${valueA}` === `${valueB}`;
158
+ if (!isRecord(valueA) || !isRecord(valueB)) return valueA === valueB;
159
+ return areOptionsEqual(valueA, valueB);
160
+ });
161
+ }
162
+ function sortAndMapPluginToOptions(plugins) {
163
+ return plugins.concat().sort((a, b) => a.name > b.name ? 1 : -1).map(plugin => plugin.options);
164
+ }
165
+ function arePluginsEqual(pluginsA, pluginsB) {
166
+ if (pluginsA.length !== pluginsB.length) return false;
167
+ const optionsA = sortAndMapPluginToOptions(pluginsA);
168
+ const optionsB = sortAndMapPluginToOptions(pluginsB);
169
+ return optionsA.every((optionA, index) => {
170
+ const optionB = optionsB[index];
171
+ return areOptionsEqual(optionA, optionB);
172
+ });
173
+ }
174
+
175
+ function isNumber(subject) {
176
+ return typeof subject === 'number';
177
+ }
178
+ function isString(subject) {
179
+ return typeof subject === 'string';
180
+ }
181
+ function isBoolean(subject) {
182
+ return typeof subject === 'boolean';
183
+ }
184
+ function isObject(subject) {
185
+ return Object.prototype.toString.call(subject) === '[object Object]';
186
+ }
187
+ function mathAbs(n) {
188
+ return Math.abs(n);
189
+ }
190
+ function mathSign(n) {
191
+ return Math.sign(n);
192
+ }
193
+ function deltaAbs(valueB, valueA) {
194
+ return mathAbs(valueB - valueA);
195
+ }
196
+ function factorAbs(valueB, valueA) {
197
+ if (valueB === 0 || valueA === 0) return 0;
198
+ if (mathAbs(valueB) <= mathAbs(valueA)) return 0;
199
+ const diff = deltaAbs(mathAbs(valueB), mathAbs(valueA));
200
+ return mathAbs(diff / valueB);
201
+ }
202
+ function arrayKeys(array) {
203
+ return objectKeys(array).map(Number);
204
+ }
205
+ function arrayLast(array) {
206
+ return array[arrayLastIndex(array)];
207
+ }
208
+ function arrayLastIndex(array) {
209
+ return Math.max(0, array.length - 1);
210
+ }
211
+ function arrayIsLastIndex(array, index) {
212
+ return index === arrayLastIndex(array);
213
+ }
214
+ function arrayFromNumber(n, startAt = 0) {
215
+ return Array.from(Array(n), (_, i) => startAt + i);
216
+ }
217
+ function objectKeys(object) {
218
+ return Object.keys(object);
219
+ }
220
+ function objectsMergeDeep(objectA, objectB) {
221
+ return [objectA, objectB].reduce((mergedObjects, currentObject) => {
222
+ objectKeys(currentObject).forEach(key => {
223
+ const valueA = mergedObjects[key];
224
+ const valueB = currentObject[key];
225
+ const areObjects = isObject(valueA) && isObject(valueB);
226
+ mergedObjects[key] = areObjects ? objectsMergeDeep(valueA, valueB) : valueB;
227
+ });
228
+ return mergedObjects;
229
+ }, {});
230
+ }
231
+ function isMouseEvent(evt, ownerWindow) {
232
+ return typeof ownerWindow.MouseEvent !== 'undefined' && evt instanceof ownerWindow.MouseEvent;
233
+ }
234
+
235
+ function Alignment(align, viewSize) {
236
+ const predefined = {
237
+ start,
238
+ center,
239
+ end
240
+ };
241
+ function start() {
242
+ return 0;
243
+ }
244
+ function center(n) {
245
+ return end(n) / 2;
246
+ }
247
+ function end(n) {
248
+ return viewSize - n;
249
+ }
250
+ function measure(n, index) {
251
+ if (isString(align)) return predefined[align](n);
252
+ return align(viewSize, n, index);
253
+ }
254
+ const self = {
255
+ measure
256
+ };
257
+ return self;
258
+ }
259
+
260
+ function EventStore() {
261
+ let listeners = [];
262
+ function add(node, type, handler, options = {
263
+ passive: true
264
+ }) {
265
+ let removeListener;
266
+ if ('addEventListener' in node) {
267
+ node.addEventListener(type, handler, options);
268
+ removeListener = () => node.removeEventListener(type, handler, options);
269
+ } else {
270
+ const legacyMediaQueryList = node;
271
+ legacyMediaQueryList.addListener(handler);
272
+ removeListener = () => legacyMediaQueryList.removeListener(handler);
273
+ }
274
+ listeners.push(removeListener);
275
+ return self;
276
+ }
277
+ function clear() {
278
+ listeners = listeners.filter(remove => remove());
279
+ }
280
+ const self = {
281
+ add,
282
+ clear
283
+ };
284
+ return self;
285
+ }
286
+
287
+ function Animations(ownerDocument, ownerWindow, update, render) {
288
+ const documentVisibleHandler = EventStore();
289
+ const timeStep = 1000 / 60;
290
+ let lastTimeStamp = null;
291
+ let lag = 0;
292
+ let animationFrame = 0;
293
+ function init() {
294
+ documentVisibleHandler.add(ownerDocument, 'visibilitychange', () => {
295
+ if (ownerDocument.hidden) reset();
296
+ });
297
+ }
298
+ function destroy() {
299
+ stop();
300
+ documentVisibleHandler.clear();
301
+ }
302
+ function animate(timeStamp) {
303
+ if (!animationFrame) return;
304
+ if (!lastTimeStamp) lastTimeStamp = timeStamp;
305
+ const elapsed = timeStamp - lastTimeStamp;
306
+ lastTimeStamp = timeStamp;
307
+ lag += elapsed;
308
+ while (lag >= timeStep) {
309
+ update(timeStep);
310
+ lag -= timeStep;
311
+ }
312
+ const lagOffset = lag / timeStep;
313
+ render(lagOffset);
314
+ if (animationFrame) ownerWindow.requestAnimationFrame(animate);
315
+ }
316
+ function start() {
317
+ if (animationFrame) return;
318
+ animationFrame = ownerWindow.requestAnimationFrame(animate);
319
+ }
320
+ function stop() {
321
+ ownerWindow.cancelAnimationFrame(animationFrame);
322
+ lastTimeStamp = null;
323
+ lag = 0;
324
+ animationFrame = 0;
325
+ }
326
+ function reset() {
327
+ lastTimeStamp = null;
328
+ lag = 0;
329
+ }
330
+ const self = {
331
+ init,
332
+ destroy,
333
+ start,
334
+ stop,
335
+ update: () => update(timeStep),
336
+ render
337
+ };
338
+ return self;
339
+ }
340
+
341
+ function Axis(axis, contentDirection) {
342
+ const isRightToLeft = contentDirection === 'rtl';
343
+ const isVertical = axis === 'y';
344
+ const scroll = isVertical ? 'y' : 'x';
345
+ const cross = isVertical ? 'x' : 'y';
346
+ const sign = !isVertical && isRightToLeft ? -1 : 1;
347
+ const startEdge = getStartEdge();
348
+ const endEdge = getEndEdge();
349
+ function measureSize(nodeRect) {
350
+ const {
351
+ height,
352
+ width
353
+ } = nodeRect;
354
+ return isVertical ? height : width;
355
+ }
356
+ function getStartEdge() {
357
+ if (isVertical) return 'top';
358
+ return isRightToLeft ? 'right' : 'left';
359
+ }
360
+ function getEndEdge() {
361
+ if (isVertical) return 'bottom';
362
+ return isRightToLeft ? 'left' : 'right';
363
+ }
364
+ function direction(n) {
365
+ return n * sign;
366
+ }
367
+ const self = {
368
+ scroll,
369
+ cross,
370
+ startEdge,
371
+ endEdge,
372
+ measureSize,
373
+ direction
374
+ };
375
+ return self;
376
+ }
377
+
378
+ function Limit(min = 0, max = 0) {
379
+ const length = mathAbs(min - max);
380
+ function reachedMin(n) {
381
+ return n < min;
382
+ }
383
+ function reachedMax(n) {
384
+ return n > max;
385
+ }
386
+ function reachedAny(n) {
387
+ return reachedMin(n) || reachedMax(n);
388
+ }
389
+ function constrain(n) {
390
+ if (!reachedAny(n)) return n;
391
+ return reachedMin(n) ? min : max;
392
+ }
393
+ function removeOffset(n) {
394
+ if (!length) return n;
395
+ return n - length * Math.ceil((n - max) / length);
396
+ }
397
+ const self = {
398
+ length,
399
+ max,
400
+ min,
401
+ constrain,
402
+ reachedAny,
403
+ reachedMax,
404
+ reachedMin,
405
+ removeOffset
406
+ };
407
+ return self;
408
+ }
409
+
410
+ function Counter(max, start, loop) {
411
+ const {
412
+ constrain
413
+ } = Limit(0, max);
414
+ const loopEnd = max + 1;
415
+ let counter = withinLimit(start);
416
+ function withinLimit(n) {
417
+ return !loop ? constrain(n) : mathAbs((loopEnd + n) % loopEnd);
418
+ }
419
+ function get() {
420
+ return counter;
421
+ }
422
+ function set(n) {
423
+ counter = withinLimit(n);
424
+ return self;
425
+ }
426
+ function add(n) {
427
+ return clone().set(get() + n);
428
+ }
429
+ function clone() {
430
+ return Counter(max, get(), loop);
431
+ }
432
+ const self = {
433
+ get,
434
+ set,
435
+ add,
436
+ clone
437
+ };
438
+ return self;
439
+ }
440
+
441
+ function DragHandler(axis, rootNode, ownerDocument, ownerWindow, target, dragTracker, location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, baseFriction, watchDrag) {
442
+ const {
443
+ cross: crossAxis,
444
+ direction
445
+ } = axis;
446
+ const focusNodes = ['INPUT', 'SELECT', 'TEXTAREA'];
447
+ const nonPassiveEvent = {
448
+ passive: false
449
+ };
450
+ const initEvents = EventStore();
451
+ const dragEvents = EventStore();
452
+ const goToNextThreshold = Limit(50, 225).constrain(percentOfView.measure(20));
453
+ const snapForceBoost = {
454
+ mouse: 300,
455
+ touch: 400
456
+ };
457
+ const freeForceBoost = {
458
+ mouse: 500,
459
+ touch: 600
460
+ };
461
+ const baseSpeed = dragFree ? 43 : 25;
462
+ let isMoving = false;
463
+ let startScroll = 0;
464
+ let startCross = 0;
465
+ let pointerIsDown = false;
466
+ let preventScroll = false;
467
+ let preventClick = false;
468
+ let isMouse = false;
469
+ function init(emblaApi) {
470
+ if (!watchDrag) return;
471
+ function downIfAllowed(evt) {
472
+ if (isBoolean(watchDrag) || watchDrag(emblaApi, evt)) down(evt);
473
+ }
474
+ const node = rootNode;
475
+ initEvents.add(node, 'dragstart', evt => evt.preventDefault(), nonPassiveEvent).add(node, 'touchmove', () => undefined, nonPassiveEvent).add(node, 'touchend', () => undefined).add(node, 'touchstart', downIfAllowed).add(node, 'mousedown', downIfAllowed).add(node, 'touchcancel', up).add(node, 'contextmenu', up).add(node, 'click', click, true);
476
+ }
477
+ function destroy() {
478
+ initEvents.clear();
479
+ dragEvents.clear();
480
+ }
481
+ function addDragEvents() {
482
+ const node = isMouse ? ownerDocument : rootNode;
483
+ dragEvents.add(node, 'touchmove', move, nonPassiveEvent).add(node, 'touchend', up).add(node, 'mousemove', move, nonPassiveEvent).add(node, 'mouseup', up);
484
+ }
485
+ function isFocusNode(node) {
486
+ const nodeName = node.nodeName || '';
487
+ return focusNodes.includes(nodeName);
488
+ }
489
+ function forceBoost() {
490
+ const boost = dragFree ? freeForceBoost : snapForceBoost;
491
+ const type = isMouse ? 'mouse' : 'touch';
492
+ return boost[type];
493
+ }
494
+ function allowedForce(force, targetChanged) {
495
+ const next = index.add(mathSign(force) * -1);
496
+ const baseForce = scrollTarget.byDistance(force, !dragFree).distance;
497
+ if (dragFree || mathAbs(force) < goToNextThreshold) return baseForce;
498
+ if (skipSnaps && targetChanged) return baseForce * 0.5;
499
+ return scrollTarget.byIndex(next.get(), 0).distance;
500
+ }
501
+ function down(evt) {
502
+ const isMouseEvt = isMouseEvent(evt, ownerWindow);
503
+ isMouse = isMouseEvt;
504
+ preventClick = dragFree && isMouseEvt && !evt.buttons && isMoving;
505
+ isMoving = deltaAbs(target.get(), location.get()) >= 2;
506
+ if (isMouseEvt && evt.button !== 0) return;
507
+ if (isFocusNode(evt.target)) return;
508
+ pointerIsDown = true;
509
+ dragTracker.pointerDown(evt);
510
+ scrollBody.useFriction(0).useDuration(0);
511
+ target.set(location);
512
+ addDragEvents();
513
+ startScroll = dragTracker.readPoint(evt);
514
+ startCross = dragTracker.readPoint(evt, crossAxis);
515
+ eventHandler.emit('pointerDown');
516
+ }
517
+ function move(evt) {
518
+ const isTouchEvt = !isMouseEvent(evt, ownerWindow);
519
+ if (isTouchEvt && evt.touches.length >= 2) return up(evt);
520
+ const lastScroll = dragTracker.readPoint(evt);
521
+ const lastCross = dragTracker.readPoint(evt, crossAxis);
522
+ const diffScroll = deltaAbs(lastScroll, startScroll);
523
+ const diffCross = deltaAbs(lastCross, startCross);
524
+ if (!preventScroll && !isMouse) {
525
+ if (!evt.cancelable) return up(evt);
526
+ preventScroll = diffScroll > diffCross;
527
+ if (!preventScroll) return up(evt);
528
+ }
529
+ const diff = dragTracker.pointerMove(evt);
530
+ if (diffScroll > dragThreshold) preventClick = true;
531
+ scrollBody.useFriction(0.3).useDuration(0.75);
532
+ animation.start();
533
+ target.add(direction(diff));
534
+ evt.preventDefault();
535
+ }
536
+ function up(evt) {
537
+ const currentLocation = scrollTarget.byDistance(0, false);
538
+ const targetChanged = currentLocation.index !== index.get();
539
+ const rawForce = dragTracker.pointerUp(evt) * forceBoost();
540
+ const force = allowedForce(direction(rawForce), targetChanged);
541
+ const forceFactor = factorAbs(rawForce, force);
542
+ const speed = baseSpeed - 10 * forceFactor;
543
+ const friction = baseFriction + forceFactor / 50;
544
+ preventScroll = false;
545
+ pointerIsDown = false;
546
+ dragEvents.clear();
547
+ scrollBody.useDuration(speed).useFriction(friction);
548
+ scrollTo.distance(force, !dragFree);
549
+ isMouse = false;
550
+ eventHandler.emit('pointerUp');
551
+ }
552
+ function click(evt) {
553
+ if (preventClick) {
554
+ evt.stopPropagation();
555
+ evt.preventDefault();
556
+ preventClick = false;
557
+ }
558
+ }
559
+ function pointerDown() {
560
+ return pointerIsDown;
561
+ }
562
+ const self = {
563
+ init,
564
+ destroy,
565
+ pointerDown
566
+ };
567
+ return self;
568
+ }
569
+
570
+ function DragTracker(axis, ownerWindow) {
571
+ const logInterval = 170;
572
+ let startEvent;
573
+ let lastEvent;
574
+ function readTime(evt) {
575
+ return evt.timeStamp;
576
+ }
577
+ function readPoint(evt, evtAxis) {
578
+ const property = evtAxis || axis.scroll;
579
+ const coord = `client${property === 'x' ? 'X' : 'Y'}`;
580
+ return (isMouseEvent(evt, ownerWindow) ? evt : evt.touches[0])[coord];
581
+ }
582
+ function pointerDown(evt) {
583
+ startEvent = evt;
584
+ lastEvent = evt;
585
+ return readPoint(evt);
586
+ }
587
+ function pointerMove(evt) {
588
+ const diff = readPoint(evt) - readPoint(lastEvent);
589
+ const expired = readTime(evt) - readTime(startEvent) > logInterval;
590
+ lastEvent = evt;
591
+ if (expired) startEvent = evt;
592
+ return diff;
593
+ }
594
+ function pointerUp(evt) {
595
+ if (!startEvent || !lastEvent) return 0;
596
+ const diffDrag = readPoint(lastEvent) - readPoint(startEvent);
597
+ const diffTime = readTime(evt) - readTime(startEvent);
598
+ const expired = readTime(evt) - readTime(lastEvent) > logInterval;
599
+ const force = diffDrag / diffTime;
600
+ const isFlick = diffTime && !expired && mathAbs(force) > 0.1;
601
+ return isFlick ? force : 0;
602
+ }
603
+ const self = {
604
+ pointerDown,
605
+ pointerMove,
606
+ pointerUp,
607
+ readPoint
608
+ };
609
+ return self;
610
+ }
611
+
612
+ function NodeRects() {
613
+ function measure(node) {
614
+ const {
615
+ offsetTop,
616
+ offsetLeft,
617
+ offsetWidth,
618
+ offsetHeight
619
+ } = node;
620
+ const offset = {
621
+ top: offsetTop,
622
+ right: offsetLeft + offsetWidth,
623
+ bottom: offsetTop + offsetHeight,
624
+ left: offsetLeft,
625
+ width: offsetWidth,
626
+ height: offsetHeight
627
+ };
628
+ return offset;
629
+ }
630
+ const self = {
631
+ measure
632
+ };
633
+ return self;
634
+ }
635
+
636
+ function PercentOfView(viewSize) {
637
+ function measure(n) {
638
+ return viewSize * (n / 100);
639
+ }
640
+ const self = {
641
+ measure
642
+ };
643
+ return self;
644
+ }
645
+
646
+ function ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects) {
647
+ const observeNodes = [container].concat(slides);
648
+ let resizeObserver;
649
+ let containerSize;
650
+ let slideSizes = [];
651
+ let destroyed = false;
652
+ function readSize(node) {
653
+ return axis.measureSize(nodeRects.measure(node));
654
+ }
655
+ function init(emblaApi) {
656
+ if (!watchResize) return;
657
+ containerSize = readSize(container);
658
+ slideSizes = slides.map(readSize);
659
+ function defaultCallback(entries) {
660
+ for (const entry of entries) {
661
+ if (destroyed) return;
662
+ const isContainer = entry.target === container;
663
+ const slideIndex = slides.indexOf(entry.target);
664
+ const lastSize = isContainer ? containerSize : slideSizes[slideIndex];
665
+ const newSize = readSize(isContainer ? container : slides[slideIndex]);
666
+ const diffSize = mathAbs(newSize - lastSize);
667
+ if (diffSize >= 0.5) {
668
+ emblaApi.reInit();
669
+ eventHandler.emit('resize');
670
+ break;
671
+ }
672
+ }
673
+ }
674
+ resizeObserver = new ResizeObserver(entries => {
675
+ if (isBoolean(watchResize) || watchResize(emblaApi, entries)) {
676
+ defaultCallback(entries);
677
+ }
678
+ });
679
+ ownerWindow.requestAnimationFrame(() => {
680
+ observeNodes.forEach(node => resizeObserver.observe(node));
681
+ });
682
+ }
683
+ function destroy() {
684
+ destroyed = true;
685
+ if (resizeObserver) resizeObserver.disconnect();
686
+ }
687
+ const self = {
688
+ init,
689
+ destroy
690
+ };
691
+ return self;
692
+ }
693
+
694
+ function ScrollBody(location, offsetLocation, previousLocation, target, baseDuration, baseFriction) {
695
+ let bodyVelocity = 0;
696
+ let scrollDirection = 0;
697
+ let scrollDuration = baseDuration;
698
+ let scrollFriction = baseFriction;
699
+ let rawLocation = location.get();
700
+ let rawLocationPrevious = 0;
701
+ function seek(timeStep) {
702
+ const fixedDeltaTimeSeconds = timeStep / 1000;
703
+ const duration = scrollDuration * fixedDeltaTimeSeconds;
704
+ const diff = target.get() - location.get();
705
+ const isInstant = !scrollDuration;
706
+ let directionDiff = 0;
707
+ if (isInstant) {
708
+ bodyVelocity = 0;
709
+ previousLocation.set(target);
710
+ location.set(target);
711
+ directionDiff = diff;
712
+ } else {
713
+ previousLocation.set(location);
714
+ bodyVelocity += diff / duration;
715
+ bodyVelocity *= scrollFriction;
716
+ rawLocation += bodyVelocity;
717
+ location.add(bodyVelocity * fixedDeltaTimeSeconds);
718
+ directionDiff = rawLocation - rawLocationPrevious;
719
+ }
720
+ scrollDirection = mathSign(directionDiff);
721
+ rawLocationPrevious = rawLocation;
722
+ return self;
723
+ }
724
+ function settled() {
725
+ const diff = target.get() - offsetLocation.get();
726
+ return mathAbs(diff) < 0.001;
727
+ }
728
+ function duration() {
729
+ return scrollDuration;
730
+ }
731
+ function direction() {
732
+ return scrollDirection;
733
+ }
734
+ function velocity() {
735
+ return bodyVelocity;
736
+ }
737
+ function useBaseDuration() {
738
+ return useDuration(baseDuration);
739
+ }
740
+ function useBaseFriction() {
741
+ return useFriction(baseFriction);
742
+ }
743
+ function useDuration(n) {
744
+ scrollDuration = n;
745
+ return self;
746
+ }
747
+ function useFriction(n) {
748
+ scrollFriction = n;
749
+ return self;
750
+ }
751
+ const self = {
752
+ direction,
753
+ duration,
754
+ velocity,
755
+ seek,
756
+ settled,
757
+ useBaseFriction,
758
+ useBaseDuration,
759
+ useFriction,
760
+ useDuration
761
+ };
762
+ return self;
763
+ }
764
+
765
+ function ScrollBounds(limit, location, target, scrollBody, percentOfView) {
766
+ const pullBackThreshold = percentOfView.measure(10);
767
+ const edgeOffsetTolerance = percentOfView.measure(50);
768
+ const frictionLimit = Limit(0.1, 0.99);
769
+ let disabled = false;
770
+ function shouldConstrain() {
771
+ if (disabled) return false;
772
+ if (!limit.reachedAny(target.get())) return false;
773
+ if (!limit.reachedAny(location.get())) return false;
774
+ return true;
775
+ }
776
+ function constrain(pointerDown) {
777
+ if (!shouldConstrain()) return;
778
+ const edge = limit.reachedMin(location.get()) ? 'min' : 'max';
779
+ const diffToEdge = mathAbs(limit[edge] - location.get());
780
+ const diffToTarget = target.get() - location.get();
781
+ const friction = frictionLimit.constrain(diffToEdge / edgeOffsetTolerance);
782
+ target.subtract(diffToTarget * friction);
783
+ if (!pointerDown && mathAbs(diffToTarget) < pullBackThreshold) {
784
+ target.set(limit.constrain(target.get()));
785
+ scrollBody.useDuration(25).useBaseFriction();
786
+ }
787
+ }
788
+ function toggleActive(active) {
789
+ disabled = !active;
790
+ }
791
+ const self = {
792
+ shouldConstrain,
793
+ constrain,
794
+ toggleActive
795
+ };
796
+ return self;
797
+ }
798
+
799
+ function ScrollContain(viewSize, contentSize, snapsAligned, containScroll, pixelTolerance) {
800
+ const scrollBounds = Limit(-contentSize + viewSize, 0);
801
+ const snapsBounded = measureBounded();
802
+ const scrollContainLimit = findScrollContainLimit();
803
+ const snapsContained = measureContained();
804
+ function usePixelTolerance(bound, snap) {
805
+ return deltaAbs(bound, snap) < 1;
806
+ }
807
+ function findScrollContainLimit() {
808
+ const startSnap = snapsBounded[0];
809
+ const endSnap = arrayLast(snapsBounded);
810
+ const min = snapsBounded.lastIndexOf(startSnap);
811
+ const max = snapsBounded.indexOf(endSnap) + 1;
812
+ return Limit(min, max);
813
+ }
814
+ function measureBounded() {
815
+ return snapsAligned.map((snapAligned, index) => {
816
+ const {
817
+ min,
818
+ max
819
+ } = scrollBounds;
820
+ const snap = scrollBounds.constrain(snapAligned);
821
+ const isFirst = !index;
822
+ const isLast = arrayIsLastIndex(snapsAligned, index);
823
+ if (isFirst) return max;
824
+ if (isLast) return min;
825
+ if (usePixelTolerance(min, snap)) return min;
826
+ if (usePixelTolerance(max, snap)) return max;
827
+ return snap;
828
+ }).map(scrollBound => parseFloat(scrollBound.toFixed(3)));
829
+ }
830
+ function measureContained() {
831
+ if (contentSize <= viewSize + pixelTolerance) return [scrollBounds.max];
832
+ if (containScroll === 'keepSnaps') return snapsBounded;
833
+ const {
834
+ min,
835
+ max
836
+ } = scrollContainLimit;
837
+ return snapsBounded.slice(min, max);
838
+ }
839
+ const self = {
840
+ snapsContained,
841
+ scrollContainLimit
842
+ };
843
+ return self;
844
+ }
845
+
846
+ function ScrollLimit(contentSize, scrollSnaps, loop) {
847
+ const max = scrollSnaps[0];
848
+ const min = loop ? max - contentSize : arrayLast(scrollSnaps);
849
+ const limit = Limit(min, max);
850
+ const self = {
851
+ limit
852
+ };
853
+ return self;
854
+ }
855
+
856
+ function ScrollLooper(contentSize, limit, location, vectors) {
857
+ const jointSafety = 0.1;
858
+ const min = limit.min + jointSafety;
859
+ const max = limit.max + jointSafety;
860
+ const {
861
+ reachedMin,
862
+ reachedMax
863
+ } = Limit(min, max);
864
+ function shouldLoop(direction) {
865
+ if (direction === 1) return reachedMax(location.get());
866
+ if (direction === -1) return reachedMin(location.get());
867
+ return false;
868
+ }
869
+ function loop(direction) {
870
+ if (!shouldLoop(direction)) return;
871
+ const loopDistance = contentSize * (direction * -1);
872
+ vectors.forEach(v => v.add(loopDistance));
873
+ }
874
+ const self = {
875
+ loop
876
+ };
877
+ return self;
878
+ }
879
+
880
+ function ScrollProgress(limit) {
881
+ const {
882
+ max,
883
+ length
884
+ } = limit;
885
+ function get(n) {
886
+ const currentLocation = n - max;
887
+ return length ? currentLocation / -length : 0;
888
+ }
889
+ const self = {
890
+ get
891
+ };
892
+ return self;
893
+ }
894
+
895
+ function ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll) {
896
+ const {
897
+ startEdge,
898
+ endEdge
899
+ } = axis;
900
+ const {
901
+ groupSlides
902
+ } = slidesToScroll;
903
+ const alignments = measureSizes().map(alignment.measure);
904
+ const snaps = measureUnaligned();
905
+ const snapsAligned = measureAligned();
906
+ function measureSizes() {
907
+ return groupSlides(slideRects).map(rects => arrayLast(rects)[endEdge] - rects[0][startEdge]).map(mathAbs);
908
+ }
909
+ function measureUnaligned() {
910
+ return slideRects.map(rect => containerRect[startEdge] - rect[startEdge]).map(snap => -mathAbs(snap));
911
+ }
912
+ function measureAligned() {
913
+ return groupSlides(snaps).map(g => g[0]).map((snap, index) => snap + alignments[index]);
914
+ }
915
+ const self = {
916
+ snaps,
917
+ snapsAligned
918
+ };
919
+ return self;
920
+ }
921
+
922
+ function SlideRegistry(containSnaps, containScroll, scrollSnaps, scrollContainLimit, slidesToScroll, slideIndexes) {
923
+ const {
924
+ groupSlides
925
+ } = slidesToScroll;
926
+ const {
927
+ min,
928
+ max
929
+ } = scrollContainLimit;
930
+ const slideRegistry = createSlideRegistry();
931
+ function createSlideRegistry() {
932
+ const groupedSlideIndexes = groupSlides(slideIndexes);
933
+ const doNotContain = !containSnaps || containScroll === 'keepSnaps';
934
+ if (scrollSnaps.length === 1) return [slideIndexes];
935
+ if (doNotContain) return groupedSlideIndexes;
936
+ return groupedSlideIndexes.slice(min, max).map((group, index, groups) => {
937
+ const isFirst = !index;
938
+ const isLast = arrayIsLastIndex(groups, index);
939
+ if (isFirst) {
940
+ const range = arrayLast(groups[0]) + 1;
941
+ return arrayFromNumber(range);
942
+ }
943
+ if (isLast) {
944
+ const range = arrayLastIndex(slideIndexes) - arrayLast(groups)[0] + 1;
945
+ return arrayFromNumber(range, arrayLast(groups)[0]);
946
+ }
947
+ return group;
948
+ });
949
+ }
950
+ const self = {
951
+ slideRegistry
952
+ };
953
+ return self;
954
+ }
955
+
956
+ function ScrollTarget(loop, scrollSnaps, contentSize, limit, targetVector) {
957
+ const {
958
+ reachedAny,
959
+ removeOffset,
960
+ constrain
961
+ } = limit;
962
+ function minDistance(distances) {
963
+ return distances.concat().sort((a, b) => mathAbs(a) - mathAbs(b))[0];
964
+ }
965
+ function findTargetSnap(target) {
966
+ const distance = loop ? removeOffset(target) : constrain(target);
967
+ const ascDiffsToSnaps = scrollSnaps.map((snap, index) => ({
968
+ diff: shortcut(snap - distance, 0),
969
+ index
970
+ })).sort((d1, d2) => mathAbs(d1.diff) - mathAbs(d2.diff));
971
+ const {
972
+ index
973
+ } = ascDiffsToSnaps[0];
974
+ return {
975
+ index,
976
+ distance
977
+ };
978
+ }
979
+ function shortcut(target, direction) {
980
+ const targets = [target, target + contentSize, target - contentSize];
981
+ if (!loop) return target;
982
+ if (!direction) return minDistance(targets);
983
+ const matchingTargets = targets.filter(t => mathSign(t) === direction);
984
+ if (matchingTargets.length) return minDistance(matchingTargets);
985
+ return arrayLast(targets) - contentSize;
986
+ }
987
+ function byIndex(index, direction) {
988
+ const diffToSnap = scrollSnaps[index] - targetVector.get();
989
+ const distance = shortcut(diffToSnap, direction);
990
+ return {
991
+ index,
992
+ distance
993
+ };
994
+ }
995
+ function byDistance(distance, snap) {
996
+ const target = targetVector.get() + distance;
997
+ const {
998
+ index,
999
+ distance: targetSnapDistance
1000
+ } = findTargetSnap(target);
1001
+ const reachedBound = !loop && reachedAny(target);
1002
+ if (!snap || reachedBound) return {
1003
+ index,
1004
+ distance
1005
+ };
1006
+ const diffToSnap = scrollSnaps[index] - targetSnapDistance;
1007
+ const snapDistance = distance + shortcut(diffToSnap, 0);
1008
+ return {
1009
+ index,
1010
+ distance: snapDistance
1011
+ };
1012
+ }
1013
+ const self = {
1014
+ byDistance,
1015
+ byIndex,
1016
+ shortcut
1017
+ };
1018
+ return self;
1019
+ }
1020
+
1021
+ function ScrollTo(animation, indexCurrent, indexPrevious, scrollBody, scrollTarget, targetVector, eventHandler) {
1022
+ function scrollTo(target) {
1023
+ const distanceDiff = target.distance;
1024
+ const indexDiff = target.index !== indexCurrent.get();
1025
+ targetVector.add(distanceDiff);
1026
+ if (distanceDiff) {
1027
+ if (scrollBody.duration()) {
1028
+ animation.start();
1029
+ } else {
1030
+ animation.update();
1031
+ animation.render(1);
1032
+ animation.update();
1033
+ }
1034
+ }
1035
+ if (indexDiff) {
1036
+ indexPrevious.set(indexCurrent.get());
1037
+ indexCurrent.set(target.index);
1038
+ eventHandler.emit('select');
1039
+ }
1040
+ }
1041
+ function distance(n, snap) {
1042
+ const target = scrollTarget.byDistance(n, snap);
1043
+ scrollTo(target);
1044
+ }
1045
+ function index(n, direction) {
1046
+ const targetIndex = indexCurrent.clone().set(n);
1047
+ const target = scrollTarget.byIndex(targetIndex.get(), direction);
1048
+ scrollTo(target);
1049
+ }
1050
+ const self = {
1051
+ distance,
1052
+ index
1053
+ };
1054
+ return self;
1055
+ }
1056
+
1057
+ function SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore, eventHandler, watchFocus) {
1058
+ const focusListenerOptions = {
1059
+ passive: true,
1060
+ capture: true
1061
+ };
1062
+ let lastTabPressTime = 0;
1063
+ function init(emblaApi) {
1064
+ if (!watchFocus) return;
1065
+ function defaultCallback(index) {
1066
+ const nowTime = new Date().getTime();
1067
+ const diffTime = nowTime - lastTabPressTime;
1068
+ if (diffTime > 10) return;
1069
+ eventHandler.emit('slideFocusStart');
1070
+ root.scrollLeft = 0;
1071
+ const group = slideRegistry.findIndex(group => group.includes(index));
1072
+ if (!isNumber(group)) return;
1073
+ scrollBody.useDuration(0);
1074
+ scrollTo.index(group, 0);
1075
+ eventHandler.emit('slideFocus');
1076
+ }
1077
+ eventStore.add(document, 'keydown', registerTabPress, false);
1078
+ slides.forEach((slide, slideIndex) => {
1079
+ eventStore.add(slide, 'focus', evt => {
1080
+ if (isBoolean(watchFocus) || watchFocus(emblaApi, evt)) {
1081
+ defaultCallback(slideIndex);
1082
+ }
1083
+ }, focusListenerOptions);
1084
+ });
1085
+ }
1086
+ function registerTabPress(event) {
1087
+ if (event.code === 'Tab') lastTabPressTime = new Date().getTime();
1088
+ }
1089
+ const self = {
1090
+ init
1091
+ };
1092
+ return self;
1093
+ }
1094
+
1095
+ function Vector1D(initialValue) {
1096
+ let value = initialValue;
1097
+ function get() {
1098
+ return value;
1099
+ }
1100
+ function set(n) {
1101
+ value = normalizeInput(n);
1102
+ }
1103
+ function add(n) {
1104
+ value += normalizeInput(n);
1105
+ }
1106
+ function subtract(n) {
1107
+ value -= normalizeInput(n);
1108
+ }
1109
+ function normalizeInput(n) {
1110
+ return isNumber(n) ? n : n.get();
1111
+ }
1112
+ const self = {
1113
+ get,
1114
+ set,
1115
+ add,
1116
+ subtract
1117
+ };
1118
+ return self;
1119
+ }
1120
+
1121
+ function Translate(axis, container) {
1122
+ const translate = axis.scroll === 'x' ? x : y;
1123
+ const containerStyle = container.style;
1124
+ let disabled = false;
1125
+ function x(n) {
1126
+ return `translate3d(${n}px,0px,0px)`;
1127
+ }
1128
+ function y(n) {
1129
+ return `translate3d(0px,${n}px,0px)`;
1130
+ }
1131
+ function to(target) {
1132
+ if (disabled) return;
1133
+ containerStyle.transform = translate(axis.direction(target));
1134
+ }
1135
+ function toggleActive(active) {
1136
+ disabled = !active;
1137
+ }
1138
+ function clear() {
1139
+ if (disabled) return;
1140
+ containerStyle.transform = '';
1141
+ if (!container.getAttribute('style')) container.removeAttribute('style');
1142
+ }
1143
+ const self = {
1144
+ clear,
1145
+ to,
1146
+ toggleActive
1147
+ };
1148
+ return self;
1149
+ }
1150
+
1151
+ function SlideLooper(axis, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, location, slides) {
1152
+ const roundingSafety = 0.5;
1153
+ const ascItems = arrayKeys(slideSizesWithGaps);
1154
+ const descItems = arrayKeys(slideSizesWithGaps).reverse();
1155
+ const loopPoints = startPoints().concat(endPoints());
1156
+ function removeSlideSizes(indexes, from) {
1157
+ return indexes.reduce((a, i) => {
1158
+ return a - slideSizesWithGaps[i];
1159
+ }, from);
1160
+ }
1161
+ function slidesInGap(indexes, gap) {
1162
+ return indexes.reduce((a, i) => {
1163
+ const remainingGap = removeSlideSizes(a, gap);
1164
+ return remainingGap > 0 ? a.concat([i]) : a;
1165
+ }, []);
1166
+ }
1167
+ function findSlideBounds(offset) {
1168
+ return snaps.map((snap, index) => ({
1169
+ start: snap - slideSizes[index] + roundingSafety + offset,
1170
+ end: snap + viewSize - roundingSafety + offset
1171
+ }));
1172
+ }
1173
+ function findLoopPoints(indexes, offset, isEndEdge) {
1174
+ const slideBounds = findSlideBounds(offset);
1175
+ return indexes.map(index => {
1176
+ const initial = isEndEdge ? 0 : -contentSize;
1177
+ const altered = isEndEdge ? contentSize : 0;
1178
+ const boundEdge = isEndEdge ? 'end' : 'start';
1179
+ const loopPoint = slideBounds[index][boundEdge];
1180
+ return {
1181
+ index,
1182
+ loopPoint,
1183
+ slideLocation: Vector1D(-1),
1184
+ translate: Translate(axis, slides[index]),
1185
+ target: () => location.get() > loopPoint ? initial : altered
1186
+ };
1187
+ });
1188
+ }
1189
+ function startPoints() {
1190
+ const gap = scrollSnaps[0];
1191
+ const indexes = slidesInGap(descItems, gap);
1192
+ return findLoopPoints(indexes, contentSize, false);
1193
+ }
1194
+ function endPoints() {
1195
+ const gap = viewSize - scrollSnaps[0] - 1;
1196
+ const indexes = slidesInGap(ascItems, gap);
1197
+ return findLoopPoints(indexes, -contentSize, true);
1198
+ }
1199
+ function canLoop() {
1200
+ return loopPoints.every(({
1201
+ index
1202
+ }) => {
1203
+ const otherIndexes = ascItems.filter(i => i !== index);
1204
+ return removeSlideSizes(otherIndexes, viewSize) <= 0.1;
1205
+ });
1206
+ }
1207
+ function loop() {
1208
+ loopPoints.forEach(loopPoint => {
1209
+ const {
1210
+ target,
1211
+ translate,
1212
+ slideLocation
1213
+ } = loopPoint;
1214
+ const shiftLocation = target();
1215
+ if (shiftLocation === slideLocation.get()) return;
1216
+ translate.to(shiftLocation);
1217
+ slideLocation.set(shiftLocation);
1218
+ });
1219
+ }
1220
+ function clear() {
1221
+ loopPoints.forEach(loopPoint => loopPoint.translate.clear());
1222
+ }
1223
+ const self = {
1224
+ canLoop,
1225
+ clear,
1226
+ loop,
1227
+ loopPoints
1228
+ };
1229
+ return self;
1230
+ }
1231
+
1232
+ function SlidesHandler(container, eventHandler, watchSlides) {
1233
+ let mutationObserver;
1234
+ let destroyed = false;
1235
+ function init(emblaApi) {
1236
+ if (!watchSlides) return;
1237
+ function defaultCallback(mutations) {
1238
+ for (const mutation of mutations) {
1239
+ if (mutation.type === 'childList') {
1240
+ emblaApi.reInit();
1241
+ eventHandler.emit('slidesChanged');
1242
+ break;
1243
+ }
1244
+ }
1245
+ }
1246
+ mutationObserver = new MutationObserver(mutations => {
1247
+ if (destroyed) return;
1248
+ if (isBoolean(watchSlides) || watchSlides(emblaApi, mutations)) {
1249
+ defaultCallback(mutations);
1250
+ }
1251
+ });
1252
+ mutationObserver.observe(container, {
1253
+ childList: true
1254
+ });
1255
+ }
1256
+ function destroy() {
1257
+ if (mutationObserver) mutationObserver.disconnect();
1258
+ destroyed = true;
1259
+ }
1260
+ const self = {
1261
+ init,
1262
+ destroy
1263
+ };
1264
+ return self;
1265
+ }
1266
+
1267
+ function SlidesInView(container, slides, eventHandler, threshold) {
1268
+ const intersectionEntryMap = {};
1269
+ let inViewCache = null;
1270
+ let notInViewCache = null;
1271
+ let intersectionObserver;
1272
+ let destroyed = false;
1273
+ function init() {
1274
+ intersectionObserver = new IntersectionObserver(entries => {
1275
+ if (destroyed) return;
1276
+ entries.forEach(entry => {
1277
+ const index = slides.indexOf(entry.target);
1278
+ intersectionEntryMap[index] = entry;
1279
+ });
1280
+ inViewCache = null;
1281
+ notInViewCache = null;
1282
+ eventHandler.emit('slidesInView');
1283
+ }, {
1284
+ root: container.parentElement,
1285
+ threshold
1286
+ });
1287
+ slides.forEach(slide => intersectionObserver.observe(slide));
1288
+ }
1289
+ function destroy() {
1290
+ if (intersectionObserver) intersectionObserver.disconnect();
1291
+ destroyed = true;
1292
+ }
1293
+ function createInViewList(inView) {
1294
+ return objectKeys(intersectionEntryMap).reduce((list, slideIndex) => {
1295
+ const index = parseInt(slideIndex);
1296
+ const {
1297
+ isIntersecting
1298
+ } = intersectionEntryMap[index];
1299
+ const inViewMatch = inView && isIntersecting;
1300
+ const notInViewMatch = !inView && !isIntersecting;
1301
+ if (inViewMatch || notInViewMatch) list.push(index);
1302
+ return list;
1303
+ }, []);
1304
+ }
1305
+ function get(inView = true) {
1306
+ if (inView && inViewCache) return inViewCache;
1307
+ if (!inView && notInViewCache) return notInViewCache;
1308
+ const slideIndexes = createInViewList(inView);
1309
+ if (inView) inViewCache = slideIndexes;
1310
+ if (!inView) notInViewCache = slideIndexes;
1311
+ return slideIndexes;
1312
+ }
1313
+ const self = {
1314
+ init,
1315
+ destroy,
1316
+ get
1317
+ };
1318
+ return self;
1319
+ }
1320
+
1321
+ function SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow) {
1322
+ const {
1323
+ measureSize,
1324
+ startEdge,
1325
+ endEdge
1326
+ } = axis;
1327
+ const withEdgeGap = slideRects[0] && readEdgeGap;
1328
+ const startGap = measureStartGap();
1329
+ const endGap = measureEndGap();
1330
+ const slideSizes = slideRects.map(measureSize);
1331
+ const slideSizesWithGaps = measureWithGaps();
1332
+ function measureStartGap() {
1333
+ if (!withEdgeGap) return 0;
1334
+ const slideRect = slideRects[0];
1335
+ return mathAbs(containerRect[startEdge] - slideRect[startEdge]);
1336
+ }
1337
+ function measureEndGap() {
1338
+ if (!withEdgeGap) return 0;
1339
+ const style = ownerWindow.getComputedStyle(arrayLast(slides));
1340
+ return parseFloat(style.getPropertyValue(`margin-${endEdge}`));
1341
+ }
1342
+ function measureWithGaps() {
1343
+ return slideRects.map((rect, index, rects) => {
1344
+ const isFirst = !index;
1345
+ const isLast = arrayIsLastIndex(rects, index);
1346
+ if (isFirst) return slideSizes[index] + startGap;
1347
+ if (isLast) return slideSizes[index] + endGap;
1348
+ return rects[index + 1][startEdge] - rect[startEdge];
1349
+ }).map(mathAbs);
1350
+ }
1351
+ const self = {
1352
+ slideSizes,
1353
+ slideSizesWithGaps,
1354
+ startGap,
1355
+ endGap
1356
+ };
1357
+ return self;
1358
+ }
1359
+
1360
+ function SlidesToScroll(axis, viewSize, slidesToScroll, loop, containerRect, slideRects, startGap, endGap, pixelTolerance) {
1361
+ const {
1362
+ startEdge,
1363
+ endEdge,
1364
+ direction
1365
+ } = axis;
1366
+ const groupByNumber = isNumber(slidesToScroll);
1367
+ function byNumber(array, groupSize) {
1368
+ return arrayKeys(array).filter(i => i % groupSize === 0).map(i => array.slice(i, i + groupSize));
1369
+ }
1370
+ function bySize(array) {
1371
+ if (!array.length) return [];
1372
+ return arrayKeys(array).reduce((groups, rectB, index) => {
1373
+ const rectA = arrayLast(groups) || 0;
1374
+ const isFirst = rectA === 0;
1375
+ const isLast = rectB === arrayLastIndex(array);
1376
+ const edgeA = containerRect[startEdge] - slideRects[rectA][startEdge];
1377
+ const edgeB = containerRect[startEdge] - slideRects[rectB][endEdge];
1378
+ const gapA = !loop && isFirst ? direction(startGap) : 0;
1379
+ const gapB = !loop && isLast ? direction(endGap) : 0;
1380
+ const chunkSize = mathAbs(edgeB - gapB - (edgeA + gapA));
1381
+ if (index && chunkSize > viewSize + pixelTolerance) groups.push(rectB);
1382
+ if (isLast) groups.push(array.length);
1383
+ return groups;
1384
+ }, []).map((currentSize, index, groups) => {
1385
+ const previousSize = Math.max(groups[index - 1] || 0);
1386
+ return array.slice(previousSize, currentSize);
1387
+ });
1388
+ }
1389
+ function groupSlides(array) {
1390
+ return groupByNumber ? byNumber(array, slidesToScroll) : bySize(array);
1391
+ }
1392
+ const self = {
1393
+ groupSlides
1394
+ };
1395
+ return self;
1396
+ }
1397
+
1398
+ function Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler) {
1399
+ // Options
1400
+ const {
1401
+ align,
1402
+ axis: scrollAxis,
1403
+ direction,
1404
+ startIndex,
1405
+ loop,
1406
+ duration,
1407
+ dragFree,
1408
+ dragThreshold,
1409
+ inViewThreshold,
1410
+ slidesToScroll: groupSlides,
1411
+ skipSnaps,
1412
+ containScroll,
1413
+ watchResize,
1414
+ watchSlides,
1415
+ watchDrag,
1416
+ watchFocus
1417
+ } = options;
1418
+ // Measurements
1419
+ const pixelTolerance = 2;
1420
+ const nodeRects = NodeRects();
1421
+ const containerRect = nodeRects.measure(container);
1422
+ const slideRects = slides.map(nodeRects.measure);
1423
+ const axis = Axis(scrollAxis, direction);
1424
+ const viewSize = axis.measureSize(containerRect);
1425
+ const percentOfView = PercentOfView(viewSize);
1426
+ const alignment = Alignment(align, viewSize);
1427
+ const containSnaps = !loop && !!containScroll;
1428
+ const readEdgeGap = loop || !!containScroll;
1429
+ const {
1430
+ slideSizes,
1431
+ slideSizesWithGaps,
1432
+ startGap,
1433
+ endGap
1434
+ } = SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow);
1435
+ const slidesToScroll = SlidesToScroll(axis, viewSize, groupSlides, loop, containerRect, slideRects, startGap, endGap, pixelTolerance);
1436
+ const {
1437
+ snaps,
1438
+ snapsAligned
1439
+ } = ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll);
1440
+ const contentSize = -arrayLast(snaps) + arrayLast(slideSizesWithGaps);
1441
+ const {
1442
+ snapsContained,
1443
+ scrollContainLimit
1444
+ } = ScrollContain(viewSize, contentSize, snapsAligned, containScroll, pixelTolerance);
1445
+ const scrollSnaps = containSnaps ? snapsContained : snapsAligned;
1446
+ const {
1447
+ limit
1448
+ } = ScrollLimit(contentSize, scrollSnaps, loop);
1449
+ // Indexes
1450
+ const index = Counter(arrayLastIndex(scrollSnaps), startIndex, loop);
1451
+ const indexPrevious = index.clone();
1452
+ const slideIndexes = arrayKeys(slides);
1453
+ // Animation
1454
+ const update = ({
1455
+ dragHandler,
1456
+ scrollBody,
1457
+ scrollBounds,
1458
+ options: {
1459
+ loop
1460
+ }
1461
+ }, timeStep) => {
1462
+ if (!loop) scrollBounds.constrain(dragHandler.pointerDown());
1463
+ scrollBody.seek(timeStep);
1464
+ };
1465
+ const render = ({
1466
+ scrollBody,
1467
+ translate,
1468
+ location,
1469
+ offsetLocation,
1470
+ scrollLooper,
1471
+ slideLooper,
1472
+ dragHandler,
1473
+ animation,
1474
+ eventHandler,
1475
+ scrollBounds,
1476
+ options: {
1477
+ loop
1478
+ }
1479
+ }, lagOffset) => {
1480
+ const shouldSettle = scrollBody.settled();
1481
+ const withinBounds = !scrollBounds.shouldConstrain();
1482
+ const hasSettled = loop ? shouldSettle : shouldSettle && withinBounds;
1483
+ if (hasSettled && !dragHandler.pointerDown()) {
1484
+ animation.stop();
1485
+ eventHandler.emit('settle');
1486
+ }
1487
+ if (!hasSettled) eventHandler.emit('scroll');
1488
+ const interpolatedLocation = location.get() * lagOffset + previousLocation.get() * (1 - lagOffset);
1489
+ offsetLocation.set(interpolatedLocation);
1490
+ if (loop) {
1491
+ scrollLooper.loop(scrollBody.direction());
1492
+ slideLooper.loop();
1493
+ }
1494
+ translate.to(offsetLocation.get());
1495
+ };
1496
+ const animation = Animations(ownerDocument, ownerWindow, timeStep => update(engine, timeStep), lagOffset => render(engine, lagOffset));
1497
+ // Shared
1498
+ const friction = 0.68;
1499
+ const startLocation = scrollSnaps[index.get()];
1500
+ const location = Vector1D(startLocation);
1501
+ const previousLocation = Vector1D(startLocation);
1502
+ const offsetLocation = Vector1D(startLocation);
1503
+ const target = Vector1D(startLocation);
1504
+ const scrollBody = ScrollBody(location, offsetLocation, previousLocation, target, duration, friction);
1505
+ const scrollTarget = ScrollTarget(loop, scrollSnaps, contentSize, limit, target);
1506
+ const scrollTo = ScrollTo(animation, index, indexPrevious, scrollBody, scrollTarget, target, eventHandler);
1507
+ const scrollProgress = ScrollProgress(limit);
1508
+ const eventStore = EventStore();
1509
+ const slidesInView = SlidesInView(container, slides, eventHandler, inViewThreshold);
1510
+ const {
1511
+ slideRegistry
1512
+ } = SlideRegistry(containSnaps, containScroll, scrollSnaps, scrollContainLimit, slidesToScroll, slideIndexes);
1513
+ const slideFocus = SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore, eventHandler, watchFocus);
1514
+ // Engine
1515
+ const engine = {
1516
+ ownerDocument,
1517
+ ownerWindow,
1518
+ eventHandler,
1519
+ containerRect,
1520
+ slideRects,
1521
+ animation,
1522
+ axis,
1523
+ dragHandler: DragHandler(axis, root, ownerDocument, ownerWindow, target, DragTracker(axis, ownerWindow), location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, friction, watchDrag),
1524
+ eventStore,
1525
+ percentOfView,
1526
+ index,
1527
+ indexPrevious,
1528
+ limit,
1529
+ location,
1530
+ offsetLocation,
1531
+ previousLocation,
1532
+ options,
1533
+ resizeHandler: ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects),
1534
+ scrollBody,
1535
+ scrollBounds: ScrollBounds(limit, offsetLocation, target, scrollBody, percentOfView),
1536
+ scrollLooper: ScrollLooper(contentSize, limit, offsetLocation, [location, offsetLocation, previousLocation, target]),
1537
+ scrollProgress,
1538
+ scrollSnapList: scrollSnaps.map(scrollProgress.get),
1539
+ scrollSnaps,
1540
+ scrollTarget,
1541
+ scrollTo,
1542
+ slideLooper: SlideLooper(axis, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, offsetLocation, slides),
1543
+ slideFocus,
1544
+ slidesHandler: SlidesHandler(container, eventHandler, watchSlides),
1545
+ slidesInView,
1546
+ slideIndexes,
1547
+ slideRegistry,
1548
+ slidesToScroll,
1549
+ target,
1550
+ translate: Translate(axis, container)
1551
+ };
1552
+ return engine;
1553
+ }
1554
+
1555
+ function EventHandler() {
1556
+ let listeners = {};
1557
+ let api;
1558
+ function init(emblaApi) {
1559
+ api = emblaApi;
1560
+ }
1561
+ function getListeners(evt) {
1562
+ return listeners[evt] || [];
1563
+ }
1564
+ function emit(evt) {
1565
+ getListeners(evt).forEach(e => e(api, evt));
1566
+ return self;
1567
+ }
1568
+ function on(evt, cb) {
1569
+ listeners[evt] = getListeners(evt).concat([cb]);
1570
+ return self;
1571
+ }
1572
+ function off(evt, cb) {
1573
+ listeners[evt] = getListeners(evt).filter(e => e !== cb);
1574
+ return self;
1575
+ }
1576
+ function clear() {
1577
+ listeners = {};
1578
+ }
1579
+ const self = {
1580
+ init,
1581
+ emit,
1582
+ off,
1583
+ on,
1584
+ clear
1585
+ };
1586
+ return self;
1587
+ }
1588
+
1589
+ const defaultOptions$1 = {
1590
+ align: 'center',
1591
+ axis: 'x',
1592
+ container: null,
1593
+ slides: null,
1594
+ containScroll: 'trimSnaps',
1595
+ direction: 'ltr',
1596
+ slidesToScroll: 1,
1597
+ inViewThreshold: 0,
1598
+ breakpoints: {},
1599
+ dragFree: false,
1600
+ dragThreshold: 10,
1601
+ loop: false,
1602
+ skipSnaps: false,
1603
+ duration: 25,
1604
+ startIndex: 0,
1605
+ active: true,
1606
+ watchDrag: true,
1607
+ watchResize: true,
1608
+ watchSlides: true,
1609
+ watchFocus: true
1610
+ };
1611
+
1612
+ function OptionsHandler(ownerWindow) {
1613
+ function mergeOptions(optionsA, optionsB) {
1614
+ return objectsMergeDeep(optionsA, optionsB || {});
1615
+ }
1616
+ function optionsAtMedia(options) {
1617
+ const optionsAtMedia = options.breakpoints || {};
1618
+ const matchedMediaOptions = objectKeys(optionsAtMedia).filter(media => ownerWindow.matchMedia(media).matches).map(media => optionsAtMedia[media]).reduce((a, mediaOption) => mergeOptions(a, mediaOption), {});
1619
+ return mergeOptions(options, matchedMediaOptions);
1620
+ }
1621
+ function optionsMediaQueries(optionsList) {
1622
+ return optionsList.map(options => objectKeys(options.breakpoints || {})).reduce((acc, mediaQueries) => acc.concat(mediaQueries), []).map(ownerWindow.matchMedia);
1623
+ }
1624
+ const self = {
1625
+ mergeOptions,
1626
+ optionsAtMedia,
1627
+ optionsMediaQueries
1628
+ };
1629
+ return self;
1630
+ }
1631
+
1632
+ function PluginsHandler(optionsHandler) {
1633
+ let activePlugins = [];
1634
+ function init(emblaApi, plugins) {
1635
+ activePlugins = plugins.filter(({
1636
+ options
1637
+ }) => optionsHandler.optionsAtMedia(options).active !== false);
1638
+ activePlugins.forEach(plugin => plugin.init(emblaApi, optionsHandler));
1639
+ return plugins.reduce((map, plugin) => Object.assign(map, {
1640
+ [plugin.name]: plugin
1641
+ }), {});
1642
+ }
1643
+ function destroy() {
1644
+ activePlugins = activePlugins.filter(plugin => plugin.destroy());
1645
+ }
1646
+ const self = {
1647
+ init,
1648
+ destroy
1649
+ };
1650
+ return self;
1651
+ }
1652
+
1653
+ function EmblaCarousel(root, userOptions, userPlugins) {
1654
+ const ownerDocument = root.ownerDocument;
1655
+ const ownerWindow = ownerDocument.defaultView;
1656
+ const optionsHandler = OptionsHandler(ownerWindow);
1657
+ const pluginsHandler = PluginsHandler(optionsHandler);
1658
+ const mediaHandlers = EventStore();
1659
+ const eventHandler = EventHandler();
1660
+ const {
1661
+ mergeOptions,
1662
+ optionsAtMedia,
1663
+ optionsMediaQueries
1664
+ } = optionsHandler;
1665
+ const {
1666
+ on,
1667
+ off,
1668
+ emit
1669
+ } = eventHandler;
1670
+ const reInit = reActivate;
1671
+ let destroyed = false;
1672
+ let engine;
1673
+ let optionsBase = mergeOptions(defaultOptions$1, EmblaCarousel.globalOptions);
1674
+ let options = mergeOptions(optionsBase);
1675
+ let pluginList = [];
1676
+ let pluginApis;
1677
+ let container;
1678
+ let slides;
1679
+ function storeElements() {
1680
+ const {
1681
+ container: userContainer,
1682
+ slides: userSlides
1683
+ } = options;
1684
+ const customContainer = isString(userContainer) ? root.querySelector(userContainer) : userContainer;
1685
+ container = customContainer || root.children[0];
1686
+ const customSlides = isString(userSlides) ? container.querySelectorAll(userSlides) : userSlides;
1687
+ slides = [].slice.call(customSlides || container.children);
1688
+ }
1689
+ function createEngine(options) {
1690
+ const engine = Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler);
1691
+ if (options.loop && !engine.slideLooper.canLoop()) {
1692
+ const optionsWithoutLoop = Object.assign({}, options, {
1693
+ loop: false
1694
+ });
1695
+ return createEngine(optionsWithoutLoop);
1696
+ }
1697
+ return engine;
1698
+ }
1699
+ function activate(withOptions, withPlugins) {
1700
+ if (destroyed) return;
1701
+ optionsBase = mergeOptions(optionsBase, withOptions);
1702
+ options = optionsAtMedia(optionsBase);
1703
+ pluginList = withPlugins || pluginList;
1704
+ storeElements();
1705
+ engine = createEngine(options);
1706
+ optionsMediaQueries([optionsBase, ...pluginList.map(({
1707
+ options
1708
+ }) => options)]).forEach(query => mediaHandlers.add(query, 'change', reActivate));
1709
+ if (!options.active) return;
1710
+ engine.translate.to(engine.location.get());
1711
+ engine.animation.init();
1712
+ engine.slidesInView.init();
1713
+ engine.slideFocus.init(self);
1714
+ engine.eventHandler.init(self);
1715
+ engine.resizeHandler.init(self);
1716
+ engine.slidesHandler.init(self);
1717
+ if (engine.options.loop) engine.slideLooper.loop();
1718
+ if (container.offsetParent && slides.length) engine.dragHandler.init(self);
1719
+ pluginApis = pluginsHandler.init(self, pluginList);
1720
+ }
1721
+ function reActivate(withOptions, withPlugins) {
1722
+ const startIndex = selectedScrollSnap();
1723
+ deActivate();
1724
+ activate(mergeOptions({
1725
+ startIndex
1726
+ }, withOptions), withPlugins);
1727
+ eventHandler.emit('reInit');
1728
+ }
1729
+ function deActivate() {
1730
+ engine.dragHandler.destroy();
1731
+ engine.eventStore.clear();
1732
+ engine.translate.clear();
1733
+ engine.slideLooper.clear();
1734
+ engine.resizeHandler.destroy();
1735
+ engine.slidesHandler.destroy();
1736
+ engine.slidesInView.destroy();
1737
+ engine.animation.destroy();
1738
+ pluginsHandler.destroy();
1739
+ mediaHandlers.clear();
1740
+ }
1741
+ function destroy() {
1742
+ if (destroyed) return;
1743
+ destroyed = true;
1744
+ mediaHandlers.clear();
1745
+ deActivate();
1746
+ eventHandler.emit('destroy');
1747
+ eventHandler.clear();
1748
+ }
1749
+ function scrollTo(index, jump, direction) {
1750
+ if (!options.active || destroyed) return;
1751
+ engine.scrollBody.useBaseFriction().useDuration(jump === true ? 0 : options.duration);
1752
+ engine.scrollTo.index(index, direction || 0);
1753
+ }
1754
+ function scrollNext(jump) {
1755
+ const next = engine.index.add(1).get();
1756
+ scrollTo(next, jump, -1);
1757
+ }
1758
+ function scrollPrev(jump) {
1759
+ const prev = engine.index.add(-1).get();
1760
+ scrollTo(prev, jump, 1);
1761
+ }
1762
+ function canScrollNext() {
1763
+ const next = engine.index.add(1).get();
1764
+ return next !== selectedScrollSnap();
1765
+ }
1766
+ function canScrollPrev() {
1767
+ const prev = engine.index.add(-1).get();
1768
+ return prev !== selectedScrollSnap();
1769
+ }
1770
+ function scrollSnapList() {
1771
+ return engine.scrollSnapList;
1772
+ }
1773
+ function scrollProgress() {
1774
+ return engine.scrollProgress.get(engine.location.get());
1775
+ }
1776
+ function selectedScrollSnap() {
1777
+ return engine.index.get();
1778
+ }
1779
+ function previousScrollSnap() {
1780
+ return engine.indexPrevious.get();
1781
+ }
1782
+ function slidesInView() {
1783
+ return engine.slidesInView.get();
1784
+ }
1785
+ function slidesNotInView() {
1786
+ return engine.slidesInView.get(false);
1787
+ }
1788
+ function plugins() {
1789
+ return pluginApis;
1790
+ }
1791
+ function internalEngine() {
1792
+ return engine;
1793
+ }
1794
+ function rootNode() {
1795
+ return root;
1796
+ }
1797
+ function containerNode() {
1798
+ return container;
1799
+ }
1800
+ function slideNodes() {
1801
+ return slides;
1802
+ }
1803
+ const self = {
1804
+ canScrollNext,
1805
+ canScrollPrev,
1806
+ containerNode,
1807
+ internalEngine,
1808
+ destroy,
1809
+ off,
1810
+ on,
1811
+ emit,
1812
+ plugins,
1813
+ previousScrollSnap,
1814
+ reInit,
1815
+ rootNode,
1816
+ scrollNext,
1817
+ scrollPrev,
1818
+ scrollProgress,
1819
+ scrollSnapList,
1820
+ scrollTo,
1821
+ selectedScrollSnap,
1822
+ slideNodes,
1823
+ slidesInView,
1824
+ slidesNotInView
1825
+ };
1826
+ activate(userOptions, userPlugins);
1827
+ setTimeout(() => eventHandler.emit('init'), 0);
1828
+ return self;
1829
+ }
1830
+ EmblaCarousel.globalOptions = undefined;
1831
+
1832
+ function useEmblaCarousel(options = {}, plugins = []) {
1833
+ const storedOptions = useRef(options);
1834
+ const storedPlugins = useRef(plugins);
1835
+ const [emblaApi, setEmblaApi] = useState();
1836
+ const [viewport, setViewport] = useState();
1837
+ const reInit = useCallback(() => {
1838
+ if (emblaApi) emblaApi.reInit(storedOptions.current, storedPlugins.current);
1839
+ }, [emblaApi]);
1840
+ useEffect(() => {
1841
+ if (areOptionsEqual(storedOptions.current, options)) return;
1842
+ storedOptions.current = options;
1843
+ reInit();
1844
+ }, [options, reInit]);
1845
+ useEffect(() => {
1846
+ if (arePluginsEqual(storedPlugins.current, plugins)) return;
1847
+ storedPlugins.current = plugins;
1848
+ reInit();
1849
+ }, [plugins, reInit]);
1850
+ useEffect(() => {
1851
+ if (canUseDOM() && viewport) {
1852
+ EmblaCarousel.globalOptions = useEmblaCarousel.globalOptions;
1853
+ const newEmblaApi = EmblaCarousel(viewport, storedOptions.current, storedPlugins.current);
1854
+ setEmblaApi(newEmblaApi);
1855
+ return () => newEmblaApi.destroy();
1856
+ } else {
1857
+ setEmblaApi(undefined);
1858
+ }
1859
+ }, [viewport, setEmblaApi]);
1860
+ return [setViewport, emblaApi];
1861
+ }
1862
+ useEmblaCarousel.globalOptions = undefined;
1863
+
1864
+ const defaultOptions = {
1865
+ active: true,
1866
+ breakpoints: {},
1867
+ delay: 4000,
1868
+ jump: false,
1869
+ playOnInit: true,
1870
+ stopOnFocusIn: true,
1871
+ stopOnInteraction: true,
1872
+ stopOnMouseEnter: false,
1873
+ stopOnLastSnap: false,
1874
+ rootNode: null
1875
+ };
1876
+
1877
+ function normalizeDelay(emblaApi, delay) {
1878
+ const scrollSnaps = emblaApi.scrollSnapList();
1879
+ if (typeof delay === 'number') {
1880
+ return scrollSnaps.map(() => delay);
1881
+ }
1882
+ return delay(scrollSnaps, emblaApi);
1883
+ }
1884
+ function getAutoplayRootNode(emblaApi, rootNode) {
1885
+ const emblaRootNode = emblaApi.rootNode();
1886
+ return rootNode && rootNode(emblaRootNode) || emblaRootNode;
1887
+ }
1888
+
1889
+ function Autoplay(userOptions = {}) {
1890
+ let options;
1891
+ let emblaApi;
1892
+ let destroyed;
1893
+ let delay;
1894
+ let timerStartTime = null;
1895
+ let timerId = 0;
1896
+ let autoplayActive = false;
1897
+ let mouseIsOver = false;
1898
+ let playOnDocumentVisible = false;
1899
+ let jump = false;
1900
+ function init(emblaApiInstance, optionsHandler) {
1901
+ emblaApi = emblaApiInstance;
1902
+ const {
1903
+ mergeOptions,
1904
+ optionsAtMedia
1905
+ } = optionsHandler;
1906
+ const optionsBase = mergeOptions(defaultOptions, Autoplay.globalOptions);
1907
+ const allOptions = mergeOptions(optionsBase, userOptions);
1908
+ options = optionsAtMedia(allOptions);
1909
+ if (emblaApi.scrollSnapList().length <= 1) return;
1910
+ jump = options.jump;
1911
+ destroyed = false;
1912
+ delay = normalizeDelay(emblaApi, options.delay);
1913
+ const {
1914
+ eventStore,
1915
+ ownerDocument
1916
+ } = emblaApi.internalEngine();
1917
+ const isDraggable = !!emblaApi.internalEngine().options.watchDrag;
1918
+ const root = getAutoplayRootNode(emblaApi, options.rootNode);
1919
+ eventStore.add(ownerDocument, 'visibilitychange', visibilityChange);
1920
+ if (isDraggable) {
1921
+ emblaApi.on('pointerDown', pointerDown);
1922
+ }
1923
+ if (isDraggable && !options.stopOnInteraction) {
1924
+ emblaApi.on('pointerUp', pointerUp);
1925
+ }
1926
+ if (options.stopOnMouseEnter) {
1927
+ eventStore.add(root, 'mouseenter', mouseEnter);
1928
+ }
1929
+ if (options.stopOnMouseEnter && !options.stopOnInteraction) {
1930
+ eventStore.add(root, 'mouseleave', mouseLeave);
1931
+ }
1932
+ if (options.stopOnFocusIn) {
1933
+ emblaApi.on('slideFocusStart', stopAutoplay);
1934
+ }
1935
+ if (options.stopOnFocusIn && !options.stopOnInteraction) {
1936
+ eventStore.add(emblaApi.containerNode(), 'focusout', startAutoplay);
1937
+ }
1938
+ if (options.playOnInit) startAutoplay();
1939
+ }
1940
+ function destroy() {
1941
+ emblaApi.off('pointerDown', pointerDown).off('pointerUp', pointerUp).off('slideFocusStart', stopAutoplay);
1942
+ stopAutoplay();
1943
+ destroyed = true;
1944
+ autoplayActive = false;
1945
+ }
1946
+ function setTimer() {
1947
+ const {
1948
+ ownerWindow
1949
+ } = emblaApi.internalEngine();
1950
+ ownerWindow.clearTimeout(timerId);
1951
+ timerId = ownerWindow.setTimeout(next, delay[emblaApi.selectedScrollSnap()]);
1952
+ timerStartTime = new Date().getTime();
1953
+ emblaApi.emit('autoplay:timerset');
1954
+ }
1955
+ function clearTimer() {
1956
+ const {
1957
+ ownerWindow
1958
+ } = emblaApi.internalEngine();
1959
+ ownerWindow.clearTimeout(timerId);
1960
+ timerId = 0;
1961
+ timerStartTime = null;
1962
+ emblaApi.emit('autoplay:timerstopped');
1963
+ }
1964
+ function startAutoplay() {
1965
+ if (destroyed) return;
1966
+ if (documentIsHidden()) {
1967
+ playOnDocumentVisible = true;
1968
+ return;
1969
+ }
1970
+ if (!autoplayActive) emblaApi.emit('autoplay:play');
1971
+ setTimer();
1972
+ autoplayActive = true;
1973
+ }
1974
+ function stopAutoplay() {
1975
+ if (destroyed) return;
1976
+ if (autoplayActive) emblaApi.emit('autoplay:stop');
1977
+ clearTimer();
1978
+ autoplayActive = false;
1979
+ }
1980
+ function visibilityChange() {
1981
+ if (documentIsHidden()) {
1982
+ playOnDocumentVisible = autoplayActive;
1983
+ return stopAutoplay();
1984
+ }
1985
+ if (playOnDocumentVisible) startAutoplay();
1986
+ }
1987
+ function documentIsHidden() {
1988
+ const {
1989
+ ownerDocument
1990
+ } = emblaApi.internalEngine();
1991
+ return ownerDocument.visibilityState === 'hidden';
1992
+ }
1993
+ function pointerDown() {
1994
+ if (!mouseIsOver) stopAutoplay();
1995
+ }
1996
+ function pointerUp() {
1997
+ if (!mouseIsOver) startAutoplay();
1998
+ }
1999
+ function mouseEnter() {
2000
+ mouseIsOver = true;
2001
+ stopAutoplay();
2002
+ }
2003
+ function mouseLeave() {
2004
+ mouseIsOver = false;
2005
+ startAutoplay();
2006
+ }
2007
+ function play(jumpOverride) {
2008
+ if (typeof jumpOverride !== 'undefined') jump = jumpOverride;
2009
+ startAutoplay();
2010
+ }
2011
+ function stop() {
2012
+ if (autoplayActive) stopAutoplay();
2013
+ }
2014
+ function reset() {
2015
+ if (autoplayActive) startAutoplay();
2016
+ }
2017
+ function isPlaying() {
2018
+ return autoplayActive;
2019
+ }
2020
+ function next() {
2021
+ const {
2022
+ index
2023
+ } = emblaApi.internalEngine();
2024
+ const nextIndex = index.clone().add(1).get();
2025
+ const lastIndex = emblaApi.scrollSnapList().length - 1;
2026
+ const kill = options.stopOnLastSnap && nextIndex === lastIndex;
2027
+ if (emblaApi.canScrollNext()) {
2028
+ emblaApi.scrollNext(jump);
2029
+ } else {
2030
+ emblaApi.scrollTo(0, jump);
2031
+ }
2032
+ emblaApi.emit('autoplay:select');
2033
+ if (kill) return stopAutoplay();
2034
+ startAutoplay();
2035
+ }
2036
+ function timeUntilNext() {
2037
+ if (!timerStartTime) return null;
2038
+ const currentDelay = delay[emblaApi.selectedScrollSnap()];
2039
+ const timePastSinceStart = new Date().getTime() - timerStartTime;
2040
+ return currentDelay - timePastSinceStart;
2041
+ }
2042
+ const self = {
2043
+ name: 'autoplay',
2044
+ options: userOptions,
2045
+ init,
2046
+ destroy,
2047
+ play,
2048
+ stop,
2049
+ reset,
2050
+ isPlaying,
2051
+ timeUntilNext
2052
+ };
2053
+ return self;
2054
+ }
2055
+ Autoplay.globalOptions = undefined;
2056
+
2057
+ var XS_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsXs, ")");
2058
+ var S_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsS, ")");
2059
+ var M_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsM, ")");
2060
+ var L_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsL, ")");
2061
+ var XL_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsXl, ")");
2062
+
2063
+ var getOptions = function (itemsToScroll, loop, responsive) {
2064
+ var breakpoints = [
2065
+ [XS_BREAKPOINT, "xs"],
2066
+ [S_BREAKPOINT, "s"],
2067
+ [M_BREAKPOINT, "m"],
2068
+ [L_BREAKPOINT, "l"],
2069
+ [XL_BREAKPOINT, "xl"],
2070
+ ];
2071
+ var breakpointOptions = breakpoints.reduce(function (acc, _a) {
2072
+ var _b;
2073
+ var _c;
2074
+ var query = _a[0], breakpoint = _a[1];
2075
+ return __assign(__assign({}, acc), __assign({}, ((responsive === null || responsive === void 0 ? void 0 : responsive[breakpoint])
2076
+ ? (_b = {},
2077
+ _b[query] = {
2078
+ slidesToScroll: (_c = responsive === null || responsive === void 0 ? void 0 : responsive[breakpoint]) === null || _c === void 0 ? void 0 : _c.itemsToScroll,
2079
+ },
2080
+ _b) : {})));
2081
+ }, {});
2082
+ return {
2083
+ loop: loop,
2084
+ skipSnaps: true,
2085
+ align: "start",
2086
+ slidesToScroll: itemsToScroll,
2087
+ breakpoints: breakpointOptions,
2088
+ };
2089
+ };
2090
+
2091
+ var getSlideWidth = function (_a) {
2092
+ var screenSizes = _a.screenSizes, itemsPerSlide = _a.itemsPerSlide, isPartialVisible = _a.isPartialVisible, responsive = _a.responsive, children = _a.children;
2093
+ var responsiveConfig = responsive &&
2094
+ Object.keys(screenSizes).find(function (size) {
2095
+ return responsive && screenSizes[size] && responsive[size];
2096
+ });
2097
+ var slideConfig = responsiveConfig
2098
+ ? responsive[responsiveConfig]
2099
+ : { itemsPerSlide: itemsPerSlide, isPartialVisible: isPartialVisible };
2100
+ var totalItems = React__default.Children.count(children);
2101
+ var itemsPerView = slideConfig.itemsPerSlide > totalItems
2102
+ ? 1
2103
+ : Math.max(1, slideConfig.itemsPerSlide);
2104
+ var widthAdjustment = slideConfig.isPartialVisible ? 10 : 0;
2105
+ return (100 - widthAdjustment) / itemsPerView;
2106
+ };
2107
+
2108
+ var CarouselDotButton = function (_a) {
2109
+ var visibleSlideIndex = _a.visibleSlideIndex, scrollSnapIndex = _a.scrollSnapIndex, focusIndex = _a.focusIndex, onKeyDown = _a.onKeyDown, onClick = _a.onClick;
2110
+ var ref = useRef(null);
2111
+ var isSelected = visibleSlideIndex === scrollSnapIndex;
2112
+ useEffect(function () {
2113
+ var _a;
2114
+ if (focusIndex === scrollSnapIndex) {
2115
+ (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
2116
+ }
2117
+ }, [focusIndex, scrollSnapIndex]);
2118
+ return (React__default.createElement("button", { ref: ref, tabIndex: scrollSnapIndex === 0 ? 0 : -1, className: classNames("arc-Carousel-dot", {
2119
+ "arc-Carousel-dot--selected": isSelected,
2120
+ }), onKeyDown: onKeyDown(scrollSnapIndex), onClick: function () { return onClick(scrollSnapIndex); }, "aria-selected": isSelected, role: "tab", "aria-label": "Show slide ".concat(scrollSnapIndex + 1) }));
2121
+ };
2122
+
2123
+ var KeyNames;
2124
+ (function (KeyNames) {
2125
+ KeyNames["ArrowLeft"] = "ArrowLeft";
2126
+ KeyNames["ArrowRight"] = "ArrowRight";
2127
+ KeyNames["Escape"] = "Escape";
2128
+ })(KeyNames || (KeyNames = {}));
2129
+
2130
+ var Carousel = function (_a) {
2131
+ var children = _a.children, responsive = _a.responsive, _b = _a.itemsToScroll, itemsToScroll = _b === void 0 ? 1 : _b, _c = _a.itemsPerSlide, itemsPerSlide = _c === void 0 ? 1 : _c, _d = _a.withGutter, withGutter = _d === void 0 ? true : _d, _e = _a.loop, loop = _e === void 0 ? false : _e, _f = _a.isPartialVisible, isPartialVisible = _f === void 0 ? false : _f, autoplay = _a.autoplay, isPlaying = _a.isPlaying, fade = _a.fade;
2132
+ var id = useId();
2133
+ var autoPlayOptions = autoplay
2134
+ ? __assign({ playOnInit: true, delay: 3000, stopOnInteraction: true, stopOnMouseEnter: false, stopOnFocusIn: true, stopOnLastSnap: false }, autoplay) : undefined;
2135
+ var _g = useEmblaCarousel(__assign(__assign({}, getOptions(itemsToScroll, loop, responsive)), (fade ? { inViewThreshold: 0.74 } : {})), __spreadArray(__spreadArray([], (autoPlayOptions ? [Autoplay(autoPlayOptions)] : []), true), (fade
2136
+ ? [
2137
+ ClassNames({
2138
+ inView: "arc-Carousel-slide--isInView",
2139
+ }),
2140
+ ]
2141
+ : []), true)), emblaRef = _g[0], emblaApi = _g[1];
2142
+ useEffect(function () {
2143
+ var _a;
2144
+ if (!emblaApi || !autoplay)
2145
+ return;
2146
+ var autoplayPlugin = (_a = emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.plugins()) === null || _a === void 0 ? void 0 : _a.autoplay;
2147
+ if (isPlaying) {
2148
+ autoplayPlugin.play();
2149
+ }
2150
+ if (isPlaying == false) {
2151
+ autoplayPlugin.stop();
2152
+ }
2153
+ }, [emblaApi, isPlaying, autoplay]);
2154
+ var _h = useState(), dotButtonFocusIndex = _h[0], setCarouselDotButtonFocusIndex = _h[1];
2155
+ var prevButtonRef = useRef(null);
2156
+ var _j = useState(0), visibleSlideIndex = _j[0], setVisibleSlideIndex = _j[1];
2157
+ var _k = useState(true), prevButtonEnabled = _k[0], setPrevButtonEnabled = _k[1];
2158
+ var _l = useState(true), nextButtonEnabled = _l[0], setNextButtonEnabled = _l[1];
2159
+ var isMinWidthArcBreakpointXs = useMediaQuery(XS_BREAKPOINT);
2160
+ var isMinWidthArcBreakpointS = useMediaQuery(S_BREAKPOINT);
2161
+ var isMinWidthArcBreakpointM = useMediaQuery(M_BREAKPOINT);
2162
+ var isMinWidthArcBreakpointL = useMediaQuery(L_BREAKPOINT);
2163
+ var isMinWidthArcBreakpointXl = useMediaQuery(XL_BREAKPOINT);
2164
+ var slideWidth = getSlideWidth({
2165
+ screenSizes: {
2166
+ xl: isMinWidthArcBreakpointXl,
2167
+ l: isMinWidthArcBreakpointL,
2168
+ m: isMinWidthArcBreakpointM,
2169
+ s: isMinWidthArcBreakpointS,
2170
+ xs: isMinWidthArcBreakpointXs,
2171
+ },
2172
+ itemsPerSlide: itemsPerSlide,
2173
+ isPartialVisible: isPartialVisible,
2174
+ responsive: responsive,
2175
+ children: children,
2176
+ });
2177
+ var scrollSnaps = Array.from({
2178
+ length: (emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.scrollSnapList().length) || 0,
2179
+ }).map(function (_, i) { return i; });
2180
+ var scrollPrev = useCallback(function () { return emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.scrollPrev(); }, [emblaApi]);
2181
+ var scrollNext = useCallback(function () { return emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.scrollNext(); }, [emblaApi]);
2182
+ var onSelect = useCallback(function (emblaApi) {
2183
+ setVisibleSlideIndex(emblaApi.selectedScrollSnap());
2184
+ setPrevButtonEnabled(emblaApi.canScrollPrev());
2185
+ setNextButtonEnabled(emblaApi.canScrollNext());
2186
+ }, []);
2187
+ var onCarouselDotButtonClick = useCallback(function (index) {
2188
+ if (!emblaApi)
2189
+ return;
2190
+ emblaApi.scrollTo(index);
2191
+ }, [emblaApi]);
2192
+ var onSlideKeyDown = function (e) {
2193
+ var _a;
2194
+ if (e.key === KeyNames.Escape) {
2195
+ prevButtonEnabled
2196
+ ? (_a = prevButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus()
2197
+ : setCarouselDotButtonFocusIndex(0);
2198
+ }
2199
+ };
2200
+ var onCarouselDotButtonKeyDown = function (index) { return function (e) {
2201
+ if (e.key === KeyNames.ArrowLeft) {
2202
+ setCarouselDotButtonFocusIndex(index === 0 ? scrollSnaps.length - 1 : index - 1);
2203
+ }
2204
+ if (e.key === KeyNames.ArrowRight) {
2205
+ setCarouselDotButtonFocusIndex(index + 1 === scrollSnaps.length ? 0 : index + 1);
2206
+ }
2207
+ }; };
2208
+ useEffect(function () {
2209
+ if (!emblaApi)
2210
+ return;
2211
+ onSelect(emblaApi);
2212
+ emblaApi.on("reInit", onSelect).on("select", onSelect);
2213
+ }, [emblaApi, onSelect]);
2214
+ useEffect(function () {
2215
+ if (!emblaApi)
2216
+ return;
2217
+ emblaApi.scrollTo(0);
2218
+ }, [
2219
+ emblaApi,
2220
+ isMinWidthArcBreakpointXs,
2221
+ isMinWidthArcBreakpointS,
2222
+ isMinWidthArcBreakpointM,
2223
+ isMinWidthArcBreakpointL,
2224
+ isMinWidthArcBreakpointXl,
2225
+ ]);
2226
+ return (React__default.createElement("div", { className: "arc-Carousel" },
2227
+ React__default.createElement("div", { className: "arc-Carousel-container" },
2228
+ React__default.createElement("div", { ref: emblaRef, className: classNames("arc-Carousel-viewport", {
2229
+ "arc-Carousel-viewport--gutter": withGutter,
2230
+ }) },
2231
+ React__default.createElement("div", { className: "arc-Carousel-slider", role: "region", "aria-roledescription": "carousel" }, React__default.Children.map(children, function (child, i) { return (React__default.createElement("div", { onKeyDown: onSlideKeyDown, style: { flex: "0 0 ".concat(slideWidth, "%"), width: "".concat(slideWidth, "%") }, className: classNames("arc-Carousel-slide", {
2232
+ "arc-Carousel-slide--fade": fade,
2233
+ }), key: "".concat(id, "-option-").concat(i), role: "group", "aria-roledescription": "slide" }, child)); })))),
2234
+ React__default.createElement("div", { className: "arc-Carousel-nav" },
2235
+ React__default.createElement("button", { "data-testid": "previous-button", ref: prevButtonRef, className: classNames("arc-Carousel-navButton", {
2236
+ "arc-Carousel-navButton--hidden": !prevButtonEnabled,
2237
+ }), onClick: scrollPrev, "aria-label": "Show slide ".concat(visibleSlideIndex) },
2238
+ React__default.createElement(ThemeIcon, { size: 32, icon: "carouselLeft" })),
2239
+ React__default.createElement("div", { className: "arc-Carousel-dotContainer", role: "tablist" }, scrollSnaps.map(function (scrollSnapIndex) { return (React__default.createElement(CarouselDotButton, { key: "".concat(id, "-dot-").concat(scrollSnapIndex), focusIndex: dotButtonFocusIndex, scrollSnapIndex: scrollSnapIndex, visibleSlideIndex: visibleSlideIndex, onKeyDown: onCarouselDotButtonKeyDown, onClick: function (index) { return onCarouselDotButtonClick(index); } })); })),
2240
+ React__default.createElement("button", { "data-testid": "next-button", className: classNames("arc-Carousel-navButton", {
2241
+ "arc-Carousel-navButton--hidden": !nextButtonEnabled,
2242
+ }), onClick: scrollNext, "aria-label": "Show slide ".concat(loop && visibleSlideIndex === scrollSnaps.length - 1
2243
+ ? 1
2244
+ : visibleSlideIndex + 2) },
2245
+ React__default.createElement(ThemeIcon, { size: 32, icon: "carouselRight" })))));
2246
+ };
2247
+
2248
+ export { Carousel };