@baseline-ui/core 3.4.0 → 3.6.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 (296) hide show
  1. package/dist/Accordion.mjs +1 -1
  2. package/dist/ActionButton.mjs +1 -1
  3. package/dist/ActionGroup.mjs +1 -1
  4. package/dist/ActionIconButton.mjs +1 -1
  5. package/dist/Actionable.mjs +1 -1
  6. package/dist/AlertDialog.css +1 -1
  7. package/dist/AlertDialog.mjs +1 -1
  8. package/dist/AudioPlayer.css +1 -1
  9. package/dist/AudioPlayer.mjs +1 -1
  10. package/dist/Avatar.mjs +1 -1
  11. package/dist/Breadcrumbs.css +10 -0
  12. package/dist/Breadcrumbs.mjs +1 -0
  13. package/dist/ButtonSelect.mjs +1 -1
  14. package/dist/Calendar.mjs +1 -1
  15. package/dist/Checkbox.mjs +1 -1
  16. package/dist/ColorInput.css +1 -1
  17. package/dist/ColorInput.mjs +1 -1
  18. package/dist/ColorSwatch.mjs +1 -1
  19. package/dist/ColorSwatchPicker.mjs +1 -1
  20. package/dist/ComboBox.mjs +1 -1
  21. package/dist/DateField.mjs +1 -1
  22. package/dist/Dialog.css +1 -1
  23. package/dist/Dialog.mjs +1 -1
  24. package/dist/Disclosure.mjs +1 -1
  25. package/dist/DomNodeRenderer.mjs +1 -1
  26. package/dist/Drawer.css +1 -1
  27. package/dist/Drawer.mjs +1 -1
  28. package/dist/Editor.css +1 -1
  29. package/dist/Editor.mjs +1 -1
  30. package/dist/FileInput.mjs +1 -1
  31. package/dist/FileList.mjs +1 -1
  32. package/dist/FileUploader.mjs +1 -1
  33. package/dist/FrameProvider.mjs +1 -1
  34. package/dist/FreehandCanvas.mjs +1 -1
  35. package/dist/GridList.mjs +1 -1
  36. package/dist/I18nProvider.mjs +1 -1
  37. package/dist/Icon.mjs +1 -1
  38. package/dist/ImageDropZone.mjs +1 -1
  39. package/dist/ImageGallery.css +1 -1
  40. package/dist/ImageGallery.mjs +1 -1
  41. package/dist/InlineAlert.mjs +1 -1
  42. package/dist/InlineToolbar.mjs +1 -1
  43. package/dist/Kbd.mjs +1 -1
  44. package/dist/Link.mjs +1 -1
  45. package/dist/ListBox.mjs +1 -1
  46. package/dist/Menu.mjs +1 -1
  47. package/dist/MessageFormat.mjs +1 -1
  48. package/dist/Modal.mjs +1 -1
  49. package/dist/NumberInput.mjs +1 -1
  50. package/dist/Pagination.mjs +1 -1
  51. package/dist/Panel.mjs +1 -1
  52. package/dist/PointPicker.mjs +1 -1
  53. package/dist/Popover.mjs +1 -1
  54. package/dist/Portal.mjs +1 -1
  55. package/dist/Preview.mjs +1 -1
  56. package/dist/ProgressBar.mjs +1 -1
  57. package/dist/RadioGroup.mjs +1 -1
  58. package/dist/Reaction.mjs +1 -1
  59. package/dist/ScrollControlButton.mjs +1 -1
  60. package/dist/SearchInput.mjs +1 -1
  61. package/dist/Select.mjs +1 -1
  62. package/dist/Slider.css +1 -1
  63. package/dist/Slider.mjs +1 -1
  64. package/dist/Stepper.mjs +1 -1
  65. package/dist/Switch.mjs +1 -1
  66. package/dist/Table.css +1 -1
  67. package/dist/Table.mjs +1 -1
  68. package/dist/Tabs.mjs +1 -1
  69. package/dist/Tag.mjs +1 -1
  70. package/dist/TagGroup.mjs +1 -1
  71. package/dist/TaggedPagination.mjs +1 -1
  72. package/dist/Text.mjs +1 -1
  73. package/dist/TextInput.mjs +1 -1
  74. package/dist/ThemeProvider.mjs +1 -1
  75. package/dist/TimeField.mjs +1 -1
  76. package/dist/Toast.mjs +1 -1
  77. package/dist/ToggleButton.mjs +1 -1
  78. package/dist/ToggleIconButton.mjs +1 -1
  79. package/dist/Toolbar.mjs +1 -1
  80. package/dist/Tooltip.mjs +1 -1
  81. package/dist/TreeView.mjs +1 -1
  82. package/dist/UNSAFE_ListBox.mjs +1 -1
  83. package/dist/Virtualizer.mjs +1 -1
  84. package/dist/chunk-23WMOYTQ.mjs +10 -0
  85. package/dist/chunk-266F6F4Y.mjs +10 -0
  86. package/dist/{chunk-BYDJXA5A.mjs → chunk-2CXZQGP5.mjs} +1 -1
  87. package/dist/chunk-2KX2HY2H.mjs +10 -0
  88. package/dist/{chunk-4AG2RUAZ.mjs → chunk-3PU6C5US.mjs} +2 -2
  89. package/dist/{chunk-UNGYVWKZ.mjs → chunk-3RWM6E56.mjs} +2 -2
  90. package/dist/{chunk-SVTTHYTR.mjs → chunk-3YVVIFY7.mjs} +1 -1
  91. package/dist/chunk-42SQX2EB.mjs +10 -0
  92. package/dist/{chunk-AM5FU4Y7.mjs → chunk-4T7P66ZA.mjs} +1 -1
  93. package/dist/{chunk-AELTF2DE.mjs → chunk-4WVW4KEK.mjs} +1 -1
  94. package/dist/{chunk-UO75BAPM.mjs → chunk-4Y4WKIL5.mjs} +1 -1
  95. package/dist/chunk-6DETJFO2.mjs +10 -0
  96. package/dist/chunk-6DYTFYPO.mjs +10 -0
  97. package/dist/{chunk-3DWFAHR2.mjs → chunk-6GV3YWV7.mjs} +1 -1
  98. package/dist/chunk-6LP7UKPC.mjs +10 -0
  99. package/dist/chunk-6M77HEKA.mjs +10 -0
  100. package/dist/chunk-6Q5PNIYZ.mjs +10 -0
  101. package/dist/chunk-6Z3GYFG5.mjs +10 -0
  102. package/dist/{chunk-7XGNJE7J.mjs → chunk-7DCQF3EP.mjs} +1 -1
  103. package/dist/chunk-7EQIV4GX.mjs +10 -0
  104. package/dist/{chunk-C2VP5IEB.mjs → chunk-7HVUCDKZ.mjs} +1 -1
  105. package/dist/{chunk-KGS3UWPG.mjs → chunk-7KZEJYIU.mjs} +1 -1
  106. package/dist/{chunk-AD3MLX6G.mjs → chunk-7OUGARUO.mjs} +1 -1
  107. package/dist/{chunk-QU34XSML.mjs → chunk-AMLFQDKI.mjs} +2 -2
  108. package/dist/{chunk-CTSDHAAV.mjs → chunk-ARCCPNHM.mjs} +2 -2
  109. package/dist/{chunk-OYSOPCTA.mjs → chunk-BA5OA5DY.mjs} +1 -1
  110. package/dist/{chunk-7L5UOGZA.mjs → chunk-BPW4QRPV.mjs} +2 -2
  111. package/dist/chunk-BSSLS6MF.mjs +10 -0
  112. package/dist/{chunk-YPEAGD2G.mjs → chunk-C2B7L5CL.mjs} +1 -1
  113. package/dist/{chunk-COHK4QQW.mjs → chunk-EGLD5KVP.mjs} +2 -2
  114. package/dist/chunk-EIB7MPRA.mjs +10 -0
  115. package/dist/{chunk-QJYPCVSD.mjs → chunk-F67SYAEW.mjs} +1 -1
  116. package/dist/{chunk-CLGLEEFO.mjs → chunk-FCKJCFMD.mjs} +1 -1
  117. package/dist/{chunk-LPI2NIDI.mjs → chunk-FF7H33Z5.mjs} +1 -1
  118. package/dist/{chunk-GL5GUKT7.mjs → chunk-FX3THTOK.mjs} +1 -1
  119. package/dist/chunk-G2T6UJ66.mjs +11 -0
  120. package/dist/chunk-GAT5QH2M.mjs +10 -0
  121. package/dist/chunk-GDIKHTP3.mjs +10 -0
  122. package/dist/chunk-GFBRKKX4.mjs +10 -0
  123. package/dist/{chunk-ZZIQF6XD.mjs → chunk-GJTOYWLJ.mjs} +1 -1
  124. package/dist/chunk-GTHN5ZCZ.mjs +10 -0
  125. package/dist/{chunk-TSHZ7JSR.mjs → chunk-GYKBMDSJ.mjs} +1 -1
  126. package/dist/{chunk-NRQSR3G7.mjs → chunk-HABKIEKC.mjs} +1 -1
  127. package/dist/{chunk-QUQ4VYCN.mjs → chunk-HCQI7MNN.mjs} +1 -1
  128. package/dist/{chunk-EUVUJQ2Z.mjs → chunk-HJGMXLKN.mjs} +1 -1
  129. package/dist/{chunk-HI44JQA7.mjs → chunk-HPUUQKKH.mjs} +2 -2
  130. package/dist/chunk-HZM2XZP4.mjs +10 -0
  131. package/dist/{chunk-ZFGTKLCU.mjs → chunk-I7SMG6PT.mjs} +1 -1
  132. package/dist/{chunk-YU5NRJT6.mjs → chunk-IC5SBDP3.mjs} +1 -1
  133. package/dist/{chunk-DZDZZRWE.mjs → chunk-IDIZSV2Y.mjs} +1 -1
  134. package/dist/chunk-IGM72PUL.mjs +0 -0
  135. package/dist/{chunk-TH4XPZEO.mjs → chunk-IM3E5JL4.mjs} +1 -1
  136. package/dist/{chunk-TUJLNJPJ.mjs → chunk-INFMXVHD.mjs} +2 -2
  137. package/dist/chunk-IROFSPEN.mjs +10 -0
  138. package/dist/{chunk-WTAJLO6E.mjs → chunk-J2KZM2I2.mjs} +1 -1
  139. package/dist/{chunk-R3HHMCE5.mjs → chunk-JHA7DIPG.mjs} +1 -1
  140. package/dist/chunk-JKOCFSBH.mjs +10 -0
  141. package/dist/chunk-JTKDC2CM.mjs +10 -0
  142. package/dist/{chunk-4EANTENO.mjs → chunk-K4N2ADJO.mjs} +1 -1
  143. package/dist/{chunk-WHN2SEWO.mjs → chunk-KHDWTXGG.mjs} +2 -2
  144. package/dist/{chunk-TFSBTGTQ.mjs → chunk-KQOXSF4J.mjs} +1 -1
  145. package/dist/{chunk-RXSX2RKA.mjs → chunk-KX2GDQKJ.mjs} +1 -1
  146. package/dist/chunk-LQHFBXCW.mjs +10 -0
  147. package/dist/{chunk-R7R7JDA3.mjs → chunk-LRF3YZWU.mjs} +2 -2
  148. package/dist/{chunk-MIF6BAPG.mjs → chunk-LSPDPDB6.mjs} +1 -1
  149. package/dist/{chunk-K4TTZX4T.mjs → chunk-LV5AUNI2.mjs} +1 -1
  150. package/dist/chunk-MHAPHPNN.mjs +10 -0
  151. package/dist/{chunk-7P7VZMTO.mjs → chunk-NWWH62TU.mjs} +1 -1
  152. package/dist/chunk-O23QVPUT.mjs +10 -0
  153. package/dist/{chunk-P7BN7QDF.mjs → chunk-O4YMXTNR.mjs} +1 -1
  154. package/dist/{chunk-XD43CVDT.mjs → chunk-OVJT5F2R.mjs} +1 -1
  155. package/dist/chunk-PCR5FD43.mjs +10 -0
  156. package/dist/{chunk-Q6PGYMYI.mjs → chunk-PR3CD3UC.mjs} +2 -2
  157. package/dist/chunk-Q6R75IOP.mjs +10 -0
  158. package/dist/chunk-QC76UPJB.mjs +29 -0
  159. package/dist/{chunk-PD5ZXNGT.mjs → chunk-QMV2O57M.mjs} +2 -2
  160. package/dist/{chunk-NYCG264A.mjs → chunk-QUWRO3HT.mjs} +2 -2
  161. package/dist/{chunk-5KJF7IQN.mjs → chunk-RE7ZGPOY.mjs} +1 -1
  162. package/dist/chunk-RFVLSR2P.mjs +10 -0
  163. package/dist/{chunk-4RSUKS23.mjs → chunk-RFVPGD6N.mjs} +2 -2
  164. package/dist/chunk-RINS2TBF.mjs +10 -0
  165. package/dist/chunk-RITIRWKN.mjs +10 -0
  166. package/dist/chunk-RUHZRYDJ.mjs +10 -0
  167. package/dist/{chunk-IVGNOQSQ.mjs → chunk-RXVMJVRX.mjs} +1 -1
  168. package/dist/chunk-SH7ZI4CA.mjs +10 -0
  169. package/dist/chunk-TDRN6VLD.mjs +10 -0
  170. package/dist/chunk-TTJTZLW5.mjs +10 -0
  171. package/dist/chunk-TYKMNZJ4.mjs +11 -0
  172. package/dist/chunk-TZGK36KC.mjs +10 -0
  173. package/dist/chunk-UBLCUHRL.mjs +10 -0
  174. package/dist/chunk-UY76QEJC.mjs +10 -0
  175. package/dist/chunk-VFO35ZLL.mjs +10 -0
  176. package/dist/{chunk-BHJCYKFJ.mjs → chunk-VJUSOXPW.mjs} +1 -1
  177. package/dist/{chunk-IUXXTORQ.mjs → chunk-VZ5CLAIL.mjs} +2 -2
  178. package/dist/chunk-WB7EFOP7.mjs +10 -0
  179. package/dist/chunk-WDWBYTJG.mjs +10 -0
  180. package/dist/{chunk-6G7EUNZW.mjs → chunk-XAM3AXXK.mjs} +1 -1
  181. package/dist/{chunk-KJ6ZSO3I.mjs → chunk-XDTZXNGJ.mjs} +1 -1
  182. package/dist/chunk-XG6JJCCJ.mjs +10 -0
  183. package/dist/{chunk-4W5VP4NV.mjs → chunk-XKUZVQ2A.mjs} +1 -1
  184. package/dist/chunk-XO7MAUFC.mjs +10 -0
  185. package/dist/{chunk-24R46WQW.mjs → chunk-XOS3JIQX.mjs} +1 -1
  186. package/dist/{chunk-W7OTSFZS.mjs → chunk-XSORBGUU.mjs} +1 -1
  187. package/dist/{chunk-7TE4MFKC.mjs → chunk-XYK5KKOH.mjs} +1 -1
  188. package/dist/chunk-YDUKC7QS.mjs +10 -0
  189. package/dist/chunk-Z4QTH4TB.mjs +10 -0
  190. package/dist/{chunk-UUTMZQQA.mjs → chunk-ZC5WXVNV.mjs} +3 -3
  191. package/dist/{chunk-E22TWF63.mjs → chunk-ZI7HJRJA.mjs} +2 -2
  192. package/dist/chunk-ZNLIC44U.mjs +10 -0
  193. package/dist/chunk-ZP6QG5FX.mjs +10 -0
  194. package/dist/{chunk-BXNNVZOQ.mjs → chunk-ZXEWW3E7.mjs} +1 -1
  195. package/dist/{chunk-OZMADP4Z.mjs → chunk-ZZ7YJ2FN.mjs} +2 -2
  196. package/dist/hooks/useContainerScopedRef.mjs +1 -1
  197. package/dist/hooks/useDevice.mjs +1 -1
  198. package/dist/hooks/useI18n.mjs +1 -1
  199. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  200. package/dist/hooks/useLiveInteractionModality.mjs +1 -1
  201. package/dist/hooks/useMedia.mjs +1 -1
  202. package/dist/hooks/useMutationObserver.mjs +1 -1
  203. package/dist/hooks/usePortalContainer.mjs +1 -1
  204. package/dist/hooks/usePreventFocus.mjs +1 -1
  205. package/dist/hooks/useResizeObserver.mjs +1 -1
  206. package/dist/hooks/useTextSelection.mjs +1 -1
  207. package/dist/index.css +1 -1
  208. package/dist/index.d.ts +150 -33
  209. package/dist/index.js +21 -21
  210. package/dist/index.mjs +1 -1
  211. package/dist/messageIds.mjs +1 -1
  212. package/dist/utils/colors.mjs +1 -1
  213. package/dist/utils/dom.mjs +1 -1
  214. package/dist/utils/isInShadowDOM.mjs +1 -1
  215. package/dist/utils/keyboards.mjs +1 -1
  216. package/dist/utils/strings.mjs +1 -1
  217. package/intl/ar.json +3 -0
  218. package/intl/cs.json +3 -0
  219. package/intl/cy.json +3 -0
  220. package/intl/da.json +3 -0
  221. package/intl/de.json +3 -0
  222. package/intl/el.json +3 -0
  223. package/intl/en-GB.json +3 -0
  224. package/intl/en.json +3 -0
  225. package/intl/es.json +3 -0
  226. package/intl/fi.json +3 -0
  227. package/intl/fr-CA.json +3 -0
  228. package/intl/fr.json +3 -0
  229. package/intl/he.json +3 -0
  230. package/intl/hr.json +3 -0
  231. package/intl/id.json +3 -0
  232. package/intl/it.json +3 -0
  233. package/intl/ja.json +3 -0
  234. package/intl/ko.json +3 -0
  235. package/intl/ms.json +3 -0
  236. package/intl/nb-NO.json +3 -0
  237. package/intl/nl.json +3 -0
  238. package/intl/pl.json +3 -0
  239. package/intl/pt-PT.json +3 -0
  240. package/intl/pt.json +3 -0
  241. package/intl/ru.json +3 -0
  242. package/intl/sk.json +3 -0
  243. package/intl/sl.json +3 -0
  244. package/intl/sv.json +3 -0
  245. package/intl/th.json +3 -0
  246. package/intl/tr.json +3 -0
  247. package/intl/uk.json +3 -0
  248. package/intl/zh-Hans.json +3 -0
  249. package/intl/zh-Hant.json +3 -0
  250. package/messages.json +12 -0
  251. package/package.json +4 -4
  252. package/sbom.json +6 -6
  253. package/dist/chunk-2F3CFR22.mjs +0 -10
  254. package/dist/chunk-2LFMBQKQ.mjs +0 -10
  255. package/dist/chunk-36ZMHBG5.mjs +0 -10
  256. package/dist/chunk-3BEG3MEX.mjs +0 -10
  257. package/dist/chunk-3BG6K2G2.mjs +0 -10
  258. package/dist/chunk-3KCSUNRV.mjs +0 -10
  259. package/dist/chunk-4JQUB53Q.mjs +0 -10
  260. package/dist/chunk-4MHBLLHV.mjs +0 -11
  261. package/dist/chunk-5BKC373Y.mjs +0 -10
  262. package/dist/chunk-5FK5AJ7A.mjs +0 -10
  263. package/dist/chunk-5SHHWKFM.mjs +0 -10
  264. package/dist/chunk-76DKF2SK.mjs +0 -10
  265. package/dist/chunk-7MMO7S3R.mjs +0 -10
  266. package/dist/chunk-AK7XHUQW.mjs +0 -10
  267. package/dist/chunk-AYQN3OH2.mjs +0 -10
  268. package/dist/chunk-BBYODNBO.mjs +0 -10
  269. package/dist/chunk-DAS5QGJX.mjs +0 -10
  270. package/dist/chunk-DSV6CCI6.mjs +0 -10
  271. package/dist/chunk-F7PGMOQF.mjs +0 -10
  272. package/dist/chunk-FOKMDEP7.mjs +0 -10
  273. package/dist/chunk-FPFGTGUC.mjs +0 -10
  274. package/dist/chunk-IEOHIOGL.mjs +0 -10
  275. package/dist/chunk-IWZXZ5LU.mjs +0 -10
  276. package/dist/chunk-IXRSSEHQ.mjs +0 -10
  277. package/dist/chunk-J4OPD7OL.mjs +0 -10
  278. package/dist/chunk-K7VOXFSK.mjs +0 -10
  279. package/dist/chunk-MDE2FQHX.mjs +0 -10
  280. package/dist/chunk-MFB3SWO7.mjs +0 -29
  281. package/dist/chunk-MYJ733MN.mjs +0 -10
  282. package/dist/chunk-NJKSUI2F.mjs +0 -10
  283. package/dist/chunk-O4DA3TPW.mjs +0 -11
  284. package/dist/chunk-ONEE6UCM.mjs +0 -10
  285. package/dist/chunk-Q4SEEMIX.mjs +0 -10
  286. package/dist/chunk-R4MOUAJW.mjs +0 -10
  287. package/dist/chunk-SZN2J2ER.mjs +0 -10
  288. package/dist/chunk-U3T5JTZ7.mjs +0 -10
  289. package/dist/chunk-UDMNDUBO.mjs +0 -10
  290. package/dist/chunk-VETO7WNN.mjs +0 -10
  291. package/dist/chunk-VGFPT43C.mjs +0 -10
  292. package/dist/chunk-VJUBKX3W.mjs +0 -10
  293. package/dist/chunk-XWJJ4V3O.mjs +0 -10
  294. package/dist/chunk-YMYMFVW4.mjs +0 -10
  295. package/dist/chunk-YQHHE5AT.mjs +0 -10
  296. /package/dist/{chunk-DAN62T2M.mjs → chunk-TIGGKOJQ.mjs} +0 -0
@@ -1,10 +0,0 @@
1
- import {a as a$6}from'./chunk-SVV6DLJH.mjs';import {a as a$k}from'./chunk-TH4XPZEO.mjs';import {a as a$a,b as b$5}from'./chunk-TFSBTGTQ.mjs';import {c as c$8,b as b$a}from'./chunk-COHK4QQW.mjs';import {l,i,p,r,s,x,v,k,h as h$1,j,n,u,w,y,d,g,a as a$h,b as b$8}from'./chunk-YQHHE5AT.mjs';import {b,c as c$1}from'./chunk-NYCG264A.mjs';import {b as b$3,a as a$n}from'./chunk-6G7EUNZW.mjs';import {c as c$7,d as d$3}from'./chunk-PD5ZXNGT.mjs';import {a as a$4,g as g$1,c as c$6,e as e$2,b as b$9,f as f$1,d as d$4}from'./chunk-ZQOR4LCM.mjs';import {a as a$i}from'./chunk-UFN2OAM2.mjs';import {a as a$l}from'./chunk-D4NW56YQ.mjs';import {a as a$8,d as d$5}from'./chunk-GMALMQWI.mjs';import {a as a$f}from'./chunk-USMC34OO.mjs';import {b as b$6}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$c}from'./chunk-K5RYVERS.mjs';import {a as a$d}from'./chunk-NQIZ3U7Q.mjs';import {h,e as e$1,c,b as b$4,a as a$e}from'./chunk-AYQN3OH2.mjs';import {a as a$g}from'./chunk-JJG67M2S.mjs';import {e,j as j$1,k as k$1,c as c$4}from'./chunk-J4OPD7OL.mjs';import {a as a$2,d as d$1,f as f$2,b as b$c}from'./chunk-GQIS4QBN.mjs';import {a as a$j}from'./chunk-Y2MIU76N.mjs';import {a as a$5}from'./chunk-FPM5UJRF.mjs';import {a as a$7}from'./chunk-STMDFIUL.mjs';import {c as c$5}from'./chunk-HH4VLTF3.mjs';import {i as i$1,j as j$2,f,b as b$b}from'./chunk-KUDCYGII.mjs';import {a as a$9}from'./chunk-B3EZOXNU.mjs';import {d as d$2}from'./chunk-F7WPMQ3P.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {l as l$1,u as u$1,q}from'./chunk-PPHSLODC.mjs';import {b as b$1,c as c$2,a as a$m}from'./chunk-3WKDIXCM.mjs';import {a as a$3}from'./chunk-SVIYLH7R.mjs';import {a as a$1,c as c$3}from'./chunk-ETM4MNG4.mjs';import {b as b$7,a as a$b,i as i$2,h as h$2,j as j$3,m}from'./chunk-SD43KVTU.mjs';import {createContext,forwardRef,useRef,useState,useMemo,useContext,useEffect,useCallback}from'react';import ro 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 $e=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,a=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=a?(a.colIndex??a.index)+(a.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=n.key),d.add(c.key),a?(a.nextKey=c.key,c.prevKey=a.key):c.prevKey=null,l(c),a=c;if(a&&(a.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 Rl="row-header-column-"+Math.random().toString(36).slice(2),ut="row-header-column-"+Math.random().toString(36).slice(2);for(;Rl===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 a of e){let u=a.parentKey,c=[a];for(;u!=null;){let s=t.get(u);if(!s)break;if(o.has(s)){s.colSpan??=0,s.colSpan++,s.colspan=s.colSpan;let{column:b,index:f}=o.get(s);if(f>c.length)break;for(let p=f;p<c.length;p++)b.splice(p,0,null);for(let p=c.length;p<b.length;p++)b[p]&&o.has(b[p])&&(o.get(b[p]).index=p);}else s.colSpan=1,s.colspan=1,c.push(s),o.set(s,{column:c,index:c.length-1});u=s.parentKey;}l.push(c),a.index=l.length-1;}let r=Math.max(...l.map(a=>a.length)),n=Array(r).fill(0).map(()=>[]),i=0;for(let a of l){let u=r-1;for(let c of a){if(c){let s=n[u],b=s.reduce((f,p)=>f+(p.colSpan??1),0);if(b<i){let f={type:"placeholder",key:"placeholder-"+c.key,colspan:i-b,colSpan:i-b,index:b,value:null,rendered:null,level:u,hasChildNodes:false,childNodes:[],textValue:""};s.length>0&&(s[s.length-1].nextKey=f.key,f.prevKey=s[s.length-1].key),s.push(f);}s.length>0&&(s[s.length-1].nextKey=c.key,c.prevKey=s[s.length-1].key),c.level=u,c.colIndex=i,s.push(c);}u--;}i++;}let d=0;for(let a of n){let u=a.reduce((c,s)=>c+(s.colSpan??1),0);if(u<e.length){let c={type:"placeholder",key:"placeholder-"+a[a.length-1].key,colSpan:e.length-u,colspan:e.length-u,index:u,value:null,rendered:null,level:d,hasChildNodes:false,childNodes:[],textValue:"",prevKey:a[a.length-1].key};a.push(c);}d++;}return n.map((a,u)=>({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:true,childNodes:a,textValue:""}))}var Re=class extends $e{headerRows;columns;rowHeaderColumnKeys;body;_size=0;constructor(e,l,o){let r=new Set,n=null,i=[];if(o?.showSelectionCheckboxes){let s={type:"column",key:Rl,value:null,textValue:"",level:0,index:o?.showDragButtons?1:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isSelectionCell:true}};i.unshift(s);}if(o?.showDragButtons){let s={type:"column",key:ut,value:null,textValue:"",level:0,index:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isDragButtonCell:true}};i.unshift(s);}let d=[],a=new Map,u=s=>{switch(s.type){case "body":n=s;break;case "column":a.set(s.key,s),s.hasChildNodes||(i.push(s),s.props.isRowHeader&&r.add(s.key));break;case "item":d.push(s);return}for(let b of s.childNodes)u(b);};for(let s of e)u(s);let c=je(a,i);if(c.forEach((s,b)=>d.splice(b,0,s)),super({columnCount:i.length,items:d,visitNode:s=>(s.column=i[s.index],s)}),this.columns=i,this.rowHeaderColumnKeys=r,this.body=n,this.headerRows=c,this._size=[...n.childNodes].length,this.rowHeaderColumnKeys.size===0){let s=this.columns.find(b=>!b.props?.isDragButtonCell&&!b.props?.isSelectionCell);s&&this.rowHeaderColumnKeys.add(s.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$6(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 Kl={"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 jl(t){return t!=null&&(!isNaN(t)||String(t).match(/^(\d+)(?=%$)/)!==null)}function Ul(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 Dl(t,e,l,o,r){let n=t,i=Math.floor(t),d=t-i>0;t=i;let a=false,u=e.map((s,b)=>{let f=l.get(s.key)!=null?l.get(s.key)??"1fr":s.width??s.defaultWidth??o?.(b)??"1fr",p=false,m=0,T=0,g=0;jl(f)?(m=mt(f,t),p=true):(T=Ul(f),T<=0&&(p=true));let w=bt(s.minWidth??r?.(b)??0,t),S=pt(s.maxWidth,t),C=Math.max(w,Math.min(m,S));return p?g=C:m>C&&(p=true,g=C),p||(a=true),{frozen:p,baseSize:m,hypotheticalMainSize:C,min:w,max:S,flex:T,targetMainSize:g,violation:0}});for(;a;){let s=0,b=0;u.forEach(m=>{m.frozen?s+=m.targetMainSize:(s+=m.baseSize,b+=m.flex);});let f=t-s;f>0&&u.forEach(m=>{if(!m.frozen){let T=m.flex/b;m.targetMainSize=m.baseSize+T*f;}});let p=0;u.forEach(m=>{if(m.violation=0,!m.frozen){let{min:T,max:g,targetMainSize:w}=m;m.targetMainSize=Math.max(T,Math.min(w,g)),m.violation=m.targetMainSize-w,p+=m.violation;}}),a=false,u.forEach(m=>{p===0||Math.sign(p)===Math.sign(m.violation)?m.frozen=true:m.frozen||(a=true);});}let c=Zl(u);if(d&&c.length>0){let s=n.toString().split(".")[1],b=c[c.length-1].toString();c[c.length-1]=+(b+"."+s);}return c}function Zl(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(a=>{a.key===o?(d.set(a.key,r),i=false):i?d.set(a.key,n.get(a.key)??0):d.set(a.key,a.props.width??l.get(a.key));}),d}buildColumnWidths(e,l,o){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,Dl(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,a=l.columns[i];this.columnWidths.set(d,n),this.columnMinWidths.set(d,bt(a.props.minWidth??this.getDefaultMinWidth(a),e)),this.columnMaxWidths.set(d,pt(a.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]),[a,u]=useMemo(()=>d.splitColumnsIntoControlledAndUncontrolled(e.collection.columns),[e.collection.columns,d]),[c,s]=useState(()=>d.getInitialUncontrolledWidths(u)),[b,f]=useState(e.collection.columns);if(e.collection.columns!==b){if(e.collection.columns.length!==b.length||e.collection.columns.some((S,C)=>S.key!==b[C].key)){let S=d.getInitialUncontrolledWidths(u);s(S);}f(e.collection.columns);}let p=useMemo(()=>d.recombineColumns(e.collection.columns,c,u,a),[e.collection.columns,c,u,a,d]),m=useCallback(S=>{i(S);},[i]),T=useCallback((S,C)=>{let D=d.resizeColumnWidth(e.collection,c,S,C),P=new Map(Array.from(u).map(([h])=>[h,D.get(h)]));return P.set(S,C),s(P),D},[u,s,d,e.collection,c]),g=useCallback(()=>{i(null);},[i]),w=useMemo(()=>d.buildColumnWidths(r,e.collection,p),[r,e.collection,p,d]);return useMemo(()=>({resizingColumn:n,updateResizedColumns:T,startResize:m,endResize:g,getColumnWidth:S=>d.getColumnWidth(S),getColumnMinWidth:S=>d.getColumnMinWidth(S),getColumnMaxWidth:S=>d.getColumnMaxWidth(S),tableState:e,columnWidths:w}),[d,w,n,T,m,g,e])}function Ml(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=(a,u)=>{if(l==="cell"&&a!=null){let c=e.getItem(a);if(c?.type==="item"){let s=b$9(c,e);u==="last"?a=e$2(s)?.key??null:a=c$6(s)?.key??null;}}n(a,u);};let i=useMemo(()=>new f$1(e,o),[e,o]),d=useRef(null);return useEffect(()=>{if(o.focusedKey!=null&&d.current&&!e.getItem(o.focusedKey)){let a=d.current.getItem(o.focusedKey),u=a?.parentKey!=null&&(a.type==="cell"||a.type==="rowheader"||a.type==="column")?d.current.getItem(a.parentKey):a;if(!u){o.setFocusedKey(null);return}let c=d.current.rows,s=e.rows,b=c.length-s.length,f=Math.min(b>1?Math.max(u.index-b+1,0):u.index,s.length-1),p=null;for(let m=Math.max(0,f);m<s.length;m++)if(!i.isDisabled(s[m].key)&&s[m].type!=="headerrow"){p=s[m];break}if(p===null){for(let m=f-1;m>=0;m--)if(!i.isDisabled(s[m].key)&&s[m].type!=="headerrow"){p=s[m];break}}if(p){let m=p.hasChildNodes?[...b$9(p,e)]:[],T=p.hasChildNodes&&u!==a&&a&&a.index<m.length?m[a.index].key:p.key;o.setFocusedKey(T);}else o.setFocusedKey(null);}d.current=e;},[e,i,o,o.focusedKey]),{collection:e,disabledKeys:r,isKeyboardNavigationDisabled:false,selectionManager:i}}var Jl={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]),a=g$1(t,useCallback(f=>new Re(f,null,d),[d]),d),{disabledKeys:u,selectionManager:c}=Ml({...t,collection:a,disabledBehavior:t.disabledBehavior||"selection"}),[s,b]=a$5(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);return {collection:a,disabledKeys:u,selectionManager:c,showSelectionCheckboxes:t.showSelectionCheckboxes||false,sortDescriptor:t.sortDescriptor??null,isKeyboardNavigationDisabled:a.size===0||e,setKeyboardNavigationDisabled:l,sort(f,p){t.onSortChange?.({column:f,direction:p??(t.sortDescriptor?.column===f?Jl[t.sortDescriptor.direction]:"ascending")});},expandedKeys:s,toggleKey(f){b(p=>{let m=new Set(p);return m.has(f)?m.delete(f):m.add(f),m});},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 he=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$n(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$6(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$4(r,l.index-1):d$4(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$6(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$4(r,l.index+1):d$4(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$6(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$6(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 a=d.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return this.isRow(d)&&this.focusMode==="cell"?c$6(b$9(d,this.collection))?.key??null:d.key}o=this.findNextKey(o,a=>a.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 ge=new WeakMap;function Il(t,e,l){let{isVirtualized:o,disallowTypeAhead:r,keyboardDelegate:n,focusMode:i,scrollRef:d,getRowText:a,onRowAction:u,onCellAction:c,escapeKeyBehavior:s="clearSelection",shouldSelectOnPressUp:b,keyboardNavigationBehavior:f="arrow"}=t,{selectionManager:p}=e;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let m=a$f({usage:"search",sensitivity:"base"}),{direction:T}=b$2(),g=e.selectionManager.disabledBehavior,w=useMemo(()=>n||new he({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:g,ref:l,direction:T,collator:m,focusMode:i}),[n,e.collection,e.disabledKeys,g,l,T,m,i]),{collectionProps:S}=c$7({ref:l,selectionManager:p,keyboardDelegate:w,isVirtualized:o,scrollRef:d,disallowTypeAhead:r,escapeKeyBehavior:s}),C=c$3(t.id);ge.set(e,{keyboardDelegate:w,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:b,keyboardNavigationBehavior:f});let D=c$8({selectionManager:p,hasItemActions:!!(u||c)}),P=a$3(t,{labelable:true}),h=useCallback(N=>{if(p.isFocused){h$2(N.currentTarget,j$3(N))||p.setFocused(false);return}h$2(N.currentTarget,j$3(N))&&p.setFocused(true);},[p]),R=useMemo(()=>({onBlur:S.onBlur,onFocus:h}),[h,S.onBlur]),x=a$l(l,{isDisabled:e.collection.size!==0}),v=c$2(P,{role:"grid",id:C,"aria-multiselectable":p.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?R:S,e.collection.size===0&&{tabIndex:x?-1:0}||void 0,D);return o&&(v["aria-rowcount"]=e.collection.size,v["aria-colcount"]=e.collection.columnCount),b$a({getRowText:a},e),{gridProps:v}}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 J={"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`,collapse:"\u0637\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`,expand:"\u062A\u0645\u062F\u064A\u062F",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"},"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`,collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",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`,expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435",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"},"cs-CZ":{ascending:"vzestupn\u011B",ascendingSort:t=>`\u0159azeno vzestupn\u011B podle sloupce ${t.columnName}`,collapse:"Sbalit",columnSize:t=>`${t.value} pixel\u016F`,descending:"sestupn\u011B",descendingSort:t=>`\u0159azeno sestupn\u011B podle sloupce ${t.columnName}`,expand:"Rozt\xE1hnout",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"},"da-DK":{ascending:"stigende",ascendingSort:t=>`sorteret efter kolonne ${t.columnName} i stigende r\xE6kkef\xF8lge`,collapse:"Skjul",columnSize:t=>`${t.value} pixels`,descending:"faldende",descendingSort:t=>`sorteret efter kolonne ${t.columnName} i faldende r\xE6kkef\xF8lge`,expand:"Udvid",resizerDescription:"Tryk p\xE5 Enter for at \xE6ndre st\xF8rrelse",select:"V\xE6lg",selectAll:"V\xE6lg alle",sortable:"sorterbar kolonne"},"de-DE":{ascending:"aufsteigend",ascendingSort:t=>`sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:t=>`${t.value} Pixel`,descending:"absteigend",descendingSort:t=>`sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Gr\xF6\xDFen\xE4nderung dr\xFCcken",select:"Ausw\xE4hlen",selectAll:"Alles ausw\xE4hlen",sortable:"sortierbare Spalte"},"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`,collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",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`,expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7",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"},"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`,collapse:"Contraer",columnSize:t=>`${t.value} p\xEDxeles`,descending:"descendente",descendingSort:t=>`ordenado por columna ${t.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"},"et-EE":{ascending:"t\xF5usev j\xE4rjestus",ascendingSort:t=>`sorditud veeru j\xE4rgi ${t.columnName} t\xF5usvas j\xE4rjestuses`,collapse:"Ahenda",columnSize:t=>`${t.value} pikslit`,descending:"laskuv j\xE4rjestus",descendingSort:t=>`sorditud veeru j\xE4rgi ${t.columnName} laskuvas j\xE4rjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali k\xF5ik",sortable:"sorditav veerg"},"fi-FI":{ascending:"nouseva",ascendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan nousevassa j\xE4rjestyksess\xE4`,collapse:"Pienenn\xE4",columnSize:t=>`${t.value} pikseli\xE4`,descending:"laskeva",descendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan laskevassa j\xE4rjestyksess\xE4`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-n\xE4pp\xE4int\xE4",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"},"fr-FR":{ascending:"croissant",ascendingSort:t=>`tri\xE9 en fonction de la colonne\xA0${t.columnName} par ordre croissant`,collapse:"R\xE9duire",columnSize:t=>`${t.value}\xA0pixels`,descending:"d\xE9croissant",descendingSort:t=>`tri\xE9 en fonction de la colonne\xA0${t.columnName} par ordre d\xE9croissant`,expand:"D\xE9velopper",resizerDescription:"Appuyez sur Entr\xE9e pour commencer le redimensionnement.",select:"S\xE9lectionner",selectAll:"S\xE9lectionner tout",sortable:"colonne triable"},"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`,collapse:"\u05DB\u05D5\u05D5\u05E5",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`,expand:"\u05D4\u05E8\u05D7\u05D1",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"},"hr-HR":{ascending:"rastu\u0107i",ascendingSort:t=>`razvrstano po stupcima ${t.columnName} rastu\u0107em redoslijedom`,collapse:"Sa\u017Emi",columnSize:t=>`${t.value} piksela`,descending:"padaju\u0107i",descendingSort:t=>`razvrstano po stupcima ${t.columnName} padaju\u0107im redoslijedom`,expand:"Pro\u0161iri",resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se mo\u017Ee razvrstati"},"hu-HU":{ascending:"n\xF6vekv\u0151",ascendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, n\xF6vekv\u0151 sorrendben`,collapse:"\xD6sszecsuk\xE1s",columnSize:t=>`${t.value} k\xE9ppont`,descending:"cs\xF6kken\u0151",descendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, cs\xF6kken\u0151 sorrendben`,expand:"Kibont\xE1s",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"},"it-IT":{ascending:"crescente",ascendingSort:t=>`in ordine crescente in base alla colonna ${t.columnName}`,collapse:"Comprimi",columnSize:t=>`${t.value} pixel`,descending:"decrescente",descendingSort:t=>`in ordine decrescente in base alla colonna ${t.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"},"ja-JP":{ascending:"\u6607\u9806",ascendingSort:t=>`\u5217 ${t.columnName} \u3092\u6607\u9806\u3067\u4E26\u3079\u66FF\u3048`,collapse:"\u6298\u308A\u305F\u305F\u3080",columnSize:t=>`${t.value} \u30D4\u30AF\u30BB\u30EB`,descending:"\u964D\u9806",descendingSort:t=>`\u5217 ${t.columnName} \u3092\u964D\u9806\u3067\u4E26\u3079\u66FF\u3048`,expand:"\u5C55\u958B",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"},"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`,collapse:"\uC811\uAE30",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`,expand:"\uD3BC\uCE58\uAE30",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"},"lt-LT":{ascending:"did\u0117jan\u010Dia tvarka",ascendingSort:t=>`surikiuota pagal stulpel\u012F ${t.columnName} did\u0117jan\u010Dia tvarka`,collapse:"Sutraukti",columnSize:t=>`${t.value} piks.`,descending:"ma\u017E\u0117jan\u010Dia tvarka",descendingSort:t=>`surikiuota pagal stulpel\u012F ${t.columnName} ma\u017E\u0117jan\u010Dia tvarka`,expand:"I\u0161skleisti",resizerDescription:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te keisti dyd\u012F",select:"Pasirinkti",selectAll:"Pasirinkti visk\u0105",sortable:"rikiuojamas stulpelis"},"lv-LV":{ascending:"augo\u0161\u0101 sec\u012Bb\u0101",ascendingSort:t=>`k\u0101rtots p\u0113c kolonnas ${t.columnName} augo\u0161\u0101 sec\u012Bb\u0101`,collapse:"Sak\u013Caut",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`,expand:"Izv\u0113rst",resizerDescription:"Nospiediet Enter, lai s\u0101ktu izm\u0113ru main\u012B\u0161anu",select:"Atlas\u012Bt",selectAll:"Atlas\u012Bt visu",sortable:"k\u0101rtojam\u0101 kolonna"},"nb-NO":{ascending:"stigende",ascendingSort:t=>`sortert etter kolonne ${t.columnName} i stigende rekkef\xF8lge`,collapse:"Skjul",columnSize:t=>`${t.value} piksler`,descending:"synkende",descendingSort:t=>`sortert etter kolonne ${t.columnName} i synkende rekkef\xF8lge`,expand:"Utvid",resizerDescription:"Trykk p\xE5 Enter for \xE5 starte st\xF8rrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"},"nl-NL":{ascending:"oplopend",ascendingSort:t=>`gesorteerd in oplopende volgorde in kolom ${t.columnName}`,collapse:"Samenvouwen",columnSize:t=>`${t.value} pixels`,descending:"aflopend",descendingSort:t=>`gesorteerd in aflopende volgorde in kolom ${t.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"},"pl-PL":{ascending:"rosn\u0105co",ascendingSort:t=>`posortowano wed\u0142ug kolumny ${t.columnName} w porz\u0105dku rosn\u0105cym`,collapse:"Zwi\u0144",columnSize:t=>`Liczba pikseli: ${t.value}`,descending:"malej\u0105co",descendingSort:t=>`posortowano wed\u0142ug kolumny ${t.columnName} w porz\u0105dku malej\u0105cym`,expand:"Rozwi\u0144",resizerDescription:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z mo\u017Cliwo\u015Bci\u0105 sortowania"},"pt-BR":{ascending:"crescente",ascendingSort:t=>`classificado pela coluna ${t.columnName} em ordem crescente`,collapse:"Recolher",columnSize:t=>`${t.value} pixels`,descending:"decrescente",descendingSort:t=>`classificado pela coluna ${t.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para come\xE7ar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classific\xE1vel"},"pt-PT":{ascending:"ascendente",ascendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:t=>`${t.value} pixels`,descending:"descendente",descendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna orden\xE1vel"},"ro-RO":{ascending:"cresc\u0103toare",ascendingSort:t=>`sortate dup\u0103 coloana ${t.columnName} \xEEn ordine cresc\u0103toare`,collapse:"Restr\xE2nge\u021Bi",columnSize:t=>`${t.value} pixeli`,descending:"descresc\u0103toare",descendingSort:t=>`sortate dup\u0103 coloana ${t.columnName} \xEEn ordine descresc\u0103toare`,expand:"Extinde\u021Bi",resizerDescription:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe redimensionarea",select:"Selectare",selectAll:"Selectare total\u0103",sortable:"coloan\u0103 sortabil\u0103"},"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`,collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",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`,expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",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"},"sk-SK":{ascending:"vzostupne",ascendingSort:t=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${t.columnName}`,collapse:"Zbali\u0165",columnSize:t=>`Po\u010Det pixelov: ${t.value}`,descending:"zostupne",descendingSort:t=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${t.columnName}`,expand:"Rozbali\u0165",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"},"sl-SI":{ascending:"nara\u0161\u010Dajo\u010De",ascendingSort:t=>`razvr\u0161\u010Deno po stolpcu ${t.columnName} v nara\u0161\u010Dajo\u010Dem vrstnem redu`,collapse:"Strni",columnSize:t=>`${t.value} slikovnih pik`,descending:"padajo\u010De",descendingSort:t=>`razvr\u0161\u010Deno po stolpcu ${t.columnName} v padajo\u010Dem vrstnem redu`,expand:"Raz\u0161iri",resizerDescription:"Pritisnite tipko Enter da za\u010Dnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"},"sr-SP":{ascending:"rastu\u0107i",ascendingSort:t=>`sortirano po kolonama ${t.columnName} rastu\u0107im redosledom`,collapse:"Skupi",columnSize:t=>`${t.value} piksela`,descending:"padaju\u0107i",descendingSort:t=>`sortirano po kolonama ${t.columnName} padaju\u0107im redosledom`,expand:"Pro\u0161iri",resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se mo\u017Ee sortirati"},"sv-SE":{ascending:"stigande",ascendingSort:t=>`sorterat p\xE5 kolumn ${t.columnName} i stigande ordning`,collapse:"D\xF6lj",columnSize:t=>`${t.value} pixlar`,descending:"fallande",descendingSort:t=>`sorterat p\xE5 kolumn ${t.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck p\xE5 Retur f\xF6r att b\xF6rja \xE4ndra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"},"tr-TR":{ascending:"artan s\u0131rada",ascendingSort:t=>`${t.columnName} s\xFCtuna g\xF6re artan d\xFCzende s\u0131rala`,collapse:"Daralt",columnSize:t=>`${t.value} piksel`,descending:"azalan s\u0131rada",descendingSort:t=>`${t.columnName} s\xFCtuna g\xF6re azalan d\xFCzende s\u0131rala`,expand:"Geni\u015Flet",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"},"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`,collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",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`,expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438",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"},"zh-CN":{ascending:"\u5347\u5E8F",ascendingSort:t=>`\u6309\u5217 ${t.columnName} \u5347\u5E8F\u6392\u5E8F`,collapse:"\u6298\u53E0",columnSize:t=>`${t.value} \u50CF\u7D20`,descending:"\u964D\u5E8F",descendingSort:t=>`\u6309\u5217 ${t.columnName} \u964D\u5E8F\u6392\u5E8F`,expand:"\u6269\u5C55",resizerDescription:"\u6309 Enter \u5F00\u59CB\u8C03\u6574\u5927\u5C0F\u3002",select:"\u9009\u62E9",selectAll:"\u5168\u9009",sortable:"\u53EF\u6392\u5E8F\u7684\u5217"},"zh-TW":{ascending:"\u905E\u589E",ascendingSort:t=>`\u5DF2\u4F9D\u64DA\u300C${t.columnName}\u300D\u6B04\u905E\u589E\u6392\u5E8F`,collapse:"\u6536\u5408",columnSize:t=>`${t.value} \u50CF\u7D20`,descending:"\u905E\u6E1B",descendingSort:t=>`\u5DF2\u4F9D\u64DA\u300C${t.columnName}\u300D\u6B04\u905E\u6E1B\u6392\u5E8F`,expand:"\u5C55\u958B",resizerDescription:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u8ABF\u6574\u5927\u5C0F",select:"\u9078\u53D6",selectAll:"\u5168\u9078",sortable:"\u53EF\u6392\u5E8F\u7684\u6B04"}};var Ye=class extends he{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$6(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 a=d.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return d.key}for(let a of b$9(d,this.collection)){let u=o.columns[a.index];if(o.rowHeaderColumnKeys.has(u.key)&&a.textValue){let c=a.textValue.slice(0,e.length);if(this.collator.compare(c,e)===0)return (l!=null?o.getItem(l):n)?.type==="cell"?a.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$f({usage:"search",sensitivity:"base"}),{direction:a}=b$2(),u=e.selectionManager.disabledBehavior,c=useMemo(()=>o||new Ye({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:u,ref:l,direction:a,collator:d,layoutDelegate:n,layout:i}),[o,e.collection,e.disabledKeys,u,l,a,d,n,i]),s=c$3(t.id);Ze.set(e,s);let{gridProps:b}=Il({...t,id:s,keyboardDelegate:c},e,l);r&&(b["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),e.treeColumn!=null&&(b.role="treegrid");let{column:f,direction:p}=e.sortDescriptor||{},m=b$6(J,"@react-aria/table"),T=useMemo(()=>{let w=e.collection.columns.find(S=>S.key===f)?.textValue??"";return p&&f?m.format(`${p}Sort`,{columnName:w}):void 0},[p,f,e.collection.columns]),g=d$1(T);return c$4(()=>{T&&a$g(T,"assertive",500);},[T]),{gridProps:c$2(b,g,{"aria-describedby":[g["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")})}}function Xe(t,e,l){let{node:o,isVirtualized:r,focusMode:n,allowsArrowNavigation:i,shouldSelectOnPressUp:d,onAction:a}=t,{direction:u}=b$2(),{keyboardDelegate:c,actions:{onCellAction:s},keyboardNavigationBehavior:b}=ge.get(e),f=n??(b==="tab"?"cell":"child"),p=useRef(null),m$1=useRef(null),T=()=>{if(l.current){let h=d$5(l.current);if(f==="child"){let R=i$2(a$b(l.current));if(m(l.current)&&l.current!==R)return;let x=a$b(l.current);if(!R||R===x.body||R===l.current){let j=m$1.current;if(j&&p.current===o.key&&h$2(l.current,j)){i$1(j);return}}let N=e.selectionManager.childFocusStrategy==="last"?kt(h):h.firstChild();if(N){i$1(N);return}}(p.current!=null&&o.key!==p.current||!m(l.current))&&i$1(l.current);}},{itemProps:g,isPressed:w}=d$3({selectionManager:e.selectionManager,key:o.key,ref:l,isVirtualized:r,focus:T,shouldSelectOnPressUp:d,onAction:s?()=>s(o.key):a,isDisabled:e.collection.size===0}),S=h=>{let R=i$2(a$b(l.current));if(!h$2(h.currentTarget,j$3(h))||e.isKeyboardNavigationDisabled||!l.current||!R)return;let x=d$5(l.current);switch(x.currentNode=R,h.key){case "ArrowLeft":{let v=u==="rtl"?x.nextNode():x.previousNode();if(f==="child"&&v===l.current&&(v=null),h.preventDefault(),h.stopPropagation(),v)i$1(v),f$2(v,{containingElement:b$c(l.current)});else {if(c.getKeyLeftOf?.(o.key)!==o.key){l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent));break}f==="cell"&&u==="rtl"?(i$1(l.current),f$2(l.current,{containingElement:b$c(l.current)})):(x.currentNode=l.current,v=u==="rtl"?x.firstChild():kt(x),v&&(i$1(v),f$2(v,{containingElement:b$c(l.current)})));}break}case "ArrowRight":{let v=u==="rtl"?x.previousNode():x.nextNode();if(f==="child"&&v===l.current&&(v=null),h.preventDefault(),h.stopPropagation(),v)i$1(v),f$2(v,{containingElement:b$c(l.current)});else {if(c.getKeyRightOf?.(o.key)!==o.key){l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent));break}f==="cell"&&u==="ltr"?(i$1(l.current),f$2(l.current,{containingElement:b$c(l.current)})):(x.currentNode=l.current,v=u==="rtl"?kt(x):x.firstChild(),v&&(i$1(v),f$2(v,{containingElement:b$c(l.current)})));}break}case "ArrowUp":case "ArrowDown":!h.altKey&&h$2(l.current,j$3(h))&&(h.stopPropagation(),h.preventDefault(),l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent)));break}},C=h=>{let R=i$2(a$b(l.current));if(!(!h$2(h.currentTarget,j$3(h))||e.isKeyboardNavigationDisabled||!l.current||!R)){if(b==="tab"&&j$3(h)!==l.current&&h.key!=="Tab"){h.stopPropagation();return}switch(h.key){case "Tab":if(b==="tab"){let x=d$5(l.current,{tabbable:true});x.currentNode=R,(h.shiftKey?x.previousNode():x.nextNode())&&h.stopPropagation();}}}},D=h=>{if(p.current=o.key,j$3(h)!==l.current){let R=j$3(h);l.current&&h$2(l.current,R)&&(m$1.current=R),b$b()||e.selectionManager.setFocusedKey(o.key);return}f==="child"&&h.relatedTarget&&h$2(l.current,h.relatedTarget)||requestAnimationFrame(()=>{f==="child"&&i$2(a$b(l.current))===l.current&&T();});},P=c$2(g,{role:"gridcell",onKeyDownCapture:b!=="tab"||i?S:void 0,onKeyDown:b==="tab"?C:void 0,"aria-colspan":o.colSpan,"aria-colindex":o.colIndex!=null?o.colIndex+1:void 0,colSpan:r?void 0:o.colSpan,onFocus:D,...f==="child"&&b==="tab"?{tabIndex:-1}:{}});return r&&(P["aria-colindex"]=(o.colIndex??o.index)+1),d&&P.tabIndex!=null&&P.onPointerDown==null&&(P.onPointerDown=h=>{let R=h.currentTarget,x=R.getAttribute("tabindex");R.removeAttribute("tabindex"),requestAnimationFrame(()=>{x!=null&&R.setAttribute("tabindex",x);});}),{gridCellProps:P,isPressed:w}}function kt(t){let e=null,l=null;do l=t.lastChild(),l&&(e=l);while(l);return e}function vt(t,e,l){let{node:o}=t,r=o.props.allowsSorting,{gridCellProps:n}=Xe({focusMode:"child",...t},e,l),i=o.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:d,isPressed:a}=d$2({isDisabled:!r||i,onPress(){e.sort(o.key);},ref:l}),{focusableProps:u}=c$5({},l),c,s=e.sortDescriptor?.column===o.key,b=e.sortDescriptor?.direction;o.props.allowsSorting&&!l$1()&&(c=s?b:"none");let f=b$6(J,"@react-aria/table"),p;r&&(p=`${f.format("sortable")}`,s&&b&&l$1()&&(p=`${p}, ${f.format(b)}`));let m=d$1(p),T=e.collection.size===0;return useEffect(()=>{T&&e.selectionManager.focusedKey===o.key&&e.selectionManager.setFocusedKey(null);},[T,e.selectionManager,o.key]),{columnHeaderProps:{...c$2(u,n,d,m,T?{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:a}}function Ll(t,e,l){let{node:o,isVirtualized:r,shouldSelectOnPressUp:n,onAction:i}=t,{actions:d,shouldSelectOnPressUp:a}=ge.get(e),u=d.onRowAction?()=>d.onRowAction?.(o.key):i,{itemProps:c,...s}=d$3({selectionManager:e.selectionManager,key:o.key,ref:l,isVirtualized:r,shouldSelectOnPressUp:a||n,onAction:u||o?.props?.onAction?a$m(o?.props?.onAction,u):void 0,isDisabled:e.collection.size===0}),b=e.selectionManager.isSelected(o.key),f={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?b:void 0,"aria-disabled":s.isDisabled||void 0,...c};return r&&(f["aria-rowindex"]=o.index+1),{rowProps:f,...s}}var Fl={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function zt(t,e,l){let{node:o,isVirtualized:r}=t,{rowProps:n,...i}=Ll(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 a=e.treeColumn!=null&&(e.expandedKeys==="all"||e.expandedKeys.has(o.key)),u=b$6(J,"@react-aria/table"),c=a$j({"aria-label":a?u.format("collapse"):u.format("expand"),"aria-labelledby":De(e,o.key)}),s={},b={};if(e.treeColumn!=null){let m=e.collection.getItem(o.key);if(m!=null){let T=Hl(e.collection,o),g=m.props?.hasChildRows||m.props?.UNSTABLE_childItems||T?.type!=="cell",w=e.collection.getItem(o.parentKey),S=w.type==="tablebody"||w.type==="body",C=Hl(e.collection,w);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=e.collection.getItem(C.prevKey);s={onKeyDown:D=>{D.key===Fl.expand[d]&&e.selectionManager.focusedKey===m.key&&g&&e.expandedKeys!=="all"&&!e.expandedKeys.has(m.key)?(e.toggleKey(m.key),D.stopPropagation()):D.key===Fl.collapse[d]&&e.selectionManager.focusedKey===m.key&&(e.expandedKeys!=="all"?g&&e.expandedKeys.has(m.key)?(e.toggleKey(m.key),D.stopPropagation()):!e.expandedKeys.has(m.key)&&m.parentKey!=null&&m.level>0&&(e.selectionManager.setFocusedKey(m.parentKey),D.stopPropagation()):e.expandedKeys==="all"&&(e.toggleKey(m.key),D.stopPropagation()));},"aria-expanded":g?e.expandedKeys==="all"||e.expandedKeys.has(o.key):void 0,"aria-level":m.level+1,"aria-posinset":m.index-(S?0:e.collection.columnCount)+1,"aria-setsize":C.index-(S?0:e.collection.columnCount)+1},b={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 f=q(o.props),p=i.hasAction?f:{};return {rowProps:{...c$2(n,s,p),"aria-labelledby":De(e,o.key)},expandButtonProps:b,...i}}function Hl(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 Rt(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$k(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(J,"@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,e,l){let{column:o,triggerRef:r,isDisabled:n,onResizeStart:i,onResize:d,onResizeEnd:a,"aria-label":u}=t,c=b$6(J,"@react-aria/table"),s=c$3(),b=e.resizingColumn===o.key,f$1=useRef(b),p=useRef(null),m=useRef(false),T=e.tableState.isKeyboardNavigationDisabled,[g,w]=useState(false),{direction:S}=b$2(),C=useCallback(z=>{f$1.current||(p.current=e.updateResizedColumns(z.key,e.getColumnWidth(z.key)),e.startResize(z.key),e.tableState.setKeyboardNavigationDisabled(true),i?.(p.current)),f$1.current=true;},[e,i]),D=useCallback((z,K)=>{let G=e.updateResizedColumns(z.key,K);d?.(G),p.current=G;},[e,d]),P=useCallback(z=>{f$1.current&&(p.current==null&&(p.current=e.updateResizedColumns(z.key,e.getColumnWidth(z.key))),e.endResize(),e.tableState.setKeyboardNavigationDisabled(false),a?.(p.current),f$1.current=false,r?.current&&!m.current&&i$1(r.current)),p.current=null;},[e,r,a]),h=()=>{if(T){P(o);return}return false},{keyboardProps:R}=j$2({shortcuts:{Escape:()=>h(),Enter:()=>{T?P(o):C(o);}," ":()=>h(),Tab:()=>h()}}),x=useRef(0),{moveProps:v}=a$i({onMoveStart(z){x.current=e.getColumnWidth(o.key),z.pointerType==="mouse"&&w(true),C(o);},onMove(z){let{deltaX:K,deltaY:G,pointerType:lt}=z;S==="rtl"&&(K*=-1),lt==="keyboard"&&(G!==0&&K===0&&(K=G*-1),K*=10),K!==0&&(x.current+=K,D(o,x.current));},onMoveEnd(z){let{pointerType:K}=z;x.current=0,w(false),(K==="mouse"||K==="touch"&&m.current)&&P(o);}}),N=useCallback(z=>{T&&v.onKeyDown?.(z);},[T,v]),j=Math.floor(e.getColumnMinWidth(o.key)),U=Math.floor(e.getColumnMaxWidth(o.key));U===1/0&&(U=Number.MAX_SAFE_INTEGER);let Z=Math.floor(e.getColumnWidth(o.key)),_=f();_==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(_="touch");let we=r?.current==null&&(_==="keyboard"||_==="virtual")&&!b?c.format("resizerDescription"):void 0,te=d$1(we),oe={"aria-label":u,"aria-orientation":"horizontal","aria-labelledby":`${s} ${_e(e.tableState,o.key)}`,"aria-valuetext":c.format("columnSize",{value:Z}),type:"range",min:j,max:U,value:Z,...te},re=useCallback(()=>{l.current&&i$1(l.current);},[l]),ne=e.resizingColumn,me=useRef(null),Ee=u$1(C);useEffect(()=>{if(me.current!==ne&&ne!=null&&ne===o.key){m.current=i$2(a$b(l.current))===l.current,Ee(o);let z=setTimeout(()=>re(),0),K=setTimeout(re,400);return ()=>{clearTimeout(z),clearTimeout(K);}}me.current=ne;},[ne,o,re,l]);let et=z=>{let K=e.getColumnWidth(o.key),G=parseFloat(j$3(z).value);G>K?G=K+10:G=K-10,D(o,G);},{pressProps:xe}=d$2({preventFocusOnPress:true,onPressStart:z=>{if(!(z.ctrlKey||z.altKey||z.metaKey||z.shiftKey||z.pointerType==="keyboard")){if(z.pointerType==="virtual"&&e.resizingColumn!=null){P(o);return}re(),z.pointerType!=="virtual"&&C(o);}},onPress:z=>{(z.pointerType==="touch"&&m.current||z.pointerType==="mouse")&&e.resizingColumn!=null&&P(o);}}),{visuallyHiddenProps:tt}=a$c();return {resizerProps:c$2(R,{...v,onKeyDown:N},xe,{style:{touchAction:"none"}}),inputProps:c$2(tt,{id:s,onBlur:()=>{P(o);},onChange:et,disabled:n},oe),isResizing:b,isMouseResizing:g}}function Ol(){return {rowGroupProps:{role:"rowgroup"}}}function qe(){return Ol()}var Nt=class extends g{headerRows=[];columns=[];rows=[];rowHeaderColumnKeys=new Set;head=new Je(-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 Qe(-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(" ")}},Ft=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 a$4=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(Ft.Provider,{value:a$4,children:e$1.children})})});var no=createContext(null),Q=createContext(null),Ht=createContext(null),xa=forwardRef(function(e,l$1){[e,l$1]=e$1(e,l$1,no);let o=a$4(e),{selectionBehavior:r,selectionMode:n,disallowEmptySelection:i$1}=o,d=!!e.dragAndDropHooks?.useDraggableCollectionState,a=useMemo(()=>({selectionBehavior:n==="none"?null:r,selectionMode:n,disallowEmptySelection:i$1,allowsDragging:d}),[r,n,i$1,d]),u=jsx(so.Provider,{value:a,children:jsx(l,{...e})});return jsx(i,{content:u,createCollection:()=>new Nt,children:c=>jsx(ao,{props:e,forwardedRef:l$1,selectionState:o,collection:c})})}),io=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.table,{...e,ref:l})}),Vl={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function ao({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,a$1=useContext(Ft);e=a(useMemo(()=>b$1(e,a$1?.tableRef),[e,a$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 s$1=gt({...d,collection:o,children:void 0,UNSAFE_selectionState:l,expandedKeys:u,onExpandedChange:c$3}),b$5=Tt(s$1,i),{isVirtualized:f,layoutDelegate:p$1,dropTargetDelegate:m,CollectionRoot:T}=useContext(p),{dragAndDropHooks:g}=t,{gridProps:w}=xt({...d,layoutDelegate:p$1,isVirtualized:f},b$5,e),S=b$5.selectionManager,C=!!g?.useDraggableCollectionState,D=!!g?.useDroppableCollectionState,P=useRef(C),h=useRef(D);useEffect(()=>{process.env.NODE_ENV!=="production"&&(P.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),h.current!==D&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[C,D]);let R,x$1,v$1,N=false,j=null,U=useRef(null),{direction:Z}=b$2(),[_]=useState(()=>new a$6);if(C&&g){R=g.useDraggableCollectionState({collection:b$5.collection,selectionManager:S,preview:g.renderDragPreview?U:void 0}),g.useDraggableCollection({},R,e);let xe=g.DragPreview;j=g.renderDragPreview?jsx(xe,{ref:U,children:g.renderDragPreview}):null;}if(D&&g){x$1=g.useDroppableCollectionState({collection:b$5.collection,selectionManager:S});let xe=new b$3({collection:b$5.collection,disabledKeys:S.disabledKeys,disabledBehavior:S.disabledBehavior,ref:e,layoutDelegate:p$1}),tt=g.dropTargetDelegate||m||new g.ListDropTargetDelegate(o.rows,e);_.setup(tt,s$1,Z),v$1=g.useDroppableCollection({keyboardDelegate:xe,dropTargetDelegate:_,onDropActivate:z=>{if(z.target.type==="item"){let K=z.target.key,G=s$1.collection.getItem(K),lt=u.has(K);G&&G.hasChildNodes&&(!lt||g?.isVirtualDragging?.())&&s$1.toggleKey(K);}},onKeyDown:z=>{let K=x$1?.target;if(K&&K.type==="item"&&K.dropPosition==="on"){let G=s$1.collection.getItem(K.key);(z.key===Vl.expand[Z]&&G?.hasChildNodes&&!s$1.expandedKeys.has(K.key)||z.key===Vl.collapse[Z]&&G?.hasChildNodes&&s$1.expandedKeys.has(K.key))&&s$1.toggleKey(K.key);}}},x$1,e),N=x$1.isDropTarget({type:"root"});}let{focusProps:we,isFocused:te,isFocusVisible:oe}=a$7(),re=c({...t,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:N,isFocused:te,isFocusVisible:oe,state:b$5}}),ne=!!(C&&!R?.isDisabled),me=re.style,Ee=null;a$1&&(Ee=a$1.useTableColumnResizeState({tableWidth:a$1.tableWidth},b$5),f||(me={...me,tableLayout:"fixed",width:"min-content"}));let et=a$3(t,{global:true});return jsxs(b$4,{values:[[Q,b$5],[Ht,Ee],[r,{dragAndDropHooks:g,dragState:R,dropState:x$1}],[s,{render:fo}],[b,null],[c$1,null]],children:[jsx(a$8,{children:jsx(io,{...c$2(et,re,w,we,v$1?.collectionProps),style:me,ref:e,slot:t.slot||void 0,onScroll:t.onScroll,"data-allows-dragging":ne||void 0,"data-drop-target":N||void 0,"data-focused":te||void 0,"data-focus-visible":oe||void 0,children:jsx(x,{children:jsx(T,{collection:b$5.collection,scrollRef:a$1?.scrollRef??e,persistedKeys:v(S,g,x$1)})})})}),j]})}var so=createContext(null);var Je=class extends a$h{static type="tableheader"},co=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.thead,{...e,ref:l})}),ka=k(Je,(t,e)=>{let l=useContext(Q).collection,o=h$1({items:l.headerRows,children:useCallback(a=>{if(a.type==="headerrow")return jsx(mo,{item:a});throw new Error("Unsupported node type in TableHeader: "+a.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(co,{...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})),uo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx("div",{...e,ref:l}):jsx("tr",{...e,ref:l})});function mo({item:t}){let e=useRef(null),l=useContext(Q),{isVirtualized:o,CollectionBranch:r}=useContext(p),{rowProps:n}=Rt({node:t,isVirtualized:o},l),{checkboxProps:i}=Pt(l);return jsx(uo,{...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"},po=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.th,{...e,ref:l})}),va=j(Et,(t,e,l)=>{let o=a(e),r=useContext(Q),{isVirtualized:n$1}=useContext(p),{columnHeaderProps:i,isPressed:d}=vt({node:l,isVirtualized:n$1,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},r,o),{isFocused:a$1,isFocusVisible:u,focusProps:c$1}=a$7(),s=useContext(Ht),b=false;if(s)b=s.resizingColumn===l.key;else if(process.env.NODE_ENV!=="production")for(let w in ["width","defaultWidth","minWidth","maxWidth"])w in l.props&&console.warn(`The ${w} 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:f,isHovered:p$1}=a$9({isDisabled:!t.allowsSorting}),m=c({...t,id:void 0,children:l.rendered,defaultClassName:"react-aria-Column",values:{isHovered:p$1,isPressed:d,isFocused:a$1,isFocusVisible:u,allowsSorting:l.props.allowsSorting,sortDirection:r.sortDescriptor?.column===l.key?r.sortDescriptor.direction:void 0,isResizing:b,startResize:()=>{if(s)s.startResize(l.key),r.setKeyboardNavigationDisabled(true);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:w=>{r.sort(l.key,w);}}}),T=m.style;s&&(T={...T,width:s.getColumnWidth(l.key)});let g=a$3(t,{global:true});return delete g.id,jsx(po,{...c$2(g,i,c$1,f),...m,style:T,ref:o,"data-hovered":p$1||void 0,"data-pressed":d||void 0,"data-focused":a$1||void 0,"data-focus-visible":u||void 0,"data-resizing":b||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:[[Wl,{column:l,triggerRef:o}],[p,n]],children:m.children})})}),Wl=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(Kl,"react-aria-components"),{onResizeStart:n,onResize:i,onResizeEnd:d}=useContext(Ft),{column:a$1,triggerRef:u}=useContext(Wl),c$1=useRef(null),{resizerProps:s,inputProps:b,isResizing:f,isMouseResizing:p}=Mt({column:a$1,"aria-label":e["aria-label"]||r.format("tableResizer"),onResizeStart:n,onResize:i,onResizeEnd:d,triggerRef:u},o,c$1),{focusProps:m,isFocused:T,isFocusVisible:g}=a$7(),{hoverProps:w,isHovered:S}=a$9(e),C=o.getColumnMinWidth(a$1.key)>=o.getColumnWidth(a$1.key),D=o.getColumnMaxWidth(a$1.key)<=o.getColumnWidth(a$1.key),{direction:P}=b$2(),h$1="both";C?h$1=P==="rtl"?"right":"left":D?h$1=P==="rtl"?"left":"right":h$1="both";let R=a(l),[x,v]=useState("");useEffect(()=>{if(!R.current)return;let U=b$7(R.current).getComputedStyle(R.current);v(U.cursor);},[R,h$1]);let N=c({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:T,isFocusVisible:g,isResizing:f,isHovered:S,resizableDirection:h$1}}),j=a$3(e,{global:true});return jsxs(h.div,{ref:R,role:"presentation",...c$2(j,N,s,w),"data-hovered":S||void 0,"data-focused":T||void 0,"data-focus-visible":g||void 0,"data-resizing":f||void 0,"data-resizable-direction":h$1,children:[N.children,jsx("input",{ref:c$1,...c$2(b,m)}),f&&p&&ro.createPortal(jsx("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:x},"data-testid":"cursor-overlay"}),a$b(R.current).body)]})});var Qe=class extends b$8{static type="tablebody"},bo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tbody,{...e,ref:l})}),Ra=k(Qe,(t,e,l)=>{let o=useContext(Q),{isVirtualized:r$1}=useContext(p),n=o.collection,{CollectionBranch:i}=useContext(p),{dragAndDropHooks:d,dropState:a}=useContext(r),u$1=!!d?.useDroppableCollectionState&&!a?.isDisabled,c$1=u$1&&!!a&&(a.isDropTarget({type:"root"})??false),s=n.size===0,b={isDropTarget:c$1,isEmpty:s},f=c({...t,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:b}),p$1,m=n.columnCount;if(s&&t.renderEmptyState&&o){let w={},S={},C={};r$1?(S["aria-colspan"]=m,C={display:"contents"}):S.colSpan=m,p$1=jsx(Te,{role:"row",...w,style:C,children:jsx(Se,{role:"rowheader",...S,style:C,children:t.renderEmptyState(b)})});}let{rowGroupProps:T}=qe(),g=a$3(t,{global:true});return jsxs(bo,{...c$2(g,f,T),ref:e,"data-empty":s||void 0,children:[u$1&&jsx(So,{}),jsx(i,{collection:n,parent:l,renderDropIndicator:u(d,a)}),p$1]})});forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tfoot,{...e,ref:l})});var Bl=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}},Te=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tr,{...e,ref:l})}),Da=k(It,(t,e,l)=>{let o=a(e),r$1=useContext(Q),{dragAndDropHooks:n,dragState:i,dropState:d}=useContext(r),{isVirtualized:a$1,CollectionBranch:u}=useContext(p),c$1=i&&!(i.isDisabled||i.selectionManager.isDisabled(l.key)),{rowProps:s,expandButtonProps:b,...f}=zt({node:l,shouldSelectOnPressUp:!!i,isVirtualized:a$1},r$1,o),{isFocused:p$1,isFocusVisible:m,focusProps:T}=a$7(),{isFocusVisible:g,focusProps:w$1}=a$7({within:true}),{hoverProps:S,isHovered:C}=a$9({isDisabled:!f.allowsSelection&&!f.hasAction&&!c$1,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{checkboxProps:D}=Dt({key:l.key},r$1),P;i&&n&&(P=n.useDraggableItem({key:l.key,hasDragButton:true},i,o));let h,R=useRef(null),{visuallyHiddenProps:x}=a$c();d&&n&&(h=n.useDropIndicator({target:{type:"item",key:l.key,dropPosition:"on"}},d,R));let v=useRef(null);useEffect(()=>{i&&!v.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 N=i&&i.isDragging(l.key),{children:j,...U}=t,Z=t.hasChildItems||r$1.collection.getItem(l.lastChildKey)?.type!=="cell",_=Z&&r$1.expandedKeys.has(l.key),we=c({...U,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":l.level+1},values:{...f,state:r$1,isHovered:C,isFocused:p$1,isFocusVisible:m,selectionMode:r$1.selectionManager.selectionMode,selectionBehavior:r$1.selectionManager.selectionBehavior,isDragging:N,isDropTarget:h?.isDropTarget,isFocusVisibleWithin:g,id:l.key,hasChildItems:Z,isExpanded:_,level:l.level+1}}),te=a$3(t,{global:true});delete te.id,delete te.onClick;let oe=w(P,n,o);return jsxs(Fragment,{children:[h&&!h.isHidden&&jsx(Te,{role:"row",style:{height:0},children:jsx(Se,{role:"gridcell",colSpan:r$1.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...x,...h.dropIndicatorProps,ref:R})})}),jsx(Te,{...c$2(te,we,s,T,S,oe.itemProps,w$1),ref:o,"data-disabled":f.isDisabled||void 0,"data-selected":f.isSelected||void 0,"data-hovered":C||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":m||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":N||void 0,"data-drop-target":h?.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$e]:{},selection:D}}],[b$5,{slots:{[a$e]:{},selection:D}}],[a$d,{slots:{[a$e]:{},chevron:b,drag:{...oe.dragButtonProps,ref:v}}}],[y,{isSelected:f.isSelected}],[Bl,{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"},Se=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.td,{...e,ref:l})}),Pa=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:a$1}=Kt({node:l,shouldSelectOnPressUp:!!n$1,isVirtualized:i,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},r$1,o),{isFocused:u,isFocusVisible:c$1,focusProps:s}=a$7(),{hoverProps:b,isHovered:f}=a$9({}),{isFocusVisibleWithinRow:p$1}=useContext(Bl),m=l.parentKey!=null?r$1.selectionManager.isSelected(l.parentKey):false,T=l.colIndex||l.index,g=r$1.collection.getItem(l.parentKey),w=g.props.hasChildItems||r$1.collection.getItem(g.lastChildKey)?.type!=="cell",S=w&&r$1.expandedKeys.has(l.parentKey),C=r$1.selectionManager.isDisabled(l.parentKey),D=c({...t,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:u,isFocusVisible:c$1,isFocusVisibleWithinRow:p$1,isPressed:a$1,isHovered:f,isSelected:m,id:l.key,columnIndex:T,hasChildItems:w,isExpanded:S,isDisabled:C,level:g.level+1,isTreeColumn:l.column.key===r$1.treeColumn}}),P=a$3(t,{global:true});return delete P.id,jsx(Se,{...c$2(P,D,d,s,b),ref:o,"data-focused":u||void 0,"data-focus-visible":c$1||void 0,"data-focus-visible-within-row":p$1||void 0,"data-pressed":a$1||void 0,"data-selected":m||void 0,"data-column-index":T,"data-expanded":S||void 0,"data-has-child-items":w||void 0,"data-level":g.level+1,"data-tree-column":l.column.key===r$1.treeColumn||void 0,"data-disabled":C||void 0,children:jsx(p.Provider,{value:n,children:D.children})})});function fo(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 a$1=o&&t.target.type==="item"?(o.collection.getItem(t.target.key)?.level||0)+1:1;return jsx(To,{...t,dropIndicatorProps:n,isDropTarget:d,buttonRef:r$1,level:a$1,ref:e})}var yo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tr,{...e,ref:l})}),ho=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.td,{...e,ref:l})});function go(t,e){let{dropIndicatorProps:l,isDropTarget:o,buttonRef:r,level:n,...i}=t,d=useContext(Q),{visuallyHiddenProps:a}=a$c(),u=c({...i,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":n+1},values:{isDropTarget:o}});return jsx(yo,{...a$3(t,{global:true}),...u,role:"row",ref:e,"data-drop-target":o||void 0,"aria-level":n,children:jsxs(ho,{role:"gridcell",colSpan:d.collection.columnCount,style:{padding:0},children:[jsx("div",{...a,role:"button",...l,ref:r}),u.children]})})}var To=forwardRef(go);function So(){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(Te,{role:"row","aria-hidden":r$1["aria-hidden"],style:{height:0},children:jsx(Se,{role:"gridcell",colSpan:t.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...i,...r$1,ref:o})})})}var Ma=j(d,function(e,l,o){let r=useContext(Q),{isVirtualized:n}=useContext(p),{isLoading:i,onLoadMore:d,scrollOffset:a,...u}=e,c$1=r.collection.columns.length,s=useRef(null),b=useMemo(()=>({onLoadMore:d,collection:r?.collection,sentinelRef:s,scrollOffset:a}),[d,a,r?.collection]);j$1(b,s);let f=c({...u,id:void 0,children:o.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":o.level+1},values:void 0}),p$1={},m={},T={};return n?(m["aria-colspan"]=c$1,T={display:"contents"}):m.colSpan=c$1,jsxs(Fragment,{children:[jsx(Te,{style:{height:0},inert:k$1(true),children:jsx(Se,{style:{padding:0,border:0},children:jsx("div",{"data-testid":"loadMoreSentinel",ref:s,style:{position:"relative",height:1,width:1}})})}),i&&f.children&&jsx(Te,{...c$2(a$3(e,{global:true}),p$1),...f,role:"row",ref:l,"aria-level":o.level+1,"data-level":o.level+1,children:jsx(Se,{role:"rowheader",...m,style:T,children:f.children})})]})});export{Ue as a,Ht as b,xa as c,ka as d,va as e,Ra as f,Da as g,Pa as h,Ma as i};
@@ -1,10 +0,0 @@
1
- import {d as d$1}from'./chunk-GQIS4QBN.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {a as a$2}from'./chunk-PPHSLODC.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {a as a$1,b}from'./chunk-SD43KVTU.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 w=500;function W(L){let{isDisabled:n,pointerType:i,onLongPressStart:p,onLongPressEnd:u,onLongPress:r,threshold:b$1=w,accessibilityDescription:E}=L,t=useRef(void 0),{addGlobalListener:o,removeAllGlobalListeners:v}=a(),l=e=>i?e.pointerType===i:e.pointerType==="mouse"||e.pointerType==="touch",{pressProps:y}=d({isDisabled:n,onPressStart(e){if(e.continuePropagation(),l(e)){p&&p({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true})),o(e.target,"click",s=>s.preventDefault(),{once:true}),a$1(e.target).activeElement!==e.target&&a$2(e.target),r&&r({...e,type:"longpress"}),t.current=void 0;},b$1),e.pointerType==="touch"&&o(e.target,"contextmenu",s=>s.preventDefault(),{once:true});let D=b(e.target);o(D,"pointerup",()=>{setTimeout(()=>{v();},100);},{once:true});}},onPressEnd(e){t.current&&clearTimeout(t.current),u&&l(e)&&u({...e,type:"longpressend"});}}),T=d$1(r&&!n?E:void 0);return {longPressProps:c(y,T)}}export{W as a};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-SGZWUG3H.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {a as a$3}from'./chunk-B3EZOXNU.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import n 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 E="_1h7pyh00",R="_1yep5z61vb _1yep5z61v9 _1yep5z61rf _1yep5z61vc";var _=n.forwardRef(({className:r,style:s,children:x,childClassName:i,childStyle:a$6,elementType:p="button",...o},C)=>{let e=n.Children.only(x);if(!n.isValidElement(e))throw new Error("Actionable: children must be a single React element");let b=a(C),{buttonProps:D,isPressed:f}=a$1({...o,elementType:p},b),{isFocusVisible:c$1,isFocused:m,focusProps:F}=a$2(),{hoverProps:g,isHovered:u}=a$3({isDisabled:o.isDisabled}),z=a$4({"data-focused":m,"data-focus-visible":c$1,"data-disabled":o.isDisabled,"data-hovered":u,"data-pressed":f}),t={isHovered:u,isFocused:m,isPressed:f,isDisabled:o.isDisabled,isFocusVisible:c$1},B=n.cloneElement(e,{className:a$5(e.props.className,{[R]:c$1},typeof i=="function"?i(t):i,"BaselineUI-Actionable-Child"),style:{...e.props.style,...typeof a$6=="function"?a$6(t):a$6}});return jsx(p==="button"?"button":p,{...c(D,g,F),...z,className:a$5(E,"BaselineUI-Actionable",typeof r=="function"?r(t):r),ref:b,style:typeof s=="function"?s(t):s,children:B})});_.displayName="Actionable";export{_ as a};
@@ -1,10 +0,0 @@
1
- import {a as a$7}from'./chunk-NV7KQVPE.mjs';import {a as a$c}from'./chunk-KVIV5RTE.mjs';import {a as a$4}from'./chunk-AELTF2DE.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-4MHBLLHV.mjs';import {a as a$2}from'./chunk-CY6W27WG.mjs';import {b,c as c$3}from'./chunk-DZDZZRWE.mjs';import {a as a$9,b as b$3}from'./chunk-TUJLNJPJ.mjs';import {a as a$b}from'./chunk-O7XK2WIX.mjs';import {b as b$2}from'./chunk-K5RYVERS.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {a as a$a}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-STMDFIUL.mjs';import {a as a$6}from'./chunk-B3EZOXNU.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$e}from'./chunk-ETM4MNG4.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 {c,a as a$1,d,e}from'./chunk-UNGYVWKZ.mjs';import {a as a$7}from'./chunk-XWJJ4V3O.mjs';import {a as a$3}from'./chunk-PYV5J322.mjs';import {a as a$6}from'./chunk-WTAJLO6E.mjs';import {a,b as b$2}from'./chunk-SZTFMBPY.mjs';import {b as b$1,c as c$2}from'./chunk-DZDZZRWE.mjs';import {a as a$4}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-VGFPT43C.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-K5RYVERS.mjs';import {b as b$4,j}from'./chunk-MBRNO6IW.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {c as c$1}from'./chunk-ETM4MNG4.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import {CalendarIcon}from'@baseline-ui/icons/16';import {createCalendar}from'@internationalized/date';import p 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 w=p.forwardRef(({className:H,labelPosition:m,"data-block-id":A,"data-block-class":L,pickerType:i="none",openCalendarLabel:N,...e$1},E)=>{let{locale:j$1}=b(),{formatMessage:z}=b$1(),s={...e$1,validationState:void 0,isInvalid:e$1.validationState==="error"||!!e$1.errorMessage||void 0},t=c({...s,locale:j$1,createCalendar:createCalendar}),f=e$1.errorMessage||t.displayValidation.validationErrors.join(" "),c$2=c$1(),W=a({...e$1,errorMessage:f})==="warningMessage"?{...s,"aria-describedby":[e$1["aria-describedby"],c$2].filter(Boolean).join(" ")}:s,n=p.useRef(null),{labelProps:G,fieldProps:U,descriptionProps:Y,inputProps:_,errorMessageProps:q,isInvalid:J}=a$1(W,t,n),K=b$2({...e$1,errorMessage:f,descriptionProps:Y,errorMessageProps:q,warningMessageProps:{id:c$2},labelPosition:m}),{focusProps:Q,isFocused:X}=a$2({within:true}),Z=t.value,$=e$1.isDisabled||e$1.isReadOnly,[ee,ae]=p.useState(false),te=e$1["aria-label"]??(typeof e$1.label=="string"?e$1.label:void 0),oe=o=>{let r=t.value;r!=null&&"hour"in r?t.setValue(r.set({year:o.year,month:o.month,day:o.day})):t.setValue(o);};return jsxs(a$3,{className:a$8("BaselineUI-DateField",H),labelProps:G,fieldProps:U,ref:E,wrapperRef:n,wrapperClassName:d,labelPosition:m,message:K,isFocused:X||ee,"data-block-id":A,"data-block-class":L,isInvalid:J,...e$1,children:[jsx(b$3,{children:jsx("input",{..._})}),jsx(a$4,{display:"flex",flexDirection:"row",paddingRight:i==="none"?"md":void 0,style:{flex:1},...Q,children:t.segments.map((o,r)=>jsx(e,{segment:o,state:t},r))}),i==="presentation"?jsx(a$4,{color:"text.secondary",display:"flex",alignItems:"center",paddingRight:"md",children:jsx(CalendarIcon,{size:16})}):null,i==="calendar"?jsxs(b$4,{type:"dialog",onOpenChange:ae,children:[jsx(j,{children:({triggerProps:o,triggerRef:r})=>jsx(a$5,{...o,ref:r,icon:CalendarIcon,variant:"primary",size:"sm",isDisabled:$,"aria-label":N??z(ie.openCalendar)})}),jsx(a$6,{placement:"bottom end",offset:2,triggerRef:n,children:jsx(a$7,{value:Z,onChange:oe,minValue:e$1.minValue,maxValue:e$1.maxValue,isDisabled:e$1.isDisabled,isReadOnly:e$1.isReadOnly,headerVariant:"selectMonthAndYear","aria-label":te})})]}):null]})});w.displayName="DateField";var ie=c$2({openCalendar:{defaultMessage:"Open calendar",id:"bui.dateField.openCalendar"}});export{w as a};
@@ -1,10 +0,0 @@
1
- import {a as a$5}from'./chunk-PYV5J322.mjs';import {a as a$1,b}from'./chunk-SZTFMBPY.mjs';import {c as c$1}from'./chunk-PG3WDHSK.mjs';import {a}from'./chunk-7SQRBY7N.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {c as c$2}from'./chunk-3WKDIXCM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import A 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 F=A.forwardRef(({className:H,validationState:s,variant:w="primary",labelPosition:t="top",inputStyle:d,inputClassName:N,isMultiLine:r=false,rows:v,"data-block-id":L,"data-block-class":h,...e},k)=>{let a$6=A.useRef(null),{inputProps:o,labelProps:B,descriptionProps:D,errorMessageProps:j,validationErrors:O}=a({...e,inputElementType:r?"textarea":"input",validationState:s==="error"||e.errorMessage?"invalid":s?"valid":void 0},a$6),n=e.errorMessage||O.join(" "),m=c(),C=a$1({...e,errorMessage:n})==="warningMessage",U=b({...e,errorMessage:n,descriptionProps:D,errorMessageProps:j,warningMessageProps:{id:m},labelPosition:t});n&&(s="error");let{isFocused:c$3,focusProps:u,isFocusVisible:V}=a$2(),f=C?{"aria-describedby":[o["aria-describedby"],m].filter(Boolean).join(" ")}:null,T=a$3({"data-readonly":e.isReadOnly,"data-disabled":e.isDisabled,"data-validation-state":s,"data-focused":c$3,"data-focus-visible":V}),g=a$4(c$1({isDisabled:e.isDisabled,labelPosition:t,isMultiLine:r}),"BaselineUI-TextInput-Input",N);return jsx(a$5,{variant:w,labelProps:B,isFocused:c$3,message:U,ref:k,labelPosition:t,className:a$4("BaselineUI-TextInput",H),validationState:s,isMultiLine:r,"data-block-id":L,"data-block-class":h,...e,children:r?jsx("textarea",{...c$2(o,u,T,f),className:g,style:d,rows:v,ref:a$6}):jsx("input",{...c$2(o,u,T,f),className:g,style:d,ref:a$6})})});F.displayName="TextInput";export{F as a};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {forwardRef,createContext,useRef,useMemo,useContext,useState,useCallback}from'react';import {jsx,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 M=Symbol("default");function Y({values:e,children:t}){for(let[r,o]of e)t=jsx(r.Provider,{value:o,children:t});return t}function Z(e){let{className:t,style:r,children:o,defaultClassName:l=void 0,defaultChildren:n=void 0,defaultStyle:a,values:i,render:d}=e;return useMemo(()=>{let c,u,s;return typeof t=="function"?c=t({...i,defaultClassName:l}):c=t,typeof r=="function"?u=r({...i,defaultStyle:a||{}}):u=r,typeof o=="function"?s=o({...i,defaultChildren:n}):o==null?s=n:s=o,{className:c??l,style:u||a?{...a,...u}:void 0,children:s??n,"data-rac":"",render:d?C=>d(C,i):void 0}},[t,r,o,l,n,a,i,d])}function D(e,t){let r=useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let o=t||M;if(!r.slots[o]){let l=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),n=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${n} Valid slot names are ${l}.`)}return r.slots[o]}return r}function ee(e,t,r){let o=D(r,e.slot)||{},{ref:l,...n}=o,a=a$1(useMemo(()=>b(t,l),[t,l])),i=c(n,e);return "style"in n&&n.style&&"style"in e&&e.style&&(typeof n.style=="function"||typeof e.style=="function"?i.style=d=>{let c=typeof n.style=="function"?n.style(d):n.style,u={...d.defaultStyle,...c},s=typeof e.style=="function"?e.style({...d,defaultStyle:u}):e.style;return {...u,...s}}:i.style={...n.style,...e.style}),[i,a]}function re(e=true){let[t,r]=useState(e),o=useRef(false),l=useCallback(n=>{o.current=true,r(!!n);},[]);return a(()=>{o.current||r(false);},[]),[l,t]}function te(e){let t=/^(data-.*)$/,r={};for(let o in e)t.test(o)||(r[o]=e[o]);return r}function A(e,t,r){let{render:o,...l}=t,n=useRef(null),a$1=useMemo(()=>b(r,n),[r,n]);a(()=>{process.env.NODE_ENV!=="production"&&o&&(n.current?n.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, 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`?"));},[e,o]);let i={...l,ref:a$1};return o?o(i,void 0):jsx(e,{...i})}var T={},oe=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=T[t];return r||(r=forwardRef(A.bind(null,t)),T[t]=r),r}});typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:true,enumerable:true,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:true,enumerable:true,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:true,enumerable:true,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:true,enumerable:true,value:function(e,t){return this.content.insertBefore(e,t)}}));var f=createContext(false);function fe(e){if(useContext(f))return jsx(Fragment,{children:e.children});let r=jsx(f.Provider,{value:true,children:e.children});return jsx("template",{children:r})}function g(e){let t=(r,o)=>useContext(f)?null:e(r,o);return t.displayName=e.displayName||e.name,forwardRef(t)}function F(){return useContext(f)}export{M as a,Y as b,Z as c,D as d,ee as e,re as f,te as g,oe as h,fe as i,g as j,F as k};
@@ -1,10 +0,0 @@
1
- import {a as a$5}from'./chunk-JZXLV6JU.mjs';import {a as a$2}from'./chunk-7SQRBY7N.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$4}from'./chunk-VGFPT43C.mjs';import {a as a$1}from'./chunk-FPM5UJRF.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import {useGranularEffect}from'granular-hooks';import Y,{useCallback,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 $=a({defaultClassName:"_1bwul1t8 _1yep5z6m6 _1yep5z6me _1yep5z6ey _1yep5z6g9",variantClassNames:{size:{xs:"_1bwul1t9 _1yep5z6q7 _1yep5z6q8 _1yep5z6q9 _1yep5z6nv _1yep5z6nw _1yep5z6nx _1yep5z610e",sm:"_1bwul1ta _1yep5z6qa _1yep5z6qb _1yep5z6qc _1yep5z6ny _1yep5z6nz _1yep5z6o0 _1yep5z610h",md:"_1bwul1tb _1yep5z6qa _1yep5z6qb _1yep5z6qc _1yep5z6ny _1yep5z6nz _1yep5z6o0 _1yep5z610k"}},defaultVariants:{},compoundVariants:[]}),R=a({defaultClassName:"_1bwul1t3 _1yep5z6ez",variantClassNames:{size:{xs:"_1yep5z610e",sm:"_1yep5z610h",md:"_1yep5z610k"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),G={xs:"_1bwul1t0",sm:"_1bwul1t1",md:"_1bwul1t2"};var L=Y.forwardRef(({className:W,style:J,size:u="md",isDisabled:n,decrementAriaLabel:M,incrementAriaLabel:Q,"data-block-id":X,"data-block-class":Z,label:j,onChange:E,onBlur:k,onKeyDown:F,minValue:a=Number.NEGATIVE_INFINITY,maxValue:r=Number.POSITIVE_INFINITY,defaultValue:V,value:ee,description:f=w=>`${w} / ${r}`,onInputChange:te,onChangeSuccess:ne,step:y=1,valueToLabelMap:c$1,...p},re)=>{let w=Y.useRef(null),B=c(),q=c(),o=useCallback(e=>c$1?c$1.get(e)??e.toString():e.toString(),[c$1]),O=useCallback(e=>{if(c$1){let A=[...c$1.entries()].find(([,se])=>se===e);if(A)return A[0]}let i=e.trim();return /^-?\d+$/.test(i)?Number(i):Number.NaN},[c$1]),[t,d]=a$1(ee,V??1,ne),[b,m]=useState(o(t)??""),z=t<=a||n,h=t>=r||n,g=useCallback(e=>{if(!e){m(o(t));return}E?.(e);let i=O(e);if(Number.isNaN(i)){m(o(t)??"");return}i>=a&&i<=r&&!n&&!p.isReadOnly?(d(i),m(o(i))):m(o(t));},[E,O,a,r,n,p.isReadOnly,o,t,d]),_=useCallback(e=>e>=a&&e<=r,[a,r]),ae=useCallback(e=>{g(b),k?.(e);},[b,g,k]),x=useCallback(()=>{if(h)return;let e=Math.min(t+y,r);_(e)&&d(e);},[t,h,_,r,d,y]),N=useCallback(()=>{if(z)return;let e=Math.max(t-y,a);_(e)&&d(e);},[t,z,_,a,d,y]),oe=useCallback(e=>{if(!(n||p.isReadOnly)){switch(e.key){case "Enter":{g(b);break}case "ArrowUp":{x();break}case "ArrowDown":{N();break}}F?.(e);}},[n,p.isReadOnly,F,g,b,x,N]);useGranularEffect(()=>{m(o(t));},[t],[o]);let{inputProps:ie}=a$2({...p,value:b?.toString(),isDisabled:n,onBlur:ae,onChange:e=>{m(e),te?.(e);},onKeyDown:oe,"aria-labelledby":B,"aria-describedby":q},w),S=typeof f=="function"?f(t):f;return jsxs(a$3,{className:a$6(G[u],W),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":X,"data-block-class":Z,style:J,ref:re,"aria-disabled":n,children:[jsx("span",{id:B,className:R({size:u,isDisabled:n}),children:j}),jsxs(a$3,{display:"flex",flexDirection:"row",borderRadius:"sm",borderColor:"border.subtle",borderStyle:"solid",borderWidth:1,style:{height:"inherit"},children:[jsx(a$4,{icon:CaretLeftIcon,elementType:"div",size:u,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:n||z||p.isReadOnly,excludeFromTabOrder:true,onPress:N,"aria-label":M,tooltip:true}),jsx(a$5,{orientation:"vertical"}),jsx("input",{...ie,className:$({size:u}),min:a,max:r}),jsx(a$5,{orientation:"vertical"}),jsx(a$4,{icon:CaretRightIcon,elementType:"div",size:u,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:n||h||p.isReadOnly,excludeFromTabOrder:true,onPress:x,"aria-label":Q,tooltip:true})]}),S?jsx("span",{id:q,className:R({size:u,isDisabled:n}),children:S}):null]})});L.displayName="TaggedPagination";export{L as a};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-FOKMDEP7.mjs';import {a as a$4}from'./chunk-3DWFAHR2.mjs';import {a as a$6}from'./chunk-JZXLV6JU.mjs';import {b,c as c$1}from'./chunk-DZDZZRWE.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-VGFPT43C.mjs';import {d}from'./chunk-4EAXDHSV.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {b as b$1,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import g 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 _=a({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6mh _1yep5z6mf _1yep5z6hg _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm",variantClassNames:{background:{subtle:"_1yep5z612s",medium:"_1yep5z612t"},isFocusVisible:{true:"_1yep5z618q _1yep5z618s _1yep5z618t _1yep5z614w"}},defaultVariants:{},compoundVariants:[]}),w="siobe24";var v=g.forwardRef(({className:x,style:h,children:D,background:t="medium",title:C,action:i,"data-block-id":k,"data-block-class":N,onCloseRequest:P,contentStyle:R,contentClassName:B,closeLabel:j,...I},F)=>{let{formatMessage:M}=b(),p=g.useRef(null),{dialogProps:V,titleProps:T}=a$1(I,p),{focusProps:q,isFocusVisible:L}=a$2();return jsxs("div",{...c(V,q),className:a$7(_({background:t,isFocusVisible:L}),"BaselineUI-Drawer",x),"data-block-id":k,"data-block-class":N,style:h,ref:b$1(F,p),children:[jsxs(a$3,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:w,children:[jsx(a$4,{type:"title",size:"sm",...T,className:d,children:C}),jsxs(a$3,{children:[i?jsx(a$5,{...i,variant:"secondary"}):null,jsx(a$5,{variant:"secondary",size:"md",icon:XIcon,onPress:P,"aria-label":j??M(A.close)})]})]}),jsx(a$6,{variant:t==="subtle"?"primary":"secondary"}),jsx(a$3,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...R},className:a$7(B,"BaselineUI-Drawer-Content"),children:D})]})});v.displayName="Drawer";var A=c$1({close:{id:"bui.drawer.close",defaultMessage:"Close"}});export{v as a};
@@ -1,10 +0,0 @@
1
- import {a as a$2}from'./chunk-S2XIFW52.mjs';import {a as a$4}from'./chunk-NMSOOQB2.mjs';import {g,e,h,a as a$1,i,c}from'./chunk-24R46WQW.mjs';import {b as b$1}from'./chunk-6G7EUNZW.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a}from'./chunk-66CUIXA6.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {useGranularEffect}from'granular-hooks';import P,{useCallback,useImperativeHandle}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 F(t,o,r){let{direction:i$1}=b(),n=g({...t,collection:o.collection,selectionManager:o.selectionManager,isDisabled:!t.enableReorder,getItems:t.getItems||(c=>[...c].map(l=>{let p=o.collection.getItem(l);return a(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});e(t,n,r);let a$2=h({...t,collection:o.collection,selectionManager:o.selectionManager}),{collectionProps:e$1}=a$1({...t,keyboardDelegate:new b$1({collection:o.collection,disabledKeys:o.disabledKeys,ref:r,orientation:t.orientation,layout:t.layout,direction:i$1}),dropTargetDelegate:new i(o.collection,r)},a$2,r);return {collectionProps:e$1,dragState:n,dropState:a$2}}function G({type:t="listbox",handle:o},r,i){let n=useCallback(e=>t==="listbox"?i.current?.querySelector(`[data-key="${e}"][role="option"]`):i.current?.querySelector(`[data-key="${e}"][role="row"]`),[t,i]),a=useCallback((e,c)=>{let l=n(e);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...c});},[n]);useImperativeHandle(o,()=>({scrollIntoView:a,setFocusedKey:e=>{r.selectionManager.setFocused(true),r.selectionManager.setFocusedKey(e),a(e),n(e)?.focus();}}),[a,r.selectionManager,n]),useGranularEffect(()=>{let e=r.selectionManager.focusedKey;a$2(i.current)&&e&&a(e);},[r.selectionManager.focusedKey],[a,i]);}var Q=({dropState:t,orientation:o="vertical",dropIndicatorStyle:r,dropIndicatorClassName:i,renderDropIndicator:n=({isDropTarget:e,isHidden:c,dropIndicatorProps:l,orientation:p},C)=>c?null:jsx("li",{...l,ref:C,"data-drop-target":e,className:a$3(a$4({isDropTarget:e,orientation:p}),"BaselineUI-DropIndicator",i),style:r}),...a})=>{let e=P.useRef(null),{dropIndicatorProps:c$1,isHidden:l,isDropTarget:p}=c(a,t,e);return n({dropIndicatorProps:{...c$1,role:"option"},isHidden:l,isDropTarget:p,orientation:o},e)};export{F as a,G as b,Q as c};
@@ -1,10 +0,0 @@
1
- /**
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 e=["bui.alertDialog.close","bui.audioPlayer.audioTimeline","bui.audioPlayer.pause","bui.audioPlayer.play","bui.buttonSelect.more","bui.buttonSelect.moreWithLabel","bui.calendar.nextMonth","bui.calendar.nextYear","bui.calendar.previousMonth","bui.calendar.previousYear","bui.calendar.selectMonth","bui.calendar.selectYear","bui.colorInput.add","bui.colorInput.addColor","bui.colorInput.cancel","bui.colorInput.colorFormat","bui.colorInput.colorPresets","bui.colorInput.customColors","bui.colorInput.indeterminate","bui.colorInput.newColor","bui.colorInput.noColor","bui.colorInput.removeColor","bui.colorInput.transparent","bui.colorSwatch.none","bui.dateField.openCalendar","bui.drawer.close","bui.editor.action","bui.editor.addLink","bui.editor.backgroundColor","bui.editor.bold","bui.editor.cancel","bui.editor.close","bui.editor.copy","bui.editor.cut","bui.editor.editLink","bui.editor.fontColor","bui.editor.help","bui.editor.italic","bui.editor.linkAnnotation","bui.editor.mention","bui.editor.openHelpDialog","bui.editor.paste","bui.editor.redo","bui.editor.removeLink","bui.editor.save","bui.editor.selectAll","bui.editor.shortcut","bui.editor.submit","bui.editor.toolbarFocus","bui.editor.underline","bui.editor.undo","bui.fileList.loading","bui.fileList.removeHint","bui.freehandCanvas.redo","bui.freehandCanvas.undo","bui.imageDropZone.selectImage","bui.imageGallery.cancel","bui.imageGallery.delete","bui.imageGallery.loading","bui.inlineAlert.close","bui.pagination.goToPage","bui.pagination.nextPage","bui.pagination.pageXofY","bui.pagination.prevPage","bui.select.clear","bui.select.more","bui.select.search","bui.select.selectAll","bui.stepper.completed","bui.stepper.label","bui.stepper.step","bui.table.loading","bui.toolbar.more","bui.treeView.collapse","bui.treeView.expand","bui.treeView.rename","bui.useMedia.paused","bui.useMedia.playing"],i={close:["bui.alertDialog.close","bui.drawer.close","bui.editor.close","bui.inlineAlert.close"],audioTimeline:["bui.audioPlayer.audioTimeline"],pause:["bui.audioPlayer.pause"],play:["bui.audioPlayer.play"],more:["bui.buttonSelect.more","bui.select.more","bui.toolbar.more"],moreWithLabel:["bui.buttonSelect.moreWithLabel"],nextMonth:["bui.calendar.nextMonth"],nextYear:["bui.calendar.nextYear"],previousMonth:["bui.calendar.previousMonth"],previousYear:["bui.calendar.previousYear"],selectMonth:["bui.calendar.selectMonth"],selectYear:["bui.calendar.selectYear"],add:["bui.colorInput.add"],addColor:["bui.colorInput.addColor"],cancel:["bui.colorInput.cancel","bui.editor.cancel","bui.imageGallery.cancel"],colorFormat:["bui.colorInput.colorFormat"],colorPresets:["bui.colorInput.colorPresets"],customColors:["bui.colorInput.customColors"],indeterminate:["bui.colorInput.indeterminate"],newColor:["bui.colorInput.newColor"],noColor:["bui.colorInput.noColor"],removeColor:["bui.colorInput.removeColor"],transparent:["bui.colorInput.transparent"],none:["bui.colorSwatch.none"],openCalendar:["bui.dateField.openCalendar"],action:["bui.editor.action"],addLink:["bui.editor.addLink"],backgroundColor:["bui.editor.backgroundColor"],bold:["bui.editor.bold"],copy:["bui.editor.copy"],cut:["bui.editor.cut"],editLink:["bui.editor.editLink"],fontColor:["bui.editor.fontColor"],help:["bui.editor.help"],italic:["bui.editor.italic"],linkAnnotation:["bui.editor.linkAnnotation"],mention:["bui.editor.mention"],openHelpDialog:["bui.editor.openHelpDialog"],paste:["bui.editor.paste"],redo:["bui.editor.redo","bui.freehandCanvas.redo"],removeLink:["bui.editor.removeLink"],save:["bui.editor.save"],selectAll:["bui.editor.selectAll","bui.select.selectAll"],shortcut:["bui.editor.shortcut"],submit:["bui.editor.submit"],toolbarFocus:["bui.editor.toolbarFocus"],underline:["bui.editor.underline"],undo:["bui.editor.undo","bui.freehandCanvas.undo"],loading:["bui.fileList.loading","bui.imageGallery.loading","bui.table.loading"],removeHint:["bui.fileList.removeHint"],selectImage:["bui.imageDropZone.selectImage"],delete:["bui.imageGallery.delete"],goToPage:["bui.pagination.goToPage"],nextPage:["bui.pagination.nextPage"],pageXofY:["bui.pagination.pageXofY"],prevPage:["bui.pagination.prevPage"],clear:["bui.select.clear"],search:["bui.select.search"],completed:["bui.stepper.completed"],label:["bui.stepper.label"],step:["bui.stepper.step"],collapse:["bui.treeView.collapse"],expand:["bui.treeView.expand"],rename:["bui.treeView.rename"],paused:["bui.useMedia.paused"],playing:["bui.useMedia.playing"]};export{e as a,i as b};
@@ -1,10 +0,0 @@
1
- import {c}from'./chunk-BGQRLALS.mjs';import {i as i$1}from'./chunk-KUDCYGII.mjs';import {a as a$1}from'./chunk-SVIYLH7R.mjs';import {e}from'./chunk-ETM4MNG4.mjs';import {a,i,h}from'./chunk-SD43KVTU.mjs';import {useRef,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
- function E(r,e$1){let{role:d="dialog",isEntering:b}=r,i$2=e([],e$1);i$2=r["aria-label"]?void 0:i$2;let a$2=e();a$2=d==="alertdialog"&&!r["aria-describedby"]?a$2:void 0;let o=useRef(false);useEffect(()=>{if(b||!e$1.current)return;let t=a(e$1.current),l=i(t);if(!h(e$1.current,l)){i$1(e$1.current);let n=setTimeout(()=>{let g=i(t);(g===e$1.current||g===t.body)&&(o.current=true,e$1.current&&(e$1.current.blur(),i$1(e$1.current)),o.current=false);},500);return ()=>{clearTimeout(n);}}},[e$1,b]),c();let m=useRef(false);useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!m.current&&e$1.current){let t=e$1.current,l=t.hasAttribute("aria-label"),n=t.hasAttribute("aria-labelledby");!l&&!n&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),m.current=true);}});let O=r["aria-describedby"]??a$2;return {dialogProps:{...a$1(r,{labelable:true}),role:d,tabIndex:-1,"aria-labelledby":r["aria-labelledby"]??i$2,"aria-describedby":O,onBlur:t=>{o.current&&t.stopPropagation();}},titleProps:{id:i$2},contentProps:{id:a$2}}}export{E as a};
@@ -1,10 +0,0 @@
1
- import {a as a$4}from'./chunk-BYDJXA5A.mjs';import {a as a$9}from'./chunk-TUY23KMK.mjs';import {a as a$8}from'./chunk-NGZRN4SF.mjs';import {b as b$1}from'./chunk-DF2D7NE6.mjs';import {a as a$b}from'./chunk-WTAJLO6E.mjs';import {b as b$3,e as e$1}from'./chunk-4RSUKS23.mjs';import {b,c as c$1}from'./chunk-DZDZZRWE.mjs';import {b as b$6}from'./chunk-TUJLNJPJ.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$6}from'./chunk-VGFPT43C.mjs';import {a as a$2}from'./chunk-GMALMQWI.mjs';import {b as b$5}from'./chunk-N2XGJKZG.mjs';import {b as b$7,j as j$1}from'./chunk-MBRNO6IW.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {e}from'./chunk-J4OPD7OL.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,b as b$4}from'./chunk-3WKDIXCM.mjs';import {b as b$2,a as a$1}from'./chunk-ETM4MNG4.mjs';import {b as b$8,i,a as a$a,h as h$1}from'./chunk-SD43KVTU.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import _,{useState,useRef,useCallback,useMemo,useEffect,createElement}from'react';import {MoreIcon}from'@baseline-ui/icons/24';import {jsxs,jsx,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 _e=0,S="UNSUPPORTED_IN_MENU";function ye(e){return useMemo(()=>_.Children.toArray(e).map(t=>{let o=t,i=`item${++_e}`,r=h(o,b$7),a=ge(o),s,d;if(r){let f=h(r,j$1);a$5(f),s=ge(f),d=h(r,a$b).props.children;}else a?s=a:s=o;let{onPress:g,label:p,"aria-label":c,iconStart:u,isDisabled:T,icon:R}=s.props,m=p||c||S;a$5(typeof m=="string","ActionGroup children must have a string label");let b=`${i}-${m}`;return createElement(a$8,{...{key:b,onPress:g,textValue:m,"aria-label":c,icon:u||R,dialogContent:d,isDisabled:T},key:b},o)}),[e])}function h(e,t){if(t)for(let o of _.Children.toArray(e)){if(!_.isValidElement(o))continue;let i=o;if(i.type===t)return i;if(i.props.children){let r=h(i.props.children,t);if(r)return r}}}function ge(e){return h(e,b$6)||h(e,a$6)}var ke=new Set(["text","search","password","tel","url"]);function P({props:e,ref:t}){let{toolbarProps:o}=a$9(e,t),{direction:i$1}=b$5(),r=i$1==="rtl";return {toolbarProps:{...o,onKeyDownCapture:a=>{let s=a.target,d=a.key,g=()=>{let p=t.current;if(!p)return;let c=i(a$a(p));if(!c||!h$1(p,c)||c.dataset.buiAvoidFocus!=="true")return;let u=He(p),T=u.indexOf(c);if(T===-1)return;let R=Oe({key:d,orientation:e.orientation??"horizontal",isRTL:r});if(!R)return;let m=T+R;for(;m>=0&&m<u.length;){let b=u[m];if(b.dataset.buiAvoidFocus!=="true"&&!b.matches('[disabled], [aria-disabled="true"]')){b.focus();return}m+=R;}};if(Ve(s)&&ke.has(s.type)){let p=s.selectionStart===0,c=s.selectionEnd===s.value.length;(p&&(r&&a.key==="ArrowRight"||!r&&a.key==="ArrowLeft")||c&&(r&&a.key==="ArrowLeft"||!r&&a.key==="ArrowRight"))&&(o.onKeyDownCapture?.(a),g());return}o.onKeyDownCapture?.(a),g();}}}}function Oe({key:e,orientation:t,isRTL:o}){return t==="vertical"?e==="ArrowUp"?-1:e==="ArrowDown"?1:null:e==="ArrowLeft"?o?1:-1:e==="ArrowRight"?o?-1:1:null}var Be='button, [role="button"], input, [tabindex]';function He(e){let t=[],o=i=>{t.push(...i.querySelectorAll(Be));for(let r of i.querySelectorAll("*"))r.shadowRoot&&o(r.shadowRoot);};return o(e),t}function Ve(e){return e.tagName.toLowerCase()==="input"}var ve="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6m3 _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6lv",Re={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var O=_.forwardRef(({className:e$2,style:t,children:o,collapsibleMenuProps:i,"data-block-id":r,"data-block-class":a$7,renderSpacer:s,onKeyDown:d,isSingleTabStop:g=true,moreLabel:p,"aria-controls":c$1,...u},T)=>{let{formatMessage:R}=b(),[m,b$4]=useState(),H=ye(o),f=b$1({...u,children:H}),y=a(T),L=useRef(null),[{visibleItems:V,isMeasuring:U},W]=b$2({visibleItems:f.collection.size,isMeasuring:false}),x=useCallback(()=>{let n=l=>{if(L.current&&y.current){let v=[...L.current.children],z=y.current.getBoundingClientRect().width,xe=l<f.collection.size,D=0,F=0;if(xe){let C=v.pop();C&&(D+=he(C,false,true));}for(let[C,ze]of v.entries())if(D+=he(ze,C===0,C===v.length-1),Math.round(D)<=Math.round(z))F++;else break;return F}return l};W(function*(){yield {visibleItems:f.collection.size,isMeasuring:true};let l=n(f.collection.size),v=l<f.collection.size&&l>0;yield {visibleItems:l,isMeasuring:v},v&&(yield {visibleItems:n(l),isMeasuring:false});});},[W,y,f.collection.size]),Ae=useMemo(()=>({get current(){return y.current?.parentElement}}),[y]);e({ref:Ae,onResize:x}),a$1(x,[f.collection,x]);let{toolbarProps:Ie}=P({props:{...u,isSingleTabStop:g},ref:y}),j$1=[...f.collection],Ne=j$1.slice(0,V),M=j$1.slice(V).filter(n=>n.textValue!==S),Pe=M.length>0;useEffect(()=>{b$4(void 0);},[M.length]),useEffect(()=>{u.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[u.orientation]);let{keyboardProps:Le}=j({onKeyDown:d});return jsxs(a$2,{children:[jsx("div",{...c(Ie,Le),...c$1?{"aria-controls":c$1}:{},className:e$2,"data-block-id":r,"data-block-class":a$7,"data-collapse":true,style:{...t,flexBasis:U?"100%":void 0},ref:y,children:jsxs("div",{ref:L,className:ve,children:[Ne.map(n=>n.rendered),Pe?jsxs(Fragment,{children:[!U&&s?jsx(a$3,{flexGrow:1}):null,jsx(a$4,{placement:"bottom end",renderTrigger:({buttonProps:n,ref:l})=>jsx(a$6,{...n,size:"md",icon:MoreIcon,"aria-label":p??R(Je.more),variant:"toolbar",ref:l,tooltip:true,"data-testid":"toolbar-overflow-button"}),...i,disabledKeys:M.filter(n=>n.props?.isDisabled).map(n=>n.key),items:M.map(n=>{let l=n.textValue||n["aria-label"];return a$5(l,"ActionItem must have a label"),{id:n.key,label:l,icon:n.props.icon}}),onAction:n=>{let l=f.collection.getItem(n);a$5(l,"Item not found");let{onPress:v,dialogContent:z}=l.props;v?.(),b$4(z);}})]}):null]})}),jsx(b$3,{isOpen:!!m,onOpenChange:n=>{n||b$4(void 0);},children:jsx(e$1,{enableDrawer:"auto",style:{zIndex:1e5},children:m?_.cloneElement(m,{inheritDrawer:true}):null})})]})});O.displayName="CollapsibleToolbar";function he(e,t,o){let r=b$8(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:Ee(r.marginLeft))+(o?0:Ee(r.marginRight))}function Ee(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var Je=c$1({more:{id:"bui.toolbar.more",defaultMessage:"More"}});var B=_.forwardRef(({className:e,style:t,isSingleTabStop:o=true,"data-block-id":i,"data-block-class":r,"aria-controls":a,onKeyDown:s,...d},g)=>{let p=_.useRef(null),{toolbarProps:c$1}=P({props:{...d,isSingleTabStop:o},ref:p}),{keyboardProps:u}=j({onKeyDown:s});return jsx("div",{...c(c$1,u),...a?{"aria-controls":a}:{},className:a$7(Re[d.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":i,"data-block-class":r,ref:b$4(g,p),children:d.children})});B.displayName="WrappedToolbar";var Me=_.forwardRef((e,t)=>{let o=e.isCollapsible?O:B;return jsx(o,{...e,ref:t})});Me.displayName="Toolbar";export{Me as a};
@@ -1,10 +0,0 @@
1
- import {a as a$6}from'./chunk-AM5FU4Y7.mjs';import {a as a$e}from'./chunk-EUVUJQ2Z.mjs';import {k,j as j$1,g,c,i,f as f$1,h as h$1,e as e$1,d as d$1,b as b$5,a as a$h}from'./chunk-AD3MLX6G.mjs';import {b as b$3,a as a$g,q as q$1,n,c as c$4}from'./chunk-K7VOXFSK.mjs';import {p}from'./chunk-YQHHE5AT.mjs';import {a as a$b}from'./chunk-AMW7LGCF.mjs';import {a as a$9}from'./chunk-NYCG264A.mjs';import {b as b$6}from'./chunk-6G7EUNZW.mjs';import {b as b$7}from'./chunk-PD5ZXNGT.mjs';import {b as b$8}from'./chunk-DF2D7NE6.mjs';import {a as a$3}from'./chunk-2MS356Q7.mjs';import {a as a$k}from'./chunk-ZZIQF6XD.mjs';import {a as a$d}from'./chunk-WTAJLO6E.mjs';import {a as a$c,b as b$2}from'./chunk-SZTFMBPY.mjs';import {d,h,e,f,g as g$1}from'./chunk-PG3WDHSK.mjs';import {a as a$f}from'./chunk-JZXLV6JU.mjs';import {a as a$m}from'./chunk-CY6W27WG.mjs';import {b,c as c$2}from'./chunk-DZDZZRWE.mjs';import {a as a$t}from'./chunk-6QQEK5I6.mjs';import {d as d$3}from'./chunk-W6QO7FPZ.mjs';import {b as b$4}from'./chunk-TUJLNJPJ.mjs';import {a as a$7}from'./chunk-O7XK2WIX.mjs';import {a as a$j}from'./chunk-3BG6K2G2.mjs';import {a as a$a}from'./chunk-OYSOPCTA.mjs';import {a as a$l}from'./chunk-USMC34OO.mjs';import {a as a$r}from'./chunk-K5RYVERS.mjs';import {a as a$i}from'./chunk-VDUFLHKK.mjs';import {a as a$p}from'./chunk-22VRCVTH.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$q}from'./chunk-FPM5UJRF.mjs';import {a as a$s}from'./chunk-4QBHQCCK.mjs';import {a}from'./chunk-SGZWUG3H.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {j as j$2,d as d$2}from'./chunk-KUDCYGII.mjs';import {a as a$1}from'./chunk-B3EZOXNU.mjs';import {c as c$1,b as b$1,a as a$o}from'./chunk-3WKDIXCM.mjs';import {a as a$n}from'./chunk-SVIYLH7R.mjs';import {c as c$3}from'./chunk-ETM4MNG4.mjs';import {h as h$2,j as j$3}from'./chunk-SD43KVTU.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import q,{useCallback,useContext,useEffect,useMemo,useRef,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {CaretDownIcon}from'@baseline-ui/icons/8';import {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
- var $=new WeakMap;function de(t,e,a){let{keyboardDelegate:i,isDisabled:f,isRequired:y,name:d,form:S,validationBehavior:n="aria"}=t,x=a$l({usage:"search",sensitivity:"base"}),l=useMemo(()=>i||new b$6(e.collection,e.disabledKeys,a,x),[i,e.collection,e.disabledKeys,x,a]),{menuTriggerProps:m,menuProps:s}=c$4({isDisabled:f,type:"listbox"},e,a),{keyboardProps:c}=j$2({shortcuts:{ArrowLeft:()=>{if(e.selectionManager.selectionMode==="multiple")return false;let u=e.selectedKey!=null?l.getKeyAbove?.(e.selectedKey):l.getFirstKey?.();u!=null&&e.setSelectedKey(u);},ArrowRight:()=>{if(e.selectionManager.selectionMode==="multiple")return false;let u=e.selectedKey!=null?l.getKeyBelow?.(e.selectedKey):l.getFirstKey?.();u!=null&&e.setSelectedKey(u);}},allowRepeats:true,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp}),{typeSelectProps:o}=b$7({keyboardDelegate:l,selectionManager:e.selectionManager,onTypeSelect(u){e.setSelectedKey(u);}}),{isInvalid:g,validationErrors:b,validationDetails:T}=e.displayValidation,{labelProps:K,fieldProps:r,descriptionProps:M,errorMessageProps:p}=a$m({...t,labelElementType:"span",isInvalid:g,errorMessage:t.errorMessage||b,ref:a});e.selectionManager.selectionMode==="multiple"&&(o={});let O=a$n(t,{labelable:true}),P=c$1(o,m,r),C=c$3();return $.set(e,{isDisabled:f,isRequired:y,name:d,form:S,validationBehavior:n}),{labelProps:{...K,onClick:()=>{t.isDisabled||(a.current?.focus(),d$2("keyboard"));}},triggerProps:c$1(O,{...P,isDisabled:f,onKeyDown:a$o(P.onKeyDown,c.onKeyDown),onKeyUp:c.onKeyUp,"aria-labelledby":[C,P["aria-labelledby"],P["aria-label"]&&!P["aria-labelledby"]?P.id:null].filter(Boolean).join(" "),onFocus(u){e.isFocused||(t.onFocus&&t.onFocus(u),t.onFocusChange&&t.onFocusChange(true),e.setFocused(true));},onBlur(u){e.isOpen||(t.onBlur&&t.onBlur(u),t.onFocusChange&&t.onFocusChange(false),e.setFocused(false));}}),valueProps:{id:C},menuProps:{...s,onAction:void 0,autoFocus:e.focusStrategy||true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,disallowEmptySelection:true,linkBehavior:"selection",onBlur:u=>{h$2(u.currentTarget,u.relatedTarget)||(t.onBlur&&t.onBlur(u),t.onFocusChange&&t.onFocusChange(false),e.setFocused(false));},"aria-labelledby":[r["aria-labelledby"],P["aria-label"]&&!r["aria-labelledby"]?P.id:null].filter(Boolean).join(" ")},descriptionProps:M,errorMessageProps:p,isInvalid:g,validationErrors:b,validationDetails:T,hiddenSelectProps:{isDisabled:f,name:d,label:t.label,state:e,triggerRef:a,form:S}}}function Mt(t,e,a){let i=$.get(e)||{},{autoComplete:f,name:y=i.name,form:d=i.form,isDisabled:S=i.isDisabled}=t,{validationBehavior:n,isRequired:x}=i,{visuallyHiddenProps:l}=a$r({style:{position:"fixed",top:0,left:0}});a$s(t.selectRef,e.defaultValue,e.setValue),a$t({validationBehavior:n,focus:()=>a.current?.focus()},e,t.selectRef);let m=e.setValue,s=useCallback(c=>{let o=j$3(c);o.multiple?m(Array.from(o.selectedOptions,g=>g.value)):m(c.currentTarget.value);},[m]);return {containerProps:{...l,"aria-hidden":true,"data-react-aria-prevent-focus":true,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:f,disabled:S,multiple:e.selectionManager.selectionMode==="multiple",required:n==="native"&&x,name:y,form:d,value:e.value??"",onChange:s,onInput:s}}}function ue(t){let{state:e,triggerRef:a,label:i,name:f,form:y,isDisabled:d}=t,S=useRef(null),n=useRef(null),{containerProps:x,selectProps:l}=Mt({...t,selectRef:e.collection.size<=300?S:n},e,a),m=Array.isArray(e.value)?e.value:[e.value];if(e.collection.size<=300)return jsx("div",{...x,"data-testid":"hidden-select-container",children:jsxs("label",{children:[i,jsxs("select",{...l,ref:S,children:[jsx("option",{value:"",label:"\xA0",children:"\xA0"}),[...e.collection.getKeys()].map(s=>{let c=e.collection.getItem(s);if(c&&c.type==="item")return jsx("option",{value:c.key,children:c.textValue},c.key)}),e.collection.size===0&&f&&m.map((s,c)=>jsx("option",{value:s??""},c))]})]})});if(f){let s=$.get(e)||{},{validationBehavior:c}=s;m.length===0&&(m=[null]);let o=m.map((g,b)=>{let T={type:"hidden",autoComplete:l.autoComplete,name:f,form:y,disabled:d,value:g??""};return c==="native"?jsx("input",{...T,ref:b===0?n:null,style:{display:"none"},type:"text",required:b===0?l.required:false,onChange:()=>{}},b):jsx("input",{...T,ref:b===0?n:null},b)});return jsx(Fragment,{children:o})}return null}function pe(t){let{selectionMode:e="single",shouldCloseOnSelect:a=e==="single"}=t,i=a$p(t),[f,y]=useState(null),d=useMemo(()=>t.defaultValue!==void 0?t.defaultValue:e==="single"?t.defaultSelectedKey??null:[],[t.defaultValue,t.defaultSelectedKey,e]),S=useMemo(()=>t.value!==void 0?t.value:e==="single"?t.selectedKey:void 0,[t.value,t.selectedKey,e]),[n,x]=a$q(S,d,t.onChange),l=e==="single"&&Array.isArray(n)?n[0]:n,m=r=>{if(e==="single"){let M=Array.isArray(r)?r[0]??null:r;x(M),M!==l&&t.onSelectionChange?.(M);}else {let M=[];Array.isArray(r)?M=r:r!=null&&(M=[r]),x(M);}},s=b$8({...t,selectionMode:e,disallowEmptySelection:e==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>At(l),[l]),onSelectionChange:r=>{if(r!=="all"){if(e==="single"){let M=r.values().next().value??null;m(M);}else m([...r]);a&&i.close(),g.commitValidation();}}}),c=s.selectionManager.firstSelectedKey,o=useMemo(()=>[...s.selectionManager.selectedKeys].map(r=>s.collection.getItem(r)).filter(r=>r!=null),[s.selectionManager.selectedKeys,s.collection]),g=d$3({...t,value:Array.isArray(l)&&l.length===0?null:l}),[b,T]=useState(false),[K]=useState(l);return {...g,...s,...i,value:l,defaultValue:d??K,setValue:m,selectedKey:c,setSelectedKey:m,selectedItem:o[0]??null,selectedItems:o,defaultSelectedKey:t.defaultSelectedKey??(t.selectionMode==="single"?K:null),focusStrategy:f,open(r=null){(s.collection.size!==0||t.allowsEmptyCollection)&&(y(r),i.open());},toggle(r=null){(s.collection.size!==0||t.allowsEmptyCollection)&&(y(r),i.toggle());},isFocused:b,setFocused:T}}function At(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}var j=q.forwardRef(({variant:t,isOpen:e,validationState:a$9="valid",valueProps:i$1,className:f,style:y,value:d$1,"data-block-id":S,"data-block-class":n,fallbackValue:x,selectionMode:l="single",onRemove:m,maxCount:s=2,moreLabel:c$2,...o},g$1)=>{let{formatMessage:b$2}=b(),T=d$1?.[0]??null,K=T?.label??x,r=T?.icon??null,M=q.useRef(null),p=!!(l==="multiple"&&d$1&&d$1?.length>0),{buttonProps:O,isPressed:P}=a({...o,elementType:"div",isDisabled:o.isDisabled||o.isReadOnly},M),{hoverProps:C,isHovered:u}=a$1({isDisabled:o.isDisabled}),{focusProps:B,isFocused:N,isFocusVisible:A}=a$2(),F=a$3({isReadOnly:o.isReadOnly,validationState:a$9});o.isReadOnly&&(O.disabled=false);let V=a$4({"data-disabled":o.isDisabled,"data-readonly":o.isReadOnly,"data-focused":N,"data-focus-visible":A,"data-hovered":u,"data-pressed":P,"data-open":e,"data-block-id":S,"data-block-class":n}),w=o["aria-labelledby"],ae=useCallback(()=>{a$5(Array.isArray(d$1),"value must be an array");let U=d$1.slice(0,s),H=d$1.slice(s),W=[...U,...H.length>0?[{label:(typeof c$2=="function"?c$2({count:H.length}):c$2)??b$2(Lt.more,{count:H.length}),id:"remaining-value"}]:[]];return jsx(a$6,{items:W,onRemove:o.isReadOnly?void 0:X=>{X.has("remaining-value")?m?.(new Set(H.map(E=>E.id))):m?.(X);},"aria-labelledby":w,className:k,isDisabled:o.isDisabled})},[d$1,s,b$2,c$2,w,o.isDisabled,m,o.isReadOnly]),z=l==="multiple";return jsxs("div",{...c$1(z?Object.fromEntries(Object.entries(O).filter(([U])=>U.startsWith("on"))):c$1(O,B),C,V),ref:z?g$1:b$1(g$1,M),className:a$8(i({isFocused:A,isDisabled:!!o.isDisabled,isOpen:e,isHovered:u,variant:t,isReadOnly:!!o.isReadOnly,areTagsVisible:p}),h({variant:t,isHovered:u,isFocused:A,validationState:a$9,isDisabled:!!o.isDisabled,isReadOnly:o.isReadOnly}),f,"BaselineUI-Select-Button"),"data-testid":"select-button",style:y,children:[jsxs(a$7,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",flex:1,paddingRight:"md",children:[l==="multiple"&&d$1&&d$1.length>0?ae():jsxs("span",{className:k,children:[r?jsx(r,{size:24}):null,jsx("span",{...i$1,children:K})]}),F?jsx("span",{"aria-hidden":true,className:a$8(d({validationState:a$9,isReadOnly:!!o.isReadOnly}),j$1),children:jsx(F,{size:16})}):null]}),jsx("div",{...z?{...c$1(O,B),ref:M}:{},className:g,children:jsx(CaretDownIcon,{size:8,className:c({isOpen:e})})})]})});j.displayName="SelectButton";var Lt=c$2({more:{id:"bui.select.more",defaultMessage:"+{count} more"}});var Pt=q.createContext({state:null,popoverAnchorRef:null}),Se=q.forwardRef(({className:t,style:e$2,labelPosition:a="top",variant:i="primary","data-block-id":f$2,"data-block-class":y,onTriggerPress:d,placement:S="bottom start",triggerClassName:n,triggerStyle:x,state:l,optionStyle:m,optionClassName:s,showSectionHeader:c,hideSelectAll:o,hideClear:g,clearLabel:b$1,searchLabel:T,selectAllLabel:K,moreLabel:r,renderTrigger:M=({buttonProps:P,selectedValue:C,valueProps:u,isOpen:B,ref:N,selectionMode:A,onRemove:F,maxCount:V})=>jsx(j,{...P,className:n,style:x,isOpen:B,isReadOnly:p$1.isReadOnly,ref:N,variant:i,validationState:p$1.validationState,valueProps:u,value:C,fallbackValue:p$1.placeholder,selectionMode:A,onRemove:F,maxCount:V,moreLabel:r}),...p$1},O)=>{let{popoverAnchorRef:P}=useContext(Pt),C=q.useRef(null),{formatMessage:u}=b(),B=T??u(ye.search),N=useContext(a$9),{isVirtualized:A}=useContext(p),F=a$a(p$1.portalContainer),{labelProps:V,triggerProps:w,valueProps:ae,menuProps:z,descriptionProps:U,errorMessageProps:H}=de({...a$b(p$1),validationState:p$1.validationState==="error"?"invalid":"valid"},l,C),W=c$3(),X=a$c(p$1)==="warningMessage",E=b$2({...p$1,descriptionProps:U,errorMessageProps:H,warningMessageProps:{id:W},labelPosition:a}),ht=l.selectedItems?.map(_=>_.value)??null;return jsxs(Fragment,{children:[jsxs("div",{style:e$2,className:a$8(g$1({labelPosition:a}),"BaselineUI-Select",t),"data-block-id":f$2,"data-block-class":y,ref:O,children:[p$1.label||E?jsxs("div",{className:f({labelPosition:a,hasMessage:!!E}),children:[p$1.label?jsx("div",{...V,className:a$8(e,"BaselineUI-Select-Label"),children:p$1.label}):null,a==="start"&&E]}):null,jsx(ue,{state:l,triggerRef:C,isDisabled:p$1.isDisabled,label:p$1.label,name:p$1.name}),M({buttonProps:c$1({onPressStart:d,"aria-labelledby":V.id},w,X?{"aria-describedby":[w["aria-describedby"],W].filter(Boolean).join(" ")}:null),selectedValue:ht,valueProps:ae,isOpen:l.isOpen,ref:C,selectionMode:p$1.selectionMode??"single",onRemove:_=>{l.selectionManager.setSelectedKeys(new Set([...l.selectionManager.selectedKeys].filter(ne=>!_.has(ne))));},maxCount:p$1.maxCount??2}),a==="top"&&E]}),l?jsx(b$3.Provider,{value:l,children:jsx(a$d,{placement:S,state:l,portalContainer:F,offset:2,triggerRef:P||C,style:e$2,className:"BaselineUI-Select-Popover",...p$1,children:jsxs(a$7,{display:"flex",flex:1,flexDirection:"column",className:f$1,children:[N?jsxs(Fragment,{children:[jsx(a$e,{size:"sm","aria-label":B,placeholder:B,className:a$8(h$1,"BaselineUI-Select-SearchInput"),autoFocus:true}),jsx(a$f,{})]}):null,jsx(a$g.Provider,{value:z,children:jsx(q$1,{label:p$1.label,escapeKeyBehavior:"none",className:e$1({isVirtualized:A}),optionStyle:m,optionClassName:s,showSectionHeader:c})}),l.selectionManager.selectionMode==="multiple"&&(!o||!g)&&jsxs(a$7,{display:"flex",flexDirection:"row",className:d$1,children:[!o&&jsx(b$4,{variant:"ghost",size:"md",label:K??u(ye.selectAll),"data-testid":"select-all-button",onPress:()=>{if(l.selectionManager.isSelectAll)return;let ne=[...l.collection.getKeys()].filter(ge=>!l.selectionManager.disabledKeys.has(ge)&&l.selectionManager.canSelectItem(ge));l.selectionManager.setSelectedKeys(new Set(ne));},className:b$5}),!o&&!g&&jsx(a$f,{orientation:"vertical"}),!g&&jsx(b$4,{variant:"ghost",label:b$1??u(ye.clear),size:"md","data-testid":"select-clear-button",onPress:()=>{l.selectionManager.isEmpty||l.selectionManager.clearSelection();},className:b$5})]})]})})}):null]})});Se.displayName="SelectCore";var Tt=q.forwardRef(({collection:t,...e},a)=>{let i=pe({...e,collection:t,validationState:e.validationState==="error"?"invalid":"valid",children:void 0});return jsx(Se,{...e,ref:a,state:i})});Tt.displayName="SelectStandalone";var le=q.forwardRef(({optionStyle:t,optionClassName:e,showSectionHeader:a,...i},f)=>{let{state:y}=useContext(Pt);useEffect(()=>{a$5(y||i.items,"Select: A `state` that can be passed via context or `items` are required.");},[i.items,y]);let d=useMemo(()=>({renderOption:(S,n$1)=>jsx(n,{...n$1,item:S,selectionIcon:n$1.selectionMode==="multiple"?"checkbox":"checkmark"}),optionStyle:t,optionClassName:e,showSectionHeader:a}),[t,e,a]);return y?jsx(Se,{...i,optionStyle:t,optionClassName:e,showSectionHeader:a,ref:f,state:y}):jsx(a$h,{items:i.items,listBoxProps:d,children:S=>jsx(Tt,{collection:S,...i,ref:f})})});le.displayName="Select";var ye=c$2({selectAll:{id:"bui.select.selectAll",defaultMessage:"Select All"},clear:{id:"bui.select.clear",defaultMessage:"Clear"},search:{id:"bui.select.search",defaultMessage:"Search"}});var Rt=q.forwardRef(({className:t,style:e,variant:a,"data-block-id":i,"data-block-class":f,icon:y,tooltip:d=true,iconTooltip:S=true,...n},x)=>{let l=q.useRef(null),{tooltipProps:m}=a$i({label:n["aria-label"],tooltip:d}),s=useCallback(({buttonProps:c,selectedValue:o,valueProps:g,isOpen:b,ref:T})=>jsx(a$j,{...m,children:jsx(j,{...c,className:n.triggerClassName,style:n.triggerStyle,isOpen:b,isReadOnly:n.isReadOnly,ref:T,variant:a,validationState:n.validationState,value:o,fallbackValue:n.placeholder,valueProps:g,moreLabel:n.moreLabel})}),[n,m,a]);return jsxs(a$7,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:a$8("BaselineUI-IconSelect",t),"data-block-id":i,"data-block-class":f,style:e,ref:b$1(x,l),children:[y?jsx(a$k,{icon:y,label:n["aria-label"],tooltip:S,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsx(le,{...n,renderTrigger:s})]})});Rt.displayName="IconSelect";export{pe as a,Pt as b,le as c,Rt as d};
@@ -1,10 +0,0 @@
1
- import {a as a$2}from'./chunk-O7IU5NHN.mjs';import {a as a$3}from'./chunk-3DWFAHR2.mjs';import {a}from'./chunk-O7XK2WIX.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import p 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 f="_1vghdeb0";var x=new Set(["\u2318","\u2325","\u21E7","\u21A9","\u2423","\u2303"]),l="+";function K(t){let n=t.endsWith(l),e=(n?t.slice(0,-1):t).split(l).map(r=>r.trim()).filter(Boolean);return n?[...e,l]:e}function R(t,n){if(n){let e=[],r="";for(let o of t)x.has(o)?(r&&e.push(r),e.push(o),r=""):r+=o;return r&&e.push(r),e.length===1&&e[0].includes("+")?K(e[0]):e}return K(t)}var m=p.forwardRef(({children:t,className:n,style:e},r)=>jsx(a,{elementType:"kbd",ref:r,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"xs",borderWidth:1,borderStyle:"solid",borderColor:"border.medium",backgroundColor:"background.primary.strong",color:"text.primary",typography:"label.md.medium",paddingX:"md",paddingY:"sm",className:a$1(f,"BaselineUI-Kbd-Key",n),style:e,children:t}));m.displayName="KbdKey";var g=p.forwardRef(({children:t,shouldUseSymbol:n=false,className:e,style:r},o)=>{let u=a$2(t,n),i=R(u,n);return i.length===1?jsx(m,{ref:o,className:a$1("BaselineUI-Kbd",e),style:r,children:i[0]}):jsx(a,{elementType:"span",display:"inline-flex",alignItems:"center",gap:"md",ref:o,className:a$1("BaselineUI-Kbd",e),style:r,children:i.map((b,h)=>jsxs(p.Fragment,{children:[jsx(m,{children:b}),h<i.length-1?jsx(a$3,{type:"label",size:"sm",children:l}):null]},b))})});g.displayName="Kbd";export{g as a};
@@ -1,10 +0,0 @@
1
- import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {AvatarIcon as AvatarIcon$1}from'@baseline-ui/icons/16';import {AvatarIcon}from'@baseline-ui/icons/24';import C 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 c="_1017q4c5",d=a({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),p="_1017q4c4";var N={sm:AvatarIcon$1,md:AvatarIcon},m=C.forwardRef(({className:u,style:v,size:a="md",icon:b=N[a],name:e,imgSrc:r,showInitials:i,isDisabled:o,hasNotifications:f,imgLoading:h,"data-block-id":x,"data-block-class":y},g)=>{let s=e?.split(" ").map(_=>_[0]).join("");return jsxs("span",{className:a$1(d({size:a,isDisabled:o}),"BaselineUI-Avatar",u),"data-disabled":o,ref:g,style:v,"aria-disabled":o,"data-block-id":x,"data-block-class":y,children:[r?jsx("img",{src:r,alt:e,loading:h,className:p}):null,!i&&!r&&jsx(b,{size:a==="sm"?16:24}),i&&!r?a==="sm"?s[0]:s:null,f?jsx("div",{"data-testid":"notification",className:c}):null]})});m.displayName="Avatar";export{m as a};
@@ -1,10 +0,0 @@
1
- import {b as b$2}from'./chunk-GQIS4QBN.mjs';import {a}from'./chunk-S4HLMIFK.mjs';import {j,l,c,u,e as e$1}from'./chunk-PPHSLODC.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {e,i,j as j$1,b as b$1}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect,version}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 G="react-aria-clear-focus",Y="react-aria-focus";function Z(e,r){let n=useRef(true),i=useRef(null),o=u(e);useEffect(()=>(n.current=true,()=>{n.current=false;}),[]),useEffect(()=>{let s=i.current;n.current?n.current=false:(!s||r.some((a,l)=>!Object.is(a,s[l])))&&o(),i.current=r;},r);}function ie(e,r){let n=useRef(true),i=useRef(null);a$1(()=>(n.current=true,()=>{n.current=false;}),[]),a$1(()=>{n.current?n.current=false:(!i.current||r.some((o,s)=>!Object.is(o,i[s])))&&e(),i.current=r;},r);}function W(e){let{ref:r,box:n,onResize:i}=e,o=u(i);useEffect(()=>{let s=r?.current;if(!s)return;let a=b$1(s);if(typeof a.ResizeObserver>"u")return a.addEventListener("resize",o,false),()=>{a.removeEventListener("resize",o,false);};{let l=new a.ResizeObserver(c=>{c.length&&o();});return l.observe(s,{box:n}),()=>{s&&l.unobserve(s);}}},[r,n]);}var p=100,b=600,t={isOpen:false,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},P=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);if(process.env.NODE_ENV==="test"&&typeof window<"u"&&!Reflect.has(window,"visualViewport")){let e=Object.assign(new EventTarget,{offsetTop:0,offsetLeft:0,pageTop:0,pageLeft:0,scale:1});Reflect.defineProperty(e,"width",{get:()=>window.innerWidth,configurable:true}),Reflect.defineProperty(e,"height",{get:()=>window.innerHeight,configurable:true}),Reflect.defineProperty(window,"visualViewport",{value:e,configurable:true,writable:true});}if(process.env.NODE_ENV==="test"&&typeof window<"u"&&!Reflect.has(window.screen,"orientation")){let e=Object.assign(new EventTarget,{type:"landscape-primary"});Reflect.defineProperty(window.screen,"orientation",{value:e,configurable:true,writable:true}),Reflect.defineProperty(window.screen.orientation,"angle",{get:()=>window.orientation??0,configurable:true});}function w(){let e=Number(window.visualViewport?.width??window.innerWidth),r=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return {width:e*n,height:r*n,angle:window.screen.orientation?.angle??0}}function V(e){t.resizeTimeStamp<=e.timeStamp+50&&(t.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(t.resizeTimeout),t.resizeTimeout=window.setTimeout(H,150));}function H(){let e=a("viewport");if(l()&&e?.includes("overlays-content"))return;let r=performance.now(),n=w(),i$1=r-t.startTimeStamp,o=t.screenHeight-n.height,s=t.screenAngle-n.angle;Math.abs(s)%180&&t.screenWidth-n.height<p&&(t.screenWidth=n.width,t.screenHeight=n.height,t.screenAngle=n.angle,o=0),i$1>b&&(window.clearTimeout(t.screenTimeout),t.screenTimeout=window.setTimeout(()=>{let a=document.hasFocus()?i():null,l=A(a),c=w();Math.abs(t.screenAngle-c.angle)%180||t.isOpen&&l||(t.screenWidth=c.width,t.screenHeight=c.height,t.screenAngle=c.angle,t.isOpen=false);},b)),i$1<=b&&o>=p&&(t.endTimeStamp=r),t.isOpen=o>=p;}function C(){let e=w(),r=t.screenAngle-e.angle;if(Math.abs(r)%180&&!t.isOpen){let n=t.screenWidth,i=t.screenHeight;t.screenWidth=i,t.screenHeight=n;}t.isOpen||(t.screenAngle=e.angle);}function I(e){let r=j$1(e),n=A(r),i=performance.now(),o=w(),s=t.screenHeight-o.height;s<p&&n&&(t.screenWidth=o.width,t.screenHeight=o.height,t.screenAngle=o.angle,t.startTimeStamp=i),n&&window.clearTimeout(t.screenTimeout),s>=p&&n&&(t.endTimeStamp=i);}function M(){let e$1=w();e(window.visualViewport,"resize",j()?H:V),e(window.screen.orientation,"change",C),e(window,"focus",I,{capture:true,passive:true}),t.screenWidth=e$1.width,t.screenHeight=e$1.height,t.screenAngle=e$1.angle;}typeof document<"u"&&(document.readyState!=="loading"?M():e(document,"DOMContentLoaded",M));function Te(){let e=a("viewport");return l()&&e?.includes("overlays-content")?false:t.isOpen?true:t.startTimeStamp?t.endTimeStamp>=t.startTimeStamp?true:performance.now()-t.startTimeStamp<=b?t.endTimeStamp>0||window.navigator.maxTouchPoints>0:false:window.navigator.maxTouchPoints>0}function A(e){let r=b$1(e);if(!(e instanceof r.Element)||!c(e))return false;let n=e instanceof r.HTMLTextAreaElement,i=e instanceof r.HTMLElement&&e.isContentEditable,o=e instanceof r.HTMLInputElement&&!P.has(e.type);return n||i||o}function Ee(e){return e$1()?e.metaKey:e.ctrlKey}function Oe(){return t.isOpen}function D(e,r){let{collection:n,onLoadMore:i,scrollOffset:o=1,direction:s="end"}=e,a=useRef(null),l=u(c=>{for(let g of c)g.isIntersecting&&i&&i();});a$1(()=>{if(r.current){let c=100*o,g=s==="start"?`${c}% 0px 0px 0px`:`0px ${c}% ${c}% ${c}%`;a.current=new IntersectionObserver(l,{root:b$2(r?.current),rootMargin:g}),a.current.observe(r.current);}return ()=>{a.current&&a.current.disconnect();}},[n,r,o,s]);}function _(e){let r=version.split(".");return parseInt(r[0],10)>=19?e:e?"true":void 0}export{G as a,Y as b,Z as c,ie as d,W as e,Te as f,A as g,Ee as h,Oe as i,D as j,_ as k};