@baseline-ui/core 3.3.0 → 3.5.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 (492) hide show
  1. package/dist/Accordion.css +1 -1
  2. package/dist/Accordion.mjs +1 -1
  3. package/dist/ActionButton.css +1 -1
  4. package/dist/ActionButton.mjs +1 -1
  5. package/dist/ActionGroup.css +1 -1
  6. package/dist/ActionGroup.mjs +1 -1
  7. package/dist/ActionIconButton.css +1 -1
  8. package/dist/ActionIconButton.mjs +1 -1
  9. package/dist/Actionable.mjs +1 -1
  10. package/dist/AlertDialog.css +1 -1
  11. package/dist/AlertDialog.mjs +1 -1
  12. package/dist/AudioPlayer.css +1 -1
  13. package/dist/AudioPlayer.mjs +1 -1
  14. package/dist/Avatar.mjs +1 -1
  15. package/dist/ButtonSelect.css +1 -1
  16. package/dist/ButtonSelect.mjs +1 -1
  17. package/dist/Calendar.css +1 -1
  18. package/dist/Calendar.mjs +1 -1
  19. package/dist/Checkbox.mjs +1 -1
  20. package/dist/ColorInput.css +1 -1
  21. package/dist/ColorInput.mjs +1 -1
  22. package/dist/ColorSwatch.mjs +1 -1
  23. package/dist/ColorSwatchPicker.mjs +1 -1
  24. package/dist/ComboBox.css +1 -1
  25. package/dist/ComboBox.mjs +1 -1
  26. package/dist/DateField.css +1 -1
  27. package/dist/DateField.mjs +1 -1
  28. package/dist/DateFormat.mjs +1 -1
  29. package/dist/Dialog.css +1 -1
  30. package/dist/Dialog.mjs +1 -1
  31. package/dist/Disclosure.mjs +1 -1
  32. package/dist/DomNodeRenderer.mjs +1 -1
  33. package/dist/Drawer.css +1 -1
  34. package/dist/Drawer.mjs +1 -1
  35. package/dist/Editor.css +1 -1
  36. package/dist/Editor.mjs +1 -1
  37. package/dist/FileInput.css +1 -1
  38. package/dist/FileInput.mjs +1 -1
  39. package/dist/FileList.css +1 -1
  40. package/dist/FileList.mjs +1 -1
  41. package/dist/FileUploader.css +1 -1
  42. package/dist/FileUploader.mjs +1 -1
  43. package/dist/FrameProvider.mjs +1 -1
  44. package/dist/FreehandCanvas.css +1 -1
  45. package/dist/FreehandCanvas.mjs +1 -1
  46. package/dist/GridList.mjs +1 -1
  47. package/dist/Group.mjs +1 -1
  48. package/dist/I18nProvider.mjs +1 -1
  49. package/dist/Icon.mjs +1 -1
  50. package/dist/ImageDropZone.css +1 -1
  51. package/dist/ImageDropZone.mjs +1 -1
  52. package/dist/ImageGallery.css +1 -1
  53. package/dist/ImageGallery.mjs +1 -1
  54. package/dist/InlineAlert.css +1 -1
  55. package/dist/InlineAlert.mjs +1 -1
  56. package/dist/InlineToolbar.mjs +2 -2
  57. package/dist/Kbd.mjs +1 -1
  58. package/dist/Link.mjs +1 -1
  59. package/dist/ListBox.mjs +1 -1
  60. package/dist/Menu.css +1 -1
  61. package/dist/Menu.mjs +1 -1
  62. package/dist/MessageFormat.mjs +1 -1
  63. package/dist/Modal.mjs +1 -1
  64. package/dist/NumberFormat.mjs +1 -1
  65. package/dist/NumberInput.css +1 -1
  66. package/dist/NumberInput.mjs +1 -1
  67. package/dist/Pagination.css +1 -1
  68. package/dist/Pagination.mjs +1 -1
  69. package/dist/Panel.mjs +1 -1
  70. package/dist/PointPicker.mjs +1 -1
  71. package/dist/Popover.mjs +1 -1
  72. package/dist/Portal.mjs +1 -1
  73. package/dist/Preview.css +1 -1
  74. package/dist/Preview.mjs +1 -1
  75. package/dist/ProgressBar.mjs +1 -1
  76. package/dist/ProgressSpinner.mjs +1 -1
  77. package/dist/RadioGroup.mjs +1 -1
  78. package/dist/Reaction.mjs +1 -1
  79. package/dist/ScrollControlButton.mjs +1 -1
  80. package/dist/SearchInput.css +1 -1
  81. package/dist/SearchInput.mjs +1 -1
  82. package/dist/Select.css +1 -1
  83. package/dist/Select.mjs +1 -1
  84. package/dist/Separator.mjs +1 -1
  85. package/dist/Slider.css +1 -1
  86. package/dist/Slider.mjs +1 -1
  87. package/dist/Stepper.mjs +1 -1
  88. package/dist/Switch.mjs +1 -1
  89. package/dist/Table.css +1 -1
  90. package/dist/Table.mjs +1 -1
  91. package/dist/Tabs.css +1 -1
  92. package/dist/Tabs.mjs +1 -1
  93. package/dist/Tag.mjs +1 -1
  94. package/dist/TagGroup.mjs +1 -1
  95. package/dist/TaggedPagination.css +1 -1
  96. package/dist/TaggedPagination.mjs +1 -1
  97. package/dist/Text.mjs +1 -1
  98. package/dist/TextInput.mjs +1 -1
  99. package/dist/ThemeProvider.mjs +1 -1
  100. package/dist/TimeField.mjs +1 -1
  101. package/dist/Toast.css +1 -1
  102. package/dist/Toast.mjs +1 -1
  103. package/dist/ToggleButton.css +1 -1
  104. package/dist/ToggleButton.mjs +1 -1
  105. package/dist/ToggleIconButton.mjs +1 -1
  106. package/dist/Toolbar.css +1 -1
  107. package/dist/Toolbar.mjs +1 -1
  108. package/dist/Tooltip.mjs +1 -1
  109. package/dist/TreeView.css +1 -1
  110. package/dist/TreeView.mjs +1 -1
  111. package/dist/UNSAFE_ListBox.mjs +1 -1
  112. package/dist/Virtualizer.mjs +1 -1
  113. package/dist/{chunk-UUBOEBYZ.mjs → chunk-22MA6EYO.mjs} +1 -1
  114. package/dist/chunk-22VRCVTH.mjs +10 -0
  115. package/dist/chunk-235S3EB7.mjs +10 -0
  116. package/dist/{chunk-PNBYTIUO.mjs → chunk-2AKHB7Y5.mjs} +1 -1
  117. package/dist/{chunk-CHTLOFCT.mjs → chunk-2JGVUCP5.mjs} +1 -1
  118. package/dist/chunk-2M2LI4MI.mjs +10 -0
  119. package/dist/{chunk-TK4QXU3W.mjs → chunk-2VOWBYNS.mjs} +1 -1
  120. package/dist/chunk-2WA3KB7H.mjs +10 -0
  121. package/dist/{chunk-TO2TQ2LE.mjs → chunk-335C37NB.mjs} +1 -1
  122. package/dist/{chunk-E5GYCA3P.mjs → chunk-3DWFAHR2.mjs} +1 -1
  123. package/dist/chunk-3KWSJRYK.mjs +10 -0
  124. package/dist/chunk-3M3WJHOI.mjs +10 -0
  125. package/dist/{chunk-FWAK2OZM.mjs → chunk-3UC5V5E3.mjs} +1 -1
  126. package/dist/{chunk-TZ4MVY4E.mjs → chunk-3WKDIXCM.mjs} +1 -1
  127. package/dist/chunk-43LOJ3SH.mjs +10 -0
  128. package/dist/chunk-46RUOB4U.mjs +29 -0
  129. package/dist/{chunk-TCCQDGMI.mjs → chunk-4EAXDHSV.mjs} +1 -1
  130. package/dist/{chunk-UQJGSVXP.mjs → chunk-4I7K4CCG.mjs} +2 -2
  131. package/dist/chunk-4P247R4V.mjs +10 -0
  132. package/dist/{chunk-RXSYDMT6.mjs → chunk-4QBHQCCK.mjs} +2 -2
  133. package/dist/chunk-4S4GGUSH.mjs +10 -0
  134. package/dist/chunk-4WVW4KEK.mjs +10 -0
  135. package/dist/chunk-5G6JNQQR.mjs +10 -0
  136. package/dist/{chunk-RSTHM3ZF.mjs → chunk-5G7ABQYJ.mjs} +1 -1
  137. package/dist/{chunk-WAOWR7MR.mjs → chunk-5USQ6HBY.mjs} +1 -1
  138. package/dist/{chunk-UCPPKNGF.mjs → chunk-5VNC6UYE.mjs} +2 -2
  139. package/dist/chunk-5W67PVZQ.mjs +10 -0
  140. package/dist/chunk-5ZC64ZG7.mjs +10 -0
  141. package/dist/chunk-676DOXEK.mjs +10 -0
  142. package/dist/{chunk-VZFS4QRW.mjs → chunk-6GMU63H2.mjs} +1 -1
  143. package/dist/chunk-6M7PJXEE.mjs +10 -0
  144. package/dist/chunk-6Q5PNIYZ.mjs +10 -0
  145. package/dist/chunk-6QQEK5I6.mjs +10 -0
  146. package/dist/{chunk-XEGXSFIP.mjs → chunk-7BE6MOPW.mjs} +2 -2
  147. package/dist/chunk-7EQIV4GX.mjs +10 -0
  148. package/dist/{chunk-GX2IOGYR.mjs → chunk-7MLFM55C.mjs} +1 -1
  149. package/dist/{chunk-6NQPENP4.mjs → chunk-7P7VZMTO.mjs} +1 -1
  150. package/dist/{chunk-CFLEBB5T.mjs → chunk-7SKQUEHP.mjs} +1 -1
  151. package/dist/chunk-7SQRBY7N.mjs +10 -0
  152. package/dist/chunk-7XGNJE7J.mjs +10 -0
  153. package/dist/chunk-7XLBV46W.mjs +10 -0
  154. package/dist/chunk-ABXTAFKP.mjs +11 -0
  155. package/dist/{chunk-AYBACQ6U.mjs → chunk-AFOW62QN.mjs} +2 -2
  156. package/dist/chunk-AI6WQPRX.mjs +10 -0
  157. package/dist/chunk-AMVX34SS.mjs +10 -0
  158. package/dist/chunk-AN26QORL.mjs +10 -0
  159. package/dist/chunk-AYQN3OH2.mjs +10 -0
  160. package/dist/chunk-B3EZOXNU.mjs +10 -0
  161. package/dist/{chunk-F3HQNHR5.mjs → chunk-BA5OA5DY.mjs} +1 -1
  162. package/dist/chunk-BAIVRB2I.mjs +10 -0
  163. package/dist/chunk-BET5GVGQ.mjs +10 -0
  164. package/dist/chunk-BGQRLALS.mjs +10 -0
  165. package/dist/chunk-BGRGRUG4.mjs +10 -0
  166. package/dist/chunk-BPW4QRPV.mjs +10 -0
  167. package/dist/chunk-BSSLS6MF.mjs +10 -0
  168. package/dist/chunk-BTPAZDGG.mjs +10 -0
  169. package/dist/{chunk-I3YGB2BE.mjs → chunk-C4WHTPLY.mjs} +2 -2
  170. package/dist/chunk-CENNHSIS.mjs +15 -0
  171. package/dist/chunk-CIPPPD6E.mjs +10 -0
  172. package/dist/{chunk-2TH2QRSV.mjs → chunk-CTBCJZEG.mjs} +1 -1
  173. package/dist/chunk-CU6D2EA6.mjs +10 -0
  174. package/dist/{chunk-SAZLJ66W.mjs → chunk-CY6W27WG.mjs} +1 -1
  175. package/dist/{chunk-34TYNTXM.mjs → chunk-D4NW56YQ.mjs} +1 -1
  176. package/dist/chunk-D5VU5TED.mjs +11 -0
  177. package/dist/chunk-DAI7V4TE.mjs +10 -0
  178. package/dist/{chunk-PAQQ7MQG.mjs → chunk-DF2D7NE6.mjs} +1 -1
  179. package/dist/chunk-DO5YROCG.mjs +10 -0
  180. package/dist/{chunk-DRYSJSKA.mjs → chunk-E3FP4B25.mjs} +1 -1
  181. package/dist/{chunk-QSSCSN5S.mjs → chunk-EGLD5KVP.mjs} +2 -2
  182. package/dist/{chunk-HVKYWSRF.mjs → chunk-EL5OYHOX.mjs} +2 -2
  183. package/dist/chunk-ETM4MNG4.mjs +10 -0
  184. package/dist/chunk-F7WPMQ3P.mjs +16 -0
  185. package/dist/{chunk-EU75HMPG.mjs → chunk-FCKJCFMD.mjs} +2 -2
  186. package/dist/chunk-FGSVPRDN.mjs +10 -0
  187. package/dist/chunk-FNCHBVLF.mjs +10 -0
  188. package/dist/chunk-FPM5UJRF.mjs +10 -0
  189. package/dist/{chunk-TJEK54BW.mjs → chunk-G77E7EDE.mjs} +1 -1
  190. package/dist/{chunk-N26C7NYZ.mjs → chunk-GCBMNOA6.mjs} +1 -1
  191. package/dist/chunk-GFBRKKX4.mjs +10 -0
  192. package/dist/chunk-GFKZXGWJ.mjs +10 -0
  193. package/dist/{chunk-CPSUI4IW.mjs → chunk-GFTIEY5K.mjs} +1 -1
  194. package/dist/{chunk-IVVZSESM.mjs → chunk-GL5GUKT7.mjs} +2 -2
  195. package/dist/chunk-GLAMJIYO.mjs +10 -0
  196. package/dist/chunk-GMALMQWI.mjs +10 -0
  197. package/dist/chunk-GQIS4QBN.mjs +10 -0
  198. package/dist/chunk-GUPSQSPC.mjs +0 -0
  199. package/dist/chunk-HABKIEKC.mjs +10 -0
  200. package/dist/chunk-HH4VLTF3.mjs +10 -0
  201. package/dist/{chunk-HI44JQA7.mjs → chunk-HPUUQKKH.mjs} +2 -2
  202. package/dist/chunk-HZM2XZP4.mjs +10 -0
  203. package/dist/chunk-I7LPPUZS.mjs +10 -0
  204. package/dist/{chunk-IXK6S6IH.mjs → chunk-I7SMG6PT.mjs} +1 -1
  205. package/dist/chunk-IHES52NR.mjs +10 -0
  206. package/dist/{chunk-AGYQLGBZ.mjs → chunk-IIURKT24.mjs} +1 -1
  207. package/dist/{chunk-NQO6OQT6.mjs → chunk-IM3E5JL4.mjs} +1 -1
  208. package/dist/chunk-IROFSPEN.mjs +10 -0
  209. package/dist/chunk-JRCDMRIW.mjs +10 -0
  210. package/dist/{chunk-XUJJMAKM.mjs → chunk-JZXLV6JU.mjs} +1 -1
  211. package/dist/{chunk-4ZJMZB5B.mjs → chunk-K5RYVERS.mjs} +1 -1
  212. package/dist/{chunk-WL27JGVG.mjs → chunk-KG2EHFYA.mjs} +1 -1
  213. package/dist/chunk-KHDWTXGG.mjs +10 -0
  214. package/dist/{chunk-AMYRLAIC.mjs → chunk-KT4FTBJ2.mjs} +1 -1
  215. package/dist/chunk-KUDCYGII.mjs +10 -0
  216. package/dist/{chunk-YCI6BEXQ.mjs → chunk-KVIV5RTE.mjs} +1 -1
  217. package/dist/chunk-KW3BKIG4.mjs +10 -0
  218. package/dist/chunk-KX7WG3L4.mjs +10 -0
  219. package/dist/chunk-LBHZV4BO.mjs +10 -0
  220. package/dist/chunk-LJZ7ZS4C.mjs +10 -0
  221. package/dist/chunk-LKSUUT3M.mjs +10 -0
  222. package/dist/chunk-LQ7PGSP4.mjs +10 -0
  223. package/dist/chunk-LQHFBXCW.mjs +10 -0
  224. package/dist/{chunk-V37GPPZD.mjs → chunk-LSPDPDB6.mjs} +1 -1
  225. package/dist/{chunk-L6S5GBKS.mjs → chunk-MBRNO6IW.mjs} +1 -1
  226. package/dist/chunk-MCN5JU6E.mjs +10 -0
  227. package/dist/chunk-MHAPHPNN.mjs +10 -0
  228. package/dist/chunk-MZIQ27JP.mjs +10 -0
  229. package/dist/chunk-NKC4MIX3.mjs +10 -0
  230. package/dist/{chunk-GI2O6H4I.mjs → chunk-NMGKHMH3.mjs} +1 -1
  231. package/dist/chunk-NMK4W6K3.mjs +10 -0
  232. package/dist/{chunk-GEZGEZAP.mjs → chunk-NQIZ3U7Q.mjs} +2 -2
  233. package/dist/{chunk-6Z6HOW6T.mjs → chunk-NUCSMH4S.mjs} +2 -2
  234. package/dist/chunk-NZNOHFLD.mjs +10 -0
  235. package/dist/{chunk-4PYEGHW5.mjs → chunk-O23QVPUT.mjs} +2 -2
  236. package/dist/{chunk-UN7XC7QV.mjs → chunk-O6FPWOHR.mjs} +1 -1
  237. package/dist/{chunk-3UH5CQQF.mjs → chunk-O7IU5NHN.mjs} +2 -2
  238. package/dist/chunk-OMWMNUTI.mjs +10 -0
  239. package/dist/{chunk-Z4HTFTPM.mjs → chunk-ONBEVR2G.mjs} +2 -2
  240. package/dist/chunk-OQPYPKZV.mjs +10 -0
  241. package/dist/chunk-OVJT5F2R.mjs +10 -0
  242. package/dist/chunk-OWQRYRWF.mjs +10 -0
  243. package/dist/{chunk-XJ2DFV56.mjs → chunk-PLZ6ZFEO.mjs} +1 -1
  244. package/dist/chunk-PMDRFB75.mjs +10 -0
  245. package/dist/chunk-PPHSLODC.mjs +10 -0
  246. package/dist/chunk-PYV5J322.mjs +11 -0
  247. package/dist/chunk-QAAOC64D.mjs +10 -0
  248. package/dist/chunk-QMV2O57M.mjs +10 -0
  249. package/dist/{chunk-ZLZAFTSD.mjs → chunk-QWZBZ23U.mjs} +1 -1
  250. package/dist/{chunk-NADBGP35.mjs → chunk-QXXKOFWM.mjs} +2 -2
  251. package/dist/{chunk-DMJHCNBU.mjs → chunk-R6Q7UMQS.mjs} +1 -1
  252. package/dist/{chunk-CGFLGZL4.mjs → chunk-R6TFTLMV.mjs} +1 -1
  253. package/dist/{chunk-AV4ZP5SY.mjs → chunk-RPIUPWPO.mjs} +1 -1
  254. package/dist/chunk-S2XIFW52.mjs +10 -0
  255. package/dist/chunk-S4HLMIFK.mjs +10 -0
  256. package/dist/chunk-SBGZCLF4.mjs +10 -0
  257. package/dist/chunk-SD43KVTU.mjs +10 -0
  258. package/dist/{chunk-YS3Y5KGV.mjs → chunk-SGZWUG3H.mjs} +2 -2
  259. package/dist/chunk-SI5WP6I7.mjs +10 -0
  260. package/dist/chunk-SLFKSR3T.mjs +10 -0
  261. package/dist/chunk-SLSJEMQ4.mjs +10 -0
  262. package/dist/{chunk-K6X2BHPP.mjs → chunk-STMDFIUL.mjs} +1 -1
  263. package/dist/chunk-SVIYLH7R.mjs +10 -0
  264. package/dist/{chunk-GXOXYPQQ.mjs → chunk-SVV6DLJH.mjs} +1 -1
  265. package/dist/chunk-SZCVQU55.mjs +10 -0
  266. package/dist/{chunk-QXOG2ISL.mjs → chunk-T6J7G3YL.mjs} +2 -2
  267. package/dist/chunk-TAT552A5.mjs +10 -0
  268. package/dist/{chunk-ZNN43VZV.mjs → chunk-TFSBTGTQ.mjs} +2 -2
  269. package/dist/chunk-TIGGKOJQ.mjs +10 -0
  270. package/dist/chunk-TTVYMCU3.mjs +10 -0
  271. package/dist/chunk-TUY23KMK.mjs +10 -0
  272. package/dist/chunk-TYKMNZJ4.mjs +11 -0
  273. package/dist/chunk-TZGK36KC.mjs +10 -0
  274. package/dist/chunk-UBLCUHRL.mjs +10 -0
  275. package/dist/chunk-UFN2OAM2.mjs +10 -0
  276. package/dist/{chunk-5K46OAX5.mjs → chunk-UH6QIGD3.mjs} +1 -1
  277. package/dist/{chunk-ZLAY7NNY.mjs → chunk-UI2VBG26.mjs} +1 -1
  278. package/dist/{chunk-545KDVGI.mjs → chunk-UO75BAPM.mjs} +2 -2
  279. package/dist/chunk-UOWKAUCQ.mjs +10 -0
  280. package/dist/chunk-UPJHL37C.mjs +10 -0
  281. package/dist/chunk-USUPPN73.mjs +10 -0
  282. package/dist/chunk-UYAFH4CW.mjs +10 -0
  283. package/dist/{chunk-6EFNC443.mjs → chunk-UYUYQFOW.mjs} +1 -1
  284. package/dist/chunk-UZ672WDX.mjs +10 -0
  285. package/dist/chunk-VFO35ZLL.mjs +10 -0
  286. package/dist/chunk-VXZT2JR2.mjs +10 -0
  287. package/dist/chunk-WFYFHANE.mjs +10 -0
  288. package/dist/chunk-X5ORCNAU.mjs +10 -0
  289. package/dist/chunk-X5ZTXDQ4.mjs +10 -0
  290. package/dist/chunk-X7CKWYUD.mjs +10 -0
  291. package/dist/{chunk-NUYBQ7KP.mjs → chunk-XAM3AXXK.mjs} +1 -1
  292. package/dist/{chunk-5KD2MNNX.mjs → chunk-XDTKLQJB.mjs} +1 -1
  293. package/dist/chunk-XMGPNXZH.mjs +10 -0
  294. package/dist/chunk-XOS3JIQX.mjs +10 -0
  295. package/dist/chunk-XQC3DSTW.mjs +10 -0
  296. package/dist/{chunk-D3IZ4HBL.mjs → chunk-Y2MIU76N.mjs} +1 -1
  297. package/dist/chunk-Y3HXPORF.mjs +10 -0
  298. package/dist/chunk-YDUKC7QS.mjs +10 -0
  299. package/dist/chunk-YF63IQQR.mjs +10 -0
  300. package/dist/chunk-YFBMCK5O.mjs +10 -0
  301. package/dist/{chunk-2RCST7ET.mjs → chunk-YHI2PD3M.mjs} +1 -1
  302. package/dist/chunk-YMYMFVW4.mjs +10 -0
  303. package/dist/chunk-YQHHE5AT.mjs +10 -0
  304. package/dist/{chunk-UCNHDT36.mjs → chunk-YS3Z53YT.mjs} +2 -2
  305. package/dist/chunk-YYU46XNM.mjs +10 -0
  306. package/dist/{chunk-2EMOQIU7.mjs → chunk-Z3ZMWJSV.mjs} +2 -2
  307. package/dist/chunk-Z4QTH4TB.mjs +10 -0
  308. package/dist/chunk-ZA2FH3MS.mjs +10 -0
  309. package/dist/{chunk-DECHIERQ.mjs → chunk-ZQOR4LCM.mjs} +1 -1
  310. package/dist/hooks/useContainerScopedRef.mjs +1 -1
  311. package/dist/hooks/useDevice.mjs +1 -1
  312. package/dist/hooks/useI18n.mjs +1 -1
  313. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  314. package/dist/hooks/useLiveInteractionModality.mjs +1 -1
  315. package/dist/hooks/useMedia.mjs +1 -1
  316. package/dist/hooks/useMutationObserver.mjs +1 -1
  317. package/dist/hooks/usePortalContainer.mjs +1 -1
  318. package/dist/hooks/usePreventFocus.mjs +1 -1
  319. package/dist/hooks/useResizeObserver.mjs +1 -1
  320. package/dist/hooks/useTextSelection.mjs +1 -1
  321. package/dist/hooks/useUndoRedo.mjs +1 -1
  322. package/dist/index.css +1 -1
  323. package/dist/index.d.ts +440 -188
  324. package/dist/index.js +21 -20
  325. package/dist/index.mjs +1 -1
  326. package/dist/messageIds.mjs +1 -1
  327. package/dist/react-aria.mjs +1 -1
  328. package/dist/react-stately.mjs +1 -1
  329. package/dist/utils/colors.mjs +1 -1
  330. package/dist/utils/dom.mjs +1 -1
  331. package/dist/utils/isInShadowDOM.mjs +1 -1
  332. package/dist/utils/keyboards.mjs +1 -1
  333. package/dist/utils/strings.mjs +1 -1
  334. package/intl/ar.json +1 -0
  335. package/intl/cs.json +1 -0
  336. package/intl/cy.json +1 -0
  337. package/intl/da.json +1 -0
  338. package/intl/de.json +1 -0
  339. package/intl/el.json +1 -0
  340. package/intl/en-GB.json +1 -0
  341. package/intl/en.json +1 -0
  342. package/intl/es.json +1 -0
  343. package/intl/fi.json +1 -0
  344. package/intl/fr-CA.json +1 -0
  345. package/intl/fr.json +1 -0
  346. package/intl/he.json +1 -0
  347. package/intl/hr.json +1 -0
  348. package/intl/id.json +1 -0
  349. package/intl/it.json +1 -0
  350. package/intl/ja.json +1 -0
  351. package/intl/ko.json +1 -0
  352. package/intl/ms.json +1 -0
  353. package/intl/nb-NO.json +1 -0
  354. package/intl/nl.json +1 -0
  355. package/intl/pl.json +1 -0
  356. package/intl/pt-PT.json +1 -0
  357. package/intl/pt.json +1 -0
  358. package/intl/ru.json +1 -0
  359. package/intl/sk.json +1 -0
  360. package/intl/sl.json +1 -0
  361. package/intl/sv.json +1 -0
  362. package/intl/th.json +1 -0
  363. package/intl/tr.json +1 -0
  364. package/intl/uk.json +1 -0
  365. package/intl/zh-Hans.json +1 -0
  366. package/intl/zh-Hant.json +1 -0
  367. package/messages.json +5 -1
  368. package/package.json +4 -4
  369. package/sbom.json +6 -6
  370. package/dist/chunk-2BXXD6SW.mjs +0 -10
  371. package/dist/chunk-2V323KAD.mjs +0 -10
  372. package/dist/chunk-2YTKLY4F.mjs +0 -10
  373. package/dist/chunk-3FYY26ED.mjs +0 -10
  374. package/dist/chunk-3W6RWDIE.mjs +0 -10
  375. package/dist/chunk-4C6AJ3TZ.mjs +0 -10
  376. package/dist/chunk-5HK56IXH.mjs +0 -10
  377. package/dist/chunk-5IXSPQRW.mjs +0 -10
  378. package/dist/chunk-63KRQW56.mjs +0 -10
  379. package/dist/chunk-66NJ7EYY.mjs +0 -10
  380. package/dist/chunk-6JWACCHG.mjs +0 -10
  381. package/dist/chunk-6PXOVWVM.mjs +0 -10
  382. package/dist/chunk-6V7BIFQD.mjs +0 -10
  383. package/dist/chunk-6VXBFM6Q.mjs +0 -10
  384. package/dist/chunk-7L5UOGZA.mjs +0 -10
  385. package/dist/chunk-7MQBBSZ2.mjs +0 -10
  386. package/dist/chunk-7P322KP4.mjs +0 -10
  387. package/dist/chunk-7PRJIPFA.mjs +0 -10
  388. package/dist/chunk-A24DWFQ2.mjs +0 -10
  389. package/dist/chunk-AC7OXVHA.mjs +0 -10
  390. package/dist/chunk-AKES5B6C.mjs +0 -10
  391. package/dist/chunk-AQYBKDT2.mjs +0 -16
  392. package/dist/chunk-AUOQSTS5.mjs +0 -10
  393. package/dist/chunk-AW5WDI2U.mjs +0 -10
  394. package/dist/chunk-B237CJT4.mjs +0 -10
  395. package/dist/chunk-B6U6JHD4.mjs +0 -10
  396. package/dist/chunk-B7PSE5KC.mjs +0 -10
  397. package/dist/chunk-BBZ2I3RF.mjs +0 -10
  398. package/dist/chunk-BCENUHNO.mjs +0 -10
  399. package/dist/chunk-BGHBSM3K.mjs +0 -10
  400. package/dist/chunk-BGMVPFYK.mjs +0 -10
  401. package/dist/chunk-BJVFZYUV.mjs +0 -10
  402. package/dist/chunk-BU5H25MV.mjs +0 -10
  403. package/dist/chunk-C7AUJO36.mjs +0 -10
  404. package/dist/chunk-CAWUDHAE.mjs +0 -10
  405. package/dist/chunk-CCA2ABXO.mjs +0 -10
  406. package/dist/chunk-CUOTJ7AP.mjs +0 -10
  407. package/dist/chunk-CYTHB4M4.mjs +0 -10
  408. package/dist/chunk-D5EEZT5J.mjs +0 -10
  409. package/dist/chunk-DDLZ6CKC.mjs +0 -10
  410. package/dist/chunk-E3DMXJIC.mjs +0 -10
  411. package/dist/chunk-E3QDPL77.mjs +0 -10
  412. package/dist/chunk-EA6GA4WC.mjs +0 -10
  413. package/dist/chunk-EGXILQNX.mjs +0 -10
  414. package/dist/chunk-EX2LI2CV.mjs +0 -10
  415. package/dist/chunk-EYKIXVM3.mjs +0 -10
  416. package/dist/chunk-F2X474RV.mjs +0 -10
  417. package/dist/chunk-F7PGMOQF.mjs +0 -10
  418. package/dist/chunk-GKODQS6E.mjs +0 -10
  419. package/dist/chunk-GVI6EBGJ.mjs +0 -10
  420. package/dist/chunk-HK3CZVHY.mjs +0 -10
  421. package/dist/chunk-HONWMHMX.mjs +0 -10
  422. package/dist/chunk-HT55YHTN.mjs +0 -10
  423. package/dist/chunk-HZHAKW6I.mjs +0 -10
  424. package/dist/chunk-ILAQFMYD.mjs +0 -10
  425. package/dist/chunk-INDVRI57.mjs +0 -10
  426. package/dist/chunk-ITWJSFYK.mjs +0 -10
  427. package/dist/chunk-IVC2BJRU.mjs +0 -10
  428. package/dist/chunk-IXRSSEHQ.mjs +0 -10
  429. package/dist/chunk-JDLUGVXG.mjs +0 -10
  430. package/dist/chunk-K6HE4Z2Y.mjs +0 -10
  431. package/dist/chunk-K73R5G6G.mjs +0 -10
  432. package/dist/chunk-KEAM6GSA.mjs +0 -10
  433. package/dist/chunk-KEVERVHK.mjs +0 -10
  434. package/dist/chunk-KHOXLBPR.mjs +0 -10
  435. package/dist/chunk-KPEONVLU.mjs +0 -10
  436. package/dist/chunk-KUEDQO7P.mjs +0 -10
  437. package/dist/chunk-KWHTLY23.mjs +0 -10
  438. package/dist/chunk-KY3JKXSX.mjs +0 -10
  439. package/dist/chunk-LQMEFFFM.mjs +0 -10
  440. package/dist/chunk-LZFTBNPW.mjs +0 -10
  441. package/dist/chunk-M5M3EPG5.mjs +0 -10
  442. package/dist/chunk-M7OLZJYB.mjs +0 -10
  443. package/dist/chunk-MHUFXHRU.mjs +0 -10
  444. package/dist/chunk-MONDDKB4.mjs +0 -10
  445. package/dist/chunk-MRJFGHFW.mjs +0 -10
  446. package/dist/chunk-MVK5CB64.mjs +0 -10
  447. package/dist/chunk-N6VKP3UH.mjs +0 -10
  448. package/dist/chunk-NZQVKNP4.mjs +0 -10
  449. package/dist/chunk-OAY74XPB.mjs +0 -10
  450. package/dist/chunk-OMT6ZWSV.mjs +0 -11
  451. package/dist/chunk-P37WUXAI.mjs +0 -10
  452. package/dist/chunk-P5LSMA24.mjs +0 -11
  453. package/dist/chunk-PA3THES4.mjs +0 -10
  454. package/dist/chunk-QDQPVCXN.mjs +0 -10
  455. package/dist/chunk-QR2AF3KT.mjs +0 -10
  456. package/dist/chunk-QYTY3KJR.mjs +0 -10
  457. package/dist/chunk-R2OV7FJO.mjs +0 -10
  458. package/dist/chunk-RCBUNCHV.mjs +0 -10
  459. package/dist/chunk-RFTDIXEG.mjs +0 -10
  460. package/dist/chunk-RJZZIVSY.mjs +0 -10
  461. package/dist/chunk-SHJ2TJYG.mjs +0 -10
  462. package/dist/chunk-SMAYNDQQ.mjs +0 -10
  463. package/dist/chunk-SYFSGF73.mjs +0 -10
  464. package/dist/chunk-T4R3EXGI.mjs +0 -10
  465. package/dist/chunk-TBCZKWGQ.mjs +0 -10
  466. package/dist/chunk-TDXALNX3.mjs +0 -10
  467. package/dist/chunk-TKQOQVZD.mjs +0 -10
  468. package/dist/chunk-TTYRHIRQ.mjs +0 -10
  469. package/dist/chunk-UBFMOTBM.mjs +0 -10
  470. package/dist/chunk-UEDBY5JI.mjs +0 -10
  471. package/dist/chunk-UT2I4K7L.mjs +0 -10
  472. package/dist/chunk-V3L4SVVF.mjs +0 -10
  473. package/dist/chunk-VAFIUM63.mjs +0 -29
  474. package/dist/chunk-VIVNQZYK.mjs +0 -10
  475. package/dist/chunk-VOSSQAHC.mjs +0 -11
  476. package/dist/chunk-WWSGOGLA.mjs +0 -10
  477. package/dist/chunk-X3AXUU3H.mjs +0 -10
  478. package/dist/chunk-X6IJEPSH.mjs +0 -10
  479. package/dist/chunk-XF5UMU6D.mjs +0 -15
  480. package/dist/chunk-XTH6B5FE.mjs +0 -10
  481. package/dist/chunk-XWLESSHN.mjs +0 -10
  482. package/dist/chunk-XZSDCUID.mjs +0 -10
  483. package/dist/chunk-Y3YZMICA.mjs +0 -10
  484. package/dist/chunk-Y4DRSGEJ.mjs +0 -10
  485. package/dist/chunk-YB3KW7JC.mjs +0 -10
  486. package/dist/chunk-YIGT3OP2.mjs +0 -10
  487. package/dist/chunk-YKMSINHH.mjs +0 -10
  488. package/dist/chunk-YWCU4PP7.mjs +0 -10
  489. package/dist/chunk-YWQXHVMW.mjs +0 -10
  490. package/dist/chunk-YX2ASVM3.mjs +0 -10
  491. package/dist/chunk-ZGRRD3TU.mjs +0 -10
  492. /package/dist/{chunk-FKYHERP4.mjs → chunk-3K2H3JOE.mjs} +0 -0
@@ -1,10 +0,0 @@
1
- import {a as a$7}from'./chunk-NV7KQVPE.mjs';import {a as a$c}from'./chunk-YCI6BEXQ.mjs';import {a as a$4}from'./chunk-TKQOQVZD.mjs';import {a as a$3}from'./chunk-TAYP2OGC.mjs';import {c as c$2}from'./chunk-5MUEJ5WI.mjs';import {b as b$1,c as c$1,a as a$d}from'./chunk-RO5ZRU3Y.mjs';import {B}from'./chunk-OMT6ZWSV.mjs';import {a as a$2}from'./chunk-SAZLJ66W.mjs';import {b,c as c$3}from'./chunk-GX2IOGYR.mjs';import {a as a$9,b as b$3}from'./chunk-AYBACQ6U.mjs';import {a as a$b}from'./chunk-O7XK2WIX.mjs';import {b as b$2}from'./chunk-4ZJMZB5B.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-X3AXUU3H.mjs';import {a as a$a}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-K6X2BHPP.mjs';import {a as a$6}from'./chunk-3FYY26ED.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$e}from'./chunk-JDLUGVXG.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import Z,{useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var Q=Z.forwardRef(({className:t,style:u,isInline:n=true,accept:i="image/*",defaultImageSrc:g,imageSrc:s,imageAlt:X,pickerButtonLabel:Y,isDisabled:o,onDrop:$,onPaste:S,includeCheckeredBackground:ee=true,"data-block-id":te,"data-block-class":re,pickerButtonStyle:oe,pickerButtonClassName:se,footerClassName:ne,footerStyle:ie,clearLabel:y,placeholder:P,labelStyle:ae,labelClassName:le,maxFileSize:w,onFileSizeError:ue,onFileTypeError:me,...m},pe)=>{let f=Z.useRef(null),h=Z.useRef(null),{formatMessage:fe}=b(),ce=e=>!w||e.size<=w?true:(ue?.(e),false),de=e=>xe(e,i)?true:(me?.(e),false),F=e=>de(e)&&ce(e),[ge,c$3]=a(s,g||null,e=>{a$1(typeof e!="string"),m.onValueChange?.(e?[e]:[]);}),l=Te(ge),{fieldProps:ye,labelProps:Pe}=a$2({...m,ref:f}),{dropProps:he,isDropTarget:I}=B({ref:f,onDrop:async e=>{if(o)return;let r=await a$3({items:e.items});r.length&&F(r[0])&&c$3(r[0]),$?.(e);},...m}),{clipboardProps:Fe}=a$4({onPaste:async e=>{if(o)return;let r=await a$3({items:e});r.length&&F(r[0])&&c$3(r[0]),S?.(e);},...m}),Ie=()=>{c$3(null),h.current&&(h.current.value="");},be={type:"file",onChange:e=>{let r=[...e.target.files];r.length&&F(r[0])?c$3(r[0]):r.length&&(e.target.value=""),m.onChange?.(e);},accept:i,disabled:o},{focusProps:ve,isFocused:Ce,isFocusVisible:b$4}=a$5({within:true}),{hoverProps:Le,isHovered:B$1}=a$6({isDisabled:o}),{imgProps:Re,isLoading:Ze,isLoaded:v}=a$7({src:l,alt:X||""}),we={label:Y||fe(Ae.selectImage),onPress:()=>f.current?.click(),variant:"secondary",isDisabled:o,excludeFromTabOrder:true,className:a$8(a$9({isFocusVisible:b$4}),{[b$1]:I&&!o},se),style:oe},Be=a$a({"data-loaded":v,"data-block-id":te,"data-block-class":re,"data-hovered":B$1,"data-focused":Ce,"data-drop-target":I,"data-disabled":o,"data-focus-visible":b$4});return jsxs(a$b,{...Be,className:a$8("BaselineUI-ImageDropZone",t),display:"flex",flexDirection:"column",alignItems:"center",style:u,ref:pe,children:[jsxs("label",{...c(he,Le,ve,Pe),className:a$8(a$d({isInline:n,isHovered:B$1,isDisabled:o,hasLoadedImage:!!l&&v,showFocusRing:I||!!l&&b$4}),le),style:ae,ref:f,children:[jsx(b$2,{children:jsx("input",{...c(ye,Fe,be),ref:h})}),!l&&jsx(b$3,{...we}),!!l&&(Ze?jsx(a$c,{}):jsx("img",{className:c$1({isInline:n,isDisabled:o,hasLoadedImage:!!l&&v&&ee}),...Re}))]}),P||y?jsx("div",{style:ie,className:a$8(c$2({isInline:n,isDisabled:o}),ne),children:(l||!P)&&y?jsx(b$3,{size:"sm",variant:"ghost",label:y,isDisabled:o,onPress:Ie}):jsx(b$3,{size:"sm",variant:"ghost",label:P,isDisabled:true})}):null]})});Q.displayName="ImageDropZone";function Te(t){let[u,n]=useState();if(a$e(()=>{if(!t||typeof t=="string"){n(void 0);return}let i=URL.createObjectURL(t);return n(i),()=>{URL.revokeObjectURL(i);}},[t]),!!t)return typeof t=="string"?t:u}function xe(t,u){if(!u)return true;let n=u.split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);if(n.length===0)return true;let i=t.type.toLowerCase(),g=t.name.toLowerCase();return n.some(s=>s==="*/*"?true:s.startsWith(".")?g.endsWith(s):i?s.endsWith("/*")?i.startsWith(s.slice(0,-1)):i===s:true)}var Ae=c$3({selectImage:{defaultMessage:"Select Image",id:"bui.imageDropZone.selectImage"}});export{Q as a};
@@ -1,10 +0,0 @@
1
- import {i}from'./chunk-L6S5GBKS.mjs';import {a as a$1}from'./chunk-VDUFLHKK.mjs';import {a as a$2}from'./chunk-YS3Y5KGV.mjs';import {a as a$3}from'./chunk-K6X2BHPP.mjs';import {a as a$4}from'./chunk-3FYY26ED.mjs';import {b,c,a as a$5}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-AUOQSTS5.mjs';import H,{useState,useEffect,useContext}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- function B(t,e,n){let{isSelected:r}=e,{isPressed:s,buttonProps:o}=a$2({...t,onPress:a$5(e.toggle,t.onPress)},n);return {isPressed:s,isSelected:r,isDisabled:t.isDisabled||false,buttonProps:c(o,{"aria-pressed":r})}}function z({tooltip:t,"aria-label":e,"aria-labelledby":n},r){let[s,o]=useState(e||"");useEffect(()=>{if(n){let u=a(r.current).querySelector(`#${n}`);u&&o(u.textContent||"");}else e&&o(e);},[n,r,e]);let{tooltipProps:i}=a$1({label:s,tooltip:t});return {tooltipProps:i}}var G=t=>{let e=H.useRef(null),{ref:n,...r}=useContext(i)||{},{buttonProps:s,isPressed:o}=a$2({...t,...r},e),{isFocusVisible:i$1,isFocused:l,focusProps:u}=a$3(),{hoverProps:c$1,isHovered:a}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(s,u,c$1),isPressed:o,ref:b(e,n||null),isFocusVisible:i$1,isFocused:l,isHovered:a,uiStateOptions:{isHovered:a,isFocused:l,isPressed:o,isDisabled:t.isDisabled,isFocusVisible:i$1}}},J=(t,e)=>{let n=H.useRef(null),{ref:r,...s}=useContext(i)||{},{buttonProps:o,isPressed:i$1}=B({...t,...s},e,n);(o.role==="radio"||o.role==="checkbox")&&(o["aria-pressed"]=void 0);let{isFocusVisible:l,isFocused:u,focusProps:c$1}=a$3(),{hoverProps:a,isHovered:d}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(o,c$1,a),isPressed:i$1,ref:b(n,r||null),isFocusVisible:l,isFocused:u,isHovered:d,uiStateOptions:{isHovered:d,isFocused:u,isPressed:i$1,isDisabled:t.isDisabled,isFocusVisible:l,isSelected:e.isSelected}}};export{z as a,G as b,J as c};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {forwardRef,useRef,useMemo,useContext,useState,useCallback}from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var D=Symbol("default");function U({values:t,children:r}){for(let[e,o]of t)r=jsx(e.Provider,{value:o,children:r});return r}function $(t){let{className:r,style:e,children:o,defaultClassName:l=void 0,defaultChildren:n=void 0,defaultStyle:a,values:i,render:d}=t;return useMemo(()=>{let c,s,u;return typeof r=="function"?c=r({...i,defaultClassName:l}):c=r,typeof e=="function"?s=e({...i,defaultStyle:a||{}}):s=e,typeof o=="function"?u=o({...i,defaultChildren:n}):o==null?u=n:u=o,{className:c??l,style:s||a?{...a,...s}:void 0,children:u??n,"data-rac":"",render:d?E=>d(E,i):void 0}},[r,e,o,l,n,a,i,d])}function h(t,r){let e=useContext(t);if(r===null)return null;if(e&&typeof e=="object"&&"slots"in e&&e.slots){let o=r||D;if(!e.slots[o]){let l=new Intl.ListFormat().format(Object.keys(e.slots).map(a=>`"${a}"`)),n=r?`Invalid slot "${r}".`:"A slot prop is required.";throw new Error(`${n} Valid slot names are ${l}.`)}return e.slots[o]}return e}function j(t,r,e){let o=h(e,t.slot)||{},{ref:l,...n}=o,a=a$1(useMemo(()=>b(r,l),[r,l])),i=c(n,t);return "style"in n&&n.style&&"style"in t&&t.style&&(typeof n.style=="function"||typeof t.style=="function"?i.style=d=>{let c=typeof n.style=="function"?n.style(d):n.style,s={...d.defaultStyle,...c},u=typeof t.style=="function"?t.style({...d,defaultStyle:s}):t.style;return {...s,...u}}:i.style={...n.style,...t.style}),[i,a]}function q(t=true){let[r,e]=useState(t),o=useRef(false),l=useCallback(n=>{o.current=true,e(!!n);},[]);return a(()=>{o.current||e(false);},[]),[l,r]}function W(t){let r=/^(data-.*)$/,e={};for(let o in t)r.test(o)||(e[o]=t[o]);return e}function A(t,r,e){let{render:o,...l}=r,n=useRef(null),a$1=useMemo(()=>b(e,n),[e,n]);a(()=>{process.env.NODE_ENV!=="production"&&o&&(n.current?n.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${n.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));},[t,o]);let i={...l,ref:a$1};return o?o(i,void 0):jsx(t,{...i})}var y={},_=new Proxy({},{get(t,r){if(typeof r!="string")return;let e=y[r];return e||(e=forwardRef(A.bind(null,r)),y[r]=e),e}});export{D as a,U as b,$ as c,h as d,j as e,q as f,W as g,_ as h};
@@ -1,10 +0,0 @@
1
- import {c as c$1,a as a$4,d,b as b$1,e}from'./chunk-X5Z54UUE.mjs';import {c as c$3,b as b$5}from'./chunk-UEDBY5JI.mjs';import {b as b$4}from'./chunk-NUYBQ7KP.mjs';import {a as a$8}from'./chunk-SAZLJ66W.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {b as b$2}from'./chunk-WL27JGVG.mjs';import {b as b$3}from'./chunk-N2XGJKZG.mjs';import {a as a$6}from'./chunk-XWLESSHN.mjs';import {a as a$2}from'./chunk-YS3Y5KGV.mjs';import {a}from'./chunk-K6X2BHPP.mjs';import {d as d$1}from'./chunk-BGMVPFYK.mjs';import {b as b$6}from'./chunk-YB3KW7JC.mjs';import {f as f$1}from'./chunk-Y4DRSGEJ.mjs';import {a as a$1}from'./chunk-3FYY26ED.mjs';import {p}from'./chunk-MRJFGHFW.mjs';import {c,b}from'./chunk-TZ4MVY4E.mjs';import {a as a$7}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {XIcon as XIcon$1}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1,XIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/16';import f,{useState,useRef,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var I=new WeakMap;function ve(i,e,a){let{direction:o}=b$3(),r=i.keyboardDelegate||new b$4({collection:e.collection,ref:a,orientation:"horizontal",direction:o,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:p,fieldProps:t,descriptionProps:s,errorMessageProps:l}=a$8({...i,labelElementType:"span",ref:a}),{gridProps:c$1}=b$5({...i,...t,keyboardDelegate:r,shouldFocusWrap:true,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,a),[u,g]=useState(false),{focusWithinProps:m}=b$6({onFocusWithinChange:g}),b=a$7(i),n=useRef(e.collection.size);return useEffect(()=>{a.current&&n.current>0&&e.collection.size===0&&u&&a.current.focus(),n.current=e.collection.size;},[e.collection.size,u,a]),I.set(e,{onRemove:i.onRemove}),{gridProps:c(c$1,b,{role:e.collection.size?"grid":"group","aria-atomic":false,"aria-relevant":"additions","aria-live":u?"polite":"off",...m,...t}),labelProps:p,descriptionProps:s,errorMessageProps:l}}var ee={"ar-AE":{removeButtonLabel:"\u0625\u0632\u0627\u0644\u0629",removeDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D DELETE \u0644\u0625\u0632\u0627\u0644\u0629 \u0639\u0644\u0627\u0645\u0629."},"bg-BG":{removeButtonLabel:"\u041F\u0440\u0435\u043C\u0430\u0445\u0432\u0430\u043D\u0435",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Delete, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043C\u0430\u0440\u043A\u0435\u0440\u0430."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xEDm kl\xE1vesy Delete odeberete zna\u010Dku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xE5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf \u201EL\xF6schen\u201C dr\xFCcken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7",removeDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03C1\u03B3\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B9\u03BA\u03AD\u03C4\u03B1."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l\u2019\xE9tiquette."},"he-IL":{removeButtonLabel:"\u05D4\u05E1\u05E8",removeDescription:"\u05DC\u05D7\u05E5 \u05E2\u05DC \u05DE\u05D7\u05E7 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E1\u05D9\u05E8 \u05EA\u05D2."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xE1vol\xEDt\xE1s",removeDescription:"Nyomja meg a Delete billenty\u0171t a c\xEDmke elt\xE1vol\xEDt\xE1s\xE1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"\u524A\u9664",removeDescription:"\u30BF\u30B0\u3092\u524A\u9664\u3059\u308B\u306B\u306F\u3001Delete \u30AD\u30FC\u3092\u62BC\u3057\u307E\u3059\u3002"},"ko-KR":{removeButtonLabel:"\uC81C\uAC70",removeDescription:"\uD0DC\uADF8\uB97C \uC81C\uAC70\uD558\uB824\uBA74 Delete \uD0A4\uB97C \uB204\uB974\uC2ED\uC2DC\uC624."},"lt-LT":{removeButtonLabel:"Pa\u0161alinti",removeDescription:"Nor\u0117dami pa\u0161alinti \u017Eym\u0105, paspauskite \u201EDelete\u201C klavi\u0161\u0105."},"lv-LV":{removeButtonLabel:"No\u0146emt",removeDescription:"Nospiediet Delete [Dz\u0113st], lai no\u0146emtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xE5 Slett for \xE5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usu\u0144",removeDescription:"Naci\u015Bnij Usu\u0144, aby usun\u0105\u0107 znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xCEndep\u0103rta\u0163i",removeDescription:"Ap\u0103sa\u021Bi pe Delete (\u0218tergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",removeDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 DELETE, \u0447\u0442\u043E\u0431\u044B \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u0433."},"sk-SK":{removeButtonLabel:"Odstr\xE1ni\u0165",removeDescription:"Ak chcete odstr\xE1ni\u0165 zna\u010Dku, stla\u010Dte kl\xE1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obri\u0161i da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xE5 Radera f\xF6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kald\u0131r",removeDescription:"Etiketi kald\u0131rmak i\xE7in Sil tu\u015Funa bas\u0131n."},"uk-UA":{removeButtonLabel:"\u0412\u0438\u043B\u0443\u0447\u0438\u0442\u0438",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Delete, \u0449\u043E\u0431 \u0432\u0438\u043B\u0443\u0447\u0438\u0442\u0438 \u0442\u0435\u0433."},"zh-CN":{removeButtonLabel:"\u5220\u9664",removeDescription:"\u6309\u4E0B\u201C\u5220\u9664\u201D\u4EE5\u5220\u9664\u6807\u8BB0\u3002"},"zh-TW":{removeButtonLabel:"\u79FB\u9664",removeDescription:"\u6309 Delete \u9375\u4EE5\u79FB\u9664\u6A19\u8A18\u3002"}};function A(i,e,a){let{item:o}=i,r=b$2(ee,"@react-aria/tag"),p$1=c$2(),{onRemove:t}=I.get(e)||{},{rowProps:s,gridCellProps:l,...c$1}=c$3({node:o},e,a),{descriptionProps:u,...g}=c$1,m=e.disabledKeys.has(o.key)||o.props.isDisabled,b=R=>{if(R.key==="Delete"||R.key==="Backspace"){if(m)return;R.preventDefault(),e.selectionManager.isSelected(o.key)?t?.(new Set(e.selectionManager.selectedKeys)):t?.(new Set([o.key]));}},n=f$1();n==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(n="pointer");let T=t&&(n==="keyboard"||n==="virtual")?r.format("removeDescription"):"",P=a$6(T,a),D=o.key===e.selectionManager.focusedKey,L=e.selectionManager.focusedKey!=null,y=-1;!m&&(D||!L)&&(y=0);let k=a$7(o.props),B=p(o.props),{focusableProps:h}=d$1({...o.props,isDisabled:m},a);return {removeButtonProps:{"aria-label":r.format("removeButtonLabel"),"aria-labelledby":`${p$1} ${s.id}`,isDisabled:m,id:p$1,onPress:()=>t?t(new Set([o.key])):null},rowProps:c(h,s,k,B,{tabIndex:y,onKeyDown:t?b:void 0,"aria-describedby":P["aria-describedby"]}),gridCellProps:c(l,{"aria-errormessage":i["aria-errormessage"],"aria-label":i["aria-label"]}),...g,allowsRemoving:!!t}}var te=f.createContext(null),re=f.createContext(null);var ae=f.forwardRef((i,e)=>{let a=f.useContext(te),o=f.useContext(re);return a&&o?jsx(se,{...i,ref:e,groupCtx:a,itemCtx:o}):jsx(ie,{...i,ref:e})});ae.displayName="Tag";var ie=f.forwardRef(({children:i,variant:e="neutral",size:a$2="md",icon:o,isDisabled:r=false,isSelected:p=false,onRemove:t,className:s,style:l,"data-block-id":c$1,"data-block-class":u},g)=>{let{focusProps:m,isFocusVisible:b}=a({within:true}),{hoverProps:n,isHovered:T}=a$1({isDisabled:r}),{hoverProps:P,isHovered:D}=a$1({isDisabled:r}),L=!!t;return jsx(w,{ref:g,outerProps:c(m,P),variant:e,size:a$2,Icon:o,isDisabled:r,isSelected:p,isFocusVisible:b,isTagHovered:D,allowsRemoving:L,allowsSelection:false,removeButtonProps:n,defaultRemoveProps:{"aria-label":"Remove",disabled:r,onClick:t},isRemoveHovered:T,className:s,style:l,"data-block-id":c$1,"data-block-class":u,children:i})});ie.displayName="TagStandalone";var se=f.forwardRef(({groupCtx:i,itemCtx:e,variant:a$3,...o},r)=>{let{state:p,variant:t,size:s}=i,{item:l}=e,c$1=f.useRef(null),{rowProps:u,gridCellProps:g,removeButtonProps:m,allowsRemoving:b$1,isDisabled:n,isSelected:T,allowsSelection:P}=A({item:l},p,c$1),D=f.useRef(null),{buttonProps:L}=a$2({...m,excludeFromTabOrder:true},D),{focusProps:y,isFocusVisible:k}=a({within:true}),{hoverProps:B,isHovered:h}=a$1({isDisabled:n}),{hoverProps:R,isHovered:ne}=a$1({isDisabled:n}),le=l.value?.icon,me=l.value?.data?.variant??a$3??t,pe=o.size??s??"md";return jsx(w,{ref:b(c$1,r),outerProps:c(u,y,R),gridCellProps:g,variant:me,size:pe,Icon:le,isDisabled:n,isSelected:T,isFocusVisible:k,isTagHovered:ne,allowsRemoving:b$1,allowsSelection:P,removeButtonProps:c(L,B),isRemoveHovered:h,children:l.rendered})});se.displayName="TagInGroup";var w=f.forwardRef(({children:i,outerProps:e$1,gridCellProps:a,variant:o="neutral",size:r,Icon:p,isDisabled:t,isSelected:s,isFocusVisible:l,isTagHovered:c$2,allowsRemoving:u,allowsSelection:g,removeButtonProps:m,defaultRemoveProps:b,isRemoveHovered:n,className:T,style:P,"data-block-id":D,"data-block-class":L},y)=>{let k=r==="md"?XIcon:XIcon$1,B=r==="md"?CheckmarkIcon:CheckmarkIcon$1;return jsx("div",{...e$1,ref:y,"aria-disabled":t||void 0,className:a$3(b$1({isFocusVisible:l,variant:o,isDisabled:t,allowsRemoving:u,isSelected:s,allowsSelection:g,isHovered:c$2,size:r}),e({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag",T),style:P,"data-block-id":D,"data-block-class":L,children:jsxs("div",{...a,className:c$1,children:[s?jsx(B,{size:r==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag-Icon")}):null,!s&&p?jsx(p,{size:r==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag-Icon")}):null,jsx(a$5,{paddingY:r==="md"?"sm":"none",typography:r==="sm"?"label.sm.medium":"label.md.medium",children:i}),u?jsx("button",{type:"button",...c(m,b??{}),className:d({variant:o,isHovered:n}),children:jsx(k,{size:r==="md"?12:8})}):null]})})});w.displayName="TagView";export{ve as a,te as b,re as c,ae as d};
@@ -1,10 +0,0 @@
1
- import {a}from'./chunk-MHUFXHRU.mjs';import {a as a$3}from'./chunk-MONDDKB4.mjs';import {a as a$2}from'./chunk-NADBGP35.mjs';import {b,c}from'./chunk-GX2IOGYR.mjs';import {b as b$1}from'./chunk-4ZJMZB5B.mjs';import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {PauseIcon,PlayIcon}from'@baseline-ui/icons/24';import _ from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var g="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69o _1yep5z69p _1yep5z69q",z="rta2n91 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z610h _1yep5z6w1 _1yep5z6w2 _1yep5z6w3 _1yep5z618m _1yep5z611i",f="rta2n90";var P=_.forwardRef(({className:h,style:k,size:v="lg",sources:j,playLabel:T,pauseLabel:I,audioTimelineLabel:x,playingLabel:A,pausedLabel:C,"data-block-id":S,"data-block-class":B,...M},w)=>{let t=_.useRef(null),{isPlaying:r,progress:U,duration:H,togglePlay:N,seek:R,formattedDuration:V,formattedCurrentTime:D,setProgress:E,setIsSliderDragging:s}=a(t,{playingLabel:A,pausedLabel:C}),{formatMessage:o}=b(),q=a$1({"data-block-id":S,"data-block-class":B,"data-state":r?"playing":"paused","data-loaded":H>0});return jsxs("div",{...q,...M,className:a$4(g,"BaselineUI-AudioPlayer",h),role:"group",style:k,ref:w,children:[jsx(b$1,{children:jsx("audio",{ref:t,children:j.map(({url:a,type:L})=>jsx("source",{src:a,type:L},a))})}),jsx(a$2,{icon:r?PauseIcon:PlayIcon,variant:"toolbar",isSelected:r,size:v,"aria-label":r?I??o(i.pause):T??o(i.play),style:{borderRadius:"50%"},onPress:N}),jsxs("div",{className:z,children:[jsx("span",{"aria-hidden":true,children:D}),jsx(a$3,{"aria-label":x??o(i.audioTimeline),value:U,minValue:0,maxValue:100,className:f,onChange:a=>{E(a),s(true);},onChangeEnd:a=>{R(a),s(false);}}),jsx("span",{"aria-hidden":true,children:V})]})]})});P.displayName="AudioPlayer";var i=c({play:{id:"bui.audioPlayer.play",defaultMessage:"Play"},pause:{id:"bui.audioPlayer.pause",defaultMessage:"Pause"},audioTimeline:{id:"bui.audioPlayer.audioTimeline",defaultMessage:"Audio timeline"}});export{P as a};
@@ -1,10 +0,0 @@
1
- import {b as b$1}from'./chunk-Q5UMLFN3.mjs';import {a as a$9}from'./chunk-2V323KAD.mjs';import {a as a$4,b as b$2}from'./chunk-KUEDQO7P.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$6}from'./chunk-YS3Y5KGV.mjs';import {a as a$7}from'./chunk-K6X2BHPP.mjs';import {a as a$1}from'./chunk-BGMVPFYK.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {d}from'./chunk-AQYBKDT2.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {c as c$1}from'./chunk-JDLUGVXG.mjs';import {f,a as a$2}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import b,{useContext,useEffect,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {AnimatePresence,motion}from'motion/react';import {ChevronRightIcon}from'@baseline-ui/icons/8';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var J="_1yep5z6m3",U=a({defaultClassName:"_1kvz17db _1yep5z6lq _1yep5z6ls",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),X=a({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6lq _1yep5z6lr",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),G="_1kvz17de",Q="_1yep5z6ez _1yep5z6dy",W=a({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6lq _1yep5z6lt",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ga",false:"_1yep5z6gb"},isDisabled:{true:"z9nup82"}},defaultVariants:{},compoundVariants:[]}),Y="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Z=a({defaultClassName:"_1kvz17d7 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{isDisabled:{true:"_1yep5z6f2",false:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]});var H=b.forwardRef(({children:f$1,className:p,style:z},e)=>{let{headers:r}=useContext(u),{disabledKeys:a}=useContext(u),{keyboardProps:y}=a$1({onKeyDown:t=>{let d=f(a$2(t.target)),s=[...r?.keys()||[]].findIndex(n=>{let o=r?.get(n)?.current;return o?o===d:false}),m=r?.get(s||0),i=r?.size||0,c=n=>{let o=r.get(n-1<0?i-1:n-1);a?.has(o?.current?.dataset.key||"")?c(n-1):o?.current?.focus();},l=n=>{let o=r.get((n+1)%i);a?.has(o?.current?.dataset.key||"")?l(n+1):o?.current?.focus();};if(m)switch(t.key){case "Home":{t.preventDefault(),l(-1);break}case "End":{t.preventDefault(),c(i);break}case "ArrowDown":{t.preventDefault(),l(s);break}case "ArrowUp":{t.preventDefault(),c(s);break}default:t.continuePropagation();}}});return jsx("div",{...b$1(y),style:z,className:a$3(J,p),ref:e,children:b.Children.map(f$1,(t,d)=>b.cloneElement(t,{index:d}))})});H.displayName="AccordionBase";var u=b.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),oe=b.forwardRef(({children:f,disabledKeys:p,defaultExpandedKeys:z=new Set,expandedKeys:e,expansionMode:r="multiple",onChange:a,className:y,style:t},d)=>{let[s,m]=b.useState(z),i=b.useRef(new Map).current,[c,l]=b.useState(r);useEffect(()=>{l(r);},[r]),useEffect(()=>{a?.(s);},[s,a]);let n=useMemo(()=>({expandedKeys:e||s,setExpandedKeys:e?()=>{}:m,disabledKeys:p,headers:i,expansionMode:c}),[e,s,p,i,c]);return jsx(u.Provider,{value:n,children:jsx(a$4,{children:jsx(H,{className:y,style:t,ref:d,children:f})})})});oe.displayName="Accordion";var K=b.forwardRef(({title:f,actions:p,controlId:z,value:e,id:r,index:a,subLabel:y,showActionsOnTriggerOnly:t},d$1)=>{let s=b.useRef(null),{expandedKeys:m,setExpandedKeys:i,expansionMode:c$1,disabledKeys:l,headers:n}=useContext(u),o=l?.has(e),S=b$2();a$5(S);let{focusNext:ne,focusPrevious:ae}=S,{keyboardProps:ie}=a$1({onKeyDown:_=>{_.key==="ArrowRight"?ne({wrap:true}):_.key==="ArrowLeft"?ae({wrap:true}):_.continuePropagation();},isDisabled:o});useEffect(()=>{a$5(typeof a=="number","AccordionItem must have an index"),n?.set(a,s);},[a,n]);let M=()=>{i(_=>{let v=new Set(_);return v.has(e)?v.delete(e):(c$1==="single"&&v.clear(),v.add(e)),v});},{buttonProps:ce}=a$6({"aria-expanded":m.has(e),"aria-controls":z,onPress:M,isDisabled:o},s),{pressProps:pe}=d({onPress:M,isDisabled:o}),{focusProps:de,isFocusVisible:me}=a$7(),{hoverProps:le,isHovered:I}=a$8({isDisabled:o}),{focusProps:ye,isFocusVisible:ue}=a$7({within:true}),fe=m.has(e);return jsxs("h3",{...c(ie,pe,le,ye),className:W({isFocusVisible:me,isHovered:I,isDisabled:o}),ref:d$1,children:[jsxs("div",{className:Z({isDisabled:!!o}),children:[jsx(ChevronRightIcon,{className:X({isExpanded:fe}),size:8}),jsx("button",{...c(ce,de),id:r,"data-key":e,className:Y,ref:s,children:f})]}),p?.length?jsx("div",{"data-testid":"action-buttons",className:U({showActionsOnTriggerOnly:t,isTriggered:ue||I}),children:p.map((_,v)=>jsx(a$9,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:o,..._},v))}):null,y?jsx("div",{className:Q,children:y}):null]})});K.displayName="AccordionHeader";var se=b.forwardRef(({title:f,actions:p,children:z,value:e,index:r,subLabel:a,style:y,className:t,showActionsOnTriggerOnly:d},s)=>{let m=c$1(),i=c$1(),{expandedKeys:c}=useContext(u),l=c.has(e);return jsxs(Fragment,{children:[jsx(a$4,{children:jsx(K,{value:e,actions:p,id:i,title:f,controlId:m,ref:s,index:r,subLabel:a,showActionsOnTriggerOnly:d})}),jsx(AnimatePresence,{initial:false,children:l?jsx(motion.section,{role:"region","aria-labelledby":i,id:m,className:G,variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:jsx("div",{style:y,className:t,children:z})}):null})]})});se.displayName="AccordionItem";export{oe as a,se as b};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-YB3KW7JC.mjs';import {i as i$1}from'./chunk-Y4DRSGEJ.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {b as b$2,u}from'./chunk-MRJFGHFW.mjs';import {b as b$3,c}from'./chunk-TZ4MVY4E.mjs';import {b as b$1}from'./chunk-AUOQSTS5.mjs';import i,{forwardRef,useEffect,useRef,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- function b(o){if(!o)return;let t=true;return r=>{let n={...r,preventDefault(){r.preventDefault();},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=true;},continuePropagation(){t=false,typeof r.continuePropagation=="function"&&r.continuePropagation();},isPropagationStopped(){return t}};o(n),t&&r.stopPropagation();}}function v(o){return {keyboardProps:o.isDisabled?{}:{onKeyDown:b(o.onKeyDown),onKeyUp:b(o.onKeyUp)}}}var E=i.createContext(null);function O(o){let t=useContext(E)||{};u(t,o);let{ref:r,...n}=t;return n}var Y=i.forwardRef(function(t,r){let{children:n,...l}=t,s=a(r),a$1={...l,ref:s};return jsx(E.Provider,{value:a$1,children:n})});function g(o,t){let{focusProps:r}=a$1(o),{keyboardProps:n}=v(o),l=c(r,n),s=O(t),a=o.isDisabled?{}:s,e=useRef(o.autoFocus);useEffect(()=>{e.current&&t.current&&i$1(t.current),e.current=false;},[t]);let f=o.excludeFromTabOrder?-1:0;return o.isDisabled&&(f=void 0),{focusableProps:c({...l,tabIndex:f},a)}}var $=forwardRef(({children:o,...t},r)=>{r=a(r);let{focusableProps:n}=g(t,r),l=i.Children.only(o);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let a=r.current;if(!a||!(a instanceof b$1(a).Element)){console.error("<Focusable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!b$2(a)){console.warn("<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(a.localName!=="button"&&a.localName!=="input"&&a.localName!=="select"&&a.localName!=="textarea"&&a.localName!=="a"&&a.localName!=="area"&&a.localName!=="summary"&&a.localName!=="img"&&a.localName!=="svg"){let e=a.getAttribute("role");e?e!=="application"&&e!=="button"&&e!=="checkbox"&&e!=="combobox"&&e!=="gridcell"&&e!=="link"&&e!=="menuitem"&&e!=="menuitemcheckbox"&&e!=="menuitemradio"&&e!=="option"&&e!=="radio"&&e!=="searchbox"&&e!=="separator"&&e!=="slider"&&e!=="spinbutton"&&e!=="switch"&&e!=="tab"&&e!=="tabpanel"&&e!=="textbox"&&e!=="treeitem"&&e!=="img"&&e!=="meter"&&e!=="progressbar"&&console.warn(`<Focusable> child must have an interactive ARIA role. Got "${e}".`):console.warn("<Focusable> child must have an interactive ARIA role.");}},[r,t.isDisabled]);let s=parseInt(i.version,10)<19?l.ref:l.props.ref;return i.cloneElement(l,{...c(n,l.props),ref:b$3(s,r)})});export{v as a,E as b,Y as c,g as d,$ as e};
@@ -1,10 +0,0 @@
1
- import {a}from'./chunk-CGFLGZL4.mjs';import {a as a$2}from'./chunk-7PRJIPFA.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$3}from'./chunk-2VY4FAOY.mjs';import {a as a$7}from'./chunk-545KDVGI.mjs';import {a as a$6,d as d$1}from'./chunk-BGMVPFYK.mjs';import {d}from'./chunk-Y4DRSGEJ.mjs';import {a as a$5}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {a as a$4,g,b as b$1}from'./chunk-AUOQSTS5.mjs';import {useRef,useCallback,useEffect}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var x=new WeakMap;function I(i,e){let r=x.get(i);if(!r)throw new Error("Unknown slider state");return `${r.id}-${e}`}function we(i,e,r){let{labelProps:T,fieldProps:R}=a(i),f=i.orientation==="vertical";x.set(e,{id:T.id??R.id,"aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]});let{direction:A}=b(),{addGlobalListener:a$5,removeGlobalListener:L}=a$1(),o=useRef(null),U=A==="rtl",s=useRef(null),{moveProps:D}=a$2({onMoveStart(){s.current=null;},onMove({deltaX:t,deltaY:b}){if(!r.current)return;let{height:g,width:E}=r.current.getBoundingClientRect(),u=f?g:E;s.current==null&&o.current!=null&&(s.current=e.getThumbPercent(o.current)*u);let c=f?b:t;if((f||U)&&(c=-c),s.current+=c,o.current!=null&&r.current){let S=a$3(s.current/u,0,1);e.setThumbPercent(o.current,S);}},onMoveEnd(){o.current!=null&&(e.setThumbDragging(o.current,false),o.current=null);}}),O=useRef(void 0),v=(t,b,g,E)=>{if(r.current&&!i.isDisabled&&e.values.every((u,c)=>!e.isThumbDragging(c))){let u=b$1(t.currentTarget),{height:c,width:S,top:M,left:$}=r.current.getBoundingClientRect(),z=f?c:S,p=((f?E:g)-(f?M:$))/z;(A==="rtl"||f)&&(p=1-p);let P=e.getPercentValue(p),d,n=e.values.findIndex(l=>P-l<0);if(n===0)d=n;else if(n===-1)d=e.values.length-1;else {let l=e.values[n-1],h=e.values[n];Math.abs(l-P)<Math.abs(h-P)?d=n-1:d=n;}d>=0&&e.isThumbEditable(d)?(t.preventDefault(),o.current=d,e.setFocusedThumb(d),O.current=b,e.setThumbDragging(o.current,true),e.setThumbValue(d,P),a$5(u,"mouseup",m,false),a$5(u,"touchend",m,false),a$5(u,"pointerup",m,false)):o.current=null;}},m=t=>{let b=t.pointerId??t.changedTouches?.[0].identifier,g=b$1(t.currentTarget);b===O.current&&(o.current!=null&&(e.setThumbDragging(o.current,false),o.current=null),L(g,"mouseup",m,false),L(g,"touchend",m,false),L(g,"pointerup",m,false));};return "htmlFor"in T&&T.htmlFor&&(delete T.htmlFor,T.onClick=t=>{a$4(t.currentTarget).getElementById(I(e,0))?.focus(),d("keyboard");}),{labelProps:T,groupProps:{role:"group",...R},trackProps:c({onMouseDown(t){t.button!==0||t.altKey||t.ctrlKey||t.metaKey||v(t,void 0,t.clientX,t.clientY);},onPointerDown(t){t.pointerType==="mouse"&&(t.button!==0||t.altKey||t.ctrlKey||t.metaKey)||v(t,t.pointerId,t.clientX,t.clientY);},onTouchStart(t){v(t,t.changedTouches[0].identifier,t.changedTouches[0].clientX,t.changedTouches[0].clientY);},style:{position:"relative",touchAction:"none"}},D),outputProps:{htmlFor:e.values.map((t,b)=>I(e,b)).join(" "),"aria-live":"off"}}}function qe(i,e){let{index:r=0,isRequired:T,validationState:R,isInvalid:f,trackRef:A,inputRef:a$4,orientation:L=e.orientation,name:o,form:U}=i,s=i.isDisabled||e.isDisabled,D=L==="vertical",{direction:O}=b(),{addGlobalListener:v,removeGlobalListener:m}=a$1(),t=x.get(e),{labelProps:b$2,fieldProps:g$1}=a({...i,id:I(e,r),"aria-labelledby":`${t.id} ${i["aria-labelledby"]??""}`.trim()}),E=e.values[r],u=useCallback(()=>{a$4.current&&a$5(a$4.current);},[a$4]),c$1=e.focusedThumb===r;useEffect(()=>{c$1&&u();},[c$1,u]);let S=O==="rtl",M=useRef(null),{keyboardProps:$}=a$6({onKeyDown(n){let{getThumbMaxValue:l,getThumbMinValue:h,decrementThumb:F,incrementThumb:X,setThumbValue:V,setThumbDragging:H,pageSize:K}=e;if(!/^(PageUp|PageDown|Home|End)$/.test(n.key)){n.continuePropagation();return}switch(n.preventDefault(),H(r,true),n.key){case "PageUp":X(r,K);break;case "PageDown":F(r,K);break;case "Home":V(r,h(r));break;case "End":V(r,l(r));break}H(r,false);}}),{moveProps:z}=a$2({onMoveStart(){M.current=null,e.setThumbDragging(r,true);},onMove({deltaX:n,deltaY:l,pointerType:h,shiftKey:F}){let{getThumbPercent:X,setThumbPercent:V,decrementThumb:H,incrementThumb:K,step:N,pageSize:Q}=e;if(!A.current)return;let{width:ae,height:se}=A.current.getBoundingClientRect(),Z=D?se:ae;if(M.current==null&&(M.current=X(r)*Z),h==="keyboard")n>0&&S||n<0&&!S||l>0?H(r,F?Q:N):K(r,F?Q:N);else {let Y=D?l:n;(D||S)&&(Y=-Y),M.current+=Y,V(r,a$3(M.current/Z,0,1));}},onMoveEnd(){e.setThumbDragging(r,false);}});e.setThumbEditable(r,!s);let{focusableProps:J}=d$1(c(i,{onFocus:()=>e.setFocusedThumb(r),onBlur:()=>e.setFocusedThumb(void 0)}),a$4),q=useRef(void 0),k=n=>{u(),q.current=n,e.setThumbDragging(r,true);let l=b$1(a$4.current);v(l,"mouseup",p,false),v(l,"touchend",p,false),v(l,"pointerup",p,false);},p=n=>{if((n.pointerId??n.changedTouches?.[0].identifier)===q.current){u(),e.setThumbDragging(r,false);let h=b$1(a$4.current);m(h,"mouseup",p,false),m(h,"touchend",p,false),m(h,"pointerup",p,false);}},P=e.getThumbPercent(r);(D||O==="rtl")&&(P=1-P);let d=s?{}:c($,z,{onMouseDown:n=>{n.button!==0||n.altKey||n.ctrlKey||n.metaKey||k();},onPointerDown:n=>{n.button!==0||n.altKey||n.ctrlKey||n.metaKey||k(n.pointerId);},onTouchStart:n=>{k(n.changedTouches[0].identifier);}});return a$7(a$4,e.defaultValues[r],n=>{e.setThumbValue(r,n);}),{inputProps:c(J,g$1,{type:"range",tabIndex:s?void 0:0,min:e.getThumbMinValue(r),max:e.getThumbMaxValue(r),step:e.step,value:E,name:o,form:U,disabled:s,"aria-orientation":L,"aria-valuetext":e.getThumbValueLabel(r),"aria-required":T||void 0,"aria-invalid":f||R==="invalid"||void 0,"aria-errormessage":i["aria-errormessage"],"aria-describedby":[t["aria-describedby"],i["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[t["aria-details"],i["aria-details"]].filter(Boolean).join(" "),onChange:n=>{e.setThumbValue(r,parseFloat(g(n).value));}}),thumbProps:{...d,style:{position:"absolute",[D?"top":"left"]:`${P*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:b$2,isDragging:e.isThumbDragging(r),isDisabled:s,isFocused:c$1}}export{we as a,qe as b};
@@ -1,10 +0,0 @@
1
- import {a as a$3}from'./chunk-XWLESSHN.mjs';import {d}from'./chunk-AQYBKDT2.mjs';import {a as a$2}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {a as a$1,b}from'./chunk-AUOQSTS5.mjs';import {useRef}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var h=500;function G(f){let{isDisabled:r,onLongPressStart:n,onLongPressEnd:s,onLongPress:o,threshold:d$1=h,accessibilityDescription:L}=f,t=useRef(void 0),{addGlobalListener:i,removeGlobalListener:b$1}=a(),{pressProps:E}=d({isDisabled:r,onPressStart(e){if(e.continuePropagation(),(e.pointerType==="mouse"||e.pointerType==="touch")&&(n&&n({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true})),a$1(e.target).activeElement!==e.target&&a$2(e.target),o&&o({...e,type:"longpress"}),t.current=void 0;},d$1),e.pointerType==="touch")){let p=T=>{T.preventDefault();},y=b(e.target);i(e.target,"contextmenu",p,{once:true}),i(y,"pointerup",()=>{setTimeout(()=>{b$1(e.target,"contextmenu",p);},30);},{once:true});}},onPressEnd(e){t.current&&clearTimeout(t.current),s&&(e.pointerType==="mouse"||e.pointerType==="touch")&&s({...e,type:"longpressend"});}}),v=a$3(o&&!r?L:void 0);return {longPressProps:c(E,v)}}export{G as a};
@@ -1,10 +0,0 @@
1
- import {a as a$9}from'./chunk-IXK6S6IH.mjs';import {a as a$3}from'./chunk-GXOXYPQQ.mjs';import {a as a$b,b as b$3}from'./chunk-ZNN43VZV.mjs';import {b as b$5,c as c$4}from'./chunk-UEDBY5JI.mjs';import {a as a$2}from'./chunk-AMYRLAIC.mjs';import {i,l,p,r,s,w,u,v,j,n,k,h as h$1,x,d as d$1,g,a as a$f}from'./chunk-SMAYNDQQ.mjs';import {b as b$1}from'./chunk-NUYBQ7KP.mjs';import {a as a$k}from'./chunk-X6IJEPSH.mjs';import {a as a$i}from'./chunk-NADBGP35.mjs';import {a as a$l}from'./chunk-E5GYCA3P.mjs';import {c as c$3,b as b$7}from'./chunk-GX2IOGYR.mjs';import {a as a$h}from'./chunk-O7XK2WIX.mjs';import {a as a$j}from'./chunk-2V323KAD.mjs';import {a as a$6}from'./chunk-KUEDQO7P.mjs';import {a}from'./chunk-USMC34OO.mjs';import {b as b$6}from'./chunk-WL27JGVG.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$a}from'./chunk-4ZJMZB5B.mjs';import {d}from'./chunk-RCBUNCHV.mjs';import {e,c,h,b as b$2,a as a$c}from'./chunk-B7PSE5KC.mjs';import {h as h$2,i as i$1}from'./chunk-SHJ2TJYG.mjs';import {a as a$g}from'./chunk-D3IZ4HBL.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {a as a$4}from'./chunk-K6X2BHPP.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {a as a$7}from'./chunk-RT4LMB6X.mjs';import {c as c$1,b as b$4}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$d}from'./chunk-JQQGRJ5J.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Kt,{createContext,forwardRef,useRef,useEffect,useContext,useState,useMemo,useCallback,isValidElement}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightIcon}from'@baseline-ui/icons/8';import {themeVars,sprinkles}from'@baseline-ui/tokens';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- function ve(r,o,e){let{gridProps:t}=b$5(r,o,e);return t.role="treegrid",{gridProps:t}}var gt={"ar-AE":{collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"},"bg-BG":{collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"},"cs-CZ":{collapse:"Sbalit",expand:"Rozt\xE1hnout"},"da-DK":{collapse:"Skjul",expand:"Udvid"},"de-DE":{collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"},"en-US":{expand:"Expand",collapse:"Collapse"},"es-ES":{collapse:"Contraer",expand:"Ampliar"},"et-EE":{collapse:"Ahenda",expand:"Laienda"},"fi-FI":{collapse:"Pienenn\xE4",expand:"Laajenna"},"fr-FR":{collapse:"R\xE9duire",expand:"D\xE9velopper"},"he-IL":{collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"},"hr-HR":{collapse:"Sa\u017Emi",expand:"Pro\u0161iri"},"hu-HU":{collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"},"it-IT":{collapse:"Comprimi",expand:"Espandi"},"ja-JP":{collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"},"ko-KR":{collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},"lt-LT":{collapse:"Sutraukti",expand:"I\u0161skleisti"},"lv-LV":{collapse:"Sak\u013Caut",expand:"Izv\u0113rst"},"nb-NO":{collapse:"Skjul",expand:"Utvid"},"nl-NL":{collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{collapse:"Zwi\u0144",expand:"Rozwi\u0144"},"pt-BR":{collapse:"Recolher",expand:"Expandir"},"pt-PT":{collapse:"Colapsar",expand:"Expandir"},"ro-RO":{collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"},"ru-RU":{collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},"sk-SK":{collapse:"Zbali\u0165",expand:"Rozbali\u0165"},"sl-SI":{collapse:"Strni",expand:"Raz\u0161iri"},"sr-SP":{collapse:" Skupi",expand:"Pro\u0161iri"},"sv-SE":{collapse:"D\xF6lj",expand:"Expandera"},"tr-TR":{collapse:"Daralt",expand:"Geni\u015Flet"},"uk-UA":{collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"},"zh-CN":{collapse:"\u6298\u53E0",expand:"\u6269\u5C55"},"zh-TW":{collapse:"\u6536\u5408",expand:"\u5C55\u958B"}};function se(r,o,e){let{node:t}=r,n=c$4(r,o,e),a=n.rowProps["aria-expanded"]===true,s=b$6(gt,"@react-aria/tree"),c=a$g({"aria-label":a?s.format("collapse"):s.format("expand"),"aria-labelledby":n.rowProps.id}),d={onPress:()=>{n.isDisabled||(o.toggleKey(t.key),o.selectionManager.setFocused(true),o.selectionManager.setFocusedKey(t.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...c};return {...n,expandButtonProps:d}}var be=class r extends g{expandedKeys=new Set;withExpandedKeys(o,e){let t=this.clone();return t.expandedKeys=e,r.cloneAncestorSections(e,o,t),r.cloneAncestorSections(o,e,t),t.frozen=this.frozen,t}static cloneAncestorSections(o,e,t){for(let n of o)if(!e.has(n)){let a=n;for(;a!=null;){let s=t.getItem(a);if(s?.type==="section"){t.keyMap.set(a,s.clone());break}else a=s?.parentKey??null;}}}*[Symbol.iterator](){let o=this.getFirstKey(),e=o!=null?this.getItem(o):null;for(;e;)if(yield e,e.type==="section")e=e.nextKey!=null?this.getItem(e.nextKey):null;else {let t=this.getKeyAfter(e.key);e=t!=null?this.getItem(t):null;}}getLastKey(){let o=this.lastKey;if(o==null)return null;let e=this.getItem(o);for(;e?.lastChildKey!=null&&(e.type!=="item"||this.expandedKeys.has(e.key));)e=this.getItem(e.lastChildKey);return e?.key}getKeyAfter(o){let e=this.getItem(o);if(!e)return null;if((this.expandedKeys.has(e.key)||e.type!=="item")&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.getItem(e.parentKey);else return null}return null}getKeyBefore(o){let e=this.getItem(o);if(!e)return null;if(e.prevKey!=null){for(e=this.getItem(e.prevKey);e&&(e.type!=="item"||this.expandedKeys.has(e.key))&&e.lastChildKey!=null;)e=this.getItem(e.lastChildKey);return e?.key??null}return e.parentKey}getChildren(o){let e=this;return {*[Symbol.iterator](){let t=e.getItem(o),n=t?.firstChildKey!=null?e.getItem(t.firstChildKey):null;if(t&&t.type==="section"&&n)for(;n&&n.key!==t.nextKey;){yield e.getItem(n.key);let a=e.getKeyAfter(n.key);n=a!=null?e.getItem(a):null;}else for(;n;)yield n,n=n.nextKey!=null?e.getItem(n.nextKey):null;}}}getTextValue(o){let e=this.getItem(o);return e?e.textValue:""}},bt=createContext(null),ue=createContext(null),Ie=forwardRef(function(o,e$1){return [o,e$1]=e(o,e$1,bt),jsx(i,{content:jsx(l,{...o}),createCollection:()=>new be,children:t=>jsx(Ht,{props:o,collection:t,treeRef:e$1})})}),xt={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ht({props:r$1,collection:o,treeRef:e}){let{dragAndDropHooks:t}=r$1,{direction:n}=b(),a$7=a({usage:"search",sensitivity:"base"}),s$1=!!t?.useDraggableCollectionState,c$2=!!t?.useDroppableCollectionState,d=useRef(s$1),C=useRef(c$2);useEffect(()=>{d.current!==s$1&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==c$2&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");},[s$1,c$2]);let{selectionMode:T="none",expandedKeys:g,defaultExpandedKeys:u$1,onExpandedChange:b$3,disabledBehavior:m="all"}=r$1,{CollectionRoot:I,isVirtualized:f,layoutDelegate:y,dropTargetDelegate:x}=useContext(p),[v$1,K]=a$1(g?new Set(g):void 0,u$1?new Set(u$1):new Set,b$3),[R,M]=useState(o),[w$1,P]=useState(v$1),[i,h$1]=useState(()=>o.withExpandedKeys(w$1,v$1));(!Ft(w$1,v$1)||o!==R)&&(h$1(o.withExpandedKeys(w$1,v$1)),M(o),P(v$1));let l=a$2({...r$1,selectionMode:T,expandedKeys:v$1,onExpandedChange:K,collection:i,children:void 0,disabledBehavior:m}),{gridProps:H}=ve({...r$1,isVirtualized:f,layoutDelegate:y},l,e),S,E,j,V=false,U=null,Z=useRef(null);if(s$1&&t){S=t.useDraggableCollectionState({collection:l.collection,selectionManager:l.selectionManager,preview:t.renderDragPreview?Z:void 0}),t.useDraggableCollection({},S,e);let ee=t.DragPreview;U=t.renderDragPreview?jsx(ee,{ref:Z,children:t.renderDragPreview}):null;}let[q]=useState(()=>new a$3);if(c$2&&t){E=t.useDroppableCollectionState({collection:l.collection,selectionManager:l.selectionManager});let ee=t.dropTargetDelegate||x||new t.ListDropTargetDelegate(l.collection,e,{direction:n});q.setup(ee,l,n);let me=new b$1({collection:l.collection,collator:a$7,ref:e,disabledKeys:l.selectionManager.disabledKeys,disabledBehavior:l.selectionManager.disabledBehavior,direction:n,layoutDelegate:y});j=t.useDroppableCollection({keyboardDelegate:me,dropTargetDelegate:q,onDropActivate:N=>{if(N.target.type==="item"){let D=N.target.key,W=l.collection.getItem(D),kt=v$1.has(D);W&&W.hasChildNodes&&(!kt||t?.isVirtualDragging?.())&&l.toggleKey(D);}},onKeyDown:N=>{let D=E?.target;if(D&&D.type==="item"&&D.dropPosition==="on"){let W=l.collection.getItem(D.key);(N.key===xt.expand[n]&&W?.hasChildNodes&&!l.expandedKeys.has(D.key)||N.key===xt.collapse[n]&&W?.hasChildNodes&&l.expandedKeys.has(D.key))&&l.toggleKey(D.key);}}},E,e),V=E.isDropTarget({type:"root"});}let Y=!!(s$1&&!S?.isDisabled),{focusProps:Q,isFocused:z,isFocusVisible:O}=a$4(),Me={isEmpty:l.collection.size===0,isFocused:z,isFocusVisible:O,isDropTarget:V,selectionMode:l.selectionManager.selectionMode,allowsDragging:!!Y,state:l},Lt=c({...r$1,children:void 0,defaultClassName:"react-aria-Tree",values:Me}),ke=null;if(l.collection.size===0&&r$1.renderEmptyState){let{isEmpty:ee,...me}=Me,N=r$1.renderEmptyState({...me});ke=jsx("div",{role:"row",style:{display:"contents"},...{"aria-level":1},children:jsx("div",{role:"gridcell",style:{display:"contents"},children:N})});}let Mt=a$5(r$1,{global:true});return jsxs(Fragment,{children:[jsx(a$6,{children:jsxs(h.div,{...c$1(Mt,Lt,H,Q,j?.collectionProps),ref:e,slot:r$1.slot||void 0,"data-empty":l.collection.size===0||void 0,"data-focused":z||void 0,"data-drop-target":V||void 0,"data-focus-visible":O||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode,"data-allows-dragging":!!Y||void 0,children:[jsxs(b$2,{values:[[ue,l],[r,{dragAndDropHooks:t,dragState:S,dropState:E}],[s,{render:Nt}]],children:[c$2&&jsx(zt,{}),jsx(w,{children:jsx(I,{collection:l.collection,persistedKeys:v(l.selectionManager,t,E),scrollRef:e,renderDropIndicator:u(t,E)})})]}),ke]})}),U]})}var Pe=class extends a$f{static type="content"},Ce=j(Pe,function(o){let e=useContext(Pt),t=c({children:o.children,values:e});return jsx(p.Provider,{value:n,children:t.children})}),Pt=createContext(null),he=class extends a$f{static type="item"},Re=k(he,(r$1,o,e)=>{let t=useContext(ue);o=a$7(o);let{dragAndDropHooks:n,dragState:a,dropState:s}=useContext(r),c$3=a&&!(a.isDisabled||a.selectionManager.isDisabled(e.key)),{rowProps:d$1,gridCellProps:C,expandButtonProps:T,descriptionProps:g,...u}=se({node:e,shouldSelectOnPressUp:!!a},t,o),b=d$1["aria-expanded"]===true,m=r$1.hasChildItems||[...t.collection.getChildren(e.key)].length>1,I=d$1["aria-level"]||1,{hoverProps:f,isHovered:y}=a$8({isDisabled:!u.allowsSelection&&!u.hasAction&&!c$3,onHoverStart:r$1.onHoverStart,onHoverChange:r$1.onHoverChange,onHoverEnd:r$1.onHoverEnd}),{isFocusVisible:x$1,focusProps:v}=a$4(),{isFocusVisible:K,focusProps:R}=a$4({within:true}),{checkboxProps:M}=a$9({key:e.key},t),w=null;a&&n&&(w=n.useDraggableItem({key:e.key,hasDragButton:true},a,o));let P=null,i=useRef(null),h$2=useRef(null),l=useRef(null),{visuallyHiddenProps:H}=a$a();s&&n&&(P=n.useDropIndicator({target:{type:"item",key:e.key,dropPosition:"on"},activateButtonRef:l},s,h$2));let S=a&&a.isDragging(e.key),E=P?.isDropTarget,j=t.selectionManager.selectionMode,V=t.selectionManager.selectionBehavior,U=Kt.useMemo(()=>({...u,isHovered:y,isFocusVisible:x$1,isExpanded:b,hasChildItems:m,level:I,selectionMode:j,selectionBehavior:V,isFocusVisibleWithin:K,state:t,id:e.key,allowsDragging:!!a,isDragging:S,isDropTarget:E}),[u,y,x$1,b,m,I,K,t,e.key,a,S,E,V,j]),Z=c({...r$1,id:void 0,children:e.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":I},values:U});useEffect(()=>{!e.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.");},[e.textValue]),useEffect(()=>{m&&!i.current&&process.env.NODE_ENV!=="production"&&console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.");},[]);let q=useRef(null);useEffect(()=>{a&&!q.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Tree must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let Y=h$1({items:t.collection.getChildren(e.key),children:O=>{switch(O.type){case "content":return O.render(O);case "loader":case "item":return jsx(Fragment,{});default:throw new Error("Unsupported element type in TreeRow: "+O.type)}}}),Q=c$2(),z=a$5(r$1,{global:true});return delete z.id,delete z.onClick,jsxs(Fragment,{children:[P&&!P.isHidden&&jsx("div",{role:"row","aria-level":d$1["aria-level"],"aria-expanded":d$1["aria-expanded"],"aria-label":P.dropIndicatorProps["aria-label"],children:jsxs("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"},children:[jsx("div",{role:"button",...H,...P.dropIndicatorProps,ref:h$2}),d$1["aria-expanded"]!=null?jsx("div",{role:"button",...H,id:Q,"aria-label":T["aria-label"],"aria-labelledby":`${Q} ${d$1.id}`,tabIndex:-1,ref:l}):null]})}),jsx(h.div,{...c$1(z,d$1,v,f,R,w?.dragProps),...Z,ref:o,"data-expanded":m&&b||void 0,"data-has-child-items":m||void 0,"data-level":I,"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":x$1||void 0,"data-pressed":u.isPressed||void 0,"data-selection-mode":t.selectionManager.selectionMode==="none"?void 0:t.selectionManager.selectionMode,"data-allows-dragging":!!a||void 0,"data-dragging":S||void 0,"data-drop-target":E||void 0,children:jsx("div",{...C,style:{display:"contents"},children:jsx(b$2,{values:[[a$b,{slots:{selection:M}}],[b$3,{slots:{selection:M}}],[d,{slots:{[a$c]:{},chevron:{...T,ref:i},drag:{...w?.dragButtonProps,ref:q,style:{pointerEvents:"none"}}}}],[Pt,{...U}],[x,{isSelected:u.isSelected}]],children:Y})})})]})});j(d$1,function(o,e,t){let{isVirtualized:n}=useContext(p),a=useContext(ue),{isLoading:s,onLoadMore:c$2,scrollOffset:d,...C}=o,T=useRef(null),g=useMemo(()=>({onLoadMore:c$2,collection:a?.collection,sentinelRef:T,scrollOffset:d}),[c$2,d,a?.collection]);h$2(g,T),e=a$7(e);let{rowProps:u,gridCellProps:b}=se({node:t},a,e),m=u["aria-level"]||1,I={role:"row","aria-level":u["aria-level"]},f=c({...C,id:void 0,children:t.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:m}}),y={};return n&&(y={display:"contents"}),jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:i$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:T,style:{position:"absolute",height:1,width:1}})}),s&&f.children&&jsx(h.div,{ref:e,...c$1(a$5(o),I),...f,"data-level":m,children:jsx("div",{...b,style:y,children:f.children})})]})});function Nt(r$1,o){o=a$7(o);let{dragAndDropHooks:e,dropState:t}=useContext(r),n=useRef(null),{dropIndicatorProps:a,isHidden:s,isDropTarget:c}=e.useDropIndicator(r$1,t,n);if(s)return null;let d=t&&r$1.target.type==="item"?(t.collection.getItem(r$1.target.key)?.level||0)+1:1;return jsx(Vt,{...r$1,dropIndicatorProps:a,isDropTarget:c,ref:o,buttonRef:n,level:d})}function Bt(r,o){let{dropIndicatorProps:e,isDropTarget:t,buttonRef:n,level:a,...s}=r,{visuallyHiddenProps:c$1}=a$a(),d=c({...s,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":a},values:{isDropTarget:t}});return jsx(h.div,{...d,role:"row","aria-level":a,ref:o,"data-drop-target":t||void 0,children:jsxs("div",{role:"gridcell",children:[jsx("div",{...c$1,role:"button",...e,ref:n}),d.children]})})}var Vt=forwardRef(Bt);function zt(){let{dragAndDropHooks:r$1,dropState:o}=useContext(r),e=useRef(null),{dropIndicatorProps:t}=r$1.useDropIndicator({target:{type:"root"}},o,e),n=o.isDropTarget({type:"root"}),{visuallyHiddenProps:a}=a$a();return !n&&t["aria-hidden"]?null:jsx("div",{role:"row","aria-hidden":t["aria-hidden"],style:{position:"absolute"},children:jsx("div",{role:"gridcell",children:jsx("div",{role:"button",...a,...t,ref:e})})})}function Ft(r,o){if(r.size!==o.size)return false;for(let e of r)if(!o.has(e))return false;return true}var ht=({actionsPosition:r,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:t,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:d,onRename:C,renameLabel:T,renderItemTitle:g})=>Object.values({actionsPosition:r,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:t,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:d,onRename:C,renameLabel:T,renderItemTitle:g});var Dt="_10dw1p96",It="_10dw1p95",Ct=a$d({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m6 _1yep5z6lt _1yep5z6lq",variantClassNames:{isSelected:{true:"_1yep5z612u"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61pc _1yep5z61rl _1yep5z61va _1yep5z61v9 _1yep5z61vd"]]});function St(r,o){if(typeof r=="function"&&!r.prototype?.isReactComponent){let e=r(o);return isValidElement(e)?r:e}return r}var Se=({item:r,...o})=>{let{onPrimaryAction:e,onSecondaryAction:t,actionsPosition:n,primaryActionIcon:a,secondaryActionIcon:s,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,expandLabel:C,collapseLabel:T,onRename:g,renameLabel:u,renderItemTitle:b}=o,{formatMessage:m}=b$7(),{renamingKey:I,setRenamingKey:f}=useContext(Ee),y=I===r.id,x=!!r.children?.length,v=r.icon,K=!!g,R=useRef(false),M=useMemo(()=>{let i=St(a,r.id),h=St(s,r.id),l=typeof c=="function"?c(r.id):c,H=typeof d=="function"?d(r.id):d;return i||h?jsxs(a$h,{display:"flex",flexDirection:"row",children:[i?jsx(a$i,{icon:i,"aria-label":l,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{e?.(r.id);},tooltip:true}):null,h?jsx(a$i,{icon:h,"aria-label":H,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{t?.(r.id);},tooltip:true}):null]}):null},[a,r.id,s,c,d,e,t]),w=useCallback(i=>{i.key==="Enter"?(R.current=true,g?.({key:r.id,value:i.target.value}),f(null)):i.key==="Escape"&&(R.current=true,f(null));},[r.id,g,f]),P=useCallback(()=>b?b(r):r.label,[b,r]);return jsxs(Re,{id:r.id,textValue:r.label,"data-key":r.id,className:i=>a$e(It,Ct({isHovered:i.isHovered,isSelected:i.isSelected,isFocusVisible:i.isFocusVisible,isRenaming:y}),"BaselineUI-TreeView-Row"),style:{justifyContent:n==="end"?"space-between":void 0},children:[jsx(Ce,{children:i=>{let h=i.level-1;return jsxs(Fragment,{children:[n==="start"?M:null,jsxs(a$h,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxs(a$h,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${h*2} * ${themeVars.spacing.lg})`},children:[jsx(a$j,{icon:ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{i.state.toggleKey(i.id);},"aria-label":i.isExpanded?T??m(we.collapse):C??m(we.expand),style:{visibility:x?"visible":"hidden"},className:a$e(Dt,"BaselineUI-TreeView-ExpansionToggle")}),v?jsx(v,{size:16,style:{color:themeVars.color.icon.interactive.disabled}}):null]}),jsxs(a$h,{paddingLeft:"sm",paddingY:y?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:l=>{K&&(l.stopPropagation(),l.preventDefault(),f(r.id));},children:[y?jsx("div",{onClick:l=>{l.stopPropagation();},children:jsx(a$k,{defaultValue:r.label,autoFocus:true,onBlur:l=>{if(R.current){R.current=false;return}g?.({key:r.id,value:l.target.value}),f(null);},"aria-label":u??m(we.rename),onKeyDown:w,className:"BaselineUI-TreeView-RenameInput"})}):jsx(a$l,{type:"label",size:"sm",className:a$e(sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:P()}),r.description?jsx(a$l,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.description}):null]})]}),n==="end"?M:null]})}}),jsx(l,{items:r.children,children:i=>jsx(Se,{item:i,...o})})]})},we=c$3({expand:{id:"bui.treeView.expand",defaultMessage:"Expand"},collapse:{id:"bui.treeView.collapse",defaultMessage:"Collapse"},rename:{id:"bui.treeView.rename",defaultMessage:"Rename"}});var Ee=createContext({renamingKey:null,setRenamingKey:()=>{}}),Et=Kt.forwardRef(({className:r,style:o,"data-block-id":e,"data-block-class":t,items:n,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:d,primaryActionAriaLabel:C,secondaryActionAriaLabel:T,actionsPosition:g="start",expandLabel:u,collapseLabel:b,onRename:m,renameLabel:I,onAction:f,renderItemTitle:y,...x},v)=>{let K=useRef(null),[R,M]=useState(null);useEffect(()=>{let i=K.current;if(!i||!m)return;let h=l=>{if(l.key==="F2"){let S=i.querySelector("[data-focused='true']")?.dataset.key;S&&(l.preventDefault(),l.stopPropagation(),M(S));}};return i.addEventListener("keydown",h),()=>{i.removeEventListener("keydown",h);}},[m]);let w=useMemo(()=>({renamingKey:R,setRenamingKey:M}),[R]),P={actionsPosition:g,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:d,primaryActionAriaLabel:C,secondaryActionAriaLabel:T,expandLabel:u,collapseLabel:b,onRename:m,renameLabel:I,renderItemTitle:y};return jsx(Ee.Provider,{value:w,children:jsx(Ie,{ref:b$4(v,K),items:n.children||[],selectionMode:"multiple",expandedKeys:x.expandedKeys,defaultExpandedKeys:x.defaultExpandedKeys,onExpandedChange:x.onExpandedChange,selectedKeys:x.selectedKeys,onAction:f,"aria-label":x["aria-label"],"aria-labelledby":x["aria-labelledby"],"data-block-id":e,"data-block-class":t,style:o,className:a$e(r,"BaselineUI-TreeView"),dependencies:ht(P),children:i=>jsx(Se,{item:i,...P})})})});Et.displayName="TreeView";export{Et as a};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-66CUIXA6.mjs';import {b as b$1}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-AUOQSTS5.mjs';import*as d from'dompurify';import c,{useId}from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var b=(e,t)=>{e.setAttribute("height",typeof t=="number"?`${t}px`:t),e.setAttribute("width",typeof t=="number"?`${t}px`:t);},E=(e,t,n)=>{let o=e.querySelector("title"),i=a(e);if(o)o.textContent=t,o.setAttribute("id",n);else {let r=i.createElement("title");r.textContent=t,r.setAttribute("id",n),e.prepend(r);}},I=(e,t)=>{t&&e.classList.add(t);},T=(e,t)=>{let n=t.createElement("span");n.innerHTML=d.default.sanitize(e);let o=n.querySelector("svg");return a$1(o,"Icon: svg prop must be a valid svg string"),o},w=c.forwardRef(({size:e,title:t,className:n,style:o,color:i,...r},S)=>{let u=useId(),f=c.useRef(null),m="svg"in r?r.svg:void 0,l=c.useMemo(()=>{if(m){let y=a(f.current),s=T(m,y);return e&&b(s,e),t&&E(s,t,u),I(s,n),s.outerHTML}},[m,e,t,n,u]);return jsx("span",{className:n,ref:b$1(S,f),style:{display:"contents",...o,color:i},dangerouslySetInnerHTML:l?{__html:l}:void 0})});w.displayName="Icon";export{w as a};
@@ -1,10 +0,0 @@
1
- import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$2}from'./chunk-HONWMHMX.mjs';import {e as e$1}from'./chunk-SHJ2TJYG.mjs';import {a as a$2}from'./chunk-2VY4FAOY.mjs';import {i}from'./chunk-MRJFGHFW.mjs';import {a as a$1}from'./chunk-JDLUGVXG.mjs';import {a,f,b as b$1,e}from'./chunk-AUOQSTS5.mjs';import {useState,useRef,useEffect,useCallback}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var $=1e7;function dt(t,e,l){let o=st(e.body,l);return t==="left"?{...o,left:-$/2,width:$,totalWidth:$,scroll:{...o.scroll,left:0}}:{...o,top:-$/2,height:$,totalHeight:$,scroll:{...o.scroll,top:0}}}var F={top:"top",bottom:"top",left:"left",right:"left"},G={top:"bottom",bottom:"top",left:"right",right:"left"},Ct={top:"left",left:"top"},it={top:"height",left:"width"},Et={width:"totalWidth",height:"totalHeight"},J={};function Ot(t){let e=b$1(t);return typeof e<"u"&&e.visualViewport?e.visualViewport:null}function st(t,e){let l=a(t),o=0,n=0,s=0,i$1=0,c=0,u=0,r={},a$1=(e?.scale??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let h=l.documentElement;s=h.clientWidth,i$1=h.clientHeight,o=e?.width??s,n=e?.height??i$1,r.top=h.scrollTop||t.scrollTop,r.left=h.scrollLeft||t.scrollLeft,e&&(c=e.offsetTop,u=e.offsetLeft);}else (({width:o,height:n,top:c,left:u}=Z(t,false))),r.top=t.scrollTop,r.left=t.scrollLeft,s=o,i$1=n;return i()&&(t.tagName==="BODY"||t.tagName==="HTML")&&a$1&&(r.top=0,r.left=0,c=e?.pageTop??0,u=e?.pageLeft??0),{width:o,height:n,totalWidth:s,totalHeight:i$1,scroll:r,top:c,left:u}}function Mt(t){return {top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Q(t,e,l,o,n,s,i){let c=n.scroll[t]??0,u=o[it[t]],r=i[t]+o.scroll[F[t]]+s,a=i[t]+o.scroll[F[t]]+u-s,h=e-c+o.scroll[F[t]]+i[t]-o[F[t]],d=e-c+l+o.scroll[F[t]]+i[t]-o[F[t]];return h<r?r-h:d>a?Math.max(a-d,r-h):0}function It(t){let l=b$1(t).getComputedStyle(t);return {top:parseInt(l.marginTop,10)||0,bottom:parseInt(l.marginBottom,10)||0,left:parseInt(l.marginLeft,10)||0,right:parseInt(l.marginRight,10)||0}}function rt(t){if(J[t])return J[t];let[e,l]=t.split(" "),o=F[e]||"right",n=Ct[o];F[l]||(l="center");let s=it[o],i=it[n];return J[t]={placement:e,crossPlacement:l,axis:o,crossAxis:n,size:s,crossSize:i},J[t]}function tt(t,e,l,o,n,s,i,c,u,r,a){let{placement:h,crossPlacement:d,axis:y,crossAxis:f,size:H,crossSize:w}=o,b={};b[f]=t[f]??0,d==="center"?b[f]+=((t[w]??0)-(l[w]??0))/2:d!==f&&(b[f]+=(t[w]??0)-(l[w]??0)),b[f]+=s;let E=t[f]-l[w]+u+r,L=t[f]+t[w]-u-r;if(b[f]=a$2(b[f],E,L),h===y){let W=c?a[H]:a[Et[H]];b[G[y]]=Math.floor(W-t[y]+n);}else b[y]=Math.floor(t[y]+t[H]+n);return b}function vt(t,e,l,o,n,s,i,c,u,r,a){let h=(t.top!=null?t.top:u[Et.height]-(t.bottom??0)-i)-(u.scroll.top??0),d=r?l.top:0,y={top:Math.max(e.top+d,(a?.offsetTop??e.top)+d),bottom:Math.min(e.top+e.height+d,(a?.offsetTop??0)+(a?.height??0))};return c!=="top"?Math.max(0,y.bottom-h-((n.top??0)+(n.bottom??0)+s)):Math.max(0,h+i-y.top-((n.top??0)+(n.bottom??0)+s))}function Pt(t,e,l,o,n,s,i,c){let{placement:u,axis:r,size:a}=s;return u===r?Math.max(0,l[r]-(i.scroll[r]??0)-(t[r]+(c?e[r]:0))-(o[r]??0)-o[G[r]]-n):Math.max(0,t[a]+t[r]+(c?e[r]:0)-l[r]-l[a]+(i.scroll[r]??0)-(o[r]??0)-o[G[r]]-n)}function St(t,e,l,o,n,s,i,c,u,r,a,h,d,y,f,H,w,b,E,L,W,_){let m=rt(t),{size:A,crossAxis:p,crossSize:R,placement:M,crossPlacement:T}=m,P=tt(e,c,l,m,a,h,r,d,f,H,u),S=a,k=E?$:Pt(c,r,e,n,s+a,m,u,w);if(i&&l[A]>k){let j=rt(`${G[M]} ${T}`),X=tt(e,c,l,j,a,h,r,d,f,H,u);Pt(c,r,e,n,s+a,j,u,w)>k&&(m=j,P=X,S=a);}if(_==="anchor"&&L&&(m.placement==="top"||m.placement==="bottom")){let j=E?0:Q(p,P[p],l[R],c,u,s,r);if(j!==0){let X=m.crossPlacement==="center"?j>0?"left":"right":G[m.crossPlacement];if(X){let lt=rt(`${m.placement} ${X}`),pt=tt(e,c,l,lt,a,h,r,d,f,H,u),Lt=E?0:Q(p,pt[p],l[R],c,u,s,r);Math.abs(Lt)<Math.abs(j)&&(m=lt,P=pt);}}}let I="bottom";m.axis==="top"?m.placement==="top"?I="top":m.placement==="bottom"&&(I="bottom"):m.crossAxis==="top"&&(m.crossPlacement==="top"?I="bottom":m.crossPlacement==="bottom"&&(I="top"));let V=_==="anchor"&&L&&(m.placement==="top"||m.placement==="bottom")&&m.crossPlacement!=="center",z=V||E?0:Q(p,P[p],l[R],c,u,s,r);P[p]+=z;let x=E||!W?void 0:vt(P,c,r,d,n,s,l.height,I,u,w,b);y&&(x==null||y<x)&&(x=y),l.height=x!=null?Math.min(l.height,x):l.height,P=tt(e,c,l,m,S,h,r,d,f,H,u),z=V||E?0:Q(p,P[p],l[R],c,u,s,r),P[p]+=z;let v={},g=e[p]-P[p]-n[F[p]],C=g+.5*e[R],D=f/2+H,B=F[p]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),N=l[R]-B-f/2-H,ot=e[p]+f/2-(P[p]+n[F[p]]),Tt=e[p]+e[R]-f/2-(P[p]+n[F[p]]),yt=a$2(C,ot,Tt);v[p]=a$2(yt,D,N),{placement:M,crossPlacement:T}=m,f?g=v[p]:T==="right"?g+=e[R]:T==="center"&&(g+=e[R]/2);let at=M==="left"||M==="top"?l[A]:0,Ht={x:M==="top"||M==="bottom"?g:at,y:M==="left"||M==="right"?g:at};return {position:P,maxHeight:x,arrowOffsetLeft:v.left,arrowOffsetTop:v.top,placement:M,triggerAnchorPoint:Ht}}function At(t){let{placement:e$1,targetNode:l,overlayNode:o,scrollNode:n,padding:s,shouldFlip:i,boundaryElement:c,boundaryAxis:u="both",horizontalBoundaryBehavior:r="shift",offset:a$1,crossOffset:h,maxHeight:d,arrowSize:y=0,arrowBoundaryOffset:f=0,targetRect:H}=t,w=a(o),b=b$1(o),E=Ot(o),L=o instanceof b.HTMLElement?zt(o):w.documentElement,W=L===w.documentElement,_=b.getComputedStyle(L).position,m=!!_&&_!=="static",A=W?Z(l,false,H):xt(l,L,false,H);if(!W){let{marginTop:D,marginLeft:B}=b.getComputedStyle(l);A.top+=parseInt(D,10)||0,A.left+=parseInt(B,10)||0;}let p=Z(o,true),R=It(o);p.width+=(R.left??0)+(R.right??0),p.height+=(R.top??0)+(R.bottom??0);let M=Mt(n),T=c===null,P=c??w.body,S=!T&&u!=="vertical",k=!T&&u!=="horizontal",I=st(P,E),V=S?I:dt("left",w,E),z=k?I:dt("top",w,E),x={...z,left:V.left,width:V.width,totalWidth:V.totalWidth,scroll:{top:z.scroll.top,left:V.scroll.left}},v=st(L,E);m&&!W&&(x.top-=v.top,x.left-=v.left,v.top=0,v.left=0);let g=T?{top:0,left:0,width:0,height:0}:xt(P,L,false),C=!T&&e(P,L)&&L!==P;return St(e$1,A,p,M,R,s,i,x,v,g,a$1,h,m,d,y,f,C,E,T,S,k,r)}function et(t,e){let l=b$1(t),{top:o,left:n,width:s,height:i}=t.getBoundingClientRect();return e&&t instanceof l.HTMLElement&&(s=t.offsetWidth,i=t.offsetHeight),{top:o,left:n,width:s,height:i}}function Z(t,e,l){let o=a(t),{top:n,left:s,width:i,height:c}=l||et(t,e),{scrollTop:u,scrollLeft:r,clientTop:a$1,clientLeft:h}=o.documentElement;return {top:n+u-a$1,left:s+r-h,width:i,height:c}}function xt(t,e,l,o){let n=b$1(t),s=n.getComputedStyle(t),i;if(s.position==="fixed")i=o||et(t,l);else {i=Z(t,l,o);let c=Z(e,l),u=n.getComputedStyle(e);c.top+=(parseInt(u.borderTopWidth,10)||0)-e.scrollTop,c.left+=(parseInt(u.borderLeftWidth,10)||0)-e.scrollLeft,i.top-=c.top,i.left-=c.left;}return i.top-=parseInt(s.marginTop,10)||0,i.left-=parseInt(s.marginLeft,10)||0,i}function zt(t){let e=a(t),l=b$1(t),o=t.offsetParent;if(o&&o===e.body&&l.getComputedStyle(o).position==="static"&&!wt(o)&&(o=e.documentElement),o==null)for(o=t.parentElement;o&&!wt(o);)o=o.parentElement;return o||e.documentElement}function wt(t){let l=b$1(t).getComputedStyle(t);return l.transform!=="none"||/transform|perspective/.test(l.willChange)||l.filter!=="none"||l.contain==="paint"||"backdropFilter"in l&&l.backdropFilter!=="none"||"WebkitBackdropFilter"in l&&l.WebkitBackdropFilter!=="none"}function mt(t){return typeof document>"u"?null:b$1(t).visualViewport??null}function te(t){let{direction:e$2}=b(),{arrowSize:l,targetRef:o,overlayRef:n,arrowRef:s,scrollRef:i=n,placement:c="bottom",containerPadding:u=12,shouldFlip:r=true,boundaryElement:a$2,boundaryAxis:h="both",horizontalBoundaryBehavior:d="shift",offset:y=0,crossOffset:f$1=0,shouldUpdatePosition:H=true,shouldCloseOnScroll:w=true,isOpen:b$3=true,onClose:E,maxHeight:L,arrowBoundaryOffset:W=0,getTargetRect:_}=t,m=a$2??(typeof document<"u"?o.current?.ownerDocument.body??n.current?.ownerDocument.body??document.body:void 0),[A,p]=useState(null),R=[H,c,n.current,o.current,s?.current,i.current,u,r,m,h,d,y,f$1,b$3,e$2,L,W,l],M=useRef(mt(n.current)?.scale);useEffect(()=>{b$3&&(M.current=mt(n.current)?.scale);},[b$3,n]);let T=useCallback(()=>{if(H===false||!b$3||!n.current||!o.current||m===void 0||mt(n.current)?.scale!==M.current)return;let z=a(n.current),x=f(z),v=b$1(z.body),g=null;if(i.current&&e(i.current,x)){let B=x?.getBoundingClientRect(),N=i.current.getBoundingClientRect();g={type:"top",offset:(B?.top??0)-N.top},g.offset>N.height/2&&(g.type="bottom",g.offset=(B?.bottom??0)-N.bottom);}let C=n.current;!L&&n.current&&(C.style.top="0px",C.style.bottom="",C.style.maxHeight=(v.visualViewport?.height??v.innerHeight)+"px");let D=At({placement:Wt(c,e$2),overlayNode:n.current,targetNode:o.current,scrollNode:i.current||n.current,padding:u,shouldFlip:r,boundaryElement:m,boundaryAxis:h,horizontalBoundaryBehavior:d,offset:y,crossOffset:f$1,maxHeight:L,arrowSize:l??(s?.current?et(s.current,true).width:0),arrowBoundaryOffset:W,targetRect:_?.(o.current)});if(D.position){if(C.style.top="",C.style.bottom="",C.style.left="",C.style.right="",Object.keys(D.position).forEach(B=>C.style[B]=D.position[B]+"px"),C.style.maxHeight=D.maxHeight!=null?D.maxHeight+"px":"",g&&x&&i.current){let B=x.getBoundingClientRect(),N=i.current.getBoundingClientRect(),ot=B[g.type]-N[g.type];i.current.scrollTop+=ot-g.offset;}p(D);}},R);a$1(T,R);let P=m?b$1(m):o.current?b$1(o.current):n.current?b$1(n.current):void 0;Bt(T,P);let S=useRef(null),k=useCallback(()=>{S.current!==null&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{S.current=null,T();});},[T]);useEffect(()=>()=>{S.current!==null&&cancelAnimationFrame(S.current);},[]),e$1({ref:n,onResize:k}),e$1({ref:o,onResize:k});let I=useRef(false);a$1(()=>{let z,x=()=>{I.current=true,clearTimeout(z),z=setTimeout(()=>{I.current=false;},500),T();},g=b$1(n.current).visualViewport,C=()=>{I.current&&x();};return g?.addEventListener("resize",x),g?.addEventListener("scroll",C),()=>{g?.removeEventListener("resize",x),g?.removeEventListener("scroll",C);}},[T]);let V=useCallback(()=>{I.current||E?.();},[E,I]);return b$2({triggerRef:o,isOpen:b$3,onClose:w?E&&V:null}),{overlayProps:{style:{position:A?"absolute":"fixed",top:A?void 0:0,left:A?void 0:0,zIndex:1e5,...A?.position,maxHeight:A==null?"100vh":A.maxHeight!=null?`${A.maxHeight}px`:""}},placement:A?.placement??null,triggerAnchorPoint:A?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A?.arrowOffsetLeft,top:A?.arrowOffsetTop}},updatePosition:T}}function Bt(t,e=window){a$1(()=>(e?.addEventListener("resize",t,false),()=>{e?.removeEventListener("resize",t,false);}),[t,e]);}function Wt(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}export{te as a};
@@ -1,10 +0,0 @@
1
- import {a as a$6}from'./chunk-GXOXYPQQ.mjs';import {a as a$l}from'./chunk-NQO6OQT6.mjs';import {a as a$a,b as b$5}from'./chunk-ZNN43VZV.mjs';import {c as c$7,b as b$a}from'./chunk-QSSCSN5S.mjs';import {l,i,p,r,s,w,v,k,h as h$1,j,n,u,x,d as d$1,g,a as a$h,b as b$8}from'./chunk-SMAYNDQQ.mjs';import {b,c as c$1}from'./chunk-VIVNQZYK.mjs';import {b as b$3,a as a$o}from'./chunk-NUYBQ7KP.mjs';import {c as c$6,d as d$4}from'./chunk-UBFMOTBM.mjs';import {a as a$4,g as g$1,c as c$5,e as e$2,b as b$9,f as f$2,d as d$5}from'./chunk-DECHIERQ.mjs';import {a as a$j}from'./chunk-7PRJIPFA.mjs';import {a as a$m}from'./chunk-34TYNTXM.mjs';import {a as a$8,d as d$6}from'./chunk-KUEDQO7P.mjs';import {a as a$e}from'./chunk-USMC34OO.mjs';import {b as b$6}from'./chunk-WL27JGVG.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$c}from'./chunk-4ZJMZB5B.mjs';import {d}from'./chunk-RCBUNCHV.mjs';import {h,e as e$1,c,b as b$4,a as a$d}from'./chunk-B7PSE5KC.mjs';import {a as a$g}from'./chunk-JJG67M2S.mjs';import {e,h as h$2,i as i$1,c as c$4}from'./chunk-SHJ2TJYG.mjs';import {a as a$2,e as e$4,b as b$c}from'./chunk-MVK5CB64.mjs';import {a as a$f}from'./chunk-XWLESSHN.mjs';import {a as a$k}from'./chunk-D3IZ4HBL.mjs';import {a as a$5}from'./chunk-X3AXUU3H.mjs';import {a as a$7}from'./chunk-K6X2BHPP.mjs';import {d as d$3,a as a$i}from'./chunk-BGMVPFYK.mjs';import {i as i$2,f,b as b$b}from'./chunk-Y4DRSGEJ.mjs';import {a as a$9}from'./chunk-3FYY26ED.mjs';import {d as d$2}from'./chunk-AQYBKDT2.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {k as k$1,t,p as p$1}from'./chunk-MRJFGHFW.mjs';import {b as b$1,c as c$2,a as a$n}from'./chunk-TZ4MVY4E.mjs';import {a as a$3}from'./chunk-KEVERVHK.mjs';import {a as a$1,c as c$3}from'./chunk-JDLUGVXG.mjs';import {b as b$7,a as a$b,f as f$1,e as e$3,g as g$2,i as i$3}from'./chunk-AUOQSTS5.mjs';import {createContext,forwardRef,useRef,useState,useMemo,useContext,useEffect,useCallback}from'react';import lo from'react-dom';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var Be=class{keyMap=new Map;columnCount;rows;constructor(e){this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let l=n=>{let i=this.keyMap.get(n.key);e.visitNode&&(n=e.visitNode(n)),this.keyMap.set(n.key,n);let d=new Set,s=null,u=false;if(n.type==="item"){for(let c of n.childNodes)if(c.props?.colSpan!==void 0){u=true;break}}for(let c of n.childNodes)c.type==="cell"&&u&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=s?(s.colIndex??s.index)+(s.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=n.key),d.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,l(c),s=c;if(s&&(s.nextKey=null),i)for(let c of i.childNodes)d.has(c.key)||o(c);},o=n=>{this.keyMap.delete(n.key);for(let i of n.childNodes)this.keyMap.get(i.key)===i&&o(i);},r=null;for(let[n,i]of e.items.entries()){let d={...i,level:i.level??0,key:i.key??"row-"+n,type:i.type??"row",value:i.value??null,hasChildNodes:true,childNodes:[...i.childNodes],rendered:i.rendered,textValue:i.textValue??"",index:i.index??n};r?(r.nextKey=d.key,d.prevKey=r.key):d.prevKey=null,this.rows.push(d),l(d),r=d;}r&&(r.nextKey=null);}*[Symbol.iterator](){yield*[...this.rows];}get size(){return [...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let l=this.keyMap.get(e);return l?l.prevKey??null:null}getKeyAfter(e){let l=this.keyMap.get(e);return l?l.nextKey??null:null}getFirstKey(){return [...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){let l=[...this.getKeys()];return this.getItem(l[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}};var zl="row-header-column-"+Math.random().toString(36).slice(2),ut="row-header-column-"+Math.random().toString(36).slice(2);for(;zl===ut;)ut="row-header-column-"+Math.random().toString(36).slice(2);function je(t,e){if(e.length===0)return [];let l=[],o=new Map;for(let s of e){let u=s.parentKey,c=[s];for(;u!=null;){let a=t.get(u);if(!a)break;if(o.has(a)){a.colSpan??=0,a.colSpan++,a.colspan=a.colSpan;let{column:p,index:m}=o.get(a);if(m>c.length)break;for(let b=m;b<c.length;b++)p.splice(b,0,null);for(let b=c.length;b<p.length;b++)p[b]&&o.has(p[b])&&(o.get(p[b]).index=b);}else a.colSpan=1,a.colspan=1,c.push(a),o.set(a,{column:c,index:c.length-1});u=a.parentKey;}l.push(c),s.index=l.length-1;}let r=Math.max(...l.map(s=>s.length)),n=Array(r).fill(0).map(()=>[]),i=0;for(let s of l){let u=r-1;for(let c of s){if(c){let a=n[u],p=a.reduce((m,b)=>m+(b.colSpan??1),0);if(p<i){let m={type:"placeholder",key:"placeholder-"+c.key,colspan:i-p,colSpan:i-p,index:p,value:null,rendered:null,level:u,hasChildNodes:false,childNodes:[],textValue:""};a.length>0&&(a[a.length-1].nextKey=m.key,m.prevKey=a[a.length-1].key),a.push(m);}a.length>0&&(a[a.length-1].nextKey=c.key,c.prevKey=a[a.length-1].key),c.level=u,c.colIndex=i,a.push(c);}u--;}i++;}let d=0;for(let s of n){let u=s.reduce((c,a)=>c+(a.colSpan??1),0);if(u<e.length){let c={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colSpan:e.length-u,colspan:e.length-u,index:u,value:null,rendered:null,level:d,hasChildNodes:false,childNodes:[],textValue:"",prevKey:s[s.length-1].key};s.push(c);}d++;}return n.map((s,u)=>({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:true,childNodes:s,textValue:""}))}var ve=class extends Be{headerRows;columns;rowHeaderColumnKeys;body;_size=0;constructor(e,l,o){let r=new Set,n=null,i=[];if(o?.showSelectionCheckboxes){let a={type:"column",key:zl,value:null,textValue:"",level:0,index:o?.showDragButtons?1:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isSelectionCell:true}};i.unshift(a);}if(o?.showDragButtons){let a={type:"column",key:ut,value:null,textValue:"",level:0,index:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isDragButtonCell:true}};i.unshift(a);}let d=[],s=new Map,u=a=>{switch(a.type){case "body":n=a;break;case "column":s.set(a.key,a),a.hasChildNodes||(i.push(a),a.props.isRowHeader&&r.add(a.key));break;case "item":d.push(a);return}for(let p of a.childNodes)u(p);};for(let a of e)u(a);let c=je(s,i);if(c.forEach((a,p)=>d.splice(p,0,a)),super({columnCount:i.length,items:d,visitNode:a=>(a.column=i[a.index],a)}),this.columns=i,this.rowHeaderColumnKeys=r,this.body=n,this.headerRows=c,this._size=[...n.childNodes].length,this.rowHeaderColumnKeys.size===0){let a=this.columns.find(p=>!p.props?.isDragButtonCell&&!p.props?.isSelectionCell);a&&this.rowHeaderColumnKeys.add(a.key);}}*[Symbol.iterator](){yield*this.body.childNodes;}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey??null}getKeyAfter(e){return this.keyMap.get(e)?.nextKey??null}getFirstKey(){return c$5(this.body.childNodes)?.key??null}getLastKey(){return e$2(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){let l=[...this.getKeys()];return this.getItem(l[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let l=this.getItem(e);return l?.type==="item"?[...l.childNodes].filter(o=>o.type==="cell"):super.getChildren(e)}getTextValue(e){let l=this.getItem(e);if(!l)return "";if(l.textValue)return l.textValue;let o=this.rowHeaderColumnKeys;if(o){let r=[];for(let n of l.childNodes){let i=this.columns[n.index];if(o.has(i.key)&&n.textValue&&r.push(n.textValue),r.length===o.size)break}return r.join(" ")}return ""}};var Rl={"ar-AE":{colorSwatchPicker:"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0627\u0644\u0623\u0644\u0648\u0627\u0646",dropzoneLabel:"DropZone",selectPlaceholder:"\u062D\u062F\u062F \u0639\u0646\u0635\u0631\u064B\u0627",tableResizer:"\u0623\u062F\u0627\u0629 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645"},"bg-BG":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u0438 \u043C\u043E\u0441\u0442\u0440\u0438",dropzoneLabel:"DropZone",selectPlaceholder:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442",tableResizer:"\u041F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u0438\u0442\u0435\u043B"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"M\xEDsto pro p\u0159eta\u017Een\xED",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"Zm\u011Bna velikosti"},"da-DK":{colorSwatchPicker:"Farvepr\xF8ver",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE6lg et element",tableResizer:"St\xF8rrelses\xE6ndring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element w\xE4hlen",tableResizer:"Gr\xF6\xDFenanpassung"},"el-GR":{colorSwatchPicker:"\u03A7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03AC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1\u03C4\u03B1",dropzoneLabel:"DropZone",selectPlaceholder:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF",tableResizer:"\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un art\xEDculo",tableResizer:"Cambiador de tama\xF1o"},"et-EE":{colorSwatchPicker:"V\xE4rvin\xE4idised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige \xFCksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"V\xE4rimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"\xC9chantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"S\xE9lectionner un \xE9l\xE9ment",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05D5\u05EA \u05E6\u05D1\u05E2",dropzoneLabel:"DropZone",selectPlaceholder:"\u05D1\u05D7\u05E8 \u05E4\u05E8\u05D9\u05D8",tableResizer:"\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D2\u05D5\u05D3\u05DC"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spu\u0161tanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veli\u010Dine"},"hu-HU":{colorSwatchPicker:"Sz\xEDnt\xE1rak",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE1lasszon ki egy elemet",tableResizer:"\xC1tm\xE9retez\u0151"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",dropzoneLabel:"\u30C9\u30ED\u30C3\u30D7\u30BE\u30FC\u30F3",selectPlaceholder:"\u9805\u76EE\u3092\u9078\u629E",tableResizer:"\u30B5\u30A4\u30BA\u5909\u66F4\u30C4\u30FC\u30EB"},"ko-KR":{colorSwatchPicker:"\uC0C9\uC0C1 \uACAC\uBCF8",dropzoneLabel:"\uB4DC\uB86D \uC601\uC5ED",selectPlaceholder:"\uD56D\uBAA9 \uC120\uD0DD",tableResizer:"\uD06C\uAE30 \uC870\uC815\uAE30"},"lt-LT":{colorSwatchPicker:"Spalv\u0173 pavyzd\u017Eiai",dropzoneLabel:"\u201EDropZone\u201C",selectPlaceholder:"Pasirinkite element\u0105",tableResizer:"Dyd\u017Eio keitiklis"},"lv-LV":{colorSwatchPicker:"Kr\u0101su paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izv\u0113l\u0113ties vienumu",tableResizer:"Izm\u0113ra main\u012Bt\u0101js"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"St\xF8rrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Pr\xF3bki kolor\xF3w",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zon\u0103 de plasare",selectPlaceholder:"Selecta\u021Bi un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u044B\u0435 \u043E\u0431\u0440\u0430\u0437\u0446\u044B",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u0430"},"sk-SK":{colorSwatchPicker:"Vzorkovn\xEDky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"N\xE1stroj na zmenu ve\u013Ekosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veli\u010Dine"},"sv-SE":{colorSwatchPicker:"F\xE4rgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE4lj en artikel",tableResizer:"Storleks\xE4ndrare"},"tr-TR":{colorSwatchPicker:"Renk \xF6rnekleri",dropzoneLabel:"B\u0131rakma B\xF6lgesi",selectPlaceholder:"Bir \xF6\u011Fe se\xE7in",tableResizer:"Yeniden boyutland\u0131r\u0131c\u0131"},"uk-UA":{colorSwatchPicker:"\u0417\u0440\u0430\u0437\u043A\u0438 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0435\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0417\u0430\u0441\u0456\u0431 \u0437\u043C\u0456\u043D\u0435\u043D\u043D\u044F \u0440\u043E\u0437\u043C\u0456\u0440\u0443"},"zh-CN":{colorSwatchPicker:"\u989C\u8272\u8272\u677F",dropzoneLabel:"\u653E\u7F6E\u533A\u57DF",selectPlaceholder:"\u9009\u62E9\u4E00\u4E2A\u9879\u76EE",tableResizer:"\u5C3A\u5BF8\u8C03\u6574\u5668"},"zh-TW":{colorSwatchPicker:"\u8272\u7968",dropzoneLabel:"\u653E\u7F6E\u5340",selectPlaceholder:"\u9078\u53D6\u9805\u76EE",tableResizer:"\u5927\u5C0F\u8ABF\u6574\u5668"}};function $l(t){return t!=null&&(!isNaN(t)||String(t).match(/^(\d+)(?=%$)/)!==null)}function Bl(t){if(!t||typeof t=="number")return 1;let e=t.match(/^(.+)(?=fr$)/);return e?parseFloat(e[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function mt(t,e){if(typeof t=="string"){let l=t.match(/^(\d+)(?=%$)/);if(!l)throw new Error("Only percentages or numbers are supported for static column widths");return e*(parseFloat(l[0])/100)}return t}function pt(t,e){return t!=null?mt(t,e):Number.MAX_SAFE_INTEGER}function bt(t,e){return t!=null?mt(t,e):0}function vl(t,e,l,o,r){let n=false,i=e.map((d,s)=>{let u=l.get(d.key)!=null?l.get(d.key)??"1fr":d.width??d.defaultWidth??o?.(s)??"1fr",c=false,a=0,p=0,m=0;$l(u)?(a=mt(u,t),c=true):(p=Bl(u),p<=0&&(c=true));let b=bt(d.minWidth??r?.(s)??0,t),f=pt(d.maxWidth,t),C=Math.max(b,Math.min(a,f));return c?m=C:a>C&&(c=true,m=C),c||(n=true),{frozen:c,baseSize:a,hypotheticalMainSize:C,min:b,max:f,flex:p,targetMainSize:m,violation:0}});for(;n;){let d=0,s=0;i.forEach(a=>{a.frozen?d+=a.targetMainSize:(d+=a.baseSize,s+=a.flex);});let u=t-d;u>0&&i.forEach(a=>{if(!a.frozen){let p=a.flex/s;a.targetMainSize=a.baseSize+p*u;}});let c=0;i.forEach(a=>{if(a.violation=0,!a.frozen){let{min:p,max:m,targetMainSize:b}=a;a.targetMainSize=Math.max(p,Math.min(b,m)),a.violation=a.targetMainSize-b,c+=a.violation;}}),n=false,i.forEach(a=>{c===0||Math.sign(c)===Math.sign(a.violation)?a.frozen=true:a.frozen||(n=true);});}return jl(i)}function jl(t){let e=0,l=0,o=[];return t.forEach(function(r){let n=r.targetMainSize,i=Math.round(n+e)-l;e+=n,l+=i,o.push(i);}),o}var Ue=class{getDefaultWidth;getDefaultMinWidth;columnWidths=new Map;columnMinWidths=new Map;columnMaxWidths=new Map;constructor(e){this.getDefaultWidth=e?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=e?.getDefaultMinWidth??(()=>75);}splitColumnsIntoControlledAndUncontrolled(e){return e.reduce((l,o)=>(o.props.width!=null?l[0].set(o.key,o):l[1].set(o.key,o),l),[new Map,new Map])}recombineColumns(e,l,o,r){return new Map(e.map(n=>o.has(n.key)?[n.key,l.get(n.key)]:[n.key,r.get(n.key).props.width]))}getInitialUncontrolledWidths(e){return new Map(Array.from(e).map(([l,o])=>[l,o.props.defaultWidth??this.getDefaultWidth?.(o)??"1fr"]))}getColumnWidth(e){return this.columnWidths.get(e)??0}getColumnMinWidth(e){return this.columnMinWidths.get(e)??0}getColumnMaxWidth(e){return this.columnMaxWidths.get(e)??0}resizeColumnWidth(e,l,o,r){let n=this.columnWidths,i=true,d=new Map;return r=Math.max(this.getColumnMinWidth(o),Math.min(this.getColumnMaxWidth(o),Math.floor(r))),e.columns.forEach(s=>{s.key===o?(d.set(s.key,r),i=false):i?d.set(s.key,n.get(s.key)??0):d.set(s.key,s.props.width??l.get(s.key));}),d}buildColumnWidths(e,l,o){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,vl(e,l.columns.map(n=>({...n.props,key:n.key})),o,n=>this.getDefaultWidth(l.columns[n]),n=>this.getDefaultMinWidth(l.columns[n])).forEach((n,i)=>{let d=l.columns[i].key,s=l.columns[i];this.columnWidths.set(d,n),this.columnMinWidths.set(d,bt(s.props.minWidth??this.getDefaultMinWidth(s),e)),this.columnMaxWidths.set(d,pt(s.props.maxWidth,e));}),this.columnWidths}};function ht(t,e){let{getDefaultWidth:l,getDefaultMinWidth:o,tableWidth:r=0}=t,[n,i]=useState(null),d=useMemo(()=>new Ue({getDefaultWidth:l,getDefaultMinWidth:o}),[l,o]),[s,u]=useMemo(()=>d.splitColumnsIntoControlledAndUncontrolled(e.collection.columns),[e.collection.columns,d]),[c,a]=useState(()=>d.getInitialUncontrolledWidths(u)),[p,m]=useState(e.collection.columns);if(e.collection.columns!==p){if(e.collection.columns.length!==p.length||e.collection.columns.some((S,T)=>S.key!==p[T].key)){let S=d.getInitialUncontrolledWidths(u);a(S);}m(e.collection.columns);}let b=useMemo(()=>d.recombineColumns(e.collection.columns,c,u,s),[e.collection.columns,c,u,s,d]),f=useCallback(S=>{i(S);},[i]),C=useCallback((S,T)=>{let w=d.resizeColumnWidth(e.collection,c,S,T),z=new Map(Array.from(u).map(([R])=>[R,w.get(R)]));return z.set(S,T),a(z),w},[u,a,d,e.collection,c]),g=useCallback(()=>{i(null);},[i]),h=useMemo(()=>d.buildColumnWidths(r,e.collection,b),[r,e.collection,b,d]);return useMemo(()=>({resizingColumn:n,updateResizedColumns:C,startResize:f,endResize:g,getColumnWidth:S=>d.getColumnWidth(S),getColumnMinWidth:S=>d.getColumnMinWidth(S),getColumnMaxWidth:S=>d.getColumnMaxWidth(S),tableState:e,columnWidths:h}),[d,h,n,C,f,g,e])}function Dl(t){let{collection:e,focusMode:l}=t,o=t.UNSAFE_selectionState||a$4(t),r=useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),n=o.setFocusedKey;o.setFocusedKey=(s,u)=>{if(l==="cell"&&s!=null){let c=e.getItem(s);if(c?.type==="item"){let a=b$9(c,e);u==="last"?s=e$2(a)?.key??null:s=c$5(a)?.key??null;}}n(s,u);};let i=useMemo(()=>new f$2(e,o),[e,o]),d=useRef(null);return useEffect(()=>{if(o.focusedKey!=null&&d.current&&!e.getItem(o.focusedKey)){let s=d.current.getItem(o.focusedKey),u=s?.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?d.current.getItem(s.parentKey):s;if(!u){o.setFocusedKey(null);return}let c=d.current.rows,a=e.rows,p=c.length-a.length,m=Math.min(p>1?Math.max(u.index-p+1,0):u.index,a.length-1),b=null;for(;m>=0;){if(!i.isDisabled(a[m].key)&&a[m].type!=="headerrow"){b=a[m];break}m<a.length-1?m++:(m>u.index&&(m=u.index),m--);}if(b){let f=b.hasChildNodes?[...b$9(b,e)]:[],C=b.hasChildNodes&&u!==s&&s&&s.index<f.length?f[s.index].key:b.key;o.setFocusedKey(C);}else o.setFocusedKey(null);}d.current=e;},[e,i,o,o.focusedKey]),{collection:e,disabledKeys:r,isKeyboardNavigationDisabled:false,selectionManager:i}}var Xl={ascending:"descending",descending:"ascending"};function gt(t){let[e,l]=useState(false),{selectionMode:o="none",showSelectionCheckboxes:r,showDragButtons:n,treeColumn:i=null}=t,d=useMemo(()=>({showSelectionCheckboxes:r&&o!=="none",showDragButtons:n,selectionMode:o,columns:[]}),[t.children,r,o,n]),s=g$1(t,useCallback(m=>new ve(m,null,d),[d]),d),{disabledKeys:u,selectionManager:c}=Dl({...t,collection:s,disabledBehavior:t.disabledBehavior||"selection"}),[a,p]=a$5(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);return {collection:s,disabledKeys:u,selectionManager:c,showSelectionCheckboxes:t.showSelectionCheckboxes||false,sortDescriptor:t.sortDescriptor??null,isKeyboardNavigationDisabled:s.size===0||e,setKeyboardNavigationDisabled:l,sort(m,b){t.onSortChange?.({column:m,direction:b??(t.sortDescriptor?.column===m?Xl[t.sortDescriptor.direction]:"ascending")});},expandedKeys:a,toggleKey(m){p(b=>{let f=new Set(b);return f.has(m)?f.delete(m):f.add(m),f});},treeColumn:i}}function Tt(t,e){let l=useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),o=t.selectionManager.withCollection(l);return {...t,collection:l,selectionManager:o}}var ye=class{collection;disabledKeys;disabledBehavior;direction;collator;layoutDelegate;focusMode;constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new St(e.layout):new a$o(e.ref)),this.focusMode=e.focusMode??"row";}isCell(e){return e.type==="cell"}isRow(e){return e.type==="row"||e.type==="item"}isDisabled(e){return this.disabledBehavior==="all"&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findPreviousKey(e,l,o=false){let r=e!=null?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;r!=null;){let n=this.collection.getItem(r);if(!n)return null;if((o||!this.isDisabled(n))&&(!l||l(n)))return r;r=this.collection.getKeyBefore(r);}return null}findNextKey(e,l,o=false){let r=e!=null?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;r!=null;){let n=this.collection.getItem(r);if(!n)return null;if((o||!this.isDisabled(n))&&(!l||l(n)))return r;if(r=this.collection.getKeyAfter(r),r==null)return null}return null}getKeyForItemInRowByIndex(e,l=0){if(l<0)return null;let o=this.collection.getItem(e);if(!o)return null;let r=0;for(let n of b$9(o,this.collection)){if(n.colSpan&&n.colSpan+r>l||(n.colSpan&&(r=r+n.colSpan-1),r===l))return n.key??null;r++;}return null}getKeyBelow(e,l){let o=e,r=this.collection.getItem(o);if(!r||(this.isCell(r)&&(o=r.parentKey??null),o==null))return null;if(o=this.findNextKey(o,n=>n.type==="item",l?.includeDisabled),o!=null){if(this.isCell(r)){let n=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(o,n)}if(this.focusMode==="row")return o}return null}getKeyAbove(e,l){let o=e,r=this.collection.getItem(o);if(!r||(this.isCell(r)&&(o=r.parentKey??null),o==null))return null;if(o=this.findPreviousKey(o,n=>n.type==="item",l?.includeDisabled),o!=null){if(this.isCell(r)){let n=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(o,n)}if(this.focusMode==="row")return o}return null}getKeyRightOf(e){let l=this.collection.getItem(e);if(!l)return null;if(this.isRow(l)){let o=b$9(l,this.collection);return (this.direction==="rtl"?e$2(o)?.key:c$5(o)?.key)??null}if(this.isCell(l)&&l.parentKey!=null){let o=this.collection.getItem(l.parentKey);if(!o)return null;let r=b$9(o,this.collection),n=(this.direction==="rtl"?d$5(r,l.index-1):d$5(r,l.index+1))??null;return n?n.key??null:this.focusMode==="row"?l.parentKey??null:(this.direction==="rtl"?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let l=this.collection.getItem(e);if(!l)return null;if(this.isRow(l)){let o=b$9(l,this.collection);return (this.direction==="rtl"?c$5(o)?.key:e$2(o)?.key)??null}if(this.isCell(l)&&l.parentKey!=null){let o=this.collection.getItem(l.parentKey);if(!o)return null;let r=b$9(o,this.collection),n=(this.direction==="rtl"?d$5(r,l.index+1):d$5(r,l.index-1))??null;return n?n.key??null:this.focusMode==="row"?l.parentKey??null:(this.direction==="rtl"?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,l){let o=e??null,r;if(o!=null){if(r=this.collection.getItem(o),!r)return null;if(this.isCell(r)&&!l&&r.parentKey!=null){let n=this.collection.getItem(r.parentKey);return n?c$5(b$9(n,this.collection))?.key??null:null}}if(o=this.findNextKey(void 0,n=>n.type==="item"),o!=null&&(r&&this.isCell(r)&&l||this.focusMode==="cell")){let n=this.collection.getItem(o);if(!n)return null;o=c$5(b$9(n,this.collection))?.key??null;}return o}getLastKey(e,l){let o=e??null,r;if(o!=null){if(r=this.collection.getItem(o),!r)return null;if(this.isCell(r)&&!l&&r.parentKey!=null){let n=this.collection.getItem(r.parentKey);if(!n)return null;let i=b$9(n,this.collection);return e$2(i)?.key??null}}if(o=this.findPreviousKey(void 0,n=>n.type==="item"),o!=null&&(r&&this.isCell(r)&&l||this.focusMode==="cell")){let n=this.collection.getItem(o);if(!n)return null;let i=b$9(n,this.collection);o=e$2(i)?.key??null;}return o}getKeyPageAbove(e){let l=e,o=this.layoutDelegate.getItemRect(l);if(!o)return null;let r=Math.max(0,o.y+o.height-this.layoutDelegate.getVisibleRect().height);for(;o&&o.y>r&&l!=null&&(l=this.getKeyAbove(l)??null,l!=null);)o=this.layoutDelegate.getItemRect(l);return l}getKeyPageBelow(e){let l=e,o=this.layoutDelegate.getItemRect(l);if(!o)return null;let r=this.layoutDelegate.getVisibleRect().height,n=Math.min(this.layoutDelegate.getContentSize().height,o.y+r);for(;o&&o.y+o.height<n;){let i=this.getKeyBelow(l);if(i==null)break;o=this.layoutDelegate.getItemRect(i),l=i;}return l}getKeyForSearch(e,l){let o=l??null;if(!this.collator)return null;let r=this.collection;if(o=l??this.getFirstKey(),o==null)return null;let n=r.getItem(o);if(!n)return null;n.type==="cell"&&(o=n.parentKey??null);let i=false;for(;o!=null;){let d=r.getItem(o);if(!d)return null;if(d.textValue){let s=d.textValue.slice(0,e.length);if(this.collator.compare(s,e)===0)return this.isRow(d)&&this.focusMode==="cell"?c$5(b$9(d,this.collection))?.key??null:d.key}o=this.findNextKey(o,s=>s.type==="item"),o==null&&!i&&(o=this.getFirstKey(),i=true);}return null}},St=class{layout;constructor(e){this.layout=e;}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}};var he=new WeakMap;function Nl(t,e,l){let{isVirtualized:o,disallowTypeAhead:r,keyboardDelegate:n,focusMode:i,scrollRef:d,getRowText:s,onRowAction:u,onCellAction:c,escapeKeyBehavior:a="clearSelection",shouldSelectOnPressUp:p}=t,{selectionManager:m}=e;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let b=a$e({usage:"search",sensitivity:"base"}),{direction:f}=b$2(),C=e.selectionManager.disabledBehavior,g=useMemo(()=>n||new ye({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:C,ref:l,direction:f,collator:b,focusMode:i}),[n,e.collection,e.disabledKeys,C,l,f,b,i]),{collectionProps:h}=c$6({ref:l,selectionManager:m,keyboardDelegate:g,isVirtualized:o,scrollRef:d,disallowTypeAhead:r,escapeKeyBehavior:a}),S=c$3(t.id);he.set(e,{keyboardDelegate:g,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:p});let T=c$7({selectionManager:m,hasItemActions:!!(u||c)}),w=a$3(t,{labelable:true}),z=useCallback(N=>{if(m.isFocused){e$3(N.currentTarget,g$2(N))||m.setFocused(false);return}e$3(N.currentTarget,g$2(N))&&m.setFocused(true);},[m]),R=useMemo(()=>({onBlur:h.onBlur,onFocus:z}),[z,h.onBlur]),A=a$m(l,{isDisabled:e.collection.size!==0}),E=c$2(w,{role:"grid",id:S,"aria-multiselectable":m.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?R:h,e.collection.size===0&&{tabIndex:A?-1:0}||void 0,T);return o&&(E["aria-rowcount"]=e.collection.size,E["aria-colcount"]=e.collection.columnCount),b$a({getRowText:s},e),{gridProps:E}}var Ze=new WeakMap;function Ct(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function _e(t,e){let l=Ze.get(t);if(!l)throw new Error("Unknown grid");return `${l}-${Ct(e)}`}function wt(t,e,l){let o=Ze.get(t);if(!o)throw new Error("Unknown grid");return `${o}-${Ct(e)}-${Ct(l)}`}function De(t,e){return [...t.collection.rowHeaderColumnKeys].map(l=>wt(t,e,l)).join(" ")}var X={"ar-AE":{ascending:"\u062A\u0635\u0627\u0639\u062F\u064A",ascendingSort:t=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${t.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0635\u0627\u0639\u062F\u064A`,columnSize:t=>`${t.value} \u0628\u0627\u0644\u0628\u0643\u0633\u0644`,descending:"\u062A\u0646\u0627\u0632\u0644\u064A",descendingSort:t=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${t.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0646\u0627\u0632\u0644\u064A`,resizerDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D Enter \u0644\u0628\u062F\u0621 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645",select:"\u062A\u062D\u062F\u064A\u062F",selectAll:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",sortable:"\u0639\u0645\u0648\u062F \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0631\u062A\u064A\u0628",collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"},"bg-BG":{ascending:"\u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449",ascendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${t.columnName} \u0432\u044A\u0432 \u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,columnSize:t=>`${t.value} \u043F\u0438\u043A\u0441\u0435\u043B\u0430`,descending:"\u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449",descendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${t.columnName} \u0432 \u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u044F\u0432\u0430\u0442\u0435",select:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435",selectAll:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0432\u0441\u0438\u0447\u043A\u043E",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u0449\u0430 \u043A\u043E\u043B\u043E\u043D\u0430",collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"},"cs-CZ":{ascending:"vzestupn\u011B",ascendingSort:t=>`\u0159azeno vzestupn\u011B podle sloupce ${t.columnName}`,columnSize:t=>`${t.value} pixel\u016F`,descending:"sestupn\u011B",descendingSort:t=>`\u0159azeno sestupn\u011B podle sloupce ${t.columnName}`,resizerDescription:"Stisknut\xEDm kl\xE1vesy Enter za\u010Dnete m\u011Bnit velikost",select:"Vybrat",selectAll:"Vybrat v\u0161e",sortable:"sloupec s mo\u017Enost\xED \u0159azen\xED",collapse:"Sbalit",expand:"Rozt\xE1hnout"},"da-DK":{ascending:"stigende",ascendingSort:t=>`sorteret efter kolonne ${t.columnName} i stigende r\xE6kkef\xF8lge`,columnSize:t=>`${t.value} pixels`,descending:"faldende",descendingSort:t=>`sorteret efter kolonne ${t.columnName} i faldende r\xE6kkef\xF8lge`,resizerDescription:"Tryk p\xE5 Enter for at \xE6ndre st\xF8rrelse",select:"V\xE6lg",selectAll:"V\xE6lg alle",sortable:"sorterbar kolonne",collapse:"Skjul",expand:"Udvid"},"de-DE":{ascending:"aufsteigend",ascendingSort:t=>`sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,columnSize:t=>`${t.value} Pixel`,descending:"absteigend",descendingSort:t=>`sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Gr\xF6\xDFen\xE4nderung dr\xFCcken",select:"Ausw\xE4hlen",selectAll:"Alles ausw\xE4hlen",sortable:"sortierbare Spalte",collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{ascending:"\u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1",ascendingSort:t=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${t.columnName} \u03C3\u03B5 \u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,columnSize:t=>`${t.value} pixel`,descending:"\u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1",descendingSort:t=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${t.columnName} \u03C3\u03B5 \u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,resizerDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE\u03C2 \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2",select:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",selectAll:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03CC\u03BB\u03C9\u03BD",sortable:"\u03A3\u03C4\u03AE\u03BB\u03B7 \u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE\u03C2",collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"},"en-US":{select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:t=>`sorted by column ${t.columnName} in ascending order`,descendingSort:t=>`sorted by column ${t.columnName} in descending order`,columnSize:t=>`${t.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"},"es-ES":{ascending:"ascendente",ascendingSort:t=>`ordenado por columna ${t.columnName} en sentido ascendente`,columnSize:t=>`${t.value} p\xEDxeles`,descending:"descendente",descendingSort:t=>`ordenado por columna ${t.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable",collapse:"Contraer",expand:"Ampliar"},"et-EE":{ascending:"t\xF5usev j\xE4rjestus",ascendingSort:t=>`sorditud veeru j\xE4rgi ${t.columnName} t\xF5usvas j\xE4rjestuses`,columnSize:t=>`${t.value} pikslit`,descending:"laskuv j\xE4rjestus",descendingSort:t=>`sorditud veeru j\xE4rgi ${t.columnName} laskuvas j\xE4rjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali k\xF5ik",sortable:"sorditav veerg",collapse:"Ahenda",expand:"Laienda"},"fi-FI":{ascending:"nouseva",ascendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan nousevassa j\xE4rjestyksess\xE4`,columnSize:t=>`${t.value} pikseli\xE4`,descending:"laskeva",descendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan laskevassa j\xE4rjestyksess\xE4`,resizerDescription:"Aloita koon muutos painamalla Enter-n\xE4pp\xE4int\xE4",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake",collapse:"Pienenn\xE4",expand:"Laajenna"},"fr-FR":{ascending:"croissant",ascendingSort:t=>`tri\xE9 en fonction de la colonne\xA0${t.columnName} par ordre croissant`,columnSize:t=>`${t.value}\xA0pixels`,descending:"d\xE9croissant",descendingSort:t=>`tri\xE9 en fonction de la colonne\xA0${t.columnName} par ordre d\xE9croissant`,resizerDescription:"Appuyez sur Entr\xE9e pour commencer le redimensionnement.",select:"S\xE9lectionner",selectAll:"S\xE9lectionner tout",sortable:"colonne triable",collapse:"R\xE9duire",expand:"D\xE9velopper"},"he-IL":{ascending:"\u05E2\u05D5\u05DC\u05D4",ascendingSort:t=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${t.columnName} \u05D1\u05E1\u05D3\u05E8 \u05E2\u05D5\u05DC\u05D4`,columnSize:t=>`${t.value} \u05E4\u05D9\u05E7\u05E1\u05DC\u05D9\u05DD`,descending:"\u05D9\u05D5\u05E8\u05D3",descendingSort:t=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${t.columnName} \u05D1\u05E1\u05D3\u05E8 \u05D9\u05D5\u05E8\u05D3`,resizerDescription:"\u05D4\u05E7\u05E9 Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05E0\u05D5\u05EA \u05D0\u05EA \u05D4\u05D2\u05D5\u05D3\u05DC",select:"\u05D1\u05D7\u05E8",selectAll:"\u05D1\u05D7\u05E8 \u05D4\u05DB\u05D5\u05DC",sortable:"\u05E2\u05DE\u05D5\u05D3\u05D4 \u05E9\u05E0\u05D9\u05EA\u05DF \u05DC\u05DE\u05D9\u05D9\u05DF",collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"},"hr-HR":{ascending:"rastu\u0107i",ascendingSort:t=>`razvrstano po stupcima ${t.columnName} rastu\u0107em redoslijedom`,columnSize:t=>`${t.value} piksela`,descending:"padaju\u0107i",descendingSort:t=>`razvrstano po stupcima ${t.columnName} padaju\u0107im redoslijedom`,resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se mo\u017Ee razvrstati",collapse:"Sa\u017Emi",expand:"Pro\u0161iri"},"hu-HU":{ascending:"n\xF6vekv\u0151",ascendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, n\xF6vekv\u0151 sorrendben`,columnSize:t=>`${t.value} k\xE9ppont`,descending:"cs\xF6kken\u0151",descendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, cs\xF6kken\u0151 sorrendben`,resizerDescription:"Nyomja le az Enter billenty\u0171t az \xE1tm\xE9retez\xE9s megkezd\xE9s\xE9hez",select:"Kijel\xF6l\xE9s",selectAll:"\xD6sszes kijel\xF6l\xE9se",sortable:"rendezend\u0151 oszlop",collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"},"it-IT":{ascending:"crescente",ascendingSort:t=>`in ordine crescente in base alla colonna ${t.columnName}`,columnSize:t=>`${t.value} pixel`,descending:"decrescente",descendingSort:t=>`in ordine decrescente in base alla colonna ${t.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile",collapse:"Comprimi",expand:"Espandi"},"ja-JP":{ascending:"\u6607\u9806",ascendingSort:t=>`\u5217 ${t.columnName} \u3092\u6607\u9806\u3067\u4E26\u3079\u66FF\u3048`,columnSize:t=>`${t.value} \u30D4\u30AF\u30BB\u30EB`,descending:"\u964D\u9806",descendingSort:t=>`\u5217 ${t.columnName} \u3092\u964D\u9806\u3067\u4E26\u3079\u66FF\u3048`,resizerDescription:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30B5\u30A4\u30BA\u5909\u66F4\u3092\u958B\u59CB",select:"\u9078\u629E",selectAll:"\u3059\u3079\u3066\u9078\u629E",sortable:"\u4E26\u3079\u66FF\u3048\u53EF\u80FD\u306A\u5217",collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"},"ko-KR":{ascending:"\uC624\uB984\uCC28\uC21C",ascendingSort:t=>`${t.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uC624\uB984\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,columnSize:t=>`${t.value} \uD53D\uC140`,descending:"\uB0B4\uB9BC\uCC28\uC21C",descendingSort:t=>`${t.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uB0B4\uB9BC\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,resizerDescription:"\uD06C\uAE30 \uC870\uC815\uC744 \uC2DC\uC791\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",select:"\uC120\uD0DD",selectAll:"\uBAA8\uB450 \uC120\uD0DD",sortable:"\uC815\uB82C \uAC00\uB2A5\uD55C \uC5F4",collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},"lt-LT":{ascending:"did\u0117jan\u010Dia tvarka",ascendingSort:t=>`surikiuota pagal stulpel\u012F ${t.columnName} did\u0117jan\u010Dia tvarka`,columnSize:t=>`${t.value} piks.`,descending:"ma\u017E\u0117jan\u010Dia tvarka",descendingSort:t=>`surikiuota pagal stulpel\u012F ${t.columnName} ma\u017E\u0117jan\u010Dia tvarka`,resizerDescription:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te keisti dyd\u012F",select:"Pasirinkti",selectAll:"Pasirinkti visk\u0105",sortable:"rikiuojamas stulpelis",collapse:"Sutraukti",expand:"I\u0161skleisti"},"lv-LV":{ascending:"augo\u0161\u0101 sec\u012Bb\u0101",ascendingSort:t=>`k\u0101rtots p\u0113c kolonnas ${t.columnName} augo\u0161\u0101 sec\u012Bb\u0101`,columnSize:t=>`${t.value} pikse\u013Ci`,descending:"dilsto\u0161\u0101 sec\u012Bb\u0101",descendingSort:t=>`k\u0101rtots p\u0113c kolonnas ${t.columnName} dilsto\u0161\u0101 sec\u012Bb\u0101`,resizerDescription:"Nospiediet Enter, lai s\u0101ktu izm\u0113ru main\u012B\u0161anu",select:"Atlas\u012Bt",selectAll:"Atlas\u012Bt visu",sortable:"k\u0101rtojam\u0101 kolonna",collapse:"Sak\u013Caut",expand:"Izv\u0113rst"},"nb-NO":{ascending:"stigende",ascendingSort:t=>`sortert etter kolonne ${t.columnName} i stigende rekkef\xF8lge`,columnSize:t=>`${t.value} piksler`,descending:"synkende",descendingSort:t=>`sortert etter kolonne ${t.columnName} i synkende rekkef\xF8lge`,resizerDescription:"Trykk p\xE5 Enter for \xE5 starte st\xF8rrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres",collapse:"Skjul",expand:"Utvid"},"nl-NL":{ascending:"oplopend",ascendingSort:t=>`gesorteerd in oplopende volgorde in kolom ${t.columnName}`,columnSize:t=>`${t.value} pixels`,descending:"aflopend",descendingSort:t=>`gesorteerd in aflopende volgorde in kolom ${t.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom",collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{ascending:"rosn\u0105co",ascendingSort:t=>`posortowano wed\u0142ug kolumny ${t.columnName} w porz\u0105dku rosn\u0105cym`,columnSize:t=>`Liczba pikseli: ${t.value}`,descending:"malej\u0105co",descendingSort:t=>`posortowano wed\u0142ug kolumny ${t.columnName} w porz\u0105dku malej\u0105cym`,resizerDescription:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z mo\u017Cliwo\u015Bci\u0105 sortowania",collapse:"Zwi\u0144",expand:"Rozwi\u0144"},"pt-BR":{ascending:"crescente",ascendingSort:t=>`classificado pela coluna ${t.columnName} em ordem crescente`,columnSize:t=>`${t.value} pixels`,descending:"decrescente",descendingSort:t=>`classificado pela coluna ${t.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para come\xE7ar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classific\xE1vel",collapse:"Recolher",expand:"Expandir"},"pt-PT":{ascending:"ascendente",ascendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem ascendente`,columnSize:t=>`${t.value} pixels`,descending:"descendente",descendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna orden\xE1vel",collapse:"Colapsar",expand:"Expandir"},"ro-RO":{ascending:"cresc\u0103toare",ascendingSort:t=>`sortate dup\u0103 coloana ${t.columnName} \xEEn ordine cresc\u0103toare`,columnSize:t=>`${t.value} pixeli`,descending:"descresc\u0103toare",descendingSort:t=>`sortate dup\u0103 coloana ${t.columnName} \xEEn ordine descresc\u0103toare`,resizerDescription:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe redimensionarea",select:"Selectare",selectAll:"Selectare total\u0103",sortable:"coloan\u0103 sortabil\u0103",collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"},"ru-RU":{ascending:"\u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u0435",ascendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${t.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044F`,columnSize:t=>`${t.value} \u043F\u0438\u043A\u0441.`,descending:"\u0443\u0431\u044B\u0432\u0430\u043D\u0438\u0435",descendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${t.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044F`,resizerDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u043E\u0432",select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439 \u0441\u0442\u043E\u043B\u0431\u0435\u0446",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},"sk-SK":{ascending:"vzostupne",ascendingSort:t=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${t.columnName}`,columnSize:t=>`Po\u010Det pixelov: ${t.value}`,descending:"zostupne",descendingSort:t=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${t.columnName}`,resizerDescription:"Stla\u010Den\xEDm kl\xE1vesu Enter za\u010Dnete zmenu ve\u013Ekosti",select:"Vybra\u0165",selectAll:"Vybra\u0165 v\u0161etko",sortable:"zoradite\u013En\xFD st\u013Apec",collapse:"Zbali\u0165",expand:"Rozbali\u0165"},"sl-SI":{ascending:"nara\u0161\u010Dajo\u010De",ascendingSort:t=>`razvr\u0161\u010Deno po stolpcu ${t.columnName} v nara\u0161\u010Dajo\u010Dem vrstnem redu`,columnSize:t=>`${t.value} slikovnih pik`,descending:"padajo\u010De",descendingSort:t=>`razvr\u0161\u010Deno po stolpcu ${t.columnName} v padajo\u010Dem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da za\u010Dnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec",collapse:"Strni",expand:"Raz\u0161iri"},"sr-SP":{ascending:"rastu\u0107i",ascendingSort:t=>`sortirano po kolonama ${t.columnName} rastu\u0107im redosledom`,columnSize:t=>`${t.value} piksela`,descending:"padaju\u0107i",descendingSort:t=>`sortirano po kolonama ${t.columnName} padaju\u0107im redosledom`,resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se mo\u017Ee sortirati",collapse:" Skupi",expand:"Pro\u0161iri"},"sv-SE":{ascending:"stigande",ascendingSort:t=>`sorterat p\xE5 kolumn ${t.columnName} i stigande ordning`,columnSize:t=>`${t.value} pixlar`,descending:"fallande",descendingSort:t=>`sorterat p\xE5 kolumn ${t.columnName} i fallande ordning`,resizerDescription:"Tryck p\xE5 Retur f\xF6r att b\xF6rja \xE4ndra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn",collapse:"D\xF6lj",expand:"Expandera"},"tr-TR":{ascending:"artan s\u0131rada",ascendingSort:t=>`${t.columnName} s\xFCtuna g\xF6re artan d\xFCzende s\u0131rala`,columnSize:t=>`${t.value} piksel`,descending:"azalan s\u0131rada",descendingSort:t=>`${t.columnName} s\xFCtuna g\xF6re azalan d\xFCzende s\u0131rala`,resizerDescription:"Yeniden boyutland\u0131rmak i\xE7in Enter'a bas\u0131n",select:"Se\xE7",selectAll:"T\xFCm\xFCn\xFC Se\xE7",sortable:"S\u0131ralanabilir s\xFCtun",collapse:"Daralt",expand:"Geni\u015Flet"},"uk-UA":{ascending:"\u0432\u0438\u0441\u0445\u0456\u0434\u043D\u0438\u0439",ascendingSort:t=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${t.columnName} \u0443 \u0432\u0438\u0441\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,columnSize:t=>`${t.value} \u043F\u0456\u043A\u0441.`,descending:"\u043D\u0438\u0437\u0445\u0456\u0434\u043D\u0438\u0439",descendingSort:t=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${t.columnName} \u0443 \u043D\u0438\u0437\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0437\u043C\u0456\u043D\u0443 \u0440\u043E\u0437\u043C\u0456\u0440\u0443",select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",selectAll:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0443\u0432\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u043E\u0432\u043F\u0435\u0446\u044C",collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"},"zh-CN":{ascending:"\u5347\u5E8F",ascendingSort:t=>`\u6309\u5217 ${t.columnName} \u5347\u5E8F\u6392\u5E8F`,columnSize:t=>`${t.value} \u50CF\u7D20`,descending:"\u964D\u5E8F",descendingSort:t=>`\u6309\u5217 ${t.columnName} \u964D\u5E8F\u6392\u5E8F`,resizerDescription:"\u6309\u201C\u8F93\u5165\u201D\u952E\u5F00\u59CB\u8C03\u6574\u5927\u5C0F\u3002",select:"\u9009\u62E9",selectAll:"\u5168\u9009",sortable:"\u53EF\u6392\u5E8F\u7684\u5217",collapse:"\u6298\u53E0",expand:"\u6269\u5C55"},"zh-TW":{ascending:"\u905E\u589E",ascendingSort:t=>`\u5DF2\u4F9D\u64DA\u300C${t.columnName}\u300D\u6B04\u905E\u589E\u6392\u5E8F`,columnSize:t=>`${t.value} \u50CF\u7D20`,descending:"\u905E\u6E1B",descendingSort:t=>`\u5DF2\u4F9D\u64DA\u300C${t.columnName}\u300D\u6B04\u905E\u6E1B\u6392\u5E8F`,resizerDescription:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u8ABF\u6574\u5927\u5C0F",select:"\u9078\u53D6",selectAll:"\u5168\u9078",sortable:"\u53EF\u6392\u5E8F\u7684\u6B04",collapse:"\u6536\u5408",expand:"\u5C55\u958B"}};var Ye=class extends ye{isCell(e){return e.type==="cell"||e.type==="rowheader"||e.type==="column"}getKeyBelow(e,l){let o=this.collection.getItem(e);if(!o)return null;if(o.type==="column"){let r=c$5(b$9(o,this.collection));if(r)return r.key;let n=this.getFirstKey();return n==null||!this.collection.getItem(n)?null:super.getKeyForItemInRowByIndex(n,o.index)}return super.getKeyBelow(e,l)}getKeyAbove(e,l){let o=this.collection.getItem(e);if(!o)return null;if(o.type==="column"){let i=o.parentKey!=null?this.collection.getItem(o.parentKey):null;return i&&i.type==="column"?i.key:null}let r=super.getKeyAbove(e,l),n=r!=null?this.collection.getItem(r):null;return n&&n.type!=="headerrow"?r:this.isCell(o)?this.collection.columns[o.index].key:this.collection.columns[0].key}findNextColumnKey(e){let l=this.findNextKey(e.key,r=>r.type==="column");if(l!=null)return l;let o=this.collection.headerRows[e.level];for(let r of b$9(o,this.collection))if(r.type==="column")return r.key;return null}findPreviousColumnKey(e){let l=this.findPreviousKey(e.key,n=>n.type==="column");if(l!=null)return l;let o=this.collection.headerRows[e.level],r=[...b$9(o,this.collection)];for(let n=r.length-1;n>=0;n--){let i=r[n];if(i.type==="column")return i.key}return null}getKeyRightOf(e){let l=this.collection.getItem(e);return l?l.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(l):this.findNextColumnKey(l):super.getKeyRightOf(e):null}getKeyLeftOf(e){let l=this.collection.getItem(e);return l?l.type==="column"?this.direction==="rtl"?this.findNextColumnKey(l):this.findPreviousColumnKey(l):super.getKeyLeftOf(e):null}getKeyForSearch(e,l){if(!this.collator)return null;let o=this.collection,r=l??this.getFirstKey();if(r==null)return null;let n=o.getItem(r);n?.type==="cell"&&(r=n.parentKey??null);let i=false;for(;r!=null;){let d=o.getItem(r);if(!d)return null;if(d.textValue){let s=d.textValue.slice(0,e.length);if(this.collator.compare(s,e)===0)return d.key}for(let s of b$9(d,this.collection)){let u=o.columns[s.index];if(o.rowHeaderColumnKeys.has(u.key)&&s.textValue){let c=s.textValue.slice(0,e.length);if(this.collator.compare(c,e)===0)return (l!=null?o.getItem(l):n)?.type==="cell"?s.key:d.key}}r=this.getKeyBelow(r),r==null&&!i&&(r=this.getFirstKey(),i=true);}return null}};function xt(t,e,l){let{keyboardDelegate:o,isVirtualized:r,layoutDelegate:n,layout:i}=t,d=a$e({usage:"search",sensitivity:"base"}),{direction:s}=b$2(),u=e.selectionManager.disabledBehavior,c=useMemo(()=>o||new Ye({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:u,ref:l,direction:s,collator:d,layoutDelegate:n,layout:i}),[o,e.collection,e.disabledKeys,u,l,s,d,n,i]),a=c$3(t.id);Ze.set(e,a);let{gridProps:p}=Nl({...t,id:a,keyboardDelegate:c},e,l);r&&(p["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),e.treeColumn!=null&&(p.role="treegrid");let{column:m,direction:b}=e.sortDescriptor||{},f=b$6(X,"@react-aria/table"),C=useMemo(()=>{let h=e.collection.columns.find(S=>S.key===m)?.textValue??"";return b&&m?f.format(`${b}Sort`,{columnName:h}):void 0},[b,m,e.collection.columns]),g=a$f(C);return c$4(()=>{C&&a$g(C,"assertive",500);},[C]),{gridProps:c$2(p,g,{"aria-describedby":[g["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function Xe(t,e,l){let{node:o,isVirtualized:r,focusMode:n="child",shouldSelectOnPressUp:i,onAction:d}=t,{direction:s}=b$2(),{keyboardDelegate:u,actions:{onCellAction:c}}=he.get(e),a=useRef(null),p=()=>{if(l.current){let h=d$6(l.current);if(n==="child"){if(i$3(l.current)&&l.current!==f$1(a$b(l.current)))return;let S=e.selectionManager.childFocusStrategy==="last"?kt(h):h.firstChild();if(S){i$2(S);return}}(a.current!=null&&o.key!==a.current||!i$3(l.current))&&i$2(l.current);}},{itemProps:m,isPressed:b}=d$4({selectionManager:e.selectionManager,key:o.key,ref:l,isVirtualized:r,focus:p,shouldSelectOnPressUp:i,onAction:c?()=>c(o.key):d,isDisabled:e.collection.size===0}),f=h=>{let S=f$1(a$b(l.current));if(!e$3(h.currentTarget,g$2(h))||e.isKeyboardNavigationDisabled||!l.current||!S)return;let T=d$6(l.current);switch(T.currentNode=S,h.key){case "ArrowLeft":{let w=s==="rtl"?T.nextNode():T.previousNode();if(n==="child"&&w===l.current&&(w=null),h.preventDefault(),h.stopPropagation(),w)i$2(w),e$4(w,{containingElement:b$c(l.current)});else {if(u.getKeyLeftOf?.(o.key)!==o.key){l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent));break}n==="cell"&&s==="rtl"?(i$2(l.current),e$4(l.current,{containingElement:b$c(l.current)})):(T.currentNode=l.current,w=s==="rtl"?T.firstChild():kt(T),w&&(i$2(w),e$4(w,{containingElement:b$c(l.current)})));}break}case "ArrowRight":{let w=s==="rtl"?T.previousNode():T.nextNode();if(n==="child"&&w===l.current&&(w=null),h.preventDefault(),h.stopPropagation(),w)i$2(w),e$4(w,{containingElement:b$c(l.current)});else {if(u.getKeyRightOf?.(o.key)!==o.key){l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent));break}n==="cell"&&s==="ltr"?(i$2(l.current),e$4(l.current,{containingElement:b$c(l.current)})):(T.currentNode=l.current,w=s==="rtl"?kt(T):T.firstChild(),w&&(i$2(w),e$4(w,{containingElement:b$c(l.current)})));}break}case "ArrowUp":case "ArrowDown":!h.altKey&&e$3(l.current,g$2(h))&&(h.stopPropagation(),h.preventDefault(),l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent)));break}},C=h=>{if(a.current=o.key,g$2(h)!==l.current){b$b()||e.selectionManager.setFocusedKey(o.key);return}requestAnimationFrame(()=>{n==="child"&&f$1(a$b(l.current))===l.current&&p();});},g=c$2(m,{role:"gridcell",onKeyDownCapture:f,"aria-colspan":o.colSpan,"aria-colindex":o.colIndex!=null?o.colIndex+1:void 0,colSpan:r?void 0:o.colSpan,onFocus:C});return r&&(g["aria-colindex"]=(o.colIndex??o.index)+1),i&&g.tabIndex!=null&&g.onPointerDown==null&&(g.onPointerDown=h=>{let S=h.currentTarget,T=S.getAttribute("tabindex");S.removeAttribute("tabindex"),requestAnimationFrame(()=>{T!=null&&S.setAttribute("tabindex",T);});}),{gridCellProps:g,isPressed:b}}function kt(t){let e=null,l=null;do l=t.lastChild(),l&&(e=l);while(l);return e}function zt(t,e,l){let{node:o}=t,r=o.props.allowsSorting,{gridCellProps:n}=Xe({...t,focusMode:"child"},e,l),i=o.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:d,isPressed:s}=d$2({isDisabled:!r||i,onPress(){e.sort(o.key);},ref:l}),{focusableProps:u}=d$3({},l),c,a=e.sortDescriptor?.column===o.key,p=e.sortDescriptor?.direction;o.props.allowsSorting&&!k$1()&&(c=a?p:"none");let m=b$6(X,"@react-aria/table"),b;r&&(b=`${m.format("sortable")}`,a&&p&&k$1()&&(b=`${b}, ${m.format(p)}`));let f=a$f(b),C=e.collection.size===0;return useEffect(()=>{C&&e.selectionManager.focusedKey===o.key&&e.selectionManager.setFocusedKey(null);},[C,e.selectionManager,o.key]),{columnHeaderProps:{...c$2(u,n,d,f,C?{tabIndex:-1}:null),role:"columnheader",id:_e(e,o.key),"aria-colspan":o.colSpan&&o.colSpan>1?o.colSpan:void 0,"aria-sort":c},isPressed:s}}function Il(t,e,l){let{node:o,isVirtualized:r,shouldSelectOnPressUp:n,onAction:i}=t,{actions:d,shouldSelectOnPressUp:s}=he.get(e),u=d.onRowAction?()=>d.onRowAction?.(o.key):i,{itemProps:c,...a}=d$4({selectionManager:e.selectionManager,key:o.key,ref:l,isVirtualized:r,shouldSelectOnPressUp:s||n,onAction:u||o?.props?.onAction?a$n(o?.props?.onAction,u):void 0,isDisabled:e.collection.size===0}),p=e.selectionManager.isSelected(o.key),m={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?p:void 0,"aria-disabled":a.isDisabled||void 0,...c};return r&&(m["aria-rowindex"]=o.index+1),{rowProps:m,...a}}var Al={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Rt(t,e,l){let{node:o,isVirtualized:r}=t,{rowProps:n,...i}=Il(t,e,l),{direction:d}=b$2();r&&e.treeColumn==null?n["aria-rowindex"]=o.index+1+e.collection.headerRows.length:delete n["aria-rowindex"];let s=e.treeColumn!=null&&(e.expandedKeys==="all"||e.expandedKeys.has(o.key)),u=b$6(X,"@react-aria/table"),c=a$k({"aria-label":s?u.format("collapse"):u.format("expand"),"aria-labelledby":De(e,o.key)}),a={},p={};if(e.treeColumn!=null){let f=e.collection.getItem(o.key);if(f!=null){let C=Gl(e.collection,o),g=f.props?.hasChildRows||f.props?.UNSTABLE_childItems||C?.type!=="cell",h=e.collection.getItem(o.parentKey),S=h.type==="tablebody"||h.type==="body",T=Gl(e.collection,h);for(;T&&T.type!=="item"&&T.prevKey!=null;)T=e.collection.getItem(T.prevKey);a={onKeyDown:w=>{w.key===Al.expand[d]&&e.selectionManager.focusedKey===f.key&&g&&e.expandedKeys!=="all"&&!e.expandedKeys.has(f.key)?(e.toggleKey(f.key),w.stopPropagation()):w.key===Al.collapse[d]&&e.selectionManager.focusedKey===f.key&&(e.expandedKeys!=="all"?g&&e.expandedKeys.has(f.key)?(e.toggleKey(f.key),w.stopPropagation()):!e.expandedKeys.has(f.key)&&f.parentKey!=null&&f.level>0&&(e.selectionManager.setFocusedKey(f.parentKey),w.stopPropagation()):e.expandedKeys==="all"&&(e.toggleKey(f.key),w.stopPropagation()));},"aria-expanded":g?e.expandedKeys==="all"||e.expandedKeys.has(o.key):void 0,"aria-level":f.level+1,"aria-posinset":f.index-(S?0:e.collection.columnCount)+1,"aria-setsize":T.index-(S?0:e.collection.columnCount)+1},p={isDisabled:i.isDisabled,onPress:()=>{i.isDisabled||(e.toggleKey(o.key),e.selectionManager.setFocused(true),e.selectionManager.setFocusedKey(o.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...c};}}let m=p$1(o.props),b=i.hasAction?m:{};return {rowProps:{...c$2(n,a,b),"aria-labelledby":De(e,o.key)},expandButtonProps:p,...i}}function Gl(t,e){return "lastChildKey"in e?e.lastChildKey!=null?t.getItem(e.lastChildKey):null:Array.from(e.childNodes).findLast(l=>l.parentKey===e.key)}function vt(t,e,l){let{node:o,isVirtualized:r}=t,n={role:"row"};return r&&e.treeColumn==null&&(n["aria-rowindex"]=o.index+1),{rowProps:n}}function Kt(t,e,l){let{gridCellProps:o,isPressed:r}=Xe(t,e,l),n=t.node.column?.key;return n!=null&&e.collection.rowHeaderColumnKeys.has(n)&&(o.role="rowheader",o.id=wt(e,t.node.parentKey,n)),{gridCellProps:o,isPressed:r}}function Dt(t,e){let{key:l}=t,{checkboxProps:o}=a$l(t,e);return {checkboxProps:{...o,"aria-labelledby":`${o.id} ${De(e,l)}`}}}function Pt(t){let{isEmpty:e,isSelectAll:l,selectionMode:o}=t.selectionManager;return {checkboxProps:{"aria-label":b$6(X,"@react-aria/table").format(o==="single"?"select":"selectAll"),isSelected:l,isDisabled:o!=="multiple"||t.collection.size===0||t.collection.rows.length===1&&t.collection.rows[0].type==="loader",isIndeterminate:!e&&!l,onChange:()=>t.selectionManager.toggleSelectAll()}}}function Mt(t$1,e,l){let{column:o,triggerRef:r,isDisabled:n,onResizeStart:i,onResize:d,onResizeEnd:s,"aria-label":u}=t$1,c=b$6(X,"@react-aria/table"),a=c$3(),p=e.resizingColumn===o.key,m=useRef(p),b=useRef(null),f$2=useRef(false),C=e.tableState.isKeyboardNavigationDisabled,{direction:g}=b$2(),h=useCallback(x=>{m.current||(b.current=e.updateResizedColumns(x.key,e.getColumnWidth(x.key)),e.startResize(x.key),e.tableState.setKeyboardNavigationDisabled(true),i?.(b.current)),m.current=true;},[e,i]),S=useCallback((x,K)=>{let V=e.updateResizedColumns(x.key,K);d?.(V),b.current=V;},[e,d]),T=useCallback(x=>{m.current&&(b.current==null&&(b.current=e.updateResizedColumns(x.key,e.getColumnWidth(x.key))),e.endResize(),e.tableState.setKeyboardNavigationDisabled(false),s?.(b.current),m.current=false,r?.current&&!f$2.current&&i$2(r.current)),b.current=null;},[e,r,s]),{keyboardProps:w}=a$i({onKeyDown:x=>{C?(x.key==="Escape"||x.key==="Enter"||x.key===" "||x.key==="Tab")&&(x.preventDefault(),T(o)):(x.continuePropagation(),x.key==="Enter"&&h(o));}}),z=useRef(0),{moveProps:R}=a$j({onMoveStart(){z.current=e.getColumnWidth(o.key),h(o);},onMove(x){let{deltaX:K,deltaY:V,pointerType:re}=x;g==="rtl"&&(K*=-1),re==="keyboard"&&(V!==0&&K===0&&(K=V*-1),K*=10),K!==0&&(z.current+=K,S(o,z.current));},onMoveEnd(x){let{pointerType:K}=x;z.current=0,(K==="mouse"||K==="touch"&&f$2.current)&&T(o);}}),A=useCallback(x=>{C&&R.onKeyDown?.(x);},[C,R]),E=Math.floor(e.getColumnMinWidth(o.key)),N=Math.floor(e.getColumnMaxWidth(o.key));N===1/0&&(N=Number.MAX_SAFE_INTEGER);let F=Math.floor(e.getColumnWidth(o.key)),U=f();U==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(U="touch");let ee=r?.current==null&&(U==="keyboard"||U==="virtual")&&!p?c.format("resizerDescription"):void 0,Z=a$f(ee),_={"aria-label":u,"aria-orientation":"horizontal","aria-labelledby":`${a} ${_e(e.tableState,o.key)}`,"aria-valuetext":c.format("columnSize",{value:F}),type:"range",min:E,max:N,value:F,...Z},te=useCallback(()=>{l.current&&i$2(l.current);},[l]),O=e.resizingColumn,Ce=useRef(null),Ee=t(h);useEffect(()=>{if(Ce.current!==O&&O!=null&&O===o.key){f$2.current=f$1(a$b(l.current))===l.current,Ee(o);let x=setTimeout(()=>te(),0),K=setTimeout(te,400);return ()=>{clearTimeout(x),clearTimeout(K);}}Ce.current=O;},[O,o,te,l]);let tt=x=>{let K=e.getColumnWidth(o.key),V=parseFloat(g$2(x).value);V>K?V=K+10:V=K-10,S(o,V);},{pressProps:we}=d$2({preventFocusOnPress:true,onPressStart:x=>{if(!(x.ctrlKey||x.altKey||x.metaKey||x.shiftKey||x.pointerType==="keyboard")){if(x.pointerType==="virtual"&&e.resizingColumn!=null){T(o);return}te(),x.pointerType!=="virtual"&&h(o);}},onPress:x=>{(x.pointerType==="touch"&&f$2.current||x.pointerType==="mouse")&&e.resizingColumn!=null&&T(o);}}),{visuallyHiddenProps:Ie}=a$c();return {resizerProps:c$2(w,{...R,onKeyDown:A},we,{style:{touchAction:"none"}}),inputProps:c$2(Ie,{id:a,onBlur:()=>{T(o);},onChange:tt,disabled:n},_),isResizing:p}}function Ll(){return {rowGroupProps:{role:"rowgroup"}}}function qe(){return Ll()}var Nt=class extends g{headerRows=[];columns=[];rows=[];rowHeaderColumnKeys=new Set;head=new Qe(-1);columnsDirty=true;expandedKeys=new Set;withExpandedKeys(e){let l=this.clone();return l.expandedKeys=e,l.frozen=this.frozen,l.rows=Array.from(l.getRows()),l}addNode(e){super.addNode(e),this.columnsDirty||=e.type==="column",e.type==="tableheader"&&(this.head=e);}getRows(){let e=[];for(let l of this)(l.type==="tablebody"||l.type==="tablefooter")&&e.push(...this.getChildren(l.key));return e}get body(){for(let e of this)if(e.type==="tablebody")return e;return new et(-2)}commit(e,l,o=false){this.updateColumns(o),this.firstKey=e,this.lastKey=l,this.rows=[];for(let r of this.getRows()){let n=r.lastChildKey;if(n!=null){let i=this.getItem(n);for(;i&&i.type!=="cell";)i=i.prevKey!=null?this.getItem(i.prevKey):null;if(i){let d=(i.colIndex??i.index)+(i.colSpan??1);if(d!==this.columns.length&&!o)throw new Error(`Cell count must match column count. Found ${d} cells and ${this.columns.length} columns.`)}}this.rows.push(r);}super.commit(e,l,o);}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let l=new Map,o=r=>{r.type==="column"&&(l.set(r.key,r),r.hasChildNodes||(r.index=this.columns.length,this.columns.push(r),r.props.isRowHeader&&this.rowHeaderColumnKeys.add(r.key)));for(let n of this.getChildren(r.key))o(n);};for(let r of this.getChildren(this.head.key))o(r);if(this.headerRows=je(l,this.columns),this.columnsDirty=false,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let l=this.getItem(e);l&&(yield l),e=l?.nextKey??null;}}getFirstKey(){for(let e of this)if(e.type==="tablebody")return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let l=this.getItem(e);for(;l?.lastChildKey!=null&&(l.type!=="item"||this.expandedKeys.has(l.key));)l=this.getItem(l.lastChildKey);return l?.key}getKeyAfter(e){let l=this.getItem(e);if(l?.type==="column")return l.nextKey??null;if(!l)return null;if(l.type==="item"&&l.firstChildKey!=null&&this.expandedKeys.has(l.key)){let o=this.getItem(l.firstChildKey);for(;o;){if(o.type==="item")return o.key;o=o.nextKey!=null?this.getItem(o.nextKey):null;}}return super.getKeyAfter(e)}getKeyBefore(e){let l=this.getItem(e);if(l?.type==="column")return l.prevKey??null;if(!l)return null;let o=null;if(l.prevKey!=null){for(l=this.getItem(l.prevKey);l&&(l.type!=="item"||this.expandedKeys.has(l.key))&&l.lastChildKey!=null;)l=this.getItem(l.lastChildKey);o=l?.key??null;}return o==null&&(o=l.parentKey),o!=null&&this.getItem(o)?.type==="tableheader"?null:o}getChildren(e){let l=this.getItem(e);if(!l){for(let r of this.headerRows)if(r.key===e)return r.childNodes}let o=this;return l?.type==="tablebody"||l?.type==="tablefooter"?{*[Symbol.iterator](){let r=l.firstChildKey,n=r!=null?o.getItem(r):null;for(;n;){yield n;let i=o.getKeyAfter(n.key);if(n=i!=null?o.getItem(i):null,n&&n.parentKey===l.parentKey)break}}}:{*[Symbol.iterator](){let r=o.getItem(e),n=r?.firstChildKey!=null?o.getItem(r.firstChildKey):null;for(;n&&(yield n,n=n.nextKey!=null?o.getItem(n.nextKey):null,!(r?.type==="item"&&n?.type!=="cell")););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let l=this.getItem(e);if(!l)return "";if(l.textValue)return l.textValue;let o=this.rowHeaderColumnKeys,r=[];for(let n of this.getChildren(e)){let i=this.columns[n.index];if(o.has(i.key)&&n.textValue&&r.push(n.textValue),r.length===o.size)break}return r.join(" ")}},Lt=createContext(null);forwardRef(function(e$1,l){let o=a(l),r=useRef(null),n=useRef(null),[i,d]=useState(0);a$1(()=>{let u=r.current;for(;u&&u!==o.current&&!a$2(u);)u=u.parentElement;n.current=u;},[o]),e({ref:n,box:"border-box",onResize(){d(n.current?.clientWidth??0);}}),a$1(()=>{d(n.current?.clientWidth??0);},[]);let s=useMemo(()=>({tableRef:r,scrollRef:n,tableWidth:i,useTableColumnResizeState:ht,onResizeStart:e$1.onResizeStart,onResize:e$1.onResize,onResizeEnd:e$1.onResizeEnd}),[r,i,e$1.onResizeStart,e$1.onResize,e$1.onResizeEnd]);return jsx(h.div,{render:e$1.render,...a$3(e$1,{global:true}),ref:o,className:e$1.className||"react-aria-ResizableTableContainer",style:e$1.style,onScroll:e$1.onScroll,children:jsx(Lt.Provider,{value:s,children:e$1.children})})});var oo=createContext(null),q=createContext(null),Ht=createContext(null),Ca=forwardRef(function(e,l$1){[e,l$1]=e$1(e,l$1,oo);let o=a$4(e),{selectionBehavior:r,selectionMode:n,disallowEmptySelection:i$1}=o,d=!!e.dragAndDropHooks?.useDraggableCollectionState,s=useMemo(()=>({selectionBehavior:n==="none"?null:r,selectionMode:n,disallowEmptySelection:i$1,allowsDragging:d}),[r,n,i$1,d]),u=jsx(io.Provider,{value:s,children:jsx(l,{...e})});return jsx(i,{content:u,createCollection:()=>new Nt,children:c=>jsx(no,{props:e,forwardedRef:l$1,selectionState:o,collection:c})})}),ro=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.table,{...e,ref:l})}),Hl={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function no({props:t,forwardedRef:e,selectionState:l,collection:o}){[t,e]=e$1(t,e,b);let{shouldUseVirtualFocus:r$1,disallowTypeAhead:n,filter:i,...d}=t,s$1=useContext(Lt);e=a(useMemo(()=>b$1(e,s$1?.tableRef),[e,s$1?.tableRef]));let[u,c$3]=a$5(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);o=useMemo(()=>o.withExpandedKeys(u),[o,u]);let a$1=gt({...d,collection:o,children:void 0,UNSAFE_selectionState:l,expandedKeys:u,onExpandedChange:c$3}),p$1=Tt(a$1,i),{isVirtualized:m,layoutDelegate:b$5,dropTargetDelegate:f,CollectionRoot:C}=useContext(p),{dragAndDropHooks:g}=t,{gridProps:h}=xt({...d,layoutDelegate:b$5,isVirtualized:m},p$1,e),S=p$1.selectionManager,T=!!g?.useDraggableCollectionState,w$1=!!g?.useDroppableCollectionState,z=useRef(T),R=useRef(w$1);useEffect(()=>{process.env.NODE_ENV!=="production"&&(z.current!==T&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),R.current!==w$1&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[T,w$1]);let A,E,N,F=false,U=null,ee=useRef(null),{direction:Z}=b$2(),[_]=useState(()=>new a$6);if(T&&g){A=g.useDraggableCollectionState({collection:p$1.collection,selectionManager:S,preview:g.renderDragPreview?ee:void 0}),g.useDraggableCollection({},A,e);let K=g.DragPreview;U=g.renderDragPreview?jsx(K,{ref:ee,children:g.renderDragPreview}):null;}if(w$1&&g){E=g.useDroppableCollectionState({collection:p$1.collection,selectionManager:S});let K=new b$3({collection:p$1.collection,disabledKeys:S.disabledKeys,disabledBehavior:S.disabledBehavior,ref:e,layoutDelegate:b$5}),V=g.dropTargetDelegate||f||new g.ListDropTargetDelegate(o.rows,e);_.setup(V,a$1,Z),N=g.useDroppableCollection({keyboardDelegate:K,dropTargetDelegate:_,onDropActivate:re=>{if(re.target.type==="item"){let W=re.target.key,xe=a$1.collection.getItem(W),Wl=u.has(W);xe&&xe.hasChildNodes&&(!Wl||g?.isVirtualDragging?.())&&a$1.toggleKey(W);}},onKeyDown:re=>{let W=E?.target;if(W&&W.type==="item"&&W.dropPosition==="on"){let xe=a$1.collection.getItem(W.key);(re.key===Hl.expand[Z]&&xe?.hasChildNodes&&!a$1.expandedKeys.has(W.key)||re.key===Hl.collapse[Z]&&xe?.hasChildNodes&&a$1.expandedKeys.has(W.key))&&a$1.toggleKey(W.key);}}},E,e),F=E.isDropTarget({type:"root"});}let{focusProps:te,isFocused:O,isFocusVisible:Ce}=a$7(),Ee=c({...t,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:F,isFocused:O,isFocusVisible:Ce,state:p$1}}),tt=!!(T&&!A?.isDisabled),we=Ee.style,Ie=null;s$1&&(Ie=s$1.useTableColumnResizeState({tableWidth:s$1.tableWidth},p$1),m||(we={...we,tableLayout:"fixed",width:"min-content"}));let x=a$3(t,{global:true});return jsxs(b$4,{values:[[q,p$1],[Ht,Ie],[r,{dragAndDropHooks:g,dragState:A,dropState:E}],[s,{render:po}],[b,null],[c$1,null]],children:[jsx(a$8,{children:jsx(ro,{...c$2(x,Ee,h,te,N?.collectionProps),style:we,ref:e,slot:t.slot||void 0,onScroll:t.onScroll,"data-allows-dragging":tt||void 0,"data-drop-target":F||void 0,"data-focused":O||void 0,"data-focus-visible":Ce||void 0,children:jsx(w,{children:jsx(C,{collection:p$1.collection,scrollRef:s$1?.scrollRef??e,persistedKeys:v(S,g,E)})})})}),U]})}var io=createContext(null);var Qe=class extends a$h{static type="tableheader"},ao=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.thead,{...e,ref:l})}),wa=k(Qe,(t,e)=>{let l=useContext(q).collection,o=h$1({items:l.headerRows,children:useCallback(s=>{if(s.type==="headerrow")return jsx(co,{item:s});throw new Error("Unsupported node type in TableHeader: "+s.type)},[])}),{rowGroupProps:r}=qe(),{hoverProps:n,isHovered:i}=a$9({onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),d=c({...t,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:i}});return jsx(ao,{...c$2(a$3(t,{global:true}),r,n),...d,ref:e,"data-hovered":i||void 0,children:o})},t=>jsx(l,{dependencies:t.dependencies,items:t.columns,children:t.children})),so=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx("div",{...e,ref:l}):jsx("tr",{...e,ref:l})});function co({item:t}){let e=useRef(null),l=useContext(q),{isVirtualized:o,CollectionBranch:r}=useContext(p),{rowProps:n}=vt({node:t,isVirtualized:o},l),{checkboxProps:i}=Pt(l);return jsx(so,{...n,ref:e,children:jsx(b$4,{values:[[a$a,{slots:{selection:i}}],[b$5,{slots:{selection:i}}]],children:jsx(r,{collection:l.collection,parent:t})})})}var Et=class extends a$h{static type="column"},uo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.th,{...e,ref:l})}),xa=j(Et,(t,e,l)=>{let o=a(e),r=useContext(q),{isVirtualized:n$1}=useContext(p),{columnHeaderProps:i,isPressed:d}=zt({node:l,isVirtualized:n$1},r,o),{isFocused:s,isFocusVisible:u,focusProps:c$1}=a$7(),a$1=useContext(Ht),p$1=false;if(a$1)p$1=a$1.resizingColumn===l.key;else if(process.env.NODE_ENV!=="production")for(let h in ["width","defaultWidth","minWidth","maxWidth"])h in l.props&&console.warn(`The ${h} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:m,isHovered:b}=a$9({isDisabled:!t.allowsSorting}),f=c({...t,id:void 0,children:l.rendered,defaultClassName:"react-aria-Column",values:{isHovered:b,isPressed:d,isFocused:s,isFocusVisible:u,allowsSorting:l.props.allowsSorting,sortDirection:r.sortDescriptor?.column===l.key?r.sortDescriptor.direction:void 0,isResizing:p$1,startResize:()=>{if(a$1)a$1.startResize(l.key),r.setKeyboardNavigationDisabled(true);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:h=>{r.sort(l.key,h);}}}),C=f.style;a$1&&(C={...C,width:a$1.getColumnWidth(l.key)});let g=a$3(t,{global:true});return delete g.id,jsx(uo,{...c$2(g,i,c$1,m),...f,style:C,ref:o,"data-hovered":b||void 0,"data-pressed":d||void 0,"data-focused":s||void 0,"data-focus-visible":u||void 0,"data-resizing":p$1||void 0,"data-allows-sorting":l.props.allowsSorting||void 0,"data-sort-direction":r.sortDescriptor?.column===l.key?r.sortDescriptor.direction:void 0,children:jsx(b$4,{values:[[Fl,{column:l,triggerRef:o}],[p,n]],children:f.children})})}),Fl=createContext(null);forwardRef(function(e,l){let o=useContext(Ht);if(!o)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let r=b$6(Rl,"react-aria-components"),{onResizeStart:n,onResize:i,onResizeEnd:d}=useContext(Lt),{column:s,triggerRef:u}=useContext(Fl),c$1=useRef(null),{resizerProps:a$1,inputProps:p,isResizing:m}=Mt({column:s,"aria-label":e["aria-label"]||r.format("tableResizer"),onResizeStart:n,onResize:i,onResizeEnd:d,triggerRef:u},o,c$1),{focusProps:b,isFocused:f,isFocusVisible:C}=a$7(),{hoverProps:g,isHovered:h$1}=a$9(e),S=o.getColumnMinWidth(s.key)>=o.getColumnWidth(s.key),T=o.getColumnMaxWidth(s.key)<=o.getColumnWidth(s.key),{direction:w}=b$2(),z="both";S?z=w==="rtl"?"right":"left":T?z=w==="rtl"?"left":"right":z="both";let R=a(l),[A,E]=useState("");useEffect(()=>{if(!R.current)return;let _=b$7(R.current).getComputedStyle(R.current);E(_.cursor);},[R,z]);let N=c({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:f,isFocusVisible:C,isResizing:m,isHovered:h$1,resizableDirection:z}}),[F,U]=useState(false),ee=_=>{_.pointerType==="mouse"&&U(true);};!m&&F&&U(false);let Z=a$3(e,{global:true});return jsxs(h.div,{ref:R,role:"presentation",...c$2(Z,N,a$1,{onPointerDown:ee},g),"data-hovered":h$1||void 0,"data-focused":f||void 0,"data-focus-visible":C||void 0,"data-resizing":m||void 0,"data-resizable-direction":z,children:[N.children,jsx("input",{ref:c$1,...c$2(p,b)}),m&&F&&lo.createPortal(jsx("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:A}}),a$b(R.current).body)]})});var et=class extends b$8{static type="tablebody"},mo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tbody,{...e,ref:l})}),za=k(et,(t,e,l)=>{let o=useContext(q),{isVirtualized:r$1}=useContext(p),n=o.collection,{CollectionBranch:i}=useContext(p),{dragAndDropHooks:d,dropState:s}=useContext(r),u$1=!!d?.useDroppableCollectionState&&!s?.isDisabled,c$1=u$1&&!!s&&(s.isDropTarget({type:"root"})??false),a=n.size===0,p$1={isDropTarget:c$1,isEmpty:a},m=c({...t,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:p$1}),b,f=n.columnCount;if(a&&t.renderEmptyState&&o){let h={},S={},T={};r$1?(S["aria-colspan"]=f,T={display:"contents"}):S.colSpan=f,b=jsx(ge,{role:"row",...h,style:T,children:jsx(Te,{role:"rowheader",...S,style:T,children:t.renderEmptyState(p$1)})});}let{rowGroupProps:C}=qe(),g=a$3(t,{global:true});return jsxs(mo,{...c$2(g,m,C),ref:e,"data-empty":a||void 0,children:[u$1&&jsx(go,{}),jsx(i,{collection:n,parent:l,renderDropIndicator:u(d,s)}),b]})});forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tfoot,{...e,ref:l})});var Ol=createContext({isFocusVisibleWithinRow:false}),It=class extends a$h{static type="item";filter(e,l,o){let r=e.getChildren(this.key);for(let n of r)if(o(n.textValue,n)){let i=this.clone();return l.addDescendants(i,e),i}return null}},ge=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tr,{...e,ref:l})}),va=k(It,(t,e,l)=>{let o=a(e),r$1=useContext(q),{dragAndDropHooks:n,dragState:i,dropState:d$1}=useContext(r),{isVirtualized:s,CollectionBranch:u}=useContext(p),c$1=i&&!(i.isDisabled||i.selectionManager.isDisabled(l.key)),{rowProps:a$1,expandButtonProps:p$1,...m}=Rt({node:l,shouldSelectOnPressUp:!!i,isVirtualized:s},r$1,o),{isFocused:b,isFocusVisible:f,focusProps:C}=a$7(),{isFocusVisible:g,focusProps:h}=a$7({within:true}),{hoverProps:S,isHovered:T}=a$9({isDisabled:!m.allowsSelection&&!m.hasAction&&!c$1,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{checkboxProps:w}=Dt({key:l.key},r$1),z;i&&n&&(z=n.useDraggableItem({key:l.key,hasDragButton:true},i,o));let R,A=useRef(null),{visuallyHiddenProps:E}=a$c();d$1&&n&&(R=n.useDropIndicator({target:{type:"item",key:l.key,dropPosition:"on"}},d$1,A));let N=useRef(null);useEffect(()=>{i&&!N.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let F=i&&i.isDragging(l.key),{children:U,...ee}=t,Z=t.hasChildItems||r$1.collection.getItem(l.lastChildKey)?.type!=="cell",_=Z&&r$1.expandedKeys.has(l.key),te=c({...ee,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":l.level+1},values:{...m,state:r$1,isHovered:T,isFocused:b,isFocusVisible:f,selectionMode:r$1.selectionManager.selectionMode,selectionBehavior:r$1.selectionManager.selectionBehavior,isDragging:F,isDropTarget:R?.isDropTarget,isFocusVisibleWithin:g,id:l.key,hasChildItems:Z,isExpanded:_,level:l.level+1}}),O=a$3(t,{global:true});return delete O.id,delete O.onClick,jsxs(Fragment,{children:[R&&!R.isHidden&&jsx(ge,{role:"row",style:{height:0},children:jsx(Te,{role:"gridcell",colSpan:r$1.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...E,...R.dropIndicatorProps,ref:A})})}),jsx(ge,{...c$2(O,te,a$1,C,S,z?.dragProps,h),ref:o,"data-disabled":m.isDisabled||void 0,"data-selected":m.isSelected||void 0,"data-hovered":T||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":f||void 0,"data-pressed":m.isPressed||void 0,"data-dragging":F||void 0,"data-drop-target":R?.isDropTarget||void 0,"data-selection-mode":r$1.selectionManager.selectionMode==="none"?void 0:r$1.selectionManager.selectionMode,"data-focus-visible-within":g||void 0,"data-expanded":_||void 0,"data-has-child-items":Z||void 0,"data-level":l.level+1,children:jsx(b$4,{values:[[a$a,{slots:{[a$d]:{},selection:w}}],[b$5,{slots:{[a$d]:{},selection:w}}],[d,{slots:{[a$d]:{},chevron:p$1,drag:{...z?.dragButtonProps,ref:N,style:{pointerEvents:"none"}}}}],[x,{isSelected:m.isSelected}],[Ol,{isFocusVisibleWithinRow:g}]],children:jsx(u,{collection:r$1.collection,parent:l})})})]})},t=>{if(t.id==null&&typeof t.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let e=[t.value].concat(t.dependencies);return jsx(l,{dependencies:e,items:t.columns,idScope:t.id,children:t.children})}),At=class extends a$h{static type="cell"},Te=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.td,{...e,ref:l})}),Ka=j(At,(t,e,l)=>{let o=a(e),r$1=useContext(q),{dragState:n$1}=useContext(r),{isVirtualized:i}=useContext(p);l.column=r$1.collection.columns[l.index];let{gridCellProps:d,isPressed:s}=Kt({node:l,shouldSelectOnPressUp:!!n$1,isVirtualized:i},r$1,o),{isFocused:u,isFocusVisible:c$1,focusProps:a$1}=a$7(),{hoverProps:p$1,isHovered:m}=a$9({}),{isFocusVisibleWithinRow:b}=useContext(Ol),f=l.parentKey!=null?r$1.selectionManager.isSelected(l.parentKey):false,C=l.colIndex||l.index,g=r$1.collection.getItem(l.parentKey),h=g.props.hasChildItems||r$1.collection.getItem(g.lastChildKey)?.type!=="cell",S=h&&r$1.expandedKeys.has(l.parentKey),T=r$1.selectionManager.isDisabled(l.parentKey),w=c({...t,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:u,isFocusVisible:c$1,isFocusVisibleWithinRow:b,isPressed:s,isHovered:m,isSelected:f,id:l.key,columnIndex:C,hasChildItems:h,isExpanded:S,isDisabled:T,level:g.level+1,isTreeColumn:l.column.key===r$1.treeColumn}}),z=a$3(t,{global:true});return delete z.id,jsx(Te,{...c$2(z,w,d,a$1,p$1),ref:o,"data-focused":u||void 0,"data-focus-visible":c$1||void 0,"data-focus-visible-within-row":b||void 0,"data-pressed":s||void 0,"data-selected":f||void 0,"data-column-index":C,"data-expanded":S||void 0,"data-has-child-items":h||void 0,"data-level":g.level+1,"data-tree-column":l.column.key===r$1.treeColumn||void 0,"data-disabled":T||void 0,children:jsx(p.Provider,{value:n,children:w.children})})});function po(t,e){e=a(e);let{dragAndDropHooks:l,dropState:o}=useContext(r),r$1=useRef(null),{dropIndicatorProps:n,isHidden:i,isDropTarget:d}=l.useDropIndicator(t,o,r$1);if(i)return null;let s=o&&t.target.type==="item"?(o.collection.getItem(t.target.key)?.level||0)+1:1;return jsx(ho,{...t,dropIndicatorProps:n,isDropTarget:d,buttonRef:r$1,level:s,ref:e})}var bo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tr,{...e,ref:l})}),fo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.td,{...e,ref:l})});function yo(t,e){let{dropIndicatorProps:l,isDropTarget:o,buttonRef:r,level:n,...i}=t,d=useContext(q),{visuallyHiddenProps:s}=a$c(),u=c({...i,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":n+1},values:{isDropTarget:o}});return jsx(bo,{...a$3(t,{global:true}),...u,role:"row",ref:e,"data-drop-target":o||void 0,"aria-level":n,children:jsxs(fo,{role:"gridcell",colSpan:d.collection.columnCount,style:{padding:0},children:[jsx("div",{...s,role:"button",...l,ref:r}),u.children]})})}var ho=forwardRef(yo);function go(){let t=useContext(q),{dragAndDropHooks:e,dropState:l}=useContext(r),o=useRef(null),{dropIndicatorProps:r$1}=e.useDropIndicator({target:{type:"root"}},l,o),n=l.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=a$c();return !n&&r$1["aria-hidden"]?null:jsx(ge,{role:"row","aria-hidden":r$1["aria-hidden"],style:{height:0},children:jsx(Te,{role:"gridcell",colSpan:t.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...i,...r$1,ref:o})})})}var Da=j(d$1,function(e,l,o){let r=useContext(q),{isVirtualized:n}=useContext(p),{isLoading:i,onLoadMore:d,scrollOffset:s,...u}=e,c$1=r.collection.columns.length,a=useRef(null),p$1=useMemo(()=>({onLoadMore:d,collection:r?.collection,sentinelRef:a,scrollOffset:s}),[d,s,r?.collection]);h$2(p$1,a);let m=c({...u,id:void 0,children:o.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":o.level+1},values:void 0}),b={},f={},C={};return n?(f["aria-colspan"]=c$1,C={display:"contents"}):f.colSpan=c$1,jsxs(Fragment,{children:[jsx(ge,{style:{height:0},inert:i$1(true),children:jsx(Te,{style:{padding:0,border:0},children:jsx("div",{"data-testid":"loadMoreSentinel",ref:a,style:{position:"relative",height:1,width:1}})})}),i&&m.children&&jsx(ge,{...c$2(a$3(e,{global:true}),b),...m,role:"row",ref:l,"aria-level":o.level+1,"data-level":o.level+1,children:jsx(Te,{role:"rowheader",...f,style:C,children:m.children})})]})});export{Ue as a,Ht as b,Ca as c,wa as d,xa as e,za as f,va as g,Ka as h,Da as i};
@@ -1,10 +0,0 @@
1
- import {a as a$8}from'./chunk-DRYSJSKA.mjs';import {a as a$1,b as b$2}from'./chunk-KY3JKXSX.mjs';import {a as a$6}from'./chunk-XUJJMAKM.mjs';import {b as b$1,c as c$1}from'./chunk-GX2IOGYR.mjs';import {a as a$5}from'./chunk-2V323KAD.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-K6X2BHPP.mjs';import {a as a$2}from'./chunk-3FYY26ED.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon as CaretLeftIcon$3,CaretRightIcon as CaretRightIcon$3}from'@baseline-ui/icons/12';import {CaretLeftIcon as CaretLeftIcon$2,CaretRightIcon as CaretRightIcon$2}from'@baseline-ui/icons/16';import {CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1}from'@baseline-ui/icons/20';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import D from'react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var T=a({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),j="_1nsi9h1f _1yep5z6me _1yep5z6m6 _1yep5z6ey",k=a({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6g9 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z610e",sm:"_1nsi9h12 _1yep5z610h",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6zq _1yep5z6190 _1yep5z618y _1yep5z613y",pinned:"_1yep5z618m"}},defaultVariants:{},compoundVariants:[]}),w=a({defaultClassName:"_1nsi9h1g _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]});var ue={style:"decimal"},ce={xs:[CaretLeftIcon$3,CaretRightIcon$3],sm:[CaretLeftIcon$2,CaretRightIcon$2],md:[CaretLeftIcon$1,CaretRightIcon$1],lg:[CaretLeftIcon,CaretRightIcon]},E=D.forwardRef(({className:H,style:U,minValue:S=1,defaultValue:q=1,incrementAriaLabel:K,decrementAriaLabel:O,"aria-label":G,size:a="md",variant:t="floating",hideActions:_,isDisabled:o,pageXofYLabel:m,...s},X)=>{let{locale:Y}=b(),r=b$1(),h={...s,formatOptions:ue,minValue:S,incrementAriaLabel:K||r.formatMessage(l.nextPage),decrementAriaLabel:O||r.formatMessage(l.prevPage),defaultValue:q,"aria-label":G||r.formatMessage(l.goToPage)},u=D.useRef(null),i=a$1({...h,locale:Y}),{inputProps:c$1,decrementButtonProps:z,incrementButtonProps:b$3,groupProps:$}=b$2({...h,onKeyDown:C=>{C.key==="Enter"&&u.current?.blur(),s.onKeyDown?.(C);},isDisabled:o},i,u),{hoverProps:J,isHovered:Q}=a$2({}),{focusProps:W,isFocused:P,isFocusVisible:Z}=a$3(),v=t==="floating",[ee,ae]=ce[a],te=a$4({"data-focus-visible":Z,"data-focused":P,"data-hovered":Q,"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"]});return jsxs("div",{...c($,J,te),className:a$7(k({size:a,variant:t}),"BaselineUI-Pagination",H),style:U,ref:X,children:[_?null:jsxs(Fragment,{children:[jsx(a$5,{icon:ee,...z,elementType:"div",size:a,style:{height:"100%",...v&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:o||z.isDisabled}),t==="floating"&&jsx(a$6,{orientation:"vertical"})]}),jsxs("div",{className:T({isFocused:P,variant:t,size:a}),"aria-label":(typeof m=="function"?m({page:i.numberValue,totalPages:i.maxValue}):m)??r.formatMessage(l.pageXofY,{arg0:c$1.value,arg1:i.maxValue}),children:[jsx("input",{...c(c$1,W),ref:u,className:a$7("BaselineUI-Pagination-Input",j),style:{width:`${c$1.value?.toString().length||1}ch`}}),jsxs("span",{className:w({isDisabled:o}),children:["/ ",jsx(a$8,{value:i.maxValue})]})]}),_?null:jsxs(Fragment,{children:[t==="floating"&&jsx(a$6,{orientation:"vertical"}),jsx(a$5,{icon:ae,...b$3,elementType:"div",size:a,style:{height:"100%",...v&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:o||b$3.isDisabled})]})]})});E.displayName="Pagination";var l=c$1({nextPage:{defaultMessage:"Next Page",id:"bui.pagination.nextPage"},prevPage:{defaultMessage:"Previous Page",id:"bui.pagination.prevPage"},goToPage:{defaultMessage:"Go to Page",id:"bui.pagination.goToPage"},pageXofY:{defaultMessage:"Page {arg0} of {arg1}",id:"bui.pagination.pageXofY"}});export{E as a};
@@ -1,10 +0,0 @@
1
- import {d}from'./chunk-AQYBKDT2.mjs';import {b}from'./chunk-TZ4MVY4E.mjs';import r from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var m=r.forwardRef(({className:a,style:n,node:e,"data-block-id":p,"data-block-class":l,...f},c)=>{let o=r.useRef(null);r.useEffect(()=>{let s=o.current;return s?.append(e),()=>{s?.contains(e)&&e.remove();}},[e]);let{pressProps:i,isPressed:R}=d(f);return jsx("div",{...i,className:a,style:n,"data-block-id":p,"data-block-class":l,"data-pressed":R,"data-testid":"dom-node-renderer",ref:b(c,o)})});m.displayName="DomNodeRenderer";export{m as a};