@baseline-ui/core 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (492) hide show
  1. package/dist/Accordion.css +1 -1
  2. package/dist/Accordion.mjs +1 -1
  3. package/dist/ActionButton.css +1 -1
  4. package/dist/ActionButton.mjs +1 -1
  5. package/dist/ActionGroup.css +1 -1
  6. package/dist/ActionGroup.mjs +1 -1
  7. package/dist/ActionIconButton.css +1 -1
  8. package/dist/ActionIconButton.mjs +1 -1
  9. package/dist/Actionable.mjs +1 -1
  10. package/dist/AlertDialog.css +1 -1
  11. package/dist/AlertDialog.mjs +1 -1
  12. package/dist/AudioPlayer.css +1 -1
  13. package/dist/AudioPlayer.mjs +1 -1
  14. package/dist/Avatar.mjs +1 -1
  15. package/dist/ButtonSelect.css +1 -1
  16. package/dist/ButtonSelect.mjs +1 -1
  17. package/dist/Calendar.css +1 -1
  18. package/dist/Calendar.mjs +1 -1
  19. package/dist/Checkbox.mjs +1 -1
  20. package/dist/ColorInput.css +1 -1
  21. package/dist/ColorInput.mjs +1 -1
  22. package/dist/ColorSwatch.mjs +1 -1
  23. package/dist/ColorSwatchPicker.mjs +1 -1
  24. package/dist/ComboBox.css +1 -1
  25. package/dist/ComboBox.mjs +1 -1
  26. package/dist/DateField.css +1 -1
  27. package/dist/DateField.mjs +1 -1
  28. package/dist/DateFormat.mjs +1 -1
  29. package/dist/Dialog.css +1 -1
  30. package/dist/Dialog.mjs +1 -1
  31. package/dist/Disclosure.mjs +1 -1
  32. package/dist/DomNodeRenderer.mjs +1 -1
  33. package/dist/Drawer.css +1 -1
  34. package/dist/Drawer.mjs +1 -1
  35. package/dist/Editor.css +1 -1
  36. package/dist/Editor.mjs +1 -1
  37. package/dist/FileInput.css +1 -1
  38. package/dist/FileInput.mjs +1 -1
  39. package/dist/FileList.css +1 -1
  40. package/dist/FileList.mjs +1 -1
  41. package/dist/FileUploader.css +1 -1
  42. package/dist/FileUploader.mjs +1 -1
  43. package/dist/FrameProvider.mjs +1 -1
  44. package/dist/FreehandCanvas.css +1 -1
  45. package/dist/FreehandCanvas.mjs +1 -1
  46. package/dist/GridList.mjs +1 -1
  47. package/dist/Group.mjs +1 -1
  48. package/dist/I18nProvider.mjs +1 -1
  49. package/dist/Icon.mjs +1 -1
  50. package/dist/ImageDropZone.css +1 -1
  51. package/dist/ImageDropZone.mjs +1 -1
  52. package/dist/ImageGallery.css +1 -1
  53. package/dist/ImageGallery.mjs +1 -1
  54. package/dist/InlineAlert.css +1 -1
  55. package/dist/InlineAlert.mjs +1 -1
  56. package/dist/InlineToolbar.mjs +2 -2
  57. package/dist/Kbd.mjs +1 -1
  58. package/dist/Link.mjs +1 -1
  59. package/dist/ListBox.mjs +1 -1
  60. package/dist/Menu.css +1 -1
  61. package/dist/Menu.mjs +1 -1
  62. package/dist/MessageFormat.mjs +1 -1
  63. package/dist/Modal.mjs +1 -1
  64. package/dist/NumberFormat.mjs +1 -1
  65. package/dist/NumberInput.css +1 -1
  66. package/dist/NumberInput.mjs +1 -1
  67. package/dist/Pagination.css +1 -1
  68. package/dist/Pagination.mjs +1 -1
  69. package/dist/Panel.mjs +1 -1
  70. package/dist/PointPicker.mjs +1 -1
  71. package/dist/Popover.mjs +1 -1
  72. package/dist/Portal.mjs +1 -1
  73. package/dist/Preview.css +1 -1
  74. package/dist/Preview.mjs +1 -1
  75. package/dist/ProgressBar.mjs +1 -1
  76. package/dist/ProgressSpinner.mjs +1 -1
  77. package/dist/RadioGroup.mjs +1 -1
  78. package/dist/Reaction.mjs +1 -1
  79. package/dist/ScrollControlButton.mjs +1 -1
  80. package/dist/SearchInput.css +1 -1
  81. package/dist/SearchInput.mjs +1 -1
  82. package/dist/Select.css +1 -1
  83. package/dist/Select.mjs +1 -1
  84. package/dist/Separator.mjs +1 -1
  85. package/dist/Slider.css +1 -1
  86. package/dist/Slider.mjs +1 -1
  87. package/dist/Stepper.mjs +1 -1
  88. package/dist/Switch.mjs +1 -1
  89. package/dist/Table.css +1 -1
  90. package/dist/Table.mjs +1 -1
  91. package/dist/Tabs.css +1 -1
  92. package/dist/Tabs.mjs +1 -1
  93. package/dist/Tag.mjs +1 -1
  94. package/dist/TagGroup.mjs +1 -1
  95. package/dist/TaggedPagination.css +1 -1
  96. package/dist/TaggedPagination.mjs +1 -1
  97. package/dist/Text.mjs +1 -1
  98. package/dist/TextInput.mjs +1 -1
  99. package/dist/ThemeProvider.mjs +1 -1
  100. package/dist/TimeField.mjs +1 -1
  101. package/dist/Toast.css +1 -1
  102. package/dist/Toast.mjs +1 -1
  103. package/dist/ToggleButton.css +1 -1
  104. package/dist/ToggleButton.mjs +1 -1
  105. package/dist/ToggleIconButton.mjs +1 -1
  106. package/dist/Toolbar.css +1 -1
  107. package/dist/Toolbar.mjs +1 -1
  108. package/dist/Tooltip.mjs +1 -1
  109. package/dist/TreeView.css +1 -1
  110. package/dist/TreeView.mjs +1 -1
  111. package/dist/UNSAFE_ListBox.mjs +1 -1
  112. package/dist/Virtualizer.mjs +1 -1
  113. package/dist/{chunk-UUBOEBYZ.mjs → chunk-22MA6EYO.mjs} +1 -1
  114. package/dist/chunk-22VRCVTH.mjs +10 -0
  115. package/dist/chunk-235S3EB7.mjs +10 -0
  116. package/dist/{chunk-PNBYTIUO.mjs → chunk-2AKHB7Y5.mjs} +1 -1
  117. package/dist/{chunk-CHTLOFCT.mjs → chunk-2JGVUCP5.mjs} +1 -1
  118. package/dist/chunk-2M2LI4MI.mjs +10 -0
  119. package/dist/{chunk-TK4QXU3W.mjs → chunk-2VOWBYNS.mjs} +1 -1
  120. package/dist/chunk-2WA3KB7H.mjs +10 -0
  121. package/dist/{chunk-TO2TQ2LE.mjs → chunk-335C37NB.mjs} +1 -1
  122. package/dist/{chunk-E5GYCA3P.mjs → chunk-3DWFAHR2.mjs} +1 -1
  123. package/dist/chunk-3KWSJRYK.mjs +10 -0
  124. package/dist/chunk-3M3WJHOI.mjs +10 -0
  125. package/dist/{chunk-FWAK2OZM.mjs → chunk-3UC5V5E3.mjs} +1 -1
  126. package/dist/{chunk-TZ4MVY4E.mjs → chunk-3WKDIXCM.mjs} +1 -1
  127. package/dist/chunk-43LOJ3SH.mjs +10 -0
  128. package/dist/chunk-46RUOB4U.mjs +29 -0
  129. package/dist/{chunk-TCCQDGMI.mjs → chunk-4EAXDHSV.mjs} +1 -1
  130. package/dist/{chunk-UQJGSVXP.mjs → chunk-4I7K4CCG.mjs} +2 -2
  131. package/dist/chunk-4P247R4V.mjs +10 -0
  132. package/dist/{chunk-RXSYDMT6.mjs → chunk-4QBHQCCK.mjs} +2 -2
  133. package/dist/chunk-4S4GGUSH.mjs +10 -0
  134. package/dist/chunk-4WVW4KEK.mjs +10 -0
  135. package/dist/chunk-5G6JNQQR.mjs +10 -0
  136. package/dist/{chunk-RSTHM3ZF.mjs → chunk-5G7ABQYJ.mjs} +1 -1
  137. package/dist/{chunk-WAOWR7MR.mjs → chunk-5USQ6HBY.mjs} +1 -1
  138. package/dist/{chunk-UCPPKNGF.mjs → chunk-5VNC6UYE.mjs} +2 -2
  139. package/dist/chunk-5W67PVZQ.mjs +10 -0
  140. package/dist/chunk-5ZC64ZG7.mjs +10 -0
  141. package/dist/chunk-676DOXEK.mjs +10 -0
  142. package/dist/{chunk-VZFS4QRW.mjs → chunk-6GMU63H2.mjs} +1 -1
  143. package/dist/chunk-6M7PJXEE.mjs +10 -0
  144. package/dist/chunk-6Q5PNIYZ.mjs +10 -0
  145. package/dist/chunk-6QQEK5I6.mjs +10 -0
  146. package/dist/{chunk-XEGXSFIP.mjs → chunk-7BE6MOPW.mjs} +2 -2
  147. package/dist/chunk-7EQIV4GX.mjs +10 -0
  148. package/dist/{chunk-GX2IOGYR.mjs → chunk-7MLFM55C.mjs} +1 -1
  149. package/dist/{chunk-6NQPENP4.mjs → chunk-7P7VZMTO.mjs} +1 -1
  150. package/dist/{chunk-CFLEBB5T.mjs → chunk-7SKQUEHP.mjs} +1 -1
  151. package/dist/chunk-7SQRBY7N.mjs +10 -0
  152. package/dist/chunk-7XGNJE7J.mjs +10 -0
  153. package/dist/chunk-7XLBV46W.mjs +10 -0
  154. package/dist/chunk-ABXTAFKP.mjs +11 -0
  155. package/dist/{chunk-AYBACQ6U.mjs → chunk-AFOW62QN.mjs} +2 -2
  156. package/dist/chunk-AI6WQPRX.mjs +10 -0
  157. package/dist/chunk-AMVX34SS.mjs +10 -0
  158. package/dist/chunk-AN26QORL.mjs +10 -0
  159. package/dist/chunk-AYQN3OH2.mjs +10 -0
  160. package/dist/chunk-B3EZOXNU.mjs +10 -0
  161. package/dist/{chunk-F3HQNHR5.mjs → chunk-BA5OA5DY.mjs} +1 -1
  162. package/dist/chunk-BAIVRB2I.mjs +10 -0
  163. package/dist/chunk-BET5GVGQ.mjs +10 -0
  164. package/dist/chunk-BGQRLALS.mjs +10 -0
  165. package/dist/chunk-BGRGRUG4.mjs +10 -0
  166. package/dist/chunk-BPW4QRPV.mjs +10 -0
  167. package/dist/chunk-BSSLS6MF.mjs +10 -0
  168. package/dist/chunk-BTPAZDGG.mjs +10 -0
  169. package/dist/{chunk-I3YGB2BE.mjs → chunk-C4WHTPLY.mjs} +2 -2
  170. package/dist/chunk-CENNHSIS.mjs +15 -0
  171. package/dist/chunk-CIPPPD6E.mjs +10 -0
  172. package/dist/{chunk-2TH2QRSV.mjs → chunk-CTBCJZEG.mjs} +1 -1
  173. package/dist/chunk-CU6D2EA6.mjs +10 -0
  174. package/dist/{chunk-SAZLJ66W.mjs → chunk-CY6W27WG.mjs} +1 -1
  175. package/dist/{chunk-34TYNTXM.mjs → chunk-D4NW56YQ.mjs} +1 -1
  176. package/dist/chunk-D5VU5TED.mjs +11 -0
  177. package/dist/chunk-DAI7V4TE.mjs +10 -0
  178. package/dist/{chunk-PAQQ7MQG.mjs → chunk-DF2D7NE6.mjs} +1 -1
  179. package/dist/chunk-DO5YROCG.mjs +10 -0
  180. package/dist/{chunk-DRYSJSKA.mjs → chunk-E3FP4B25.mjs} +1 -1
  181. package/dist/{chunk-QSSCSN5S.mjs → chunk-EGLD5KVP.mjs} +2 -2
  182. package/dist/{chunk-HVKYWSRF.mjs → chunk-EL5OYHOX.mjs} +2 -2
  183. package/dist/chunk-ETM4MNG4.mjs +10 -0
  184. package/dist/chunk-F7WPMQ3P.mjs +16 -0
  185. package/dist/{chunk-EU75HMPG.mjs → chunk-FCKJCFMD.mjs} +2 -2
  186. package/dist/chunk-FGSVPRDN.mjs +10 -0
  187. package/dist/chunk-FNCHBVLF.mjs +10 -0
  188. package/dist/chunk-FPM5UJRF.mjs +10 -0
  189. package/dist/{chunk-TJEK54BW.mjs → chunk-G77E7EDE.mjs} +1 -1
  190. package/dist/{chunk-N26C7NYZ.mjs → chunk-GCBMNOA6.mjs} +1 -1
  191. package/dist/chunk-GFBRKKX4.mjs +10 -0
  192. package/dist/chunk-GFKZXGWJ.mjs +10 -0
  193. package/dist/{chunk-CPSUI4IW.mjs → chunk-GFTIEY5K.mjs} +1 -1
  194. package/dist/{chunk-IVVZSESM.mjs → chunk-GL5GUKT7.mjs} +2 -2
  195. package/dist/chunk-GLAMJIYO.mjs +10 -0
  196. package/dist/chunk-GMALMQWI.mjs +10 -0
  197. package/dist/chunk-GQIS4QBN.mjs +10 -0
  198. package/dist/chunk-GUPSQSPC.mjs +0 -0
  199. package/dist/chunk-HABKIEKC.mjs +10 -0
  200. package/dist/chunk-HH4VLTF3.mjs +10 -0
  201. package/dist/{chunk-HI44JQA7.mjs → chunk-HPUUQKKH.mjs} +2 -2
  202. package/dist/chunk-HZM2XZP4.mjs +10 -0
  203. package/dist/chunk-I7LPPUZS.mjs +10 -0
  204. package/dist/{chunk-IXK6S6IH.mjs → chunk-I7SMG6PT.mjs} +1 -1
  205. package/dist/chunk-IHES52NR.mjs +10 -0
  206. package/dist/{chunk-AGYQLGBZ.mjs → chunk-IIURKT24.mjs} +1 -1
  207. package/dist/{chunk-NQO6OQT6.mjs → chunk-IM3E5JL4.mjs} +1 -1
  208. package/dist/chunk-IROFSPEN.mjs +10 -0
  209. package/dist/chunk-JRCDMRIW.mjs +10 -0
  210. package/dist/{chunk-XUJJMAKM.mjs → chunk-JZXLV6JU.mjs} +1 -1
  211. package/dist/{chunk-4ZJMZB5B.mjs → chunk-K5RYVERS.mjs} +1 -1
  212. package/dist/{chunk-WL27JGVG.mjs → chunk-KG2EHFYA.mjs} +1 -1
  213. package/dist/chunk-KHDWTXGG.mjs +10 -0
  214. package/dist/{chunk-AMYRLAIC.mjs → chunk-KT4FTBJ2.mjs} +1 -1
  215. package/dist/chunk-KUDCYGII.mjs +10 -0
  216. package/dist/{chunk-YCI6BEXQ.mjs → chunk-KVIV5RTE.mjs} +1 -1
  217. package/dist/chunk-KW3BKIG4.mjs +10 -0
  218. package/dist/chunk-KX7WG3L4.mjs +10 -0
  219. package/dist/chunk-LBHZV4BO.mjs +10 -0
  220. package/dist/chunk-LJZ7ZS4C.mjs +10 -0
  221. package/dist/chunk-LKSUUT3M.mjs +10 -0
  222. package/dist/chunk-LQ7PGSP4.mjs +10 -0
  223. package/dist/chunk-LQHFBXCW.mjs +10 -0
  224. package/dist/{chunk-V37GPPZD.mjs → chunk-LSPDPDB6.mjs} +1 -1
  225. package/dist/{chunk-L6S5GBKS.mjs → chunk-MBRNO6IW.mjs} +1 -1
  226. package/dist/chunk-MCN5JU6E.mjs +10 -0
  227. package/dist/chunk-MHAPHPNN.mjs +10 -0
  228. package/dist/chunk-MZIQ27JP.mjs +10 -0
  229. package/dist/chunk-NKC4MIX3.mjs +10 -0
  230. package/dist/{chunk-GI2O6H4I.mjs → chunk-NMGKHMH3.mjs} +1 -1
  231. package/dist/chunk-NMK4W6K3.mjs +10 -0
  232. package/dist/{chunk-GEZGEZAP.mjs → chunk-NQIZ3U7Q.mjs} +2 -2
  233. package/dist/{chunk-6Z6HOW6T.mjs → chunk-NUCSMH4S.mjs} +2 -2
  234. package/dist/chunk-NZNOHFLD.mjs +10 -0
  235. package/dist/{chunk-4PYEGHW5.mjs → chunk-O23QVPUT.mjs} +2 -2
  236. package/dist/{chunk-UN7XC7QV.mjs → chunk-O6FPWOHR.mjs} +1 -1
  237. package/dist/{chunk-3UH5CQQF.mjs → chunk-O7IU5NHN.mjs} +2 -2
  238. package/dist/chunk-OMWMNUTI.mjs +10 -0
  239. package/dist/{chunk-Z4HTFTPM.mjs → chunk-ONBEVR2G.mjs} +2 -2
  240. package/dist/chunk-OQPYPKZV.mjs +10 -0
  241. package/dist/chunk-OVJT5F2R.mjs +10 -0
  242. package/dist/chunk-OWQRYRWF.mjs +10 -0
  243. package/dist/{chunk-XJ2DFV56.mjs → chunk-PLZ6ZFEO.mjs} +1 -1
  244. package/dist/chunk-PMDRFB75.mjs +10 -0
  245. package/dist/chunk-PPHSLODC.mjs +10 -0
  246. package/dist/chunk-PYV5J322.mjs +11 -0
  247. package/dist/chunk-QAAOC64D.mjs +10 -0
  248. package/dist/chunk-QMV2O57M.mjs +10 -0
  249. package/dist/{chunk-ZLZAFTSD.mjs → chunk-QWZBZ23U.mjs} +1 -1
  250. package/dist/{chunk-NADBGP35.mjs → chunk-QXXKOFWM.mjs} +2 -2
  251. package/dist/{chunk-DMJHCNBU.mjs → chunk-R6Q7UMQS.mjs} +1 -1
  252. package/dist/{chunk-CGFLGZL4.mjs → chunk-R6TFTLMV.mjs} +1 -1
  253. package/dist/{chunk-AV4ZP5SY.mjs → chunk-RPIUPWPO.mjs} +1 -1
  254. package/dist/chunk-S2XIFW52.mjs +10 -0
  255. package/dist/chunk-S4HLMIFK.mjs +10 -0
  256. package/dist/chunk-SBGZCLF4.mjs +10 -0
  257. package/dist/chunk-SD43KVTU.mjs +10 -0
  258. package/dist/{chunk-YS3Y5KGV.mjs → chunk-SGZWUG3H.mjs} +2 -2
  259. package/dist/chunk-SI5WP6I7.mjs +10 -0
  260. package/dist/chunk-SLFKSR3T.mjs +10 -0
  261. package/dist/chunk-SLSJEMQ4.mjs +10 -0
  262. package/dist/{chunk-K6X2BHPP.mjs → chunk-STMDFIUL.mjs} +1 -1
  263. package/dist/chunk-SVIYLH7R.mjs +10 -0
  264. package/dist/{chunk-GXOXYPQQ.mjs → chunk-SVV6DLJH.mjs} +1 -1
  265. package/dist/chunk-SZCVQU55.mjs +10 -0
  266. package/dist/{chunk-QXOG2ISL.mjs → chunk-T6J7G3YL.mjs} +2 -2
  267. package/dist/chunk-TAT552A5.mjs +10 -0
  268. package/dist/{chunk-ZNN43VZV.mjs → chunk-TFSBTGTQ.mjs} +2 -2
  269. package/dist/chunk-TIGGKOJQ.mjs +10 -0
  270. package/dist/chunk-TTVYMCU3.mjs +10 -0
  271. package/dist/chunk-TUY23KMK.mjs +10 -0
  272. package/dist/chunk-TYKMNZJ4.mjs +11 -0
  273. package/dist/chunk-TZGK36KC.mjs +10 -0
  274. package/dist/chunk-UBLCUHRL.mjs +10 -0
  275. package/dist/chunk-UFN2OAM2.mjs +10 -0
  276. package/dist/{chunk-5K46OAX5.mjs → chunk-UH6QIGD3.mjs} +1 -1
  277. package/dist/{chunk-ZLAY7NNY.mjs → chunk-UI2VBG26.mjs} +1 -1
  278. package/dist/{chunk-545KDVGI.mjs → chunk-UO75BAPM.mjs} +2 -2
  279. package/dist/chunk-UOWKAUCQ.mjs +10 -0
  280. package/dist/chunk-UPJHL37C.mjs +10 -0
  281. package/dist/chunk-USUPPN73.mjs +10 -0
  282. package/dist/chunk-UYAFH4CW.mjs +10 -0
  283. package/dist/{chunk-6EFNC443.mjs → chunk-UYUYQFOW.mjs} +1 -1
  284. package/dist/chunk-UZ672WDX.mjs +10 -0
  285. package/dist/chunk-VFO35ZLL.mjs +10 -0
  286. package/dist/chunk-VXZT2JR2.mjs +10 -0
  287. package/dist/chunk-WFYFHANE.mjs +10 -0
  288. package/dist/chunk-X5ORCNAU.mjs +10 -0
  289. package/dist/chunk-X5ZTXDQ4.mjs +10 -0
  290. package/dist/chunk-X7CKWYUD.mjs +10 -0
  291. package/dist/{chunk-NUYBQ7KP.mjs → chunk-XAM3AXXK.mjs} +1 -1
  292. package/dist/{chunk-5KD2MNNX.mjs → chunk-XDTKLQJB.mjs} +1 -1
  293. package/dist/chunk-XMGPNXZH.mjs +10 -0
  294. package/dist/chunk-XOS3JIQX.mjs +10 -0
  295. package/dist/chunk-XQC3DSTW.mjs +10 -0
  296. package/dist/{chunk-D3IZ4HBL.mjs → chunk-Y2MIU76N.mjs} +1 -1
  297. package/dist/chunk-Y3HXPORF.mjs +10 -0
  298. package/dist/chunk-YDUKC7QS.mjs +10 -0
  299. package/dist/chunk-YF63IQQR.mjs +10 -0
  300. package/dist/chunk-YFBMCK5O.mjs +10 -0
  301. package/dist/{chunk-2RCST7ET.mjs → chunk-YHI2PD3M.mjs} +1 -1
  302. package/dist/chunk-YMYMFVW4.mjs +10 -0
  303. package/dist/chunk-YQHHE5AT.mjs +10 -0
  304. package/dist/{chunk-UCNHDT36.mjs → chunk-YS3Z53YT.mjs} +2 -2
  305. package/dist/chunk-YYU46XNM.mjs +10 -0
  306. package/dist/{chunk-2EMOQIU7.mjs → chunk-Z3ZMWJSV.mjs} +2 -2
  307. package/dist/chunk-Z4QTH4TB.mjs +10 -0
  308. package/dist/chunk-ZA2FH3MS.mjs +10 -0
  309. package/dist/{chunk-DECHIERQ.mjs → chunk-ZQOR4LCM.mjs} +1 -1
  310. package/dist/hooks/useContainerScopedRef.mjs +1 -1
  311. package/dist/hooks/useDevice.mjs +1 -1
  312. package/dist/hooks/useI18n.mjs +1 -1
  313. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  314. package/dist/hooks/useLiveInteractionModality.mjs +1 -1
  315. package/dist/hooks/useMedia.mjs +1 -1
  316. package/dist/hooks/useMutationObserver.mjs +1 -1
  317. package/dist/hooks/usePortalContainer.mjs +1 -1
  318. package/dist/hooks/usePreventFocus.mjs +1 -1
  319. package/dist/hooks/useResizeObserver.mjs +1 -1
  320. package/dist/hooks/useTextSelection.mjs +1 -1
  321. package/dist/hooks/useUndoRedo.mjs +1 -1
  322. package/dist/index.css +1 -1
  323. package/dist/index.d.ts +440 -188
  324. package/dist/index.js +21 -20
  325. package/dist/index.mjs +1 -1
  326. package/dist/messageIds.mjs +1 -1
  327. package/dist/react-aria.mjs +1 -1
  328. package/dist/react-stately.mjs +1 -1
  329. package/dist/utils/colors.mjs +1 -1
  330. package/dist/utils/dom.mjs +1 -1
  331. package/dist/utils/isInShadowDOM.mjs +1 -1
  332. package/dist/utils/keyboards.mjs +1 -1
  333. package/dist/utils/strings.mjs +1 -1
  334. package/intl/ar.json +1 -0
  335. package/intl/cs.json +1 -0
  336. package/intl/cy.json +1 -0
  337. package/intl/da.json +1 -0
  338. package/intl/de.json +1 -0
  339. package/intl/el.json +1 -0
  340. package/intl/en-GB.json +1 -0
  341. package/intl/en.json +1 -0
  342. package/intl/es.json +1 -0
  343. package/intl/fi.json +1 -0
  344. package/intl/fr-CA.json +1 -0
  345. package/intl/fr.json +1 -0
  346. package/intl/he.json +1 -0
  347. package/intl/hr.json +1 -0
  348. package/intl/id.json +1 -0
  349. package/intl/it.json +1 -0
  350. package/intl/ja.json +1 -0
  351. package/intl/ko.json +1 -0
  352. package/intl/ms.json +1 -0
  353. package/intl/nb-NO.json +1 -0
  354. package/intl/nl.json +1 -0
  355. package/intl/pl.json +1 -0
  356. package/intl/pt-PT.json +1 -0
  357. package/intl/pt.json +1 -0
  358. package/intl/ru.json +1 -0
  359. package/intl/sk.json +1 -0
  360. package/intl/sl.json +1 -0
  361. package/intl/sv.json +1 -0
  362. package/intl/th.json +1 -0
  363. package/intl/tr.json +1 -0
  364. package/intl/uk.json +1 -0
  365. package/intl/zh-Hans.json +1 -0
  366. package/intl/zh-Hant.json +1 -0
  367. package/messages.json +5 -1
  368. package/package.json +4 -4
  369. package/sbom.json +6 -6
  370. package/dist/chunk-2BXXD6SW.mjs +0 -10
  371. package/dist/chunk-2V323KAD.mjs +0 -10
  372. package/dist/chunk-2YTKLY4F.mjs +0 -10
  373. package/dist/chunk-3FYY26ED.mjs +0 -10
  374. package/dist/chunk-3W6RWDIE.mjs +0 -10
  375. package/dist/chunk-4C6AJ3TZ.mjs +0 -10
  376. package/dist/chunk-5HK56IXH.mjs +0 -10
  377. package/dist/chunk-5IXSPQRW.mjs +0 -10
  378. package/dist/chunk-63KRQW56.mjs +0 -10
  379. package/dist/chunk-66NJ7EYY.mjs +0 -10
  380. package/dist/chunk-6JWACCHG.mjs +0 -10
  381. package/dist/chunk-6PXOVWVM.mjs +0 -10
  382. package/dist/chunk-6V7BIFQD.mjs +0 -10
  383. package/dist/chunk-6VXBFM6Q.mjs +0 -10
  384. package/dist/chunk-7L5UOGZA.mjs +0 -10
  385. package/dist/chunk-7MQBBSZ2.mjs +0 -10
  386. package/dist/chunk-7P322KP4.mjs +0 -10
  387. package/dist/chunk-7PRJIPFA.mjs +0 -10
  388. package/dist/chunk-A24DWFQ2.mjs +0 -10
  389. package/dist/chunk-AC7OXVHA.mjs +0 -10
  390. package/dist/chunk-AKES5B6C.mjs +0 -10
  391. package/dist/chunk-AQYBKDT2.mjs +0 -16
  392. package/dist/chunk-AUOQSTS5.mjs +0 -10
  393. package/dist/chunk-AW5WDI2U.mjs +0 -10
  394. package/dist/chunk-B237CJT4.mjs +0 -10
  395. package/dist/chunk-B6U6JHD4.mjs +0 -10
  396. package/dist/chunk-B7PSE5KC.mjs +0 -10
  397. package/dist/chunk-BBZ2I3RF.mjs +0 -10
  398. package/dist/chunk-BCENUHNO.mjs +0 -10
  399. package/dist/chunk-BGHBSM3K.mjs +0 -10
  400. package/dist/chunk-BGMVPFYK.mjs +0 -10
  401. package/dist/chunk-BJVFZYUV.mjs +0 -10
  402. package/dist/chunk-BU5H25MV.mjs +0 -10
  403. package/dist/chunk-C7AUJO36.mjs +0 -10
  404. package/dist/chunk-CAWUDHAE.mjs +0 -10
  405. package/dist/chunk-CCA2ABXO.mjs +0 -10
  406. package/dist/chunk-CUOTJ7AP.mjs +0 -10
  407. package/dist/chunk-CYTHB4M4.mjs +0 -10
  408. package/dist/chunk-D5EEZT5J.mjs +0 -10
  409. package/dist/chunk-DDLZ6CKC.mjs +0 -10
  410. package/dist/chunk-E3DMXJIC.mjs +0 -10
  411. package/dist/chunk-E3QDPL77.mjs +0 -10
  412. package/dist/chunk-EA6GA4WC.mjs +0 -10
  413. package/dist/chunk-EGXILQNX.mjs +0 -10
  414. package/dist/chunk-EX2LI2CV.mjs +0 -10
  415. package/dist/chunk-EYKIXVM3.mjs +0 -10
  416. package/dist/chunk-F2X474RV.mjs +0 -10
  417. package/dist/chunk-F7PGMOQF.mjs +0 -10
  418. package/dist/chunk-GKODQS6E.mjs +0 -10
  419. package/dist/chunk-GVI6EBGJ.mjs +0 -10
  420. package/dist/chunk-HK3CZVHY.mjs +0 -10
  421. package/dist/chunk-HONWMHMX.mjs +0 -10
  422. package/dist/chunk-HT55YHTN.mjs +0 -10
  423. package/dist/chunk-HZHAKW6I.mjs +0 -10
  424. package/dist/chunk-ILAQFMYD.mjs +0 -10
  425. package/dist/chunk-INDVRI57.mjs +0 -10
  426. package/dist/chunk-ITWJSFYK.mjs +0 -10
  427. package/dist/chunk-IVC2BJRU.mjs +0 -10
  428. package/dist/chunk-IXRSSEHQ.mjs +0 -10
  429. package/dist/chunk-JDLUGVXG.mjs +0 -10
  430. package/dist/chunk-K6HE4Z2Y.mjs +0 -10
  431. package/dist/chunk-K73R5G6G.mjs +0 -10
  432. package/dist/chunk-KEAM6GSA.mjs +0 -10
  433. package/dist/chunk-KEVERVHK.mjs +0 -10
  434. package/dist/chunk-KHOXLBPR.mjs +0 -10
  435. package/dist/chunk-KPEONVLU.mjs +0 -10
  436. package/dist/chunk-KUEDQO7P.mjs +0 -10
  437. package/dist/chunk-KWHTLY23.mjs +0 -10
  438. package/dist/chunk-KY3JKXSX.mjs +0 -10
  439. package/dist/chunk-LQMEFFFM.mjs +0 -10
  440. package/dist/chunk-LZFTBNPW.mjs +0 -10
  441. package/dist/chunk-M5M3EPG5.mjs +0 -10
  442. package/dist/chunk-M7OLZJYB.mjs +0 -10
  443. package/dist/chunk-MHUFXHRU.mjs +0 -10
  444. package/dist/chunk-MONDDKB4.mjs +0 -10
  445. package/dist/chunk-MRJFGHFW.mjs +0 -10
  446. package/dist/chunk-MVK5CB64.mjs +0 -10
  447. package/dist/chunk-N6VKP3UH.mjs +0 -10
  448. package/dist/chunk-NZQVKNP4.mjs +0 -10
  449. package/dist/chunk-OAY74XPB.mjs +0 -10
  450. package/dist/chunk-OMT6ZWSV.mjs +0 -11
  451. package/dist/chunk-P37WUXAI.mjs +0 -10
  452. package/dist/chunk-P5LSMA24.mjs +0 -11
  453. package/dist/chunk-PA3THES4.mjs +0 -10
  454. package/dist/chunk-QDQPVCXN.mjs +0 -10
  455. package/dist/chunk-QR2AF3KT.mjs +0 -10
  456. package/dist/chunk-QYTY3KJR.mjs +0 -10
  457. package/dist/chunk-R2OV7FJO.mjs +0 -10
  458. package/dist/chunk-RCBUNCHV.mjs +0 -10
  459. package/dist/chunk-RFTDIXEG.mjs +0 -10
  460. package/dist/chunk-RJZZIVSY.mjs +0 -10
  461. package/dist/chunk-SHJ2TJYG.mjs +0 -10
  462. package/dist/chunk-SMAYNDQQ.mjs +0 -10
  463. package/dist/chunk-SYFSGF73.mjs +0 -10
  464. package/dist/chunk-T4R3EXGI.mjs +0 -10
  465. package/dist/chunk-TBCZKWGQ.mjs +0 -10
  466. package/dist/chunk-TDXALNX3.mjs +0 -10
  467. package/dist/chunk-TKQOQVZD.mjs +0 -10
  468. package/dist/chunk-TTYRHIRQ.mjs +0 -10
  469. package/dist/chunk-UBFMOTBM.mjs +0 -10
  470. package/dist/chunk-UEDBY5JI.mjs +0 -10
  471. package/dist/chunk-UT2I4K7L.mjs +0 -10
  472. package/dist/chunk-V3L4SVVF.mjs +0 -10
  473. package/dist/chunk-VAFIUM63.mjs +0 -29
  474. package/dist/chunk-VIVNQZYK.mjs +0 -10
  475. package/dist/chunk-VOSSQAHC.mjs +0 -11
  476. package/dist/chunk-WWSGOGLA.mjs +0 -10
  477. package/dist/chunk-X3AXUU3H.mjs +0 -10
  478. package/dist/chunk-X6IJEPSH.mjs +0 -10
  479. package/dist/chunk-XF5UMU6D.mjs +0 -15
  480. package/dist/chunk-XTH6B5FE.mjs +0 -10
  481. package/dist/chunk-XWLESSHN.mjs +0 -10
  482. package/dist/chunk-XZSDCUID.mjs +0 -10
  483. package/dist/chunk-Y3YZMICA.mjs +0 -10
  484. package/dist/chunk-Y4DRSGEJ.mjs +0 -10
  485. package/dist/chunk-YB3KW7JC.mjs +0 -10
  486. package/dist/chunk-YIGT3OP2.mjs +0 -10
  487. package/dist/chunk-YKMSINHH.mjs +0 -10
  488. package/dist/chunk-YWCU4PP7.mjs +0 -10
  489. package/dist/chunk-YWQXHVMW.mjs +0 -10
  490. package/dist/chunk-YX2ASVM3.mjs +0 -10
  491. package/dist/chunk-ZGRRD3TU.mjs +0 -10
  492. /package/dist/{chunk-FKYHERP4.mjs → chunk-3K2H3JOE.mjs} +0 -0
@@ -0,0 +1,10 @@
1
+ import {h,j}from'./chunk-PPHSLODC.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {b,a,h as h$1}from'./chunk-SD43KVTU.mjs';import {useState}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 L(e,r){if(!e)return false;let o=b(e).getComputedStyle(e),l=/(auto|scroll)/.test(o.overflow+o.overflowX+o.overflowY);return l&&r&&(l=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),l}function fe(e,r){let t=e;for(L(t,r)&&(t=t.parentElement);t&&!L(t,r);)t=t.parentElement;let o=a(e);return t||o.scrollingElement||o.documentElement}function v(e,r){let t=[],o=a(e),l=o.scrollingElement||o.documentElement;for(;e&&(L(e,r)&&t.push(e),e!==l);)e=e.parentElement;return t}var ne=0,X=new WeakMap;function we(e,r){let[t,o]=useState();return a$1(()=>{if(!e)return;let l=r?.current?.getRootNode()||document,d=l?.ownerDocument||document,a=X.get(l);a||(a=new Map,X.set(l,a));let n=a.get(e);if(n)o(n.element.id);else {let c=`react-aria-description-${ne++}`;o(c);let s=d.createElement("div");s.id=c,s.style.display="none",s.textContent=e,"body"in l?l.body.appendChild(s):l.appendChild(s),n={refCount:0,element:s},a.set(e,n);}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),a.delete(e));}},[e]),{"aria-describedby":e?t:void 0}}function y(e,r,t={}){if(e===r)return;let o=r.getBoundingClientRect();re(e,r,o,t);}function re(e,r,t,o={}){let{block:l="nearest",inline:d="nearest"}=o,a$1=e.scrollTop,n=e.scrollLeft,c=a(r),s=c.defaultView||window,m=e.getBoundingClientRect(),u=s.getComputedStyle(r),i=s.getComputedStyle(e),f=c.scrollingElement||c.documentElement,M=e===f,Y=e===f?0:m.top,K=e===f?e.clientHeight:m.bottom,_=e===f?0:m.left,$=e===f?e.clientWidth:m.right,q=parseFloat(u.scrollMarginTop)||0,z=parseFloat(u.scrollMarginBottom)||0,G=parseFloat(u.scrollMarginLeft)||0,J=parseFloat(u.scrollMarginRight)||0,Q=parseFloat(i.scrollPaddingTop)||0,U=parseFloat(i.scrollPaddingBottom)||0,Z=parseFloat(i.scrollPaddingLeft)||0,V=parseFloat(i.scrollPaddingRight)||0,H=parseFloat(i.borderTopWidth)||0,D=parseFloat(i.borderBottomWidth)||0,I=parseFloat(i.borderLeftWidth)||0,O=parseFloat(i.borderRightWidth)||0,E=t.top-q,S=t.bottom+z,T=t.left-G,P=t.right+J,ee=e===f?0:I+O,te=e===f?0:H+D,F=e===f?0:e.offsetWidth-e.clientWidth-ee,oe=e===f?0:e.offsetHeight-e.clientHeight-te,R=Y+(M?0:H)+Q,B=K-(M?0:D)-U-oe,g=_+(M?0:I)+Z,h$1=$-(M?0:O)-V;h()&&j()||i.direction==="ltr"?h$1-=F:i.direction==="rtl"&&(g+=F);let W=E<R||S>B,C=T<g||P>h$1;if(W&&l==="start")a$1+=E-R;else if(W&&l==="center")a$1+=(E+S)/2-(R+B)/2;else if(W&&l==="end")a$1+=S-B;else if(W&&l==="nearest"){let b=E-R,w=S-B;a$1+=Math.abs(b)<=Math.abs(w)?b:w;}if(C&&d==="start")n+=T-g;else if(C&&d==="center")n+=(T+P)/2-(g+h$1)/2;else if(C&&d==="end")n+=P-h$1;else if(C&&d==="nearest"){let b=T-g,w=P-h$1;n+=Math.abs(b)<=Math.abs(w)?b:w;}if(process.env.NODE_ENV==="test"){e.scrollLeft=n,e.scrollTop=a$1;return}e.scrollTo({left:n,top:a$1});}function Pe(e,r={}){let{containingElement:t}=r,o=a(e),l=o.defaultView||window;if(e&&h$1(o.body,e)){let d=o.scrollingElement||o.documentElement;if(l.getComputedStyle(d).overflow==="hidden"){let{left:n,top:c}=e.getBoundingClientRect(),s=v(e,true);for(let i of s)y(i,e);let{left:m,top:u}=e.getBoundingClientRect();if(Math.abs(n-m)>1||Math.abs(c-u)>1){s=t?v(t,true):[];for(let i of s)y(i,t,{block:"center",inline:"center"});for(let i of v(e,true))y(i,e);}}else {let{left:n,top:c}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:m}=e.getBoundingClientRect();(Math.abs(n-s)>1||Math.abs(c-m)>1)&&(t?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}));}}}export{L as a,fe as b,v as c,we as d,y as e,Pe as f};
File without changes
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$2}from'./chunk-CU6D2EA6.mjs';import {e}from'./chunk-TZGK36KC.mjs';import {a as a$2}from'./chunk-2VY4FAOY.mjs';import {j}from'./chunk-PPHSLODC.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {a,i,b as b$1,h,e as e$1,l}from'./chunk-SD43KVTU.mjs';import {useState,useRef,useEffect,useCallback}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var $=1e7;function xt(t,e,l){let o=st(e.body,l);return t==="left"?{...o,left:-$/2,width:$,totalWidth:$,scroll:{...o.scroll,left:0}}:{...o,top:-$/2,height:$,totalHeight:$,scroll:{...o.scroll,top:0}}}var B={top:"top",bottom:"top",left:"left",right:"left"},G={top:"bottom",bottom:"top",left:"right",right:"left"},Mt={top:"left",left:"top"},it={top:"height",left:"width"},Rt={width:"totalWidth",height:"totalHeight"},J={};function It(t){let e=b$1(t);return typeof e<"u"&&e.visualViewport?e.visualViewport:null}function st(t,e){let l=a(t),o=0,n=0,s=0,i=0,c=0,u=0,r={},m=(e?.scale??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let h=l.documentElement;s=h.clientWidth,i=h.clientHeight,o=e?.width??s,n=e?.height??i,r.top=h.scrollTop||t.scrollTop,r.left=h.scrollLeft||t.scrollLeft,e&&(c=Math.max(0,e.pageTop-(r.top??0)),u=Math.max(0,e.pageLeft-(r.left??0)));}else (({width:o,height:n,top:c,left:u}=Z(t,false))),r.top=t.scrollTop,r.left=t.scrollLeft,s=o,i=n;return j()&&(t.tagName==="BODY"||t.tagName==="HTML")&&m&&(r.top=0,r.left=0,c=e?.pageTop??0,u=e?.pageLeft??0),{width:o,height:n,totalWidth:s,totalHeight:i,scroll:r,top:c,left:u}}function vt(t){return {top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Q(t,e,l,o,n,s,i){let c=n.scroll[t]??0,u=o[it[t]],r=i[t]+o.scroll[B[t]]+s,m=i[t]+o.scroll[B[t]]+u-s,h=e-c+o.scroll[B[t]]+i[t]-o[B[t]],d=e-c+l+o.scroll[B[t]]+i[t]-o[B[t]];return h<r?r-h:d>m?Math.max(m-d,r-h):0}function St(t){let l=b$1(t).getComputedStyle(t);return {top:parseInt(l.marginTop,10)||0,bottom:parseInt(l.marginBottom,10)||0,left:parseInt(l.marginLeft,10)||0,right:parseInt(l.marginRight,10)||0}}function rt(t){if(J[t])return J[t];let[e,l]=t.split(" "),o=B[e]||"right",n=Mt[o];B[l]||(l="center");let s=it[o],i=it[n];return J[t]={placement:e,crossPlacement:l,axis:o,crossAxis:n,size:s,crossSize:i},J[t]}function tt(t,e,l,o,n,s,i,c,u,r,m){let{placement:h,crossPlacement:d,axis:y,crossAxis:f,size:L,crossSize:w}=o,b={};b[f]=t[f]??0,d==="center"?b[f]+=((t[w]??0)-(l[w]??0))/2:d!==f&&(b[f]+=(t[w]??0)-(l[w]??0)),b[f]+=s;let E=t[f]-l[w]+u+r,C=t[f]+t[w]-u-r;if(b[f]=a$2(b[f],E,C),h===y){let D=c?m[L]:m[Rt[L]];b[G[y]]=Math.floor(D-t[y]+n);}else b[y]=Math.floor(t[y]+t[L]+n);return b}function zt(t,e,l,o,n,s,i,c,u,r,m){let h=(t.top!=null?t.top:u[Rt.height]-(t.bottom??0)-i)-(u.scroll.top??0),d=r?l.top:0,y={top:Math.max(e.top+d,(m?.offsetTop??e.top)+d),bottom:Math.min(e.top+e.height+d,(m?.offsetTop??0)+(m?.height??0))};return c!=="top"?Math.max(0,y.bottom-h-((n.top??0)+(n.bottom??0)+s)):Math.max(0,h+i-y.top-((n.top??0)+(n.bottom??0)+s))}function wt(t,e,l,o,n,s,i,c){let{placement:u,axis:r,size:m}=s;return u===r?Math.max(0,l[r]-(i.scroll[r]??0)-(t[r]+(c?e[r]:0))-(o[r]??0)-o[G[r]]-n):Math.max(0,t[m]+t[r]+(c?e[r]:0)-l[r]-l[m]+(i.scroll[r]??0)-(o[r]??0)-o[G[r]]-n)}function Ft(t,e,l,o,n,s,i,c,u,r,m,h,d,y,f,L,w,b,E,C,D,_){let a=rt(t),{size:A,crossAxis:p,crossSize:R,placement:M,crossPlacement:T}=a,P=tt(e,c,l,a,m,h,r,d,f,L,u),S=m,k=E?$:wt(c,r,e,n,s+m,a,u,w);if(i&&l[A]>k){let j=rt(`${G[M]} ${T}`),X=tt(e,c,l,j,m,h,r,d,f,L,u);wt(c,r,e,n,s+m,j,u,w)>k&&(a=j,P=X,S=m);}if(_==="anchor"&&C&&(a.placement==="top"||a.placement==="bottom")){let j=E?0:Q(p,P[p],l[R],c,u,s,r);if(j!==0){let X=a.crossPlacement==="center"?j>0?"left":"right":G[a.crossPlacement];if(X){let lt=rt(`${a.placement} ${X}`),pt=tt(e,c,l,lt,m,h,r,d,f,L,u),Ot=E?0:Q(p,pt[p],l[R],c,u,s,r);Math.abs(Ot)<Math.abs(j)&&(a=lt,P=pt);}}}let I="bottom";a.axis==="top"?a.placement==="top"?I="top":a.placement==="bottom"&&(I="bottom"):a.crossAxis==="top"&&(a.crossPlacement==="top"?I="bottom":a.crossPlacement==="bottom"&&(I="top"));let V=_==="anchor"&&C&&(a.placement==="top"||a.placement==="bottom")&&a.crossPlacement!=="center",z=V||E?0:Q(p,P[p],l[R],c,u,s,r);P[p]+=z;let x=E||!D?void 0:zt(P,c,r,d,n,s,l.height,I,u,w,b);y&&(x==null||y<x)&&(x=y),l.height=x!=null?Math.min(l.height,x):l.height,P=tt(e,c,l,a,S,h,r,d,f,L,u),z=V||E?0:Q(p,P[p],l[R],c,u,s,r),P[p]+=z;let v={},g=e[p]-P[p]-n[B[p]],H=g+.5*e[R],F=f/2+L,W=B[p]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),N=l[R]-W-f/2-L,ot=e[p]+f/2-(P[p]+n[B[p]]),Ht=e[p]+e[R]-f/2-(P[p]+n[B[p]]),Lt=a$2(H,ot,Ht);v[p]=a$2(Lt,F,N),{placement:M,crossPlacement:T}=a,f?g=v[p]:T==="right"?g+=e[R]:T==="center"&&(g+=e[R]/2);let mt=M==="left"||M==="top"?l[A]:0,Ct={x:M==="top"||M==="bottom"?g:mt,y:M==="left"||M==="right"?g:mt};return {position:P,maxHeight:x,arrowOffsetLeft:v.left,arrowOffsetTop:v.top,placement:M,triggerAnchorPoint:Ct}}function Tt(t){let{placement:e,targetNode:l,overlayNode:o,scrollNode:n,padding:s,shouldFlip:i,boundaryElement:c,boundaryAxis:u="both",horizontalBoundaryBehavior:r="shift",offset:m,crossOffset:h$1,maxHeight:d,arrowSize:y=0,arrowBoundaryOffset:f=0,targetRect:L}=t,w=a(o),b=b$1(o),E=It(o),C=o instanceof b.HTMLElement?Bt(o):w.documentElement,D=C===w.documentElement,_=b.getComputedStyle(C).position,a$1=!!_&&_!=="static",A=D?Z(l,false,L):Et(l,C,false,L);if(!D){let{marginTop:F,marginLeft:W}=b.getComputedStyle(l);A.top+=parseInt(F,10)||0,A.left+=parseInt(W,10)||0;}let p=Z(o,true),R=St(o);p.width+=(R.left??0)+(R.right??0),p.height+=(R.top??0)+(R.bottom??0);let M=vt(n),T=c===null,P=c??w.body,S=!T&&u!=="vertical",k=!T&&u!=="horizontal",I=st(P,E),V=S?I:xt("left",w,E),z=k?I:xt("top",w,E),x={...z,left:V.left,width:V.width,totalWidth:V.totalWidth,scroll:{top:z.scroll.top,left:V.scroll.left}},v=st(C,E);a$1&&!D&&(x.top-=v.top,x.left-=v.left,v.top=0,v.left=0);let g=T?{top:0,left:0,width:0,height:0}:Et(P,C,false),H=!T&&h(P,C)&&C!==P;return Ft(e,A,p,M,R,s,i,x,v,g,m,h$1,a$1,d,y,f,H,E,T,S,k,r)}function et(t,e){let l=b$1(t),{top:o,left:n,width:s,height:i}=t.getBoundingClientRect();return e&&t instanceof l.HTMLElement&&(s=t.offsetWidth,i=t.offsetHeight),{top:o,left:n,width:s,height:i}}function Z(t,e,l){let o=a(t),{top:n,left:s,width:i,height:c}=l||et(t,e),{scrollTop:u,scrollLeft:r,clientTop:m,clientLeft:h}=o.documentElement;return {top:n+u-m,left:s+r-h,width:i,height:c}}function Et(t,e,l,o){let n=b$1(t),s=n.getComputedStyle(t),i;if(s.position==="fixed")i=o||et(t,l);else {i=Z(t,l,o);let c=Z(e,l),u=n.getComputedStyle(e);c.top+=(parseInt(u.borderTopWidth,10)||0)-e.scrollTop,c.left+=(parseInt(u.borderLeftWidth,10)||0)-e.scrollLeft,i.top-=c.top,i.left-=c.left;}return i.top-=parseInt(s.marginTop,10)||0,i.left-=parseInt(s.marginLeft,10)||0,i}function Bt(t){let e=a(t),l=b$1(t),o=t.offsetParent;if(o&&o===e.body&&l.getComputedStyle(o).position==="static"&&!At(o)&&(o=e.documentElement),o==null)for(o=t.parentElement;o&&!At(o);)o=o.parentElement;return o||e.documentElement}function At(t){let l=b$1(t).getComputedStyle(t);return l.transform!=="none"||/transform|perspective/.test(l.willChange)||l.filter!=="none"||l.contain==="paint"||"backdropFilter"in l&&l.backdropFilter!=="none"||"WebkitBackdropFilter"in l&&l.WebkitBackdropFilter!=="none"}function at(t){return typeof document>"u"?null:b$1(t).visualViewport??null}function oe(t){let{direction:e$2}=b(),{arrowSize:l$1,targetRef:o,overlayRef:n,arrowRef:s,scrollRef:i$1=n,placement:c="bottom",containerPadding:u=12,shouldFlip:r=true,boundaryElement:m,boundaryAxis:h$1="both",horizontalBoundaryBehavior:d="shift",offset:y=0,crossOffset:f=0,shouldUpdatePosition:L=true,shouldCloseOnScroll:w=true,isOpen:b$3=true,onClose:E,maxHeight:C,arrowBoundaryOffset:D=0,getTargetRect:_}=t,a$2=m??(typeof document<"u"?o.current?.ownerDocument.body??n.current?.ownerDocument.body??document.body:void 0),[A,p]=useState(null),R=[L,c,n.current,o.current,s?.current,i$1.current,u,r,a$2,h$1,d,y,f,b$3,e$2,C,D,l$1],M=useRef(at(n.current)?.scale);useEffect(()=>{b$3&&(M.current=at(n.current)?.scale);},[b$3,n]);let T=useCallback(()=>{if(L===false||!b$3||!n.current||!o.current||a$2===void 0||at(n.current)?.scale!==M.current)return;let z=a(n.current),x=i(z),v=b$1(z.body),g=null;if(i$1.current&&h(i$1.current,x)){let W=x?.getBoundingClientRect(),N=i$1.current.getBoundingClientRect();g={type:"top",offset:(W?.top??0)-N.top},g.offset>N.height/2&&(g.type="bottom",g.offset=(W?.bottom??0)-N.bottom);}let H=n.current;!C&&n.current&&(H.style.top="0px",H.style.bottom="",H.style.maxHeight=(v.visualViewport?.height??v.innerHeight)+"px");let F=Tt({placement:Vt(c,e$2),overlayNode:n.current,targetNode:o.current,scrollNode:i$1.current||n.current,padding:u,shouldFlip:r,boundaryElement:a$2,boundaryAxis:h$1,horizontalBoundaryBehavior:d,offset:y,crossOffset:f,maxHeight:C,arrowSize:l$1??(s?.current?et(s.current,true).width:0),arrowBoundaryOffset:D,targetRect:_?.(o.current)});if(F.position){if(H.style.top="",H.style.bottom="",H.style.left="",H.style.right="",Object.keys(F.position).forEach(W=>H.style[W]=F.position[W]+"px"),H.style.maxHeight=F.maxHeight!=null?F.maxHeight+"px":"",g&&x&&i$1.current){let W=x.getBoundingClientRect(),N=i$1.current.getBoundingClientRect(),ot=W[g.type]-N[g.type];i$1.current.scrollTop+=ot-g.offset;}p(F);}},R);a$1(T,R);let P=a$2?b$1(a$2):o.current?b$1(o.current):n.current?b$1(n.current):void 0;Dt(T,P);let S=useRef(null),k=useCallback(()=>{S.current!==null&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{S.current=null,T();});},[T]);useEffect(()=>()=>{S.current!==null&&cancelAnimationFrame(S.current);},[]),e({ref:n,onResize:k}),e({ref:o,onResize:k});let I=useRef(false);a$1(()=>{let z,x=()=>{I.current=true,clearTimeout(z),z=setTimeout(()=>{I.current=false;},500),T();},g=b$1(n.current).visualViewport,H=()=>{I.current&&x();};g?.addEventListener("resize",x),g?.addEventListener("scroll",H);let F=e$1(l(window),"scroll",H);return ()=>{g?.removeEventListener("resize",x),g?.removeEventListener("scroll",H),F();}},[T]);let V=useCallback(()=>{I.current||E?.();},[E,I]);return b$2({triggerRef:o,isOpen:b$3,onClose:w?E&&V:null}),{overlayProps:{style:{position:A?"absolute":"fixed",top:A?void 0:0,left:A?void 0:0,zIndex:1e5,...A?.position,maxHeight:A==null?"100vh":A.maxHeight!=null?`${A.maxHeight}px`:""}},placement:A?.placement??null,triggerAnchorPoint:A?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A?.arrowOffsetLeft,top:A?.arrowOffsetTop}},updatePosition:T}}function Dt(t,e=window){a$1(()=>(e?.addEventListener("resize",t,false),()=>{e?.removeEventListener("resize",t,false);}),[t,e]);}function Vt(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}export{oe as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-4S4GGUSH.mjs';import {j,i}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,v as v$1}from'./chunk-PPHSLODC.mjs';import {b as b$1,c as c$1}from'./chunk-3WKDIXCM.mjs';import {b}from'./chunk-SD43KVTU.mjs';import n,{forwardRef,useEffect,useRef,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var h=n.createContext(null);function v(r){let t=useContext(h)||{};v$1(t,r);let{ref:l,...s}=t;return s}var W=n.forwardRef(function(t,l){let{children:s,...a$1}=t,c=a(l),o={...a$1,ref:c};return jsx(h.Provider,{value:o,children:s})});function w(r,t){let{focusProps:l}=a$1(r),{keyboardProps:s}=j(r),a=c$1(l,s),c=v(t),o=r.isDisabled?{}:c,e=useRef(r.autoFocus);useEffect(()=>{e.current&&t.current&&i(t.current),e.current=false;},[t]);let b=r.excludeFromTabOrder?-1:0;return r.isDisabled&&(b=void 0),{focusableProps:c$1({...a,tabIndex:b},o)}}var $=forwardRef(({children:r,...t},l)=>{l=a(l);let{focusableProps:s}=w(t,l),a$1=n.Children.only(r);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let o=l.current;if(!o||!(o instanceof b(o).Element)){console.error("<Focusable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!c(o,{skipVisibilityCheck:true})){console.warn("<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(o.localName!=="button"&&o.localName!=="input"&&o.localName!=="select"&&o.localName!=="textarea"&&o.localName!=="a"&&o.localName!=="area"&&o.localName!=="summary"&&o.localName!=="img"&&o.localName!=="svg"){let e=o.getAttribute("role");e?e!=="application"&&e!=="button"&&e!=="checkbox"&&e!=="combobox"&&e!=="gridcell"&&e!=="link"&&e!=="menuitem"&&e!=="menuitemcheckbox"&&e!=="menuitemradio"&&e!=="option"&&e!=="radio"&&e!=="searchbox"&&e!=="separator"&&e!=="slider"&&e!=="spinbutton"&&e!=="switch"&&e!=="tab"&&e!=="tabpanel"&&e!=="textbox"&&e!=="treeitem"&&e!=="img"&&e!=="meter"&&e!=="progressbar"&&console.warn(`<Focusable> child must have an interactive ARIA role. Got "${e}".`):console.warn("<Focusable> child must have an interactive ARIA role.");}},[l,t.isDisabled]);let c$2=parseInt(n.version,10)<19?a$1.ref:a$1.props.ref;return n.cloneElement(a$1,{...c$1(s,a$1.props),ref:b$1(c$2,l)})});export{h as a,W as b,w as c,$ as d};
@@ -1,4 +1,4 @@
1
- import r from'dompurify';/**
1
+ /**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,4 +7,4 @@ import r from'dompurify';/**
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var s=t=>t.charAt(0).toUpperCase()+t.slice(1),i=t=>new DOMParser().parseFromString(r.sanitize(t),"text/html").body.textContent||"";export{s as a,i as b};
10
+ function n(e,t){return e===void 0||typeof e=="string"?void 0:{type:"button",disabled:t}}export{n as a};
@@ -0,0 +1,10 @@
1
+ import {e}from'./chunk-FCKJCFMD.mjs';import {a}from'./chunk-66CUIXA6.mjs';/**
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 s(n){if(n===void 0)return null;try{return e(n)}catch{return null}}function l(n){return n.toString(16).padStart(2,"0")}function m(n,r){a(r>=0&&r<=100,"Percent must be between 0 and 100");let t=e(n).toFormat("rgb"),o=t.getChannelValue("red"),u=t.getChannelValue("green"),a$1=t.getChannelValue("blue"),g=Math.round(o+(255-o)*r/100),c=Math.round(u+(255-u)*r/100),d=Math.round(a$1+(255-a$1)*r/100);return `#${l(g)}${l(c)}${l(d)}`}function C(n,r){if(n===r)return true;let t=s(n),o=s(r);return t===null||o===null?false:t.toString("rgba")===o.toString("rgba")}export{m as a,C as b};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-4P247R4V.mjs';import {b,a,g,d,h}from'./chunk-SD43KVTU.mjs';/**
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=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function H(i){return i.dataset.liveAnnouncer==="true"||i.dataset.reactAriaTopLayer!==void 0}var E=new WeakMap,n=[];function _(i,l){let s=b(i?.[0]),O=l instanceof s.Element?{root:l}:l,b$1=O?.root??a(i?.[0]).body,g$1=O?.shouldUseInert&&C,d$1=new Set(i),a$2=new Set,y=e=>g$1&&e instanceof s.HTMLElement?e.inert:e.getAttribute("aria-hidden")==="true",L=(e,t)=>{g$1&&e instanceof s.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof s.HTMLElement&&(e.inert=false));},h$1=new Set;if(g()){let e=b$1.getRootNode();for(let t of i){let r=t.getRootNode();for(;d(r)&&r!==e;)h$1.add(r),r=r.host.getRootNode();}}let v=e=>{for(let o of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))d$1.add(o);let t=o=>{if(a$2.has(o)||d$1.has(o)||o.parentElement&&a$2.has(o.parentElement)&&o.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let A of d$1)if(h(o,A))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=a$1(a(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),f=t(e);if(f===NodeFilter.FILTER_ACCEPT&&T(e),f!==NodeFilter.FILTER_REJECT){let o=r.nextNode();for(;o!=null;)T(o),o=r.nextNode();}},T=e=>{let t=E.get(e)??0;y(e)&&t===0||(t===0&&L(e,true),a$2.add(e),E.set(e,t+1));};n.length&&n[n.length-1].disconnect(),v(b$1);let c=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"){if(t.target.isConnected&&![...d$1,...a$2].some(r=>h(r,t.target)))for(let r of t.addedNodes)(r instanceof s.HTMLElement||r instanceof s.SVGElement)&&H(r)?d$1.add(r):r instanceof s.Element&&v(r);if(g()){for(let r of h$1)if(!r.isConnected){c.disconnect();break}}}});c.observe(b$1,{childList:true,subtree:true});let m=new Map;if(g())for(let e of h$1){let t=new MutationObserver(r=>{for(let f of r)if(f.type==="childList"){if(f.target.isConnected&&![...d$1,...a$2].some(o=>h(o,f.target)))for(let o of f.addedNodes)(o instanceof s.HTMLElement||o instanceof s.SVGElement)&&H(o)?d$1.add(o):o instanceof s.Element&&v(o);if(g()){for(let o of h$1)if(!o.isConnected){c.disconnect();break}}}});t.observe(e,{childList:true,subtree:true}),m.set(t,e);}let w={visibleNodes:d$1,hiddenNodes:a$2,observe(){c.observe(b$1,{childList:true,subtree:true});for(let[e,t]of m)e.observe(t,{childList:true,subtree:true});},disconnect(){c.disconnect();for(let e of m.keys())e.disconnect();}};return n.push(w),()=>{if(c.disconnect(),g())for(let e of m.keys())e.disconnect();for(let e of a$2){let t=E.get(e);t!=null&&(t===1?(L(e,false),E.delete(e)):E.set(e,t-1));}w===n[n.length-1]?(n.pop(),n.length&&n[n.length-1].observe()):n.splice(n.indexOf(w),1);}}function x(i){let l=n[n.length-1];if(l&&!l.visibleNodes.has(i))return l.visibleNodes.add(i),()=>{l.visibleNodes.delete(i);}}export{_ as a,x as b};
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-NQO6OQT6.mjs';import {a as a$1}from'./chunk-UEDBY5JI.mjs';/**
1
+ import {a}from'./chunk-IM3E5JL4.mjs';import {a as a$1}from'./chunk-MHAPHPNN.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {b as b$1}from'./chunk-4EAXDHSV.mjs';import {a as a$1}from'./chunk-2UUKKXBD.mjs';import {a}from'./chunk-KX7WG3L4.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {MotionConfig,MotionGlobalConfig}from'motion/react';export{MotionGlobalConfig as f}from'motion/react';import {lightTheme,themes,themeVars}from'@baseline-ui/tokens';import {assignInlineVars}from'@vanilla-extract/dynamic';import J,{createContext,useMemo,useEffect,useState}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 v(r=typeof window>"u"?void 0:window){let[p,s]=useState("light"),[a,i]=useState(false),[u,n]=useState(false),[f,m]=useState(false);return useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-color-scheme: dark)"),t=o=>{s(o.matches?"dark":"light");};return s(e.matches?"dark":"light"),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-contrast: more)"),t=o=>{i(o.matches);};return i(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-reduced-motion: reduce)"),t=o=>{n(o.matches);};return n(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-reduced-transparency: reduce)"),t=o=>{m(o.matches);};return m(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),{colorScheme:p,highContrast:a,reducedMotion:u,transparency:f}}var k=createContext({theme:lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true});var A="var(--hj25q10)";var h={LIGHT:themes.base.light,DARK:themes.base.dark},R=J.forwardRef(({theme:r="system",children:p,setTheme:s,onThemeChange:a$3,className:i,style:u,UNSAFE_domProps:n,"data-block-id":f,"data-block-class":m,reducedMotion:e="user",shouldHandleVirtualKeyboard:t=true,minTouchTargetSize:o=24},U)=>{let{direction:P}=b(),{colorScheme:g,reducedMotion:V,highContrast:D,transparency:G}=v(),{name:K,...l}=useMemo(()=>{switch(r){case "system":return g==="light"?h.LIGHT:h.DARK;case "light":return h.LIGHT;case "dark":return h.DARK;default:return r}},[g,r]),N=a(),z={"data-theme":K,"data-block-id":f,"data-block-class":m,"data-reduced-motion":e==="user"?V:e==="always","data-high-contrast":D,"data-transparency":G,"data-device":N},B=useMemo(()=>({theme:l,setTheme:y=>{s?.(y),a$3?.(y);},shouldHandleVirtualKeyboard:t}),[l,s,a$3,t]);return useEffect(()=>{s&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[s]),jsx(k.Provider,{value:B,children:jsx(MotionConfig,{reducedMotion:e,children:jsx("div",{...c(n,z),className:a$2(b$1,"BaselineUI-ThemeProvider",i),style:{...assignInlineVars(themeVars,l),...assignInlineVars({[a$1]:P==="rtl"?"-1":"1",[A]:`${o}px`}),...u},dir:P,ref:U,children:p})})})});R.displayName="ThemeProvider";function ve(){MotionGlobalConfig.skipAnimations=true;}function Te(){MotionGlobalConfig.skipAnimations=false;}export{v as a,k as b,R as c,ve as d,Te as e};
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-EX2LI2CV.mjs';import {b as b$1}from'./chunk-KUEDQO7P.mjs';import {a as a$2}from'./chunk-YS3Y5KGV.mjs';import {b}from'./chunk-YB3KW7JC.mjs';import {a}from'./chunk-XPISSX5R.mjs';/**
1
+ import {a as a$1}from'./chunk-7SQRBY7N.mjs';import {b as b$1}from'./chunk-GMALMQWI.mjs';import {a as a$2}from'./chunk-SGZWUG3H.mjs';import {b}from'./chunk-4S4GGUSH.mjs';import {a}from'./chunk-XPISSX5R.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-QSSCSN5S.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {c}from'./chunk-JDLUGVXG.mjs';/**
1
+ import {a}from'./chunk-EGLD5KVP.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {c}from'./chunk-ETM4MNG4.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {i}from'./chunk-MBRNO6IW.mjs';import {a as a$1}from'./chunk-VDUFLHKK.mjs';import {a as a$5}from'./chunk-HPUUQKKH.mjs';import {a as a$2}from'./chunk-SGZWUG3H.mjs';import {a as a$3}from'./chunk-STMDFIUL.mjs';import {a as a$4}from'./chunk-B3EZOXNU.mjs';import {c,b,a as a$6}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-SD43KVTU.mjs';import R,{useState,useEffect,useContext}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function M(t,e){let o=t?.getRootNode();return (o&&"getElementById"in o?o:a(t)).getElementById(e)}function H(t,e){let o=e.split(/\s+/).filter(Boolean).map(n=>M(t,n)?.textContent).filter(n=>!!n);return o.length>0?o.join(" "):void 0}function d(t,e,o){let{isSelected:n}=e,{isPressed:s,buttonProps:r}=a$2({...t,onPress:a$6(e.toggle,t.onPress)},o);return {isPressed:s,isSelected:n,isDisabled:t.isDisabled||false,buttonProps:c(r,{"aria-pressed":n})}}function Z({tooltip:t,"aria-label":e,"aria-labelledby":o},n){let[s,r]=useState(e||"");useEffect(()=>{o?r(H(n.current,o)??e??""):e&&r(e);},[o,n,e]);let{tooltipProps:i}=a$1({label:s,tooltip:t});return {tooltipProps:i}}var _=t=>{let e=R.useRef(null),{ref:o,...n}=useContext(i),{buttonProps:s,isPressed:r}=a$2(c(t,n),e),{isFocusVisible:i$1,isFocused:l,focusProps:p}=a$3(),{hoverProps:c$1,isHovered:a}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(a$5(t.elementType,t.isDisabled),s,p,c$1),isPressed:r,ref:b(e,o||null),isFocusVisible:i$1,isFocused:l,isHovered:a,uiStateOptions:{isHovered:a,isFocused:l,isPressed:r,isDisabled:t.isDisabled,isFocusVisible:i$1}}},$=(t,e)=>{let o=R.useRef(null),{ref:n,...s}=useContext(i),{buttonProps:r,isPressed:i$1}=d(c(t,s),e,o);(r.role==="radio"||r.role==="checkbox")&&(r["aria-pressed"]=void 0);let{isFocusVisible:l,isFocused:p,focusProps:c$1}=a$3(),{hoverProps:a,isHovered:A}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(a$5(t.elementType,t.isDisabled),r,c$1,a),isPressed:i$1,ref:b(o,n||null),isFocusVisible:l,isFocused:p,isHovered:A,uiStateOptions:{isHovered:A,isFocused:p,isPressed:i$1,isDisabled:t.isDisabled,isFocusVisible:l,isSelected:e.isSelected}}};export{M as a,H as b,Z as c,_ as d,$ as e};
@@ -0,0 +1,10 @@
1
+ import {a as a$6}from'./chunk-3M3WJHOI.mjs';import {a as a$e}from'./chunk-LBHZV4BO.mjs';import {k,j,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-6GMU63H2.mjs';import {b as b$3,a as a$g,q as q$1,n,c as c$4}from'./chunk-OMWMNUTI.mjs';import {p}from'./chunk-YQHHE5AT.mjs';import {a as a$b}from'./chunk-AMW7LGCF.mjs';import {a as a$9}from'./chunk-X5ORCNAU.mjs';import {b as b$6}from'./chunk-XAM3AXXK.mjs';import {b as b$7}from'./chunk-QMV2O57M.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-PLZ6ZFEO.mjs';import {a as a$d}from'./chunk-O6FPWOHR.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-7MLFM55C.mjs';import {a as a$u}from'./chunk-6QQEK5I6.mjs';import {d as d$3}from'./chunk-W6QO7FPZ.mjs';import {b as b$4}from'./chunk-AFOW62QN.mjs';import {a as a$7}from'./chunk-O7XK2WIX.mjs';import {a as a$j}from'./chunk-VXZT2JR2.mjs';import {a as a$a}from'./chunk-BA5OA5DY.mjs';import {a as a$l}from'./chunk-USMC34OO.mjs';import {a as a$s}from'./chunk-K5RYVERS.mjs';import {a as a$p}from'./chunk-IROFSPEN.mjs';import {a as a$i}from'./chunk-VDUFLHKK.mjs';import {a as a$q}from'./chunk-22VRCVTH.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$r}from'./chunk-FPM5UJRF.mjs';import {a as a$t}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$1,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$2}from'./chunk-SD43KVTU.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import W,{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 ue(t,e,a){let{keyboardDelegate:n,isDisabled:f,isRequired:y,name:c,form:S,validationBehavior:i="aria"}=t,x=a$l({usage:"search",sensitivity:"base"}),l=useMemo(()=>n||new b$6(e.collection,e.disabledKeys,a,x),[n,e.collection,e.disabledKeys,x,a]),{menuTriggerProps:m,menuProps:s}=c$4({isDisabled:f,type:"listbox"},e,a),{keyboardProps:d}=j$1({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:O,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 B=a$n(t,{labelable:true}),P=c$1(o,m,r),C=c$3();return $.set(e,{isDisabled:f,isRequired:y,name:c,form:S,validationBehavior:i}),{labelProps:{...O,onClick:()=>{t.isDisabled||(a.current?.focus(),d$2("keyboard"));}},triggerProps:c$1(B,{...P,isDisabled:f,onKeyDown:a$o(P.onKeyDown,d.onKeyDown),onKeyUp:d.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:c,label:t.label,state:e,triggerRef:a,form:S}}}function vt(t,e,a){let n=$.get(e)||{},{autoComplete:f,name:y=n.name,form:c=n.form,isDisabled:S=n.isDisabled}=t,{validationBehavior:i,isRequired:x}=n,{visuallyHiddenProps:l}=a$s({style:{position:"fixed",top:0,left:0}});a$t(t.selectRef,e.defaultValue,e.setValue),a$u({validationBehavior:i,focus:()=>a.current?.focus()},e,t.selectRef);let m=e.setValue,s=useCallback(d=>{let o=j$2(d);o.multiple?m(Array.from(o.selectedOptions,g=>g.value)):m(d.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:i==="native"&&x,name:y,form:c,value:e.value??"",onChange:s,onInput:s}}}function me(t){let{state:e,triggerRef:a,label:n,name:f,form:y,isDisabled:c}=t,S=useRef(null),i=useRef(null),{containerProps:x,selectProps:l}=vt({...t,selectRef:e.collection.size<=300?S:i},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:[n,jsxs("select",{...l,ref:S,children:[jsx("option",{value:"",label:"\xA0",children:"\xA0"}),[...e.collection.getKeys()].map(s=>{let d=e.collection.getItem(s);if(d&&d.type==="item")return jsx("option",{value:d.key,children:d.textValue},d.key)}),e.collection.size===0&&f&&m.map((s,d)=>jsx("option",{value:s??""},d))]})]})});if(f){let s=$.get(e)||{},{validationBehavior:d}=s;m.length===0&&(m=[null]);let o=m.map((g,b)=>{let T={type:"hidden",autoComplete:l.autoComplete,name:f,form:y,disabled:c,value:g??""};return d==="native"?jsx("input",{...T,ref:b===0?i:null,style:{display:"none"},type:"text",required:b===0?l.required:false,onChange:()=>{}},b):jsx("input",{...T,ref:b===0?i:null},b)});return jsx(Fragment,{children:o})}return null}function fe(t){let{selectionMode:e="single",shouldCloseOnSelect:a=e==="single"}=t,n=a$q(t),[f,y]=useState(null),c=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]),[i,x]=a$r(S,c,t.onChange),l=e==="single"&&Array.isArray(i)?i[0]:i,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(()=>It(l),[l]),onSelectionChange:r=>{if(r!=="all"){if(e==="single"){let M=r.values().next().value??null;m(M);}else m([...r]);a&&n.close(),g.commitValidation();}}}),d=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),[O]=useState(l);return {...g,...s,...n,value:l,defaultValue:c??O,setValue:m,selectedKey:d,setSelectedKey:m,selectedItem:o[0]??null,selectedItems:o,defaultSelectedKey:t.defaultSelectedKey??(t.selectionMode==="single"?O:null),focusStrategy:f,open(r=null){(s.collection.size!==0||t.allowsEmptyCollection)&&(y(r),n.open());},toggle(r=null){(s.collection.size!==0||t.allowsEmptyCollection)&&(y(r),n.toggle());},isFocused:b,setFocused:T}}function It(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}var q=W.forwardRef(({variant:t,isOpen:e,validationState:a$9="valid",valueProps:n,className:f,style:y,value:c$2,"data-block-id":S,"data-block-class":i$1,fallbackValue:x,selectionMode:l="single",onRemove:m,maxCount:s=2,moreLabel:d$1,...o},g$1)=>{let{formatMessage:b$2}=b(),T=c$2?.[0]??null,O=T?.label??x,r=T?.icon??null,M=W.useRef(null),p=!!(l==="multiple"&&c$2&&c$2?.length>0),{buttonProps:B,isPressed:P}=a({...o,elementType:"div",isDisabled:o.isDisabled||o.isReadOnly},M),{hoverProps:C,isHovered:u}=a$1({isDisabled:o.isDisabled}),{focusProps:D,isFocused:j$1,isFocusVisible:I}=a$2(),E=a$3({isReadOnly:o.isReadOnly,validationState:a$9});o.isReadOnly&&(B.disabled=false);let L=a$4({"data-disabled":o.isDisabled,"data-readonly":o.isReadOnly,"data-focused":j$1,"data-focus-visible":I,"data-hovered":u,"data-pressed":P,"data-open":e,"data-block-id":S,"data-block-class":i$1}),F=o["aria-labelledby"]?.split(/\s+/).filter(R=>R&&R!==n?.id).join(" ")||void 0,ne=useCallback(()=>{a$5(Array.isArray(c$2),"value must be an array");let R=c$2.slice(0,s),k$1=c$2.slice(s),X=[...R,...k$1.length>0?[{label:(typeof d$1=="function"?d$1({count:k$1.length}):d$1)??b$2(Vt.more,{count:k$1.length}),id:"remaining-value"}]:[]];return jsx(a$6,{items:X,onRemove:o.isReadOnly?void 0:_=>{_.has("remaining-value")?m?.(new Set(k$1.map(N=>N.id))):m?.(_);},"aria-labelledby":F,className:k,isDisabled:o.isDisabled})},[c$2,s,b$2,d$1,F,o.isDisabled,m,o.isReadOnly]),U=l==="multiple";return jsxs("div",{...c$1(U?Object.fromEntries(Object.entries(B).filter(([R])=>R.startsWith("on"))):c$1(B,D),C,L),ref:U?g$1:b$1(g$1,M),className:a$8(i({isFocused:I,isDisabled:!!o.isDisabled,isOpen:e,isHovered:u,variant:t,isReadOnly:!!o.isReadOnly,areTagsVisible:p}),h({variant:t,isHovered:u,isFocused:I,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"&&c$2&&c$2.length>0?jsxs(Fragment,{children:[jsx("span",{...n,hidden:true,"aria-label":c$2.map(R=>R.label).join(", ")}),ne()]}):jsxs("span",{className:k,children:[r?jsx(r,{size:24}):null,jsx("span",{...n,children:O})]}),E?jsx("span",{"aria-hidden":true,className:a$8(d({validationState:a$9,isReadOnly:!!o.isReadOnly}),j),children:jsx(E,{size:16})}):null]}),jsx("div",{...U?{...c$1(B,D),ref:M}:{},className:g,children:jsx(CaretDownIcon,{size:8,className:c({isOpen:e})})})]})});q.displayName="SelectButton";var Vt=c$2({more:{id:"bui.select.more",defaultMessage:"+{count} more"}});var Tt=W.createContext({state:null,popoverAnchorRef:null}),Se=W.forwardRef(({className:t,style:e$2,labelPosition:a="top",variant:n="primary","data-block-id":f$2,"data-block-class":y,onTriggerPress:c,placement:S="bottom start",triggerClassName:i,triggerStyle:x,state:l,optionStyle:m,optionClassName:s,showSectionHeader:d,hideSelectAll:o,hideClear:g,clearLabel:b$1,searchLabel:T,selectAllLabel:O,moreLabel:r,renderTrigger:M=({buttonProps:P,selectedValue:C,valueProps:u,isOpen:D,ref:j,selectionMode:I,onRemove:E,maxCount:L})=>jsx(q,{...P,className:i,style:x,isOpen:D,isReadOnly:p$1.isReadOnly,ref:j,variant:n,validationState:p$1.validationState,valueProps:u,value:C,fallbackValue:p$1.placeholder,selectionMode:I,onRemove:E,maxCount:L,moreLabel:r}),...p$1},B)=>{let{popoverAnchorRef:P}=useContext(Tt),C=W.useRef(null),{formatMessage:u}=b(),D=T??u(ye.search),j=useContext(a$9),{isVirtualized:I}=useContext(p),E=a$a(p$1.portalContainer),{labelProps:L,triggerProps:F,valueProps:ne,menuProps:U,descriptionProps:R,errorMessageProps:k}=ue({...a$b(p$1),validationState:p$1.validationState==="error"?"invalid":"valid"},l,C),X=c$3(),_=a$c(p$1)==="warningMessage",N=b$2({...p$1,descriptionProps:R,errorMessageProps:k,warningMessageProps:{id:X},labelPosition:a}),Kt=w=>{L.onClick?.(w),!(p$1.isDisabled||!F.id)&&a$p(C.current,F.id)?.focus();},Ot=l.selectedItems?.map(w=>w.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:B,children:[p$1.label||N?jsxs("div",{className:f({labelPosition:a,hasMessage:!!N}),children:[p$1.label?jsx("div",{...L,onClick:Kt,className:a$8(e,"BaselineUI-Select-Label"),children:p$1.label}):null,a==="start"&&N]}):null,jsx(me,{state:l,triggerRef:C,isDisabled:p$1.isDisabled,label:p$1.label,name:p$1.name}),M({buttonProps:c$1({onPressStart:c,"aria-labelledby":L.id},F,_?{"aria-describedby":[F["aria-describedby"],X].filter(Boolean).join(" ")}:null),selectedValue:Ot,valueProps:ne,isOpen:l.isOpen,ref:C,selectionMode:p$1.selectionMode??"single",onRemove:w=>{l.selectionManager.setSelectedKeys(new Set([...l.selectionManager.selectedKeys].filter(ie=>!w.has(ie))));},maxCount:p$1.maxCount??2}),a==="top"&&N]}),l?jsx(b$3.Provider,{value:l,children:jsx(a$d,{placement:S,state:l,portalContainer:E,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:[j?jsxs(Fragment,{children:[jsx(a$e,{size:"sm","aria-label":D,placeholder:D,className:a$8(h$1,"BaselineUI-Select-SearchInput"),autoFocus:true}),jsx(a$f,{})]}):null,jsx(a$g.Provider,{value:U,children:jsx(q$1,{label:p$1.label,escapeKeyBehavior:"none",className:e$1({isVirtualized:I}),optionStyle:m,optionClassName:s,showSectionHeader:d})}),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:O??u(ye.selectAll),"data-testid":"select-all-button",onPress:()=>{if(l.selectionManager.isSelectAll)return;let ie=[...l.collection.getKeys()].filter(ge=>!l.selectionManager.disabledKeys.has(ge)&&l.selectionManager.canSelectItem(ge));l.selectionManager.setSelectedKeys(new Set(ie));},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 Ct=W.forwardRef(({collection:t,...e},a)=>{let n=fe({...e,collection:t,validationState:e.validationState==="error"?"invalid":"valid",children:void 0});return jsx(Se,{...e,ref:a,state:n})});Ct.displayName="SelectStandalone";var oe=W.forwardRef(({optionStyle:t,optionClassName:e,showSectionHeader:a,...n$1},f)=>{let{state:y}=useContext(Tt);useEffect(()=>{a$5(y||n$1.items,"Select: A `state` that can be passed via context or `items` are required.");},[n$1.items,y]);let c=useMemo(()=>({renderOption:(S,i)=>jsx(n,{...i,item:S,selectionIcon:i.selectionMode==="multiple"?"checkbox":"checkmark"}),optionStyle:t,optionClassName:e,showSectionHeader:a}),[t,e,a]);return y?jsx(Se,{...n$1,optionStyle:t,optionClassName:e,showSectionHeader:a,ref:f,state:y}):jsx(a$h,{items:n$1.items,listBoxProps:c,children:S=>jsx(Ct,{collection:S,...n$1,ref:f})})});oe.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 ht=W.forwardRef(({className:t,style:e,variant:a,"data-block-id":n,"data-block-class":f,icon:y,tooltip:c=true,iconTooltip:S=true,...i},x)=>{let l=W.useRef(null),{tooltipProps:m}=a$i({label:i["aria-label"],tooltip:c}),s=useCallback(({buttonProps:d,selectedValue:o,valueProps:g,isOpen:b,ref:T})=>jsx(a$j,{...m,children:jsx(q,{...d,className:i.triggerClassName,style:i.triggerStyle,isOpen:b,isReadOnly:i.isReadOnly,ref:T,variant:a,validationState:i.validationState,value:o,fallbackValue:i.placeholder,valueProps:g,moreLabel:i.moreLabel})}),[i,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":n,"data-block-class":f,style:e,ref:b$1(x,l),children:[y?jsx(a$k,{icon:y,label:i["aria-label"],tooltip:S,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsx(oe,{...i,renderTrigger:s})]})});ht.displayName="IconSelect";export{fe as a,Tt as b,oe as c,ht as d};
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-CPSUI4IW.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import y from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$1}from'./chunk-GFTIEY5K.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import y from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {b}from'./chunk-YB3KW7JC.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {useState,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {b}from'./chunk-4S4GGUSH.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {useState,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a,b as b$1}from'./chunk-2RCST7ET.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {useMemo}from'react';/**
1
+ import {a,b as b$1}from'./chunk-YHI2PD3M.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {useMemo}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-7SKQUEHP.mjs';import {e}from'./chunk-IROFSPEN.mjs';import {a as a$2}from'./chunk-RSKKEGJZ.mjs';import {b,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';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 k=a({defaultClassName:"_5uw3kp0 oom8bs0 z9nup81",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true},"_5uw3kpa"],[{isSelected:true,isDisabled:true},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),v=a({defaultClassName:"_5uw3kpd _1yep5z6f9",variantClassNames:{isDisabled:{true:"_1yep5z611u"},isSelected:{true:"_1yep5z611w"}},defaultVariants:{},compoundVariants:[]});var z={sm:16,md:20,lg:24},w=C.forwardRef(({className:t,style:a,iconStart:i,size:u="md",elementType:s="button",variant:_="toolbar",...e$1},y)=>{let o=a$1(e$1),{buttonProps:h,isPressed:x,ref:B,isFocusVisible:l,isFocused:T,isHovered:n,uiStateOptions:p}=e({...e$1,elementType:s},o),S=a$2({"data-block-id":e$1["data-block-id"],"data-block-class":e$1["data-block-class"],"data-focused":T,"data-focus-visible":l,"data-disabled":e$1.isDisabled,"data-hovered":n,"data-pressed":x,"data-selected":o.isSelected});return jsxs(s,{...c(h,S),className:a$3(k({isHovered:n,isFocusVisible:l,isSelected:o.isSelected,size:u,isDisabled:e$1.isDisabled,variant:_}),"BaselineUI-ToggleButton",typeof t=="function"?t(p):t),style:typeof a=="function"?a(p):a,ref:b(B,y),children:[i?jsx(i,{size:z[u],className:v({isDisabled:e$1.isDisabled,isSelected:o.isSelected})}):null,e$1.label]})});w.displayName="ToggleButton";export{k as a,w as b};
@@ -1,4 +1,4 @@
1
- import {a as a$2,g as g$1,f}from'./chunk-DECHIERQ.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {useMemo,useCallback,useEffect}from'react';/**
1
+ import {a as a$2,g as g$1,f}from'./chunk-ZQOR4LCM.mjs';import {a as a$1}from'./chunk-FPM5UJRF.mjs';import {useMemo,useCallback,useEffect}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {d}from'./chunk-235S3EB7.mjs';import {p as p$1,m as m$1,e,t,a as a$2}from'./chunk-PPHSLODC.mjs';import {a as a$1}from'./chunk-3WKDIXCM.mjs';import {a,b as b$1,i,j as j$1,h}from'./chunk-SD43KVTU.mjs';import {b as b$2}from'./chunk-RMUV6NJJ.mjs';import {useState,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var l=null,p="keyboard",E=new Set,m=new Map,f=false,K=false,Y={Tab:true,Escape:true};function P(e,t){for(let n of E)n(e,t);}function q(e$1){return !(e$1.metaKey||!e()&&e$1.altKey||e$1.ctrlKey||e$1.key==="Control"||e$1.key==="Shift"||e$1.key==="Meta")}function L(e){f=true,!p$1.isOpening&&q(e)&&(l="keyboard",p="keyboard",P("keyboard",e));}function s(e){l="pointer",p="pointerType"in e?e.pointerType:"mouse",(e.type==="mousedown"||e.type==="pointerdown")&&(f=true,P("pointer",e));}function R(e){!p$1.isOpening&&m$1(e)&&(f=true,l="virtual",p="virtual");}function V(e){if(d)return;let t=j$1(e),n=b$1(t),o=a(t);if(t===n){K=true;return}t===o||!e.isTrusted||(!f&&!K&&(l="virtual",p="virtual",P("virtual",e)),f=false,K=false);}function B(){d||(f=false,K=true);}function N(e){let t=i(a(j$1(e)));queueMicrotask(()=>{i(a(j$1(e)))!==t&&J("keyboard");});}function M(e){if(typeof window>"u"||typeof document>"u")return;let t=b$1(e),n=a(e);if(m.get(t))return;let o=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:function(){f=true,o.apply(this,arguments);}}),n.addEventListener("keydown",L,true),n.addEventListener("keyup",L,true),n.addEventListener("click",R,true),n.addEventListener("invalid",N,true),t.addEventListener("focus",V,true),t.addEventListener("blur",B,false),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",s,true),n.addEventListener("pointermove",s,true),n.addEventListener("pointerup",s,true)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",s,true),n.addEventListener("mousemove",s,true),n.addEventListener("mouseup",s,true)),t.addEventListener("beforeunload",()=>{W(e);},{once:true}),m.set(t,{focus:o});}var W=(e,t)=>{let n=b$1(e),o=a(e);t&&o.removeEventListener("DOMContentLoaded",t),m.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:m.get(n).focus}),o.removeEventListener("keydown",L,true),o.removeEventListener("keyup",L,true),o.removeEventListener("click",R,true),o.removeEventListener("invalid",N,true),n.removeEventListener("focus",V,true),n.removeEventListener("blur",B,false),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",s,true),o.removeEventListener("pointermove",s,true),o.removeEventListener("pointerup",s,true)):process.env.NODE_ENV==="test"&&(o.removeEventListener("mousedown",s,true),o.removeEventListener("mousemove",s,true),o.removeEventListener("mouseup",s,true)),m.delete(n));};function z(e){let t=a(e),n;return t.readyState!=="loading"?M(e):(n=()=>{M(e);},t.addEventListener("DOMContentLoaded",n)),()=>W(e,n)}typeof document<"u"&&z();function _(){return l!=="pointer"}function j(){return l}function J(e){l=e,p=e==="pointer"?"mouse":e,P(e,null);}function Ee(){return p}function be(){M();let[e,t]=useState(l);return useEffect(()=>{let n=()=>{t(l);};return E.add(n),()=>{E.delete(n);}},[]),b$2()?null:e}var Q=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function X(e,t,n){let o=n?j$1(n):void 0,i$1=a(o),r=b$1(o),S=typeof r<"u"?r.HTMLInputElement:HTMLInputElement,g=typeof r<"u"?r.HTMLTextAreaElement:HTMLTextAreaElement,h=typeof r<"u"?r.HTMLElement:HTMLElement,a$1=typeof r<"u"?r.KeyboardEvent:KeyboardEvent,y=i(i$1);return e=e||y instanceof S&&!Q.has(y.type)||y instanceof g||y instanceof h&&y.isContentEditable,!(e&&t==="keyboard"&&n instanceof a$1&&!Y[n.key])}function ge(e={}){let{isTextInput:t,autoFocus:n}=e,[o,i]=useState(n||_());return Z(r=>{i(r);},[t],{isTextInput:t}),{isFocusVisible:o}}function Z(e,t,n){M(),useEffect(()=>{if(n?.enabled===false)return;let o=(i,r)=>{X(!!n?.isTextInput,i,r)&&e(_());};return E.add(o),()=>{E.delete(o);}},t);}function b(e){if(e)return t=>{let n=true,o={...t,preventDefault(){t.preventDefault();},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):n=true;},continuePropagation(){n=false,typeof t.continuePropagation=="function"&&t.continuePropagation();},isPropagationStopped(){return n}};e(o),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation();}}var ee=new Set(["shift","alt","control","meta","mod"]),te=["Alt","Control","Meta","Shift"];function ne(e$1){let t=new Set;return e$1.alt&&t.add("Alt"),e$1.shift&&t.add("Shift"),e$1.ctrl&&t.add("Control"),e$1.meta&&t.add("Meta"),e$1.mod&&t.add(e()?"Meta":"Control"),t}function oe(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function U(e){return te.filter(t=>e.has(t))}function re(e){let t=e.split("+").reduce((n,o)=>{let i=o.toLowerCase();return ee.has(i)?i==="shift"?n.shift=true:i==="alt"?n.alt=true:i==="control"?n.ctrl=true:i==="meta"?n.meta=true:i==="mod"&&(n.mod=true):n.key=o,n},{shift:false,alt:false,ctrl:false,meta:false,mod:false,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function G(e){return e.toLowerCase()}var ie={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function ae(e){let t=G(e),n=ie[t];return n??t}function se(e){let t=U(ne(e)),n=ae(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function ue(e){let t=U(oe(e)),n=G(e.key);return (t.length>0?`${t.join("+")}+`:"")+n}function $(e){let t=new Map;for(let[n,o]of Object.entries(e)){let i=re(n);t.set(se(i),o);}return n=>{let o=ue(n),i=t.get(o),r=i?.(n);r===void 0&&i!==void 0?r={shouldContinuePropagation:false,shouldPreventDefault:true}:typeof r=="boolean"&&(r={shouldContinuePropagation:!r,shouldPreventDefault:r}),r?.shouldPreventDefault&&n.preventDefault(),(!i||r?.shouldContinuePropagation)&&n.continuePropagation();}}function xe(e){let{shortcuts:t,allowRepeats:n=false,allowComposing:o=false}=e,i,r;if(t){let S=$(t),g=b(a=>{if(!h(a.currentTarget,j$1(a))){a.continuePropagation();return}if(a.nativeEvent?.repeat&&!n||a.nativeEvent?.isComposing&&!o){a.continuePropagation();return}S(a);}),h$1=b(a=>{if(!h(a.currentTarget,j$1(a))){a.continuePropagation();return}if(a.nativeEvent?.repeat&&!n||a.nativeEvent?.isComposing&&!o){a.continuePropagation();return}a.continuePropagation();});i=e.onKeyDown?a$1(e.onKeyDown,g):g,r=e.onKeyUp?a$1(e.onKeyUp,h$1):h$1;}else i=b(e.onKeyDown),r=b(e.onKeyUp);return {keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:r}}}function Ae(e){if(!e.isConnected)return;let t$1=a(e);if(j()==="virtual"){let n=i(t$1);t(()=>{let o=i(t$1);(o===n||o===t$1.body)&&e.isConnected&&a$2(e);},e);}else a$2(e);}export{z as a,_ as b,j as c,J as d,Ee as e,be as f,ge as g,Z as h,Ae as i,xe as j};
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-LZFTBNPW.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {CheckmarkCircleFilledIcon,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1}from'@baseline-ui/icons/16';import {CheckCircleFilledIcon,ErrorAltCircleFilledIcon}from'@baseline-ui/icons/20';import {assignInlineVars}from'@vanilla-extract/dynamic';import F from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
1
+ import {a}from'./chunk-BGRGRUG4.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {CheckmarkCircleFilledIcon,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1}from'@baseline-ui/icons/16';import {CheckCircleFilledIcon,ErrorAltCircleFilledIcon}from'@baseline-ui/icons/20';import {assignInlineVars}from'@vanilla-extract/dynamic';import F from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {a as a$3}from'./chunk-KVIV5RTE.mjs';import {q}from'./chunk-OMWMNUTI.mjs';import {b as b$2}from'./chunk-UO75BAPM.mjs';import {c,b}from'./chunk-7MLFM55C.mjs';import {a as a$2}from'./chunk-O7XK2WIX.mjs';import {a as a$4}from'./chunk-DAI7V4TE.mjs';import {b as b$1}from'./chunk-K5RYVERS.mjs';import {j}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {MinusIcon}from'@baseline-ui/icons/12';import {AttachmentsIcon,ErrorCircleFilledIcon}from'@baseline-ui/icons/16';import {sprinkles}from'@baseline-ui/tokens';import d 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 P="_1x35j5g0 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3 _1yep5z6m6",D=a({defaultClassName:"_1x35j5g1 _1yep5z68f _1yep5z68g _1yep5z68h _1yep5z663 _1yep5z664 _1yep5z665 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m6",variantClassNames:{isFocusVisible:{true:"_1x35j5g2"},isError:{true:"_1x35j5g3"},isDisabled:{true:"_1x35j5g4"}},defaultVariants:{},compoundVariants:[]}),V="_1x35j5g5 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6m3",S=a({defaultClassName:"_1x35j5g7 _1yep5z6dy _1yep5z6ey",variantClassNames:{isLoading:{true:"_1yep5z611j"}},defaultVariants:{},compoundVariants:[]}),H="_1yep5z64r _1yep5z64s _1yep5z64t _1yep5z673 _1yep5z674 _1yep5z675 _1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",A="_1x35j5g6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jw _1yep5z6jx _1yep5z6jy _1yep5z6kt _1yep5z6ku _1yep5z6kv";var Q=sprinkles({color:"icon.secondary"}),W=sprinkles({color:"support.error.medium"}),X=a$1(sprinkles({display:"flex",flexDirection:"column",width:"full",paddingY:"md"}),"BaselineUI-Box");function Z({item:e,isFocusVisible:g,isDisabled:i,onRemove:t,loadingLabel:a,removeHintLabel:s}){let{formatMessage:p}=b(),n=!!e.isLoading,l=!!(e.errorMessage||e.errorExplanation),b$3=!i&&!n&&!!t,c=(typeof a=="function"?a({fileName:e.name}):a)??p(O.loading,{fileName:e.name}),y=e.name;return n?y=c:b$3&&(y=(typeof s=="function"?s({fileName:e.name}):s)??p(O.removeHint,{fileName:e.name})),jsxs("div",{className:D({isDisabled:i,isFocusVisible:g,isError:l}),"data-error":l||void 0,children:[jsx(b$1,{children:jsx(b$2,{slot:"label",children:y})}),jsxs("div",{className:V,children:[jsx(AttachmentsIcon,{width:16,height:16,className:Q}),jsx("span",{className:A,children:jsx("span",{className:S({isLoading:n}),title:e.name,children:e.name})}),jsxs(a$2,{elementType:"span",display:"flex",alignItems:"center",gap:"xs",flexShrink:0,children:[l?jsx(ErrorCircleFilledIcon,{width:16,height:16,className:W}):null,n?jsx(a$3,{size:"sm",className:H,"aria-label":c}):t?jsx(a$4,{icon:MinusIcon,size:"xs",variant:"secondary",excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:i,onPress:()=>{t(e.id);},UNSAFE_isVisuallyInteractiveOnly:true}):null]})]}),jsxs(b$2,{slot:"description",elementType:"div",className:l?X:void 0,children:[e.errorMessage?jsx(a$2,{elementType:"span",typography:"label.sm.medium",color:"support.error.medium",children:e.errorMessage}):null,e.errorExplanation?jsx(a$2,{elementType:"span",typography:"label.sm.medium",color:"text.helper",children:e.errorExplanation}):null]})]})}var U=d.forwardRef(({className:e,style:g,items:i,onRemove:t,disabledKeys:a,loadingLabel:s,removeHintLabel:p,"aria-label":n,"aria-labelledby":l,"aria-describedby":b,"aria-details":c},y)=>{let u=a==="all",_=d.useMemo(()=>new Set(a&&a!=="all"?a:[]),[a]),j$1=d.useMemo(()=>new Map(i.map(r=>[r.id,r])),[i]),N=d.useMemo(()=>i.map(r=>({id:r.id,label:r.name})),[i]),R=d.useCallback((r,{isFocusVisible:h})=>{let f=j$1.get(r.id);return f?jsx(Z,{item:f,isFocusVisible:h,isDisabled:u||_.has(f.id),onRemove:t,loadingLabel:s,removeHintLabel:p}):null},[j$1,u,_,t,s,p]);if(!i.length)return null;let K=u?N.map(r=>r.id):_,Y=r=>{if(!t||r.key!=="Delete"&&r.key!=="Backspace"||u)return;let z=j(r)?.closest("[data-key]")?.dataset.key;z&&(_.has(z)||j$1.get(z)?.isLoading||(r.preventDefault(),t(z)));};return jsx(a$2,{ref:y,className:a$1("BaselineUI-FileList",e),style:g,onKeyDown:Y,children:jsx(q,{"aria-label":n,"aria-labelledby":l,"aria-describedby":b,"aria-details":c,items:N,selectionMode:"none",disabledKeys:K,className:P,renderOption:R})})});U.displayName="FileList";var O=c({loading:{id:"bui.fileList.loading",defaultMessage:"Loading {fileName}"},removeHint:{id:"bui.fileList.removeHint",defaultMessage:"{fileName}, press Delete or Backspace to remove"}});export{U as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-22BJMDCA.mjs';import {b}from'./chunk-SD43KVTU.mjs';import {breakpoints}from'@baseline-ui/tokens';import {useContext,useMemo,useCallback,useSyncExternalStore}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 x(t){let{breakpoints:r=breakpoints}=useContext(a),s=useMemo(()=>({tablet:`screen and (min-width: ${r.tablet}px)`,desktop:`screen and (min-width: ${r.desktop}px)`}),[r]),a$1=useCallback(()=>{let e=b(t),o=e.matchMedia(s.tablet);return e.matchMedia(s.desktop).matches?"desktop":o.matches?"tablet":"mobile"},[t,s]),d=useCallback(e=>{let o=b(t);return o.addEventListener("resize",e),()=>{o.removeEventListener("resize",e);}},[t]);return useSyncExternalStore(d,a$1,()=>"desktop")}export{x as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-AMW7LGCF.mjs';import {c}from'./chunk-X5ORCNAU.mjs';import {a as a$8}from'./chunk-7SQRBY7N.mjs';import {a as a$5}from'./chunk-DAI7V4TE.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {e}from'./chunk-AYQN3OH2.mjs';import {a as a$7}from'./chunk-FPM5UJRF.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$4}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/12';import {XIcon as XIcon$1}from'@baseline-ui/icons/16';import {SearchIcon as SearchIcon$1}from'@baseline-ui/icons/20';import {SearchIcon}from'@baseline-ui/icons/24';import O 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 M={"ar-AE":{"Clear search":"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B"},"bg-BG":{"Clear search":"\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435"},"cs-CZ":{"Clear search":"Vymazat hled\xE1n\xED"},"da-DK":{"Clear search":"Ryd s\xF8gning"},"de-DE":{"Clear search":"Suche zur\xFCcksetzen"},"el-GR":{"Clear search":"\u0391\u03C0\u03B1\u03BB\u03BF\u03B9\u03C6\u03AE \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar b\xFAsqueda"},"et-EE":{"Clear search":"T\xFChjenda otsing"},"fi-FI":{"Clear search":"Tyhjenn\xE4 haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"\u05E0\u05E7\u05D4 \u05D7\u05D9\u05E4\u05D5\u05E9"},"hr-HR":{"Clear search":"Obri\u0161i pretragu"},"hu-HU":{"Clear search":"Keres\xE9s t\xF6rl\xE9se"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2"},"ko-KR":{"Clear search":"\uAC80\uC0C9 \uC9C0\uC6B0\uAE30"},"lt-LT":{"Clear search":"I\u0161valyti ie\u0161k\u0105"},"lv-LV":{"Clear search":"Not\u012Br\u012Bt mekl\u0113\u0161anu"},"nb-NO":{"Clear search":"T\xF8m s\xF8k"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczy\u015B\u0107 zawarto\u015B\u0107 wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"\u015Eterge\u0163i c\u0103utarea"},"ru-RU":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A"},"sk-SK":{"Clear search":"Vymaza\u0165 vyh\u013Ead\xE1vanie"},"sl-SI":{"Clear search":"Po\u010Disti iskanje"},"sr-SP":{"Clear search":"Obri\u0161i pretragu"},"sv-SE":{"Clear search":"Rensa s\xF6kning"},"tr-TR":{"Clear search":"Aramay\u0131 temizle"},"uk-UA":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A"},"zh-CN":{"Clear search":"\u6E05\u9664\u641C\u7D22"},"zh-TW":{"Clear search":"\u6E05\u9664\u641C\u5C0B\u689D\u4EF6"}};function z(r,e,t){let y=b$1(M,"@react-aria/searchfield"),{isDisabled:n,isReadOnly:p,onSubmit:s,onClear:a,type:d="search"}=r,{keyboardProps:o}=j({isDisabled:n||p,shortcuts:{Enter:()=>{if(s){s(e.value);return}return false},Escape:()=>{if(e.value===""&&(!t.current||t.current.value===""))return false;e.setValue(""),a?.();}}}),i=()=>{e.setValue(""),a&&a();},h=()=>{t.current?.focus();},{labelProps:l,inputProps:m,descriptionProps:f,errorMessageProps:c,..._}=a$8({...r,value:e.value,onChange:e.setValue,onKeyDown:r.onKeyDown,onKeyUp:r.onKeyUp,type:d},t);return {labelProps:l,inputProps:c$1(o,{...m,defaultValue:void 0}),clearButtonProps:{"aria-label":y.format("Clear search"),excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:n||p,onPress:i,onPressStart:h},descriptionProps:f,errorMessageProps:c,..._}}function b(r){let[e,t]=a$7(B(r.value),B(r.defaultValue)||"",r.onChange);return {value:e,setValue:t}}function B(r){if(r!=null)return r.toString()}var D="_19n40yy9 _1yep5z6me _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kk _1yep5z6kl _1yep5z6km _1yep5z6ey",E=a({defaultClassName:"_19n40yy0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6g9 _1yep5z6mh _1yep5z6mf _1yep5z6hs _1yep5z6f9 _1yep5z6m3 _1yep5z6e6",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3 _1yep5z610m"},variant:{primary:"_1yep5z613z",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_1yep5z6os _1yep5z6ot _1yep5z6ou"},isDisabled:{true:"_19n40yy8 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]});var W={sm:SearchIcon$1,md:SearchIcon,lg:SearchIcon},K=O.forwardRef(({className:r,size:e$1="md",variant:t="primary","data-block-id":y,"data-block-class":n,style:p,isClearFocusable:s=false,...a},d)=>{let o=O.useRef(null);[a,o]=e(a,o,c);let i=b(a),{inputProps:h,clearButtonProps:l}=z({...a$1(a),"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},i,o),{focusProps:m,isFocusVisible:f,isFocused:c$2}=a$2({within:true,isTextInput:true}),_=W[e$1],N=e$1==="sm"?XIcon:XIcon$1,U=a$3({"data-block-id":y,"data-block-class":n,"data-focused":c$2,"data-disabled":a.isDisabled,"data-focus-visible":f}),P=a$4(a,{global:true});return delete P.id,jsxs("div",{...P,...U,className:a$6(E({size:e$1,isFocused:c$2,variant:t,hasText:!!i.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",r),style:p,ref:d,children:[jsx(_,{size:e$1==="sm"?20:24}),jsx("input",{...c$1(h,m),className:D,ref:o}),i.value!==""&&jsx(a$5,{icon:N,...l,size:e$1==="sm"?"xs":"sm",variant:"secondary",isExcludedFromRovingFocus:!s,excludeFromTabOrder:!s,...s?{onPressStart:C=>{l.onPressStart?.(C),l.onPress?.(C);}}:{}})]})});K.displayName="SearchInput";export{K as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-N2XGJKZG.mjs';import c,{useRef,useState,useEffect}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=process.env.NODE_ENV!=="production",g="BUI \u{1F30D}:",h=e=>{e.error===void 0?console.warn(`${g} ${e.message}`):console.warn(`${g} ${e.message}`,e.error);},E=1e3;function M(e,n){let o=new Set;return (s,r)=>{if(e.has(s)||o.has(s))return;e.size>=E&&(o=new Set(e),e.clear()),e.add(s);let t=n?.();if(!t){h(r());return}try{t(r());}catch(a){console.error(`${g} \`onMessageIssue\` threw; the issue it was given was dropped.`,a);}}}var v={},L=new Set,y=c.createContext({messages:v,reportMessageIssue:f?M(L):void 0,setLang:()=>{}}),$=({children:e,messages:n=v,shouldLogMissingMessages:o=f,onMessageIssue:s,...r})=>{let t=useRef(new Set),a$1=useRef(false),[P,u]=useState(r.locale||"");useEffect(()=>{a$1.current?t.current.clear():a$1.current=true;},[P,r.locale]);let d=useRef(s);d.current=s;let m=c.useMemo(()=>M(t.current,()=>d.current),[]),l=s||o?m:void 0,R=c.useMemo(()=>({messages:n,reportMessageIssue:l,setLang:u}),[n,l,u]);return jsx(a,{...r,children:jsx(y.Provider,{value:R,children:e})})};$.displayName="I18nProvider";export{f as a,M as b,y as c,$ as d};
@@ -0,0 +1,10 @@
1
+ import {b,a as a$5}from'./chunk-AN26QORL.mjs';import {a as a$1,f as f$1}from'./chunk-6GMU63H2.mjs';import {a as a$3}from'./chunk-5BAHJXOI.mjs';import {b as b$2,a as a$g,q}from'./chunk-OMWMNUTI.mjs';import {a as a$a}from'./chunk-2MS356Q7.mjs';import {a as a$f}from'./chunk-O6FPWOHR.mjs';import {a as a$7,b as b$1}from'./chunk-SZTFMBPY.mjs';import {f}from'./chunk-UZ672WDX.mjs';import {a as a$c}from'./chunk-R6TFTLMV.mjs';import {b as b$4}from'./chunk-AFOW62QN.mjs';import {a as a$e}from'./chunk-VXZT2JR2.mjs';import {a as a$4}from'./chunk-CIPPPD6E.mjs';import {a as a$i}from'./chunk-5IC46G5J.mjs';import {a as a$d}from'./chunk-VDUFLHKK.mjs';import {a as a$b}from'./chunk-RSKKEGJZ.mjs';import {a as a$9}from'./chunk-STMDFIUL.mjs';import {j as j$1}from'./chunk-KUDCYGII.mjs';import {a as a$8}from'./chunk-B3EZOXNU.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {a as a$6,c as c$1,b as b$3}from'./chunk-3WKDIXCM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {j,h}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$h}from'./chunk-4QEH5CGK.mjs';import x,{useMemo,useState,useRef,useEffect}from'react';import {useGranularEffect}from'granular-hooks';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 De=a({defaultClassName:"_18v88n10 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6m3",variantClassNames:{labelPosition:{top:"_1yep5z6163 _1yep5z6164 _1yep5z6165",start:"_1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z617i _1yep5z617j _1yep5z617k _1yep5z6w1 _1yep5z6w2 _1yep5z6w3"}},defaultVariants:{},compoundVariants:[]}),ke=a({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ey _1yep5z6m3 _1yep5z6me _1yep5z6m6 _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z611l"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),Oe=a({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6m0",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610x",warning:"_1yep5z6117"},isReadOnly:{true:"_1yep5z611s"}},defaultVariants:{},compoundVariants:[]}),Te=a({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6mh _1yep5z6mf _1yep5z6hg _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z613e",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z6190 _1yep5z618y _1yep5z613w _1yep5z618r _1yep5z618q _1yep5z614w _1yep5z618t"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z614w"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61vj _1yep5z61vh _1yep5z61qi"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_18v88n1n"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61qj"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61qj"],[{isReadOnly:true,variant:"primary",isFocused:false},"_18v88n1o"]]}),Fe=a({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),He=a({defaultClassName:"_18v88n19 _1yep5z6jb _1yep5z6jc _1yep5z6jd",variantClassNames:{labelPosition:{top:"_1yep5z6tp _1yep5z6tq _1yep5z6tr",start:"_1yep5z6nm _1yep5z6nn _1yep5z6no _1yep5z6163 _1yep5z6164 _1yep5z6165"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61tv _1yep5z61tw _1yep5z61tx"]]}),Se="_18v88n1y",Ke=a({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6m6",variantClassNames:{isFocusVisible:{true:"_1yep5z612v _1yep5z615b _1yep5z618p"},isHovered:{true:"_1yep5z612v _1yep5z615b _1yep5z618p"},isOpen:{true:"_1yep5z615b _1yep5z618p"}},defaultVariants:{},compoundVariants:[]});function K(n,s,c,p){if(s!=="number"||n===void 0||n==="")return n;let u=Number.parseFloat(n);if(Number.isNaN(u))return n;let e=u;return c!==void 0&&(e=Math.max(e,c)),p!==void 0&&(e=Math.min(e,p)),e===u?n:String(e)}function Ue(n,s){return n.selectedKey==null||s!==n.selectedItem?.textValue}function We({allowsCustomValue:n,onValueChange:s,inputType:c,minValue:p,maxValue:u},e,g,_){let[j$2,d]=useState(null),a=useRef(false),C=useRef(null),P=!Ue(e,e.inputValue),w=(o,r)=>{C.current=r==null?null:{key:r,value:o},s?.({value:o,key:r});},I=o=>{!a.current||!Ue(e,o)||(w(o,null),a.current=false);};useEffect(()=>{if(!s)return;let o=g.current,r=y=>{d(j(y));};return o?.addEventListener("focusin",r),()=>{o?.removeEventListener("focusin",r);}},[s,g,e.selectedKey]),useGranularEffect(()=>{if(e.selectedKey==null||e.selectedItem==null){e.selectionManager.isEmpty&&(C.current=null);return}let o=e.selectedKey,r=e.selectedItem.textValue,y=C.current?.key!==o;!y&&(C.current?.value===r||a.current&&!P)||(w(r,o),y&&(a.current=false));},[e.selectedKey,e.selectedItem?.textValue,P],[s,e.selectedItem]);let D=()=>{j$2===_.current&&n&&a.current&&(a.current=false);};useEffect(()=>{if(!s)return;let o=_.current,r=()=>{a.current=true;};return o?.addEventListener("input",r),()=>{o?.removeEventListener("input",r);}},[_,s]);let{keyboardProps:k}=j$1({isDisabled:!s,onKeyDown:o=>{if(n&&o.key==="Enter"&&a.current){let r=K(_.current?.value,c,p,u);I(r??""),a.current=false;}else o.key==="Escape"&&(e.selectedKey!=null&&(a.current=false),e.close());o.continuePropagation();}});return {inputProps:k,commitCustomValue:I,disarmPendingEdit:D}}var Ge=x.forwardRef(({renderOption:n,optionStyle:s,optionClassName:c,...p},u)=>jsx(a$1,{items:p.items,listBoxProps:{renderOption:n,optionStyle:s,optionClassName:c},children:e=>jsx(Je,{...p,collection:e,ref:u})}));Ge.displayName="ComboBox";var Je=x.forwardRef(({className:n,style:s,inputStyle:c$2,inputClassName:p,"data-block-id":u,"data-block-class":e,label:g,items:_,isInvalid:j$2=false,labelPosition:d$1="top",validationState:a="valid",variant:C="primary",toggleLabel:P,showIcon:w=true,filter:I,filterItems:D,readOnly:k,minValue:o,maxValue:r,inputType:y="text",onInputSubmit:A,onValueChange:q$1,tooltip:Qe,collection:Xe,onTriggerPress:U,...t},Ye)=>{let O=a$2(Ye),{contains:Ze}=a$3({sensitivity:"base"}),f$2=t.isReadOnly??k,W=j$2||a==="error"||!!t.errorMessage,v=b({...t,isReadOnly:f$2,defaultFilter:D===false?void 0:I||Ze,defaultItems:_,collection:Xe,children:void 0,validationState:W?"invalid":"valid"}),G=x.useRef(null),z=x.useRef(null),J=x.useRef(null),T=x.useRef(null),Q=x.useRef(null),{inputProps:$e,commitCustomValue:et,disarmPendingEdit:tt}=We({onValueChange:q$1,allowsCustomValue:t.allowsCustomValue,inputType:y,minValue:o,maxValue:r},v,O,z),X=i=>{let m=K(i,y,o,r)??"";return m!==i&&!A&&!q$1&&a$i("bui.comboBox.clampNoCallback","ComboBox: minValue/maxValue clamped a value but no onInputSubmit or onValueChange callback is provided. The constraint cannot be enforced without a callback to notify the consumer."),A?.(m),m},Y=()=>{let i=z.current?.value??"";!t.allowsCustomValue||!i||et(X(i));};a$4({ref:z,onInteractOutside:i=>{let m=j(i);if(h(O.current,m)||h(T.current,m))return;let h$1=z.current;if(!h$1||f(h$1)!==h$1){tt();return}v.isOpen&&(Y(),v.close());}});let{buttonProps:L,inputProps:Z,listBoxProps:$,labelProps:ot,errorMessageProps:rt,descriptionProps:at,validationErrors:nt}=a$5({...t,onBlur:a$6(t.onBlur,Y),inputRef:z,defaultItems:_,buttonRef:G,listBoxRef:J,popoverRef:T,isReadOnly:f$2,validationState:W?"invalid":"valid"},v),F=t.errorMessage||nt.join(" "),ee=c(),st=a$7({...t,errorMessage:F})==="warningMessage",N=b$1({...t,errorMessage:F,descriptionProps:at,errorMessageProps:rt,warningMessageProps:{id:ee},labelPosition:d$1});F&&(a="error");let{hoverProps:it,isHovered:te}=a$8({isDisabled:t.isDisabled}),{isFocused:oe,focusProps:lt,isFocusVisible:re}=a$9(),ae=a$a({isReadOnly:f$2,validationState:a}),pt=a$b({"data-read-only":f$2,"data-disabled":t.isDisabled,"data-validation-state":a,"data-focused":oe,"data-focus-visible":re}),{labelProps:ut,fieldProps:dt}=a$c({label:g,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],"aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]}),{keyboardProps:mt}=j$1({onKeyDown:i=>{t.allowsCustomValue&&i.key==="Enter"&&X(z.current?.value??"");}}),{tooltipProps:ne}=a$d({tooltip:Qe,label:t["aria-label"]}),{pressProps:ct}=d({onPress:U}),se=P?.trim()||void 0,ie=i=>{let{triggerProps:m,triggerRef:h}=i??{};return jsxs("div",{className:a$h(De({labelPosition:d$1}),n,"BaselineUI-ComboBox"),"data-block-id":u,"data-block-class":e,style:s,ref:O,children:[g||d$1==="start"&&N?jsxs("div",{className:He({labelPosition:d$1,hasMessage:!!N}),children:[jsx("label",{...c$1(ot,ut),className:Fe({isDisabled:t.isDisabled}),children:g}),d$1==="start"&&N]}):null,jsxs("div",{...it,className:Te({validationState:a,isHovered:te,isFocused:oe,variant:C,isReadOnly:!!f$2,isDisabled:!!t.isDisabled}),ref:Q,children:[jsx("input",{...c$1(ct,m,Z,$e,lt,pt,dt,mt,y==="number"?{type:"number",min:o,max:r,onKeyDown:B=>{(B.key==="ArrowUp"||B.key==="ArrowDown")&&B.preventDefault();}}:null,{"aria-describedby":[m?.["aria-describedby"],Z["aria-describedby"],st?ee:void 0].filter(Boolean).join(" ")||void 0}),id:t.id,ref:b$3(h,z),className:a$h(ke({isDisabled:t.isDisabled,labelPosition:d$1}),"BaselineUI-ComboBox-Input",p),style:c$2}),ae&&w?jsx(ae,{className:Oe({validationState:a,isReadOnly:f$2}),size:16}):null,jsx(b$4,{...L,onPressStart:B=>{L.onPressStart?.(B),U?.(B);},ref:G,"data-testid":"combobox-toggle-button",variant:"popover",label:null,"aria-label":se??L["aria-label"],"aria-labelledby":se?void 0:L["aria-labelledby"],className:Ke({isFocusVisible:!t.isDisabled&&!f$2&&re,isHovered:!t.isDisabled&&!f$2&&te,isOpen:v.isOpen})})]}),d$1==="top"&&N]})};return jsxs(Fragment,{children:[ne?jsx(a$e,{...ne,children:ie}):ie(),jsx(a$f,{ref:T,triggerRef:Q,state:v,isNonModal:true,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsx(b$2.Provider,{value:v,children:jsx(a$g.Provider,{value:useMemo(()=>({...$,ref:J}),[$]),children:jsx(q,{selectionMode:"single",className:a$h(f$1,Se,"BaselineUI-ComboBox-ListBox")})})})})]})});Je.displayName="ComboBoxInner";export{Ge as a};
@@ -0,0 +1,10 @@
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 {b}from'./chunk-RMUV6NJJ.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 K="_1vghdeb0";var x=new Set(["\u2318","\u2325","\u21E7","\u21A9","\u2423","\u2303"]),l="+";function g(t){let s=t.endsWith(l),e=(s?t.slice(0,-1):t).split(l).map(r=>r.trim()).filter(Boolean);return s?[...e,l]:e}function R(t,s){if(s){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("+")?g(e[0]):e}return g(t)}var m=p.forwardRef(({children:t,className:s,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(K,"BaselineUI-Kbd-Key",s),style:e,children:t}));m.displayName="KbdKey";var u=p.forwardRef(({children:t,shouldUseSymbol:s=false,className:e,style:r},o)=>{let S=b()?t:a$2(t,s),i=R(S,s);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))})});u.displayName="Kbd";export{u as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-BA5OA5DY.mjs';import {b as b$2}from'./chunk-BGQRLALS.mjs';import {b,c}from'./chunk-IHES52NR.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import C,{useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var m=C.forwardRef(({className:i,style:n,children:p,"data-block-id":d,"data-block-class":P,portalContainer:f,...c$1},h)=>{let{theme:y,shouldHandleVirtualKeyboard:u}=useContext(b),v=a(),b$3=b$1();return jsx(b$2,{...c$1,portalContainer:b$3?void 0:f??v,children:jsx(c,{ref:h,theme:y,shouldHandleVirtualKeyboard:u,style:n,className:a$1("BaselineUI-Portal",i),"data-block-id":d,"data-block-class":P,children:p})})});m.displayName="Portal";export{m as a};
@@ -1,4 +1,4 @@
1
- import {b}from'./chunk-NUYBQ7KP.mjs';import {c}from'./chunk-UBFMOTBM.mjs';import {a}from'./chunk-USMC34OO.mjs';import {useMemo}from'react';/**
1
+ import {b}from'./chunk-XAM3AXXK.mjs';import {c}from'./chunk-QMV2O57M.mjs';import {a}from'./chunk-USMC34OO.mjs';import {useMemo}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$4}from'./chunk-ZLDT2KDZ.mjs';import {a as a$2}from'./chunk-UUBOEBYZ.mjs';import {a as a$1}from'./chunk-4PYEGHW5.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import d,{useMemo,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$4}from'./chunk-ZLDT2KDZ.mjs';import {a as a$2}from'./chunk-22MA6EYO.mjs';import {a as a$1}from'./chunk-22VRCVTH.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import d,{useMemo,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-Q5UMLFN3.mjs';import {a as a$9}from'./chunk-DAI7V4TE.mjs';import {a as a$4,b as b$1}from'./chunk-GMALMQWI.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$3}from'./chunk-FPM5UJRF.mjs';import {a as a$6}from'./chunk-SGZWUG3H.mjs';import {a as a$7}from'./chunk-STMDFIUL.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a as a$8}from'./chunk-B3EZOXNU.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {c as c$1}from'./chunk-ETM4MNG4.mjs';import {i,a as a$1}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import H,{useContext,useEffect,useMemo,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {AnimatePresence,motion}from'motion/react';import {ChevronRightIcon}from'@baseline-ui/icons/8';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var X="_1yep5z6m3",Y=a({defaultClassName:"_1kvz17db _1yep5z6lq _1yep5z6ls",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Z=a({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6lq _1yep5z6lr",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),$="_1kvz17de",ee="_1yep5z6ez _1yep5z6dy",oe=a({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6lq _1yep5z6lt",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ga",false:"_1yep5z6gb"},isDisabled:{true:"z9nup82"}},defaultVariants:{},compoundVariants:[]}),te="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",re=a({defaultClassName:"_1kvz17d7 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{isDisabled:{true:"_1yep5z6f2",false:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]});var N=H.forwardRef(({children:a,className:i$1,style:p},t)=>{let{headers:o}=useContext(z),{disabledKeys:m}=useContext(z),l=H.Children.toArray(a).filter(e=>H.isValidElement(e));useEffect(()=>{for(let e of o.keys())e>=l.length&&o.delete(e);},[o,l.length]);let{keyboardProps:_}=j({onKeyDown:e=>{let s=i(a$1(e.target)),c=[...o?.keys()||[]].findIndex(d=>{let y=o?.get(d)?.current;return y?y===s:false});if(!o?.get(c)){e.continuePropagation();return}let n=o?.size||0,v=new Set([...m??[]].map(String)),u=d=>{let y=o.get(d)?.current?.dataset.key;return y!==void 0&&v.has(y)},r=(d,y)=>{for(let g=1;g<=n;g++){let A=((d+y*g)%n+n)%n;if(!u(A)){o.get(A)?.current?.focus();return}}};switch(e.key){case "Home":{e.preventDefault(),r(-1,1);break}case "End":{e.preventDefault(),r(n,-1);break}case "ArrowDown":{e.preventDefault(),r(c,1);break}case "ArrowUp":{e.preventDefault(),r(c,-1);break}default:e.continuePropagation();}}});return jsx("div",{...b(_),style:p,className:a$2(X,i$1),ref:t,children:l.map((e,s)=>H.cloneElement(e,{index:s}))})});N.displayName="AccordionBase";var z=H.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),se=H.forwardRef(({children:a,disabledKeys:i,defaultExpandedKeys:p=new Set,expandedKeys:t,expansionMode:o="multiple",onChange:m,className:l,style:_},e)=>{let[s,c]=a$3(t,p,m),f=H.useRef(new Map).current,[n,v]=H.useState(o);useEffect(()=>{v(o);},[o]);let u=useMemo(()=>({expandedKeys:s,setExpandedKeys:c,disabledKeys:i,headers:f,expansionMode:n}),[s,c,i,f,n]);return jsx(z.Provider,{value:u,children:jsx(a$4,{children:jsx(N,{className:l,style:_,ref:e,children:a})})})});se.displayName="Accordion";var D=H.forwardRef(({title:a,actions:i,controlId:p,value:t,id:o,index:m,subLabel:l,showActionsOnTriggerOnly:_},e)=>{let s=H.useRef(null),{expandedKeys:c$1,setExpandedKeys:f,expansionMode:n,disabledKeys:v,headers:u}=useContext(z),r=v?.has(t),d$1=b$1();a$5(d$1);let{focusNext:y,focusPrevious:g}=d$1,{direction:A}=b$2(),pe=A==="rtl"?"ArrowLeft":"ArrowRight",le=A==="rtl"?"ArrowRight":"ArrowLeft",{keyboardProps:me}=j({onKeyDown:x=>{x.key===pe?y({wrap:true}):x.key===le?g({wrap:true}):x.continuePropagation();},isDisabled:r});useEffect(()=>{a$5(typeof m=="number","AccordionItem must have an index"),u?.set(m,s);},[m,u]);let F=()=>{f(x=>{let h=new Set(x);return h.has(t)?h.delete(t):(n==="single"&&h.clear(),h.add(t)),h});},{buttonProps:ue}=a$6({"aria-expanded":c$1.has(t),"aria-controls":p,onPress:F,isDisabled:r},s),{pressProps:ye}=d({onPress:F,isDisabled:r}),{focusProps:fe,isFocusVisible:ze}=a$7(),{hoverProps:_e,isHovered:L}=a$8({isDisabled:r}),{focusProps:ve,isFocusVisible:xe}=a$7({within:true}),he=c$1.has(t);return jsxs("h3",{...c(me,ye,_e,ve),className:oe({isFocusVisible:ze,isHovered:L,isDisabled:r}),ref:e,children:[jsxs("div",{className:re({isDisabled:!!r}),children:[jsx(ChevronRightIcon,{className:Z({isExpanded:he}),size:8}),jsx("button",{...c(ue,fe),id:o,"data-key":t,className:te,ref:s,children:a})]}),i?.length?jsx("div",{"data-testid":"action-buttons",className:Y({showActionsOnTriggerOnly:_,isTriggered:xe||L}),children:i.map((x,h)=>jsx(a$9,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:r,...x},h))}):null,l?jsx("div",{className:ee,children:l}):null]})});D.displayName="AccordionHeader";var Ke={open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},Me=({isExpanded:a,...i})=>{let[p,t]=useState(!a);return a&&p&&t(false),jsx(motion.section,{...i,initial:false,animate:a?"open":"closed",onAnimationComplete:o=>{o==="closed"&&t(true);},hidden:p})},de=H.forwardRef(({title:a,actions:i,children:p,value:t,index:o,subLabel:m,style:l,className:_,showActionsOnTriggerOnly:e,shouldForceMount:s},c)=>{let f=c$1(),n=c$1(),{expandedKeys:v}=useContext(z),u=v.has(t),r={role:"region","aria-labelledby":n,id:f,className:$,variants:Ke},d=jsx("div",{style:l,className:_,children:p});return jsxs(Fragment,{children:[jsx(a$4,{children:jsx(D,{value:t,actions:i,id:n,title:a,controlId:f,ref:c,index:o,subLabel:m,showActionsOnTriggerOnly:e})}),s?jsx(Me,{...r,isExpanded:u,children:d}):jsx(AnimatePresence,{initial:false,children:u?jsx(motion.section,{...r,initial:"closed",animate:"open",exit:"closed",children:d}):null})]})});de.displayName="AccordionItem";export{se as a,de as b};
@@ -0,0 +1,10 @@
1
+ import {c as c$1,b}from'./chunk-EGLD5KVP.mjs';import {a}from'./chunk-LSPDPDB6.mjs';import {d}from'./chunk-QMV2O57M.mjs';import {a as a$1}from'./chunk-D4NW56YQ.mjs';import {d as d$1}from'./chunk-GMALMQWI.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {f,b as b$2}from'./chunk-GQIS4QBN.mjs';import {i as i$1,b as b$3}from'./chunk-KUDCYGII.mjs';import {q}from'./chunk-PPHSLODC.mjs';import {c as c$2,a as a$3}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {c,e}from'./chunk-ETM4MNG4.mjs';import {m,i,a as a$4,h,j}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 M=new WeakMap;function I(n,t){let{id:e}=M.get(n)??{};if(!e)throw new Error("Unknown list");return `${e}-${se(t)}`}function se(n){return typeof n=="string"?n.replace(/\s*/g,""):""+n}function Se(n,t,e){let{isVirtualized:i,keyboardDelegate:a$3,layoutDelegate:u,onAction:p,disallowTypeAhead:d,linkBehavior:y="action",keyboardNavigationBehavior:O="arrow",escapeKeyBehavior:b$1="clearSelection",shouldSelectOnPressUp:F}=n;!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:w}=a({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:e,keyboardDelegate:a$3,layoutDelegate:u,isVirtualized:i,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:n.shouldFocusWrap,linkBehavior:y,disallowTypeAhead:d,autoFocus:n.autoFocus,escapeKeyBehavior:b$1,UNSTABLE_focusOnEntry:n.UNSTABLE_focusOnEntry}),k=c(n.id);M.set(t,{id:k,onAction:p,linkBehavior:y,keyboardNavigationBehavior:O,shouldSelectOnPressUp:F});let T=c$1({selectionManager:t.selectionManager,hasItemActions:!!p,ref:e}),x=a$1(e,{isDisabled:t.collection.size!==0}),g=a$2(n,{labelable:true}),E=c$2(g,{role:"grid",id:k,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:x?-1:0}:w,T);return i&&(E["aria-rowcount"]=t.collection.size,E["aria-colcount"]=1),b({},t),{gridProps:E}}var Y={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ue(n,t,e$1){let{node:i$2,isVirtualized:a,focusMode:u="row",allowsArrowNavigation:p}=n,{direction:d$2}=b$1(),{onAction:y,linkBehavior:O,keyboardNavigationBehavior:b,shouldSelectOnPressUp:F}=M.get(t),w=e([],e$1),k=useRef(null),T=()=>{if(e$1.current!==null){if(u==="child"){if(m(e$1.current)&&e$1.current!==i(a$4(e$1.current)))return;let l=d$1(e$1.current,{tabbable:true}).firstChild();if(l){i$1(l),f(l,{containingElement:b$2(l)});return}}(k.current!=null&&i$2.key!==k.current||!m(e$1.current))&&i$1(e$1.current);}},x={},g=n.hasChildItems,E=t.selectionManager.isLink(i$2.key);if(i$2!=null&&"expandedKeys"in t){let r=t.collection.getChildren?.(i$2.key);g=g||[...r??[]].length>1,y==null&&!E&&t.selectionManager.selectionMode==="none"&&g&&(y=()=>t.toggleKey(i$2.key));let l=g?t.expandedKeys.has(i$2.key):void 0,o=1,c=i$2.index;if(i$2.level>=0&&i$2?.parentKey!=null){let s=t.collection.getItem(i$2.parentKey);if(s){let B=ue(s,t.collection);o=[...B].filter(ae=>ae.type==="item").length,c>0&&B[0].type!=="item"&&(c-=1);}}else o=[...t.collection].filter(s=>s.level===0&&s.type==="item").length;x={"aria-expanded":l,"aria-level":i$2.level+1,"aria-posinset":c+1,"aria-setsize":o};}let{itemProps:Z,...R}=d({selectionManager:t.selectionManager,key:i$2.key,ref:e$1,isVirtualized:a,shouldSelectOnPressUp:n.shouldSelectOnPressUp||F,onAction:y||i$2.props?.onAction?a$3(i$2.props?.onAction,y?()=>y(i$2.key):void 0):void 0,focus:T,linkBehavior:O}),ee=r=>{let l=i(a$4(e$1.current));if(!h(r.currentTarget,j(r))||!e$1.current||!l)return;let o=d$1(e$1.current);if(o.currentNode=l,!J(r,t,i$2,g,d$2,l,e$1.current,p))switch(r.key){case "ArrowLeft":{if(b==="arrow"){let c=d$2==="rtl"?o.nextNode():o.previousNode();if(c)r.preventDefault(),r.stopPropagation(),i$1(c),f(c,{containingElement:b$2(e$1.current)});else if(r.preventDefault(),r.stopPropagation(),d$2==="rtl")i$1(e$1.current),f(e$1.current,{containingElement:b$2(e$1.current)});else {o.currentNode=e$1.current;let s=Q(o);s&&(i$1(s),f(s,{containingElement:b$2(e$1.current)}));}}break}case "ArrowRight":{if(b==="arrow"){let c=d$2==="rtl"?o.previousNode():o.nextNode();if(c)r.preventDefault(),r.stopPropagation(),i$1(c),f(c,{containingElement:b$2(e$1.current)});else if(r.preventDefault(),r.stopPropagation(),d$2==="ltr")i$1(e$1.current),f(e$1.current,{containingElement:b$2(e$1.current)});else {o.currentNode=e$1.current;let s=Q(o);s&&(i$1(s),f(s,{containingElement:b$2(e$1.current)}));}}break}case "ArrowUp":case "ArrowDown":!r.altKey&&h(e$1.current,j(r))&&(r.stopPropagation(),r.preventDefault(),e$1.current.parentElement?.dispatchEvent(new KeyboardEvent(r.nativeEvent.type,r.nativeEvent)));break}},te=r=>{if(k.current=i$2.key,j(r)!==e$1.current){b$3()||t.selectionManager.setFocusedKey(i$2.key);return}u==="child"&&r.relatedTarget&&h(e$1.current,r.relatedTarget)||requestAnimationFrame(()=>{u==="child"&&i(a$4(e$1.current))===e$1.current&&T();});},re=r=>{let l=i(a$4(e$1.current));if(!(!h(r.currentTarget,j(r))||!e$1.current||!l)){if(b==="tab"){if(j(r)!==e$1.current&&r.key!=="Tab"){r.stopPropagation();return}if(J(r,t,i$2,g,d$2,l,e$1.current,p))return}switch(r.key){case "Tab":if(b==="tab"){let o=d$1(e$1.current,{tabbable:true});o.currentNode=l,(r.shiftKey?o.previousNode():o.nextNode())&&r.stopPropagation();}}}},ie=q(i$2.props),ne=R.hasAction?ie:{},K=c$2(Z,ne,{role:"row",onKeyDownCapture:b==="arrow"||p?ee:void 0,onFocus:te,"aria-label":i$2["aria-label"]||i$2.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(i$2.key)?t.selectionManager.isSelected(i$2.key):void 0,"aria-disabled":t.selectionManager.isDisabled(i$2.key)||void 0,"aria-labelledby":w&&(i$2["aria-label"]||i$2.textValue)?`${I(t,i$2.key)} ${w}`:void 0,id:I(t,i$2.key)});u==="child"&&p&&b==="tab"&&(K.tabIndex=-1);let oe=K.onKeyDown;if(K.onKeyDown=r=>{re(r),r.isPropagationStopped()||oe?.(r);},a){let{collection:r}=t,l=[...r];K["aria-rowindex"]=l.find(o=>o.type==="section")?[...r.getKeys()].filter(o=>r.getItem(o)?.type!=="section").findIndex(o=>o===i$2.key)+1:i$2.index+1;}let le={role:"gridcell","aria-colindex":1};return {rowProps:{...c$2(K,x)},gridCellProps:le,descriptionProps:{id:w},...R}}function J(n,t,e,i,a,u,p,d){if(!("expandedKeys"in t)||!d&&u!==p)return false;if(n.key===Y.expand[a]&&t.selectionManager.focusedKey===e.key&&i&&!t.expandedKeys.has(e.key))return t.toggleKey(e.key),n.stopPropagation(),true;if(n.key===Y.collapse[a]&&t.selectionManager.focusedKey===e.key){if(i&&t.expandedKeys.has(e.key))return t.toggleKey(e.key),n.stopPropagation(),true;if(!t.expandedKeys.has(e.key)&&e.parentKey&&t.collection.getItem(e.parentKey)?.type==="item")return t.selectionManager.setFocusedKey(e.parentKey),n.stopPropagation(),true}return false}function Q(n){let t=null,e=null;do e=n.lastChild(),e&&(t=e);while(e);return t}function ue(n,t){let e=t.getChildren?.(n.key),i=e?Array.from(e):[],a=i.length>0?i[0]:null,u=[];for(;a;)u.push(a),a=a.nextKey!=null?t.getItem(a.nextKey):null;return u}export{I as a,Se as b,Ue as c};
@@ -0,0 +1,10 @@
1
+ import {useGranularEffect}from'granular-hooks';import {useReducer}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 u="SET_STATE",a="UNDO",c="REDO",E=(o,s)=>{let{past:t,present:e,future:n}=o;switch(s.type){case u:return {past:[...t,e],present:s.data,future:[],lastAction:void 0};case a:return t.length===0?o:{past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[e,...n],lastAction:{type:a}};case c:return n.length===0?o:{past:[...t,e],present:n[0],future:n.slice(1),lastAction:{type:c}};default:throw new Error("Invalid action type")}},g=(o={},{isDisabled:s,onAction:t})=>{let[e,n]=useReducer(E,{past:[],present:o,future:[]}),{past:i,present:r,future:p}=e,T=h=>{n({type:u,data:h});},d=()=>{n({type:a});},f=()=>{n({type:c});},l=!!i?.length,y=!!p?.length;return useGranularEffect(()=>{e.lastAction&&t?.(r,e.lastAction.type);},[e.lastAction],[t,r]),{state:r,push:s?()=>{}:T,undo:s?()=>{}:d,redo:s?()=>{}:f,pastStates:i,futureStates:p,canUndo:l,canRedo:y}};export{g as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$2}from'./chunk-JBXZ6ZHP.mjs';import {a as a$1}from'./chunk-BGRGRUG4.mjs';import {a as a$3}from'./chunk-PG3WDHSK.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import w 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="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3",u="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kz _1yep5z6l0 _1yep5z6l1",h=a({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z612d",error:"_1yep5z6128",active:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[]}),B="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ez _1yep5z6dy",j="_12vfhl43 _1yep5z6gd _1yep5z6m3",b="_12vfhl42 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k",C="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",x=a({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6ey",variantClassNames:{hasLabel:{false:"_1yep5z6py _1yep5z6pz _1yep5z6q0"}},defaultVariants:{},compoundVariants:[]});var N=w.forwardRef(({className:k,style:P,variant:p="active",showValue:y,description:V,errorMessage:T,"data-block-id":H,"data-block-class":L,...s},W)=>{let t=c(),o=p==="error"?T:V,{labelProps:I,progressBarProps:_}=a$1({...s,"aria-describedby":[o?t:void 0,s["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{minValue:i=0,maxValue:R=100,value:E=0,label:r}=s,z=R-i,M=z>0?a$2((E-i)/z,0,1):0,q=`${Math.round(M*100)}%`,n=jsx("output",{className:x({hasLabel:!!r}),children:_["aria-valuetext"]});return jsxs("div",{..._,style:P,className:a$4(f,"BaselineUI-ProgressBar",k),"data-block-id":H,"data-block-class":L,ref:W,children:[r?jsxs("div",{className:u,children:[jsx("label",{...I,className:B,children:r}),y?n:null]}):null,jsxs("div",{className:C,children:[jsxs("div",{className:b,children:[jsx("div",{className:j,children:jsx("div",{style:{width:q},className:h({variant:p})})}),!r&&y?n:null]}),o?jsx("div",{className:a$3({hasError:p==="error"}),id:t,children:o}):null]})]})});N.displayName="ProgressBar";export{N as a};
@@ -1,4 +1,4 @@
1
- import {a as a$2}from'./chunk-CHTLOFCT.mjs';import {a as a$1}from'./chunk-CFLEBB5T.mjs';import {b}from'./chunk-4ZJMZB5B.mjs';import {a as a$5}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-K6X2BHPP.mjs';import {a as a$4}from'./chunk-3FYY26ED.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import C from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {a as a$2}from'./chunk-2JGVUCP5.mjs';import {a as a$1}from'./chunk-7SKQUEHP.mjs';import {b}from'./chunk-K5RYVERS.mjs';import {a as a$5}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-STMDFIUL.mjs';import {a as a$4}from'./chunk-B3EZOXNU.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import C from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW