@baseline-ui/core 3.9.1 → 3.10.1

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 (320) hide show
  1. package/dist/Accordion.mjs +1 -1
  2. package/dist/ActionButton.mjs +1 -1
  3. package/dist/ActionGroup.mjs +1 -1
  4. package/dist/ActionIconButton.mjs +1 -1
  5. package/dist/Actionable.mjs +1 -1
  6. package/dist/AlertDialog.mjs +1 -1
  7. package/dist/AudioPlayer.mjs +1 -1
  8. package/dist/Breadcrumbs.mjs +1 -1
  9. package/dist/ButtonSelect.mjs +1 -1
  10. package/dist/Calendar.mjs +1 -1
  11. package/dist/Checkbox.mjs +1 -1
  12. package/dist/ColorInput.mjs +1 -1
  13. package/dist/ColorSwatch.mjs +1 -1
  14. package/dist/ColorSwatchPicker.mjs +1 -1
  15. package/dist/ComboBox.mjs +1 -1
  16. package/dist/DateField.mjs +1 -1
  17. package/dist/Dialog.mjs +1 -1
  18. package/dist/Disclosure.mjs +1 -1
  19. package/dist/DomNodeRenderer.mjs +1 -1
  20. package/dist/Drawer.mjs +1 -1
  21. package/dist/Editor.mjs +1 -1
  22. package/dist/FileInput.mjs +1 -1
  23. package/dist/FileList.css +1 -1
  24. package/dist/FileList.mjs +1 -1
  25. package/dist/FileUploader.mjs +1 -1
  26. package/dist/FrameProvider.mjs +1 -1
  27. package/dist/FreehandCanvas.mjs +1 -1
  28. package/dist/GridList.mjs +1 -1
  29. package/dist/Group.mjs +1 -1
  30. package/dist/Icon.mjs +1 -1
  31. package/dist/Image.mjs +1 -1
  32. package/dist/ImageDropZone.mjs +1 -1
  33. package/dist/ImageGallery.mjs +1 -1
  34. package/dist/InlineAlert.mjs +1 -1
  35. package/dist/InlineToolbar.mjs +2 -2
  36. package/dist/Kbd.mjs +1 -1
  37. package/dist/Link.mjs +1 -1
  38. package/dist/ListBox.mjs +1 -1
  39. package/dist/Markdown.css +1 -1
  40. package/dist/Markdown.mjs +1 -1
  41. package/dist/Menu.mjs +1 -1
  42. package/dist/MessageFormat.mjs +1 -1
  43. package/dist/Modal.mjs +1 -1
  44. package/dist/NumberInput.mjs +1 -1
  45. package/dist/Pagination.mjs +1 -1
  46. package/dist/Panel.mjs +1 -1
  47. package/dist/PointPicker.mjs +1 -1
  48. package/dist/Popover.mjs +1 -1
  49. package/dist/Portal.mjs +1 -1
  50. package/dist/Preview.mjs +1 -1
  51. package/dist/ProgressBar.mjs +1 -1
  52. package/dist/ProgressSpinner.mjs +1 -1
  53. package/dist/RadioGroup.css +1 -1
  54. package/dist/RadioGroup.mjs +1 -1
  55. package/dist/Reaction.mjs +1 -1
  56. package/dist/ScrollControlButton.css +1 -1
  57. package/dist/ScrollControlButton.mjs +1 -1
  58. package/dist/SearchInput.mjs +1 -1
  59. package/dist/Select.mjs +1 -1
  60. package/dist/Slider.mjs +1 -1
  61. package/dist/Stepper.mjs +1 -1
  62. package/dist/Switch.mjs +1 -1
  63. package/dist/Table.mjs +1 -1
  64. package/dist/Tabs.mjs +1 -1
  65. package/dist/Tag.mjs +1 -1
  66. package/dist/TagGroup.mjs +1 -1
  67. package/dist/TaggedPagination.mjs +1 -1
  68. package/dist/Text.mjs +1 -1
  69. package/dist/TextInput.mjs +1 -1
  70. package/dist/ThemeProvider.mjs +1 -1
  71. package/dist/TimeField.mjs +1 -1
  72. package/dist/Toast.mjs +1 -1
  73. package/dist/ToggleButton.mjs +1 -1
  74. package/dist/ToggleIconButton.mjs +1 -1
  75. package/dist/Toolbar.mjs +1 -1
  76. package/dist/Tooltip.mjs +1 -1
  77. package/dist/TreeView.mjs +1 -1
  78. package/dist/UNSAFE_ListBox.mjs +1 -1
  79. package/dist/Virtualizer.mjs +1 -1
  80. package/dist/{chunk-E3TD3EJQ.mjs → chunk-23OLSA2X.mjs} +2 -2
  81. package/dist/{chunk-X6K4M542.mjs → chunk-24WOG72O.mjs} +2 -2
  82. package/dist/{chunk-GLIN7JAI.mjs → chunk-2CE6LGIB.mjs} +1 -1
  83. package/dist/{chunk-YK3KAPIK.mjs → chunk-2CFMM7MZ.mjs} +2 -2
  84. package/dist/{chunk-WSRXTVYB.mjs → chunk-2KRVQJDA.mjs} +2 -2
  85. package/dist/{chunk-SCJ3RG7B.mjs → chunk-2MNK24YJ.mjs} +1 -1
  86. package/dist/{chunk-3PBFSDMT.mjs → chunk-2PTLJDIT.mjs} +1 -1
  87. package/dist/{chunk-YSQ3YHJN.mjs → chunk-2TMQUHHU.mjs} +1 -1
  88. package/dist/chunk-3A7ZISTE.mjs +10 -0
  89. package/dist/{chunk-DOFT4BQH.mjs → chunk-3EFE2WAJ.mjs} +1 -1
  90. package/dist/{chunk-CKUHFL5G.mjs → chunk-3HJAQJWA.mjs} +1 -1
  91. package/dist/chunk-3IHIKAT4.mjs +10 -0
  92. package/dist/chunk-3JHXI33A.mjs +10 -0
  93. package/dist/chunk-3K6XNSYE.mjs +10 -0
  94. package/dist/chunk-3LS73XVI.mjs +10 -0
  95. package/dist/chunk-3P25UGHE.mjs +10 -0
  96. package/dist/{chunk-BFW26T6V.mjs → chunk-43U6RZ5C.mjs} +2 -2
  97. package/dist/{chunk-54MWEZUP.mjs → chunk-46UWKP7W.mjs} +1 -1
  98. package/dist/chunk-4CMATAQ2.mjs +10 -0
  99. package/dist/{chunk-F3EOLTFM.mjs → chunk-4FN6UAXD.mjs} +1 -1
  100. package/dist/{chunk-NWYRVUTX.mjs → chunk-4Y5IKZSW.mjs} +1 -1
  101. package/dist/{chunk-26YOMQXV.mjs → chunk-5B6263RO.mjs} +13 -13
  102. package/dist/{chunk-WAPBLICF.mjs → chunk-5NVCSLXT.mjs} +1 -1
  103. package/dist/{chunk-VWSTMBQK.mjs → chunk-64Y62MDR.mjs} +2 -2
  104. package/dist/{chunk-IVM5IBQS.mjs → chunk-6DVKR25T.mjs} +1 -1
  105. package/dist/{chunk-ADEALCJB.mjs → chunk-6IK2TDLH.mjs} +2 -2
  106. package/dist/{chunk-ES3IQZSH.mjs → chunk-6V7S5IG5.mjs} +2 -2
  107. package/dist/chunk-6VKIT2PF.mjs +10 -0
  108. package/dist/{chunk-OGIKNHLU.mjs → chunk-7EOAYPSZ.mjs} +2 -2
  109. package/dist/{chunk-LZEZW5RE.mjs → chunk-7LQTLZJ5.mjs} +2 -2
  110. package/dist/{chunk-IOHULFEP.mjs → chunk-A4PXU7GU.mjs} +2 -2
  111. package/dist/chunk-A52PIXOO.mjs +10 -0
  112. package/dist/chunk-AANAI2XF.mjs +10 -0
  113. package/dist/{chunk-UQJB6AGO.mjs → chunk-AB7LDKP2.mjs} +1 -1
  114. package/dist/{chunk-BPLTQDXX.mjs → chunk-ACHYZYVA.mjs} +2 -2
  115. package/dist/{chunk-JB3UIJ3I.mjs → chunk-AFJ3QV2Q.mjs} +2 -2
  116. package/dist/{chunk-NQVTVL24.mjs → chunk-AIG23SN5.mjs} +2 -2
  117. package/dist/chunk-ASIKCQC6.mjs +10 -0
  118. package/dist/{chunk-WGZUNJGH.mjs → chunk-AU3GNNEG.mjs} +2 -2
  119. package/dist/{chunk-45EAFDOZ.mjs → chunk-AYBI4SQV.mjs} +1 -1
  120. package/dist/chunk-BJHDL2HH.mjs +10 -0
  121. package/dist/chunk-BNWDQ4KX.mjs +10 -0
  122. package/dist/{chunk-QSFRMY47.mjs → chunk-BPXZ6J5G.mjs} +1 -1
  123. package/dist/{chunk-2UDXAKWA.mjs → chunk-C6TD53KY.mjs} +2 -2
  124. package/dist/chunk-CBQO7JUC.mjs +11 -0
  125. package/dist/{chunk-LN2NT32E.mjs → chunk-CE2W5D44.mjs} +1 -1
  126. package/dist/{chunk-UR42GQO4.mjs → chunk-CEUVH4UZ.mjs} +1 -1
  127. package/dist/chunk-CGBI7OB5.mjs +10 -0
  128. package/dist/chunk-CMM5JW7L.mjs +10 -0
  129. package/dist/chunk-CPX5CB4L.mjs +10 -0
  130. package/dist/{chunk-HMAVZPRE.mjs → chunk-CRNJAQPI.mjs} +1 -1
  131. package/dist/chunk-DIMNDTFC.mjs +10 -0
  132. package/dist/{chunk-KADD66HZ.mjs → chunk-DNZMQ7EA.mjs} +2 -2
  133. package/dist/{chunk-RFCTQQMD.mjs → chunk-DP76DMVO.mjs} +1 -1
  134. package/dist/{chunk-DZFNVFYT.mjs → chunk-EGSNIMDP.mjs} +1 -1
  135. package/dist/chunk-EHIGJYGW.mjs +10 -0
  136. package/dist/{chunk-U6M2GCPD.mjs → chunk-EJGGWOY5.mjs} +1 -1
  137. package/dist/chunk-EKRT3PPK.mjs +10 -0
  138. package/dist/{chunk-FDDB7QNQ.mjs → chunk-ELW6SXDM.mjs} +1 -1
  139. package/dist/{chunk-YQFS4UHL.mjs → chunk-EPWWEFTP.mjs} +1 -1
  140. package/dist/{chunk-VDUFLHKK.mjs → chunk-EYKQGC4O.mjs} +2 -2
  141. package/dist/{chunk-PLRUMLNB.mjs → chunk-FFPJBDWH.mjs} +1 -1
  142. package/dist/{chunk-KFJE5ZBK.mjs → chunk-G2IYZES5.mjs} +1 -1
  143. package/dist/chunk-G2RVM2KB.mjs +10 -0
  144. package/dist/{chunk-AALXW5AP.mjs → chunk-GAKWWL3Y.mjs} +1 -1
  145. package/dist/chunk-GHKMHXQ3.mjs +10 -0
  146. package/dist/{chunk-VYBJ36ZR.mjs → chunk-GJVQMTGA.mjs} +1 -1
  147. package/dist/chunk-GKPZBTRE.mjs +10 -0
  148. package/dist/{chunk-TN7FPPGM.mjs → chunk-GZTF5YE3.mjs} +1 -1
  149. package/dist/{chunk-RXADOJLS.mjs → chunk-HI56YXPJ.mjs} +2 -2
  150. package/dist/{chunk-R7Y36JCO.mjs → chunk-HOG4QRLG.mjs} +1 -1
  151. package/dist/chunk-HOV7MM7M.mjs +10 -0
  152. package/dist/{chunk-XKNL5LSL.mjs → chunk-HOZPCWCF.mjs} +2 -2
  153. package/dist/{chunk-IBBDZQPO.mjs → chunk-HVSDXCZP.mjs} +2 -2
  154. package/dist/{chunk-64ZD4EKW.mjs → chunk-I4F5NJUI.mjs} +1 -1
  155. package/dist/{chunk-DLJHL4V7.mjs → chunk-I5YPTKMM.mjs} +2 -2
  156. package/dist/chunk-IHCKLMWD.mjs +10 -0
  157. package/dist/chunk-IIYP5UE7.mjs +10 -0
  158. package/dist/{chunk-A2B2LTRA.mjs → chunk-IQ3Z6ZO2.mjs} +1 -1
  159. package/dist/{chunk-3COKCTB2.mjs → chunk-J4T6TE7V.mjs} +2 -2
  160. package/dist/{chunk-OS6PVCFX.mjs → chunk-JANI446W.mjs} +1 -1
  161. package/dist/{chunk-KSWXLIZH.mjs → chunk-JGKBJHX2.mjs} +1 -1
  162. package/dist/chunk-JQSZFPWJ.mjs +10 -0
  163. package/dist/{chunk-IDIZSV2Y.mjs → chunk-JYWJE6L5.mjs} +2 -2
  164. package/dist/{chunk-ARMWQYH2.mjs → chunk-KDNT54DP.mjs} +2 -2
  165. package/dist/{chunk-KMSNBINF.mjs → chunk-L42WN3AP.mjs} +2 -2
  166. package/dist/{chunk-SY24O432.mjs → chunk-L4MQCPRT.mjs} +3 -3
  167. package/dist/chunk-L7GYT3MC.mjs +10 -0
  168. package/dist/{chunk-6CSP66NI.mjs → chunk-LGE4377M.mjs} +1 -1
  169. package/dist/chunk-LJAVEZ2H.mjs +10 -0
  170. package/dist/{chunk-JDDA4R2D.mjs → chunk-LJM26E7W.mjs} +1 -1
  171. package/dist/chunk-LNEOOIXS.mjs +10 -0
  172. package/dist/{chunk-VSGVHATE.mjs → chunk-LPHX7UMQ.mjs} +1 -1
  173. package/dist/{chunk-L6ISOTLH.mjs → chunk-LZOXWIAS.mjs} +2 -2
  174. package/dist/{chunk-W3YUV7IF.mjs → chunk-M3NJURGR.mjs} +1 -1
  175. package/dist/chunk-MENRPRHW.mjs +10 -0
  176. package/dist/{chunk-IIBBR266.mjs → chunk-MMLAKHLR.mjs} +3 -3
  177. package/dist/{chunk-Z7JRM3NW.mjs → chunk-MQCTOCK2.mjs} +2 -2
  178. package/dist/{chunk-X34RHNLT.mjs → chunk-NIAMDJYU.mjs} +2 -2
  179. package/dist/{chunk-WD2TPSZV.mjs → chunk-NIGOM3FD.mjs} +1 -1
  180. package/dist/{chunk-6NUHEJGL.mjs → chunk-NOTKA3RL.mjs} +1 -1
  181. package/dist/chunk-NYH6JQMA.mjs +10 -0
  182. package/dist/{chunk-SZNDCHMJ.mjs → chunk-OFEX3RHY.mjs} +1 -1
  183. package/dist/chunk-OWXMAVXI.mjs +10 -0
  184. package/dist/chunk-OY57K37D.mjs +10 -0
  185. package/dist/{chunk-OO3ZVB2T.mjs → chunk-OYE6VSTU.mjs} +2 -2
  186. package/dist/{chunk-GIUNLLWW.mjs → chunk-P3RRGPNM.mjs} +2 -2
  187. package/dist/{chunk-GPT4DR4P.mjs → chunk-PGDGNOYE.mjs} +1 -1
  188. package/dist/{chunk-DPFX25HC.mjs → chunk-PITIJLE3.mjs} +1 -1
  189. package/dist/{chunk-RSKKEGJZ.mjs → chunk-PPGEEMZ2.mjs} +2 -2
  190. package/dist/{chunk-UKBBSYRC.mjs → chunk-PTL6NSYA.mjs} +2 -2
  191. package/dist/chunk-PV4E7XDP.mjs +10 -0
  192. package/dist/chunk-PZBJGZ57.mjs +10 -0
  193. package/dist/chunk-Q5SN5AQT.mjs +10 -0
  194. package/dist/{chunk-EISLHUT5.mjs → chunk-Q7BJGV4I.mjs} +1 -1
  195. package/dist/{chunk-R5JHN4X6.mjs → chunk-QDMG3P5Z.mjs} +1 -1
  196. package/dist/{chunk-RE7ZGPOY.mjs → chunk-QMFL5BMI.mjs} +1 -1
  197. package/dist/{chunk-JTGVIAOK.mjs → chunk-QMP72J5L.mjs} +1 -1
  198. package/dist/chunk-QMSBDXK6.mjs +10 -0
  199. package/dist/{chunk-JIGOXUY4.mjs → chunk-QPWBJW2X.mjs} +1 -1
  200. package/dist/{chunk-67QIBKUN.mjs → chunk-QRLUWOGW.mjs} +1 -1
  201. package/dist/{chunk-FTV6OWMI.mjs → chunk-QSNYILCF.mjs} +2 -2
  202. package/dist/chunk-QVXIFV7W.mjs +10 -0
  203. package/dist/{chunk-M7BCIQ2J.mjs → chunk-QYU7CWJD.mjs} +1 -1
  204. package/dist/{chunk-JC22ELJM.mjs → chunk-RGWXVYDG.mjs} +1 -1
  205. package/dist/{chunk-N4NDPTX6.mjs → chunk-RKPWFZB4.mjs} +1 -1
  206. package/dist/chunk-RM64ROGL.mjs +10 -0
  207. package/dist/{chunk-CIOPWCOS.mjs → chunk-RPV3UUIN.mjs} +2 -2
  208. package/dist/chunk-RS7TRDRM.mjs +10 -0
  209. package/dist/{chunk-CHBF3XQ6.mjs → chunk-S2MA4MRM.mjs} +1 -1
  210. package/dist/chunk-S3LWWMMQ.mjs +10 -0
  211. package/dist/{chunk-WID7IWNC.mjs → chunk-SL5Q4NLV.mjs} +1 -1
  212. package/dist/{chunk-A63HMTSM.mjs → chunk-SMPF53W4.mjs} +1 -1
  213. package/dist/{chunk-5MR5L5JZ.mjs → chunk-SQPWV3OX.mjs} +2 -2
  214. package/dist/chunk-ST3TDAOP.mjs +10 -0
  215. package/dist/{chunk-ENUU2IVX.mjs → chunk-SUJD4QFW.mjs} +1 -1
  216. package/dist/{chunk-OKEXEU3C.mjs → chunk-T7K4WI76.mjs} +1 -1
  217. package/dist/{chunk-DFMPVQM3.mjs → chunk-TJDL7HT5.mjs} +2 -2
  218. package/dist/{chunk-SI7LO2L4.mjs → chunk-TK33MBDB.mjs} +1 -1
  219. package/dist/{chunk-BK3RBPST.mjs → chunk-TLUB6FCT.mjs} +1 -1
  220. package/dist/{chunk-UBC32WQB.mjs → chunk-TMGB4HZ7.mjs} +1 -1
  221. package/dist/{chunk-ALMW6S4I.mjs → chunk-TQMBJFQC.mjs} +2 -2
  222. package/dist/{chunk-E6DZSC2G.mjs → chunk-TUSG5ZRW.mjs} +2 -2
  223. package/dist/{chunk-D2NVLRIU.mjs → chunk-TZSRU3GG.mjs} +1 -1
  224. package/dist/{chunk-WXILHRBE.mjs → chunk-U5XI3CZD.mjs} +1 -1
  225. package/dist/chunk-U6W7D7TT.mjs +10 -0
  226. package/dist/chunk-UC6WAEPH.mjs +10 -0
  227. package/dist/{chunk-TGLVJRZE.mjs → chunk-UXAMVDQ4.mjs} +1 -1
  228. package/dist/chunk-V2C4UDOC.mjs +10 -0
  229. package/dist/{chunk-5LGYS5CZ.mjs → chunk-V3DTS6FF.mjs} +1 -1
  230. package/dist/{chunk-AC44TKUI.mjs → chunk-V6ZIMZ53.mjs} +1 -1
  231. package/dist/{chunk-B5NICAFU.mjs → chunk-VGBHKFW7.mjs} +1 -1
  232. package/dist/{chunk-BSFG32AL.mjs → chunk-VOWLLVPD.mjs} +2 -2
  233. package/dist/chunk-W4DOEGYH.mjs +10 -0
  234. package/dist/chunk-WJBURR7M.mjs +10 -0
  235. package/dist/{chunk-MUQR2YER.mjs → chunk-WN4QRMX6.mjs} +2 -2
  236. package/dist/chunk-WSDEMATI.mjs +10 -0
  237. package/dist/{chunk-UPOQXYUI.mjs → chunk-XDORZSJQ.mjs} +1 -1
  238. package/dist/{chunk-6HTOSJOJ.mjs → chunk-Y5LEKSMM.mjs} +1 -1
  239. package/dist/{chunk-3JOOFCEF.mjs → chunk-YI5VNFT4.mjs} +2 -2
  240. package/dist/{chunk-PQIDCA7P.mjs → chunk-YYOOJMQZ.mjs} +1 -1
  241. package/dist/chunk-ZNZBHN2V.mjs +10 -0
  242. package/dist/chunk-ZOCNDYUQ.mjs +10 -0
  243. package/dist/{chunk-E2VXJPSE.mjs → chunk-ZRPR4V5U.mjs} +1 -1
  244. package/dist/chunk-ZY3ZKJVD.mjs +10 -0
  245. package/dist/{chunk-4PZGQTXE.mjs → chunk-ZZGRLSEK.mjs} +2 -2
  246. package/dist/hooks/useCommitEffect.mjs +1 -0
  247. package/dist/hooks/useDevice.mjs +1 -1
  248. package/dist/hooks/useI18n.mjs +1 -1
  249. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  250. package/dist/hooks/useLiveInteractionModality.mjs +1 -1
  251. package/dist/hooks/useLocalStorage.mjs +1 -1
  252. package/dist/hooks/useMedia.mjs +1 -1
  253. package/dist/hooks/useMutationObserver.mjs +1 -1
  254. package/dist/hooks/usePortalContainer.mjs +1 -1
  255. package/dist/hooks/usePreventFocus.mjs +1 -1
  256. package/dist/hooks/useResizeObserver.mjs +1 -1
  257. package/dist/hooks/useTextSelection.mjs +1 -1
  258. package/dist/hooks/useUndoRedo.mjs +1 -1
  259. package/dist/index.css +1 -1
  260. package/dist/index.d.ts +114 -38
  261. package/dist/index.js +22 -22
  262. package/dist/index.mjs +1 -1
  263. package/dist/react-aria.mjs +1 -1
  264. package/dist/utils/dom.mjs +1 -1
  265. package/dist/utils/isInShadowDOM.mjs +1 -1
  266. package/dist/utils/keyboards.mjs +1 -1
  267. package/dist/utils/objects.mjs +1 -1
  268. package/package.json +4 -4
  269. package/sbom.json +6 -6
  270. package/dist/chunk-2SKD7TKS.mjs +0 -10
  271. package/dist/chunk-35AM4QEA.mjs +0 -10
  272. package/dist/chunk-3V4W6OGG.mjs +0 -10
  273. package/dist/chunk-4HOAPQDQ.mjs +0 -10
  274. package/dist/chunk-5GZAORDK.mjs +0 -10
  275. package/dist/chunk-6PBBHYCA.mjs +0 -10
  276. package/dist/chunk-B3W7VMJR.mjs +0 -10
  277. package/dist/chunk-C4XJOYAW.mjs +0 -10
  278. package/dist/chunk-CR66GYHT.mjs +0 -10
  279. package/dist/chunk-D6AOHRAV.mjs +0 -10
  280. package/dist/chunk-DHZKZ3AV.mjs +0 -10
  281. package/dist/chunk-DRQHSYY3.mjs +0 -10
  282. package/dist/chunk-DZJTPX2G.mjs +0 -10
  283. package/dist/chunk-F4YBUGLD.mjs +0 -10
  284. package/dist/chunk-G76NJ3IU.mjs +0 -10
  285. package/dist/chunk-H2SJLW7T.mjs +0 -10
  286. package/dist/chunk-HNKEI45D.mjs +0 -10
  287. package/dist/chunk-INHZHYOF.mjs +0 -10
  288. package/dist/chunk-J7BCMF23.mjs +0 -10
  289. package/dist/chunk-JXJZIKEY.mjs +0 -10
  290. package/dist/chunk-K276BGP2.mjs +0 -10
  291. package/dist/chunk-KBLJ34QI.mjs +0 -10
  292. package/dist/chunk-KMZ3YVPE.mjs +0 -10
  293. package/dist/chunk-L5H5GE3H.mjs +0 -10
  294. package/dist/chunk-LHLY432N.mjs +0 -10
  295. package/dist/chunk-LXZOYBTL.mjs +0 -10
  296. package/dist/chunk-MPJXTZ6L.mjs +0 -10
  297. package/dist/chunk-MZIQ27JP.mjs +0 -10
  298. package/dist/chunk-NN6HKMC4.mjs +0 -10
  299. package/dist/chunk-NYNS3UDR.mjs +0 -10
  300. package/dist/chunk-OAOIUNNG.mjs +0 -10
  301. package/dist/chunk-OBEPT4LR.mjs +0 -10
  302. package/dist/chunk-OMCGORTH.mjs +0 -10
  303. package/dist/chunk-PJINRIA6.mjs +0 -10
  304. package/dist/chunk-PSUZMSD3.mjs +0 -10
  305. package/dist/chunk-Q3FYMLAA.mjs +0 -10
  306. package/dist/chunk-QKNNMY2Q.mjs +0 -10
  307. package/dist/chunk-QVFGEXDU.mjs +0 -10
  308. package/dist/chunk-SJRYJGTL.mjs +0 -10
  309. package/dist/chunk-SYA6LAFU.mjs +0 -10
  310. package/dist/chunk-TEQHGF4G.mjs +0 -10
  311. package/dist/chunk-UCRJ3AR5.mjs +0 -10
  312. package/dist/chunk-UI4SJCQU.mjs +0 -10
  313. package/dist/chunk-V6DZG4PM.mjs +0 -11
  314. package/dist/chunk-VKWXATZ3.mjs +0 -10
  315. package/dist/chunk-VNJDCKLQ.mjs +0 -10
  316. package/dist/chunk-VQ45RUYJ.mjs +0 -10
  317. package/dist/chunk-VQHI3ZCW.mjs +0 -10
  318. package/dist/chunk-XC5H4EVW.mjs +0 -10
  319. package/dist/chunk-Z2PHVVX4.mjs +0 -10
  320. package/dist/chunk-Z7UPVYL5.mjs +0 -10
@@ -1,4 +1,4 @@
1
- import {a as a$b}from'./chunk-KT4FTBJ2.mjs';import {a as a$4,b as b$5,g,d,e as e$1,h as h$1}from'./chunk-PLRUMLNB.mjs';import {a as a$f}from'./chunk-AMW7LGCF.mjs';import {b as b$1,c as c$5}from'./chunk-TEQHGF4G.mjs';import {c as c$2,f as f$1,e as e$3,d as d$3}from'./chunk-D6AOHRAV.mjs';import {a as a$h}from'./chunk-WID7IWNC.mjs';import {a as a$n}from'./chunk-6HTOSJOJ.mjs';import {b as b$3}from'./chunk-64ZD4EKW.mjs';import {d as d$4}from'./chunk-VQ45RUYJ.mjs';import {j,c,i,l,p,m,k,f as f$2,e as e$2,d as d$1,q,a as a$j}from'./chunk-NWYRVUTX.mjs';import {c as c$8}from'./chunk-B3W7VMJR.mjs';import {b,c as c$1}from'./chunk-DF2D7NE6.mjs';import {a as a$c,f as f$3}from'./chunk-ZQOR4LCM.mjs';import {a as a$8,b as b$7}from'./chunk-DOFT4BQH.mjs';import {a as a$d}from'./chunk-DIL5HL6K.mjs';import {f as f$4}from'./chunk-CFDIUF4H.mjs';import {b as b$a}from'./chunk-ES3IQZSH.mjs';import {a as a$3}from'./chunk-D2NVLRIU.mjs';import {a}from'./chunk-USMC34OO.mjs';import {a as a$r}from'./chunk-FTV6OWMI.mjs';import {a as a$g}from'./chunk-5IC46G5J.mjs';import {b as b$9}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$q}from'./chunk-UQJB6AGO.mjs';import {e,h,c as c$3,b as b$4,f,a as a$9,d as d$2,k as k$2}from'./chunk-NYNS3UDR.mjs';import {a as a$o}from'./chunk-22VRCVTH.mjs';import {k as k$1,l as l$1,e as e$6}from'./chunk-OS6PVCFX.mjs';import {e as e$5}from'./chunk-A63HMTSM.mjs';import {a as a$m}from'./chunk-UR42GQO4.mjs';import {a as a$i}from'./chunk-66CUIXA6.mjs';import {a as a$1}from'./chunk-FDDB7QNQ.mjs';import {c as c$7}from'./chunk-QVFGEXDU.mjs';import {a as a$7}from'./chunk-3PBFSDMT.mjs';import {a as a$6}from'./chunk-LRFFL765.mjs';import {j as j$1,b as b$6,d as d$6,f as f$5}from'./chunk-NQVTVL24.mjs';import {d as d$5}from'./chunk-IIBBR266.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {a as a$l,o,r,u,s,h as h$3,e as e$7}from'./chunk-SCJ3RG7B.mjs';import {c as c$4}from'./chunk-PJINRIA6.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {c as c$6,a as a$k,e as e$4}from'./chunk-35AM4QEA.mjs';import {m as m$1,h as h$2,j as j$2,i as i$1,b as b$8,a as a$p}from'./chunk-TYOEGCPS.mjs';import {a as a$a}from'./chunk-JQQGRJ5J.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Me,{createContext,forwardRef,useContext,useMemo,useRef,useEffect,useCallback,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightFilledIcon}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/24';/**
1
+ import {a as a$b}from'./chunk-KT4FTBJ2.mjs';import {a as a$4,b as b$5,g,d,e as e$1,h as h$1}from'./chunk-FFPJBDWH.mjs';import {a as a$f}from'./chunk-AMW7LGCF.mjs';import {b as b$1,c as c$4}from'./chunk-DIMNDTFC.mjs';import {c as c$2,f as f$1,e as e$3,d as d$4}from'./chunk-BNWDQ4KX.mjs';import {a as a$h}from'./chunk-SL5Q4NLV.mjs';import {a as a$n}from'./chunk-Y5LEKSMM.mjs';import {b as b$3}from'./chunk-I4F5NJUI.mjs';import {d as d$5}from'./chunk-ST3TDAOP.mjs';import {j,c,i,l,p,m,k,f as f$2,e as e$2,d as d$1,q,a as a$j}from'./chunk-4Y5IKZSW.mjs';import {c as c$7}from'./chunk-EHIGJYGW.mjs';import {b,c as c$1}from'./chunk-DF2D7NE6.mjs';import {a as a$c,f as f$3}from'./chunk-ZQOR4LCM.mjs';import {a as a$8,b as b$7}from'./chunk-3EFE2WAJ.mjs';import {a as a$d}from'./chunk-DIL5HL6K.mjs';import {f as f$4}from'./chunk-CFDIUF4H.mjs';import {b as b$a}from'./chunk-6V7S5IG5.mjs';import {a as a$3}from'./chunk-TZSRU3GG.mjs';import {a}from'./chunk-USMC34OO.mjs';import {a as a$r}from'./chunk-QSNYILCF.mjs';import {a as a$g}from'./chunk-5IC46G5J.mjs';import {b as b$9}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$q}from'./chunk-AB7LDKP2.mjs';import {e,h,c as c$3,b as b$4,f,a as a$9,d as d$2,k as k$2}from'./chunk-EKRT3PPK.mjs';import {a as a$o}from'./chunk-22VRCVTH.mjs';import {k as k$1,l as l$1,e as e$5}from'./chunk-JANI446W.mjs';import {e as e$4}from'./chunk-SMPF53W4.mjs';import {a as a$m}from'./chunk-CEUVH4UZ.mjs';import {a as a$i}from'./chunk-66CUIXA6.mjs';import {a as a$1}from'./chunk-ELW6SXDM.mjs';import {c as c$6}from'./chunk-PV4E7XDP.mjs';import {a as a$7}from'./chunk-2PTLJDIT.mjs';import {a as a$6}from'./chunk-LRFFL765.mjs';import {j as j$1,b as b$6,d as d$7,f as f$5}from'./chunk-AIG23SN5.mjs';import {d as d$6}from'./chunk-MMLAKHLR.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {a as a$l,o,r,u,s,h as h$3,e as e$6}from'./chunk-2MNK24YJ.mjs';import {g as g$1,c as c$5,a as a$k,d as d$3}from'./chunk-V2C4UDOC.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {m as m$1,h as h$2,j as j$2,i as i$1,b as b$8,a as a$p}from'./chunk-TYOEGCPS.mjs';import {a as a$a}from'./chunk-JQQGRJ5J.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Me,{createContext,forwardRef,useContext,useMemo,useRef,useEffect,useCallback,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightFilledIcon}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/24';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,4 +7,4 @@ import {a as a$b}from'./chunk-KT4FTBJ2.mjs';import {a as a$4,b as b$5,g,d,e as e
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var Pe=createContext({}),Xe=j(c,function(e$1,t){return [e$1,t]=e(e$1,t,Pe),jsx(h.header,{className:"react-aria-Header",...e$1,ref:t,children:e$1.children})});var qe=createContext({});var mt=createContext(null),se=createContext(null),ft=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,mt);let o=useContext(se);return o?jsx(wr,{state:o,props:e$1,listBoxRef:t}):jsx(i,{content:jsx(l,{...e$1}),children:n=>jsx(Po,{props:e$1,listBoxRef:t,collection:n})})});function Po({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:o}=useContext(p),n=b({...r,layoutDelegate:o});return jsx(wr,{state:n,props:r,listBoxRef:e})}function wr({state:r,props:e$2,listBoxRef:t}){[e$2,t]=e(e$2,t,b$1);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:l}=e$2,s=c$1(r,l),{collection:c,selectionManager:u}=s,a$5=!!o?.useDraggableCollectionState,d$1=!!o?.useDroppableCollectionState,{direction:y}=b$2(),{disabledBehavior:p$1,disabledKeys:M}=u,P=a({usage:"search",sensitivity:"base"}),{isVirtualized:m$1,layoutDelegate:b,dropTargetDelegate:T,CollectionRoot:v}=useContext(p),E=useMemo(()=>e$2.keyboardDelegate||new b$3({collection:c,collator:P,ref:t,disabledKeys:M,disabledBehavior:p$1,layout:n,orientation:i,direction:y,layoutDelegate:b}),[c,P,t,p$1,M,i,y,e$2.keyboardDelegate,n,b]),{listBoxProps:w}=c$2({...e$2,shouldSelectOnPressUp:a$5||e$2.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:m$1},s,t),H=useRef(a$5),f=useRef(d$1);useEffect(()=>{process.env.NODE_ENV!=="production"&&(H.current!==a$5&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),f.current!==d$1&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[a$5,d$1]);let C,O,N,g$1=false,x=null,S=useRef(null);if(a$5&&o){C=o.useDraggableCollectionState({collection:c,selectionManager:u,preview:o.renderDragPreview?S:void 0}),o.useDraggableCollection({},C,t);let Y=o.DragPreview;x=o.renderDragPreview?jsx(Y,{ref:S,children:o.renderDragPreview}):null;}if(d$1&&o){O=o.useDroppableCollectionState({collection:c,selectionManager:u});let Y=o.dropTargetDelegate||T||new o.ListDropTargetDelegate(c,t,{orientation:i,layout:n,direction:y});N=o.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:Y},O,t),g$1=O.isDropTarget({type:"root"});}let{focusProps:z,isFocused:_,isFocusVisible:B}=a$1(),R=s.collection.size===0,q={isDropTarget:g$1,isEmpty:R,isFocused:_,isFocusVisible:B,layout:e$2.layout||"stack",orientation:i,state:s},ae=c$3({...e$2,children:void 0,defaultClassName:"react-aria-ListBox",values:q}),oe=null;R&&e$2.renderEmptyState&&(oe=jsx("div",{role:"option",style:{display:"contents"},children:e$2.renderEmptyState(q)}));let J=a$2(e$2,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(J,ae,w,z,N?.collectionProps),ref:t,slot:e$2.slot||void 0,onScroll:e$2.onScroll,"data-drop-target":g$1||void 0,"data-empty":R||void 0,"data-focused":_||void 0,"data-focus-visible":B||void 0,"data-layout":e$2.layout||"stack","data-orientation":i,children:[jsx(b$4,{values:[[mt,e$2],[se,s],[a$4,{dragAndDropHooks:o,dragState:C,dropState:O}],[qe,{elementType:"div"}],[b$5,{render:bo}],[m,{name:"ListBoxSection",render:kr}]],children:jsx(g,{children:jsx(v,{collection:c,scrollRef:t,persistedKeys:e$1(u,o,O),renderDropIndicator:d(o,O)})})}),oe,x]})})}function kr(r,e,t,o="react-aria-ListBoxSection"){let n=useContext(se),{dragAndDropHooks:i,dropState:l}=useContext(a$4),{CollectionBranch:s}=useContext(p),[c,u]=f(),{headingProps:a,groupProps:d$1}=f$1({heading:u,"aria-label":r["aria-label"]??void 0}),y=c$3({...r,id:void 0,children:void 0,defaultClassName:o,values:void 0}),p$1=a$2(r,{global:true});return delete p$1.id,jsx(h.section,{...c$4(p$1,y,d$1),ref:e,children:jsx(Pe.Provider,{value:{...a,ref:c},children:jsx(s,{collection:n.collection,parent:t,renderDropIndicator:d(i,l)})})})}var gt=k(f$2,kr),yt=j(e$2,function(e,t,o){let n=a$5(t),i=useContext(se),{dragAndDropHooks:l,dragState:s,dropState:c}=useContext(a$4),u=s&&!(s.isDisabled||s.selectionManager.isDisabled(o.key)),{optionProps:a,labelProps:d,descriptionProps:y,...p}=e$3({key:o.key,"aria-label":e?.["aria-label"]},i,n),{hoverProps:M,isHovered:P}=a$6({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:m}=j$1(e),{focusProps:b}=a$7(e),T=null;s&&l&&(T=l.useDraggableItem({key:o.key,hasAction:p.hasAction},s,n));let v=null;c&&l&&(v=l.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,n));let E=s&&s.isDragging(o.key),w=c$3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:P,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:E,isDropTarget:v?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let H=e.href?h.a:h.div,f=a$2(e,{global:true});return delete f.id,delete f.onClick,e.href&&a.tabIndex==null&&(a.tabIndex=-1),jsx(H,{...c$4(f,w,a,M,m,b,T?.dragProps,v?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":E||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:d,label:d,description:y}}],[h$1,{isSelected:p.isSelected}]],children:w.children})})});function bo(r,e){e=a$5(e);let{dragAndDropHooks:t,dropState:o}=useContext(a$4),{dropIndicatorProps:n,isHidden:i,isDropTarget:l}=t.useDropIndicator(r,o,e);return i?null:jsx(vo,{...r,dropIndicatorProps:n,isDropTarget:l,ref:e})}function xo(r,e){let{dropIndicatorProps:t,isDropTarget:o,...n}=r,i=c$3({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(h.div,{...t,...i,role:"option",ref:e,"data-drop-target":o||void 0})})}var vo=forwardRef(xo);j(d$1,function(e,t,o){let n=useContext(se),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),y),...d,role:"option",ref:t,children:d.children})})]})});var Je=({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s}={})=>Object.values({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s});var Ci=a$a({defaultClassName:"_1fjxa6ld _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"},orientation:{vertical:"_1yep5z618m",horizontal:"_1yep5z618n"}},defaultVariants:{},compoundVariants:[]}),Br="_1fjxa6la _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Hr=a$a({defaultClassName:"_1fjxa6lb _1yep5z6ez _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6f2"}},defaultVariants:{},compoundVariants:[]}),Nr=a$a({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6ey _1yep5z6lq _1yep5z6lt _1yep5z6m6 _1yep5z6m5 _1yep5z6m3 _1yep5z6m0",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t _1yep5z615c _1yep5z615d _1yep5z615e"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z612t",false:"_1yep5z612s"},isDisabled:{true:"z9nup82 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),zr="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",_r="_1fjxa6l1",Kr="_1fjxa6l2",Vr="_1fjxa6l0";var jr={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};function Ur(r){let{onContextMenu:e}=r,t=useRef(false),{longPressProps:o}=a$r({onLongPressStart(){t.current=false;},onLongPress(n){t.current?t.current=false:e?.({target:n.target,x:n.x,y:n.y});}});return e?{contextMenuProps:c$4(h$3()?o:{},{onContextMenu(n){n.stopPropagation(),n.preventDefault(),t.current=true;let i=n.currentTarget.getBoundingClientRect();e({target:n.currentTarget,x:n.clientX-i.x,y:n.clientY-i.y});},onKeyDown(n){if(e$7()&&n.ctrlKey&&n.key==="Enter"){t.current=false;let i=n.currentTarget;n.stopPropagation(),setTimeout(()=>{if(t.current)t.current=false;else {let l=i.getBoundingClientRect();e({target:i,x:l.width/2,y:l.height/2});}},10);}}})}:{contextMenuProps:{}}}function Pt(r,e,t){let{type:o="menu",isDisabled:n,trigger:i="press"}=r,l=c$6(),{triggerProps:s,overlayProps:c}=a$q({type:o},e,t),u=(m,b,T="first")=>{if(!m||b.isDefaultPrevented())return false;e.toggle(T);},{keyboardProps:a}=j$1({isDisabled:n,shortcuts:{Enter:m=>u(i!=="longPress",m,"first")," ":m=>u(i!=="longPress",m,"first"),ArrowDown:m=>u(i!=="longPress",m,"first"),ArrowUp:m=>u(i!=="longPress",m,"last"),"Alt+Enter":m=>u(i==="longPress",m,"first"),"Alt+ ":m=>u(i==="longPress",m,"first"),"Alt+ArrowDown":m=>u(true,m,"first"),"Alt+ArrowUp":m=>u(true,m,"last")}}),d=b$9(jr,"@react-aria/menu"),{longPressProps:y}=a$r({isDisabled:n||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),ref:t,onLongPressStart(){e.close();},onLongPress(){e.open("first");}}),p={preventFocusOnPress:true,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!n&&(a$l(m.target),e.open(m.pointerType==="virtual"?"first":null));},onPress(m){m.pointerType==="touch"&&!n&&(a$l(m.target),e.toggle());}};delete s.onPress;let{contextMenuProps:M}=Ur({onContextMenu(m){let b=m.target.getBoundingClientRect();e.setPoint({x:b.x+m.x,y:b.y+m.y}),e.open();}});useEffect(()=>{if(e.isOpen&&i==="contextMenu"){let m=b=>{(b.button===2||b.button===0&&b.ctrlKey===true)&&j$2(b)===document.body&&e.close();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)}},[e,i]);let P;if(i==="press")P={...p,...a};else if(i==="longPress")P={...y,...a};else if(i==="contextMenu"){P=M;let{"aria-haspopup":m,"aria-expanded":b,"aria-controls":T,...v}=s;s=v;}return {menuTriggerProps:{...s,...P,id:l},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||true,onClose:e.close}}}var Ye=new WeakMap;function bt(r,e,t){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...l}=r;!r["aria-label"]&&!r["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=a$2(r,{labelable:true}),{listProps:c}=a$n({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return Ye.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:c$4(s,{onKeyDown:n,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{(u.key!=="Escape"||r.shouldUseVirtualFocus)&&c.onKeyDown?.(u);}})}}function xt(r$1,e,t){let{id:o$1,key:n,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s$1,"aria-haspopup":c,onPressStart:u,onPressUp:a,onPress:d,onPressChange:y,onPressEnd:p,onClick:M,onHoverStart:P,onHoverChange:m,onHoverEnd:b,onKeyDown:T,onKeyUp:v,onFocus:E,onFocusChange:w,onBlur:H,selectionManager:f=e.selectionManager}=r$1,C=!!c,O=C&&r$1["aria-expanded"]==="true",N=r$1.isDisabled??f.isDisabled(n),g=r$1.isSelected??f.isSelected(n),x=Ye.get(e),S=e.collection.getItem(n),z=r$1.onClose||x.onClose,_=o(),B=()=>{if(!C&&(S?.props?.onAction?S.props.onAction():r$1.onAction&&r$1.onAction(n),x.onAction)){let h=x.onAction;h(n,S?.value);}},R="menuitem";C||(f.selectionMode==="single"?R="menuitemradio":f.selectionMode==="multiple"&&(R="menuitemcheckbox"));let q=e$4([],t),ae=e$4([],t),oe=e$4([],t),J={id:o$1,"aria-disabled":N||void 0,role:R,"aria-label":r$1["aria-label"],"aria-labelledby":q,"aria-describedby":[r$1["aria-describedby"],ae,oe].filter(Boolean).join(" ")||void 0,"aria-controls":r$1["aria-controls"],"aria-haspopup":c,"aria-expanded":r$1["aria-expanded"]};if(f.selectionMode!=="none"&&!C&&(J["aria-checked"]=g),s$1){let h=Number(S?.index);J["aria-posinset"]=Number.isNaN(h)?void 0:h+1,J["aria-setsize"]=d$3(e.collection);}let Y=useRef(false),Re=h=>{y?.(h),Y.current=h;},Z=useRef(null),L=h=>{h.pointerType!=="keyboard"&&(Z.current={pointerType:h.pointerType}),h.pointerType==="mouse"&&(Y.current||h.target.click()),a?.(h);},de=h=>{M?.(h),B(),s(h,_,S.props.href,S?.props.routerOptions);let ce=Z.current?.pointerType==="keyboard"?Z.current?.key==="Enter"||f.selectionMode==="none"||f.isLink(n):f.selectionMode!=="multiple"||f.isLink(n);ce=l??i??ce,z&&!C&&ce&&z(),Z.current=null;},{itemProps:ne,isFocused:Ht}=d$4({id:o$1,selectionManager:f,key:n,ref:t,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:x.shouldUseVirtualFocus}),{pressProps:so,isPressed:ao}=d$5({onPressStart:u,onPress:d,onPressUp:L,onPressChange:Re,onPressEnd:p,isDisabled:N}),{hoverProps:uo}=a$6({isDisabled:N,onHoverStart(h){!b$6()&&!(O&&c)&&(f.setFocused(true),f.setFocusedKey(n)),P?.(h);},onHoverChange:m,onHoverEnd:b}),{keyboardProps:co}=j$1({shortcuts:{" ":h=>{Z.current={pointerType:"keyboard",key:" "},j$2(h).click(),d$6("keyboard");},Enter:h=>{Z.current={pointerType:"keyboard",key:"Enter"};let ce=j$2(h);if(ce.tagName!=="A"){ce.click(),d$6("keyboard");return}return d$6("keyboard"),{shouldPreventDefault:false,shouldContinuePropagation:false}}},onKeyDown:T,onKeyUp:v}),{focusableProps:po}=c$7({onBlur:H,onFocus:E,onFocusChange:w},t),Nt=a$2(S?.props);delete Nt.id;let mo=r(S?.props);return {menuItemProps:{...J,...c$4(Nt,mo,C?{onFocus:ne.onFocus,"data-collection":ne["data-collection"],"data-key":ne["data-key"]}:ne,so,uo,co,po,x.shouldUseVirtualFocus||C?{onMouseDown:h=>h.preventDefault()}:void 0,N?void 0:{onClick:de}),tabIndex:ne.tabIndex!=null&&O&&!x.shouldUseVirtualFocus?-1:ne.tabIndex},labelProps:{id:q},descriptionProps:{id:ae},keyboardShortcutProps:{id:oe},isFocused:Ht,isFocusVisible:Ht&&f.isFocused&&b$6()&&!O,isSelected:g,isPressed:ao,isDisabled:N}}function vt(r){let{heading:e,"aria-label":t}=r,o=e$4([!!e]);return {itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?o:void 0}}}var Ze=2,Lo=50,Do=1e3,Gr=Math.PI/12;function Xr(r){let{menuRef:e,submenuRef:t,isOpen:o,isDisabled:n}=r,i=useRef(void 0),l=useRef(void 0),s=useRef(0),c=useRef(void 0),u$1=useRef(void 0),a=useRef(void 0),d=useRef(2),[y,p]=useState(false);e$6({ref:o?t:void 0,onResize:()=>{t.current&&(l.current=t.current.getBoundingClientRect(),a.current=void 0);}});let P=()=>{p(false),d.current=Ze,i.current=void 0;},m=f$5(),b=u(T=>{y&&T.preventDefault();});useEffect(()=>{y&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents="";},[e,y]),a$k(()=>{let T=t.current,v=e.current;if(n||!T||!o||m!=="pointer"||!v){P();return}l.current=T.getBoundingClientRect();let E=H=>{if(H.pointerType==="touch"||H.pointerType==="pen")return;let f=Date.now();if(f-s.current<Lo)return;clearTimeout(c.current),clearTimeout(u$1.current);let{clientX:C,clientY:O}=H;if(!i.current){i.current={x:C,y:O};return}if(!l.current)return;if(a.current||(a.current=C>l.current.right?"left":"right"),C<v.getBoundingClientRect().left||C>v.getBoundingClientRect().right||O<v.getBoundingClientRect().top||O>v.getBoundingClientRect().bottom){P();return}let N=i.current.x,g=i.current.y,x=a.current==="right"?l.current.left-N:N-l.current.right,S=Math.atan2(g-l.current.top,x)+Gr,z=Math.atan2(g-l.current.bottom,x)-Gr,_=Math.atan2(g-O,a.current==="left"?-(C-N):C-N),B=_<S&&_>z;d.current=B?Math.min(d.current+1,Ze):Math.max(d.current-1,0),d.current>=Ze?p(true):p(false),s.current=f,i.current={x:C,y:O},B&&(c.current=setTimeout(()=>{P(),u$1.current=setTimeout(()=>{let R=a$p(v).elementFromPoint(C,O);R&&h$2(v,R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},Do));},w=b$8(v);return w.addEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.addEventListener("pointerdown",b,true),()=>{w.removeEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.removeEventListener("pointerdown",b,true),clearTimeout(c.current),clearTimeout(u$1.current),d.current=Ze;}},[n,o,e,m,p,t]);}function St(r,e,t){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=r,u=c$6(),a=c$6(),{direction:d}=b$2(),y=useRef(void 0),p=useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=void 0);},[y]),M=useCallback(f=>{p(),e.open(f);},[e,p]),P=useCallback(()=>{p(),e.close();},[e,p]);a$k(()=>()=>{p();},[p]);let{keyboardProps:m}=j$1({shortcuts:{ArrowLeft:f=>{if(!m$1(f.currentTarget))return false;if(d==="ltr"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false},ArrowRight:f=>{if(!m$1(f.currentTarget))return false;if(d==="rtl"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false},Escape:f=>{if(!m$1(f.currentTarget))return false;if(h$2(n.current,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false}}}),b={id:a,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,...m}},{keyboardProps:T}=j$1({shortcuts:{ArrowRight:()=>{if(!l)if(d==="ltr"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$l(n.current);return}else if(e.isOpen){P();return}else return false;return false},ArrowLeft:()=>{if(!l)if(d==="rtl"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$l(n.current);return}else if(e.isOpen){P();return}else return false;return false}}}),v=f=>{!l&&(f.pointerType==="virtual"||f.pointerType==="keyboard")&&M("first");},E=f=>{!l&&(f.pointerType==="touch"||f.pointerType==="mouse")&&M();},w=f=>{l||(f&&!e.isOpen?y.current||(y.current=setTimeout(()=>{M();},s)):f||p());};a$m(o,"focusin",f=>{e.isOpen&&h$2(o.current,j$2(f))&&j$2(f)!==t.current&&P();});let H=f=>f!==t.current;return Xr({menuRef:o,submenuRef:n,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,id:u,"aria-controls":e.isOpen?a:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:v,onPress:E,onHoverChange:w,isOpen:e.isOpen},submenuProps:b,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:H}}}function Qe(r){let e=a$o(r),[t,o]=useState(null),[n,i]=useState([]),l=()=>{i([]),e.close();};return {focusStrategy:t,...e,open(u=null){o(u),e.open();},toggle(u=null){o(u),e.toggle();},close(){l();},expandedKeysStack:n,openSubmenu:(u,a)=>{i(d=>a>d.length?d:[...d.slice(0,a),u]);},closeSubmenu:(u,a)=>{i(d=>d[a]===u?d.slice(0,a):d);}}}function Ct(r,e){let{triggerKey:t}=r,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:l}=e,[s]=useState(o?.length),c=useMemo(()=>o[s]===t,[o,t,s]),[u,a]=useState(null),d=useCallback(M=>{a(M??null),n(t,s);},[n,s,t]),y=useCallback(()=>{a(null),i(t,s);},[i,s,t]),p=useCallback(M=>{a(M??null),c?y():d(M);},[y,d,c]);return useMemo(()=>({focusStrategy:u,isOpen:c,open:d,close:y,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:p,point:null,setPoint:()=>{}}),[c,d,y,l,u,p,s])}var ht=createContext({});forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,ht),jsx(h.kbd,{dir:"ltr",...e$1,ref:t})});var ko=createContext({}),ms=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,ko);let{children:o,level:n=3,className:i,...l}=e$1,s=h[`h${n}`];return jsx(s,{...l,ref:t,className:i??"react-aria-Heading",children:o})});var Lt=createContext(null);createContext(null);createContext(null);var Dt=createContext(null);var rt=createContext(null),ve=createContext(null),De=createContext(null),tt=createContext(null);function Ho(r){let e=Qe(r),t=useRef(null),{menuTriggerProps:o,menuProps:n}=Pt({...r,type:"menu"},e,t),i=useRef(null);return k$2()?null:jsx(b$4,{values:[[rt,{...n,ref:i}],[Dt,e],[De,e],[Lt,{trigger:"MenuTrigger",triggerRef:t,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"],offset:r.trigger==="contextMenu"?0:void 0}]],children:jsx(b$a,{...o,ref:t,isPressed:e.isOpen,children:r.children})})}var to=createContext(null),Rt=class extends a$j{static type="submenutrigger";filter(e,t,o){let n=e.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}},No=k(Rt,(r,e,t)=>{let{CollectionBranch:o}=useContext(p),n=useContext(ve),i=useContext(De),l=Ct({triggerKey:t.key},i),s=useRef(null),c=a$5(e),{parentMenuRef:u,shouldUseVirtualFocus:a}=useContext(to),{submenuTriggerProps:d,submenuProps:y,popoverProps:p$1}=St({parentMenuRef:u,submenuRef:s,delay:r.delay,shouldUseVirtualFocus:a},l,c);return jsxs(b$4,{values:[[be,{...d,onAction:void 0,ref:c}],[rt,{ref:s,...y}],[Dt,l],[Lt,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":y["aria-labelledby"],...p$1}]],children:[jsx(o,{collection:n.collection,parent:t}),r.children[1]]})},r=>r.children[0]),zo=forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,rt),jsx(i,{content:jsx(l,{...e$1}),children:o=>jsx(_o,{props:e$1,collection:o,menuRef:t})})});function _o({props:r,collection:e$1,menuRef:t}){[r,t]=e(r,t,b$1);let{filter:o,...n}=r,i=useMemo(()=>o?e$1.filter(o):e$1,[e$1,o]),l=a$b({...r,collection:i,children:void 0}),s=useContext(De),{isVirtualized:c,CollectionRoot:u}=useContext(p),{menuProps:a}=bt({...r,isVirtualized:c,onClose:r.onClose||s?.close},l,t),d=c$3({...r,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),y=null;l.collection.size===0&&r.renderEmptyState&&(y=jsx("div",{role:"menuitem",style:{display:"contents"},children:r.renderEmptyState()}));let p$1=a$2(r,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(p$1,d,a),ref:t,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:r.onScroll,children:[jsx(b$4,{values:[[ve,l],[qe,{elementType:"div"}],[m,{name:"MenuSection",render:ro}],[to,{parentMenuRef:t,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect}],[b$1,null],[c$5,null],[tt,l.selectionManager],[De,s??Qe({})]],children:jsx(g,{children:jsx(u,{collection:l.collection,persistedKeys:q(l.selectionManager.focusedKey),scrollRef:t})})}),y]})})}var Et=class extends f$3{parent;constructor(e,t){super(e.collection,t),this.parent=e;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function ro(r,e,t,o="react-aria-MenuSection"){let n=useContext(ve),{CollectionBranch:i}=useContext(p),[l,s]=f(),{headingProps:c,groupProps:u}=vt({heading:s,"aria-label":t.props["aria-label"]??void 0}),a=c$3({...r,id:void 0,children:void 0,defaultClassName:o,className:t.props?.className,style:t.props?.style,values:void 0}),d=useContext(tt),y=a$c(r),p$1=r.selectionMode!=null?new Et(d,y):d,M=d$2(be)?.shouldCloseOnSelect,P=a$2(r,{global:true});return delete P.id,jsx(h.section,{...c$4(P,a,u),ref:e,children:jsx(b$4,{values:[[Pe,{...c,ref:l}],[tt,p$1],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect??M}]],children:jsx(i,{collection:n.collection,parent:t})})})}var Ot=k(f$2,ro),be=createContext(null),At=j(e$2,function(e$1,t,o){[e$1,t]=e(e$1,t,be);let n=d$2(be)?.id,i=useContext(ve),l=a$5(t),s=useContext(tt),{isVirtualized:c}=useContext(p),{menuItemProps:u,labelProps:a,descriptionProps:d,keyboardShortcutProps:y,...p$1}=xt({...e$1,id:n,key:o.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:M,isHovered:P}=a$6({isDisabled:p$1.isDisabled}),m=c$3({...e$1,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...p$1,isHovered:P,isFocusVisible:p$1.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e$1["aria-haspopup"],isOpen:e$1["aria-expanded"]==="true"}}),b=e$1.href?h.a:h.div,T=a$2(e$1,{global:true});return delete T.id,delete T.onClick,jsx(b,{...c$4(T,m,u,M),ref:l,"data-disabled":p$1.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p$1.isFocused||void 0,"data-focus-visible":p$1.isFocusVisible||void 0,"data-pressed":p$1.isPressed||void 0,"data-selected":p$1.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e$1["aria-haspopup"]||void 0,"data-open":e$1["aria-expanded"]==="true"||void 0,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:a,label:a,description:d}}],[ht,y],[h$1,{isSelected:p$1.isSelected}]],children:m.children})})});j(d$1,function(e,t,o){let n=useContext(ve),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),y),...d,role:"menuitem",ref:t,children:d.children})})]})});var kt=Me.forwardRef(({section:r,isFirstCollectionItem:e,showSectionHeader:t,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:l$1,componentName:s="ListBox",selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1,...M},P)=>{let{isVirtualized:m}=useContext(p),b=o?.(r),T=s==="ListBox"?gt:Ot,v=c==null?{}:{selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1};return jsxs(T,{id:r.id,"aria-label":r.title,...v,className:a$e(`BaselineUI-${s}-Section`,_r,m&&!e&&Kr,typeof l$1=="function"?l$1(r):l$1),style:typeof i=="function"?i(r):i,ref:P,children:[t?b?jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:b}):jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:jsx(a$d,{className:a$e(zr,`BaselineUI-${s}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:r.title})}):null,jsx(l,{items:r.children,dependencies:Je(M),children:E=>jsx(ot,{componentName:s,item:E,...M},E.id)})]})});kt.displayName="ListSection";var Wo=({componentName:r})=>{let{direction:e}=b$2();return jsx(a$d,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${r}-SubmenuChevron`,style:e==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},Go=({item:r,isSelected:e,isHovered:t,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:l,componentName:s="ListBox",hasSubmenu:c=false})=>{let u=r.icon,a=l!=="none",d=r.keyboardShortcut??r.description;return jsxs(a$d,{display:"flex",alignItems:"center",gap:"lg",className:a$e(Nr({isHovered:t,isFocused:o,isDisabled:n}),`BaselineUI-${s}-OptionDefault`),children:[jsxs(a$d,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[a&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${s}-SelectionIndicator`,children:e?jsx(CheckmarkIcon,{size:24}):null}):null,a&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:c$8({isSelected:e,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:e?jsx(CheckmarkIcon$1,{size:12}):null})}):null,u?jsx(u,{size:24}):null,jsx(b$7,{slot:"label",elementType:"span",children:r.label})]}),c?jsx(Wo,{componentName:s}):d?jsx(b$7,{slot:"description",className:a$e(Hr({isDisabled:n}),`BaselineUI-${s}-OptionDescription`),children:d}):null]})},ot=Me.forwardRef(({item:r,optionStyle:e,optionClassName:t,renderOption:o,componentName:n="ListBox",...i},l)=>{let{onPress:s,onKeyDown:c}=useContext(io);return jsx(n==="ListBox"?yt:At,{...c$4(a$f(i),{onPress:a=>s?.(a,r.id),onKeyDown:c?a=>{c(a,r.id),a.continuePropagation();}:void 0}),id:r.id,value:r,className:a=>a$e(Vr,`BaselineUI-${n}-Option`,typeof t=="function"?t(r,a):t),style:a=>typeof e=="function"?e(r,a):e,textValue:r.label,ref:l,children:a=>o?o(r,a):jsx(Go,{componentName:n,...a,item:r})})});ot.displayName="ListOption";var lo=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),io=Me.createContext({}),qo=Me.forwardRef(({withSectionHeaderPadding:r=false,showSectionHeader:e=false,renderSectionHeader:t,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:l,renderOption:s,className:c,dragAndDropHooks:u,listBoxHandle:a,"data-block-id":d,"data-block-class":y,...p$1},M)=>{let P=a$5(M),m=Me.useRef(false),b=Me.useRef(null),T=useContext(se),{isVirtualized:v,layoutDelegate:E}=useContext(p);useEffect(()=>{T&&(s||o||n)&&a$g("UNSAFE_ListBox:statefulRenderProps","ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[T,s,o,n,i,l,t]),a$h({ref:P,isDisabled:!u});let w=useCallback(g=>[...P.current?.querySelectorAll('[role="option"][data-key]')??[]].find(S=>S.dataset.key===String(g)),[P]);useEffect(()=>{if(!v)return;let g=P.current,x=g?.ownerDocument,S=x?.defaultView;if(g==null||x==null||S==null)return;let z=()=>{let L=f$4(g);return L==null||L===x.body||L===x.documentElement},_=()=>g.querySelector('[role="option"][tabindex="0"]')??g.querySelector('[role="option"][data-focused="true"]'),B=()=>{let L=f$4(g);return L!=null&&h$2(g,L)},R=L=>L.composedPath().some(de=>de instanceof S.Node&&h$2(g,de)),q=()=>{m.current=false;},ae=()=>{b.current!=null&&S.cancelAnimationFrame(b.current),b.current=S.requestAnimationFrame(()=>{if(b.current=null,B())return;if(!z()){q();return}let L=_();L?.focus({preventScroll:true});});},oe=L=>{lo.has(L.key)&&(m.current=true);},J=L=>{!lo.has(L.key)||!z()||!m.current||ae();},Y=L=>{R(L)||B()||q();},Re=L=>{R(L)||q();},Z=new MutationObserver(L=>{L.some(({addedNodes:de,removedNodes:ne})=>de.length>0||ne.length>0)&&m.current&&ae();});return g.addEventListener("keydown",oe),x.addEventListener("keydown",J,true),x.addEventListener("focusin",Y,true),x.addEventListener("pointerdown",Re,true),Z.observe(g,{childList:true,subtree:true}),()=>{g.removeEventListener("keydown",oe),x.removeEventListener("keydown",J,true),x.removeEventListener("focusin",Y,true),x.removeEventListener("pointerdown",Re,true),Z.disconnect(),b.current!=null&&S.cancelAnimationFrame(b.current),q(),b.current=null;}},[v,P]),useEffect(()=>{let g=P.current,x=g?.ownerDocument.defaultView;if(!v||!g||!x)return;let S=null,z=()=>{let R=f$4(g);return R instanceof x.HTMLElement&&R.getAttribute("role")==="option"&&h$2(g,R)?R:null},_=()=>z()?(S=x.requestAnimationFrame(()=>{let R=z();R&&e$5(g,R);}),true):false,B=()=>{_()&&g.removeEventListener("focusin",B);};return _()||g.addEventListener("focusin",B),()=>{g.removeEventListener("focusin",B),S!=null&&x.cancelAnimationFrame(S);}},[v,P]);let H=Me.useRef(null),f=useCallback(()=>{let g=H.current;g&&(g.ownerWindow.cancelAnimationFrame(g.frameId),H.current=null);},[]);useEffect(()=>f,[f]);let C=useCallback((g,x)=>{if(f(),!P.current)return;let S=()=>{let _=w(g);if(_)return _.scrollIntoView({block:"nearest",inline:"nearest",...x}),true;if(v&&E){let B=E.getItemRect(g);return B?(E.virtualizer.delegate.setVisibleRect(B),true):false}return false};if(S())return;let z=P.current.ownerDocument?.defaultView;z&&(H.current={ownerWindow:z,frameId:z.requestAnimationFrame(()=>{H.current=null,S();})});},[f,w,v,E,P]);useImperativeHandle(a,()=>({scrollIntoView:C,setFocusedKey:g=>{let x=w(g);!P.current||!x||(x.focus(),C(g));}}),[C,w,P]);let O={renderOption:s,optionClassName:n,optionStyle:o,renderSectionHeader:t,sectionClassName:l,sectionStyle:i,showSectionHeader:e,withSectionHeaderPadding:r},N=p$1.items?.[0]?.id;return jsx(ft,{...p$1,dependencies:[...p$1.dependencies??[],N,...Je(O)],"data-block-id":d,"data-block-class":y,dragAndDropHooks:u,ref:P,className:a$e(Br,"BaselineUI-ListBox",c),children:g=>jsx(Jo,{item:g,isFirstCollectionItem:N===g.id,...O},g.id)})});qo.displayName="UNSAFE_ListBox";var $o=Me.createContext({}),Jo=r=>{let e=useContext($o),{item:t,isFirstCollectionItem:o,id:n,value:i,...l}={...e,...r};return a$i(t,"Item is required"),"children"in t?jsx(kt,{section:t,componentName:"ListBox",isFirstCollectionItem:o,...l}):jsx(ot,{item:t,componentName:"ListBox",...l})};export{mt as a,se as b,Pt as c,Je as d,Ci as e,ko as f,ms as g,Lt as h,Dt as i,Ho as j,No as k,zo as l,kt as m,Go as n,ot as o,io as p,qo as q,Jo as r};
10
+ var Pe=createContext({}),Xe=j(c,function(e$1,t){return [e$1,t]=e(e$1,t,Pe),jsx(h.header,{className:"react-aria-Header",...e$1,ref:t,children:e$1.children})});var qe=createContext({});var mt=createContext(null),se=createContext(null),ft=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,mt);let o=useContext(se);return o?jsx(wr,{state:o,props:e$1,listBoxRef:t}):jsx(i,{content:jsx(l,{...e$1}),children:n=>jsx(Po,{props:e$1,listBoxRef:t,collection:n})})});function Po({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:o}=useContext(p),n=b({...r,layoutDelegate:o});return jsx(wr,{state:n,props:r,listBoxRef:e})}function wr({state:r,props:e$2,listBoxRef:t}){[e$2,t]=e(e$2,t,b$1);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:l}=e$2,s=c$1(r,l),{collection:c,selectionManager:u}=s,a$5=!!o?.useDraggableCollectionState,d$1=!!o?.useDroppableCollectionState,{direction:y}=b$2(),{disabledBehavior:p$1,disabledKeys:M}=u,P=a({usage:"search",sensitivity:"base"}),{isVirtualized:m$1,layoutDelegate:b,dropTargetDelegate:T,CollectionRoot:v}=useContext(p),E=useMemo(()=>e$2.keyboardDelegate||new b$3({collection:c,collator:P,ref:t,disabledKeys:M,disabledBehavior:p$1,layout:n,orientation:i,direction:y,layoutDelegate:b}),[c,P,t,p$1,M,i,y,e$2.keyboardDelegate,n,b]),{listBoxProps:w}=c$2({...e$2,shouldSelectOnPressUp:a$5||e$2.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:m$1},s,t),H=useRef(a$5),f=useRef(d$1);useEffect(()=>{process.env.NODE_ENV!=="production"&&(H.current!==a$5&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),f.current!==d$1&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[a$5,d$1]);let C,O,N,g$2=false,x=null,S=useRef(null);if(a$5&&o){C=o.useDraggableCollectionState({collection:c,selectionManager:u,preview:o.renderDragPreview?S:void 0}),o.useDraggableCollection({},C,t);let Y=o.DragPreview;x=o.renderDragPreview?jsx(Y,{ref:S,children:o.renderDragPreview}):null;}if(d$1&&o){O=o.useDroppableCollectionState({collection:c,selectionManager:u});let Y=o.dropTargetDelegate||T||new o.ListDropTargetDelegate(c,t,{orientation:i,layout:n,direction:y});N=o.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:Y},O,t),g$2=O.isDropTarget({type:"root"});}let{focusProps:z,isFocused:_,isFocusVisible:B}=a$1(),R=s.collection.size===0,q={isDropTarget:g$2,isEmpty:R,isFocused:_,isFocusVisible:B,layout:e$2.layout||"stack",orientation:i,state:s},ae=c$3({...e$2,children:void 0,defaultClassName:"react-aria-ListBox",values:q}),oe=null;R&&e$2.renderEmptyState&&(oe=jsx("div",{role:"option",style:{display:"contents"},children:e$2.renderEmptyState(q)}));let J=a$2(e$2,{global:true});return jsx(a$3,{children:jsxs(h.div,{...g$1(J,ae,w,z,N?.collectionProps),ref:t,slot:e$2.slot||void 0,onScroll:e$2.onScroll,"data-drop-target":g$2||void 0,"data-empty":R||void 0,"data-focused":_||void 0,"data-focus-visible":B||void 0,"data-layout":e$2.layout||"stack","data-orientation":i,children:[jsx(b$4,{values:[[mt,e$2],[se,s],[a$4,{dragAndDropHooks:o,dragState:C,dropState:O}],[qe,{elementType:"div"}],[b$5,{render:bo}],[m,{name:"ListBoxSection",render:kr}]],children:jsx(g,{children:jsx(v,{collection:c,scrollRef:t,persistedKeys:e$1(u,o,O),renderDropIndicator:d(o,O)})})}),oe,x]})})}function kr(r,e,t,o="react-aria-ListBoxSection"){let n=useContext(se),{dragAndDropHooks:i,dropState:l}=useContext(a$4),{CollectionBranch:s}=useContext(p),[c,u]=f(),{headingProps:a,groupProps:d$1}=f$1({heading:u,"aria-label":r["aria-label"]??void 0}),y=c$3({...r,id:void 0,children:void 0,defaultClassName:o,values:void 0}),p$1=a$2(r,{global:true});return delete p$1.id,jsx(h.section,{...g$1(p$1,y,d$1),ref:e,children:jsx(Pe.Provider,{value:{...a,ref:c},children:jsx(s,{collection:n.collection,parent:t,renderDropIndicator:d(i,l)})})})}var gt=k(f$2,kr),yt=j(e$2,function(e,t,o){let n=a$5(t),i=useContext(se),{dragAndDropHooks:l,dragState:s,dropState:c}=useContext(a$4),u=s&&!(s.isDisabled||s.selectionManager.isDisabled(o.key)),{optionProps:a,labelProps:d,descriptionProps:y,...p}=e$3({key:o.key,"aria-label":e?.["aria-label"]},i,n),{hoverProps:M,isHovered:P}=a$6({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:m}=j$1(e),{focusProps:b}=a$7(e),T=null;s&&l&&(T=l.useDraggableItem({key:o.key,hasAction:p.hasAction},s,n));let v=null;c&&l&&(v=l.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,n));let E=s&&s.isDragging(o.key),w=c$3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:P,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:E,isDropTarget:v?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let H=e.href?h.a:h.div,f=a$2(e,{global:true});return delete f.id,delete f.onClick,e.href&&a.tabIndex==null&&(a.tabIndex=-1),jsx(H,{...g$1(f,w,a,M,m,b,T?.dragProps,v?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":E||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:d,label:d,description:y}}],[h$1,{isSelected:p.isSelected}]],children:w.children})})});function bo(r,e){e=a$5(e);let{dragAndDropHooks:t,dropState:o}=useContext(a$4),{dropIndicatorProps:n,isHidden:i,isDropTarget:l}=t.useDropIndicator(r,o,e);return i?null:jsx(vo,{...r,dropIndicatorProps:n,isDropTarget:l,ref:e})}function xo(r,e){let{dropIndicatorProps:t,isDropTarget:o,...n}=r,i=c$3({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(h.div,{...t,...i,role:"option",ref:e,"data-drop-target":o||void 0})})}var vo=forwardRef(xo);j(d$1,function(e,t,o){let n=useContext(se),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...g$1(a$2(e,{global:true}),y),...d,role:"option",ref:t,children:d.children})})]})});var Je=({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s}={})=>Object.values({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s});var Ci=a$a({defaultClassName:"_1fjxa6ld _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"},orientation:{vertical:"_1yep5z618m",horizontal:"_1yep5z618n"}},defaultVariants:{},compoundVariants:[]}),Br="_1fjxa6la _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Hr=a$a({defaultClassName:"_1fjxa6lb _1yep5z6ez _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6f2"}},defaultVariants:{},compoundVariants:[]}),Nr=a$a({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6ey _1yep5z6lq _1yep5z6lt _1yep5z6m6 _1yep5z6m5 _1yep5z6m3 _1yep5z6m0",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t _1yep5z615c _1yep5z615d _1yep5z615e"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z612t",false:"_1yep5z612s"},isDisabled:{true:"z9nup82 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),zr="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",_r="_1fjxa6l1",Kr="_1fjxa6l2",Vr="_1fjxa6l0";var jr={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};function Ur(r){let{onContextMenu:e}=r,t=useRef(false),{longPressProps:o}=a$r({onLongPressStart(){t.current=false;},onLongPress(n){t.current?t.current=false:e?.({target:n.target,x:n.x,y:n.y});}});return e?{contextMenuProps:g$1(h$3()?o:{},{onContextMenu(n){n.stopPropagation(),n.preventDefault(),t.current=true;let i=n.currentTarget.getBoundingClientRect();e({target:n.currentTarget,x:n.clientX-i.x,y:n.clientY-i.y});},onKeyDown(n){if(e$6()&&n.ctrlKey&&n.key==="Enter"){t.current=false;let i=n.currentTarget;n.stopPropagation(),setTimeout(()=>{if(t.current)t.current=false;else {let l=i.getBoundingClientRect();e({target:i,x:l.width/2,y:l.height/2});}},10);}}})}:{contextMenuProps:{}}}function Pt(r,e,t){let{type:o="menu",isDisabled:n,trigger:i="press"}=r,l=c$5(),{triggerProps:s,overlayProps:c}=a$q({type:o},e,t),u=(m,b,T="first")=>{if(!m||b.isDefaultPrevented())return false;e.toggle(T);},{keyboardProps:a}=j$1({isDisabled:n,shortcuts:{Enter:m=>u(i!=="longPress",m,"first")," ":m=>u(i!=="longPress",m,"first"),ArrowDown:m=>u(i!=="longPress",m,"first"),ArrowUp:m=>u(i!=="longPress",m,"last"),"Alt+Enter":m=>u(i==="longPress",m,"first"),"Alt+ ":m=>u(i==="longPress",m,"first"),"Alt+ArrowDown":m=>u(true,m,"first"),"Alt+ArrowUp":m=>u(true,m,"last")}}),d=b$9(jr,"@react-aria/menu"),{longPressProps:y}=a$r({isDisabled:n||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),ref:t,onLongPressStart(){e.close();},onLongPress(){e.open("first");}}),p={preventFocusOnPress:true,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!n&&(a$l(m.target),e.open(m.pointerType==="virtual"?"first":null));},onPress(m){m.pointerType==="touch"&&!n&&(a$l(m.target),e.toggle());}};delete s.onPress;let{contextMenuProps:M}=Ur({onContextMenu(m){let b=m.target.getBoundingClientRect();e.setPoint({x:b.x+m.x,y:b.y+m.y}),e.open();}});useEffect(()=>{if(e.isOpen&&i==="contextMenu"){let m=b=>{(b.button===2||b.button===0&&b.ctrlKey===true)&&j$2(b)===document.body&&e.close();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)}},[e,i]);let P;if(i==="press")P={...p,...a};else if(i==="longPress")P={...y,...a};else if(i==="contextMenu"){P=M;let{"aria-haspopup":m,"aria-expanded":b,"aria-controls":T,...v}=s;s=v;}return {menuTriggerProps:{...s,...P,id:l},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||true,onClose:e.close}}}var Ye=new WeakMap;function bt(r,e,t){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...l}=r;!r["aria-label"]&&!r["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=a$2(r,{labelable:true}),{listProps:c}=a$n({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return Ye.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:g$1(s,{onKeyDown:n,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{(u.key!=="Escape"||r.shouldUseVirtualFocus)&&c.onKeyDown?.(u);}})}}function xt(r$1,e,t){let{id:o$1,key:n,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s$1,"aria-haspopup":c,onPressStart:u,onPressUp:a,onPress:d,onPressChange:y,onPressEnd:p,onClick:M,onHoverStart:P,onHoverChange:m,onHoverEnd:b,onKeyDown:T,onKeyUp:v,onFocus:E,onFocusChange:w,onBlur:H,selectionManager:f=e.selectionManager}=r$1,C=!!c,O=C&&r$1["aria-expanded"]==="true",N=r$1.isDisabled??f.isDisabled(n),g=r$1.isSelected??f.isSelected(n),x=Ye.get(e),S=e.collection.getItem(n),z=r$1.onClose||x.onClose,_=o(),B=()=>{if(!C&&(S?.props?.onAction?S.props.onAction():r$1.onAction&&r$1.onAction(n),x.onAction)){let h=x.onAction;h(n,S?.value);}},R="menuitem";C||(f.selectionMode==="single"?R="menuitemradio":f.selectionMode==="multiple"&&(R="menuitemcheckbox"));let q=d$3([],t),ae=d$3([],t),oe=d$3([],t),J={id:o$1,"aria-disabled":N||void 0,role:R,"aria-label":r$1["aria-label"],"aria-labelledby":q,"aria-describedby":[r$1["aria-describedby"],ae,oe].filter(Boolean).join(" ")||void 0,"aria-controls":r$1["aria-controls"],"aria-haspopup":c,"aria-expanded":r$1["aria-expanded"]};if(f.selectionMode!=="none"&&!C&&(J["aria-checked"]=g),s$1){let h=Number(S?.index);J["aria-posinset"]=Number.isNaN(h)?void 0:h+1,J["aria-setsize"]=d$4(e.collection);}let Y=useRef(false),Re=h=>{y?.(h),Y.current=h;},Z=useRef(null),L=h=>{h.pointerType!=="keyboard"&&(Z.current={pointerType:h.pointerType}),h.pointerType==="mouse"&&(Y.current||h.target.click()),a?.(h);},de=h=>{M?.(h),B(),s(h,_,S.props.href,S?.props.routerOptions);let ce=Z.current?.pointerType==="keyboard"?Z.current?.key==="Enter"||f.selectionMode==="none"||f.isLink(n):f.selectionMode!=="multiple"||f.isLink(n);ce=l??i??ce,z&&!C&&ce&&z(),Z.current=null;},{itemProps:ne,isFocused:Ht}=d$5({id:o$1,selectionManager:f,key:n,ref:t,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:x.shouldUseVirtualFocus}),{pressProps:so,isPressed:ao}=d$6({onPressStart:u,onPress:d,onPressUp:L,onPressChange:Re,onPressEnd:p,isDisabled:N}),{hoverProps:uo}=a$6({isDisabled:N,onHoverStart(h){!b$6()&&!(O&&c)&&(f.setFocused(true),f.setFocusedKey(n)),P?.(h);},onHoverChange:m,onHoverEnd:b}),{keyboardProps:co}=j$1({shortcuts:{" ":h=>{Z.current={pointerType:"keyboard",key:" "},j$2(h).click(),d$7("keyboard");},Enter:h=>{Z.current={pointerType:"keyboard",key:"Enter"};let ce=j$2(h);if(ce.tagName!=="A"){ce.click(),d$7("keyboard");return}return d$7("keyboard"),{shouldPreventDefault:false,shouldContinuePropagation:false}}},onKeyDown:T,onKeyUp:v}),{focusableProps:po}=c$6({onBlur:H,onFocus:E,onFocusChange:w},t),Nt=a$2(S?.props);delete Nt.id;let mo=r(S?.props);return {menuItemProps:{...J,...g$1(Nt,mo,C?{onFocus:ne.onFocus,"data-collection":ne["data-collection"],"data-key":ne["data-key"]}:ne,so,uo,co,po,x.shouldUseVirtualFocus||C?{onMouseDown:h=>h.preventDefault()}:void 0,N?void 0:{onClick:de}),tabIndex:ne.tabIndex!=null&&O&&!x.shouldUseVirtualFocus?-1:ne.tabIndex},labelProps:{id:q},descriptionProps:{id:ae},keyboardShortcutProps:{id:oe},isFocused:Ht,isFocusVisible:Ht&&f.isFocused&&b$6()&&!O,isSelected:g,isPressed:ao,isDisabled:N}}function vt(r){let{heading:e,"aria-label":t}=r,o=d$3([!!e]);return {itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?o:void 0}}}var Ze=2,Lo=50,Do=1e3,Gr=Math.PI/12;function Xr(r){let{menuRef:e,submenuRef:t,isOpen:o,isDisabled:n}=r,i=useRef(void 0),l=useRef(void 0),s=useRef(0),c=useRef(void 0),u$1=useRef(void 0),a=useRef(void 0),d=useRef(2),[y,p]=useState(false);e$5({ref:o?t:void 0,onResize:()=>{t.current&&(l.current=t.current.getBoundingClientRect(),a.current=void 0);}});let P=()=>{p(false),d.current=Ze,i.current=void 0;},m=f$5(),b=u(T=>{y&&T.preventDefault();});useEffect(()=>{y&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents="";},[e,y]),a$k(()=>{let T=t.current,v=e.current;if(n||!T||!o||m!=="pointer"||!v){P();return}l.current=T.getBoundingClientRect();let E=H=>{if(H.pointerType==="touch"||H.pointerType==="pen")return;let f=Date.now();if(f-s.current<Lo)return;clearTimeout(c.current),clearTimeout(u$1.current);let{clientX:C,clientY:O}=H;if(!i.current){i.current={x:C,y:O};return}if(!l.current)return;if(a.current||(a.current=C>l.current.right?"left":"right"),C<v.getBoundingClientRect().left||C>v.getBoundingClientRect().right||O<v.getBoundingClientRect().top||O>v.getBoundingClientRect().bottom){P();return}let N=i.current.x,g=i.current.y,x=a.current==="right"?l.current.left-N:N-l.current.right,S=Math.atan2(g-l.current.top,x)+Gr,z=Math.atan2(g-l.current.bottom,x)-Gr,_=Math.atan2(g-O,a.current==="left"?-(C-N):C-N),B=_<S&&_>z;d.current=B?Math.min(d.current+1,Ze):Math.max(d.current-1,0),d.current>=Ze?p(true):p(false),s.current=f,i.current={x:C,y:O},B&&(c.current=setTimeout(()=>{P(),u$1.current=setTimeout(()=>{let R=a$p(v).elementFromPoint(C,O);R&&h$2(v,R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},Do));},w=b$8(v);return w.addEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.addEventListener("pointerdown",b,true),()=>{w.removeEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.removeEventListener("pointerdown",b,true),clearTimeout(c.current),clearTimeout(u$1.current),d.current=Ze;}},[n,o,e,m,p,t]);}function St(r,e,t){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=r,u=c$5(),a=c$5(),{direction:d}=b$2(),y=useRef(void 0),p=useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=void 0);},[y]),M=useCallback(f=>{p(),e.open(f);},[e,p]),P=useCallback(()=>{p(),e.close();},[e,p]);a$k(()=>()=>{p();},[p]);let{keyboardProps:m}=j$1({shortcuts:{ArrowLeft:f=>{if(!m$1(f.currentTarget))return false;if(d==="ltr"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false},ArrowRight:f=>{if(!m$1(f.currentTarget))return false;if(d==="rtl"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false},Escape:f=>{if(!m$1(f.currentTarget))return false;if(h$2(n.current,j$2(f))){P(),!c&&t.current&&a$l(t.current);return}return false}}}),b={id:a,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,...m}},{keyboardProps:T}=j$1({shortcuts:{ArrowRight:()=>{if(!l)if(d==="ltr"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$l(n.current);return}else if(e.isOpen){P();return}else return false;return false},ArrowLeft:()=>{if(!l)if(d==="rtl"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$l(n.current);return}else if(e.isOpen){P();return}else return false;return false}}}),v=f=>{!l&&(f.pointerType==="virtual"||f.pointerType==="keyboard")&&M("first");},E=f=>{!l&&(f.pointerType==="touch"||f.pointerType==="mouse")&&M();},w=f=>{l||(f&&!e.isOpen?y.current||(y.current=setTimeout(()=>{M();},s)):f||p());};a$m(o,"focusin",f=>{e.isOpen&&h$2(o.current,j$2(f))&&j$2(f)!==t.current&&P();});let H=f=>f!==t.current;return Xr({menuRef:o,submenuRef:n,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,id:u,"aria-controls":e.isOpen?a:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:v,onPress:E,onHoverChange:w,isOpen:e.isOpen},submenuProps:b,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:H}}}function Qe(r){let e=a$o(r),[t,o]=useState(null),[n,i]=useState([]),l=()=>{i([]),e.close();};return {focusStrategy:t,...e,open(u=null){o(u),e.open();},toggle(u=null){o(u),e.toggle();},close(){l();},expandedKeysStack:n,openSubmenu:(u,a)=>{i(d=>a>d.length?d:[...d.slice(0,a),u]);},closeSubmenu:(u,a)=>{i(d=>d[a]===u?d.slice(0,a):d);}}}function Ct(r,e){let{triggerKey:t}=r,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:l}=e,[s]=useState(o?.length),c=useMemo(()=>o[s]===t,[o,t,s]),[u,a]=useState(null),d=useCallback(M=>{a(M??null),n(t,s);},[n,s,t]),y=useCallback(()=>{a(null),i(t,s);},[i,s,t]),p=useCallback(M=>{a(M??null),c?y():d(M);},[y,d,c]);return useMemo(()=>({focusStrategy:u,isOpen:c,open:d,close:y,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:p,point:null,setPoint:()=>{}}),[c,d,y,l,u,p,s])}var ht=createContext({});forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,ht),jsx(h.kbd,{dir:"ltr",...e$1,ref:t})});var ko=createContext({}),ms=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,ko);let{children:o,level:n=3,className:i,...l}=e$1,s=h[`h${n}`];return jsx(s,{...l,ref:t,className:i??"react-aria-Heading",children:o})});var Lt=createContext(null);createContext(null);createContext(null);var Dt=createContext(null);var rt=createContext(null),ve=createContext(null),De=createContext(null),tt=createContext(null);function Ho(r){let e=Qe(r),t=useRef(null),{menuTriggerProps:o,menuProps:n}=Pt({...r,type:"menu"},e,t),i=useRef(null);return k$2()?null:jsx(b$4,{values:[[rt,{...n,ref:i}],[Dt,e],[De,e],[Lt,{trigger:"MenuTrigger",triggerRef:t,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"],offset:r.trigger==="contextMenu"?0:void 0}]],children:jsx(b$a,{...o,ref:t,isPressed:e.isOpen,children:r.children})})}var to=createContext(null),Rt=class extends a$j{static type="submenutrigger";filter(e,t,o){let n=e.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}},No=k(Rt,(r,e,t)=>{let{CollectionBranch:o}=useContext(p),n=useContext(ve),i=useContext(De),l=Ct({triggerKey:t.key},i),s=useRef(null),c=a$5(e),{parentMenuRef:u,shouldUseVirtualFocus:a}=useContext(to),{submenuTriggerProps:d,submenuProps:y,popoverProps:p$1}=St({parentMenuRef:u,submenuRef:s,delay:r.delay,shouldUseVirtualFocus:a},l,c);return jsxs(b$4,{values:[[be,{...d,onAction:void 0,ref:c}],[rt,{ref:s,...y}],[Dt,l],[Lt,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":y["aria-labelledby"],...p$1}]],children:[jsx(o,{collection:n.collection,parent:t}),r.children[1]]})},r=>r.children[0]),zo=forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,rt),jsx(i,{content:jsx(l,{...e$1}),children:o=>jsx(_o,{props:e$1,collection:o,menuRef:t})})});function _o({props:r,collection:e$1,menuRef:t}){[r,t]=e(r,t,b$1);let{filter:o,...n}=r,i=useMemo(()=>o?e$1.filter(o):e$1,[e$1,o]),l=a$b({...r,collection:i,children:void 0}),s=useContext(De),{isVirtualized:c,CollectionRoot:u}=useContext(p),{menuProps:a}=bt({...r,isVirtualized:c,onClose:r.onClose||s?.close},l,t),d=c$3({...r,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),y=null;l.collection.size===0&&r.renderEmptyState&&(y=jsx("div",{role:"menuitem",style:{display:"contents"},children:r.renderEmptyState()}));let p$1=a$2(r,{global:true});return jsx(a$3,{children:jsxs(h.div,{...g$1(p$1,d,a),ref:t,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:r.onScroll,children:[jsx(b$4,{values:[[ve,l],[qe,{elementType:"div"}],[m,{name:"MenuSection",render:ro}],[to,{parentMenuRef:t,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect}],[b$1,null],[c$4,null],[tt,l.selectionManager],[De,s??Qe({})]],children:jsx(g,{children:jsx(u,{collection:l.collection,persistedKeys:q(l.selectionManager.focusedKey),scrollRef:t})})}),y]})})}var Et=class extends f$3{parent;constructor(e,t){super(e.collection,t),this.parent=e;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function ro(r,e,t,o="react-aria-MenuSection"){let n=useContext(ve),{CollectionBranch:i}=useContext(p),[l,s]=f(),{headingProps:c,groupProps:u}=vt({heading:s,"aria-label":t.props["aria-label"]??void 0}),a=c$3({...r,id:void 0,children:void 0,defaultClassName:o,className:t.props?.className,style:t.props?.style,values:void 0}),d=useContext(tt),y=a$c(r),p$1=r.selectionMode!=null?new Et(d,y):d,M=d$2(be)?.shouldCloseOnSelect,P=a$2(r,{global:true});return delete P.id,jsx(h.section,{...g$1(P,a,u),ref:e,children:jsx(b$4,{values:[[Pe,{...c,ref:l}],[tt,p$1],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect??M}]],children:jsx(i,{collection:n.collection,parent:t})})})}var Ot=k(f$2,ro),be=createContext(null),At=j(e$2,function(e$1,t,o){[e$1,t]=e(e$1,t,be);let n=d$2(be)?.id,i=useContext(ve),l=a$5(t),s=useContext(tt),{isVirtualized:c}=useContext(p),{menuItemProps:u,labelProps:a,descriptionProps:d,keyboardShortcutProps:y,...p$1}=xt({...e$1,id:n,key:o.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:M,isHovered:P}=a$6({isDisabled:p$1.isDisabled}),m=c$3({...e$1,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...p$1,isHovered:P,isFocusVisible:p$1.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e$1["aria-haspopup"],isOpen:e$1["aria-expanded"]==="true"}}),b=e$1.href?h.a:h.div,T=a$2(e$1,{global:true});return delete T.id,delete T.onClick,jsx(b,{...g$1(T,m,u,M),ref:l,"data-disabled":p$1.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p$1.isFocused||void 0,"data-focus-visible":p$1.isFocusVisible||void 0,"data-pressed":p$1.isPressed||void 0,"data-selected":p$1.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e$1["aria-haspopup"]||void 0,"data-open":e$1["aria-expanded"]==="true"||void 0,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:a,label:a,description:d}}],[ht,y],[h$1,{isSelected:p$1.isSelected}]],children:m.children})})});j(d$1,function(e,t,o){let n=useContext(ve),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...g$1(a$2(e,{global:true}),y),...d,role:"menuitem",ref:t,children:d.children})})]})});var kt=Me.forwardRef(({section:r,isFirstCollectionItem:e,showSectionHeader:t,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:l$1,componentName:s="ListBox",selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1,...M},P)=>{let{isVirtualized:m}=useContext(p),b=o?.(r),T=s==="ListBox"?gt:Ot,v=c==null?{}:{selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1};return jsxs(T,{id:r.id,"aria-label":r.title,...v,className:a$e(`BaselineUI-${s}-Section`,_r,m&&!e&&Kr,typeof l$1=="function"?l$1(r):l$1),style:typeof i=="function"?i(r):i,ref:P,children:[t?b?jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:b}):jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:jsx(a$d,{className:a$e(zr,`BaselineUI-${s}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:r.title})}):null,jsx(l,{items:r.children,dependencies:Je(M),children:E=>jsx(ot,{componentName:s,item:E,...M},E.id)})]})});kt.displayName="ListSection";var Wo=({componentName:r})=>{let{direction:e}=b$2();return jsx(a$d,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${r}-SubmenuChevron`,style:e==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},Go=({item:r,isSelected:e,isHovered:t,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:l,componentName:s="ListBox",hasSubmenu:c=false})=>{let u=r.icon,a=l!=="none",d=r.keyboardShortcut??r.description;return jsxs(a$d,{display:"flex",alignItems:"center",gap:"lg",className:a$e(Nr({isHovered:t,isFocused:o,isDisabled:n}),`BaselineUI-${s}-OptionDefault`),children:[jsxs(a$d,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[a&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${s}-SelectionIndicator`,children:e?jsx(CheckmarkIcon,{size:24}):null}):null,a&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:c$7({isSelected:e,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:e?jsx(CheckmarkIcon$1,{size:12}):null})}):null,u?jsx(u,{size:24}):null,jsx(b$7,{slot:"label",elementType:"span",children:r.label})]}),c?jsx(Wo,{componentName:s}):d?jsx(b$7,{slot:"description",className:a$e(Hr({isDisabled:n}),`BaselineUI-${s}-OptionDescription`),children:d}):null]})},ot=Me.forwardRef(({item:r,optionStyle:e,optionClassName:t,renderOption:o,componentName:n="ListBox",...i},l)=>{let{onPress:s,onKeyDown:c}=useContext(io);return jsx(n==="ListBox"?yt:At,{...g$1(a$f(i),{onPress:a=>s?.(a,r.id),onKeyDown:c?a=>{c(a,r.id),a.continuePropagation();}:void 0}),id:r.id,value:r,className:a=>a$e(Vr,`BaselineUI-${n}-Option`,typeof t=="function"?t(r,a):t),style:a=>typeof e=="function"?e(r,a):e,textValue:r.label,ref:l,children:a=>o?o(r,a):jsx(Go,{componentName:n,...a,item:r})})});ot.displayName="ListOption";var lo=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),io=Me.createContext({}),qo=Me.forwardRef(({withSectionHeaderPadding:r=false,showSectionHeader:e=false,renderSectionHeader:t,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:l,renderOption:s,className:c,dragAndDropHooks:u,listBoxHandle:a,"data-block-id":d,"data-block-class":y,...p$1},M)=>{let P=a$5(M),m=Me.useRef(false),b=Me.useRef(null),T=useContext(se),{isVirtualized:v,layoutDelegate:E}=useContext(p);useEffect(()=>{T&&(s||o||n)&&a$g("UNSAFE_ListBox:statefulRenderProps","ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[T,s,o,n,i,l,t]),a$h({ref:P,isDisabled:!u});let w=useCallback(g=>[...P.current?.querySelectorAll('[role="option"][data-key]')??[]].find(S=>S.dataset.key===String(g)),[P]);useEffect(()=>{if(!v)return;let g=P.current,x=g?.ownerDocument,S=x?.defaultView;if(g==null||x==null||S==null)return;let z=()=>{let L=f$4(g);return L==null||L===x.body||L===x.documentElement},_=()=>g.querySelector('[role="option"][tabindex="0"]')??g.querySelector('[role="option"][data-focused="true"]'),B=()=>{let L=f$4(g);return L!=null&&h$2(g,L)},R=L=>L.composedPath().some(de=>de instanceof S.Node&&h$2(g,de)),q=()=>{m.current=false;},ae=()=>{b.current!=null&&S.cancelAnimationFrame(b.current),b.current=S.requestAnimationFrame(()=>{if(b.current=null,B())return;if(!z()){q();return}let L=_();L?.focus({preventScroll:true});});},oe=L=>{lo.has(L.key)&&(m.current=true);},J=L=>{!lo.has(L.key)||!z()||!m.current||ae();},Y=L=>{R(L)||B()||q();},Re=L=>{R(L)||q();},Z=new MutationObserver(L=>{L.some(({addedNodes:de,removedNodes:ne})=>de.length>0||ne.length>0)&&m.current&&ae();});return g.addEventListener("keydown",oe),x.addEventListener("keydown",J,true),x.addEventListener("focusin",Y,true),x.addEventListener("pointerdown",Re,true),Z.observe(g,{childList:true,subtree:true}),()=>{g.removeEventListener("keydown",oe),x.removeEventListener("keydown",J,true),x.removeEventListener("focusin",Y,true),x.removeEventListener("pointerdown",Re,true),Z.disconnect(),b.current!=null&&S.cancelAnimationFrame(b.current),q(),b.current=null;}},[v,P]),useEffect(()=>{let g=P.current,x=g?.ownerDocument.defaultView;if(!v||!g||!x)return;let S=null,z=()=>{let R=f$4(g);return R instanceof x.HTMLElement&&R.getAttribute("role")==="option"&&h$2(g,R)?R:null},_=()=>z()?(S=x.requestAnimationFrame(()=>{let R=z();R&&e$4(g,R);}),true):false,B=()=>{_()&&g.removeEventListener("focusin",B);};return _()||g.addEventListener("focusin",B),()=>{g.removeEventListener("focusin",B),S!=null&&x.cancelAnimationFrame(S);}},[v,P]);let H=Me.useRef(null),f=useCallback(()=>{let g=H.current;g&&(g.ownerWindow.cancelAnimationFrame(g.frameId),H.current=null);},[]);useEffect(()=>f,[f]);let C=useCallback((g,x)=>{if(f(),!P.current)return;let S=()=>{let _=w(g);if(_)return _.scrollIntoView({block:"nearest",inline:"nearest",...x}),true;if(v&&E){let B=E.getItemRect(g);return B?(E.virtualizer.delegate.setVisibleRect(B),true):false}return false};if(S())return;let z=P.current.ownerDocument?.defaultView;z&&(H.current={ownerWindow:z,frameId:z.requestAnimationFrame(()=>{H.current=null,S();})});},[f,w,v,E,P]);useImperativeHandle(a,()=>({scrollIntoView:C,setFocusedKey:g=>{let x=w(g);!P.current||!x||(x.focus(),C(g));}}),[C,w,P]);let O={renderOption:s,optionClassName:n,optionStyle:o,renderSectionHeader:t,sectionClassName:l,sectionStyle:i,showSectionHeader:e,withSectionHeaderPadding:r},N=p$1.items?.[0]?.id;return jsx(ft,{...p$1,dependencies:[...p$1.dependencies??[],N,...Je(O)],"data-block-id":d,"data-block-class":y,dragAndDropHooks:u,ref:P,className:a$e(Br,"BaselineUI-ListBox",c),children:g=>jsx(Jo,{item:g,isFirstCollectionItem:N===g.id,...O},g.id)})});qo.displayName="UNSAFE_ListBox";var $o=Me.createContext({}),Jo=r=>{let e=useContext($o),{item:t,isFirstCollectionItem:o,id:n,value:i,...l}={...e,...r};return a$i(t,"Item is required"),"children"in t?jsx(kt,{section:t,componentName:"ListBox",isFirstCollectionItem:o,...l}):jsx(ot,{item:t,componentName:"ListBox",...l})};export{mt as a,se as b,Pt as c,Je as d,Ci as e,ko as f,ms as g,Lt as h,Dt as i,Ho as j,No as k,zo as l,kt as m,Go as n,ot as o,io as p,qo as q,Jo as r};
@@ -1,4 +1,4 @@
1
- import {a as a$3}from'./chunk-BIDNNBRG.mjs';import {d}from'./chunk-4HOAPQDQ.mjs';import {a as a$1}from'./chunk-NQIZ3U7Q.mjs';import {e}from'./chunk-NYNS3UDR.mjs';import {a as a$2}from'./chunk-RSKKEGJZ.mjs';import {b,c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import R from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
1
+ import {a as a$3}from'./chunk-BIDNNBRG.mjs';import {c}from'./chunk-CPX5CB4L.mjs';import {a as a$1}from'./chunk-NQIZ3U7Q.mjs';import {e}from'./chunk-EKRT3PPK.mjs';import {a as a$2}from'./chunk-3K6XNSYE.mjs';import {f,g}from'./chunk-V2C4UDOC.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import R from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,4 +7,4 @@ import {a as a$3}from'./chunk-BIDNNBRG.mjs';import {d}from'./chunk-4HOAPQDQ.mjs'
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var w=a({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6dy _1yep5z6lq z9nup88",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9","success-secondary":"oom8bsa","warning-secondary":"oom8bsb","error-secondary":"oom8bsc","success-tertiary":"oom8bsd","warning-tertiary":"oom8bse","error-tertiary":"oom8bsf"},isDisabled:{true:"oom8bsg"},isFocusVisible:{true:"oom8bsh"},isHovered:{true:"oom8bsi"},size:{sm:"oom8bsj",md:"oom8bsk",lg:"oom8bsl"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"oom8bsm"],[{variant:"secondary",isHovered:true},"oom8bsn"],[{variant:"tertiary",isHovered:true},"oom8bso"],[{variant:"ghost",isHovered:true},"oom8bsp"],[{variant:"success",isHovered:true},"oom8bsq"],[{variant:"warning",isHovered:true},"oom8bsr"],[{variant:"error",isHovered:true},"oom8bss"],[{variant:"primary",isFocusVisible:true},"oom8bst"],[{variant:"tertiary",isFocusVisible:true},"oom8bsu"],[{variant:"success",isFocusVisible:true},"oom8bsv"],[{variant:"success-secondary",isHovered:true},"oom8bsw"],[{variant:"success-secondary",isFocusVisible:true},"oom8bsx"],[{variant:"success-tertiary",isHovered:true},"oom8bsy"],[{variant:"success-tertiary",isFocusVisible:true},"oom8bsz"],[{variant:"warning",isFocusVisible:true},"oom8bs10"],[{variant:"warning-secondary",isHovered:true},"oom8bs11"],[{variant:"warning-secondary",isFocusVisible:true},"oom8bs12"],[{variant:"warning-tertiary",isHovered:true},"oom8bs13"],[{variant:"warning-tertiary",isFocusVisible:true},"oom8bs14"],[{variant:"error",isFocusVisible:true},"oom8bs15"],[{variant:"error-secondary",isHovered:true},"oom8bs16"],[{variant:"error-secondary",isFocusVisible:true},"oom8bs17"],[{variant:"error-tertiary",isHovered:true},"oom8bs18"],[{variant:"error-tertiary",isFocusVisible:true},"oom8bs19"]]}),n=a({defaultClassName:"oom8bs1a _1yep5z6lq",variantClassNames:{isDisabled:{true:"oom8bs1b"},isFocusVisible:{true:"oom8bs1c"},isHovered:{true:"_1yep5z611p"},variant:{primary:"_1yep5z611w",secondary:"_1yep5z611s",tertiary:"_1yep5z611x",ghost:"_1yep5z611x",popover:"_1yep5z611s",toolbar:"_1yep5z611s",success:"_1yep5z611v",warning:"_1yep5z611v",error:"_1yep5z611v","success-secondary":"_1yep5z6113","warning-secondary":"_1yep5z6118","error-secondary":"_1yep5z610y","success-tertiary":"_1yep5z6112","warning-tertiary":"_1yep5z6117","error-tertiary":"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:true},"_1yep5z61of"],[{variant:"ghost",isHovered:true},"_1yep5z61oh"],[{variant:"tertiary",isFocusVisible:true},"_1yep5z61of"],[{variant:"success-secondary",isHovered:true},"_1yep5z61nn"],[{variant:"success-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"success-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"warning-secondary",isHovered:true},"_1yep5z61ns"],[{variant:"warning-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"warning-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"error-secondary",isHovered:true},"_1yep5z61ni"],[{variant:"error-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"error-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"secondary",isDisabled:true},"_1yep5z61od"],[{variant:"tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"ghost",isDisabled:true},"_1yep5z61od"],[{variant:"popover",isDisabled:true},"_1yep5z61od"],[{variant:"toolbar",isDisabled:true},"_1yep5z61od"],[{variant:"success-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"success-tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"warning-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"warning-tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"error-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"error-tertiary",isDisabled:true},"_1yep5z61od"]]});var q={sm:16,md:20,lg:24},F=R.forwardRef((D,C)=>{let[k,B]=e(D,C,a$1),{label:x,style:t,className:a,iconStart:c$1,iconEnd:u,variant:r="primary",elementType:p="button",isDisabled:e$1,size:m="sm","data-block-id":N,"data-block-class":h,slot:G,...A}=k,{buttonProps:P,isPressed:j,ref:I,isFocusVisible:o,isFocused:T,isHovered:s,uiStateOptions:b$1}=d({...A,elementType:p,isDisabled:e$1}),d$1=q[m],E=a$2({"data-block-id":N,"data-block-class":h,"data-disabled":e$1,"data-focused":T,"data-focus-visible":o,"data-hovered":s,"data-pressed":j});return jsxs(p,{...c(P,E),className:a$4(w({isDisabled:!!e$1,isFocusVisible:o,isHovered:s,variant:r,size:m}),"BaselineUI-ActionButton",typeof a=="function"?a(b$1):a),style:typeof t=="function"?t(b$1):t,ref:b(B,I),children:[!!c$1&&jsx(c$1,{size:d$1,className:n({variant:r,isDisabled:e$1,isFocusVisible:o,isHovered:s})}),x,!!u&&jsx(u,{size:d$1,className:n({variant:r,isDisabled:e$1,isFocusVisible:o,isHovered:s})}),r==="popover"&&jsx(CaretDownIcon,{size:8,className:a$3})]})});F.displayName="ActionButton";export{w as a,F as b};
10
+ var w=a({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6dy _1yep5z6lq z9nup88",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9","success-secondary":"oom8bsa","warning-secondary":"oom8bsb","error-secondary":"oom8bsc","success-tertiary":"oom8bsd","warning-tertiary":"oom8bse","error-tertiary":"oom8bsf"},isDisabled:{true:"oom8bsg"},isFocusVisible:{true:"oom8bsh"},isHovered:{true:"oom8bsi"},size:{sm:"oom8bsj",md:"oom8bsk",lg:"oom8bsl"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"oom8bsm"],[{variant:"secondary",isHovered:true},"oom8bsn"],[{variant:"tertiary",isHovered:true},"oom8bso"],[{variant:"ghost",isHovered:true},"oom8bsp"],[{variant:"success",isHovered:true},"oom8bsq"],[{variant:"warning",isHovered:true},"oom8bsr"],[{variant:"error",isHovered:true},"oom8bss"],[{variant:"primary",isFocusVisible:true},"oom8bst"],[{variant:"tertiary",isFocusVisible:true},"oom8bsu"],[{variant:"success",isFocusVisible:true},"oom8bsv"],[{variant:"success-secondary",isHovered:true},"oom8bsw"],[{variant:"success-secondary",isFocusVisible:true},"oom8bsx"],[{variant:"success-tertiary",isHovered:true},"oom8bsy"],[{variant:"success-tertiary",isFocusVisible:true},"oom8bsz"],[{variant:"warning",isFocusVisible:true},"oom8bs10"],[{variant:"warning-secondary",isHovered:true},"oom8bs11"],[{variant:"warning-secondary",isFocusVisible:true},"oom8bs12"],[{variant:"warning-tertiary",isHovered:true},"oom8bs13"],[{variant:"warning-tertiary",isFocusVisible:true},"oom8bs14"],[{variant:"error",isFocusVisible:true},"oom8bs15"],[{variant:"error-secondary",isHovered:true},"oom8bs16"],[{variant:"error-secondary",isFocusVisible:true},"oom8bs17"],[{variant:"error-tertiary",isHovered:true},"oom8bs18"],[{variant:"error-tertiary",isFocusVisible:true},"oom8bs19"]]}),n=a({defaultClassName:"oom8bs1a _1yep5z6lq",variantClassNames:{isDisabled:{true:"oom8bs1b"},isFocusVisible:{true:"oom8bs1c"},isHovered:{true:"_1yep5z611p"},variant:{primary:"_1yep5z611w",secondary:"_1yep5z611s",tertiary:"_1yep5z611x",ghost:"_1yep5z611x",popover:"_1yep5z611s",toolbar:"_1yep5z611s",success:"_1yep5z611v",warning:"_1yep5z611v",error:"_1yep5z611v","success-secondary":"_1yep5z6113","warning-secondary":"_1yep5z6118","error-secondary":"_1yep5z610y","success-tertiary":"_1yep5z6112","warning-tertiary":"_1yep5z6117","error-tertiary":"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:true},"_1yep5z61of"],[{variant:"ghost",isHovered:true},"_1yep5z61oh"],[{variant:"tertiary",isFocusVisible:true},"_1yep5z61of"],[{variant:"success-secondary",isHovered:true},"_1yep5z61nn"],[{variant:"success-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"success-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"warning-secondary",isHovered:true},"_1yep5z61ns"],[{variant:"warning-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"warning-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"error-secondary",isHovered:true},"_1yep5z61ni"],[{variant:"error-tertiary",isHovered:true},"_1yep5z61oe"],[{variant:"error-tertiary",isFocusVisible:true},"_1yep5z61oe"],[{variant:"secondary",isDisabled:true},"_1yep5z61od"],[{variant:"tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"ghost",isDisabled:true},"_1yep5z61od"],[{variant:"popover",isDisabled:true},"_1yep5z61od"],[{variant:"toolbar",isDisabled:true},"_1yep5z61od"],[{variant:"success-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"success-tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"warning-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"warning-tertiary",isDisabled:true},"_1yep5z61od"],[{variant:"error-secondary",isDisabled:true},"_1yep5z61od"],[{variant:"error-tertiary",isDisabled:true},"_1yep5z61od"]]});var q={sm:16,md:20,lg:24},F=R.forwardRef((D,C)=>{let[k,B]=e(D,C,a$1),{label:x,style:t,className:a,iconStart:c$1,iconEnd:u,variant:r="primary",elementType:p="button",isDisabled:e$1,size:m="sm","data-block-id":N,"data-block-class":h,slot:G,...A}=k,{buttonProps:P,isPressed:j,ref:I,isFocusVisible:o,isFocused:T,isHovered:s,uiStateOptions:b}=c({...A,elementType:p,isDisabled:e$1}),d=q[m],E=a$2({"data-block-id":N,"data-block-class":h,"data-disabled":e$1,"data-focused":T,"data-focus-visible":o,"data-hovered":s,"data-pressed":j});return jsxs(p,{...g(P,E),className:a$4(w({isDisabled:!!e$1,isFocusVisible:o,isHovered:s,variant:r,size:m}),"BaselineUI-ActionButton",typeof a=="function"?a(b):a),style:typeof t=="function"?t(b):t,ref:f(B,I),children:[!!c$1&&jsx(c$1,{size:d,className:n({variant:r,isDisabled:e$1,isFocusVisible:o,isHovered:s})}),x,!!u&&jsx(u,{size:d,className:n({variant:r,isDisabled:e$1,isFocusVisible:o,isHovered:s})}),r==="popover"&&jsx(CaretDownIcon,{size:8,className:a$3})]})});F.displayName="ActionButton";export{w as a,F as b};
@@ -1,4 +1,4 @@
1
- import {d}from'./chunk-D2NVLRIU.mjs';import {a}from'./chunk-35AM4QEA.mjs';import {useState}from'react';/**
1
+ import {d}from'./chunk-TZSRU3GG.mjs';import {a}from'./chunk-V2C4UDOC.mjs';import {useState}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {c,a as a$2}from'./chunk-SCJ3RG7B.mjs';import {a}from'./chunk-35AM4QEA.mjs';import {j,b,i,a as a$1,g,c as c$1,h}from'./chunk-TYOEGCPS.mjs';import {useRef,useCallback}from'react';/**
1
+ import {c,a as a$2}from'./chunk-2MNK24YJ.mjs';import {a}from'./chunk-V2C4UDOC.mjs';import {j,b,i,a as a$1,g,c as c$1,h}from'./chunk-TYOEGCPS.mjs';import {useRef,useCallback}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- /**
1
+ import {u}from'./chunk-2MNK24YJ.mjs';import {a as a$1}from'./chunk-V2C4UDOC.mjs';import {useState}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,4 +7,4 @@
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- function r(n){return Object.fromEntries(Object.entries(n).filter(([,e])=>!!e))}function t(n,e){return typeof n=="boolean"?n?e:void 0:{...e,...n}}export{r as a,t as b};
10
+ function a(e,f){let[o,s]=useState(false),c=u(f);return a$1(()=>{e&&o&&(s(false),c());},[e,o]),s}export{a};
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-5MR5L5JZ.mjs';import {a as a$4}from'./chunk-UBC32WQB.mjs';import {d}from'./chunk-W6QO7FPZ.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {a as a$3}from'./chunk-WAPBLICF.mjs';import {c}from'./chunk-QVFGEXDU.mjs';import {c as c$1}from'./chunk-PJINRIA6.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {j}from'./chunk-TYOEGCPS.mjs';import V,{useState}from'react';/**
1
+ import {a as a$1}from'./chunk-SQPWV3OX.mjs';import {a as a$4}from'./chunk-TMGB4HZ7.mjs';import {d}from'./chunk-W6QO7FPZ.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {a as a$3}from'./chunk-5NVCSLXT.mjs';import {c}from'./chunk-PV4E7XDP.mjs';import {g}from'./chunk-V2C4UDOC.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {j}from'./chunk-TYOEGCPS.mjs';import V,{useState}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,4 +7,4 @@ import {a as a$1}from'./chunk-5MR5L5JZ.mjs';import {a as a$4}from'./chunk-UBC32W
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- function Q(e,t){let{inputElementType:P="input",isDisabled:M=false,isRequired:a$5=false,isReadOnly:F=false,type:y="text",validationBehavior:r="aria"}=e,[i,l]=a(e.value,e.defaultValue||"",e.onChange),{focusableProps:I}=c(e,t),o=d({...e,value:i}),{isInvalid:n,validationErrors:s,validationDetails:L}=o.displayValidation,{labelProps:E,fieldProps:g,descriptionProps:H,errorMessageProps:A}=a$1({...e,isInvalid:n,errorMessage:e.errorMessage||s,ref:t}),C=a$2(e,{labelable:true}),h={type:y,pattern:e.pattern},[v]=useState(i);return a$3(t,e.defaultValue??v,l),a$4(e,o,t),{labelProps:E,inputProps:c$1(C,P==="input"?h:void 0,{disabled:M,readOnly:F,required:a$5&&r==="native","aria-required":a$5&&r==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:O=>l(j(O).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(V.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...I,...g}),descriptionProps:H,errorMessageProps:A,isInvalid:n,validationErrors:s,validationDetails:L}}export{Q as a};
10
+ function Q(e,t){let{inputElementType:P="input",isDisabled:M=false,isRequired:a$5=false,isReadOnly:F=false,type:y="text",validationBehavior:r="aria"}=e,[i,l]=a(e.value,e.defaultValue||"",e.onChange),{focusableProps:I}=c(e,t),o=d({...e,value:i}),{isInvalid:n,validationErrors:s,validationDetails:L}=o.displayValidation,{labelProps:E,fieldProps:g$1,descriptionProps:H,errorMessageProps:A}=a$1({...e,isInvalid:n,errorMessage:e.errorMessage||s,ref:t}),C=a$2(e,{labelable:true}),h={type:y,pattern:e.pattern},[v]=useState(i);return a$3(t,e.defaultValue??v,l),a$4(e,o,t),{labelProps:E,inputProps:g(C,P==="input"?h:void 0,{disabled:M,readOnly:F,required:a$5&&r==="native","aria-required":a$5&&r==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:O=>l(j(O).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(V.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...I,...g$1}),descriptionProps:H,errorMessageProps:A,isInvalid:n,validationErrors:s,validationDetails:L}}export{Q as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-2PTLJDIT.mjs';import {j,i}from'./chunk-AIG23SN5.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,v as v$1}from'./chunk-2MNK24YJ.mjs';import {f,g}from'./chunk-V2C4UDOC.mjs';import {b}from'./chunk-TYOEGCPS.mjs';import n,{forwardRef,useEffect,useRef,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var h=n.createContext(null);function v(r){let t=useContext(h)||{};v$1(t,r);let{ref:l,...s}=t;return s}var W=n.forwardRef(function(t,l){let{children:s,...a$1}=t,c=a(l),o={...a$1,ref:c};return jsx(h.Provider,{value:o,children:s})});function w(r,t){let{focusProps:l}=a$1(r),{keyboardProps:s}=j(r),a=g(l,s),c=v(t),o=r.isDisabled?{}:c,e=useRef(r.autoFocus);useEffect(()=>{e.current&&t.current&&i(t.current),e.current=false;},[t]);let b=r.excludeFromTabOrder?-1:0;return r.isDisabled&&(b=void 0),{focusableProps:g({...a,tabIndex:b},o)}}var $=forwardRef(({children:r,...t},l)=>{l=a(l);let{focusableProps:s}=w(t,l),a$1=n.Children.only(r);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let o=l.current;if(!o||!(o instanceof b(o).Element)){console.error("<Focusable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!c(o,{skipVisibilityCheck:true})){console.warn("<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(o.localName!=="button"&&o.localName!=="input"&&o.localName!=="select"&&o.localName!=="textarea"&&o.localName!=="a"&&o.localName!=="area"&&o.localName!=="summary"&&o.localName!=="img"&&o.localName!=="svg"){let e=o.getAttribute("role");e?e!=="application"&&e!=="button"&&e!=="checkbox"&&e!=="combobox"&&e!=="gridcell"&&e!=="link"&&e!=="menuitem"&&e!=="menuitemcheckbox"&&e!=="menuitemradio"&&e!=="option"&&e!=="radio"&&e!=="searchbox"&&e!=="separator"&&e!=="slider"&&e!=="spinbutton"&&e!=="switch"&&e!=="tab"&&e!=="tabpanel"&&e!=="textbox"&&e!=="treeitem"&&e!=="img"&&e!=="meter"&&e!=="progressbar"&&console.warn(`<Focusable> child must have an interactive ARIA role. Got "${e}".`):console.warn("<Focusable> child must have an interactive ARIA role.");}},[l,t.isDisabled]);let c$1=parseInt(n.version,10)<19?a$1.ref:a$1.props.ref;return n.cloneElement(a$1,{...g(s,a$1.props),ref:f(c$1,l)})});export{h as a,W as b,w as c,$ as d};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-K3WFKO7R.mjs';import {a as a$1,b as b$1}from'./chunk-IHCKLMWD.mjs';import {d}from'./chunk-MMLAKHLR.mjs';import {b,a as a$2}from'./chunk-TYOEGCPS.mjs';import v from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function R({ref:n,onSelectionChange:f,onSelectionEnd:d$1,isDisabled:c}){let t=v.useRef(null);d({ref:n,isDisabled:c,onPressEnd(){let e=a(n.current);e&&n.current?.contains(e.anchorNode)&&d$1?.(e);},onPressStart(){let e=b(n.current);t.current=e.getSelection(),t.current&&t.current.removeAllRanges();}}),a$1(e=>[n,b$1(n,e),c,f],([,e,p,g])=>{if(!e||p)return;function i(){let o=a(e);o&&n.current?.contains(o.anchorNode)&&g(o);}let s=a$2(e);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}});}export{R as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$3}from'./chunk-CWPFUB7B.mjs';import {a as a$f}from'./chunk-NV7KQVPE.mjs';import {a as a$g}from'./chunk-4FN6UAXD.mjs';import {f as f$1,b as b$3,i,g as g$1,a as a$c,h,c as c$2,e as e$1,d}from'./chunk-VPN55UVA.mjs';import {a as a$b}from'./chunk-NMSOOQB2.mjs';import {a as a$a}from'./chunk-EPWWEFTP.mjs';import {q}from'./chunk-OYE6VSTU.mjs';import {c as c$1}from'./chunk-FFPJBDWH.mjs';import {p}from'./chunk-4Y5IKZSW.mjs';import {a as a$9}from'./chunk-QYU7CWJD.mjs';import {a as a$8,b as b$4}from'./chunk-KCHAWPUN.mjs';import {b as b$2,e}from'./chunk-G2RVM2KB.mjs';import {b}from'./chunk-3EFE2WAJ.mjs';import {b as b$1,c}from'./chunk-JYWJE6L5.mjs';import {a as a$e}from'./chunk-DIL5HL6K.mjs';import {a as a$d}from'./chunk-L7GYT3MC.mjs';import {a as a$4}from'./chunk-WSDEMATI.mjs';import {a as a$6}from'./chunk-5IC46G5J.mjs';import {a as a$7}from'./chunk-FPM5UJRF.mjs';import {a}from'./chunk-TQMBJFQC.mjs';import {a as a$1}from'./chunk-LRFFL765.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {f,g}from'./chunk-V2C4UDOC.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {sprinkles}from'@baseline-ui/tokens';import Z,{useRef,useLayoutEffect,useState,useContext,useEffect,useCallback,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {XIcon}from'@baseline-ui/icons/12';import {useReducedMotion,motion}from'motion/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 We=t=>a$a({getItems:(e,r)=>r.map(i=>({"text/plain":i.label})),renderDropIndicator(e){return jsx(c$1,{target:e,className:({isDropTarget:r})=>a$2(a$b({isDropTarget:r}),"BaselineUI-DropIndicator")})},...t});function Y(t,e){return t.find(r=>r.id===e)}function $e(t,e,r){let i=[...t],l=i.filter(o=>r.has(o.id)),n=i.filter(o=>!r.has(o.id)),s=n.findIndex(o=>o.id===e);return n.flatMap((o,p)=>p===s?[...l,o]:o)}function Xe(t,e,r){let i=[...t],l=i.filter(o=>r.has(o.id)),n=i.filter(o=>!r.has(o.id)),s=n.findIndex(o=>o.id===e);return n.flatMap((o,p)=>p===s?[o,...l]:o)}function oe(t){return t.map(e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}}))}function K(t){return t.map(e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt}))}var H={src:"src",alt:"alt"},T={sm:102,md:170};function je(t,e){let r=Y(t,e);return {[H.src]:r?.data?.src||"",[H.alt]:r?.data?.alt||"",key:String(e)}}function qe(t){let e=t[H.src];return e?{src:String(e),alt:t[H.alt]?String(t[H.alt]):""}:null}function Je({fit:t,imageDimensions:e,item:r,isSelected:i}){let l={display:"block",objectFit:t},n=typeof e=="function"?r?e(r,{isSelected:i}):void 0:e;if(!n)return l;let s=typeof n.width=="string"?T[n.width]:n.width;return l.width=s,l.aspectRatio="height"in n?`${s} / ${n.height}`:n.aspectRatio.toString(),l}var Ye=Z.forwardRef(({className:t,children:e,style:r,isDisabled:i,onTruncatedChange:l,onHoverChange:n},s)=>{let o=useRef(null),{buttonProps:p}=a({elementType:"span",isDisabled:i},o);useLayoutEffect(()=>{o.current&&l?.(o.current.scrollWidth>o.current.clientWidth);},[e,l]);let{hoverProps:I}=a$1({isDisabled:i,onHoverChange:n});return jsx(b,{elementType:"span",slot:"label",...g(p,I),className:a$2(t,"BaselineUI-AdaptiveText"),tabIndex:-1,ref:f(o,s),style:r,role:void 0,children:e})});Ye.displayName="Label";var ie=Z.memo(Z.forwardRef(({children:t,isOpen:e,isDisabled:r,...i},l)=>{let[n,s]=useState(false),[o,p]=useState(false),I=a$3(),A=r||!o||I;return jsx(a$4,{text:t,variant:"inverse",includeArrow:false,size:"sm",placement:"bottom start",isOpen:(n||e)&&o,isDisabled:A,children:jsx(Ye,{...i,isDisabled:A,onTruncatedChange:p,onHoverChange:s,ref:l,children:t})})}));ie.displayName="AdaptiveText";var It=t=>t.replaceAll(/["\\\n\r\f]/g,e=>`\\${e.codePointAt(0).toString(16)} `),vt=({fit:t,item:e,deleteElement:r,loadingLabel:i})=>{let{formatMessage:l}=b$1(),{isLoading:n,imgProps:s}=a$f({src:e.data?.src,alt:e.data?.alt||""});return jsxs("div",{className:e$1,children:[n?jsx(a$g,{"aria-label":i??l(_.loading)}):jsx("div",{role:"img",className:d({isLoading:n}),"aria-label":s.alt||"",style:{backgroundImage:s.src?`url("${It(s.src)}")`:void 0,backgroundSize:t}}),r]})},Ze=({item:t,options:{isFocusVisible:e,isSelected:r,isFocused:i,isDisabled:l,isPressed:n},fit:s="contain",onDelete:o,className:p,imageClassName:I,imageLabelClassName:A,imageDimensions:O,style:z,layoutTransition:L=true,deleteLabel:U,loadingLabel:F,renderImage:W=(w,{deleteElement:k})=>jsx(vt,{item:w,deleteElement:k,fit:s,loadingLabel:F})})=>{let{formatMessage:w}=b$1(),k=o?jsx("div",{className:a$c,children:jsx(a$d,{"aria-label":U??w(_.delete),size:"xs",icon:XIcon,onPress:()=>{o(t.id);},isDisabled:l,UNSAFE_isVisuallyInteractiveOnly:true,"data-testid":"image-gallery-delete-button"})}):null,v=K([t])[0],R=useCallback(C=>{let y={},c=typeof C=="function"?C(v,{isSelected:r}):C;return c&&(y.width=typeof c.width=="string"?T[c.width]:c.width,y.aspectRatio="height"in c?`${y.width} / ${c.height}`:c?.aspectRatio?.toString()),y},[v,r]),x=useMemo(()=>({isFocusVisible:e,isSelected:r,isFocused:i,isDisabled:l,isPressed:n}),[e,r,i,l,n]),B=!useReducedMotion()&&(typeof L=="boolean"?L:true),b=typeof L=="object"?L:void 0,$=R(O),X=B?motion.div:"div";return jsxs(X,{...B?{layout:"position",initial:false,transition:b}:{},className:a$2(c$2,a$8(p,v,x)),style:b$4(z,v,x),children:[jsx(a$e,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsx("div",{className:a$2(g$1({isFocusVisible:e,isSelected:r,isLoading:true}),a$8(I,v,x)),style:$,"data-image-key":t.id,children:W(t,{deleteElement:k??void 0,onDelete:o})})}),jsx(ie,{className:a$2(h({isFocusVisible:e,isSelected:r}),A),style:{maxWidth:$.width},isOpen:e,children:t.label})]})};var V={keys:[],isAll:false};function Pt(t,e){return t==="all"?true:"has"in t&&typeof t.has=="function"?t.has(e):[...t].includes(e)}var tt=Z.forwardRef(({className:t,style:e$1,fit:r="cover",onReorder:i$1,"data-block-id":l,"data-block-class":n,onDelete:s,imageWidth:o,aspectRatio:p$1,items:I,defaultItems:A=[],onKeyDown:O,imageContainerClassName:z,imageClassName:L,labelClassName:U,onListChange:F,renderImage:W,layoutTransition:w,imageDimensions:k,imageContainerStyle:v,deleteConfirmationTitle:R="Are you sure you want to delete this item?",deleteLabel:x,cancelLabel:le,loadingLabel:B,...b},$)=>{let{isVirtualized:X}=useContext(p),C=a$5($),[y,c]=useState(V),S=y.keys,{formatMessage:me}=b$1(),ce=o??T.sm,de=p$1??3/4,pe=o!==void 0||p$1!==void 0;useEffect(()=>{pe&&a$6("ImageGallery:deprecatedSizing","ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[pe]);let ee=Z.useMemo(()=>k??{width:ce,aspectRatio:de},[k,ce,de]),[h,j]=a$7(b.selectedKeys,b.defaultSelectedKeys??[],b.onSelectionChange),rt=Z.useMemo(()=>I?oe(I):void 0,[I]),ot=Z.useMemo(()=>oe(A),[]),[u,N]=a$7(rt,ot,F?a=>{F?.(K(a));}:void 0),at=useCallback(a=>{let m=a.target.key,d=a.keys;if(a.target.dropPosition==="before"){let f=$e(u,m,d);N(f);}else if(a.target.dropPosition==="after"){let f=Xe(u,m,d);N(f);}i$1?.(a);},[u,i$1,N]),{dragAndDropHooks:nt}=We({onReorder:at,isDisabled:!i$1,renderDragPreview:a=>jsx(i,{items:a,containerClassName:".BaselineUI-ImageGallery",previewClassName:g$1(),itemDataAttribute:"data-image-key",showCount:true,renderFallback:m=>{let d=qe(m);if(!d)return null;let f=Y(u,m.key),q=f?K([f])[0]:void 0;return jsx("img",{...d,style:Je({fit:r,imageDimensions:ee,item:q,isSelected:Pt(h,m.key)})})}}),getItems:a=>[...a].map(m=>je(u,m)),renderDropIndicator(a){return jsx(c$1,{target:a,className:a$2(b$3({isVirtualized:!!X}),"BaselineUI-DropIndicator")})}}),it=useCallback(()=>{if(s&&S.length){if(y.isAll)j(new Set);else if(h!=="all"){let a=[...h],m=a.filter(d=>!S.includes(d));m.length!==a.length&&j(new Set(m));}N(u.filter(a=>!S.includes(a.id))),s(S),c(V);}},[S,y.isAll,u,s,h,N,j]),st=useCallback((a,m)=>{let d={id:a.id,label:a.label,src:a.data?.src,alt:a.data?.alt};return jsx(Ze,{item:a,options:m,fit:r,onDelete:s?f=>{m.isDisabled||c({keys:[f],isAll:false});}:void 0,renderImage:W,className:a$8(z,d,m),imageClassName:L,imageLabelClassName:U,imageDimensions:ee,style:v,layoutTransition:w,deleteLabel:x,loadingLabel:B},a.id)},[r,s,W,z,L,U,ee,v,w,x,B]);return useEffect(()=>{let a=C.current;if(!a)return;let m=d=>{if(O?.(d),d.key==="Backspace"||d.key==="Delete"){if(!s)return;let f=new Set(b.disabledKeys);if(h==="all"){c({keys:u.map(G=>G.id).filter(G=>!f.has(G)),isAll:true});return}let q=[...h];if(q.length){let G=q.filter(lt=>!f.has(lt));G.length&&c({keys:G,isAll:false});return}let te=d.target.closest("[data-key]");if(!te||!a.contains(te))return;let fe=te.dataset.key;if(f.has(fe))return;c({keys:[fe],isAll:false});}};return a.addEventListener("keydown",m),()=>{a.removeEventListener("keydown",m);}},[C,s,O,h,u,b.disabledKeys]),jsxs(Fragment,{children:[jsx(q,{...b,ref:C,style:e$1,className:a$2(f$1,"BaselineUI-ImageGallery",t),"data-block-id":l,"data-block-class":n,selectedKeys:h,items:u,dragAndDropHooks:nt,layout:"grid",orientation:"vertical",renderOption:st,onSelectionChange:j,optionClassName:i$1&&!X?sprinkles({marginLeft:"sm"}):void 0}),jsx(b$2,{isOpen:!![...S].length,onOpenChange:a=>{a||c(V);},children:jsx(e,{isDismissable:true,children:jsx(a$9,{showCloseButton:false,title:typeof R=="function"?R(y.isAll?"all":new Set(S)):R,primaryActionLabel:x??me(_.delete),cancelLabel:le??me(_.cancel),onCancel:()=>{c(V);},onPrimaryAction:it,autoFocusButton:"cancel"})})})]})});tt.displayName="ImageGallery";var _=c({delete:{id:"bui.imageGallery.delete",defaultMessage:"Delete"},cancel:{id:"bui.imageGallery.cancel",defaultMessage:"Cancel"},loading:{id:"bui.imageGallery.loading",defaultMessage:"Loading"}});export{tt as a};
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-UPOQXYUI.mjs';import {a as a$1}from'./chunk-DHZKZ3AV.mjs';/**
1
+ import {a}from'./chunk-XDORZSJQ.mjs';import {a as a$1}from'./chunk-OY57K37D.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$4}from'./chunk-ZLDT2KDZ.mjs';import {a as a$2}from'./chunk-UQJB6AGO.mjs';import {a as a$1}from'./chunk-22VRCVTH.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import d,{useMemo,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$4}from'./chunk-ZLDT2KDZ.mjs';import {a as a$2}from'./chunk-AB7LDKP2.mjs';import {a as a$1}from'./chunk-22VRCVTH.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import d,{useMemo,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {b}from'./chunk-IDIZSV2Y.mjs';import {a}from'./chunk-66CUIXA6.mjs';import {Fragment}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {b}from'./chunk-JYWJE6L5.mjs';import {a}from'./chunk-66CUIXA6.mjs';import {Fragment}from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-DOFT4BQH.mjs';import {e}from'./chunk-NYNS3UDR.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import x from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$1}from'./chunk-3EFE2WAJ.mjs';import {e}from'./chunk-EKRT3PPK.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import x from'react';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {a as a$8}from'./chunk-G77E7EDE.mjs';import {c,d}from'./chunk-ST3TDAOP.mjs';import {a as a$7}from'./chunk-NGZRN4SF.mjs';import {a as a$2}from'./chunk-L7GYT3MC.mjs';import {a as a$b}from'./chunk-PGDGNOYE.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$9}from'./chunk-BPXZ6J5G.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a as a$6}from'./chunk-3K6XNSYE.mjs';import {a as a$5}from'./chunk-ELW6SXDM.mjs';import {c as c$2}from'./chunk-PV4E7XDP.mjs';import {a as a$4}from'./chunk-LRFFL765.mjs';import {j}from'./chunk-AIG23SN5.mjs';import {r}from'./chunk-2MNK24YJ.mjs';import {g,c as c$1}from'./chunk-V2C4UDOC.mjs';import {a as a$a}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import R,{useMemo,useRef,useEffect}from'react';import {XIcon}from'@baseline-ui/icons/8';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 I=new WeakMap;function P(a,e,t){if(!a)return "";typeof e=="string"&&(e=e.replace(/\s+/g,""));let i=I.get(a);return process.env.NODE_ENV!=="production"&&!i&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${i}-${t}-${e}`}function C(a,e,t){let{key:i,isDisabled:o,shouldSelectOnPressUp:r$1}=a,{selectionManager:l,selectedKey:b}=e,p=i===b,s=o||e.isDisabled||e.selectionManager.isDisabled(i),d$1=e.collection.getItem(i),{itemProps:n,isPressed:m}=d({selectionManager:l,key:i,ref:t,isDisabled:s,shouldSelectOnPressUp:r$1??d$1?.props.href!=null,linkBehavior:"selection"}),h=P(e,i,"tab"),c=P(e,i,"tabpanel"),{tabIndex:_}=n,x=a$a(d$1?.props,{labelable:true});delete x.id;let v=r(d$1?.props),{focusableProps:K}=c$2({...d$1?.props,isDisabled:s},t);return {tabProps:g(x,K,v,n,{id:h,"aria-selected":p,"aria-disabled":s||void 0,"aria-controls":p?c:void 0,tabIndex:s?void 0:_,role:"tab"}),isSelected:p,isDisabled:s,isPressed:m}}function A(a,e,t){let i=a$b(t)?void 0:0,o=P(e,a.id??e?.selectedKey,"tabpanel"),r=a$9({...a,id:o,"aria-labelledby":P(e,e?.selectedKey,"tab")});return {tabPanelProps:g(r,{tabIndex:i,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}var L=class{collection;flipDirection;disabledKeys;tabDirection;constructor(e,t,i,o=new Set){this.collection=e,this.flipDirection=t==="rtl",this.disabledKeys=o,this.tabDirection=i==="horizontal";}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function O(a,e,t){let{orientation:i="horizontal",keyboardActivation:o="automatic"}=a,{collection:r,selectionManager:l,disabledKeys:b$1}=e,{direction:p}=b(),s=useMemo(()=>new L(r,p,i,b$1),[r,b$1,i,p]),{collectionProps:d}=c({ref:t,selectionManager:l,keyboardDelegate:s,selectOnFocus:o==="automatic",disallowEmptySelection:true,scrollRef:t,linkBehavior:"selection"}),n=c$1();I.set(e,n);let m=a$9({...a,id:n});return {tabListProps:{...g(d,m),role:"tablist","aria-orientation":i,tabIndex:void 0}}}function N(a){let e=a$8({...a,onSelectionChange:a.onSelectionChange?l=>{l!=null&&a.onSelectionChange?.(l);}:void 0,suppressTextValueWarning:true,defaultSelectedKey:a.defaultSelectedKey??Z(a.collection,a.disabledKeys?new Set(a.disabledKeys):new Set)??void 0}),{selectionManager:t,collection:i,selectedKey:o}=e,r=useRef(o);return useEffect(()=>{let l=o;a.selectedKey==null&&(t.isEmpty||l==null||!i.getItem(l))&&(l=Z(i,e.disabledKeys),l!=null&&t.setSelectedKeys([l])),(l!=null&&t.focusedKey==null||!t.isFocused&&l!==r.current)&&t.setFocusedKey(l),r.current=l;}),{...e,isDisabled:a.isDisabled||false}}function Z(a,e){let t=null;if(a){for(t=a.getFirstKey();t!=null&&(e.has(t)||a.getItem(t)?.props?.isDisabled)&&t!==a.getLastKey();)t=a.getKeyAfter(t);t!=null&&(e.has(t)||a.getItem(t)?.props?.isDisabled)&&t===a.getLastKey()&&(t=a.getFirstKey());}return t}var ee="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",te=a({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6lq _1yep5z6lt _1yep5z6ez _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z611h"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z611l"},variant:{primary:"_1x62fhbb _1yep5z610e",ghost:"_1yep5z610h"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61o0"],[{variant:"primary",isSelected:true},"_1yep5z61pb"],[{variant:"ghost",isSelected:true,isFocusVisible:false},"_1x62fhbd"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61o7"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1x62fhbe _1yep5z6f2"],[{variant:"primary",isHovered:true},"_1yep5z61pc"]]}),ae=a({defaultClassName:"_1x62fhb3 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6w1 _1yep5z6w2 _1yep5z6w3"}},defaultVariants:{},compoundVariants:[]}),ie="_1x62fhbl",k=a({defaultClassName:"_1x62fhbf _1yep5z6fa",variantClassNames:{isHovered:{true:"_1yep5z611s"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611u"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61ob"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61og"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1yep5z61od"]]}),re="_1yep5z6ma _1yep5z6m7 _1yep5z6id _1yep5z6m9",se=a({defaultClassName:"_1x62fhb0 _1yep5z6m3 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj",variantClassNames:{variant:{primary:"_1yep5z612u",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var oe=({state:a,...e})=>{let t=R.useRef(null),{tabPanelProps:i}=A(e,a,t),{selectedItem:o}=a,{focusProps:r,isFocusVisible:l}=a$5();if(!o?.value)return null;let{className:b,style:p,"data-block-id":s}=o.value;return jsx("div",{...g(i,r),ref:t,className:a$3({[re]:l},"Baseline-Tabs-TabPanel",b),"data-block-id":s,style:p,children:o?.props.children})};var M=R.forwardRef(({className:a,style:e,tabHeaderStyle:t,tabHeaderClassName:i,variant:o="primary",actions:r,onRemove:l,"data-block-id":b,"data-block-class":p,...s},d)=>{let n=N({...s,selectedKey:s.selectedValue,defaultSelectedKey:s.defaultSelectedValue,disabledKeys:s.disabledValues}),m=R.useRef(null),{tabListProps:h}=O({...s,selectedKey:s.selectedValue,defaultSelectedKey:s.defaultSelectedValue,disabledKeys:s.disabledValues},n,m);return jsxs("div",{className:a$3("BaselineUI-Tabs",a),style:e,ref:d,"data-block-id":b,"data-block-class":p,children:[jsxs("div",{className:a$3(se({variant:o}),i),style:t,children:[jsx("div",{...h,className:ae({variant:o}),ref:m,children:[...n.collection].map(c=>(a$1(c.value,"TabItem requires a value prop"),jsx(le,{item:c,state:n,onRemove:l,variant:o},c.key)))}),r?.map((c,_)=>jsx("div",{className:ee,children:jsx(a$2,{...c,variant:"secondary",size:"sm",className:a$3(ie,c.className)})},_))]}),jsx(oe,{state:n},n.selectedItem?.key)]})});M.displayName="TabsBase";var le=({item:a,onRemove:e,state:t,variant:i})=>{let{key:o,value:r}=a,l=R.useRef(null),{tabProps:b,isSelected:p,isDisabled:s}=C({key:o},t,l),{hoverProps:d,isHovered:n}=a$4({isDisabled:s});a$1(r,"TabButton requires a value prop");let{title:m,icon:h,titleStyle:c,titleClassName:_}=r,{focusProps:x,isFocusVisible:v,isFocused:K}=a$5(),{keyboardProps:de}=j({onKeyDown:w=>{w.key==="Backspace"&&e?e(o):w.continuePropagation();}}),ce=a$6({"data-selected":p,"data-disabled":s,"data-focused":K,"data-hovered":n,"data-focus-visible":v});return jsxs("div",{...g(de,b,d,x,ce),className:a$3(te({isHovered:n,isSelected:p,isFocusVisible:v,isDisabled:s,variant:i}),"BaselineUI-Tabs-TabButton",_),style:c,ref:l,children:[h?jsx(h,{size:20,className:k({isHovered:n,isSelected:p,isDisabled:s,variant:i})}):null,m,e?jsx(a$2,{variant:"secondary",elementType:"div",icon:XIcon,size:"xxs",onPress:()=>{e(o);},excludeFromTabOrder:true,isDisabled:s,UNSAFE_isVisuallyInteractiveOnly:true,style:{display:"inline-flex",opacity:p||K||n?1:0},className:k({isHovered:n,isSelected:p,isDisabled:s,variant:i})}):null]})};le.displayName="TabButton";var pe=R.forwardRef(function({children:e,...t},i){let o=useMemo(()=>(R.Children.map(e,r=>!r||!R.isValidElement(r)||typeof r.type=="string"?null:{...r.props,id:r.props.value})??[]).filter(Boolean),[e]);return jsx(M,{...t,ref:i,items:o,children:r=>jsx(a$7,{title:r.title,children:r.children},r.key)})});pe.displayName="Tabs";var be=({children:a,title:e,value:t})=>(a$1(t,"TabItem requires a value prop"),a$1(e,"TabItem requires a title prop"),a$1(a,"TabItem requires children"),a);be.displayName="TabItem";export{pe as a,be as b};
@@ -1,4 +1,4 @@
1
- import {b,c}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-GIUNLLWW.mjs';import {a as a$1}from'./chunk-LHLY432N.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {WarningFilledIcon as WarningFilledIcon$1,CheckmarkCircleFilledIcon,InfoCircleFilledIcon as InfoCircleFilledIcon$1,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1,XIcon}from'@baseline-ui/icons/16';import {WarningFilledIcon,CheckCircleFilledIcon,InfoCircleFilledIcon,ErrorAltCircleFilledIcon}from'@baseline-ui/icons/20';import U from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {b,c}from'./chunk-JYWJE6L5.mjs';import {b as b$1}from'./chunk-P3RRGPNM.mjs';import {a as a$1}from'./chunk-L7GYT3MC.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {WarningFilledIcon as WarningFilledIcon$1,CheckmarkCircleFilledIcon,InfoCircleFilledIcon as InfoCircleFilledIcon$1,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1,XIcon}from'@baseline-ui/icons/16';import {WarningFilledIcon,CheckCircleFilledIcon,InfoCircleFilledIcon,ErrorAltCircleFilledIcon}from'@baseline-ui/icons/20';import U from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {f}from'./chunk-NQVTVL24.mjs';import {a}from'./chunk-TYOEGCPS.mjs';import {useState,useEffect}from'react';/**
1
+ import {f}from'./chunk-AIG23SN5.mjs';import {a}from'./chunk-TYOEGCPS.mjs';import {useState,useEffect}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {d as d$1}from'./chunk-A63HMTSM.mjs';import {d}from'./chunk-IIBBR266.mjs';import {a as a$2}from'./chunk-SCJ3RG7B.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {a as a$1,b}from'./chunk-TYOEGCPS.mjs';import {useRef}from'react';/**
1
+ import {d as d$1}from'./chunk-SMPF53W4.mjs';import {d}from'./chunk-MMLAKHLR.mjs';import {a as a$2}from'./chunk-2MNK24YJ.mjs';import {g}from'./chunk-V2C4UDOC.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {a as a$1,b}from'./chunk-TYOEGCPS.mjs';import {useRef}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,4 +7,4 @@ import {d as d$1}from'./chunk-A63HMTSM.mjs';import {d}from'./chunk-IIBBR266.mjs'
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var O=500;function H(L){let{isDisabled:s,pointerType:i,onLongPressStart:p,onLongPressEnd:u,onLongPress:r,threshold:b$1=O,accessibilityDescription:E,ref:v}=L,t=useRef(void 0),{addGlobalListener:o,removeAllGlobalListeners:y}=a(),l=e=>i?e.pointerType===i:e.pointerType==="mouse"||e.pointerType==="touch",{pressProps:T}=d({isDisabled:s,onPressStart(e){if(e.continuePropagation(),l(e)){p&&p({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true})),o(e.target,"click",n=>n.preventDefault(),{once:true}),a$1(e.target).activeElement!==e.target&&a$2(e.target),r&&r({...e,type:"longpress"}),t.current=void 0;},b$1),e.pointerType==="touch"&&o(e.target,"contextmenu",n=>n.preventDefault(),{once:true});let h=b(e.target);o(h,"pointerup",()=>{setTimeout(()=>{y();},100);},{once:true});}},onPressEnd(e){t.current&&clearTimeout(t.current),u&&l(e)&&u({...e,type:"longpressend"});}}),D=d$1(r&&!s?E:void 0,v);return {longPressProps:c(T,D)}}export{H as a};
10
+ var O=500;function H(L){let{isDisabled:s,pointerType:i,onLongPressStart:p,onLongPressEnd:u,onLongPress:r,threshold:b$1=O,accessibilityDescription:E,ref:v}=L,t=useRef(void 0),{addGlobalListener:o,removeAllGlobalListeners:y}=a(),l=e=>i?e.pointerType===i:e.pointerType==="mouse"||e.pointerType==="touch",{pressProps:T}=d({isDisabled:s,onPressStart(e){if(e.continuePropagation(),l(e)){p&&p({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true})),o(e.target,"click",n=>n.preventDefault(),{once:true}),a$1(e.target).activeElement!==e.target&&a$2(e.target),r&&r({...e,type:"longpress"}),t.current=void 0;},b$1),e.pointerType==="touch"&&o(e.target,"contextmenu",n=>n.preventDefault(),{once:true});let h=b(e.target);o(h,"pointerup",()=>{setTimeout(()=>{y();},100);},{once:true});}},onPressEnd(e){t.current&&clearTimeout(t.current),u&&l(e)&&u({...e,type:"longpressend"});}}),D=d$1(r&&!s?E:void 0,v);return {longPressProps:g(T,D)}}export{H as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$4}from'./chunk-QMP72J5L.mjs';import {a as a$1}from'./chunk-3IHIKAT4.mjs';import {a as a$7}from'./chunk-JZXLV6JU.mjs';import {b,c}from'./chunk-JYWJE6L5.mjs';import {a as a$3}from'./chunk-DIL5HL6K.mjs';import {a as a$6}from'./chunk-L7GYT3MC.mjs';import {d}from'./chunk-4EAXDHSV.mjs';import {a as a$2}from'./chunk-ELW6SXDM.mjs';import {f,g}from'./chunk-V2C4UDOC.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import h 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 z=a({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6mh _1yep5z6mf _1yep5z6hg _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm",variantClassNames:{background:{subtle:"_1yep5z612s",medium:"_1yep5z612t"},isFocusVisible:{true:"_1yep5z618q _1yep5z618s _1yep5z618t _1yep5z614w"}},defaultVariants:{},compoundVariants:[]}),_="siobe24",v="siobe25";var x=h.forwardRef(({className:C,style:D,children:k,background:t="medium",title:i,action:p,"data-block-id":N,"data-block-class":P,onCloseRequest:R,contentStyle:B,contentClassName:j,closeLabel:I,...F},M)=>{let{formatMessage:T}=b(),m=h.useRef(null),{dialogProps:V,titleProps:q}=a$1(F,m),{focusProps:A,isFocusVisible:L}=a$2();return jsxs("div",{...g(V,A),className:a$5(z({background:t,isFocusVisible:L}),"BaselineUI-Drawer",C),"data-block-id":N,"data-block-class":P,style:D,ref:f(M,m),children:[jsxs(a$3,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:_,children:[jsx(a$4,{type:"title",size:"sm",elementType:i?"h2":"span",...q,className:a$5(d,v),children:i}),jsxs(a$3,{children:[p?jsx(a$6,{...p,variant:"secondary"}):null,jsx(a$6,{variant:"secondary",size:"md",icon:XIcon,onPress:R,"aria-label":I??T(E.close)})]})]}),jsx(a$7,{variant:t==="subtle"?"primary":"secondary"}),jsx(a$3,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...B},className:a$5(j,"BaselineUI-Drawer-Content"),children:k})]})});x.displayName="Drawer";var E=c({close:{id:"bui.drawer.close",defaultMessage:"Close"}});export{x as a};
@@ -1,4 +1,4 @@
1
- import {a as a$2}from'./chunk-4SW77SGW.mjs';import {a as a$7}from'./chunk-3JOOFCEF.mjs';import {a as a$3}from'./chunk-JXJZIKEY.mjs';import {a as a$1}from'./chunk-JTGVIAOK.mjs';import {a as a$8}from'./chunk-JZXLV6JU.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-GIUNLLWW.mjs';import {a as a$4}from'./chunk-DIL5HL6K.mjs';import {a as a$5}from'./chunk-LHLY432N.mjs';import {c}from'./chunk-35AM4QEA.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import Y from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
1
+ import {a as a$2}from'./chunk-4SW77SGW.mjs';import {a as a$7}from'./chunk-YI5VNFT4.mjs';import {a as a$3}from'./chunk-UC6WAEPH.mjs';import {a as a$1}from'./chunk-QMP72J5L.mjs';import {a as a$8}from'./chunk-JZXLV6JU.mjs';import {b,c as c$1}from'./chunk-JYWJE6L5.mjs';import {b as b$1}from'./chunk-P3RRGPNM.mjs';import {a as a$4}from'./chunk-DIL5HL6K.mjs';import {a as a$5}from'./chunk-L7GYT3MC.mjs';import {c}from'./chunk-V2C4UDOC.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import Y from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {b,a as a$1}from'./chunk-IIBBR266.mjs';import {u}from'./chunk-SCJ3RG7B.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {b as b$1,j}from'./chunk-TYOEGCPS.mjs';import {useRef,useCallback,useMemo}from'react';/**
1
+ import {b,a as a$1}from'./chunk-MMLAKHLR.mjs';import {u}from'./chunk-2MNK24YJ.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {b as b$1,j}from'./chunk-TYOEGCPS.mjs';import {useRef,useCallback,useMemo}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-UR42GQO4.mjs';import {useCallback}from'react';/**
1
+ import {a}from'./chunk-CEUVH4UZ.mjs';import {useCallback}from'react';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-RO5ZRU3Y.mjs';import {a as a$7}from'./chunk-L7GYT3MC.mjs';import {a as a$4}from'./chunk-66CUIXA6.mjs';import {a as a$5}from'./chunk-3K6XNSYE.mjs';import {a as a$2}from'./chunk-ELW6SXDM.mjs';import {a as a$3}from'./chunk-LRFFL765.mjs';import {d}from'./chunk-MMLAKHLR.mjs';import {a as a$6,g}from'./chunk-V2C4UDOC.mjs';import {a as a$1}from'./chunk-JQQGRJ5J.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import {TrashIcon}from'@baseline-ui/icons/16';import*as R from'dompurify';import F 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 N="_1vm2oh49 _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6gc",a="_1vm2oh48 _1yep5z6m4 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6kk _1yep5z6kl _1yep5z6km",j=a$1({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6m9 _1yep5z6m7 _1yep5z6is _1yep5z6ma _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6lq _1yep5z6m5 _1yep5z6it _1yep5z6iu _1yep5z6iv",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z613z _1yep5z618y _1yep5z6190",false:"_1yep5z6135"},isFocusVisible:{true:"_1yep5z614b _1yep5z618s _1yep5z618q _1yep5z614w _1yep5z618t"},isDisabled:{true:"mnnh5s8 z9nup82 _1yep5z6zt"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:true},"_1yep5z61pm"],[{accent:"theme",isInline:true},"_1yep5z61pb"],[{accent:"positive",isInline:false},"_1yep5z61po"],[{accent:"theme",isInline:false},"_1yep5z61pd"],[{isFocusVisible:true,isInline:true},"_1yep5z61rf _1yep5z61v9 _1yep5z61vb _1yep5z61vc"],[{isHovered:true,isInline:true},"_1yep5z61vc _1yep5z61rf _1yep5z61v9 _1yep5z61vb"],[{isHovered:true,isInline:false,accent:"positive"},"_1yep5z61pn"],[{isHovered:true,isInline:false,accent:"theme"},"_1yep5z61pf"],[{isHovered:true,isInline:true,accent:"theme"},"_1yep5z61pc"]]});var T=F.forwardRef(({className:V,style:g$1,isDisabled:e,isInline:n=true,imageAlt:i,imageSrc:o,svgSrc:p,textValue:t,textStyle:q,onPress:E,onDelete:z,deleteAriaLabel:M,addAriaLabel:_,accent:U="positive","data-block-id":Y,"data-block-class":G,...r},J)=>{let{focusProps:m,isFocused:K,isFocusVisible:l}=a$2({within:true}),{isHovered:u,hoverProps:v}=a$3({isDisabled:e}),{pressProps:c$1}=d({isDisabled:e,onPress:E});a$4(o||p||t,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let f=a$5({"data-hovered":u,"data-focus-visible":l,"data-focused":K,"data-disabled":e}),[O,Q]=F.useState("");return a$6(()=>{Q(typeof p=="string"?R.default.sanitize(p):"");},[p]),jsxs("div",{...r,className:a$8(j({isInline:n,isFocusVisible:l,isDisabled:e,isHovered:u,accent:U}),"BaselineUI-Preview",V),"data-block-id":Y,"data-block-class":G,role:r["aria-label"]||r["aria-labelledby"]?"group":void 0,"aria-label":r["aria-label"]||i||t,style:g$1,ref:J,children:[typeof p=="string"?jsx("button",{disabled:e,...g(v,m,c$1,f),className:a,"aria-label":_||i||t,dangerouslySetInnerHTML:{__html:O}}):jsxs("button",{...g(v,m,c$1,f),disabled:e,style:q,"aria-label":_,className:a,children:[o?jsx("img",{src:o,alt:i,className:c({isInline:n,isDisabled:e})}):null,!!p&&typeof p=="object"&&p,t]}),z?jsx(a$7,{isDisabled:e,className:N,"aria-label":M,size:"xs",icon:TrashIcon,onPress:z}):null]})});T.displayName="Preview";export{T as a};