@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 {d}from'./chunk-KUDCYGII.mjs';import {u}from'./chunk-PPHSLODC.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {b as b$1,j}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function S(n,e,t){let{validationBehavior:s,focus:m}=n;a(()=>{if(s==="native"&&t?.current&&"setCustomValidity"in t.current&&!t.current.disabled){let i=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(i),t.current.hasAttribute("title")||(t.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(I(t.current));}});let r=useRef(false),u$1=u(()=>{r.current||e.resetValidation();}),v=u(i=>{e.displayValidation.isInvalid||e.commitValidation();let a=t?.current?.form;!i.defaultPrevented&&t&&a&&L(a)===t.current&&(m?m():t.current?.focus(),d("keyboard")),i.preventDefault();}),c=u(()=>{e.commitValidation();});useEffect(()=>{let i=t?.current;if(!i)return;let a=i.form,f=a?.reset;if(a){let E=b$1(i);a.reset=()=>{let o=E.event?E:window,d=o.event;r.current=!d||d.type==="message"&&typeof o.MessagePort=="function"&&j(d)instanceof o.MessagePort;try{f?.call(a);}finally{r.current=false;}};}return i.addEventListener("invalid",v),i.addEventListener("change",c),a?.addEventListener("reset",u$1),()=>{i.removeEventListener("invalid",v),i.removeEventListener("change",c),a?.removeEventListener("reset",u$1),a&&(a.reset=f);}},[t,s]);}function b(n){let e=n.validity;return {badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function I(n){return {isInvalid:!n.validity.valid,validationDetails:b(n),validationErrors:n.validationMessage?[n.validationMessage]:[]}}function L(n){for(let e=0;e<n.elements.length;e++){let t=n.elements[e];if(t.validity?.valid===false)return t}return null}export{S as a};
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-AW5WDI2U.mjs';import {e}from'./chunk-EYKIXVM3.mjs';import {t}from'./chunk-SMAYNDQQ.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {jsx}from'react/jsx-runtime';/**
1
+ import {a}from'./chunk-OVJT5F2R.mjs';import {e}from'./chunk-OMWMNUTI.mjs';import {t}from'./chunk-YQHHE5AT.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';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
@@ -7,4 +7,4 @@ import {a}from'./chunk-AW5WDI2U.mjs';import {e}from'./chunk-EYKIXVM3.mjs';import
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var n=a$2=>a({getItems:(o,r)=>r.map(i=>({"text/plain":i.label})),renderDropIndicator(o){return jsx(t,{target:o,className:({isDropTarget:r})=>a$1(e({isDropTarget:r}),"BaselineUI-DropIndicator")})},...a$2});export{n as a};
10
+ function s(a$2){return a({getItems:(o,r)=>r.map(i=>({"text/plain":i.label})),renderDropIndicator(o){return jsx(t,{target:o,className:({isDropTarget:r})=>a$1(e({isDropTarget:r}),"BaselineUI-DropIndicator")})},...a$2})}export{s as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$5}from'./chunk-PYV5J322.mjs';import {a as a$1,b}from'./chunk-SZTFMBPY.mjs';import {c as c$1}from'./chunk-PG3WDHSK.mjs';import {a}from'./chunk-7SQRBY7N.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {c as c$2}from'./chunk-3WKDIXCM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import w 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 A=w.forwardRef(({className:F,validationState:s,variant:H="primary",labelPosition:r="top",inputStyle:d,inputClassName:v,isMultiLine:t=false,rows:N,inputRef:D,"data-block-id":L,"data-block-class":h,...e},k)=>{let B=w.useRef(null),a$6=D??B,{inputProps:o,labelProps:O,descriptionProps:j,errorMessageProps:C,validationErrors:U}=a({...e,inputElementType:t?"textarea":"input",validationState:s==="error"||e.errorMessage?"invalid":s?"valid":void 0},a$6),n=e.errorMessage||U.join(" "),m=c(),V=a$1({...e,errorMessage:n})==="warningMessage",W=b({...e,errorMessage:n,descriptionProps:j,errorMessageProps:C,warningMessageProps:{id:m},labelPosition:r});n&&(s="error");let{isFocused:u,focusProps:c$3,isFocusVisible:_}=a$2(),f=V?{"aria-describedby":[o["aria-describedby"],m].filter(Boolean).join(" ")}:null,T=a$3({"data-readonly":e.isReadOnly,"data-disabled":e.isDisabled,"data-validation-state":s,"data-focused":u,"data-focus-visible":_}),g=a$4(c$1({isDisabled:e.isDisabled,labelPosition:r,isMultiLine:t}),"BaselineUI-TextInput-Input",v);return jsx(a$5,{variant:H,labelProps:O,isFocused:u,message:W,ref:k,labelPosition:r,className:a$4("BaselineUI-TextInput",F),validationState:s,isMultiLine:t,"data-block-id":L,"data-block-class":h,...e,children:t?jsx("textarea",{...c$2(o,c$3,T,f),className:g,style:d,rows:N,ref:a$6}):jsx("input",{...c$2(o,c$3,T,f),className:g,style:d,ref:a$6})})});A.displayName="TextInput";export{A as a};
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-XXANV3FM.mjs';import {b as b$3}from'./chunk-F7PGMOQF.mjs';import {a,b as b$1,c}from'./chunk-HZHAKW6I.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {useContext,useMemo,useEffect}from'react';/**
1
+ import {a as a$1}from'./chunk-XXANV3FM.mjs';import {b as b$3}from'./chunk-2WA3KB7H.mjs';import {a,b as b$1,c}from'./chunk-LJZ7ZS4C.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {useContext,useMemo,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
@@ -1,4 +1,4 @@
1
- import {c}from'./chunk-ZNN43VZV.mjs';import {b,c as c$1,a as a$1}from'./chunk-BROSGYL3.mjs';import {a}from'./chunk-4QEH5CGK.mjs';import {CheckmarkIcon,MinusIcon}from'@baseline-ui/icons/12';import P from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
1
+ import {c}from'./chunk-TFSBTGTQ.mjs';import {b,c as c$1,a as a$1}from'./chunk-BROSGYL3.mjs';import {a}from'./chunk-4QEH5CGK.mjs';import {CheckmarkIcon,MinusIcon}from'@baseline-ui/icons/12';import P from'react';import {jsx,jsxs,Fragment}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}from'./chunk-X3AXUU3H.mjs';import {useState}from'react';/**
1
+ import {a}from'./chunk-FPM5UJRF.mjs';import {useState}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-CY6W27WG.mjs';import {a as a$4}from'./chunk-6QQEK5I6.mjs';import {d}from'./chunk-W6QO7FPZ.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {a as a$3}from'./chunk-4QBHQCCK.mjs';import {c}from'./chunk-HH4VLTF3.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {j}from'./chunk-SD43KVTU.mjs';import V,{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 Q(e,t){let{inputElementType:P="input",isDisabled:M=false,isRequired:a$5=false,isReadOnly:F=false,type:y="text",validationBehavior:r="aria"}=e,[i,l]=a(e.value,e.defaultValue||"",e.onChange),{focusableProps:I}=c(e,t),o=d({...e,value:i}),{isInvalid:n,validationErrors:s,validationDetails:L}=o.displayValidation,{labelProps:E,fieldProps:g,descriptionProps:H,errorMessageProps:A}=a$1({...e,isInvalid:n,errorMessage:e.errorMessage||s,ref:t}),C=a$2(e,{labelable:true}),h={type:y,pattern:e.pattern},[v]=useState(i);return a$3(t,e.defaultValue??v,l),a$4(e,o,t),{labelProps:E,inputProps:c$1(C,P==="input"?h:void 0,{disabled:M,readOnly:F,required:a$5&&r==="native","aria-required":a$5&&r==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:O=>l(j(O).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(V.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...I,...g}),descriptionProps:H,errorMessageProps:A,isInvalid:n,validationErrors:s,validationDetails:L}}export{Q as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$5,b as b$3,e}from'./chunk-X5Z54UUE.mjs';import {a as a$1}from'./chunk-SGZWUG3H.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {f}from'./chunk-KUDCYGII.mjs';import {a as a$3}from'./chunk-B3EZOXNU.mjs';import {b as b$2,c as c$1}from'./chunk-3WKDIXCM.mjs';import {a,b}from'./chunk-SD43KVTU.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {ArrowDownCircleFilledIcon}from'@baseline-ui/icons/16';import {AnimatePresence,motion}from'motion/react';import c,{useCallback,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var w="_8kqf970 _1yep5z6q4 _1yep5z6q5 _1yep5z6q6 _1yep5z6mm _1yep5z6mn _1yep5z6mo _1yep5z6oy _1yep5z6oz _1yep5z6p0 _1yep5z615r _1yep5z615s _1yep5z615t _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z616i _1yep5z616j _1yep5z616k _1yep5z6zp _1yep5z6vy _1yep5z6vz _1yep5z6w0 _1yep5z618o _1yep5z610h";var A=2;function R(e){let{body:o}=e,s=b(o).getComputedStyle(o).overflowY;return s==="auto"||s==="scroll"?{eventTarget:o,scrollElement:o}:{eventTarget:e,scrollElement:e.scrollingElement??e.documentElement}}var M=c.forwardRef(({className:e$1,style:o,hideForKeyboard:s,scrollRef:r,label:Y,delay:f$1=1500,smoothScroll:D=true,"data-block-id":N,"data-block-class":O},X)=>{let a$7=c.useRef(null),U=f(),[V,d]=c.useState(false),m=useCallback(()=>r?.current??R(a(a$7.current)).scrollElement,[r]),n=useCallback(()=>{let t=m();return b(t).getComputedStyle(t).flexDirection==="column-reverse"?t.scrollTop+A>=0:t.scrollTop+t.clientHeight+A>=t.scrollHeight},[m]),W=b$1(),[j,g]=c.useState(()=>W||r?true:n()),{buttonProps:G,isPressed:J}=a$1({onPress:()=>{let t=m();t.scrollTo({top:t.scrollHeight,behavior:D?"smooth":"auto"});}},a$7),{focusProps:K,isFocused:Q,isFocusVisible:v}=a$2(),{hoverProps:Z,isHovered:_}=a$3({}),$=a$4({"data-block-id":N,"data-block-class":O,"data-pressed":J,"data-focus-visible":v,"data-hovered":_,"data-focused":Q});return useEffect(()=>{g(n());},[n]),useEffect(()=>{let t=R(a(a$7.current)),l=r?.current??t.eventTarget,tt="onscrollend"in b(r?.current??t.scrollElement),p,u=()=>{clearTimeout(p),p=setTimeout(()=>{d(false),g(n());},f$1);},z=()=>{d(true),tt||u();};return l.addEventListener("scroll",z),l.addEventListener("scrollend",u),()=>{clearTimeout(p),l.removeEventListener("scroll",z),l.removeEventListener("scrollend",u);}},[r,f$1,n]),jsx(AnimatePresence,{initial:false,children:(!s||U!=="keyboard")&&!V&&!j?jsxs(motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...c$1(G,K,Z,$),className:a$6(w,b$3({isFocusVisible:v,variant:"high-contrast",isHovered:_}),e({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e$1),style:o,ref:b$2(X,a$7),children:[jsx(ArrowDownCircleFilledIcon,{size:16,className:a$5({variant:"high-contrast"})}),Y]}):null})});M.displayName="ScrollControlButton";export{M as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$7}from'./chunk-NV7KQVPE.mjs';import {a as a$c}from'./chunk-KVIV5RTE.mjs';import {a as a$4}from'./chunk-4WVW4KEK.mjs';import {a as a$3}from'./chunk-TAYP2OGC.mjs';import {c as c$2}from'./chunk-5MUEJ5WI.mjs';import {b as b$1,c as c$1,a as a$d}from'./chunk-RO5ZRU3Y.mjs';import {B}from'./chunk-TYKMNZJ4.mjs';import {a as a$2}from'./chunk-CY6W27WG.mjs';import {b,c as c$3}from'./chunk-7MLFM55C.mjs';import {a as a$9,b as b$3}from'./chunk-AFOW62QN.mjs';import {a as a$b}from'./chunk-O7XK2WIX.mjs';import {b as b$2}from'./chunk-K5RYVERS.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {a as a$a}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-STMDFIUL.mjs';import {a as a$6}from'./chunk-B3EZOXNU.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$e}from'./chunk-ETM4MNG4.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import Z,{useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var Q=Z.forwardRef(({className:t,style:u,isInline:n=true,accept:i="image/*",defaultImageSrc:g,imageSrc:s,imageAlt:X,pickerButtonLabel:Y,isDisabled:r,onDrop:$,onPaste:S,includeCheckeredBackground:ee=true,"data-block-id":te,"data-block-class":oe,pickerButtonStyle:re,pickerButtonClassName:se,footerClassName:ne,footerStyle:ie,clearLabel:y,placeholder:P,labelStyle:ae,labelClassName:le,maxFileSize:w,onFileSizeError:ue,onFileTypeError:me,...m},pe)=>{let f=Z.useRef(null),h=Z.useRef(null),{formatMessage:fe}=b(),ce=e=>!w||e.size<=w?true:(ue?.(e),false),de=e=>xe(e,i)?true:(me?.(e),false),F=e=>de(e)&&ce(e),[ge,c$3]=a(s,g||null,e=>{a$1(typeof e!="string"),m.onValueChange?.(e?[e]:[]);}),l=Te(ge),{fieldProps:ye,labelProps:Pe}=a$2({...m,ref:f}),{dropProps:he,isDropTarget:I}=B({ref:f,isDisabled:r,onDrop:async e=>{let o=await a$3({items:e.items});o.length&&F(o[0])&&c$3(o[0]),$?.(e);},...m}),{clipboardProps:Fe}=a$4({onPaste:async e=>{if(r)return;let o=await a$3({items:e});o.length&&F(o[0])&&c$3(o[0]),S?.(e);},...m}),Ie=()=>{c$3(null),h.current&&(h.current.value="");},be={type:"file",onChange:e=>{let o=[...e.target.files];o.length&&F(o[0])?c$3(o[0]):o.length&&(e.target.value=""),m.onChange?.(e);},accept:i,disabled:r},{focusProps:ve,isFocused:Ce,isFocusVisible:b$4}=a$5({within:true}),{hoverProps:Le,isHovered:B$1}=a$6({isDisabled:r}),{imgProps:Re,isLoading:Ze,isLoaded:v}=a$7({src:l,alt:X||""}),we={label:Y||fe(Ae.selectImage),onPress:()=>f.current?.click(),variant:"secondary",isDisabled:r,excludeFromTabOrder:true,className:a$8(a$9({isFocusVisible:b$4}),{[b$1]:I&&!r},se),style:re},Be=a$a({"data-loaded":v,"data-block-id":te,"data-block-class":oe,"data-hovered":B$1,"data-focused":Ce,"data-drop-target":I,"data-disabled":r,"data-focus-visible":b$4});return jsxs(a$b,{...Be,className:a$8("BaselineUI-ImageDropZone",t),display:"flex",flexDirection:"column",alignItems:"center",style:u,ref:pe,children:[jsxs("label",{...c(he,Le,ve,Pe),className:a$8(a$d({isInline:n,isHovered:B$1,isDisabled:r,hasLoadedImage:!!l&&v,showFocusRing:I||!!l&&b$4}),le),style:ae,ref:f,children:[jsx(b$2,{children:jsx("input",{...c(ye,Fe,be),ref:h})}),!l&&jsx(b$3,{...we}),!!l&&(Ze?jsx(a$c,{}):jsx("img",{className:c$1({isInline:n,isDisabled:r,hasLoadedImage:!!l&&v&&ee}),...Re}))]}),P||y?jsx("div",{style:ie,className:a$8(c$2({isInline:n,isDisabled:r}),ne),children:(l||!P)&&y?jsx(b$3,{size:"sm",variant:"ghost",label:y,isDisabled:r,onPress:Ie}):jsx(b$3,{size:"sm",variant:"ghost",label:P,isDisabled:true})}):null]})});Q.displayName="ImageDropZone";function Te(t){let[u,n]=useState();if(a$e(()=>{if(!t||typeof t=="string"){n(void 0);return}let i=URL.createObjectURL(t);return n(i),()=>{URL.revokeObjectURL(i);}},[t]),!!t)return typeof t=="string"?t:u}function xe(t,u){if(!u)return true;let n=u.split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);if(n.length===0)return true;let i=t.type.toLowerCase(),g=t.name.toLowerCase();return n.some(s=>s==="*/*"?true:s.startsWith(".")?g.endsWith(s):i?s.endsWith("/*")?i.startsWith(s.slice(0,-1)):i===s:true)}var Ae=c$3({selectImage:{defaultMessage:"Select Image",id:"bui.imageDropZone.selectImage"}});export{Q as a};
@@ -0,0 +1,11 @@
1
+ import {a}from'./chunk-YFBMCK5O.mjs';import {a as a$3}from'./chunk-FNCHBVLF.mjs';import {a as a$2}from'./chunk-QXXKOFWM.mjs';import {b,c}from'./chunk-7MLFM55C.mjs';import {b as b$1}from'./chunk-K5RYVERS.mjs';import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {PauseIcon,PlayIcon}from'@baseline-ui/icons/24';import i 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 P="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69o _1yep5z69p _1yep5z69q",h="rta2n91 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z610h _1yep5z6w1 _1yep5z6w2 _1yep5z6w3 _1yep5z618m _1yep5z611i",k="rta2n90";var j=i.forwardRef(({className:T,style:I,size:x="lg",sources:d,playLabel:A,pauseLabel:S,audioTimelineLabel:C,playingLabel:B,pausedLabel:M,"data-block-id":w,"data-block-class":U,...R},H)=>{let t=i.useRef(null),{isPlaying:r,progress:N,duration:V,togglePlay:E,seek:D,formattedDuration:q,formattedCurrentTime:K,setProgress:L,setIsSliderDragging:p}=a(t,{playingLabel:B,pausedLabel:M}),{formatMessage:s}=b(),o=d.map(({url:e,type:n})=>`${n}|${e}`).join(`
11
+ `),u=i.useRef(o);i.useEffect(()=>{u.current!==o&&(u.current=o,t.current?.load());},[o]);let $=a$1({"data-block-id":w,"data-block-class":U,"data-state":r?"playing":"paused","data-loaded":V>0});return jsxs("div",{...$,...R,className:a$4(P,"BaselineUI-AudioPlayer",T),role:"group",style:I,ref:H,children:[jsx(b$1,{children:jsx("audio",{ref:t,children:d.map(({url:e,type:n})=>jsx("source",{src:e,type:n},e))})}),jsx(a$2,{icon:r?PauseIcon:PlayIcon,variant:"toolbar",isSelected:r,size:x,"aria-label":r?S??s(l.pause):A??s(l.play),style:{borderRadius:"50%"},onPress:E}),jsxs("div",{className:h,children:[jsx("span",{"aria-hidden":true,children:K}),jsx(a$3,{"aria-label":C??s(l.audioTimeline),value:N,minValue:0,maxValue:100,className:k,onChange:e=>{L(e),p(true);},onChangeEnd:e=>{D(e),p(false);}}),jsx("span",{"aria-hidden":true,children:q})]})]})});j.displayName="AudioPlayer";var l=c({play:{id:"bui.audioPlayer.play",defaultMessage:"Play"},pause:{id:"bui.audioPlayer.pause",defaultMessage:"Pause"},audioTimeline:{id:"bui.audioPlayer.audioTimeline",defaultMessage:"Audio timeline"}});export{j as a};
@@ -1,4 +1,4 @@
1
- import {a as a$2}from'./chunk-BIDNNBRG.mjs';import {b}from'./chunk-B6U6JHD4.mjs';import {d}from'./chunk-RCBUNCHV.mjs';import {e}from'./chunk-B7PSE5KC.mjs';import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {b as b$1,c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import R from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
1
+ import {a as a$3}from'./chunk-BIDNNBRG.mjs';import {d}from'./chunk-IROFSPEN.mjs';import {a as a$1}from'./chunk-NQIZ3U7Q.mjs';import {e}from'./chunk-AYQN3OH2.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$4}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import R 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
@@ -7,4 +7,4 @@ import {a as a$2}from'./chunk-BIDNNBRG.mjs';import {b}from'./chunk-B6U6JHD4.mjs'
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var w=a({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6dy _1yep5z6lq z9nup88",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9","success-secondary":"oom8bsa","warning-secondary":"oom8bsb","error-secondary":"oom8bsc","success-tertiary":"oom8bsd","warning-tertiary":"oom8bse","error-tertiary":"oom8bsf"},isDisabled:{true:"oom8bsg"},isFocusVisible:{true:"oom8bsh"},isHovered:{true:"oom8bsi"},size:{sm:"oom8bsj",md:"oom8bsk",lg:"oom8bsl"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"oom8bsm"],[{variant:"secondary",isHovered:true},"oom8bsn"],[{variant:"tertiary",isHovered:true},"oom8bso"],[{variant:"ghost",isHovered:true},"oom8bsp"],[{variant:"success",isHovered:true},"oom8bsq"],[{variant:"warning",isHovered:true},"oom8bsr"],[{variant:"error",isHovered:true},"oom8bss"],[{variant:"primary",isFocusVisible:true},"oom8bst"],[{variant:"tertiary",isFocusVisible:true},"oom8bsu"],[{variant:"success",isFocusVisible:true},"oom8bsv"],[{variant:"success-secondary",isHovered:true},"oom8bsw"],[{variant:"success-secondary",isFocusVisible:true},"oom8bsx"],[{variant:"success-tertiary",isHovered:true},"oom8bsy"],[{variant:"success-tertiary",isFocusVisible:true},"oom8bsz"],[{variant:"warning",isFocusVisible:true},"oom8bs10"],[{variant:"warning-secondary",isHovered:true},"oom8bs11"],[{variant:"warning-secondary",isFocusVisible:true},"oom8bs12"],[{variant:"warning-tertiary",isHovered:true},"oom8bs13"],[{variant:"warning-tertiary",isFocusVisible:true},"oom8bs14"],[{variant:"error",isFocusVisible:true},"oom8bs15"],[{variant:"error-secondary",isHovered:true},"oom8bs16"],[{variant:"error-secondary",isFocusVisible:true},"oom8bs17"],[{variant:"error-tertiary",isHovered:true},"oom8bs18"],[{variant:"error-tertiary",isFocusVisible:true},"oom8bs19"]]}),n=a({defaultClassName:"oom8bs1a _1yep5z6lq",variantClassNames:{isDisabled:{true:"oom8bs1b"},isFocusVisible:{true:"oom8bs1c"},isHovered:{true:"_1yep5z611p"},variant:{primary:"_1yep5z611w",secondary:"_1yep5z611s",tertiary:"_1yep5z611x",ghost:"_1yep5z611x",popover:"_1yep5z611s",toolbar:"_1yep5z611s",success:"_1yep5z611v",warning:"_1yep5z611v",error:"_1yep5z611v","success-secondary":"_1yep5z6113","warning-secondary":"_1yep5z6118","error-secondary":"_1yep5z610y","success-tertiary":"_1yep5z6112","warning-tertiary":"_1yep5z6117","error-tertiary":"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:true},"_1yep5z61of"],[{variant:"ghost",isHovered:true},"_1yep5z61oh"],[{variant:"tertiary",isFocusVisible:true},"_1yep5z61of"],[{variant:"success-secondary",isHovered:true},"_1yep5z61nn"],[{variant:"success-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"success-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"warning-secondary",isHovered:true},"_1yep5z61ns"],[{variant:"warning-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"warning-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"error-secondary",isHovered:true},"_1yep5z61ni"],[{variant:"error-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"error-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"secondary",isDisabled:true},"_1yep5z61od"],[{variant:"tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"ghost",isDisabled:true},"_1yep5z61od"],[{variant:"popover",isDisabled:true},"_1yep5z61od"],[{variant:"toolbar",isDisabled:true},"_1yep5z61od"],[{variant:"success-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"success-tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"warning-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"warning-tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"error-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"error-tertiary",isDisabled:true},"_1yep5z61od"]]});var q={sm:16,md:20,lg:24},F=R.forwardRef((D,C)=>{let[k,B]=e(D,C,d),{label:x,style:t,className:a,iconStart:c$1,iconEnd:u,variant:r="primary",elementType:p="button",isDisabled:e$1,size:m="sm","data-block-id":N,"data-block-class":h,slot:G,...A}=k,{buttonProps:P,isPressed:j,ref:I,isFocusVisible:o,isFocused:T,isHovered:s,uiStateOptions:b$2}=b({...A,elementType:p,isDisabled:e$1}),d$1=q[m],E=a$1({"data-block-id":N,"data-block-class":h,"data-disabled":e$1,"data-focused":T,"data-focus-visible":o,"data-hovered":s,"data-pressed":j});return jsxs(p,{...c(P,E),className:a$3(w({isDisabled:!!e$1,isFocusVisible:o,isHovered:s,variant:r,size:m}),"BaselineUI-ActionButton",typeof a=="function"?a(b$2):a),style:typeof t=="function"?t(b$2):t,ref:b$1(B,I),children:[!!c$1&&jsx(c$1,{size:d$1,className:n({variant:r,isDisabled:e$1,isFocusVisible:o,isHovered:s})}),x,!!u&&jsx(u,{size:d$1,className:n({variant:r,isDisabled:e$1,isFocusVisible:o,isHovered:s})}),r==="popover"&&jsx(CaretDownIcon,{size:8,className:a$2})]})});F.displayName="ActionButton";export{w as a,F as b};
10
+ var w=a({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6dy _1yep5z6lq z9nup88",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9","success-secondary":"oom8bsa","warning-secondary":"oom8bsb","error-secondary":"oom8bsc","success-tertiary":"oom8bsd","warning-tertiary":"oom8bse","error-tertiary":"oom8bsf"},isDisabled:{true:"oom8bsg"},isFocusVisible:{true:"oom8bsh"},isHovered:{true:"oom8bsi"},size:{sm:"oom8bsj",md:"oom8bsk",lg:"oom8bsl"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"oom8bsm"],[{variant:"secondary",isHovered:true},"oom8bsn"],[{variant:"tertiary",isHovered:true},"oom8bso"],[{variant:"ghost",isHovered:true},"oom8bsp"],[{variant:"success",isHovered:true},"oom8bsq"],[{variant:"warning",isHovered:true},"oom8bsr"],[{variant:"error",isHovered:true},"oom8bss"],[{variant:"primary",isFocusVisible:true},"oom8bst"],[{variant:"tertiary",isFocusVisible:true},"oom8bsu"],[{variant:"success",isFocusVisible:true},"oom8bsv"],[{variant:"success-secondary",isHovered:true},"oom8bsw"],[{variant:"success-secondary",isFocusVisible:true},"oom8bsx"],[{variant:"success-tertiary",isHovered:true},"oom8bsy"],[{variant:"success-tertiary",isFocusVisible:true},"oom8bsz"],[{variant:"warning",isFocusVisible:true},"oom8bs10"],[{variant:"warning-secondary",isHovered:true},"oom8bs11"],[{variant:"warning-secondary",isFocusVisible:true},"oom8bs12"],[{variant:"warning-tertiary",isHovered:true},"oom8bs13"],[{variant:"warning-tertiary",isFocusVisible:true},"oom8bs14"],[{variant:"error",isFocusVisible:true},"oom8bs15"],[{variant:"error-secondary",isHovered:true},"oom8bs16"],[{variant:"error-secondary",isFocusVisible:true},"oom8bs17"],[{variant:"error-tertiary",isHovered:true},"oom8bs18"],[{variant:"error-tertiary",isFocusVisible:true},"oom8bs19"]]}),n=a({defaultClassName:"oom8bs1a _1yep5z6lq",variantClassNames:{isDisabled:{true:"oom8bs1b"},isFocusVisible:{true:"oom8bs1c"},isHovered:{true:"_1yep5z611p"},variant:{primary:"_1yep5z611w",secondary:"_1yep5z611s",tertiary:"_1yep5z611x",ghost:"_1yep5z611x",popover:"_1yep5z611s",toolbar:"_1yep5z611s",success:"_1yep5z611v",warning:"_1yep5z611v",error:"_1yep5z611v","success-secondary":"_1yep5z6113","warning-secondary":"_1yep5z6118","error-secondary":"_1yep5z610y","success-tertiary":"_1yep5z6112","warning-tertiary":"_1yep5z6117","error-tertiary":"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:true},"_1yep5z61of"],[{variant:"ghost",isHovered:true},"_1yep5z61oh"],[{variant:"tertiary",isFocusVisible:true},"_1yep5z61of"],[{variant:"success-secondary",isHovered:true},"_1yep5z61nn"],[{variant:"success-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"success-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"warning-secondary",isHovered:true},"_1yep5z61ns"],[{variant:"warning-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"warning-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"error-secondary",isHovered:true},"_1yep5z61ni"],[{variant:"error-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"error-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"secondary",isDisabled:true},"_1yep5z61od"],[{variant:"tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"ghost",isDisabled:true},"_1yep5z61od"],[{variant:"popover",isDisabled:true},"_1yep5z61od"],[{variant:"toolbar",isDisabled:true},"_1yep5z61od"],[{variant:"success-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"success-tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"warning-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"warning-tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"error-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"error-tertiary",isDisabled:true},"_1yep5z61od"]]});var q={sm:16,md:20,lg:24},F=R.forwardRef((D,C)=>{let[k,B]=e(D,C,a$1),{label:x,style:t,className:a,iconStart:c$1,iconEnd:u,variant:r="primary",elementType:p="button",isDisabled:e$1,size:m="sm","data-block-id":N,"data-block-class":h,slot:G,...A}=k,{buttonProps:P,isPressed:j,ref:I,isFocusVisible:o,isFocused:T,isHovered:s,uiStateOptions:b$1}=d({...A,elementType:p,isDisabled:e$1}),d$1=q[m],E=a$2({"data-block-id":N,"data-block-class":h,"data-disabled":e$1,"data-focused":T,"data-focus-visible":o,"data-hovered":s,"data-pressed":j});return jsxs(p,{...c(P,E),className:a$4(w({isDisabled:!!e$1,isFocusVisible:o,isHovered:s,variant:r,size:m}),"BaselineUI-ActionButton",typeof a=="function"?a(b$1):a),style:typeof t=="function"?t(b$1):t,ref:b(B,I),children:[!!c$1&&jsx(c$1,{size:d$1,className:n({variant:r,isDisabled:e$1,isFocusVisible:o,isHovered:s})}),x,!!u&&jsx(u,{size:d$1,className:n({variant:r,isDisabled:e$1,isFocusVisible:o,isHovered:s})}),r==="popover"&&jsx(CaretDownIcon,{size:8,className:a$3})]})});F.displayName="ActionButton";export{w as a,F as b};
@@ -0,0 +1,10 @@
1
+ import {u}from'./chunk-PPHSLODC.mjs';import {e}from'./chunk-SD43KVTU.mjs';import {useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function d(e$1,t,n,r){let E=u(n),l=n==null;useEffect(()=>{if(!(l||e$1.current==null))return e(e$1.current,t,E,r)},[e$1,t,r,l]);}export{d as a};
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-HZM2XZP4.mjs';import {c as c$1}from'./chunk-XQC3DSTW.mjs';import {I}from'./chunk-676DOXEK.mjs';import {a as a$1}from'./chunk-3DWFAHR2.mjs';import {a}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-VXZT2JR2.mjs';import {a as a$4}from'./chunk-VDUFLHKK.mjs';import {d}from'./chunk-HH4VLTF3.mjs';import {a as a$3}from'./chunk-SVIYLH7R.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {sprinkles}from'@baseline-ui/tokens';import U,{useMemo,useState,useEffect}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 R="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",j="_1yep5z61sj _1yep5z61sk _1yep5z61sl _1yep5z61ih _1yep5z61ii _1yep5z61ij";var T=U.forwardRef(({className:c$2,style:s,items:t,optionsContainerClassName:d,label:o,icon:i,value:a$4,defaultValue:p,onChange:m,isDisabled:u,optionClassName:L,optionStyle:D,labelPosition:C="top","data-block-id":E,"data-block-class":F,shouldFocusWrap:M,tooltip:v=true,...l},K)=>{let P=useMemo(()=>t.map(e=>({id:e.color,label:e.label})),[t]),b$1=e=>(t.find(y=>y.color===e)??t.find(y=>b(y.color,e)))?.color??e,z=c(),[k,q]=useState(!!a$4);return a$4&&!k&&q(true),useEffect(()=>{!o&&!l["aria-label"]&&!l["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[o,l]),jsxs(a,{...a$3(l),className:a$2("BaselineUI-ColorSwatchPicker",c$2),"data-block-id":E,"data-block-class":F,display:"flex",flexDirection:C==="top"?"column":"row",alignItems:C==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:s,ref:K,children:[i||o?jsxs(a,{display:"flex",alignItems:"center",gap:"md",children:[i?jsx(i,{"aria-hidden":"true",size:24,className:sprinkles({color:"icon.primary"})}):null,o?jsx(a$1,{id:z,type:"label",size:"sm",children:o}):null]}):null,jsx(c$1,{className:a$2(j,d),selectionMode:"single",items:P,orientation:"horizontal",defaultSelectedKeys:p?[b$1(p)]:void 0,disabledKeys:u?P.map(e=>e.id):void 0,isDisabled:u,selectedKeys:a$4?[b$1(a$4)]:k?[]:void 0,onSelectionChange:e=>{m?.([...e][0]);},optionClassName:L,optionStyle:D,renderOption:(...e)=>J(...e,v),shouldFocusWrap:M,...l,"aria-labelledby":o?z:l["aria-labelledby"]})]})});T.displayName="ColorSwatchPicker";var J=({key:c,textValue:s},{isSelected:t,isFocusVisible:d$1,isDisabled:o,optionProps:i},a,p)=>{let{tooltipProps:m}=a$4({label:s,tooltip:p});return jsx(a$5,{...m,children:jsx(d,{children:jsx("li",{...i,"data-disabled":o||void 0,className:a$2(R,i.className),ref:a,children:jsx(I,{isFocusVisible:d$1,color:c,isSelected:t,"aria-label":s,isInteractive:true,isDisabled:o,tooltip:false})})})})};export{T as a};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-OMWMNUTI.mjs';import {a,d,b as b$3}from'./chunk-WFYFHANE.mjs';import {b as b$1}from'./chunk-XAM3AXXK.mjs';import {c as c$1}from'./chunk-QMV2O57M.mjs';import {b as b$4,a as a$b}from'./chunk-DF2D7NE6.mjs';import {b as b$2}from'./chunk-ZQOR4LCM.mjs';import {a as a$1}from'./chunk-7SQRBY7N.mjs';import {c as c$2,d as d$2}from'./chunk-W6QO7FPZ.mjs';import {c as c$4}from'./chunk-C4WHTPLY.mjs';import {a as a$6}from'./chunk-I7LPPUZS.mjs';import {b}from'./chunk-KG2EHFYA.mjs';import {a as a$a}from'./chunk-22VRCVTH.mjs';import {a as a$5}from'./chunk-JJG67M2S.mjs';import {c as c$3}from'./chunk-TZGK36KC.mjs';import {a as a$4}from'./chunk-Y2MIU76N.mjs';import {a as a$8}from'./chunk-AI6WQPRX.mjs';import {a as a$9}from'./chunk-FPM5UJRF.mjs';import {a as a$3}from'./chunk-4QBHQCCK.mjs';import {j,d as d$1}from'./chunk-KUDCYGII.mjs';import {o,i}from'./chunk-PPHSLODC.mjs';import {a as a$2,c as c$5}from'./chunk-3WKDIXCM.mjs';import {c as c$6}from'./chunk-ETM4MNG4.mjs';import {i as i$1,a as a$7,h,j as j$1}from'./chunk-SD43KVTU.mjs';import {useRef,useMemo,useEffect,useState,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 ze={"ar-AE":{buttonLabel:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0642\u062A\u0631\u062D\u0627\u062A",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} \u062E\u064A\u0627\u0631`,other:()=>`${n.number(e.optionCount)} \u062E\u064A\u0627\u0631\u0627\u062A`})} \u0645\u062A\u0627\u062D\u0629.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0627\u0644\u0645\u062F\u062E\u0644\u0629 ${e.groupTitle}, \u0645\u0639 ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} \u062E\u064A\u0627\u0631`,other:()=>`${n.number(e.groupCount)} \u062E\u064A\u0627\u0631\u0627\u062A`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \u0645\u062D\u062F\u062F",other:""},e.isSelected)}`,listboxLabel:"\u0645\u0642\u062A\u0631\u062D\u0627\u062A",selectedAnnouncement:e=>`${e.optionText}\u060C \u0645\u062D\u062F\u062F`},"bg-BG":{buttonLabel:"\u041F\u043E\u043A\u0430\u0436\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} \u043E\u043F\u0446\u0438\u044F`,other:()=>`${n.number(e.optionCount)} \u043E\u043F\u0446\u0438\u0438`})} \u043D\u0430 \u0440\u0430\u0437\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u0412\u044A\u0432\u0435\u0434\u0435\u043D\u0430 \u0433\u0440\u0443\u043F\u0430 ${e.groupTitle}, \u0441 ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} \u043E\u043F\u0446\u0438\u044F`,other:()=>`${n.number(e.groupCount)} \u043E\u043F\u0446\u0438\u0438`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \u0438\u0437\u0431\u0440\u0430\u043D\u0438",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",selectedAnnouncement:e=>`${e.optionText}, \u0438\u0437\u0431\u0440\u0430\u043D\u0438`},"cs-CZ":{buttonLabel:"Zobrazit doporu\u010Den\xED",countAnnouncement:(e,n)=>`K dispozici ${n.plural(e.optionCount,{one:()=>`je ${n.number(e.optionCount)} mo\u017Enost`,other:()=>`jsou/je ${n.number(e.optionCount)} mo\u017Enosti/-\xED`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Zadan\xE1 skupina \u201E${e.groupTitle}\u201C ${n.plural(e.groupCount,{one:()=>`s ${n.number(e.groupCount)} mo\u017Enost\xED`,other:()=>`se ${n.number(e.groupCount)} mo\u017Enostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:" (vybr\xE1no)",other:""},e.isSelected)}`,listboxLabel:"N\xE1vrhy",selectedAnnouncement:e=>`${e.optionText}, vybr\xE1no`},"da-DK":{buttonLabel:"Vis forslag",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} mulighed tilg\xE6ngelig`,other:()=>`${n.number(e.optionCount)} muligheder tilg\xE6ngelige`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} mulighed`,other:()=>`${n.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"de-DE":{buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} Option`,other:()=>`${n.number(e.optionCount)} Optionen`})} verf\xFCgbar.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} Option`,other:()=>`${n.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", ausgew\xE4hlt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgew\xE4hlt`},"el-GR":{buttonLabel:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03C0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03C9\u03BD",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE`,other:()=>`${n.number(e.optionCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 `})} \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B5\u03C2.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03BC\u03AD\u03BD\u03B7 \u03BF\u03BC\u03AC\u03B4\u03B1 ${e.groupTitle}, \u03BC\u03B5 ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE`,other:()=>`${n.number(e.groupCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF",other:""},e.isSelected)}`,listboxLabel:"\u03A0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",selectedAnnouncement:e=>`${e.optionText}, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5`},"en-US":{focusAnnouncement:(e,n)=>`${n.select({true:()=>`Entered group ${e.groupTitle}, with ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} option`,other:()=>`${n.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} option`,other:()=>`${n.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"},"es-ES":{buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} opci\xF3n`,other:()=>`${n.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} opci\xF3n`,other:()=>`${n.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`},"et-EE":{buttonLabel:"Kuva soovitused",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} valik`,other:()=>`${n.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Sisestatud r\xFChm ${e.groupTitle}, valikuga ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} valik`,other:()=>`${n.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`},"fi-FI":{buttonLabel:"N\xE4yt\xE4 ehdotukset",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} vaihtoehto`,other:()=>`${n.number(e.optionCount)} vaihtoehtoa`})} saatavilla.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Siirtyi ryhm\xE4\xE4n ${e.groupTitle}, jossa ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} vaihtoehto`,other:()=>`${n.number(e.groupCount)} vaihtoehtoa`})}.`,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`},"fr-FR":{buttonLabel:"Afficher les suggestions",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} option`,other:()=>`${n.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} option`,other:()=>`${n.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", s\xE9lectionn\xE9(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, s\xE9lectionn\xE9`},"he-IL":{buttonLabel:"\u05D4\u05E6\u05D2 \u05D4\u05E6\u05E2\u05D5\u05EA",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`\u05D0\u05E4\u05E9\u05E8\u05D5\u05EA ${n.number(e.optionCount)}`,other:()=>`${n.number(e.optionCount)} \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA`})} \u05D1\u05DE\u05E6\u05D1 \u05D6\u05DE\u05D9\u05DF.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u05E0\u05DB\u05E0\u05E1 \u05DC\u05E7\u05D1\u05D5\u05E6\u05D4 ${e.groupTitle}, \u05E2\u05DD ${n.plural(e.groupCount,{one:()=>`\u05D0\u05E4\u05E9\u05E8\u05D5\u05EA ${n.number(e.groupCount)}`,other:()=>`${n.number(e.groupCount)} \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \u05E0\u05D1\u05D7\u05E8",other:""},e.isSelected)}`,listboxLabel:"\u05D4\u05E6\u05E2\u05D5\u05EA",selectedAnnouncement:e=>`${e.optionText}, \u05E0\u05D1\u05D7\u05E8`},"hr-HR":{buttonLabel:"Prika\u017Ei prijedloge",countAnnouncement:(e,n)=>`Dostupno jo\u0161: ${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} opcija`,other:()=>`${n.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} opcijom`,other:()=>`${n.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`},"hu-HU":{buttonLabel:"Javaslatok megjelen\xEDt\xE9se",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} lehet\u0151s\xE9g`,other:()=>`${n.number(e.optionCount)} lehet\u0151s\xE9g`})} \xE1ll rendelkez\xE9sre.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Bel\xE9pett a(z) ${e.groupTitle} csoportba, amely ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} lehet\u0151s\xE9get`,other:()=>`${n.number(e.groupCount)} lehet\u0151s\xE9get`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", kijel\xF6lve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijel\xF6lve`},"it-IT":{buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} opzione disponibile`,other:()=>`${n.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} opzione`,other:()=>`${n.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`},"ja-JP":{buttonLabel:"\u5019\u88DC\u3092\u8868\u793A",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`,other:()=>`${n.number(e.optionCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`})}\u3092\u5229\u7528\u3067\u304D\u307E\u3059\u3002`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u5165\u529B\u3055\u308C\u305F\u30B0\u30EB\u30FC\u30D7 ${e.groupTitle}\u3001${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`,other:()=>`${n.number(e.groupCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`})}\u3092\u542B\u3080\u3002`,other:""},e.isGroupChange)}${e.optionText}${n.select({true:"\u3001\u9078\u629E\u6E08\u307F",other:""},e.isSelected)}`,listboxLabel:"\u5019\u88DC",selectedAnnouncement:e=>`${e.optionText}\u3001\u9078\u629E\u6E08\u307F`},"ko-KR":{buttonLabel:"\uC81C\uC548 \uC0AC\uD56D \uD45C\uC2DC",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)}\uAC1C \uC635\uC158`,other:()=>`${n.number(e.optionCount)}\uAC1C \uC635\uC158`})}\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\uC785\uB825\uD55C \uADF8\uB8F9 ${e.groupTitle}, ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)}\uAC1C \uC635\uC158`,other:()=>`${n.number(e.groupCount)}\uAC1C \uC635\uC158`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \uC120\uD0DD\uB428",other:""},e.isSelected)}`,listboxLabel:"\uC81C\uC548",selectedAnnouncement:e=>`${e.optionText}, \uC120\uD0DD\uB428`},"lt-LT":{buttonLabel:"Rodyti pasi\u016Blymus",countAnnouncement:(e,n)=>`Yra ${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} parinktis`,other:()=>`${n.number(e.optionCount)} parinktys (-i\u0173)`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u012Evesta grup\u0117 ${e.groupTitle}, su ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} parinktimi`,other:()=>`${n.number(e.groupCount)} parinktimis (-i\u0173)`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasi\u016Blymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`},"lv-LV":{buttonLabel:"R\u0101d\u012Bt ieteikumus",countAnnouncement:(e,n)=>`Pieejamo opciju skaits: ${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} opcija`,other:()=>`${n.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Ievad\u012Bta grupa ${e.groupTitle}, ar ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} opciju`,other:()=>`${n.number(e.groupCount)} opcij\u0101m`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", atlas\u012Bta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlas\u012Bta`},"nb-NO":{buttonLabel:"Vis forslag",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} alternativ`,other:()=>`${n.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} alternativ`,other:()=>`${n.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"nl-NL":{buttonLabel:"Suggesties weergeven",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} optie`,other:()=>`${n.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} optie`,other:()=>`${n.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`},"pl-PL":{buttonLabel:"Wy\u015Bwietlaj sugestie",countAnnouncement:(e,n)=>`dost\u0119pna/dost\u0119pne(-nych) ${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} opcja`,other:()=>`${n.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Do\u0142\u0105czono do grupy ${e.groupTitle}, z ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} opcj\u0105`,other:()=>`${n.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`},"pt-BR":{buttonLabel:"Mostrar sugest\xF5es",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} op\xE7\xE3o`,other:()=>`${n.number(e.optionCount)} op\xE7\xF5es`})} dispon\xEDvel.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} op\xE7\xE3o`,other:()=>`${n.number(e.groupCount)} op\xE7\xF5es`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugest\xF5es",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"pt-PT":{buttonLabel:"Apresentar sugest\xF5es",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} op\xE7\xE3o`,other:()=>`${n.number(e.optionCount)} op\xE7\xF5es`})} dispon\xEDvel.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} op\xE7\xE3o`,other:()=>`${n.number(e.groupCount)} op\xE7\xF5es`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugest\xF5es",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"ro-RO":{buttonLabel:"Afi\u0219are sugestii",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} op\u021Biune`,other:()=>`${n.number(e.optionCount)} op\u021Biuni`})} disponibile.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} op\u021Biune`,other:()=>`${n.number(e.groupCount)} op\u021Biuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`},"ru-RU":{buttonLabel:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${n.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432`})} \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u0412\u0432\u0435\u0434\u0435\u043D\u043D\u0430\u044F \u0433\u0440\u0443\u043F\u043F\u0430 ${e.groupTitle}, \u0441 ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u043C`,other:()=>`${n.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u043C\u0438",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",selectedAnnouncement:e=>`${e.optionText}, \u0432\u044B\u0431\u0440\u0430\u043D\u043E`},"sk-SK":{buttonLabel:"Zobrazi\u0165 n\xE1vrhy",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} mo\u017Enos\u0165`,other:()=>`${n.number(e.optionCount)} mo\u017Enosti/-\xED`})} k dispoz\xEDcii.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Zadan\xE1 skupina ${e.groupTitle}, s ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} mo\u017Enos\u0165ou`,other:()=>`${n.number(e.groupCount)} mo\u017Enos\u0165ami`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", vybrat\xE9",other:""},e.isSelected)}`,listboxLabel:"N\xE1vrhy",selectedAnnouncement:e=>`${e.optionText}, vybrat\xE9`},"sl-SI":{buttonLabel:"Prika\u017Ei predloge",countAnnouncement:(e,n)=>`Na voljo je ${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} opcija`,other:()=>`${n.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} opcija`,other:()=>`${n.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`},"sr-SP":{buttonLabel:"Prika\u017Ei predloge",countAnnouncement:(e,n)=>`Dostupno jo\u0161: ${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} opcija`,other:()=>`${n.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} opcijom`,other:()=>`${n.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`},"sv-SE":{buttonLabel:"Visa f\xF6rslag",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} alternativ`,other:()=>`${n.number(e.optionCount)} alternativ`})} tillg\xE4ngliga.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} alternativ`,other:()=>`${n.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"F\xF6rslag",selectedAnnouncement:e=>`${e.optionText}, valda`},"tr-TR":{buttonLabel:"\xD6nerileri g\xF6ster",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} se\xE7enek`,other:()=>`${n.number(e.optionCount)} se\xE7enekler`})} kullan\u0131labilir.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} se\xE7enek`,other:()=>`${n.number(e.groupCount)} se\xE7enekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", se\xE7ildi",other:""},e.isSelected)}`,listboxLabel:"\xD6neriler",selectedAnnouncement:e=>`${e.optionText}, se\xE7ildi`},"uk-UA":{buttonLabel:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u043F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${n.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438(-\u0456\u0432)`})} \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u0412\u0432\u0435\u0434\u0435\u043D\u0430 \u0433\u0440\u0443\u043F\u0430 ${e.groupTitle}, \u0437 ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${n.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438(-\u0456\u0432)`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \u0432\u0438\u0431\u0440\u0430\u043D\u043E",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457",selectedAnnouncement:e=>`${e.optionText}, \u0432\u0438\u0431\u0440\u0430\u043D\u043E`},"zh-CN":{buttonLabel:"\u663E\u793A\u5EFA\u8BAE",countAnnouncement:(e,n)=>`\u6709 ${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} \u4E2A\u9009\u9879`,other:()=>`${n.number(e.optionCount)} \u4E2A\u9009\u9879`})}\u53EF\u7528\u3002`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u8FDB\u5165\u4E86 ${e.groupTitle} \u7EC4\uFF0C\u5176\u4E2D\u6709 ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} \u4E2A\u9009\u9879`,other:()=>`${n.number(e.groupCount)} \u4E2A\u9009\u9879`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \u5DF2\u9009\u62E9",other:""},e.isSelected)}`,listboxLabel:"\u5EFA\u8BAE",selectedAnnouncement:e=>`${e.optionText}, \u5DF2\u9009\u62E9`},"zh-TW":{buttonLabel:"\u986F\u793A\u5EFA\u8B70",countAnnouncement:(e,n)=>`${n.plural(e.optionCount,{one:()=>`${n.number(e.optionCount)} \u9078\u9805`,other:()=>`${n.number(e.optionCount)} \u9078\u9805`})} \u53EF\u7528\u3002`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`\u8F38\u5165\u7684\u7FA4\u7D44 ${e.groupTitle}, \u6709 ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} \u9078\u9805`,other:()=>`${n.number(e.groupCount)} \u9078\u9805`})}. `,other:""},e.isGroupChange)}${e.optionText}${n.select({true:", \u5DF2\u9078\u53D6",other:""},e.isSelected)}`,listboxLabel:"\u5EFA\u8B70",selectedAnnouncement:e=>`${e.optionText}, \u5DF2\u9078\u53D6`}};function Ye(e,n){let{buttonRef:p,popoverRef:C,inputRef:u,listBoxRef:s,keyboardDelegate:l,layoutDelegate:x,shouldFocusWrap:N,isReadOnly:S,isDisabled:H}=e,ue=useRef(null);p=p??ue;let M=b(ze,"@react-aria/combobox"),{menuTriggerProps:f,menuProps:I}=c({type:"listbox",isDisabled:H||S},n,p);a.set(n,{id:I.id});let{collection:P}=n,{disabledKeys:G}=n.selectionManager,_=useMemo(()=>l||new b$1({collection:P,disabledKeys:G,ref:s,layoutDelegate:x}),[l,x,P,G,s]),{collectionProps:r}=c$1({selectionManager:n.selectionManager,keyboardDelegate:_,disallowTypeAhead:true,disallowEmptySelection:true,shouldFocusWrap:N,ref:u,isVirtualized:true}),L=o(),{keyboardProps:$}=j({shortcuts:{Enter:t=>{let i=n.isOpen;if(n.isOpen&&s.current&&n.selectionManager.focusedKey!=null){let m=n.collection.getItem(n.selectionManager.focusedKey);if(m?.props.href){let A=s.current.querySelector(`[data-key="${CSS.escape(n.selectionManager.focusedKey.toString())}"]`);return A instanceof HTMLAnchorElement&&L.open(A,t,m.props.href,m.props.routerOptions),n.close(),{shouldPreventDefault:i}}else if(m?.props.onAction)return m.props.onAction(),n.close(),{shouldPreventDefault:i}}return n.commit(),{shouldPreventDefault:i}},Tab:()=>{if(n.isOpen&&s.current&&n.selectionManager.focusedKey!=null){let t=n.collection.getItem(n.selectionManager.focusedKey);if(t?.props.href)return n.close(),{shouldPreventDefault:false};if(t?.props.onAction)return t.props.onAction(),n.close(),{shouldPreventDefault:false,shouldContinuePropagation:true}}return n.isOpen&&n.commit(),{shouldPreventDefault:false,shouldContinuePropagation:true}},Escape:()=>{let t=false;return (!n.selectionManager.isEmpty||n.inputValue===""||e.allowsCustomValue)&&(t=true),n.revert(),{shouldContinuePropagation:t}}}}),{keyboardProps:h$1}=j({shortcuts:{ArrowDown:()=>(n.open("first","manual"),{shouldPreventDefault:false}),ArrowUp:()=>(n.open("last","manual"),{shouldPreventDefault:false}),ArrowLeft:()=>(n.selectionManager.setFocusedKey(null),{shouldPreventDefault:false}),ArrowRight:()=>(n.selectionManager.setFocusedKey(null),{shouldPreventDefault:false})},allowRepeats:true}),le=t=>{let i=h(p.current,t.relatedTarget),m=h(C.current,t.relatedTarget);i||m||(e.onBlur&&e.onBlur(t),n.setFocused(false));},d$2=t=>{n.isFocused||(e.onFocus&&e.onFocus(t),n.setFocused(true));},U=Xe([n.selectionManager.selectedKeys,n.selectionManager.selectionMode]),{isInvalid:b$4,validationErrors:W,validationDetails:Q}=n.displayValidation,{labelProps:B,inputProps:V,descriptionProps:g,errorMessageProps:ee}=a$1({...e,isRequired:e.selectionMode==="multiple"?e.isRequired&&n.selectionManager.isEmpty:e.isRequired,onChange:n.setInputValue,onKeyDown:S?e.onKeyDown:a$2(n.isOpen&&r.onKeyDown,$.onKeyDown,h$1.onKeyDown,e.onKeyDown),onBlur:le,value:n.inputValue,defaultValue:n.defaultInputValue,onFocus:d$2,autoComplete:"off",validate:void 0,[c$2]:n,"aria-describedby":[U,e["aria-describedby"]].filter(Boolean).join(" ")||void 0},u);a$3(u,n.defaultValue,n.setValue);let ie=t=>{t.pointerType==="touch"&&(u.current?.focus(),n.toggle(null,"manual"));},Z=t=>{t.pointerType!=="touch"&&(u.current?.focus(),n.toggle(t.pointerType==="keyboard"||t.pointerType==="virtual"?"first":null,"manual"));},me=a$4({id:f.id,"aria-label":M.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||B.id}),a$9=a$4({id:I.id,"aria-label":M.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||B.id}),F=useRef(0),ce=t=>{if(H||S)return;if(t.timeStamp-F.current<500){t.preventDefault(),u.current?.focus();return}let i=j$1(t).getBoundingClientRect(),m=t.changedTouches[0],A=Math.ceil(i.left+.5*i.width),J=Math.ceil(i.top+.5*i.height);m.clientX===A&&m.clientY===J&&(t.preventDefault(),u.current?.focus(),n.toggle(null,"manual"),F.current=t.timeStamp);},y=n.selectionManager.focusedKey!=null&&n.isOpen?n.collection.getItem(n.selectionManager.focusedKey):void 0,k=y?.parentKey??null,T=n.selectionManager.focusedKey??null,R=useRef(k),K=useRef(T);useEffect(()=>{if(i()&&y!=null&&T!=null&&T!==K.current){let t=n.selectionManager.isSelected(T),i=k!=null?n.collection.getItem(k):null,m=i?.["aria-label"]||(typeof i?.rendered=="string"?i.rendered:"")||"",A=M.format("focusAnnouncement",{isGroupChange:(i&&k!==R.current)??false,groupTitle:m,groupCount:i?[...b$2(i,n.collection)].length:0,optionText:y["aria-label"]||y.textValue||"",isSelected:t});a$5(A);}R.current=k,K.current=T;});let v=d(n.collection),w=useRef(v),O=useRef(n.isOpen);useEffect(()=>{let t=n.isOpen!==O.current&&(n.selectionManager.focusedKey==null||i());if(n.isOpen&&(t||v!==w.current)){let i=M.format("countAnnouncement",{optionCount:v});a$5(i);}w.current=v,O.current=n.isOpen;});let q=useRef(n.selectedKey);return useEffect(()=>{if(i()&&n.isFocused&&n.selectedItem&&n.selectedKey!==q.current){let t=n.selectedItem["aria-label"]||n.selectedItem.textValue||"",i=M.format("selectedAnnouncement",{optionText:t});a$5(i);}q.current=n.selectedKey;}),useEffect(()=>{if(n.isOpen)return a$6([u.current,C.current].filter(t=>t!=null))},[n.isOpen,u,C]),c$3(()=>{!y&&u.current&&i$1(a$7(u.current))===u.current&&c$4(u.current,null);},[y]),a$8(s,"react-aria-item-action",n.isOpen?()=>{n.close();}:void 0),{labelProps:{...B,onClick:"htmlFor"in B&&B.htmlFor||e.isDisabled?void 0:()=>{u.current?.focus(),d$1("keyboard");}},buttonProps:{...f,...me,excludeFromTabOrder:true,preventFocusOnPress:true,onPress:ie,onPressStart:Z,isDisabled:H||S},inputProps:c$5(V,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":n.isOpen?I.id:void 0,"aria-autocomplete":"list","aria-activedescendant":y?b$3(n,y.key):void 0,onTouchEnd:ce,autoCorrect:"off",spellCheck:"false"}),listBoxProps:c$5(I,a$9,{onAction:void 0,autoFocus:n.focusStrategy||true,shouldUseVirtualFocus:true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:U},descriptionProps:g,errorMessageProps:ee,isInvalid:b$4,validationErrors:W,validationDetails:Q}}function Xe(e=[]){let n=c$6(),[p,C]=useState(true),[u,s]=useState(e);return u.some((l,x)=>!Object.is(l,e[x]))&&(C(true),s(e)),useEffect(()=>{p&&!document.getElementById(n)&&C(false);},[n,p,u]),p?n:void 0}function Qe(e){let{defaultFilter:n,menuTrigger:p="input",allowsEmptyCollection:C=false,allowsCustomValue:u,shouldCloseOnBlur:s=true,selectionMode:l="single"}=e,[x,N]=useState(false),[S,H]=useState(false),[ue,M]=useState(null),f=useRef(false),I=useMemo(()=>e.defaultValue!==void 0?e.defaultValue:l==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,l]),P=useMemo(()=>e.value!==void 0?e.value:l==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,l]),[G,_]=a$9(P,I,e.onChange),r=l==="single"&&Array.isArray(G)?G[0]:G,L=o=>{if(l==="single"){let c=Array.isArray(o)?o[0]??null:o;_(c),c!==r&&e.onSelectionChange?.(c);}else {let c=[];Array.isArray(o)?c=o:o!=null&&(c=[o]),_(c);}},{collection:$,selectionManager:h,disabledKeys:le}=b$4({...e,items:e.items??e.defaultItems,selectionMode:l,disallowEmptySelection:l==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>nn(r),[r]),onSelectionChange:o=>{if(o!=="all")if(l==="single"){let c=o.values().next().value??null;c===r?(e.onSelectionChange?.(c),w(),T()):L(c);}else L([...o]);}}),d=l==="single"?h.firstSelectedKey:null,U=useMemo(()=>[...h.selectedKeys].map(o=>$.getItem(o)).filter(o=>o!=null),[h.selectedKeys,$]),[b,W]=a$9(e.inputValue,He(e.defaultInputValue,d,$)||"",e.onInputChange),[Q]=useState(r),[B]=useState(b),V=$,g=useMemo(()=>e.items!=null||!n?$:en($,b,n),[$,b,n,e.items]),[ee,ie]=useState(g),Z=useRef("focus"),a=a$a({...e,onOpenChange:o=>{e.onOpenChange&&e.onOpenChange(o,o?Z.current:void 0),h.setFocused(o),o||h.setFocusedKey(null);},isOpen:void 0,defaultOpen:void 0}),F=(o=null,c)=>{let Y=c==="manual"||c==="focus"&&p==="focus";(C||g.size>0||Y&&V.size>0||e.items)&&(Y&&!a.isOpen&&e.items===void 0&&N(true),Z.current=c,M(o),a.open());},ce=(o=null,c)=>{let Y=c==="manual"||c==="focus"&&p==="focus";!(C||g.size>0||Y&&V.size>0||e.items)&&!a.isOpen||(Y&&!a.isOpen&&e.items===void 0&&N(true),a.isOpen||(Z.current=c),k(o));},y=useCallback(()=>{ie(x?V:g);},[x,V,g]),k=useCallback((o=null)=>{a.isOpen&&y(),M(o),a.toggle();},[a,y]),T=useCallback(()=>{a.isOpen&&(y(),a.close());},[a,y]),[R,K]=useState(b),v=useRef(false),w=()=>{let o=d!=null?$.getItem(d)?.textValue??"":"";v.current=false,K(o),W(o);},O=useRef(r),q=useRef(d!=null?$.getItem(d)?.textValue??"":"");useEffect(()=>{S&&(g.size>0||C)&&!a.isOpen&&b!==R&&p!=="manual"&&F(null,"input"),!x&&!C&&a.isOpen&&g.size===0&&(f.current=true,T()),S&&f.current&&g.size>0&&!a.isOpen&&p!=="manual"&&(f.current=false,F(null,"input")),r!=null&&r!==O.current&&l==="single"&&T(),b!==R&&(v.current=true,h.setFocusedKey(null),N(false),l==="single"&&b===""&&(e.inputValue===void 0||P===void 0)&&L(null)),r!==O.current&&(e.inputValue===void 0||P===void 0)?w():R!==b&&K(b);let o=d!=null?$.getItem(d)?.textValue??"":"";(!S||!v.current)&&d!=null&&e.inputValue===void 0&&d===O.current&&q.current!==o&&(v.current=false,K(o),W(o)),O.current=r,q.current=o;});let t=d$2({...e,value:useMemo(()=>Array.isArray(r)&&r.length===0?null:{inputValue:b,value:r,selectedKey:d},[b,d,r])}),i=()=>{f.current=false,u&&d==null?m():A();},m=()=>{if(l==="multiple"){K(b),T();return}let o=null;O.current=o,L(o),T();},A=(o=false)=>{if(P!==void 0&&e.inputValue!==void 0){let c=d!=null?$.getItem(d)?.textValue??"":"";(o||l==="multiple"||b!==c)&&(e.onSelectionChange?.(d),e.onChange?.(r)),K(c),T();}else w(),T();},J=()=>{if(f.current=false,u){let o=d!=null?$.getItem(d)?.textValue??"":"";b===o?A():m();}else A();},We=()=>{a.isOpen&&h.focusedKey!=null?h.isSelected(h.focusedKey)&&l==="single"?A(true):h.select(h.focusedKey):J();},pe=useRef([b,r]),Ze=o=>{o?(pe.current=[b,r],p==="focus"&&!e.isReadOnly&&F(null,"focus")):(s&&J(),(b!==pe.current[0]||r!==pe.current[1])&&t.commitValidation()),H(o);},qe=useMemo(()=>a.isOpen?x?V:g:ee,[a.isOpen,V,g,x,ee]),Ce=e.defaultSelectedKey??(l==="single"?Q:null);return {...t,...a,focusStrategy:ue,toggle:ce,open:F,close:J,selectionManager:h,value:r,defaultValue:I??Q,setValue:L,selectedKey:d,selectedItems:U,defaultSelectedKey:Ce,setSelectedKey:L,disabledKeys:le,isFocused:S,setFocused:Ze,selectedItem:U[0]??null,collection:qe,inputValue:b,defaultInputValue:He(e.defaultInputValue,Ce,$)??B,setInputValue:W,commit:We,revert:i}}function en(e,n,p){return new a$b(Ue(e,e,n,p))}function Ue(e,n,p,C){let u=[];for(let s of n)if(s.type==="section"&&s.hasChildNodes){let l=Ue(e,b$2(s,e),p,C);[...l].some(x=>x.type==="item")&&u.push({...s,childNodes:l});}else s.type==="item"&&C(s.textValue,p)?u.push({...s}):s.type!=="item"&&u.push({...s});return u}function He(e,n,p){return e==null&&n!=null?p.getItem(n)?.textValue??"":e}function nn(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}export{Ye as a,Qe as b};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {forwardRef,createContext,useRef,useMemo,useContext,useState,useCallback}from'react';import {jsx,Fragment}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var M=Symbol("default");function Y({values:e,children:t}){for(let[r,o]of e)t=jsx(r.Provider,{value:o,children:t});return t}function Z(e){let{className:t,style:r,children:o,defaultClassName:l=void 0,defaultChildren:n=void 0,defaultStyle:a,values:i,render:d}=e;return useMemo(()=>{let c,u,s;return typeof t=="function"?c=t({...i,defaultClassName:l}):c=t,typeof r=="function"?u=r({...i,defaultStyle:a||{}}):u=r,typeof o=="function"?s=o({...i,defaultChildren:n}):o==null?s=n:s=o,{className:c??l,style:u||a?{...a,...u}:void 0,children:s??n,"data-rac":"",render:d?C=>d(C,i):void 0}},[t,r,o,l,n,a,i,d])}function D(e,t){let r=useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let o=t||M;if(!r.slots[o]){let l=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),n=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${n} Valid slot names are ${l}.`)}return r.slots[o]}return r}function ee(e,t,r){let o=D(r,e.slot)||{},{ref:l,...n}=o,a=a$1(useMemo(()=>b(t,l),[t,l])),i=c(n,e);return "style"in n&&n.style&&"style"in e&&e.style&&(typeof n.style=="function"||typeof e.style=="function"?i.style=d=>{let c=typeof n.style=="function"?n.style(d):n.style,u={...d.defaultStyle,...c},s=typeof e.style=="function"?e.style({...d,defaultStyle:u}):e.style;return {...u,...s}}:i.style={...n.style,...e.style}),[i,a]}function re(e=true){let[t,r]=useState(e),o=useRef(false),l=useCallback(n=>{o.current=true,r(!!n);},[]);return a(()=>{o.current||r(false);},[]),[l,t]}function te(e){let t=/^(data-.*)$/,r={};for(let o in e)t.test(o)||(r[o]=e[o]);return r}function A(e,t,r){let{render:o,...l}=t,n=useRef(null),a$1=useMemo(()=>b(r,n),[r,n]);a(()=>{process.env.NODE_ENV!=="production"&&o&&(n.current?n.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${n.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));},[e,o]);let i={...l,ref:a$1};return o?o(i,void 0):jsx(e,{...i})}var T={},oe=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=T[t];return r||(r=forwardRef(A.bind(null,t)),T[t]=r),r}});typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:true,enumerable:true,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:true,enumerable:true,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:true,enumerable:true,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:true,enumerable:true,value:function(e,t){return this.content.insertBefore(e,t)}}));var f=createContext(false);function fe(e){if(useContext(f))return jsx(Fragment,{children:e.children});let r=jsx(f.Provider,{value:true,children:e.children});return jsx("template",{children:r})}function g(e){let t=(r,o)=>useContext(f)?null:e(r,o);return t.displayName=e.displayName||e.name,forwardRef(t)}function F(){return useContext(f)}export{M as a,Y as b,Z as c,D as d,ee as e,re as f,te as g,oe as h,fe as i,g as j,F as k};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {a,h,j}from'./chunk-SD43KVTU.mjs';import {useState,useRef,useEffect,useMemo}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 p=false,f=0;function c(){p=true,setTimeout(()=>{p=false;},500);}function M(r){r.pointerType==="touch"&&c();}function A(r=document){if(!(typeof r>"u"))return f===0&&(typeof PointerEvent<"u"?r.addEventListener("pointerup",M):process.env.NODE_ENV==="test"&&r.addEventListener("touchend",c)),f++,()=>{f--,!(f>0)&&(typeof PointerEvent<"u"?r.removeEventListener("pointerup",M):process.env.NODE_ENV==="test"&&r.removeEventListener("touchend",c));}}function S(r,L){let{onHoverStart:E,onHoverChange:u,onHoverEnd:d,isDisabled:o}=r,[O,H]=useState(false),t=useRef({isHovered:false,ignoreEmulatedMouseEvents:false,pointerType:"",target:null}).current;useEffect(()=>A(a(L?.current)),[]);let{addGlobalListener:b,removeAllGlobalListeners:h$1}=a$1(),{hoverProps:x,triggerHoverEnd:G}=useMemo(()=>{let y=(e,s)=>{if(t.pointerType=s,o||s==="touch"||t.isHovered||!h(e.currentTarget,j(e)))return;t.isHovered=true;let a$1=e.currentTarget;t.target=a$1,b(a(j(e)),"pointerover",g=>{t.isHovered&&t.target&&!h(t.target,j(g))&&v(g,g.pointerType);},{capture:true}),E&&E({type:"hoverstart",target:a$1,pointerType:s}),u&&u(true),H(true);},v=(e,s)=>{let a=t.target;t.pointerType="",t.target=null,!(s==="touch"||!t.isHovered||!a)&&(t.isHovered=false,h$1(),d&&d({type:"hoverend",target:a,pointerType:s}),u&&u(false),H(false));},n={};return typeof PointerEvent<"u"?(n.onPointerEnter=e=>{p&&e.pointerType==="mouse"||y(e,e.pointerType);},n.onPointerLeave=e=>{!o&&h(e.currentTarget,j(e))&&v(e,e.pointerType);}):process.env.NODE_ENV==="test"&&(n.onTouchStart=()=>{t.ignoreEmulatedMouseEvents=true;},n.onMouseEnter=e=>{!t.ignoreEmulatedMouseEvents&&!p&&y(e,"mouse"),t.ignoreEmulatedMouseEvents=false;},n.onMouseLeave=e=>{!o&&h(e.currentTarget,j(e))&&v(e,"mouse");}),{hoverProps:n,triggerHoverEnd:v}},[E,u,d,o,t,b,h$1]);return useEffect(()=>{o&&G({currentTarget:t.target},t.pointerType);},[o]),{hoverProps:x,isHovered:O}}export{S as a};
@@ -1,4 +1,4 @@
1
- import {b}from'./chunk-QR2AF3KT.mjs';import {a}from'./chunk-OO7BXL2N.mjs';import {useContext}from'react';/**
1
+ import {b}from'./chunk-YDUKC7QS.mjs';import {a}from'./chunk-OO7BXL2N.mjs';import {useContext}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,b}from'./chunk-CENNHSIS.mjs';import {a as a$1}from'./chunk-HABKIEKC.mjs';import {b as b$1,a as a$3}from'./chunk-I7LPPUZS.mjs';import {b as b$2}from'./chunk-4S4GGUSH.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-ETM4MNG4.mjs';import {a as a$4}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
+ function M(n,e){let{triggerRef:s,popoverRef:r,groupRef:t,isNonModal:o,isKeyboardDismissDisabled:b$3,shouldCloseOnInteractOutside:v,shouldCloseOnScroll:l=true,...i}=n,p=i.trigger==="SubmenuTrigger",{overlayProps:R,underlayProps:y}=a({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:true,isDismissable:!o||p,isKeyboardDismissDisabled:b$3,shouldCloseOnInteractOutside:v},t??r),{overlayProps:A,arrowProps:D,placement:h,triggerAnchorPoint:x,updatePosition:C}=a$1({...i,targetRef:s,overlayRef:r,isOpen:e.isOpen,shouldCloseOnScroll:l,onClose:o&&!p&&l?e.close:null,getTargetRect:i.getTargetRect??(e.point?()=>new DOMRect(e.point.x,e.point.y,0,0):void 0)}),E=r.current?.ownerDocument.documentElement??s.current?.ownerDocument.documentElement;b({isDisabled:o||!e.isOpen,root:E},r),a$2(()=>{if(e.isOpen&&r.current)return o?b$1(t?.current??r.current):a$3([t?.current??r.current],{shouldUseInert:false,root:a$4(r.current)?.body})},[o,e.isOpen,r,t]);let{focusWithinProps:w}=b$2(n);return {popoverProps:c(R,A,w),arrowProps:D,underlayProps:y,placement:h,triggerAnchorPoint:x,updatePosition:C}}export{M as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$a}from'./chunk-5HXTXIE5.mjs';import {a as a$3}from'./chunk-MZIQ27JP.mjs';import {d,a as a$9,c as c$2,b as b$3}from'./chunk-5MUEJ5WI.mjs';import {a as a$8}from'./chunk-RO5ZRU3Y.mjs';import {a as a$5}from'./chunk-3DWFAHR2.mjs';import {a}from'./chunk-R6TFTLMV.mjs';import {b,c as c$3}from'./chunk-7MLFM55C.mjs';import {b as b$2}from'./chunk-AFOW62QN.mjs';import {a as a$6}from'./chunk-DAI7V4TE.mjs';import {b as b$1}from'./chunk-K5RYVERS.mjs';import {a as a$4}from'./chunk-2VY4FAOY.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {c as c$1,b as b$4}from'./chunk-3WKDIXCM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {UndoIcon,RedoIcon}from'@baseline-ui/icons/16';import {getStroke}from'perfect-freehand';import h,{useState,useCallback,useEffect,useMemo,useRef}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function de({line:t,options:o}){let r=useRef([]),m=useMemo(()=>{let i=Math.ceil(t.length/P),d;for(let a=0;a<i;a++)if(!(!(a===i-1)&&!!r.current[a])){let C=t.slice(a*P-(a>0?1:0),a*P+P);d=a$a(getStroke(C.map(([k,g,l])=>({x:k,y:g,pressure:l})),o)),C.length>=(a>0?P+1:P)&&(r.current[a]=d);}return d},[t,o]);return [...r.current,m]}var P=180;var Xe={size:1,thinning:0,smoothing:0,streamline:0,easing:t=>t,start:{taper:0,easing:t=>t,cap:true},end:{taper:0,easing:t=>t,cap:true},simulatePressure:false},ce=h.forwardRef(({className:t,style:o,canvasClassName:r,canvasStyle:m,isBound:i=true,strokeWidth:d$1=2,strokeColor:a$a="#3A87FD",onChange:v,defaultValue:H,onChangeEnd:C,enableHistory:k=false,isInline:g=true,isDisabled:l,placeholder:E,clearLabel:R,undoLabel:he,redoLabel:ve,footerClassName:ge,canvasRef:Pe,value:N,footerStyle:Ce,"data-block-id":ke,"data-block-class":ye,"aria-label":Se="Drawing canvas",description:be="This is a canvas for drawing using a mouse or touch input.",...f},Fe)=>{let T=b(),De=h.useRef(null),[u,S]=h.useState(N||H||[]),U=h.useMemo(()=>({...Xe,...f}),[f]),[c$3,z]=h.useState(),V=c(),{labelProps:Ee,fieldProps:Re}=a({...f,"aria-label":Se,labelElementType:"span"}),{isFocusVisible:Me,focusProps:we}=a$1({within:true}),{hoverProps:Le,isHovered:Oe}=a$2({isDisabled:l}),{undo:I,redo:x,canRedo:K,canUndo:G,push:W}=a$3(u,{onAction:e=>{e&&(S(e),C?.(e));},isDisabled:!k}),{keyboardProps:He}=j({onKeyDown:e=>{e.key==="Backspace"?A():e.key==="z"&&(e.metaKey||e.ctrlKey)&&(e.shiftKey?K&&x():G&&I());}}),[Ne,_]=useState(false),Te=useCallback(e=>{let p=e.currentTarget.getBoundingClientRect();z(p),e.target.setPointerCapture(e.pointerId);let y=[e.clientX-p.x,e.clientY-p.y,e.pressure];S(s=>[...s,[y]]),_(true);},[]),Ue=useCallback(e=>{if(e.buttons!==1||!c$3)return;let y=ue(e.nativeEvent).map(s=>[i?a$4(s.clientX-c$3.left,0,c$3.width):s.clientX-c$3.left,i?a$4(s.clientY-c$3.top,0,c$3.height):s.clientY-c$3.top,s.pressure]);S(s=>{let M=[...s];return M[s.length-1]=[...M[s.length-1],...y],M});},[c$3,i]),ze=()=>{c$3&&(C?.(u),W(u),_(false),z(void 0));};useEffect(()=>{v?.(u);},[u,v]);let A=()=>{S([]),v?.([]),W([]);};return jsxs("div",{ref:b$4(De,Fe),className:a$7(b$3,"BaselineUI-FreehandCanvas",t),style:o,"aria-disabled":l,"data-block-id":ke,"data-block-class":ye,children:[f.label||k?jsxs("div",{className:d({isInline:g}),children:[f.label?jsx(a$5,{type:"label",size:"sm",...Ee,children:f.label}):jsx("span",{}),k?jsxs("div",{children:[jsx(a$6,{variant:"secondary",size:"sm",isDisabled:!G||l,icon:UndoIcon,onPress:I,"aria-label":he||T.formatMessage(me.undo)}),jsx(a$6,{variant:"secondary",size:"sm",isDisabled:!K||l,icon:RedoIcon,onPress:x,"aria-label":ve||T.formatMessage(me.redo)})]}):null]}):null,jsxs("div",{role:"application",...c$1(we,He,Le,Re),tabIndex:l?void 0:0,className:a$7(a$8({isInline:g,isHovered:Oe}),a$9({isFocusVisible:Me,isInline:g,isDisabled:!!l}),r),"aria-describedby":f["aria-describedby"]||V,style:m,ref:Pe,children:[jsx(b$1,{children:jsx("div",{id:V,children:be})}),jsx("svg",{width:m?.width||"100%",height:m?.height||"100%",onPointerDown:Te,onPointerMove:Ue,onPointerUp:ze,children:(N||u).map((e,p,y)=>p<y.length-1||!Ne?jsx(pe,{line:e,options:U,strokeColor:a$a,strokeWidth:d$1},p):jsx(fe,{line:e,options:U,strokeColor:a$a,strokeWidth:d$1},p))})]}),E||R?jsx("div",{style:Ce,className:a$7(c$2({isInline:g,isDisabled:l}),ge),children:(u.length||!E)&&R?jsx(b$2,{size:"sm",variant:"ghost",label:R,isDisabled:l,onPress:A}):jsx(b$2,{size:"sm",variant:"ghost",label:E,isDisabled:true})}):null]})});ce.displayName="FreehandCanvas";var pe=h.memo(({line:t,options:o,strokeColor:r,strokeWidth:m})=>{let i=useMemo(()=>a$a(getStroke(t.map(([d,a,v])=>({x:d,y:a,pressure:v})),o)),[t,o]);return jsx("path",{d:i,stroke:r,strokeWidth:m})});pe.displayName="Stroke";var fe=h.memo(({line:t,options:o,strokeColor:r,strokeWidth:m})=>{let i=de({line:t,options:o});return jsx(Fragment,{children:i.map((d,a)=>jsx("path",{d,stroke:r,strokeWidth:m},a))})});fe.displayName="SplitStroke";function ue(t){if(typeof t.getCoalescedEvents=="function"){let o=t.getCoalescedEvents();return o.length>0?o.flatMap(r=>ue(r)):[t]}return [t]}var me=c$3({undo:{defaultMessage:"Undo",id:"bui.freehandCanvas.undo"},redo:{defaultMessage:"Redo",id:"bui.freehandCanvas.redo"}});export{ce as a};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-OQPYPKZV.mjs';import {a as a$1}from'./chunk-GMALMQWI.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-K5RYVERS.mjs';import {a as a$4}from'./chunk-Y2MIU76N.mjs';import {a as a$2}from'./chunk-HH4VLTF3.mjs';import {a as a$3}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-SD43KVTU.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import h,{createContext,useState,useMemo,useContext}from'react';import N from'react-dom';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 O=createContext({});function v(){return useContext(O)??{}}var R=h.createContext(null);function A(e){let t=b(),{portalContainer:s=t?null:a(null).body,isExiting:n}=e,[o,a$3]=useState(false),y=useMemo(()=>({contain:o,setContain:a$3}),[o,a$3]),{getContainer:m}=v();if(!e.portalContainer&&m&&(s=m()),!s)return null;let i=e.children;return e.disableFocusManagement||(i=jsx(a$1,{restoreFocus:true,contain:(e.shouldContainFocus||o)&&!n,ownerDocument:a(s),children:i})),i=jsx(R.Provider,{value:y,children:jsx(c,{children:jsx(a$2.Provider,{value:null,children:i})})}),N.createPortal(i,s)}function q(){let t=useContext(R)?.setContain;a$3(()=>{t?.(true);},[t]);}var S={"ar-AE":{dismiss:"\u062A\u062C\u0627\u0647\u0644"},"bg-BG":{dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xDFen"},"el-GR":{dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xF5peta"},"fi-FI":{dismiss:"Hylk\xE4\xE4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xEDt\xE1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"\u9589\u3058\u308B"},"ko-KR":{dismiss:"\uBB34\uC2DC"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Ner\u0101d\u012Bt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"},"sk-SK":{dismiss:"Zru\u0161i\u0165"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-CN":{dismiss:"\u53D6\u6D88"},"zh-TW":{dismiss:"\u95DC\u9589"}};function k(e){let{onDismiss:t,...s}=e,n=b$1(S,"@react-aria/overlays"),o=a$4(s,n.format("dismiss"));return jsx(b$2,{children:jsx("button",{...o,tabIndex:-1,onClick:()=>{t&&t();},style:{width:1,height:1}})})}export{k as a,A as b,q as c};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-R6TFTLMV.mjs';import {a as a$3}from'./chunk-RPIUPWPO.mjs';import {a as a$2}from'./chunk-2VY4FAOY.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-SVIYLH7R.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 d(a$4){let{value:r=0,minValue:e=0,maxValue:s=100,valueLabel:o,isIndeterminate:t,formatOptions:p={style:"percent"}}=a$4,g=a(a$4,{labelable:true}),{labelProps:B,fieldProps:f}=a$1({...a$4,labelElementType:"span"});r=a$2(r,e,s);let i=s-e,b=i===0?0:(r-e)/i,x=a$3(p);if(!t&&!o){let c=p.style==="percent"?b:r;o=x.format(c);}return {progressBarProps:c(g,{...f,"aria-valuenow":t?void 0:r,"aria-valuemin":e,"aria-valuemax":s,"aria-valuetext":t?void 0:o,role:"progressbar"}),labelProps:B}}export{d as a};
@@ -0,0 +1,10 @@
1
+ import r from'dompurify';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var i=e=>e.charAt(0).toUpperCase()+e.slice(1),s=e=>typeof DOMParser>"u"?e.replaceAll(/<[^<>]*>/g,""):new DOMParser().parseFromString(r.sanitize(e),"text/html").body.textContent||"";export{i as a,s as b};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-4QEH5CGK.mjs';import {createContext,forwardRef,useEffect,useImperativeHandle,useMemo,useContext}from'react';import {usePanelRef,Panel,useGroupRef,useDefaultLayout,Group,Separator}from'react-resizable-panels';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var b=createContext({});function h(){return useContext(b)}function m(e){return typeof e=="number"?`${e}%`:e}var S=forwardRef(({className:e,isCollapsible:r=false,id:t,onResize:i,defaultSize:d,minSize:f,maxSize:p,collapsedSize:u,...P},o)=>{let a$1=usePanelRef(),g=c(),c$1=t??g,{autoSaveId:l}=h();return useEffect(()=>{l&&!t&&console.warn("Panel: A stable `id` prop is required for size persistence to work correctly when `autoSaveId` is set on the parent `PanelGroup`. Without it, panel sizes will not be saved or restored.");},[l,t]),useImperativeHandle(o,()=>({resize:n=>a$1.current?.resize(n)})),jsx(Panel,{className:a("BaselineUI-Panel",e),collapsible:r,panelRef:a$1,id:c$1,defaultSize:m(d),minSize:m(f),maxSize:m(p),collapsedSize:m(u),onResize:i?n=>{i(n.asPercentage);}:void 0,...P})});S.displayName="Panel";var U={getItem:()=>null,setItem:()=>{}},V={getItem:e=>{try{return localStorage.getItem(e)}catch{return null}},setItem:(e,r)=>{try{localStorage.setItem(e,r);}catch(t){if(t?.name!=="SecurityError")throw t}}},q=forwardRef(({className:e,autoSaveId:r,direction:t,onLayout:i,...d},f)=>{let p=useGroupRef();useImperativeHandle(f,()=>({setLayout:o=>{let a=p.current;if(!a)return;let g=a.getLayout(),c=Object.keys(g);if(c.length>0){let l={};for(let n of c)n in o&&(l[n]=o[n]);a.setLayout(l);}else a.setLayout(o);}}));let u=useDefaultLayout({id:r??"",storage:r?V:U}),P=useMemo(()=>({autoSaveId:r}),[r]);return jsx(b.Provider,{value:P,children:jsx(Group,{className:a("BaselineUI-PanelGroup",e),groupRef:p,orientation:t,defaultLayout:r?u.defaultLayout:void 0,onLayoutChanged:o=>{r&&u.onLayoutChanged(o),i&&i(o);},...d})})});q.displayName="PanelGroup";var z="_6abhjk0";var D=({className:e,isDisabled:r=false,...t})=>jsx(Separator,{disabled:r,className:a(z,"BaselineUI-PanelResizeHandle",e),...t});D.displayName="PanelResizeHandle";export{S as a,q as b,D as c};
@@ -0,0 +1,10 @@
1
+ import {a as a$3}from'./chunk-5USQ6HBY.mjs';import {a}from'./chunk-6QQEK5I6.mjs';import {d,c}from'./chunk-W6QO7FPZ.mjs';import {a as a$2}from'./chunk-4QBHQCCK.mjs';import {c as c$1}from'./chunk-HH4VLTF3.mjs';import {d as d$1}from'./chunk-F7WPMQ3P.mjs';import {c as c$2}from'./chunk-3WKDIXCM.mjs';import {a as a$1}from'./chunk-SVIYLH7R.mjs';import {j}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 pe(r,i,t){let{isDisabled:a$4=false,isReadOnly:l=false,value:u,name:R,form:V,children:k,isRequired:b,validationBehavior:P="aria","aria-label":C,"aria-labelledby":x,"aria-describedby":F,onPressStart:c$3,onPressEnd:m,onPressChange:n,onPress:f,onPressUp:g,onClick:v}=r,s=d({...r,value:i.isSelected}),{isInvalid:T,validationErrors:j$1,validationDetails:q}=s.displayValidation;a(r,s,t);let W=e=>{e.stopPropagation(),i.setSelected(j(e).checked);},B=k!=null,N=C!=null||x!=null;!B&&!N&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:U,isPressed:w}=d$1({onPressStart:c$3,onPressEnd:m,onPressChange:n,onPress:f,onPressUp:g,onClick:v,isDisabled:a$4}),[_,y]=useState(false),{pressProps:z}=d$1({onPressStart(e){if(e.pointerType==="keyboard"||e.pointerType==="virtual"){e.continuePropagation();return}c$3?.(e),n?.(true),y(true);},onPressEnd(e){if(e.pointerType==="keyboard"||e.pointerType==="virtual"){e.continuePropagation();return}m?.(e),n?.(false),y(false);},onPressUp(e){if(e.pointerType==="keyboard"||e.pointerType==="virtual"){e.continuePropagation();return}g?.(e);},onClick:v,onPress(e){if(e.pointerType==="keyboard"||e.pointerType==="virtual"){e.continuePropagation();return}f?.(e),i.toggle(),t.current?.focus();let{[c]:S}=r,{commitValidation:Q}=S||s;Q();},isDisabled:a$4||l}),{focusableProps:G}=c$1(r,t),J=c$2(U,G),K=a$1(r,{labelable:true});a$2(t,i.defaultSelected,i.setSelected);let L=a$3(),M=a$3();return {labelProps:c$2(z,{onClick:e=>e.preventDefault()}),inputProps:c$2(K,{checked:i.isSelected,"aria-required":b&&P==="aria"||void 0,required:b&&P==="native","aria-invalid":T||r.validationState==="invalid"||void 0,"aria-errormessage":r["aria-errormessage"],"aria-controls":r["aria-controls"],"aria-readonly":l||void 0,"aria-describedby":[L.id,M.id,F].filter(Boolean).join(" ")||void 0,onChange:W,disabled:a$4,...u==null?{}:{value:u},name:R,form:V,type:"checkbox",...J}),descriptionProps:L,errorMessageProps:M,isSelected:i.isSelected,isPressed:w||_,isDisabled:a$4,isReadOnly:l,isInvalid:T||r.validationState==="invalid",validationErrors:j$1,validationDetails:q}}export{pe as a};
@@ -1,4 +1,4 @@
1
- import {a as a$1,f,h}from'./chunk-AUOQSTS5.mjs';/**
1
+ import {a as a$1,i,k}from'./chunk-SD43KVTU.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
@@ -7,4 +7,4 @@ import {a as a$1,f,h}from'./chunk-AUOQSTS5.mjs';/**
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- function d(e){let t=a(a$1(e));t!==e&&(t&&r(t,e),e&&c(e,t));}function r(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:t}));}function c(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:true,relatedTarget:t}));}function a(e){let t=f(e),n=t?.getAttribute("aria-activedescendant");return n&&h(n,e)||t}export{d as a,r as b,c,a as d};
10
+ function d(e){let t=a(a$1(e));t!==e&&(t&&r(t,e),e&&c(e,t));}function r(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:t}));}function c(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:true,relatedTarget:t}));}function a(e){let t=i(e),n=t?.getAttribute("aria-activedescendant");return n&&k(n,e)||t}export{d as a,r as b,c,a as d};
@@ -0,0 +1,15 @@
1
+ import {a}from'./chunk-CIPPPD6E.mjs';import {c as c$1}from'./chunk-GMALMQWI.mjs';import {a as a$4,b as b$2}from'./chunk-SI5WP6I7.mjs';import {g,h as h$1}from'./chunk-TZGK36KC.mjs';import {a as a$5,b as b$3}from'./chunk-GQIS4QBN.mjs';import {b}from'./chunk-4S4GGUSH.mjs';import {j as j$1}from'./chunk-KUDCYGII.mjs';import {b as b$1}from'./chunk-S4HLMIFK.mjs';import {h,j as j$2}from'./chunk-PPHSLODC.mjs';import {a as a$3}from'./chunk-3WKDIXCM.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {a as a$2,f,e,j as j$3,b as b$4,i}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var c=[];function Y(e,l){let{onClose:o,shouldCloseOnBlur:r,isOpen:t,isDismissable:n=false,isKeyboardDismissDisabled:i=false,shouldCloseOnInteractOutside:s}=e,f=useRef();useEffect(()=>{if(t&&!c.includes(l))return c.push(l),()=>{let a=c.indexOf(l);a>=0&&c.splice(a,1);}},[t,l]);let m=()=>{c[c.length-1]===l&&o&&o();},d=a=>{let M=c[c.length-1];f.current=M,(!s||s(j$3(a)))&&M===l&&a.stopPropagation();},u=a=>{(!s||s(j$3(a)))&&(c[c.length-1]===l&&a.stopPropagation(),f.current===l&&m()),f.current=void 0;},{keyboardProps:b$1}=j$1({shortcuts:{Escape:()=>{if(!i){m();return}return false}}});a({ref:l,onInteractOutside:n&&t?u:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=b({isDisabled:!r,onBlurWithin:a=>{!a.relatedTarget||c$1(a.relatedTarget)||(!s||s(a.relatedTarget))&&o?.();}});return {overlayProps:{...b$1,...g},underlayProps:{}}}var E=new WeakMap;function ce(e={},l){let{isDisabled:o,root:r,UNSTABLE_overrideFocus:t}=e;a$1(()=>{if(o)return;let n=r?.ownerDocument??a$2(l?.current),i=E.get(n);return i||(i={count:0},E.set(n,i)),i.count++,i.count===1&&(h()&&j$2()?i.restore=U(n):i.restore=G(r??n.documentElement,t)),()=>{let s=E.get(n);s&&(s.count--,s.count===0&&(s.restore?.(),E.delete(n)));}},[o,r,t]);}function G(e,l){let o=e.ownerDocument,t=(o.defaultView??window).innerWidth-e.clientWidth,n=e===o.documentElement;return a$3(n&&t>0&&("scrollbarGutter"in e.style?f(e,"scrollbar-gutter","stable"):f(e,"padding-right",`${t}px`)),f(e,"overflow","hidden"),l&&k(o),l&&g()&&j(o))}function U(e$1){let l=f(e$1.documentElement,"overflow","hidden"),o,r=false,t=d=>{let u=j$3(d);o=a$5(u,true)?u:b$3(u,true),r=false;let b=u.ownerDocument.defaultView.getSelection();b&&!b.isCollapsed&&b.containsNode(u,true)&&(r=true);let g=b$4(u);d.composedPath().some(a=>a instanceof g.HTMLInputElement&&a.type==="range")&&(r=true),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&i(a$2(u))===u&&(r=true);},n=e$1.createElement("style"),i$1=b$1(e$1);i$1&&(n.nonce=i$1),n.textContent=`
11
+ @layer {
12
+ * {
13
+ overscroll-behavior: contain;
14
+ }
15
+ }`.trim(),e$1.head.prepend(n);let s=d=>{if(!(d.touches.length===2||r)){if(!o||o===e$1.documentElement||o===e$1.body){d.preventDefault();return}o.scrollHeight===o.clientHeight&&o.scrollWidth===o.clientWidth&&d.preventDefault();}},f$1=k(e$1),m=a$3(e(e$1,"touchstart",t,{passive:false,capture:true}),e(e$1,"touchmove",s,{passive:false,capture:true}),j(e$1));return ()=>{l(),m(),n.remove(),f$1();}}function j(e$1){return e(e$1,"blur",o=>{let r=j$3(o),t=o.relatedTarget;t&&h$1(t)?t.focus():t||r.parentElement?.closest("[tabindex]")?.focus({preventScroll:true});},true)}function k(e){let l=e.defaultView??window,o=l.HTMLElement.prototype.focus;return Reflect.defineProperty(l.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:function(r){if(o.call(this,{...r,preventScroll:true}),!r||!r.preventScroll){let t=()=>{i(e)===this&&_(this,e);};a$4(n=>n?t():b$2(()=>t()));}}}),()=>{Reflect.defineProperty(l.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:o});}}function _(e,l){let o=l.scrollingElement||l.documentElement,r=e;for(;r&&r!==o&&r.isConnected;){let t=b$3(r);if(t!==l.documentElement&&t!==l.body&&t!==r){let n=t.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<n.top||i.bottom>n.top+r.clientHeight){let s=n.bottom,f=l.defaultView?.visualViewport;f&&(s=Math.min(s,f.offsetTop+f.height));let m=i.top-n.top-((s-n.top)/2-i.height/2);t.scrollTo({top:Math.max(0,Math.min(t.scrollHeight-t.clientHeight,t.scrollTop+m)),behavior:"smooth"});}}r=t.parentElement;}}export{Y as a,ce as b};
@@ -0,0 +1,10 @@
1
+ import {u}from'./chunk-PPHSLODC.mjs';import {a,j,h}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function H(s){let{ref:n,onInteractOutside:o,isDisabled:u$1,onInteractOutsideStart:p}=s,m=useRef({isPointerDown:false,ignoreEmulatedMouseEvents:false}),i=u(e=>{o&&d(e,n)&&(p&&p(e),m.current.isPointerDown=true);}),f=u(e=>{o&&o(e);});useEffect(()=>{let e=m.current;if(u$1)return;let y=n.current,t=a(y);if(typeof PointerEvent<"u"){let a=r=>{r.pointerType==="pen"&&e.isPointerDown&&d(r,n)&&(f(r),e.isPointerDown=false);},c=r=>{e.isPointerDown&&d(r,n)&&(f(r),e.isPointerDown=false);};return t.addEventListener("pointerdown",i,true),t.addEventListener("pointerup",a,true),t.addEventListener("click",c,true),()=>{t.removeEventListener("pointerdown",i,true),t.removeEventListener("pointerup",a,true),t.removeEventListener("click",c,true);}}else if(process.env.NODE_ENV==="test"){let a=r=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=false:e.isPointerDown&&d(r,n)&&f(r),e.isPointerDown=false;},c=r=>{e.ignoreEmulatedMouseEvents=true,e.isPointerDown&&d(r,n)&&f(r),e.isPointerDown=false;};return t.addEventListener("mousedown",i,true),t.addEventListener("mouseup",a,true),t.addEventListener("touchstart",i,true),t.addEventListener("touchend",c,true),()=>{t.removeEventListener("mousedown",i,true),t.removeEventListener("mouseup",a,true),t.removeEventListener("touchstart",i,true),t.removeEventListener("touchend",c,true);}}},[n,u$1]);}function d(s,n){if(s.button>0)return false;let o=j(s);if(o){let u=o.ownerDocument;if(!u||!h(u.documentElement,o)||o.closest("[data-react-aria-top-layer]"))return false}return n.current?!s.composedPath().includes(n.current):false}export{H as a};
@@ -1,4 +1,4 @@
1
- import {a as a$2}from'./chunk-4SW77SGW.mjs';import {a as a$7}from'./chunk-X6IJEPSH.mjs';import {a as a$3}from'./chunk-M7OLZJYB.mjs';import {a as a$1}from'./chunk-E5GYCA3P.mjs';import {a as a$8}from'./chunk-XUJJMAKM.mjs';import {b,c as c$1}from'./chunk-GX2IOGYR.mjs';import {b as b$1}from'./chunk-AYBACQ6U.mjs';import {a as a$4}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-2V323KAD.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import Y from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
1
+ import {a as a$2}from'./chunk-4SW77SGW.mjs';import {a as a$7}from'./chunk-7EQIV4GX.mjs';import {a as a$3}from'./chunk-DO5YROCG.mjs';import {a as a$1}from'./chunk-3DWFAHR2.mjs';import {a as a$8}from'./chunk-JZXLV6JU.mjs';import {b,c as c$1}from'./chunk-7MLFM55C.mjs';import {b as b$1}from'./chunk-AFOW62QN.mjs';import {a as a$4}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-DAI7V4TE.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import Y from'react';import {jsx,jsxs,Fragment}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,e,l,j,h}from'./chunk-SD43KVTU.mjs';import {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 d=new WeakMap;function v(u){let{triggerRef:e$1,isOpen:r,onClose:t}=u;useEffect(()=>{if(!r||t===null)return;let o=b(e$1.current),p=g=>{let n=j(g);if(!e$1.current||n instanceof o.Node&&!h(n,e$1.current)||n instanceof o.HTMLInputElement||n instanceof o.HTMLTextAreaElement)return;let l=t||d.get(e$1.current);l&&l();};return e(l(e$1.current),"scroll",p,true)},[r,t,e$1]);}export{d as a,v as b};
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-CGFLGZL4.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {e}from'./chunk-JDLUGVXG.mjs';/**
1
+ import {a}from'./chunk-R6TFTLMV.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {e}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
@@ -1,4 +1,4 @@
1
- import {d}from'./chunk-KUEDQO7P.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {useState}from'react';/**
1
+ import {d}from'./chunk-GMALMQWI.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {useState}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