@baseline-ui/core 2.2.0 → 3.0.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-2JANDORZ.mjs +11 -0
  160. package/dist/chunk-2MS356Q7.mjs +10 -0
  161. package/dist/chunk-2PH5GN2S.mjs +0 -0
  162. package/dist/chunk-2RCST7ET.mjs +10 -0
  163. package/dist/chunk-2UUKKXBD.mjs +10 -0
  164. package/dist/chunk-2VY4FAOY.mjs +10 -0
  165. package/dist/chunk-2WAKHFPS.mjs +10 -0
  166. package/dist/chunk-34TYNTXM.mjs +10 -0
  167. package/dist/chunk-3CWP2VCB.mjs +10 -0
  168. package/dist/chunk-3FYY26ED.mjs +10 -0
  169. package/dist/chunk-3HKG74G4.mjs +0 -0
  170. package/dist/chunk-3UH5CQQF.mjs +10 -0
  171. package/dist/chunk-3W6RWDIE.mjs +10 -0
  172. package/dist/chunk-3X2QM7GV.mjs +10 -0
  173. package/dist/chunk-44OUOGJ4.mjs +10 -0
  174. package/dist/chunk-4ILKZKTW.mjs +10 -0
  175. package/dist/chunk-4N6CLPAY.mjs +10 -0
  176. package/dist/chunk-4NYPVKDO.mjs +10 -0
  177. package/dist/chunk-4PYEGHW5.mjs +10 -0
  178. package/dist/chunk-4QEH5CGK.mjs +10 -0
  179. package/dist/chunk-4SW77SGW.mjs +10 -0
  180. package/dist/chunk-4WW2MVQN.mjs +0 -0
  181. package/dist/chunk-4ZJMZB5B.mjs +10 -0
  182. package/dist/chunk-535OT4US.mjs +10 -0
  183. package/dist/chunk-545KDVGI.mjs +10 -0
  184. package/dist/chunk-54IAJ3RI.mjs +0 -0
  185. package/dist/chunk-5ANNWMLJ.mjs +0 -0
  186. package/dist/chunk-5BAHJXOI.mjs +10 -0
  187. package/dist/chunk-5HXTXIE5.mjs +10 -0
  188. package/dist/chunk-5IC46G5J.mjs +10 -0
  189. package/dist/chunk-5KD2MNNX.mjs +10 -0
  190. package/dist/chunk-5ODZPQL2.mjs +10 -0
  191. package/dist/chunk-5PQHOVGX.mjs +0 -0
  192. package/dist/chunk-5ULL6IBX.mjs +10 -0
  193. package/dist/chunk-5YHNHEDK.mjs +0 -0
  194. package/dist/chunk-63KRQW56.mjs +10 -0
  195. package/dist/chunk-66CUIXA6.mjs +10 -0
  196. package/dist/chunk-66NJ7EYY.mjs +10 -0
  197. package/dist/chunk-67MPTBBY.mjs +10 -0
  198. package/dist/chunk-6F66XVOA.mjs +0 -0
  199. package/dist/chunk-6IRWW75G.mjs +10 -0
  200. package/dist/chunk-6IX6BM7C.mjs +0 -0
  201. package/dist/chunk-6XARU7F2.mjs +0 -0
  202. package/dist/chunk-6YQHZ5RZ.mjs +0 -0
  203. package/dist/chunk-6Z6HOW6T.mjs +10 -0
  204. package/dist/chunk-6ZFBX7C7.mjs +10 -0
  205. package/dist/chunk-6ZQE5SHE.mjs +10 -0
  206. package/dist/chunk-6ZV4UYEG.mjs +10 -0
  207. package/dist/chunk-77BAFSDX.mjs +10 -0
  208. package/dist/chunk-7AY6C5M5.mjs +10 -0
  209. package/dist/chunk-7FJMUUHS.mjs +10 -0
  210. package/dist/chunk-7PRJIPFA.mjs +10 -0
  211. package/dist/chunk-A24DWFQ2.mjs +10 -0
  212. package/dist/chunk-A6ZQQSAX.mjs +10 -0
  213. package/dist/chunk-AC7OXVHA.mjs +10 -0
  214. package/dist/chunk-AGUSZG6K.mjs +0 -0
  215. package/dist/chunk-AGYQLGBZ.mjs +10 -0
  216. package/dist/chunk-AKES5B6C.mjs +10 -0
  217. package/dist/chunk-AMQX3KZR.mjs +10 -0
  218. package/dist/chunk-AMW7LGCF.mjs +10 -0
  219. package/dist/chunk-AMYRLAIC.mjs +10 -0
  220. package/dist/chunk-AQYBKDT2.mjs +16 -0
  221. package/dist/chunk-AUOQSTS5.mjs +10 -0
  222. package/dist/chunk-AV4ZP5SY.mjs +10 -0
  223. package/dist/chunk-AZRPXTYJ.mjs +10 -0
  224. package/dist/chunk-B7PSE5KC.mjs +10 -0
  225. package/dist/chunk-BED7T5CL.mjs +10 -0
  226. package/dist/chunk-BGMVPFYK.mjs +10 -0
  227. package/dist/chunk-BJVFZYUV.mjs +10 -0
  228. package/dist/chunk-BKDQLDOK.mjs +10 -0
  229. package/dist/chunk-BLHN7I5Z.mjs +0 -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-DM26KBZ3.mjs +10 -0
  250. package/dist/chunk-DOL6RDMF.mjs +10 -0
  251. package/dist/chunk-DRYSJSKA.mjs +10 -0
  252. package/dist/chunk-DY6WY36N.mjs +0 -0
  253. package/dist/chunk-E3PFPOHX.mjs +0 -0
  254. package/dist/chunk-E6VOSF6Z.mjs +10 -0
  255. package/dist/chunk-EA6GA4WC.mjs +10 -0
  256. package/dist/chunk-EK3RIYMV.mjs +10 -0
  257. package/dist/chunk-ELXWR5TS.mjs +10 -0
  258. package/dist/chunk-EMCEJKBJ.mjs +10 -0
  259. package/dist/chunk-ENDOKA57.mjs +10 -0
  260. package/dist/chunk-EU75HMPG.mjs +10 -0
  261. package/dist/chunk-EX2LI2CV.mjs +10 -0
  262. package/dist/chunk-EZXMEGV7.mjs +0 -0
  263. package/dist/chunk-F2HESRBD.mjs +10 -0
  264. package/dist/chunk-F2X474RV.mjs +10 -0
  265. package/dist/chunk-F7PGMOQF.mjs +10 -0
  266. package/dist/chunk-FJ2JRD3H.mjs +10 -0
  267. package/dist/chunk-FKYHERP4.mjs +0 -0
  268. package/dist/chunk-FP5EWPOF.mjs +10 -0
  269. package/dist/chunk-FTYXFTJV.mjs +10 -0
  270. package/dist/chunk-FWAK2OZM.mjs +10 -0
  271. package/dist/chunk-FXCHST4Z.mjs +10 -0
  272. package/dist/chunk-GCZFXILF.mjs +10 -0
  273. package/dist/chunk-GEZGEZAP.mjs +10 -0
  274. package/dist/chunk-GKODQS6E.mjs +10 -0
  275. package/dist/chunk-GOSLHCDP.mjs +0 -0
  276. package/dist/chunk-GX2IOGYR.mjs +12 -0
  277. package/dist/chunk-GXOXYPQQ.mjs +10 -0
  278. package/dist/chunk-H2LXVMBI.mjs +29 -0
  279. package/dist/chunk-HBBRMEES.mjs +10 -0
  280. package/dist/chunk-HEO2XVRN.mjs +10 -0
  281. package/dist/chunk-HI44JQA7.mjs +10 -0
  282. package/dist/chunk-HJQZW2VO.mjs +10 -0
  283. package/dist/chunk-HLDCVJXD.mjs +10 -0
  284. package/dist/chunk-HONWMHMX.mjs +10 -0
  285. package/dist/chunk-HT55YHTN.mjs +10 -0
  286. package/dist/chunk-HWOMGFBL.mjs +10 -0
  287. package/dist/chunk-HXTAOYOD.mjs +10 -0
  288. package/dist/chunk-HZHAKW6I.mjs +10 -0
  289. package/dist/chunk-I3RGYL4B.mjs +10 -0
  290. package/dist/chunk-I3YGB2BE.mjs +10 -0
  291. package/dist/chunk-IB23KCIW.mjs +10 -0
  292. package/dist/chunk-IHLJTHGQ.mjs +10 -0
  293. package/dist/chunk-ILBAZFBL.mjs +0 -0
  294. package/dist/chunk-INDVRI57.mjs +10 -0
  295. package/dist/chunk-IUQOFRI3.mjs +10 -0
  296. package/dist/chunk-IVVZSESM.mjs +10 -0
  297. package/dist/chunk-IW4GXU75.mjs +10 -0
  298. package/dist/chunk-J3MJZQUJ.mjs +10 -0
  299. package/dist/chunk-J4NO4WYU.mjs +0 -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-K5RKL3WY.mjs +10 -0
  310. package/dist/chunk-K6IQ4ALU.mjs +0 -0
  311. package/dist/chunk-K6X2BHPP.mjs +10 -0
  312. package/dist/chunk-KAYY6L7Y.mjs +10 -0
  313. package/dist/chunk-KCHAWPUN.mjs +10 -0
  314. package/dist/chunk-KEVERVHK.mjs +10 -0
  315. package/dist/chunk-KG5PDPBK.mjs +10 -0
  316. package/dist/chunk-KKJ6XIU3.mjs +10 -0
  317. package/dist/chunk-KPEONVLU.mjs +10 -0
  318. package/dist/chunk-KUEDQO7P.mjs +10 -0
  319. package/dist/chunk-KY3JKXSX.mjs +10 -0
  320. package/dist/chunk-LQB4U6GF.mjs +10 -0
  321. package/dist/chunk-LQMEFFFM.mjs +10 -0
  322. package/dist/chunk-LZFTBNPW.mjs +10 -0
  323. package/dist/chunk-LZM6UK3C.mjs +10 -0
  324. package/dist/chunk-M5M3EPG5.mjs +10 -0
  325. package/dist/chunk-MEYMETYC.mjs +11 -0
  326. package/dist/chunk-MEZNZ5W6.mjs +10 -0
  327. package/dist/chunk-MFH2E2GU.mjs +10 -0
  328. package/dist/chunk-MHUFXHRU.mjs +10 -0
  329. package/dist/chunk-MI7DCFP2.mjs +10 -0
  330. package/dist/chunk-MLNPTVVX.mjs +10 -0
  331. package/dist/chunk-MRJFGHFW.mjs +10 -0
  332. package/dist/chunk-MUNFBB7D.mjs +0 -0
  333. package/dist/chunk-MVK5CB64.mjs +10 -0
  334. package/dist/chunk-MXKP7NQ4.mjs +10 -0
  335. package/dist/chunk-MZ4O6LWG.mjs +0 -0
  336. package/dist/chunk-N2XGJKZG.mjs +10 -0
  337. package/dist/chunk-N7MTFSWR.mjs +10 -0
  338. package/dist/chunk-NCADIC3I.mjs +10 -0
  339. package/dist/chunk-NGZRN4SF.mjs +10 -0
  340. package/dist/chunk-NHM3H5JU.mjs +0 -0
  341. package/dist/chunk-NKKKKVQ7.mjs +10 -0
  342. package/dist/chunk-NMTDGCRA.mjs +10 -0
  343. package/dist/chunk-NO55UIGK.mjs +0 -0
  344. package/dist/chunk-NRKHWSOP.mjs +0 -0
  345. package/dist/chunk-NSC53QWT.mjs +10 -0
  346. package/dist/chunk-NV7KQVPE.mjs +10 -0
  347. package/dist/chunk-O57ZEY3V.mjs +0 -0
  348. package/dist/chunk-O66FNQSB.mjs +10 -0
  349. package/dist/chunk-O6AE67ZY.mjs +10 -0
  350. package/dist/chunk-O7XK2WIX.mjs +10 -0
  351. package/dist/chunk-OAY74XPB.mjs +10 -0
  352. package/dist/chunk-OC42IZG2.mjs +10 -0
  353. package/dist/chunk-OMT6ZWSV.mjs +11 -0
  354. package/dist/chunk-OO7BXL2N.mjs +10 -0
  355. package/dist/chunk-P5GO3XIS.mjs +10 -0
  356. package/dist/chunk-PAQQ7MQG.mjs +10 -0
  357. package/dist/chunk-PBFIKNYZ.mjs +10 -0
  358. package/dist/chunk-PF3OQKXP.mjs +10 -0
  359. package/dist/chunk-PHZZLBH3.mjs +10 -0
  360. package/dist/chunk-PR3HWZFH.mjs +10 -0
  361. package/dist/chunk-PZTVDABF.mjs +0 -0
  362. package/dist/chunk-Q5UMLFN3.mjs +10 -0
  363. package/dist/chunk-QAUEG3EX.mjs +0 -0
  364. package/dist/chunk-QBJDGBTU.mjs +0 -0
  365. package/dist/chunk-QMDDCVAF.mjs +10 -0
  366. package/dist/chunk-QNBBJ5HC.mjs +11 -0
  367. package/dist/chunk-QY3O34WX.mjs +10 -0
  368. package/dist/chunk-RC7QITNV.mjs +10 -0
  369. package/dist/chunk-RCBUNCHV.mjs +10 -0
  370. package/dist/chunk-RELI5YAS.mjs +10 -0
  371. package/dist/chunk-RFTDIXEG.mjs +10 -0
  372. package/dist/chunk-RJC3HQDZ.mjs +10 -0
  373. package/dist/chunk-RJWPSJX2.mjs +10 -0
  374. package/dist/chunk-RMUV6NJJ.mjs +10 -0
  375. package/dist/chunk-ROHLZINC.mjs +10 -0
  376. package/dist/chunk-RSKKEGJZ.mjs +10 -0
  377. package/dist/chunk-RT4LMB6X.mjs +10 -0
  378. package/dist/chunk-RXSYDMT6.mjs +10 -0
  379. package/dist/chunk-S5XX36JC.mjs +10 -0
  380. package/dist/chunk-SAZLJ66W.mjs +10 -0
  381. package/dist/chunk-SMAYNDQQ.mjs +10 -0
  382. package/dist/chunk-TAROK7TO.mjs +10 -0
  383. package/dist/chunk-TAYP2OGC.mjs +10 -0
  384. package/dist/chunk-TDXALNX3.mjs +10 -0
  385. package/dist/chunk-TEQE6WCH.mjs +10 -0
  386. package/dist/chunk-THRAJMLX.mjs +10 -0
  387. package/dist/chunk-TI5RR7KX.mjs +10 -0
  388. package/dist/chunk-TIHKHXTS.mjs +10 -0
  389. package/dist/chunk-TJEK54BW.mjs +10 -0
  390. package/dist/chunk-TK4QXU3W.mjs +10 -0
  391. package/dist/chunk-TKQOQVZD.mjs +10 -0
  392. package/dist/chunk-TO2TQ2LE.mjs +10 -0
  393. package/dist/chunk-TO6OQF2Y.mjs +10 -0
  394. package/dist/chunk-TZ4MVY4E.mjs +10 -0
  395. package/dist/chunk-U2ODAIZG.mjs +10 -0
  396. package/dist/chunk-UCNHDT36.mjs +10 -0
  397. package/dist/chunk-UCZZLAPB.mjs +10 -0
  398. package/dist/chunk-UMABUZ67.mjs +10 -0
  399. package/dist/chunk-UQJGSVXP.mjs +10 -0
  400. package/dist/chunk-USMC34OO.mjs +10 -0
  401. package/dist/chunk-UTQ7AIPM.mjs +0 -0
  402. package/dist/chunk-UUBOEBYZ.mjs +10 -0
  403. package/dist/chunk-V3L4SVVF.mjs +10 -0
  404. package/dist/chunk-VCIX4HG7.mjs +0 -0
  405. package/dist/chunk-VDUFLHKK.mjs +10 -0
  406. package/dist/chunk-VG7J427T.mjs +10 -0
  407. package/dist/chunk-VHDXSFQC.mjs +10 -0
  408. package/dist/chunk-VLQ4S7XC.mjs +10 -0
  409. package/dist/chunk-VU2PDOBR.mjs +10 -0
  410. package/dist/chunk-VXB5SVQC.mjs +10 -0
  411. package/dist/chunk-W6QO7FPZ.mjs +10 -0
  412. package/dist/chunk-WAFYFWH4.mjs +0 -0
  413. package/dist/chunk-WAOWR7MR.mjs +10 -0
  414. package/dist/chunk-WDJ4GXWF.mjs +10 -0
  415. package/dist/chunk-WL27JGVG.mjs +10 -0
  416. package/dist/chunk-WOVAT6U4.mjs +10 -0
  417. package/dist/chunk-WSCZ34XO.mjs +10 -0
  418. package/dist/chunk-WSQGB4ZE.mjs +0 -0
  419. package/dist/chunk-WWSGOGLA.mjs +10 -0
  420. package/dist/chunk-X3AXUU3H.mjs +10 -0
  421. package/dist/chunk-XB657BXX.mjs +10 -0
  422. package/dist/chunk-XBBPWSJI.mjs +0 -0
  423. package/dist/chunk-XJGQXVMR.mjs +10 -0
  424. package/dist/chunk-XPISSX5R.mjs +10 -0
  425. package/dist/chunk-XTH6B5FE.mjs +10 -0
  426. package/dist/chunk-XVBOKL6D.mjs +10 -0
  427. package/dist/chunk-XWLESSHN.mjs +10 -0
  428. package/dist/chunk-XXANV3FM.mjs +10 -0
  429. package/dist/chunk-Y4DRSGEJ.mjs +10 -0
  430. package/dist/chunk-Y6XQJ4X2.mjs +10 -0
  431. package/dist/chunk-YB3KW7JC.mjs +10 -0
  432. package/dist/chunk-YCI6BEXQ.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 +349 -73
  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 +9 -6
  525. package/sbom.json +13 -13
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-ENDOKA57.mjs';import {a as a$1}from'./chunk-EK3RIYMV.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 c(i,r){let{key:s}=i,{checkboxProps:e}=a(i,r);return {checkboxProps:{...e,"aria-labelledby":`${e.id} ${a$1(r,s)}`}}}export{c as a};
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$2}from'./chunk-HONWMHMX.mjs';import {a as a$2}from'./chunk-PF3OQKXP.mjs';import {a as a$3}from'./chunk-2VY4FAOY.mjs';import {i}from'./chunk-MRJFGHFW.mjs';import {a as a$1}from'./chunk-JDLUGVXG.mjs';import {a,f,b as b$1,e}from'./chunk-AUOQSTS5.mjs';import {useState,useRef,useEffect,useCallback}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var $=1e7;function dt(t,e,l){let o=st(e.body,l);return t==="left"?{...o,left:-$/2,width:$,totalWidth:$,scroll:{...o.scroll,left:0}}:{...o,top:-$/2,height:$,totalHeight:$,scroll:{...o.scroll,top:0}}}var F={top:"top",bottom:"top",left:"left",right:"left"},G={top:"bottom",bottom:"top",left:"right",right:"left"},Ct={top:"left",left:"top"},it={top:"height",left:"width"},Et={width:"totalWidth",height:"totalHeight"},J={};function Ot(t){let e=b$1(t);return typeof e<"u"&&e.visualViewport?e.visualViewport:null}function st(t,e){let l=a(t),o=0,n=0,s=0,i$1=0,c=0,u=0,r={},a$1=(e?.scale??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let h=l.documentElement;s=h.clientWidth,i$1=h.clientHeight,o=e?.width??s,n=e?.height??i$1,r.top=h.scrollTop||t.scrollTop,r.left=h.scrollLeft||t.scrollLeft,e&&(c=e.offsetTop,u=e.offsetLeft);}else (({width:o,height:n,top:c,left:u}=Z(t,false))),r.top=t.scrollTop,r.left=t.scrollLeft,s=o,i$1=n;return i()&&(t.tagName==="BODY"||t.tagName==="HTML")&&a$1&&(r.top=0,r.left=0,c=e?.pageTop??0,u=e?.pageLeft??0),{width:o,height:n,totalWidth:s,totalHeight:i$1,scroll:r,top:c,left:u}}function Mt(t){return {top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Q(t,e,l,o,n,s,i){let c=n.scroll[t]??0,u=o[it[t]],r=i[t]+o.scroll[F[t]]+s,a=i[t]+o.scroll[F[t]]+u-s,h=e-c+o.scroll[F[t]]+i[t]-o[F[t]],d=e-c+l+o.scroll[F[t]]+i[t]-o[F[t]];return h<r?r-h:d>a?Math.max(a-d,r-h):0}function It(t){let l=b$1(t).getComputedStyle(t);return {top:parseInt(l.marginTop,10)||0,bottom:parseInt(l.marginBottom,10)||0,left:parseInt(l.marginLeft,10)||0,right:parseInt(l.marginRight,10)||0}}function rt(t){if(J[t])return J[t];let[e,l]=t.split(" "),o=F[e]||"right",n=Ct[o];F[l]||(l="center");let s=it[o],i=it[n];return J[t]={placement:e,crossPlacement:l,axis:o,crossAxis:n,size:s,crossSize:i},J[t]}function tt(t,e,l,o,n,s,i,c,u,r,a){let{placement:h,crossPlacement:d,axis:y,crossAxis:f,size:H,crossSize:w}=o,b={};b[f]=t[f]??0,d==="center"?b[f]+=((t[w]??0)-(l[w]??0))/2:d!==f&&(b[f]+=(t[w]??0)-(l[w]??0)),b[f]+=s;let E=t[f]-l[w]+u+r,L=t[f]+t[w]-u-r;if(b[f]=a$3(b[f],E,L),h===y){let W=c?a[H]:a[Et[H]];b[G[y]]=Math.floor(W-t[y]+n);}else b[y]=Math.floor(t[y]+t[H]+n);return b}function vt(t,e,l,o,n,s,i,c,u,r,a){let h=(t.top!=null?t.top:u[Et.height]-(t.bottom??0)-i)-(u.scroll.top??0),d=r?l.top:0,y={top:Math.max(e.top+d,(a?.offsetTop??e.top)+d),bottom:Math.min(e.top+e.height+d,(a?.offsetTop??0)+(a?.height??0))};return c!=="top"?Math.max(0,y.bottom-h-((n.top??0)+(n.bottom??0)+s)):Math.max(0,h+i-y.top-((n.top??0)+(n.bottom??0)+s))}function Pt(t,e,l,o,n,s,i,c){let{placement:u,axis:r,size:a}=s;return u===r?Math.max(0,l[r]-(i.scroll[r]??0)-(t[r]+(c?e[r]:0))-(o[r]??0)-o[G[r]]-n):Math.max(0,t[a]+t[r]+(c?e[r]:0)-l[r]-l[a]+(i.scroll[r]??0)-(o[r]??0)-o[G[r]]-n)}function St(t,e,l,o,n,s,i,c,u,r,a,h,d,y,f,H,w,b,E,L,W,_){let m=rt(t),{size:A,crossAxis:p,crossSize:R,placement:M,crossPlacement:T}=m,P=tt(e,c,l,m,a,h,r,d,f,H,u),S=a,k=E?$:Pt(c,r,e,n,s+a,m,u,w);if(i&&l[A]>k){let j=rt(`${G[M]} ${T}`),X=tt(e,c,l,j,a,h,r,d,f,H,u);Pt(c,r,e,n,s+a,j,u,w)>k&&(m=j,P=X,S=a);}if(_==="anchor"&&L&&(m.placement==="top"||m.placement==="bottom")){let j=E?0:Q(p,P[p],l[R],c,u,s,r);if(j!==0){let X=m.crossPlacement==="center"?j>0?"left":"right":G[m.crossPlacement];if(X){let lt=rt(`${m.placement} ${X}`),pt=tt(e,c,l,lt,a,h,r,d,f,H,u),Lt=E?0:Q(p,pt[p],l[R],c,u,s,r);Math.abs(Lt)<Math.abs(j)&&(m=lt,P=pt);}}}let I="bottom";m.axis==="top"?m.placement==="top"?I="top":m.placement==="bottom"&&(I="bottom"):m.crossAxis==="top"&&(m.crossPlacement==="top"?I="bottom":m.crossPlacement==="bottom"&&(I="top"));let V=_==="anchor"&&L&&(m.placement==="top"||m.placement==="bottom")&&m.crossPlacement!=="center",z=V||E?0:Q(p,P[p],l[R],c,u,s,r);P[p]+=z;let x=E||!W?void 0:vt(P,c,r,d,n,s,l.height,I,u,w,b);y&&(x==null||y<x)&&(x=y),l.height=x!=null?Math.min(l.height,x):l.height,P=tt(e,c,l,m,S,h,r,d,f,H,u),z=V||E?0:Q(p,P[p],l[R],c,u,s,r),P[p]+=z;let v={},g=e[p]-P[p]-n[F[p]],C=g+.5*e[R],D=f/2+H,B=F[p]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),N=l[R]-B-f/2-H,ot=e[p]+f/2-(P[p]+n[F[p]]),Tt=e[p]+e[R]-f/2-(P[p]+n[F[p]]),yt=a$3(C,ot,Tt);v[p]=a$3(yt,D,N),{placement:M,crossPlacement:T}=m,f?g=v[p]:T==="right"?g+=e[R]:T==="center"&&(g+=e[R]/2);let at=M==="left"||M==="top"?l[A]:0,Ht={x:M==="top"||M==="bottom"?g:at,y:M==="left"||M==="right"?g:at};return {position:P,maxHeight:x,arrowOffsetLeft:v.left,arrowOffsetTop:v.top,placement:M,triggerAnchorPoint:Ht}}function At(t){let{placement:e$1,targetNode:l,overlayNode:o,scrollNode:n,padding:s,shouldFlip:i,boundaryElement:c,boundaryAxis:u="both",horizontalBoundaryBehavior:r="shift",offset:a$1,crossOffset:h,maxHeight:d,arrowSize:y=0,arrowBoundaryOffset:f=0,targetRect:H}=t,w=a(o),b=b$1(o),E=Ot(o),L=o instanceof b.HTMLElement?zt(o):w.documentElement,W=L===w.documentElement,_=b.getComputedStyle(L).position,m=!!_&&_!=="static",A=W?Z(l,false,H):xt(l,L,false,H);if(!W){let{marginTop:D,marginLeft:B}=b.getComputedStyle(l);A.top+=parseInt(D,10)||0,A.left+=parseInt(B,10)||0;}let p=Z(o,true),R=It(o);p.width+=(R.left??0)+(R.right??0),p.height+=(R.top??0)+(R.bottom??0);let M=Mt(n),T=c===null,P=c??w.body,S=!T&&u!=="vertical",k=!T&&u!=="horizontal",I=st(P,E),V=S?I:dt("left",w,E),z=k?I:dt("top",w,E),x={...z,left:V.left,width:V.width,totalWidth:V.totalWidth,scroll:{top:z.scroll.top,left:V.scroll.left}},v=st(L,E);m&&!W&&(x.top-=v.top,x.left-=v.left,v.top=0,v.left=0);let g=T?{top:0,left:0,width:0,height:0}:xt(P,L,false),C=!T&&e(P,L)&&L!==P;return St(e$1,A,p,M,R,s,i,x,v,g,a$1,h,m,d,y,f,C,E,T,S,k,r)}function et(t,e){let l=b$1(t),{top:o,left:n,width:s,height:i}=t.getBoundingClientRect();return e&&t instanceof l.HTMLElement&&(s=t.offsetWidth,i=t.offsetHeight),{top:o,left:n,width:s,height:i}}function Z(t,e,l){let o=a(t),{top:n,left:s,width:i,height:c}=l||et(t,e),{scrollTop:u,scrollLeft:r,clientTop:a$1,clientLeft:h}=o.documentElement;return {top:n+u-a$1,left:s+r-h,width:i,height:c}}function xt(t,e,l,o){let n=b$1(t),s=n.getComputedStyle(t),i;if(s.position==="fixed")i=o||et(t,l);else {i=Z(t,l,o);let c=Z(e,l),u=n.getComputedStyle(e);c.top+=(parseInt(u.borderTopWidth,10)||0)-e.scrollTop,c.left+=(parseInt(u.borderLeftWidth,10)||0)-e.scrollLeft,i.top-=c.top,i.left-=c.left;}return i.top-=parseInt(s.marginTop,10)||0,i.left-=parseInt(s.marginLeft,10)||0,i}function zt(t){let e=a(t),l=b$1(t),o=t.offsetParent;if(o&&o===e.body&&l.getComputedStyle(o).position==="static"&&!wt(o)&&(o=e.documentElement),o==null)for(o=t.parentElement;o&&!wt(o);)o=o.parentElement;return o||e.documentElement}function wt(t){let l=b$1(t).getComputedStyle(t);return l.transform!=="none"||/transform|perspective/.test(l.willChange)||l.filter!=="none"||l.contain==="paint"||"backdropFilter"in l&&l.backdropFilter!=="none"||"WebkitBackdropFilter"in l&&l.WebkitBackdropFilter!=="none"}function mt(t){return typeof document>"u"?null:b$1(t).visualViewport??null}function te(t){let{direction:e$1}=b(),{arrowSize:l,targetRef:o,overlayRef:n,arrowRef:s,scrollRef:i=n,placement:c="bottom",containerPadding:u=12,shouldFlip:r=true,boundaryElement:a$3,boundaryAxis:h="both",horizontalBoundaryBehavior:d="shift",offset:y=0,crossOffset:f$1=0,shouldUpdatePosition:H=true,shouldCloseOnScroll:w=true,isOpen:b$3=true,onClose:E,maxHeight:L,arrowBoundaryOffset:W=0,getTargetRect:_}=t,m=a$3??(typeof document<"u"?o.current?.ownerDocument.body??n.current?.ownerDocument.body??document.body:void 0),[A,p]=useState(null),R=[H,c,n.current,o.current,s?.current,i.current,u,r,m,h,d,y,f$1,b$3,e$1,L,W,l],M=useRef(mt(n.current)?.scale);useEffect(()=>{b$3&&(M.current=mt(n.current)?.scale);},[b$3,n]);let T=useCallback(()=>{if(H===false||!b$3||!n.current||!o.current||m===void 0||mt(n.current)?.scale!==M.current)return;let z=a(n.current),x=f(z),v=b$1(z.body),g=null;if(i.current&&e(i.current,x)){let B=x?.getBoundingClientRect(),N=i.current.getBoundingClientRect();g={type:"top",offset:(B?.top??0)-N.top},g.offset>N.height/2&&(g.type="bottom",g.offset=(B?.bottom??0)-N.bottom);}let C=n.current;!L&&n.current&&(C.style.top="0px",C.style.bottom="",C.style.maxHeight=(v.visualViewport?.height??v.innerHeight)+"px");let D=At({placement:Wt(c,e$1),overlayNode:n.current,targetNode:o.current,scrollNode:i.current||n.current,padding:u,shouldFlip:r,boundaryElement:m,boundaryAxis:h,horizontalBoundaryBehavior:d,offset:y,crossOffset:f$1,maxHeight:L,arrowSize:l??(s?.current?et(s.current,true).width:0),arrowBoundaryOffset:W,targetRect:_?.(o.current)});if(D.position){if(C.style.top="",C.style.bottom="",C.style.left="",C.style.right="",Object.keys(D.position).forEach(B=>C.style[B]=D.position[B]+"px"),C.style.maxHeight=D.maxHeight!=null?D.maxHeight+"px":"",g&&x&&i.current){let B=x.getBoundingClientRect(),N=i.current.getBoundingClientRect(),ot=B[g.type]-N[g.type];i.current.scrollTop+=ot-g.offset;}p(D);}},R);a$1(T,R);let P=m?b$1(m):o.current?b$1(o.current):n.current?b$1(n.current):void 0;Bt(T,P);let S=useRef(null),k=useCallback(()=>{S.current!==null&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{S.current=null,T();});},[T]);useEffect(()=>()=>{S.current!==null&&cancelAnimationFrame(S.current);},[]),a$2({ref:n,onResize:k}),a$2({ref:o,onResize:k});let I=useRef(false);a$1(()=>{let z,x=()=>{I.current=true,clearTimeout(z),z=setTimeout(()=>{I.current=false;},500),T();},g=b$1(n.current).visualViewport,C=()=>{I.current&&x();};return g?.addEventListener("resize",x),g?.addEventListener("scroll",C),()=>{g?.removeEventListener("resize",x),g?.removeEventListener("scroll",C);}},[T]);let V=useCallback(()=>{I.current||E?.();},[E,I]);return b$2({triggerRef:o,isOpen:b$3,onClose:w?E&&V:null}),{overlayProps:{style:{position:A?"absolute":"fixed",top:A?void 0:0,left:A?void 0:0,zIndex:1e5,...A?.position,maxHeight:A==null?"100vh":A.maxHeight!=null?`${A.maxHeight}px`:""}},placement:A?.placement??null,triggerAnchorPoint:A?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A?.arrowOffsetLeft,top:A?.arrowOffsetTop}},updatePosition:T}}function Bt(t,e=window){a$1(()=>(e?.addEventListener("resize",t,false),()=>{e?.removeEventListener("resize",t,false);}),[t,e]);}function Wt(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}export{te as a};
@@ -0,0 +1,10 @@
1
+ import {j as j$1,l,m,k,o,i,h}from'./chunk-7AY6C5M5.mjs';import {a as a$2}from'./chunk-MEYMETYC.mjs';import {b}from'./chunk-J3MJZQUJ.mjs';import {a}from'./chunk-YV3WI6OV.mjs';import {e}from'./chunk-B7PSE5KC.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import C,{useEffect,useContext}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var w="xyd2ss0 _1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6ru _1yep5z6rv _1yep5z6rw _1yep5z6u6 _1yep5z6u7 _1yep5z6u8 _1yep5z6vc _1yep5z6vd _1yep5z6ve _1yep5z6t0 _1yep5z6t1 _1yep5z6t2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z617v _1yep5z617u _1yep5z6143 _1yep5z617y _1yep5z6124";var u=r=>r!=null&&typeof r=="object"&&!(Symbol.iterator in r);function B(r,t,e){let o=u(t)||u(e),s=t!=null&&!u(t)||e!=null&&!u(e);return r&&s?"Menu: an object `selectionMode` expects `selectedKeys`/`defaultSelectedKeys` to be records keyed by section id.":!r&&o?"Menu: a per-section `selectedKeys`/`defaultSelectedKeys` record requires the object form of `selectionMode`.":null}var H=C.forwardRef(({defaultOpen:r,onOpenChange:t,isOpen:e,isDisabled:o,contentClassName:s,placement:n="bottom start",isNonModal:l$1,shouldFlip:p,shouldUpdatePosition:m,boundaryElement:G,boundaryAxis:J,horizontalBoundaryBehavior:Q,crossOffset:V,offset:W,triggerLabel:f,renderTrigger:g=({buttonProps:c,ref:a})=>jsx(b,{...c,variant:"popover",ref:a,"data-testid":"menu-trigger"}),portalContainer:X,selectionMode:y,selectedKeys:P,defaultSelectedKeys:z,onSelectionChange:h,disabledKeys:_,disallowEmptySelection:T,...M},Y)=>{let c=a(X),a$2=y!=null&&typeof y=="object",K=C.useMemo(()=>_==null?void 0:new Set(_),[_]),O=B(a$2,P,z);if(O)throw new Error(O);return useEffect(()=>{!f&&!g&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[g,f]),jsxs(j$1,{defaultOpen:r,onOpenChange:t,isOpen:e,children:[jsx(j,{isDisabled:o,renderTrigger:g,triggerLabel:f}),jsx(L,{placement:n,isNonModal:l$1,shouldFlip:p,shouldUpdatePosition:m,boundaryElement:G,boundaryAxis:J,horizontalBoundaryBehavior:Q,crossOffset:V,offset:W||2,className:"BaselineUI-Menu-Popover",portalContainer:c,children:jsx(l,{...M,disabledKeys:K,...a$2?{}:{selectionMode:y,selectedKeys:P,defaultSelectedKeys:z,onSelectionChange:h,disallowEmptySelection:T},className:a$1(w,s),ref:Y,children:U(M.items,c,{onAction:M.onAction,disabledKeys:K,contentClassName:s,selection:a$2?{modes:y,selectedKeys:P,defaultSelectedKeys:z,onSelectionChange:h,disallowEmptySelection:T}:void 0})})})]})});function U(r,t,e){return r.map((o$1,s)=>{if("children"in o$1){let n=o$1,l=e.selection?.modes[n.id],p=e.selection;return jsx(m,{section:n,componentName:"Menu",isFirstCollectionItem:s===0,showSectionHeader:!!n.title,...l?{selectionMode:l,selectedKeys:p?.selectedKeys?.[n.id],defaultSelectedKeys:p?.defaultSelectedKeys?.[n.id],disabledKeys:e.disabledKeys,disallowEmptySelection:p?.disallowEmptySelection,onSelectionChange:m=>{p?.onSelectionChange?.(m,{sectionId:n.id});}}:{}},n.id)}return o$1.items?jsxs(k,{children:[jsx(o,{item:o$1,componentName:"Menu"}),jsx(L,{className:"BaselineUI-Menu-SubmenuPopover",portalContainer:t,children:jsx(l,{className:a$1(w,e.contentClassName),onAction:e.onAction,disabledKeys:e.disabledKeys,children:U(o$1.items,t,e)})})]},o$1.id):jsx(o,{item:o$1,componentName:"Menu"},o$1.id)})}var j=C.forwardRef(({renderTrigger:r,triggerLabel:t,isDisabled:e,...o},s)=>{let n=useContext(i);return r?.({buttonProps:{...o,isDisabled:e,label:typeof t=="function"?t(n?.isOpen||false):t,isOpen:n?.isOpen||false,className:"BaselineUI-Menu-Trigger"},ref:s})});j.displayName="MyTrigger";var L=({children:r,...t})=>{let e$1=useContext(i),[o]=e(t,void 0,h);return e$1?.isOpen?jsx(a$2,{...o,state:e$1,children:r}):null};H.displayName="Menu";export{H as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-JDLUGVXG.mjs';import O,{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 a({ref:e,onIntersect:t,isDisabled:r,threshold:n,rootMargin:o,root:c}){let s=O.useRef(t);a$1(()=>{s.current=t;}),useEffect(()=>{let i=e.current;if(r||!i)return;let f=new IntersectionObserver(([b])=>{s.current(b);},{root:c?.current,rootMargin:o,threshold:n});return f.observe(i),()=>{f.disconnect();}},[e,r,c,o,n]);}export{a};
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-PAQQ7MQG.mjs';import {a}from'./chunk-X3AXUU3H.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(t){let[e,n]=a(t.selectedKey,t.defaultSelectedKey??null,t.onSelectionChange),s=useMemo(()=>e!=null?[e]:[],[e]),{collection:o,disabledKeys:S,selectionManager:d}=b({...t,selectionMode:"single",disallowEmptySelection:true,allowDuplicateSelectionEvents:true,selectedKeys:s,onSelectionChange:i=>{if(i==="all")return;let l=i.values().next().value??null;l===e&&t.onSelectionChange&&t.onSelectionChange(l),n(l);}}),r=e!=null?o.getItem(e):null;return {collection:o,disabledKeys:S,selectionManager:d,selectedKey:e,setSelectedKey:n,selectedItem:r}}export{K as a};
@@ -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 {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 as a$1}from'./chunk-EU75HMPG.mjs';import {a as a$h,b as b$4}from'./chunk-BJVFZYUV.mjs';import {a as a$k}from'./chunk-UQJGSVXP.mjs';import {a as a$i}from'./chunk-RFTDIXEG.mjs';import {b,c as c$1}from'./chunk-GX2IOGYR.mjs';import {c as c$3}from'./chunk-W6QO7FPZ.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {a as a$7}from'./chunk-MEZNZ5W6.mjs';import {a as a$j}from'./chunk-6Z6HOW6T.mjs';import {a as a$d}from'./chunk-7PRJIPFA.mjs';import {b as b$2}from'./chunk-WL27JGVG.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {a as a$g}from'./chunk-4ZJMZB5B.mjs';import {a as a$4}from'./chunk-VDUFLHKK.mjs';import {a as a$l}from'./chunk-66CUIXA6.mjs';import {a as a$f}from'./chunk-D3IZ4HBL.mjs';import {a as a$b}from'./chunk-545KDVGI.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {e,a as a$c}from'./chunk-BGMVPFYK.mjs';import {b as b$3,a as a$e}from'./chunk-YB3KW7JC.mjs';import {a as a$2}from'./chunk-3FYY26ED.mjs';import {a as a$a,g,k}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$8}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$9}from'./chunk-6ZQE5SHE.mjs';import {b as b$5}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {HelpIcon}from'@baseline-ui/icons/16';import Ir,{useMemo,useState,useCallback,useRef}from'react';import {themeVars}from'@baseline-ui/tokens';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 oe={"ar-AE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0623\u062F\u0627\u0629 \u0627\u0646\u062A\u0642\u0627\u0621 \u0627\u0644\u0644\u0648\u0646",colorSwatch:"\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0623\u0644\u0648\u0627\u0646",transparent:"\u0634\u0641\u0627\u0641",twoDimensionalSlider:"\u0645\u064F\u0646\u0632\u0644\u0642 2D"},"bg-BG":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0437\u0430 \u0438\u0437\u0431\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0446\u0432\u044F\u0442",colorSwatch:"\u0446\u0432\u0435\u0442\u043D\u0430 \u043C\u043E\u0441\u0442\u0440\u0430",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u0435\u043D",twoDimensionalSlider:"2D \u043F\u043B\u044A\u0437\u0433\u0430\u0447"},"cs-CZ":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDb\u011Br barvy",colorSwatch:"barevn\xFD vzorek",transparent:"pr\u016Fhledn\xFD",twoDimensionalSlider:"2D posuvn\xEDk"},"da-DK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farvev\xE6lger",colorSwatch:"farvepr\xF8ve",transparent:"gennemsigtig",twoDimensionalSlider:"2D-skyder"},"de-DE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farbw\xE4hler",colorSwatch:"Farbfeld",transparent:"transparent",twoDimensionalSlider:"2D-Schieberegler"},"el-GR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03B1\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",colorSwatch:"\u03C7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03CC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1",transparent:"\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AD\u03C2",twoDimensionalSlider:"\u03A1\u03C5\u03B8\u03BC\u03B9\u03C3\u03C4\u03B9\u03BA\u03CC 2D"},"en-US":{colorPicker:"Color picker",twoDimensionalSlider:"2D slider",colorNameAndValue:e=>`${e.name}: ${e.value}`,colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorSwatch:"color swatch",transparent:"transparent"},"es-ES":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de color",colorSwatch:"muestra de color",transparent:"transparente",twoDimensionalSlider:"Regulador 2D"},"et-EE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rvivalija",colorSwatch:"v\xE4rvin\xE4idis",transparent:"l\xE4bipaistev",twoDimensionalSlider:"2D-liugur"},"fi-FI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rimuokkain",colorSwatch:"v\xE4rimalli",transparent:"l\xE4pin\xE4kyv\xE4",twoDimensionalSlider:"2D-liukus\xE4\xE4din"},"fr-FR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\xA0: ${e.value}`,colorPicker:"S\xE9lecteur de couleurs",colorSwatch:"\xC9chantillon de couleurs",transparent:"Transparent",twoDimensionalSlider:"Curseur\xA02D"},"he-IL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u05D1\u05D5\u05D7\u05E8 \u05D4\u05E6\u05D1\u05E2\u05D9\u05DD",colorSwatch:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05EA \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3",twoDimensionalSlider:"\u05DE\u05D7\u05D5\u05D5\u05DF \u05D3\u05D5 \u05DE\u05D9\u05DE\u05D3\u05D9"},"hr-HR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Odabir boje",colorSwatch:"uzorak boje",transparent:"transparentno",twoDimensionalSlider:"2D kliza\u010D"},"hu-HU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Sz\xEDnv\xE1laszt\xF3",colorSwatch:"sz\xEDnt\xE1r",transparent:"\xE1tl\xE1tsz\xF3",twoDimensionalSlider:"2D-cs\xFAszka"},"it-IT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selettore colore",colorSwatch:"campione di colore",transparent:"trasparente",twoDimensionalSlider:"Cursore 2D"},"ja-JP":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"\u30AB\u30E9\u30FC\u30D4\u30C3\u30AB\u30FC",colorSwatch:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u30B9\u30E9\u30A4\u30C0\u30FC"},"ko-KR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\uC0C9\uC0C1 \uD53C\uCEE4",colorSwatch:"\uC0C9\uC0C1 \uACAC\uBCF8",transparent:"\uD22C\uBA85\uB3C4",twoDimensionalSlider:"2D \uC2AC\uB77C\uC774\uB354"},"lt-LT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Spalv\u0173 parinkiklis",colorSwatch:"spalv\u0173 pavyzdys",transparent:"skaidrus",twoDimensionalSlider:"2D slankiklis"},"lv-LV":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kr\u0101su atlas\u012Bt\u0101js",colorSwatch:"kr\u0101su paraugs",transparent:"caursp\u012Bd\u012Bgs",twoDimensionalSlider:"2D sl\u012Bdnis"},"nb-NO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Fargevelger",colorSwatch:"fargekart",transparent:"gjennomsiktig",twoDimensionalSlider:"2D-glidebryter"},"nl-NL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kleurkiezer",colorSwatch:"kleurstaal",transparent:"transparant",twoDimensionalSlider:"2D-schuifregelaar"},"pl-PL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Pr\xF3bnik kolor\xF3w",colorSwatch:"pr\xF3bka koloru",transparent:"przezroczysty",twoDimensionalSlider:"Suwak 2D"},"pt-BR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cores",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"pt-PT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cor",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"ro-RO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de culori",colorSwatch:"specimen de culoare",transparent:"transparent",twoDimensionalSlider:"Glisor 2D"},"ru-RU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0438\u0442\u0440\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",colorSwatch:"\u0446\u0432\u0435\u0442\u043E\u0432\u043E\u0439 \u043E\u0431\u0440\u0430\u0437\u0435\u0446",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",twoDimensionalSlider:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A 2D"},"sk-SK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDber farieb",colorSwatch:"vzorkovn\xEDk farieb",transparent:"transparentn\xFD",twoDimensionalSlider:"2D jazdec"},"sl-SI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Izbirnik barv",colorSwatch:"barvna paleta",transparent:"prozorno",twoDimensionalSlider:"2D drsnik"},"sr-SP":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Bira\u010D boja",colorSwatch:"Uzorak boje",transparent:"providno",twoDimensionalSlider:"2D kliza\u010D"},"sv-SE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"F\xE4rgv\xE4ljaren",colorSwatch:"f\xE4rgruta",transparent:"genomskinlig",twoDimensionalSlider:"2D-reglage"},"tr-TR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Renk Se\xE7ici",colorSwatch:"renk \xF6rne\u011Fi",transparent:"saydam",twoDimensionalSlider:"2D s\xFCrg\xFC"},"uk-UA":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0456\u0442\u0440\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",colorSwatch:"\u0437\u0440\u0430\u0437\u043E\u043A \u043A\u043E\u043B\u044C\u043E\u0440\u0443",transparent:"\u043F\u0440\u043E\u0437\u043E\u0440\u0438\u0439",twoDimensionalSlider:"\u041F\u043E\u0432\u0437\u0443\u043D\u043E\u043A 2D"},"zh-CN":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u62FE\u8272\u5668",colorSwatch:"\u989C\u8272\u8272\u677F",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u5757"},"zh-TW":{colorInputLabel:e=>`${e.label}\uFF0C${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u6AA2\u8272\u5668",colorSwatch:"\u8272\u7968",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u687F"}};var Ue=e=>[0,60,120,180,240,300,360].map(r=>e.withChannelValue("hue",r).toString("css")).join(", "),Xe=e=>`${e.withChannelValue("saturation",0)}, transparent`,kr={hue:Ue,saturation:Xe,lightness:()=>"black, transparent, white"},Pr={hue:Ue,saturation:Xe,brightness:()=>"black, transparent"};function Ge({direction:e,state:r,zChannel:l,xChannel:t,yChannel:n}){return useMemo(()=>{let m=e==="rtl"?"left":"right",v={},z=r.value.getChannelValue(l);switch(r.value.getColorSpace()){case "rgb":{let s=a$1("rgb(0, 0, 0)");v={background:[`linear-gradient(to ${m}, ${s.withChannelValue(t,0)}, ${s.withChannelValue(t,255)})`,`linear-gradient(to top, ${s.withChannelValue(n,0)}, ${s.withChannelValue(n,255)})`,s.withChannelValue(l,z)].join(","),backgroundBlendMode:"screen"};break}case "hsl":{let s=r.value.getColorChannels(),d=a$1("hsl(0, 100%, 50%)").withChannelValue(l,z),c=s.filter(i=>i!==l).map(i=>`linear-gradient(to ${i===t?m:"top"}, ${kr[i](d)})`).reverse();l==="hue"&&c.push(d.toString("css")),v={background:c.join(", ")};break}case "hsb":{let s=r.value.getColorChannels(),d=a$1("hsb(0, 100%, 100%)").withChannelValue(l,z),c=s.filter(i=>i!==l).map(i=>`linear-gradient(to ${i===t?m:"top"}, ${Pr[i](d)})`).reverse();l==="hue"&&c.push(d.toString("css")),v={background:c.join(", ")};break}}let{x:h,y}=r.getThumbPosition();e==="rtl"&&(h=1-h);let f={forcedColorAdjust:"none"};return {colorAreaStyleProps:{style:{position:"relative",touchAction:"none",...f,...v}},thumbStyleProps:{style:{position:"absolute",left:`${h*100}%`,top:`${y*100}%`,transform:"translate(-50%, -50%)",touchAction:"none",...f}}}},[e,r,l,t,n])}function Je(e,r){let{isDisabled:l,inputXRef:t,inputYRef:n,containerRef:u,"aria-label":m,xName:v,yName:z,form:h}=e,y=b$2(oe,"@react-aria/color"),{addGlobalListener:f,removeGlobalListener:s}=a$9(),{direction:d,locale:c$1}=b$1(),[i,x]=useState(null),b=useCallback((o=t)=>{o.current&&a$a(o.current);},[t]);a$b(t,r.defaultValue,r.setValue);let[S,C]=useState(false),[V,k$1]=useState(false),{xChannel:_,yChannel:p,zChannel:w}=r.channels,g$1=r.xChannelStep,F=r.yChannelStep,N=useRef(null),{keyboardProps:ir}=a$c({onKeyDown(o){if(!/^(PageUp|PageDown|Home|End)$/.test(o.key)){o.continuePropagation();return}o.preventDefault(),r.setDragging(true),C(true);let a;switch(o.key){case "PageUp":r.incrementY(r.yChannelPageStep),a="y";break;case "PageDown":r.decrementY(r.yChannelPageStep),a="y";break;case "Home":d==="rtl"?r.incrementX(r.xChannelPageStep):r.decrementX(r.xChannelPageStep),a="x";break;case "End":d==="rtl"?r.decrementX(r.xChannelPageStep):r.incrementX(r.xChannelPageStep),a="x";break}r.setDragging(false),a&&(b(a==="x"?t:n),x(a));}}),X={onMoveStart(){N.current=null,r.setDragging(true);},onMove({deltaX:o,deltaY:a,pointerType:$,shiftKey:G}){let{incrementX:W,decrementX:ne,incrementY:ie,decrementY:M,xChannelPageStep:E,xChannelStep:H,yChannelPageStep:ve,yChannelStep:Se,getThumbPosition:Cr,setColorFromPoint:vr}=r;N.current==null&&(N.current=Cr());let{width:Sr,height:gr}=u.current?.getBoundingClientRect()||{width:0,height:0},ge=o!==0||a!==0;if($==="keyboard"){let xe=G&&E>H?E:H,ke=G&&ve>Se?ve:Se;o>0&&d==="ltr"||o<0&&d==="rtl"?W(xe):o<0&&d==="ltr"||o>0&&d==="rtl"?ne(xe):a>0?M(ke):a<0&&ie(ke),C(ge),i=ge&&Math.abs(a)>Math.abs(o)?"y":"x",x(i);}else N.current.x+=(d==="rtl"?-1:1)*o/Sr,N.current.y+=a/gr,vr(N.current.x,N.current.y);},onMoveEnd(){I.current=false,r.setDragging(false),b(i==="x"?t:n);}},{moveProps:pr}=a$d(X),{focusWithinProps:ur}=b$3({onFocusWithinChange:o=>{o||(C(false),k$1(false));}}),j=useRef(void 0),I=useRef(false),{moveProps:sr}=a$d({onMoveStart(){I.current&&X.onMoveStart();},onMove(o){I.current&&X.onMove(o);},onMoveEnd(){I.current&&X.onMoveEnd();}}),te=o=>{let a=b$5(u.current);r.isDragging||(j.current=o,C(false),b(),r.setDragging(true),typeof PointerEvent<"u"?f(a,"pointerup",T,false):(f(a,"mouseup",T,false),f(a,"touchend",T,false)));},T=o=>{let a=b$5(u.current);(o.pointerId??o.changedTouches?.[0].identifier)===j.current&&(C(false),b(),r.setDragging(false),j.current=void 0,I.current=false,typeof PointerEvent<"u"?s(a,"pointerup",T,false):(s(a,"mouseup",T,false),s(a,"touchend",T,false)));},ae=(o,a,$,G)=>{let W=o.getBoundingClientRect(),{width:ne,height:ie}=W,M=($-W.x)/ne,E=(G-W.y)/ie;d==="rtl"&&(M=1-M);let H=b$5(u.current);M>=0&&M<=1&&E>=0&&E<=1&&!r.isDragging&&j.current===void 0&&(I.current=true,C(false),j.current=a,r.setColorFromPoint(M,E),b(),r.setDragging(true),typeof PointerEvent<"u"?f(H,"pointerup",O,false):(f(H,"mouseup",O,false),f(H,"touchend",O,false)));},O=o=>{let a=o.pointerId??o.changedTouches?.[0].identifier;if(I.current&&a===j.current){I.current=false,C(false),j.current=void 0,r.setDragging(false),b();let $=b$5(u.current);typeof PointerEvent<"u"?s($,"pointerup",O,false):(s($,"mouseup",O,false),s($,"touchend",O,false));}},cr=l?{}:c({...typeof PointerEvent<"u"?{onPointerDown:o=>{o.pointerType==="mouse"&&(o.button!==0||o.altKey||o.ctrlKey||o.metaKey)||ae(o.currentTarget,o.pointerId,o.clientX,o.clientY);}}:{onMouseDown:o=>{o.button!==0||o.altKey||o.ctrlKey||o.metaKey||ae(o.currentTarget,void 0,o.clientX,o.clientY);},onTouchStart:o=>{ae(o.currentTarget,o.changedTouches[0].identifier,o.changedTouches[0].clientX,o.changedTouches[0].clientY);}}},sr),dr=l?{}:c({...typeof PointerEvent<"u"?{onPointerDown:o=>{o.pointerType==="mouse"&&(o.button!==0||o.altKey||o.ctrlKey||o.metaKey)||te(o.pointerId);}}:{onMouseDown:o=>{o.button!==0||o.altKey||o.ctrlKey||o.metaKey||te(void 0);},onTouchStart:o=>{te(o.changedTouches[0].identifier);}}},ur,ir,pr),{focusProps:mr}=a$e({onFocus:()=>{x("x");}}),{focusProps:yr}=a$e({onFocus:()=>{x("y");}}),fe=o=>{let{target:a}=o;k$1(true),a===t.current?r.setXValue(parseFloat(a.value)):a===n.current&&r.setYValue(parseFloat(a.value));},B=g()||k(),A=r.getDisplayColor(),ze=useCallback(o=>`${V||S?y.format("colorNameAndValue",{name:A.getChannelName(o,c$1),value:A.formatChannelValue(o,c$1)}):[y.format("colorNameAndValue",{name:A.getChannelName(o,c$1),value:A.formatChannelValue(o,c$1)}),y.format("colorNameAndValue",{name:A.getChannelName(o===p?_:p,c$1),value:A.formatChannelValue(o===p?_:p,c$1)}),y.format("colorNameAndValue",{name:A.getChannelName(w,c$1),value:A.formatChannelValue(w,c$1)})].join(", ")}, ${A.getColorName(c$1)}`,[c$1,A,y,V,S,_,p,w]),R=y.format("colorPicker"),br=a$f({...e,"aria-label":m?y.format("colorInputLabel",{label:m,channelLabel:R}):R}),_r=a$f({...e,"aria-label":m?y.format("colorInputLabel",{label:m,channelLabel:R}):R}),fr=a$f({...e,"aria-label":m?`${m}, ${R}`:void 0},B?R:void 0),he=y.format("twoDimensionalSlider"),{visuallyHiddenProps:Ce}=a$g({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}}),{colorAreaStyleProps:zr,thumbStyleProps:hr}=Ge({direction:d,state:r,xChannel:_,yChannel:p,zChannel:w});return {colorAreaProps:{...fr,...cr,...zr,role:"group"},thumbProps:{...dr,...hr,role:"presentation"},xInputProps:{...br,...Ce,...mr,type:"range",min:r.value.getChannelRange(_).minValue,max:r.value.getChannelRange(_).maxValue,step:g$1,"aria-roledescription":he,"aria-valuetext":ze(_),"aria-orientation":"horizontal","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:l,value:r.value.getChannelValue(_),name:v,form:h,tabIndex:B||!i||i==="x"?void 0:-1,"aria-hidden":B||!i||i==="x"||S?void 0:"true",onChange:fe},yInputProps:{..._r,...Ce,...yr,type:"range",min:r.value.getChannelRange(p).minValue,max:r.value.getChannelRange(p).maxValue,step:F,"aria-roledescription":he,"aria-valuetext":ze(p),"aria-orientation":"vertical","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:l,value:r.value.getChannelValue(p),name:z,form:h,tabIndex:B||i==="y"?void 0:-1,"aria-hidden":B||i==="y"||S?void 0:"true",onChange:fe}}}function Ze(e,r){let{trackRef:l,inputRef:t,orientation:n,channel:u,"aria-label":m,name:v,form:z}=e,{locale:h,direction:y}=b$1();!e.label&&!m&&!e["aria-labelledby"]&&(m=r.value.getChannelName(u,h));let{groupProps:f,trackProps:s,labelProps:d,outputProps:c$1}=a$h({...e,"aria-label":m},r,l),{inputProps:i,thumbProps:x}=b$4({index:0,orientation:n,isDisabled:e.isDisabled,name:v,form:z,trackRef:l,inputRef:t},r),b=r.getDisplayColor(),S=()=>{let k;switch(n==="vertical"?k="top":y==="ltr"?k="right":k="left",u){case "hue":{let _=[0,60,120,180,240,300,360].map(p=>b.withChannelValue("hue",p).toString("css")).join(", ");return `linear-gradient(to ${k}, ${_})`}case "lightness":{let _=r.getThumbMinValue(0),p=r.getThumbMaxValue(0),w=b.withChannelValue(u,_).toString("css"),g=b.withChannelValue(u,(p-_)/2).toString("css"),F=b.withChannelValue(u,p).toString("css");return `linear-gradient(to ${k}, ${w}, ${g}, ${F})`}case "saturation":case "brightness":case "red":case "green":case "blue":case "alpha":{let _=b.withChannelValue(u,r.getThumbMinValue(0)).toString("css"),p=b.withChannelValue(u,r.getThumbMaxValue(0)).toString("css");return `linear-gradient(to ${k}, ${_}, ${p})`}default:throw new Error("Unknown color channel: "+u)}},C={forcedColorAdjust:"none"};u==="hue"?i["aria-valuetext"]+=`, ${b.getHueName(h)}`:u!=="alpha"&&(i["aria-valuetext"]+=`, ${b.getColorName(h)}`);let{visuallyHiddenProps:V}=a$g({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}});return {trackProps:{...c(f,s),style:{...s.style,...C,background:S()}},inputProps:{...i,style:{...i.style,...V.style}},thumbProps:{...x,style:{...x.style,...C}},labelProps:d,outputProps:c$1}}function Qe(e,r,l){let{isDisabled:t,isReadOnly:n,isRequired:u,isWheelDisabled:m,validationBehavior:v="aria"}=e,{colorValue:z,inputValue:h,increment:y,decrement:f,incrementToMax:s,decrementToMin:d,commit:c$1}=r,i=c$2(),{spinButtonProps:x}=a$i({isDisabled:t,isReadOnly:n,isRequired:u,maxValue:16777215,minValue:0,onIncrement:y,onIncrementToMax:s,onDecrement:f,onDecrementToMin:d,value:z?z.toHexInt():void 0,textValue:z?z.toString("hex"):void 0}),[b,S]=useState(false),{focusWithinProps:C}=b$3({isDisabled:t,onFocusWithinChange:S}),V=useCallback(g=>{Math.abs(g.deltaY)<=Math.abs(g.deltaX)||(g.deltaY>0?y():g.deltaY<0&&f());},[f,y]);a$j({onScroll:V,isDisabled:m||t||n||!b},l);let _=g=>{r.validate(g)&&r.setInputValue(g);},{inputProps:p,...w}=a$k({...e,id:i,value:h,defaultValue:"!",validate:void 0,[c$3]:r,type:"text",autoComplete:"off",onChange:_},r,l);return a$b(l,r.defaultColorValue,r.setColorValue),p=c(p,x,C,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:c$1}),v==="native"&&(p["aria-required"]=void 0),{inputProps:p,...w}}function le(e){let{color:r,colorName:l}=e,t=r||"#fff0",n=useMemo(()=>typeof t=="string"?a$1(t):t,[t]),{locale:u}=b$1(),m=a$8(e,{labelable:true}),v=b$2(oe,"@react-aria/color"),z=c$2(e.id);return l||(l=n.getChannelValue("alpha")===0?v.format("transparent"):n.getColorName(u)),{colorSwatchProps:{...m,role:"img","aria-roledescription":v.format("colorSwatch"),"aria-label":[l,e["aria-label"]||""].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]?`${z} ${e["aria-labelledby"]}`:void 0,id:z,style:{backgroundColor:n.toString("css"),forcedColorAdjust:"none"}},color:n||null}}var rl="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",ol="_1dbkl5e",ll=a({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6ly _1yep5z6lq _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6lp _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup82 _1yep5z6111"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),tl="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",al=a({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),nl="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",il="_1dbkl5f z9nup86",pl="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",er="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",ul="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",sl=a({defaultClassName:"_1dbkl5h _1dbkl5g _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),cl="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",dl=a({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z6134"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z617q"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocused:false},"_1yep5z61pb"]]}),ml=a({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6lp _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6ld",variantClassNames:{isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z617w _1yep5z617u _1yep5z617x _1yep5z6140"},isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),yl="_1dbkl5g",bl="_1dbkl5u",_l="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",fl="_1dbkl5x",zl="_1dbkl5w",hl="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",Cl=a({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lu _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lz _1yep5z6m2",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z617u _1yep5z6140 _1yep5z617w"}},defaultVariants:{},compoundVariants:[]}),vl="z9nup83 z9nup85 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var Al=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],$l=a$1("#000000").toFormat("hsla"),me="hsla",ye="hexa";function Dr(e){let r=document.createElement("canvas").getContext("2d");return a$l(r,"Failed to get canvas context"),r.fillStyle=e,r.fillStyle}function Ll(e){if(typeof e=="string")try{return a$1(e).toFormat(me)}catch{return a$1(Dr(e)).toFormat(me)}else if(e)return e.toFormat(me);return null}function Dl(e,r){return e?.getChannelValue("alpha")?r?.toString(ye)===e.toString(ye):!r?.getChannelValue("alpha")}function Vl(e,r,l){return r?.label?r.label:e?.getChannelValue("alpha")===0?l:e?.toString("rgba")}var be="NONE";function Il(e,r){let l=r?.map(n=>({id:a$1(n.color).toString(ye),label:n.label}))||[],t={id:be,label:e};return [...l,t]}var Nl=(e,{optionProps:r,isFocusVisible:l,isSelected:t},n)=>(a$l(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...r,ref:n,className:er,children:jsx(_e,{color:e.value.id,isFocusVisible:l,isSelected:t,"aria-label":e.value.label,isInteractive:true})})),or=(e,r=4)=>{let l=e.getChannelValue("alpha")===0,t=`repeating-conic-gradient(transparent 0% 25%, ${themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:l?t:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${t}`,backgroundSize:`${r}px ${r}px`}};var lr=a({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6lk _1yep5z6ic _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf z9nup8a",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617z"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isFocusVisible:true},"_1344e9q6"],[{isSelected:true,isFocusVisible:true},"_1344e9q7 _1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2"],[{isSelected:true,isDisabled:true},"_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2 _1yep5z61qd"],[{isHovered:true,isSelected:false},"_1yep5z61u2 _1yep5z61tz _1yep5z61tx _1yep5z61q7"]]}),tr="_1yep5z6f6",ar="_1344e9q9 _1yep5z6fl";var _e=Ir.forwardRef(({color:e$1,isFocusVisible:r,isSelected:l,isInteractive:t,isDisabled:n,style:u,className:m,id:v,tooltip:z,isIndeterminate:h,indeterminateIcon:y=HelpIcon,noneLabel:f,"data-block-id":s,"data-block-class":d,...c$1},i)=>{let x=e$1&&e$1!==be&&(typeof e$1=="string"?a$1(e$1):e$1),{formatMessage:b$1}=b(),S=!x,{colorSwatchProps:C}=le({color:S?"#000000":e$1}),{hoverProps:V,isHovered:k}=a$2({isDisabled:n||!t}),_=a$3({"data-focus-visible":r,"data-selected":l,"data-hovered":k,"data-block-id":s,"data-block-class":d,"data-disabled":n,"data-interactive":t,"data-indeterminate":h}),p=S?f??b$1(nr.none):C["aria-label"],w=c$1["aria-label"]??p,{tooltipProps:g}=a$4({tooltip:z,label:w}),F=jsx("div",{...c(V,_,S?{}:C),style:u,"aria-label":S?f??b$1(nr.none):C["aria-label"],role:"img",className:a$6(lr({removeBlendMode:S,isFocusVisible:r,isDisabled:!!n,isSelected:!!l,isHovered:k}),"BaselineUI-ColorSwatch",m),ref:i,id:v,...c$1,children:jsxs(a$5,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:n?"medium":void 0,style:x&&!h?or(x,4):void 0,children:[S&&!h?jsx("div",{className:ar}):null,h&&y?jsx(y,{role:"presentation",size:16,className:tr,"aria-hidden":"true"}):null]})});return g&&!n?jsx(a$7,{...g,children:jsx(e,{children:F})}):F});_e.displayName="ColorSwatch";var nr=c$1({none:{id:"bui.colorSwatch.none",defaultMessage:"None"}});export{me as A,ye as B,Ll as C,Dl as D,Vl as E,be as F,Il as G,Nl as H,_e as I,Je as a,Qe as b,Ze as c,rl as d,ol as e,ll as f,tl as g,al as h,nl as i,il as j,pl as k,ul as l,sl as m,cl as n,dl as o,ml as p,yl as q,bl as r,_l as s,fl as t,zl as u,hl as v,Cl as w,vl as x,Al as y,$l as z};
@@ -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};