@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}from'./chunk-JDLUGVXG.mjs';import e 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 v({ref:t,onResize:r,isDisabled:n}){let[f,R]=e.useState(),s=e.useRef(r);return a(()=>{s.current=r;}),e.useEffect(()=>{let o=t.current;if(n||!o)return;let i=new ResizeObserver(([c])=>{R(c.contentRect),s.current?.(c);});return i.observe(o),()=>{i.disconnect();}},[t,n]),{size:f}}export{v as a};
@@ -0,0 +1,10 @@
1
+ import {j,k}from'./chunk-OMT6ZWSV.mjs';import {a}from'./chunk-YB3KW7JC.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {a as a$2}from'./chunk-TZ4MVY4E.mjs';import {a as a$1,g}from'./chunk-AUOQSTS5.mjs';import {useRef,useState,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var c=new Map;function i(t,l,a){let r=c.get(t);r||(r=new Map,c.set(t,r));let o=r.get(l);if(!o){let s=new Set,p=u=>{for(let f of s)f(u);};o={listener:p,handlers:s},r.set(l,o),t.addEventListener(l,p);}return o.handlers.add(a),()=>{o.handlers.delete(a),o.handlers.size===0&&(t.removeEventListener(l,o.listener),r.delete(l),r.size===0&&c.delete(t));}}function F(t$1){let{isDisabled:l}=t$1,a$3=useRef(false),[r,o]=useState(null),{focusProps:s}=a({onFocus:e=>{o(a$1(g(e)));},onFocusChange:e=>{a$3.current=e;}}),p=t(e=>{a$3.current&&t$1.getItems&&e.preventDefault();}),u=t(e=>{!a$3.current||!t$1.getItems||(e.preventDefault(),e.clipboardData&&(j(e.clipboardData,t$1.getItems({action:"copy"})),t$1.onCopy?.()));}),f=t(e=>{a$3.current&&t$1.onCut&&t$1.getItems&&e.preventDefault();}),g$1=t(e=>{!a$3.current||!t$1.onCut||!t$1.getItems||(e.preventDefault(),e.clipboardData&&(j(e.clipboardData,t$1.getItems({action:"cut"})),t$1.onCut()));}),E=t(e=>{a$3.current&&t$1.onPaste&&e.preventDefault();}),I=t(e=>{if(!(!a$3.current||!t$1.onPaste)&&(e.preventDefault(),e.clipboardData)){let y=k(e.clipboardData);t$1.onPaste(y);}});return useEffect(()=>{if(!(l||!r))return a$2(i(r,"beforecopy",p),i(r,"copy",u),i(r,"beforecut",f),i(r,"cut",g$1),i(r,"beforepaste",E),i(r,"paste",I))},[l,r]),{clipboardProps:s}}export{F as a};
@@ -0,0 +1,10 @@
1
+ import {d}from'./chunk-AQYBKDT2.mjs';import {b,a as a$1}from'./chunk-AUOQSTS5.mjs';import a,{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 v({ref:e,onSelectionChange:s,onSelectionEnd:w,isDisabled:c}){let r=a.useRef(null);d({ref:e,isDisabled:c,onPressEnd(){let t=b(e.current).getSelection();t&&e.current?.contains(t.anchorNode)&&w?.(t);},onPressStart(){let n=b(e.current);r.current=n.getSelection(),r.current&&r.current.removeAllRanges();}}),useEffect(()=>{let n=e.current;if(!n||c)return;function t(){let i=b(n).getSelection();i&&e.current?.contains(i.anchorNode)&&s(i);}let l=a$1(n);return l.addEventListener("selectionchange",t),()=>{l.removeEventListener("selectionchange",t);}},[e,s,c]);}export{v as a};
@@ -0,0 +1,10 @@
1
+ import {b as b$3,a as a$5}from'./chunk-N7MTFSWR.mjs';import {p,o}from'./chunk-SMAYNDQQ.mjs';import {b as b$2}from'./chunk-DECHIERQ.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$3}from'./chunk-PF3OQKXP.mjs';import {a as a$1}from'./chunk-RXSYDMT6.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {a as a$2}from'./chunk-JDLUGVXG.mjs';import {g,e,b as b$1,a as a$4}from'./chunk-AUOQSTS5.mjs';import et,{createContext,useRef,useCallback,useState,useEffect,useMemo,useContext}from'react';import {flushSync}from'react-dom';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 R=class h{x;y;constructor(e=0,t=0){this.x=e,this.y=t;}copy(){return new h(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}};var c=class h{x;y;width;height;constructor(e=0,t=0,i=0,o=0){this.x=e,this.y=t,this.width=i,this.height=o;}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new R(this.x,this.y)}get topRight(){return new R(this.maxX,this.y)}get bottomLeft(){return new R(this.x,this.maxY)}get bottomRight(){return new R(this.maxX,this.maxY)}intersects(e){return (process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of ["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),o=Math.max(this.maxX,e.maxX)-t,r=Math.max(this.maxY,e.maxY)-i;return new h(t,i,o,r)}intersection(e){if(!this.intersects(e))return new h(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new h(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new h(this.x,this.y,this.width,this.height)}};var f=class h{width;height;constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0);}copy(){return new h(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}};var Qe=0,ue=class{virtualizer;layoutInfo;content;rendered;viewType;key;children;reusableViews;constructor(e,t){this.virtualizer=e,this.key=++Qe,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null;}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null;}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new we(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e);}},de=class extends ue{constructor(e){super(e,"root");}},we=class extends ue{parent;constructor(e,t,i){super(e,i),this.parent=t;}};function Oe(h,e){if(h===e)return true;if(h.size!==e.size)return false;for(let t of h)if(!e.has(t))return false;return true}var ce=class{startTime=0;velocity=new R(0,0);visibleRect=new c;setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e;}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;e.height+=t,this.velocity.y<0&&(e.y-=t);let i=this.visibleRect.width/3;return e.width+=i,this.velocity.x<0&&(e.x-=i),e}};var ye=class{delegate;collection;layout;contentSize;visibleRect;size;persistedKeys;_visibleViews;_renderedContent;_rootView;_isScrolling;_invalidationContext;_overscanManager;constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new f,this.visibleRect=new c,this.size=new f,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new de(this),this._isScrolling=false,this._invalidationContext={},this._overscanManager=new ce;}isPersistedKey(e){if(this.persistedKeys.has(e))return true;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return true}return false}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:o}=e.layoutInfo;e.content=o||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content);}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let o=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,o),o}keyAtPoint(e){let t=new c(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let o of i)if(o.rect.intersects(t))return o.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,o=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),o=Math.max(0,Math.min(this.contentSize.height-t.height,o)),i!==t.x||o!==t.y){let r=new c(i,o,t.width,t.height);this.delegate.setVisibleRect(r);}else this.updateSubviews();}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),o;e&&!(t&&i)?o=new c(0,0,this.contentSize.width,this.contentSize.height):o=this._overscanManager.getOverscannedRect();let r=this.layout.getVisibleLayoutInfos(o),l=new Map;for(let n of r)l.set(n.key,n);return l}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,o]of this._visibleViews){let r=e.get(i);(!r||o.parent!==this.getParentView(r))&&(this._visibleViews.delete(i),o.parent.reuseChild(o),t.add(o));}for(let[i,o]of e){let r=this._visibleViews.get(i);if(!r)r=this.getReusableView(o),r.parent.children.add(r),this._visibleViews.set(i,r),t.delete(r);else {r.layoutInfo=o;let l=this.collection.getItem(o.key);r.content!==l&&(r.content!=null&&this._renderedContent.delete(r.content),this._renderView(r));}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let o=this._visibleViews.get(i);o.parent.children.delete(o),o.parent.children.add(o);}}render(e){let t=this,i=false,o=false,r=false,l=false,n=false,a=false;if(e.collection!==this.collection&&(t.collection=e.collection,i=true),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=true),e.persistedKeys&&!Oe(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,a=true),!this.visibleRect.equals(e.visibleRect)||!this.size.equals(e.size)){this._overscanManager.setVisibleRect(e.visibleRect);let s=new c(this.visibleRect.x,this.visibleRect.y,this.size.width,this.size.height),u=new c(e.visibleRect.x,e.visibleRect.y,e.size.width,e.size.height);this.layout.shouldInvalidate(u,s)?(o=!e.visibleRect.pointEquals(this.visibleRect),r=!this.size.equals(e.size),i=true):a=true,t.visibleRect=e.visibleRect,t.size=e.size;}return e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(r||=e.invalidationContext.sizeChanged||false,o||=e.invalidationContext.offsetChanged||false,l||=e.invalidationContext.itemSizeChanged||false,n||=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions),i||=l||r||o||n),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(a=true)),i?this.relayout({offsetChanged:o,sizeChanged:r,itemSizeChanged:l,layoutOptionsChanged:n,layoutOptions:this._invalidationContext.layoutOptions}):a&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e);}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:true});}};var it=typeof document<"u"?et.useLayoutEffect:()=>{};function ze(h){let[e,t]=useState(new c(0,0,0,0)),[i,o]=useState(new f),[r,l]=useState(false),[n,a]=useState({}),s=useRef(false),[u]=useState(()=>new ye({collection:h.collection,layout:h.layout,delegate:{setVisibleRect(L){t(L),s.current=true;},renderView:h.renderView,invalidate:a}}));it(()=>{s.current&&(s.current=false,h.onVisibleRectChange(e));});let m=useMemo(()=>h.layoutOptions!=null?{...n,layoutOptions:h.layoutOptions}:n,[n,h.layoutOptions]),d=u.render({layout:h.layout,collection:h.collection,persistedKeys:h.persistedKeys,layoutOptions:h.layoutOptions,visibleRect:e,size:i,invalidationContext:m,isScrolling:r}),y=u.contentSize,g=useCallback(()=>{l(true);},[]),p=useCallback(()=>{l(false);},[]);return useMemo(()=>({virtualizer:u,visibleViews:d,setVisibleRect:t,size:i,setSize:o,contentSize:y,isScrolling:r,startScrolling:g,endScrolling:p}),[u,d,t,i,o,y,r,g,p])}var F=class{virtualizer=null;shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){return this.getLayoutInfo(e)?.rect??null}getVisibleRect(){return this.virtualizer.visibleRect}};var S=class h{type;key;parentKey;content;rect;estimatedSize;isSticky;opacity;transform;zIndex;allowOverflow;constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=false,this.isSticky=false,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=false;}copy(){let e=new h(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}};var V={minItemSize:new f(200,200),maxItemSize:new f(1/0,1/0),preserveAspectRatio:false,minSpace:new f(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48},oe=class extends F{gap=V.minSpace;dropIndicatorThickness=2;numColumns=0;direction="ltr";contentSize=new f;layoutInfos=new Map;margin=0;shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||V.minItemSize).equals(t.minItemSize||V.minItemSize)||!(e.maxItemSize||V.maxItemSize).equals(t.maxItemSize||V.maxItemSize)||!(e.minSpace||V.minSpace).equals(t.minSpace||V.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=V.minItemSize,maxItemSize:i=V.maxItemSize,preserveAspectRatio:o=V.preserveAspectRatio,minSpace:r=V.minSpace,maxHorizontalSpace:l=V.maxSpace,maxColumns:n=V.maxColumns,dropIndicatorThickness:a=V.dropIndicatorThickness,loaderHeight:s=V.loaderHeight,direction:u="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=a,this.direction=u;let m=this.virtualizer.size.width,d=Math.min(i.width,m),y=Number.isFinite(i.height)?i.height:Math.floor(t.height/t.width*d),g=Math.floor(m/(t.width+r.width)),p=Math.max(1,Math.min(n,g));this.numColumns=p;let T=m-r.width*Math.max(0,p),L=Math.floor(T/p);L=Math.max(t.width,Math.min(d,L));let E=(L-t.width)/Math.max(1,d-t.width),C=t.height+Math.floor((y-t.height)*E);C=Math.max(t.height,Math.min(y,C));let N=Math.min(Math.max(l,r.width),Math.floor((m-p*L)/(p+1)));this.gap=new f(N,r.height),this.margin=Math.floor((m-p*L-N*(p+1))/2);let k=this.virtualizer.collection,j=k.size,M=k.getLastKey();for(let x=0;x<2&&M!=null;x++){if(k.getItem(M)?.type==="skeleton"){j++;break}M=k.getKeyBefore(M);}let q=Math.ceil(j/p),A=k[Symbol.iterator](),w=q>0?r.height:0,b=new Map,z=null,v=0;for(let x=0;x<q;x++){let P=0,X=[];for(let O=0;O<p;O++){let D=z||A.next().value;if(!D)break;if(D.type==="loader")continue;D.type==="skeleton"&&(z=D);let _=z?`${z.key}-${v++}`:D.key,W=this.layoutInfos.get(_),H=D;z&&(H=W&&W.content.key===_?W.content:{...z,key:_});let ae=N+O*(L+N)+this.margin,se=C,te=!o;W&&te&&(se=W.rect.height,te=e.layoutOptionsChanged||e.sizeChanged||W.estimatedSize||W.content!==H);let Ze=new c(ae,w,L,se),J=new S(D.type,_,Ze);J.estimatedSize=te,J.allowOverflow=true,J.content=H,b.set(_,J),X.push(J),P=Math.max(P,J.rect.height);}for(let O of X)O.rect.height=P;w+=P+r.height,z&&x===q-1&&w<this.virtualizer.size.height&&q++;}let I=k.getItem(k.getLastKey());if(I?.type==="loader"){(v>0||!I.props.isLoading)&&(s=0);let x=m-N*2,P=new c(N,w,x,s),X=new S("loader",I.key,P);b.set(I.key,X),w=X.rect.maxY;}this.layoutInfos=b,this.contentSize=new f(this.virtualizer.size.width,w);}getLayoutInfo(e){return this.layoutInfos.get(e)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let i of this.layoutInfos.values())(i.rect.intersects(e)||this.virtualizer.isPersistedKey(i.key)||i.type==="loader")&&t.push(i);return t}updateItemSize(e,t){let i=this.layoutInfos.get(e);if(!t||!i)return false;if(t.height!==i.rect.height){let o=i.copy();return o.rect.height=t.height,o.estimatedSize=false,this.layoutInfos.set(e,o),true}return false}getDropTargetFromPoint(e,t,i){if(this.layoutInfos.size===0)return {type:"root"};e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y,this.direction==="rtl"&&this.numColumns>1&&(e=this.contentSize.width-e);let o=null;if(this.numColumns===1){let u=new c(e,Math.max(0,t-this.gap.height),1,Math.max(1,this.gap.height*2)),m=this.getVisibleLayoutInfos(u),d=1/0;for(let y of m){if(!y.rect.intersects(u))continue;let g=Math.abs(y.rect.y-t),p=Math.abs(y.rect.maxY-t),T=Math.min(g,p);T<d&&(d=T,o=y.key);}}else {let u=new c(Math.max(0,e-this.gap.width),t,this.gap.width*2,1),m=this.getVisibleLayoutInfos(u),d=1/0;for(let y of m){if(!y.rect.intersects(u))continue;let g=Math.abs(y.rect.x-e),p=Math.abs(y.rect.maxX-e),T=Math.min(g,p);T<d&&(d=T,o=y.key);}}let r=o!=null?this.getLayoutInfo(o):null;if(!r)return {type:"root"};let l={type:"item",key:r.key,dropPosition:"on"},n=this.numColumns===1?t:e,a=this.numColumns===1?r.rect.y:r.rect.x,s=this.numColumns===1?r.rect.height:r.rect.width;if(i(l))n<a+5?l.dropPosition="before":n>a+s-5&&(l.dropPosition="after");else {let u=a+s/2;n<=u&&i({...l,dropPosition:"before"})?l.dropPosition="before":n>=u&&i({...l,dropPosition:"after"})&&(l.dropPosition="after");}return l}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;return this.numColumns===1?i=new c(t.rect.x,e.dropPosition==="before"?t.rect.y-this.gap.height/2-this.dropIndicatorThickness/2:t.rect.maxY+this.gap.height/2-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):i=new c(e.dropPosition==="before"?t.rect.x-this.gap.width/2-this.dropIndicatorThickness/2:t.rect.maxX+this.gap.width/2-this.dropIndicatorThickness/2,t.rect.y,this.dropIndicatorThickness,t.rect.height),new S("dropIndicator",e.key+":"+e.dropPosition,i)}};var B=48,Y=class extends F{rowSize;orientation;estimatedRowSize;headingSize;estimatedHeadingSize;loaderSize;dropIndicatorThickness;gap;padding;layoutNodes;contentSize;lastCollection;rootNodes;invalidateEverything;validRect;requestedRect;constructor(e={}){super(),this.rowSize=e?.rowSize??e?.rowHeight??null,this.orientation=e.orientation??"vertical",this.estimatedRowSize=e?.estimatedRowSize??e?.estimatedRowHeight??null,this.headingSize=e?.headingSize??e?.headingHeight??null,this.estimatedHeadingSize=e?.estimatedHeadingSize??e?.estimatedHeadingHeight??null,this.loaderSize=e?.loaderSize??e?.loaderHeight??null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=false,this.validRect=new c,this.requestedRect=new c,this.contentSize=new f;}get collection(){return this.virtualizer.collection}get rowHeight(){return this.rowSize}get estimatedRowHeight(){return this.estimatedRowSize}get headingHeight(){return this.headingSize}get estimatedHeadingHeight(){return this.estimatedHeadingSize}get loaderHeight(){return this.loaderSize}getLayoutInfo(e){return this.ensureLayoutInfo(e),this.layoutNodes.get(e)?.layoutInfo||null}getVisibleLayoutInfos(e){let t=this.orientation==="horizontal"?"x":"y",i=this.orientation==="horizontal"?"width":"height";if(e[i]>1){let l=(this.rowSize??this.estimatedRowSize??B)+this.gap;e=e.copy();let n=Math.floor(e[t]/l)*l,a=e[i]+e[t]-n;e[t]=n,e[i]=Math.ceil(a/l)*l;}this.layoutIfNeeded(e);let o=[],r=l=>{for(let n of l)this.isVisible(n,e)&&(o.push(n.layoutInfo),n.children&&r(n.children));};return r(this.rootNodes),o}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return !this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new c(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new c(0,0,this.contentSize.width,this.contentSize.height),true):false}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;return e.sizeChanged||this.rowSize!==(t?.rowSize??t?.rowHeight??this.rowSize)||this.orientation!==(t?.orientation??this.orientation)||this.headingSize!==(t?.headingSize??t?.headingHeight??this.headingSize)||this.loaderSize!==(t?.loaderSize??t?.loaderHeight??this.loaderSize)||this.gap!==(t?.gap??this.gap)||this.padding!==(t?.padding??this.padding)}shouldInvalidateLayoutOptions(e,t){return (e?.rowSize??e?.rowHeight)!==(t?.rowSize??t?.rowHeight)||e.orientation!==t.orientation||(e?.estimatedRowSize??e?.estimatedRowHeight)!==(t?.estimatedRowSize??t?.estimatedRowHeight)||(e?.headingSize??e?.headingHeight)!==(t?.headingSize??t?.headingHeight)||(e?.estimatedHeadingSize??e?.estimatedHeadingHeight)!==(t?.estimatedHeadingSize??t?.estimatedHeadingHeight)||(e?.loaderSize??e?.loaderHeight)!==(t?.loaderSize??t?.loaderHeight)||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;if(this.rowSize=i?.rowSize??i?.rowHeight??this.rowSize,this.orientation=i?.orientation??this.orientation,this.estimatedRowSize=i?.estimatedRowSize??i?.estimatedRowHeight??this.estimatedRowSize,this.headingSize=i?.headingSize??i?.headingHeight??this.headingSize,this.estimatedHeadingSize=i?.estimatedHeadingSize??i?.estimatedHeadingHeight??this.estimatedHeadingSize,this.loaderSize=i?.loaderSize??i?.loaderHeight??this.loaderSize,this.dropIndicatorThickness=i?.dropIndicatorThickness??this.dropIndicatorThickness,this.gap=i?.gap??this.gap,this.padding=i?.padding??this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let o of this.lastCollection.getKeys())t.getItem(o)||this.layoutNodes.get(o)&&this.layoutNodes.delete(o);this.lastCollection=t,this.invalidateEverything=false,this.validRect=this.requestedRect.copy();}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=this.orientation==="horizontal"?"x":"y",o=this.orientation==="horizontal"?"maxX":"maxY",r=ot(t,s=>s.type!=="content"),l=r.filter(s=>s.type==="loader"),n=[],a=t?.size===0;a&&(e=0);for(let s of r){let u=(this.rowSize??this.estimatedRowSize??B)+this.gap;if(s.type==="item"&&e+u<this.requestedRect[i]&&!this.isValid(s,e)){e+=u;continue}let m=this.orientation==="horizontal"?this.buildChild(s,e,this.padding,null):this.buildChild(s,this.padding,e,null);if(e=m.layoutInfo.rect[o]+this.gap,n.push(m),s.type==="loader"){let d=l.indexOf(s);l.splice(d,1);}if((s.type==="item"||s.type==="loader")&&e>this.requestedRect[o]){let d=r.indexOf(s);for(let y of l){let g=r.indexOf(y);e+=(g-d-1)*u;let p=this.orientation==="horizontal"?this.buildChild(y,e,this.padding,null):this.buildChild(y,this.padding,e,null);n.push(p),e=p.layoutInfo.rect[o],d=g;}e+=(r.length-d-1)*u;break}}return e=Math.max(e-this.gap,0),e+=a?0:this.padding,this.contentSize=this.orientation==="horizontal"?new f(e,this.virtualizer.size.height):new f(this.virtualizer.size.width,e),n}isValid(e,t){let i=this.layoutNodes.get(e.key),o=this.orientation==="horizontal"?"x":"y";return !this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect[o]&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,o){if(this.isValid(e,this.orientation==="horizontal"?t:i))return this.layoutNodes.get(e.key);let r=this.buildNode(e,t,i);return r.layoutInfo.parentKey=o??null,r.layoutInfo.allowOverflow=true,this.layoutNodes.set(e.key,r),r}buildNode(e,t,i){switch(e.type){case "section":return this.buildSection(e,t,i);case "item":return this.buildItem(e,t,i);case "header":return this.buildSectionHeader(e,t,i);case "loader":return this.buildLoader(e,t,i);case "separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let o=new c(t,i,this.padding,0),r=new S(e.type,e.key,o);return this.orientation==="horizontal"?(o.height=this.virtualizer.contentSize.height-this.padding-i,o.width=e.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??B:0):(o.width=this.virtualizer.contentSize.width-this.padding-t,o.height=e.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??B:0),{layoutInfo:r,validRect:o.intersection(this.requestedRect)}}buildSection(e,t,i){let o=this.virtualizer.collection,r=this.virtualizer.size.width-this.padding-t,l=this.virtualizer.size.height-this.padding-i,n=this.orientation==="horizontal"?new c(t,i,0,l):new c(t,i,r,0),a=new S(e.type,e.key,n),s=this.orientation==="horizontal"?t:i,u=this.orientation==="horizontal"?"x":"y",m=this.orientation==="horizontal"?"maxX":"maxY",d=this.orientation==="horizontal"?"width":"height",y=0,g=[];for(let p of b$2(e,o)){if(p.type==="content")continue;let T=(this.rowSize??this.estimatedRowSize??B)+this.gap;if(s+T<this.requestedRect[u]&&!this.isValid(e,s)){s+=T,y++;continue}let L=this.orientation==="horizontal"?this.buildChild(p,s,i,a.key):this.buildChild(p,t,s,a.key);if(s=L.layoutInfo.rect[m]+this.gap,g.push(L),s>this.requestedRect[m]){s+=([...b$2(e,o)].length-(g.length+y))*T;break}}return s-=this.gap,n[d]=s-(this.orientation==="horizontal"?t:i),{layoutInfo:a,children:g,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let o=this.orientation==="horizontal"?"height":"width",r=this.orientation==="horizontal"?"width":"height",l=this.virtualizer.size[o]-this.padding-(this.orientation==="horizontal"?i:t),n=this.headingSize,a=false;if(n==null){let m=this.layoutNodes.get(e.key),d=m?.layoutInfo;if(d){let y=this.virtualizer.collection.getItem(e.key),g=this.lastCollection?this.lastCollection.getItem(e.key):null;n=m.layoutInfo.rect[r],a=l!==d.rect[o]||y!==g||d.estimatedSize;}else n=e.rendered?this.estimatedHeadingSize:0,a=true;}n==null&&(n=B);let s=this.orientation==="horizontal"?new c(t,i,n,l-i):new c(t,i,l-t,n),u=new S("header",e.key,s);return u.estimatedSize=a,{layoutInfo:u,children:[],validRect:u.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let o=this.orientation==="horizontal"?"height":"width",r=this.orientation==="horizontal"?"width":"height",l=this.virtualizer.size[o]-this.padding-(this.orientation==="horizontal"?i:t),n=this.rowSize,a=false;if(n==null){let m=this.layoutNodes.get(e.key);m?(n=m.layoutInfo.rect[r],a=l!==m.layoutInfo.rect[o]||e!==m.node||m.layoutInfo.estimatedSize):(n=this.estimatedRowSize,a=true);}n==null&&(n=B);let s=this.orientation==="horizontal"?new c(t,i,n,l):new c(t,i,l,n),u=new S(e.type,e.key,s);return u.estimatedSize=a,{layoutInfo:u,children:[],validRect:u.rect.intersection(this.requestedRect),node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return false;let o=this.virtualizer.collection,r=i.layoutInfo,l=this.orientation==="horizontal"?"x":"y",n=this.orientation==="horizontal"?"width":"height";if(r.estimatedSize=false,r.rect[n]!==t[n]){let a=r.copy();a.rect[n]=t[n],i.layoutInfo=a,this.validRect[n]=Math.min(this.validRect[n],r.rect[l]-this.validRect[l]),i.node?.type==="item"&&(this.requestedRect[n]+=a.rect[n]-r.rect[n]),this.updateLayoutNode(e,r,a);let s=r.parentKey!=null?o.getItem(r.parentKey):null;for(;s;)this.updateLayoutNode(s.key,r,a),s=s.parentKey!=null?o.getItem(s.parentKey):null;return true}return false}updateLayoutNode(e,t,i){let o=this.layoutNodes.get(e);o&&(o.validRect=o.validRect.intersection(this.validRect),o.layoutInfo===t&&(o.layoutInfo=i));}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let o=new c(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),r=this.getVisibleLayoutInfos(o),l=null,n=1/0;for(let m of r){if(!m.rect.intersects(o))continue;let d=Math.abs(m.rect.y-t),y=Math.abs(m.rect.maxY-t),g=Math.min(d,y);g<n&&(n=g,l=m.key);}if(l==null||this.virtualizer.collection.size===0)return {type:"root"};let a=this.getLayoutInfo(l);if(!a)return null;let s=a.rect,u={type:"item",key:a.key,dropPosition:"on"};return i(u)?t<=s.y+10&&i({...u,dropPosition:"before"})?u.dropPosition="before":t>=s.maxY-10&&i({...u,dropPosition:"after"})&&(u.dropPosition="after"):t<=s.y+s.height/2&&i({...u,dropPosition:"before"})?u.dropPosition="before":i({...u,dropPosition:"after"})&&(u.dropPosition="after"),u}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=this.orientation==="horizontal"?new c(Math.max(0,t.rect.x-this.dropIndicatorThickness/2),t.rect.y,this.dropIndicatorThickness,t.rect.height):new c(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let o=this.collection.getItem(e.key);if(o){let r=o.level??0,l=this.collection.getKeyAfter(e.key);for(;l!=null;){let n=this.collection.getItem(l);if(!n||n.level<=r)break;t=this.getLayoutInfo(l)||t,l=this.collection.getKeyAfter(l);}}i=this.orientation==="horizontal"?new c(t.rect.maxX-this.dropIndicatorThickness/2,t.rect.y,this.dropIndicatorThickness,t.rect.height):new c(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness);}else i=t.rect;return new S("dropIndicator",e.key+":"+e.dropPosition,i)}};function ot(h,e){let t=[];for(let i of h)e(i)&&t.push(i);return t}var De=48,re=class extends Y{lastCollection=null;columnWidths=new Map;stickyColumnIndices;lastPersistedKeys=null;persistedIndices=new Map;constructor(e){super(e),this.stickyColumnIndices=[];}get collection(){return this.virtualizer.collection}get rowHeight(){return super.rowHeight}get estimatedRowHeight(){return super.estimatedRowHeight}get headingHeight(){return super.headingHeight}get estimatedHeadingHeight(){return super.estimatedHeadingHeight}get loaderHeight(){return super.loaderHeight}columnsChanged(e,t){return !t||e.columns!==t.columns&&e.columns.length!==t.columns.length||e.columns.some((i,o)=>i.key!==t.columns[o].key||i.props.width!==t.columns[o].props.width||i.props.minWidth!==t.columns[o].props.minWidth||i.props.maxWidth!==t.columns[o].props.maxWidth)}shouldInvalidateLayoutOptions(e,t){return e.columnWidths!==t.columnWidths||super.shouldInvalidateLayoutOptions(e,t)}update(e){let t=this.virtualizer.collection;if(e.layoutOptions?.columnWidths){for(let[i,o]of e.layoutOptions.columnWidths)if(this.columnWidths.get(i)!==o){this.columnWidths=e.layoutOptions.columnWidths,e.sizeChanged=true;break}}else if(e.sizeChanged||this.columnsChanged(t,this.lastCollection)){let i=new a$5({});this.columnWidths=i.buildColumnWidths(this.virtualizer.size.width-this.padding*2,t,new Map),e.sizeChanged=true;}super.update(e);}buildCollection(){this.stickyColumnIndices=[];let e=this.virtualizer.collection;for(let r of e.columns)(this.isStickyColumn(r)||e.rowHeaderColumnKeys.has(r.key))&&this.stickyColumnIndices.push(r.index);let t=[],i=0,o=0;if(e.head){for(let r of e)switch(r.type){case "tableheader":{let l=this.buildTableHeader();i=l.layoutInfo.rect.maxY+this.gap,o=Math.max(o,l.layoutInfo.rect.width),this.layoutNodes.set(l.layoutInfo.key,l),t.push(l);break}case "tablebody":case "tablefooter":{let l=this.buildRowGroup(i,r);i=l.layoutInfo.rect.maxY+this.gap,o=Math.max(o,l.layoutInfo.rect.width),this.layoutNodes.set(l.layoutInfo.key,l),t.push(l);break}}i>0&&(i-=this.gap);for(let r of t)r.layoutInfo.rect.width=o;}else {let r=this.buildTableHeader();this.layoutNodes.set(r.layoutInfo.key,r);let l=this.buildBody(r.layoutInfo.rect.maxY+this.gap);l.layoutInfo.rect.width=Math.max(r.layoutInfo.rect.width,l.layoutInfo.rect.width),i=l.layoutInfo.rect.maxY,o=l.layoutInfo.rect.width,t=[r,l];}return this.lastPersistedKeys=null,this.contentSize=new f(o+this.padding*2,i+this.padding),t}buildTableHeader(){let e=this.virtualizer.collection,t=new c(this.padding,this.padding,0,0),i=new S("header",e.head?.key??"header",t);i.isSticky=true,i.zIndex=1;let o=this.padding,r=0,l=[];for(let n of e.headerRows){let a=this.buildChild(n,this.padding,o,i.key);a.layoutInfo.parentKey=i.key,o=a.layoutInfo.rect.maxY,r=Math.max(r,a.layoutInfo.rect.width),a.index=l.length,l.push(a);}return t.width=r,t.height=o-this.padding,{layoutInfo:i,children:l,validRect:i.rect,node:e.head}}buildHeaderRow(e,t,i){let o=new c(t,i,0,0),r=new S("headerrow",e.key,o),l=0,n=[];for(let a of b$2(e,this.virtualizer.collection)){let s=this.buildChild(a,t,i,r.key);s.layoutInfo.parentKey=r.key,t=s.layoutInfo.rect.maxX,l=Math.max(l,s.layoutInfo.rect.height),s.index=n.length,n.push(s);}for(let[a,s]of n.entries())s.layoutInfo.zIndex=n.length-a+1;return this.setChildHeights(n,l),o.height=l,o.width=t-o.x,{layoutInfo:r,children:n,validRect:o,node:e}}setChildHeights(e,t){for(let i of e)i.layoutInfo.rect.height!==t&&(i.layoutInfo=i.layoutInfo.copy(),i.layoutInfo.rect.height=t);}getRenderedColumnWidth(e){let t=this.virtualizer.collection,i=e.colSpan??1,o=e.colIndex??e.index,r=0;for(let l=o;l<o+i;l++){let n=t.columns[l];n?.key!=null&&(r+=this.columnWidths.get(n.key)??0);}return r}getEstimatedHeight(e,t,i,o){let r=false;if(i==null){let l=this.layoutNodes.get(e.key);l?(i=l.layoutInfo.rect.height,r=e!==l.node||t!==l.layoutInfo.rect.width||l.layoutInfo.estimatedSize):(i=o??De,r=true);}return {height:i,isEstimated:r}}getEstimatedRowHeight(){return this.rowHeight??this.estimatedRowHeight??De}buildColumn(e,t,i){let o=this.getRenderedColumnWidth(e),{height:r,isEstimated:l}=this.getEstimatedHeight(e,o,this.headingHeight??this.rowHeight,this.estimatedHeadingHeight??this.estimatedRowHeight),n=new c(t,i,o,r),a=new S(e.type,e.key,n);return a.isSticky=this.isStickyColumn(e),a.zIndex=a.isSticky?2:1,a.estimatedSize=l,{layoutInfo:a,children:[],validRect:a.rect,node:e}}isStickyColumn(e){return false}buildBody(e){let t=this.virtualizer.collection;return this.buildRowGroup(e,t.body)}buildRowGroup(e,t){let i=this.virtualizer.collection,o=new c(this.padding,e,0,0),r=new S("rowgroup",t.key,o),l=e,n=0,a=[],s=this.getEstimatedRowHeight()+this.gap,u=b$2(t,i);for(let d of u){if(e+s<this.requestedRect.y&&!this.isValid(d,e)||e>this.requestedRect.maxY&&d.type!=="loader"){e+=s;continue}let y=this.buildChild(d,this.padding,e,r.key);y.layoutInfo.parentKey=r.key,y.index=a.length,e=y.layoutInfo.rect.maxY+this.gap,n=Math.max(n,y.layoutInfo.rect.width),a.push(y);}return i?.size===0?e=this.virtualizer.size.height:e-=this.gap,o.width=n,o.height=e-l,{layoutInfo:r,children:a,validRect:r.rect.intersection(this.requestedRect),node:t}}buildLoader(e,t,i){let o=super.buildLoader(e,t,i),r=this.virtualizer.collection;return o.layoutInfo.rect.width=this.layoutNodes.get(r.head?.key??"header").layoutInfo.rect.width,o.validRect=o.layoutInfo.rect.intersection(this.requestedRect),o}buildNode(e,t,i){switch(e.type){case "headerrow":return this.buildHeaderRow(e,t,i);case "item":return this.buildRow(e,t,i);case "column":case "placeholder":return this.buildColumn(e,t,i);case "cell":return this.buildCell(e,t,i);case "loader":return this.buildLoader(e,t,i);default:throw new Error("Unknown node type "+e.type)}}buildRow(e,t,i){let o=this.virtualizer.collection,r=new c(t,i,0,0),l=new S("row",e.key,r),n=[],a=0;for(let s of b$2(e,o))if(s.type==="cell")if(t>this.requestedRect.maxX){let u=this.layoutNodes.get(s.key);if(u)u.layoutInfo.rect.x=t,t+=u.layoutInfo.rect.width;else break}else {let u=this.buildChild(s,t,i,l.key);t=u.layoutInfo.rect.maxX,a=Math.max(a,u.layoutInfo.rect.height),u.index=n.length,n.push(u);}return this.setChildHeights(n,a),r.width=this.layoutNodes.get(o.head?.key??"header").layoutInfo.rect.width,r.height=a,{layoutInfo:l,children:n,validRect:r.intersection(this.requestedRect),node:e}}buildCell(e,t,i){let o=this.getRenderedColumnWidth(e),{height:r,isEstimated:l}=this.getEstimatedHeight(e,o,this.rowHeight,this.estimatedRowHeight),n=new c(t,i,o,r),a=new S(e.type,e.key,n);return a.isSticky=this.isStickyColumn(e),a.zIndex=a.isSticky?2:1,a.estimatedSize=l,{layoutInfo:a,children:[],validRect:n,node:e}}getVisibleLayoutInfos(e){if(e.height>1){let i=this.getEstimatedRowHeight();e.y=Math.floor(e.y/i)*i,e.height=Math.ceil(e.height/i)*i;}this.layoutIfNeeded(e);let t=[];this.buildPersistedIndices();for(let i of this.rootNodes)t.push(i.layoutInfo),this.addVisibleLayoutInfos(t,i,e);return t}addVisibleLayoutInfos(e,t,i){if(!(!t.children||t.children.length===0))switch(t.layoutInfo.type){case "header":{for(let o of t.children)e.push(o.layoutInfo),this.addVisibleLayoutInfos(e,o,i);break}case "rowgroup":{let o=this.binarySearch(t.children,i.topLeft,"y"),r=this.binarySearch(t.children,i.bottomRight,"y"),l=this.persistedIndices.get(t.layoutInfo.key),n=0;for(;l&&n<l.length&&l[n]<o;){let s=l[n];s<t.children.length&&(e.push(t.children[s].layoutInfo),this.addVisibleLayoutInfos(e,t.children[s],i)),n++;}for(let s=o;s<=r;s++){for(;l&&n<l.length&&l[n]<s;)n++;e.push(t.children[s].layoutInfo),this.addVisibleLayoutInfos(e,t.children[s],i);}for(;l&&n<l.length;){let s=l[n++];s<t.children.length&&(e.push(t.children[s].layoutInfo),this.addVisibleLayoutInfos(e,t.children[s],i));}let a=t.children.at(-1);a?.layoutInfo.type==="loader"&&e.push(a.layoutInfo);break}case "headerrow":case "row":{let o=this.binarySearch(t.children,i.topLeft,"x"),r=this.binarySearch(t.children,i.topRight,"x"),l=0,n=this.persistedIndices.get(t.layoutInfo.key)||this.stickyColumnIndices;for(;l<n.length&&n[l]<o;){let a=n[l];a<t.children.length&&e.push(t.children[a].layoutInfo),l++;}for(let a=o;a<=r;a++){for(;l<n.length&&n[l]<a;)l++;e.push(t.children[a].layoutInfo);}for(;l<n.length;){let a=n[l++];a<t.children.length&&e.push(t.children[a].layoutInfo);}break}default:throw new Error("Unknown node type "+t.layoutInfo.type)}}binarySearch(e,t,i){let o=0,r=e.length-1;for(;o<=r;){let l=o+r>>1,n=e[l];if(i==="x"&&n.layoutInfo.rect.maxX<=t.x||i==="y"&&n.layoutInfo.rect.maxY<=t.y)o=l+1;else if(i==="x"&&n.layoutInfo.rect.x>t.x||i==="y"&&n.layoutInfo.rect.y>t.y)r=l-1;else return l}return Math.max(0,Math.min(e.length-1,o))}buildPersistedIndices(){if(this.virtualizer.persistedKeys!==this.lastPersistedKeys){this.lastPersistedKeys=this.virtualizer.persistedKeys,this.persistedIndices.clear();for(let e of this.virtualizer.persistedKeys){let t=this.layoutNodes.get(e)?.layoutInfo;for(;t&&t.parentKey;){let i=this.virtualizer.collection.getItem(t.key),o=this.persistedIndices.get(t.parentKey);o||(o=i?.type==="cell"||i?.type==="column"?[...this.stickyColumnIndices]:[],this.persistedIndices.set(t.parentKey,o));let r=this.layoutNodes.get(t.key)?.index;r!=null&&!o.includes(r)&&o.push(r),t=this.layoutNodes.get(t.parentKey)?.layoutInfo;}}for(let e of this.persistedIndices.values())e.sort((t,i)=>t-i);}}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let o=new c(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),r=this.getVisibleLayoutInfos(o),l=null,n=1/0;for(let m of r){if(m.type!=="row"||!m.rect.intersects(o))continue;let d=Math.abs(m.rect.y-t),y=Math.abs(m.rect.maxY-t),g=Math.min(d,y);g<n&&(n=g,l=m.key);}if(l==null||this.virtualizer.collection.size===0)return {type:"root"};let a=this.getLayoutInfo(l);if(!a)return null;let s=a.rect,u={type:"item",key:a.key,dropPosition:"on"};return i(u)?t<=s.y+10&&i({...u,dropPosition:"before"})?u.dropPosition="before":t>=s.maxY-10&&i({...u,dropPosition:"after"})&&(u.dropPosition="after"):t<=s.y+s.height/2&&i({...u,dropPosition:"before"})?u.dropPosition="before":i({...u,dropPosition:"after"})&&(u.dropPosition="after"),u}getDropTargetLayoutInfo(e){let t=super.getDropTargetLayoutInfo(e);return t.parentKey=this.virtualizer.collection.getItem(e.key)?.parentKey??null,t}};var Ie=class extends S{column=0;index=0;copy(){let e=super.copy();return e.column=this.column,e.index=this.index,e}},K={minItemSize:new f(200,200),maxItemSize:new f(1/0,1/0),minSpace:new f(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48},le=class extends F{contentSize=new f;layoutInfos=new Map;numColumns=0;dropIndicatorThickness=2;margin=0;shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||!(e.minItemSize||K.minItemSize).equals(t.minItemSize||K.minItemSize)||!(e.maxItemSize||K.maxItemSize).equals(t.maxItemSize||K.maxItemSize)||!(e.minSpace||K.minSpace).equals(t.minSpace||K.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight}update(e){let{minItemSize:t=K.minItemSize,maxItemSize:i=K.maxItemSize,minSpace:o=K.minSpace,maxHorizontalSpace:r=K.maxSpace,maxColumns:l=K.maxColumns,dropIndicatorThickness:n=K.dropIndicatorThickness,loaderHeight:a=K.loaderHeight}=e.layoutOptions||{};this.dropIndicatorThickness=n;let s=this.virtualizer.size.width,u=Math.min(i.width,s),m=Number.isFinite(i.height)?i.height:Math.floor(t.height/t.width*u),d=Math.floor(s/(t.width+o.width)),y=Math.max(1,Math.min(l,d)),g=s-o.width*Math.max(0,y),p=Math.floor(g/y);p=Math.max(t.width,Math.min(u,p));let T=(p-t.width)/Math.max(1,u-t.width),L=t.height+Math.floor((m-t.height)*T);L=Math.max(t.height,Math.min(m,L));let E=Math.min(Math.max(r,o.width),Math.floor((s-y*p)/(y+1)));this.margin=Math.floor((s-y*p-E*(y+1))/2);let C=Array(y).fill(o.height),N=new Map,k=0,j=(z,v)=>{let I=this.layoutInfos.get(z),x=L,P=true;I&&(x=I.rect.height/I.rect.width*p,P=e.sizeChanged||I.estimatedSize||I.content!==v);let O=(y===this.numColumns&&I&&I.index===k&&I.rect.y<this.virtualizer.visibleRect.maxY?I.column:void 0)??C.reduce((ae,se,te)=>se<C[ae]?te:ae,0),D=E+O*(p+E)+this.margin,_=C[O],W=new c(D,_,p,x),H=new Ie(v.type,z,W);H.estimatedSize=P,H.allowOverflow=true,H.content=v,H.column=O,H.index=k++,N.set(z,H),C[O]+=H.rect.height+o.height;},M=this.virtualizer.collection,q=0;for(let z of M)if(z.type==="skeleton"){let v=[...C];for(;!C.every((I,x)=>I!==v[x])||Math.min(...C)<this.virtualizer.size.height;){let I=`${z.key}-${q++}`,x=this.layoutInfos.get(I)?.content||{...z};j(I,x);}break}else z.type!=="loader"&&j(z.key,z);let w=M?.size===0&&M.getItem(M.getFirstKey())?.type!=="skeleton"?0:Math.max(...C),b=M.getItem(M.getLastKey());if(b?.type==="loader"){(q>0||!b.props.isLoading)&&(a=0);let z=s-E*2,v=new c(E,w,z,a),I=new S("loader",b.key,v);N.set(b.key,I),w=I.rect.maxY;}this.contentSize=new f(this.virtualizer.size.width,w),this.layoutInfos=N,this.numColumns=y;}getLayoutInfo(e){return this.layoutInfos.get(e)}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let i of this.layoutInfos.values())(i.rect.intersects(e)||this.virtualizer.isPersistedKey(i.key)||i.type==="loader")&&t.push(i);return t}updateItemSize(e,t){let i=this.layoutInfos.get(e);if(!t||!i)return false;if(t.height!==i.rect.height){let o=i.copy();return o.rect.height=t.height,o.estimatedSize=false,this.layoutInfos.set(e,o),true}return false}getKeyRightOf(e){let t=this.getLayoutInfo(e);if(!t)return null;let i=new c(t.rect.maxX,t.rect.y,this.virtualizer.visibleRect.maxX-t.rect.maxX,t.rect.height),o=this.getVisibleLayoutInfos(i),r=null,l=1/0;for(let n of o){if(n.key===e)continue;let a=n.rect.x-i.x,s=Math.min(n.rect.maxY,i.maxY)-Math.max(n.rect.y,i.y),u=a-s;u<l&&(l=u,r=n.key);}return r}getKeyLeftOf(e){let t=this.getLayoutInfo(e);if(!t)return null;let i=new c(0,t.rect.y,t.rect.x,t.rect.height),o=this.getVisibleLayoutInfos(i),r=null,l=1/0;for(let n of o){if(n.key===e)continue;let a=i.maxX-n.rect.maxX,s=Math.min(n.rect.maxY,i.maxY)-Math.max(n.rect.y,i.y),u=a-s;u<l&&(l=u,r=n.key);}return r}getKeyRange(e,t){let i=this.getLayoutInfo(e),o=this.getLayoutInfo(t);if(!i||!o)return [];let r=i.rect.union(o.rect),l=[];for(let n of this.layoutInfos.values())r.intersection(n.rect).area>n.rect.area/2&&l.push(n.key);return l}getDropTargetFromPoint(e,t){if(this.layoutInfos.size===0)return {type:"root"};e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let i=this.virtualizer.keyAtPoint(new R(e,t));return i==null?{type:"root"}:{type:"item",key:i,dropPosition:"on"}}};var be=new WeakMap;function rt(h=false,e=document){if(!be.has(e)||h){let t=e.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";let o=e.createElement("div"),r=o.style;r.width="100px",r.height="100px",t.appendChild(o),e.body.appendChild(t);let l;t.scrollLeft>0?l="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?l="negative":l="positive-ascending"),e.body.removeChild(t),be.set(e,l);}return be.get(e)}function We(h,e){let{scrollLeft:t}=h;if(e==="rtl"){let{scrollWidth:i,clientWidth:o}=h;switch(rt(false,a$4(h))){case "negative":t=-t;break;case "positive-descending":t=i-o-t;break}}return t}function at(h,e){e=a(e);let{scrollViewProps:t,contentProps:i}=pe(h,e);return jsx("div",{role:"presentation",...t,ref:e,children:jsx("div",{...i,children:h.children})})}et.forwardRef(at);function pe(h,e$1){let{contentSize:t$1,onVisibleRectChange:i,onSizeChange:o,innerStyle:r,onScrollStart:l,onScrollEnd:n,scrollDirection:a="both",onScroll:s,allowsWindowScrolling:u,...m}=h,d=useRef({scrollPosition:new R,size:new f,viewportOffset:new R,viewportSize:new f,scrollEndTime:0,scrollTimeout:null,isScrolling:false,lastVisibleRect:new c}).current,{direction:y}=b(),g$1=useCallback(()=>{let w=u?new c(d.viewportOffset.x+d.scrollPosition.x,d.viewportOffset.y+d.scrollPosition.y,Math.max(0,Math.min(d.size.width-d.viewportOffset.x,d.viewportSize.width)),Math.max(0,Math.min(d.size.height-d.viewportOffset.y,d.viewportSize.height))):new c(d.scrollPosition.x,d.scrollPosition.y,d.size.width,d.size.height);(w.area>0||d.lastVisibleRect.area>0)&&(i(w),d.lastVisibleRect=w);},[d,u,i]),[p,T]=useState(false),L=useCallback(w=>{let b=g(w);if(!e(b,e$1.current))return;if(s&&b===e$1.current&&s(w),b!==e$1.current){let v=e$1.current.getBoundingClientRect(),I=v.x<0?-v.x:0,x=v.y<0?-v.y:0;if(I===d.viewportOffset.x&&x===d.viewportOffset.y)return;d.viewportOffset=new R(I,x);}else {let v=b.scrollTop,I=We(b,y);d.scrollPosition=new R(Math.max(0,Math.min(I,t$1.width-d.size.width)),Math.max(0,Math.min(v,t$1.height-d.size.height)));}let z=b$1(w.currentTarget);flushSync(()=>{g$1(),d.isScrolling||(d.isScrolling=true,T(true),z.dispatchEvent(new z.Event("tk.disconnect-observer")),l&&l());let v=Date.now();d.scrollEndTime<=v+50&&(d.scrollEndTime=v+300,d.scrollTimeout!=null&&clearTimeout(d.scrollTimeout),d.scrollTimeout=setTimeout(()=>{d.isScrolling=false,T(false),d.scrollTimeout=null,z.dispatchEvent(new z.Event("tk.connect-observer")),n&&n();},300));});},[s,e$1,y,d,t$1,g$1,l,n]);a$1(e$1,"scroll",L),useEffect(()=>()=>{if(d.scrollTimeout!=null&&clearTimeout(d.scrollTimeout),d.isScrolling){let w=b$1(e$1.current);w.dispatchEvent(new w.Event("tk.connect-observer"));}},[]);let E=useRef(false),C=useCallback(w=>{let b=e$1.current;if(!b||E.current)return;E.current=true;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,v=b$1(b),I=Object.getOwnPropertyNames(v.HTMLElement.prototype).includes("clientWidth"),x=Object.getOwnPropertyNames(v.HTMLElement.prototype).includes("clientHeight"),P=b.clientWidth,X=b.clientHeight,O=z&&!I?1/0:P,D=z&&!x?1/0:X,_=window.innerWidth,W=window.innerHeight,H=d.viewportSize.width!==_||d.viewportSize.height!==W;H&&(d.viewportSize=new f(_,W)),(d.size.width!==O||d.size.height!==D||H)&&(d.size=new f(O,D),w(()=>{g$1(),o?.(d.size);}),(!z&&P!==b.clientWidth||X!==b.clientHeight)&&(d.size=new f(b.clientWidth,b.clientHeight),w(()=>{g$1(),o?.(d.size);}))),E.current=false;},[e$1,d,g$1,o]),N=t(C);a$2(()=>{d.viewportSize=new f(window.innerWidth,window.innerHeight);let w=()=>{N(flushSync);};return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[d]);let k=useRef(null),[j,M]=useState({});a$2(()=>{if(!E.current&&(k.current==null||!t$1.equals(k.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){M({}),k.current=t$1;return}else queueMicrotask(()=>N(flushSync));k.current=t$1;}),a$2(()=>{N(w=>w());},[j]);let q=useCallback(()=>{C(flushSync);},[C]);a$3({ref:e$1,box:"border-box",onResize:q});let A={padding:0,...m.style};return a==="horizontal"?(A.overflowX="auto",A.overflowY="hidden"):a==="vertical"||t$1.width===d.size.width?(A.overflowY="auto",A.overflowX="hidden"):A.overflow="auto",r={width:Number.isFinite(t$1.width)?t$1.width:void 0,height:Number.isFinite(t$1.height)?t$1.height:void 0,pointerEvents:p?"none":"auto",position:"relative",...r},{isScrolling:p,scrollViewProps:{...m,style:A},contentProps:{role:"presentation",style:r}}}function qe(h){let{layoutInfo:e,virtualizer:t,ref:i}=h,o=e?.key,r=useCallback(()=>{if(o!=null&&i.current){let l=ut(i.current);t.updateItemSize(o,l);}},[t,o,i]);return a$2(()=>{e?.estimatedSize&&r();}),{updateSize:r}}function ut(h){let e=h.style.height;h.style.height="";let t=new f(h.scrollWidth,h.scrollHeight);return h.style.height=e,t}function ge(h){let{style:e,className:t,layoutInfo:i,virtualizer:o,parent:r,children:l}=h,{direction:n}=b(),a=useRef(null);return qe({layoutInfo:i,virtualizer:o,ref:a}),jsx("div",{role:"presentation",ref:a,className:t,style:{...Xe(i,n,r),...e},children:l})}var Ae=new WeakMap;function Xe(h,e,t){let i=e==="rtl"?"right":"left",o=Ae.get(h);if(o&&o[i]!=null){if(!t)return o;let n=h.rect.y-t.rect.y,a=h.rect.x-t.rect.x;if(o.top===n&&o[i]===a)return o}let r={top:h.rect.y-(t&&!(t.allowOverflow&&h.isSticky)?t.rect.y:0),[i]:h.rect.x-(t&&!(t.allowOverflow&&h.isSticky)?t.rect.x:0),width:h.rect.width,height:h.rect.height};Object.entries(r).forEach(([n,a])=>{Number.isFinite(a)||(r[n]=void 0);});let l={position:h.isSticky?"sticky":"absolute",display:h.isSticky?"inline-block":void 0,overflow:h.allowOverflow?"visible":"hidden",opacity:h.opacity,zIndex:h.zIndex,transform:h.transform??void 0,contain:"size layout style",...r};return Ae.set(h,l),l}var Ue=createContext(null),Be=createContext(null);function Je(h){let{children:e,layout:t,layoutOptions:i}=h,o=useMemo(()=>typeof t=="function"?new t:t,[t]),r=useMemo(()=>({isVirtualized:true,layoutDelegate:o,dropTargetDelegate:o.getDropTargetFromPoint?o:void 0,CollectionRoot:mt,CollectionBranch:ft}),[o]);return jsx(p.Provider,{value:r,children:jsx(Be.Provider,{value:{layout:o,layoutOptions:i},children:e})})}function mt({collection:h,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){let{layout:o,layoutOptions:r}=useContext(Be),l=o.useLayoutOptions?.(),n=ze({allowsWindowScrolling:true,layout:o,collection:h,renderView:(s,u)=>u?.render?.(u),onVisibleRectChange(s){let u=t?.current;u&&(u.scrollLeft=s.x,u.scrollTop=s.y);},persistedKeys:e,layoutOptions:useMemo(()=>r&&l?{...r,...l}:r||l,[r,l])}),{contentProps:a}=pe({onVisibleRectChange:n.setVisibleRect,onSizeChange:n.setSize,contentSize:n.contentSize,onScrollStart:n.startScrolling,onScrollEnd:n.endScrolling,allowsWindowScrolling:true},t);return jsx("div",{...a,children:jsx(Ue.Provider,{value:n,children:$e(null,n.visibleViews,i)})})}function ft({parent:h,renderDropIndicator:e}){let i=useContext(Ue).virtualizer.getVisibleView(h.key);return $e(i,Array.from(i.children),e)}function $e(h,e,t){return e.map(i=>pt(h,i,t))}function pt(h,e,t){let i=jsx(ge,{layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:h?.layoutInfo,children:e.rendered},e.key),{collection:o$1,layout:r}=e.virtualizer,l=e.content;return l?.type==="item"&&t&&r.getDropTargetLayoutInfo&&(i=jsxs(et.Fragment,{children:[Ge(h,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,o(o$1,l,n=>Ge(h,e,n,t))]},e.key)),i}function Ge(h,e,t,i){let o=i(t);if(o){let r=e.virtualizer.layout.getDropTargetLayoutInfo(t);o=jsx(ge,{layoutInfo:r,virtualizer:e.virtualizer,parent:h?.layoutInfo,children:o});}return o}var Q=class extends oe{useLayoutOptions(){let{direction:e}=b();return useMemo(()=>({direction:e}),[e])}};var ee=class extends re{useLayoutOptions(){let e=useContext(b$3);return useMemo(()=>({columnWidths:e?.columnWidths}),[e?.columnWidths])}};var ne=class extends Q{useLayoutOptions(){let{direction:e}=b();return {direction:e}}};var Qo={LIST_BOX:{layout:Y,layoutOptions:{rowHeight:36}},TREE_VIEW:{layout:Y,layoutOptions:{rowHeight:44}},IMAGE_GALLERY:{layout:ne,layoutOptions:{minItemSize:new f(114,167),maxItemSize:new f(114,167),dropIndicatorThickness:2,maxHorizontalSpace:0,minSpace:new f(4,16),preserveAspectRatio:true}},TABLE:{layout:ee,layoutOptions:{rowHeight:48,headingHeight:48}}};export{f as a,Y as b,le as c,Je as d,Q as e,ee as f,ne as g,Qo as h};
@@ -0,0 +1,10 @@
1
+ import {d}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 s(...e){return e.length===1&&e[0]?e[0]:n=>{let r=false,o=e.map(t=>{let f=u(t,n);return r||=typeof f=="function",f});if(r)return ()=>{o.forEach((t,f)=>{typeof t=="function"?t():u(e[f],null);});}}}function u(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n);}function p(...e){return (...n)=>{for(let r of e)typeof r=="function"&&r(...n);}}function c(e){var n,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var t=e.length;for(n=0;n<t;n++)e[n]&&(r=c(e[n]))&&(o&&(o+=" "),o+=r);}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function y(){for(var e,n,r=0,o="",t=arguments.length;r<t;r++)(e=arguments[r])&&(n=c(e))&&(o&&(o+=" "),o+=n);return o}var a=y;function v(...e){let n={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let t in o){let f=n[t],i=o[t];typeof f=="function"&&typeof i=="function"&&t[0]==="o"&&t[1]==="n"&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90?n[t]=p(f,i):(t==="className"||t==="UNSAFE_className")&&typeof f=="string"&&typeof i=="string"?n[t]=a(f,i):t==="id"&&f&&i?n.id=d(f,i):t==="ref"&&f&&i?n.ref=s(f,i):n[t]=i!==void 0?i:f;}}return n}export{p as a,s as b,v as c};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-YS3Y5KGV.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-K6X2BHPP.mjs';import {a as a$3}from'./chunk-3FYY26ED.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import n from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var E="_1h7pyh00",x="_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u0";var R=n.forwardRef(({className:s,style:r,children:_,childClassName:i,childStyle:a$6,elementType:p="button",...o},z)=>{let e=n.Children.only(_);if(!n.isValidElement(e))throw new Error("Actionable: children must be a single React element");let b=a(z),{buttonProps:C,isPressed:f}=a$1({...o,elementType:p},b),{isFocusVisible:c$1,isFocused:u,focusProps:D}=a$2(),{hoverProps:F,isHovered:m}=a$3({isDisabled:o.isDisabled}),g=a$4({"data-focused":u,"data-focus-visible":c$1,"data-disabled":o.isDisabled,"data-hovered":m,"data-pressed":f}),t={isHovered:m,isFocused:u,isPressed:f,isDisabled:o.isDisabled,isFocusVisible:c$1},B=n.cloneElement(e,{className:a$5(e.props.className,{[x]:c$1},typeof i=="function"?i(t):i,"BaselineUI-Actionable-Child"),style:{...e.props.style,...typeof a$6=="function"?a$6(t):a$6}});return jsx(p==="button"?"button":p,{...c(C,F,D),...g,className:a$5(E,"BaselineUI-Actionable",typeof s=="function"?s(t):s),ref:b,style:typeof r=="function"?r(t):r,children:B})});R.displayName="Actionable";export{R as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$7}from'./chunk-NV7KQVPE.mjs';import {a as a$c}from'./chunk-YCI6BEXQ.mjs';import {a as a$4}from'./chunk-TKQOQVZD.mjs';import {a as a$3}from'./chunk-TAYP2OGC.mjs';import {c as c$2}from'./chunk-ELXWR5TS.mjs';import {b as b$1,c as c$1,a as a$d}from'./chunk-ROHLZINC.mjs';import {B}from'./chunk-OMT6ZWSV.mjs';import {a as a$2}from'./chunk-SAZLJ66W.mjs';import {b,c as c$3}from'./chunk-X3OCHEQM.mjs';import {a as a$9,b as b$3}from'./chunk-J3MJZQUJ.mjs';import {a as a$b}from'./chunk-O7XK2WIX.mjs';import {b as b$2}from'./chunk-4ZJMZB5B.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-X3AXUU3H.mjs';import {a as a$a}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-K6X2BHPP.mjs';import {a as a$6}from'./chunk-3FYY26ED.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import Z,{useMemo}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var K=Z.forwardRef(({className:s,style:p,isInline:a$e=true,accept:l="image/*",defaultImageSrc:g,imageSrc:r,imageAlt:Q,pickerButtonLabel:X,isDisabled:o,onDrop:Y,onPaste:$,includeCheckeredBackground:ee=true,"data-block-id":te,"data-block-class":oe,pickerButtonStyle:re,pickerButtonClassName:se,footerClassName:ne,footerStyle:ie,clearLabel:y,placeholder:P,labelStyle:ae,labelClassName:le,maxFileSize:w,onFileSizeError:me,onFileTypeError:ue,...m},pe)=>{let f=Z.useRef(null),h=Z.useRef(null),{formatMessage:fe}=b(),ce=e=>!w||e.size<=w?true:(me?.(e),false),de=e=>Te(e,l)?true:(ue?.(e),false),F=e=>de(e)&&ce(e),[B$1,c$3]=a(r,g||null,e=>{a$1(typeof e!="string"),m.onValueChange?.(e?[e]:[]);}),i=useMemo(()=>Ne(B$1||void 0),[B$1]),{fieldProps:ge,labelProps:ye}=a$2({...m,ref:f}),{dropProps:Pe,isDropTarget:I}=B({ref:f,onDrop:async e=>{if(o)return;let t=await a$3({items:e.items});t.length&&F(t[0])&&c$3(t[0]),Y?.(e);},...m}),{clipboardProps:he}=a$4({onPaste:async e=>{if(o)return;let t=await a$3({items:e});t.length&&F(t[0])&&c$3(t[0]),$?.(e);},...m}),Fe=()=>{c$3(null),h.current&&(h.current.value="");},Ie={type:"file",onChange:e=>{let t=[...e.target.files];t.length&&F(t[0])?c$3(t[0]):t.length&&(e.target.value=""),m.onChange?.(e);},accept:l,disabled:o},{focusProps:Ce,isFocused:ve,isFocusVisible:C}=a$5({within:true}),{hoverProps:be,isHovered:N}=a$6({isDisabled:o}),{imgProps:Le,isLoading:Re,isLoaded:v}=a$7({src:i,alt:Q||""}),Ze={label:X||fe(xe.selectImage),onPress:()=>f.current?.click(),variant:"secondary",isDisabled:o,excludeFromTabOrder:true,className:a$8(a$9({isFocusVisible:C}),{[b$1]:I&&!o},se),style:re},we=a$a({"data-loaded":v,"data-block-id":te,"data-block-class":oe,"data-hovered":N,"data-focused":ve,"data-drop-target":I,"data-disabled":o,"data-focus-visible":C});return jsxs(a$b,{...we,className:a$8("BaselineUI-ImageDropZone",s),display:"flex",flexDirection:"column",alignItems:"center",style:p,ref:pe,children:[jsxs("label",{...c(Pe,be,Ce,ye),className:a$8(a$d({isInline:a$e,isHovered:N,isDisabled:o,hasLoadedImage:!!i&&v,showFocusRing:I||!!i&&C}),le),style:ae,ref:f,children:[jsx(b$2,{children:jsx("input",{...c(ge,he,Ie),ref:h})}),!i&&jsx(b$3,{...Ze}),!!i&&(Re?jsx(a$c,{}):jsx("img",{className:c$1({isInline:a$e,isDisabled:o,hasLoadedImage:!!i&&v&&ee}),...Le}))]}),P||y?jsx("div",{style:ie,className:a$8(c$2({isInline:a$e,isDisabled:o}),ne),children:(i||!P)&&y?jsx(b$3,{size:"sm",variant:"ghost",label:y,isDisabled:o,onPress:Fe}):jsx(b$3,{size:"sm",variant:"ghost",label:P,isDisabled:true})}):null]})});K.displayName="ImageDropZone";function Ne(s){return !s||typeof s=="string"?s:URL.createObjectURL(s)}function Te(s,p){if(!p)return true;let a=p.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean);if(a.length===0)return true;let l=s.type.toLowerCase(),g=s.name.toLowerCase();return a.some(r=>r==="*/*"?true:r.startsWith(".")?g.endsWith(r):l?r.endsWith("/*")?l.startsWith(r.slice(0,-1)):l===r:true)}var xe=c$3({selectImage:{defaultMessage:"Select Image",id:"bui.imageDropZone.selectImage"}});export{K as a};
@@ -0,0 +1,10 @@
1
+ import {f}from'./chunk-Y4DRSGEJ.mjs';import {useState,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function v({ownerDocument:e=document}){let n=f(),[a,r]=useState(n==="keyboard"?"keyboard":"pointer");return useEffect(()=>{let t=()=>{r("pointer");},o=()=>{r("keyboard");};return e.addEventListener("pointermove",t,{passive:true,capture:true}),e.addEventListener("pointerdown",t,{passive:true,capture:true}),e.addEventListener("keydown",o,true),()=>{e.removeEventListener("pointermove",t,{capture:true}),e.removeEventListener("pointerdown",t,{capture:true}),e.removeEventListener("keydown",o,true);}},[e]),a}export{v as a};
@@ -0,0 +1,10 @@
1
+ import {g,e,d,f,h,b,a,c,i}from'./chunk-YVYMYKYN.mjs';import {y}from'./chunk-OMT6ZWSV.mjs';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 k(o){return {dragAndDropHooks:useMemo(()=>{let{onDrop:m,onInsert:d$1,onItemDrop:C,onReorder:u,onMove:I,onRootDrop:f$1,getItems:T,renderDragPreview:S,renderDropIndicator:O,dropTargetDelegate:v}=o,E=!!T,A=!!(m||d$1||C||u||I||f$1),e$1={};return E&&(e$1.useDraggableCollectionState=function(r){return g({...r,...o})},e$1.useDraggableCollection=e,e$1.useDraggableItem=d,e$1.DragPreview=f,e$1.renderDragPreview=S,e$1.isVirtualDragging=y),A&&(e$1.useDroppableCollectionState=function(r){return h({...r,...o})},e$1.useDroppableItem=b,e$1.useDroppableCollection=function(r,P,R){return a({...r,...o},P,R)},e$1.useDropIndicator=c,e$1.renderDropIndicator=O,e$1.dropTargetDelegate=v,e$1.ListDropTargetDelegate=i),e$1},[o])}}export{k as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-EX2LI2CV.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {g}from'./chunk-AUOQSTS5.mjs';import {useEffect,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
+ function d(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function y(v,r,n){let a$1=t(t=>{let e=n.current;if(!e)return;let l=null;switch(t.inputType){case "historyUndo":case "historyRedo":return;case "insertLineBreak":return;case "deleteContent":case "deleteByCut":case "deleteByDrag":l=e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case "deleteContentForward":l=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd+1):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case "deleteContentBackward":l=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart-1)+e.value.slice(e.selectionStart):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case "deleteSoftLineBackward":case "deleteHardLineBackward":l=e.value.slice(e.selectionStart);break;default:t.data!=null&&(l=e.value.slice(0,e.selectionStart)+t.data+e.value.slice(e.selectionEnd));break}(l==null||!r.validate(l))&&t.preventDefault();});useEffect(()=>{if(!d()||!n.current)return;let t=n.current;return t.addEventListener("beforeinput",a$1,false),()=>{t.removeEventListener("beforeinput",a$1,false);}},[n]);let p=d()?null:t=>{let e=g(t),l=e.value.slice(0,e.selectionStart)+t.data+e.value.slice(e.selectionEnd);r.validate(l)||t.preventDefault();},{labelProps:f,inputProps:E,descriptionProps:m,errorMessageProps:S,...b}=a(v,n),i=useRef(null);return {inputProps:c(E,{onBeforeInput:p,onCompositionStart(){let{value:t,selectionStart:e,selectionEnd:l}=n.current;i.current={value:t,selectionStart:e,selectionEnd:l};},onCompositionEnd(){if(n.current&&!r.validate(n.current.value)){let{value:t,selectionStart:e,selectionEnd:l}=i.current;n.current.value=t,n.current.setSelectionRange(e,l),r.setInputValue(t);}}}),labelProps:f,descriptionProps:m,errorMessageProps:S,...b}}export{y as a};
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-N2XGJKZG.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 l=new Map;function i(t){let{locale:r}=b(),e=r+(t?Object.entries(t).sort((n,c)=>n[0]<c[0]?-1:1).join():"");if(l.has(e))return l.get(e);let o=new Intl.Collator(r,t);return l.set(e,o),o}export{i as a};
File without changes
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-HONWMHMX.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function n(g,r,e){let{type:i}=g,{isOpen:t}=r;useEffect(()=>{e&&e.current&&a.set(e.current,r.close);});let o;i==="menu"?o=true:i==="listbox"&&(o="listbox");let a$1=c();return {triggerProps:{"aria-haspopup":o,"aria-expanded":t,"aria-controls":t?a$1:void 0,onPress:r.toggle},overlayProps:{id:a$1}}}export{n as a};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-WWSGOGLA.mjs';import {a as a$1}from'./chunk-KUEDQO7P.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {b as b$2}from'./chunk-4ZJMZB5B.mjs';import {a as a$3}from'./chunk-D3IZ4HBL.mjs';import {a as a$2}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-AUOQSTS5.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import O,{createContext,useState,useMemo,useContext}from'react';import L from'react-dom';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var g=createContext({});function x(){return useContext(g)??{}}var v=O.createContext(null);function N(e){let t=b(),{portalContainer:s=t?null:a(null).body,isExiting:r}=e,[o,n]=useState(false),y=useMemo(()=>({contain:o,setContain:n}),[o,n]),{getContainer:m}=x();if(!e.portalContainer&&m&&(s=m()),!s)return null;let i=e.children;return e.disableFocusManagement||(i=jsx(a$1,{restoreFocus:true,contain:(e.shouldContainFocus||o)&&!r,ownerDocument:a(s),children:i})),i=jsx(v.Provider,{value:y,children:jsx(c,{children:i})}),L.createPortal(i,s)}function W(){let t=useContext(v)?.setContain;a$2(()=>{t?.(true);},[t]);}var R={"ar-AE":{dismiss:"\u062A\u062C\u0627\u0647\u0644"},"bg-BG":{dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xDFen"},"el-GR":{dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xF5peta"},"fi-FI":{dismiss:"Hylk\xE4\xE4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xEDt\xE1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"\u9589\u3058\u308B"},"ko-KR":{dismiss:"\uBB34\uC2DC"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Ner\u0101d\u012Bt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"},"sk-SK":{dismiss:"Zru\u0161i\u0165"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-CN":{dismiss:"\u53D6\u6D88"},"zh-TW":{dismiss:"\u95DC\u9589"}};function A(e){let{onDismiss:t,...s}=e,r=b$1(R,"@react-aria/overlays"),o=a$3(s,r.format("dismiss"));return jsx(b$2,{children:jsx("button",{...o,tabIndex:-1,onClick:()=>{t&&t();},style:{width:1,height:1}})})}export{A as a,N as b,W as c};
File without changes
@@ -0,0 +1,10 @@
1
+ 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
+ var a=({label:r,tooltip:o,...t})=>({tooltipProps:useMemo(()=>{let e={size:"sm",variant:"inverse",text:r,includeArrow:false,placement:"bottom start",offset:4,...t};if(typeof o=="object")return {...e,...o};if(o)return e},[r,t,o])});export{a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-AMW7LGCF.mjs';import {c}from'./chunk-KKJ6XIU3.mjs';import {a as a$8}from'./chunk-EX2LI2CV.mjs';import {a as a$5}from'./chunk-GCZFXILF.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {e}from'./chunk-B7PSE5KC.mjs';import {a as a$7}from'./chunk-X3AXUU3H.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-K6X2BHPP.mjs';import {c as c$1,a as a$9}from'./chunk-TZ4MVY4E.mjs';import {a as a$4}from'./chunk-KEVERVHK.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/12';import {XIcon as XIcon$1}from'@baseline-ui/icons/16';import {SearchIcon as SearchIcon$1}from'@baseline-ui/icons/20';import {SearchIcon}from'@baseline-ui/icons/24';import K 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 E={"ar-AE":{"Clear search":"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B"},"bg-BG":{"Clear search":"\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435"},"cs-CZ":{"Clear search":"Vymazat hled\xE1n\xED"},"da-DK":{"Clear search":"Ryd s\xF8gning"},"de-DE":{"Clear search":"Suche zur\xFCcksetzen"},"el-GR":{"Clear search":"\u0391\u03C0\u03B1\u03BB\u03BF\u03B9\u03C6\u03AE \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar b\xFAsqueda"},"et-EE":{"Clear search":"T\xFChjenda otsing"},"fi-FI":{"Clear search":"Tyhjenn\xE4 haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"\u05E0\u05E7\u05D4 \u05D7\u05D9\u05E4\u05D5\u05E9"},"hr-HR":{"Clear search":"Obri\u0161i pretragu"},"hu-HU":{"Clear search":"Keres\xE9s t\xF6rl\xE9se"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2"},"ko-KR":{"Clear search":"\uAC80\uC0C9 \uC9C0\uC6B0\uAE30"},"lt-LT":{"Clear search":"I\u0161valyti ie\u0161k\u0105"},"lv-LV":{"Clear search":"Not\u012Br\u012Bt mekl\u0113\u0161anu"},"nb-NO":{"Clear search":"T\xF8m s\xF8k"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczy\u015B\u0107 zawarto\u015B\u0107 wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"\u015Eterge\u0163i c\u0103utarea"},"ru-RU":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A"},"sk-SK":{"Clear search":"Vymaza\u0165 vyh\u013Ead\xE1vanie"},"sl-SI":{"Clear search":"Po\u010Disti iskanje"},"sr-SP":{"Clear search":"Obri\u0161i pretragu"},"sv-SE":{"Clear search":"Rensa s\xF6kning"},"tr-TR":{"Clear search":"Aramay\u0131 temizle"},"uk-UA":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A"},"zh-CN":{"Clear search":"\u6E05\u9664\u641C\u7D22"},"zh-TW":{"Clear search":"\u6E05\u9664\u641C\u5C0B\u689D\u4EF6"}};function S(r,e,t){let d=b$1(E,"@react-aria/searchfield"),{isDisabled:n,isReadOnly:s,onSubmit:i,onClear:a,type:h="search"}=r,l=o=>{let u=o.key;u==="Enter"&&(n||s)&&o.preventDefault(),!(n||s)&&(u==="Enter"&&i&&(o.preventDefault(),i(e.value)),u==="Escape"&&(e.value===""&&(!t.current||t.current.value==="")?o.continuePropagation():(o.preventDefault(),e.setValue(""),a&&a())));},p=()=>{e.setValue(""),a&&a();},m=()=>{t.current?.focus();},{labelProps:c,inputProps:f,descriptionProps:_,errorMessageProps:y,...z}=a$8({...r,value:e.value,onChange:e.setValue,onKeyDown:s?r.onKeyDown:a$9(l,r.onKeyDown),type:h},t);return {labelProps:c,inputProps:{...f,defaultValue:void 0},clearButtonProps:{"aria-label":d.format("Clear search"),excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:n||s,onPress:p,onPressStart:m},descriptionProps:_,errorMessageProps:y,...z}}function b(r){let[e,t]=a$7(j(r.value),j(r.defaultValue)||"",r.onChange);return {value:e,setValue:t}}function j(r){if(r!=null)return r.toString()}var H="_19n40yy9 _1yep5z6ly _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6eu",O=a({defaultClassName:"_19n40yy0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6g1 _1yep5z6m1 _1yep5z6lz _1yep5z6hg _1yep5z6f5 _1yep5z6ln _1yep5z6e6",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3 _1yep5z6106"},variant:{primary:"_1yep5z6137",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_1yep5z6oc _1yep5z6od _1yep5z6oe"},isDisabled:{true:"_19n40yy8 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var W={sm:SearchIcon$1,md:SearchIcon,lg:SearchIcon},q=K.forwardRef(({className:r,size:e$1="md",variant:t="primary","data-block-id":d,"data-block-class":n,style:s,isClearFocusable:i=false,...a},h)=>{let l=K.useRef(null);[a,l]=e(a,l,c);let p=b(a),{inputProps:m,clearButtonProps:c$2}=S({...a$1(a),"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},p,l),{focusProps:f,isFocusVisible:_,isFocused:y}=a$2({within:true,isTextInput:true}),z=W[e$1],o=e$1==="sm"?XIcon:XIcon$1,u=a$3({"data-block-id":d,"data-block-class":n,"data-focused":y,"data-disabled":a.isDisabled,"data-focus-visible":_}),P=a$4(a,{global:true});return delete P.id,jsxs("div",{...P,...u,className:a$6(O({size:e$1,isFocused:y,variant:t,hasText:!!p.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",r),style:s,ref:h,children:[jsx(z,{size:e$1==="sm"?20:24}),jsx("input",{...c$1(m,f),className:H,ref:l}),p.value!==""&&jsx(a$5,{icon:o,...c$2,size:e$1==="sm"?"xs":"sm",variant:"secondary",isExcludedFromRovingFocus:!i,excludeFromTabOrder:!i,...i?{onPressStart:x=>{c$2.onPressStart?.(x),c$2.onPress?.(x);}}:{}})]})});q.displayName="SearchInput";export{q as a};
@@ -0,0 +1,10 @@
1
+ import {c as c$1,a as a$4,d,b,e}from'./chunk-5ULL6IBX.mjs';import {c as c$3,b as b$4}from'./chunk-EK3RIYMV.mjs';import {b as b$3}from'./chunk-246VHB32.mjs';import {a as a$8}from'./chunk-SAZLJ66W.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$6}from'./chunk-XWLESSHN.mjs';import {a as a$2}from'./chunk-YS3Y5KGV.mjs';import {a}from'./chunk-K6X2BHPP.mjs';import {d as d$1}from'./chunk-BGMVPFYK.mjs';import {b as b$5}from'./chunk-YB3KW7JC.mjs';import {f as f$1}from'./chunk-Y4DRSGEJ.mjs';import {a as a$1}from'./chunk-3FYY26ED.mjs';import {p}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$7}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {XIcon as XIcon$1}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1,XIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/16';import f,{useState,useRef,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var A=new WeakMap;function ve(i,e,a){let{direction:o}=b$2(),t=i.keyboardDelegate||new b$3({collection:e.collection,ref:a,orientation:"horizontal",direction:o,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:p,fieldProps:r,descriptionProps:s,errorMessageProps:l}=a$8({...i,labelElementType:"span",ref:a}),{gridProps:c$1}=b$4({...i,...r,keyboardDelegate:t,shouldFocusWrap:true,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,a),[u,g]=useState(false),{focusWithinProps:m}=b$5({onFocusWithinChange:g}),b=a$7(i),n=useRef(e.collection.size);return useEffect(()=>{a.current&&n.current>0&&e.collection.size===0&&u&&a.current.focus(),n.current=e.collection.size;},[e.collection.size,u,a]),A.set(e,{onRemove:i.onRemove}),{gridProps:c(c$1,b,{role:e.collection.size?"grid":"group","aria-atomic":false,"aria-relevant":"additions","aria-live":u?"polite":"off",...m,...r}),labelProps:p,descriptionProps:s,errorMessageProps:l}}var ee={"ar-AE":{removeButtonLabel:"\u0625\u0632\u0627\u0644\u0629",removeDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D DELETE \u0644\u0625\u0632\u0627\u0644\u0629 \u0639\u0644\u0627\u0645\u0629."},"bg-BG":{removeButtonLabel:"\u041F\u0440\u0435\u043C\u0430\u0445\u0432\u0430\u043D\u0435",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Delete, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043C\u0430\u0440\u043A\u0435\u0440\u0430."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xEDm kl\xE1vesy Delete odeberete zna\u010Dku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xE5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf \u201EL\xF6schen\u201C dr\xFCcken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7",removeDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03C1\u03B3\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B9\u03BA\u03AD\u03C4\u03B1."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l\u2019\xE9tiquette."},"he-IL":{removeButtonLabel:"\u05D4\u05E1\u05E8",removeDescription:"\u05DC\u05D7\u05E5 \u05E2\u05DC \u05DE\u05D7\u05E7 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E1\u05D9\u05E8 \u05EA\u05D2."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xE1vol\xEDt\xE1s",removeDescription:"Nyomja meg a Delete billenty\u0171t a c\xEDmke elt\xE1vol\xEDt\xE1s\xE1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"\u524A\u9664",removeDescription:"\u30BF\u30B0\u3092\u524A\u9664\u3059\u308B\u306B\u306F\u3001Delete \u30AD\u30FC\u3092\u62BC\u3057\u307E\u3059\u3002"},"ko-KR":{removeButtonLabel:"\uC81C\uAC70",removeDescription:"\uD0DC\uADF8\uB97C \uC81C\uAC70\uD558\uB824\uBA74 Delete \uD0A4\uB97C \uB204\uB974\uC2ED\uC2DC\uC624."},"lt-LT":{removeButtonLabel:"Pa\u0161alinti",removeDescription:"Nor\u0117dami pa\u0161alinti \u017Eym\u0105, paspauskite \u201EDelete\u201C klavi\u0161\u0105."},"lv-LV":{removeButtonLabel:"No\u0146emt",removeDescription:"Nospiediet Delete [Dz\u0113st], lai no\u0146emtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xE5 Slett for \xE5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usu\u0144",removeDescription:"Naci\u015Bnij Usu\u0144, aby usun\u0105\u0107 znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xCEndep\u0103rta\u0163i",removeDescription:"Ap\u0103sa\u021Bi pe Delete (\u0218tergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",removeDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 DELETE, \u0447\u0442\u043E\u0431\u044B \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u0433."},"sk-SK":{removeButtonLabel:"Odstr\xE1ni\u0165",removeDescription:"Ak chcete odstr\xE1ni\u0165 zna\u010Dku, stla\u010Dte kl\xE1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obri\u0161i da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xE5 Radera f\xF6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kald\u0131r",removeDescription:"Etiketi kald\u0131rmak i\xE7in Sil tu\u015Funa bas\u0131n."},"uk-UA":{removeButtonLabel:"\u0412\u0438\u043B\u0443\u0447\u0438\u0442\u0438",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Delete, \u0449\u043E\u0431 \u0432\u0438\u043B\u0443\u0447\u0438\u0442\u0438 \u0442\u0435\u0433."},"zh-CN":{removeButtonLabel:"\u5220\u9664",removeDescription:"\u6309\u4E0B\u201C\u5220\u9664\u201D\u4EE5\u5220\u9664\u6807\u8BB0\u3002"},"zh-TW":{removeButtonLabel:"\u79FB\u9664",removeDescription:"\u6309 Delete \u9375\u4EE5\u79FB\u9664\u6A19\u8A18\u3002"}};function E(i,e,a){let{item:o}=i,t=b$1(ee,"@react-aria/tag"),p$1=c$2(),{onRemove:r}=A.get(e)||{},{rowProps:s,gridCellProps:l,...c$1}=c$3({node:o},e,a),{descriptionProps:u,...g}=c$1,m=e.disabledKeys.has(o.key)||o.props.isDisabled,b=R=>{if(R.key==="Delete"||R.key==="Backspace"){if(m)return;R.preventDefault(),e.selectionManager.isSelected(o.key)?r?.(new Set(e.selectionManager.selectedKeys)):r?.(new Set([o.key]));}},n=f$1();n==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(n="pointer");let T=r&&(n==="keyboard"||n==="virtual")?t.format("removeDescription"):"",P=a$6(T,a),D=o.key===e.selectionManager.focusedKey,L=e.selectionManager.focusedKey!=null,y=-1;!m&&(D||!L)&&(y=0);let k=a$7(o.props),B=p(o.props),{focusableProps:h}=d$1({...o.props,isDisabled:m},a);return {removeButtonProps:{"aria-label":t.format("removeButtonLabel"),"aria-labelledby":`${p$1} ${s.id}`,isDisabled:m,id:p$1,onPress:()=>r?r(new Set([o.key])):null},rowProps:c(h,s,k,B,{tabIndex:y,onKeyDown:r?b:void 0,"aria-describedby":P["aria-describedby"]}),gridCellProps:c(l,{"aria-errormessage":i["aria-errormessage"],"aria-label":i["aria-label"]}),...g,allowsRemoving:!!r}}var te=f.createContext(null),re=f.createContext(null);var ae=f.forwardRef((i,e)=>{let a=f.useContext(te),o=f.useContext(re);return a&&o?jsx(se,{...i,ref:e,groupCtx:a,itemCtx:o}):jsx(ie,{...i,ref:e})});ae.displayName="Tag";var ie=f.forwardRef(({children:i,variant:e="neutral",size:a$2="md",icon:o,isDisabled:t=false,isSelected:p=false,onRemove:r,className:s,style:l,"data-block-id":c$1,"data-block-class":u},g)=>{let{focusProps:m,isFocusVisible:b}=a({within:true}),{hoverProps:n,isHovered:T}=a$1({isDisabled:t}),{hoverProps:P,isHovered:D}=a$1({isDisabled:t}),L=!!r;return jsx(w,{ref:g,outerProps:c(m,P),variant:e,size:a$2,Icon:o,isDisabled:t,isSelected:p,isFocusVisible:b,isTagHovered:D,allowsRemoving:L,allowsSelection:false,removeButtonProps:n,defaultRemoveProps:{"aria-label":"Remove",disabled:t,onClick:r},isRemoveHovered:T,className:s,style:l,"data-block-id":c$1,"data-block-class":u,children:i})});ie.displayName="TagStandalone";var se=f.forwardRef(({groupCtx:i,itemCtx:e,variant:a$3,...o},t)=>{let{state:p,variant:r,size:s}=i,{item:l}=e,c$1=f.useRef(null),{rowProps:u,gridCellProps:g,removeButtonProps:m,allowsRemoving:b,isDisabled:n,isSelected:T,allowsSelection:P}=E({item:l},p,c$1),D=f.useRef(null),{buttonProps:L}=a$2({...m,excludeFromTabOrder:true},D),{focusProps:y,isFocusVisible:k}=a({within:true}),{hoverProps:B,isHovered:h}=a$1({isDisabled:n}),{hoverProps:R,isHovered:ne}=a$1({isDisabled:n}),le=l.value?.icon,me=l.value?.data?.variant??a$3??r,pe=o.size??s??"md";return jsx(w,{ref:H=>{c$1.current=H,typeof t=="function"?t(H):t&&(t.current=H);},outerProps:c(u,y,R),gridCellProps:g,variant:me,size:pe,Icon:le,isDisabled:n,isSelected:T,isFocusVisible:k,isTagHovered:ne,allowsRemoving:b,allowsSelection:P,removeButtonProps:c(L,B),isRemoveHovered:h,children:l.rendered})});se.displayName="TagInGroup";var w=f.forwardRef(({children:i,outerProps:e$1,gridCellProps:a,variant:o="neutral",size:t,Icon:p,isDisabled:r,isSelected:s,isFocusVisible:l,isTagHovered:c$2,allowsRemoving:u,allowsSelection:g,removeButtonProps:m,defaultRemoveProps:b$1,isRemoveHovered:n,className:T,style:P,"data-block-id":D,"data-block-class":L},y)=>{let k=t==="md"?XIcon:XIcon$1,B=t==="md"?CheckmarkIcon:CheckmarkIcon$1;return jsx("div",{...e$1,ref:y,"aria-disabled":r||void 0,className:a$3(b({isFocusVisible:l,variant:o,isDisabled:r,allowsRemoving:u,isSelected:s,allowsSelection:g,isHovered:c$2,size:t}),e({variant:o,isDisabled:r,isSelected:s}),"BaselineUI-Tag",T),style:P,"data-block-id":D,"data-block-class":L,children:jsxs("div",{...a,className:c$1,children:[s?jsx(B,{size:t==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:r,isSelected:s}),"BaselineUI-Tag-Icon")}):null,!s&&p?jsx(p,{size:t==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:r,isSelected:s}),"BaselineUI-Tag-Icon")}):null,jsx(a$5,{paddingY:t==="md"?"sm":"none",typography:t==="sm"?"label.sm.medium":"label.md.medium",children:i}),u?jsx("button",{type:"button",...c(m,b$1??{}),className:d({variant:o,isHovered:n}),children:jsx(k,{size:t==="md"?12:8})}):null]})})});w.displayName="TagView";export{ve as a,te as b,re as c,ae as d};
@@ -0,0 +1,10 @@
1
+ import {a,b as b$1,c as c$1,d}from'./chunk-VHDXSFQC.mjs';import {c}from'./chunk-6ZV4UYEG.mjs';import {b}from'./chunk-PAQQ7MQG.mjs';import {b as b$2}from'./chunk-TZ4MVY4E.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import v,{useMemo}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 G="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k";var z=({item:t})=>{let p=useMemo(()=>({item:t}),[t]);return jsx(c$1.Provider,{value:p,children:jsx(d,{children:t.rendered})})},x=v.forwardRef(({className:t,style:p,"data-block-id":C,"data-block-class":P,items:i,size:m="md",isDisabled:_=false,...e},k)=>{let L=useMemo(()=>i.map(o=>({...o,data:{variant:o.variant}})),[i]),b$3=c(),n=v.useRef(null),a$2=b({...e,items:L,children:b$3,disabledKeys:_?i.map(o=>o.id):e.disabledKeys}),{gridProps:I}=a(e,a$2,n),R=useMemo(()=>({state:a$2,variant:e.variant,size:m}),[a$2,e.variant,m]);return jsx("div",{...I,className:a$1(G,"BaselineUI-TagGroup",t),style:p,"data-block-id":C,"data-block-class":P,ref:b$2(k,n),children:jsx(b$1.Provider,{value:R,children:[...a$2.collection].map(o=>jsx(z,{item:o},o.key))})})});x.displayName="TagGroup";export{x as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$8}from'./chunk-DRYSJSKA.mjs';import {a as a$1,b as b$2}from'./chunk-KY3JKXSX.mjs';import {a as a$6}from'./chunk-NSC53QWT.mjs';import {b as b$1,c as c$1}from'./chunk-X3OCHEQM.mjs';import {a as a$5}from'./chunk-GCZFXILF.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-K6X2BHPP.mjs';import {a as a$2}from'./chunk-3FYY26ED.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon as CaretLeftIcon$3,CaretRightIcon as CaretRightIcon$3}from'@baseline-ui/icons/12';import {CaretLeftIcon as CaretLeftIcon$2,CaretRightIcon as CaretRightIcon$2}from'@baseline-ui/icons/16';import {CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1}from'@baseline-ui/icons/20';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import D from'react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var B=a({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),T="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",j=a({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6zy",sm:"_1nsi9h12 _1yep5z6101",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6za _1yep5z6184 _1yep5z6182 _1yep5z6136",pinned:"_1yep5z617q"}},defaultVariants:{},compoundVariants:[]}),k=a({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var ue={style:"decimal"},ce={xs:[CaretLeftIcon$3,CaretRightIcon$3],sm:[CaretLeftIcon$2,CaretRightIcon$2],md:[CaretLeftIcon$1,CaretRightIcon$1],lg:[CaretLeftIcon,CaretRightIcon]},E=D.forwardRef(({className:H,style:U,minValue:S=1,defaultValue:q=1,incrementAriaLabel:K,decrementAriaLabel:O,"aria-label":G,size:a="md",variant:t="floating",hideActions:_,isDisabled:o,pageXofYLabel:m,...s},X)=>{let{locale:Y}=b(),r=b$1(),h={...s,formatOptions:ue,minValue:S,incrementAriaLabel:K||r.formatMessage(l.nextPage),decrementAriaLabel:O||r.formatMessage(l.prevPage),defaultValue:q,"aria-label":G||r.formatMessage(l.goToPage)},u=D.useRef(null),i=a$1({...h,locale:Y}),{inputProps:c$1,decrementButtonProps:b$3,incrementButtonProps:z,groupProps:$}=b$2({...h,onKeyDown:C=>{C.key==="Enter"&&u.current?.blur(),s.onKeyDown?.(C);},isDisabled:o},i,u),{hoverProps:J,isHovered:Q}=a$2({}),{focusProps:W,isFocused:v,isFocusVisible:Z}=a$3(),P=t==="floating",[ee,ae]=ce[a],te=a$4({"data-focus-visible":Z,"data-focused":v,"data-hovered":Q,"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"]});return jsxs("div",{...c($,J,te),className:a$7(j({size:a,variant:t}),"BaselineUI-Pagination",H),style:U,ref:X,children:[_?null:jsxs(Fragment,{children:[jsx(a$5,{icon:ee,...b$3,elementType:"div",size:a,style:{height:"100%",...P&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:o||b$3.isDisabled}),t==="floating"&&jsx(a$6,{orientation:"vertical"})]}),jsxs("div",{className:B({isFocused:v,variant:t,size:a}),"aria-label":(typeof m=="function"?m({page:i.numberValue,totalPages:i.maxValue}):m)??r.formatMessage(l.pageXofY,{arg0:c$1.value,arg1:i.maxValue}),children:[jsx("input",{...c(c$1,W),ref:u,className:a$7("BaselineUI-Pagination-Input",T),style:{width:`${c$1.value?.toString().length||1}ch`}}),jsxs("span",{className:k({isDisabled:o}),children:["/ ",jsx(a$8,{value:i.maxValue})]})]}),_?null:jsxs(Fragment,{children:[t==="floating"&&jsx(a$6,{orientation:"vertical"}),jsx(a$5,{icon:ae,...z,elementType:"div",size:a,style:{height:"100%",...P&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:o||z.isDisabled})]})]})});E.displayName="Pagination";var l=c$1({nextPage:{defaultMessage:"Next Page",id:"bui.pagination.nextPage"},prevPage:{defaultMessage:"Previous Page",id:"bui.pagination.prevPage"},goToPage:{defaultMessage:"Go to Page",id:"bui.pagination.goToPage"},pageXofY:{defaultMessage:"Page {arg0} of {arg1}",id:"bui.pagination.pageXofY"}});export{E as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-4QEH5CGK.mjs';import y from'markdown-it';import c,{useMemo}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 o="_1t55bp71",r="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",i="_1t55bp70";var u=y(),p=c.forwardRef(({className:n,style:l,children:t,"data-block-id":d,"data-block-class":b,showCaret:s},g)=>{let m=useMemo(()=>{let a=t;return (!t||Array.isArray(t)&&t.length===0)&&(a=""),u.render(a)},[t]);return jsx("div",{className:a(r,i,{[o]:s},"BaselineUI-Markdown",n),"data-block-id":d,"data-block-class":b,style:l,ref:g,dangerouslySetInnerHTML:{__html:m}})});p.displayName="Markdown";export{p as a};
@@ -0,0 +1,10 @@
1
+ import {createContext,useMemo,useContext,useState,useRef,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var h={badInput:false,customError:false,patternMismatch:false,rangeOverflow:false,rangeUnderflow:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:false,valid:true},L={...h,customError:true,valid:false},s={isInvalid:false,validationDetails:h,validationErrors:[]},Y=createContext({}),D="__reactAriaFormValidationState";function z(t){if(t[D]){let{realtimeValidation:a,displayValidation:e,updateValidation:r,resetValidation:o,commitValidation:l}=t[D];return {realtimeValidation:a,displayValidation:e,updateValidation:r,resetValidation:o,commitValidation:l}}return b(t)}function b(t){let{isInvalid:a,validationState:e,name:r,value:o,builtinValidation:l,validate:f,validationBehavior:d="aria"}=t;e&&(a||=e==="invalid");let v=a!==void 0?{isInvalid:a,validationErrors:[],validationDetails:L}:null,m=useMemo(()=>{if(!f||o==null)return null;let i=j(f,o);return C(i)},[f,o]);l?.validationDetails.valid&&(l=void 0);let n=useContext(Y),I=useMemo(()=>r?Array.isArray(r)?r.flatMap(i=>g(n[i])):g(n[r]):[],[n,r]),[M,_]=useState(n),[x,c]=useState(false);n!==M&&(_(n),c(false));let E=useMemo(()=>C(x?[]:I),[x,I]),A=useRef(s),[p,T]=useState(s),u=useRef(s),O=()=>{if(!P)return;S(false);let i=m||l||A.current;R(i,u.current)||(u.current=i,T(i));},[P,S]=useState(false);return useEffect(O),{realtimeValidation:v||E||m||l||s,displayValidation:d==="native"?v||E||p:v||E||m||l||p,updateValidation(i){d==="aria"&&!R(p,i)?T(i):A.current=i;},resetValidation(){let i=s;R(i,u.current)||(u.current=i,T(i)),d==="native"&&S(false),c(true);},commitValidation(){d==="native"&&S(true),c(true);}}}function g(t){return t?Array.isArray(t)?t:[t]:[]}function j(t,a){if(typeof t=="function"){let e=t(a);if(e&&typeof e!="boolean")return g(e)}return []}function C(t){return t.length?{isInvalid:true,validationErrors:t,validationDetails:L}:null}function R(t,a){return t===a?true:!!t&&!!a&&t.isInvalid===a.isInvalid&&t.validationErrors.length===a.validationErrors.length&&t.validationErrors.every((e,r)=>e===a.validationErrors[r])&&Object.entries(t.validationDetails).every(([e,r])=>a.validationDetails[e]===r)}export{s as a,Y as b,D as c,z as d};
File without changes
@@ -0,0 +1,10 @@
1
+ import {c as c$1,a}from'./chunk-JDLUGVXG.mjs';import {useState,useRef,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
+ function c(o=true){let[a$1,e]=useState(o),t=useRef(false),n=useCallback(f=>{t.current=true,e(!!f);},[]);return a(()=>{t.current||e(false);},[]),[n,a$1]}function p(o=true){let a=c$1(),[e,t]=c(o);return {id:t?a:void 0,ref:e}}export{p as a};
@@ -0,0 +1,10 @@
1
+ import {a,b as b$1}from'./chunk-2RCST7ET.mjs';import {b}from'./chunk-N2XGJKZG.mjs';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
+ var c=new WeakMap;function d(i){let t=c.get(i);return t||(t=new a(i),c.set(i,t)),t}function l(i,t){return t&&a.getGlobalDictionaryForPackage(t)||d(i)}function m(i,t){let{locale:r}=b(),n=l(i,t);return useMemo(()=>new b$1(r,n),[r,n])}export{l as a,m as b};
@@ -0,0 +1,10 @@
1
+ import {a as a$2}from'./chunk-GEZGEZAP.mjs';import {a as a$4}from'./chunk-FJ2JRD3H.mjs';import {g,e,h,a as a$1,i,c}from'./chunk-YVYMYKYN.mjs';import {b as b$1}from'./chunk-246VHB32.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a}from'./chunk-66CUIXA6.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {useGranularEffect}from'granular-hooks';import P,{useCallback,useImperativeHandle}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function F(t,o,r){let{direction:i$1}=b(),n=g({...t,collection:o.collection,selectionManager:o.selectionManager,isDisabled:!t.enableReorder,getItems:t.getItems||(p=>[...p].map(l=>{let c=o.collection.getItem(l);return a(c,"Expected item to be defined."),{"text/plain":c.textValue}}))});e(t,n,r);let a$2=h({...t,collection:o.collection,selectionManager:o.selectionManager}),{collectionProps:e$1}=a$1({...t,keyboardDelegate:new b$1({collection:o.collection,disabledKeys:o.disabledKeys,ref:r,orientation:t.orientation,layout:t.layout,direction:i$1}),dropTargetDelegate:new i(o.collection,r)},a$2,r);return {collectionProps:e$1,dragState:n,dropState:a$2}}function G({type:t="listbox",handle:o},r,i){let n=useCallback(e=>t==="listbox"?i.current?.querySelector(`[data-key="${e}"][role="option"]`):i.current?.querySelector(`[data-key="${e}"][role="row"]`),[t,i]),a=useCallback((e,p)=>{let l=n(e);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...p});},[n]);useImperativeHandle(o,()=>({scrollIntoView:a,setFocusedKey:e=>{r.selectionManager.setFocused(true),r.selectionManager.setFocusedKey(e),a(e),n(e)?.focus();}}),[a,r.selectionManager,n]),useGranularEffect(()=>{let e=r.selectionManager.focusedKey;a$2(i.current)&&e&&a(e);},[r.selectionManager.focusedKey],[a,i]);}var Q=({dropState:t,orientation:o="vertical",dropIndicatorStyle:r,dropIndicatorClassName:i,renderDropIndicator:n=({isDropTarget:e,isHidden:p,dropIndicatorProps:l,orientation:c},R)=>p?null:jsx("li",{...l,ref:R,"data-drop-target":e,className:a$3(a$4({isDropTarget:e,orientation:c}),"BaselineUI-DropIndicator",i),style:r}),...a})=>{let e=P.useRef(null),{dropIndicatorProps:p,isHidden:l,isDropTarget:c$1}=c(a,t,e);return n({dropIndicatorProps:{...p,role:"option"},isHidden:l,isDropTarget:c$1,orientation:o},e)};export{F as a,G as b,Q as c};
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-5ODZPQL2.mjs';import {a as a$1}from'./chunk-NSC53QWT.mjs';import {a as a$8}from'./chunk-O7XK2WIX.mjs';import {a as a$a}from'./chunk-RXSYDMT6.mjs';import {a as a$9}from'./chunk-X3AXUU3H.mjs';import {a as a$6}from'./chunk-YS3Y5KGV.mjs';import {a as a$7}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-K6X2BHPP.mjs';import {a as a$4}from'./chunk-3FYY26ED.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {c as c$1,a as a$b}from'./chunk-JDLUGVXG.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {CaretUpIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon,CircleFilledIcon,ErrorCircleIcon,WarningIcon}from'@baseline-ui/icons/16';import W,{useRef,useCallback,useEffect}from'react';import {flushSync}from'react-dom';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 _(n,r,t){let{isDisabled:s}=n,a=c$1(),o=c$1(),p=b$1(),i=useRef(null),f=useCallback(()=>{i.current=requestAnimationFrame(()=>{t.current&&t.current.setAttribute("hidden","until-found");}),flushSync(()=>{r.toggle();});},[t,r]);a$a(t,"beforematch",f);let l=useRef(null);return a$b(()=>{if(i.current&&cancelAnimationFrame(i.current),t.current&&!p){let e=t.current;l.current==null||typeof e.getAnimations!="function"?r.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")):(e.setAttribute("hidden","until-found"),e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px")):r.isExpanded!==l.current&&(r.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),Promise.all(e.getAnimations().map(d=>d.finished)).then(()=>{e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto");}).catch(()=>{})):(e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),window.getComputedStyle(e).height,e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px"),Promise.all(e.getAnimations().map(d=>d.finished)).then(()=>e.setAttribute("hidden","until-found")).catch(()=>{}))),l.current=r.isExpanded;}},[s,t,r.isExpanded,p]),useEffect(()=>()=>{i.current&&cancelAnimationFrame(i.current);},[]),{buttonProps:{id:a,"aria-expanded":r.isExpanded,"aria-controls":o,onPress:e=>{!s&&e.pointerType!=="keyboard"&&r.toggle();},isDisabled:s,onPressStart(e){e.pointerType==="keyboard"&&!s&&r.toggle();}},panelProps:{id:o,role:"group","aria-labelledby":a,"aria-hidden":!r.isExpanded,hidden:p?!r.isExpanded:void 0}}}function g(n){let[r,t]=a$9(n.isExpanded,n.defaultExpanded||false,n.onExpandedChange),s=useCallback(()=>{t(true);},[t]),a=useCallback(()=>{t(false);},[t]),o=useCallback(()=>{t(!r);},[t,r]);return {isExpanded:r,setExpanded:t,expand:s,collapse:a,toggle:o}}var q=a({defaultClassName:"wf9zfn0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6m1 _1yep5z6lz",variantClassNames:{variant:{active:"_1yep5z6136 _1yep5z6124",warning:"_1yep5z6136 _1yep5z6124",error:"_1yep5z6136 _1yep5z6124",success:"_1yep5z6136 _1yep5z6124",denied:"_1yep5z6136 _1yep5z6124","warning-tinted":"_1yep5z612x _1yep5z611u","error-tinted":"_1yep5z612p _1yep5z611m","active-tinted":"_1yep5z6131 _1yep5z611y","success-tinted":"_1yep5z612t _1yep5z611q","denied-tinted":"_1yep5z6137 _1yep5z6127"}},defaultVariants:{},compoundVariants:[]}),M=a({defaultClassName:"wf9zfnb _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ly _1yep5z6ln _1yep5z6la _1yep5z6lr _1yep5z6ls _1yep5z6lp",variantClassNames:{isFocusVisible:{true:"_1yep5z617w _1yep5z6140 _1yep5z617y"},isHovered:{true:"wf9zfnd"},variant:{active:"wf9zfne",warning:"wf9zfnf",error:"wf9zfng",success:"wf9zfnh",denied:"wf9zfni","warning-tinted":"wf9zfnj","error-tinted":"wf9zfnk","active-tinted":"wf9zfnl","success-tinted":"wf9zfnm","denied-tinted":"wf9zfnn"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocusVisible:false},"_1yep5z61ty _1yep5z61tx"],[{variant:"active",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"warning",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"error",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"success",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"denied",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"active-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61q1"],[{variant:"warning-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61px"],[{variant:"error-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61pp"],[{variant:"success-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61pt"],[{variant:"denied-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61q6"]]}),k="wf9zfno",L={active:"wf9zfnp",warning:"wf9zfnq",error:"wf9zfnr",success:"wf9zfns",denied:"wf9zfnt","active-tinted":"wf9zfnu","warning-tinted":"wf9zfnv","error-tinted":"wf9zfnw","success-tinted":"wf9zfnx","denied-tinted":"wf9zfny"},O=a({defaultClassName:"wf9zfnz _1yep5z6f5",variantClassNames:{isPopupOpen:{true:"wf9zfn10",false:"wf9zfn11"}},defaultVariants:{},compoundVariants:[]});var se={warning:WarningIcon,error:ErrorCircleIcon,info:CircleFilledIcon,success:CheckmarkIcon},G=W.forwardRef(({className:n,style:r,children:t,title:s,description:a,variant:o="active",icon:p=se[o],headerClassName:i,headerStyle:f,panelClassName:l,panelStyle:e,shouldTruncateTitle:d,...y},m)=>{let u=g(y),v=useRef(null),z=useRef(null),{buttonProps:K,panelProps:Q}=_(y,u,z);return jsxs("div",{className:a$2(q({variant:o}),"BaselineUI-Disclosure",n),style:r,ref:m,"data-expanded":u.isExpanded,children:[jsx(J,{ref:v,...K,variant:o,title:s,description:a,icon:p,className:i,style:f,isExpanded:u.isExpanded,shouldTruncateTitle:d}),jsxs("div",{ref:z,...Q,className:a$2(k,"BaselineUI-Disclosure-Panel",l),style:e,"data-expanded":u.isExpanded,children:[jsx(a$1,{className:L[o]}),t]})]})});G.displayName="Disclosure";var J=W.forwardRef(({className:n,style:r,variant:t="active",icon:s,title:a,description:o,shouldTruncateTitle:p,...i},f)=>{let{isFocusVisible:l,focusProps:e}=a$3(),{hoverProps:d,isHovered:y}=a$4({}),m=a$5(f),{buttonProps:u,isPressed:v}=a$6(i,m),z=a$7({"data-focus-visible":l,"data-hovered":y,"data-pressed":v});return jsx("button",{...c(u,e,d),ref:m,className:a$2(M({isFocusVisible:l,isHovered:y,variant:t}),"BaselineUI-Disclosure-Header",n),style:r,...z,children:jsx(b,{title:a,description:o,variant:t,icon:s,shouldTruncateTitle:p,renderTrailingElement:()=>jsx(a$8,{padding:"sm",display:"inline-flex",children:jsx(CaretUpIcon,{size:12,className:O({isPopupOpen:i.isExpanded})})}),style:{border:"none"}})})});J.displayName="DisclosureHeader";export{G as a};
File without changes
@@ -0,0 +1,10 @@
1
+ import {d as d$1}from'./chunk-BGMVPFYK.mjs';import {d,c as c$1}from'./chunk-AQYBKDT2.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {b as b$1,u}from'./chunk-MRJFGHFW.mjs';import {b as b$2,c}from'./chunk-TZ4MVY4E.mjs';import {b}from'./chunk-AUOQSTS5.mjs';import p,{useEffect,useRef,useContext,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var E=p.forwardRef(({children:a$1,...t},o)=>{o=a(o);let{pressProps:l}=d({...t,ref:o}),{focusableProps:n}=d$1(t,o),s=p.Children.only(a$1);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let r=o.current;if(!r||!(r instanceof b(r).Element)){console.error("<Pressable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!b$1(r)){console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(r.localName!=="button"&&r.localName!=="input"&&r.localName!=="select"&&r.localName!=="textarea"&&r.localName!=="a"&&r.localName!=="area"&&r.localName!=="summary"){let e=r.getAttribute("role");e?e!=="application"&&e!=="button"&&e!=="checkbox"&&e!=="combobox"&&e!=="gridcell"&&e!=="link"&&e!=="menuitem"&&e!=="menuitemcheckbox"&&e!=="menuitemradio"&&e!=="option"&&e!=="radio"&&e!=="searchbox"&&e!=="separator"&&e!=="slider"&&e!=="spinbutton"&&e!=="switch"&&e!=="tab"&&e!=="textbox"&&e!=="treeitem"&&console.warn(`<Pressable> child must have an interactive ARIA role. Got "${e}".`):console.warn("<Pressable> child must have an interactive ARIA role.");}},[o,t.isDisabled]);let x=parseInt(p.version,10)<19?s.ref:s.props.ref;return p.cloneElement(s,{...c(l,n,s.props),ref:b$2(x,o)})});var C=p.forwardRef(({children:a$1,...t},o)=>{let l=useRef(false),n=useContext(c$1),s=c(n||{},{...t,register(){l.current=true,n&&n.register();}});return s.ref=a(o||n?.ref),u(n,s.ref),useEffect(()=>{l.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),l.current=true);},[]),jsx(c$1.Provider,{value:s,children:a$1})});function O({children:a}){let t=useMemo(()=>({register:()=>{}}),[]);return jsx(c$1.Provider,{value:t,children:a})}export{E as a,C as b,O as c};
@@ -0,0 +1,10 @@
1
+ import c,{useState,useRef,useEffect,useReducer,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 g=typeof document<"u"?c.useInsertionEffect??c.useLayoutEffect:()=>{};function A(n,i,l){let[a,s]=useState(n||i),o=useRef(a),d=useRef(n!==void 0),t=n!==void 0;useEffect(()=>{let e=d.current;e!==t&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${t?"controlled":"uncontrolled"}.`),d.current=t;},[t]);let r=t?n:a;g(()=>{o.current=r;});let[,T]=useReducer(()=>({}),{}),S=useCallback((e,...C)=>{let u=typeof e=="function"?e(o.current):e;Object.is(o.current,u)||(o.current=u,s(u),T(),l?.(u,...C));},[l]);return [r,S]}export{A as a};