@baseline-ui/core 2.1.0 → 2.4.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 (525) hide show
  1. package/dist/Accordion.css +10 -0
  2. package/dist/Accordion.mjs +1 -0
  3. package/dist/ActionButton.css +10 -0
  4. package/dist/ActionButton.mjs +1 -0
  5. package/dist/ActionGroup.css +10 -0
  6. package/dist/ActionGroup.mjs +1 -0
  7. package/dist/ActionIconButton.css +10 -0
  8. package/dist/ActionIconButton.mjs +1 -0
  9. package/dist/Actionable.css +10 -0
  10. package/dist/Actionable.mjs +1 -0
  11. package/dist/AlertDialog.css +10 -0
  12. package/dist/AlertDialog.mjs +1 -0
  13. package/dist/AudioPlayer.css +10 -0
  14. package/dist/AudioPlayer.mjs +1 -0
  15. package/dist/Avatar.css +10 -0
  16. package/dist/Avatar.mjs +1 -0
  17. package/dist/Box.mjs +1 -0
  18. package/dist/ButtonSelect.css +10 -0
  19. package/dist/ButtonSelect.mjs +1 -0
  20. package/dist/Calendar.css +10 -0
  21. package/dist/Calendar.mjs +1 -0
  22. package/dist/Checkbox.css +10 -0
  23. package/dist/Checkbox.mjs +1 -0
  24. package/dist/Code.css +10 -0
  25. package/dist/Code.mjs +1 -0
  26. package/dist/ColorInput.css +10 -0
  27. package/dist/ColorInput.mjs +1 -0
  28. package/dist/ColorSwatch.css +10 -0
  29. package/dist/ColorSwatch.mjs +1 -0
  30. package/dist/ColorSwatchPicker.css +10 -0
  31. package/dist/ColorSwatchPicker.mjs +1 -0
  32. package/dist/ComboBox.css +10 -0
  33. package/dist/ComboBox.mjs +1 -0
  34. package/dist/DateField.css +10 -0
  35. package/dist/DateField.mjs +1 -0
  36. package/dist/DateFormat.mjs +1 -0
  37. package/dist/DeviceProvider.mjs +1 -0
  38. package/dist/Dialog.css +10 -0
  39. package/dist/Dialog.mjs +1 -0
  40. package/dist/Disclosure.css +10 -0
  41. package/dist/Disclosure.mjs +1 -0
  42. package/dist/DomNodeRenderer.mjs +1 -0
  43. package/dist/Drawer.css +10 -0
  44. package/dist/Drawer.mjs +1 -0
  45. package/dist/Editor.css +10 -0
  46. package/dist/Editor.mjs +1 -0
  47. package/dist/FileInput.css +10 -0
  48. package/dist/FileInput.mjs +1 -0
  49. package/dist/FileList.css +10 -0
  50. package/dist/FileList.mjs +1 -0
  51. package/dist/FileUploader.css +10 -0
  52. package/dist/FileUploader.mjs +1 -0
  53. package/dist/FrameProvider.mjs +1 -0
  54. package/dist/FreehandCanvas.css +10 -0
  55. package/dist/FreehandCanvas.mjs +1 -0
  56. package/dist/GridList.css +10 -0
  57. package/dist/GridList.mjs +1 -0
  58. package/dist/Group.mjs +1 -0
  59. package/dist/I18nProvider.mjs +1 -0
  60. package/dist/Icon.mjs +1 -0
  61. package/dist/ImageDropZone.css +10 -0
  62. package/dist/ImageDropZone.mjs +1 -0
  63. package/dist/ImageGallery.css +10 -0
  64. package/dist/ImageGallery.mjs +1 -0
  65. package/dist/InlineAlert.css +10 -0
  66. package/dist/InlineAlert.mjs +1 -0
  67. package/dist/InlineToolbar.css +10 -0
  68. package/dist/InlineToolbar.mjs +10 -0
  69. package/dist/Kbd.css +10 -0
  70. package/dist/Kbd.mjs +1 -0
  71. package/dist/Link.css +10 -0
  72. package/dist/Link.mjs +1 -0
  73. package/dist/ListBox.css +10 -0
  74. package/dist/ListBox.mjs +1 -0
  75. package/dist/Markdown.css +10 -0
  76. package/dist/Markdown.mjs +1 -0
  77. package/dist/Menu.css +10 -0
  78. package/dist/Menu.mjs +1 -0
  79. package/dist/MessageFormat.mjs +1 -0
  80. package/dist/Modal.css +10 -0
  81. package/dist/Modal.mjs +1 -0
  82. package/dist/NumberFormat.mjs +1 -0
  83. package/dist/NumberInput.css +10 -0
  84. package/dist/NumberInput.mjs +1 -0
  85. package/dist/Pagination.css +10 -0
  86. package/dist/Pagination.mjs +1 -0
  87. package/dist/Panel.css +10 -0
  88. package/dist/Panel.mjs +1 -0
  89. package/dist/PointPicker.css +10 -0
  90. package/dist/PointPicker.mjs +1 -0
  91. package/dist/Popover.css +10 -0
  92. package/dist/Popover.mjs +1 -0
  93. package/dist/Portal.css +10 -0
  94. package/dist/Portal.mjs +1 -0
  95. package/dist/PortalContainerProvider.mjs +1 -0
  96. package/dist/Preview.css +10 -0
  97. package/dist/Preview.mjs +1 -0
  98. package/dist/ProgressBar.css +10 -0
  99. package/dist/ProgressBar.mjs +1 -0
  100. package/dist/ProgressSpinner.css +10 -0
  101. package/dist/ProgressSpinner.mjs +1 -0
  102. package/dist/RadioGroup.css +10 -0
  103. package/dist/RadioGroup.mjs +1 -0
  104. package/dist/Reaction.css +10 -0
  105. package/dist/Reaction.mjs +1 -0
  106. package/dist/ScrollControlButton.css +10 -0
  107. package/dist/ScrollControlButton.mjs +1 -0
  108. package/dist/SearchInput.css +10 -0
  109. package/dist/SearchInput.mjs +1 -0
  110. package/dist/Select.css +10 -0
  111. package/dist/Select.mjs +1 -0
  112. package/dist/Separator.css +10 -0
  113. package/dist/Separator.mjs +1 -0
  114. package/dist/Skeleton.css +10 -0
  115. package/dist/Skeleton.mjs +1 -0
  116. package/dist/Slider.css +10 -0
  117. package/dist/Slider.mjs +1 -0
  118. package/dist/StatusCard.css +10 -0
  119. package/dist/StatusCard.mjs +1 -0
  120. package/dist/Stepper.css +10 -0
  121. package/dist/Stepper.mjs +1 -0
  122. package/dist/Switch.css +10 -0
  123. package/dist/Switch.mjs +1 -0
  124. package/dist/Table.css +10 -0
  125. package/dist/Table.mjs +1 -0
  126. package/dist/Tabs.css +10 -0
  127. package/dist/Tabs.mjs +1 -0
  128. package/dist/Tag.css +10 -0
  129. package/dist/Tag.mjs +1 -0
  130. package/dist/TagGroup.css +10 -0
  131. package/dist/TagGroup.mjs +1 -0
  132. package/dist/TaggedPagination.css +10 -0
  133. package/dist/TaggedPagination.mjs +1 -0
  134. package/dist/Text.css +10 -0
  135. package/dist/Text.mjs +1 -0
  136. package/dist/TextInput.css +10 -0
  137. package/dist/TextInput.mjs +1 -0
  138. package/dist/ThemeProvider.css +10 -0
  139. package/dist/ThemeProvider.mjs +1 -0
  140. package/dist/TimeField.css +10 -0
  141. package/dist/TimeField.mjs +1 -0
  142. package/dist/Toast.css +10 -0
  143. package/dist/Toast.mjs +1 -0
  144. package/dist/ToggleButton.css +10 -0
  145. package/dist/ToggleButton.mjs +1 -0
  146. package/dist/ToggleIconButton.css +10 -0
  147. package/dist/ToggleIconButton.mjs +1 -0
  148. package/dist/Toolbar.css +10 -0
  149. package/dist/Toolbar.mjs +1 -0
  150. package/dist/Tooltip.css +10 -0
  151. package/dist/Tooltip.mjs +1 -0
  152. package/dist/TreeView.css +10 -0
  153. package/dist/TreeView.mjs +1 -0
  154. package/dist/UNSAFE_ListBox.css +10 -0
  155. package/dist/UNSAFE_ListBox.mjs +1 -0
  156. package/dist/Virtualizer.mjs +1 -0
  157. package/dist/chunk-22BJMDCA.mjs +10 -0
  158. package/dist/chunk-246VHB32.mjs +10 -0
  159. package/dist/chunk-2CZ3OV4X.mjs +10 -0
  160. package/dist/chunk-2JANDORZ.mjs +11 -0
  161. package/dist/chunk-2MS356Q7.mjs +10 -0
  162. package/dist/chunk-2PH5GN2S.mjs +0 -0
  163. package/dist/chunk-2RCST7ET.mjs +10 -0
  164. package/dist/chunk-2UUKKXBD.mjs +10 -0
  165. package/dist/chunk-2VY4FAOY.mjs +10 -0
  166. package/dist/chunk-2WAKHFPS.mjs +10 -0
  167. package/dist/chunk-34TYNTXM.mjs +10 -0
  168. package/dist/chunk-3CWP2VCB.mjs +10 -0
  169. package/dist/chunk-3FYY26ED.mjs +10 -0
  170. package/dist/chunk-3HKG74G4.mjs +0 -0
  171. package/dist/chunk-3UH5CQQF.mjs +10 -0
  172. package/dist/chunk-3W6RWDIE.mjs +10 -0
  173. package/dist/chunk-44OUOGJ4.mjs +10 -0
  174. package/dist/chunk-4N6CLPAY.mjs +10 -0
  175. package/dist/chunk-4NYPVKDO.mjs +10 -0
  176. package/dist/chunk-4PYEGHW5.mjs +10 -0
  177. package/dist/chunk-4QEH5CGK.mjs +10 -0
  178. package/dist/chunk-4SW77SGW.mjs +10 -0
  179. package/dist/chunk-4WW2MVQN.mjs +0 -0
  180. package/dist/chunk-4ZJMZB5B.mjs +10 -0
  181. package/dist/chunk-545KDVGI.mjs +10 -0
  182. package/dist/chunk-54IAJ3RI.mjs +0 -0
  183. package/dist/chunk-566SP7NE.mjs +10 -0
  184. package/dist/chunk-5ANNWMLJ.mjs +0 -0
  185. package/dist/chunk-5BAHJXOI.mjs +10 -0
  186. package/dist/chunk-5HXTXIE5.mjs +10 -0
  187. package/dist/chunk-5IC46G5J.mjs +10 -0
  188. package/dist/chunk-5KD2MNNX.mjs +10 -0
  189. package/dist/chunk-5ODZPQL2.mjs +10 -0
  190. package/dist/chunk-5PQHOVGX.mjs +0 -0
  191. package/dist/chunk-5ULL6IBX.mjs +10 -0
  192. package/dist/chunk-5YHNHEDK.mjs +0 -0
  193. package/dist/chunk-63KRQW56.mjs +10 -0
  194. package/dist/chunk-66CUIXA6.mjs +10 -0
  195. package/dist/chunk-66NJ7EYY.mjs +10 -0
  196. package/dist/chunk-6F66XVOA.mjs +0 -0
  197. package/dist/chunk-6IRWW75G.mjs +10 -0
  198. package/dist/chunk-6IX6BM7C.mjs +0 -0
  199. package/dist/chunk-6XARU7F2.mjs +0 -0
  200. package/dist/chunk-6YQHZ5RZ.mjs +0 -0
  201. package/dist/chunk-6Z6HOW6T.mjs +10 -0
  202. package/dist/chunk-6ZFBX7C7.mjs +10 -0
  203. package/dist/chunk-6ZQE5SHE.mjs +10 -0
  204. package/dist/chunk-6ZV4UYEG.mjs +10 -0
  205. package/dist/chunk-77BAFSDX.mjs +10 -0
  206. package/dist/chunk-7AQAC6QK.mjs +10 -0
  207. package/dist/chunk-7AY6C5M5.mjs +10 -0
  208. package/dist/chunk-7PRJIPFA.mjs +10 -0
  209. package/dist/chunk-7ZYMMUDM.mjs +10 -0
  210. package/dist/chunk-A24DWFQ2.mjs +10 -0
  211. package/dist/chunk-A6ZQQSAX.mjs +10 -0
  212. package/dist/chunk-AC7OXVHA.mjs +10 -0
  213. package/dist/chunk-AGUSZG6K.mjs +0 -0
  214. package/dist/chunk-AGYQLGBZ.mjs +10 -0
  215. package/dist/chunk-AKES5B6C.mjs +10 -0
  216. package/dist/chunk-AMQX3KZR.mjs +10 -0
  217. package/dist/chunk-AMW7LGCF.mjs +10 -0
  218. package/dist/chunk-AMYRLAIC.mjs +10 -0
  219. package/dist/chunk-AQYBKDT2.mjs +16 -0
  220. package/dist/chunk-AUOQSTS5.mjs +10 -0
  221. package/dist/chunk-AV4ZP5SY.mjs +10 -0
  222. package/dist/chunk-AZRPXTYJ.mjs +10 -0
  223. package/dist/chunk-B7PSE5KC.mjs +10 -0
  224. package/dist/chunk-BED7T5CL.mjs +10 -0
  225. package/dist/chunk-BGMVPFYK.mjs +10 -0
  226. package/dist/chunk-BJVFZYUV.mjs +10 -0
  227. package/dist/chunk-BKDQLDOK.mjs +10 -0
  228. package/dist/chunk-BLHN7I5Z.mjs +0 -0
  229. package/dist/chunk-BTVDMO5C.mjs +10 -0
  230. package/dist/chunk-BU5H25MV.mjs +10 -0
  231. package/dist/chunk-C342HL26.mjs +0 -0
  232. package/dist/chunk-C5P23FUW.mjs +10 -0
  233. package/dist/chunk-C6OMLVIQ.mjs +0 -0
  234. package/dist/chunk-CAWUDHAE.mjs +10 -0
  235. package/dist/chunk-CFDKFUTO.mjs +10 -0
  236. package/dist/chunk-CFLEBB5T.mjs +10 -0
  237. package/dist/chunk-CFRTAJP2.mjs +0 -0
  238. package/dist/chunk-CGFLGZL4.mjs +10 -0
  239. package/dist/chunk-CHTLOFCT.mjs +10 -0
  240. package/dist/chunk-CPSUI4IW.mjs +10 -0
  241. package/dist/chunk-CSPZMYVG.mjs +10 -0
  242. package/dist/chunk-CV6JQGJ3.mjs +10 -0
  243. package/dist/chunk-CWPFUB7B.mjs +10 -0
  244. package/dist/chunk-D3IZ4HBL.mjs +10 -0
  245. package/dist/chunk-D5EEZT5J.mjs +10 -0
  246. package/dist/chunk-DD5FWULD.mjs +10 -0
  247. package/dist/chunk-DECHIERQ.mjs +10 -0
  248. package/dist/chunk-DIHILOKU.mjs +10 -0
  249. package/dist/chunk-DOL6RDMF.mjs +10 -0
  250. package/dist/chunk-DRYSJSKA.mjs +10 -0
  251. package/dist/chunk-DY6WY36N.mjs +0 -0
  252. package/dist/chunk-E3PFPOHX.mjs +0 -0
  253. package/dist/chunk-E6VOSF6Z.mjs +10 -0
  254. package/dist/chunk-EA6GA4WC.mjs +10 -0
  255. package/dist/chunk-EK3RIYMV.mjs +10 -0
  256. package/dist/chunk-ELXWR5TS.mjs +10 -0
  257. package/dist/chunk-EMCEJKBJ.mjs +10 -0
  258. package/dist/chunk-ENDOKA57.mjs +10 -0
  259. package/dist/chunk-EU75HMPG.mjs +10 -0
  260. package/dist/chunk-EX2LI2CV.mjs +10 -0
  261. package/dist/chunk-EZXMEGV7.mjs +0 -0
  262. package/dist/chunk-F2HESRBD.mjs +10 -0
  263. package/dist/chunk-F2X474RV.mjs +10 -0
  264. package/dist/chunk-F7PGMOQF.mjs +10 -0
  265. package/dist/chunk-FJ2JRD3H.mjs +10 -0
  266. package/dist/chunk-FKYHERP4.mjs +0 -0
  267. package/dist/chunk-FP5EWPOF.mjs +10 -0
  268. package/dist/chunk-FRZTJBLY.mjs +10 -0
  269. package/dist/chunk-FTYXFTJV.mjs +10 -0
  270. package/dist/chunk-FXCHST4Z.mjs +10 -0
  271. package/dist/chunk-GCZFXILF.mjs +10 -0
  272. package/dist/chunk-GEZGEZAP.mjs +10 -0
  273. package/dist/chunk-GFLVN5JQ.mjs +10 -0
  274. package/dist/chunk-GKODQS6E.mjs +10 -0
  275. package/dist/chunk-GOSLHCDP.mjs +0 -0
  276. package/dist/chunk-GXOXYPQQ.mjs +10 -0
  277. package/dist/chunk-H44PBNVX.mjs +10 -0
  278. package/dist/chunk-H7OUUCSA.mjs +10 -0
  279. package/dist/chunk-HBBRMEES.mjs +10 -0
  280. package/dist/chunk-HHI7CEUP.mjs +10 -0
  281. package/dist/chunk-HI44JQA7.mjs +10 -0
  282. package/dist/chunk-HLDCVJXD.mjs +10 -0
  283. package/dist/chunk-HONWMHMX.mjs +10 -0
  284. package/dist/chunk-HT55YHTN.mjs +10 -0
  285. package/dist/chunk-HWOMGFBL.mjs +10 -0
  286. package/dist/chunk-HXTAOYOD.mjs +10 -0
  287. package/dist/chunk-I3RGYL4B.mjs +10 -0
  288. package/dist/chunk-I3YGB2BE.mjs +10 -0
  289. package/dist/chunk-IB23KCIW.mjs +10 -0
  290. package/dist/chunk-IHLJTHGQ.mjs +10 -0
  291. package/dist/chunk-ILBAZFBL.mjs +0 -0
  292. package/dist/chunk-INDVRI57.mjs +10 -0
  293. package/dist/chunk-IUQOFRI3.mjs +10 -0
  294. package/dist/chunk-IVVZSESM.mjs +10 -0
  295. package/dist/chunk-IW4GXU75.mjs +10 -0
  296. package/dist/chunk-IYFTU6IC.mjs +10 -0
  297. package/dist/chunk-J3MJZQUJ.mjs +10 -0
  298. package/dist/chunk-J4NO4WYU.mjs +0 -0
  299. package/dist/chunk-J5YWAPLN.mjs +10 -0
  300. package/dist/chunk-J7EAQSKX.mjs +10 -0
  301. package/dist/chunk-J7K7I5U2.mjs +10 -0
  302. package/dist/chunk-JBXZ6ZHP.mjs +10 -0
  303. package/dist/chunk-JDLUGVXG.mjs +10 -0
  304. package/dist/chunk-JI4SJ53O.mjs +11 -0
  305. package/dist/chunk-JJG67M2S.mjs +10 -0
  306. package/dist/chunk-JJPCZOOI.mjs +10 -0
  307. package/dist/chunk-JQ4ZGZPV.mjs +15 -0
  308. package/dist/chunk-JUXBZ2ZN.mjs +10 -0
  309. package/dist/chunk-K6IQ4ALU.mjs +0 -0
  310. package/dist/chunk-K6X2BHPP.mjs +10 -0
  311. package/dist/chunk-KCHAWPUN.mjs +10 -0
  312. package/dist/chunk-KEVERVHK.mjs +10 -0
  313. package/dist/chunk-KG5PDPBK.mjs +10 -0
  314. package/dist/chunk-KKJ6XIU3.mjs +10 -0
  315. package/dist/chunk-KPEONVLU.mjs +10 -0
  316. package/dist/chunk-KUEDQO7P.mjs +10 -0
  317. package/dist/chunk-KY3JKXSX.mjs +10 -0
  318. package/dist/chunk-LQMEFFFM.mjs +10 -0
  319. package/dist/chunk-LZFTBNPW.mjs +10 -0
  320. package/dist/chunk-M5M3EPG5.mjs +10 -0
  321. package/dist/chunk-MEYMETYC.mjs +11 -0
  322. package/dist/chunk-MEZNZ5W6.mjs +10 -0
  323. package/dist/chunk-MFH2E2GU.mjs +10 -0
  324. package/dist/chunk-MI7DCFP2.mjs +10 -0
  325. package/dist/chunk-MIHIAPBG.mjs +10 -0
  326. package/dist/chunk-MLNPTVVX.mjs +10 -0
  327. package/dist/chunk-MRJFGHFW.mjs +10 -0
  328. package/dist/chunk-MUNFBB7D.mjs +0 -0
  329. package/dist/chunk-MVK5CB64.mjs +10 -0
  330. package/dist/chunk-MXKP7NQ4.mjs +10 -0
  331. package/dist/chunk-MZ4O6LWG.mjs +0 -0
  332. package/dist/chunk-N2XGJKZG.mjs +10 -0
  333. package/dist/chunk-N5RZGO7Y.mjs +10 -0
  334. package/dist/chunk-N7MTFSWR.mjs +10 -0
  335. package/dist/chunk-NA3IF43N.mjs +10 -0
  336. package/dist/chunk-NGZRN4SF.mjs +10 -0
  337. package/dist/chunk-NHM3H5JU.mjs +0 -0
  338. package/dist/chunk-NO55UIGK.mjs +0 -0
  339. package/dist/chunk-NRKHWSOP.mjs +0 -0
  340. package/dist/chunk-NSC53QWT.mjs +10 -0
  341. package/dist/chunk-NV7KQVPE.mjs +10 -0
  342. package/dist/chunk-O4VZ6XEP.mjs +10 -0
  343. package/dist/chunk-O57ZEY3V.mjs +0 -0
  344. package/dist/chunk-O66FNQSB.mjs +10 -0
  345. package/dist/chunk-O7XK2WIX.mjs +10 -0
  346. package/dist/chunk-OAY74XPB.mjs +10 -0
  347. package/dist/chunk-OC42IZG2.mjs +10 -0
  348. package/dist/chunk-OLJWK3LS.mjs +10 -0
  349. package/dist/chunk-OMT6ZWSV.mjs +11 -0
  350. package/dist/chunk-OO7BXL2N.mjs +10 -0
  351. package/dist/chunk-P44XZ4PV.mjs +10 -0
  352. package/dist/chunk-P5GO3XIS.mjs +10 -0
  353. package/dist/chunk-PAQQ7MQG.mjs +10 -0
  354. package/dist/chunk-PBFIKNYZ.mjs +10 -0
  355. package/dist/chunk-PBO4SFGS.mjs +10 -0
  356. package/dist/chunk-PF3OQKXP.mjs +10 -0
  357. package/dist/chunk-PHZZLBH3.mjs +10 -0
  358. package/dist/chunk-PZTVDABF.mjs +0 -0
  359. package/dist/chunk-Q5UMLFN3.mjs +10 -0
  360. package/dist/chunk-QAUEG3EX.mjs +0 -0
  361. package/dist/chunk-QBJDGBTU.mjs +0 -0
  362. package/dist/chunk-QMDDCVAF.mjs +10 -0
  363. package/dist/chunk-QNBBJ5HC.mjs +11 -0
  364. package/dist/chunk-R32OJDN2.mjs +10 -0
  365. package/dist/chunk-RC7QITNV.mjs +10 -0
  366. package/dist/chunk-RCBUNCHV.mjs +10 -0
  367. package/dist/chunk-RFTDIXEG.mjs +10 -0
  368. package/dist/chunk-RJC3HQDZ.mjs +10 -0
  369. package/dist/chunk-RJWPSJX2.mjs +10 -0
  370. package/dist/chunk-RMUV6NJJ.mjs +10 -0
  371. package/dist/chunk-ROHLZINC.mjs +10 -0
  372. package/dist/chunk-RSKKEGJZ.mjs +10 -0
  373. package/dist/chunk-RT4LMB6X.mjs +10 -0
  374. package/dist/chunk-RXSYDMT6.mjs +10 -0
  375. package/dist/chunk-S3V4OOC3.mjs +10 -0
  376. package/dist/chunk-SAZLJ66W.mjs +10 -0
  377. package/dist/chunk-SMAYNDQQ.mjs +10 -0
  378. package/dist/chunk-TAROK7TO.mjs +10 -0
  379. package/dist/chunk-TAYP2OGC.mjs +10 -0
  380. package/dist/chunk-TBSQUJ67.mjs +10 -0
  381. package/dist/chunk-TDXALNX3.mjs +10 -0
  382. package/dist/chunk-TEQE6WCH.mjs +10 -0
  383. package/dist/chunk-THRAJMLX.mjs +10 -0
  384. package/dist/chunk-TI5RR7KX.mjs +10 -0
  385. package/dist/chunk-TIHKHXTS.mjs +10 -0
  386. package/dist/chunk-TJEK54BW.mjs +10 -0
  387. package/dist/chunk-TK4QXU3W.mjs +10 -0
  388. package/dist/chunk-TKQOQVZD.mjs +10 -0
  389. package/dist/chunk-TO2TQ2LE.mjs +10 -0
  390. package/dist/chunk-TO6OQF2Y.mjs +10 -0
  391. package/dist/chunk-TZ4MVY4E.mjs +10 -0
  392. package/dist/chunk-U2ODAIZG.mjs +10 -0
  393. package/dist/chunk-U4K44ZHN.mjs +10 -0
  394. package/dist/chunk-UCNHDT36.mjs +10 -0
  395. package/dist/chunk-UCZZLAPB.mjs +10 -0
  396. package/dist/chunk-UQJGSVXP.mjs +10 -0
  397. package/dist/chunk-USMC34OO.mjs +10 -0
  398. package/dist/chunk-UTQ7AIPM.mjs +0 -0
  399. package/dist/chunk-UUBOEBYZ.mjs +10 -0
  400. package/dist/chunk-V3L4SVVF.mjs +10 -0
  401. package/dist/chunk-VCIX4HG7.mjs +0 -0
  402. package/dist/chunk-VDUFLHKK.mjs +10 -0
  403. package/dist/chunk-VG7J427T.mjs +10 -0
  404. package/dist/chunk-VHDXSFQC.mjs +10 -0
  405. package/dist/chunk-VLQ4S7XC.mjs +10 -0
  406. package/dist/chunk-VTX6R6KM.mjs +10 -0
  407. package/dist/chunk-VXB5SVQC.mjs +10 -0
  408. package/dist/chunk-W6QO7FPZ.mjs +10 -0
  409. package/dist/chunk-WAFYFWH4.mjs +0 -0
  410. package/dist/chunk-WAOWR7MR.mjs +10 -0
  411. package/dist/chunk-WL27JGVG.mjs +10 -0
  412. package/dist/chunk-WOVAT6U4.mjs +10 -0
  413. package/dist/chunk-WSCZ34XO.mjs +10 -0
  414. package/dist/chunk-WSQGB4ZE.mjs +0 -0
  415. package/dist/chunk-WWSGOGLA.mjs +10 -0
  416. package/dist/chunk-X3AXUU3H.mjs +10 -0
  417. package/dist/chunk-X3OCHEQM.mjs +12 -0
  418. package/dist/chunk-X7DI4I2U.mjs +10 -0
  419. package/dist/chunk-XB657BXX.mjs +10 -0
  420. package/dist/chunk-XBBPWSJI.mjs +0 -0
  421. package/dist/chunk-XJGQXVMR.mjs +10 -0
  422. package/dist/chunk-XPISSX5R.mjs +10 -0
  423. package/dist/chunk-XTH6B5FE.mjs +10 -0
  424. package/dist/chunk-XVBOKL6D.mjs +10 -0
  425. package/dist/chunk-XWLESSHN.mjs +10 -0
  426. package/dist/chunk-XXANV3FM.mjs +10 -0
  427. package/dist/chunk-XZ2VSOJD.mjs +29 -0
  428. package/dist/chunk-Y4DRSGEJ.mjs +10 -0
  429. package/dist/chunk-Y6XQJ4X2.mjs +10 -0
  430. package/dist/chunk-YB3KW7JC.mjs +10 -0
  431. package/dist/chunk-YCI6BEXQ.mjs +10 -0
  432. package/dist/chunk-YGSCHWU3.mjs +10 -0
  433. package/dist/chunk-YIGT3OP2.mjs +10 -0
  434. package/dist/chunk-YOBESAXG.mjs +10 -0
  435. package/dist/chunk-YS3Y5KGV.mjs +10 -0
  436. package/dist/chunk-YT36W3OS.mjs +10 -0
  437. package/dist/chunk-YV3WI6OV.mjs +10 -0
  438. package/dist/chunk-YV5CNDCW.mjs +0 -0
  439. package/dist/chunk-YVYMYKYN.mjs +10 -0
  440. package/dist/chunk-ZANUFNOL.mjs +0 -0
  441. package/dist/chunk-ZGRRD3TU.mjs +10 -0
  442. package/dist/chunk-ZLAY7NNY.mjs +10 -0
  443. package/dist/chunk-ZLDT2KDZ.mjs +10 -0
  444. package/dist/chunk-ZNN43VZV.mjs +10 -0
  445. package/dist/chunk-ZREX7XOO.mjs +10 -0
  446. package/dist/chunk-ZRWDMNNY.mjs +10 -0
  447. package/dist/chunk-ZVODDLGL.mjs +10 -0
  448. package/dist/hooks/useDevice.mjs +1 -0
  449. package/dist/hooks/useI18n.mjs +1 -0
  450. package/dist/hooks/useImage.mjs +1 -0
  451. package/dist/hooks/useIntersectionObserver.mjs +1 -0
  452. package/dist/hooks/useIsFirstRender.mjs +1 -0
  453. package/dist/hooks/useIsTouchDevice.mjs +1 -0
  454. package/dist/hooks/useLiveInteractionModality.mjs +1 -0
  455. package/dist/hooks/useLocalStorage.mjs +1 -0
  456. package/dist/hooks/useMedia.mjs +1 -0
  457. package/dist/hooks/useMutationObserver.mjs +1 -0
  458. package/dist/hooks/usePortalContainer.mjs +1 -0
  459. package/dist/hooks/usePreventFocus.mjs +1 -0
  460. package/dist/hooks/useResizeObserver.mjs +1 -0
  461. package/dist/hooks/useTextSelection.mjs +1 -0
  462. package/dist/hooks/useUndoRedo.mjs +1 -0
  463. package/dist/index.d.ts +811 -70
  464. package/dist/index.js +21 -21
  465. package/dist/index.mjs +1 -43
  466. package/dist/messageIds.mjs +1 -0
  467. package/dist/react-aria.d.ts +133 -133
  468. package/dist/react-aria.mjs +1 -0
  469. package/dist/react-stately.d.ts +82 -82
  470. package/dist/react-stately.mjs +1 -0
  471. package/dist/utils/a11y.mjs +1 -0
  472. package/dist/utils/classNames.mjs +1 -0
  473. package/dist/utils/colors.mjs +1 -0
  474. package/dist/utils/constants.mjs +10 -0
  475. package/dist/utils/devWarn.mjs +1 -0
  476. package/dist/utils/dom.mjs +1 -0
  477. package/dist/utils/invariant.mjs +1 -0
  478. package/dist/utils/isInIframe.mjs +1 -0
  479. package/dist/utils/isInShadowDOM.mjs +1 -0
  480. package/dist/utils/isRect.mjs +1 -0
  481. package/dist/utils/keyboards.mjs +1 -0
  482. package/dist/utils/math.mjs +1 -0
  483. package/dist/utils/objects.mjs +1 -0
  484. package/dist/utils/onDropOrPaste.mjs +1 -0
  485. package/dist/utils/overlays.mjs +1 -0
  486. package/dist/utils/reactAriaCompat.mjs +1 -0
  487. package/dist/utils/reactAriaComponentsCompat.mjs +1 -0
  488. package/dist/utils/resolveAriaLabelAttrs.mjs +1 -0
  489. package/dist/utils/resolvePublicUrl.mjs +10 -0
  490. package/dist/utils/strings.mjs +1 -0
  491. package/dist/utils/style.mjs +1 -0
  492. package/dist/utils/svgs.mjs +1 -0
  493. package/dist/utils/validations.mjs +1 -0
  494. package/intl/ar.json +2 -2
  495. package/intl/cs.json +2 -2
  496. package/intl/cy.json +4 -4
  497. package/intl/da.json +3 -3
  498. package/intl/de.json +3 -3
  499. package/intl/el.json +2 -2
  500. package/intl/en-GB.json +2 -2
  501. package/intl/en.json +2 -2
  502. package/intl/fi.json +3 -3
  503. package/intl/fr-CA.json +1 -1
  504. package/intl/fr.json +2 -2
  505. package/intl/he.json +3 -3
  506. package/intl/hr.json +3 -3
  507. package/intl/id.json +3 -3
  508. package/intl/ja.json +2 -2
  509. package/intl/ko.json +1 -1
  510. package/intl/ms.json +2 -2
  511. package/intl/nb-NO.json +3 -3
  512. package/intl/nl.json +4 -4
  513. package/intl/pt-PT.json +1 -1
  514. package/intl/pt.json +3 -3
  515. package/intl/ru.json +2 -2
  516. package/intl/sk.json +2 -2
  517. package/intl/sl.json +4 -4
  518. package/intl/sv.json +3 -3
  519. package/intl/th.json +1 -1
  520. package/intl/tr.json +3 -3
  521. package/intl/uk.json +1 -1
  522. package/intl/zh-Hant.json +2 -2
  523. package/messages.json +2 -2
  524. package/package.json +8 -5
  525. package/sbom.json +6 -6
@@ -0,0 +1,10 @@
1
+ import {a as a$4}from'./chunk-IHLJTHGQ.mjs';import {a as a$2}from'./chunk-RSKKEGJZ.mjs';import {a}from'./chunk-K6X2BHPP.mjs';import {d}from'./chunk-BGMVPFYK.mjs';import {a as a$1}from'./chunk-3FYY26ED.mjs';import {d as d$1}from'./chunk-AQYBKDT2.mjs';import {n,q,r}from'./chunk-MRJFGHFW.mjs';import {b,c}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-KEVERVHK.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import C from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function A(e,o){let{elementType:d$2="a",onPress:c$1,onPressStart:k,onPressEnd:t,onClick:f,isDisabled:s,...u}=e,n$1={};d$2!=="a"&&(n$1={role:"link",tabIndex:s?void 0:0});let{focusableProps:P}=d(e,o),{pressProps:r$1,isPressed:L}=d$1({onPress:c$1,onPressStart:k,onPressEnd:t,onClick:f,isDisabled:s,ref:o}),a=a$5(u,{labelable:true}),b=c(P,r$1),l=n(),m=q(e);return {isPressed:L,linkProps:c(a,m,{...b,...n$1,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:p=>{r$1.onClick?.(p),r(p,l,e.href,e.routerOptions);}})}}var N=C.forwardRef(({className:e,style:o,children:d,variant:c$1="default",size:k="md",elementType:t="a",type:f="body","data-block-id":s,"data-block-class":u,title:n,role:P,...r},L)=>{let a$5=C.useRef(null),{linkProps:b$1,isPressed:l}=A({...r,elementType:r.onPress?"span":t},a$5),{isFocusVisible:m,isFocused:p,focusProps:I}=a(),{hoverProps:V,isHovered:x}=a$1({isDisabled:r.isDisabled}),j=t,w=a$2({"data-block-id":s,"data-block-class":u,"data-disabled":r.isDisabled,"data-focused":p,"data-pressed":l,"data-focus-visible":m,"data-hovered":x,role:P,title:n});return jsx(j,{...c(b$1,I,V,w),className:a$3(a$4({variant:c$1,isFocusVisible:m,isHovered:x,isDisabled:r.isDisabled,size:k,isActive:l,type:f}),"BaselineUI-Link",e),ref:b(a$5,L),style:o,children:d})});N.displayName="Link";export{N as a};
File without changes
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-66CUIXA6.mjs';import {b as b$1}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-AUOQSTS5.mjs';import*as d from'dompurify';import c,{useId}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var b=(e,t)=>{e.setAttribute("height",typeof t=="number"?`${t}px`:t),e.setAttribute("width",typeof t=="number"?`${t}px`:t);},E=(e,t,n)=>{let o=e.querySelector("title"),i=a(e);if(o)o.textContent=t,o.setAttribute("id",n);else {let r=i.createElement("title");r.textContent=t,r.setAttribute("id",n),e.prepend(r);}},I=(e,t)=>{t&&e.classList.add(t);},T=(e,t)=>{let n=t.createElement("span");n.innerHTML=d.default.sanitize(e);let o=n.querySelector("svg");return a$1(o,"Icon: svg prop must be a valid svg string"),o},w=c.forwardRef(({size:e,title:t,className:n,style:o,color:i,...r},S)=>{let u=useId(),f=c.useRef(null),m="svg"in r?r.svg:void 0,l=c.useMemo(()=>{if(m){let y=a(f.current),s=T(m,y);return e&&b(s,e),t&&E(s,t,u),I(s,n),s.outerHTML}},[m,e,t,n,u]);return jsx("span",{className:n,ref:b$1(S,f),style:{display:"contents",...o,color:i},dangerouslySetInnerHTML:l?{__html:l}:void 0})});w.displayName="Icon";export{w as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$5}from'./chunk-NSC53QWT.mjs';import {a as a$2}from'./chunk-EX2LI2CV.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$4}from'./chunk-GCZFXILF.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import {useGranularEffect}from'granular-hooks';import j,{useCallback,useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var Y=a({defaultClassName:"_1bwul1t8 _1yep5z6lq _1yep5z6ly _1yep5z6eu _1yep5z6g1",variantClassNames:{size:{xs:"_1bwul1t9 _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6zy",sm:"_1bwul1ta _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6101",md:"_1bwul1tb _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6104"}},defaultVariants:{},compoundVariants:[]}),R=a({defaultClassName:"_1bwul1t3 _1yep5z6ev",variantClassNames:{size:{xs:"_1yep5z6zy",sm:"_1yep5z6101",md:"_1yep5z6104"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),$={xs:"_1bwul1t0",sm:"_1bwul1t1",md:"_1bwul1t2"};var D=j.forwardRef(({className:L,style:W,size:p="md",isDisabled:n,decrementAriaLabel:J,incrementAriaLabel:M,"data-block-id":Q,"data-block-class":X,label:Z,onChange:E,onBlur:k,onKeyDown:F,minValue:a=Number.NEGATIVE_INFINITY,maxValue:r=Number.POSITIVE_INFINITY,defaultValue:V,value:ee,description:_=w=>`${w} / ${r}`,onInputChange:te,onChangeSuccess:ne,step:b=1,valueToLabelMap:l,...i},re)=>{let w=j.useRef(null),B=c(),O=c(),u=useCallback(e=>l?l.get(e)??e.toString():e.toString(),[l]),S=useCallback(e=>{if(l){let H=[...l.entries()].find(([,se])=>se===e);if(H)return H[0]}return Number.parseInt(e)},[l]),[t,c$1]=a$1(ee,V??1,ne),[d,g]=useState(u(t)??""),z=t<=a||n,h=t>=r||n,y=useCallback(e=>{if(!e)return;E?.(e);let m=S(e);if(Number.isNaN(m)){g(u(t)??"");return}m>=a&&m<=r&&!n&&!i.isReadOnly?c$1(m):g(u(t));},[E,S,a,r,n,i.isReadOnly,u,t,c$1]),f=useCallback(e=>e>=a&&e<=r,[a,r]),ae=useCallback(e=>{y(d),k?.(e);},[d,y,k]),v=useCallback(()=>{if(h)return;let e=Math.min(t+b,r);f(e)&&c$1(e);},[t,h,f,r,c$1,b]),x=useCallback(()=>{if(z)return;let e=Math.max(t-b,a);f(e)&&c$1(e);},[t,z,f,a,c$1,b]),oe=useCallback(e=>{if(!(n||i.isReadOnly)){switch(e.key){case "Enter":{y(d);break}case "ArrowUp":{v();break}case "ArrowDown":{x();break}}F?.(e);}},[n,i.isReadOnly,F,y,d,v,x]);useGranularEffect(()=>{g(u(t));},[t],[u]);let{inputProps:ie}=a$2({...i,value:d?.toString(),isDisabled:n,onBlur:ae,onChange:e=>{g(e),te?.(e);},onKeyDown:oe,"aria-labelledby":B,"aria-describedby":O},w),A=typeof _=="function"?_(t):_;return jsxs(a$3,{className:a$6($[p],L),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":Q,"data-block-class":X,style:W,ref:re,"aria-disabled":n,children:[jsx("span",{id:B,className:R({size:p,isDisabled:n}),children:Z}),jsxs(a$3,{display:"flex",flexDirection:"row",borderRadius:"sm",borderColor:"border.subtle",borderStyle:"solid",borderWidth:1,style:{height:"inherit"},children:[jsx(a$4,{icon:CaretLeftIcon,elementType:"div",size:p,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:n||z||i.isReadOnly,excludeFromTabOrder:true,onPress:x,"aria-label":J,tooltip:true}),jsx(a$5,{orientation:"vertical"}),jsx("input",{...ie,className:Y({size:p}),min:a,max:r}),jsx(a$5,{orientation:"vertical"}),jsx(a$4,{icon:CaretRightIcon,elementType:"div",size:p,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:n||h||i.isReadOnly,excludeFromTabOrder:true,onPress:v,"aria-label":M,tooltip:true})]}),A?jsx("span",{id:O,className:R({size:p,isDisabled:n}),children:A}):null]})});D.displayName="TaggedPagination";export{D as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-X3AXUU3H.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 S(e={}){let{isReadOnly:o}=e,[t,l]=a(e.isSelected,e.defaultSelected||false,e.onChange),[n]=useState(t);function d(i){o||l(i);}function g(){o||l(!t);}return {isSelected:t,defaultSelected:e.defaultSelected??n,setSelected:d,toggle:g}}export{S as a};
File without changes
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-D3IZ4HBL.mjs';import {c}from'./chunk-JDLUGVXG.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 f(o){let{id:l,label:s,"aria-labelledby":e,"aria-label":i,labelElementType:p="label"}=o;l=c(l);let a$1=c(),b={};s?(e=e?`${a$1} ${e}`:a$1,b={id:a$1,htmlFor:p==="label"?l:void 0}):!e&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let n=a({id:l,"aria-label":i,"aria-labelledby":e});return {labelProps:b,fieldProps:n}}export{f as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-EA6GA4WC.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 n(r,o,i){let{labelProps:s,inputProps:p,isSelected:t,...l}=a(r,o,i);return {labelProps:s,inputProps:{...p,role:"switch",checked:t},isSelected:t,...l}}export{n as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-KEVERVHK.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 o(r){let e=a(r,{labelable:true}),t;return r.orientation==="vertical"&&(t="vertical"),r.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":t}}:{separatorProps:e}}export{o as a};
@@ -0,0 +1,10 @@
1
+ import {b as b$1,d as d$1,e,c}from'./chunk-KG5PDPBK.mjs';import {a as a$1}from'./chunk-2JANDORZ.mjs';import {b as b$2}from'./chunk-J7EAQSKX.mjs';import {a as a$2}from'./chunk-O7XK2WIX.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-4ZJMZB5B.mjs';import {a as a$4}from'./chunk-X3AXUU3H.mjs';import {a}from'./chunk-K6X2BHPP.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import N,{useMemo,useCallback}from'react';import {Time,toZoned,toTime,GregorianCalendar,toCalendarDateTime,today,getLocalTimeZone}from'@internationalized/date';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
+ function P(i){let{placeholderValue:a=new Time,minValue:p,maxValue:u,defaultValue:t,granularity:c$1,validate:T}=i,[e,s]=a$4(i.value,t??null,i.onChange),r=e||a,o=r&&"day"in r?r:void 0,m=t&&"timeZone"in t?t.timeZone:void 0,F=useMemo(()=>{let l=r&&"timeZone"in r?r.timeZone:void 0;return (l||m)&&a?toZoned(d(a),l||m):d(a)},[a,r,m]),V=useMemo(()=>d(p,o),[p,o]),y=useMemo(()=>d(u,o),[u,o]),x=useMemo(()=>e&&"day"in e?toTime(e):e,[e]),g=useMemo(()=>e==null?null:d(e),[e]),S=useMemo(()=>t==null?null:d(t),[t]);return {...c({...i,value:g,defaultValue:S,minValue:V,maxValue:y,onChange:l=>{s(o||m?l:l&&toTime(l));},granularity:c$1||"minute",maxGranularity:"hour",placeholderValue:F??void 0,createCalendar:()=>new GregorianCalendar,validate:useCallback(()=>T?.(e),[T,e])}),timeValue:x}}function d(i,a=today(getLocalTimeZone())){return i?"day"in i?i:toCalendarDateTime(a,i):null}var B=N.forwardRef(({className:i,labelPosition:a$4,"data-block-id":p,"data-block-class":u,...t},c)=>{let{locale:T}=b(),e$1={...t,validationState:void 0,isInvalid:t.validationState==="error"||void 0},s=P({...e$1,locale:T}),r=N.useRef(null),{labelProps:o,fieldProps:m,descriptionProps:F,errorMessageProps:V,validationErrors:y,isInvalid:x,inputProps:g}=b$1(e$1,s,r),S=t.errorMessage||y.join(" "),k=b$2({...t,errorMessage:S,descriptionProps:F,errorMessageProps:V,labelPosition:a$4}),{focusProps:v,isFocused:l}=a({within:true});return jsxs(a$1,{className:a$3("BaselineUI-TimeField",i),labelProps:o,fieldProps:m,ref:c,wrapperRef:r,wrapperClassName:d$1,labelPosition:a$4,message:k,isFocused:l,"data-block-id":p,"data-block-class":u,isInvalid:x,...t,children:[jsx(b$3,{children:jsx("input",{...g})}),jsx(a$2,{display:"flex",flexDirection:"row",paddingRight:"md",...v,children:s.segments.map((E,G)=>jsx(e,{segment:E,state:s},G))})]})});B.displayName="TimeField";export{B as a};
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-N2XGJKZG.mjs';import {a}from'./chunk-I3RGYL4B.mjs';import {DateFormatter}from'@internationalized/date';import {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
+ function c(e){e=a(e??{},f);let{locale:t}=b();return useMemo(()=>new DateFormatter(t,e),[t,e])}function f(e,t){if(e===t)return true;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return false;for(let o of r)if(t[o]!==e[o])return false;return true}export{c as a};
@@ -0,0 +1,10 @@
1
+ import {useState,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function r(){let[c,t]=useState(false);return useEffect(()=>{let e=window.matchMedia("(pointer: coarse)");t(e.matches);let n=s=>{t(s.matches);};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n);}},[]),c}export{r as a};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-JDLUGVXG.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 b(s,e){let{id:r,"aria-label":l,"aria-labelledby":i}=s;return r=c(r),i&&l?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!l&&!i&&e&&(l=e),{id:r,"aria-label":l,"aria-labelledby":i}}export{b as a};
@@ -0,0 +1,10 @@
1
+ import {d}from'./chunk-AQYBKDT2.mjs';import {b}from'./chunk-TZ4MVY4E.mjs';import r from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var m=r.forwardRef(({className:a,style:n,node:e,"data-block-id":p,"data-block-class":l,...f},c)=>{let o=r.useRef(null);r.useEffect(()=>{let s=o.current;return s?.append(e),()=>{s?.contains(e)&&e.remove();}},[e]);let{pressProps:i,isPressed:R}=d(f);return jsx("div",{...i,className:a,style:n,"data-block-id":p,"data-block-class":l,"data-pressed":R,"data-testid":"dom-node-renderer",ref:b(c,o)})});m.displayName="DomNodeRenderer";export{m as a};
@@ -0,0 +1,10 @@
1
+ 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 n(){let e=useRef(true);return useEffect(()=>{e.current=false;},[]),e.current}export{n as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-X3AXUU3H.mjs';import S,{useRef,useState,useMemo,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 F(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function k(n){return $(n,0)}function $(n,e){if(e<0)return;let t=0;for(let l of n){if(t===e)return l;t++;}}function W(n){let e;for(let t of n)e=t;return e}function g(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let l=[...B(n,e),e],i=[...B(n,t),t],o=l.slice(0,i.length).findIndex((s,u)=>s!==i[u]);return o!==-1?(e=l[o],t=i[o],e.index-t.index):l.findIndex(s=>s===t)>=0?1:(i.findIndex(s=>s===e)>=0,-1)}function B(n,e){let t=[],l=e;for(;l?.parentKey!=null;)l=n.getItem(l.parentKey),l&&t.unshift(l);return t}var a=class n extends Set{anchorKey;currentKey;constructor(e,t,l){super(e),e instanceof n?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null);}};function O(n,e){if(n.size!==e.size)return false;for(let t of n)if(!e.has(t))return false;return true}function q(n){let{selectionMode:e="none",disallowEmptySelection:t=false,allowDuplicateSelectionEvents:l,selectionBehavior:i="toggle",disabledBehavior:o="all"}=n,s=useRef(false),[,u]=useState(false),r=useRef(null),c=useRef(null),[,d]=useState(null),f=useMemo(()=>N(n.selectedKeys),[n.selectedKeys]),h=useMemo(()=>N(n.defaultSelectedKeys,new a),[n.defaultSelectedKeys]),[m,x]=a$1(f,h,n.onSelectionChange),p=useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[y,T]=useState(i);i==="replace"&&y==="toggle"&&typeof m=="object"&&m.size===0&&T("replace");let E=useRef(i);return useEffect(()=>{i!==E.current&&(T(i),E.current=i);},[i]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:T,get isFocused(){return s.current},setFocused(K){s.current=K,u(K);},get focusedKey(){return r.current},get childFocusStrategy(){return c.current},setFocusedKey(K,P="first"){r.current=K,c.current=P,d(K);},selectedKeys:m,setSelectedKeys(K){(l||!O(K,m))&&x(K);},disabledKeys:p,disabledBehavior:o}}function N(n,e){return n?n==="all"?"all":new a(n):e}var R=class n{collection;state;allowsCellSelection;_isSelectAll;layoutDelegate;fullCollection;constructor(e,t,l){this.collection=e,this.state=t,this.allowsCellSelection=l?.allowsCellSelection??false,this._isSelectAll=null,this.layoutDelegate=l?.layoutDelegate||null,this.fullCollection=l?.fullCollection||null;}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e);}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e);}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t);}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return false;let t=this.getKey(e);return t==null?false:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return false;if(this.state.selectedKeys==="all")return true;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(l=>t.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let l=this.collection.getItem(t);(!e||l&&g(this.collection,l,e)<0)&&(e=l);}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let l=this.collection.getItem(t);(!e||l&&g(this.collection,l,e)>0)&&(e=l);}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l;if(this.state.selectedKeys==="all")l=new a([t],t,t);else {let i=this.state.selectedKeys,o=i.anchorKey??t;l=new a(i,o,t);for(let s of this.getKeyRange(o,i.currentKey??t))l.delete(s);for(let s of this.getKeyRange(t,o))this.canSelectItem(s)&&l.add(s);}this.state.setSelectedKeys(l);}getKeyRange(e,t){let l=this.collection.getItem(e),i=this.collection.getItem(t);return l&&i?g(this.collection,l,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let l=[],i=e;for(;i!=null;){let o=this.collection.getItem(i);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&l.push(i),i===t)return l;i=this.collection.getKeyAfter(i);}return []}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return !t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l=new a(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l);}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let l=this.canSelectItem(t)?new a([t],t,t):new a;this.state.setSelectedKeys(l);}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new a;for(let l of e){let i=this.getKey(l);if(i!=null&&(t.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(t);}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],l=i=>{for(;i!=null;){if(this.canSelectItemIn(i,e)){let o=e.getItem(i);o?.type==="item"&&t.push(i),o?.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&l(k(F(o,e))?.key??null);}i=e.getKeyAfter(i);}};return l(e.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all");}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new a);}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll();}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e));}isSelectionEqual(e){if(e===this.state.selectedKeys)return true;let t=this.selectedKeys;if(e.size!==t.size)return false;for(let l of e)if(!t.has(l))return false;for(let l of t)if(!e.has(l))return false;return true}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return false;let l=t.getItem(e);return !(!l||l?.props?.isDisabled||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!=="selection"}isLink(e){return !!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(e){return new n(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}};var C=class{context;cache=new WeakMap;build(e,t){return this.context=t,A(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(S.isValidElement(t)&&t.type===S.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if(typeof t=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of l)yield*this.getFullNode({value:o,index:i},{renderer:t}),i++;}else {let i=[];S.Children.forEach(t,s=>{s&&i.push(s);});let o=0;for(let s of i){let u=this.getFullNode({element:s,index:o},{});for(let r of u)o++,yield r;}}}getKey(e,t,l,i){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return `${i}${t.key}`;let o=t.value;if(o!=null){let s=o.key??o.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return {renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,i){if(S.isValidElement(e.element)&&e.element.type===S.Fragment){let r=[];S.Children.forEach(e.element.props.children,d=>{r.push(d);});let c=e.index??0;for(let d of r)yield*this.getFullNode({element:d,index:c++},t,l,i);return}let o=e.element;if(!o&&e.value&&t&&t.renderer){let r=this.cache.get(e.value);if(r&&(!r.shouldInvalidate||!r.shouldInvalidate(this.context))){r.index=e.index,r.parentKey=i?i.key:null,yield r;return}o=t.renderer(e.value);}if(S.isValidElement(o)){let r=o.type;if(typeof r!="function"&&typeof r.getCollectionNode!="function"){let h=o.type;throw new Error(`Unknown element <${h}> in collection.`)}let c=r.getCollectionNode(o.props,this.context),d=e.index??0,f=c.next();for(;!f.done&&f.value;){let h=f.value;e.index=d;let m=h.key??null;m==null&&(m=h.element?null:this.getKey(o,e,t,l));let p=[...this.getFullNode({...h,key:m,index:d,wrapper:L(e.wrapper,h.wrapper)},this.getChildState(t,h),l?`${l}${o.key}`:o.key,i)];for(let y of p){if(y.value=h.value??e.value??null,y.value&&this.cache.set(y.value,y),e.type&&y.type!==e.type)throw new Error(`Unsupported type <${I(y.type)}> in <${I(i?.type??"unknown parent type")}>. Only <${I(e.type)}> is supported.`);d++,yield y;}f=c.next(p);}return}if(e.key==null||e.type==null)return;let s=this,u={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value??null,level:(i?.level??0)+(i?.type==="item"?1:0),index:e.index,rendered:e.rendered,textValue:e.textValue??"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||false,childNodes:A(function*(){if(!e.hasChildNodes||!e.childNodes)return;let r=0;for(let c of e.childNodes()){c.key!=null&&(c.key=`${u.key}${c.key}`);let d=s.getFullNode({...c,index:r},s.getChildState(t,c),u.key,u);for(let f of d)r++,yield f;}})};yield u;}};function A(n){let e=[],t=null;return {*[Symbol.iterator](){for(let l of e)yield l;t||(t=n());for(let l of t)e.push(l),yield l;}}}function L(n,e){if(n&&e)return t=>n(e(t));if(n)return n;if(e)return e}function I(n){return n[0].toUpperCase()+n.slice(1)}function ne(n,e,t){let l=useMemo(()=>new C,[]),{children:i,items:o,collection:s}=n;return useMemo(()=>{if(s)return s;let r=l.build({children:i,items:o},t);return e(r)},[l,i,o,s,t,e])}export{q as a,F as b,k as c,$ as d,W as e,R as f,ne as g};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-PHZZLBH3.mjs';import {b}from'./chunk-WWSGOGLA.mjs';import p 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 s=({children:r})=>{let{triggerProps:t}=p.useContext(a);return jsx(b,{...t,children:r})};s.displayName="ModalTrigger";var n=({children:r})=>{let{state:t}=p.useContext(a);return jsx(b,{onPress:()=>{t?.close();},children:r})};export{s as a,n as b};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-7AY6C5M5.mjs';import {a,d,b as b$3}from'./chunk-O66FNQSB.mjs';import {b as b$1}from'./chunk-246VHB32.mjs';import {c as c$1}from'./chunk-OC42IZG2.mjs';import {b as b$4,a as a$b}from'./chunk-PAQQ7MQG.mjs';import {b as b$2}from'./chunk-DECHIERQ.mjs';import {a as a$6}from'./chunk-F2X474RV.mjs';import {a as a$1}from'./chunk-EX2LI2CV.mjs';import {c as c$2,d as d$1}from'./chunk-W6QO7FPZ.mjs';import {c as c$4}from'./chunk-I3YGB2BE.mjs';import {b}from'./chunk-WL27JGVG.mjs';import {a as a$a}from'./chunk-4PYEGHW5.mjs';import {a as a$5}from'./chunk-JJG67M2S.mjs';import {c as c$3}from'./chunk-6IRWW75G.mjs';import {a as a$4}from'./chunk-D3IZ4HBL.mjs';import {a as a$8}from'./chunk-RXSYDMT6.mjs';import {a as a$9}from'./chunk-X3AXUU3H.mjs';import {a as a$3}from'./chunk-545KDVGI.mjs';import {n,h}from'./chunk-MRJFGHFW.mjs';import {a as a$2,c as c$5}from'./chunk-TZ4MVY4E.mjs';import {c as c$6}from'./chunk-JDLUGVXG.mjs';import {f,a as a$7,e,g}from'./chunk-AUOQSTS5.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 je={"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)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,n)=>`${n.select({true:()=>`Mentiin ryhm\xE4\xE4n ${e.groupTitle}, ${n.plural(e.groupCount,{one:()=>`${n.number(e.groupCount)} vaihtoehdon`,other:()=>`${n.number(e.groupCount)} vaihtoehdon`})} kanssa.`,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 Ze(e$1,n$1){let{buttonRef:p,popoverRef:C,inputRef:l,listBoxRef:b$4,keyboardDelegate:i,layoutDelegate:y,shouldFocusWrap:R,isReadOnly:v,isDisabled:w}=e$1,te=useRef(null);p=p??te;let f$1=b(je,"@react-aria/combobox"),{menuTriggerProps:F,menuProps:A}=c({type:"listbox",isDisabled:w||v},n$1,p);a.set(n$1,{id:A.id});let{collection:E}=n$1,{disabledKeys:z}=n$1.selectionManager,r=useMemo(()=>i||new b$1({collection:E,disabledKeys:z,ref:b$4,layoutDelegate:y}),[i,y,E,z,b$4]),{collectionProps:M}=c$1({selectionManager:n$1.selectionManager,keyboardDelegate:r,disallowTypeAhead:true,disallowEmptySelection:true,shouldFocusWrap:R,ref:l,isVirtualized:true}),$=n(),m=t=>{if(!t.nativeEvent.isComposing)switch(t.key){case "Enter":case "Tab":if(n$1.isOpen&&t.key==="Enter"&&t.preventDefault(),n$1.isOpen&&b$4.current&&n$1.selectionManager.focusedKey!=null){let u=n$1.collection.getItem(n$1.selectionManager.focusedKey);if(u?.props.href){let T=b$4.current.querySelector(`[data-key="${CSS.escape(n$1.selectionManager.focusedKey.toString())}"]`);t.key==="Enter"&&T instanceof HTMLAnchorElement&&$.open(T,t,u.props.href,u.props.routerOptions),n$1.close();break}else if(u?.props.onAction){u.props.onAction(),n$1.close();break}}(t.key==="Enter"||n$1.isOpen)&&n$1.commit(),t.key==="Tab"&&t.continuePropagation();break;case "Escape":(!n$1.selectionManager.isEmpty||n$1.inputValue===""||e$1.allowsCustomValue)&&t.continuePropagation(),n$1.revert();break;case "ArrowDown":n$1.open("first","manual");break;case "ArrowUp":n$1.open("last","manual");break;case "ArrowLeft":case "ArrowRight":n$1.selectionManager.setFocusedKey(null);break}},ue=t=>{let u=p?.current&&p.current===t.relatedTarget,T=e(C.current,t.relatedTarget);u||T||(e$1.onBlur&&e$1.onBlur(t),n$1.setFocused(false));},s=t=>{n$1.isFocused||(e$1.onFocus&&e$1.onFocus(t),n$1.setFocused(true));},N=qe([n$1.selectionManager.selectedKeys,n$1.selectionManager.selectionMode]),{isInvalid:d$1,validationErrors:H,validationDetails:_}=n$1.displayValidation,{labelProps:U,inputProps:L,descriptionProps:g$1,errorMessageProps:Q}=a$1({...e$1,isRequired:e$1.selectionMode==="multiple"?e$1.isRequired&&n$1.selectionManager.isEmpty:e$1.isRequired,onChange:n$1.setInputValue,onKeyDown:v?e$1.onKeyDown:a$2(n$1.isOpen&&M.onKeyDown,m,e$1.onKeyDown),onBlur:ue,value:n$1.inputValue,defaultValue:n$1.defaultInputValue,onFocus:s,autoComplete:"off",validate:void 0,[c$2]:n$1,"aria-describedby":[N,e$1["aria-describedby"]].filter(Boolean).join(" ")||void 0},l);a$3(l,n$1.defaultValue,n$1.setValue);let le=t=>{t.pointerType==="touch"&&(l.current?.focus(),n$1.toggle(null,"manual"));},W=t=>{t.pointerType!=="touch"&&(l.current?.focus(),n$1.toggle(t.pointerType==="keyboard"||t.pointerType==="virtual"?"first":null,"manual"));},be=a$4({id:F.id,"aria-label":f$1.format("buttonLabel"),"aria-labelledby":e$1["aria-labelledby"]||U.id}),a$9=a$4({id:A.id,"aria-label":f$1.format("listboxLabel"),"aria-labelledby":e$1["aria-labelledby"]||U.id}),D=useRef(0),ie=t=>{if(w||v)return;if(t.timeStamp-D.current<500){t.preventDefault(),l.current?.focus();return}let u=g(t).getBoundingClientRect(),T=t.changedTouches[0],K=Math.ceil(u.left+.5*u.width),q=Math.ceil(u.top+.5*u.height);T.clientX===K&&T.clientY===q&&(t.preventDefault(),l.current?.focus(),n$1.toggle(null,"manual"),D.current=t.timeStamp);},h$1=n$1.selectionManager.focusedKey!=null&&n$1.isOpen?n$1.collection.getItem(n$1.selectionManager.focusedKey):void 0,I=h$1?.parentKey??null,x=n$1.selectionManager.focusedKey??null,G=useRef(I),V=useRef(x);useEffect(()=>{if(h()&&h$1!=null&&x!=null&&x!==V.current){let t=n$1.selectionManager.isSelected(x),u=I!=null?n$1.collection.getItem(I):null,T=u?.["aria-label"]||(typeof u?.rendered=="string"?u.rendered:"")||"",K=f$1.format("focusAnnouncement",{isGroupChange:(u&&I!==G.current)??false,groupTitle:T,groupCount:u?[...b$2(u,n$1.collection)].length:0,optionText:h$1["aria-label"]||h$1.textValue||"",isSelected:t});a$5(K);}G.current=I,V.current=x;});let S=d(n$1.collection),j=useRef(S),O=useRef(n$1.isOpen);useEffect(()=>{let t=n$1.isOpen!==O.current&&(n$1.selectionManager.focusedKey==null||h());if(n$1.isOpen&&(t||S!==j.current)){let u=f$1.format("countAnnouncement",{optionCount:S});a$5(u);}j.current=S,O.current=n$1.isOpen;});let Z=useRef(n$1.selectedKey);return useEffect(()=>{if(h()&&n$1.isFocused&&n$1.selectedItem&&n$1.selectedKey!==Z.current){let t=n$1.selectedItem["aria-label"]||n$1.selectedItem.textValue||"",u=f$1.format("selectedAnnouncement",{optionText:t});a$5(u);}Z.current=n$1.selectedKey;}),useEffect(()=>{if(n$1.isOpen)return a$6([l.current,C.current].filter(t=>t!=null))},[n$1.isOpen,l,C]),c$3(()=>{!h$1&&l.current&&f(a$7(l.current))===l.current&&c$4(l.current,null);},[h$1]),a$8(b$4,"react-aria-item-action",n$1.isOpen?()=>{n$1.close();}:void 0),{labelProps:U,buttonProps:{...F,...be,excludeFromTabOrder:true,preventFocusOnPress:true,onPress:le,onPressStart:W,isDisabled:w||v},inputProps:c$5(L,{role:"combobox","aria-expanded":F["aria-expanded"],"aria-controls":n$1.isOpen?A.id:void 0,"aria-autocomplete":"list","aria-activedescendant":h$1?b$3(n$1,h$1.key):void 0,onTouchEnd:ie,autoCorrect:"off",spellCheck:"false"}),listBoxProps:c$5(A,a$9,{onAction:void 0,autoFocus:n$1.focusStrategy||true,shouldUseVirtualFocus:true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:N},descriptionProps:g$1,errorMessageProps:Q,isInvalid:d$1,validationErrors:H,validationDetails:_}}function qe(e=[]){let n=c$6(),[p,C]=useState(true),[l,b]=useState(e);return l.some((i,y)=>!Object.is(i,e[y]))&&(C(true),b(e)),useEffect(()=>{p&&!document.getElementById(n)&&C(false);},[n,p,l]),p?n:void 0}function Ye(e){let{defaultFilter:n,menuTrigger:p="input",allowsEmptyCollection:C=false,allowsCustomValue:l,shouldCloseOnBlur:b=true,selectionMode:i="single"}=e,[y,R]=useState(false),[v,w]=useState(false),[te,f]=useState(null),F=useMemo(()=>e.defaultValue!==void 0?e.defaultValue:i==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,i]),A=useMemo(()=>e.value!==void 0?e.value:i==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,i]),[E,z]=a$9(A,F,e.onChange),r=i==="single"&&Array.isArray(E)?E[0]:E,M=o=>{if(i==="single"){let c=Array.isArray(o)?o[0]??null:o;z(c),c!==r&&e.onSelectionChange?.(c);}else {let c=[];Array.isArray(o)?c=o:o!=null&&(c=[o]),z(c);}},{collection:$,selectionManager:m,disabledKeys:ue}=b$4({...e,items:e.items??e.defaultItems,selectionMode:i,disallowEmptySelection:i==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>_e(r),[r]),onSelectionChange:o=>{if(o!=="all")if(i==="single"){let c=o.values().next().value??null;c===r?(e.onSelectionChange?.(c),j(),x()):M(c);}else M([...o]);}}),s=i==="single"?m.firstSelectedKey:null,N=useMemo(()=>[...m.selectedKeys].map(o=>$.getItem(o)).filter(o=>o!=null),[m.selectedKeys,$]),[d,H]=a$9(e.inputValue,we(e.defaultInputValue,s,$)||"",e.onInputChange),[_]=useState(r),[U]=useState(d),L=$,g=useMemo(()=>e.items!=null||!n?$:Xe($,d,n),[$,d,n,e.items]),[Q,le]=useState(g),W=useRef("focus"),a=a$a({...e,onOpenChange:o=>{e.onOpenChange&&e.onOpenChange(o,o?W.current:void 0),m.setFocused(o),o||m.setFocusedKey(null);},isOpen:void 0,defaultOpen:void 0}),D=(o=null,c)=>{let J=c==="manual"||c==="focus"&&p==="focus";(C||g.size>0||J&&L.size>0||e.items)&&(J&&!a.isOpen&&e.items===void 0&&R(true),W.current=c,f(o),a.open());},ie=(o=null,c)=>{let J=c==="manual"||c==="focus"&&p==="focus";!(C||g.size>0||J&&L.size>0||e.items)&&!a.isOpen||(J&&!a.isOpen&&e.items===void 0&&R(true),a.isOpen||(W.current=c),I(o));},h=useCallback(()=>{le(y?L:g);},[y,L,g]),I=useCallback((o=null)=>{a.isOpen&&h(),f(o),a.toggle();},[a,h]),x=useCallback(()=>{a.isOpen&&(h(),a.close());},[a,h]),[G,V]=useState(d),S=useRef(false),j=()=>{let o=s!=null?$.getItem(s)?.textValue??"":"";S.current=false,V(o),H(o);},O=useRef(r),Z=useRef(s!=null?$.getItem(s)?.textValue??"":"");useEffect(()=>{v&&(g.size>0||C)&&!a.isOpen&&d!==G&&p!=="manual"&&D(null,"input"),!y&&!C&&a.isOpen&&g.size===0&&x(),r!=null&&r!==O.current&&i==="single"&&x(),d!==G&&(S.current=true,m.setFocusedKey(null),R(false),i==="single"&&d===""&&(e.inputValue===void 0||A===void 0)&&M(null)),r!==O.current&&(e.inputValue===void 0||A===void 0)?j():G!==d&&V(d);let o=s!=null?$.getItem(s)?.textValue??"":"";(!v||!S.current)&&s!=null&&e.inputValue===void 0&&s===O.current&&Z.current!==o&&(S.current=false,V(o),H(o)),O.current=r,Z.current=o;});let t=d$1({...e,value:useMemo(()=>Array.isArray(r)&&r.length===0?null:{inputValue:d,value:r,selectedKey:s},[d,s,r])}),u=()=>{l&&s==null?T():K();},T=()=>{if(i==="multiple"){V(d),x();return}let o=null;O.current=o,M(o),x();},K=(o=false)=>{if(A!==void 0&&e.inputValue!==void 0){let c=s!=null?$.getItem(s)?.textValue??"":"";(o||i==="multiple"||d!==c)&&(e.onSelectionChange?.(s),e.onChange?.(r)),V(c),x();}else j(),x();},q=()=>{if(l){let o=s!=null?$.getItem(s)?.textValue??"":"";d===o?K():T();}else K();},Ne=()=>{a.isOpen&&m.focusedKey!=null?m.isSelected(m.focusedKey)&&i==="single"?K(true):m.select(m.focusedKey):q();},ce=useRef([d,r]),He=o=>{o?(ce.current=[d,r],p==="focus"&&!e.isReadOnly&&D(null,"focus")):(b&&q(),(d!==ce.current[0]||r!==ce.current[1])&&t.commitValidation()),w(o);},Ue=useMemo(()=>a.isOpen?y?L:g:Q,[a.isOpen,L,g,y,Q]),ae=e.defaultSelectedKey??(i==="single"?_:null);return {...t,...a,focusStrategy:te,toggle:ie,open:D,close:q,selectionManager:m,value:r,defaultValue:F??_,setValue:M,selectedKey:s,selectedItems:N,defaultSelectedKey:ae,setSelectedKey:M,disabledKeys:ue,isFocused:v,setFocused:He,selectedItem:N[0]??null,collection:Ue,inputValue:d,defaultInputValue:we(e.defaultInputValue,ae,$)??U,setInputValue:H,commit:Ne,revert:u}}function Xe(e,n,p){return new a$b(ze(e,e,n,p))}function ze(e,n,p,C){let l=[];for(let b of n)if(b.type==="section"&&b.hasChildNodes){let i=ze(e,b$2(b,e),p,C);[...i].some(y=>y.type==="item")&&l.push({...b,childNodes:i});}else b.type==="item"&&C(b.textValue,p)?l.push({...b}):b.type!=="item"&&l.push({...b});return l}function we(e,n,p){return e==null&&n!=null?p.getItem(n)?.textValue??"":e}function _e(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}export{Ze as a,Ye as b};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-AV4ZP5SY.mjs';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=({value:o,...t})=>{let e=a(t);return jsx(Fragment,{children:e.format(o)})};m.displayName="NumberFormat";export{m as a};
File without changes
File without changes
@@ -0,0 +1,10 @@
1
+ import {a as a$4}from'./chunk-IVVZSESM.mjs';import {a as a$2}from'./chunk-2MS356Q7.mjs';import {b}from'./chunk-J7EAQSKX.mjs';import {e,f,d,h,g}from'./chunk-IW4GXU75.mjs';import {b as b$1}from'./chunk-J3MJZQUJ.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import j 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 H="_1hgzo20",O=a({defaultClassName:"_1hgzo22 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6dy",variantClassNames:{isPlaceholder:{true:"_1hgzo23"},isDisabled:{true:"_1hgzo24"}},defaultVariants:{},compoundVariants:[]}),W="_1hgzo21 _1yep5z69c _1yep5z69d _1yep5z69e";var ye="Choose file",Ie="No file chosen";function he(t,d){return t.length===0?d:t.length===1?t[0].name:`${t.length} files`}var k=j.forwardRef(({className:t,style:d$1,label:c$1,buttonLabel:q=ye,placeholder:$=Ie,description:f$1,errorMessage:s,warningMessage:g$1,validationState:G,labelPosition:n="top",isDisabled:o,autoFocus:J,buttonStyle:K,buttonClassName:Q,onValueChange:X,onSelect:Y,acceptedFileTypes:Z,allowsMultiple:ee,defaultCamera:te,acceptDirectory:ne,"aria-label":y,"aria-describedby":oe,...ae},ie)=>{let[I,re]=j.useState([]),h$1=c(),v=c(),F=c(),_=c(),z=c(),b$2=c(),{isFocusVisible:se,focusProps:le}=a$1({within:true}),a=s?"error":G,u=a==="warning"&&!!g$1,pe=s?_:u?z:f$1?F:void 0,l=b({description:s||u?void 0:f$1,errorMessage:s,warningMessage:u?g$1:void 0,descriptionProps:{id:F},errorMessageProps:{id:_},warningMessageProps:{id:z},labelPosition:n,isDisabled:o}),x=i=>i.filter(Boolean).join(" ")||void 0,de=y?void 0:x([c$1?h$1:void 0,v]),ce=x([oe,pe,b$2]),ue=i=>{let w=i?[...i]:[];re(w),X?.(w),Y?.(i);},me=he(I,$),fe=I.length===0,N=a$2({validationState:a}),ge=a$3({"data-disabled":o,"data-validation-state":a});return jsx(a$4,{acceptedFileTypes:Z,allowsMultiple:ee,defaultCamera:te,acceptDirectory:ne,onSelect:ue,children:jsxs("div",{ref:ie,...ae,...ge,className:a$6("BaselineUI-FileInput",g({labelPosition:n}),t),style:d$1,children:[c$1||n==="start"&&l?jsxs("div",{className:f({labelPosition:n,hasMessage:!!l}),children:[jsx(a$5,{id:h$1,elementType:"span",className:e,children:c$1}),n==="start"&&l]}):null,jsxs("div",{...le,className:a$6(h({validationState:a,isDisabled:o,variant:"primary",isFocused:se,isHovered:false,isReadOnly:false}),W),children:[jsx(b$1,{id:v,label:q,variant:"primary",size:"sm",autoFocus:J,isDisabled:o,"aria-label":y,"aria-labelledby":de,"aria-describedby":ce,style:K,className:a$6(H,Q)}),jsx("span",{id:b$2,className:O({isPlaceholder:fe,isDisabled:o}),children:me}),N?jsx(N,{className:d({validationState:a}),size:16}):null]}),n==="top"&&l]})})});k.displayName="FileInput";export{k as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$3}from'./chunk-WAOWR7MR.mjs';import {a}from'./chunk-M5M3EPG5.mjs';import {d,c}from'./chunk-W6QO7FPZ.mjs';import {a as a$2}from'./chunk-545KDVGI.mjs';import {d as d$2}from'./chunk-BGMVPFYK.mjs';import {d as d$1}from'./chunk-AQYBKDT2.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$1}from'./chunk-KEVERVHK.mjs';import {g}from'./chunk-AUOQSTS5.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$2,onPressEnd:m,onPressChange:n,onPress:f,onPressUp:g$1,onClick:v}=r,s=d({...r,value:i.isSelected}),{isInvalid:T,validationErrors:j,validationDetails:q}=s.displayValidation;a(r,s,t);let W=e=>{e.stopPropagation(),i.setSelected(g(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$2,onPressEnd:m,onPressChange:n,onPress:f,onPressUp:g$1,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$2?.(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$1?.(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}=d$2(r,t),J=c$1(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$1(z,{onClick:e=>e.preventDefault()}),inputProps:c$1(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,validationDetails:q}}export{pe as a};
@@ -0,0 +1,10 @@
1
+ import {c as c$1,b}from'./chunk-MXKP7NQ4.mjs';import {a}from'./chunk-J7K7I5U2.mjs';import {d}from'./chunk-OC42IZG2.mjs';import {a as a$1}from'./chunk-34TYNTXM.mjs';import {d as d$1}from'./chunk-KUEDQO7P.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {e as e$2,b as b$2}from'./chunk-MVK5CB64.mjs';import {i as i$1,b as b$3}from'./chunk-Y4DRSGEJ.mjs';import {p,c as c$3}from'./chunk-MRJFGHFW.mjs';import {c as c$2,a as a$3}from'./chunk-TZ4MVY4E.mjs';import {a as a$2}from'./chunk-KEVERVHK.mjs';import {c,e}from'./chunk-JDLUGVXG.mjs';import {g,i,f,a as a$4,e as e$1}from'./chunk-AUOQSTS5.mjs';import {useRef}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var w=new WeakMap;function N(o,t){let{id:e}=w.get(o)??{};if(!e)throw new Error("Unknown list");return `${e}-${ce(t)}`}function ce(o){return typeof o=="string"?o.replace(/\s*/g,""):""+o}function Se(o,t,e){let{isVirtualized:n,keyboardDelegate:a$3,layoutDelegate:s,onAction:d,disallowTypeAhead:A,linkBehavior:p="action",keyboardNavigationBehavior:M="arrow",escapeKeyBehavior:k="clearSelection",shouldSelectOnPressUp:S}=o;!o["aria-label"]&&!o["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:L}=a({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:e,keyboardDelegate:a$3,layoutDelegate:s,isVirtualized:n,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:o.shouldFocusWrap,linkBehavior:p,disallowTypeAhead:A,autoFocus:o.autoFocus,escapeKeyBehavior:k,UNSTABLE_focusOnEntry:o.UNSTABLE_focusOnEntry}),v=c(o.id);w.set(t,{id:v,onAction:d,linkBehavior:p,keyboardNavigationBehavior:M,shouldSelectOnPressUp:S});let m=c$1({selectionManager:t.selectionManager,hasItemActions:!!d}),T=a$1(e,{isDisabled:t.collection.size!==0}),D=a$2(o,{labelable:true}),E=c$2(D,{role:"grid",id:v,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:T?-1:0}:L,m);return n&&(E["aria-rowcount"]=t.collection.size,E["aria-colcount"]=1),b({},t),{gridProps:E}}var Y={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function He(o,t,e$3){let{node:n,isVirtualized:a}=o,{direction:s}=b$1(),{onAction:d$2,linkBehavior:A,keyboardNavigationBehavior:p$1,shouldSelectOnPressUp:M}=w.get(t),k=e(),S=useRef(null),L=()=>{e$3.current!==null&&(S.current!=null&&n.key!==S.current||!i(e$3.current))&&i$1(e$3.current);},v={},m=o.hasChildItems,T=t.selectionManager.isLink(n.key);if(n!=null&&"expandedKeys"in t){let r=t.collection.getChildren?.(n.key);m=m||[...r??[]].length>1,d$2==null&&!T&&t.selectionManager.selectionMode==="none"&&m&&(d$2=()=>t.toggleKey(n.key));let l=m?t.expandedKeys.has(n.key):void 0,i=1,u=n.index;if(n.level>=0&&n?.parentKey!=null){let c=t.collection.getItem(n.parentKey);if(c){let I=de(c,t.collection);i=[...I].filter(se=>se.type==="item").length,u>0&&I[0].type!=="item"&&(u-=1);}}else i=[...t.collection].filter(c=>c.level===0&&c.type==="item").length;v={"aria-expanded":l,"aria-level":n.level+1,"aria-posinset":u+1,"aria-setsize":i};}let{itemProps:D,...E}=d({selectionManager:t.selectionManager,key:n.key,ref:e$3,isVirtualized:a,shouldSelectOnPressUp:o.shouldSelectOnPressUp||M,onAction:d$2||n.props?.onAction?a$3(n.props?.onAction,d$2?()=>d$2(n.key):void 0):void 0,focus:L,linkBehavior:A}),Z=r=>{let l=f(a$4(e$3.current));if(!e$1(r.currentTarget,g(r))||!e$3.current||!l)return;let i=d$1(e$3.current);if(i.currentNode=l,!J(r,t,n,m,s,l,e$3.current))switch(r.key){case "ArrowLeft":{if(p$1==="arrow"){let u=s==="rtl"?i.nextNode():i.previousNode();if(u)r.preventDefault(),r.stopPropagation(),i$1(u),e$2(u,{containingElement:b$2(e$3.current)});else if(r.preventDefault(),r.stopPropagation(),s==="rtl")i$1(e$3.current),e$2(e$3.current,{containingElement:b$2(e$3.current)});else {i.currentNode=e$3.current;let c=Q(i);c&&(i$1(c),e$2(c,{containingElement:b$2(e$3.current)}));}}break}case "ArrowRight":{if(p$1==="arrow"){let u=s==="rtl"?i.previousNode():i.nextNode();if(u)r.preventDefault(),r.stopPropagation(),i$1(u),e$2(u,{containingElement:b$2(e$3.current)});else if(r.preventDefault(),r.stopPropagation(),s==="ltr")i$1(e$3.current),e$2(e$3.current,{containingElement:b$2(e$3.current)});else {i.currentNode=e$3.current;let c=Q(i);c&&(i$1(c),e$2(c,{containingElement:b$2(e$3.current)}));}}break}case "ArrowUp":case "ArrowDown":!r.altKey&&e$1(e$3.current,g(r))&&(r.stopPropagation(),r.preventDefault(),e$3.current.parentElement?.dispatchEvent(new KeyboardEvent(r.nativeEvent.type,r.nativeEvent)));break}},ee=r=>{if(S.current=n.key,g(r)!==e$3.current){b$3()||t.selectionManager.setFocusedKey(n.key);return}},te=r=>{let l=f(a$4(e$3.current));if(!(!e$1(r.currentTarget,g(r))||!e$3.current||!l)){if(p$1==="tab"){if(g(r)!==e$3.current&&r.key!=="Tab"){r.stopPropagation();return}if(J(r,t,n,m,s,l,e$3.current))return}switch(r.key){case "Tab":if(p$1==="tab"){let i=d$1(e$3.current,{tabbable:true});i.currentNode=l,(r.shiftKey?i.previousNode():i.nextNode())&&r.stopPropagation();}}}},re=p(n.props),ne=E.hasAction?re:{},y=c$2(D,ne,{role:"row",onKeyDownCapture:p$1==="arrow"?Z:void 0,onFocus:ee,"aria-label":n["aria-label"]||n.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(n.key)?t.selectionManager.isSelected(n.key):void 0,"aria-disabled":t.selectionManager.isDisabled(n.key)||void 0,"aria-labelledby":k&&(n["aria-label"]||n.textValue)?`${N(t,n.key)} ${k}`:void 0,id:N(t,n.key)}),oe=y.onKeyDown;y.onKeyDown=r=>{te(r),r.isPropagationStopped()||oe?.(r);};let ie=y.onPointerDown;y.onPointerDown=r=>{let l=g(r);if(l&&l!==e$3.current&&c$3(l)){r.stopPropagation();return}ie?.(r);};let le=y.onMouseDown;if(y.onMouseDown=r=>{let l=g(r);if(l&&l!==e$3.current&&c$3(l)){r.stopPropagation();return}le?.(r);},a){let{collection:r}=t,l=[...r];y["aria-rowindex"]=l.find(i=>i.type==="section")?[...r.getKeys()].filter(i=>r.getItem(i)?.type!=="section").findIndex(i=>i===n.key)+1:n.index+1;}let ae={role:"gridcell","aria-colindex":1};return {rowProps:{...c$2(y,v)},gridCellProps:ae,descriptionProps:{id:k},...E}}function J(o,t,e,n,a,s,d){if(!("expandedKeys"in t)||s!==d)return false;if(o.key===Y.expand[a]&&t.selectionManager.focusedKey===e.key&&n&&!t.expandedKeys.has(e.key))return t.toggleKey(e.key),o.stopPropagation(),true;if(o.key===Y.collapse[a]&&t.selectionManager.focusedKey===e.key){if(n&&t.expandedKeys.has(e.key))return t.toggleKey(e.key),o.stopPropagation(),true;if(!t.expandedKeys.has(e.key)&&e.parentKey&&t.collection.getItem(e.parentKey)?.type==="item")return t.selectionManager.setFocusedKey(e.parentKey),o.stopPropagation(),true}return false}function Q(o){let t=null,e=null;do e=o.lastChild(),e&&(t=e);while(e);return t}function de(o,t){let e=t.getChildren?.(o.key),n=e?Array.from(e):[],a=n.length>0?n[0]:null,s=[];for(;a;)s.push(a),a=a.nextKey!=null?t.getItem(a.nextKey):null;return s}export{N as a,Se as b,He as c};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-FXCHST4Z.mjs';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var _=a({defaultClassName:"_1i0ytqa3 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6lo _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z612f",false:"_1yep5z612h"},isDisabled:{true:"_1i0ytqa7 _1yep5z6zd",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:true,isFocusVisible:true},"_1i0ytqa9 _1yep5z61p7 _1yep5z61u5 _1yep5z61u7"],[{isInline:false,isFocusVisible:true},"_1i0ytqaa"],[{isInline:true,isDisabled:true},"_1yep5z61oi"],[{isInline:false,isDisabled:true},"_1yep5z61ok"]]}),p="_1i0ytqa0",t=a({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqad _1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),n=a({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});export{_ as a,p as b,t as c,n as d};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-6ZV4UYEG.mjs';import {b}from'./chunk-PAQQ7MQG.mjs';import {a as a$2}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-GCZFXILF.mjs';import {a as a$4}from'./chunk-MEZNZ5W6.mjs';import {b as b$1}from'./chunk-WWSGOGLA.mjs';import {e}from'./chunk-KUEDQO7P.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$7}from'./chunk-KEVERVHK.mjs';import {a as a$6}from'./chunk-JDLUGVXG.mjs';import {e as e$1,g}from'./chunk-AUOQSTS5.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import j,{useMemo,useState,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 _={none:"toolbar",single:"radiogroup",multiple:"toolbar"};function P(e$2,o,r){let{isDisabled:i,orientation:n="horizontal"}=e$2,[c,p]=useState(false);a$6(()=>{p(!!(r.current&&r.current.parentElement?.closest('[role="toolbar"]')));},[r]),[...o.collection.getKeys()].some(t=>!o.disabledKeys.has(t))||(i=true);let{direction:a}=b$2(),s=e(r),l=a==="rtl"&&n==="horizontal",A=t=>{if(e$1(t.currentTarget,g(t)))switch(t.key){case "ArrowRight":case "ArrowDown":t.preventDefault(),t.stopPropagation(),t.key==="ArrowRight"&&l?s.focusPrevious({wrap:true}):s.focusNext({wrap:true});break;case "ArrowLeft":case "ArrowUp":t.preventDefault(),t.stopPropagation(),t.key==="ArrowLeft"&&l?s.focusNext({wrap:true}):s.focusPrevious({wrap:true});break}},u=_[o.selectionManager.selectionMode];return c&&u==="toolbar"&&(u="group"),{actionGroupProps:{...a$7(e$2,{labelable:true}),role:u,"aria-orientation":u==="toolbar"?n:void 0,"aria-disabled":i,onKeyDown:A}}}var z={none:void 0,single:"radio",multiple:"checkbox"};function x(e,o,r){let i=o.selectionManager.selectionMode,n={role:z[i]};if(i!=="none"){let m=o.selectionManager.isSelected(e.key);n["aria-checked"]=m;}let c=e.key===o.selectionManager.focusedKey,p=t(()=>{c&&o.selectionManager.setFocusedKey(null);});return useEffect(()=>()=>{p();},[]),{buttonProps:c$1(n,{tabIndex:c||o.selectionManager.focusedKey==null?0:-1,onFocus(){o.selectionManager.setFocusedKey(e.key);},onPress(){o.selectionManager.select(e.key);}})}}var F="_1yep5z6f5",N="_1dc3b8m0";var B=j.forwardRef(({className:e,selectionMode:o,style:r,"data-block-id":i,"data-block-class":n,tooltipProps:c$1,icon:p,renderActionItem:m,...a$4},s)=>{let l=a(s),A=c(),u=b({...a$4,selectionMode:o,suppressTextValueWarning:true,children:A}),{actionGroupProps:t}=P({...a$4,selectionMode:o,children:A},u,l),I=[...u.collection].map(g=>(a$1(g.value),jsx(V,{item:g,state:u,isDisabled:a$4.isDisabled,onAction:a$4.onAction,tooltipProps:c$1,renderActionItem:m},g.key)));return p?jsxs(a$2,{...t,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:a$3("BaselineUI-ActionGroup",e),"data-block-id":i,"data-block-class":n,style:r,ref:l,children:[jsx(p,{"aria-hidden":"true",size:24,className:F}),jsx(a$2,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:I})]}):jsx(a$2,{...t,display:"flex",flexDirection:"row",gap:"xs",className:a$3("BaselineUI-ActionGroup",e),"data-block-id":i,"data-block-class":n,style:r,ref:l,children:I})});B.displayName="ActionGroup";var V=({item:e,state:o,tooltipProps:r,renderActionItem:i,onAction:n,isDisabled:c})=>{let{buttonProps:p}=x({key:e.key},o),m=c||o.selectionManager.isDisabled(e.key),a=o.selectionManager.isSelected(e.key);a$1(e.value);let{icon:s}=e.value;a$1(s);let l=useMemo(()=>(a$1(e.value),typeof r=="function"?r(e.value):r),[r,e.value]);return jsx(b$1,{...c$1(p,{onPress:()=>{n?.(e.key);}}),children:jsx(a$4,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:false,offset:4,...l,children:i?.(e,{isSelected:a,isDisabled:m})||jsx(a$5,{variant:"tertiary",icon:s,"aria-label":e.textValue,size:"sm",isDisabled:m,className:a$3({[N]:a},"BaselineUI-ActionGroup-Item")})})})};export{B as a,V as b};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-MXKP7NQ4.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {c}from'./chunk-JDLUGVXG.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 b(c$1,e){let{key:r}=c$1,a$1=e.selectionManager,l=c(),n=!e.selectionManager.canSelectItem(r),s=e.selectionManager.isSelected(r),d=()=>a$1.toggleSelection(r),m=b$1(a,"@react-aria/grid");return {checkboxProps:{id:l,"aria-label":m.format("select"),isSelected:s,isDisabled:n,onChange:d}}}export{b as a};