@servicetitan/anvil2 1.3.3 → 1.3.5

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 (459) hide show
  1. package/Alert-673d75aa.cjs +2 -0
  2. package/Alert-673d75aa.cjs.map +1 -0
  3. package/{Alert-012e475c.js → Alert-85a791c2.js} +29 -27
  4. package/Alert-85a791c2.js.map +1 -0
  5. package/Alert.cjs +1 -1
  6. package/Alert.js +1 -1
  7. package/Announcement.cjs +1 -1
  8. package/Announcement.cjs.map +1 -1
  9. package/Announcement.js +99 -15
  10. package/Announcement.js.map +1 -1
  11. package/AnvilProvider.cjs +1 -1
  12. package/AnvilProvider.js +1 -1
  13. package/Avatar.cjs +1 -1
  14. package/Avatar.cjs.map +1 -1
  15. package/Avatar.js +127 -12
  16. package/Avatar.js.map +1 -1
  17. package/Badge.cjs +1 -1
  18. package/Badge.cjs.map +1 -1
  19. package/Badge.js +47 -7
  20. package/Badge.js.map +1 -1
  21. package/Button.cjs +1 -1
  22. package/Button.cjs.map +1 -1
  23. package/Button.js +14 -40
  24. package/Button.js.map +1 -1
  25. package/ButtonCompound.cjs +1 -1
  26. package/ButtonCompound.cjs.map +1 -1
  27. package/ButtonCompound.js +13 -39
  28. package/ButtonCompound.js.map +1 -1
  29. package/ButtonLink.cjs +1 -1
  30. package/ButtonLink.cjs.map +1 -1
  31. package/ButtonLink.js +14 -40
  32. package/ButtonLink.js.map +1 -1
  33. package/ButtonToggle.cjs +1 -1
  34. package/ButtonToggle.cjs.map +1 -1
  35. package/ButtonToggle.js +14 -40
  36. package/ButtonToggle.js.map +1 -1
  37. package/Calendar.cjs +1 -1
  38. package/Calendar.cjs.map +1 -1
  39. package/Calendar.js +5812 -24
  40. package/Calendar.js.map +1 -1
  41. package/Card.cjs +1 -1
  42. package/Card.cjs.map +1 -1
  43. package/Card.js +52 -6
  44. package/Card.js.map +1 -1
  45. package/Checkbox-634c4d3d.js +164 -0
  46. package/Checkbox-634c4d3d.js.map +1 -0
  47. package/Checkbox-d1db5a71.cjs +2 -0
  48. package/Checkbox-d1db5a71.cjs.map +1 -0
  49. package/Checkbox.cjs +1 -1
  50. package/Checkbox.cjs.map +1 -1
  51. package/Checkbox.css +1 -0
  52. package/Checkbox.js +23 -49
  53. package/Checkbox.js.map +1 -1
  54. package/{Chip-6dde28bc.js → Chip-73b032eb.js} +36 -34
  55. package/Chip-73b032eb.js.map +1 -0
  56. package/Chip-88873569.cjs +2 -0
  57. package/Chip-88873569.cjs.map +1 -0
  58. package/Chip.cjs +1 -1
  59. package/Chip.js +1 -1
  60. package/Combobox.cjs +41 -1
  61. package/Combobox.cjs.map +1 -1
  62. package/Combobox.js +4177 -76
  63. package/Combobox.js.map +1 -1
  64. package/Details.cjs +1 -1
  65. package/Details.cjs.map +1 -1
  66. package/Details.js +153 -50
  67. package/Details.js.map +1 -1
  68. package/Dialog-1984afe2.js +214 -0
  69. package/Dialog-1984afe2.js.map +1 -0
  70. package/Dialog-de6969a2.cjs +2 -0
  71. package/Dialog-de6969a2.cjs.map +1 -0
  72. package/Dialog.cjs +1 -1
  73. package/Dialog.cjs.map +1 -1
  74. package/Dialog.css +1 -0
  75. package/Dialog.js +38 -64
  76. package/Dialog.js.map +1 -1
  77. package/Divider.cjs +1 -1
  78. package/Divider.cjs.map +1 -1
  79. package/Divider.js +76 -7
  80. package/Divider.js.map +1 -1
  81. package/Drawer.cjs +1 -1
  82. package/Drawer.cjs.map +1 -1
  83. package/Drawer.js +242 -70
  84. package/Drawer.js.map +1 -1
  85. package/{Flex-d338e855.js → Flex-d06c75c0.js} +18 -17
  86. package/Flex-d06c75c0.js.map +1 -0
  87. package/Flex-da1ad9db.cjs +2 -0
  88. package/Flex-da1ad9db.cjs.map +1 -0
  89. package/Flex.cjs +1 -1
  90. package/Flex.js +1 -1
  91. package/Grid.cjs +1 -1
  92. package/Grid.cjs.map +1 -1
  93. package/Grid.js +90 -6
  94. package/Grid.js.map +1 -1
  95. package/{Helper-74a1f07f-61317df2.cjs → Helper-74a1f07f-8fcd0721.cjs} +2 -2
  96. package/{Helper-74a1f07f-61317df2.cjs.map → Helper-74a1f07f-8fcd0721.cjs.map} +1 -1
  97. package/{Helper-74a1f07f-092263c4.js → Helper-74a1f07f-d017affe.js} +3 -3
  98. package/{Helper-74a1f07f-092263c4.js.map → Helper-74a1f07f-d017affe.js.map} +1 -1
  99. package/Icon-847b3515.cjs +2 -0
  100. package/Icon-847b3515.cjs.map +1 -0
  101. package/{Icon-b94f924c.js → Icon-be690f0b.js} +13 -12
  102. package/Icon-be690f0b.js.map +1 -0
  103. package/Icon.cjs +1 -1
  104. package/Icon.js +1 -1
  105. package/Label-854a39e4.js +47 -0
  106. package/Label-854a39e4.js.map +1 -0
  107. package/Label-e2593298.cjs +2 -0
  108. package/Label-e2593298.cjs.map +1 -0
  109. package/Label.css +1 -0
  110. package/Layout.cjs +1 -1
  111. package/Layout.cjs.map +1 -1
  112. package/Layout.js +21 -21
  113. package/Layout.js.map +1 -1
  114. package/Link.cjs +1 -1
  115. package/Link.cjs.map +1 -1
  116. package/Link.js +17 -43
  117. package/Link.js.map +1 -1
  118. package/ListView.cjs +1 -1
  119. package/ListView.cjs.map +1 -1
  120. package/ListView.css +1 -1
  121. package/ListView.js +412 -24
  122. package/ListView.js.map +1 -1
  123. package/ListView.module-854f2491-1f87d388.cjs +2 -0
  124. package/ListView.module-854f2491-1f87d388.cjs.map +1 -0
  125. package/ListView.module-854f2491-c5eba193.js +11 -0
  126. package/ListView.module-854f2491-c5eba193.js.map +1 -0
  127. package/Listbox.cjs +1 -1
  128. package/Listbox.cjs.map +1 -1
  129. package/Listbox.js +403 -25
  130. package/Listbox.js.map +1 -1
  131. package/Listbox.module-2120a0a7-794d64a0.cjs +2 -0
  132. package/Listbox.module-2120a0a7-794d64a0.cjs.map +1 -0
  133. package/Listbox.module-2120a0a7-aa22f0ed.js +13 -0
  134. package/Listbox.module-2120a0a7-aa22f0ed.js.map +1 -0
  135. package/LocalizationProvider.cjs +1 -1
  136. package/LocalizationProvider.cjs.map +1 -1
  137. package/LocalizationProvider.js +11 -10
  138. package/LocalizationProvider.js.map +1 -1
  139. package/Menu.cjs +1 -1
  140. package/Menu.cjs.map +1 -1
  141. package/Menu.js +320 -51
  142. package/Menu.js.map +1 -1
  143. package/Overflow-057bbf4e.cjs +2 -0
  144. package/Overflow-057bbf4e.cjs.map +1 -0
  145. package/Overflow-a026904d.js +249 -0
  146. package/Overflow-a026904d.js.map +1 -0
  147. package/Overflow.cjs +1 -1
  148. package/Overflow.cjs.map +1 -1
  149. package/Overflow.css +1 -0
  150. package/Overflow.js +23 -49
  151. package/Overflow.js.map +1 -1
  152. package/Page.cjs +1 -1
  153. package/Page.cjs.map +1 -1
  154. package/Page.js +12 -11
  155. package/Page.js.map +1 -1
  156. package/Popover-aaeea980.js +272 -0
  157. package/Popover-aaeea980.js.map +1 -0
  158. package/Popover-e336dabc.cjs +2 -0
  159. package/Popover-e336dabc.cjs.map +1 -0
  160. package/Popover.cjs +1 -1
  161. package/Popover.cjs.map +1 -1
  162. package/Popover.css +1 -0
  163. package/Popover.js +34 -60
  164. package/Popover.js.map +1 -1
  165. package/ProgressBar.cjs +1 -1
  166. package/ProgressBar.cjs.map +1 -1
  167. package/ProgressBar.js +121 -7
  168. package/ProgressBar.js.map +1 -1
  169. package/Radio.cjs +1 -1
  170. package/Radio.cjs.map +1 -1
  171. package/Radio.js +142 -50
  172. package/Radio.js.map +1 -1
  173. package/SegmentedControl.cjs +1 -1
  174. package/SegmentedControl.cjs.map +1 -1
  175. package/SegmentedControl.js +133 -58
  176. package/SegmentedControl.js.map +1 -1
  177. package/SideNav.cjs +1 -29
  178. package/SideNav.cjs.map +1 -1
  179. package/SideNav.js +258 -1139
  180. package/SideNav.js.map +1 -1
  181. package/SrOnly-0c7fd87a.js +13 -0
  182. package/{SrOnly-864bd4cb.js.map → SrOnly-0c7fd87a.js.map} +1 -1
  183. package/SrOnly-91a467dc.cjs +2 -0
  184. package/{SrOnly-88e8fca6.cjs.map → SrOnly-91a467dc.cjs.map} +1 -1
  185. package/SrOnly.cjs +1 -1
  186. package/SrOnly.js +1 -1
  187. package/Stepper.cjs +1 -1
  188. package/Stepper.cjs.map +1 -1
  189. package/Stepper.js +430 -47
  190. package/Stepper.js.map +1 -1
  191. package/Switch.cjs +1 -1
  192. package/Switch.cjs.map +1 -1
  193. package/Switch.js +67 -44
  194. package/Switch.js.map +1 -1
  195. package/Tab.cjs +9 -1
  196. package/Tab.cjs.map +1 -1
  197. package/Tab.js +436 -24
  198. package/Tab.js.map +1 -1
  199. package/{Text-465104f6.js → Text-08c90c22.js} +30 -29
  200. package/Text-08c90c22.js.map +1 -0
  201. package/Text-8ed03ac7.cjs +2 -0
  202. package/Text-8ed03ac7.cjs.map +1 -0
  203. package/Text.cjs +1 -1
  204. package/Text.js +1 -1
  205. package/TextField.cjs +1 -1
  206. package/TextField.cjs.map +1 -1
  207. package/TextField.js +156 -47
  208. package/TextField.js.map +1 -1
  209. package/Textarea.cjs +1 -1
  210. package/Textarea.cjs.map +1 -1
  211. package/Textarea.js +260 -45
  212. package/Textarea.js.map +1 -1
  213. package/ThemeProvider.cjs +1 -1
  214. package/ThemeProvider.js +1 -1
  215. package/Toast.cjs +8 -1
  216. package/Toast.cjs.map +1 -1
  217. package/Toast.js +568 -9
  218. package/Toast.js.map +1 -1
  219. package/Tooltip-2ecbf35e.cjs +2 -0
  220. package/Tooltip-2ecbf35e.cjs.map +1 -0
  221. package/Tooltip-dcc5d45c.js +157 -0
  222. package/Tooltip-dcc5d45c.js.map +1 -0
  223. package/Tooltip.cjs +1 -1
  224. package/Tooltip.cjs.map +1 -1
  225. package/Tooltip.css +1 -0
  226. package/Tooltip.js +18 -44
  227. package/Tooltip.js.map +1 -1
  228. package/anvil2.cjs +1 -1
  229. package/anvil2.d.ts +18 -6
  230. package/anvil2.js +161 -183
  231. package/anvil2.js.map +1 -1
  232. package/check_circle-48e002d3-0d49b2da.cjs +2 -0
  233. package/check_circle-48e002d3-0d49b2da.cjs.map +1 -0
  234. package/check_circle-48e002d3-5838521c.js +7 -0
  235. package/check_circle-48e002d3-5838521c.js.map +1 -0
  236. package/chevron_right-5b0931b5-96f8a9c6.cjs +2 -0
  237. package/chevron_right-5b0931b5-96f8a9c6.cjs.map +1 -0
  238. package/chevron_right-5b0931b5-ac35ad56.js +6 -0
  239. package/chevron_right-5b0931b5-ac35ad56.js.map +1 -0
  240. package/childrenToString-0cd30a27.cjs +2 -0
  241. package/childrenToString-0cd30a27.cjs.map +1 -0
  242. package/childrenToString-416df522.js +19 -0
  243. package/childrenToString-416df522.js.map +1 -0
  244. package/extends-31d75778.js +27 -0
  245. package/extends-31d75778.js.map +1 -0
  246. package/extends-60b54772.cjs +2 -0
  247. package/extends-60b54772.cjs.map +1 -0
  248. package/getKeyboardFocusableElements-58a00025.js +14 -0
  249. package/getKeyboardFocusableElements-58a00025.js.map +1 -0
  250. package/getKeyboardFocusableElements-aba1bd01.cjs +2 -0
  251. package/getKeyboardFocusableElements-aba1bd01.cjs.map +1 -0
  252. package/index-04060912.js +3677 -0
  253. package/index-04060912.js.map +1 -0
  254. package/index-06c0bdf0.js +480 -0
  255. package/index-06c0bdf0.js.map +1 -0
  256. package/index-11b6ca91-14b4e485.js +63 -0
  257. package/index-11b6ca91-14b4e485.js.map +1 -0
  258. package/index-11b6ca91-d30fd1d3.cjs +2 -0
  259. package/index-11b6ca91-d30fd1d3.cjs.map +1 -0
  260. package/{index-acdc415f.cjs → index-1f4f169d.cjs} +2 -2
  261. package/{index-acdc415f.cjs.map → index-1f4f169d.cjs.map} +1 -1
  262. package/index-40821bc4.cjs +2 -0
  263. package/index-40821bc4.cjs.map +1 -0
  264. package/{index-ab05dabf.js → index-47e4931c.js} +3 -3
  265. package/{index-ab05dabf.js.map → index-47e4931c.js.map} +1 -1
  266. package/index-49242812.js +59 -0
  267. package/index-49242812.js.map +1 -0
  268. package/index-69174413.cjs +5 -0
  269. package/index-69174413.cjs.map +1 -0
  270. package/index-902bf2b0.js +56 -0
  271. package/index-902bf2b0.js.map +1 -0
  272. package/index-a53df036.cjs +2 -0
  273. package/index-a53df036.cjs.map +1 -0
  274. package/{index-e0f6271a.js → index-c6e22bb9.js} +6 -6
  275. package/{index-e0f6271a.js.map → index-c6e22bb9.js.map} +1 -1
  276. package/index-dcf78e3f.cjs +2 -0
  277. package/index-dcf78e3f.cjs.map +1 -0
  278. package/{index-3a4e28a9-3d7ba14f.js → index-eb2e706f-03380994.js} +19 -18
  279. package/index-eb2e706f-03380994.js.map +1 -0
  280. package/index-eb2e706f-ff6c4157.cjs +2 -0
  281. package/index-eb2e706f-ff6c4157.cjs.map +1 -0
  282. package/{index-67d20edb.cjs → index-ef2e9d11.cjs} +2 -2
  283. package/{index-67d20edb.cjs.map → index-ef2e9d11.cjs.map} +1 -1
  284. package/index.css +1 -1
  285. package/index11.css +1 -0
  286. package/index12.css +1 -0
  287. package/index13.css +1 -0
  288. package/index14.css +1 -0
  289. package/index15.css +1 -0
  290. package/index16.css +1 -0
  291. package/index18.css +1 -0
  292. package/index19.css +1 -0
  293. package/index2.css +1 -1
  294. package/index21.css +1 -0
  295. package/index22.css +1 -0
  296. package/index24.css +1 -0
  297. package/index3.css +1 -1
  298. package/index6.css +1 -0
  299. package/index7.css +1 -0
  300. package/index9.css +1 -0
  301. package/info-af4c0112-9f16129f.cjs +2 -0
  302. package/info-af4c0112-9f16129f.cjs.map +1 -0
  303. package/info-af4c0112-f73c8f68.js +6 -0
  304. package/info-af4c0112-f73c8f68.js.map +1 -0
  305. package/package.json +2 -2
  306. package/tinycolor-3b50a250.cjs +2 -0
  307. package/tinycolor-3b50a250.cjs.map +1 -0
  308. package/tinycolor-d415b1fd.js +712 -0
  309. package/tinycolor-d415b1fd.js.map +1 -0
  310. package/token.cjs +1 -1
  311. package/token.js +1 -1
  312. package/useAccessibleColor.cjs +1 -1
  313. package/useAccessibleColor.cjs.map +1 -1
  314. package/useAccessibleColor.d.ts +1 -1
  315. package/useAccessibleColor.js +36 -32
  316. package/useAccessibleColor.js.map +1 -1
  317. package/useLayoutPropsUtil-cd33328b.cjs +2 -0
  318. package/useLayoutPropsUtil-cd33328b.cjs.map +1 -0
  319. package/useLayoutPropsUtil-f34e9597.js +160 -0
  320. package/useLayoutPropsUtil-f34e9597.js.map +1 -0
  321. package/useLinkStyles.cjs +1 -1
  322. package/useLinkStyles.d.ts +2 -2
  323. package/useLinkStyles.js +3 -31
  324. package/useLinkStyles.js.map +1 -1
  325. package/useMergeRefs.cjs +1 -1
  326. package/useMergeRefs.d.ts +1 -1
  327. package/useMergeRefs.js +3 -32
  328. package/useMergeRefs.js.map +1 -1
  329. package/usePrefersColorScheme.cjs +1 -1
  330. package/usePrefersColorScheme.cjs.map +1 -1
  331. package/usePrefersColorScheme.d.ts +1 -1
  332. package/usePrefersColorScheme.js +19 -32
  333. package/usePrefersColorScheme.js.map +1 -1
  334. package/useSwipe.cjs +1 -1
  335. package/useSwipe.cjs.map +1 -1
  336. package/useSwipe.d.ts +1 -1
  337. package/useSwipe.js +15 -32
  338. package/useSwipe.js.map +1 -1
  339. package/Alert-012e475c.js.map +0 -1
  340. package/Alert-066f00f2.cjs +0 -2
  341. package/Alert-066f00f2.cjs.map +0 -1
  342. package/Announcement-cd9602ed.cjs +0 -2
  343. package/Announcement-cd9602ed.cjs.map +0 -1
  344. package/Announcement-f9b09ba3.js +0 -88
  345. package/Announcement-f9b09ba3.js.map +0 -1
  346. package/Announcement.css +0 -1
  347. package/Badge-b8764640.cjs +0 -2
  348. package/Badge-b8764640.cjs.map +0 -1
  349. package/Badge-df96f15a.js +0 -45
  350. package/Badge-df96f15a.js.map +0 -1
  351. package/Badge.css +0 -1
  352. package/Calendar-31bcb381.js +0 -5797
  353. package/Calendar-31bcb381.js.map +0 -1
  354. package/Calendar-d0baf4b1.cjs +0 -2
  355. package/Calendar-d0baf4b1.cjs.map +0 -1
  356. package/Card-20628287.cjs +0 -2
  357. package/Card-20628287.cjs.map +0 -1
  358. package/Card-bb358803.js +0 -51
  359. package/Card-bb358803.js.map +0 -1
  360. package/Chip-5b63e48c.cjs +0 -2
  361. package/Chip-5b63e48c.cjs.map +0 -1
  362. package/Chip-6dde28bc.js.map +0 -1
  363. package/Divider-6646eeb8.cjs +0 -2
  364. package/Divider-6646eeb8.cjs.map +0 -1
  365. package/Divider-b3bff73a.js +0 -74
  366. package/Divider-b3bff73a.js.map +0 -1
  367. package/Flex-971b5295.cjs +0 -2
  368. package/Flex-971b5295.cjs.map +0 -1
  369. package/Flex-d338e855.js.map +0 -1
  370. package/Grid-37ded954.cjs +0 -2
  371. package/Grid-37ded954.cjs.map +0 -1
  372. package/Grid-5bad450f.js +0 -89
  373. package/Grid-5bad450f.js.map +0 -1
  374. package/Icon-57c31c9b.cjs +0 -2
  375. package/Icon-57c31c9b.cjs.map +0 -1
  376. package/Icon-b94f924c.js.map +0 -1
  377. package/ListView-3b1adecb.js +0 -557
  378. package/ListView-3b1adecb.js.map +0 -1
  379. package/ListView-88e49b19.cjs +0 -2
  380. package/ListView-88e49b19.cjs.map +0 -1
  381. package/Listbox-60fbdaa1.js +0 -394
  382. package/Listbox-60fbdaa1.js.map +0 -1
  383. package/Listbox-cd5c4185.cjs +0 -2
  384. package/Listbox-cd5c4185.cjs.map +0 -1
  385. package/ProgressBar-c1b5c7c3.js +0 -516
  386. package/ProgressBar-c1b5c7c3.js.map +0 -1
  387. package/ProgressBar-fa511478.cjs +0 -2
  388. package/ProgressBar-fa511478.cjs.map +0 -1
  389. package/ProgressBar.css +0 -1
  390. package/SideNav-33a404ec.js +0 -935
  391. package/SideNav-33a404ec.js.map +0 -1
  392. package/SideNav-47435e45.cjs +0 -21
  393. package/SideNav-47435e45.cjs.map +0 -1
  394. package/SrOnly-864bd4cb.js +0 -13
  395. package/SrOnly-88e8fca6.cjs +0 -2
  396. package/Stepper-7e3a130c.js +0 -633
  397. package/Stepper-7e3a130c.js.map +0 -1
  398. package/Stepper-8675700c.cjs +0 -2
  399. package/Stepper-8675700c.cjs.map +0 -1
  400. package/Stepper.css +0 -1
  401. package/Tab-1fce1d41.js +0 -422
  402. package/Tab-1fce1d41.js.map +0 -1
  403. package/Tab-f843e740.cjs +0 -10
  404. package/Tab-f843e740.cjs.map +0 -1
  405. package/Text-465104f6.js.map +0 -1
  406. package/Text-631c229a.cjs +0 -2
  407. package/Text-631c229a.cjs.map +0 -1
  408. package/Toast-32a4ab22.cjs +0 -9
  409. package/Toast-32a4ab22.cjs.map +0 -1
  410. package/Toast-6cd7d2e1.js +0 -566
  411. package/Toast-6cd7d2e1.js.map +0 -1
  412. package/check_circle-48e002d3-0554de7d.js +0 -8
  413. package/check_circle-48e002d3-0554de7d.js.map +0 -1
  414. package/check_circle-48e002d3-57364fcd.cjs +0 -2
  415. package/check_circle-48e002d3-57364fcd.cjs.map +0 -1
  416. package/floating-ui.react-51a3fa68.js +0 -23242
  417. package/floating-ui.react-51a3fa68.js.map +0 -1
  418. package/floating-ui.react-5347095a.cjs +0 -178
  419. package/floating-ui.react-5347095a.cjs.map +0 -1
  420. package/index-3a4e28a9-3d7ba14f.js.map +0 -1
  421. package/index-3a4e28a9-b649e635.cjs +0 -2
  422. package/index-3a4e28a9-b649e635.cjs.map +0 -1
  423. package/index-3f218083.js +0 -58
  424. package/index-3f218083.js.map +0 -1
  425. package/index-63e13299.cjs +0 -2
  426. package/index-63e13299.cjs.map +0 -1
  427. package/index-9948e3af.cjs +0 -23
  428. package/index-9948e3af.cjs.map +0 -1
  429. package/index-d46fa8de-c02f7a12.cjs +0 -2
  430. package/index-d46fa8de-c02f7a12.cjs.map +0 -1
  431. package/index-d46fa8de-f8bf17b6.js +0 -540
  432. package/index-d46fa8de-f8bf17b6.js.map +0 -1
  433. package/index-f7658447-1cfbda8f.js +0 -120
  434. package/index-f7658447-1cfbda8f.js.map +0 -1
  435. package/index-f7658447-f447ade8.cjs +0 -2
  436. package/index-f7658447-f447ade8.cjs.map +0 -1
  437. package/index-f7658447.css +0 -1
  438. package/index-ff5fea63.js +0 -5015
  439. package/index-ff5fea63.js.map +0 -1
  440. package/useLayoutPropsUtil-e307abc7-3826ee09.cjs +0 -2
  441. package/useLayoutPropsUtil-e307abc7-3826ee09.cjs.map +0 -1
  442. package/useLayoutPropsUtil-e307abc7-cbe2fb6d.js +0 -869
  443. package/useLayoutPropsUtil-e307abc7-cbe2fb6d.js.map +0 -1
  444. package/usePrefersColorScheme-129544ad-59e2e284.cjs +0 -2
  445. package/usePrefersColorScheme-129544ad-59e2e284.cjs.map +0 -1
  446. package/usePrefersColorScheme-129544ad-cab6fc3f.js +0 -55
  447. package/usePrefersColorScheme-129544ad-cab6fc3f.js.map +0 -1
  448. package/useSwipe-82769b09-835234e6.js +0 -17
  449. package/useSwipe-82769b09-835234e6.js.map +0 -1
  450. package/useSwipe-82769b09-dba26ed2.cjs +0 -2
  451. package/useSwipe-82769b09-dba26ed2.cjs.map +0 -1
  452. /package/{index-3a4e28a9.css → index-eb2e706f.css} +0 -0
  453. /package/{Grid.css → index10.css} +0 -0
  454. /package/{SideNav.css → index17.css} +0 -0
  455. /package/{Tab.css → index20.css} +0 -0
  456. /package/{Toast.css → index23.css} +0 -0
  457. /package/{Calendar.css → index4.css} +0 -0
  458. /package/{Card.css → index5.css} +0 -0
  459. /package/{Divider.css → index8.css} +0 -0
package/SideNav.js CHANGED
@@ -1,1166 +1,285 @@
1
- import { j as H } from "./jsx-runtime-82a9ddf6.js";
2
- import { _ as W, a as j, P as _, b as nr, f as or, O as ir, c as ar, M as Ke } from "./SideNav-33a404ec.js";
3
- import T, { forwardRef as Q, useMemo as sr, useCallback as cr } from "react";
4
- import { g as ur } from "./_commonjsHelpers-c5d32002.js";
5
- function k(e) {
6
- return e.charAt(0) === "/";
7
- }
8
- function be(e, r) {
9
- for (var o = r, n = o + 1, t = e.length; n < t; o += 1, n += 1)
10
- e[o] = e[n];
11
- e.pop();
12
- }
13
- function fr(e, r) {
14
- r === void 0 && (r = "");
15
- var o = e && e.split("/") || [], n = r && r.split("/") || [], t = e && k(e), c = r && k(r), p = t || c;
16
- if (e && k(e) ? n = o : o.length && (n.pop(), n = n.concat(o)), !n.length)
17
- return "/";
18
- var u;
19
- if (n.length) {
20
- var d = n[n.length - 1];
21
- u = d === "." || d === ".." || d === "";
22
- } else
23
- u = !1;
24
- for (var f = 0, s = n.length; s >= 0; s--) {
25
- var l = n[s];
26
- l === "." ? be(n, s) : l === ".." ? (be(n, s), f++) : f && (be(n, s), f--);
27
- }
28
- if (!p)
29
- for (; f--; f)
30
- n.unshift("..");
31
- p && n[0] !== "" && (!n[0] || !k(n[0])) && n.unshift("");
32
- var v = n.join("/");
33
- return u && v.substr(-1) !== "/" && (v += "/"), v;
34
- }
35
- var lr = process.env.NODE_ENV === "production";
36
- function A(e, r) {
37
- if (!lr) {
38
- if (e)
39
- return;
40
- var o = "Warning: " + r;
41
- typeof console < "u" && console.warn(o);
42
- try {
43
- throw Error(o);
44
- } catch {
45
- }
46
- }
47
- }
48
- var pr = process.env.NODE_ENV === "production", Re = "Invariant failed";
49
- function Y(e, r) {
50
- if (!e) {
51
- if (pr)
52
- throw new Error(Re);
53
- var o = typeof r == "function" ? r() : r, n = o ? "".concat(Re, ": ").concat(o) : Re;
54
- throw new Error(n);
55
- }
56
- }
57
- function dr(e) {
58
- var r = e || "/", o = "", n = "", t = r.indexOf("#");
59
- t !== -1 && (n = r.substr(t), r = r.substr(0, t));
60
- var c = r.indexOf("?");
61
- return c !== -1 && (o = r.substr(c), r = r.substr(0, c)), {
62
- pathname: r,
63
- search: o === "?" ? "" : o,
64
- hash: n === "#" ? "" : n
65
- };
66
- }
67
- function Xe(e) {
68
- var r = e.pathname, o = e.search, n = e.hash, t = r || "/";
69
- return o && o !== "?" && (t += o.charAt(0) === "?" ? o : "?" + o), n && n !== "#" && (t += n.charAt(0) === "#" ? n : "#" + n), t;
70
- }
71
- function z(e, r, o, n) {
72
- var t;
73
- typeof e == "string" ? (t = dr(e), t.state = r) : (t = W({}, e), t.pathname === void 0 && (t.pathname = ""), t.search ? t.search.charAt(0) !== "?" && (t.search = "?" + t.search) : t.search = "", t.hash ? t.hash.charAt(0) !== "#" && (t.hash = "#" + t.hash) : t.hash = "", r !== void 0 && t.state === void 0 && (t.state = r));
74
- try {
75
- t.pathname = decodeURI(t.pathname);
76
- } catch (c) {
77
- throw c instanceof URIError ? new URIError('Pathname "' + t.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : c;
78
- }
79
- return o && (t.key = o), n ? t.pathname ? t.pathname.charAt(0) !== "/" && (t.pathname = fr(t.pathname, n.pathname)) : t.pathname = n.pathname : t.pathname || (t.pathname = "/"), t;
80
- }
81
- function vr() {
82
- var e = null;
83
- function r(p) {
84
- return process.env.NODE_ENV !== "production" && A(e == null, "A history supports only one prompt at a time"), e = p, function() {
85
- e === p && (e = null);
86
- };
87
- }
88
- function o(p, u, d, f) {
89
- if (e != null) {
90
- var s = typeof e == "function" ? e(p, u) : e;
91
- typeof s == "string" ? typeof d == "function" ? d(s, f) : (process.env.NODE_ENV !== "production" && A(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), f(!0)) : f(s !== !1);
92
- } else
93
- f(!0);
94
- }
95
- var n = [];
96
- function t(p) {
97
- var u = !0;
98
- function d() {
99
- u && p.apply(void 0, arguments);
100
- }
101
- return n.push(d), function() {
102
- u = !1, n = n.filter(function(f) {
103
- return f !== d;
104
- });
105
- };
106
- }
107
- function c() {
108
- for (var p = arguments.length, u = new Array(p), d = 0; d < p; d++)
109
- u[d] = arguments[d];
110
- n.forEach(function(f) {
111
- return f.apply(void 0, u);
112
- });
113
- }
114
- return {
115
- setPrompt: r,
116
- confirmTransitionTo: o,
117
- appendListener: t,
118
- notifyListeners: c
119
- };
120
- }
121
- function Oe(e, r, o) {
122
- return Math.min(Math.max(e, r), o);
123
- }
124
- function hr(e) {
125
- e === void 0 && (e = {});
126
- var r = e, o = r.getUserConfirmation, n = r.initialEntries, t = n === void 0 ? ["/"] : n, c = r.initialIndex, p = c === void 0 ? 0 : c, u = r.keyLength, d = u === void 0 ? 6 : u, f = vr();
127
- function s(S) {
128
- W(C, S), C.length = C.entries.length, f.notifyListeners(C.location, C.action);
129
- }
130
- function l() {
131
- return Math.random().toString(36).substr(2, d);
132
- }
133
- var v = Oe(p, 0, t.length - 1), h = t.map(function(S) {
134
- return typeof S == "string" ? z(S, void 0, l()) : z(S, void 0, S.key || l());
135
- }), m = Xe;
136
- function M(S, w) {
137
- process.env.NODE_ENV !== "production" && A(!(typeof S == "object" && S.state !== void 0 && w !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
138
- var I = "PUSH", O = z(S, w, l(), C.location);
139
- f.confirmTransitionTo(O, I, o, function(L) {
140
- if (L) {
141
- var G = C.index, F = G + 1, V = C.entries.slice(0);
142
- V.length > F ? V.splice(F, V.length - F, O) : V.push(O), s({
143
- action: I,
144
- location: O,
145
- index: F,
146
- entries: V
147
- });
1
+ import "./index17.css";
2
+ import { j as w } from "./jsx-runtime-82a9ddf6.js";
3
+ import { f as p } from "./jsx-runtime-944c88e2-e73fa629.js";
4
+ import * as P from "react";
5
+ import { forwardRef as m, useRef as S, useState as R, useId as U, useEffect as G, Children as Q, useLayoutEffect as V, createContext as X, useMemo as q, useContext as Y, useCallback as Z } from "react";
6
+ import { G as L } from "./index-c6e22bb9.js";
7
+ import "./tinycolor-d415b1fd.js";
8
+ import { J as $ } from "./useLayoutPropsUtil-f34e9597.js";
9
+ import { u as ee } from "./index-04060912.js";
10
+ import { C as te } from "./Icon-be690f0b.js";
11
+ import { useHistory as ne, useLocation as ae, matchPath as re } from "react-router-dom";
12
+ const ie = "_sidenav_12xoe_4", le = "_root_12xoe_5", se = "_group_12xoe_9", oe = "_arrow_12xoe_58", ce = "_disabled_12xoe_88", f = {
13
+ sidenav: ie,
14
+ root: le,
15
+ "sidenav-group": "_sidenav-group_12xoe_6",
16
+ "sidenav-link": "_sidenav-link_12xoe_7",
17
+ "sidenav-collapsible": "_sidenav-collapsible_12xoe_8",
18
+ group: se,
19
+ "group-label": "_group-label_12xoe_32",
20
+ arrow: oe,
21
+ disabled: ce,
22
+ "not-collapsible": "_not-collapsible_12xoe_110",
23
+ "has-indicator": "_has-indicator_12xoe_118"
24
+ }, z = (t, e, a) => {
25
+ const n = Array.prototype.indexOf.call(e, a.current);
26
+ switch (t.key) {
27
+ case "ArrowDown":
28
+ if (!e)
29
+ return;
30
+ if (t.preventDefault(), e[n].setAttribute("tabindex", "-1"), n === e.length - 1) {
31
+ e[0].setAttribute("tabindex", "0"), e[0].focus();
32
+ break;
148
33
  }
149
- });
150
- }
151
- function P(S, w) {
152
- process.env.NODE_ENV !== "production" && A(!(typeof S == "object" && S.state !== void 0 && w !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
153
- var I = "REPLACE", O = z(S, w, l(), C.location);
154
- f.confirmTransitionTo(O, I, o, function(L) {
155
- L && (C.entries[C.index] = O, s({
156
- action: I,
157
- location: O
158
- }));
159
- });
160
- }
161
- function N(S) {
162
- var w = Oe(C.index + S, 0, C.entries.length - 1), I = "POP", O = C.entries[w];
163
- f.confirmTransitionTo(O, I, o, function(L) {
164
- L ? s({
165
- action: I,
166
- location: O,
167
- index: w
168
- }) : s();
169
- });
170
- }
171
- function D() {
172
- N(-1);
173
- }
174
- function E() {
175
- N(1);
176
- }
177
- function y(S) {
178
- var w = C.index + S;
179
- return w >= 0 && w < C.entries.length;
180
- }
181
- function i(S) {
182
- return S === void 0 && (S = !1), f.setPrompt(S);
183
- }
184
- function $(S) {
185
- return f.appendListener(S);
186
- }
187
- var C = {
188
- length: h.length,
189
- action: "POP",
190
- location: h[v],
191
- index: v,
192
- entries: h,
193
- createHref: m,
194
- push: M,
195
- replace: P,
196
- go: N,
197
- goBack: D,
198
- goForward: E,
199
- canGo: y,
200
- block: i,
201
- listen: $
202
- };
203
- return C;
204
- }
205
- var B = { exports: {} }, mr = Array.isArray || function(e) {
206
- return Object.prototype.toString.call(e) == "[object Array]";
207
- }, oe = mr;
208
- B.exports = Qe;
209
- B.exports.parse = Ne;
210
- B.exports.compile = Er;
211
- B.exports.tokensToFunction = Je;
212
- B.exports.tokensToRegExp = Ze;
213
- var yr = new RegExp([
214
- // Match escaped characters that would otherwise appear in future matches.
215
- // This allows the user to escape special characters that won't transform.
216
- "(\\\\.)",
217
- // Match Express-style parameters and un-named parameters with a prefix
218
- // and optional suffixes. Matches appear as:
219
- //
220
- // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
221
- // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
222
- // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
223
- "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"
224
- ].join("|"), "g");
225
- function Ne(e, r) {
226
- for (var o = [], n = 0, t = 0, c = "", p = r && r.delimiter || "/", u; (u = yr.exec(e)) != null; ) {
227
- var d = u[0], f = u[1], s = u.index;
228
- if (c += e.slice(t, s), t = s + d.length, f) {
229
- c += f[1];
230
- continue;
231
- }
232
- var l = e[t], v = u[2], h = u[3], m = u[4], M = u[5], P = u[6], N = u[7];
233
- c && (o.push(c), c = "");
234
- var D = v != null && l != null && l !== v, E = P === "+" || P === "*", y = P === "?" || P === "*", i = u[2] || p, $ = m || M;
235
- o.push({
236
- name: h || n++,
237
- prefix: v || "",
238
- delimiter: i,
239
- optional: y,
240
- repeat: E,
241
- partial: D,
242
- asterisk: !!N,
243
- pattern: $ ? br($) : N ? ".*" : "[^" + ne(i) + "]+?"
244
- });
245
- }
246
- return t < e.length && (c += e.substr(t)), c && o.push(c), o;
247
- }
248
- function Er(e, r) {
249
- return Je(Ne(e, r), r);
250
- }
251
- function _r(e) {
252
- return encodeURI(e).replace(/[\/?#]/g, function(r) {
253
- return "%" + r.charCodeAt(0).toString(16).toUpperCase();
254
- });
255
- }
256
- function xr(e) {
257
- return encodeURI(e).replace(/[?#]/g, function(r) {
258
- return "%" + r.charCodeAt(0).toString(16).toUpperCase();
259
- });
260
- }
261
- function Je(e, r) {
262
- for (var o = new Array(e.length), n = 0; n < e.length; n++)
263
- typeof e[n] == "object" && (o[n] = new RegExp("^(?:" + e[n].pattern + ")$", Ae(r)));
264
- return function(t, c) {
265
- for (var p = "", u = t || {}, d = c || {}, f = d.pretty ? _r : encodeURIComponent, s = 0; s < e.length; s++) {
266
- var l = e[s];
267
- if (typeof l == "string") {
268
- p += l;
269
- continue;
270
- }
271
- var v = u[l.name], h;
272
- if (v == null)
273
- if (l.optional) {
274
- l.partial && (p += l.prefix);
275
- continue;
276
- } else
277
- throw new TypeError('Expected "' + l.name + '" to be defined');
278
- if (oe(v)) {
279
- if (!l.repeat)
280
- throw new TypeError('Expected "' + l.name + '" to not repeat, but received `' + JSON.stringify(v) + "`");
281
- if (v.length === 0) {
282
- if (l.optional)
283
- continue;
284
- throw new TypeError('Expected "' + l.name + '" to not be empty');
285
- }
286
- for (var m = 0; m < v.length; m++) {
287
- if (h = f(v[m]), !o[s].test(h))
288
- throw new TypeError('Expected all "' + l.name + '" to match "' + l.pattern + '", but received `' + JSON.stringify(h) + "`");
289
- p += (m === 0 ? l.prefix : l.delimiter) + h;
290
- }
291
- continue;
34
+ e[n + 1].setAttribute("tabindex", "0"), e[n + 1].focus();
35
+ break;
36
+ case "ArrowUp":
37
+ if (t.preventDefault(), !e)
38
+ return;
39
+ if (e[n].setAttribute("tabindex", "-1"), n === 0) {
40
+ e[e.length - 1].setAttribute("tabindex", "0"), e[e.length - 1].focus();
41
+ break;
292
42
  }
293
- if (h = l.asterisk ? xr(v) : f(v), !o[s].test(h))
294
- throw new TypeError('Expected "' + l.name + '" to match "' + l.pattern + '", but received "' + h + '"');
295
- p += l.prefix + h;
296
- }
297
- return p;
298
- };
299
- }
300
- function ne(e) {
301
- return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
302
- }
303
- function br(e) {
304
- return e.replace(/([=!:$\/()])/g, "\\$1");
305
- }
306
- function $e(e, r) {
307
- return e.keys = r, e;
308
- }
309
- function Ae(e) {
310
- return e && e.sensitive ? "" : "i";
311
- }
312
- function Rr(e, r) {
313
- var o = e.source.match(/\((?!\?)/g);
314
- if (o)
315
- for (var n = 0; n < o.length; n++)
316
- r.push({
317
- name: n,
318
- prefix: null,
319
- delimiter: null,
320
- optional: !1,
321
- repeat: !1,
322
- partial: !1,
323
- asterisk: !1,
324
- pattern: null
325
- });
326
- return $e(e, r);
327
- }
328
- function gr(e, r, o) {
329
- for (var n = [], t = 0; t < e.length; t++)
330
- n.push(Qe(e[t], r, o).source);
331
- var c = new RegExp("(?:" + n.join("|") + ")", Ae(o));
332
- return $e(c, r);
333
- }
334
- function Sr(e, r, o) {
335
- return Ze(Ne(e, o), r, o);
336
- }
337
- function Ze(e, r, o) {
338
- oe(r) || (o = /** @type {!Object} */
339
- r || o, r = []), o = o || {};
340
- for (var n = o.strict, t = o.end !== !1, c = "", p = 0; p < e.length; p++) {
341
- var u = e[p];
342
- if (typeof u == "string")
343
- c += ne(u);
344
- else {
345
- var d = ne(u.prefix), f = "(?:" + u.pattern + ")";
346
- r.push(u), u.repeat && (f += "(?:" + d + f + ")*"), u.optional ? u.partial ? f = d + "(" + f + ")?" : f = "(?:" + d + "(" + f + "))?" : f = d + "(" + f + ")", c += f;
347
- }
43
+ e[n - 1].setAttribute("tabindex", "0"), e[n - 1].focus();
44
+ break;
348
45
  }
349
- var s = ne(o.delimiter || "/"), l = c.slice(-s.length) === s;
350
- return n || (c = (l ? c.slice(0, -s.length) : c) + "(?:" + s + "(?=$))?"), t ? c += "$" : c += n && l ? "" : "(?=" + s + "|$)", $e(new RegExp("^" + c, Ae(o)), r);
351
- }
352
- function Qe(e, r, o) {
353
- return oe(r) || (o = /** @type {!Object} */
354
- r || o, r = []), o = o || {}, e instanceof RegExp ? Rr(
355
- e,
356
- /** @type {!Array} */
357
- r
358
- ) : oe(e) ? gr(
359
- /** @type {!Array} */
360
- e,
361
- /** @type {!Array} */
362
- r,
363
- o
364
- ) : Sr(
365
- /** @type {string} */
366
- e,
367
- /** @type {!Array} */
368
- r,
369
- o
370
- );
371
- }
372
- var Tr = B.exports;
373
- const Cr = /* @__PURE__ */ ur(Tr);
374
- var Te = { exports: {} }, x = {};
375
- /** @license React v16.13.1
376
- * react-is.production.min.js
377
- *
378
- * Copyright (c) Facebook, Inc. and its affiliates.
379
- *
380
- * This source code is licensed under the MIT license found in the
381
- * LICENSE file in the root directory of this source tree.
382
- */
383
- var De;
384
- function Pr() {
385
- if (De)
386
- return x;
387
- De = 1;
388
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, M = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
389
- function E(i) {
390
- if (typeof i == "object" && i !== null) {
391
- var $ = i.$$typeof;
392
- switch ($) {
393
- case r:
394
- switch (i = i.type, i) {
395
- case d:
396
- case f:
397
- case n:
398
- case c:
399
- case t:
400
- case l:
401
- return i;
402
- default:
403
- switch (i = i && i.$$typeof, i) {
404
- case u:
405
- case s:
406
- case m:
407
- case h:
408
- case p:
409
- return i;
410
- default:
411
- return $;
412
- }
413
- }
414
- case o:
415
- return $;
46
+ }, C = m(
47
+ (t, e) => {
48
+ const {
49
+ className: a,
50
+ children: n,
51
+ href: i,
52
+ id: o,
53
+ active: c,
54
+ onClick: l,
55
+ onKeyDown: b,
56
+ onKeyUp: u,
57
+ style: _,
58
+ disabled: d,
59
+ ...v
60
+ } = t, { links: k } = J(), x = S(null);
61
+ function h(s) {
62
+ z(s, k, x), b == null || b(s, o);
63
+ }
64
+ function A(s) {
65
+ d || ((s.code === "Space" || s.code === "Enter") && (s.preventDefault(), l && s.currentTarget.click()), u == null || u(s, o));
66
+ }
67
+ function D(s) {
68
+ var y, g;
69
+ if (d)
70
+ return;
71
+ const j = Array.prototype.slice.call(k).filter((E) => E.tabIndex === 0)[0];
72
+ j && j.setAttribute("tabindex", "-1"), (y = x.current) == null || y.setAttribute("tabindex", "0"), (g = x.current) == null || g.focus(), l == null || l(s, o);
73
+ }
74
+ return /* @__PURE__ */ p.jsx("li", { className: a, "data-anv": "sidenav-link", style: _, ref: e, children: /* @__PURE__ */ p.jsx(
75
+ "a",
76
+ {
77
+ className: f["sidenav-link"],
78
+ "aria-current": c ? "page" : void 0,
79
+ href: i,
80
+ ref: x,
81
+ onClick: D,
82
+ onKeyDown: h,
83
+ onKeyUp: A,
84
+ id: o,
85
+ "aria-disabled": d,
86
+ tabIndex: c ? 0 : -1,
87
+ ...v,
88
+ children: n
416
89
  }
417
- }
418
- }
419
- function y(i) {
420
- return E(i) === f;
90
+ ) });
421
91
  }
422
- return x.AsyncMode = d, x.ConcurrentMode = f, x.ContextConsumer = u, x.ContextProvider = p, x.Element = r, x.ForwardRef = s, x.Fragment = n, x.Lazy = m, x.Memo = h, x.Portal = o, x.Profiler = c, x.StrictMode = t, x.Suspense = l, x.isAsyncMode = function(i) {
423
- return y(i) || E(i) === d;
424
- }, x.isConcurrentMode = y, x.isContextConsumer = function(i) {
425
- return E(i) === u;
426
- }, x.isContextProvider = function(i) {
427
- return E(i) === p;
428
- }, x.isElement = function(i) {
429
- return typeof i == "object" && i !== null && i.$$typeof === r;
430
- }, x.isForwardRef = function(i) {
431
- return E(i) === s;
432
- }, x.isFragment = function(i) {
433
- return E(i) === n;
434
- }, x.isLazy = function(i) {
435
- return E(i) === m;
436
- }, x.isMemo = function(i) {
437
- return E(i) === h;
438
- }, x.isPortal = function(i) {
439
- return E(i) === o;
440
- }, x.isProfiler = function(i) {
441
- return E(i) === c;
442
- }, x.isStrictMode = function(i) {
443
- return E(i) === t;
444
- }, x.isSuspense = function(i) {
445
- return E(i) === l;
446
- }, x.isValidElementType = function(i) {
447
- return typeof i == "string" || typeof i == "function" || i === n || i === f || i === c || i === t || i === l || i === v || typeof i == "object" && i !== null && (i.$$typeof === m || i.$$typeof === h || i.$$typeof === p || i.$$typeof === u || i.$$typeof === s || i.$$typeof === P || i.$$typeof === N || i.$$typeof === D || i.$$typeof === M);
448
- }, x.typeOf = E, x;
449
- }
450
- var b = {};
451
- /** @license React v16.13.1
452
- * react-is.development.js
453
- *
454
- * Copyright (c) Facebook, Inc. and its affiliates.
455
- *
456
- * This source code is licensed under the MIT license found in the
457
- * LICENSE file in the root directory of this source tree.
458
- */
459
- var Ie;
460
- function Nr() {
461
- return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
462
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, M = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
463
- function E(a) {
464
- return typeof a == "string" || typeof a == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
465
- a === n || a === f || a === c || a === t || a === l || a === v || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === h || a.$$typeof === p || a.$$typeof === u || a.$$typeof === s || a.$$typeof === P || a.$$typeof === N || a.$$typeof === D || a.$$typeof === M);
466
- }
467
- function y(a) {
468
- if (typeof a == "object" && a !== null) {
469
- var q = a.$$typeof;
470
- switch (q) {
471
- case r:
472
- var U = a.type;
473
- switch (U) {
474
- case d:
475
- case f:
476
- case n:
477
- case c:
478
- case t:
479
- case l:
480
- return U;
481
- default:
482
- var J = U && U.$$typeof;
483
- switch (J) {
484
- case u:
485
- case s:
486
- case m:
487
- case h:
488
- case p:
489
- return J;
490
- default:
491
- return q;
492
- }
493
- }
494
- case o:
495
- return q;
496
- }
497
- }
498
- }
499
- var i = d, $ = f, C = u, S = p, w = r, I = s, O = n, L = m, G = h, F = o, V = c, se = t, ce = l, K = !1;
500
- function ue(a) {
501
- return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), X(a) || y(a) === d;
502
- }
503
- function X(a) {
504
- return y(a) === f;
505
- }
506
- function fe(a) {
507
- return y(a) === u;
508
- }
509
- function le(a) {
510
- return y(a) === p;
511
- }
512
- function pe(a) {
513
- return typeof a == "object" && a !== null && a.$$typeof === r;
514
- }
515
- function de(a) {
516
- return y(a) === s;
517
- }
518
- function ve(a) {
519
- return y(a) === n;
520
- }
521
- function he(a) {
522
- return y(a) === m;
523
- }
524
- function me(a) {
525
- return y(a) === h;
526
- }
527
- function ye(a) {
528
- return y(a) === o;
529
- }
530
- function Ee(a) {
531
- return y(a) === c;
532
- }
533
- function _e(a) {
534
- return y(a) === t;
535
- }
536
- function xe(a) {
537
- return y(a) === l;
538
- }
539
- b.AsyncMode = i, b.ConcurrentMode = $, b.ContextConsumer = C, b.ContextProvider = S, b.Element = w, b.ForwardRef = I, b.Fragment = O, b.Lazy = L, b.Memo = G, b.Portal = F, b.Profiler = V, b.StrictMode = se, b.Suspense = ce, b.isAsyncMode = ue, b.isConcurrentMode = X, b.isContextConsumer = fe, b.isContextProvider = le, b.isElement = pe, b.isForwardRef = de, b.isFragment = ve, b.isLazy = he, b.isMemo = me, b.isPortal = ye, b.isProfiler = Ee, b.isStrictMode = _e, b.isSuspense = xe, b.isValidElementType = E, b.typeOf = y;
540
- }()), b;
541
- }
542
- process.env.NODE_ENV === "production" ? Te.exports = Pr() : Te.exports = Nr();
543
- var $r = Te.exports, Ce = { exports: {} }, R = {};
544
- /** @license React v16.13.1
545
- * react-is.production.min.js
546
- *
547
- * Copyright (c) Facebook, Inc. and its affiliates.
548
- *
549
- * This source code is licensed under the MIT license found in the
550
- * LICENSE file in the root directory of this source tree.
551
- */
552
- var Ye;
553
- function Ar() {
554
- if (Ye)
555
- return R;
556
- Ye = 1;
557
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, M = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
558
- function E(i) {
559
- if (typeof i == "object" && i !== null) {
560
- var $ = i.$$typeof;
561
- switch ($) {
562
- case r:
563
- switch (i = i.type, i) {
564
- case d:
565
- case f:
566
- case n:
567
- case c:
568
- case t:
569
- case l:
570
- return i;
571
- default:
572
- switch (i = i && i.$$typeof, i) {
573
- case u:
574
- case s:
575
- case m:
576
- case h:
577
- case p:
578
- return i;
579
- default:
580
- return $;
581
- }
582
- }
583
- case o:
584
- return $;
585
- }
586
- }
92
+ );
93
+ C.displayName = "SideNavLink";
94
+ const ue = (t) => /* @__PURE__ */ P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ P.createElement("path", { d: "M8.12 9.29 12 13.17l3.88-3.88a.996.996 0 1 1 1.41 1.41l-4.59 4.59a.996.996 0 0 1-1.41 0L6.7 10.7a.996.996 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z" })), I = m((t, e) => {
95
+ var a;
96
+ const {
97
+ className: n,
98
+ children: i,
99
+ label: o,
100
+ onClick: c,
101
+ onKeyDown: l,
102
+ defaultExpanded: b = !1,
103
+ expanded: u,
104
+ ..._
105
+ } = t, [d, v] = R(b), [k, x] = R(!1), h = S(null), A = S(null), D = L(f["sidenav-collapsible"], n), { links: s, reCalculateLinks: y } = J(), g = U(), j = (r) => {
106
+ u === void 0 && v((N) => r !== void 0 ? r : !N);
107
+ };
108
+ G(() => {
109
+ u !== void 0 && v(u);
110
+ }, [u]);
111
+ function E(r) {
112
+ var N, M;
113
+ j(), setTimeout(() => y(), 0);
114
+ const O = Array.prototype.slice.call(s).filter((F) => F.tabIndex === 0)[0];
115
+ O && O.setAttribute("tabindex", "-1"), (N = h.current) == null || N.setAttribute("tabindex", "0"), (M = h.current) == null || M.focus(), c == null || c(r);
587
116
  }
588
- function y(i) {
589
- return E(i) === f;
117
+ function W(r) {
118
+ switch (z(r, s, h), r.key) {
119
+ case "ArrowRight":
120
+ v(!0), setTimeout(() => y(), 0);
121
+ break;
122
+ case "ArrowLeft":
123
+ v(!1), setTimeout(() => y(), 0);
124
+ break;
125
+ }
126
+ l == null || l(r);
590
127
  }
591
- return R.AsyncMode = d, R.ConcurrentMode = f, R.ContextConsumer = u, R.ContextProvider = p, R.Element = r, R.ForwardRef = s, R.Fragment = n, R.Lazy = m, R.Memo = h, R.Portal = o, R.Profiler = c, R.StrictMode = t, R.Suspense = l, R.isAsyncMode = function(i) {
592
- return y(i) || E(i) === d;
593
- }, R.isConcurrentMode = y, R.isContextConsumer = function(i) {
594
- return E(i) === u;
595
- }, R.isContextProvider = function(i) {
596
- return E(i) === p;
597
- }, R.isElement = function(i) {
598
- return typeof i == "object" && i !== null && i.$$typeof === r;
599
- }, R.isForwardRef = function(i) {
600
- return E(i) === s;
601
- }, R.isFragment = function(i) {
602
- return E(i) === n;
603
- }, R.isLazy = function(i) {
604
- return E(i) === m;
605
- }, R.isMemo = function(i) {
606
- return E(i) === h;
607
- }, R.isPortal = function(i) {
608
- return E(i) === o;
609
- }, R.isProfiler = function(i) {
610
- return E(i) === c;
611
- }, R.isStrictMode = function(i) {
612
- return E(i) === t;
613
- }, R.isSuspense = function(i) {
614
- return E(i) === l;
615
- }, R.isValidElementType = function(i) {
616
- return typeof i == "string" || typeof i == "function" || i === n || i === f || i === c || i === t || i === l || i === v || typeof i == "object" && i !== null && (i.$$typeof === m || i.$$typeof === h || i.$$typeof === p || i.$$typeof === u || i.$$typeof === s || i.$$typeof === P || i.$$typeof === N || i.$$typeof === D || i.$$typeof === M);
617
- }, R.typeOf = E, R;
618
- }
619
- var g = {};
620
- /** @license React v16.13.1
621
- * react-is.development.js
622
- *
623
- * Copyright (c) Facebook, Inc. and its affiliates.
624
- *
625
- * This source code is licensed under the MIT license found in the
626
- * LICENSE file in the root directory of this source tree.
627
- */
628
- var Le;
629
- function Mr() {
630
- return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
631
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, M = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
632
- function E(a) {
633
- return typeof a == "string" || typeof a == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
634
- a === n || a === f || a === c || a === t || a === l || a === v || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === h || a.$$typeof === p || a.$$typeof === u || a.$$typeof === s || a.$$typeof === P || a.$$typeof === N || a.$$typeof === D || a.$$typeof === M);
635
- }
636
- function y(a) {
637
- if (typeof a == "object" && a !== null) {
638
- var q = a.$$typeof;
639
- switch (q) {
640
- case r:
641
- var U = a.type;
642
- switch (U) {
643
- case d:
644
- case f:
645
- case n:
646
- case c:
647
- case t:
648
- case l:
649
- return U;
650
- default:
651
- var J = U && U.$$typeof;
652
- switch (J) {
653
- case u:
654
- case s:
655
- case m:
656
- case h:
657
- case p:
658
- return J;
659
- default:
660
- return q;
661
- }
662
- }
663
- case o:
664
- return q;
665
- }
666
- }
667
- }
668
- var i = d, $ = f, C = u, S = p, w = r, I = s, O = n, L = m, G = h, F = o, V = c, se = t, ce = l, K = !1;
669
- function ue(a) {
670
- return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), X(a) || y(a) === d;
671
- }
672
- function X(a) {
673
- return y(a) === f;
674
- }
675
- function fe(a) {
676
- return y(a) === u;
677
- }
678
- function le(a) {
679
- return y(a) === p;
680
- }
681
- function pe(a) {
682
- return typeof a == "object" && a !== null && a.$$typeof === r;
683
- }
684
- function de(a) {
685
- return y(a) === s;
686
- }
687
- function ve(a) {
688
- return y(a) === n;
689
- }
690
- function he(a) {
691
- return y(a) === m;
692
- }
693
- function me(a) {
694
- return y(a) === h;
695
- }
696
- function ye(a) {
697
- return y(a) === o;
698
- }
699
- function Ee(a) {
700
- return y(a) === c;
701
- }
702
- function _e(a) {
703
- return y(a) === t;
704
- }
705
- function xe(a) {
706
- return y(a) === l;
707
- }
708
- g.AsyncMode = i, g.ConcurrentMode = $, g.ContextConsumer = C, g.ContextProvider = S, g.Element = w, g.ForwardRef = I, g.Fragment = O, g.Lazy = L, g.Memo = G, g.Portal = F, g.Profiler = V, g.StrictMode = se, g.Suspense = ce, g.isAsyncMode = ue, g.isConcurrentMode = X, g.isContextConsumer = fe, g.isContextProvider = le, g.isElement = pe, g.isForwardRef = de, g.isFragment = ve, g.isLazy = he, g.isMemo = me, g.isPortal = ye, g.isProfiler = Ee, g.isStrictMode = _e, g.isSuspense = xe, g.isValidElementType = E, g.typeOf = y;
709
- }()), g;
710
- }
711
- process.env.NODE_ENV === "production" ? Ce.exports = Ar() : Ce.exports = Mr();
712
- var wr = Ce.exports, ke = wr, Or = {
713
- $$typeof: !0,
714
- render: !0,
715
- defaultProps: !0,
716
- displayName: !0,
717
- propTypes: !0
718
- }, Dr = {
719
- $$typeof: !0,
720
- compare: !0,
721
- defaultProps: !0,
722
- displayName: !0,
723
- propTypes: !0,
724
- type: !0
725
- }, er = {};
726
- er[ke.ForwardRef] = Or;
727
- er[ke.Memo] = Dr;
728
- var ee = 1073741823, Ve = typeof globalThis < "u" ? (
729
- // eslint-disable-next-line no-undef
730
- globalThis
731
- ) : typeof window < "u" ? window : typeof global < "u" ? global : {};
732
- function Ir() {
733
- var e = "__global_unique_id__";
734
- return Ve[e] = (Ve[e] || 0) + 1;
735
- }
736
- function Yr(e, r) {
737
- return e === r ? e !== 0 || 1 / e === 1 / r : e !== e && r !== r;
738
- }
739
- function Lr(e) {
740
- var r = [];
741
- return {
742
- on: function(n) {
743
- r.push(n);
744
- },
745
- off: function(n) {
746
- r = r.filter(function(t) {
747
- return t !== n;
748
- });
749
- },
750
- get: function() {
751
- return e;
752
- },
753
- set: function(n, t) {
754
- e = n, r.forEach(function(c) {
755
- return c(e, t);
756
- });
757
- }
758
- };
759
- }
760
- function Vr(e) {
761
- return Array.isArray(e) ? e[0] : e;
762
- }
763
- function Ur(e, r) {
764
- var o, n, t = "__create-react-context-" + Ir() + "__", c = /* @__PURE__ */ function(u) {
765
- j(d, u);
766
- function d() {
767
- for (var s, l = arguments.length, v = new Array(l), h = 0; h < l; h++)
768
- v[h] = arguments[h];
769
- return s = u.call.apply(u, [this].concat(v)) || this, s.emitter = Lr(s.props.value), s;
128
+ const K = (a = Q.map(
129
+ i,
130
+ (r) => r.props
131
+ )) == null ? void 0 : a.some((r) => r.active === !0);
132
+ return V(() => {
133
+ K && (j(!0), setTimeout(() => {
134
+ var r;
135
+ const N = (r = A.current) == null ? void 0 : r.querySelector("[active='true']");
136
+ N == null || N.setAttribute("tabindex", "0"), y();
137
+ }, 0));
138
+ }, []), G(() => {
139
+ if (!K) {
140
+ x(!1);
141
+ return;
770
142
  }
771
- var f = d.prototype;
772
- return f.getChildContext = function() {
773
- var l;
774
- return l = {}, l[t] = this.emitter, l;
775
- }, f.componentWillReceiveProps = function(l) {
776
- if (this.props.value !== l.value) {
777
- var v = this.props.value, h = l.value, m;
778
- Yr(v, h) ? m = 0 : (m = typeof r == "function" ? r(v, h) : ee, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && A((m & ee) === m, "calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: " + m), m |= 0, m !== 0 && this.emitter.set(l.value, m));
779
- }
780
- }, f.render = function() {
781
- return this.props.children;
782
- }, d;
783
- }(T.Component);
784
- c.childContextTypes = (o = {}, o[t] = _.object.isRequired, o);
785
- var p = /* @__PURE__ */ function(u) {
786
- j(d, u);
787
- function d() {
788
- for (var s, l = arguments.length, v = new Array(l), h = 0; h < l; h++)
789
- v[h] = arguments[h];
790
- return s = u.call.apply(u, [this].concat(v)) || this, s.observedBits = void 0, s.state = {
791
- value: s.getValue()
792
- }, s.onUpdate = function(m, M) {
793
- var P = s.observedBits | 0;
794
- P & M && s.setState({
795
- value: s.getValue()
796
- });
797
- }, s;
143
+ x(!0);
144
+ }, [K]), /* @__PURE__ */ p.jsxs(
145
+ "li",
146
+ {
147
+ ref: e,
148
+ "data-anv": "sidenav-collapsible",
149
+ ..._,
150
+ className: D,
151
+ children: [
152
+ /* @__PURE__ */ p.jsxs(
153
+ "button",
154
+ {
155
+ "aria-expanded": d,
156
+ "aria-controls": g,
157
+ type: "button",
158
+ tabIndex: -1,
159
+ onClick: E,
160
+ ref: h,
161
+ className: L(f["sidenav-link"], {
162
+ [f["has-indicator"]]: k && !d
163
+ }),
164
+ onKeyDown: W,
165
+ children: [
166
+ o,
167
+ /* @__PURE__ */ p.jsx(te, { className: f.arrow, inherit: !0, svg: ue, "aria-hidden": !0 })
168
+ ]
169
+ }
170
+ ),
171
+ d ? /* @__PURE__ */ p.jsx("ul", { id: g, ref: A, className: f.group, children: i }) : null
172
+ ]
798
173
  }
799
- var f = d.prototype;
800
- return f.componentWillReceiveProps = function(l) {
801
- var v = l.observedBits;
802
- this.observedBits = v ?? ee;
803
- }, f.componentDidMount = function() {
804
- this.context[t] && this.context[t].on(this.onUpdate);
805
- var l = this.props.observedBits;
806
- this.observedBits = l ?? ee;
807
- }, f.componentWillUnmount = function() {
808
- this.context[t] && this.context[t].off(this.onUpdate);
809
- }, f.getValue = function() {
810
- return this.context[t] ? this.context[t].get() : e;
811
- }, f.render = function() {
812
- return Vr(this.props.children)(this.state.value);
813
- }, d;
814
- }(T.Component);
815
- return p.contextTypes = (n = {}, n[t] = _.object, n), {
816
- Provider: c,
817
- Consumer: p
818
- };
819
- }
820
- var Fr = T.createContext || Ur, rr = function(r) {
821
- var o = Fr();
822
- return o.displayName = r, o;
823
- }, tr = /* @__PURE__ */ rr("Router-History"), Z = /* @__PURE__ */ rr("Router"), ie = /* @__PURE__ */ function(e) {
824
- j(r, e), r.computeRootMatch = function(t) {
825
- return {
826
- path: "/",
827
- url: "/",
828
- params: {},
829
- isExact: t === "/"
830
- };
831
- };
832
- function r(n) {
833
- var t;
834
- return t = e.call(this, n) || this, t.state = {
835
- location: n.history.location
836
- }, t._isMounted = !1, t._pendingLocation = null, n.staticContext || (t.unlisten = n.history.listen(function(c) {
837
- t._pendingLocation = c;
838
- })), t;
839
- }
840
- var o = r.prototype;
841
- return o.componentDidMount = function() {
842
- var t = this;
843
- this._isMounted = !0, this.unlisten && this.unlisten(), this.props.staticContext || (this.unlisten = this.props.history.listen(function(c) {
844
- t._isMounted && t.setState({
845
- location: c
846
- });
847
- })), this._pendingLocation && this.setState({
848
- location: this._pendingLocation
849
- });
850
- }, o.componentWillUnmount = function() {
851
- this.unlisten && (this.unlisten(), this._isMounted = !1, this._pendingLocation = null);
852
- }, o.render = function() {
853
- return /* @__PURE__ */ T.createElement(Z.Provider, {
854
- value: {
855
- history: this.props.history,
856
- location: this.state.location,
857
- match: r.computeRootMatch(this.state.location.pathname),
858
- staticContext: this.props.staticContext
859
- }
860
- }, /* @__PURE__ */ T.createElement(tr.Provider, {
861
- children: this.props.children || null,
862
- value: this.props.history
863
- }));
864
- }, r;
865
- }(T.Component);
866
- process.env.NODE_ENV !== "production" && (ie.propTypes = {
867
- children: _.node,
868
- history: _.object.isRequired,
869
- staticContext: _.object
870
- }, ie.prototype.componentDidUpdate = function(e) {
871
- process.env.NODE_ENV !== "production" && A(e.history === this.props.history, "You cannot change <Router history>");
872
- });
873
- var Ue = /* @__PURE__ */ function(e) {
874
- j(r, e);
875
- function r() {
876
- for (var n, t = arguments.length, c = new Array(t), p = 0; p < t; p++)
877
- c[p] = arguments[p];
878
- return n = e.call.apply(e, [this].concat(c)) || this, n.history = hr(n.props), n;
879
- }
880
- var o = r.prototype;
881
- return o.render = function() {
882
- return /* @__PURE__ */ T.createElement(ie, {
883
- history: this.history,
884
- children: this.props.children
885
- });
886
- }, r;
887
- }(T.Component);
888
- process.env.NODE_ENV !== "production" && (Ue.propTypes = {
889
- initialEntries: _.array,
890
- initialIndex: _.number,
891
- getUserConfirmation: _.func,
892
- keyLength: _.number,
893
- children: _.node
894
- }, Ue.prototype.componentDidMount = function() {
895
- process.env.NODE_ENV !== "production" && A(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.");
896
- });
897
- T.Component;
898
- if (process.env.NODE_ENV !== "production") {
899
- var jr = _.oneOfType([_.func, _.string]);
900
- _.bool, jr.isRequired;
901
- }
902
- process.env.NODE_ENV !== "production" && (_.bool, _.string, _.oneOfType([_.string, _.object]).isRequired);
903
- var Fe = {}, qr = 1e4, je = 0;
904
- function Wr(e, r) {
905
- var o = "" + r.end + r.strict + r.sensitive, n = Fe[o] || (Fe[o] = {});
906
- if (n[e])
907
- return n[e];
908
- var t = [], c = Cr(e, t, r), p = {
909
- regexp: c,
910
- keys: t
911
- };
912
- return je < qr && (n[e] = p, je++), p;
913
- }
914
- function Me(e, r) {
915
- r === void 0 && (r = {}), (typeof r == "string" || Array.isArray(r)) && (r = {
916
- path: r
917
- });
918
- var o = r, n = o.path, t = o.exact, c = t === void 0 ? !1 : t, p = o.strict, u = p === void 0 ? !1 : p, d = o.sensitive, f = d === void 0 ? !1 : d, s = [].concat(n);
919
- return s.reduce(function(l, v) {
920
- if (!v && v !== "")
921
- return null;
922
- if (l)
923
- return l;
924
- var h = Wr(v, {
925
- end: c,
926
- strict: u,
927
- sensitive: f
928
- }), m = h.regexp, M = h.keys, P = m.exec(e);
929
- if (!P)
930
- return null;
931
- var N = P[0], D = P.slice(1), E = e === N;
932
- return c && !E ? null : {
933
- path: v,
934
- // the path used to match
935
- url: v === "/" && N === "" ? "/" : N,
936
- // the matched portion of the URL
937
- isExact: E,
938
- // whether or not we matched exactly
939
- params: M.reduce(function(y, i, $) {
940
- return y[i.name] = D[$], y;
941
- }, {})
942
- };
943
- }, null);
944
- }
945
- function Pe(e) {
946
- return T.Children.count(e) === 0;
947
- }
948
- function qe(e, r, o) {
949
- var n = e(r);
950
- return process.env.NODE_ENV !== "production" && A(n !== void 0, "You returned `undefined` from the `children` function of " + ("<Route" + (o ? ' path="' + o + '"' : "") + ">, but you ") + "should have returned a React element or `null`"), n || null;
951
- }
952
- var ge = /* @__PURE__ */ function(e) {
953
- j(r, e);
954
- function r() {
955
- return e.apply(this, arguments) || this;
956
- }
957
- var o = r.prototype;
958
- return o.render = function() {
959
- var t = this;
960
- return /* @__PURE__ */ T.createElement(Z.Consumer, null, function(c) {
961
- c || (process.env.NODE_ENV !== "production" ? Y(!1, "You should not use <Route> outside a <Router>") : Y(!1));
962
- var p = t.props.location || c.location, u = t.props.computedMatch ? t.props.computedMatch : t.props.path ? Me(p.pathname, t.props) : c.match, d = W({}, c, {
963
- location: p,
964
- match: u
965
- }), f = t.props, s = f.children, l = f.component, v = f.render;
966
- return Array.isArray(s) && Pe(s) && (s = null), /* @__PURE__ */ T.createElement(Z.Provider, {
967
- value: d
968
- }, d.match ? s ? typeof s == "function" ? process.env.NODE_ENV !== "production" ? qe(s, d, t.props.path) : s(d) : s : l ? /* @__PURE__ */ T.createElement(l, d) : v ? v(d) : null : typeof s == "function" ? process.env.NODE_ENV !== "production" ? qe(s, d, t.props.path) : s(d) : null);
969
- });
970
- }, r;
971
- }(T.Component);
972
- process.env.NODE_ENV !== "production" && (ge.propTypes = {
973
- children: _.oneOfType([_.func, _.node]),
974
- component: function(r, o) {
975
- if (r[o] && !$r.isValidElementType(r[o]))
976
- return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");
977
- },
978
- exact: _.bool,
979
- location: _.object,
980
- path: _.oneOfType([_.string, _.arrayOf(_.string)]),
981
- render: _.func,
982
- sensitive: _.bool,
983
- strict: _.bool
984
- }, ge.prototype.componentDidMount = function() {
985
- process.env.NODE_ENV !== "production" && A(!(this.props.children && !Pe(this.props.children) && this.props.component), "You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"), process.env.NODE_ENV !== "production" && A(!(this.props.children && !Pe(this.props.children) && this.props.render), "You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"), process.env.NODE_ENV !== "production" && A(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored");
986
- }, ge.prototype.componentDidUpdate = function(e) {
987
- process.env.NODE_ENV !== "production" && A(!(this.props.location && !e.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'), process.env.NODE_ENV !== "production" && A(!(!this.props.location && e.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
988
- });
989
- function we(e) {
990
- return e.charAt(0) === "/" ? e : "/" + e;
991
- }
992
- function zr(e, r) {
993
- return e ? W({}, r, {
994
- pathname: we(e) + r.pathname
995
- }) : r;
996
- }
997
- function Hr(e, r) {
998
- if (!e)
999
- return r;
1000
- var o = we(e);
1001
- return r.pathname.indexOf(o) !== 0 ? r : W({}, r, {
1002
- pathname: r.pathname.substr(o.length)
1003
- });
1004
- }
1005
- function We(e) {
1006
- return typeof e == "string" ? e : Xe(e);
1007
- }
1008
- function Se(e) {
1009
- return function() {
1010
- process.env.NODE_ENV !== "production" ? Y(!1, "You cannot %s with <StaticRouter>") : Y(!1);
1011
- };
1012
- }
1013
- function ze() {
1014
- }
1015
- var He = /* @__PURE__ */ function(e) {
1016
- j(r, e);
1017
- function r() {
1018
- for (var n, t = arguments.length, c = new Array(t), p = 0; p < t; p++)
1019
- c[p] = arguments[p];
1020
- return n = e.call.apply(e, [this].concat(c)) || this, n.handlePush = function(u) {
1021
- return n.navigateTo(u, "PUSH");
1022
- }, n.handleReplace = function(u) {
1023
- return n.navigateTo(u, "REPLACE");
1024
- }, n.handleListen = function() {
1025
- return ze;
1026
- }, n.handleBlock = function() {
1027
- return ze;
1028
- }, n;
1029
- }
1030
- var o = r.prototype;
1031
- return o.navigateTo = function(t, c) {
1032
- var p = this.props, u = p.basename, d = u === void 0 ? "" : u, f = p.context, s = f === void 0 ? {} : f;
1033
- s.action = c, s.location = zr(d, z(t)), s.url = We(s.location);
1034
- }, o.render = function() {
1035
- var t = this.props, c = t.basename, p = c === void 0 ? "" : c, u = t.context, d = u === void 0 ? {} : u, f = t.location, s = f === void 0 ? "/" : f, l = nr(t, ["basename", "context", "location"]), v = {
1036
- createHref: function(m) {
1037
- return we(p + We(m));
1038
- },
1039
- action: "POP",
1040
- location: Hr(p, z(s)),
1041
- push: this.handlePush,
1042
- replace: this.handleReplace,
1043
- go: Se(),
1044
- goBack: Se(),
1045
- goForward: Se(),
1046
- listen: this.handleListen,
1047
- block: this.handleBlock
1048
- };
1049
- return /* @__PURE__ */ T.createElement(ie, W({}, l, {
1050
- history: v,
1051
- staticContext: d
1052
- }));
1053
- }, r;
1054
- }(T.Component);
1055
- process.env.NODE_ENV !== "production" && (He.propTypes = {
1056
- basename: _.string,
1057
- context: _.object,
1058
- location: _.oneOfType([_.string, _.object])
1059
- }, He.prototype.componentDidMount = function() {
1060
- process.env.NODE_ENV !== "production" && A(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.");
174
+ );
1061
175
  });
1062
- var Be = /* @__PURE__ */ function(e) {
1063
- j(r, e);
1064
- function r() {
1065
- return e.apply(this, arguments) || this;
176
+ I.displayName = "SideNavCollapsible";
177
+ const T = m(
178
+ (t, e) => {
179
+ const { children: a, label: n, ...i } = t, o = L(f["sidenav-group"]), c = U();
180
+ return /* @__PURE__ */ p.jsxs("li", { ref: e, "data-anv": "sidenav-group", ...i, children: [
181
+ /* @__PURE__ */ p.jsx("label", { id: c, className: f["group-label"], children: n }),
182
+ /* @__PURE__ */ p.jsx("ul", { "aria-labelledby": c, className: o, children: a })
183
+ ] });
1066
184
  }
1067
- var o = r.prototype;
1068
- return o.render = function() {
1069
- var t = this;
1070
- return /* @__PURE__ */ T.createElement(Z.Consumer, null, function(c) {
1071
- c || (process.env.NODE_ENV !== "production" ? Y(!1, "You should not use <Switch> outside a <Router>") : Y(!1));
1072
- var p = t.props.location || c.location, u, d;
1073
- return T.Children.forEach(t.props.children, function(f) {
1074
- if (d == null && /* @__PURE__ */ T.isValidElement(f)) {
1075
- u = f;
1076
- var s = f.props.path || f.props.from;
1077
- d = s ? Me(p.pathname, W({}, f.props, {
1078
- path: s
1079
- })) : c.match;
1080
- }
1081
- }), d ? /* @__PURE__ */ T.cloneElement(u, {
1082
- location: p,
1083
- computedMatch: d
1084
- }) : null;
1085
- });
1086
- }, r;
1087
- }(T.Component);
1088
- process.env.NODE_ENV !== "production" && (Be.propTypes = {
1089
- children: _.node,
1090
- location: _.object
1091
- }, Be.prototype.componentDidUpdate = function(e) {
1092
- process.env.NODE_ENV !== "production" && A(!(this.props.location && !e.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'), process.env.NODE_ENV !== "production" && A(!(!this.props.location && e.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
1093
- });
1094
- var ae = T.useContext;
1095
- function Br() {
1096
- return process.env.NODE_ENV !== "production" && typeof ae != "function" && (process.env.NODE_ENV !== "production" ? Y(!1, "You must use React >= 16.8 in order to use useHistory()") : Y(!1)), ae(tr);
1097
- }
1098
- function Gr() {
1099
- return process.env.NODE_ENV !== "production" && typeof ae != "function" && (process.env.NODE_ENV !== "production" ? Y(!1, "You must use React >= 16.8 in order to use useLocation()") : Y(!1)), ae(Z).location;
1100
- }
1101
- if (process.env.NODE_ENV !== "production" && typeof window < "u") {
1102
- var re = window, te = "__react_router_build__", Ge = {
1103
- cjs: "CommonJS",
1104
- esm: "ES modules",
1105
- umd: "UMD"
185
+ );
186
+ T.displayName = "SideNavGroup";
187
+ const B = X(null), H = m((t, e) => {
188
+ const { layoutStyles: a, componentProps: n } = $(t), { className: i, children: o, style: c, ...l } = n, b = S(null), [u, _] = R(), d = {
189
+ ...c,
190
+ ...a
1106
191
  };
1107
- if (re[te] && re[te] !== "esm") {
1108
- var Kr = Ge[re[te]], Xr = Ge.esm;
1109
- throw new Error("You are loading the " + Xr + " build of React Router " + ("on a page that is already running the " + Kr + " ") + "build, so things won't work right.");
192
+ function v() {
193
+ if (b.current) {
194
+ const h = b.current.querySelectorAll(
195
+ "li[data-anv='sidenav-link'] a:not([aria-disabled='true']), li[data-anv='sidenav-collapsible'] button[aria-expanded]:not([aria-disabled='true'])"
196
+ );
197
+ _(h);
198
+ }
1110
199
  }
1111
- re[te] = "esm";
1112
- }
1113
- const Jr = Q(
1114
- (e, r) => /* @__PURE__ */ H.jsx(or, { ref: r, ...e })
1115
- ), Zr = Q(
1116
- (e, r) => /* @__PURE__ */ H.jsx(ir, { ref: r, ...e })
1117
- ), Qr = Q(
1118
- (e, r) => /* @__PURE__ */ H.jsx(ar, { ref: r, ...e })
1119
- ), kr = Q(
200
+ G(() => {
201
+ v();
202
+ }, []);
203
+ const k = L([f.sidenav], i), x = q(
204
+ () => ({
205
+ links: u,
206
+ reCalculateLinks: v
207
+ }),
208
+ [u]
209
+ );
210
+ return /* @__PURE__ */ p.jsx(B.Provider, { value: x, children: /* @__PURE__ */ p.jsx(
211
+ "nav",
212
+ {
213
+ ref: ee([b, e]),
214
+ className: k,
215
+ style: d,
216
+ "data-anv": "sidenav",
217
+ ...l,
218
+ children: /* @__PURE__ */ p.jsx("ul", { className: f.root, children: o })
219
+ }
220
+ ) });
221
+ }), J = () => {
222
+ const t = Y(B);
223
+ if (t == null)
224
+ throw new Error("useSideNav must be wrapped in <SideNav />");
225
+ return t;
226
+ };
227
+ H.displayName = "SideNav";
228
+ const de = Object.assign(H, {
229
+ Link: C,
230
+ Collapsible: I,
231
+ Group: T
232
+ }), pe = m(
233
+ (t, e) => /* @__PURE__ */ w.jsx(de, { ref: e, ...t })
234
+ ), be = m(
235
+ (t, e) => /* @__PURE__ */ w.jsx(I, { ref: e, ...t })
236
+ ), fe = m(
237
+ (t, e) => /* @__PURE__ */ w.jsx(T, { ref: e, ...t })
238
+ ), ve = m(
1120
239
  ({
1121
- href: e,
1122
- exact: r,
1123
- pathname: o,
240
+ href: t,
241
+ exact: e,
242
+ pathname: a,
1124
243
  search: n,
1125
- onClick: t,
1126
- ...c
1127
- }, p) => {
1128
- const u = Br(), d = Gr(), f = sr(
1129
- () => u.createHref({
1130
- pathname: o,
244
+ onClick: i,
245
+ ...o
246
+ }, c) => {
247
+ const l = ne(), b = ae(), u = q(
248
+ () => l.createHref({
249
+ pathname: a,
1131
250
  search: n
1132
251
  }),
1133
- [u, o, n]
1134
- ), s = cr(
1135
- (...l) => (l[0].preventDefault(), u.push(o + (n ?? "")), t == null ? void 0 : t(...l)),
1136
- [u, o, n, t]
252
+ [l, a, n]
253
+ ), _ = Z(
254
+ (...d) => (d[0].preventDefault(), l.push(a + (n ?? "")), i == null ? void 0 : i(...d)),
255
+ [l, a, n, i]
1137
256
  );
1138
- return /* @__PURE__ */ H.jsx(
1139
- Ke,
257
+ return /* @__PURE__ */ w.jsx(
258
+ C,
1140
259
  {
1141
- href: o != null ? f : e,
1142
- active: !!Me(d.pathname, {
1143
- exact: r,
1144
- path: o
260
+ href: a != null ? u : t,
261
+ active: !!re(b.pathname, {
262
+ exact: e,
263
+ path: a
1145
264
  }),
1146
- onClick: o != null ? s : t,
1147
- ref: p,
1148
- ...c
265
+ onClick: a != null ? _ : i,
266
+ ref: c,
267
+ ...o
1149
268
  }
1150
269
  );
1151
270
  }
1152
- ), et = Q(
1153
- (e, r) => "pathname" in e ? /* @__PURE__ */ H.jsx(kr, { ref: r, ...e }) : /* @__PURE__ */ H.jsx(Ke, { ref: r, ...e })
1154
- ), it = Object.assign(Jr, {
1155
- Link: et,
1156
- Collapsible: Zr,
1157
- Group: Qr
271
+ ), xe = m(
272
+ (t, e) => "pathname" in t ? /* @__PURE__ */ w.jsx(ve, { ref: e, ...t }) : /* @__PURE__ */ w.jsx(C, { ref: e, ...t })
273
+ ), Se = Object.assign(pe, {
274
+ Link: xe,
275
+ Collapsible: be,
276
+ Group: fe
1158
277
  });
1159
278
  export {
1160
- it as SideNav,
1161
- Zr as SideNavCollapsible,
1162
- Qr as SideNavGroup,
1163
- et as SideNavLink,
1164
- it as default
279
+ Se as SideNav,
280
+ be as SideNavCollapsible,
281
+ fe as SideNavGroup,
282
+ xe as SideNavLink,
283
+ Se as default
1165
284
  };
1166
285
  //# sourceMappingURL=SideNav.js.map