@televet/kibble-ui 2.0.0-beta.8678phbtk.2 → 2.0.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 (418) hide show
  1. package/README.md +1 -1
  2. package/build/alert.component-6775820d.js +2 -0
  3. package/build/alert.component-6775820d.js.map +1 -0
  4. package/build/{alert.config-61314153.js → alert.config-23cd80bc.js} +2 -2
  5. package/build/{alert.config-61314153.js.map → alert.config-23cd80bc.js.map} +1 -1
  6. package/build/alert.types-858cdf65.js +2 -0
  7. package/build/alert.types-858cdf65.js.map +1 -0
  8. package/build/avatar.component-5de24937.js +2 -0
  9. package/build/{avatar.component-73a17380.js.map → avatar.component-5de24937.js.map} +1 -1
  10. package/build/{avatar.config-ef265947.js → avatar.config-3134aaf8.js} +2 -2
  11. package/build/{avatar.config-ef265947.js.map → avatar.config-3134aaf8.js.map} +1 -1
  12. package/build/avatarBadge.component-12b8c7c2.js +2 -0
  13. package/build/{avatarBadge.component-af09e1b9.js.map → avatarBadge.component-12b8c7c2.js.map} +1 -1
  14. package/build/avatarGroup.component-2a36a4a8.js +2 -0
  15. package/build/{avatarGroup.component-cc62fd0c.js.map → avatarGroup.component-2a36a4a8.js.map} +1 -1
  16. package/build/button.component-73d5a120.js +2 -0
  17. package/build/button.component-73d5a120.js.map +1 -0
  18. package/build/card.component-fc60f023.js +2 -0
  19. package/build/{card.component-fd2b0128.js.map → card.component-fc60f023.js.map} +1 -1
  20. package/build/chakra/index.d.ts +2 -2
  21. package/build/chakra/index.js +1 -1
  22. package/build/chakra-ui-alert.esm-9bb76feb.js +2 -0
  23. package/build/chakra-ui-alert.esm-9bb76feb.js.map +1 -0
  24. package/build/chakra-ui-avatar.esm-d7e98d56.js +2 -0
  25. package/build/chakra-ui-avatar.esm-d7e98d56.js.map +1 -0
  26. package/build/chakra-ui-button.esm-32e420eb.js +2 -0
  27. package/build/chakra-ui-button.esm-32e420eb.js.map +1 -0
  28. package/build/chakra-ui-checkbox.esm-6a6974f2.js +2 -0
  29. package/build/chakra-ui-checkbox.esm-6a6974f2.js.map +1 -0
  30. package/build/chakra-ui-clickable.esm-22135054.js +2 -0
  31. package/build/chakra-ui-clickable.esm-22135054.js.map +1 -0
  32. package/build/chakra-ui-form-control.esm-8240cc1c.js +2 -0
  33. package/build/chakra-ui-form-control.esm-8240cc1c.js.map +1 -0
  34. package/build/chakra-ui-hooks.esm-c8f7aa0e.js +2 -0
  35. package/build/chakra-ui-hooks.esm-c8f7aa0e.js.map +1 -0
  36. package/build/chakra-ui-icon.esm-30b0b8a9.js +2 -0
  37. package/build/chakra-ui-icon.esm-30b0b8a9.js.map +1 -0
  38. package/build/chakra-ui-image.esm-acdc667a.js +2 -0
  39. package/build/chakra-ui-image.esm-acdc667a.js.map +1 -0
  40. package/build/chakra-ui-input.esm-5e794564.js +2 -0
  41. package/build/chakra-ui-input.esm-5e794564.js.map +1 -0
  42. package/build/chakra-ui-layout.esm-493ee04b.js +2 -0
  43. package/build/chakra-ui-layout.esm-493ee04b.js.map +1 -0
  44. package/build/chakra-ui-media-query.esm-a34e627c.js +2 -0
  45. package/build/chakra-ui-media-query.esm-a34e627c.js.map +1 -0
  46. package/build/chakra-ui-menu.esm-22115f36.js +2 -0
  47. package/build/chakra-ui-menu.esm-22115f36.js.map +1 -0
  48. package/build/chakra-ui-modal.esm-cf414b2f.js +16 -0
  49. package/build/chakra-ui-modal.esm-cf414b2f.js.map +1 -0
  50. package/build/chakra-ui-popover.esm-af9721a4.js +2 -0
  51. package/build/chakra-ui-popover.esm-af9721a4.js.map +1 -0
  52. package/build/chakra-ui-popper.esm-78790840.js +2 -0
  53. package/build/chakra-ui-popper.esm-78790840.js.map +1 -0
  54. package/build/chakra-ui-portal.esm-72927bd9.js +2 -0
  55. package/build/chakra-ui-portal.esm-72927bd9.js.map +1 -0
  56. package/build/chakra-ui-radio.esm-ee587db1.js +2 -0
  57. package/build/chakra-ui-radio.esm-ee587db1.js.map +1 -0
  58. package/build/chakra-ui-react.esm-54b6d554.js +2 -0
  59. package/build/chakra-ui-react.esm-54b6d554.js.map +1 -0
  60. package/build/chakra-ui-select.esm-85c971dc.js +2 -0
  61. package/build/chakra-ui-select.esm-85c971dc.js.map +1 -0
  62. package/build/chakra-ui-skeleton.esm-91e7ead1.js +2 -0
  63. package/build/chakra-ui-skeleton.esm-91e7ead1.js.map +1 -0
  64. package/build/chakra-ui-system.esm-b563b97d.js +10 -0
  65. package/build/chakra-ui-system.esm-b563b97d.js.map +1 -0
  66. package/build/chakra-ui-tabs.esm-dc1c4ea8.js +2 -0
  67. package/build/chakra-ui-tabs.esm-dc1c4ea8.js.map +1 -0
  68. package/build/chakra-ui-textarea.esm-cfbdac00.js +2 -0
  69. package/build/chakra-ui-textarea.esm-cfbdac00.js.map +1 -0
  70. package/build/chakra-ui-theme.esm-cc694e08.js +2 -0
  71. package/build/chakra-ui-theme.esm-cc694e08.js.map +1 -0
  72. package/build/chakra-ui-visually-hidden.esm-3406a7fd.js +2 -0
  73. package/build/chakra-ui-visually-hidden.esm-3406a7fd.js.map +1 -0
  74. package/build/checkbox.component-60982355.js +2 -0
  75. package/build/{checkbox.component-41ff7829.js.map → checkbox.component-60982355.js.map} +1 -1
  76. package/build/checkboxGroup.component-2b744fe0.js +2 -0
  77. package/build/{checkboxGroup.component-029b73fe.js.map → checkboxGroup.component-2b744fe0.js.map} +1 -1
  78. package/build/color.record-8ec2eb8a.js +2 -0
  79. package/build/{color.record-2816a958.js.map → color.record-8ec2eb8a.js.map} +1 -1
  80. package/build/components/Alert/components/alertButton.component.d.ts +0 -1
  81. package/build/components/Alert/components/alertIcon.component.d.ts +0 -1
  82. package/build/components/Alert/index.js +1 -1
  83. package/build/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +0 -1
  84. package/build/components/Avatar/components/AvatarBadge/index.js +1 -1
  85. package/build/components/Avatar/index.js +1 -1
  86. package/build/components/AvatarGroup/avatarGroup.component.d.ts +0 -1
  87. package/build/components/AvatarGroup/index.js +1 -1
  88. package/build/components/Button/button.component.d.ts +0 -1
  89. package/build/components/Button/index.js +1 -1
  90. package/build/components/Card/index.js +1 -1
  91. package/build/components/Checkbox/checkbox.component.d.ts +0 -1
  92. package/build/components/Checkbox/index.js +1 -1
  93. package/build/components/CheckboxGroup/index.js +1 -1
  94. package/build/components/DatePicker/components/Day/day.component.d.ts +0 -1
  95. package/build/components/DatePicker/components/Month/month.component.d.ts +0 -1
  96. package/build/components/DatePicker/datepicker.argTypes.d.ts +1 -1
  97. package/build/components/DatePicker/datepicker.component.d.ts +0 -1
  98. package/build/components/DatePicker/index.js +1 -1
  99. package/build/components/Heading/index.js +1 -1
  100. package/build/components/Icon/index.js +1 -1
  101. package/build/components/Link/components/linkIcon.component.d.ts +0 -1
  102. package/build/components/Link/index.js +1 -1
  103. package/build/components/Link/link.config.d.ts +11 -11
  104. package/build/components/Logo/index.d.ts +2 -0
  105. package/build/components/Logo/index.js +2 -0
  106. package/build/components/Logo/index.js.map +1 -0
  107. package/build/components/Logo/logo.argTypes.d.ts +45 -0
  108. package/build/components/Logo/logo.component.d.ts +11 -0
  109. package/build/components/Logo/logo.config.d.ts +5 -0
  110. package/build/components/Logo/logo.types.d.ts +2 -0
  111. package/build/components/Logo/logos.d.ts +17 -0
  112. package/build/components/Menu/components/MenuButton/index.js +1 -1
  113. package/build/components/Menu/components/MenuContainer/index.js +1 -1
  114. package/build/components/Menu/components/MenuItem/index.js +1 -1
  115. package/build/components/Menu/components/MenuList/index.js +1 -1
  116. package/build/components/Menu/components/MenuList/menuList.component.d.ts +1 -4
  117. package/build/components/Menu/components/MenuOptionGroup/index.js +1 -1
  118. package/build/components/Menu/components/MenuOptionGroup/menuOptionGroup.component.d.ts +0 -1
  119. package/build/components/Menu/components/MenuSearchBar/menuSearchBar.component.d.ts +2 -2
  120. package/build/components/Menu/components/MenuSelectAllButtons/menuSelectAllButtons.component.d.ts +0 -1
  121. package/build/components/Menu/index.js +1 -1
  122. package/build/components/Modal/components/ModalBody/index.js +1 -1
  123. package/build/components/Modal/components/ModalBody/modalBody.component.d.ts +0 -1
  124. package/build/components/Modal/components/ModalCloseButton/index.js +1 -1
  125. package/build/components/Modal/components/ModalCloseButton/modalCloseButton.component.d.ts +0 -1
  126. package/build/components/Modal/components/ModalFooter/index.js +1 -1
  127. package/build/components/Modal/components/ModalFooter/modalFooter.component.d.ts +0 -1
  128. package/build/components/Modal/components/ModalFooterButtons/index.js +1 -1
  129. package/build/components/Modal/components/ModalFooterButtons/modalFooterButtons.component.d.ts +0 -1
  130. package/build/components/Modal/components/ModalHeader/index.js +1 -1
  131. package/build/components/Modal/components/ModalHeader/modalHeader.component.d.ts +0 -1
  132. package/build/components/Modal/index.js +1 -1
  133. package/build/components/NotificationCounter/index.js +1 -1
  134. package/build/components/NotificationCounter/notificationCounter.component.d.ts +0 -1
  135. package/build/components/Picture/index.js +1 -1
  136. package/build/components/Picture/picture.component.d.ts +0 -1
  137. package/build/components/Popover/components/PopoverBody/index.js +1 -1
  138. package/build/components/Popover/components/PopoverBody/popoverBody.component.d.ts +0 -1
  139. package/build/components/Popover/components/PopoverCloseButton/index.js +1 -1
  140. package/build/components/Popover/components/PopoverCloseButton/popoverCloseButton.component.d.ts +0 -1
  141. package/build/components/Popover/components/PopoverFooter/index.js +1 -1
  142. package/build/components/Popover/components/PopoverFooter/popoverFooter.component.d.ts +0 -1
  143. package/build/components/Popover/components/PopoverFooterButtons/index.js +1 -1
  144. package/build/components/Popover/components/PopoverFooterButtons/popoverFooterButtons.component.d.ts +0 -1
  145. package/build/components/Popover/components/PopoverHeader/index.js +1 -1
  146. package/build/components/Popover/components/PopoverHeader/popoverHeader.component.d.ts +0 -1
  147. package/build/components/Popover/index.js +1 -1
  148. package/build/components/Popover/popover.component.d.ts +4 -1
  149. package/build/components/Radio/index.js +1 -1
  150. package/build/components/Radio/radio.component.d.ts +0 -1
  151. package/build/components/RadioGroup/index.js +1 -1
  152. package/build/components/RatingDots/components/RatingDot/index.js +1 -1
  153. package/build/components/RatingDots/components/RatingDot/ratingDot.component.d.ts +0 -1
  154. package/build/components/RatingDots/index.js +1 -1
  155. package/build/components/RatingDots/ratingDots.component.d.ts +0 -1
  156. package/build/components/Select/components/SelectBrowserDefault/selectBrowserDefault.component.d.ts +0 -1
  157. package/build/components/Select/components/SelectList/selectList.component.d.ts +0 -1
  158. package/build/components/Select/index.js +1 -1
  159. package/build/components/SortableList/components/DragHandle/dragHandle.component.d.ts +0 -1
  160. package/build/components/SortableList/components/DragHandle/index.js +1 -1
  161. package/build/components/SortableList/components/SortableItem/index.js +1 -1
  162. package/build/components/SortableList/index.js +1 -1
  163. package/build/components/SortableList/utilities/index.js +1 -1
  164. package/build/components/SortableList/utilities/index.js.map +1 -1
  165. package/build/components/Spinner/index.js +1 -1
  166. package/build/components/Spinner/spinner.component.d.ts +0 -1
  167. package/build/components/Switch/index.js +1 -1
  168. package/build/components/Tabs/components/Tab/index.js +1 -1
  169. package/build/components/Tabs/components/Tab/tab.component.d.ts +0 -1
  170. package/build/components/Tabs/index.js +1 -1
  171. package/build/components/TabsLayout/index.js +1 -1
  172. package/build/components/Tag/index.js +1 -1
  173. package/build/components/Tag/tag.argTypes.d.ts +4 -12
  174. package/build/components/Text/index.js +1 -1
  175. package/build/components/TextInput/components/ClearButton/clearButton.component.d.ts +0 -1
  176. package/build/components/TextInput/index.js +1 -1
  177. package/build/components/Textarea/index.js +1 -1
  178. package/build/components/TimePicker/components/scrollContainer.component.d.ts +0 -1
  179. package/build/components/TimePicker/index.js +1 -1
  180. package/build/components/TimePicker/timePicker.argTypes.d.ts +1 -1
  181. package/build/components/TimePicker/timePicker.component.d.ts +0 -1
  182. package/build/components/TimeRange/index.js +1 -1
  183. package/build/components/TimeRange/timeRange.component.d.ts +0 -1
  184. package/build/components/Toast/index.d.ts +2 -0
  185. package/build/components/Toast/index.js +2 -0
  186. package/build/components/Toast/index.js.map +1 -0
  187. package/build/components/Toast/toast.types.d.ts +10 -0
  188. package/build/components/Toast/toast.utils.d.ts +2 -0
  189. package/build/components/Toast/useToast.d.ts +47 -0
  190. package/build/components/Tooltip/index.js +1 -1
  191. package/build/components/Tooltip/tooltip.component.d.ts +0 -1
  192. package/build/components/TruncatedText/index.js +1 -1
  193. package/build/components/TruncatedText/truncatedText.component.d.ts +0 -1
  194. package/build/components/index.d.ts +2 -0
  195. package/build/components/index.js +1 -1
  196. package/build/core.esm-3a85aed4.js +1 -1
  197. package/build/core.esm-3a85aed4.js.map +1 -1
  198. package/build/datepicker.types-30e62009.js +16 -0
  199. package/build/{datepicker.types-ff1b8dbc.js.map → datepicker.types-30e62009.js.map} +1 -1
  200. package/build/dragHandle.component-0d292ae8.js +2 -0
  201. package/build/{dragHandle.component-909abd36.js.map → dragHandle.component-0d292ae8.js.map} +1 -1
  202. package/build/formControl.component-fdf34a8f.js +2 -0
  203. package/build/{formControl.component-6ae91414.js.map → formControl.component-fdf34a8f.js.map} +1 -1
  204. package/build/heading.component-46024b9d.js +2 -0
  205. package/build/{heading.component-c8c6cb4e.js.map → heading.component-46024b9d.js.map} +1 -1
  206. package/build/hocs/index.js +1 -1
  207. package/build/hooks/index.js +1 -1
  208. package/build/{icon.component-5c3ee81d.js → icon.component-bf95e351.js} +2 -2
  209. package/build/{icon.component-5c3ee81d.js.map → icon.component-bf95e351.js.map} +1 -1
  210. package/build/icons/index.d.ts +1 -1
  211. package/build/icons/index.js +1 -1
  212. package/build/icons/index.js.map +1 -1
  213. package/build/index-5c563615.js +2 -0
  214. package/build/index-5c563615.js.map +1 -0
  215. package/build/index-c60b408f.js +15 -0
  216. package/build/index-c60b408f.js.map +1 -0
  217. package/build/index-fee8538e.js +2 -0
  218. package/build/index-fee8538e.js.map +1 -0
  219. package/build/index.js +1 -1
  220. package/build/inheritsLoose-490721fe.js +2 -0
  221. package/build/inheritsLoose-490721fe.js.map +1 -0
  222. package/build/link.component-78fe76a9.js +2 -0
  223. package/build/{link.component-41d1f167.js.map → link.component-78fe76a9.js.map} +1 -1
  224. package/build/logo.component-2ace6f1f.js +2 -0
  225. package/build/logo.component-2ace6f1f.js.map +1 -0
  226. package/build/menu.component-83327bda.js +2 -0
  227. package/build/{menu.component-24e2b4dd.js.map → menu.component-83327bda.js.map} +1 -1
  228. package/build/{menu.config-e2405b16.js → menu.config-83ef52b8.js} +2 -2
  229. package/build/{menu.config-e2405b16.js.map → menu.config-83ef52b8.js.map} +1 -1
  230. package/build/menu.context-6276be4d.js +2 -0
  231. package/build/{menu.context-458e8152.js.map → menu.context-6276be4d.js.map} +1 -1
  232. package/build/menuButton.component-20d455cb.js +2 -0
  233. package/build/{menuButton.component-19f48d3e.js.map → menuButton.component-20d455cb.js.map} +1 -1
  234. package/build/menuContainer.component-b44ee33f.js +2 -0
  235. package/build/{menuContainer.component-4ea789c7.js.map → menuContainer.component-b44ee33f.js.map} +1 -1
  236. package/build/menuItem.component-f66e36a2.js +2 -0
  237. package/build/{menuItem.component-4b029132.js.map → menuItem.component-f66e36a2.js.map} +1 -1
  238. package/build/menuList.component-7f5f813f.js +2 -0
  239. package/build/menuList.component-7f5f813f.js.map +1 -0
  240. package/build/menuOptionGroup.component-c684dd20.js +2 -0
  241. package/build/{menuOptionGroup.component-d23adf36.js.map → menuOptionGroup.component-c684dd20.js.map} +1 -1
  242. package/build/modal.component-f1f7c5ff.js +2 -0
  243. package/build/{modal.component-e7b9dd3c.js.map → modal.component-f1f7c5ff.js.map} +1 -1
  244. package/build/modalBody.component-d09b5512.js +2 -0
  245. package/build/{modalBody.component-fa160042.js.map → modalBody.component-d09b5512.js.map} +1 -1
  246. package/build/modalCloseButton.component-867d3f29.js +2 -0
  247. package/build/{modalCloseButton.component-762da35a.js.map → modalCloseButton.component-867d3f29.js.map} +1 -1
  248. package/build/modalFooter.component-487913ba.js +2 -0
  249. package/build/{modalFooter.component-3ebc6de1.js.map → modalFooter.component-487913ba.js.map} +1 -1
  250. package/build/modalFooterButtons.component-ca16c190.js +2 -0
  251. package/build/{modalFooterButtons.component-5b764358.js.map → modalFooterButtons.component-ca16c190.js.map} +1 -1
  252. package/build/modalHeader.component-3cd09ba2.js +2 -0
  253. package/build/{modalHeader.component-2e6d90f2.js.map → modalHeader.component-3cd09ba2.js.map} +1 -1
  254. package/build/motion-1db106fa.js +2 -0
  255. package/build/motion-1db106fa.js.map +1 -0
  256. package/build/notificationCounter.component-27fafaa0.js +2 -0
  257. package/build/{notificationCounter.component-92840bbe.js.map → notificationCounter.component-27fafaa0.js.map} +1 -1
  258. package/build/picture.component-c9ffd27e.js +2 -0
  259. package/build/{picture.component-43508cec.js.map → picture.component-c9ffd27e.js.map} +1 -1
  260. package/build/popover.component-35b520f6.js +2 -0
  261. package/build/popover.component-35b520f6.js.map +1 -0
  262. package/build/popoverBody.component-ae4cc471.js +2 -0
  263. package/build/{popoverBody.component-6d4c1892.js.map → popoverBody.component-ae4cc471.js.map} +1 -1
  264. package/build/popoverCloseButton.component-f4857a02.js +2 -0
  265. package/build/{popoverCloseButton.component-9077af2c.js.map → popoverCloseButton.component-f4857a02.js.map} +1 -1
  266. package/build/popoverFooter.component-b39d12d1.js +2 -0
  267. package/build/{popoverFooter.component-04436218.js.map → popoverFooter.component-b39d12d1.js.map} +1 -1
  268. package/build/popoverFooterButtons.component-df7f48a5.js +2 -0
  269. package/build/{popoverFooterButtons.component-b8492486.js.map → popoverFooterButtons.component-df7f48a5.js.map} +1 -1
  270. package/build/popoverHeader.component-0ee69cde.js +2 -0
  271. package/build/{popoverHeader.component-5acdf2b2.js.map → popoverHeader.component-0ee69cde.js.map} +1 -1
  272. package/build/radio.component-77c1b19b.js +2 -0
  273. package/build/{radio.component-c2ed8d10.js.map → radio.component-77c1b19b.js.map} +1 -1
  274. package/build/radioGroup.component-4de2c34a.js +2 -0
  275. package/build/{radioGroup.component-ba9f1040.js.map → radioGroup.component-4de2c34a.js.map} +1 -1
  276. package/build/ratingDot.component-776080cf.js +2 -0
  277. package/build/{ratingDot.component-07c22024.js.map → ratingDot.component-776080cf.js.map} +1 -1
  278. package/build/ratingDots.component-9d3ff8ae.js +2 -0
  279. package/build/{ratingDots.component-f33860ac.js.map → ratingDots.component-9d3ff8ae.js.map} +1 -1
  280. package/build/select.component-e6ee82db.js +2 -0
  281. package/build/{select.component-86768d50.js.map → select.component-e6ee82db.js.map} +1 -1
  282. package/build/shared/argTypes/color.argTypes.d.ts +2 -14
  283. package/build/sortableItem.component-9aab4eb2.js +2 -0
  284. package/build/{sortableItem.component-f3efb731.js.map → sortableItem.component-9aab4eb2.js.map} +1 -1
  285. package/build/sortableItem.context-f7dd54a1.js.map +1 -1
  286. package/build/sortableList.component-8df7a374.js +2 -0
  287. package/build/{sortableList.component-57afe8d0.js.map → sortableList.component-8df7a374.js.map} +1 -1
  288. package/build/sortableOverlay.component-7ecbda06.js.map +1 -1
  289. package/build/spinner.component-f49dcd1b.js +2 -0
  290. package/build/{spinner.component-9799cae4.js.map → spinner.component-f49dcd1b.js.map} +1 -1
  291. package/build/strings-03c30366.js.map +1 -1
  292. package/build/switch.component-9484e902.js +2 -0
  293. package/build/switch.component-9484e902.js.map +1 -0
  294. package/build/tab.component-c67defd1.js +2 -0
  295. package/build/{tab.component-254eefff.js.map → tab.component-c67defd1.js.map} +1 -1
  296. package/build/tabs.component-f2e9b842.js +2 -0
  297. package/build/{tabs.component-0598f01b.js.map → tabs.component-f2e9b842.js.map} +1 -1
  298. package/build/tabsLayout.component-1498781a.js +2 -0
  299. package/build/{tabsLayout.component-47350377.js.map → tabsLayout.component-1498781a.js.map} +1 -1
  300. package/build/tag.component-31c40c4c.js +2 -0
  301. package/build/tag.component-31c40c4c.js.map +1 -0
  302. package/build/text.component-dabbab97.js +2 -0
  303. package/build/{text.component-59069e5f.js.map → text.component-dabbab97.js.map} +1 -1
  304. package/build/textInput.component-f3b72ddc.js +2 -0
  305. package/build/{textInput.component-12cf3d26.js.map → textInput.component-f3b72ddc.js.map} +1 -1
  306. package/build/textarea.component-3e5ce5a3.js +2 -0
  307. package/build/{textarea.component-9f685b2e.js.map → textarea.component-3e5ce5a3.js.map} +1 -1
  308. package/build/theme/index.js +1 -1
  309. package/build/theme/tokens/colors/colors.d.ts +0 -1
  310. package/build/theme/tokens/colors/index.js +1 -1
  311. package/build/theme/tokens/index.js +1 -1
  312. package/build/theme/tokens/index.js.map +1 -1
  313. package/build/theme/tokens/shadows/shadows.d.ts +0 -1
  314. package/build/theme.provider-e8fb98dd.js +2 -0
  315. package/build/theme.provider-e8fb98dd.js.map +1 -0
  316. package/build/timePicker.component-a7817379.js +2 -0
  317. package/build/{timePicker.component-3c5413f2.js.map → timePicker.component-a7817379.js.map} +1 -1
  318. package/build/timeRange.component-85585cde.js +2 -0
  319. package/build/{timeRange.component-6cc86187.js.map → timeRange.component-85585cde.js.map} +1 -1
  320. package/build/tooltip.component-25303330.js +2 -0
  321. package/build/tooltip.component-25303330.js.map +1 -0
  322. package/build/truncatedText.component-02797815.js +2 -0
  323. package/build/truncatedText.component-02797815.js.map +1 -0
  324. package/build/tslib.es6-f01c41a6.js +16 -0
  325. package/build/tslib.es6-f01c41a6.js.map +1 -0
  326. package/build/use-animation-state-5054a9f7.esm-ad9a45c2.js +2 -0
  327. package/build/use-animation-state-5054a9f7.esm-ad9a45c2.js.map +1 -0
  328. package/build/useAdaptiveColor-bd61f863.js +2 -0
  329. package/build/{useAdaptiveColor-65c8eb03.js.map → useAdaptiveColor-bd61f863.js.map} +1 -1
  330. package/build/useAdaptiveColorMap-0a74494f.js +2 -0
  331. package/build/{useAdaptiveColorMap-1feb6ba4.js.map → useAdaptiveColorMap-0a74494f.js.map} +1 -1
  332. package/build/useIconTextSizeMap-b81a72a5.js.map +1 -1
  333. package/build/useTheme-d7d8c3f5.js +2 -0
  334. package/build/{useTheme-48040f6c.js.map → useTheme-d7d8c3f5.js.map} +1 -1
  335. package/build/useToast-6c0cf0cb.js +2 -0
  336. package/build/useToast-6c0cf0cb.js.map +1 -0
  337. package/build/withDarkMode-3fdb3990.js +2 -0
  338. package/build/{withDarkMode-7c6cf1af.js.map → withDarkMode-3fdb3990.js.map} +1 -1
  339. package/build/withTheme-bac0a8eb.js +2 -0
  340. package/build/{withTheme-d639f809.js.map → withTheme-bac0a8eb.js.map} +1 -1
  341. package/package.json +86 -56
  342. package/build/_commonjsHelpers-68cdf74f.js +0 -2
  343. package/build/_commonjsHelpers-68cdf74f.js.map +0 -1
  344. package/build/_tslib-0d5bfb36.js +0 -2
  345. package/build/_tslib-0d5bfb36.js.map +0 -1
  346. package/build/alert.types-4bfe9b13.js +0 -2
  347. package/build/alert.types-4bfe9b13.js.map +0 -1
  348. package/build/avatar.component-73a17380.js +0 -2
  349. package/build/avatarBadge.component-af09e1b9.js +0 -2
  350. package/build/avatarGroup.component-cc62fd0c.js +0 -2
  351. package/build/button.component-c2d44866.js +0 -2
  352. package/build/button.component-c2d44866.js.map +0 -1
  353. package/build/card.component-fd2b0128.js +0 -2
  354. package/build/checkbox.component-41ff7829.js +0 -2
  355. package/build/checkboxGroup.component-029b73fe.js +0 -2
  356. package/build/color.record-2816a958.js +0 -2
  357. package/build/datepicker.types-ff1b8dbc.js +0 -16
  358. package/build/dragHandle.component-909abd36.js +0 -2
  359. package/build/formControl.component-6ae91414.js +0 -2
  360. package/build/heading.component-c8c6cb4e.js +0 -2
  361. package/build/index-ba9f08f2.js +0 -2
  362. package/build/index-ba9f08f2.js.map +0 -1
  363. package/build/link.component-41d1f167.js +0 -2
  364. package/build/menu.component-24e2b4dd.js +0 -2
  365. package/build/menu.context-458e8152.js +0 -2
  366. package/build/menuButton.component-19f48d3e.js +0 -2
  367. package/build/menuContainer.component-4ea789c7.js +0 -2
  368. package/build/menuItem.component-4b029132.js +0 -2
  369. package/build/menuList.component-8b429a33.js +0 -2
  370. package/build/menuList.component-8b429a33.js.map +0 -1
  371. package/build/menuOptionGroup.component-d23adf36.js +0 -2
  372. package/build/modal.component-e7b9dd3c.js +0 -2
  373. package/build/modalBody.component-fa160042.js +0 -2
  374. package/build/modalCloseButton.component-762da35a.js +0 -2
  375. package/build/modalFooter.component-3ebc6de1.js +0 -2
  376. package/build/modalFooterButtons.component-5b764358.js +0 -2
  377. package/build/modalHeader.component-2e6d90f2.js +0 -2
  378. package/build/notificationCounter.component-92840bbe.js +0 -2
  379. package/build/picture.component-43508cec.js +0 -2
  380. package/build/popover.component-2e8dfe27.js +0 -2
  381. package/build/popover.component-2e8dfe27.js.map +0 -1
  382. package/build/popoverBody.component-6d4c1892.js +0 -2
  383. package/build/popoverCloseButton.component-9077af2c.js +0 -2
  384. package/build/popoverFooter.component-04436218.js +0 -2
  385. package/build/popoverFooterButtons.component-b8492486.js +0 -2
  386. package/build/popoverHeader.component-5acdf2b2.js +0 -2
  387. package/build/radio.component-c2ed8d10.js +0 -2
  388. package/build/radioGroup.component-ba9f1040.js +0 -2
  389. package/build/ratingDot.component-07c22024.js +0 -2
  390. package/build/ratingDots.component-f33860ac.js +0 -2
  391. package/build/select.component-86768d50.js +0 -2
  392. package/build/sortableItem.component-f3efb731.js +0 -2
  393. package/build/sortableList.component-57afe8d0.js +0 -2
  394. package/build/spinner.component-9799cae4.js +0 -2
  395. package/build/switch.component-8d28669e.js +0 -2
  396. package/build/switch.component-8d28669e.js.map +0 -1
  397. package/build/tab.component-254eefff.js +0 -2
  398. package/build/tabs.component-0598f01b.js +0 -2
  399. package/build/tabsLayout.component-47350377.js +0 -2
  400. package/build/tag.component-949be715.js +0 -2
  401. package/build/tag.component-949be715.js.map +0 -1
  402. package/build/text.component-59069e5f.js +0 -2
  403. package/build/textInput.component-12cf3d26.js +0 -2
  404. package/build/textarea.component-9f685b2e.js +0 -2
  405. package/build/theme.provider-81dc43bd.js +0 -2
  406. package/build/theme.provider-81dc43bd.js.map +0 -1
  407. package/build/timePicker.component-3c5413f2.js +0 -2
  408. package/build/timeRange.component-6cc86187.js +0 -2
  409. package/build/tooltip.component-0e9a4da1.js +0 -2
  410. package/build/tooltip.component-0e9a4da1.js.map +0 -1
  411. package/build/truncatedText.component-09f32a86.js +0 -2
  412. package/build/truncatedText.component-09f32a86.js.map +0 -1
  413. package/build/useAdaptiveColor-65c8eb03.js +0 -2
  414. package/build/useAdaptiveColorMap-1feb6ba4.js +0 -2
  415. package/build/useTheme-48040f6c.js +0 -2
  416. package/build/withDarkMode-7c6cf1af.js +0 -2
  417. package/build/withTheme-d639f809.js +0 -2
  418. /package/build/icons/{TelevetV.d.ts → Logo.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chakra-ui-input.esm-5e794564.js","sources":["../node_modules/@chakra-ui/input/dist/chakra-ui-input.esm.js"],"sourcesContent":["import { useFormControl } from '@chakra-ui/form-control';\nimport { forwardRef, useMultiStyleConfig, omitThemingProps, chakra, useStyles, StylesProvider } from '@chakra-ui/system';\nimport { cx, __DEV__, filterUndefined } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { getValidChildren } from '@chakra-ui/react-utils';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded$3 = [\"htmlSize\"];\n\n/**\n * Input\n *\n * Element that allows users enter single valued data.\n */\nvar Input = /*#__PURE__*/forwardRef(function (props, ref) {\n var htmlSize = props.htmlSize,\n rest = _objectWithoutPropertiesLoose(props, _excluded$3);\n\n var styles = useMultiStyleConfig(\"Input\", rest);\n var ownProps = omitThemingProps(rest);\n var input = useFormControl(ownProps);\n\n var _className = cx(\"chakra-input\", props.className);\n\n return /*#__PURE__*/React.createElement(chakra.input, _extends({\n size: htmlSize\n }, input, {\n __css: styles.field,\n ref: ref,\n className: _className\n }));\n});\n\nif (__DEV__) {\n Input.displayName = \"Input\";\n} // This is used in `input-group.tsx`\n\n\nInput.id = \"Input\";\n\nvar _excluded$2 = [\"placement\"];\nvar placements = {\n left: {\n marginEnd: \"-1px\",\n borderEndRadius: 0,\n borderEndColor: \"transparent\"\n },\n right: {\n marginStart: \"-1px\",\n borderStartRadius: 0,\n borderStartColor: \"transparent\"\n }\n};\nvar StyledAddon = chakra(\"div\", {\n baseStyle: {\n flex: \"0 0 auto\",\n width: \"auto\",\n display: \"flex\",\n alignItems: \"center\",\n whiteSpace: \"nowrap\"\n }\n});\n\n/**\n * InputAddon\n *\n * Element to append or prepend to an input\n */\nvar InputAddon = /*#__PURE__*/forwardRef(function (props, ref) {\n var _placements$placement;\n\n var _props$placement = props.placement,\n placement = _props$placement === void 0 ? \"left\" : _props$placement,\n rest = _objectWithoutPropertiesLoose(props, _excluded$2);\n\n var placementStyles = (_placements$placement = placements[placement]) != null ? _placements$placement : {};\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(StyledAddon, _extends({\n ref: ref\n }, rest, {\n __css: _extends({}, styles.addon, placementStyles)\n }));\n});\n\nif (__DEV__) {\n InputAddon.displayName = \"InputAddon\";\n}\n/**\n * InputLeftAddon\n *\n * Element to append to the left of an input\n */\n\n\nvar InputLeftAddon = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(InputAddon, _extends({\n ref: ref,\n placement: \"left\"\n }, props, {\n className: cx(\"chakra-input__left-addon\", props.className)\n }));\n});\n\nif (__DEV__) {\n InputLeftAddon.displayName = \"InputLeftAddon\";\n} // This is used in `input-group.tsx`\n\n\nInputLeftAddon.id = \"InputLeftAddon\";\n/**\n * InputRightAddon\n *\n * Element to append to the right of an input\n */\n\nvar InputRightAddon = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(InputAddon, _extends({\n ref: ref,\n placement: \"right\"\n }, props, {\n className: cx(\"chakra-input__right-addon\", props.className)\n }));\n});\n\nif (__DEV__) {\n InputRightAddon.displayName = \"InputRightAddon\";\n} // This is used in `input-group.tsx`\n\n\nInputRightAddon.id = \"InputRightAddon\";\n\nvar _excluded$1 = [\"children\", \"className\"];\nvar InputGroup = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useMultiStyleConfig(\"Input\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n children = _omitThemingProps.children,\n className = _omitThemingProps.className,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$1);\n\n var _className = cx(\"chakra-input__group\", className);\n\n var groupStyles = {};\n var validChildren = getValidChildren(children);\n var input = styles.field;\n validChildren.forEach(function (child) {\n if (!styles) return;\n\n if (input && child.type.id === \"InputLeftElement\") {\n var _input$height;\n\n groupStyles.paddingStart = (_input$height = input.height) != null ? _input$height : input.h;\n }\n\n if (input && child.type.id === \"InputRightElement\") {\n var _input$height2;\n\n groupStyles.paddingEnd = (_input$height2 = input.height) != null ? _input$height2 : input.h;\n }\n\n if (child.type.id === \"InputRightAddon\") {\n groupStyles.borderEndRadius = 0;\n }\n\n if (child.type.id === \"InputLeftAddon\") {\n groupStyles.borderStartRadius = 0;\n }\n });\n var clones = validChildren.map(function (child) {\n var _child$props, _child$props2;\n\n /**\n * Make it possible to override the size and variant from `Input`\n */\n var theming = filterUndefined({\n size: ((_child$props = child.props) == null ? void 0 : _child$props.size) || props.size,\n variant: ((_child$props2 = child.props) == null ? void 0 : _child$props2.variant) || props.variant\n });\n return child.type.id !== \"Input\" ? /*#__PURE__*/React.cloneElement(child, theming) : /*#__PURE__*/React.cloneElement(child, Object.assign(theming, groupStyles, child.props));\n });\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: _className,\n ref: ref,\n __css: {\n width: \"100%\",\n display: \"flex\",\n position: \"relative\"\n }\n }, rest), /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, clones));\n});\n\nif (__DEV__) {\n InputGroup.displayName = \"InputGroup\";\n}\n\nvar _excluded = [\"placement\"],\n _excluded2 = [\"className\"],\n _excluded3 = [\"className\"];\nvar StyledElement = chakra(\"div\", {\n baseStyle: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"absolute\",\n top: \"0\",\n zIndex: 2\n }\n});\nvar InputElement = /*#__PURE__*/forwardRef(function (props, ref) {\n var _input$height, _input$height2, _extends2;\n\n var _props$placement = props.placement,\n placement = _props$placement === void 0 ? \"left\" : _props$placement,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n\n var styles = useStyles();\n var input = styles.field;\n var attr = placement === \"left\" ? \"insetStart\" : \"insetEnd\";\n\n var elementStyles = _extends((_extends2 = {}, _extends2[attr] = \"0\", _extends2.width = (_input$height = input == null ? void 0 : input.height) != null ? _input$height : input == null ? void 0 : input.h, _extends2.height = (_input$height2 = input == null ? void 0 : input.height) != null ? _input$height2 : input == null ? void 0 : input.h, _extends2.fontSize = input == null ? void 0 : input.fontSize, _extends2), styles.element);\n\n return /*#__PURE__*/React.createElement(StyledElement, _extends({\n ref: ref,\n __css: elementStyles\n }, rest));\n}); // This is used in `input-group.tsx`\n\nInputElement.id = \"InputElement\";\n\nif (__DEV__) {\n InputElement.displayName = \"InputElement\";\n}\n\nvar InputLeftElement = /*#__PURE__*/forwardRef(function (props, ref) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n var _className = cx(\"chakra-input__left-element\", className);\n\n return /*#__PURE__*/React.createElement(InputElement, _extends({\n ref: ref,\n placement: \"left\",\n className: _className\n }, rest));\n}); // This is used in `input-group.tsx`\n\nInputLeftElement.id = \"InputLeftElement\";\n\nif (__DEV__) {\n InputLeftElement.displayName = \"InputLeftElement\";\n}\n\nvar InputRightElement = /*#__PURE__*/forwardRef(function (props, ref) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded3);\n\n var _className = cx(\"chakra-input__right-element\", className);\n\n return /*#__PURE__*/React.createElement(InputElement, _extends({\n ref: ref,\n placement: \"right\",\n className: _className\n }, rest));\n}); // This is used in `input-group.tsx`\n\nInputRightElement.id = \"InputRightElement\";\n\nif (__DEV__) {\n InputRightElement.displayName = \"InputRightElement\";\n}\n\nexport { Input, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$3","Input","forwardRef","props","ref","htmlSize","rest","styles","useMultiStyleConfig","ownProps","omitThemingProps","input","useFormControl","_className","cx","className","React","createElement","chakra","size","__css","field","__DEV__","displayName","id","_excluded$2","placements","left","marginEnd","borderEndRadius","borderEndColor","right","marginStart","borderStartRadius","borderStartColor","StyledAddon","baseStyle","flex","width","display","alignItems","whiteSpace","InputAddon","_placements$placement","_props$placement","placement","placementStyles","useStyles","addon","InputLeftAddon","InputRightAddon","_excluded$1","InputGroup","_omitThemingProps","children","groupStyles","validChildren","getValidChildren","forEach","child","_input$height","_input$height2","type","paddingStart","height","h","paddingEnd","clones","map","_child$props","_child$props2","theming","filterUndefined","variant","cloneElement","div","position","StylesProvider","value","_excluded","_excluded2","_excluded3","StyledElement","justifyContent","top","zIndex","InputElement","_extends2","elementStyles","fontSize","element","InputLeftElement","InputRightElement"],"mappings":"gbAMA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,IAK3B,OAAOL,GAGFH,EAASY,MAAMC,KAAMR,WAG9B,SAASS,EAA8BP,EAAQQ,GAC7C,GAAc,MAAVR,EAAgB,MAAO,GAC3B,IAEIC,EAAKJ,EAFLD,EAAS,GACT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J,EAAyB,MAATjD,OAAgB,EAASA,EAAMsD,EAAGsB,EAAUvB,OAAqE,OAA3DH,EAA0B,MAATlD,OAAgB,EAASA,EAAMqD,QAAkBH,EAA0B,MAATlD,OAAgB,EAASA,EAAMsD,EAAGsB,EAAUE,SAAoB,MAAT9E,OAAgB,EAASA,EAAM8E,SAAUF,GAAYhF,EAAOmF,SAEra,OAAoB1E,EAAMC,cAAciE,EAAerG,EAAS,CAC9DuB,IAAKA,EACLgB,MAAOoE,GACNlF,OAGLgF,EAAa9D,GAAK,eAEdF,YACFgE,EAAa/D,YAAc,gBAG1B,IAACoE,EAAgCzF,EAAUA,YAAC,SAAUC,EAAOC,GAC9D,IAAIW,EAAYZ,EAAMY,UAClBT,EAAOX,EAA8BQ,EAAO6E,GAE5CnE,EAAaC,EAAAA,GAAG,6BAA8BC,GAElD,OAAoBC,EAAMC,cAAcqE,EAAczG,EAAS,CAC7DuB,IAAKA,EACLyC,UAAW,OACX9B,UAAWF,GACVP,OAGLqF,EAAiBnE,GAAK,mBAElBF,YACFqE,EAAiBpE,YAAc,oBAG9B,IAACqE,EAAiC1F,EAAUA,YAAC,SAAUC,EAAOC,GAC/D,IAAIW,EAAYZ,EAAMY,UAClBT,EAAOX,EAA8BQ,EAAO8E,GAE5CpE,EAAaC,EAAAA,GAAG,8BAA+BC,GAEnD,OAAoBC,EAAMC,cAAcqE,EAAczG,EAAS,CAC7DuB,IAAKA,EACLyC,UAAW,QACX9B,UAAWF,GACVP,OAGLsF,EAAkBpE,GAAK,oBAEnBF,YACFsE,EAAkBrE,YAAc"}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("./chakra-ui-system.esm-b563b97d.js"),r=require("react"),a=require("./chakra-ui-icon.esm-30b0b8a9.js");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}})),r.default=e,Object.freeze(r)}var n=t(r);function i(){return i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},i.apply(this,arguments)}function o(e,r){if(null==e)return{};var a,t,n={},i=Object.keys(e);for(t=0;t<i.length;t++)a=i[t],r.indexOf(a)>=0||(n[a]=e[a]);return n}var s=["ratio","children","className"],c=e.forwardRef((function(r,a){var t=r.ratio,c=void 0===t?4/3:t,l=r.children,d=r.className,m=o(r,s),p=n.Children.only(l),f=e.cx("chakra-aspect-ratio",d);return n.createElement(e.chakra.div,i({ref:a,position:"relative",className:f,_before:{height:0,content:'""',display:"block",paddingBottom:e.mapResponsive(c,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},m),p)}));e.__DEV__&&(c.displayName="AspectRatio");var l=["className"],d=e.forwardRef((function(r,a){var t=e.useStyleConfig("Badge",r),s=e.omitThemingProps(r);s.className;var c=o(s,l);return n.createElement(e.chakra.span,i({ref:a,className:e.cx("chakra-badge",r.className)},c,{__css:i({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},t)}))}));e.__DEV__&&(d.displayName="Badge");var m=["size","centerContent"],p=["size"],f=e.chakra("div");e.__DEV__&&(f.displayName="Box");var u=e.forwardRef((function(e,r){var a=e.size,t=e.centerContent,s=void 0===t||t,c=o(e,m),l=s?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return n.createElement(f,i({ref:r,boxSize:a,__css:i({},l,{flexShrink:0,flexGrow:0})},c))}));e.__DEV__&&(u.displayName="Square");var _=e.forwardRef((function(e,r){var a=e.size,t=o(e,p);return n.createElement(u,i({size:a,ref:r,borderRadius:"9999px"},t))}));e.__DEV__&&(_.displayName="Circle");var g=e.chakra("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});e.__DEV__&&(g.displayName="Center");var h=["className"],v=e.forwardRef((function(r,a){var t=e.useStyleConfig("Code",r),s=e.omitThemingProps(r);s.className;var c=o(s,h);return n.createElement(e.chakra.code,i({ref:a,className:e.cx("chakra-code",r.className)},c,{__css:i({display:"inline-block"},t)}))}));e.__DEV__&&(v.displayName="Code");var y=["className","centerContent"],x=e.forwardRef((function(r,a){var t=e.omitThemingProps(r),s=t.className,c=t.centerContent,l=o(t,y),d=e.useStyleConfig("Container",r);return n.createElement(e.chakra.div,i({ref:a,className:e.cx("chakra-container",s)},l,{__css:i({},d,c&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));e.__DEV__&&(x.displayName="Container");var w=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],k=["className","orientation","__css"],N=e.forwardRef((function(r,a){var t=e.useStyleConfig("Divider",r),s=t.borderLeftWidth,c=t.borderBottomWidth,l=t.borderTopWidth,d=t.borderRightWidth,m=t.borderWidth,p=t.borderStyle,f=t.borderColor,u=o(t,w),_=e.omitThemingProps(r),g=_.className,h=_.orientation,v=void 0===h?"horizontal":h,y=_.__css,x=o(_,k),N={vertical:{borderLeftWidth:s||d||m||"1px",height:"100%"},horizontal:{borderBottomWidth:c||l||m||"1px",width:"100%"}};return n.createElement(e.chakra.hr,i({ref:a,"aria-orientation":v},x,{__css:i({},u,{border:"0",borderColor:f,borderStyle:p},N[v],y),className:e.cx("chakra-divider",g)}))}));e.__DEV__&&(N.displayName="Divider");var E=["direction","align","justify","wrap","basis","grow","shrink"],b=e.forwardRef((function(r,a){var t=r.direction,s=r.align,c=r.justify,l=r.wrap,d=r.basis,m=r.grow,p=r.shrink,f=o(r,E),u={display:"flex",flexDirection:t,alignItems:s,justifyContent:c,flexWrap:l,flexBasis:d,flexGrow:m,flexShrink:p};return n.createElement(e.chakra.div,i({ref:a,__css:u},f))}));e.__DEV__&&(b.displayName="Flex");var C=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],S=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],R=e.forwardRef((function(r,a){var t=r.area,s=r.templateAreas,c=r.gap,l=r.rowGap,d=r.columnGap,m=r.column,p=r.row,f=r.autoFlow,u=r.autoRows,_=r.templateRows,g=r.autoColumns,h=r.templateColumns,v=o(r,C),y={display:"grid",gridArea:t,gridTemplateAreas:s,gridGap:c,gridRowGap:l,gridColumnGap:d,gridAutoColumns:g,gridColumn:m,gridRow:p,gridAutoFlow:f,gridAutoRows:u,gridTemplateRows:_,gridTemplateColumns:h};return n.createElement(e.chakra.div,i({ref:a,__css:y},v))}));function D(r){return e.mapResponsive(r,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}e.__DEV__&&(R.displayName="Grid");var W=e.forwardRef((function(r,a){var t=r.area,s=r.colSpan,c=r.colStart,l=r.colEnd,d=r.rowEnd,m=r.rowSpan,p=r.rowStart,f=o(r,S),u=e.filterUndefined({gridArea:t,gridColumn:D(s),gridRow:D(m),gridColumnStart:c,gridColumnEnd:l,gridRowStart:p,gridRowEnd:d});return n.createElement(e.chakra.div,i({ref:a,__css:u},f))})),V=["className"],T=e.forwardRef((function(r,a){var t=e.useStyleConfig("Heading",r),s=e.omitThemingProps(r);s.className;var c=o(s,V);return n.createElement(e.chakra.h2,i({ref:a,className:e.cx("chakra-heading",r.className)},c,{__css:t}))}));e.__DEV__&&(T.displayName="Heading");var j=["className"],L=e.forwardRef((function(r,a){var t=e.useStyleConfig("Kbd",r),s=e.omitThemingProps(r),c=s.className,l=o(s,j);return n.createElement(e.chakra.kbd,i({ref:a,className:e.cx("chakra-kbd",c)},l,{__css:i({fontFamily:"mono"},t)}))}));e.__DEV__&&(L.displayName="Kbd");var B=["className","isExternal"],I=e.forwardRef((function(r,a){var t=e.useStyleConfig("Link",r),s=e.omitThemingProps(r),c=s.className,l=s.isExternal,d=o(s,B);return n.createElement(e.chakra.a,i({target:l?"_blank":void 0,rel:l?"noopener":void 0,ref:a,className:e.cx("chakra-link",c)},d,{__css:t}))}));e.__DEV__&&(I.displayName="Link");var G=["children","styleType","stylePosition","spacing"],P=["as"],O=["as"],z=e.createContext({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),A=z[0],F=z[1],M=e.forwardRef((function(r,a){var t,s=e.useMultiStyleConfig("List",r),c=e.omitThemingProps(r),l=c.children,d=c.styleType,m=void 0===d?"none":d,p=c.stylePosition,f=c.spacing,u=o(c,G),_=e.getValidChildren(l),g=f?((t={})["& > *:not(style) ~ *:not(style)"]={mt:f},t):{};return n.createElement(A,{value:s},n.createElement(e.chakra.ul,i({ref:a,listStyleType:m,listStylePosition:p,role:"list",__css:i({},s.container,g)},u),_))}));e.__DEV__&&(M.displayName="List");var X=e.forwardRef((function(e,r){e.as;var a=o(e,P);return n.createElement(M,i({ref:r,as:"ol",styleType:"decimal",marginStart:"1em"},a))}));e.__DEV__&&(X.displayName="OrderedList");var Y=e.forwardRef((function(e,r){e.as;var a=o(e,O);return n.createElement(M,i({ref:r,as:"ul",styleType:"initial",marginStart:"1em"},a))}));e.__DEV__&&(Y.displayName="UnorderedList");var q=e.forwardRef((function(r,a){var t=F();return n.createElement(e.chakra.li,i({ref:a},r,{__css:t.item}))}));e.__DEV__&&(q.displayName="ListItem");var H=e.forwardRef((function(e,r){var t=F();return n.createElement(a.Icon,i({ref:r,role:"presentation"},e,{__css:t.icon}))}));e.__DEV__&&(H.displayName="ListIcon");var U=["columns","spacingX","spacingY","spacing","minChildWidth"],K=e.forwardRef((function(r,a){var t,s,c=r.columns,l=r.spacingX,d=r.spacingY,m=r.spacing,p=r.minChildWidth,f=o(r,U),u=p?(s=p,e.mapResponsive(s,(function(r){return e.isNull(r)?null:"repeat(auto-fit, minmax("+(a=r,(e.isNumber(a)?a+"px":a)+", 1fr))");var a}))):(t=c,e.mapResponsive(t,(function(r){return e.isNull(r)?null:"repeat("+r+", minmax(0, 1fr))"})));return n.createElement(R,i({ref:a,gap:m,columnGap:l,rowGap:d,templateColumns:u},f))}));e.__DEV__&&(K.displayName="SimpleGrid");var J=e.chakra("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});e.__DEV__&&(J.displayName="Spacer");var Q="& > *:not(style) ~ *:not(style)";var Z=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],$=function(r){return n.createElement(e.chakra.div,i({className:"chakra-stack__item"},r,{__css:i({display:"inline-block",flex:"0 0 auto",minWidth:0},r.__css)}))},ee=e.forwardRef((function(r,a){var t,s=r.isInline,c=r.direction,l=r.align,d=r.justify,m=r.spacing,p=void 0===m?"0.5rem":m,f=r.wrap,u=r.children,_=r.divider,g=r.className,h=r.shouldWrapChildren,v=o(r,Z),y=s?"row":null!=c?c:"column",x=n.useMemo((function(){return function(r){var a,t=r.spacing,n=r.direction,i={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return(a={flexDirection:n})[Q]=e.mapResponsive(n,(function(e){return i[e]})),a}({direction:y,spacing:p})}),[y,p]),w=n.useMemo((function(){return function(r){var a=r.spacing,t=r.direction,n={column:{my:a,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:a,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:a,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:a,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":e.mapResponsive(t,(function(e){return n[e]}))}}({spacing:p,direction:y})}),[p,y]),k=!!_,N=!h&&!k,E=e.getValidChildren(u),b=N?E:E.map((function(e,r){var a=void 0!==e.key?e.key:r,t=r+1===E.length,i=h?n.createElement($,{key:a},e):e;if(!k)return i;var o=t?null:n.cloneElement(_,{__css:w});return n.createElement(n.Fragment,{key:a},i,o)})),C=e.cx("chakra-stack",g);return n.createElement(e.chakra.div,i({ref:a,display:"flex",alignItems:l,justifyContent:d,flexDirection:x.flexDirection,flexWrap:f,className:C,__css:k?{}:(t={},t[Q]=x[Q],t)},v),b)}));e.__DEV__&&(ee.displayName="Stack");var re=e.forwardRef((function(e,r){return n.createElement(ee,i({align:"center"},e,{direction:"row",ref:r}))}));e.__DEV__&&(re.displayName="HStack");var ae=e.forwardRef((function(e,r){return n.createElement(ee,i({align:"center"},e,{direction:"column",ref:r}))}));e.__DEV__&&(ae.displayName="VStack");var te=["className","align","decoration","casing"],ne=e.forwardRef((function(r,a){var t=e.useStyleConfig("Text",r),s=e.omitThemingProps(r);s.className,s.align,s.decoration,s.casing;var c=o(s,te),l=e.filterUndefined({textAlign:r.align,textDecoration:r.decoration,textTransform:r.casing});return n.createElement(e.chakra.p,i({ref:a,className:e.cx("chakra-text",r.className)},l,c,{__css:t}))}));e.__DEV__&&(ne.displayName="Text");var ie=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],oe=["className"],se=e.forwardRef((function(r,a){var t=r.spacing,s=void 0===t?"0.5rem":t,c=r.spacingX,l=r.spacingY,d=r.children,m=r.justify,p=r.direction,f=r.align,u=r.className,_=r.shouldWrapChildren,g=o(r,ie),h=n.useMemo((function(){var r={spacingX:c,spacingY:l},a=r.spacingX,t=void 0===a?s:a,n=r.spacingY,i=void 0===n?s:n;return{"--chakra-wrap-x-spacing":function(r){return e.mapResponsive(t,(function(a){return e.tokenToCSSVar("space",a)(r)}))},"--chakra-wrap-y-spacing":function(r){return e.mapResponsive(i,(function(a){return e.tokenToCSSVar("space",a)(r)}))},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:m,alignItems:f,flexDirection:p,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}}),[s,c,l,m,f,p]),v=_?n.Children.map(d,(function(e,r){return n.createElement(ce,{key:r},e)})):d;return n.createElement(e.chakra.div,i({ref:a,className:e.cx("chakra-wrap",u)},g),n.createElement(e.chakra.ul,{className:"chakra-wrap__list",__css:h},v))}));e.__DEV__&&(se.displayName="Wrap");var ce=e.forwardRef((function(r,a){var t=r.className,s=o(r,oe);return n.createElement(e.chakra.li,i({ref:a,__css:{display:"flex",alignItems:"flex-start"},className:e.cx("chakra-wrap__listitem",t)},s))}));e.__DEV__&&(ce.displayName="WrapItem");var le=["isExternal","target","rel","className"],de=["className"],me=e.forwardRef((function(r,a){var t=r.isExternal,s=r.target,c=r.rel,l=r.className,d=o(r,le);return n.createElement(e.chakra.a,i({},d,{ref:a,className:e.cx("chakra-linkbox__overlay",l),rel:t?"noopener noreferrer":c,target:t?"_blank":s,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:1,width:"100%",height:"100%"}}}))})),pe=e.forwardRef((function(r,a){var t=r.className,s=o(r,de);return n.createElement(e.chakra.div,i({ref:a,position:"relative"},s,{className:e.cx("chakra-linkbox",t),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title], button":{position:"relative",zIndex:1}}}))}));exports.Badge=d,exports.Box=f,exports.Center=g,exports.Circle=_,exports.Code=v,exports.Container=x,exports.Divider=N,exports.Flex=b,exports.Grid=R,exports.GridItem=W,exports.HStack=re,exports.Heading=T,exports.Link=I,exports.LinkBox=pe,exports.LinkOverlay=me,exports.List=M,exports.ListItem=q,exports.OrderedList=X,exports.SimpleGrid=K,exports.Spacer=J,exports.Square=u,exports.Stack=ee,exports.Text=ne,exports.UnorderedList=Y,exports.VStack=ae,exports.Wrap=se,exports.WrapItem=ce;
2
+ //# sourceMappingURL=chakra-ui-layout.esm-493ee04b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chakra-ui-layout.esm-493ee04b.js","sources":["../node_modules/@chakra-ui/layout/dist/chakra-ui-layout.esm.js"],"sourcesContent":["import { forwardRef, chakra, useStyleConfig, omitThemingProps, useMultiStyleConfig, tokenToCSSVar } from '@chakra-ui/system';\nimport { cx, mapResponsive, __DEV__, filterUndefined, isNull, isNumber } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { Icon } from '@chakra-ui/icon';\nimport { createContext, getValidChildren } from '@chakra-ui/react-utils';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded$h = [\"ratio\", \"children\", \"className\"];\n\n/**\n * React component used to cropping media (videos, images and maps)\n * to a desired aspect ratio.\n *\n * @see Docs https://chakra-ui.com/aspectratiobox\n */\nvar AspectRatio = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$ratio = props.ratio,\n ratio = _props$ratio === void 0 ? 4 / 3 : _props$ratio,\n children = props.children,\n className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded$h); // enforce single child\n\n\n var child = React.Children.only(children);\n\n var _className = cx(\"chakra-aspect-ratio\", className);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n position: \"relative\",\n className: _className,\n _before: {\n height: 0,\n content: \"\\\"\\\"\",\n display: \"block\",\n paddingBottom: mapResponsive(ratio, function (r) {\n return 1 / r * 100 + \"%\";\n })\n },\n __css: {\n \"& > *:not(style)\": {\n overflow: \"hidden\",\n position: \"absolute\",\n top: \"0\",\n right: \"0\",\n bottom: \"0\",\n left: \"0\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n width: \"100%\",\n height: \"100%\"\n },\n \"& > img, & > video\": {\n objectFit: \"cover\"\n }\n }\n }, rest), child);\n});\n\nif (__DEV__) {\n AspectRatio.displayName = \"AspectRatio\";\n}\n\nvar _excluded$g = [\"className\"];\n\n/**\n * React component used to display notifications, messages, or\n * statuses in different shapes and sizes.\n *\n * @see Docs https://chakra-ui.com/badge\n */\nvar Badge = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Badge\", props);\n\n var _omitThemingProps = omitThemingProps(props);\n _omitThemingProps.className;\n var rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$g);\n\n return /*#__PURE__*/React.createElement(chakra.span, _extends({\n ref: ref,\n className: cx(\"chakra-badge\", props.className)\n }, rest, {\n __css: _extends({\n display: \"inline-block\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\"\n }, styles)\n }));\n});\n\nif (__DEV__) {\n Badge.displayName = \"Badge\";\n}\n\nvar _excluded$f = [\"size\", \"centerContent\"],\n _excluded2$5 = [\"size\"];\n\n/**\n * Box is the most abstract component on top of which other chakra\n * components are built. It renders a `div` element by default.\n *\n * @see Docs https://chakra-ui.com/box\n */\nvar Box = chakra(\"div\");\n\nif (__DEV__) {\n Box.displayName = \"Box\";\n}\n/**\n * As a constraint, you can't pass size related props\n * Only `size` would be allowed\n */\n\n\nvar Square = /*#__PURE__*/forwardRef(function (props, ref) {\n var size = props.size,\n _props$centerContent = props.centerContent,\n centerContent = _props$centerContent === void 0 ? true : _props$centerContent,\n rest = _objectWithoutPropertiesLoose(props, _excluded$f);\n\n var styles = centerContent ? {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n } : {};\n return /*#__PURE__*/React.createElement(Box, _extends({\n ref: ref,\n boxSize: size,\n __css: _extends({}, styles, {\n flexShrink: 0,\n flexGrow: 0\n })\n }, rest));\n});\n\nif (__DEV__) {\n Square.displayName = \"Square\";\n}\n\nvar Circle = /*#__PURE__*/forwardRef(function (props, ref) {\n var size = props.size,\n rest = _objectWithoutPropertiesLoose(props, _excluded2$5);\n\n return /*#__PURE__*/React.createElement(Square, _extends({\n size: size,\n ref: ref,\n borderRadius: \"9999px\"\n }, rest));\n});\n\nif (__DEV__) {\n Circle.displayName = \"Circle\";\n}\n\nvar _excluded$e = [\"axis\"];\n\n/**\n * React component used to horizontally and vertically center its child.\n * It uses the popular `display: flex` centering technique.\n *\n * @see Docs https://chakra-ui.com/center\n */\nvar Center = chakra(\"div\", {\n baseStyle: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n }\n});\n\nif (__DEV__) {\n Center.displayName = \"Center\";\n}\n\nvar centerStyles = {\n horizontal: {\n insetStart: \"50%\",\n transform: \"translateX(-50%)\"\n },\n vertical: {\n top: \"50%\",\n transform: \"translateY(-50%)\"\n },\n both: {\n insetStart: \"50%\",\n top: \"50%\",\n transform: \"translate(-50%, -50%)\"\n }\n};\n/**\n * React component used to horizontally and vertically center an element\n * relative to its parent dimensions.\n *\n * It uses the `position: absolute` strategy.\n *\n * @see Docs https://chakra-ui.com/center\n * @see WebDev https://web.dev/centering-in-css/#5.-pop-and-plop\n */\n\nvar AbsoluteCenter = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$axis = props.axis,\n axis = _props$axis === void 0 ? \"both\" : _props$axis,\n rest = _objectWithoutPropertiesLoose(props, _excluded$e);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n __css: centerStyles[axis]\n }, rest, {\n position: \"absolute\"\n }));\n});\n\nvar _excluded$d = [\"className\"];\n\n/**\n * React component to render inline code snippets.\n *\n * @see Docs https://chakra-ui.com/code\n */\nvar Code = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Code\", props);\n\n var _omitThemingProps = omitThemingProps(props);\n _omitThemingProps.className;\n var rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$d);\n\n return /*#__PURE__*/React.createElement(chakra.code, _extends({\n ref: ref,\n className: cx(\"chakra-code\", props.className)\n }, rest, {\n __css: _extends({\n display: \"inline-block\"\n }, styles)\n }));\n});\n\nif (__DEV__) {\n Code.displayName = \"Code\";\n}\n\nvar _excluded$c = [\"className\", \"centerContent\"];\n\n/**\n * Layout component used to wrap app or website content\n *\n * It sets `margin-left` and `margin-right` to `auto`,\n * to keep its content centered.\n *\n * It also sets a default max-width of `60ch` (60 characters).\n */\nvar Container = /*#__PURE__*/forwardRef(function (props, ref) {\n var _omitThemingProps = omitThemingProps(props),\n className = _omitThemingProps.className,\n centerContent = _omitThemingProps.centerContent,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$c);\n\n var styles = useStyleConfig(\"Container\", props);\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n className: cx(\"chakra-container\", className)\n }, rest, {\n __css: _extends({}, styles, centerContent && {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\"\n })\n }));\n});\n\nif (__DEV__) {\n Container.displayName = \"Container\";\n}\n\nvar _excluded$b = [\"borderLeftWidth\", \"borderBottomWidth\", \"borderTopWidth\", \"borderRightWidth\", \"borderWidth\", \"borderStyle\", \"borderColor\"],\n _excluded2$4 = [\"className\", \"orientation\", \"__css\"];\n/**\n * Layout component used to visually separate content in a list or group.\n * It displays a thin horizontal or vertical line, and renders a `hr` tag.\n *\n * @see Docs https://chakra-ui.com/divider\n */\n\nvar Divider = /*#__PURE__*/forwardRef(function (props, ref) {\n var _useStyleConfig = useStyleConfig(\"Divider\", props),\n borderLeftWidth = _useStyleConfig.borderLeftWidth,\n borderBottomWidth = _useStyleConfig.borderBottomWidth,\n borderTopWidth = _useStyleConfig.borderTopWidth,\n borderRightWidth = _useStyleConfig.borderRightWidth,\n borderWidth = _useStyleConfig.borderWidth,\n borderStyle = _useStyleConfig.borderStyle,\n borderColor = _useStyleConfig.borderColor,\n styles = _objectWithoutPropertiesLoose(_useStyleConfig, _excluded$b);\n\n var _omitThemingProps = omitThemingProps(props),\n className = _omitThemingProps.className,\n _omitThemingProps$ori = _omitThemingProps.orientation,\n orientation = _omitThemingProps$ori === void 0 ? \"horizontal\" : _omitThemingProps$ori,\n __css = _omitThemingProps.__css,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded2$4);\n\n var dividerStyles = {\n vertical: {\n borderLeftWidth: borderLeftWidth || borderRightWidth || borderWidth || \"1px\",\n height: \"100%\"\n },\n horizontal: {\n borderBottomWidth: borderBottomWidth || borderTopWidth || borderWidth || \"1px\",\n width: \"100%\"\n }\n };\n return /*#__PURE__*/React.createElement(chakra.hr, _extends({\n ref: ref,\n \"aria-orientation\": orientation\n }, rest, {\n __css: _extends({}, styles, {\n border: \"0\",\n borderColor: borderColor,\n borderStyle: borderStyle\n }, dividerStyles[orientation], __css),\n className: cx(\"chakra-divider\", className)\n }));\n});\n\nif (__DEV__) {\n Divider.displayName = \"Divider\";\n}\n\nvar _excluded$a = [\"direction\", \"align\", \"justify\", \"wrap\", \"basis\", \"grow\", \"shrink\"];\n\n/**\n * React component used to create flexbox layouts.\n *\n * It renders a `div` with `display: flex` and\n * comes with helpful style shorthand.\n *\n * @see Docs https://chakra-ui.com/flex\n */\nvar Flex = /*#__PURE__*/forwardRef(function (props, ref) {\n var direction = props.direction,\n align = props.align,\n justify = props.justify,\n wrap = props.wrap,\n basis = props.basis,\n grow = props.grow,\n shrink = props.shrink,\n rest = _objectWithoutPropertiesLoose(props, _excluded$a);\n\n var styles = {\n display: \"flex\",\n flexDirection: direction,\n alignItems: align,\n justifyContent: justify,\n flexWrap: wrap,\n flexBasis: basis,\n flexGrow: grow,\n flexShrink: shrink\n };\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n __css: styles\n }, rest));\n});\n\nif (__DEV__) {\n Flex.displayName = \"Flex\";\n}\n\nvar _excluded$9 = [\"area\", \"templateAreas\", \"gap\", \"rowGap\", \"columnGap\", \"column\", \"row\", \"autoFlow\", \"autoRows\", \"templateRows\", \"autoColumns\", \"templateColumns\"],\n _excluded2$3 = [\"area\", \"colSpan\", \"colStart\", \"colEnd\", \"rowEnd\", \"rowSpan\", \"rowStart\"];\n\n/**\n * React component used to create grid layouts.\n *\n * It renders a `div` with `display: grid` and\n * comes with helpful style shorthand.\n *\n * @see Docs https://chakra-ui.com/grid\n */\nvar Grid = /*#__PURE__*/forwardRef(function (props, ref) {\n var area = props.area,\n templateAreas = props.templateAreas,\n gap = props.gap,\n rowGap = props.rowGap,\n columnGap = props.columnGap,\n column = props.column,\n row = props.row,\n autoFlow = props.autoFlow,\n autoRows = props.autoRows,\n templateRows = props.templateRows,\n autoColumns = props.autoColumns,\n templateColumns = props.templateColumns,\n rest = _objectWithoutPropertiesLoose(props, _excluded$9);\n\n var styles = {\n display: \"grid\",\n gridArea: area,\n gridTemplateAreas: templateAreas,\n gridGap: gap,\n gridRowGap: rowGap,\n gridColumnGap: columnGap,\n gridAutoColumns: autoColumns,\n gridColumn: column,\n gridRow: row,\n gridAutoFlow: autoFlow,\n gridAutoRows: autoRows,\n gridTemplateRows: templateRows,\n gridTemplateColumns: templateColumns\n };\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n __css: styles\n }, rest));\n});\n\nif (__DEV__) {\n Grid.displayName = \"Grid\";\n}\n\nfunction spanFn(span) {\n return mapResponsive(span, function (value) {\n return value === \"auto\" ? \"auto\" : \"span \" + value + \"/span \" + value;\n });\n}\n\nvar GridItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var area = props.area,\n colSpan = props.colSpan,\n colStart = props.colStart,\n colEnd = props.colEnd,\n rowEnd = props.rowEnd,\n rowSpan = props.rowSpan,\n rowStart = props.rowStart,\n rest = _objectWithoutPropertiesLoose(props, _excluded2$3);\n\n var styles = filterUndefined({\n gridArea: area,\n gridColumn: spanFn(colSpan),\n gridRow: spanFn(rowSpan),\n gridColumnStart: colStart,\n gridColumnEnd: colEnd,\n gridRowStart: rowStart,\n gridRowEnd: rowEnd\n });\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n __css: styles\n }, rest));\n});\n\nvar _excluded$8 = [\"className\"];\nvar Heading = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Heading\", props);\n\n var _omitThemingProps = omitThemingProps(props);\n _omitThemingProps.className;\n var rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$8);\n\n return /*#__PURE__*/React.createElement(chakra.h2, _extends({\n ref: ref,\n className: cx(\"chakra-heading\", props.className)\n }, rest, {\n __css: styles\n }));\n});\n\nif (__DEV__) {\n Heading.displayName = \"Heading\";\n}\n\nvar _excluded$7 = [\"className\"];\n\n/**\n * Semantic component to render a keyboard shortcut\n * within an application.\n *\n * @example\n *\n * ```jsx\n * <Kbd>⌘ + T</Kbd>\n * ```\n *\n * @see Docs https://chakra-ui.com/kbd\n */\nvar Kbd = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Kbd\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n className = _omitThemingProps.className,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$7);\n\n return /*#__PURE__*/React.createElement(chakra.kbd, _extends({\n ref: ref,\n className: cx(\"chakra-kbd\", className)\n }, rest, {\n __css: _extends({\n fontFamily: \"mono\"\n }, styles)\n }));\n});\n\nif (__DEV__) {\n Kbd.displayName = \"Kbd\";\n}\n\nvar _excluded$6 = [\"className\", \"isExternal\"];\n\n/**\n * Links are accessible elements used primarily for navigation.\n *\n * It integrates well with other routing libraries like\n * React Router, Reach Router and Next.js Link.\n *\n * @example\n *\n * ```jsx\n * <Link as={ReactRouterLink} to=\"/home\">Home</Link>\n * ```\n *\n * @see Docs https://chakra-ui.com/link\n */\nvar Link = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Link\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n className = _omitThemingProps.className,\n isExternal = _omitThemingProps.isExternal,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$6);\n\n return /*#__PURE__*/React.createElement(chakra.a, _extends({\n target: isExternal ? \"_blank\" : undefined,\n rel: isExternal ? \"noopener\" : undefined,\n ref: ref,\n className: cx(\"chakra-link\", className)\n }, rest, {\n __css: styles\n }));\n});\n\nif (__DEV__) {\n Link.displayName = \"Link\";\n}\n\nvar _excluded$5 = [\"children\", \"styleType\", \"stylePosition\", \"spacing\"],\n _excluded2$2 = [\"as\"],\n _excluded3 = [\"as\"];\n\nvar _createContext = createContext({\n name: \"StylesContext\",\n errorMessage: \"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` \"\n}),\n StylesProvider = _createContext[0],\n useStyles = _createContext[1];\n\n/**\n * List is used to display list items, it renders a `<ul>` by default.\n *\n * @see Docs https://chakra-ui.com/list\n */\nvar List = /*#__PURE__*/forwardRef(function (props, ref) {\n var _ref;\n\n var styles = useMultiStyleConfig(\"List\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n children = _omitThemingProps.children,\n _omitThemingProps$sty = _omitThemingProps.styleType,\n styleType = _omitThemingProps$sty === void 0 ? \"none\" : _omitThemingProps$sty,\n stylePosition = _omitThemingProps.stylePosition,\n spacing = _omitThemingProps.spacing,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$5);\n\n var validChildren = getValidChildren(children);\n var selector = \"& > *:not(style) ~ *:not(style)\";\n var spacingStyle = spacing ? (_ref = {}, _ref[selector] = {\n mt: spacing\n }, _ref) : {};\n return /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, /*#__PURE__*/React.createElement(chakra.ul, _extends({\n ref: ref,\n listStyleType: styleType,\n listStylePosition: stylePosition\n /**\n * We added this role to fix the Safari accessibility issue with list-style-type: none\n * @see https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html\n */\n ,\n role: \"list\",\n __css: _extends({}, styles.container, spacingStyle)\n }, rest), validChildren));\n});\n\nif (__DEV__) {\n List.displayName = \"List\";\n}\n\nvar OrderedList = /*#__PURE__*/forwardRef(function (props, ref) {\n props.as;\n var rest = _objectWithoutPropertiesLoose(props, _excluded2$2);\n\n return /*#__PURE__*/React.createElement(List, _extends({\n ref: ref,\n as: \"ol\",\n styleType: \"decimal\",\n marginStart: \"1em\"\n }, rest));\n});\n\nif (__DEV__) {\n OrderedList.displayName = \"OrderedList\";\n}\n\nvar UnorderedList = /*#__PURE__*/forwardRef(function (props, ref) {\n props.as;\n var rest = _objectWithoutPropertiesLoose(props, _excluded3);\n\n return /*#__PURE__*/React.createElement(List, _extends({\n ref: ref,\n as: \"ul\",\n styleType: \"initial\",\n marginStart: \"1em\"\n }, rest));\n});\n\nif (__DEV__) {\n UnorderedList.displayName = \"UnorderedList\";\n}\n\n/**\n * ListItem\n *\n * Used to render a list item\n */\nvar ListItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.li, _extends({\n ref: ref\n }, props, {\n __css: styles.item\n }));\n});\n\nif (__DEV__) {\n ListItem.displayName = \"ListItem\";\n}\n/**\n * ListIcon\n *\n * Used to render an icon beside the list item text\n */\n\n\nvar ListIcon = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(Icon, _extends({\n ref: ref,\n role: \"presentation\"\n }, props, {\n __css: styles.icon\n }));\n});\n\nif (__DEV__) {\n ListIcon.displayName = \"ListIcon\";\n}\n\nvar _excluded$4 = [\"columns\", \"spacingX\", \"spacingY\", \"spacing\", \"minChildWidth\"];\n\n/**\n * SimpleGrid\n *\n * React component that uses the `Grid` component and provides\n * a simpler interface to create responsive grid layouts.\n * \n * Provides props that easily define columns and spacing.\n *\n * @see Docs https://chakra-ui.com/simplegrid\n */\nvar SimpleGrid = /*#__PURE__*/forwardRef(function (props, ref) {\n var columns = props.columns,\n spacingX = props.spacingX,\n spacingY = props.spacingY,\n spacing = props.spacing,\n minChildWidth = props.minChildWidth,\n rest = _objectWithoutPropertiesLoose(props, _excluded$4);\n\n var templateColumns = minChildWidth ? widthToColumns(minChildWidth) : countToColumns(columns);\n return /*#__PURE__*/React.createElement(Grid, _extends({\n ref: ref,\n gap: spacing,\n columnGap: spacingX,\n rowGap: spacingY,\n templateColumns: templateColumns\n }, rest));\n});\n\nif (__DEV__) {\n SimpleGrid.displayName = \"SimpleGrid\";\n}\n\nfunction toPx(n) {\n return isNumber(n) ? n + \"px\" : n;\n}\n\nfunction widthToColumns(width) {\n return mapResponsive(width, function (value) {\n return isNull(value) ? null : \"repeat(auto-fit, minmax(\" + toPx(value) + \", 1fr))\";\n });\n}\n\nfunction countToColumns(count) {\n return mapResponsive(count, function (value) {\n return isNull(value) ? null : \"repeat(\" + value + \", minmax(0, 1fr))\";\n });\n}\n\n/**\n * A flexible flex spacer that expands along the major axis of its containing flex layout.\n * It renders a `div` by default, and takes up any available space.\n *\n * @see Docs https://chakra-ui.com/flex#using-the-spacer\n */\nvar Spacer = chakra(\"div\", {\n baseStyle: {\n flex: 1,\n justifySelf: \"stretch\",\n alignSelf: \"stretch\"\n }\n});\n\nif (__DEV__) {\n Spacer.displayName = \"Spacer\";\n}\n\n/**\n * If we ever run into SSR issues with this, check this post to find a fix for it:\n * @see https://medium.com/@emmenko/patching-lobotomized-owl-selector-for-emotion-ssr-5a582a3c424c\n */\nvar selector = \"& > *:not(style) ~ *:not(style)\";\nfunction getStackStyles(options) {\n var _ref;\n\n var spacing = options.spacing,\n direction = options.direction;\n var directionStyles = {\n column: {\n marginTop: spacing,\n marginEnd: 0,\n marginBottom: 0,\n marginStart: 0\n },\n row: {\n marginTop: 0,\n marginEnd: 0,\n marginBottom: 0,\n marginStart: spacing\n },\n \"column-reverse\": {\n marginTop: 0,\n marginEnd: 0,\n marginBottom: spacing,\n marginStart: 0\n },\n \"row-reverse\": {\n marginTop: 0,\n marginEnd: spacing,\n marginBottom: 0,\n marginStart: 0\n }\n };\n return _ref = {\n flexDirection: direction\n }, _ref[selector] = mapResponsive(direction, function (value) {\n return directionStyles[value];\n }), _ref;\n}\nfunction getDividerStyles(options) {\n var spacing = options.spacing,\n direction = options.direction;\n var dividerStyles = {\n column: {\n my: spacing,\n mx: 0,\n borderLeftWidth: 0,\n borderBottomWidth: \"1px\"\n },\n \"column-reverse\": {\n my: spacing,\n mx: 0,\n borderLeftWidth: 0,\n borderBottomWidth: \"1px\"\n },\n row: {\n mx: spacing,\n my: 0,\n borderLeftWidth: \"1px\",\n borderBottomWidth: 0\n },\n \"row-reverse\": {\n mx: spacing,\n my: 0,\n borderLeftWidth: \"1px\",\n borderBottomWidth: 0\n }\n };\n return {\n \"&\": mapResponsive(direction, function (value) {\n return dividerStyles[value];\n })\n };\n}\n\nvar _excluded$3 = [\"isInline\", \"direction\", \"align\", \"justify\", \"spacing\", \"wrap\", \"children\", \"divider\", \"className\", \"shouldWrapChildren\"];\nvar StackDivider = function StackDivider(props) {\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: \"chakra-stack__divider\"\n }, props, {\n __css: _extends({}, props[\"__css\"], {\n borderWidth: 0,\n alignSelf: \"stretch\",\n borderColor: \"inherit\",\n width: \"auto\",\n height: \"auto\"\n })\n }));\n};\nvar StackItem = function StackItem(props) {\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: \"chakra-stack__item\"\n }, props, {\n __css: _extends({\n display: \"inline-block\",\n flex: \"0 0 auto\",\n minWidth: 0\n }, props[\"__css\"])\n }));\n};\n\n/**\n * Stacks help you easily create flexible and automatically distributed layouts\n *\n * You can stack elements in the horizontal or vertical direction,\n * and apply a space or/and divider between each element.\n *\n * It uses `display: flex` internally and renders a `div`.\n *\n * @see Docs https://chakra-ui.com/stack\n *\n */\nvar Stack = /*#__PURE__*/forwardRef(function (props, ref) {\n var _ref;\n\n var isInline = props.isInline,\n directionProp = props.direction,\n align = props.align,\n justify = props.justify,\n _props$spacing = props.spacing,\n spacing = _props$spacing === void 0 ? \"0.5rem\" : _props$spacing,\n wrap = props.wrap,\n children = props.children,\n divider = props.divider,\n className = props.className,\n shouldWrapChildren = props.shouldWrapChildren,\n rest = _objectWithoutPropertiesLoose(props, _excluded$3);\n\n var direction = isInline ? \"row\" : directionProp != null ? directionProp : \"column\";\n var styles = React.useMemo(function () {\n return getStackStyles({\n direction: direction,\n spacing: spacing\n });\n }, [direction, spacing]);\n var dividerStyle = React.useMemo(function () {\n return getDividerStyles({\n spacing: spacing,\n direction: direction\n });\n }, [spacing, direction]);\n var hasDivider = !!divider;\n var shouldUseChildren = !shouldWrapChildren && !hasDivider;\n var validChildren = getValidChildren(children);\n var clones = shouldUseChildren ? validChildren : validChildren.map(function (child, index) {\n // Prefer provided child key, fallback to index\n var key = typeof child.key !== \"undefined\" ? child.key : index;\n var isLast = index + 1 === validChildren.length;\n var wrappedChild = /*#__PURE__*/React.createElement(StackItem, {\n key: key\n }, child);\n\n var _child = shouldWrapChildren ? wrappedChild : child;\n\n if (!hasDivider) return _child;\n var clonedDivider = /*#__PURE__*/React.cloneElement(divider, {\n __css: dividerStyle\n });\n\n var _divider = isLast ? null : clonedDivider;\n\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: key\n }, _child, _divider);\n });\n\n var _className = cx(\"chakra-stack\", className);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n display: \"flex\",\n alignItems: align,\n justifyContent: justify,\n flexDirection: styles.flexDirection,\n flexWrap: wrap,\n className: _className,\n __css: hasDivider ? {} : (_ref = {}, _ref[selector] = styles[selector], _ref)\n }, rest), clones);\n});\n\nif (__DEV__) {\n Stack.displayName = \"Stack\";\n}\n/**\n * A view that arranges its children in a horizontal line.\n */\n\n\nvar HStack = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(Stack, _extends({\n align: \"center\"\n }, props, {\n direction: \"row\",\n ref: ref\n }));\n});\n\nif (__DEV__) {\n HStack.displayName = \"HStack\";\n}\n/**\n * A view that arranges its children in a vertical line.\n */\n\n\nvar VStack = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(Stack, _extends({\n align: \"center\"\n }, props, {\n direction: \"column\",\n ref: ref\n }));\n});\n\nif (__DEV__) {\n VStack.displayName = \"VStack\";\n}\n\nvar _excluded$2 = [\"className\", \"align\", \"decoration\", \"casing\"];\n\n/**\n * Used to render texts or paragraphs.\n *\n * @see Docs https://chakra-ui.com/text\n */\nvar Text = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Text\", props);\n\n var _omitThemingProps = omitThemingProps(props);\n _omitThemingProps.className;\n _omitThemingProps.align;\n _omitThemingProps.decoration;\n _omitThemingProps.casing;\n var rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$2);\n\n var aliasedProps = filterUndefined({\n textAlign: props.align,\n textDecoration: props.decoration,\n textTransform: props.casing\n });\n return /*#__PURE__*/React.createElement(chakra.p, _extends({\n ref: ref,\n className: cx(\"chakra-text\", props.className)\n }, aliasedProps, rest, {\n __css: styles\n }));\n});\n\nif (__DEV__) {\n Text.displayName = \"Text\";\n}\n\nvar _excluded$1 = [\"spacing\", \"spacingX\", \"spacingY\", \"children\", \"justify\", \"direction\", \"align\", \"className\", \"shouldWrapChildren\"],\n _excluded2$1 = [\"className\"];\n\n/**\n * Layout component used to stack elements that differ in length\n * and are liable to wrap.\n *\n * Common use cases:\n * - Buttons that appear together at the end of forms\n * - Lists of tags and chips\n *\n * @see Docs https://chakra-ui.com/wrap\n */\nvar Wrap = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$spacing = props.spacing,\n spacing = _props$spacing === void 0 ? \"0.5rem\" : _props$spacing,\n spacingX = props.spacingX,\n spacingY = props.spacingY,\n children = props.children,\n justify = props.justify,\n direction = props.direction,\n align = props.align,\n className = props.className,\n shouldWrapChildren = props.shouldWrapChildren,\n rest = _objectWithoutPropertiesLoose(props, _excluded$1);\n\n var styles = React.useMemo(function () {\n var _spacingX$spacingY = {\n spacingX: spacingX,\n spacingY: spacingY\n },\n _spacingX$spacingY$sp = _spacingX$spacingY.spacingX,\n x = _spacingX$spacingY$sp === void 0 ? spacing : _spacingX$spacingY$sp,\n _spacingX$spacingY$sp2 = _spacingX$spacingY.spacingY,\n y = _spacingX$spacingY$sp2 === void 0 ? spacing : _spacingX$spacingY$sp2;\n return {\n \"--chakra-wrap-x-spacing\": function chakraWrapXSpacing(theme) {\n return mapResponsive(x, function (value) {\n return tokenToCSSVar(\"space\", value)(theme);\n });\n },\n \"--chakra-wrap-y-spacing\": function chakraWrapYSpacing(theme) {\n return mapResponsive(y, function (value) {\n return tokenToCSSVar(\"space\", value)(theme);\n });\n },\n \"--wrap-x-spacing\": \"calc(var(--chakra-wrap-x-spacing) / 2)\",\n \"--wrap-y-spacing\": \"calc(var(--chakra-wrap-y-spacing) / 2)\",\n display: \"flex\",\n flexWrap: \"wrap\",\n justifyContent: justify,\n alignItems: align,\n flexDirection: direction,\n listStyleType: \"none\",\n padding: \"0\",\n margin: \"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)\",\n \"& > *:not(style)\": {\n margin: \"var(--wrap-y-spacing) var(--wrap-x-spacing)\"\n }\n };\n }, [spacing, spacingX, spacingY, justify, align, direction]);\n var childrenToRender = shouldWrapChildren ? React.Children.map(children, function (child, index) {\n return /*#__PURE__*/React.createElement(WrapItem, {\n key: index\n }, child);\n }) : children;\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n className: cx(\"chakra-wrap\", className)\n }, rest), /*#__PURE__*/React.createElement(chakra.ul, {\n className: \"chakra-wrap__list\",\n __css: styles\n }, childrenToRender));\n});\n\nif (__DEV__) {\n Wrap.displayName = \"Wrap\";\n}\n\nvar WrapItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded2$1);\n\n return /*#__PURE__*/React.createElement(chakra.li, _extends({\n ref: ref,\n __css: {\n display: \"flex\",\n alignItems: \"flex-start\"\n },\n className: cx(\"chakra-wrap__listitem\", className)\n }, rest));\n});\n\nif (__DEV__) {\n WrapItem.displayName = \"WrapItem\";\n}\n\nvar _excluded = [\"isExternal\", \"target\", \"rel\", \"className\"],\n _excluded2 = [\"className\"];\nvar LinkOverlay = /*#__PURE__*/forwardRef(function (props, ref) {\n var isExternal = props.isExternal,\n target = props.target,\n rel = props.rel,\n className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n\n return /*#__PURE__*/React.createElement(chakra.a, _extends({}, rest, {\n ref: ref,\n className: cx(\"chakra-linkbox__overlay\", className),\n rel: isExternal ? \"noopener noreferrer\" : rel,\n target: isExternal ? \"_blank\" : target,\n __css: {\n position: \"static\",\n \"&::before\": {\n content: \"''\",\n cursor: \"inherit\",\n display: \"block\",\n position: \"absolute\",\n top: 0,\n left: 0,\n zIndex: 1,\n width: \"100%\",\n height: \"100%\"\n }\n }\n }));\n});\n\n/**\n * `LinkBox` is used to wrap content areas within a link while ensuring semantic html\n *\n * @see Docs https://chakra-ui.com/docs/navigation/link-overlay\n * @see Resources https://www.sarasoueidan.com/blog/nested-links\n */\nvar LinkBox = /*#__PURE__*/forwardRef(function (props, ref) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n position: \"relative\"\n }, rest, {\n className: cx(\"chakra-linkbox\", className),\n __css: {\n /* Elevate the links, abbreviations and buttons up */\n \"a[href]:not(.chakra-linkbox__overlay), abbr[title], button\": {\n position: \"relative\",\n zIndex: 1\n }\n }\n }));\n});\n\nexport { AbsoluteCenter, AspectRatio, Badge, Box, Center, Circle, Code, Container, Divider, Flex, Grid, GridItem, HStack, Heading, Kbd, Link, LinkBox, LinkOverlay, List, ListIcon, ListItem, OrderedList, SimpleGrid, Spacer, Square, Stack, StackDivider, StackItem, Text, UnorderedList, VStack, Wrap, WrapItem };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$h","AspectRatio","forwardRef","props","ref","_props$ratio","ratio","children","className","rest","child","React","Children","only","_className","cx","createElement","chakra","div","position","_before","height","content","display","paddingBottom","mapResponsive","r","__css","overflow","top","right","bottom","left","justifyContent","alignItems","width","objectFit","__DEV__","displayName","_excluded$g","Badge","styles","useStyleConfig","_omitThemingProps","omitThemingProps","span","whiteSpace","verticalAlign","_excluded$f","_excluded2$5","Box","Square","size","_props$centerContent","centerContent","boxSize","flexShrink","flexGrow","Circle","borderRadius","Center","baseStyle","_excluded$d","Code","code","_excluded$c","Container","flexDirection","_excluded$b","_excluded2$4","Divider","_useStyleConfig","borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor","_omitThemingProps$ori","orientation","dividerStyles","vertical","horizontal","hr","border","_excluded$a","Flex","direction","align","justify","wrap","basis","grow","shrink","flexWrap","flexBasis","_excluded$9","_excluded2$3","Grid","area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns","gridArea","gridTemplateAreas","gridGap","gridRowGap","gridColumnGap","gridAutoColumns","gridColumn","gridRow","gridAutoFlow","gridAutoRows","gridTemplateRows","gridTemplateColumns","spanFn","value","GridItem","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart","filterUndefined","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","_excluded$8","Heading","h2","_excluded$7","Kbd","kbd","fontFamily","_excluded$6","Link","isExternal","a","undefined","rel","_excluded$5","_excluded2$2","_excluded3","_createContext","createContext","name","errorMessage","StylesProvider","useStyles","List","_ref","useMultiStyleConfig","_omitThemingProps$sty","styleType","stylePosition","spacing","validChildren","getValidChildren","spacingStyle","mt","ul","listStyleType","listStylePosition","role","container","OrderedList","as","marginStart","UnorderedList","ListItem","li","item","ListIcon","Icon","icon","_excluded$4","SimpleGrid","count","columns","spacingX","spacingY","minChildWidth","isNull","n","isNumber","Spacer","flex","justifySelf","alignSelf","selector","_excluded$3","StackItem","minWidth","Stack","isInline","directionProp","_props$spacing","divider","shouldWrapChildren","useMemo","options","directionStyles","marginTop","marginEnd","marginBottom","getStackStyles","dividerStyle","my","mx","getDividerStyles","hasDivider","shouldUseChildren","clones","map","index","isLast","_child","_divider","cloneElement","Fragment","HStack","VStack","_excluded$2","Text","decoration","casing","aliasedProps","textAlign","textDecoration","textTransform","p","_excluded$1","_excluded2$1","Wrap","_spacingX$spacingY","_spacingX$spacingY$sp","x","_spacingX$spacingY$sp2","y","theme","tokenToCSSVar","padding","margin","childrenToRender","WrapItem","_excluded","_excluded2","LinkOverlay","cursor","zIndex","LinkBox"],"mappings":"4aAMA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,IAK3B,OAAOL,GAGFH,EAASY,MAAMC,KAAMR,WAG9B,SAASS,EAA8BP,EAAQQ,GAC7C,GAAc,MAAVR,EAAgB,MAAO,GAC3B,IAEIC,EAAKJ,EAFLD,EAAS,GACTa,EAAaf,OAAOgB,KAAKV,GAG7B,IAAKH,EAAI,EAAGA,EAAIY,EAAWV,OAAQF,IACjCI,EAAMQ,EAAWZ,GACbW,EAASG,QAAQV,IAAQ,IAC7BL,EAAOK,GAAOD,EAAOC,IAGvB,OAAOL,EAGT,IAAIgB,EAAc,CAAC,QAAS,WAAY,aAQpCC,EAA2BC,EAAUA,YAAC,SAAUC,EAAOC,GACzD,IAAIC,EAAeF,EAAMG,MACrBA,O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uB,IAAKA,EACLe,SAAU,YACTV,EAAM,CACPD,UAAWO,EAAAA,GAAG,iBAAkBP,GAChCmB,MAAO,CAEL,6DAA8D,CAC5DR,SAAU,WACViP,OAAQ"}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("./chakra-ui-system.esm-b563b97d.js"),n=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function t(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})}})),n.default=e,Object.freeze(n)}var i=t(n),a=r(n),u=e.isBrowser?i.useLayoutEffect:i.useEffect;function o(n){var r=e.useEnvironment(),t=Array.isArray(n)?n:[n],a=e.isBrowser&&"matchMedia"in r.window,o=i.useState(t.map((function(e){return!!a&&!!r.window.matchMedia(e).matches}))),c=o[0],f=o[1];return u((function(){if(a){var e=t.map((function(e){return r.window.matchMedia(e)})),n=e.map((function(n,r){var t=function(n){var r=e.findIndex((function(e){return e.media===n.media}));f((function(e){var t=e.map((function(e){return e}));return t[r]=n.matches,t}))};return"function"==typeof e[r].addEventListener?e[r].addEventListener("change",t):e[r].addListener(t),t}));return function(){e.forEach((function(r,t){"function"==typeof e[t].removeEventListener?e[t].removeEventListener("change",n[t]):e[t].removeListener(n[t])}))}}}),[]),c}var c=function(e){var n=e.breakpoint,r=e.hide,t=e.children,i=o(n)[0];return(r?!i:i)?t:null},f=function(e){var n=e.children,r=v(e);return i.createElement(c,{breakpoint:r,hide:!0},n)};e.__DEV__&&(f.displayName="Hide");var d=function(e){var n=e.children,r=v(e);return i.createElement(c,{breakpoint:r},n)};e.__DEV__&&(d.displayName="Show");var s=function(n,r){return e.memoizedGet(n,"breakpoints."+r,r)};function v(n){var r=n.breakpoint,t=void 0===r?"":r,i=n.below,a=n.above,u=e.useTheme(),o=s(u,i),c=s(u,a),f=t;return o?f="(max-width: "+o+")":c&&(f="(min-width: "+c+")"),f}function m(n){void 0===n&&(n="base");var r=e.useTheme().__breakpoints,t=e.useEnvironment(),i=a.default.useMemo((function(){var e;return null!=(e=null==r?void 0:r.details.map((function(e){var n=e.minMaxQuery;return{breakpoint:e.breakpoint,query:n.replace("@media screen and ","")}})))?e:[]}),[r]),u=a.default.useState((function(){if(n){var e=i.find((function(e){return e.breakpoint===n}));if(e)return e.breakpoint}if(t.window.matchMedia){var r=i.find((function(e){var n=e.query;return t.window.matchMedia(n).matches}));if(r)return r.breakpoint}})),o=u[0],c=u[1];return a.default.useEffect((function(){var e=i.map((function(e){var n=e.breakpoint,r=e.query,i=t.window.matchMedia(r);i.matches&&c(n);var a=function(e){e.matches&&c(n)};return"function"==typeof i.addEventListener?i.addEventListener("change",a):i.addListener(a),function(){"function"==typeof i.removeEventListener?i.removeEventListener("change",a):i.removeListener(a)}}));return function(){e.forEach((function(e){return e()}))}}),[i,r,t.window]),o}exports.Hide=f,exports.Show=d,exports.useBreakpoint=m,exports.useBreakpointValue=function(n,r){var t,i=m(r),a=e.useTheme();if(i){var u=Array.from((null==(t=a.__breakpoints)?void 0:t.keys)||[]);return function(n,r,t){void 0===t&&(t=e.breakpoints);var i=Object.keys(n).indexOf(r);if(-1!==i)return n[r];for(var a=t.indexOf(r);a>=0;){if(null!=n[t[a]]){i=a;break}a-=1}return-1!==i?n[t[i]]:void 0}(e.isArray(n)?e.fromEntries(Object.entries(e.arrayToObjectNotation(n,u)).map((function(e){return[e[0],e[1]]}))):n,i,u)}},exports.useMediaQuery=o;
2
+ //# sourceMappingURL=chakra-ui-media-query.esm-a34e627c.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chakra-ui-media-query.esm-a34e627c.js","sources":["../node_modules/@chakra-ui/media-query/dist/chakra-ui-media-query.esm.js"],"sourcesContent":["import { useTheme } from '@chakra-ui/system';\nimport { isBrowser, __DEV__, memoizedGet, breakpoints, isArray, fromEntries, arrayToObjectNotation } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport React__default from 'react';\nimport { useEnvironment } from '@chakra-ui/react-env';\n\nvar useSafeLayoutEffect = isBrowser ? React.useLayoutEffect : React.useEffect;\n/**\n * React hook that tracks state of a CSS media query\n *\n * @param query the media query to match\n */\n\nfunction useMediaQuery(query) {\n var env = useEnvironment();\n var queries = Array.isArray(query) ? query : [query];\n var isSupported = isBrowser && \"matchMedia\" in env.window;\n\n var _React$useState = React.useState(queries.map(function (query) {\n return isSupported ? !!env.window.matchMedia(query).matches : false;\n })),\n matches = _React$useState[0],\n setMatches = _React$useState[1]; // Specifying matches in the dependency list will cause the event listeners\n // to unload and then load each time the dependency changes. This causes\n // Media Query Events to be missed. The event listeners should only be unloaded\n // when the component unloads.\n\n\n useSafeLayoutEffect(function () {\n if (!isSupported) return undefined;\n var mediaQueryList = queries.map(function (query) {\n return env.window.matchMedia(query);\n });\n var listenerList = mediaQueryList.map(function (_, index) {\n var listener = function listener(mqlEvent) {\n var queryIndex = mediaQueryList.findIndex(function (mediaQuery) {\n return mediaQuery.media === mqlEvent.media;\n }); // As the event listener is on the media query list, any time the\n // listener is called, we know there is a change. There's no need\n // to compare the previous matches with current. Using\n // setMatches(matches => {...}) provides access to the current matches\n // state. Trying to access matches outside the setMatches function\n // would provide data from the the time of instantiation (stale).\n\n setMatches(function (matches) {\n var currentMatches = matches.map(function (x) {\n return x;\n });\n currentMatches[queryIndex] = mqlEvent.matches;\n return currentMatches;\n });\n }; // Listening to the 'change' event on the Media Query List Object\n // is more performant as the callback is only invoked when a specified\n // media query is matched. Using addEventListener on the window object\n // to listen for the resize event will call the callback on every\n // viewport resize.\n\n\n if (typeof mediaQueryList[index].addEventListener === \"function\") {\n mediaQueryList[index].addEventListener(\"change\", listener);\n } else {\n mediaQueryList[index].addListener(listener);\n }\n\n return listener;\n });\n return function () {\n mediaQueryList.forEach(function (_, index) {\n if (typeof mediaQueryList[index].removeEventListener === \"function\") {\n mediaQueryList[index].removeEventListener(\"change\", listenerList[index]);\n } else {\n mediaQueryList[index].removeListener(listenerList[index]);\n }\n });\n };\n }, []);\n return matches;\n}\n\n/**\n * Visibility\n *\n * React component to control the visibility of its\n * children based on the current breakpoint\n */\nvar Visibility = function Visibility(props) {\n var breakpoint = props.breakpoint,\n hide = props.hide,\n children = props.children;\n\n var _useMediaQuery = useMediaQuery(breakpoint),\n show = _useMediaQuery[0];\n\n var isVisible = hide ? !show : show;\n var rendered = isVisible ? children : null;\n return rendered;\n};\n\nvar Hide = function Hide(props) {\n var children = props.children;\n var query = useQuery(props);\n return /*#__PURE__*/React.createElement(Visibility, {\n breakpoint: query,\n hide: true\n }, children);\n};\n\nif (__DEV__) {\n Hide.displayName = \"Hide\";\n}\n\nvar Show = function Show(props) {\n var children = props.children;\n var query = useQuery(props);\n return /*#__PURE__*/React.createElement(Visibility, {\n breakpoint: query\n }, children);\n};\n\nif (__DEV__) {\n Show.displayName = \"Show\";\n}\n\nvar getBreakpoint = function getBreakpoint(theme, value) {\n return memoizedGet(theme, \"breakpoints.\" + value, value);\n};\n\nfunction useQuery(props) {\n var _props$breakpoint = props.breakpoint,\n breakpoint = _props$breakpoint === void 0 ? \"\" : _props$breakpoint,\n below = props.below,\n above = props.above;\n var theme = useTheme();\n var bpBelow = getBreakpoint(theme, below);\n var bpAbove = getBreakpoint(theme, above);\n var query = breakpoint;\n\n if (bpBelow) {\n query = \"(max-width: \" + bpBelow + \")\";\n } else if (bpAbove) {\n query = \"(min-width: \" + bpAbove + \")\";\n }\n\n return query;\n}\n\n/**\n * React hook used to get the user's animation preference.\n */\n\nfunction usePrefersReducedMotion() {\n var _useMediaQuery = useMediaQuery(\"(prefers-reduced-motion: reduce)\"),\n prefersReducedMotion = _useMediaQuery[0];\n\n return prefersReducedMotion;\n}\n/**\n * React hook for getting the user's color mode preference.\n */\n\nfunction useColorModePreference() {\n var _useMediaQuery2 = useMediaQuery([\"(prefers-color-scheme: light)\", \"(prefers-color-scheme: dark)\"]),\n isLight = _useMediaQuery2[0],\n isDark = _useMediaQuery2[1];\n\n if (isLight) return \"light\";\n if (isDark) return \"dark\";\n return undefined;\n}\n\n/**\n * React hook used to get the current responsive media breakpoint.\n *\n * @param [defaultBreakpoint=\"base\"] default breakpoint name\n * (in non-window environments like SSR)\n *\n * For SSR, you can use a package like [is-mobile](https://github.com/kaimallea/isMobile)\n * to get the default breakpoint value from the user-agent\n */\n\nfunction useBreakpoint(defaultBreakpoint // default value ensures SSR+CSR consistency\n) {\n if (defaultBreakpoint === void 0) {\n defaultBreakpoint = \"base\";\n }\n\n var _useTheme = useTheme(),\n __breakpoints = _useTheme.__breakpoints;\n\n var env = useEnvironment();\n var queries = React__default.useMemo(function () {\n var _breakpoints$details;\n\n return (_breakpoints$details = __breakpoints == null ? void 0 : __breakpoints.details.map(function (_ref) {\n var minMaxQuery = _ref.minMaxQuery,\n breakpoint = _ref.breakpoint;\n return {\n breakpoint: breakpoint,\n query: minMaxQuery.replace(\"@media screen and \", \"\")\n };\n })) != null ? _breakpoints$details : [];\n }, [__breakpoints]);\n\n var _React$useState = React__default.useState(function () {\n if (defaultBreakpoint) {\n // use default breakpoint to ensure render consistency in SSR + CSR environments\n // => first render on the client has to match the render on the server\n var fallbackBreakpointDetail = queries.find(function (_ref2) {\n var breakpoint = _ref2.breakpoint;\n return breakpoint === defaultBreakpoint;\n });\n\n if (fallbackBreakpointDetail) {\n return fallbackBreakpointDetail.breakpoint;\n }\n }\n\n if (env.window.matchMedia) {\n // set correct breakpoint on first render if no default breakpoint was provided\n var matchingBreakpointDetail = queries.find(function (_ref3) {\n var query = _ref3.query;\n return env.window.matchMedia(query).matches;\n });\n\n if (matchingBreakpointDetail) {\n return matchingBreakpointDetail.breakpoint;\n }\n }\n\n return undefined;\n }),\n currentBreakpoint = _React$useState[0],\n setCurrentBreakpoint = _React$useState[1];\n\n React__default.useEffect(function () {\n var allUnregisterFns = queries.map(function (_ref4) {\n var breakpoint = _ref4.breakpoint,\n query = _ref4.query;\n var mediaQueryList = env.window.matchMedia(query);\n\n if (mediaQueryList.matches) {\n setCurrentBreakpoint(breakpoint);\n }\n\n var handleChange = function handleChange(ev) {\n if (ev.matches) {\n setCurrentBreakpoint(breakpoint);\n }\n }; // add media query listener\n\n\n if (typeof mediaQueryList.addEventListener === \"function\") {\n mediaQueryList.addEventListener(\"change\", handleChange);\n } else {\n mediaQueryList.addListener(handleChange);\n } // return unregister fn\n\n\n return function () {\n if (typeof mediaQueryList.removeEventListener === \"function\") {\n mediaQueryList.removeEventListener(\"change\", handleChange);\n } else {\n mediaQueryList.removeListener(handleChange);\n }\n };\n });\n return function () {\n allUnregisterFns.forEach(function (unregister) {\n return unregister();\n });\n };\n }, [queries, __breakpoints, env.window]);\n return currentBreakpoint;\n}\n\nfunction getClosestValue(values, breakpoint, breakpoints$1) {\n if (breakpoints$1 === void 0) {\n breakpoints$1 = breakpoints;\n }\n\n var index = Object.keys(values).indexOf(breakpoint);\n\n if (index !== -1) {\n return values[breakpoint];\n }\n\n var stopIndex = breakpoints$1.indexOf(breakpoint);\n\n while (stopIndex >= 0) {\n var key = breakpoints$1[stopIndex];\n\n if (values[key] != null) {\n index = stopIndex;\n break;\n }\n\n stopIndex -= 1;\n }\n\n if (index !== -1) {\n var _key = breakpoints$1[index];\n return values[_key];\n }\n\n return undefined;\n}\n\n/**\n * React hook for getting the value for the current breakpoint from the\n * provided responsive values object.\n *\n * @param values\n * @param [defaultBreakpoint] default breakpoint name\n * (in non-window environments like SSR)\n *\n * For SSR, you can use a package like [is-mobile](https://github.com/kaimallea/isMobile)\n * to get the default breakpoint value from the user-agent\n *\n * @example\n * const width = useBreakpointValue({ base: '150px', md: '250px' })\n */\n\nfunction useBreakpointValue(values, defaultBreakpoint) {\n var _theme$__breakpoints;\n\n var breakpoint = useBreakpoint(defaultBreakpoint);\n var theme = useTheme();\n if (!breakpoint) return undefined;\n /**\n * Get the sorted breakpoint keys from the provided breakpoints\n */\n\n var breakpoints = Array.from(((_theme$__breakpoints = theme.__breakpoints) == null ? void 0 : _theme$__breakpoints.keys) || []);\n var obj = isArray(values) ? fromEntries(Object.entries(arrayToObjectNotation(values, breakpoints)).map(function (_ref) {\n var key = _ref[0],\n value = _ref[1];\n return [key, value];\n })) : values;\n return getClosestValue(obj, breakpoint, breakpoints);\n}\n\nexport { Hide, Show, useBreakpoint, useBreakpointValue, useColorModePreference, useMediaQuery, usePrefersReducedMotion, useQuery };\n"],"names":["useSafeLayoutEffect","isBrowser","React","useLayoutEffect","useEffect","useMediaQuery","query","env","useEnvironment","queries","Array","isArray","isSupported","window","_React$useState","useState","map","matchMedia","matches","setMatches","mediaQueryList","listenerList","_","index","listener","mqlEvent","queryIndex","findIndex","mediaQuery","media","currentMatches","x","addEventListener","addListener","forEach","removeEventListener","removeListener","Visibility","props","breakpoint","hide","children","show","Hide","useQuery","createElement","__DEV__","displayName","Show","getBreakpoint","theme","value","memoizedGet","_props$breakpoint","below","above","useTheme","bpBelow","bpAbove","useBreakpoint","defaultBreakpoint","__breakpoints","React__default","useMemo","_breakpoints$details","details","_ref","minMaxQuery","replace","fallbackBreakpointDetail","find","_ref2","matchingBreakpointDetail","_ref3","currentBreakpoint","setCurrentBreakpoint","allUnregisterFns","_ref4","handleChange","ev","unregister","values","_theme$__breakpoints","breakpoints","from","keys","breakpoints$1","Object","indexOf","stopIndex","getClosestValue","fromEntries","entries","arrayToObjectNotation"],"mappings":"6cAMIA,EAAsBC,EAAAA,UAAYC,EAAMC,gBAAkBD,EAAME,UAOpE,SAASC,EAAcC,GACrB,IAAIC,EAAMC,EAAAA,iBACNC,EAAUC,MAAMC,QAAQL,GAASA,EAAQ,CAACA,GAC1CM,EAAcX,EAASA,WAAI,eAAgBM,EAAIM,OAE/CC,EAAkBZ,EAAMa,SAASN,EAAQO,KAAI,SAAUV,GACzD,QAAOM,KAAgBL,EAAIM,OAAOI,WAAWX,GAAOY,YAElDA,EAAUJ,EAAgB,GAC1BK,EAAaL,EAAgB,GAsDjC,OAhDAd,GAAoB,WAClB,GAAKY,EAAL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("./chakra-ui-clickable.esm-22135054.js"),r=require("./chakra-ui-hooks.esm-c8f7aa0e.js"),a=require("./use-animation-state-5054a9f7.esm-ad9a45c2.js"),o=require("./chakra-ui-popper.esm-78790840.js"),i=require("./motion-1db106fa.js");function l(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var u=l(n);function s(){return s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(this,arguments)}function c(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}var d=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],m=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],p=["type","isChecked"],f=["children","type","value","defaultValue","onChange"],v=t.createDescendantContext(),_=v[0],h=v[1],y=v[2],b=v[3],E=e.createContext({strict:!1,name:"MenuContext"}),k=E[0],x=E[1];function O(n){var t;return e.isHTMLElement(n)&&!(null==(t=n.getAttribute("role"))||!t.startsWith("menuitem"))}function C(n,a){void 0===n&&(n={}),void 0===a&&(a=null);var o=n,i=o.onMouseEnter,l=o.onMouseMove,d=o.onMouseLeave,p=o.onClick,f=o.isDisabled,v=o.isFocusable,_=o.closeOnSelect,h=o.type,y=c(o,m),E=x(),k=E.setFocusedIndex,C=E.focusedIndex,g=E.closeOnSelect,I=E.onClose,M=E.menuRef,S=E.isOpen,N=E.menuId,w=u.useRef(null),D=N+"-menuitem-"+r.useId(),R=b({disabled:f&&!v}),A=R.index,z=R.register,T=u.useCallback((function(e){null==i||i(e),f||k(A)}),[k,A,f,i]),F=u.useCallback((function(n){null==l||l(n),w.current&&!e.isActiveElement(w.current)&&T(n)}),[T,l]),V=u.useCallback((function(e){null==d||d(e),f||k(-1)}),[k,f,d]),j=u.useCallback((function(e){null==p||p(e),O(e.currentTarget)&&(null!=_?_:g)&&I()}),[I,p,g,_]),L=A===C,B=f&&!v;r.useUpdateEffect((function(){S&&(L&&!B&&w.current?e.focus(w.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):M.current&&!e.isActiveElement(M.current)&&e.focus(M.current,{preventScroll:!1}))}),[L,B,M,S]);var P=t.useClickable({onClick:j,onMouseEnter:T,onMouseMove:F,onMouseLeave:V,ref:e.mergeRefs(z,w,a),isDisabled:f,isFocusable:v});return s({},y,P,{type:null!=h?h:P.type,id:D,role:"menuitem",tabIndex:L?0:-1})}var g=["descendants"],I=["children","as"],M=["rootProps"],S=["type"],N=["icon","iconSpacing","command","commandSpacing","children"],w=["icon","iconSpacing"],D=["className","title"],R=["title","children","className"],A=["className","children"],z=["className"],T=function(n){var t=n.children,i=e.useMultiStyleConfig("Menu",n),l=function(n){void 0===n&&(n={});var t=n,i=t.id,l=t.closeOnSelect,m=void 0===l||l,p=t.closeOnBlur,f=void 0===p||p,v=t.autoSelect,_=void 0===v||v,h=t.isLazy,b=t.isOpen,E=t.defaultIsOpen,k=t.onClose,x=t.onOpen,O=t.placement,C=void 0===O?"bottom-start":O,g=t.lazyBehavior,I=void 0===g?"unmount":g,M=t.direction,S=t.computePositionOnMount,N=void 0!==S&&S,w=c(t,d),D=u.useRef(null),R=u.useRef(null),A=y(),z=u.useCallback((function(){e.focus(D.current,{nextTick:!0,selectTextIfInput:!1})}),[]),T=u.useCallback((function(){var e=setTimeout((function(){var e=A.firstEnabled();e&&G(e.index)}));Z.current.add(e)}),[A]),F=u.useCallback((function(){var e=setTimeout((function(){var e=A.lastEnabled();e&&G(e.index)}));Z.current.add(e)}),[A]),V=u.useCallback((function(){null==x||x(),_?T():z()}),[_,T,z,x]),j=r.useDisclosure({isOpen:b,defaultIsOpen:E,onClose:k,onOpen:V}),L=j.isOpen,B=j.onOpen,P=j.onClose,U=j.onToggle;r.useOutsideClick({enabled:L&&f,ref:D,handler:function(e){var n;null!=(n=R.current)&&n.contains(e.target)||P()}});var q=o.usePopper(s({},w,{enabled:L||N,placement:C,direction:M})),K=u.useState(-1),H=K[0],G=K[1];r.useUpdateEffect((function(){L||G(-1)}),[L]),r.useFocusOnHide(D,{focusRef:R,visible:L,shouldFocus:!0});var W=a.useAnimationState({isOpen:L,ref:D}),J=r.useIds(i,"menu-button","menu-list"),Q=J[0],X=J[1],Y=u.useCallback((function(){B(),z()}),[B,z]),Z=u.useRef(new Set([]));return r.useUnmountEffect((function(){Z.current.forEach((function(e){return clearTimeout(e)})),Z.current.clear()})),{openAndFocusMenu:Y,openAndFocusFirstItem:u.useCallback((function(){B(),T()}),[T,B]),openAndFocusLastItem:u.useCallback((function(){B(),F()}),[B,F]),onTransitionEnd:u.useCallback((function(){var n,t,r=e.getOwnerDocument(D.current),a=null==(n=D.current)?void 0:n.contains(r.activeElement);if(L&&!a){var o=null==(t=A.item(H))?void 0:t.node;o&&e.focus(o,{selectTextIfInput:!1,preventScroll:!1})}}),[L,H,A]),unstable__animationState:W,descendants:A,popper:q,buttonId:Q,menuId:X,forceUpdate:q.forceUpdate,orientation:"vertical",isOpen:L,onToggle:U,onOpen:B,onClose:P,menuRef:D,buttonRef:R,focusedIndex:H,closeOnSelect:m,closeOnBlur:f,autoSelect:_,setFocusedIndex:G,isLazy:h,lazyBehavior:I}}(s({},e.omitThemingProps(n),{direction:e.useTheme().direction})),m=l.descendants,p=c(l,g),f=u.useMemo((function(){return p}),[p]),v=f.isOpen,h=f.onClose,b=f.forceUpdate;return u.createElement(_,{value:m},u.createElement(k,{value:f},u.createElement(e.StylesProvider,{value:i},e.runIfFn(t,{isOpen:v,onClose:h,forceUpdate:b}))))};e.__DEV__&&(T.displayName="Menu");var F=e.forwardRef((function(n,t){var r=e.useStyles();return u.createElement(e.chakra.button,s({ref:t},n,{__css:s({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},r.button)}))})),V=e.forwardRef((function(n,t){n.children;var r=n.as,a=function(n,t){void 0===n&&(n={}),void 0===t&&(t=null);var r=x(),a=r.onToggle,o=r.popper,i=r.openAndFocusFirstItem,l=r.openAndFocusLastItem,c=u.useCallback((function(n){var t=e.normalizeEventKey(n),r={Enter:i,ArrowDown:i,ArrowUp:l}[t];r&&(n.preventDefault(),n.stopPropagation(),r(n))}),[i,l]);return s({},n,{ref:e.mergeRefs(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":e.dataAttr(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:e.callAllHandlers(n.onClick,a),onKeyDown:e.callAllHandlers(n.onKeyDown,c)})}(c(n,I),t),o=r||F;return u.createElement(o,s({},a,{className:e.cx("chakra-menu__menu-button",n.className)}),u.createElement(e.chakra.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},n.children))}));e.__DEV__&&(V.displayName="MenuButton");var j={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}};var L,B,P=(L=e.chakra.div,"custom"in(B=i.motion)&&"function"==typeof B.custom?B.custom(L):B(L)),U=e.forwardRef((function(n,t){var a,o,i=n.rootProps,l=c(n,M),d=x(),m=d.isOpen,p=d.onTransitionEnd,f=d.unstable__animationState,v=function(n,t){void 0===n&&(n={}),void 0===t&&(t=null);var a=x();if(!a)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var o=a.focusedIndex,i=a.setFocusedIndex,l=a.menuRef,c=a.isOpen,d=a.onClose,m=a.menuId,p=a.isLazy,f=a.lazyBehavior,v=a.unstable__animationState,_=h(),y=r.useShortcut({preventDefault:function(e){return" "!==e.key&&O(e.target)}}),b=u.useCallback((function(n){var t=e.normalizeEventKey(n),r={Tab:function(e){return e.preventDefault()},Escape:d,ArrowDown:function(){var e=_.nextEnabled(o);e&&i(e.index)},ArrowUp:function(){var e=_.prevEnabled(o);e&&i(e.index)}},a=r[t];if(a)return n.preventDefault(),void a(n);var l=y((function(n){var t=e.getNextItemFromSearch(_.values(),n,(function(e){var n,t;return null!=(n=null==e||null==(t=e.node)?void 0:t.textContent)?n:""}),_.item(o));if(t){var r=_.indexOf(t.node);i(r)}}));O(n.target)&&l(n)}),[_,o,y,d,i]),E=u.useRef(!1);c&&(E.current=!0);var k=e.determineLazyBehavior({hasBeenSelected:E.current,isLazy:p,lazyBehavior:f,isSelected:v.present});return s({},n,{ref:e.mergeRefs(l,t),children:k?n.children:null,tabIndex:-1,role:"menu",id:m,style:s({},n.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:e.callAllHandlers(n.onKeyDown,b)})}(l,t),_=function(e){void 0===e&&(e={});var n=x(),t=n.popper,r=n.isOpen;return t.getPopperProps(s({},e,{style:s({visibility:r?"visible":"hidden"},e.style)}))}(i),y=e.useStyles();return u.createElement(e.chakra.div,s({},_,{__css:{zIndex:null!=(a=n.zIndex)?a:null==(o=y.list)?void 0:o.zIndex}}),u.createElement(P,s({},v,{onUpdate:p,onAnimationComplete:e.callAll(f.onComplete,v.onAnimationComplete),className:e.cx("chakra-menu__menu-list",v.className),variants:j,initial:!1,animate:m?"enter":"exit",__css:s({outline:0},y.list)})))}));e.__DEV__&&(U.displayName="MenuList");var q=e.forwardRef((function(n,t){var r=n.type,a=c(n,S),o=e.useStyles(),i=a.as||r?null!=r?r:void 0:"button",l=u.useMemo((function(){return s({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item)}),[o.item]);return u.createElement(e.chakra.button,s({ref:t,type:i},a,{__css:l}))})),K=e.forwardRef((function(n,t){var r=n.icon,a=n.iconSpacing,o=void 0===a?"0.75rem":a,i=n.command,l=n.commandSpacing,d=void 0===l?"0.75rem":l,m=n.children,p=C(c(n,N),t),f=r||i?u.createElement("span",{style:{pointerEvents:"none",flex:1}},m):m;return u.createElement(q,s({},p,{className:e.cx("chakra-menu__menuitem",p.className)}),r&&u.createElement(X,{fontSize:"0.8em",marginEnd:o},r),f,i&&u.createElement(Q,{marginStart:d},i))}));e.__DEV__&&(K.displayName="MenuItem");var H=function(e){return u.createElement("svg",s({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),u.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},G=e.forwardRef((function(n,t){var r=n.icon,a=n.iconSpacing,o=void 0===a?"0.75rem":a,i=c(n,w),l=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var t=e,r=t.type,a=void 0===r?"radio":r,o=t.isChecked;return s({},C(c(t,p),n),{role:"menuitem"+a,"aria-checked":o})}(i,t);return u.createElement(q,s({},l,{className:e.cx("chakra-menu__menuitem-option",i.className)}),null!==r&&u.createElement(X,{fontSize:"0.8em",marginEnd:o,opacity:n.isChecked?1:0},r||u.createElement(H,null)),u.createElement("span",{style:{flex:1}},l.children))}));G.id="MenuItemOption",e.__DEV__&&(G.displayName="MenuItemOption");var W=function(n){var t=n.className,a=n.title,o=function(n){void 0===n&&(n={});var t=n,a=t.children,o=t.type,i=void 0===o?"radio":o,l=t.value,d=t.defaultValue,m=t.onChange,p=c(t,f),v="radio"===i?"":[],_=r.useControllableState({defaultValue:null!=d?d:v,value:l,onChange:m}),h=_[0],y=_[1],b=u.useCallback((function(n){if("radio"===i&&e.isString(h)&&y(n),"checkbox"===i&&e.isArray(h)){var t=h.includes(n)?e.removeItem(h,n):e.addItem(h,n);y(t)}}),[h,y,i]);return s({},p,{children:e.getValidChildren(a).map((function(e){if("MenuItemOption"!==e.type.id)return e;var n="radio"===i?e.props.value===h:h.includes(e.props.value);return u.cloneElement(e,{type:i,onClick:function(n){b(e.props.value),null==e.props.onClick||e.props.onClick(n)},isChecked:n})}))})}(c(n,D));return u.createElement(J,s({title:a,className:e.cx("chakra-menu__option-group",t)},o))};e.__DEV__&&(W.displayName="MenuOptionGroup");var J=e.forwardRef((function(n,t){var r=n.title,a=n.children,o=n.className,i=c(n,R),l=e.cx("chakra-menu__group__title",o),d=e.useStyles();return u.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},r&&u.createElement(e.chakra.p,s({className:l},i,{__css:d.groupTitle}),r),a)}));e.__DEV__&&(J.displayName="MenuGroup");var Q=e.forwardRef((function(n,t){var r=e.useStyles();return u.createElement(e.chakra.span,s({ref:t},n,{__css:r.command,className:"chakra-menu__command"}))}));e.__DEV__&&(Q.displayName="MenuCommand");var X=function(n){var t=n.className,r=n.children,a=c(n,A),o=u.Children.only(r),i=u.isValidElement(o)?u.cloneElement(o,{focusable:"false","aria-hidden":!0,className:e.cx("chakra-menu__icon",o.props.className)}):null,l=e.cx("chakra-menu__icon-wrapper",t);return u.createElement(e.chakra.span,s({className:l},a,{__css:{flexShrink:0}}),i)};e.__DEV__&&(X.displayName="MenuIcon");var Y=function(n){var t=n.className,r=c(n,z),a=e.useStyles();return u.createElement(e.chakra.hr,s({role:"separator","aria-orientation":"horizontal",className:e.cx("chakra-menu__divider",t)},r,{__css:a.divider}))};e.__DEV__&&(Y.displayName="MenuDivider"),exports.Menu=T,exports.MenuButton=V,exports.MenuDivider=Y,exports.MenuGroup=J,exports.MenuItem=K,exports.MenuItemOption=G,exports.MenuList=U,exports.MenuOptionGroup=W,exports.useMenuState=function(){var e=x();return{isOpen:e.isOpen,onClose:e.onClose}};
2
+ //# sourceMappingURL=chakra-ui-menu.esm-22115f36.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chakra-ui-menu.esm-22115f36.js","sources":["../node_modules/@chakra-ui/menu/dist/chakra-ui-menu.esm.js"],"sourcesContent":["import { useMultiStyleConfig, omitThemingProps, useTheme, StylesProvider, forwardRef, chakra, useStyles } from '@chakra-ui/system';\nimport { focus, getOwnerDocument, normalizeEventKey, dataAttr, callAllHandlers, isHTMLElement, getNextItemFromSearch, determineLazyBehavior, isActiveElement, isString, isArray, removeItem, addItem, runIfFn, __DEV__, cx, callAll } from '@chakra-ui/utils';\nimport { motion } from 'framer-motion';\nimport * as React from 'react';\nimport { useClickable } from '@chakra-ui/clickable';\nimport { createDescendantContext } from '@chakra-ui/descendant';\nimport { useDisclosure, useOutsideClick, useUpdateEffect, useFocusOnHide, useIds, useUnmountEffect, useShortcut, useId, useControllableState } from '@chakra-ui/hooks';\nimport { useAnimationState } from '@chakra-ui/hooks/use-animation-state';\nimport { usePopper } from '@chakra-ui/popper';\nimport { createContext, mergeRefs, getValidChildren } from '@chakra-ui/react-utils';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded$1 = [\"id\", \"closeOnSelect\", \"closeOnBlur\", \"autoSelect\", \"isLazy\", \"isOpen\", \"defaultIsOpen\", \"onClose\", \"onOpen\", \"placement\", \"lazyBehavior\", \"direction\", \"computePositionOnMount\"],\n _excluded2$1 = [\"onMouseEnter\", \"onMouseMove\", \"onMouseLeave\", \"onClick\", \"isDisabled\", \"isFocusable\", \"closeOnSelect\", \"type\"],\n _excluded3$1 = [\"type\", \"isChecked\"],\n _excluded4$1 = [\"children\", \"type\", \"value\", \"defaultValue\", \"onChange\"];\n/* -------------------------------------------------------------------------------------------------\n * Create context to track descendants and their indices\n * -----------------------------------------------------------------------------------------------*/\n\nvar _createDescendantCont = createDescendantContext(),\n MenuDescendantsProvider = _createDescendantCont[0],\n useMenuDescendantsContext = _createDescendantCont[1],\n useMenuDescendants = _createDescendantCont[2],\n useMenuDescendant = _createDescendantCont[3];\n\nvar _createContext = createContext({\n strict: false,\n name: \"MenuContext\"\n}),\n MenuProvider = _createContext[0],\n useMenuContext = _createContext[1];\n\n/**\n * React Hook to manage a menu\n *\n * It provides the logic and will be used with react context\n * to propagate its return value to all children\n */\nfunction useMenu(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n id = _props.id,\n _props$closeOnSelect = _props.closeOnSelect,\n closeOnSelect = _props$closeOnSelect === void 0 ? true : _props$closeOnSelect,\n _props$closeOnBlur = _props.closeOnBlur,\n closeOnBlur = _props$closeOnBlur === void 0 ? true : _props$closeOnBlur,\n _props$autoSelect = _props.autoSelect,\n autoSelect = _props$autoSelect === void 0 ? true : _props$autoSelect,\n isLazy = _props.isLazy,\n isOpenProp = _props.isOpen,\n defaultIsOpen = _props.defaultIsOpen,\n onCloseProp = _props.onClose,\n onOpenProp = _props.onOpen,\n _props$placement = _props.placement,\n placement = _props$placement === void 0 ? \"bottom-start\" : _props$placement,\n _props$lazyBehavior = _props.lazyBehavior,\n lazyBehavior = _props$lazyBehavior === void 0 ? \"unmount\" : _props$lazyBehavior,\n direction = _props.direction,\n _props$computePositio = _props.computePositionOnMount,\n computePositionOnMount = _props$computePositio === void 0 ? false : _props$computePositio,\n popperProps = _objectWithoutPropertiesLoose(_props, _excluded$1);\n /**\n * Prepare the reference to the menu and disclosure\n */\n\n\n var menuRef = React.useRef(null);\n var buttonRef = React.useRef(null);\n /**\n * Context to register all menu item nodes\n */\n\n var descendants = useMenuDescendants();\n var focusMenu = React.useCallback(function () {\n focus(menuRef.current, {\n nextTick: true,\n selectTextIfInput: false\n });\n }, []);\n var focusFirstItem = React.useCallback(function () {\n var id = setTimeout(function () {\n var first = descendants.firstEnabled();\n if (first) setFocusedIndex(first.index);\n });\n timeoutIds.current.add(id);\n }, [descendants]);\n var focusLastItem = React.useCallback(function () {\n var id = setTimeout(function () {\n var last = descendants.lastEnabled();\n if (last) setFocusedIndex(last.index);\n });\n timeoutIds.current.add(id);\n }, [descendants]);\n var onOpenInternal = React.useCallback(function () {\n onOpenProp == null ? void 0 : onOpenProp();\n\n if (autoSelect) {\n focusFirstItem();\n } else {\n focusMenu();\n }\n }, [autoSelect, focusFirstItem, focusMenu, onOpenProp]);\n\n var _useDisclosure = useDisclosure({\n isOpen: isOpenProp,\n defaultIsOpen: defaultIsOpen,\n onClose: onCloseProp,\n onOpen: onOpenInternal\n }),\n isOpen = _useDisclosure.isOpen,\n onOpen = _useDisclosure.onOpen,\n onClose = _useDisclosure.onClose,\n onToggle = _useDisclosure.onToggle;\n\n useOutsideClick({\n enabled: isOpen && closeOnBlur,\n ref: menuRef,\n handler: function handler(event) {\n var _buttonRef$current;\n\n if (!((_buttonRef$current = buttonRef.current) != null && _buttonRef$current.contains(event.target))) {\n onClose();\n }\n }\n });\n /**\n * Add some popper.js for dynamic positioning\n */\n\n var popper = usePopper(_extends({}, popperProps, {\n enabled: isOpen || computePositionOnMount,\n placement: placement,\n direction: direction\n }));\n\n var _React$useState = React.useState(-1),\n focusedIndex = _React$useState[0],\n setFocusedIndex = _React$useState[1];\n /**\n * Focus the button when we close the menu\n */\n\n\n useUpdateEffect(function () {\n if (!isOpen) {\n setFocusedIndex(-1);\n }\n }, [isOpen]);\n useFocusOnHide(menuRef, {\n focusRef: buttonRef,\n visible: isOpen,\n shouldFocus: true\n });\n var animationState = useAnimationState({\n isOpen: isOpen,\n ref: menuRef\n });\n /**\n * Generate unique ids for menu's list and button\n */\n\n var _useIds = useIds(id, \"menu-button\", \"menu-list\"),\n buttonId = _useIds[0],\n menuId = _useIds[1];\n\n var openAndFocusMenu = React.useCallback(function () {\n onOpen();\n focusMenu();\n }, [onOpen, focusMenu]);\n var timeoutIds = React.useRef(new Set([]));\n useUnmountEffect(function () {\n timeoutIds.current.forEach(function (id) {\n return clearTimeout(id);\n });\n timeoutIds.current.clear();\n });\n var openAndFocusFirstItem = React.useCallback(function () {\n onOpen();\n focusFirstItem();\n }, [focusFirstItem, onOpen]);\n var openAndFocusLastItem = React.useCallback(function () {\n onOpen();\n focusLastItem();\n }, [onOpen, focusLastItem]);\n var refocus = React.useCallback(function () {\n var _menuRef$current, _descendants$item;\n\n var doc = getOwnerDocument(menuRef.current);\n var hasFocusWithin = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(doc.activeElement);\n var shouldRefocus = isOpen && !hasFocusWithin;\n if (!shouldRefocus) return;\n var node = (_descendants$item = descendants.item(focusedIndex)) == null ? void 0 : _descendants$item.node;\n\n if (node) {\n focus(node, {\n selectTextIfInput: false,\n preventScroll: false\n });\n }\n }, [isOpen, focusedIndex, descendants]);\n return {\n openAndFocusMenu: openAndFocusMenu,\n openAndFocusFirstItem: openAndFocusFirstItem,\n openAndFocusLastItem: openAndFocusLastItem,\n onTransitionEnd: refocus,\n unstable__animationState: animationState,\n descendants: descendants,\n popper: popper,\n buttonId: buttonId,\n menuId: menuId,\n forceUpdate: popper.forceUpdate,\n orientation: \"vertical\",\n isOpen: isOpen,\n onToggle: onToggle,\n onOpen: onOpen,\n onClose: onClose,\n menuRef: menuRef,\n buttonRef: buttonRef,\n focusedIndex: focusedIndex,\n closeOnSelect: closeOnSelect,\n closeOnBlur: closeOnBlur,\n autoSelect: autoSelect,\n setFocusedIndex: setFocusedIndex,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior\n };\n}\n\n/**\n * React Hook to manage a menu button.\n *\n * The assumption here is that the `useMenu` hook is used\n * in a component higher up the tree, and its return value\n * is passed as `context` to this hook.\n */\nfunction useMenuButton(props, externalRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (externalRef === void 0) {\n externalRef = null;\n }\n\n var menu = useMenuContext();\n var onToggle = menu.onToggle,\n popper = menu.popper,\n openAndFocusFirstItem = menu.openAndFocusFirstItem,\n openAndFocusLastItem = menu.openAndFocusLastItem;\n var onKeyDown = React.useCallback(function (event) {\n var eventKey = normalizeEventKey(event);\n var keyMap = {\n Enter: openAndFocusFirstItem,\n ArrowDown: openAndFocusFirstItem,\n ArrowUp: openAndFocusLastItem\n };\n var action = keyMap[eventKey];\n\n if (action) {\n event.preventDefault();\n event.stopPropagation();\n action(event);\n }\n }, [openAndFocusFirstItem, openAndFocusLastItem]);\n return _extends({}, props, {\n ref: mergeRefs(menu.buttonRef, externalRef, popper.referenceRef),\n id: menu.buttonId,\n \"data-active\": dataAttr(menu.isOpen),\n \"aria-expanded\": menu.isOpen,\n \"aria-haspopup\": \"menu\",\n \"aria-controls\": menu.menuId,\n onClick: callAllHandlers(props.onClick, onToggle),\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown)\n });\n}\n\nfunction isTargetMenuItem(target) {\n var _target$getAttribute;\n\n // this will catch `menuitem`, `menuitemradio`, `menuitemcheckbox`\n return isHTMLElement(target) && !!((_target$getAttribute = target.getAttribute(\"role\")) != null && _target$getAttribute.startsWith(\"menuitem\"));\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuList\n * -----------------------------------------------------------------------------------------------*/\n\n\n/**\n * React Hook to manage a menu list.\n *\n * The assumption here is that the `useMenu` hook is used\n * in a component higher up the tree, and its return value\n * is passed as `context` to this hook.\n */\nfunction useMenuList(props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n var menu = useMenuContext();\n\n if (!menu) {\n throw new Error(\"useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>\");\n }\n\n var focusedIndex = menu.focusedIndex,\n setFocusedIndex = menu.setFocusedIndex,\n menuRef = menu.menuRef,\n isOpen = menu.isOpen,\n onClose = menu.onClose,\n menuId = menu.menuId,\n isLazy = menu.isLazy,\n lazyBehavior = menu.lazyBehavior,\n animated = menu.unstable__animationState;\n var descendants = useMenuDescendantsContext();\n /**\n * Hook that creates a keydown event handler that listens\n * to printable keyboard character press\n */\n\n var createTypeaheadHandler = useShortcut({\n preventDefault: function preventDefault(event) {\n return event.key !== \" \" && isTargetMenuItem(event.target);\n }\n });\n var onKeyDown = React.useCallback(function (event) {\n var eventKey = normalizeEventKey(event);\n var keyMap = {\n Tab: function Tab(event) {\n return event.preventDefault();\n },\n Escape: onClose,\n ArrowDown: function ArrowDown() {\n var next = descendants.nextEnabled(focusedIndex);\n if (next) setFocusedIndex(next.index);\n },\n ArrowUp: function ArrowUp() {\n var prev = descendants.prevEnabled(focusedIndex);\n if (prev) setFocusedIndex(prev.index);\n }\n };\n var fn = keyMap[eventKey];\n\n if (fn) {\n event.preventDefault();\n fn(event);\n return;\n }\n /**\n * Typeahead: Based on current character pressed,\n * find the next item to be selected\n */\n\n\n var onTypeahead = createTypeaheadHandler(function (character) {\n var nextItem = getNextItemFromSearch(descendants.values(), character, function (item) {\n var _item$node$textConten, _item$node;\n\n return (_item$node$textConten = item == null ? void 0 : (_item$node = item.node) == null ? void 0 : _item$node.textContent) != null ? _item$node$textConten : \"\";\n }, descendants.item(focusedIndex));\n\n if (nextItem) {\n var index = descendants.indexOf(nextItem.node);\n setFocusedIndex(index);\n }\n });\n\n if (isTargetMenuItem(event.target)) {\n onTypeahead(event);\n }\n }, [descendants, focusedIndex, createTypeaheadHandler, onClose, setFocusedIndex]);\n var hasBeenOpened = React.useRef(false);\n\n if (isOpen) {\n hasBeenOpened.current = true;\n }\n\n var shouldRenderChildren = determineLazyBehavior({\n hasBeenSelected: hasBeenOpened.current,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior,\n isSelected: animated.present\n });\n return _extends({}, props, {\n ref: mergeRefs(menuRef, ref),\n children: shouldRenderChildren ? props.children : null,\n tabIndex: -1,\n role: \"menu\",\n id: menuId,\n style: _extends({}, props.style, {\n transformOrigin: \"var(--popper-transform-origin)\"\n }),\n \"aria-orientation\": \"vertical\",\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown)\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuPosition: Composes usePopper to position the menu\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuPositioner(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _useMenuContext = useMenuContext(),\n popper = _useMenuContext.popper,\n isOpen = _useMenuContext.isOpen;\n\n return popper.getPopperProps(_extends({}, props, {\n style: _extends({\n visibility: isOpen ? \"visible\" : \"hidden\"\n }, props.style)\n }));\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuItem: Hook for each menu item within the menu list.\n We also use it in `useMenuItemOption`\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuItem(props, externalRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (externalRef === void 0) {\n externalRef = null;\n }\n\n var _props2 = props,\n onMouseEnterProp = _props2.onMouseEnter,\n onMouseMoveProp = _props2.onMouseMove,\n onMouseLeaveProp = _props2.onMouseLeave,\n onClickProp = _props2.onClick,\n isDisabled = _props2.isDisabled,\n isFocusable = _props2.isFocusable,\n closeOnSelect = _props2.closeOnSelect,\n typeProp = _props2.type,\n htmlProps = _objectWithoutPropertiesLoose(_props2, _excluded2$1);\n\n var menu = useMenuContext();\n var setFocusedIndex = menu.setFocusedIndex,\n focusedIndex = menu.focusedIndex,\n menuCloseOnSelect = menu.closeOnSelect,\n onClose = menu.onClose,\n menuRef = menu.menuRef,\n isOpen = menu.isOpen,\n menuId = menu.menuId;\n var ref = React.useRef(null);\n var id = menuId + \"-menuitem-\" + useId();\n /**\n * Register the menuitem's node into the domContext\n */\n\n var _useMenuDescendant = useMenuDescendant({\n disabled: isDisabled && !isFocusable\n }),\n index = _useMenuDescendant.index,\n register = _useMenuDescendant.register;\n\n var onMouseEnter = React.useCallback(function (event) {\n onMouseEnterProp == null ? void 0 : onMouseEnterProp(event);\n if (isDisabled) return;\n setFocusedIndex(index);\n }, [setFocusedIndex, index, isDisabled, onMouseEnterProp]);\n var onMouseMove = React.useCallback(function (event) {\n onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);\n\n if (ref.current && !isActiveElement(ref.current)) {\n onMouseEnter(event);\n }\n }, [onMouseEnter, onMouseMoveProp]);\n var onMouseLeave = React.useCallback(function (event) {\n onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);\n if (isDisabled) return;\n setFocusedIndex(-1);\n }, [setFocusedIndex, isDisabled, onMouseLeaveProp]);\n var onClick = React.useCallback(function (event) {\n onClickProp == null ? void 0 : onClickProp(event);\n if (!isTargetMenuItem(event.currentTarget)) return;\n /**\n * Close menu and parent menus, allowing the MenuItem\n * to override its parent menu's `closeOnSelect` prop.\n */\n\n if (closeOnSelect != null ? closeOnSelect : menuCloseOnSelect) {\n onClose();\n }\n }, [onClose, onClickProp, menuCloseOnSelect, closeOnSelect]);\n var isFocused = index === focusedIndex;\n var trulyDisabled = isDisabled && !isFocusable;\n useUpdateEffect(function () {\n if (!isOpen) return;\n\n if (isFocused && !trulyDisabled && ref.current) {\n focus(ref.current, {\n nextTick: true,\n selectTextIfInput: false,\n preventScroll: false\n });\n } else if (menuRef.current && !isActiveElement(menuRef.current)) {\n focus(menuRef.current, {\n preventScroll: false\n });\n }\n }, [isFocused, trulyDisabled, menuRef, isOpen]);\n var clickableProps = useClickable({\n onClick: onClick,\n onMouseEnter: onMouseEnter,\n onMouseMove: onMouseMove,\n onMouseLeave: onMouseLeave,\n ref: mergeRefs(register, ref, externalRef),\n isDisabled: isDisabled,\n isFocusable: isFocusable\n });\n return _extends({}, htmlProps, clickableProps, {\n type: typeProp != null ? typeProp : clickableProps.type,\n id: id,\n role: \"menuitem\",\n tabIndex: isFocused ? 0 : -1\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuOption: Composes useMenuItem to provide a selectable/checkable menu item\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuOption(props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n var _props3 = props,\n _props3$type = _props3.type,\n type = _props3$type === void 0 ? \"radio\" : _props3$type,\n isChecked = _props3.isChecked,\n rest = _objectWithoutPropertiesLoose(_props3, _excluded3$1);\n\n var ownProps = useMenuItem(rest, ref);\n return _extends({}, ownProps, {\n role: \"menuitem\" + type,\n \"aria-checked\": isChecked\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuOptionGroup: Manages the state of multiple selectable menuitem or menu option\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuOptionGroup(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props4 = props,\n children = _props4.children,\n _props4$type = _props4.type,\n type = _props4$type === void 0 ? \"radio\" : _props4$type,\n valueProp = _props4.value,\n defaultValue = _props4.defaultValue,\n onChangeProp = _props4.onChange,\n htmlProps = _objectWithoutPropertiesLoose(_props4, _excluded4$1);\n\n var isRadio = type === \"radio\";\n var fallback = isRadio ? \"\" : [];\n\n var _useControllableState = useControllableState({\n defaultValue: defaultValue != null ? defaultValue : fallback,\n value: valueProp,\n onChange: onChangeProp\n }),\n value = _useControllableState[0],\n setValue = _useControllableState[1];\n\n var onChange = React.useCallback(function (selectedValue) {\n if (type === \"radio\" && isString(value)) {\n setValue(selectedValue);\n }\n\n if (type === \"checkbox\" && isArray(value)) {\n var nextValue = value.includes(selectedValue) ? removeItem(value, selectedValue) : addItem(value, selectedValue);\n setValue(nextValue);\n }\n }, [value, setValue, type]);\n var validChildren = getValidChildren(children);\n var clones = validChildren.map(function (child) {\n /**\n * We've added an internal `id` to each `MenuItemOption`,\n * let's use that for type-checking.\n *\n * We can't rely on displayName or the element's type since\n * they can be changed by the user.\n */\n if (child.type.id !== \"MenuItemOption\") return child;\n\n var onClick = function onClick(event) {\n onChange(child.props.value);\n child.props.onClick == null ? void 0 : child.props.onClick(event);\n };\n\n var isChecked = type === \"radio\" ? child.props.value === value : value.includes(child.props.value);\n return /*#__PURE__*/React.cloneElement(child, {\n type: type,\n onClick: onClick,\n isChecked: isChecked\n });\n });\n return _extends({}, htmlProps, {\n children: clones\n });\n}\nfunction useMenuState() {\n var _useMenuContext2 = useMenuContext(),\n isOpen = _useMenuContext2.isOpen,\n onClose = _useMenuContext2.onClose;\n\n return {\n isOpen: isOpen,\n onClose: onClose\n };\n}\n\nvar _excluded = [\"descendants\"],\n _excluded2 = [\"children\", \"as\"],\n _excluded3 = [\"rootProps\"],\n _excluded4 = [\"type\"],\n _excluded5 = [\"icon\", \"iconSpacing\", \"command\", \"commandSpacing\", \"children\"],\n _excluded6 = [\"icon\", \"iconSpacing\"],\n _excluded7 = [\"className\", \"title\"],\n _excluded8 = [\"title\", \"children\", \"className\"],\n _excluded9 = [\"className\", \"children\"],\n _excluded10 = [\"className\"];\n\n/**\n * Menu provides context, state, and focus management\n * to its sub-components. It doesn't render any DOM node.\n */\nvar Menu = function Menu(props) {\n var children = props.children;\n var styles = useMultiStyleConfig(\"Menu\", props);\n var ownProps = omitThemingProps(props);\n\n var _useTheme = useTheme(),\n direction = _useTheme.direction;\n\n var _useMenu = useMenu(_extends({}, ownProps, {\n direction: direction\n })),\n descendants = _useMenu.descendants,\n ctx = _objectWithoutPropertiesLoose(_useMenu, _excluded);\n\n var context = React.useMemo(function () {\n return ctx;\n }, [ctx]);\n var isOpen = context.isOpen,\n onClose = context.onClose,\n forceUpdate = context.forceUpdate;\n return /*#__PURE__*/React.createElement(MenuDescendantsProvider, {\n value: descendants\n }, /*#__PURE__*/React.createElement(MenuProvider, {\n value: context\n }, /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, runIfFn(children, {\n isOpen: isOpen,\n onClose: onClose,\n forceUpdate: forceUpdate\n }))));\n};\n\nif (__DEV__) {\n Menu.displayName = \"Menu\";\n}\n\nvar StyledMenuButton = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.button, _extends({\n ref: ref\n }, props, {\n __css: _extends({\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n outline: 0\n }, styles.button)\n }));\n});\n/**\n * The trigger for the menu list. Must be a direct child of `Menu`.\n */\n\nvar MenuButton = /*#__PURE__*/forwardRef(function (props, ref) {\n props.children;\n var As = props.as,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n var buttonProps = useMenuButton(rest, ref);\n var Element = As || StyledMenuButton;\n return /*#__PURE__*/React.createElement(Element, _extends({}, buttonProps, {\n className: cx(\"chakra-menu__menu-button\", props.className)\n }), /*#__PURE__*/React.createElement(chakra.span, {\n __css: {\n pointerEvents: \"none\",\n flex: \"1 1 auto\",\n minW: 0\n }\n }, props.children));\n});\n\nif (__DEV__) {\n MenuButton.displayName = \"MenuButton\";\n}\n\nvar motionVariants = {\n enter: {\n visibility: \"visible\",\n opacity: 1,\n scale: 1,\n transition: {\n duration: 0.2,\n ease: [0.4, 0, 0.2, 1]\n }\n },\n exit: {\n transitionEnd: {\n visibility: \"hidden\"\n },\n opacity: 0,\n scale: 0.8,\n transition: {\n duration: 0.1,\n easings: \"easeOut\"\n }\n }\n};\n\nfunction __motion(el) {\n var m = motion;\n\n if (\"custom\" in m && typeof m.custom === \"function\") {\n return m.custom(el);\n }\n\n return m(el);\n} // @future: only call `motion(chakra.div)` when we drop framer-motion v3 support\n\n\nvar MenuTransition = __motion(chakra.div);\n\nvar MenuList = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$zIndex, _styles$list;\n\n var rootProps = props.rootProps,\n rest = _objectWithoutPropertiesLoose(props, _excluded3);\n\n var _useMenuContext = useMenuContext(),\n isOpen = _useMenuContext.isOpen,\n onTransitionEnd = _useMenuContext.onTransitionEnd,\n animated = _useMenuContext.unstable__animationState;\n\n var ownProps = useMenuList(rest, ref);\n var positionerProps = useMenuPositioner(rootProps);\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, positionerProps, {\n __css: {\n zIndex: (_props$zIndex = props.zIndex) != null ? _props$zIndex : (_styles$list = styles.list) == null ? void 0 : _styles$list.zIndex\n }\n }), /*#__PURE__*/React.createElement(MenuTransition, _extends({}, ownProps, {\n /**\n * We could call this on either `onAnimationComplete` or `onUpdate`.\n * It seems the re-focusing works better with the `onUpdate`\n */\n onUpdate: onTransitionEnd,\n onAnimationComplete: callAll(animated.onComplete, ownProps.onAnimationComplete),\n className: cx(\"chakra-menu__menu-list\", ownProps.className),\n variants: motionVariants,\n initial: false,\n animate: isOpen ? \"enter\" : \"exit\",\n __css: _extends({\n outline: 0\n }, styles.list)\n })));\n});\n\nif (__DEV__) {\n MenuList.displayName = \"MenuList\";\n}\n\nvar StyledMenuItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var type = props.type,\n rest = _objectWithoutPropertiesLoose(props, _excluded4);\n\n var styles = useStyles();\n /**\n * Given another component, use its type if present\n * Else, use no type to avoid invalid html, e.g. <a type=\"button\" />\n * Else, fall back to \"button\"\n */\n\n var btnType = rest.as || type ? type != null ? type : undefined : \"button\";\n var buttonStyles = React.useMemo(function () {\n return _extends({\n textDecoration: \"none\",\n color: \"inherit\",\n userSelect: \"none\",\n display: \"flex\",\n width: \"100%\",\n alignItems: \"center\",\n textAlign: \"start\",\n flex: \"0 0 auto\",\n outline: 0\n }, styles.item);\n }, [styles.item]);\n return /*#__PURE__*/React.createElement(chakra.button, _extends({\n ref: ref,\n type: btnType\n }, rest, {\n __css: buttonStyles\n }));\n});\nvar MenuItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var icon = props.icon,\n _props$iconSpacing = props.iconSpacing,\n iconSpacing = _props$iconSpacing === void 0 ? \"0.75rem\" : _props$iconSpacing,\n command = props.command,\n _props$commandSpacing = props.commandSpacing,\n commandSpacing = _props$commandSpacing === void 0 ? \"0.75rem\" : _props$commandSpacing,\n children = props.children,\n rest = _objectWithoutPropertiesLoose(props, _excluded5);\n\n var menuitemProps = useMenuItem(rest, ref);\n var shouldWrap = icon || command;\n\n var _children = shouldWrap ? /*#__PURE__*/React.createElement(\"span\", {\n style: {\n pointerEvents: \"none\",\n flex: 1\n }\n }, children) : children;\n\n return /*#__PURE__*/React.createElement(StyledMenuItem, _extends({}, menuitemProps, {\n className: cx(\"chakra-menu__menuitem\", menuitemProps.className)\n }), icon && /*#__PURE__*/React.createElement(MenuIcon, {\n fontSize: \"0.8em\",\n marginEnd: iconSpacing\n }, icon), _children, command && /*#__PURE__*/React.createElement(MenuCommand, {\n marginStart: commandSpacing\n }, command));\n});\n\nif (__DEV__) {\n MenuItem.displayName = \"MenuItem\";\n}\n\nvar CheckIcon = function CheckIcon(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 14 14\",\n width: \"1em\",\n height: \"1em\"\n }, props), /*#__PURE__*/React.createElement(\"polygon\", {\n fill: \"currentColor\",\n points: \"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039\"\n }));\n};\n\nvar MenuItemOption = /*#__PURE__*/forwardRef(function (props, ref) {\n // menu option item should always be `type=button`, so we omit `type`\n var icon = props.icon,\n _props$iconSpacing2 = props.iconSpacing,\n iconSpacing = _props$iconSpacing2 === void 0 ? \"0.75rem\" : _props$iconSpacing2,\n rest = _objectWithoutPropertiesLoose(props, _excluded6);\n\n var optionProps = useMenuOption(rest, ref);\n return /*#__PURE__*/React.createElement(StyledMenuItem, _extends({}, optionProps, {\n className: cx(\"chakra-menu__menuitem-option\", rest.className)\n }), icon !== null && /*#__PURE__*/React.createElement(MenuIcon, {\n fontSize: \"0.8em\",\n marginEnd: iconSpacing,\n opacity: props.isChecked ? 1 : 0\n }, icon || /*#__PURE__*/React.createElement(CheckIcon, null)), /*#__PURE__*/React.createElement(\"span\", {\n style: {\n flex: 1\n }\n }, optionProps.children));\n});\nMenuItemOption.id = \"MenuItemOption\";\n\nif (__DEV__) {\n MenuItemOption.displayName = \"MenuItemOption\";\n}\n\nvar MenuOptionGroup = function MenuOptionGroup(props) {\n var className = props.className,\n title = props.title,\n rest = _objectWithoutPropertiesLoose(props, _excluded7);\n\n var ownProps = useMenuOptionGroup(rest);\n return /*#__PURE__*/React.createElement(MenuGroup, _extends({\n title: title,\n className: cx(\"chakra-menu__option-group\", className)\n }, ownProps));\n};\n\nif (__DEV__) {\n MenuOptionGroup.displayName = \"MenuOptionGroup\";\n}\n\nvar MenuGroup = /*#__PURE__*/forwardRef(function (props, ref) {\n var title = props.title,\n children = props.children,\n className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded8);\n\n var _className = cx(\"chakra-menu__group__title\", className);\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: ref,\n className: \"chakra-menu__group\",\n role: \"group\"\n }, title && /*#__PURE__*/React.createElement(chakra.p, _extends({\n className: _className\n }, rest, {\n __css: styles.groupTitle\n }), title), children);\n});\n\nif (__DEV__) {\n MenuGroup.displayName = \"MenuGroup\";\n}\n\nvar MenuCommand = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.span, _extends({\n ref: ref\n }, props, {\n __css: styles.command,\n className: \"chakra-menu__command\"\n }));\n});\n\nif (__DEV__) {\n MenuCommand.displayName = \"MenuCommand\";\n}\n\nvar MenuIcon = function MenuIcon(props) {\n var className = props.className,\n children = props.children,\n rest = _objectWithoutPropertiesLoose(props, _excluded9);\n\n var child = React.Children.only(children);\n var clone = /*#__PURE__*/React.isValidElement(child) ? /*#__PURE__*/React.cloneElement(child, {\n focusable: \"false\",\n \"aria-hidden\": true,\n className: cx(\"chakra-menu__icon\", child.props.className)\n }) : null;\n\n var _className = cx(\"chakra-menu__icon-wrapper\", className);\n\n return /*#__PURE__*/React.createElement(chakra.span, _extends({\n className: _className\n }, rest, {\n __css: {\n flexShrink: 0\n }\n }), clone);\n};\n\nif (__DEV__) {\n MenuIcon.displayName = \"MenuIcon\";\n}\n\nvar MenuDivider = function MenuDivider(props) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded10);\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.hr, _extends({\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n className: cx(\"chakra-menu__divider\", className)\n }, rest, {\n __css: styles.divider\n }));\n};\n\nif (__DEV__) {\n MenuDivider.displayName = \"MenuDivider\";\n}\n\nexport { Menu, MenuButton, MenuCommand, MenuDescendantsProvider, MenuDivider, MenuGroup, MenuIcon, MenuItem, MenuItemOption, MenuList, MenuOptionGroup, MenuProvider, useMenu, useMenuButton, useMenuContext, useMenuDescendant, useMenuDescendants, useMenuDescendantsContext, useMenuItem, useMenuList, useMenuOption, useMenuOptionGroup, useMenuPositioner, useMenuState };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$1","_excluded2$1","_excluded3$1","_excluded4$1","_createDescendantCont","createDescendantContext","MenuDescendantsProvider","useMenuDescendantsContext","useMenuDescendants","useMenuDescendant","_createContext","createContext","strict","name","MenuProvider","useMenuContext","isTargetMenuItem","_target$getAttribute","isHTMLElement","getAttribute","startsWith","useMenuItem","props","externalRef","_props2","onMouseEnterProp","onMouseEnter","onMouseMoveProp","onMouseMove","onMouseLeaveProp","onMouseLeave","onClickProp","onClick","isDisabled","isFocusable","closeOnSelect","typeProp","type","htmlProps","menu","setFocusedIndex","focusedIndex","menuCloseOnSelect","onClose","menuRef","isOpen","menuId","ref","React","useRef","id","useId","_useMenuDescendant","disabled","index","register","useCallback","event","current","isActiveElement","currentTarget","isFocused","trulyDisabled","useUpdateEffect","focus","nextTick","selectTextIfInput","preventScroll","clickableProps","useClickable","mergeRefs","role","tabIndex","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","_excluded6","_excluded7","_excluded8","_excluded9","_excluded10","Menu","children","styles","useMultiStyleConfig","_useMenu","_props","_props$closeOnSelect","_props$closeOnBlur","closeOnBlur","_props$autoSelect","autoSelect","isLazy","isOpenProp","defaultIsOpen","onCloseProp","onOpenProp","onOpen","_props$placement","placement","_props$lazyBehavior","lazyBehavior","direction","_props$computePositio","computePositionOnMount","popperProps","buttonRef","descendants","focusMenu","focusFirstItem","setTimeout","first","firstEnabled","timeoutIds","add","focusLastItem","last","lastEnabled","onOpenInternal","_useDisclosure","useDisclosure","onToggle","useOutsideClick","enabled","handler","_buttonRef$current","contains","popper","usePopper","_React$useState","useState","useFocusOnHide","focusRef","visible","shouldFocus","animationState","useAnimationState","_useIds","useIds","buttonId","openAndFocusMenu","Set","useUnmountEffect","forEach","clearTimeout","clear","openAndFocusFirstItem","openAndFocusLastItem","onTransitionEnd","_menuRef$current","_descendants$item","doc","getOwnerDocument","hasFocusWithin","activeElement","node","item","unstable__animationState","forceUpdate","orientation","useMenu","omitThemingProps","useTheme","ctx","context","useMemo","createElement","value","StylesProvider","runIfFn","__DEV__","displayName","StyledMenuButton","forwardRef","useStyles","chakra","button","__css","display","appearance","alignItems","outline","MenuButton","As","as","buttonProps","onKeyDown","eventKey","normalizeEventKey","action","Enter","ArrowDown","ArrowUp","preventDefault","stopPropagation","referenceRef","dataAttr","callAllHandlers","useMenuButton","Element","className","cx","span","pointerEvents","flex","minW","motionVariants","enter","visibility","opacity","scale","transition","duration","ease","exit","transitionEnd","easings","el","m","MenuTransition","div","motion","custom","MenuList","_props$zIndex","_styles$list","rootProps","rest","_useMenuContext","animated","ownProps","Error","createTypeaheadHandler","useShortcut","keyMap","Tab","Escape","next","nextEnabled","prev","prevEnabled","fn","onTypeahead","character","nextItem","getNextItemFromSearch","values","_item$node$textConten","_item$node","textContent","hasBeenOpened","shouldRenderChildren","determineLazyBehavior","hasBeenSelected","isSelected","present","style","transformOrigin","useMenuList","positionerProps","getPopperProps","useMenuPositioner","zIndex","list","onUpdate","onAnimationComplete","callAll","onComplete","variants","initial","animate","StyledMenuItem","btnType","undefined","buttonStyles","textDecoration","color","userSelect","width","textAlign","MenuItem","icon","_props$iconSpacing","iconSpacing","command","_props$commandSpacing","commandSpacing","menuitemProps","_children","MenuIcon","fontSize","marginEnd","MenuCommand","marginStart","CheckIcon","viewBox","height","fill","points","MenuItemOption","_props$iconSpacing2","optionProps","_props3","_props3$type","isChecked","useMenuOption","MenuOptionGroup","title","_props4","_props4$type","valueProp","defaultValue","onChangeProp","onChange","fallback","_useControllableState","useControllableState","setValue","selectedValue","isString","isArray","nextValue","includes","removeItem","addItem","getValidChildren","map","child","cloneElement","useMenuOptionGroup","MenuGroup","_className","p","groupTitle","Children","only","clone","isValidElement","focusable","flexShrink","MenuDivider","hr","divider","_useMenuContext2"],"mappings":"8mBAWA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,IAK3B,OAAOL,GAGFH,EAASY,MAAMC,KAAMR,WAG9B,SAASS,EAA8BP,EAAQQ,GAC7C,GAAc,MAAVR,EAAgB,MAAO,GAC3B,IAEIC,EAAKJ,EAFLD,EAAS,GACTa,EAAaf,OAAOgB,KAAKV,GAG7B,IAAKH,EAAI,EAAGA,EAAIY,EAAWV,OAAQF,IACjCI,EAAMQ,EAAWZ,GACbW,EAASG,QAAQV,IAAQ,IAC7BL,EAAOK,GAAOD,EAAOC,IAGvB,OAAOL,EAGT,IAAIgB,EAAc,CAAC,KAAM,gBAAiB,cAAe,aAAc,SAAU,SAAU,gBAAiB,UAAW,SAAU,YAAa,eAAgB,YAAa,0BACvKC,EAAe,CAAC,eAAgB,cAAe,eAAgB,UAAW,aAAc,cAAe,gBAAiB,QACxHC,EAAe,CAAC,OAAQ,aACxBC,EAAe,CAAC,WAAY,OAAQ,QAAS,eAAgB,YAK7DC,EAAwBC,EAAAA,0BACxBC,EAA0BF,EAAsB,GAChDG,EAA4BH,EAAsB,GAClDI,EAAqBJ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ACN,mBAAoB,aACpBmI,UAAWC,EAAAA,GAAG,uBAAwBD,IACrC2B,EAAM,CACPlD,MAAO9F,EAAOmQ,YAId5K,YACF0K,EAAYzK,YAAc,2MAxX5B,WACE,IAAI4K,EAAmB1U,IAIvB,MAAO,CACL8B,OAJW4S,EAAiB5S,OAK5BF,QAJY8S,EAAiB9S"}
@@ -0,0 +1,16 @@
1
+ "use strict";var e=require("./chakra-ui-icon.esm-30b0b8a9.js"),t=require("./chakra-ui-system.esm-b563b97d.js"),n=require("react"),r=require("./index-c60b408f.js"),o=require("./tslib.es6-f01c41a6.js"),a=require("./inheritsLoose-490721fe.js"),i=require("./chakra-ui-portal.esm-72927bd9.js"),c=require("./index-5c563615.js"),u=require("./motion-1db106fa.js"),s=require("./chakra-ui-hooks.esm-c8f7aa0e.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var f=d(n),p=l(n);function v(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}var h={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},y={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},g={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},x={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},E={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function b(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return g;case"left":return y;case"bottom":return E;case"top":return x}}var w={enter:{duration:.2,ease:h.easeOut},exit:{duration:.1,ease:h.easeIn}},_=function(e,n){return m({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.enter})},N=function(e,n){return m({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.exit})},k=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],O={exit:{height:{duration:.2,ease:h.ease},opacity:{duration:.3,ease:h.ease}},enter:{height:{duration:.3,ease:h.ease},opacity:{duration:.4,ease:h.ease}}},C={exit:function(e){var t,n,r=e.animateOpacity,o=e.startingHeight,a=e.transition,i=e.transitionEnd,c=e.delay;return m({},r&&{opacity:(n=o,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:o,transitionEnd:null==i?void 0:i.exit,transition:null!=(t=null==a?void 0:a.exit)?t:N(O.exit,c)})},enter:function(e){var t,n=e.animateOpacity,r=e.endingHeight,o=e.transition,a=e.transitionEnd,i=e.delay;return m({},n&&{opacity:1},{height:r,transitionEnd:null==a?void 0:a.enter,transition:null!=(t=null==o?void 0:o.enter)?t:_(O.enter,i)})}},F=f.forwardRef((function(e,n){var r=e.in,o=e.unmountOnExit,a=e.animateOpacity,i=void 0===a||a,s=e.startingHeight,l=void 0===s?0:s,d=e.endingHeight,p=void 0===d?"auto":d,h=e.style,y=e.className,g=e.transition,x=e.transitionEnd,E=v(e,k),b=f.useState(!1),w=b[0],_=b[1];f.useEffect((function(){var e=setTimeout((function(){_(!0)}));return function(){return clearTimeout(e)}}),[]),t.warn({condition:Boolean(l>0&&o),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var N=parseFloat(l.toString())>0,O={startingHeight:l,endingHeight:p,animateOpacity:i,transition:w?g:{enter:{duration:0}},transitionEnd:t.mergeWith(x,{exit:o?void 0:{display:N?"block":"none"}})},F=!o||r,S=r||o?"enter":"exit";return f.createElement(c.AnimatePresence,{initial:!1,custom:O},F&&f.createElement(u.motion.div,m({ref:n},E,{className:t.cx("chakra-collapse",y),style:m({overflow:"hidden",display:"block"},h),custom:O,variants:C,initial:!!o&&"exit",animate:S,exit:"exit"})))}));t.__DEV__&&(F.displayName="Collapse");var S=["unmountOnExit","in","className","transition","transitionEnd","delay"],T={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd,a=n.delay;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:_(w.enter,a),transitionEnd:null==o?void 0:o.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd,a=n.delay;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:N(w.exit,a),transitionEnd:null==o?void 0:o.exit}}},M={initial:"exit",animate:"enter",exit:"exit",variants:T},P=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,d=v(e,S),p=o||r?"enter":"exit",h=!r||o&&r,y={transition:i,transitionEnd:s,delay:l};return f.createElement(c.AnimatePresence,{custom:y},h&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-fade",a),custom:y},M,{animate:p},d)))}));t.__DEV__&&(P.displayName="Fade");var D=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],R={exit:function(e){var t,n=e.reverse,r=e.initialScale,o=e.transition,a=e.transitionEnd,i=e.delay;return m({opacity:0},n?{scale:r,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:m({scale:r},null==a?void 0:a.exit)},{transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,i)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:_(w.enter,o),transitionEnd:null==n?void 0:n.enter}}},A={initial:"exit",animate:"enter",exit:"exit",variants:R},I=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.reverse,i=void 0===a||a,s=e.initialScale,l=void 0===s?.95:s,d=e.className,p=e.transition,h=e.transitionEnd,y=e.delay,g=v(e,D),x=!r||o&&r,E=o||r?"enter":"exit",b={initialScale:l,reverse:i,transition:p,transitionEnd:h,delay:y};return f.createElement(c.AnimatePresence,{custom:b},x&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-offset-slide",d)},A,{animate:E,custom:b},g)))}));t.__DEV__&&(I.displayName="ScaleFade");var j=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],L={exit:{duration:.15,ease:h.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},B={exit:function(e){var t,n=e.direction,r=e.transition,o=e.transitionEnd,a=e.delay;return m({},b({direction:n}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:N(L.exit,a),transitionEnd:null==o?void 0:o.exit})},enter:function(e){var t,n=e.direction,r=e.transitionEnd,o=e.transition,a=e.delay;return m({},b({direction:n}).enter,{transition:null!=(t=null==o?void 0:o.enter)?t:_(L.enter,a),transitionEnd:null==r?void 0:r.enter})}},V=f.forwardRef((function(e,n){var r=e.direction,o=void 0===r?"right":r,a=e.style,i=e.unmountOnExit,s=e.in,l=e.className,d=e.transition,p=e.transitionEnd,h=e.delay,y=v(e,j),g=b({direction:o}),x=Object.assign({position:"fixed"},g.position,a),E=!i||s&&i,w=s||i?"enter":"exit",_={transitionEnd:p,transition:d,direction:o,delay:h};return f.createElement(c.AnimatePresence,{custom:_},E&&f.createElement(u.motion.div,m({},y,{ref:n,initial:"exit",className:t.cx("chakra-slide",l),animate:w,exit:"exit",custom:_,variants:B,style:x})))}));t.__DEV__&&(V.displayName="Slide");var W=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],H={initial:function(e){var t,n=e.offsetX,r=e.offsetY,o=e.transition,a=e.transitionEnd,i=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,i),transitionEnd:null==a?void 0:a.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:_(w.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,o=e.transition,a=e.transitionEnd,i=e.reverse,c=e.delay,u={x:r,y:n};return m({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,c)},i?m({},u,{transitionEnd:null==a?void 0:a.exit}):{transitionEnd:m({},u,null==a?void 0:a.exit)})}},q={initial:"initial",animate:"enter",exit:"exit",variants:H},Y=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.reverse,i=void 0===a||a,s=e.className,l=e.offsetX,d=void 0===l?0:l,p=e.offsetY,h=void 0===p?8:p,y=e.transition,g=e.transitionEnd,x=e.delay,E=v(e,W),b=!r||o&&r,w=o||r?"enter":"exit",_={offsetX:d,offsetY:h,reverse:i,transition:y,transitionEnd:g,delay:x};return f.createElement(c.AnimatePresence,{custom:_},b&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-offset-slide",s),custom:_},q,{animate:w},E)))}));function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}t.__DEV__&&(Y.displayName="SlideFade");var G=["children","isDisabled","__css"],U=function(t){return f.createElement(e.Icon,X({focusable:"false","aria-hidden":!0},t),f.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},Z=t.forwardRef((function(e,n){var r=t.useStyleConfig("CloseButton",e),o=t.omitThemingProps(e),a=o.children,i=o.isDisabled,c=o.__css,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(o,G);return f.createElement(t.chakra.button,X({type:"button","aria-label":"Close",ref:n,disabled:i,__css:X({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},r,c)},u),a||f.createElement(U,{width:"1em",height:"1em"}))}));t.__DEV__&&(Z.displayName="CloseButton");function z(e,t){return r=t||null,o=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(a=n.useState((function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,a.facade;var r,o,a}var K={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function J(e){return e}function Q(e,t){void 0===t&&(t=J);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function $(e,t){return void 0===t&&(t=J),Q(e,t)}function ee(e){void 0===e&&(e={});var t=Q(null);return t.options=o.__assign({async:!0,ssr:!1},e),t}"production"===process.env.NODE_ENV||r.PropTypes.node;var te=function(e){var t=e.sideCar,n=o.__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,o.__assign({},n))};te.isSideCarExport=!0;var ne=$({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),re=$(),oe=$(),ae=ee({async:!0}),ie=[],ce=f.forwardRef((function(e,n){var r,o=f.useState(),a=o[0],i=o[1],c=f.useRef(),u=f.useRef(!1),s=f.useRef(null),l=e.children,d=e.disabled,p=e.noFocusGuards,v=e.persistentFocus,m=e.crossFrame,h=e.autoFocus,y=e.allowTextSelection,g=e.group,x=e.className,E=e.whiteList,b=e.shards,w=void 0===b?ie:b,_=e.as,N=void 0===_?"div":_,k=e.lockProps,O=void 0===k?{}:k,C=e.sideCar,F=e.returnFocus,S=e.onActivation,T=e.onDeactivation,M=f.useState({})[0],P=f.useCallback((function(){s.current=s.current||document&&document.activeElement,c.current&&S&&S(c.current),u.current=!0}),[S]),D=f.useCallback((function(){u.current=!1,T&&T(c.current)}),[T]),R=f.useCallback((function(e){var t=s.current;if(Boolean(F)&&t&&t.focus){var n="object"==typeof F?F:void 0;s.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[F]),A=f.useCallback((function(e){u.current&&ne.useMedium(e)}),[]),I=re.useMedium,j=f.useCallback((function(e){c.current!==e&&(c.current=e,i(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==y&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),f.useEffect((function(){c.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var L=t._extends(((r={})["data-focus-lock-disabled"]=d&&"disabled",r["data-focus-lock"]=g,r),O),B=!0!==p,V=B&&"tail"!==p,W=z([n,j]);return f.createElement(f.Fragment,null,B&&[f.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:K}),f.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:K})],!d&&f.createElement(C,{id:M,sideCar:ae,observed:a,disabled:d,persistentFocus:v,crossFrame:m,autoFocus:h,whiteList:E,shards:w,onActivation:P,onDeactivation:D,returnFocus:R}),f.createElement(N,t._extends({ref:W},L,{className:x,onBlur:I,onFocus:A}),l),V&&f.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:K}))}));ce.propTypes="production"!==process.env.NODE_ENV?{children:r.propTypes.exports.node,disabled:r.propTypes.exports.bool,returnFocus:r.propTypes.exports.oneOfType([r.propTypes.exports.bool,r.propTypes.exports.object]),noFocusGuards:r.propTypes.exports.bool,allowTextSelection:r.propTypes.exports.bool,autoFocus:r.propTypes.exports.bool,persistentFocus:r.propTypes.exports.bool,crossFrame:r.propTypes.exports.bool,group:r.propTypes.exports.string,className:r.propTypes.exports.string,whiteList:r.propTypes.exports.func,shards:r.propTypes.exports.arrayOf(r.propTypes.exports.any),as:r.propTypes.exports.oneOfType([r.propTypes.exports.string,r.propTypes.exports.func,r.propTypes.exports.object]),lockProps:r.propTypes.exports.object,onActivation:r.propTypes.exports.func,onDeactivation:r.propTypes.exports.func,sideCar:r.propTypes.exports.any.isRequired}:{},ce.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var ue=ce;var se=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},le=function(e){return Array.isArray(e)?e:[e]},de=function(e){return e.parentNode?de(e.parentNode):e},fe=function(e){return le(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute("data-focus-lock");return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var a=e[r].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(se(de(t).querySelectorAll('[data-focus-lock="'+n+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),e}),[])},pe=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},ve=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=pe(t,ve.bind(void 0,e));return e.set(t,r),r},me=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},he=function(e){return!me(e)},ye=function(e){return Boolean(e)},ge=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},xe=function(e,t,n){return se(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(ge)},Ee=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),be=Ee+", [data-focus-guard]",we=function(e,t){return e.reduce((function(e,n){return e.concat(se(n.querySelectorAll(t?be:Ee)),n.parentNode?se(n.parentNode.querySelectorAll(Ee)).filter((function(e){return e===n})):[])}),[])},_e=function(e,t){return se(e).filter((function(e){return ve(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},Ne=function(e,t,n){return xe(_e(we(e,n),t),!0,n)},ke=function(e,t){return xe(_e(we(e),t),!1)},Oe=function(e,t){return _e((n=e.querySelectorAll("[data-autofocus-inside]"),se(n).map((function(e){return we([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n},Ce=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Ce(e.parentNode,t),t},Fe=function(e,t){for(var n=Ce(e),r=Ce(t),o=0;o<n.length;o+=1){var a=n[o];if(r.indexOf(a)>=0)return a}return!1},Se=function(e,t,n){var r=le(e),o=le(t),a=r[0],i=!1;return o.filter(Boolean).forEach((function(e){i=Fe(i||e,e)||i,n.filter(Boolean).forEach((function(e){var t=Fe(a,e);t&&(i=!i||t.contains(i)?t:Fe(t,i))}))})),i},Te=function(e){return Boolean(se(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},Me=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&fe(e).reduce((function(e,n){return e||n.contains(t)||Te(n)}),!1)},Pe=function(e){return"INPUT"===e.tagName&&"radio"===e.type},De=function(e,t){return Pe(e)&&e.name?function(e,t){return t.filter(Pe).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Re=function(e){return e[0]&&e.length>1?De(e[0],e):e[0]},Ae=function(e,t){return e.length>1?e.indexOf(De(e[t],e)):t},Ie=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],c=me(n);if(!(e.indexOf(n)>=0)){var u,s,l=t.indexOf(n),d=r?t.indexOf(r):l,f=r?e.indexOf(r):-1,p=l-d,v=t.indexOf(a),m=t.indexOf(i),h=(u=t,s=new Set,u.forEach((function(e){return s.add(De(e,u))})),u.filter((function(e){return s.has(e)}))),y=h.indexOf(n)-(r?h.indexOf(r):l),g=Ae(e,0),x=Ae(e,o-1);return-1===l||-1===f?"NEW_FOCUS":!p&&f>=0?f:l<=v&&c&&Math.abs(p)>1?x:l>=m&&c&&Math.abs(p)>1?g:p&&Math.abs(y)>1?f:l<=v?x:l>m?g:p?Math.abs(p)>1?f:(o+f+p)%o:void 0}},je=function(e,t){var n=document&&document.activeElement,r=fe(e).filter(he),o=Se(n||e,e,r),a=new Map,i=ke(r,a),c=Ne(r,a).filter((function(e){var t=e.node;return he(t)}));if(c[0]||(c=i)[0]){var u,s,l,d,f=ke([o],a).map((function(e){return e.node})),p=(u=f,s=c,l=new Map,s.forEach((function(e){return l.set(e.node,e)})),u.map((function(e){return l.get(e)})).filter(ye)),v=p.map((function(e){return e.node})),m=Ie(v,f,n,t);if("NEW_FOCUS"===m){var h=i.map((function(e){return e.node})).filter((d=function(e,t){return e.reduce((function(e,n){return e.concat(Oe(n,t))}),[])}(r,a),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||d.indexOf(e)>=0}));return{node:h&&h.length?Re(h):Re(v)}}return void 0===m?m:p[m]}},Le=0,Be=!1,Ve=function(e,t){var n,r=je(e,t);if(!Be&&r){if(Le>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Be=!0,void setTimeout((function(){Be=!1}),1);Le++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),Le--}};function We(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var He=function(){return document&&document.activeElement===document.body||document&&se(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},qe=null,Ye=null,Xe=null,Ge=!1,Ue=function(){return!0};function Ze(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else{if(!i.lockItem)break;if(a!==e)return;o=null}}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var ze=function(e){return e&&"current"in e?e.current:e},Ke=function(){var e,t,n,r,o,a,i,c=!1;if(qe){var u=qe,s=u.observed,l=u.persistentFocus,d=u.autoFocus,f=u.shards,p=u.crossFrame,v=s||Xe&&Xe.portaledElement,m=document&&document.activeElement;if(v){var h=[v].concat(f.map(ze).filter(Boolean));if(m&&!function(e){return(qe.whiteList||Ue)(e)}(m)||(l||(p?Boolean(Ge):"meanwhile"===Ge)||!He()||!Ye&&d)&&(!v||Me(h)||(i=m,Xe&&Xe.portaledElement===i)||(document&&!Ye&&m&&!d?(m.blur&&m.blur(),document.body.focus()):(c=Ve(h,Ye),Xe={})),Ge=!1,Ye=document&&document.activeElement),document){var y=document&&document.activeElement,g=(t=fe(e=h).filter(he),n=Se(e,e,t),r=new Map,o=Ne([n],r,!0),a=Ne(t,r).filter((function(e){var t=e.node;return he(t)})).map((function(e){return e.node})),o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:me(t)}}))),x=g.map((function(e){return e.node})).indexOf(y);x>-1&&(g.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Ze(x,g.length,1,g),Ze(x,-1,-1,g))}}}return c},Je=function(e){Ke()&&e&&(e.stopPropagation(),e.preventDefault())},Qe=function(){return We(Ke)};"production"===process.env.NODE_ENV||r.PropTypes.node.isRequired;var $e=function(){Ge="just",setTimeout((function(){Ge="meanwhile"}),0)};ne.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Xe={observerNode:n,portaledElement:t})})),re.assignMedium(Qe),oe.assignMedium((function(e){return e({moveFocusInside:Ve,focusInside:Me})}));var et=function(e,t){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(r){if("production"!==process.env.NODE_ENV&&"function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,i=[];function c(){o=e(i.map((function(e){return e.props}))),t(o)}var u,s,l,d=function(e){function t(){return e.apply(this,arguments)||this}a._inheritsLoose(t,e),t.peek=function(){return o};var n=t.prototype;return n.componentDidMount=function(){i.push(this),c()},n.componentDidUpdate=function(){c()},n.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),c()},n.render=function(){return p.default.createElement(r,this.props)},t}(n.PureComponent);return u=d,s="displayName",l="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",s in u?Object.defineProperty(u,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):u[s]=l,d}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!qe&&(document.addEventListener("focusin",Je,!0),document.addEventListener("focusout",Qe),window.addEventListener("blur",$e));var n=qe,r=n&&t&&t.id===n.id;qe=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Ye=null,r&&n.observed===t.observed||t.onActivation(),Ke(),We(Ke)):(document.removeEventListener("focusin",Je,!0),document.removeEventListener("focusout",Qe),window.removeEventListener("blur",$e),Ye=null)}))((function(){return null})),tt=f.forwardRef((function(e,n){return f.createElement(ue,t._extends({sideCar:et,ref:n},e))})),nt=ue.propTypes||{};nt.sideCar;var rt=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(nt,["sideCar"]);tt.propTypes="production"!==process.env.NODE_ENV?rt:{};var ot=tt,at=function(e){var n=e.initialFocusRef,r=e.finalFocusRef,o=e.contentRef,a=e.restoreFocus,i=e.children,c=e.isDisabled,u=e.autoFocus,s=e.persistentFocus,l=e.lockFocusAcrossFrames,d=f.useCallback((function(){if(null!=n&&n.current)n.current.focus();else if(null!=o&&o.current){0===t.getAllFocusable(o.current).length&&t.focus(o.current,{nextTick:!0})}}),[n,o]),p=f.useCallback((function(){var e;null==r||null==(e=r.current)||e.focus()}),[r]),v=a&&!r;return f.createElement(ot,{crossFrame:l,persistentFocus:s,autoFocus:u,disabled:c,onActivation:d,onDeactivation:p,returnFocus:v},i)};t.__DEV__&&(at.displayName="FocusLock")
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */;var it=function(){return it=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},it.apply(this,arguments)};var ct=ee(),ut=function(){},st=f.forwardRef((function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:ut,onWheelCapture:ut,onTouchMoveCapture:ut}),o=r[0],a=r[1],i=e.forwardProps,c=e.children,u=e.className,s=e.removeScrollBar,l=e.enabled,d=e.shards,p=e.sideCar,v=e.noIsolation,m=e.inert,h=e.allowPinchZoom,y=e.as,g=void 0===y?"div":y,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=p,b=z([n,t]),w=it({},x,o);return f.createElement(f.Fragment,null,l&&f.createElement(E,{sideCar:ct,removeScrollBar:s,shards:d,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),i?f.cloneElement(f.Children.only(c),it({},w,{ref:b})):f.createElement(g,it({},w,{className:u,ref:b}),c))}));st.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},st.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};function lt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var dt=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=lt())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ft=function(){var e,t=(e=dt(),function(t){f.useEffect((function(){return e.add(t),function(){e.remove()}}),[t])});return function(e){var n=e.styles;return t(n),null}},pt={left:0,top:0,right:0,gap:0},vt=function(e){return parseInt(e||"",10)||0},mt=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[vt(n),vt(r),vt(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ht=ft(),yt=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat("right-scroll-bar-position"," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat("width-before-scroll-bar"," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat("right-scroll-bar-position"," .").concat("right-scroll-bar-position"," {\n right: 0 ").concat(r,";\n }\n \n .").concat("width-before-scroll-bar"," .").concat("width-before-scroll-bar"," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},gt=function(e){var t=f.useState(mt(e.gapMode)),n=t[0],r=t[1];f.useEffect((function(){r(mt(e.gapMode))}),[e.gapMode]);var o=e.noRelative,a=e.noImportant,i=e.gapMode,c=void 0===i?"margin":i;return f.createElement(ht,{styles:yt(n,!o,c,a?"":"!important")})},xt=function(e,t){var n=t;do{if(Et(e,n)){var r=bt(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Et=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},bt=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},wt=!1;if("undefined"!=typeof window)try{var _t=Object.defineProperty({},"passive",{get:function(){return wt=!0,!0}});window.addEventListener("test",_t,_t),window.removeEventListener("test",_t,_t)}catch(e){wt=!1}var Nt=!!wt&&{passive:!1},kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ot=function(e){return[e.deltaX,e.deltaY]},Ct=function(e){return e&&"current"in e?e.current:e},Ft=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},St=0,Tt=[];var Mt,Pt=(Mt=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(St++)[0],a=f.useState((function(){return ft()}))[0],i=f.useRef(e);f.useEffect((function(){i.current=e}),[e]),f.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Ct)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=kt(e),c=n.current,u="deltaX"in e?e.deltaX:c[0]-a[0],s="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v",f=xt(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=xt(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var a=r,i=n.target,c=t.contains(i),u=!1,s=a>0,l=0,d=0;do{var f=bt(e,i),p=f[0],v=f[1]-f[2]-p;(p||v)&&Et(e,i)&&(l+=v,d+=p),i=i.parentNode}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(s&&(o&&0===l||!o&&a>l)||!s&&(o&&0===d||!o&&-a>d))&&(u=!0),u}(p,t,e,"h"===p?u:s,!0)}),[]),u=f.useCallback((function(e){var n=e;if(Tt.length&&Tt[Tt.length-1]===a){var r="deltaY"in n?Ot(n):kt(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var u=(i.current.shards||[]).map(Ct).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?c(n,u[0]):!i.current.noIsolation)&&n.preventDefault()}}}),[]),s=f.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),l=f.useCallback((function(e){n.current=kt(e),r.current=void 0}),[]),d=f.useCallback((function(t){s(t.type,Ot(t),t.target,c(t,e.lockRef.current))}),[]),p=f.useCallback((function(t){s(t.type,kt(t),t.target,c(t,e.lockRef.current))}),[]);f.useEffect((function(){return Tt.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Nt),document.addEventListener("touchmove",u,Nt),document.addEventListener("touchstart",l,Nt),function(){Tt=Tt.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Nt),document.removeEventListener("touchmove",u,Nt),document.removeEventListener("touchstart",l,Nt)}}),[]);var v=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(a,{styles:Ft(o)}):null,v?f.createElement(gt,{gapMode:"margin"}):null)},ct.useMedium(Mt),te),Dt=f.forwardRef((function(e,t){return f.createElement(st,it({},e,{ref:t,sideCar:Pt}))}));Dt.classNames=st.classNames;var Rt=Dt,At=new WeakMap,It=new WeakMap,jt={},Lt=0,Bt=function(e,t,n){void 0===t&&(t=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];jt[n]||(jt[n]=new WeakMap);var o=jt[n],a=[],i=new Set,c=function(e){e&&!i.has(e)&&(i.add(e),c(e.parentNode))};r.forEach(c);var u=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(i.has(e))u(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,c=(At.get(e)||0)+1,s=(o.get(e)||0)+1;At.set(e,c),o.set(e,s),a.push(e),1===c&&r&&It.set(e,!0),1===s&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return u(t),i.clear(),Lt++,function(){a.forEach((function(e){var t=At.get(e)-1,r=o.get(e)-1;At.set(e,t),o.set(e,r),t||(It.has(e)||e.removeAttribute("aria-hidden"),It.delete(e)),r||e.removeAttribute(n)})),--Lt||(At=new WeakMap,At=new WeakMap,It=new WeakMap,jt={})}};function Vt(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Wt(){return Wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}var Ht=["preset"],qt={slideInBottom:Wt({},q,{custom:{offsetY:16,reverse:!0}}),slideInRight:Wt({},q,{custom:{offsetX:16,reverse:!0}}),scale:Wt({},A,{custom:{initialScale:.95,reverse:!0}}),none:{}},Yt=t.chakra(u.motion.section),Xt=f.forwardRef((function(e,t){var n=e.preset,r=Vt(e,Ht),o=qt[n];return f.createElement(Yt,Wt({ref:t},o,r))})),Gt=new(function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(e){this.modals.push(e)},t.remove=function(e){this.modals=this.modals.filter((function(t){return t!==e}))},t.isTopModal=function(e){return this.modals[this.modals.length-1]===e},e}());function Ut(e){var r,o,a,i=e.isOpen,c=e.onClose,u=e.id,l=e.closeOnOverlayClick,d=void 0===l||l,f=e.closeOnEsc,p=void 0===f||f,v=e.useInert,m=void 0===v||v,h=e.onOverlayClick,y=e.onEsc,g=n.useRef(null),x=n.useRef(null),E=s.useIds(u,"chakra-modal","chakra-modal--header","chakra-modal--body"),b=E[0],w=E[1],_=E[2];o=i&&m,a=(r=g).current,n.useEffect((function(){if(r.current&&o)return Bt(r.current)}),[o,r,a]),function(e,t){n.useEffect((function(){return t&&Gt.add(e),function(){Gt.remove(e)}}),[t,e])}(g,i);var N=n.useRef(null),k=n.useCallback((function(e){N.current=e.target}),[]),O=n.useCallback((function(e){"Escape"===e.key&&(e.stopPropagation(),p&&(null==c||c()),null==y||y())}),[p,c,y]),C=n.useState(!1),F=C[0],S=C[1],T=n.useState(!1),M=T[0],P=T[1],D=n.useCallback((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Wt({role:"dialog"},e,{ref:t.mergeRefs(n,g),id:b,tabIndex:-1,"aria-modal":!0,"aria-labelledby":F?w:void 0,"aria-describedby":M?_:void 0,onClick:t.callAllHandlers(e.onClick,(function(e){return e.stopPropagation()}))})}),[_,M,b,w,F]),R=n.useCallback((function(e){e.stopPropagation(),N.current===e.target&&Gt.isTopModal(g)&&(d&&(null==c||c()),null==h||h())}),[c,d,h]),A=n.useCallback((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Wt({},e,{ref:t.mergeRefs(n,x),onClick:t.callAllHandlers(e.onClick,R),onKeyDown:t.callAllHandlers(e.onKeyDown,O),onMouseDown:t.callAllHandlers(e.onMouseDown,k)})}),[O,k,R]);return{isOpen:i,onClose:c,headerId:w,bodyId:_,setBodyMounted:P,setHeaderMounted:S,dialogRef:g,overlayRef:x,getDialogProps:D,getDialogContainerProps:A}}var Zt=["className","children","containerProps"],zt=["className","transition"],Kt=["className"],Jt=["className"],Qt=["className"],$t=["onClick","className"],en=t.createContext({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),tn=en[0],nn=en[1],rn=function(e){var n=e.portalProps,r=e.children,o=e.autoFocus,a=e.trapFocus,u=e.initialFocusRef,s=e.finalFocusRef,l=e.returnFocusOnClose,d=e.blockScrollOnMount,p=e.allowPinchZoom,v=e.preserveScrollBarGap,m=e.motionPreset,h=e.lockFocusAcrossFrames,y=e.onCloseComplete,g=t.useMultiStyleConfig("Modal",e),x=Wt({},Ut(e),{autoFocus:o,trapFocus:a,initialFocusRef:u,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:d,allowPinchZoom:p,preserveScrollBarGap:v,motionPreset:m,lockFocusAcrossFrames:h});return f.createElement(tn,{value:x},f.createElement(t.StylesProvider,{value:g},f.createElement(c.AnimatePresence,{onExitComplete:y},x.isOpen&&f.createElement(i.Portal,n,r))))};rn.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},t.__DEV__&&(rn.displayName="Modal");var on=t.chakra(u.motion.div),an=t.forwardRef((function(e,n){var r=e.className,o=e.children,a=e.containerProps,i=Vt(e,Zt),c=nn(),u=c.getDialogProps,s=c.getDialogContainerProps,l=u(i,n),d=s(a),p=t.cx("chakra-modal__content",r),v=t.useStyles(),m=Wt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},v.dialog),h=Wt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},v.dialogContainer),y=nn().motionPreset;return f.createElement(cn,null,f.createElement(t.chakra.div,Wt({},d,{className:"chakra-modal__content-container",tabIndex:-1,__css:h}),f.createElement(Xt,Wt({preset:y,className:p},l,{__css:m}),o)))}));function cn(e){var t=nn(),n=t.autoFocus,r=t.trapFocus,o=t.dialogRef,a=t.initialFocusRef,i=t.blockScrollOnMount,c=t.allowPinchZoom,s=t.finalFocusRef,l=t.returnFocusOnClose,d=t.preserveScrollBarGap,p=t.lockFocusAcrossFrames,v=u.usePresence(),m=v[0],h=v[1];return f.useEffect((function(){!m&&h&&setTimeout(h)}),[m,h]),f.createElement(at,{autoFocus:n,isDisabled:!r,initialFocusRef:a,finalFocusRef:s,restoreFocus:l,contentRef:o,lockFocusAcrossFrames:p},f.createElement(Rt,{removeScrollBar:!d,allowPinchZoom:c,enabled:i,forwardProps:!0},e.children))}t.__DEV__&&(an.displayName="ModalContent");var un=t.forwardRef((function(e,n){var r=e.className;e.transition;var o=Vt(e,zt),a=t.cx("chakra-modal__overlay",r),i=Wt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},t.useStyles().overlay),c="none"===nn().motionPreset?{}:M;return f.createElement(on,Wt({},c,{__css:i,ref:n,className:a},o))}));t.__DEV__&&(un.displayName="ModalOverlay");var sn=t.forwardRef((function(e,n){var r=e.className,o=Vt(e,Kt),a=nn(),i=a.headerId,c=a.setHeaderMounted;f.useEffect((function(){return c(!0),function(){return c(!1)}}),[c]);var u=t.cx("chakra-modal__header",r),s=Wt({flex:0},t.useStyles().header);return f.createElement(t.chakra.header,Wt({ref:n,className:u,id:i},o,{__css:s}))}));t.__DEV__&&(sn.displayName="ModalHeader");var ln=t.forwardRef((function(e,n){var r=e.className,o=Vt(e,Jt),a=nn(),i=a.bodyId,c=a.setBodyMounted;f.useEffect((function(){return c(!0),function(){return c(!1)}}),[c]);var u=t.cx("chakra-modal__body",r),s=t.useStyles();return f.createElement(t.chakra.div,Wt({ref:n,className:u,id:i},o,{__css:s.body}))}));t.__DEV__&&(ln.displayName="ModalBody");var dn=t.forwardRef((function(e,n){var r=e.className,o=Vt(e,Qt),a=t.cx("chakra-modal__footer",r),i=Wt({display:"flex",alignItems:"center",justifyContent:"flex-end"},t.useStyles().footer);return f.createElement(t.chakra.footer,Wt({ref:n},o,{__css:i,className:a}))}));t.__DEV__&&(dn.displayName="ModalFooter");var fn=t.forwardRef((function(e,n){var r=e.onClick,o=e.className,a=Vt(e,$t),i=nn().onClose,c=t.cx("chakra-modal__close-btn",o),u=t.useStyles();return f.createElement(Z,Wt({ref:n,__css:u.closeButton,className:c,onClick:t.callAllHandlers(r,(function(e){e.stopPropagation(),i()}))},a))}));t.__DEV__&&(fn.displayName="ModalCloseButton");var pn=["leastDestructiveRef"];var vn=t.forwardRef((function(e,t){return f.createElement(an,Wt({ref:t,role:"alertdialog"},e))})),mn=["isOpen","onClose","placement","children"],hn=["className","children"],yn=t.createContext(),gn=yn[0],xn=yn[1],En={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};var bn=t.chakra(V),wn=t.forwardRef((function(e,n){var r=e.className,o=e.children,a=Vt(e,hn),i=nn(),c=i.getDialogProps,u=i.getDialogContainerProps,s=i.isOpen,l=c(a,n),d=u(),p=t.cx("chakra-modal__content",r),v=t.useStyles(),m=Wt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},v.dialog),h=Wt({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},v.dialogContainer),y=xn().placement;return f.createElement(t.chakra.div,Wt({},d,{className:"chakra-modal__content-container",__css:h}),f.createElement(cn,null,f.createElement(bn,Wt({direction:y,in:s,className:p},l,{__css:m}),o)))}));t.__DEV__&&(wn.displayName="DrawerContent"),exports.AlertDialog=function(e){var t=e.leastDestructiveRef,n=Vt(e,pn);return f.createElement(rn,Wt({},n,{initialFocusRef:t}))},exports.AlertDialogContent=vn,exports.Collapse=F,exports.Drawer=function(e){var n,r=e.isOpen,o=e.onClose,a=e.placement,i=void 0===a?"right":a,c=e.children,u=Vt(e,mn),s=t.useTheme(),l=null==(n=s.components)?void 0:n.Drawer,d=function(e,t){var n,r;if(e)return null!=(n=null==(r=En[e])?void 0:r[t])?n:e}(i,s.direction);return f.createElement(gn,{value:{placement:d}},f.createElement(rn,Wt({isOpen:r,onClose:o,styleConfig:l},u),c))},exports.DrawerContent=wn,exports.Modal=rn,exports.ModalBody=ln,exports.ModalCloseButton=fn,exports.ModalContent=an,exports.ModalFooter=dn,exports.ModalHeader=sn,exports.ModalOverlay=un,exports.useModalContext=nn;
16
+ //# sourceMappingURL=chakra-ui-modal.esm-cf414b2f.js.map