@baseline-ui/core 3.9.0 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) 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-YK3KAPIK.mjs → chunk-2CFMM7MZ.mjs} +2 -2
  83. package/dist/{chunk-WSRXTVYB.mjs → chunk-2KRVQJDA.mjs} +2 -2
  84. package/dist/{chunk-SCJ3RG7B.mjs → chunk-2MNK24YJ.mjs} +1 -1
  85. package/dist/{chunk-3PBFSDMT.mjs → chunk-2PTLJDIT.mjs} +1 -1
  86. package/dist/{chunk-YSQ3YHJN.mjs → chunk-2TMQUHHU.mjs} +1 -1
  87. package/dist/chunk-3A7ZISTE.mjs +10 -0
  88. package/dist/{chunk-DOFT4BQH.mjs → chunk-3EFE2WAJ.mjs} +1 -1
  89. package/dist/{chunk-CKUHFL5G.mjs → chunk-3HJAQJWA.mjs} +1 -1
  90. package/dist/chunk-3IHIKAT4.mjs +10 -0
  91. package/dist/chunk-3JHXI33A.mjs +10 -0
  92. package/dist/chunk-3K6XNSYE.mjs +10 -0
  93. package/dist/chunk-3LS73XVI.mjs +10 -0
  94. package/dist/chunk-3P25UGHE.mjs +10 -0
  95. package/dist/{chunk-BFW26T6V.mjs → chunk-43U6RZ5C.mjs} +2 -2
  96. package/dist/{chunk-54MWEZUP.mjs → chunk-46UWKP7W.mjs} +1 -1
  97. package/dist/chunk-4CMATAQ2.mjs +10 -0
  98. package/dist/{chunk-F3EOLTFM.mjs → chunk-4FN6UAXD.mjs} +1 -1
  99. package/dist/{chunk-NWYRVUTX.mjs → chunk-4Y5IKZSW.mjs} +1 -1
  100. package/dist/{chunk-ZRD2DMEX.mjs → chunk-5B6263RO.mjs} +13 -13
  101. package/dist/{chunk-WAPBLICF.mjs → chunk-5NVCSLXT.mjs} +1 -1
  102. package/dist/{chunk-OBEPT4LR.mjs → chunk-5YV74V36.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-NTUW55EB.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-DV72V6NI.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-GXQQZWIP.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-6MTVNQKW.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-IIBBR266.mjs → chunk-MMLAKHLR.mjs} +3 -3
  176. package/dist/{chunk-Z7JRM3NW.mjs → chunk-MQCTOCK2.mjs} +2 -2
  177. package/dist/{chunk-X34RHNLT.mjs → chunk-NIAMDJYU.mjs} +2 -2
  178. package/dist/{chunk-WD2TPSZV.mjs → chunk-NIGOM3FD.mjs} +1 -1
  179. package/dist/{chunk-6NUHEJGL.mjs → chunk-NOTKA3RL.mjs} +1 -1
  180. package/dist/chunk-NYH6JQMA.mjs +10 -0
  181. package/dist/{chunk-SZNDCHMJ.mjs → chunk-OFEX3RHY.mjs} +1 -1
  182. package/dist/{chunk-GLIN7JAI.mjs → chunk-OJIOLYTM.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 +116 -40
  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 +5 -5
  269. package/sbom.json +13 -13
  270. package/dist/chunk-25NW6ZEB.mjs +0 -10
  271. package/dist/chunk-2O4HB7UL.mjs +0 -10
  272. package/dist/chunk-35AM4QEA.mjs +0 -10
  273. package/dist/chunk-3V4W6OGG.mjs +0 -10
  274. package/dist/chunk-4HOAPQDQ.mjs +0 -10
  275. package/dist/chunk-5GZAORDK.mjs +0 -10
  276. package/dist/chunk-6LFOODXI.mjs +0 -10
  277. package/dist/chunk-6PBBHYCA.mjs +0 -10
  278. package/dist/chunk-B3W7VMJR.mjs +0 -10
  279. package/dist/chunk-C4XJOYAW.mjs +0 -10
  280. package/dist/chunk-D6AOHRAV.mjs +0 -10
  281. package/dist/chunk-DHZKZ3AV.mjs +0 -10
  282. package/dist/chunk-DRQHSYY3.mjs +0 -10
  283. package/dist/chunk-DZJTPX2G.mjs +0 -10
  284. package/dist/chunk-F4YBUGLD.mjs +0 -10
  285. package/dist/chunk-G76NJ3IU.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-JVD752FA.mjs +0 -10
  290. package/dist/chunk-JXJZIKEY.mjs +0 -10
  291. package/dist/chunk-K276BGP2.mjs +0 -10
  292. package/dist/chunk-KBLJ34QI.mjs +0 -10
  293. package/dist/chunk-KMZ3YVPE.mjs +0 -10
  294. package/dist/chunk-L5H5GE3H.mjs +0 -10
  295. package/dist/chunk-LHLY432N.mjs +0 -10
  296. package/dist/chunk-LXZOYBTL.mjs +0 -10
  297. package/dist/chunk-MPJXTZ6L.mjs +0 -10
  298. package/dist/chunk-MZIQ27JP.mjs +0 -10
  299. package/dist/chunk-NN6HKMC4.mjs +0 -10
  300. package/dist/chunk-NYNS3UDR.mjs +0 -10
  301. package/dist/chunk-OAOIUNNG.mjs +0 -10
  302. package/dist/chunk-OMCGORTH.mjs +0 -10
  303. package/dist/chunk-P6LYION6.mjs +0 -10
  304. package/dist/chunk-PJINRIA6.mjs +0 -10
  305. package/dist/chunk-PSUZMSD3.mjs +0 -10
  306. package/dist/chunk-Q3FYMLAA.mjs +0 -10
  307. package/dist/chunk-QVFGEXDU.mjs +0 -10
  308. package/dist/chunk-SYA6LAFU.mjs +0 -10
  309. package/dist/chunk-TEQHGF4G.mjs +0 -10
  310. package/dist/chunk-UCRJ3AR5.mjs +0 -10
  311. package/dist/chunk-UI4SJCQU.mjs +0 -10
  312. package/dist/chunk-V6DZG4PM.mjs +0 -11
  313. package/dist/chunk-VKWXATZ3.mjs +0 -10
  314. package/dist/chunk-VNJDCKLQ.mjs +0 -10
  315. package/dist/chunk-VQ45RUYJ.mjs +0 -10
  316. package/dist/chunk-VQHI3ZCW.mjs +0 -10
  317. package/dist/chunk-WBOFQ4BH.mjs +0 -10
  318. package/dist/chunk-XC5H4EVW.mjs +0 -10
  319. package/dist/chunk-Z7UPVYL5.mjs +0 -10
@@ -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};
@@ -1,4 +1,4 @@
1
- import {a as a$3}from'./chunk-LN2NT32E.mjs';import {a as a$7}from'./chunk-E3FP4B25.mjs';import {a as a$2}from'./chunk-7SKQUEHP.mjs';import {a as a$1}from'./chunk-5IC46G5J.mjs';import {b}from'./chunk-DLJHL4V7.mjs';import {a as a$6}from'./chunk-RSKKEGJZ.mjs';import {a as a$4}from'./chunk-FDDB7QNQ.mjs';import {a as a$5}from'./chunk-LRFFL765.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {CheckmarkIcon}from'@baseline-ui/icons/20';import S from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
1
+ import {a as a$3}from'./chunk-CE2W5D44.mjs';import {a as a$7}from'./chunk-E3FP4B25.mjs';import {a as a$2}from'./chunk-7SKQUEHP.mjs';import {a as a$1}from'./chunk-5IC46G5J.mjs';import {b}from'./chunk-I5YPTKMM.mjs';import {a as a$6}from'./chunk-3K6XNSYE.mjs';import {a as a$4}from'./chunk-ELW6SXDM.mjs';import {a as a$5}from'./chunk-LRFFL765.mjs';import {g}from'./chunk-V2C4UDOC.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {CheckmarkIcon}from'@baseline-ui/icons/20';import S 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-LN2NT32E.mjs';import {a as a$7}from'./chunk-E3FP4B
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var x="_1yep5z6jb _1yep5z6jc _1yep5z6jd",z=a({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),C=a({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6ey _1yep5z6lq _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z611h"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61o6"],[{isSelected:true,isDisabled:true},"_1yep5z61o6"],[{isSelected:false,isDisabled:true},"_1yep5z61o4"]]}),h=a({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var P=S.forwardRef(({className:V,count:D,style:O,size:i="md",icon:H,"data-block-id":I,"data-block-class":T,...r},j)=>{let l={isRequired:false},F=H||(i==="md"?CheckmarkIcon:CheckmarkIcon$1);!r["aria-label"]&&!r["aria-labelledby"]&&a$1("Reaction:missingLabel","You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let s=S.useRef(null),d=a$2({...r,...l}),{inputProps:w,isPressed:M,isDisabled:a,isReadOnly:t,isSelected:c$1}=a$3({...r,...l},d,s),{focusProps:L,isFocused:q,isFocusVisible:n}=a$4(),{hoverProps:A,isHovered:b$1}=a$5({isDisabled:a}),B=a$6({"data-block-id":I,"data-block-class":T,"data-focused":q,"data-focus-visible":n,"data-disabled":a,"data-hovered":b$1,"data-pressed":M,"data-selected":c$1});return jsxs("label",{ref:j,style:O,className:a$8(x,"BaselineUI-Reaction",V),...B,children:[jsx(b,{children:jsx("input",{...c(w,L),ref:s})}),jsxs("div",{...A,className:z({isSelected:c$1,isFocusVisible:n,isHovered:b$1,isReadOnly:t,isDisabled:a}),children:[jsx("div",{className:h({isDisabled:a,isReadOnly:t}),children:jsx(F,{size:i==="md"?20:16})}),jsx("div",{className:C({isSelected:d.isSelected,isDisabled:a,isReadOnly:t,size:i}),children:jsx(a$7,{value:D})})]})]})});P.displayName="Reaction";export{P as a};
10
+ var x="_1yep5z6jb _1yep5z6jc _1yep5z6jd",z=a({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),C=a({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6ey _1yep5z6lq _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z611h"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61o6"],[{isSelected:true,isDisabled:true},"_1yep5z61o6"],[{isSelected:false,isDisabled:true},"_1yep5z61o4"]]}),h=a({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var P=S.forwardRef(({className:V,count:D,style:O,size:i="md",icon:H,"data-block-id":I,"data-block-class":T,...r},j)=>{let l={isRequired:false},F=H||(i==="md"?CheckmarkIcon:CheckmarkIcon$1);!r["aria-label"]&&!r["aria-labelledby"]&&a$1("Reaction:missingLabel","You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let s=S.useRef(null),d=a$2({...r,...l}),{inputProps:w,isPressed:M,isDisabled:a,isReadOnly:t,isSelected:c}=a$3({...r,...l},d,s),{focusProps:L,isFocused:q,isFocusVisible:n}=a$4(),{hoverProps:A,isHovered:b$1}=a$5({isDisabled:a}),B=a$6({"data-block-id":I,"data-block-class":T,"data-focused":q,"data-focus-visible":n,"data-disabled":a,"data-hovered":b$1,"data-pressed":M,"data-selected":c});return jsxs("label",{ref:j,style:O,className:a$8(x,"BaselineUI-Reaction",V),...B,children:[jsx(b,{children:jsx("input",{...g(w,L),ref:s})}),jsxs("div",{...A,className:z({isSelected:c,isFocusVisible:n,isHovered:b$1,isReadOnly:t,isDisabled:a}),children:[jsx("div",{className:h({isDisabled:a,isReadOnly:t}),children:jsx(F,{size:i==="md"?20:16})}),jsx("div",{className:C({isSelected:d.isSelected,isDisabled:a,isReadOnly:t,size:i}),children:jsx(a$7,{value:D})})]})]})});P.displayName="Reaction";export{P as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-5IC46G5J.mjs';import {c,a as a$2}from'./chunk-V2C4UDOC.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {createContext,forwardRef,useEffect,useImperativeHandle,useRef,useMemo,useContext}from'react';import {usePanelRef,Panel,useGroupRef,useDefaultLayout,Group,Separator}from'react-resizable-panels';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var g=createContext({});function I(){return useContext(g)}function P(e){return typeof e=="number"?`${e}%`:e}var j=forwardRef(({className:e,isCollapsible:r=false,id:t,onResize:n,defaultSize:s,minSize:y,maxSize:i,collapsedSize:l,...p},m)=>{let d=usePanelRef(),o=c(),a$2=t??o,{autoSaveId:c$1}=I();return useEffect(()=>{c$1&&!t&&a("Panel:missingId","Panel: A stable `id` prop is required for size persistence to work correctly when `autoSaveId` is set on the parent `PanelGroup`. Without it, panel sizes will not be saved or restored.");},[c$1,t]),useImperativeHandle(m,()=>({resize:f=>d.current?.resize(f)})),jsx(Panel,{className:a$1("BaselineUI-Panel",e),collapsible:r,panelRef:d,id:a$2,defaultSize:P(s),minSize:P(y),maxSize:P(i),collapsedSize:P(l),onResize:n?f=>{n(f.asPercentage);}:void 0,...p})});j.displayName="Panel";var q={getItem:()=>null,setItem:()=>{}},D={getItem:e=>{try{return localStorage.getItem(e)}catch{return null}},setItem:(e,r)=>{try{localStorage.setItem(e,r);}catch(t){if(t?.name!=="SecurityError")throw t}}};function R(e,r){let t=Object.keys(e.getLayout());if(t.length>0){let n={};for(let s of t)s in r&&(n[s]=r[s]);e.setLayout(n);}else e.setLayout(r);}var K=forwardRef(({className:e,autoSaveId:r,direction:t,onLayout:n,...s},y)=>{let i=useGroupRef();useImperativeHandle(y,()=>({setLayout:o=>{let a=i.current;a&&R(a,o);}}));let l=b(),p=useDefaultLayout({id:r??"",storage:r&&!l?D:q}),m=useRef(l);a$2(()=>{if(l||!m.current)return;m.current=false;let o=i.current,a=p.defaultLayout;if(!o||!a)return;let c=Object.keys(o.getLayout());c.length===Object.keys(a).length&&c.every(f=>f in a)&&R(o,a);},[i,l,p.defaultLayout]);let d=useMemo(()=>({autoSaveId:r}),[r]);return jsx(g.Provider,{value:d,children:jsx(Group,{className:a$1("BaselineUI-PanelGroup",e),groupRef:i,orientation:t,defaultLayout:r?p.defaultLayout:void 0,onLayoutChanged:o=>{r&&p.onLayoutChanged(o),n&&n(o);},...s})})});K.displayName="PanelGroup";var k="_6abhjk0";var $=({className:e,isDisabled:r=false,...t})=>jsx(Separator,{disabled:r,className:a$1(k,"BaselineUI-PanelResizeHandle",e),...t});$.displayName="PanelResizeHandle";export{j as a,K as b,$ as c};
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-YQFS4UHL.mjs';import {e}from'./chunk-OO3ZVB2T.mjs';import {c}from'./chunk-PLRUMLNB.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {jsx}from'react/jsx-runtime';/**
1
+ import {a}from'./chunk-EPWWEFTP.mjs';import {e}from'./chunk-OYE6VSTU.mjs';import {c}from'./chunk-FFPJBDWH.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {jsx}from'react/jsx-runtime';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -0,0 +1,10 @@
1
+ import {a as a$4}from'./chunk-G77E7EDE.mjs';import {a as a$6}from'./chunk-Y5LEKSMM.mjs';import {d}from'./chunk-ST3TDAOP.mjs';import {a as a$1}from'./chunk-NGZRN4SF.mjs';import {c,b}from'./chunk-JYWJE6L5.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-I5YPTKMM.mjs';import {a as a$5}from'./chunk-FPM5UJRF.mjs';import {a as a$9}from'./chunk-ELW6SXDM.mjs';import {a as a$8}from'./chunk-LRFFL765.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {g}from'./chunk-V2C4UDOC.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import fe,{useMemo,useCallback,useEffect,useRef}from'react';import {CheckmarkIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {jsx,jsxs}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var Y={"ar-AE":{steplist:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062E\u0637\u0648\u0627\u062A"},"bg-BG":{steplist:"\u0421\u043F\u0438\u0441\u044A\u043A \u0441\u044A\u0441 \u0441\u0442\u044A\u043F\u043A\u0438"},"cs-CZ":{steplist:"Seznam krok\u016F"},"da-DK":{steplist:"Trinliste"},"de-DE":{steplist:"Schrittliste"},"el-GR":{steplist:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03B2\u03B7\u03BC\u03AC\u03C4\u03C9\u03BD"},"en-US":{steplist:"Step List"},"es-ES":{steplist:"Lista de pasos"},"et-EE":{steplist:"Sammude loend"},"fi-FI":{steplist:"Vaiheluettelo"},"fr-FR":{steplist:"Liste des \xE9tapes"},"he-IL":{steplist:"\u05E8\u05E9\u05D9\u05DE\u05EA \u05E6\u05E2\u05D3\u05D9\u05DD"},"hr-HR":{steplist:"Lista koraka"},"hu-HU":{steplist:"L\xE9p\xE9sek list\xE1ja"},"it-IT":{steplist:"Elenco dei passaggi"},"ja-JP":{steplist:"\u624B\u9806\u30EA\u30B9\u30C8"},"ko-KR":{steplist:"\uB2E8\uACC4 \uBAA9\uB85D"},"lt-LT":{steplist:"\u017Dingsni\u0173 s\u0105ra\u0161as"},"lv-LV":{steplist:"Darb\u012Bbu saraksts"},"nb-NO":{steplist:"Trinnliste"},"nl-NL":{steplist:"Stappenlijst"},"pl-PL":{steplist:"Lista krok\xF3w"},"pt-BR":{steplist:"Lista de etapas"},"pt-PT":{steplist:"Lista de passos"},"ro-RO":{steplist:"Lista de pa\u0219i"},"ru-RU":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u0448\u0430\u0433\u043E\u0432"},"sk-SK":{steplist:"Zoznam krokov"},"sl-SI":{steplist:"Seznam korakov"},"sr-SP":{steplist:"Lista koraka"},"sv-SE":{steplist:"Steglista"},"tr-TR":{steplist:"Ad\u0131m Listesi"},"uk-UA":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u043A\u0440\u043E\u043A\u0456\u0432"},"zh-CN":{steplist:"\u6B65\u9AA4\u5217\u8868"},"zh-TW":{steplist:"\u6B65\u9A5F\u6E05\u55AE"}};function D(p,t,a){let{"aria-label":s}=p,{listProps:i}=a$6({...p,...t,allowsTabNavigation:true,ref:a}),r=b$1(Y,"@react-aria/steplist");return {listProps:{...{...g(i,a$7(p,{labelable:true})),"aria-label":s||r.format("steplist")},tabIndex:void 0}}}function N(p){let t=a$4({...p,onSelectionChange:p.onSelectionChange?e=>{e!=null&&p.onSelectionChange?.(e);}:void 0}),[a,s]=a$5(p.lastCompletedStep,p.defaultLastCompletedStep??null,p.onLastCompletedStepChange),{setSelectedKey:i,selectedKey:r,collection:l}=t,{indexMap:n,keysLinkedList:_}=useMemo(()=>me(l),[l]),z=r!=null?n.get(r):0,c=useCallback(e=>e===void 0?false:e!==null&&a!==null&&n.has(e)&&n.has(a)&&n.get(e)<=n.get(a),[n,a]),g=useCallback((e,d)=>{let y=null;if(e&&e.size>0)for(y=e.getFirstKey();y!==e.getLastKey()&&y&&(d.has(y)||c(y));)y=e.getKeyAfter(y);return y},[c]);useEffect(()=>{let e=t.selectedKey;(t.selectionManager.isEmpty||e==null||!t.collection.getItem(e))&&(e=g(t.collection,t.disabledKeys),e!==null&&t.selectionManager.replaceSelection(e)),t.selectionManager.focusedKey==null&&t.selectionManager.setFocusedKey(e);let d=(a!==null?n.get(a):-1)??-1;z!==void 0&&z>0&&z>d+1&&e!==null&&_.has(e)&&s(_.get(e));});function m(e){if(p.isDisabled||t.disabledKeys.has(e)||p.isReadOnly)return false;if(c(e))return true;let d=_.get(e);return c(d)||e===t.collection.getFirstKey()}function h(e){let d=_.get(e);d&&!c(d)&&s(d),i(e);}return {...t,setSelectedKey:h,setLastCompletedStep:s,isCompleted:c,isSelectable:m}}function me(p){let t=new Map,a=new Map,s=0,i;for(let r of p)t.set(r.key,s),a.set(r.key,i?.key),i=r,s++;return {indexMap:t,keysLinkedList:a}}var ee=a({defaultClassName:"_41r3q2q _1yep5z6kb _1yep5z6kc _1yep5z6kd",variantClassNames:{variant:{condensed:"_41r3q2r _1yep5z618j",expanded:"_41r3q2s _1yep5z6us _1yep5z6ut _1yep5z6uu _1yep5z6sg _1yep5z6sh _1yep5z6si _1yep5z6173 _1yep5z6174 _1yep5z6175"},status:{complete:"_1yep5z6136",active:"_41r3q2u",incomplete:"_41r3q2v"},isDisabled:{true:"_41r3q2w"}},defaultVariants:{},compoundVariants:[[{status:"complete",isDisabled:true},"_1yep5z61pt"]]}),te=a({defaultClassName:"_1yep5z6ez",variantClassNames:{size:{sm:"_1yep5z610e",md:"_1yep5z610h"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),se=a({defaultClassName:"_41r3q28 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6mf _1yep5z6mh _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6m0",variantClassNames:{size:{sm:"_41r3q29 _1yep5z610e",md:"_41r3q2a _1yep5z610h"},status:{complete:"_41r3q2b _1yep5z6136 _1yep5z611n",active:"_1yep5z612s _1yep5z611h _1yep5z6142",incomplete:"_1yep5z612s _1yep5z611h _1yep5z613z"},isDisabled:{true:"_41r3q2e"},isFocusVisible:{true:"_41r3q2f"}},defaultVariants:{},compoundVariants:[[{status:"complete",isDisabled:true},"_41r3q2g _1yep5z61pt _1yep5z61o6"],[{status:"active",isDisabled:true},"_1yep5z61pb _1yep5z61o4 _1yep5z61qp"],[{status:"incomplete",isDisabled:true},"_1yep5z61pb _1yep5z61o4 _1yep5z61qp"]]}),pe=a({defaultClassName:"_41r3q23 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{variant:{condensed:"_1yep5z618j _1yep5z6vy _1yep5z6vz _1yep5z6w0",expanded:"_41r3q25 _1yep5z6173 _1yep5z6174 _1yep5z6175"},isLast:{true:"_41r3q26"}},defaultVariants:{},compoundVariants:[]}),ae="_41r3q27 _1yep5z60 _1yep5z61 _1yep5z62 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6m5",ie=a({defaultClassName:"_41r3q20 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj",variantClassNames:{variant:{condensed:"_1yep5z616i _1yep5z616j _1yep5z616k _1yep5z6vy _1yep5z6vz _1yep5z6w0",expanded:"_1yep5z616c _1yep5z616d _1yep5z616e _1yep5z618m _1yep5z618l _1yep5z6wy _1yep5z6wz _1yep5z6x0"}},defaultVariants:{},compoundVariants:[]}),re="_41r3q2h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jw _1yep5z6jx _1yep5z6jy _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6kk _1yep5z6kl _1yep5z6km _1yep5z69c _1yep5z69d _1yep5z69e",oe=a({defaultClassName:"_1yep5z6ey",variantClassNames:{size:{sm:"_1yep5z610h",md:"_1yep5z610k"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]});function A(p,t,a){let{key:s}=p,{selectionManager:i,selectedKey:r}=t,l=!t.isSelectable(s),{itemProps:n}=d({isDisabled:l,key:s,ref:a,selectionManager:i});return {stepProps:{...n,role:"link","aria-current":r===s?"step":void 0,"aria-disabled":l?true:void 0,tabIndex:l?void 0:0}}}function ne({state:p,item:t,size:a,variant:s,index:i,isLast:r,stepLabel:l,completedLabel:n,isDisabled:_}){let z=useRef(null),c=b(),{stepProps:g$1}=A({key:t.key},p,z),m=_||p.disabledKeys.has(t.key),{hoverProps:h,isHovered:e}=a$8({isDisabled:m}),{focusProps:d,isFocused:y,isFocusVisible:v}=a$9(),k=p.isCompleted(t.key),q=p.selectedKey===t.key,b$1=k?"complete":q?"active":"incomplete",S=t["aria-label"],C=!!S&&!t.description,j=s==="expanded"&&!!t.title&&!C,P=s==="expanded"&&!!t.description,o=t.title||((typeof l=="function"?l({index:i+1}):l)??c.formatMessage(le.step,{index:i+1})),x=n??c.formatMessage(le.completed),M=a==="sm"?CheckmarkIcon:CheckmarkIcon$1;return jsxs("li",{className:a$3("BaselineUI-Stepper-Item",pe({variant:s,isLast:r})),"data-status":b$1,children:[jsxs("a",{...g(g$1,h,d),ref:z,"aria-label":k&&S?[x,S].join(" "):S||void 0,className:a$3("BaselineUI-Stepper-StepLink",ae),"data-status":b$1,"data-hovered":e||void 0,"data-focused":y||void 0,"data-focus-visible":v||void 0,"data-disabled":m||void 0,children:[jsx("span",{className:a$3("BaselineUI-Stepper-Indicator",se({size:a,status:b$1,isDisabled:m,isFocusVisible:v})),"aria-hidden":"true",children:k?jsx(M,{}):jsx("span",{children:i+1})}),k?jsx(b$2,{children:x}):null,j?jsxs("span",{className:a$3("BaselineUI-Stepper-Text",re),children:[jsx("span",{className:a$3("BaselineUI-Stepper-Title",oe({size:a,isDisabled:m})),children:t.title}),P?jsx("span",{className:a$3("BaselineUI-Stepper-Description",te({size:a,isDisabled:m})),children:t.description}):null]}):S?null:jsx(b$2,{children:o})]}),!r&&jsx("span",{className:a$3("BaselineUI-Stepper-Connector",ee({variant:s,status:b$1,isDisabled:m})),"aria-hidden":"true"})]})}var le=c({step:{defaultMessage:"Step {index}",id:"bui.stepper.step"},completed:{defaultMessage:"Completed",id:"bui.stepper.completed"}});var de=fe.forwardRef(function(t,a){let{items:s,variant:i="expanded",size:r="md",selectedStep:l,defaultSelectedStep:n,onSelectionChange:_,lastCompletedStep:z,defaultLastCompletedStep:c,onLastCompletedStepChange:g,isDisabled:m,className:h,style:e,"aria-label":d,stepLabel:y,completedLabel:v}=t,k=b(),q=useMemo(()=>new Set(s.filter(o=>o.isDisabled).map(o=>o.key)),[s]),b$1=useMemo(()=>s.map(o=>jsx(a$1,{textValue:o.title??String(o.key),children:o.title??""},o.key)),[s]),S=useMemo(()=>new Map(s.map(o=>[o.key,o])),[s]),C=N({children:b$1,selectedKey:l,defaultSelectedKey:n,onSelectionChange:_,lastCompletedStep:z,defaultLastCompletedStep:c,onLastCompletedStepChange:g,disabledKeys:q,isDisabled:m}),j=a$2(a),{listProps:P}=D({children:b$1,"aria-label":d||k.formatMessage(be.label)},C,j);return jsx("ol",{...P,ref:j,className:a$3("BaselineUI-Stepper",ie({variant:i}),h),style:e,"data-variant":i,"data-size":r,children:[...C.collection].map((o,x,M)=>{let E=S.get(o.key);return E?jsx(ne,{state:C,item:E,size:r,variant:i,index:x,isLast:x===M.length-1,stepLabel:y,completedLabel:v,isDisabled:m},o.key):null})})});de.displayName="Stepper";var be=c({label:{defaultMessage:"Progress",id:"bui.stepper.label"}});export{de as a};
@@ -1,4 +1,4 @@
1
- import {a,b as b$1}from'./chunk-A63HMTSM.mjs';import {b,j,h}from'./chunk-TYOEGCPS.mjs';import {useRef,useEffect}from'react';/**
1
+ import {a,b as b$1}from'./chunk-SMPF53W4.mjs';import {b,j,h}from'./chunk-TYOEGCPS.mjs';import {useRef,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 {h,j}from'./chunk-SCJ3RG7B.mjs';import {a as a$1}from'./chunk-35AM4QEA.mjs';import {b,a,h as h$1}from'./chunk-TYOEGCPS.mjs';import {useState}from'react';/**
1
+ import {h,j}from'./chunk-2MNK24YJ.mjs';import {a as a$1}from'./chunk-V2C4UDOC.mjs';import {b,a,h as h$1}from'./chunk-TYOEGCPS.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 {a}from'./chunk-U6M2GCPD.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {e}from'./chunk-35AM4QEA.mjs';/**
1
+ import {a}from'./chunk-EJGGWOY5.mjs';import {d,g as g$1}from'./chunk-V2C4UDOC.mjs';/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,4 +7,4 @@ import {a}from'./chunk-U6M2GCPD.mjs';import {c}from'./chunk-PJINRIA6.mjs';import
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- function g(e$1){let{description:t,errorMessage:r,isInvalid:a$1,validationState:s,ref:l}=e$1,{labelProps:A,fieldProps:i}=a(e$1),d=Array.isArray(r)?r.length>0:!!r,n=e([!!t,d,a$1,s],l),p=e([!!t,d,a$1,s],l);return i=c(i,{"aria-describedby":[n,p,e$1["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:A,fieldProps:i,descriptionProps:{id:n},errorMessageProps:{id:p}}}export{g as a};
10
+ function g(e){let{description:t,errorMessage:r,isInvalid:a$1,validationState:s,ref:l}=e,{labelProps:A,fieldProps:i}=a(e),d$1=Array.isArray(r)?r.length>0:!!r,n=d([!!t,d$1,a$1,s],l),p=d([!!t,d$1,a$1,s],l);return i=g$1(i,{"aria-describedby":[n,p,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:A,fieldProps:i,descriptionProps:{id:n},errorMessageProps:{id:p}}}export{g as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1,c}from'./chunk-KRVEGSVY.mjs';import {d as d$2}from'./chunk-TZSRU3GG.mjs';import {a as a$4}from'./chunk-QSNYILCF.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$1,d,a as a$2,i as i$2}from'./chunk-JANI446W.mjs';import {e,f}from'./chunk-SMPF53W4.mjs';import {a}from'./chunk-CEUVH4UZ.mjs';import {j,i as i$1,c as c$1}from'./chunk-AIG23SN5.mjs';import {d as d$1}from'./chunk-MMLAKHLR.mjs';import {o,p,d as d$3,a as a$5,e as e$2,i as i$3}from'./chunk-2MNK24YJ.mjs';import {g,c as c$2,e as e$1}from'./chunk-V2C4UDOC.mjs';import {i,b as b$2,a as a$3,j as j$1,h}from'./chunk-TYOEGCPS.mjs';import {useRef,useEffect}from'react';import {flushSync}from'react-dom';/**
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 Y(u){return i$3()?u.altKey:u.ctrlKey}function le(u,e){let r=`[data-key="${CSS.escape(String(e))}"]`,l=u.current?.dataset.collection;return l&&(r=`[data-collection="${CSS.escape(l)}"]${r}`),u.current?.querySelector(r)}var Ce=new WeakMap;function Ie(u){let e=c$2();return Ce.set(u,e),e}function ke(u){return Ce.get(u)}var xe=1e3;function Re(u){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:l}=u,i=useRef({search:"",timeout:void 0}),T=c=>{if(i.current.search.length>0&&c.key===" "){if(c.preventDefault(),(!("continuePropagation"in c)||"continuePropagation"in c&&!c.isPropagationStopped())&&c.stopPropagation(),i.current.search+=" ",e.getKeyForSearch!=null){let a=e.getKeyForSearch(i.current.search,r.focusedKey);a==null&&(a=e.getKeyForSearch(i.current.search)),a!=null&&(r.setFocusedKey(a),l&&l(a));}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search="";},xe);}},b=c=>{let a=We(c.key);if(!(!a||c.ctrlKey||c.metaKey||c.altKey||!h(c.currentTarget,j$1(c))||i.current.search.length===0&&a===" ")){if(i.current.search+=a,e.getKeyForSearch!=null){let y=e.getKeyForSearch(i.current.search,r.focusedKey);if(y==null&&(y=e.getKeyForSearch(i.current.search)),y!=null)r.setFocusedKey(y),l&&l(y),c.preventDefault(),"continuePropagation"in c||c.stopPropagation();else {i.current.search="",clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search="";},xe);}};return useEffect(()=>{let c=i.current.timeout;return ()=>{clearTimeout(c);}},[i]),{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?T:void 0,onKeyDown:e.getKeyForSearch?b:void 0}}}function We(u){return u.length===1||!/^[A-Z]/i.test(u)?u:""}function Pt(u){let{selectionManager:e$1,keyboardDelegate:r,ref:l,autoFocus:i$3=false,shouldFocusWrap:T=false,disallowEmptySelection:b$3=false,disallowSelectAll:c$2=false,escapeKeyBehavior:a$4="clearSelection",selectOnFocus:y=e$1.selectionBehavior==="replace",disallowTypeAhead:ie=false,shouldUseVirtualFocus:g$1,allowsTabNavigation:V=false,scrollRef:f$1=l,linkBehavior:v="action",UNSTABLE_focusOnEntry:H}=u,{direction:C}=b(),Z=o(),d$1=(n,o,m)=>{if(o!=null){if(e$1.isLink(o)&&v==="selection"&&y&&!Y(n)){flushSync(()=>{e$1.setFocusedKey(o,m);});let p=le(l,o),E=e$1.getItemProps(o);if(p){Z.open(p,n,E.href,E.routerOptions);return}return false}if(e$1.setFocusedKey(o,m),e$1.isLink(o)&&v==="override")return false;if(n.shiftKey&&e$1.selectionMode==="multiple"){e$1.extendSelection(o);return}else if(y&&!Y(n)){e$1.replaceSelection(o);return}}return false},_=n=>{if(r.getKeyBelow){let o=e$1.focusedKey!=null?r.getKeyBelow?.(e$1.focusedKey):r.getFirstKey?.();if(o==null&&T&&(o=r.getFirstKey?.(e$1.focusedKey)),o!=null){d$1(n,o);return}}return false},F=n=>{if(r.getKeyAbove){let o=e$1.focusedKey!=null?r.getKeyAbove?.(e$1.focusedKey):r.getLastKey?.();if(o==null&&T&&(o=r.getLastKey?.(e$1.focusedKey)),o!=null){d$1(n,o);return}}return false},W=n=>{if(r.getFirstKey){if(e$1.focusedKey===null&&n.shiftKey)return false;let o=r.getFirstKey(e$1.focusedKey,i$2(n));if(e$1.setFocusedKey(o),o!=null){if(i$2(n)&&n.shiftKey&&e$1.selectionMode==="multiple"){e$1.extendSelection(o);return}else if(y){e$1.replaceSelection(o);return}}}return false},A=n=>{if(r.getKeyLeftOf){let o=e$1.focusedKey!=null?r.getKeyLeftOf?.(e$1.focusedKey):r.getFirstKey?.();if(o==null&&T&&(o=C==="rtl"?r.getFirstKey?.(e$1.focusedKey):r.getLastKey?.(e$1.focusedKey)),o!=null){d$1(n,o,C==="rtl"?"first":"last");return}}return false},I=n=>{if(r.getKeyRightOf){let o=e$1.focusedKey!=null?r.getKeyRightOf?.(e$1.focusedKey):r.getFirstKey?.();if(o==null&&T&&(o=C==="rtl"?r.getLastKey?.(e$1.focusedKey):r.getFirstKey?.(e$1.focusedKey)),o!=null){d$1(n,o,C==="rtl"?"last":"first");return}}return false},k=n=>{if(r.getLastKey){if(e$1.focusedKey===null&&n.shiftKey)return false;let o=r.getLastKey(e$1.focusedKey,i$2(n));if(e$1.setFocusedKey(o),o!=null){if(i$2(n)&&n.shiftKey&&e$1.selectionMode==="multiple"){e$1.extendSelection(o);return}else if(y){e$1.replaceSelection(o);return}}}return false},z=n=>{if(r.getKeyPageBelow&&e$1.focusedKey!=null){let o=r.getKeyPageBelow(e$1.focusedKey);if(o!=null)return d$1(n,o)}return false},J=n=>{if(r.getKeyPageAbove&&e$1.focusedKey!=null){let o=r.getKeyPageAbove(e$1.focusedKey);if(o!=null)return d$1(n,o)}return false},w=()=>{if(e$1.selectionMode==="multiple"&&c$2!==true){e$1.selectAll();return}return false},x=()=>{if(a$4==="clearSelection"&&!b$3&&e$1.selectedKeys.size!==0){e$1.clearSelection();return}return false},K=()=>{if(!V&&l.current){let n=d$2(l.current,{tabbable:true}),o,m;do m=n.lastChild(),m&&(o=m);while(m);let p=a$3(l.current),E=i(p);o&&(!h(o,E)||E&&!d$3(E))&&a$5(o);}return {shouldContinuePropagation:true,shouldPreventDefault:false}},Q=()=>(!V&&l.current&&l.current.focus(),{shouldContinuePropagation:true,shouldPreventDefault:false}),P=(n,o)=>({[e$2()?n+"+Shift+Alt":n+"+Shift+Control"]:o,[n+"+Shift"]:o,[e$2()?n+"+Alt":n+"+Control"]:o,[n]:o}),{keyboardProps:se}=j({shortcuts:{...P("ArrowDown",_),...P("ArrowUp",F),...P("ArrowLeft",A),...P("ArrowRight",I),...P("PageDown",z),...P("PageUp",J)},allowRepeats:true}),{keyboardProps:ue}=j({shortcuts:{...P("Home",W),...P("End",k),"Mod+A":w,Escape:x,Tab:K,"Tab+Shift":Q}}),j$2=useRef({top:0,left:0});a(f$1,"scroll",()=>{j$2.current={top:f$1.current?.scrollTop??0,left:f$1.current?.scrollLeft??0};});let ce=n=>{if(e$1.isFocused){h(n.currentTarget,j$1(n))||e$1.setFocused(false);return}if(!h(n.currentTarget,j$1(n)))return;let o=c$1();e$1.setFocused(true);let m=p=>{p!=null&&(e$1.setFocusedKey(p),y&&!e$1.isSelected(p)&&e$1.replaceSelection(p));};if(H&&(o==="keyboard"||o==="virtual"))m(H==="first"?r.getFirstKey?.():r.getLastKey?.());else if(e$1.focusedKey==null){let p=n.relatedTarget;p&&n.currentTarget.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_FOLLOWING?m(e$1.lastSelectedKey??r.getLastKey?.()):m(e$1.firstSelectedKey??r.getFirstKey?.());}else f$1.current&&(f$1.current.scrollTop=j$2.current.top,f$1.current.scrollLeft=j$2.current.left);if(e$1.focusedKey!=null&&f$1.current){let p=le(l,e$1.focusedKey),E=b$2(p);p instanceof E.HTMLElement&&(!h(p,i(E.document))&&!g$1&&a$5(p),(o==="keyboard"||H&&o==="virtual")&&f(p,{containingElement:l.current}));}},ae=n=>{h(n.currentTarget,n.relatedTarget)||e$1.setFocused(false);},S=useRef(false);a(l,b$1,g$1?n=>{let{detail:o}=n;n.stopPropagation(),e$1.setFocused(true),o?.focusStrategy==="first"&&(S.current=true);}:void 0);let R=r.getFirstKey?.()??null;d(()=>{if(S.current)if(R==null){let n=i();a$1(l.current),c(n,null),e$1.collection.size>0&&(S.current=false);}else e$1.setFocusedKey(R),S.current=false;},[R,e$1.collection.size]),d(()=>{e$1.collection.size>0&&(S.current=false);},[e$1.focusedKey]),a(l,a$2,g$1?n=>{n.stopPropagation(),e$1.setFocused(false),n.detail?.clearFocusKey&&e$1.setFocusedKey(null);}:void 0);let X=useRef(i$3),B=useRef(false);useEffect(()=>{if(X.current){let n=null;i$3==="first"&&(n=r.getFirstKey?.()??null),i$3==="last"&&(n=r.getLastKey?.()??null);let o=e$1.selectedKeys;if(o.size){for(let m of o)if(e$1.canSelectItem(m)){n=m;break}}e$1.setFocused(true),e$1.setFocusedKey(n),n!=null&&y&&!o.size&&e$1.canSelectItem(n)&&e$1.replaceSelection(n),n==null&&!g$1&&l.current&&i$1(l.current),e$1.collection.size>0&&(X.current=false,B.current=true);}});let t=useRef(e$1.focusedKey),s=useRef(null);useEffect(()=>{if(e$1.isFocused&&e$1.focusedKey!=null&&(e$1.focusedKey!==t.current||B.current)&&f$1.current&&l.current){let n=c$1(),o=le(l,e$1.focusedKey),m=b$2(o);if(!(o instanceof m.HTMLElement))return;(n==="keyboard"||B.current)&&(s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{f$1.current&&(e(f$1.current,o),n!=="virtual"&&f(o,{containingElement:l.current}));}));}!g$1&&e$1.isFocused&&e$1.focusedKey==null&&t.current!=null&&l.current&&i$1(l.current),t.current=e$1.focusedKey,B.current=false;}),useEffect(()=>()=>{s.current&&cancelAnimationFrame(s.current);},[]),a(l,"react-aria-focus-scope-restore",n=>{n.preventDefault(),e$1.setFocused(true);});let M={...g(ue,se),onFocus:ce,onBlur:ae,onMouseDown(n){f$1.current===j$1(n)&&n.preventDefault();}},{typeSelectProps:$}=Re({keyboardDelegate:r,selectionManager:e$1});ie||(M=g($,M));let he;g$1||(he=e$1.focusedKey==null?0:-1);let Ve=Ie(e$1.collection);return {collectionProps:g(M,{tabIndex:he,"data-collection":Ve})}}function Ut(u){let{id:e,selectionManager:r,key:l,ref:i$3,shouldSelectOnPressUp:T,shouldUseVirtualFocus:b,focus:c,isDisabled:a,onAction:y,allowsDifferentPressOrigin:ie,linkBehavior:g$1="action"}=u,V=o();e=c$2(e);let f=t=>{if(t.pointerType==="keyboard"&&Y(t))r.toggleSelection(l);else {if(r.selectionMode==="none")return;if(r.isLink(l)){if(g$1==="selection"&&i$3.current){let s=r.getItemProps(l);V.open(i$3.current,t,s.href,s.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(g$1==="override"||g$1==="none")return}r.selectionMode==="single"?r.isSelected(l)&&!r.disallowEmptySelection?r.toggleSelection(l):r.replaceSelection(l):t&&t.shiftKey?r.extendSelection(l):r.selectionBehavior==="toggle"||t&&(i$2(t)||t.pointerType==="touch"||t.pointerType==="virtual")?r.toggleSelection(l):r.replaceSelection(l);}};useEffect(()=>{l===r.focusedKey&&r.isFocused&&(b?a$1(i$3.current):c?c():i(a$3(i$3.current))!==i$3.current&&i$3.current&&i$1(i$3.current));},[i$3,l,r.focusedKey,r.childFocusStrategy,r.isFocused,b]),a=a||r.isDisabled(l);let v={};!b&&!a?v={tabIndex:l===r.focusedKey?0:-1,onFocus(t){j$1(t)===i$3.current&&r.setFocusedKey(l);}}:a&&(v.onMouseDown=t=>{t.preventDefault();}),useEffect(()=>{a&&r.focusedKey===l&&r.setFocusedKey(null);},[r,a,l]);let H=r.isLink(l)&&g$1==="override",C=y&&u.UNSTABLE_itemBehavior==="action",Z=r.isLink(l)&&g$1!=="selection"&&g$1!=="none",d=!a&&r.canSelectItem(l)&&!H&&!C,_=(y||Z)&&!a,F=_&&(r.selectionBehavior==="replace"?!d:!d||r.isEmpty),W=_&&d&&r.selectionBehavior==="replace",A=F||W,I=useRef(null),k=A&&d,z=useRef(false),J=useRef(false),w=r.getItemProps(l),x=t=>{y&&(y(),i$3.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:true}))),Z&&i$3.current&&V.open(i$3.current,t,w.href,w.routerOptions);},K={ref:i$3};T?(K.onPressStart=t=>{I.current=t.pointerType,z.current=k,t.pointerType==="keyboard"&&(!A||Ne(t.key))&&f(t);},ie?(K.onPressUp=F?void 0:t=>{t.pointerType==="mouse"&&d&&f(t);},K.onPress=F?x:t=>{t.pointerType!=="keyboard"&&t.pointerType!=="mouse"&&d&&f(t);}):K.onPress=t=>{if(F||W&&t.pointerType!=="mouse"){if(t.pointerType==="keyboard"&&!Ue(t.key))return;x(t);}else t.pointerType!=="keyboard"&&d&&f(t);}):(K.onPressStart=t=>{I.current=t.pointerType,z.current=k,J.current=F,d&&(t.pointerType==="mouse"&&!F||t.pointerType==="keyboard"&&(!_||Ne(t.key)))&&f(t);},K.onPress=t=>{(t.pointerType==="touch"||t.pointerType==="pen"||t.pointerType==="virtual"||t.pointerType==="keyboard"&&A&&Ue(t.key)||t.pointerType==="mouse"&&J.current)&&(A?x(t):d&&f(t));});let Q=ke(r.collection);if(v["data-collection"]=Q,v["data-key"]=l,K.preventFocusOnPress=b,b&&(K=g(K,{onPressStart(t){t.pointerType!=="touch"&&(r.setFocused(true),r.setFocusedKey(l));},onPress(t){t.pointerType==="touch"&&(r.setFocused(true),r.setFocusedKey(l));}})),w)for(let t of ["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])w[t]&&(K[t]=e$1(K[t],w[t]));let{pressProps:P,isPressed:se}=d$1(K),ue=W?t=>{I.current==="mouse"&&(t.stopPropagation(),t.preventDefault(),x(t));}:void 0,{longPressProps:j}=a$4({isDisabled:!k,onLongPress(t){t.pointerType==="touch"&&(f(t),r.setSelectionBehavior("toggle"));}}),ce=t=>{if(I.current!=="touch"||!z.current)return;let s=j$1(t),$=(s.nodeType===Node.ELEMENT_NODE?s:s.parentElement)?.closest('[draggable="true"]');($==null||$===t.currentTarget||!t.currentTarget.contains($))&&t.preventDefault();},ae=g$1!=="none"&&r.isLink(l)?t=>{p.isOpening||t.preventDefault();}:void 0,S=g(v,d||F||b&&!a?P:{},k?j:{},{onDoubleClick:ue,onDragStartCapture:ce,onClick:ae,id:e},b?{onMouseDown:t=>t.preventDefault()}:void 0),R=t=>{let s=t;for(;s&&s!==i$3.current;){let M=s.getAttribute("data-collection");if(M!=null)return M!==Q;s=s.parentElement;}return d$3(t)},X=S.onPointerDown;S.onPointerDown=t=>{let s=j$1(t);if(s&&s!==i$3.current&&R(s)){t.stopPropagation();return}X?.(t);};let B=S.onMouseDown;return S.onMouseDown=t=>{let s=j$1(t);if(s&&s!==i$3.current&&R(s)){t.stopPropagation();return}B?.(t);},{itemProps:S,isPressed:se,isSelected:r.isSelected(l),isFocused:r.isFocused&&r.focusedKey===l,isDisabled:a,allowsSelection:d,hasAction:A}}function Ue(u){return u==="Enter"}function Ne(u){return u===" "}export{le as a,Re as b,Pt as c,Ut as d};
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-35AM4QEA.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import {useState,useRef}from'react';/**
1
+ import {a}from'./chunk-V2C4UDOC.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import {useState,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
@@ -1,4 +1,4 @@
1
- import {c as c$1,a}from'./chunk-35AM4QEA.mjs';import {useState,useRef,useCallback}from'react';/**
1
+ import {c as c$1,a}from'./chunk-V2C4UDOC.mjs';import {useState,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
- import {a as a$2}from'./chunk-LN2NT32E.mjs';import {a as a$1}from'./chunk-7SKQUEHP.mjs';import {a as a$7}from'./chunk-DIL5HL6K.mjs';import {b}from'./chunk-DLJHL4V7.mjs';import {a as a$5}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-FDDB7QNQ.mjs';import {a as a$4}from'./chunk-LRFFL765.mjs';import {c as c$1}from'./chunk-PJINRIA6.mjs';import {c}from'./chunk-35AM4QEA.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import T from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {a as a$2}from'./chunk-CE2W5D44.mjs';import {a as a$1}from'./chunk-7SKQUEHP.mjs';import {a as a$7}from'./chunk-DIL5HL6K.mjs';import {b}from'./chunk-I5YPTKMM.mjs';import {a as a$5}from'./chunk-3K6XNSYE.mjs';import {a as a$3}from'./chunk-ELW6SXDM.mjs';import {a as a$4}from'./chunk-LRFFL765.mjs';import {c,g}from'./chunk-V2C4UDOC.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import T 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
@@ -7,4 +7,4 @@ import {a as a$2}from'./chunk-LN2NT32E.mjs';import {a as a$1}from'./chunk-7SKQUE
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var V=a({defaultClassName:"bpklwaa z9nup88",variantClassNames:{isReadOnly:{true:"bpklwab"},isDisabled:{true:"bpklwac"},isSelected:{true:"bpklwad"},isFocused:{true:"bpklwae"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"bpklwaf"]]}),D=a({defaultClassName:"bpklwak",variantClassNames:{isDisabled:{true:"bpklwal"},isSelected:{true:"bpklwam"},isReadOnly:{true:"bpklwan"}},defaultVariants:{},compoundVariants:[]}),P="bpklwag",B=a({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"},hasDescription:{true:"bpklwa3"}},defaultVariants:{},compoundVariants:[[{labelPosition:"left",hasDescription:true},"bpklwa4"]]}),I=a({defaultClassName:"bpklwa8",variantClassNames:{isDisabled:{true:"bpklwa9"}},defaultVariants:{},compoundVariants:[]}),L=a({defaultClassName:"bpklwah",variantClassNames:{labelPosition:{top:"bpklwai",left:"bpklwaj"}},defaultVariants:{},compoundVariants:[]}),O=a({defaultClassName:"bpklwa5",variantClassNames:{labelPosition:{top:"bpklwa6",left:"bpklwa7"}},defaultVariants:{},compoundVariants:[]});var F=T.forwardRef(({className:H,description:s,label:o,labelPosition:n="top",statusLabel:r,style:U,"data-block-id":j,"data-block-class":E,...a},K)=>{let u=T.useRef(null),m=c(),w=c(),t=a$1(a),f=!!a.isDisabled,d=!!s&&!!o&&!a["aria-label"]&&!a["aria-labelledby"],z=d?[m,r&&w].filter(Boolean).join(" "):a["aria-labelledby"],{inputProps:M,isPressed:W,labelProps:_,descriptionProps:A}=a$2({...a,children:o,"aria-labelledby":z},t,u),{isFocused:X,isFocusVisible:k,focusProps:q}=a$3(),{hoverProps:G,isHovered:J}=a$4({isDisabled:a.isDisabled}),Q=a$5({"data-block-id":j,"data-block-class":E,"data-focused":X,"data-disabled":a.isDisabled,"data-focus-visible":k,"data-selected":t.isSelected,"data-readonly":a.isReadOnly,"data-hovered":J,"data-pressed":W}),h=jsx("div",{className:a$6(V({isSelected:t.isSelected,isDisabled:f,isFocused:k,isReadOnly:!!a.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:a$6(D({isSelected:t.isSelected,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})}),v=o?jsx("span",{id:d?m:void 0,className:a$6(P,"BaselineUI-Switch-Label"),children:o}):null;return jsxs("label",{...c$1(Q,_,G),className:a$6(B({labelPosition:n,hasDescription:!!s}),"BaselineUI-Switch",H),style:U,ref:K,children:[s?jsxs("span",{className:L({labelPosition:n}),children:[v,jsx(a$7,{...A,elementType:"span",className:"BaselineUI-Switch-Description",color:"text.helper",typography:"label.sm.medium",children:s})]}):v,jsx(b,{children:jsx("input",{...c$1(M,q),ref:u})}),r?jsxs("div",{className:O({labelPosition:n}),children:[jsx("span",{id:d?w:void 0,className:a$6("BaselineUI-Switch-Status-Label",I({isDisabled:f})),children:t.isSelected?r.on:r.off}),h]}):h]})});F.displayName="Switch";export{F as a};
10
+ var V=a({defaultClassName:"bpklwaa z9nup88",variantClassNames:{isReadOnly:{true:"bpklwab"},isDisabled:{true:"bpklwac"},isSelected:{true:"bpklwad"},isFocused:{true:"bpklwae"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"bpklwaf"]]}),D=a({defaultClassName:"bpklwak",variantClassNames:{isDisabled:{true:"bpklwal"},isSelected:{true:"bpklwam"},isReadOnly:{true:"bpklwan"}},defaultVariants:{},compoundVariants:[]}),P="bpklwag",B=a({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"},hasDescription:{true:"bpklwa3"}},defaultVariants:{},compoundVariants:[[{labelPosition:"left",hasDescription:true},"bpklwa4"]]}),I=a({defaultClassName:"bpklwa8",variantClassNames:{isDisabled:{true:"bpklwa9"}},defaultVariants:{},compoundVariants:[]}),L=a({defaultClassName:"bpklwah",variantClassNames:{labelPosition:{top:"bpklwai",left:"bpklwaj"}},defaultVariants:{},compoundVariants:[]}),O=a({defaultClassName:"bpklwa5",variantClassNames:{labelPosition:{top:"bpklwa6",left:"bpklwa7"}},defaultVariants:{},compoundVariants:[]});var F=T.forwardRef(({className:H,description:s,label:o,labelPosition:n="top",statusLabel:r,style:U,"data-block-id":j,"data-block-class":E,...a},K)=>{let u=T.useRef(null),m=c(),w=c(),t=a$1(a),f=!!a.isDisabled,d=!!s&&!!o&&!a["aria-label"]&&!a["aria-labelledby"],z=d?[m,r&&w].filter(Boolean).join(" "):a["aria-labelledby"],{inputProps:M,isPressed:W,labelProps:_,descriptionProps:A}=a$2({...a,children:o,"aria-labelledby":z},t,u),{isFocused:X,isFocusVisible:k,focusProps:q}=a$3(),{hoverProps:G,isHovered:J}=a$4({isDisabled:a.isDisabled}),Q=a$5({"data-block-id":j,"data-block-class":E,"data-focused":X,"data-disabled":a.isDisabled,"data-focus-visible":k,"data-selected":t.isSelected,"data-readonly":a.isReadOnly,"data-hovered":J,"data-pressed":W}),h=jsx("div",{className:a$6(V({isSelected:t.isSelected,isDisabled:f,isFocused:k,isReadOnly:!!a.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:a$6(D({isSelected:t.isSelected,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})}),v=o?jsx("span",{id:d?m:void 0,className:a$6(P,"BaselineUI-Switch-Label"),children:o}):null;return jsxs("label",{...g(Q,_,G),className:a$6(B({labelPosition:n,hasDescription:!!s}),"BaselineUI-Switch",H),style:U,ref:K,children:[s?jsxs("span",{className:L({labelPosition:n}),children:[v,jsx(a$7,{...A,elementType:"span",className:"BaselineUI-Switch-Description",color:"text.helper",typography:"label.sm.medium",children:s})]}):v,jsx(b,{children:jsx("input",{...g(M,q),ref:u})}),r?jsxs("div",{className:O({labelPosition:n}),children:[jsx("span",{id:d?w:void 0,className:a$6("BaselineUI-Switch-Status-Label",I({isDisabled:f})),children:t.isSelected?r.on:r.off}),h]}):h]})});F.displayName="Switch";export{F as a};
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {a}from'./chunk-LRFFL765.mjs';import v from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$1}from'./chunk-3K6XNSYE.mjs';import {a}from'./chunk-LRFFL765.mjs';import v 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-KG2EHFYA.mjs';import {a}from'./chunk-JJG67M2S.mjs';import {c}from'./chunk-OS6PVCFX.mjs';import {d}from'./chunk-A63HMTSM.mjs';import {f}from'./chunk-NQVTVL24.mjs';import {useRef,useCallback,useMemo}from'react';/**
1
+ import {b}from'./chunk-KG2EHFYA.mjs';import {a}from'./chunk-JJG67M2S.mjs';import {c}from'./chunk-JANI446W.mjs';import {d}from'./chunk-SMPF53W4.mjs';import {f}from'./chunk-AIG23SN5.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 {d}from'./chunk-NQVTVL24.mjs';import {u}from'./chunk-SCJ3RG7B.mjs';import {a}from'./chunk-35AM4QEA.mjs';import {b as b$1,j}from'./chunk-TYOEGCPS.mjs';import {useRef,useEffect}from'react';/**
1
+ import {d}from'./chunk-AIG23SN5.mjs';import {u}from'./chunk-2MNK24YJ.mjs';import {a}from'./chunk-V2C4UDOC.mjs';import {b as b$1,j}from'./chunk-TYOEGCPS.mjs';import {useRef,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