@baseline-ui/core 3.4.0 → 3.6.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 (296) 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.css +1 -1
  7. package/dist/AlertDialog.mjs +1 -1
  8. package/dist/AudioPlayer.css +1 -1
  9. package/dist/AudioPlayer.mjs +1 -1
  10. package/dist/Avatar.mjs +1 -1
  11. package/dist/Breadcrumbs.css +10 -0
  12. package/dist/Breadcrumbs.mjs +1 -0
  13. package/dist/ButtonSelect.mjs +1 -1
  14. package/dist/Calendar.mjs +1 -1
  15. package/dist/Checkbox.mjs +1 -1
  16. package/dist/ColorInput.css +1 -1
  17. package/dist/ColorInput.mjs +1 -1
  18. package/dist/ColorSwatch.mjs +1 -1
  19. package/dist/ColorSwatchPicker.mjs +1 -1
  20. package/dist/ComboBox.mjs +1 -1
  21. package/dist/DateField.mjs +1 -1
  22. package/dist/Dialog.css +1 -1
  23. package/dist/Dialog.mjs +1 -1
  24. package/dist/Disclosure.mjs +1 -1
  25. package/dist/DomNodeRenderer.mjs +1 -1
  26. package/dist/Drawer.css +1 -1
  27. package/dist/Drawer.mjs +1 -1
  28. package/dist/Editor.css +1 -1
  29. package/dist/Editor.mjs +1 -1
  30. package/dist/FileInput.mjs +1 -1
  31. package/dist/FileList.mjs +1 -1
  32. package/dist/FileUploader.mjs +1 -1
  33. package/dist/FrameProvider.mjs +1 -1
  34. package/dist/FreehandCanvas.mjs +1 -1
  35. package/dist/GridList.mjs +1 -1
  36. package/dist/I18nProvider.mjs +1 -1
  37. package/dist/Icon.mjs +1 -1
  38. package/dist/ImageDropZone.mjs +1 -1
  39. package/dist/ImageGallery.css +1 -1
  40. package/dist/ImageGallery.mjs +1 -1
  41. package/dist/InlineAlert.mjs +1 -1
  42. package/dist/InlineToolbar.mjs +1 -1
  43. package/dist/Kbd.mjs +1 -1
  44. package/dist/Link.mjs +1 -1
  45. package/dist/ListBox.mjs +1 -1
  46. package/dist/Menu.mjs +1 -1
  47. package/dist/MessageFormat.mjs +1 -1
  48. package/dist/Modal.mjs +1 -1
  49. package/dist/NumberInput.mjs +1 -1
  50. package/dist/Pagination.mjs +1 -1
  51. package/dist/Panel.mjs +1 -1
  52. package/dist/PointPicker.mjs +1 -1
  53. package/dist/Popover.mjs +1 -1
  54. package/dist/Portal.mjs +1 -1
  55. package/dist/Preview.mjs +1 -1
  56. package/dist/ProgressBar.mjs +1 -1
  57. package/dist/RadioGroup.mjs +1 -1
  58. package/dist/Reaction.mjs +1 -1
  59. package/dist/ScrollControlButton.mjs +1 -1
  60. package/dist/SearchInput.mjs +1 -1
  61. package/dist/Select.mjs +1 -1
  62. package/dist/Slider.css +1 -1
  63. package/dist/Slider.mjs +1 -1
  64. package/dist/Stepper.mjs +1 -1
  65. package/dist/Switch.mjs +1 -1
  66. package/dist/Table.css +1 -1
  67. package/dist/Table.mjs +1 -1
  68. package/dist/Tabs.mjs +1 -1
  69. package/dist/Tag.mjs +1 -1
  70. package/dist/TagGroup.mjs +1 -1
  71. package/dist/TaggedPagination.mjs +1 -1
  72. package/dist/Text.mjs +1 -1
  73. package/dist/TextInput.mjs +1 -1
  74. package/dist/ThemeProvider.mjs +1 -1
  75. package/dist/TimeField.mjs +1 -1
  76. package/dist/Toast.mjs +1 -1
  77. package/dist/ToggleButton.mjs +1 -1
  78. package/dist/ToggleIconButton.mjs +1 -1
  79. package/dist/Toolbar.mjs +1 -1
  80. package/dist/Tooltip.mjs +1 -1
  81. package/dist/TreeView.mjs +1 -1
  82. package/dist/UNSAFE_ListBox.mjs +1 -1
  83. package/dist/Virtualizer.mjs +1 -1
  84. package/dist/chunk-23WMOYTQ.mjs +10 -0
  85. package/dist/chunk-266F6F4Y.mjs +10 -0
  86. package/dist/{chunk-BYDJXA5A.mjs → chunk-2CXZQGP5.mjs} +1 -1
  87. package/dist/chunk-2KX2HY2H.mjs +10 -0
  88. package/dist/{chunk-4AG2RUAZ.mjs → chunk-3PU6C5US.mjs} +2 -2
  89. package/dist/{chunk-UNGYVWKZ.mjs → chunk-3RWM6E56.mjs} +2 -2
  90. package/dist/{chunk-SVTTHYTR.mjs → chunk-3YVVIFY7.mjs} +1 -1
  91. package/dist/chunk-42SQX2EB.mjs +10 -0
  92. package/dist/{chunk-AM5FU4Y7.mjs → chunk-4T7P66ZA.mjs} +1 -1
  93. package/dist/{chunk-AELTF2DE.mjs → chunk-4WVW4KEK.mjs} +1 -1
  94. package/dist/{chunk-UO75BAPM.mjs → chunk-4Y4WKIL5.mjs} +1 -1
  95. package/dist/chunk-6DETJFO2.mjs +10 -0
  96. package/dist/chunk-6DYTFYPO.mjs +10 -0
  97. package/dist/{chunk-3DWFAHR2.mjs → chunk-6GV3YWV7.mjs} +1 -1
  98. package/dist/chunk-6LP7UKPC.mjs +10 -0
  99. package/dist/chunk-6M77HEKA.mjs +10 -0
  100. package/dist/chunk-6Q5PNIYZ.mjs +10 -0
  101. package/dist/chunk-6Z3GYFG5.mjs +10 -0
  102. package/dist/{chunk-7XGNJE7J.mjs → chunk-7DCQF3EP.mjs} +1 -1
  103. package/dist/chunk-7EQIV4GX.mjs +10 -0
  104. package/dist/{chunk-C2VP5IEB.mjs → chunk-7HVUCDKZ.mjs} +1 -1
  105. package/dist/{chunk-KGS3UWPG.mjs → chunk-7KZEJYIU.mjs} +1 -1
  106. package/dist/{chunk-AD3MLX6G.mjs → chunk-7OUGARUO.mjs} +1 -1
  107. package/dist/{chunk-QU34XSML.mjs → chunk-AMLFQDKI.mjs} +2 -2
  108. package/dist/{chunk-CTSDHAAV.mjs → chunk-ARCCPNHM.mjs} +2 -2
  109. package/dist/{chunk-OYSOPCTA.mjs → chunk-BA5OA5DY.mjs} +1 -1
  110. package/dist/{chunk-7L5UOGZA.mjs → chunk-BPW4QRPV.mjs} +2 -2
  111. package/dist/chunk-BSSLS6MF.mjs +10 -0
  112. package/dist/{chunk-YPEAGD2G.mjs → chunk-C2B7L5CL.mjs} +1 -1
  113. package/dist/{chunk-COHK4QQW.mjs → chunk-EGLD5KVP.mjs} +2 -2
  114. package/dist/chunk-EIB7MPRA.mjs +10 -0
  115. package/dist/{chunk-QJYPCVSD.mjs → chunk-F67SYAEW.mjs} +1 -1
  116. package/dist/{chunk-CLGLEEFO.mjs → chunk-FCKJCFMD.mjs} +1 -1
  117. package/dist/{chunk-LPI2NIDI.mjs → chunk-FF7H33Z5.mjs} +1 -1
  118. package/dist/{chunk-GL5GUKT7.mjs → chunk-FX3THTOK.mjs} +1 -1
  119. package/dist/chunk-G2T6UJ66.mjs +11 -0
  120. package/dist/chunk-GAT5QH2M.mjs +10 -0
  121. package/dist/chunk-GDIKHTP3.mjs +10 -0
  122. package/dist/chunk-GFBRKKX4.mjs +10 -0
  123. package/dist/{chunk-ZZIQF6XD.mjs → chunk-GJTOYWLJ.mjs} +1 -1
  124. package/dist/chunk-GTHN5ZCZ.mjs +10 -0
  125. package/dist/{chunk-TSHZ7JSR.mjs → chunk-GYKBMDSJ.mjs} +1 -1
  126. package/dist/{chunk-NRQSR3G7.mjs → chunk-HABKIEKC.mjs} +1 -1
  127. package/dist/{chunk-QUQ4VYCN.mjs → chunk-HCQI7MNN.mjs} +1 -1
  128. package/dist/{chunk-EUVUJQ2Z.mjs → chunk-HJGMXLKN.mjs} +1 -1
  129. package/dist/{chunk-HI44JQA7.mjs → chunk-HPUUQKKH.mjs} +2 -2
  130. package/dist/chunk-HZM2XZP4.mjs +10 -0
  131. package/dist/{chunk-ZFGTKLCU.mjs → chunk-I7SMG6PT.mjs} +1 -1
  132. package/dist/{chunk-YU5NRJT6.mjs → chunk-IC5SBDP3.mjs} +1 -1
  133. package/dist/{chunk-DZDZZRWE.mjs → chunk-IDIZSV2Y.mjs} +1 -1
  134. package/dist/chunk-IGM72PUL.mjs +0 -0
  135. package/dist/{chunk-TH4XPZEO.mjs → chunk-IM3E5JL4.mjs} +1 -1
  136. package/dist/{chunk-TUJLNJPJ.mjs → chunk-INFMXVHD.mjs} +2 -2
  137. package/dist/chunk-IROFSPEN.mjs +10 -0
  138. package/dist/{chunk-WTAJLO6E.mjs → chunk-J2KZM2I2.mjs} +1 -1
  139. package/dist/{chunk-R3HHMCE5.mjs → chunk-JHA7DIPG.mjs} +1 -1
  140. package/dist/chunk-JKOCFSBH.mjs +10 -0
  141. package/dist/chunk-JTKDC2CM.mjs +10 -0
  142. package/dist/{chunk-4EANTENO.mjs → chunk-K4N2ADJO.mjs} +1 -1
  143. package/dist/{chunk-WHN2SEWO.mjs → chunk-KHDWTXGG.mjs} +2 -2
  144. package/dist/{chunk-TFSBTGTQ.mjs → chunk-KQOXSF4J.mjs} +1 -1
  145. package/dist/{chunk-RXSX2RKA.mjs → chunk-KX2GDQKJ.mjs} +1 -1
  146. package/dist/chunk-LQHFBXCW.mjs +10 -0
  147. package/dist/{chunk-R7R7JDA3.mjs → chunk-LRF3YZWU.mjs} +2 -2
  148. package/dist/{chunk-MIF6BAPG.mjs → chunk-LSPDPDB6.mjs} +1 -1
  149. package/dist/{chunk-K4TTZX4T.mjs → chunk-LV5AUNI2.mjs} +1 -1
  150. package/dist/chunk-MHAPHPNN.mjs +10 -0
  151. package/dist/{chunk-7P7VZMTO.mjs → chunk-NWWH62TU.mjs} +1 -1
  152. package/dist/chunk-O23QVPUT.mjs +10 -0
  153. package/dist/{chunk-P7BN7QDF.mjs → chunk-O4YMXTNR.mjs} +1 -1
  154. package/dist/{chunk-XD43CVDT.mjs → chunk-OVJT5F2R.mjs} +1 -1
  155. package/dist/chunk-PCR5FD43.mjs +10 -0
  156. package/dist/{chunk-Q6PGYMYI.mjs → chunk-PR3CD3UC.mjs} +2 -2
  157. package/dist/chunk-Q6R75IOP.mjs +10 -0
  158. package/dist/chunk-QC76UPJB.mjs +29 -0
  159. package/dist/{chunk-PD5ZXNGT.mjs → chunk-QMV2O57M.mjs} +2 -2
  160. package/dist/{chunk-NYCG264A.mjs → chunk-QUWRO3HT.mjs} +2 -2
  161. package/dist/{chunk-5KJF7IQN.mjs → chunk-RE7ZGPOY.mjs} +1 -1
  162. package/dist/chunk-RFVLSR2P.mjs +10 -0
  163. package/dist/{chunk-4RSUKS23.mjs → chunk-RFVPGD6N.mjs} +2 -2
  164. package/dist/chunk-RINS2TBF.mjs +10 -0
  165. package/dist/chunk-RITIRWKN.mjs +10 -0
  166. package/dist/chunk-RUHZRYDJ.mjs +10 -0
  167. package/dist/{chunk-IVGNOQSQ.mjs → chunk-RXVMJVRX.mjs} +1 -1
  168. package/dist/chunk-SH7ZI4CA.mjs +10 -0
  169. package/dist/chunk-TDRN6VLD.mjs +10 -0
  170. package/dist/chunk-TTJTZLW5.mjs +10 -0
  171. package/dist/chunk-TYKMNZJ4.mjs +11 -0
  172. package/dist/chunk-TZGK36KC.mjs +10 -0
  173. package/dist/chunk-UBLCUHRL.mjs +10 -0
  174. package/dist/chunk-UY76QEJC.mjs +10 -0
  175. package/dist/chunk-VFO35ZLL.mjs +10 -0
  176. package/dist/{chunk-BHJCYKFJ.mjs → chunk-VJUSOXPW.mjs} +1 -1
  177. package/dist/{chunk-IUXXTORQ.mjs → chunk-VZ5CLAIL.mjs} +2 -2
  178. package/dist/chunk-WB7EFOP7.mjs +10 -0
  179. package/dist/chunk-WDWBYTJG.mjs +10 -0
  180. package/dist/{chunk-6G7EUNZW.mjs → chunk-XAM3AXXK.mjs} +1 -1
  181. package/dist/{chunk-KJ6ZSO3I.mjs → chunk-XDTZXNGJ.mjs} +1 -1
  182. package/dist/chunk-XG6JJCCJ.mjs +10 -0
  183. package/dist/{chunk-4W5VP4NV.mjs → chunk-XKUZVQ2A.mjs} +1 -1
  184. package/dist/chunk-XO7MAUFC.mjs +10 -0
  185. package/dist/{chunk-24R46WQW.mjs → chunk-XOS3JIQX.mjs} +1 -1
  186. package/dist/{chunk-W7OTSFZS.mjs → chunk-XSORBGUU.mjs} +1 -1
  187. package/dist/{chunk-7TE4MFKC.mjs → chunk-XYK5KKOH.mjs} +1 -1
  188. package/dist/chunk-YDUKC7QS.mjs +10 -0
  189. package/dist/chunk-Z4QTH4TB.mjs +10 -0
  190. package/dist/{chunk-UUTMZQQA.mjs → chunk-ZC5WXVNV.mjs} +3 -3
  191. package/dist/{chunk-E22TWF63.mjs → chunk-ZI7HJRJA.mjs} +2 -2
  192. package/dist/chunk-ZNLIC44U.mjs +10 -0
  193. package/dist/chunk-ZP6QG5FX.mjs +10 -0
  194. package/dist/{chunk-BXNNVZOQ.mjs → chunk-ZXEWW3E7.mjs} +1 -1
  195. package/dist/{chunk-OZMADP4Z.mjs → chunk-ZZ7YJ2FN.mjs} +2 -2
  196. package/dist/hooks/useContainerScopedRef.mjs +1 -1
  197. package/dist/hooks/useDevice.mjs +1 -1
  198. package/dist/hooks/useI18n.mjs +1 -1
  199. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  200. package/dist/hooks/useLiveInteractionModality.mjs +1 -1
  201. package/dist/hooks/useMedia.mjs +1 -1
  202. package/dist/hooks/useMutationObserver.mjs +1 -1
  203. package/dist/hooks/usePortalContainer.mjs +1 -1
  204. package/dist/hooks/usePreventFocus.mjs +1 -1
  205. package/dist/hooks/useResizeObserver.mjs +1 -1
  206. package/dist/hooks/useTextSelection.mjs +1 -1
  207. package/dist/index.css +1 -1
  208. package/dist/index.d.ts +150 -33
  209. package/dist/index.js +21 -21
  210. package/dist/index.mjs +1 -1
  211. package/dist/messageIds.mjs +1 -1
  212. package/dist/utils/colors.mjs +1 -1
  213. package/dist/utils/dom.mjs +1 -1
  214. package/dist/utils/isInShadowDOM.mjs +1 -1
  215. package/dist/utils/keyboards.mjs +1 -1
  216. package/dist/utils/strings.mjs +1 -1
  217. package/intl/ar.json +3 -0
  218. package/intl/cs.json +3 -0
  219. package/intl/cy.json +3 -0
  220. package/intl/da.json +3 -0
  221. package/intl/de.json +3 -0
  222. package/intl/el.json +3 -0
  223. package/intl/en-GB.json +3 -0
  224. package/intl/en.json +3 -0
  225. package/intl/es.json +3 -0
  226. package/intl/fi.json +3 -0
  227. package/intl/fr-CA.json +3 -0
  228. package/intl/fr.json +3 -0
  229. package/intl/he.json +3 -0
  230. package/intl/hr.json +3 -0
  231. package/intl/id.json +3 -0
  232. package/intl/it.json +3 -0
  233. package/intl/ja.json +3 -0
  234. package/intl/ko.json +3 -0
  235. package/intl/ms.json +3 -0
  236. package/intl/nb-NO.json +3 -0
  237. package/intl/nl.json +3 -0
  238. package/intl/pl.json +3 -0
  239. package/intl/pt-PT.json +3 -0
  240. package/intl/pt.json +3 -0
  241. package/intl/ru.json +3 -0
  242. package/intl/sk.json +3 -0
  243. package/intl/sl.json +3 -0
  244. package/intl/sv.json +3 -0
  245. package/intl/th.json +3 -0
  246. package/intl/tr.json +3 -0
  247. package/intl/uk.json +3 -0
  248. package/intl/zh-Hans.json +3 -0
  249. package/intl/zh-Hant.json +3 -0
  250. package/messages.json +12 -0
  251. package/package.json +4 -4
  252. package/sbom.json +6 -6
  253. package/dist/chunk-2F3CFR22.mjs +0 -10
  254. package/dist/chunk-2LFMBQKQ.mjs +0 -10
  255. package/dist/chunk-36ZMHBG5.mjs +0 -10
  256. package/dist/chunk-3BEG3MEX.mjs +0 -10
  257. package/dist/chunk-3BG6K2G2.mjs +0 -10
  258. package/dist/chunk-3KCSUNRV.mjs +0 -10
  259. package/dist/chunk-4JQUB53Q.mjs +0 -10
  260. package/dist/chunk-4MHBLLHV.mjs +0 -11
  261. package/dist/chunk-5BKC373Y.mjs +0 -10
  262. package/dist/chunk-5FK5AJ7A.mjs +0 -10
  263. package/dist/chunk-5SHHWKFM.mjs +0 -10
  264. package/dist/chunk-76DKF2SK.mjs +0 -10
  265. package/dist/chunk-7MMO7S3R.mjs +0 -10
  266. package/dist/chunk-AK7XHUQW.mjs +0 -10
  267. package/dist/chunk-AYQN3OH2.mjs +0 -10
  268. package/dist/chunk-BBYODNBO.mjs +0 -10
  269. package/dist/chunk-DAS5QGJX.mjs +0 -10
  270. package/dist/chunk-DSV6CCI6.mjs +0 -10
  271. package/dist/chunk-F7PGMOQF.mjs +0 -10
  272. package/dist/chunk-FOKMDEP7.mjs +0 -10
  273. package/dist/chunk-FPFGTGUC.mjs +0 -10
  274. package/dist/chunk-IEOHIOGL.mjs +0 -10
  275. package/dist/chunk-IWZXZ5LU.mjs +0 -10
  276. package/dist/chunk-IXRSSEHQ.mjs +0 -10
  277. package/dist/chunk-J4OPD7OL.mjs +0 -10
  278. package/dist/chunk-K7VOXFSK.mjs +0 -10
  279. package/dist/chunk-MDE2FQHX.mjs +0 -10
  280. package/dist/chunk-MFB3SWO7.mjs +0 -29
  281. package/dist/chunk-MYJ733MN.mjs +0 -10
  282. package/dist/chunk-NJKSUI2F.mjs +0 -10
  283. package/dist/chunk-O4DA3TPW.mjs +0 -11
  284. package/dist/chunk-ONEE6UCM.mjs +0 -10
  285. package/dist/chunk-Q4SEEMIX.mjs +0 -10
  286. package/dist/chunk-R4MOUAJW.mjs +0 -10
  287. package/dist/chunk-SZN2J2ER.mjs +0 -10
  288. package/dist/chunk-U3T5JTZ7.mjs +0 -10
  289. package/dist/chunk-UDMNDUBO.mjs +0 -10
  290. package/dist/chunk-VETO7WNN.mjs +0 -10
  291. package/dist/chunk-VGFPT43C.mjs +0 -10
  292. package/dist/chunk-VJUBKX3W.mjs +0 -10
  293. package/dist/chunk-XWJJ4V3O.mjs +0 -10
  294. package/dist/chunk-YMYMFVW4.mjs +0 -10
  295. package/dist/chunk-YQHHE5AT.mjs +0 -10
  296. /package/dist/{chunk-DAN62T2M.mjs → chunk-TIGGKOJQ.mjs} +0 -0
@@ -0,0 +1,10 @@
1
+ import {d as d$3,h as h$2}from'./chunk-ZZ7YJ2FN.mjs';import {c as c$6}from'./chunk-2KX2HY2H.mjs';import {f,g}from'./chunk-266F6F4Y.mjs';import {a as a$7}from'./chunk-6GV3YWV7.mjs';import {a as a$8}from'./chunk-JZXLV6JU.mjs';import {a as a$2}from'./chunk-4Y4WKIL5.mjs';import {c as c$2,b as b$6}from'./chunk-IDIZSV2Y.mjs';import {a as a$6}from'./chunk-O7XK2WIX.mjs';import {a as a$i}from'./chunk-JTKDC2CM.mjs';import {a as a$d}from'./chunk-CV6JQGJ3.mjs';import {b as b$3}from'./chunk-KG2EHFYA.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$2}from'./chunk-K5RYVERS.mjs';import {a as a$1}from'./chunk-NQIZ3U7Q.mjs';import {e,c,h,b as b$1,d}from'./chunk-RINS2TBF.mjs';import {a as a$h}from'./chunk-JJG67M2S.mjs';import {c as c$5}from'./chunk-TZGK36KC.mjs';import {d as d$1,f as f$1,b as b$4}from'./chunk-GQIS4QBN.mjs';import {a as a$c}from'./chunk-Y2MIU76N.mjs';import {a as a$e}from'./chunk-I3RGYL4B.mjs';import {a as a$b}from'./chunk-AI6WQPRX.mjs';import {a as a$a}from'./chunk-FPM5UJRF.mjs';import {a as a$4}from'./chunk-STMDFIUL.mjs';import {a as a$3}from'./chunk-B3EZOXNU.mjs';import {j as j$1,c as c$4}from'./chunk-KUDCYGII.mjs';import {d as d$2}from'./chunk-F7WPMQ3P.mjs';import {a as a$f}from'./chunk-PPHSLODC.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-SVIYLH7R.mjs';import {c as c$3,e as e$1}from'./chunk-ETM4MNG4.mjs';import {j,m,h as h$1,i,a as a$g,b as b$5}from'./chunk-SD43KVTU.mjs';import {a as a$5}from'./chunk-JQQGRJ5J.mjs';import {a as a$9}from'./chunk-4QEH5CGK.mjs';import {CalendarIcon}from'@baseline-ui/icons/16';import ta,{createContext,forwardRef,useContext,useRef,useMemo,useState,useCallback,useEffect}from'react';import {createCalendar,endOfMonth,isSameMonth,isToday,isSameDay,CalendarDate,DateFormatter,toCalendar,toCalendarDate,today,isEqualCalendar,getWeeksInMonth,startOfWeek,getDayOfWeek,endOfWeek,startOfMonth,maxDate,minDate,isEqualDay,startOfYear,GregorianCalendar,endOfYear}from'@internationalized/date';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1}from'@baseline-ui/icons/8';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/12';/**
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 me={"ar-AE":{dateRange:e=>`${e.startDate} \u0625\u0644\u0649 ${e.endDate}`,dateSelected:e=>`${e.date} \u0627\u0644\u0645\u062D\u062F\u062F`,finishRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0625\u0646\u0647\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",maximumDate:"\u0622\u062E\u0631 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",minimumDate:"\u0623\u0648\u0644 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",next:"\u0627\u0644\u062A\u0627\u0644\u064A",previous:"\u0627\u0644\u0633\u0627\u0628\u0642",selectedDateDescription:e=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${e.date}`,selectedRangeDescription:e=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.dateRange}`,startRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",todayDate:e=>`\u0627\u0644\u064A\u0648\u0645\u060C ${e.date}`,todayDateSelected:e=>`\u0627\u0644\u064A\u0648\u0645\u060C ${e.date} \u0645\u062D\u062F\u062F`},"bg-BG":{dateRange:e=>`${e.startDate} \u0434\u043E ${e.endDate}`,dateSelected:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0435 ${e.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0434\u043E\u0432\u044A\u0440\u0448\u0438\u0442\u0435 \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u044A\u0440\u0432\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u043F\u0440\u0435\u0434",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0438\u0441\u0442\u044A\u043F\u0438\u0442\u0435 \u043A\u044A\u043C \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",todayDate:e=>`\u0414\u043D\u0435\u0441, ${e.date}`,todayDateSelected:e=>`\u0414\u043D\u0435\u0441, ${e.date} \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u017E ${e.endDate}`,dateSelected:e=>`Vybr\xE1no ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDb\u011Br rozsahu dat",maximumDate:"Posledn\xED dostupn\xE9 datum",minimumDate:"Prvn\xED dostupn\xE9 datum",next:"Dal\u0161\xED",previous:"P\u0159edchoz\xED",selectedDateDescription:e=>`Vybran\xE9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xE9 obdob\xED: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm zah\xE1j\xEDte v\xFDb\u011Br rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xE1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xF8re valg af datoomr\xE5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xF8rste ledige dato",next:"N\xE6ste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xE5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xE4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xFCgbares Datum",minimumDate:"Erstes verf\xFCgbares Datum",next:"Weiter",previous:"Zur\xFCck",selectedDateDescription:e=>`Ausgew\xE4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xE4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xE4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u03AD\u03C9\u03C2 ${e.endDate}`,dateSelected:e=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${e.date}`,finishRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",maximumDate:"\u03A4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",minimumDate:"\u03A0\u03C1\u03CE\u03C4\u03B7 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",previous:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",selectedDateDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${e.date}`,selectedRangeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${e.dateRange}`,startRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",todayDate:e=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, ${e.date}`,todayDateSelected:e=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03C4\u03B7\u03BA\u03B5 ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xDAltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimise l\xF5petamiseks",maximumDate:"Viimane saadaolev kuup\xE4ev",minimumDate:"Esimene saadaolev kuup\xE4ev",next:"J\xE4rgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xE4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimiseks",todayDate:e=>`T\xE4na, ${e.date}`,todayDateSelected:e=>`T\xE4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u2013 ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",maximumDate:"Viimeinen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",minimumDate:"Ensimm\xE4inen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xE4li: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",todayDate:e=>`T\xE4n\xE4\xE4n, ${e.date}`,todayDateSelected:e=>`T\xE4n\xE4\xE4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xE0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xE9lectionn\xE9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xE9lectionner la plage de dates",maximumDate:"Derni\xE8re date disponible",minimumDate:"Premi\xE8re date disponible",next:"Suivant",previous:"Pr\xE9c\xE9dent",selectedDateDescription:e=>`Date s\xE9lectionn\xE9e\xA0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xE9lectionn\xE9e\xA0: ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xE0 s\xE9lectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u2019hui, ${e.date} s\xE9lectionn\xE9`},"he-IL":{dateRange:e=>`${e.startDate} \u05E2\u05D3 ${e.endDate}`,dateSelected:e=>`${e.date} \u05E0\u05D1\u05D7\u05E8`,finishRangeSelectionPrompt:"\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",maximumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05D0\u05D7\u05E8\u05D5\u05DF",minimumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05E8\u05D0\u05E9\u05D5\u05DF",next:"\u05D4\u05D1\u05D0",previous:"\u05D4\u05E7\u05D5\u05D3\u05DD",selectedDateDescription:e=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${e.date}`,selectedRangeDescription:e=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${e.dateRange}`,startRangeSelectionPrompt:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",todayDate:e=>`\u05D4\u05D9\u05D5\u05DD, ${e.date}`,todayDateSelected:e=>`\u05D4\u05D9\u05D5\u05DD, ${e.date} \u05E0\u05D1\u05D7\u05E8`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite raspon odabranih datuma",maximumDate:"Posljednji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Sljede\u0107i",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u2013${e.endDate}`,dateSelected:e=>`${e.date} kiv\xE1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek befejez\xE9s\xE9hez",maximumDate:"Utols\xF3 el\xE9rhet\u0151 d\xE1tum",minimumDate:"Az els\u0151 el\xE9rhet\u0151 d\xE1tum",next:"K\xF6vetkez\u0151",previous:"El\u0151z\u0151",selectedDateDescription:e=>`Kijel\xF6lt d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xF6lt tartom\xE1ny: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek ind\xEDt\xE1s\xE1hoz",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xF6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell\u2019intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l\u2019intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u304B\u3089 ${e.endDate}`,dateSelected:e=>`${e.date} \u3092\u9078\u629E`,finishRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u7D42\u4E86",maximumDate:"\u6700\u7D42\u5229\u7528\u53EF\u80FD\u65E5",minimumDate:"\u6700\u521D\u306E\u5229\u7528\u53EF\u80FD\u65E5",next:"\u6B21\u3078",previous:"\u524D\u3078",selectedDateDescription:e=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${e.date}`,selectedRangeDescription:e=>`\u9078\u629E\u7BC4\u56F2 : ${e.dateRange}`,startRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u958B\u59CB",todayDate:e=>`\u672C\u65E5\u3001${e.date}`,todayDateSelected:e=>`\u672C\u65E5\u3001${e.date} \u3092\u9078\u629E`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \uC120\uD0DD\uB428`,finishRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC644\uB8CC\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",maximumDate:"\uB9C8\uC9C0\uB9C9\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",minimumDate:"\uCC98\uC74C\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",next:"\uB2E4\uC74C",previous:"\uC774\uC804",selectedDateDescription:e=>`\uC120\uD0DD \uC77C\uC790: ${e.date}`,selectedRangeDescription:e=>`\uC120\uD0DD \uBC94\uC704: ${e.dateRange}`,startRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",todayDate:e=>`\uC624\uB298, ${e.date}`,todayDateSelected:e=>`\uC624\uB298, ${e.date} \uC120\uD0DD\uB428`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustel\u0117kite, kad baigtum\u0117te pasirinkti dat\u0173 interval\u0105",maximumDate:"Paskutin\u0117 galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustel\u0117kite, kad prad\u0117tum\u0117te pasirinkti dat\u0173 interval\u0105",todayDate:e=>`\u0160iandien, ${e.date}`,todayDateSelected:e=>`\u0160iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u012Bdz ${e.endDate}`,dateSelected:e=>`Atlas\u012Bts: ${e.date}`,finishRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"P\u0113d\u0113jais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"T\u0101l\u0101k",previous:"Atpaka\u013C",selectedDateDescription:e=>`Atlas\u012Btais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u012Btais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai s\u0101ktu datumu diapazona atlasi",todayDate:e=>`\u0160odien, ${e.date}`,todayDateSelected:e=>`Atlas\u012Bta \u0161odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xE5 fullf\xF8re valg av datoomr\xE5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xF8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xE5de: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for \xE5 starte valg av datoomr\xE5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zako\u0144czy\u0107 wyb\xF3r zakresu dat",maximumDate:"Ostatnia dost\u0119pna data",minimumDate:"Pierwsza dost\u0119pna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocz\u0105\u0107 wyb\xF3r zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xE7\xE3o do intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xE7\xE3o do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para come\xE7ar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xE2n\u0103 la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u0103`,finishRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a finaliza selec\u0163ia razei pentru dat\u0103",maximumDate:"Ultima dat\u0103 disponibil\u0103",minimumDate:"Prima dat\u0103 disponibil\u0103",next:"Urm\u0103torul",previous:"\xCEnainte",selectedDateDescription:e=>`Dat\u0103 selectat\u0103: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a \xEEncepe selec\u0163ia razei pentru dat\u0103",todayDate:e=>`Ast\u0103zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u0103`},"ru-RU":{dateRange:e=>`\u0421 ${e.startDate} \u043F\u043E ${e.endDate}`,dateSelected:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043E ${e.date}`,finishRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0432\u0430\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",next:"\u0414\u0430\u043B\u0435\u0435",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",todayDate:e=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, ${e.date}`,todayDateSelected:e=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xFD d\xE1tum ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDber rozsahu d\xE1tumov",maximumDate:"Posledn\xFD dostupn\xFD d\xE1tum",minimumDate:"Prv\xFD dostupn\xFD d\xE1tum",next:"Nasleduj\xFAce",previous:"Predch\xE1dzaj\xFAce",selectedDateDescription:e=>`Vybrat\xFD d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xFD rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm spust\xEDte v\xFDber rozsahu d\xE1tumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xFD dne\u0161n\xFD d\xE1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokon\u010Danje izbire datumskega obsega",maximumDate:"Zadnji razpolo\u017Eljivi datum",minimumDate:"Prvi razpolo\u017Eljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u010Dje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za za\u010Detek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite opseg izabranih datuma",maximumDate:"Zadnji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Slede\u0107i",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xF6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xE4ngliga datum",minimumDate:"F\xF6rsta tillg\xE4ngliga datum",next:"N\xE4sta",previous:"F\xF6reg\xE5ende",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka f\xF6r att v\xE4lja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xE7ildi`,finishRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini tamamlamak i\xE7in t\u0131klay\u0131n",maximumDate:"Son m\xFCsait tarih",minimumDate:"\u0130lk m\xFCsait tarih",next:"Sonraki",previous:"\xD6nceki",selectedDateDescription:e=>`Se\xE7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xE7ilen Aral\u0131k: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini ba\u015Flatmak i\xE7in t\u0131klay\u0131n",todayDate:e=>`Bug\xFCn, ${e.date}`,todayDateSelected:e=>`Bug\xFCn, ${e.date} se\xE7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u2014 ${e.endDate}`,dateSelected:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E ${e.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",maximumDate:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0448\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",previous:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",selectedDateDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",todayDate:e=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, ${e.date}`,todayDateSelected:e=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, \u0432\u0438\u0431\u0440\u0430\u043D\u043E ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u81F3 ${e.endDate}`,dateSelected:e=>`\u5DF2\u9009\u62E9 ${e.date}`,finishRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5B8C\u6210\u9009\u62E9\u65E5\u671F\u8303\u56F4",maximumDate:"\u6700\u540E\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9875",previous:"\u4E0A\u4E00\u9875",selectedDateDescription:e=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${e.dateRange}`,startRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5F00\u59CB\u9009\u62E9\u65E5\u671F\u8303\u56F4",todayDate:e=>`\u4ECA\u5929\uFF0C\u5373 ${e.date}`,todayDateSelected:e=>`\u5DF2\u9009\u62E9\u4ECA\u5929\uFF0C\u5373 ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u81F3 ${e.endDate}`,dateSelected:e=>`\u5DF2\u9078\u53D6 ${e.date}`,finishRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u5B8C\u6210\u9078\u53D6\u65E5\u671F\u7BC4\u570D",maximumDate:"\u6700\u5F8C\u4E00\u500B\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u500B\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9801",previous:"\u4E0A\u4E00\u9801",selectedDateDescription:e=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${e.dateRange}`,startRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u958B\u59CB\u9078\u53D6\u65E5\u671F\u7BC4\u570D",todayDate:e=>`\u4ECA\u5929\uFF0C${e.date}`,todayDateSelected:e=>`\u5DF2\u9078\u53D6\u4ECA\u5929\uFF0C${e.date}`}};var he=new WeakMap;function be(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function ut(e){let a=b$3(me,"@react-aria/calendar"),r,t;"highlightedRange"in e?{start:r,end:t}=e.highlightedRange||{}:(r=Array.isArray(e.value)?e.value[0]:e.value??void 0,t=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let o=a$d({weekday:"long",month:"long",year:"numeric",day:"numeric",era:be(r)||be(t),timeZone:e.timeZone}),{locale:n}=b(),l=useMemo(()=>new Intl.ListFormat(n),[n]),i="anchorDate"in e?e.anchorDate:null;return useMemo(()=>{if(!i&&r&&t){if(isSameDay(r,t)){let c=o.format(r.toDate(e.timeZone));return a.format("selectedDateDescription",{date:c})}else if("highlightedRange"in e){let c=ka(o,a,r,t,e.timeZone);return a.format("selectedRangeDescription",{dateRange:c})}else if(Array.isArray(e.value)){let c=e.value.map(s=>o.format(s.toDate(e.timeZone))),d=l.format(c);return a.format("selectedDateDescription",{date:d})}}return ""},[r,t,i,e,a,o,l])}function Te(e,a,r,t){let o=b$3(me,"@react-aria/calendar"),n=be(e)||be(a),l=a$d({month:"long",year:"numeric",era:n,calendar:e.calendar.identifier,timeZone:r}),i=a$d({month:"long",year:"numeric",day:"numeric",era:n,calendar:e.calendar.identifier,timeZone:r});return useMemo(()=>{if(isSameDay(e,startOfMonth(e))){let c=e,d=a;if(e.calendar.getFormattableMonth&&(c=e.calendar.getFormattableMonth(e)),a.calendar.getFormattableMonth&&(d=a.calendar.getFormattableMonth(a)),isSameDay(a,endOfMonth(e)))return l.format(c.toDate(r));if(isSameDay(a,endOfMonth(a)))return t?ka(l,o,c,d,r):l.formatRange(c.toDate(r),d.toDate(r))}return t?ka(i,o,e,a,r):i.formatRange(e.toDate(r),a.toDate(r))},[e,a,l,i,o,r,t])}function ka(e,a,r,t,o){let n=e.formatRangeToParts(r.toDate(o),t.toDate(o)),l=-1;for(let d=0;d<n.length;d++){let s=n[d];if(s.source==="shared"&&s.type==="literal")l=d;else if(s.source==="endRange")break}let i="",c="";for(let d=0;d<n.length;d++)d<l?i+=n[d].value:d>l&&(c+=n[d].value);return a.format("dateRange",{startDate:i,endDate:c})}function qe(e,a$1){let r=b$3(me,"@react-aria/calendar"),t=a(e),o=Te(a$1.visibleRange.start,a$1.visibleRange.end,a$1.timeZone,false),n=Te(a$1.visibleRange.start,a$1.visibleRange.end,a$1.timeZone,true);c$5(()=>{a$1.isFocused||a$h(n);},[n]);let l=ut(a$1);c$5(()=>{l&&a$h(l,"polite",4e3);},[l]);let i=e$1([!!e.errorMessage,e.isInvalid,e.validationState]);he.set(a$1,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:i,selectedDateDescription:l});let[c,d]=useState(false),s=e.isDisabled||a$1.isNextVisibleRangeInvalid();s&&c&&(d(false),a$1.setFocused(true));let[D,f]=useState(false),p=e.isDisabled||a$1.isPreviousVisibleRangeInvalid();p&&D&&(f(false),a$1.setFocused(true));let g=a$c({id:e.id,"aria-label":[e["aria-label"],n].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return {calendarProps:c$1(t,g,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>a$1.focusNextPage(),"aria-label":r.format("next"),isDisabled:s,onFocusChange:d},prevButtonProps:{onPress:()=>a$1.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:p,onFocusChange:f},errorMessageProps:{id:i},title:o}}function $a(e,a){return qe(e,a)}function Va(e,a){let{startDate:r=a.visibleRange.start,endDate:t=a.visibleRange.end,firstDayOfWeek:o}=e,{direction:n}=b(),{keyboardProps:l}=j$1({shortcuts:{End:()=>{a.focusSectionEnd();},Home:()=>{a.focusSectionStart();},Escape:()=>("setAnchorDate"in a&&a.setAnchorDate(null),false)}}),{keyboardProps:i}=j$1({shortcuts:{Enter:()=>{a.selectFocusedDate();}," ":()=>{a.selectFocusedDate();},PageUp:()=>{a.focusPreviousSection();},"Shift+PageUp":()=>{a.focusPreviousSection(true);},PageDown:()=>{a.focusNextSection();},"Shift+PageDown":()=>{a.focusNextSection(true);},ArrowLeft:()=>{n==="rtl"?a.focusNextDay():a.focusPreviousDay();},ArrowUp:()=>{a.focusPreviousRow();},ArrowRight:()=>{n==="rtl"?a.focusPreviousDay():a.focusNextDay();},ArrowDown:()=>{a.focusNextRow();}},allowRepeats:true}),c=Te(r,t,a.timeZone,true),{ariaLabel:d,ariaLabelledBy:s}=he.get(a),D=a$c({"aria-label":[d,c].filter(Boolean).join(", "),"aria-labelledby":s}),f=a$d({weekday:e.weekdayStyle||"narrow",timeZone:a.timeZone}),{locale:p}=b(),g=useMemo(()=>{let M=a.visibleDuration.days&&a.visibleDuration.days<7,b=M?r:startOfWeek(today(a.timeZone),p,o),A=M?a.visibleDuration.days:7;return [...new Array(A).keys()].map(S=>{let m=b.add({days:S}).toDate(a.timeZone);return f.format(m)})},[p,a.timeZone,f,o,r,a.visibleDuration.days]),C=a.getWeeksInMonth(r);return {gridProps:c$1(D,{role:"grid","aria-readonly":a.isReadOnly||void 0,"aria-disabled":a.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in a||a.selectionMode==="multiple"||void 0,onFocus:()=>a.setFocused(true),onBlur:()=>a.setFocused(false)},l,i),headerProps:{"aria-hidden":true},weekDays:g,weeksInMonth:C}}function za(e,a,r){let{date:t,isDisabled:o}=e,{errorMessageId:n,selectedDateDescription:l}=he.get(a),i$1=b$3(me,"@react-aria/calendar"),c=a$d({weekday:"long",day:"numeric",month:"long",year:"numeric",era:be(t),timeZone:a.timeZone}),d=a.isCellFocused(t)&&!e.isOutsideMonth;o=o||a.isCellDisabled(t)||!!e.isOutsideMonth;let s=a.isCellUnavailable(t),D=!o&&!s,f=a.isSelected(t)&&D,p=false;a.isValueInvalid&&("highlightedRange"in a?p=!a.anchorDate&&a.highlightedRange!=null&&t.compare(a.highlightedRange.start)>=0&&t.compare(a.highlightedRange.end)<=0:Array.isArray(a.value)?p=a.value.some(h=>isSameDay(h,t)):a.value&&(p=isSameDay(a.value,t))),p&&!o&&(f=true),t=a$e(t,isEqualDay);let g=useMemo(()=>t.toDate(a.timeZone),[t,a.timeZone]),C=isToday(t,a.timeZone),M=useMemo(()=>{let h="";return "highlightedRange"in a&&a.value&&!a.anchorDate&&(isSameDay(t,a.value.start)||isSameDay(t,a.value.end))&&(h=l+", "),h+=c.format(g),C?h=i$1.format(f?"todayDateSelected":"todayDate",{date:h}):f&&(h=i$1.format("dateSelected",{date:h})),a.minValue&&isSameDay(t,a.minValue)?h+=", "+i$1.format("minimumDate"):a.maxValue&&isSameDay(t,a.maxValue)&&(h+=", "+i$1.format("maximumDate")),h},[c,g,i$1,f,C,t,a,l]),b="";"anchorDate"in a&&d&&!a.isReadOnly&&D&&(a.anchorDate?b=i$1.format("finishRangeSelectionPrompt"):b=i$1.format("startRangeSelectionPrompt"));let A=d$1(b,r),S=useRef(false),R=useRef(false),m=useRef(void 0),{pressProps:P,isPressed:j$1}=d$2({shouldCancelOnPointerExit:"anchorDate"in a&&!!a.anchorDate,preventFocusOnPress:true,isDisabled:!D||a.isReadOnly,onPressStart(h){if(a.isReadOnly){a.setFocusedDate(t),a.setFocused(true);return}if("highlightedRange"in a&&!a.anchorDate&&(h.pointerType==="mouse"||h.pointerType==="touch")){if(a.highlightedRange&&!p){if(isSameDay(t,a.highlightedRange.start)){a.setAnchorDate(a.highlightedRange.end),a.setFocusedDate(t),a.setFocused(true),a.setDragging(true),R.current=true;return}else if(isSameDay(t,a.highlightedRange.end)){a.setAnchorDate(a.highlightedRange.start),a.setFocusedDate(t),a.setFocused(true),a.setDragging(true),R.current=true;return}}let y=()=>{a.setDragging(true),m.current=void 0,a.selectDate(t),a.setFocusedDate(t),a.setFocused(true),S.current=true;};h.pointerType==="touch"?m.current=setTimeout(y,200):y();}},onPressEnd(){R.current=false,S.current=false,clearTimeout(m.current),m.current=void 0;},onPress(){!("anchorDate"in a)&&!a.isReadOnly&&(a.selectDate(t),a.setFocusedDate(t),a.setFocused(true));},onPressUp(h){a.isReadOnly||("anchorDate"in a&&m.current&&(a.selectDate(t),a.setFocusedDate(t),a.setFocused(true)),"anchorDate"in a&&(R.current?a.setAnchorDate(t):a.anchorDate&&!S.current?(a.selectDate(t),a.setFocusedDate(t),a.setFocused(true)):h.pointerType==="keyboard"&&!a.anchorDate?(a.selectDate(t),a.focusNearestAvailableDate(t)):h.pointerType==="virtual"&&(a.selectDate(t),a.setFocusedDate(t),a.setFocused(true))));}}),k;o||(k=isSameDay(t,a.focusedDate)?0:-1),useEffect(()=>{d&&r.current&&(a$f(r.current),c$4()!=="pointer"&&i(a$g(r.current))===r.current&&f$1(r.current,{containingElement:b$4(r.current)}));},[d,r]);let v=a$d({day:"numeric",timeZone:a.timeZone,calendar:t.calendar.identifier}),L=useMemo(()=>v.formatToParts(g).find(h=>h.type==="day").value,[v,g]);return {cellProps:{role:"gridcell","aria-disabled":!D||void 0,"aria-selected":f||void 0,"aria-invalid":p||void 0},buttonProps:c$1(P,{onFocus(){o||(a.setFocusedDate(t),a.setFocused(true));},tabIndex:k,role:"button","aria-disabled":!D||void 0,"aria-label":M,"aria-invalid":p||void 0,"aria-describedby":[p?n:void 0,A["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(h){"highlightDate"in a&&(h.pointerType!=="touch"||a.isDragging)&&D&&a.highlightDate(t);},onPointerDown(h){let y=j(h);y instanceof b$5(y).HTMLElement&&"releasePointerCapture"in y&&("hasPointerCapture"in y?y.hasPointerCapture(h.pointerId)&&y.releasePointerCapture(h.pointerId):y.releasePointerCapture(h.pointerId));},onContextMenu(h){h.preventDefault();}}),isPressed:j$1,isFocused:d,isSelected:f,isDisabled:o,isUnavailable:s,isOutsideVisibleRange:t.compare(a.visibleRange.start)<0||t.compare(a.visibleRange.end)>0,isInvalid:p,formattedDate:L}}function Ha(e,a){let r=useMemo(()=>{let n=a.visibleRange.start;return e.offset&&(n=n.add(e.offset)),n},[a.visibleRange.start,e.offset]),t=a.visibleDuration.days||a.visibleDuration.weeks,o=a$d({day:e.format?.day||(t?"numeric":void 0),month:e.format?.month||"long",year:e.format?.year||"numeric",era:e.format?.era||r&&r.calendar.identifier==="gregory"&&r.era==="BC"?"short":void 0,calendar:a.visibleRange?.start.calendar.identifier,timeZone:a.timeZone});return useMemo(()=>{if(t)return o.formatRange(r.toDate(a.timeZone),a.visibleRange.end.toDate(a.timeZone));let n=r.calendar.getFormattableMonth?r.calendar.getFormattableMonth(r):r;return o.format(n.toDate(a.timeZone))},[o,t,r,a.timeZone,a.visibleRange.end])}function wa(e,a,r){let{commitBehavior:t="select",...o}=e,n=qe(o,a),l=useRef(false),i=useRef(typeof window<"u"?window:null);a$b(i,"pointerdown",s=>{l.current=s.width===0&&s.height===0;});let c={clear:()=>a.clearSelection(),reset:()=>a.setAnchorDate(null),select:()=>a.commitSelection()};return a$b(i,"pointerup",s=>{if(l.current){l.current=false;return}if(a.setDragging(false),!a.anchorDate)return;let D=j(s);r.current&&m(r.current)&&(!h$1(r.current,D)||!D.closest('button, [role="button"]'))&&c[t]();}),n.calendarProps.onBlur=s=>{r.current&&(!s.relatedTarget||!h$1(r.current,s.relatedTarget))&&a.anchorDate&&c[t]();},a$b(r,"touchmove",s=>{a.isDragging&&s.preventDefault();},{passive:false,capture:true}),n}function K(e,a,r){return a!=null&&e.compare(a)<0||r!=null&&e.compare(r)>0}function ze(e,a,r,t,o){let n={};for(let i in a)n[i]=Math.floor(a[i]/2),n[i]>0&&a[i]%2===0&&n[i]--;let l=oe(e,a,r).subtract(n);return Re(e,l,a,r,t,o)}function oe(e,a,r,t,o){let n=e;return a.years?n=startOfYear(e):a.months?n=startOfMonth(e):(a.weeks||a.days&&a.days>7)&&(n=startOfWeek(e,r)),Re(e,n,a,r,t,o)}function Je(e,a,r,t,o){let n={...a};n.days?n.days--:n.weeks?n.weeks--:n.months?n.months--:n.years&&n.years--;let l=oe(e,a,r).subtract(n);return Re(e,l,a,r,t,o)}function Re(e,a,r,t,o,n){if(o&&e.compare(o)>=0){let l=maxDate(a,oe(toCalendarDate(o),r,t));l&&(a=l);}if(n&&e.compare(n)<=0){let l=minDate(a,Je(toCalendarDate(n),r,t));l&&(a=l);}return a}function E(e,a,r){if(a){let t=maxDate(e,toCalendarDate(a));t&&(e=t);}if(r){let t=minDate(e,toCalendarDate(r));t&&(e=t);}return e}function Qe(e,a,r){if(!r)return e;for(;e.compare(a)>=0&&r(e);)e=e.subtract({days:1});return e.compare(a)>=0?e:null}function Ct(e,a){return e===a?true:e.days===a.days&&e.weeks===a.weeks&&e.months===a.months&&e.years===a.years}function He(e){let a=useMemo(()=>new DateFormatter(e.locale),[e.locale]),r=useMemo(()=>a.resolvedOptions(),[a]),{locale:t,createCalendar:o,visibleDuration:n={months:1},minValue:l,maxValue:i,selectionAlignment:c,isDateUnavailable:d,pageBehavior:s="visible",selectionMode:D="single",firstDayOfWeek:f,weeksInMonth:p}=e,g=useMemo(()=>o(r.calendar),[o,r.calendar]),[C,M]=a$a(e.value,e.defaultValue??null,e.onChange),b=useMemo(()=>Array.isArray(C)?C.map(u=>toCalendar(toCalendarDate(u),g)):C?toCalendar(toCalendarDate(C),g):null,[C,g]),A=useMemo(()=>{let u=Array.isArray(C)?C[0]:C;return u&&"timeZone"in u?u.timeZone:r.timeZone},[C,r.timeZone]),S=useMemo(()=>e.focusedValue?E(toCalendar(toCalendarDate(e.focusedValue),g),l,i):void 0,[e.focusedValue,g,l,i]),R=useMemo(()=>e.defaultFocusedValue?E(toCalendar(toCalendarDate(e.defaultFocusedValue),g),l,i):b?E(Array.isArray(b)?b[0]:b,l,i):E(toCalendar(today(A),g),l,i),[e.defaultFocusedValue,b,A,g,l,i]),[m,P]=a$a(S,R,e.onFocusChange),j=()=>{switch(c){case "start":return oe(m,n,t,l,i);case "end":return Je(m,n,t,l,i);default:return ze(m,n,t,l,i)}},[k,v]=useState(j),[L,h]=useState(e.autoFocus||false),[y,F]=useState(n);Ct(n,y)||(F(n),v(j()));let $=useMemo(()=>{let u={...n};return u.days?u.days--:u.days=-1,k.add(u)},[k,n]),[z,re]=useState(g);if(!isEqualCalendar(g,z)){let u=toCalendar(m,g);v(ze(u,n,t,l,i)),P(u),re(g);}K(m,l,i)?P(E(m,l,i)):m.compare(k)<0?v(Je(m,n,t,l,i)):m.compare($)>0&&v(oe(m,n,t,l,i));function V(u){u=E(u,l,i),P(u);}function ce(u){let H=E(u,l,i),w=l??minDate(H,k),O=Qe(H,w,d);if(!O)return null;let Y=Array.isArray(C)?C[0]:C,Q=toCalendar(O,Y?.calendar||new GregorianCalendar);return Y&&"hour"in Y?Y.set(Q):Q}function Ua(u){if(!e.isDisabled&&!e.isReadOnly){if(u===null){M(D==="multiple"?[]:null);return}if(Array.isArray(u))M(u.map(ce).filter(Boolean));else {let H=ce(u);H&&M(H);}}}let Gt=useMemo(()=>b?Array.isArray(b)?b.some(u=>d?.(u)||K(u,l,i)):d?.(b)||K(b,l,i):false,[b,d,l,i]),Ka=e.isInvalid||e.validationState==="invalid"||Gt,jt=Ka?"invalid":null,ne=useMemo(()=>s==="visible"?n:Fa(n),[s,n]);return {isDisabled:e.isDisabled??false,isReadOnly:e.isReadOnly??false,value:b,setValue:Ua,selectionMode:D,visibleDuration:n,visibleRange:{start:k,end:$},minValue:l,maxValue:i,focusedDate:m,timeZone:A,validationState:jt,isValueInvalid:Ka,setFocusedDate(u){V(u);},focusNextDay(){V(m.add({days:1}));},focusPreviousDay(){V(m.subtract({days:1}));},focusNextRow(){n.days?this.focusNextPage():(n.weeks||n.months||n.years)&&V(m.add({weeks:1}));},focusPreviousRow(){n.days?this.focusPreviousPage():(n.weeks||n.months||n.years)&&V(m.subtract({weeks:1}));},focusNextPage(){let u=k.add(ne);P(E(m.add(ne),l,i)),v(oe(Re(m,u,ne,t,l,i),ne,t));},focusPreviousPage(){let u=k.subtract(ne);P(E(m.subtract(ne),l,i)),v(oe(Re(m,u,ne,t,l,i),ne,t));},focusSectionStart(){n.days?V(k):n.weeks?V(startOfWeek(m,t)):(n.months||n.years)&&V(startOfMonth(m));},focusSectionEnd(){n.days?V($):n.weeks?V(endOfWeek(m,t)):(n.months||n.years)&&V(endOfMonth(m));},focusNextSection(u){if(!u&&!n.days){V(m.add(Fa(n)));return}n.days?this.focusNextPage():n.weeks?V(m.add({months:1})):(n.months||n.years)&&V(m.add({years:1}));},focusPreviousSection(u){if(!u&&!n.days){V(m.subtract(Fa(n)));return}n.days?this.focusPreviousPage():n.weeks?V(m.subtract({months:1})):(n.months||n.years)&&V(m.subtract({years:1}));},selectFocusedDate(){d&&d(m)||this.selectDate(m);},selectDate(u){if(!(e.isDisabled||e.isReadOnly))if(D==="multiple"&&u!=null){let H=ce(u);if(!H)return;let w=[];Array.isArray(C)?w=C:C!=null&&(w=[C]);let O=w.findIndex(Q=>isSameDay(Q,H)),Y=O>=0?w.slice(0,O).concat(w.slice(O+1)):[...w,H];M(Y);}else Ua(u);},isFocused:L,setFocused:h,isInvalid(u){return K(u,l,i)},isSelected(u){return !b||this.isCellDisabled(u)||this.isCellUnavailable(u)?false:Array.isArray(b)?b.some(H=>isSameDay(H,u)):isSameDay(u,b)},isCellFocused(u){return L&&m&&isSameDay(u,m)},isCellDisabled(u){return e.isDisabled||u.compare(k)<0||u.compare($)>0||this.isInvalid(u)},isCellUnavailable(u){return e.isDateUnavailable?e.isDateUnavailable(u):false},isPreviousVisibleRangeInvalid(){let u=k.subtract({days:1});return isSameDay(u,k)||this.isInvalid(u)},isNextVisibleRangeInvalid(){let u=$.add({days:1});return isSameDay(u,$)||this.isInvalid(u)},getDatesInWeek(u,H=k){let w=H.add({weeks:u}),O=[],Y=n.days&&n.days<7?n.days:7;if(Y===7){w=startOfWeek(w,t,f);let Q=getDayOfWeek(w,t,f);for(let Wa=0;Wa<Q;Wa++)O.push(null);}for(;O.length<Y;){O.push(w);let Q=w.add({days:1});if(isSameDay(w,Q))break;w=Q;}for(;O.length<Y;)O.push(null);return O},getWeeksInMonth(u=k){let H=p||getWeeksInMonth(u,t,f);return (n.weeks||n.days)&&(H=n.weeks??0,n.days&&(H+=Math.ceil(n.days/7))),H}}}function Fa(e){let a={...e};for(let r in e)a[r]=1;return a}function _a(e){let{value:a,defaultValue:r,onChange:t,createCalendar:o,locale:n,visibleDuration:l={months:1},minValue:i,maxValue:c,...d}=e,[s,D]=a$a(a,r||null,t),[f,p]=useState(null),g="center";if(s&&s.start&&s.end){let F=ze(toCalendarDate(s.start),l,n,i,c).add(l).subtract({days:1});s.end.compare(F)>0&&(g="start");}let C=useMemo(()=>{let y=e.isDateUnavailable;if(y)return F=>y(F,f)},[e.isDateUnavailable,f]),M=useCallback(y=>{if(y&&C&&!e.allowsNonContiguousRanges){let F=Rt(y,C,l,-1),$=Rt(y,C,l,1);return {start:F,end:$}}else return null},[C,l,e.allowsNonContiguousRanges]),b=useMemo(()=>M(f),[M,f]),A=useMemo(()=>maxDate(i,b?.start),[i,b]),S=useMemo(()=>minDate(c,b?.end),[c,b]),R=He({...d,value:s&&s.start,createCalendar:o,locale:n,visibleDuration:l,minValue:A,maxValue:S,selectionAlignment:e.selectionAlignment||g,isDateUnavailable:C}),m=f?Oa(f,R.focusedDate):s&&Oa(s.start,s.end),P=y=>{if(e.isReadOnly)return;let F=E(y,A,S),$=Qe(F,R.visibleRange.start,C);if($)if(!f)p($);else {let z=Oa(f,$);z&&D({start:ht(z.start,s?.start),end:ht(z.end,s?.end)}),p(null);}},[j,k]=useState(false),v=useMemo(()=>!s||f?false:C&&(C(s.start)||C(s.end))?true:K(s.start,i,c)||K(s.end,i,c),[C,s,f,i,c]),L=e.isInvalid||e.validationState==="invalid"||v;return {...R,value:s,setValue:D,anchorDate:f,setAnchorDate:p,highlightedRange:m,validationState:L?"invalid":null,isValueInvalid:L,selectFocusedDate(){R.isCellUnavailable(R.focusedDate)||P(R.focusedDate);},commitSelection(){P(R.focusedDate);},selectDate:P,highlightDate(y){f&&R.setFocusedDate(y);},isSelected(y){return !!(m&&y.compare(m.start)>=0&&y.compare(m.end)<=0&&!R.isCellDisabled(y)&&!R.isCellUnavailable(y))},isInvalid(y){return R.isInvalid(y)||K(y,b?.start,b?.end)},isDragging:j,setDragging:k,clearSelection(){p(null),D(null);},focusNearestAvailableDate(y){let F=M(y),$=re=>this.isInvalid(re)||K(re,F?.start,F?.end),z=y.add({days:1});$(z)&&(z=y.subtract({days:1})),$(z)||(this.setFocusedDate(z),this.setFocused(true));}}}function Oa(e,a){return !e||!a?null:(a.compare(e)<0&&([e,a]=[a,e]),{start:toCalendarDate(e),end:toCalendarDate(a)})}function ht(e,a){return e=toCalendar(e,a?.calendar||new GregorianCalendar),a&&"hour"in a?a.set(e):e}function Rt(e,a,r,t){let o=e.add({days:t}),n=e.subtract(r),l=e.add(r);for(;(t<0?o.compare(n)>=0:o.compare(l)<=0)&&!a(o);)o=o.add({days:t});if(a(o))return o.add({days:-t})}var ra=createContext(null),na=createContext(null),Z=createContext(null),q=createContext(null),Ea=forwardRef(function(a$3,r){[a$3,r]=e(a$3,r,ra);let{locale:t}=b(),o=He({...a$3,locale:t,createCalendar:a$3.createCalendar||createCalendar}),{calendarProps:n,prevButtonProps:l,nextButtonProps:i,errorMessageProps:c$2,title:d}=$a(a$3,o),s=c({...a$3,values:{state:o,isDisabled:a$3.isDisabled||false,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-Calendar"}),D=a(a$3,{global:true});return jsx(h.div,{...c$1(D,s,n),ref:r,slot:a$3.slot||void 0,"data-disabled":a$3.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0,children:jsxs(b$1,{values:[[a$1,{slots:{previous:l,next:i}}],[f,{"aria-hidden":true,level:2,children:d}],[Z,o],[ra,a$3],[a$2,{slots:{errorMessage:c$2}}]],children:[jsx(b$2,{children:jsx("h2",{children:n["aria-label"]})}),s.children,jsx(b$2,{children:jsx("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1})})]})})}),La=forwardRef(function(a$3,r){[a$3,r]=e(a$3,r,na);let{locale:t}=b(),o=_a({...a$3,locale:t,createCalendar:a$3.createCalendar||createCalendar}),{calendarProps:n,prevButtonProps:l,nextButtonProps:i,errorMessageProps:c$2,title:d}=wa(a$3,o,r),s=c({...a$3,values:{state:o,isDisabled:a$3.isDisabled||false,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),D=a(a$3,{global:true});return jsx(h.div,{...c$1(s,D,n),ref:r,slot:a$3.slot||void 0,"data-disabled":a$3.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0,children:jsxs(b$1,{values:[[a$1,{slots:{previous:l,next:i}}],[f,{"aria-hidden":true,level:2,children:d}],[q,o],[na,a$3],[a$2,{slots:{errorMessage:c$2}}]],children:[jsx(b$2,{children:jsx("h2",{children:n["aria-label"]})}),s.children,jsx(b$2,{children:jsx("button",{"aria-label":i["aria-label"],disabled:i.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1})})]})})}),la=createContext(null),Pe=forwardRef(function(a$1,r){let t=useContext(Z),o=useContext(q),n=d(ra),l=d(na),i=t??o,c=i.visibleRange.start;a$1.offset&&(c=c.add(a$1.offset));let d$1=n?.firstDayOfWeek??l?.firstDayOfWeek,{gridProps:s,headerProps:D,weekDays:f,weeksInMonth:p}=Va({startDate:c,endDate:endOfMonth(c),weekdayStyle:a$1.weekdayStyle,firstDayOfWeek:d$1},i),g=a(a$1,{global:true});return jsx(la.Provider,{value:{headerProps:D,weekDays:f,startDate:c,weeksInMonth:p},children:jsx(h.table,{render:a$1.render,...c$1(g,s),ref:r,style:a$1.style,cellPadding:0,className:a$1.className??"react-aria-CalendarGrid",children:typeof a$1.children!="function"?a$1.children:jsxs(Fragment,{children:[jsx(De,{children:C=>jsx(ge,{children:C})}),jsx(Ce,{children:a$1.children})]})})})});function hr(e,a$1){let{children:r,style:t,className:o}=e,{headerProps:n,weekDays:l}=useContext(la),i=a(e,{global:true});return jsx(h.thead,{render:e.render,...c$1(i,n),ref:a$1,style:t,className:o??"react-aria-CalendarGridHeader",children:jsx("tr",{children:l.map((c,d)=>ta.cloneElement(r(c),{key:d}))})})}var De=forwardRef(hr);function Rr(e,a$1){let{children:r,style:t,className:o}=e,n=a(e,{global:true});return jsx(h.th,{render:e.render,...n,ref:a$1,style:t,className:o||"react-aria-CalendarHeaderCell",children:r})}var ge=forwardRef(Rr);function Pr(e,a$1){let{children:r,style:t,className:o}=e,n=useContext(Z),l=useContext(q),i=n??l,{startDate:c,weeksInMonth:d}=useContext(la),s=a(e,{global:true});return jsx(h.tbody,{render:e.render,...s,ref:a$1,style:t,className:o??"react-aria-CalendarGridBody",children:[...new Array(d).keys()].map(D=>jsx("tr",{children:i.getDatesInWeek(D,c).map((f,p)=>f?ta.cloneElement(r(f),{key:p}):jsx("td",{},p))},D))})}var Ce=forwardRef(Pr);var ia=forwardRef(function({date:a$1,...r},t){let o=useContext(Z),n=useContext(q),l=o??n,{startDate:i}=useContext(la)??{startDate:l.visibleRange.start},c$2=l.visibleDuration.days||l.visibleDuration.weeks?false:!isSameMonth(i,a$1),d=isToday(a$1,l.timeZone),s=useRef(null),{cellProps:D,buttonProps:f,...p}=za({date:a$1,isOutsideMonth:c$2},l,s),{hoverProps:g,isHovered:C}=a$3({...r,isDisabled:p.isDisabled||p.isUnavailable}),{focusProps:M,isFocusVisible:b}=a$4();b&&=p.isFocused;let A=false,S=false;"highlightedRange"in l&&l.highlightedRange&&(A=isSameDay(a$1,l.highlightedRange.start),S=isSameDay(a$1,l.highlightedRange.end));let R=c({...r,defaultChildren:p.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:a$1,isHovered:C,isOutsideMonth:c$2,isFocusVisible:b,isSelectionStart:A,isSelectionEnd:S,isToday:d,...p}}),m={"data-focused":p.isFocused||void 0,"data-hovered":C||void 0,"data-pressed":p.isPressed||void 0,"data-unavailable":p.isUnavailable||void 0,"data-disabled":p.isDisabled||void 0,"data-focus-visible":b||void 0,"data-outside-visible-range":p.isOutsideVisibleRange||void 0,"data-outside-month":c$2||void 0,"data-selected":p.isSelected||void 0,"data-selection-start":A||void 0,"data-selection-end":S||void 0,"data-invalid":p.isInvalid||void 0,"data-today":d||void 0},P=a(r,{global:true});return jsx("td",{...D,ref:t,children:jsx(h.div,{...c$1(P,f,M,g,m,R),ref:s})})});forwardRef(function(a,r){let{offset:t,format:o,className:n="react-aria-CalendarHeading",...l}=a,i=ta.useContext(Z),c=ta.useContext(q),s=Ha({offset:t,format:o},i||c);return jsx(g,{...l,className:n,ref:r,children:s})});var xt=a$5({defaultClassName:"_1lo17ci9 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6dy _1yep5z6ey",variantClassNames:{size:{xs:"_1lo17cia",sm:"_1lo17cib"},isSelected:{true:"_1yep5z6136 _1yep5z611m"},isSelectionStart:{true:"_1yep5z611m"},isSelectionEnd:{true:"_1yep5z611m"},isInRange:{true:"_1lo17cif"},isToday:{true:"_1lo17cig"},isOutsideMonth:{true:"_1yep5z611l"},isDisabled:{true:"_1lo17cii _1yep5z611l"},isReadOnly:{true:"_1lo17cij"},isHovered:{true:"_1yep5z612u"},isFocusVisible:{true:"_1lo17cil"},isUnavailable:{true:"_1lo17cim"}},defaultVariants:{},compoundVariants:[[{isToday:true,isSelected:true},"_1yep5z61o5"],[{isToday:true,isSelectionStart:true},"_1yep5z61o5"],[{isToday:true,isSelectionEnd:true},"_1yep5z61o5"],[{isHovered:true,isReadOnly:true},"_1lo17cin"],[{isHovered:true,isUnavailable:true},"_1lo17cio"],[{isSelected:true,isHovered:true,isReadOnly:false},"_1yep5z61pq"],[{isSelectionStart:true,isHovered:true,isReadOnly:false},"_1yep5z61pq"],[{isSelectionEnd:true,isHovered:true,isReadOnly:false},"_1yep5z61pq"],[{isInRange:true,isHovered:true,isReadOnly:false},"_1lo17cip"],[{isInRange:true,isFocusVisible:true},"_1lo17ciq"]]}),oa="_1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm",da=a$5({defaultClassName:"_1lo17ci0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6mh _1yep5z6mf _1yep5z6hf _1yep5z6g9",variantClassNames:{size:{xs:"_1lo17ci1",sm:"_1lo17ci2"}},defaultVariants:{},compoundVariants:[]}),sa="_1lo17ci4",ca="_1lo17ci5",ua=a$5({defaultClassName:"_1lo17ci6 _1yep5z6ey _1yep5z6dy",variantClassNames:{size:{xs:"_1lo17ci7",sm:"_1lo17ci8"}},defaultVariants:{},compoundVariants:[]}),Mt="_1lo17ci3 _1yep5z6ez _1yep5z6e1";function ma({date:e,size:a,isRange:r}){let t=useContext(Z),o=useContext(q),l=(t??o)?.isReadOnly??false;return jsx(ia,{date:e,className:({isSelected:i,isSelectionStart:c,isSelectionEnd:d,isOutsideMonth:s,isDisabled:D,isFocusVisible:f,isHovered:p,isUnavailable:g,isToday:C})=>xt({size:a,isSelected:r?void 0:i,isSelectionStart:r?c:void 0,isSelectionEnd:r?d:void 0,isInRange:r?i&&!c&&!d:void 0,isOutsideMonth:s,isDisabled:D,isFocusVisible:f,isHovered:p,isUnavailable:g,isToday:C,isReadOnly:l})})}function _t(){let e=useContext(Z),a=useContext(q),r=e??a;if(!r)throw new Error("CalendarHeader must be used inside a Calendar or RangeCalendar");return r}function $r({nextMonthLabel:e,previousMonthLabel:a}){let{formatMessage:r}=b$6();return jsxs(a$6,{display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsx(a$i,{slot:"previous",icon:CaretLeftIcon,size:"xs","data-testid":"calendar-previous-month-button","aria-label":a??r(G.previousMonth)}),jsx(g,{className:Mt}),jsx(a$i,{slot:"next",icon:CaretRightIcon,size:"xs","data-testid":"calendar-next-month-button","aria-label":e??r(G.nextMonth)})]})}var ve=5,zt=5,Ya=50,Vr=2*Ya+1,Ar={minWidth:160},Tr={minWidth:120},Et={whiteSpace:"nowrap"},zr=new CalendarDate(1900,1,1),Hr=new CalendarDate(2100,12,1);function Na(e,a){return e.compare(a)<=0?e:a}function Ga(e,a){return e.compare(a)>=0?e:a}function Se(e){return startOfMonth(endOfYear(e))}var wr={month:"long",year:"numeric"},Fr={year:"numeric"};function Lt(e,a,r){return useMemo(()=>{let t=l=>new DateFormatter(e,{...r,era:l,calendar:a,timeZone:"UTC"}),o=t(),n=a==="gregory"?t("short"):o;return l=>(l.era==="BC"?n:o).format((l.calendar.getMinimumMonthInYear?l:l.set({day:15})).toDate("UTC"))},[e,a,r])}function Ht(e){return `${e.era}:${e.year}:${e.month}`}function Or({nextMonthLabel:e,previousMonthLabel:a,selectMonthLabel:r}){let t=_t(),{formatMessage:o}=b$6(),{locale:n}=b(),l=t.focusedDate,i=l.calendar,c=startOfMonth(l),d=Lt(n,i.identifier,wr),s=startOfYear(toCalendar(zr,i)),D=Se(toCalendar(Hr,i)),f=t.minValue?startOfYear(toCalendar(toCalendarDate(t.minValue),i)):c.compare(s)<0?startOfYear(l.subtract({years:ve})):s,p=t.maxValue?Se(toCalendar(toCalendarDate(t.maxValue),i)):c.compare(D)>0?Se(l.add({years:ve})):D,[g,C]=useState(()=>Ga(f,startOfYear(l.subtract({years:ve})))),[M,b$1]=useState(()=>Na(p,Se(l.add({years:ve})))),A=useMemo(()=>{let m=[];for(let P=startOfMonth(toCalendar(g,i));P.compare(M)<=0;P=P.add({months:1}))m.push({id:Ht(P),label:d(P)});return m},[g,M,i,d]);c.compare(g)<0?C(Ga(f,startOfYear(l.subtract({years:zt})))):c.compare(M)>0&&b$1(Na(p,Se(l.add({years:zt}))));let S=useCallback(m=>{if(m==null)return;let[P,j,k]=String(m).split(":");t.setFocusedDate(l.set({era:P,year:Number(j),month:Number(k)}));},[l,t]),R=useCallback(()=>{let m=Ga(f,startOfYear(l.subtract({years:ve}))),P=Na(p,Se(l.add({years:ve})));m.compare(g)<0&&C(m),P.compare(M)>0&&b$1(P);},[f,p,l,g,M]);return jsxs(a$6,{"data-testid":"calendar-month-controls",display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsx(d$3,{...h$2.LIST_BOX,children:jsx(c$6,{"aria-label":r??o(G.selectMonth),items:A,variant:"ghost",value:Ht(l),onSelectionChange:S,onTriggerPress:R,maxHeight:300,style:{width:"fit-content"},contentContainerStyle:Ar,optionStyle:Et})}),jsxs(a$6,{display:"flex",alignItems:"center",gap:"2xl",children:[jsx(a$i,{slot:"previous",icon:CaretLeftIcon,size:"xs","data-testid":"calendar-previous-month-button","aria-label":a??o(G.previousMonth)}),jsx(a$i,{slot:"next",icon:CaretRightIcon,size:"xs","data-testid":"calendar-next-month-button","aria-label":e??o(G.nextMonth)})]})]})}function Ir({nextMonthLabel:e,previousMonthLabel:a,nextYearLabel:r,previousYearLabel:t,selectMonthLabel:o,selectYearLabel:n}){let l=_t(),{formatMessage:i}=b$6(),{locale:c}=b(),d=l.focusedDate,s=l.isDisabled,D=Lt(c,d.calendar.identifier,Fr),f=useMemo(()=>new DateFormatter(c,{month:"short",calendar:d.calendar.identifier,timeZone:"UTC"}),[c,d.calendar.identifier]),p=useMemo(()=>{let v=d.calendar.getMonthsInYear(d);return Array.from({length:v},(L,h)=>{let y=d.set({month:h+1,day:15});return {id:String(h+1),label:f.format(y.toDate("UTC"))}})},[f,d]),g=d.calendar.getMinimumMonthInYear?d.toString():`${d.calendar.identifier}:${d.era}:${d.year}`,C=useMemo(()=>{let v=d.calendar,L=$=>startOfYear(d.add({years:$})),h=($,z)=>{let re=0,V=L(0);for(;;){let ce=L(re+z);if(ce.compare(V)===0||z*ce.compare($)>0)return re;re+=z,V=ce;}},y=h(startOfYear(l.minValue?toCalendar(toCalendarDate(l.minValue),v):d.subtract({years:Ya})),-1),F=h(l.maxValue?toCalendar(toCalendarDate(l.maxValue),v):d.add({years:Ya}),1);return Array.from({length:F-y+1},($,z)=>({id:String(y+z),label:D(d.add({years:y+z}))}))},[g,l.minValue,l.maxValue,D]),M=l.minValue?.toString(),b$1=l.maxValue?.toString(),A=useMemo(()=>C.length>Vr,[M,b$1]),S=l.setFocusedDate,R=useCallback(v=>{S(d.add({months:v}));},[d,S]),m=useCallback(v=>{S(d.add({years:v}));},[d,S]),P=useCallback(v=>{v!=null&&S(d.set({month:Number(v)}));},[d,S]),j=useCallback(v=>{v!=null&&S(d.add({years:Number(v)}));},[d,S]),k=jsx(c$6,{"aria-label":n??i(G.selectYear),items:C,variant:"ghost",value:"0",onSelectionChange:j,isDisabled:s,maxHeight:300,style:{width:"fit-content"},contentContainerStyle:A?Tr:void 0,optionStyle:Et});return jsxs(a$6,{display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsxs(a$6,{"data-testid":"calendar-month-controls",display:"flex",alignItems:"center",justifyContent:"space-between",paddingX:"xs",style:{flex:"1 0 0"},children:[jsx(a$i,{slot:null,icon:CaretLeftIcon$1,size:"xxs",variant:"primary",isDisabled:s,onPress:()=>{R(-1);},"data-testid":"calendar-previous-month-button","aria-label":a??i(G.previousMonth)}),jsx(c$6,{"aria-label":o??i(G.selectMonth),items:p,variant:"ghost",value:String(d.month),onSelectionChange:P,isDisabled:s,style:{width:"fit-content"}}),jsx(a$i,{slot:null,icon:CaretRightIcon$1,size:"xxs",variant:"primary",isDisabled:s,onPress:()=>{R(1);},"data-testid":"calendar-next-month-button","aria-label":e??i(G.nextMonth)})]}),jsx(a$8,{orientation:"vertical",style:{alignSelf:"center",height:32}}),jsxs(a$6,{"data-testid":"calendar-year-controls",display:"flex",alignItems:"center",justifyContent:"space-between",paddingX:"xs",style:{flex:"1 0 0"},children:[jsx(a$i,{slot:null,icon:CaretLeftIcon$1,size:"xxs",variant:"primary",isDisabled:s,onPress:()=>{m(-1);},"data-testid":"calendar-previous-year-button","aria-label":t??i(G.previousYear)}),A?jsx(d$3,{...h$2.LIST_BOX,children:k}):k,jsx(a$i,{slot:null,icon:CaretRightIcon$1,size:"xxs",variant:"primary",isDisabled:s,onPress:()=>{m(1);},"data-testid":"calendar-next-year-button","aria-label":r??i(G.nextYear)})]})]})}function fa({headerVariant:e,...a}){switch(e){case "selectMonth":return jsx(Or,{...a});case "selectMonthAndYear":return jsx(Ir,{...a});default:return jsx($r,{...a})}}var G=c$2({selectMonth:{defaultMessage:"Select month",id:"bui.calendar.selectMonth"},previousMonth:{defaultMessage:"Previous month",id:"bui.calendar.previousMonth"},nextMonth:{defaultMessage:"Next month",id:"bui.calendar.nextMonth"},selectYear:{defaultMessage:"Select year",id:"bui.calendar.selectYear"},previousYear:{defaultMessage:"Previous year",id:"bui.calendar.previousYear"},nextYear:{defaultMessage:"Next year",id:"bui.calendar.nextYear"}});var Bt=ta.forwardRef(({className:e,style:a,size:r="sm",title:t,headerVariant:o="title",nextMonthLabel:n,previousMonthLabel:l,nextYearLabel:i,previousYearLabel:c,selectMonthLabel:d,selectYearLabel:s,...D},f)=>{let p=c$3();return jsxs("div",{className:a$9(da({size:r}),"BaselineUI-Calendar",e),style:a,ref:f,children:[t?jsxs(Fragment,{children:[jsxs(a$6,{display:"flex",alignItems:"center",gap:"lg",paddingX:"lg",style:{height:56},children:[jsx(a$6,{color:"text.primary",flexShrink:0,display:"inline-flex",alignItems:"center",children:jsx(CalendarIcon,{})}),jsx(a$7,{id:p,type:"title",size:r==="xs"?"sm":"md",children:t})]}),jsx(a$8,{})]}):null,jsxs(Ea,{...D,"aria-labelledby":[t?p:void 0,D["aria-labelledby"]].filter(Boolean).join(" ")||void 0,className:oa,children:[jsx(fa,{headerVariant:o,nextMonthLabel:n,previousMonthLabel:l,nextYearLabel:i,previousYearLabel:c,selectMonthLabel:d,selectYearLabel:s}),jsx(a$8,{}),jsxs(Pe,{className:ca,style:{borderSpacing:0},children:[jsx(De,{children:g=>jsx(ge,{className:ua({size:r}),children:g})}),jsx(Ce,{className:sa,children:g=>jsx(ma,{date:g,size:r})})]})]})]})});Bt.displayName="Calendar";var Nt=ta.forwardRef(({className:e,style:a,size:r="sm",title:t,headerVariant:o="title",nextMonthLabel:n,previousMonthLabel:l,nextYearLabel:i,previousYearLabel:c,selectMonthLabel:d,selectYearLabel:s,...D},f)=>{let p=c$3();return jsxs("div",{className:a$9(da({size:r}),"BaselineUI-RangeCalendar",e),style:a,ref:f,children:[t?jsxs(Fragment,{children:[jsxs(a$6,{display:"flex",alignItems:"center",gap:"lg",paddingX:"lg",style:{height:56},children:[jsx(a$6,{color:"text.primary",flexShrink:0,display:"inline-flex",alignItems:"center",children:jsx(CalendarIcon,{})}),jsx(a$7,{id:p,type:"title",size:r==="xs"?"sm":"md",children:t})]}),jsx(a$8,{})]}):null,jsxs(La,{...D,"aria-labelledby":[t?p:void 0,D["aria-labelledby"]].filter(Boolean).join(" ")||void 0,className:oa,children:[jsx(fa,{headerVariant:o,nextMonthLabel:n,previousMonthLabel:l,nextYearLabel:i,previousYearLabel:c,selectMonthLabel:d,selectYearLabel:s}),jsx(a$8,{}),jsxs(Pe,{className:ca,style:{borderSpacing:0},children:[jsx(De,{children:g=>jsx(ge,{className:ua({size:r}),children:g})}),jsx(Ce,{className:sa,children:g=>jsx(ma,{date:g,size:r,isRange:true})})]})]})]})});Nt.displayName="RangeCalendar";export{Bt as a,Nt as b};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-BGQRLALS.mjs';import {i as i$1}from'./chunk-KUDCYGII.mjs';import {a as a$1}from'./chunk-SVIYLH7R.mjs';import {e}from'./chunk-ETM4MNG4.mjs';import {a,i,h}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function E(r,e$1){let{role:d="dialog",isEntering:b}=r,i$2=e([],e$1);i$2=r["aria-label"]?void 0:i$2;let a$2=e([],e$1);a$2=d==="alertdialog"&&!r["aria-describedby"]?a$2:void 0;let o=useRef(false);useEffect(()=>{if(b||!e$1.current)return;let t=a(e$1.current),l=i(t);if(!h(e$1.current,l)){i$1(e$1.current);let n=setTimeout(()=>{let g=i(t);(g===e$1.current||g===t.body)&&(o.current=true,e$1.current&&(e$1.current.blur(),i$1(e$1.current)),o.current=false);},500);return ()=>{clearTimeout(n);}}},[e$1,b]),c();let m=useRef(false);useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!m.current&&e$1.current){let t=e$1.current,l=t.hasAttribute("aria-label"),n=t.hasAttribute("aria-labelledby");!l&&!n&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),m.current=true);}});let O=r["aria-describedby"]??a$2;return {dialogProps:{...a$1(r,{labelable:true}),role:d,tabIndex:-1,"aria-labelledby":r["aria-labelledby"]??i$2,"aria-describedby":O,onBlur:t=>{o.current&&t.stopPropagation();}},titleProps:{id:i$2},contentProps:{id:a$2}}}export{E as a};
@@ -0,0 +1,10 @@
1
+ import {i}from'./chunk-RINS2TBF.mjs';import {a}from'./chunk-HH4VLTF3.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import V,{createContext,useRef,useCallback,useMemo,cloneElement,useContext,useState,forwardRef,isValidElement}from'react';import {createPortal}from'react-dom';import {useSyncExternalStore}from'use-sync-external-store/shim/index.js';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var h=class{static type;type;key;value=null;level=0;hasChildNodes=false;rendered=null;textValue="";"aria-label"=void 0;index=0;parentKey=null;prevKey=null;nextKey=null;firstChildKey=null;lastChildKey=null;props={};render;colSpan=null;colIndex=null;constructor(e){this.type=this.constructor.type,this.key=e;}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,i){let l=this.clone();return t.addDescendants(l,e),l}},f=class extends h{filter(e,t,i){let[l,o]=F(e,t,this.firstChildKey,i),r=this.clone();return r.firstChildKey=l,r.lastChildKey=o,r}},E=class extends h{static type="header"},w=class extends h{static type="loader"},k=class extends f{static type="item";filter(e,t,i){if(i(this.textValue,this)){let l=this.clone();return t.addDescendants(l,e),l}return null}},D=class extends f{static type="section";filter(e,t,i){let l=super.filter(e,t,i);if(l&&l.lastChildKey!==null){let o=e.getItem(l.lastChildKey);if(o&&o.type!=="header")return l}return null}},m=class{keyMap=new Map;firstKey=null;lastKey=null;frozen=false;itemCount=0;get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0;}getChildren(e){let t=this.keyMap;return {*[Symbol.iterator](){let i=t.get(e),l=i?.firstChildKey!=null?t.get(i.firstChildKey):null;for(;l;)yield l,l=l.nextKey!=null?t.get(l.nextKey):void 0;}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e);}addDescendants(e,t){this.addNode(e);let i=t.getChildren(e.key);for(let l of i)this.addDescendants(l,t);}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e);}commit(e,t,i=false){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!i;}filter(e){let t=new this.constructor,[i,l]=F(this,t,this.firstKey,e);return t?.commit(i,l),t}};function F(n,e,t,i){if(t==null)return [null,null];let l=null,o=null,r=n.getItem(t);for(;r!=null;){let s=r.filter(n,e,i);s!=null&&(s.nextKey=null,o&&(s.prevKey=o.key,o.nextKey=s.key),l==null&&(l=s),e.addNode(s),o=s),r=r.nextKey!=null?n.getItem(r.nextKey):null;}if(o&&o.type==="separator"){let s=o.prevKey;e.removeNode(o.key),s!=null?(o=e.getItem(s),o.nextKey=null):o=null;}return [l?.key??null,o?.key??null]}var b=class{_firstChild=null;_lastChild=null;_previousSibling=null;_nextSibling=null;_parentNode=null;_minInvalidChildIndex=null;ownerDocument;constructor(e){this.ownerDocument=e;}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling;}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this);}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this);}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this);}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this);}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this);}get isConnected(){return this.parentNode?.isConnected||false}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this));}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null;}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate();}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate();}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate());}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}},x=class n extends b{nodeType=8;node;isMutated=true;_index=0;isHidden=false;constructor(e,t){super(t),this.node=null;}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this);}get level(){return this.parentNode instanceof n?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=true),this.ownerDocument.markDirty(this),this.node)}updateNode(){let e=this.nextVisibleSibling,t=this.getMutableNode();if(t!=null&&(t.index=this.index,t.level=this.level,t.parentKey=this.parentNode instanceof n?this.parentNode.node?.key??null:null,t.prevKey=this.previousVisibleSibling?.node?.key??null,t.nextKey=e?.node?.key??null,t.hasChildNodes=!!this.firstChild,t.firstChildKey=this.firstVisibleChild?.node?.key??null,t.lastChildKey=this.lastVisibleChild?.node?.key??null,(t.colSpan!=null||t.colIndex!=null)&&e)){let i=(t.colIndex??t.index)+(t.colSpan??1);if(e.node!=null&&i!==e.node.colIndex){let l=e.getMutableNode();l.colIndex=i;}}}setProps(e,t,i,l,o){let r,{value:s,textValue:d,id:u,...c}=e;if(this.node==null?(r=new i(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=r):r=this.getMutableNode(),c.ref=t,r.props=c,r.rendered=l,r.render=o,r.value=s,e["aria-label"]&&(r["aria-label"]=e["aria-label"]),r.textValue=d||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",u!=null&&u!==r.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(r.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate();}get style(){let e=this;return {get display(){return e.isHidden?"none":""},set display(t){let i=t==="none";if(e.isHidden!==i){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,o=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),o&&e.ownerDocument.markDirty(o),e.isHidden=i,e.ownerDocument.markDirty(e);}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},T=class extends b{nodeType=11;ownerDocument=this;dirtyNodes=new Set;isSSR=false;nodeId=0;nodesByProps=new WeakMap;keyOwners=new Map;collection;nextCollection=null;subscriptions=new Set;queuedRender=false;inSubscription=false;constructor(e){super(null),this.collection=e,this.nextCollection=e;}get isConnected(){return true}createElement(e){return new x(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e);}addNode(e){if(e.isHidden||e.node==null)return;if(process.env.NODE_ENV!=="production"){let i=e.node.key,l=this.keyOwners.get(i);if(l&&l!==e)throw new Error(`Duplicate key "${String(i)}" found in collection. Every item in a collection must have a unique key.`);this.keyOwners.set(i,e);}let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let i of e)this.addNode(i);t.addNode(e.node);}removeNode(e){for(let t of e)this.removeNode(t);e.node&&(this.getMutableCollection().removeNode(e.node.key),process.env.NODE_ENV!=="production"&&this.keyOwners.get(e.node.key)===e&&this.keyOwners.delete(e.node.key));}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=false,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof x&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof x?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=false):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null));}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=true,this.inSubscription=true,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=false;}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=false,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear());}};function N(n){let{children:e,items:t,idScope:i,addIdAndValue:l,dependencies:o=[]}=n,r=useMemo(()=>process.env.NODE_ENV!=="production"&&typeof e=="function"?e.toString():void 0,[e]),s=useMemo(()=>new WeakMap,[...o,r]);return useMemo(()=>{if(t&&typeof e=="function"){let d=[];for(let u of t){let c=X(u)?u:null,p=c?s.get(c):null;if(!p){p=e(u);let C=p.props.id??u?.key??u?.id;i!=null&&p.props.id==null&&C!=null&&(C=i+":"+C);let M=C??d.length;p=cloneElement(p,l?{key:M,id:C,value:u}:{key:M}),c&&s.set(c,p);}d.push(p);}return d}else if(typeof e!="function")return e},[e,t,s,i,l])}function X(n){switch(typeof n){case "object":return n!=null;case "function":case "symbol":return true;default:return false}}var H=createContext(false),S=createContext(null);function Z(n){if(useContext(S))return n.content;let{collection:t,document:i$1}=le(n.createCollection);return jsxs(Fragment,{children:[jsx(i,{children:jsx(S.Provider,{value:i$1,children:n.content})}),jsx(ee,{render:n.children,collection:t})]})}function ee({collection:n,render:e}){return e(n)}function te(n,e,t){let i=b$1(),l=useRef(i);l.current=i;let o=useCallback(()=>l.current?t():e(),[e,t]);return useSyncExternalStore(n,o)}var ne=typeof V.useSyncExternalStore=="function"?V.useSyncExternalStore:te;function le(n){let[e]=useState(()=>new T(n?.()||new m)),t=useCallback(r=>e.subscribe(r),[e]),i=useCallback(()=>{let r=e.getCollection();return e.isSSR&&e.resetAfterSSR(),r},[e]),l=useCallback(()=>(e.isSSR=true,e.getCollection()),[e]);return {collection:ne(t,i,l),document:e}}var P=createContext(null);function ie(n){return class extends h{static type=n}}function L(n,e,t,i,l,o){typeof n=="string"&&(n=ie(n));let r=useCallback(d=>{d?.setProps(e,t,n,i,o);},[e,t,i,o,n]),s=useContext(P);if(s){let d=s.ownerDocument.nodesByProps.get(e);return d||(d=s.ownerDocument.createElement(n.type),d.setProps(e,t,n,i,o),s.appendChild(d),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,d)),l?jsx(P.Provider,{value:d,children:l}):null}return jsx(n.type,{ref:r,children:l})}function oe(n,e){let t=({node:l})=>e(l.props,l.props.ref,l),i=forwardRef((l,o)=>{let r=useContext(a);if(!useContext(H)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(l,o)}return L(n,l,o,"children"in l?l.children:null,null,d=>jsx(a.Provider,{value:r,children:jsx(t,{node:d})}))});return i.displayName=e.name,i}function re(n,e,t=q){let i=({node:o})=>e(o.props,o.props.ref,o),l=forwardRef((o,r)=>{let s=t(o);return L(n,o,r,null,s,d=>jsx(i,{node:d}))??jsx(Fragment,{})});return l.displayName=e.name,l}function q(n){return N({...n,addIdAndValue:true})}var _=createContext(null);function se(n){let e=useContext(_),t=(e?.dependencies||[]).concat(n.dependencies),i=n.idScope??e?.idScope,l=q({...n,idScope:i,dependencies:t});return useContext(S)&&(l=jsx(de,{children:l})),e=useMemo(()=>({dependencies:t,idScope:i}),[i,...t]),jsx(_.Provider,{value:e,children:l})}function de({children:n}){let e=useContext(S),t=useMemo(()=>jsx(S.Provider,{value:null,children:jsx(H.Provider,{value:true,children:n})}),[n]);return b$1()?jsx(P.Provider,{value:e,children:t}):createPortal(t,e)}var lt=createContext(null);var he={CollectionRoot({collection:n,renderDropIndicator:e}){return W(n,null,e)},CollectionBranch({collection:n,parent:e,renderDropIndicator:t}){return W(n,e,t)}};function W(n,e,t){return N({items:e?n.getChildren(e.key):n,dependencies:[t],children(i){if(i.type==="content")return jsx(Fragment,{});let l=i.render(i);return !t||i.type!=="item"?l:jsxs(Fragment,{children:[t({type:"item",key:i.key,dropPosition:"before"}),l,ye(n,i,t)]})}})}function ye(n,e,t){let i=e.key,l=n.getKeyAfter(i),o=l!=null?n.getItem(l):null;for(;o!=null&&o.type!=="item";)l=n.getKeyAfter(o.key),o=l!=null?n.getItem(l):null;let r=e.nextKey!=null?n.getItem(e.nextKey):null;for(;r!=null&&r.type!=="item";)r=r.nextKey!=null?n.getItem(r.nextKey):null;let s=[];if(r==null){let d=e;for(;d?.type==="item"&&(!o||d.parentKey!==o.parentKey&&o.level<d.level);){let u=t({type:"item",key:d.key,dropPosition:"after"});isValidElement(u)&&s.push(cloneElement(u,{key:`${d.key}-after`})),d=d.parentKey!=null?n.getItem(d.parentKey):null;}}return s}var it=createContext(he);function ot(n){return useMemo(()=>n!=null?new Set([n]):null,[n])}export{h as a,f as b,E as c,w as d,k as e,D as f,m as g,N as h,Z as i,oe as j,re as k,se as l,lt as m,he as n,ye as o,it as p,ot as q};
@@ -1,4 +1,4 @@
1
- import {a as a$5,b as b$3,e}from'./chunk-X5Z54UUE.mjs';import {a as a$1}from'./chunk-SGZWUG3H.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {f}from'./chunk-KUDCYGII.mjs';import {a as a$3}from'./chunk-B3EZOXNU.mjs';import {b as b$2,c as c$1}from'./chunk-3WKDIXCM.mjs';import {a,b}from'./chunk-SD43KVTU.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {ArrowDownCircleFilledIcon}from'@baseline-ui/icons/16';import {AnimatePresence,motion}from'motion/react';import c,{useCallback,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {a as a$5,b as b$3,e}from'./chunk-X5Z54UUE.mjs';import {a as a$1}from'./chunk-SGZWUG3H.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {a as a$3}from'./chunk-B3EZOXNU.mjs';import {f}from'./chunk-KUDCYGII.mjs';import {b as b$2,c as c$1}from'./chunk-3WKDIXCM.mjs';import {a,b}from'./chunk-SD43KVTU.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {ArrowDownCircleFilledIcon}from'@baseline-ui/icons/16';import {AnimatePresence,motion}from'motion/react';import c,{useCallback,useEffect}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
@@ -0,0 +1,10 @@
1
+ import {a as a$5}from'./chunk-PYV5J322.mjs';import {a as a$1,b}from'./chunk-SZTFMBPY.mjs';import {c as c$1}from'./chunk-PG3WDHSK.mjs';import {a}from'./chunk-7SQRBY7N.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {c as c$2}from'./chunk-3WKDIXCM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import w 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 A=w.forwardRef(({className:F,validationState:s,variant:H="primary",labelPosition:r="top",inputStyle:d,inputClassName:v,isMultiLine:t=false,rows:N,inputRef:D,"data-block-id":L,"data-block-class":h,...e},k)=>{let B=w.useRef(null),a$6=D??B,{inputProps:o,labelProps:O,descriptionProps:j,errorMessageProps:C,validationErrors:U}=a({...e,inputElementType:t?"textarea":"input",validationState:s==="error"||e.errorMessage?"invalid":s?"valid":void 0},a$6),n=e.errorMessage||U.join(" "),m=c(),V=a$1({...e,errorMessage:n})==="warningMessage",W=b({...e,errorMessage:n,descriptionProps:j,errorMessageProps:C,warningMessageProps:{id:m},labelPosition:r});n&&(s="error");let{isFocused:u,focusProps:c$3,isFocusVisible:_}=a$2(),f=V?{"aria-describedby":[o["aria-describedby"],m].filter(Boolean).join(" ")}:null,T=a$3({"data-readonly":e.isReadOnly,"data-disabled":e.isDisabled,"data-validation-state":s,"data-focused":u,"data-focus-visible":_}),g=a$4(c$1({isDisabled:e.isDisabled,labelPosition:r,isMultiLine:t}),"BaselineUI-TextInput-Input",v);return jsx(a$5,{variant:H,labelProps:O,isFocused:u,message:W,ref:k,labelPosition:r,className:a$4("BaselineUI-TextInput",F),validationState:s,isMultiLine:t,"data-block-id":L,"data-block-class":h,...e,children:t?jsx("textarea",{...c$2(o,c$3,T,f),className:g,style:d,rows:N,ref:a$6}):jsx("input",{...c$2(o,c$3,T,f),className:g,style:d,ref:a$6})})});A.displayName="TextInput";export{A as a};
@@ -1,4 +1,4 @@
1
- import {c as c$1}from'./chunk-RO5ZRU3Y.mjs';import {a as a$6}from'./chunk-VGFPT43C.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {TrashIcon}from'@baseline-ui/icons/16';import*as V from'dompurify';import F from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
1
+ import {c as c$1}from'./chunk-RO5ZRU3Y.mjs';import {a as a$6}from'./chunk-JTKDC2CM.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {TrashIcon}from'@baseline-ui/icons/16';import*as V from'dompurify';import F 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
@@ -1,4 +1,4 @@
1
- import {c}from'./chunk-L3SNGDBH.mjs';import {b}from'./chunk-DF2D7NE6.mjs';import {a as a$2}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-VGFPT43C.mjs';import {a as a$4}from'./chunk-3BG6K2G2.mjs';import {b as b$1}from'./chunk-OQPYPKZV.mjs';import {e}from'./chunk-GMALMQWI.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {u}from'./chunk-PPHSLODC.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a as a$6}from'./chunk-ETM4MNG4.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import z,{useMemo,useState,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {c}from'./chunk-L3SNGDBH.mjs';import {b}from'./chunk-DF2D7NE6.mjs';import {a as a$2}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-JTKDC2CM.mjs';import {a as a$4}from'./chunk-UY76QEJC.mjs';import {b as b$1}from'./chunk-OQPYPKZV.mjs';import {e}from'./chunk-GMALMQWI.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {u}from'./chunk-PPHSLODC.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a as a$6}from'./chunk-ETM4MNG4.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import z,{useMemo,useState,useEffect}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 {a as a$1,r,d}from'./chunk-K7VOXFSK.mjs';import {i,l}from'./chunk-YQHHE5AT.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {createElement,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
1
+ import {a as a$1,r,d}from'./chunk-266F6F4Y.mjs';import {i,l}from'./chunk-6Z3GYFG5.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {createElement,useMemo}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 {c as c$1,a as a$4,d,b as b$1,e}from'./chunk-X5Z54UUE.mjs';import {c as c$3,b as b$5}from'./chunk-ONEE6UCM.mjs';import {b as b$4}from'./chunk-6G7EUNZW.mjs';import {a as a$7}from'./chunk-CY6W27WG.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {b as b$2}from'./chunk-KG2EHFYA.mjs';import {b as b$3}from'./chunk-N2XGJKZG.mjs';import {d as d$1}from'./chunk-GQIS4QBN.mjs';import {a as a$2}from'./chunk-SGZWUG3H.mjs';import {a}from'./chunk-STMDFIUL.mjs';import {c as c$4}from'./chunk-HH4VLTF3.mjs';import {b as b$6}from'./chunk-4S4GGUSH.mjs';import {j,f as f$1}from'./chunk-KUDCYGII.mjs';import {a as a$1}from'./chunk-B3EZOXNU.mjs';import {q}from'./chunk-PPHSLODC.mjs';import {c,b}from'./chunk-3WKDIXCM.mjs';import {a as a$6}from'./chunk-SVIYLH7R.mjs';import {c as c$2}from'./chunk-ETM4MNG4.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {XIcon as XIcon$1}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1,XIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/16';import f,{useState,useRef,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {c as c$1,a as a$4,d,b as b$2,e}from'./chunk-X5Z54UUE.mjs';import {c as c$4,b as b$6}from'./chunk-MHAPHPNN.mjs';import {b as b$5}from'./chunk-XAM3AXXK.mjs';import {a as a$7}from'./chunk-CY6W27WG.mjs';import {b,c as c$2}from'./chunk-IDIZSV2Y.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {b as b$3}from'./chunk-KG2EHFYA.mjs';import {b as b$4}from'./chunk-N2XGJKZG.mjs';import {d as d$1}from'./chunk-GQIS4QBN.mjs';import {a as a$2}from'./chunk-SGZWUG3H.mjs';import {a}from'./chunk-STMDFIUL.mjs';import {c as c$5}from'./chunk-HH4VLTF3.mjs';import {b as b$7}from'./chunk-4S4GGUSH.mjs';import {a as a$1}from'./chunk-B3EZOXNU.mjs';import {j,f}from'./chunk-KUDCYGII.mjs';import {q}from'./chunk-PPHSLODC.mjs';import {c,b as b$1}from'./chunk-3WKDIXCM.mjs';import {a as a$6}from'./chunk-SVIYLH7R.mjs';import {c as c$3}from'./chunk-ETM4MNG4.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {XIcon as XIcon$1}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1,XIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/16';import T,{useState,useRef,useEffect}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 {c as c$1,a as a$4,d,b as b$1,e}from'./chunk-X5Z54UUE.mjs';import {c as c
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var H=new WeakMap;function ge(i,e,a){let{direction:o}=b$3(),r=i.keyboardDelegate||new b$4({collection:e.collection,ref:a,orientation:"horizontal",direction:o,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:p,fieldProps:t,descriptionProps:s,errorMessageProps:l}=a$7({...i,labelElementType:"span",ref:a}),{gridProps:u}=b$5({...i,...t,keyboardDelegate:r,shouldFocusWrap:true,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,a),[c$1,g]=useState(false),{focusWithinProps:m}=b$6({onFocusWithinChange:g}),b=a$6(i),n=useRef(e.collection.size);return useEffect(()=>{a.current&&n.current>0&&e.collection.size===0&&c$1&&a.current.focus(),n.current=e.collection.size;},[e.collection.size,c$1,a]),H.set(e,{onRemove:i.onRemove}),{gridProps:c(u,b,{role:e.collection.size?"grid":"group","aria-atomic":false,"aria-relevant":"additions","aria-live":c$1?"polite":"off",...m,...t}),labelProps:p,descriptionProps:s,errorMessageProps:l}}var ee={"ar-AE":{removeButtonLabel:"\u0625\u0632\u0627\u0644\u0629",removeDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D DELETE \u0644\u0625\u0632\u0627\u0644\u0629 \u0639\u0644\u0627\u0645\u0629."},"bg-BG":{removeButtonLabel:"\u041F\u0440\u0435\u043C\u0430\u0445\u0432\u0430\u043D\u0435",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Delete, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043C\u0430\u0440\u043A\u0435\u0440\u0430."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xEDm kl\xE1vesy Delete odeberete zna\u010Dku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xE5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf \u201EL\xF6schen\u201C dr\xFCcken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7",removeDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03C1\u03B3\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B9\u03BA\u03AD\u03C4\u03B1."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l\u2019\xE9tiquette."},"he-IL":{removeButtonLabel:"\u05D4\u05E1\u05E8",removeDescription:"\u05DC\u05D7\u05E5 \u05E2\u05DC \u05DE\u05D7\u05E7 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E1\u05D9\u05E8 \u05EA\u05D2."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xE1vol\xEDt\xE1s",removeDescription:"Nyomja meg a Delete billenty\u0171t a c\xEDmke elt\xE1vol\xEDt\xE1s\xE1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"\u524A\u9664",removeDescription:"\u30BF\u30B0\u3092\u524A\u9664\u3059\u308B\u306B\u306F\u3001Delete \u30AD\u30FC\u3092\u62BC\u3057\u307E\u3059\u3002"},"ko-KR":{removeButtonLabel:"\uC81C\uAC70",removeDescription:"\uD0DC\uADF8\uB97C \uC81C\uAC70\uD558\uB824\uBA74 Delete \uD0A4\uB97C \uB204\uB974\uC2ED\uC2DC\uC624."},"lt-LT":{removeButtonLabel:"Pa\u0161alinti",removeDescription:"Nor\u0117dami pa\u0161alinti \u017Eym\u0105, paspauskite \u201EDelete\u201C klavi\u0161\u0105."},"lv-LV":{removeButtonLabel:"No\u0146emt",removeDescription:"Nospiediet Delete [Dz\u0113st], lai no\u0146emtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xE5 Slett for \xE5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usu\u0144",removeDescription:"Naci\u015Bnij Usu\u0144, aby usun\u0105\u0107 znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xCEndep\u0103rta\u0163i",removeDescription:"Ap\u0103sa\u021Bi pe Delete (\u0218tergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",removeDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 DELETE, \u0447\u0442\u043E\u0431\u044B \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u0433."},"sk-SK":{removeButtonLabel:"Odstr\xE1ni\u0165",removeDescription:"Ak chcete odstr\xE1ni\u0165 zna\u010Dku, stla\u010Dte kl\xE1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obri\u0161i da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xE5 Radera f\xF6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kald\u0131r",removeDescription:"Etiketi kald\u0131rmak i\xE7in Sil tu\u015Funa bas\u0131n."},"uk-UA":{removeButtonLabel:"\u0412\u0438\u043B\u0443\u0447\u0438\u0442\u0438",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Delete, \u0449\u043E\u0431 \u0432\u0438\u043B\u0443\u0447\u0438\u0442\u0438 \u0442\u0435\u0433."},"zh-CN":{removeButtonLabel:"\u5220\u9664",removeDescription:"\u6309\u4E0B\u201C\u5220\u9664\u201D\u4EE5\u5220\u9664\u6807\u8BB0\u3002"},"zh-TW":{removeButtonLabel:"\u79FB\u9664",removeDescription:"\u6309 Delete \u9375\u4EE5\u79FB\u9664\u6A19\u8A18\u3002"}};function I(i,e,a){let{item:o}=i,r=b$2(ee,"@react-aria/tag"),p=c$2(),{onRemove:t}=H.get(e)||{},{rowProps:s,gridCellProps:l,...u}=c$3({node:o},e,a),{descriptionProps:c$1,...g}=u,m=e.disabledKeys.has(o.key)||o.props.isDisabled,{keyboardProps:b}=j({isDisabled:m,shortcuts:{Delete:()=>{e.selectionManager.isSelected(o.key)?t?.(new Set(e.selectionManager.selectedKeys)):t?.(new Set([o.key]));},Backspace:()=>{e.selectionManager.isSelected(o.key)?t?.(new Set(e.selectionManager.selectedKeys)):t?.(new Set([o.key]));}},allowRepeats:true}),n=f$1();n==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(n="pointer");let T=t&&(n==="keyboard"||n==="virtual")?r.format("removeDescription"):"",P=d$1(T,a),D=o.key===e.selectionManager.focusedKey,L=e.selectionManager.focusedKey!=null,y=-1;!m&&(D||!L)&&(y=0);let k=a$6(o.props),B=q(o.props),{focusableProps:h}=c$4({...o.props,isDisabled:m},a);return {removeButtonProps:{"aria-label":r.format("removeButtonLabel"),"aria-labelledby":`${p} ${s.id}`,isDisabled:m,id:p,onPress:()=>t?t(new Set([o.key])):null},rowProps:c(h,s,k,B,{tabIndex:y,...t?b:{},"aria-describedby":P["aria-describedby"]}),gridCellProps:c(l,{"aria-errormessage":i["aria-errormessage"],"aria-label":i["aria-label"]}),...g,allowsRemoving:!!t}}var te=f.createContext(null),re=f.createContext(null);var ae=f.forwardRef((i,e)=>{let a=f.useContext(te),o=f.useContext(re);return a&&o?jsx(se,{...i,ref:e,groupCtx:a,itemCtx:o}):jsx(ie,{...i,ref:e})});ae.displayName="Tag";var ie=f.forwardRef(({children:i,variant:e="neutral",size:a$2="md",icon:o,isDisabled:r=false,isSelected:p=false,onRemove:t,className:s,style:l,"data-block-id":u,"data-block-class":c$1},g)=>{let{focusProps:m,isFocusVisible:b}=a({within:true}),{hoverProps:n,isHovered:T}=a$1({isDisabled:r}),{hoverProps:P,isHovered:D}=a$1({isDisabled:r}),L=!!t;return jsx(w,{ref:g,outerProps:c(m,P),variant:e,size:a$2,Icon:o,isDisabled:r,isSelected:p,isFocusVisible:b,isTagHovered:D,allowsRemoving:L,allowsSelection:false,removeButtonProps:n,defaultRemoveProps:{"aria-label":"Remove",disabled:r,onClick:t},isRemoveHovered:T,className:s,style:l,"data-block-id":u,"data-block-class":c$1,children:i})});ie.displayName="TagStandalone";var se=f.forwardRef(({groupCtx:i,itemCtx:e,variant:a$3,...o},r)=>{let{state:p,variant:t,size:s}=i,{item:l}=e,u=f.useRef(null),{rowProps:c$1,gridCellProps:g,removeButtonProps:m,allowsRemoving:b$1,isDisabled:n,isSelected:T,allowsSelection:P}=I({item:l},p,u),D=f.useRef(null),{buttonProps:L}=a$2({...m,excludeFromTabOrder:true},D),{focusProps:y,isFocusVisible:k}=a({within:true}),{hoverProps:B,isHovered:h}=a$1({isDisabled:n}),{hoverProps:ne,isHovered:le}=a$1({isDisabled:n}),me=l.value?.icon,pe=l.value?.data?.variant??a$3??t,ce=o.size??s??"md";return jsx(w,{ref:b(u,r),outerProps:c(c$1,y,ne),gridCellProps:g,variant:pe,size:ce,Icon:me,isDisabled:n,isSelected:T,isFocusVisible:k,isTagHovered:le,allowsRemoving:b$1,allowsSelection:P,removeButtonProps:c(L,B),isRemoveHovered:h,children:l.rendered})});se.displayName="TagInGroup";var w=f.forwardRef(({children:i,outerProps:e$1,gridCellProps:a,variant:o="neutral",size:r,Icon:p,isDisabled:t,isSelected:s,isFocusVisible:l,isTagHovered:u,allowsRemoving:c$2,allowsSelection:g,removeButtonProps:m,defaultRemoveProps:b,isRemoveHovered:n,className:T,style:P,"data-block-id":D,"data-block-class":L},y)=>{let k=r==="md"?XIcon:XIcon$1,B=r==="md"?CheckmarkIcon:CheckmarkIcon$1;return jsx("div",{...e$1,ref:y,"aria-disabled":t||void 0,className:a$3(b$1({isFocusVisible:l,variant:o,isDisabled:t,allowsRemoving:c$2,isSelected:s,allowsSelection:g,isHovered:u,size:r}),e({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag",T),style:P,"data-block-id":D,"data-block-class":L,children:jsxs("div",{...a,className:c$1,children:[s?jsx(B,{size:r==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag-Icon")}):null,!s&&p?jsx(p,{size:r==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag-Icon")}):null,jsx(a$5,{paddingY:r==="md"?"sm":"none",typography:r==="sm"?"label.sm.medium":"label.md.medium",children:i}),c$2?jsx("button",{type:"button",...c(m,b??{}),className:d({variant:o,isHovered:n}),children:jsx(k,{size:r==="md"?12:8})}):null]})})});w.displayName="TagView";export{ge as a,te as b,re as c,ae as d};
10
+ var H=new WeakMap;function fe(i,e,a){let{direction:o}=b$4(),r=i.keyboardDelegate||new b$5({collection:e.collection,ref:a,orientation:"horizontal",direction:o,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:p,fieldProps:t,descriptionProps:s,errorMessageProps:l}=a$7({...i,labelElementType:"span",ref:a}),{gridProps:u}=b$6({...i,...t,keyboardDelegate:r,shouldFocusWrap:true,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,a),[c$1,g]=useState(false),{focusWithinProps:m}=b$7({onFocusWithinChange:g}),b=a$6(i),n=useRef(e.collection.size);return useEffect(()=>{a.current&&n.current>0&&e.collection.size===0&&c$1&&a.current.focus(),n.current=e.collection.size;},[e.collection.size,c$1,a]),H.set(e,{onRemove:i.onRemove}),{gridProps:c(u,b,{role:e.collection.size?"grid":"group","aria-atomic":false,"aria-relevant":"additions","aria-live":c$1?"polite":"off",...m,...t}),labelProps:p,descriptionProps:s,errorMessageProps:l}}var te={"ar-AE":{removeButtonLabel:"\u0625\u0632\u0627\u0644\u0629",removeDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D DELETE \u0644\u0625\u0632\u0627\u0644\u0629 \u0639\u0644\u0627\u0645\u0629."},"bg-BG":{removeButtonLabel:"\u041F\u0440\u0435\u043C\u0430\u0445\u0432\u0430\u043D\u0435",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Delete, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043C\u0430\u0440\u043A\u0435\u0440\u0430."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xEDm kl\xE1vesy Delete odeberete zna\u010Dku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xE5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf \u201EL\xF6schen\u201C dr\xFCcken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7",removeDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03C1\u03B3\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B9\u03BA\u03AD\u03C4\u03B1."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l\u2019\xE9tiquette."},"he-IL":{removeButtonLabel:"\u05D4\u05E1\u05E8",removeDescription:"\u05DC\u05D7\u05E5 \u05E2\u05DC \u05DE\u05D7\u05E7 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E1\u05D9\u05E8 \u05EA\u05D2."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xE1vol\xEDt\xE1s",removeDescription:"Nyomja meg a Delete billenty\u0171t a c\xEDmke elt\xE1vol\xEDt\xE1s\xE1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"\u524A\u9664",removeDescription:"\u30BF\u30B0\u3092\u524A\u9664\u3059\u308B\u306B\u306F\u3001Delete \u30AD\u30FC\u3092\u62BC\u3057\u307E\u3059\u3002"},"ko-KR":{removeButtonLabel:"\uC81C\uAC70",removeDescription:"\uD0DC\uADF8\uB97C \uC81C\uAC70\uD558\uB824\uBA74 Delete \uD0A4\uB97C \uB204\uB974\uC2ED\uC2DC\uC624."},"lt-LT":{removeButtonLabel:"Pa\u0161alinti",removeDescription:"Nor\u0117dami pa\u0161alinti \u017Eym\u0105, paspauskite \u201EDelete\u201C klavi\u0161\u0105."},"lv-LV":{removeButtonLabel:"No\u0146emt",removeDescription:"Nospiediet Delete [Dz\u0113st], lai no\u0146emtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xE5 Slett for \xE5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usu\u0144",removeDescription:"Naci\u015Bnij Usu\u0144, aby usun\u0105\u0107 znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xCEndep\u0103rta\u0163i",removeDescription:"Ap\u0103sa\u021Bi pe Delete (\u0218tergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",removeDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 DELETE, \u0447\u0442\u043E\u0431\u044B \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u0433."},"sk-SK":{removeButtonLabel:"Odstr\xE1ni\u0165",removeDescription:"Ak chcete odstr\xE1ni\u0165 zna\u010Dku, stla\u010Dte kl\xE1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obri\u0161i da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xE5 Radera f\xF6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kald\u0131r",removeDescription:"Etiketi kald\u0131rmak i\xE7in Sil tu\u015Funa bas\u0131n."},"uk-UA":{removeButtonLabel:"\u0412\u0438\u043B\u0443\u0447\u0438\u0442\u0438",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Delete, \u0449\u043E\u0431 \u0432\u0438\u043B\u0443\u0447\u0438\u0442\u0438 \u0442\u0435\u0433."},"zh-CN":{removeButtonLabel:"\u5220\u9664",removeDescription:"\u6309\u4E0B\u201C\u5220\u9664\u201D\u4EE5\u5220\u9664\u6807\u8BB0\u3002"},"zh-TW":{removeButtonLabel:"\u79FB\u9664",removeDescription:"\u6309 Delete \u9375\u4EE5\u79FB\u9664\u6A19\u8A18\u3002"}};function I(i,e,a){let{item:o}=i,r=b$3(te,"@react-aria/tag"),p=c$3(),{onRemove:t}=H.get(e)||{},{rowProps:s,gridCellProps:l,...u}=c$4({node:o},e,a),{descriptionProps:c$1,...g}=u,m=e.disabledKeys.has(o.key)||o.props.isDisabled,{keyboardProps:b}=j({isDisabled:m,shortcuts:{Delete:()=>{e.selectionManager.isSelected(o.key)?t?.(new Set(e.selectionManager.selectedKeys)):t?.(new Set([o.key]));},Backspace:()=>{e.selectionManager.isSelected(o.key)?t?.(new Set(e.selectionManager.selectedKeys)):t?.(new Set([o.key]));}},allowRepeats:true}),n=f();n==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(n="pointer");let P=t&&(n==="keyboard"||n==="virtual")?r.format("removeDescription"):"",D=d$1(P,a),L=o.key===e.selectionManager.focusedKey,y=e.selectionManager.focusedKey!=null,f$1=-1;!m&&(L||!y)&&(f$1=0);let k=a$6(o.props),B=q(o.props),{focusableProps:h}=c$5({...o.props,isDisabled:m},a);return {removeButtonProps:{"aria-label":r.format("removeButtonLabel"),"aria-labelledby":`${p} ${s.id}`,isDisabled:m,id:p,onPress:()=>t?t(new Set([o.key])):null},rowProps:c(h,s,k,B,{tabIndex:f$1,...t?b:{},"aria-describedby":D["aria-describedby"]}),gridCellProps:c(l,{"aria-errormessage":i["aria-errormessage"],"aria-label":i["aria-label"]}),...g,allowsRemoving:!!t}}var ae=T.createContext(null),ie=T.createContext(null);var se=T.forwardRef((i,e)=>{let a=T.useContext(ae),o=T.useContext(ie);return a&&o?jsx(le,{...i,ref:e,groupCtx:a,itemCtx:o}):jsx(ne,{...i,ref:e})});se.displayName="Tag";var ne=T.forwardRef(({children:i,variant:e="neutral",size:a$2="md",icon:o,isDisabled:r=false,isSelected:p=false,onRemove:t,removeLabel:s,className:l,style:u,"data-block-id":c$1,"data-block-class":g},m)=>{let{formatMessage:b$1}=b(),{focusProps:n,isFocusVisible:P}=a({within:true}),{hoverProps:D,isHovered:L}=a$1({isDisabled:r}),{hoverProps:y,isHovered:f}=a$1({isDisabled:r}),k=!!t;return jsx(w,{ref:m,outerProps:c(n,y),variant:e,size:a$2,Icon:o,isDisabled:r,isSelected:p,isFocusVisible:P,isTagHovered:f,allowsRemoving:k,allowsSelection:false,removeButtonProps:D,defaultRemoveProps:{"aria-label":s??b$1(ye.remove),disabled:r,onClick:t},isRemoveHovered:L,className:l,style:u,"data-block-id":c$1,"data-block-class":g,children:i})});ne.displayName="TagStandalone";var le=T.forwardRef(({groupCtx:i,itemCtx:e,variant:a$3,...o},r)=>{let{state:p,variant:t,size:s}=i,{item:l}=e,u=T.useRef(null),{rowProps:c$1,gridCellProps:g,removeButtonProps:m,allowsRemoving:b,isDisabled:n,isSelected:P,allowsSelection:D}=I({item:l},p,u),L=T.useRef(null),{buttonProps:y}=a$2({...m,excludeFromTabOrder:true},L),{focusProps:f,isFocusVisible:k}=a({within:true}),{hoverProps:B,isHovered:h}=a$1({isDisabled:n}),{hoverProps:me,isHovered:pe}=a$1({isDisabled:n}),ce=l.value?.icon,ue=l.value?.data?.variant??a$3??t,de=o.size??s??"md";return jsx(w,{ref:b$1(u,r),outerProps:c(c$1,f,me),gridCellProps:g,variant:ue,size:de,Icon:ce,isDisabled:n,isSelected:P,isFocusVisible:k,isTagHovered:pe,allowsRemoving:b,allowsSelection:D,removeButtonProps:c(y,B),isRemoveHovered:h,children:l.rendered})});le.displayName="TagInGroup";var w=T.forwardRef(({children:i,outerProps:e$1,gridCellProps:a,variant:o="neutral",size:r,Icon:p,isDisabled:t,isSelected:s,isFocusVisible:l,isTagHovered:u,allowsRemoving:c$2,allowsSelection:g,removeButtonProps:m,defaultRemoveProps:b,isRemoveHovered:n,className:P,style:D,"data-block-id":L,"data-block-class":y},f)=>{let k=r==="md"?XIcon:XIcon$1,B=r==="md"?CheckmarkIcon:CheckmarkIcon$1;return jsx("div",{...e$1,ref:f,"aria-disabled":t||void 0,className:a$3(b$2({isFocusVisible:l,variant:o,isDisabled:t,allowsRemoving:c$2,isSelected:s,allowsSelection:g,isHovered:u,size:r}),e({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag",P),style:D,"data-block-id":L,"data-block-class":y,children:jsxs("div",{...a,className:c$1,children:[s?jsx(B,{size:r==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag-Icon")}):null,!s&&p?jsx(p,{size:r==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:t,isSelected:s}),"BaselineUI-Tag-Icon")}):null,jsx(a$5,{paddingY:r==="md"?"sm":"none",typography:r==="sm"?"label.sm.medium":"label.md.medium",children:i}),c$2?jsx("button",{type:"button",...c(m,b??{}),className:d({variant:o,isHovered:n}),children:jsx(k,{size:r==="md"?12:8})}):null]})})});w.displayName="TagView";var ye=c$2({remove:{id:"bui.tag.remove",defaultMessage:"Remove"}});export{fe as a,ae as b,ie as c,se as d};
@@ -1,4 +1,4 @@
1
- import {a as a$1}from'./chunk-CLGLEEFO.mjs';import {a as a$g,b as b$4}from'./chunk-DAN62T2M.mjs';import {a as a$j}from'./chunk-4I7K4CCG.mjs';import {a as a$h}from'./chunk-YF63IQQR.mjs';import {b,c as c$1}from'./chunk-DZDZZRWE.mjs';import {c as c$3}from'./chunk-W6QO7FPZ.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {a as a$7}from'./chunk-3BG6K2G2.mjs';import {a as a$i}from'./chunk-NUCSMH4S.mjs';import {a as a$c}from'./chunk-UFN2OAM2.mjs';import {b as b$2}from'./chunk-KG2EHFYA.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {a as a$f}from'./chunk-K5RYVERS.mjs';import {a as a$4}from'./chunk-VDUFLHKK.mjs';import {a as a$k}from'./chunk-66CUIXA6.mjs';import {a as a$e}from'./chunk-Y2MIU76N.mjs';import {a as a$b}from'./chunk-4QBHQCCK.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {d}from'./chunk-HH4VLTF3.mjs';import {b as b$3,a as a$d}from'./chunk-4S4GGUSH.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {a as a$a,h,l}from'./chunk-PPHSLODC.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$8}from'./chunk-SVIYLH7R.mjs';import {c as c$2}from'./chunk-ETM4MNG4.mjs';import {a as a$9}from'./chunk-6ZQE5SHE.mjs';import {b as b$5}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {HelpIcon}from'@baseline-ui/icons/16';import Nr,{useMemo,useState,useCallback,useRef}from'react';import {flushSync}from'react-dom';import {themeVars}from'@baseline-ui/tokens';import {jsx,jsxs}from'react/jsx-runtime';/**
1
+ import {a as a$1,e}from'./chunk-FCKJCFMD.mjs';import {a as a$g,b as b$4}from'./chunk-TIGGKOJQ.mjs';import {a as a$j}from'./chunk-4I7K4CCG.mjs';import {a as a$h}from'./chunk-YF63IQQR.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {c as c$3}from'./chunk-W6QO7FPZ.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {a as a$7}from'./chunk-UY76QEJC.mjs';import {a as a$i}from'./chunk-NUCSMH4S.mjs';import {a as a$c}from'./chunk-UFN2OAM2.mjs';import {b as b$2}from'./chunk-KG2EHFYA.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {a as a$f}from'./chunk-K5RYVERS.mjs';import {a as a$4}from'./chunk-VDUFLHKK.mjs';import {a as a$e}from'./chunk-Y2MIU76N.mjs';import {a as a$k}from'./chunk-66CUIXA6.mjs';import {a as a$b}from'./chunk-4QBHQCCK.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {d}from'./chunk-HH4VLTF3.mjs';import {b as b$3,a as a$d}from'./chunk-4S4GGUSH.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a as a$a,h,l}from'./chunk-PPHSLODC.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$8}from'./chunk-SVIYLH7R.mjs';import {c as c$2}from'./chunk-ETM4MNG4.mjs';import {a as a$9}from'./chunk-6ZQE5SHE.mjs';import {b as b$5}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {HelpIcon}from'@baseline-ui/icons/16';import Mr,{useMemo,useState,useCallback,useRef}from'react';import {flushSync}from'react-dom';import {themeVars}from'@baseline-ui/tokens';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$1}from'./chunk-CLGLEEFO.mjs';import {a as a$g,b as b$4}from'./chu
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var ae={"ar-AE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0623\u062F\u0627\u0629 \u0627\u0646\u062A\u0642\u0627\u0621 \u0627\u0644\u0644\u0648\u0646",colorSwatch:"\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0623\u0644\u0648\u0627\u0646",transparent:"\u0634\u0641\u0627\u0641",twoDimensionalSlider:"\u0645\u064F\u0646\u0632\u0644\u0642 2D"},"bg-BG":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0437\u0430 \u0438\u0437\u0431\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0446\u0432\u044F\u0442",colorSwatch:"\u0446\u0432\u0435\u0442\u043D\u0430 \u043C\u043E\u0441\u0442\u0440\u0430",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u0435\u043D",twoDimensionalSlider:"2D \u043F\u043B\u044A\u0437\u0433\u0430\u0447"},"cs-CZ":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDb\u011Br barvy",colorSwatch:"barevn\xFD vzorek",transparent:"pr\u016Fhledn\xFD",twoDimensionalSlider:"2D posuvn\xEDk"},"da-DK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farvev\xE6lger",colorSwatch:"farvepr\xF8ve",transparent:"gennemsigtig",twoDimensionalSlider:"2D-skyder"},"de-DE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farbw\xE4hler",colorSwatch:"Farbfeld",transparent:"transparent",twoDimensionalSlider:"2D-Schieberegler"},"el-GR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03B1\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",colorSwatch:"\u03C7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03CC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1",transparent:"\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AD\u03C2",twoDimensionalSlider:"\u03A1\u03C5\u03B8\u03BC\u03B9\u03C3\u03C4\u03B9\u03BA\u03CC 2D"},"en-US":{colorPicker:"Color picker",twoDimensionalSlider:"2D slider",colorNameAndValue:e=>`${e.name}: ${e.value}`,colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorSwatch:"color swatch",transparent:"transparent"},"es-ES":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de color",colorSwatch:"muestra de color",transparent:"transparente",twoDimensionalSlider:"Regulador 2D"},"et-EE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rvivalija",colorSwatch:"v\xE4rvin\xE4idis",transparent:"l\xE4bipaistev",twoDimensionalSlider:"2D-liugur"},"fi-FI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rimuokkain",colorSwatch:"v\xE4rimalli",transparent:"l\xE4pin\xE4kyv\xE4",twoDimensionalSlider:"2D-liukus\xE4\xE4din"},"fr-FR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\xA0: ${e.value}`,colorPicker:"S\xE9lecteur de couleurs",colorSwatch:"\xC9chantillon de couleurs",transparent:"Transparent",twoDimensionalSlider:"Curseur\xA02D"},"he-IL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u05D1\u05D5\u05D7\u05E8 \u05D4\u05E6\u05D1\u05E2\u05D9\u05DD",colorSwatch:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05EA \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3",twoDimensionalSlider:"\u05DE\u05D7\u05D5\u05D5\u05DF \u05D3\u05D5 \u05DE\u05D9\u05DE\u05D3\u05D9"},"hr-HR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Odabir boje",colorSwatch:"uzorak boje",transparent:"transparentno",twoDimensionalSlider:"2D kliza\u010D"},"hu-HU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Sz\xEDnv\xE1laszt\xF3",colorSwatch:"sz\xEDnt\xE1r",transparent:"\xE1tl\xE1tsz\xF3",twoDimensionalSlider:"2D-cs\xFAszka"},"it-IT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selettore colore",colorSwatch:"campione di colore",transparent:"trasparente",twoDimensionalSlider:"Cursore 2D"},"ja-JP":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"\u30AB\u30E9\u30FC\u30D4\u30C3\u30AB\u30FC",colorSwatch:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u30B9\u30E9\u30A4\u30C0\u30FC"},"ko-KR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\uC0C9\uC0C1 \uD53C\uCEE4",colorSwatch:"\uC0C9\uC0C1 \uACAC\uBCF8",transparent:"\uD22C\uBA85\uB3C4",twoDimensionalSlider:"2D \uC2AC\uB77C\uC774\uB354"},"lt-LT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Spalv\u0173 parinkiklis",colorSwatch:"spalv\u0173 pavyzdys",transparent:"skaidrus",twoDimensionalSlider:"2D slankiklis"},"lv-LV":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kr\u0101su atlas\u012Bt\u0101js",colorSwatch:"kr\u0101su paraugs",transparent:"caursp\u012Bd\u012Bgs",twoDimensionalSlider:"2D sl\u012Bdnis"},"nb-NO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Fargevelger",colorSwatch:"fargekart",transparent:"gjennomsiktig",twoDimensionalSlider:"2D-glidebryter"},"nl-NL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kleurkiezer",colorSwatch:"kleurstaal",transparent:"transparant",twoDimensionalSlider:"2D-schuifregelaar"},"pl-PL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Pr\xF3bnik kolor\xF3w",colorSwatch:"pr\xF3bka koloru",transparent:"przezroczysty",twoDimensionalSlider:"Suwak 2D"},"pt-BR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cores",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"pt-PT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cor",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"ro-RO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de culori",colorSwatch:"specimen de culoare",transparent:"transparent",twoDimensionalSlider:"Glisor 2D"},"ru-RU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0438\u0442\u0440\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",colorSwatch:"\u0446\u0432\u0435\u0442\u043E\u0432\u043E\u0439 \u043E\u0431\u0440\u0430\u0437\u0435\u0446",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",twoDimensionalSlider:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A 2D"},"sk-SK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDber farieb",colorSwatch:"vzorkovn\xEDk farieb",transparent:"transparentn\xFD",twoDimensionalSlider:"2D jazdec"},"sl-SI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Izbirnik barv",colorSwatch:"barvna paleta",transparent:"prozorno",twoDimensionalSlider:"2D drsnik"},"sr-SP":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Bira\u010D boja",colorSwatch:"Uzorak boje",transparent:"providno",twoDimensionalSlider:"2D kliza\u010D"},"sv-SE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"F\xE4rgv\xE4ljaren",colorSwatch:"f\xE4rgruta",transparent:"genomskinlig",twoDimensionalSlider:"2D-reglage"},"tr-TR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Renk Se\xE7ici",colorSwatch:"renk \xF6rne\u011Fi",transparent:"saydam",twoDimensionalSlider:"2D s\xFCrg\xFC"},"uk-UA":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0456\u0442\u0440\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",colorSwatch:"\u0437\u0440\u0430\u0437\u043E\u043A \u043A\u043E\u043B\u044C\u043E\u0440\u0443",transparent:"\u043F\u0440\u043E\u0437\u043E\u0440\u0438\u0439",twoDimensionalSlider:"\u041F\u043E\u0432\u0437\u0443\u043D\u043E\u043A 2D"},"zh-CN":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u62FE\u8272\u5668",colorSwatch:"\u989C\u8272\u8272\u677F",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u5757"},"zh-TW":{colorInputLabel:e=>`${e.label}\uFF0C${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u6AA2\u8272\u5668",colorSwatch:"\u8272\u7968",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u687F"}};var Ge=e=>[0,60,120,180,240,300,360].map(r=>e.withChannelValue("hue",r).toString("css")).join(", "),Ye=e=>`${e.withChannelValue("saturation",0)}, transparent`,Pr={hue:Ge,saturation:Ye,lightness:()=>"black, transparent, white"},wr={hue:Ge,saturation:Ye,brightness:()=>"black, transparent"};function Je({direction:e,state:r,zChannel:l,xChannel:t,yChannel:a}){return useMemo(()=>{let y=e==="rtl"?"left":"right",C={},S=r.value.getChannelValue(l);switch(r.value.getColorSpace()){case "rgb":{let i=a$1("rgb(0, 0, 0)");C={background:[`linear-gradient(to ${y}, ${i.withChannelValue(t,0)}, ${i.withChannelValue(t,255)})`,`linear-gradient(to top, ${i.withChannelValue(a,0)}, ${i.withChannelValue(a,255)})`,i.withChannelValue(l,S)].join(","),backgroundBlendMode:"screen"};break}case "hsl":{let i=r.value.getColorChannels(),s=a$1("hsl(0, 100%, 50%)").withChannelValue(l,S),c=i.filter(n=>n!==l).map(n=>`linear-gradient(to ${n===t?y:"top"}, ${Pr[n](s)})`).reverse();l==="hue"&&c.push(s.toString("css")),C={background:c.join(", ")};break}case "hsb":{let i=r.value.getColorChannels(),s=a$1("hsb(0, 100%, 100%)").withChannelValue(l,S),c=i.filter(n=>n!==l).map(n=>`linear-gradient(to ${n===t?y:"top"}, ${wr[n](s)})`).reverse();l==="hue"&&c.push(s.toString("css")),C={background:c.join(", ")};break}}let{x:f,y:d}=r.getThumbPosition();e==="rtl"&&(f=1-f);let z={forcedColorAdjust:"none"};return {colorAreaStyleProps:{style:{position:"relative",touchAction:"none",...z,...C}},thumbStyleProps:{style:{position:"absolute",left:`${f*100}%`,top:`${d*100}%`,transform:"translate(-50%, -50%)",touchAction:"none",...z}}}},[e,r,l,t,a])}function Qe(e,r){let{isDisabled:l$1,inputXRef:t,inputYRef:a,containerRef:u,"aria-label":y,xName:C,yName:S,form:f}=e,d=b$2(ae,"@react-aria/color"),{addGlobalListener:z,removeGlobalListener:i}=a$9(),{direction:s,locale:c$1}=b$1(),[n,x]=useState(null),b=useCallback((o=t)=>{o.current&&a$a(o.current);},[t]);a$b(t,r.defaultValue,r.setValue);let[v,h$1]=useState(false),[I,g]=useState(false),{xChannel:_,yChannel:m,zChannel:$}=r.channels,j$1=r.xChannelStep,N=r.yChannelStep,P=useRef(null),O=(o,p,A)=>{r.setDragging(true),h$1(true),o(),r.setDragging(false),b(p),x(A);},{keyboardProps:L}=j({shortcuts:{PageUp:()=>O(()=>{r.incrementY(r.yChannelPageStep);},a,"y"),PageDown:()=>O(()=>{r.decrementY(r.yChannelPageStep);},a,"y"),Home:()=>O(()=>{s==="rtl"?r.incrementX(r.xChannelPageStep):r.decrementX(r.xChannelPageStep);},t,"x"),End:()=>O(()=>{s==="rtl"?r.decrementX(r.xChannelPageStep):r.incrementX(r.xChannelPageStep);},t,"x")},allowRepeats:true}),Y={onMoveStart(){P.current=null,r.setDragging(true);},onMove({deltaX:o,deltaY:p,pointerType:A,shiftKey:J}){let{incrementX:U,decrementX:ue,incrementY:se,decrementY:T,xChannelPageStep:q,xChannelStep:B,yChannelPageStep:ge,yChannelStep:ke,getThumbPosition:vr,setColorFromPoint:Sr}=r;P.current==null&&(P.current=vr());let{width:xr,height:gr}=u.current?.getBoundingClientRect()||{width:0,height:0},Pe=o!==0||p!==0;if(A==="keyboard"){let we=J&&q>B?q:B,Ae=J&&ge>ke?ge:ke;o>0&&s==="ltr"||o<0&&s==="rtl"?U(we):o<0&&s==="ltr"||o>0&&s==="rtl"?ue(we):p>0?T(Ae):p<0&&se(Ae),h$1(Pe),n=Pe&&Math.abs(p)>Math.abs(o)?"y":"x",x(n);}else P.current.x+=(s==="rtl"?-1:1)*o/xr,P.current.y+=p/gr,Sr(P.current.x,P.current.y);},onMoveEnd(){M.current=false,r.setDragging(false),b(n==="x"?t:a);}},{moveProps:ur}=a$c(Y),{focusWithinProps:sr}=b$3({onFocusWithinChange:o=>{o||(h$1(false),g(false));}}),F=useRef(void 0),M=useRef(false),{moveProps:cr}=a$c({onMoveStart(){M.current&&Y.onMoveStart();},onMove(o){M.current&&Y.onMove(o);},onMoveEnd(){M.current&&Y.onMoveEnd();}}),ie=o=>{let p=b$5(u.current);r.isDragging||(F.current=o,h$1(false),b(),r.setDragging(true),typeof PointerEvent<"u"?z(p,"pointerup",R,false):(z(p,"mouseup",R,false),z(p,"touchend",R,false)));},R=o=>{let p=b$5(u.current);(o.pointerId??o.changedTouches?.[0].identifier)===F.current&&(h$1(false),b(),r.setDragging(false),F.current=void 0,M.current=false,typeof PointerEvent<"u"?i(p,"pointerup",R,false):(i(p,"mouseup",R,false),i(p,"touchend",R,false)));},pe=(o,p,A,J)=>{let U=o.getBoundingClientRect(),{width:ue,height:se}=U,T=(A-U.x)/ue,q=(J-U.y)/se;s==="rtl"&&(T=1-T);let B=b$5(u.current);T>=0&&T<=1&&q>=0&&q<=1&&!r.isDragging&&F.current===void 0&&(M.current=true,h$1(false),F.current=p,r.setColorFromPoint(T,q),b(),r.setDragging(true),typeof PointerEvent<"u"?z(B,"pointerup",E,false):(z(B,"mouseup",E,false),z(B,"touchend",E,false)));},E=o=>{let p=o.pointerId??o.changedTouches?.[0].identifier;if(M.current&&p===F.current){M.current=false,h$1(false),F.current=void 0,r.setDragging(false),b();let A=b$5(u.current);typeof PointerEvent<"u"?i(A,"pointerup",E,false):(i(A,"mouseup",E,false),i(A,"touchend",E,false));}},dr=l$1?{}:c({...typeof PointerEvent<"u"?{onPointerDown:o=>{o.pointerType==="mouse"&&(o.button!==0||o.altKey||o.ctrlKey||o.metaKey)||pe(o.currentTarget,o.pointerId,o.clientX,o.clientY);}}:{onMouseDown:o=>{o.button!==0||o.altKey||o.ctrlKey||o.metaKey||pe(o.currentTarget,void 0,o.clientX,o.clientY);},onTouchStart:o=>{pe(o.currentTarget,o.changedTouches[0].identifier,o.changedTouches[0].clientX,o.changedTouches[0].clientY);}}},cr),mr=l$1?{}:c({...typeof PointerEvent<"u"?{onPointerDown:o=>{o.pointerType==="mouse"&&(o.button!==0||o.altKey||o.ctrlKey||o.metaKey)||ie(o.pointerId);}}:{onMouseDown:o=>{o.button!==0||o.altKey||o.ctrlKey||o.metaKey||ie(void 0);},onTouchStart:o=>{ie(o.changedTouches[0].identifier);}}},sr,L,ur),{focusProps:yr}=a$d({onFocus:()=>{x("x");}}),{focusProps:br}=a$d({onFocus:()=>{x("y");}}),Ce=o=>{let{target:p}=o;g(true),p===t.current?r.setXValue(parseFloat(p.value)):p===a.current&&r.setYValue(parseFloat(p.value));},W=h()||l(),w=r.getDisplayColor(),ve=useCallback(o=>`${I||v?d.format("colorNameAndValue",{name:w.getChannelName(o,c$1),value:w.formatChannelValue(o,c$1)}):[d.format("colorNameAndValue",{name:w.getChannelName(o,c$1),value:w.formatChannelValue(o,c$1)}),d.format("colorNameAndValue",{name:w.getChannelName(o===m?_:m,c$1),value:w.formatChannelValue(o===m?_:m,c$1)}),d.format("colorNameAndValue",{name:w.getChannelName($,c$1),value:w.formatChannelValue($,c$1)})].join(", ")}, ${w.getColorName(c$1)}`,[c$1,w,d,I,v,_,m,$]),H=d.format("colorPicker"),_r=a$e({...e,"aria-label":y?d.format("colorInputLabel",{label:y,channelLabel:H}):H}),fr=a$e({...e,"aria-label":y?d.format("colorInputLabel",{label:y,channelLabel:H}):H}),zr=a$e({...e,"aria-label":y?`${y}, ${H}`:void 0},W?H:void 0),Se=d.format("twoDimensionalSlider"),{visuallyHiddenProps:xe}=a$f({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}}),{colorAreaStyleProps:hr,thumbStyleProps:Cr}=Je({direction:s,state:r,xChannel:_,yChannel:m,zChannel:$});return {colorAreaProps:{...zr,...dr,...hr,role:"group"},thumbProps:{...mr,...Cr,role:"presentation"},xInputProps:{..._r,...xe,...yr,type:"range",min:r.value.getChannelRange(_).minValue,max:r.value.getChannelRange(_).maxValue,step:j$1,"aria-roledescription":Se,"aria-valuetext":ve(_),"aria-orientation":"horizontal","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:l$1,value:r.value.getChannelValue(_),name:C,form:f,tabIndex:W||!n||n==="x"?void 0:-1,"aria-hidden":W||!n||n==="x"||v?void 0:"true",onChange:Ce},yInputProps:{...fr,...xe,...br,type:"range",min:r.value.getChannelRange(m).minValue,max:r.value.getChannelRange(m).maxValue,step:N,"aria-roledescription":Se,"aria-valuetext":ve(m),"aria-orientation":"vertical","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:l$1,value:r.value.getChannelValue(m),name:S,form:f,tabIndex:W||n==="y"?void 0:-1,"aria-hidden":W||n==="y"||v?void 0:"true",onChange:Ce}}}function er(e,r){let{trackRef:l,inputRef:t,orientation:a,channel:u,"aria-label":y,name:C,form:S}=e,{locale:f,direction:d}=b$1();!e.label&&!y&&!e["aria-labelledby"]&&(y=r.value.getChannelName(u,f));let{groupProps:z,trackProps:i,labelProps:s,outputProps:c$1}=a$g({...e,"aria-label":y},r,l),{inputProps:n,thumbProps:x}=b$4({index:0,orientation:a,isDisabled:e.isDisabled,name:C,form:S,trackRef:l,inputRef:t},r),b=r.getDisplayColor(),v=()=>{let g;switch(a==="vertical"?g="top":d==="ltr"?g="right":g="left",u){case "hue":{let _=[0,60,120,180,240,300,360].map(m=>b.withChannelValue("hue",m).toString("css")).join(", ");return `linear-gradient(to ${g}, ${_})`}case "lightness":{let _=r.getThumbMinValue(0),m=r.getThumbMaxValue(0),$=b.withChannelValue(u,_).toString("css"),j=b.withChannelValue(u,(m-_)/2).toString("css"),N=b.withChannelValue(u,m).toString("css");return `linear-gradient(to ${g}, ${$}, ${j}, ${N})`}case "saturation":case "brightness":case "red":case "green":case "blue":case "alpha":{let _=b.withChannelValue(u,r.getThumbMinValue(0)).toString("css"),m=b.withChannelValue(u,r.getThumbMaxValue(0)).toString("css");return `linear-gradient(to ${g}, ${_}, ${m})`}default:throw new Error("Unknown color channel: "+u)}},h={forcedColorAdjust:"none"};u==="hue"?n["aria-valuetext"]+=`, ${b.getHueName(f)}`:u!=="alpha"&&(n["aria-valuetext"]+=`, ${b.getColorName(f)}`);let{visuallyHiddenProps:I}=a$f({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}});return {trackProps:{...c(z,i),style:{...i.style,...h,background:v()}},inputProps:{...n,style:{...n.style,...I.style}},thumbProps:{...x,style:{...x.style,...h}},labelProps:s,outputProps:c$1}}function rr(e,r,l){let{isDisabled:t,isReadOnly:a,isRequired:u,isWheelDisabled:y,validationBehavior:C="aria",onKeyDown:S,onKeyUp:f}=e,{colorValue:d,inputValue:z,increment:i,decrement:s,incrementToMax:c$1,decrementToMin:n,commit:x,commitValidation:b}=r,v=c$2(),{spinButtonProps:h}=a$h({isDisabled:t,isReadOnly:a,isRequired:u,maxValue:16777215,minValue:0,onIncrement:i,onIncrementToMax:c$1,onDecrement:s,onDecrementToMin:n,value:d?d.toHexInt():void 0,textValue:d?d.toString("hex"):void 0}),[I,g]=useState(false),{focusWithinProps:_}=b$3({isDisabled:t,onFocusWithinChange:g}),m=useCallback(L=>{Math.abs(L.deltaY)<=Math.abs(L.deltaX)||(L.deltaY>0?i():L.deltaY<0&&s());},[s,i]);a$i({onScroll:m,isDisabled:y||t||a||!I},l);let{keyboardProps:j$1}=j({isDisabled:t||a,shortcuts:{Enter:()=>(flushSync(()=>{x();}),b(),{shouldPreventDefault:false})},onKeyDown:S,onKeyUp:f}),N=L=>{r.validate(L)&&r.setInputValue(L);},{inputProps:P,...O}=a$j({...e,id:v,value:z,defaultValue:"!",validate:void 0,[c$3]:r,type:"text",autoComplete:"off",onChange:N,onKeyDown:void 0,onKeyUp:void 0},r,l);return a$b(l,r.defaultColorValue,r.setColorValue),P=c(j$1,P,h,_,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:x}),C==="native"&&(P["aria-required"]=void 0),{inputProps:P,...O}}function ne(e){let{color:r,colorName:l}=e,t=r||"#fff0",a=useMemo(()=>typeof t=="string"?a$1(t):t,[t]),{locale:u}=b$1(),y=a$8(e,{labelable:true}),C=b$2(ae,"@react-aria/color"),S=c$2(e.id);return l||(l=a.getChannelValue("alpha")===0?C.format("transparent"):a.getColorName(u)),{colorSwatchProps:{...y,role:"img","aria-roledescription":C.format("colorSwatch"),"aria-label":[l,e["aria-label"]||""].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]?`${S} ${e["aria-labelledby"]}`:void 0,id:S,style:{backgroundColor:a.toString("css"),forcedColorAdjust:"none"}},color:a||null}}var al="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6m3",nl="_1dbkl5e",il=a({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6me _1yep5z6m6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ey _1yep5z6m5 _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup82 _1yep5z611l"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),pl="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1",ul=a({defaultClassName:"_1dbkl50 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6dy _1yep5z6ez",variantClassNames:{labelPosition:{top:"_1yep5z6oy _1yep5z6oz _1yep5z6p0",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),sl="_1dbkl5l _1yep5z6je _1yep5z6jf _1yep5z6jg _1yep5z69f _1yep5z69g _1yep5z69h",cl="_1dbkl5f z9nup86",dl="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6it _1yep5z6iu _1yep5z6iv",or="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6m6",ml="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6dy _1yep5z6ez _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jz _1yep5z6k0 _1yep5z6k1",yl=a({defaultClassName:"_1dbkl5h _1dbkl5g _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g9",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6nm _1yep5z6nn _1yep5z6no"}},defaultVariants:{},compoundVariants:[]}),bl="_1dbkl5v _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj",_l=a({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6mf _1yep5z6hg _1yep5z6m6 _1yep5z6ey _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z613w"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z618m"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocused:false},"_1yep5z61qj"]]}),fl=a({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f9 _1yep5z6m5 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6lq _1yep5z6lt",variantClassNames:{isHovered:{true:"_1yep5z612u"},isFocusVisible:{true:"_1yep5z618s _1yep5z618q _1yep5z618t _1yep5z614w"},isDisabled:{true:"_1yep5z611u"}},defaultVariants:{},compoundVariants:[]}),zl="_1dbkl5g",hl="_1dbkl5u",Cl="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69f _1yep5z69g _1yep5z69h",vl="_1dbkl5x",Sl="_1dbkl5w",xl="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69l _1yep5z69m _1yep5z69n",gl=a({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ma _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6mf _1yep5z6mi",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z618q _1yep5z614w _1yep5z618s"}},defaultVariants:{},compoundVariants:[]}),kl="z9nup83 z9nup85 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lw _1yep5z6lx _1yep5z6lz _1yep5z6ly _1yep5z6iw _1yep5z6ix _1yep5z6iy";var Vl=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Il=a$1("#000000").toFormat("hsla"),_e="hsla",fe="hexa";function Ir(e){let r=document.createElement("canvas").getContext("2d");return a$k(r,"Failed to get canvas context"),r.fillStyle=e,r.fillStyle}function jl(e){if(typeof e=="string")try{return a$1(e).toFormat(_e)}catch{return a$1(Ir(e)).toFormat(_e)}else if(e)return e.toFormat(_e);return null}function Nl(e,r){return e?.getChannelValue("alpha")?r?.toString(fe)===e.toString(fe):!r?.getChannelValue("alpha")}function Ml(e,r,l){return r?.label?r.label:e?.getChannelValue("alpha")===0?l:e?.toString("rgba")}var ze="NONE";function Fl(e,r){let l=r?.map(a=>({id:a$1(a.color).toString(fe),label:a.label}))||[],t={id:ze,label:e};return [...l,t]}var Tl=(e,{optionProps:r,isFocusVisible:l,isSelected:t},a)=>(a$k(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...r,ref:a,className:or,children:jsx(he,{color:e.value.id,isFocusVisible:l,isSelected:t,"aria-label":e.value.label,isInteractive:true})})),tr=(e,r=4)=>{let l=e.getChannelValue("alpha")===0,t=`repeating-conic-gradient(transparent 0% 25%, ${themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:l?t:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${t}`,backgroundSize:`${r}px ${r}px`}};var ar=a({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6m0 _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv z9nup8a",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z618s _1yep5z618q _1yep5z614w _1yep5z618v"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isFocusVisible:true},"_1344e9q6"],[{isSelected:true,isFocusVisible:true},"_1344e9q7 _1yep5z61vb _1yep5z61v9 _1yep5z61rf _1yep5z61ve"],[{isSelected:true,isDisabled:true},"_1yep5z61vb _1yep5z61v9 _1yep5z61rf _1yep5z61ve _1yep5z61rp"],[{isHovered:true,isSelected:false},"_1yep5z61ve _1yep5z61vb _1yep5z61v9 _1yep5z61rj"]]}),nr="_1yep5z6fa",ir="_1344e9q9 _1yep5z6fp";var he=Nr.forwardRef(({color:e,isFocusVisible:r,isSelected:l,isInteractive:t,isDisabled:a,style:u,className:y,id:C,tooltip:S,isIndeterminate:f,indeterminateIcon:d$1=HelpIcon,noneLabel:z,"data-block-id":i,"data-block-class":s,...c$1},n)=>{let x=e&&e!==ze&&(typeof e=="string"?a$1(e):e),{formatMessage:b$1}=b(),v=!x,{colorSwatchProps:h}=ne({color:v?"#000000":e}),{hoverProps:I,isHovered:g}=a$2({isDisabled:a||!t}),_=a$3({"data-focus-visible":r,"data-selected":l,"data-hovered":g,"data-block-id":i,"data-block-class":s,"data-disabled":a,"data-interactive":t,"data-indeterminate":f}),m=v?z??b$1(pr.none):h["aria-label"],$=c$1["aria-label"]??m,{tooltipProps:j}=a$4({tooltip:S,label:$}),N=jsx("div",{...c(I,_,v?{}:h),style:u,"aria-label":v?z??b$1(pr.none):h["aria-label"],role:"img",className:a$6(ar({removeBlendMode:v,isFocusVisible:r,isDisabled:!!a,isSelected:!!l,isHovered:g}),"BaselineUI-ColorSwatch",y),ref:n,id:C,...c$1,children:jsxs(a$5,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:x&&!f?tr(x,4):void 0,children:[v&&!f?jsx("div",{className:ir}):null,f&&d$1?jsx(d$1,{role:"presentation",size:16,className:nr,"aria-hidden":"true"}):null]})});return j&&!a?jsx(a$7,{...j,children:jsx(d,{children:N})}):N});he.displayName="ColorSwatch";var pr=c$1({none:{id:"bui.colorSwatch.none",defaultMessage:"None"}});export{_e as A,fe as B,jl as C,Nl as D,Ml as E,ze as F,Fl as G,Tl as H,he as I,Qe as a,rr as b,er as c,al as d,nl as e,il as f,pl as g,ul as h,sl as i,cl as j,dl as k,ml as l,yl as m,bl as n,_l as o,fl as p,zl as q,hl as r,Cl as s,vl as t,Sl as u,xl as v,gl as w,kl as x,Vl as y,Il as z};
10
+ var ne={"ar-AE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0623\u062F\u0627\u0629 \u0627\u0646\u062A\u0642\u0627\u0621 \u0627\u0644\u0644\u0648\u0646",colorSwatch:"\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0623\u0644\u0648\u0627\u0646",transparent:"\u0634\u0641\u0627\u0641",twoDimensionalSlider:"\u0645\u064F\u0646\u0632\u0644\u0642 2D"},"bg-BG":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0437\u0430 \u0438\u0437\u0431\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0446\u0432\u044F\u0442",colorSwatch:"\u0446\u0432\u0435\u0442\u043D\u0430 \u043C\u043E\u0441\u0442\u0440\u0430",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u0435\u043D",twoDimensionalSlider:"2D \u043F\u043B\u044A\u0437\u0433\u0430\u0447"},"cs-CZ":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDb\u011Br barvy",colorSwatch:"barevn\xFD vzorek",transparent:"pr\u016Fhledn\xFD",twoDimensionalSlider:"2D posuvn\xEDk"},"da-DK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farvev\xE6lger",colorSwatch:"farvepr\xF8ve",transparent:"gennemsigtig",twoDimensionalSlider:"2D-skyder"},"de-DE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farbw\xE4hler",colorSwatch:"Farbfeld",transparent:"transparent",twoDimensionalSlider:"2D-Schieberegler"},"el-GR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03B1\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",colorSwatch:"\u03C7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03CC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1",transparent:"\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AD\u03C2",twoDimensionalSlider:"\u03A1\u03C5\u03B8\u03BC\u03B9\u03C3\u03C4\u03B9\u03BA\u03CC 2D"},"en-US":{colorPicker:"Color picker",twoDimensionalSlider:"2D slider",colorNameAndValue:e=>`${e.name}: ${e.value}`,colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorSwatch:"color swatch",transparent:"transparent"},"es-ES":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de color",colorSwatch:"muestra de color",transparent:"transparente",twoDimensionalSlider:"Regulador 2D"},"et-EE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rvivalija",colorSwatch:"v\xE4rvin\xE4idis",transparent:"l\xE4bipaistev",twoDimensionalSlider:"2D-liugur"},"fi-FI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rimuokkain",colorSwatch:"v\xE4rimalli",transparent:"l\xE4pin\xE4kyv\xE4",twoDimensionalSlider:"2D-liukus\xE4\xE4din"},"fr-FR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\xA0: ${e.value}`,colorPicker:"S\xE9lecteur de couleurs",colorSwatch:"\xC9chantillon de couleurs",transparent:"Transparent",twoDimensionalSlider:"Curseur\xA02D"},"he-IL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u05D1\u05D5\u05D7\u05E8 \u05D4\u05E6\u05D1\u05E2\u05D9\u05DD",colorSwatch:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05EA \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3",twoDimensionalSlider:"\u05DE\u05D7\u05D5\u05D5\u05DF \u05D3\u05D5 \u05DE\u05D9\u05DE\u05D3\u05D9"},"hr-HR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Odabir boje",colorSwatch:"uzorak boje",transparent:"transparentno",twoDimensionalSlider:"2D kliza\u010D"},"hu-HU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Sz\xEDnv\xE1laszt\xF3",colorSwatch:"sz\xEDnt\xE1r",transparent:"\xE1tl\xE1tsz\xF3",twoDimensionalSlider:"2D-cs\xFAszka"},"it-IT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selettore colore",colorSwatch:"campione di colore",transparent:"trasparente",twoDimensionalSlider:"Cursore 2D"},"ja-JP":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"\u30AB\u30E9\u30FC\u30D4\u30C3\u30AB\u30FC",colorSwatch:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u30B9\u30E9\u30A4\u30C0\u30FC"},"ko-KR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\uC0C9\uC0C1 \uD53C\uCEE4",colorSwatch:"\uC0C9\uC0C1 \uACAC\uBCF8",transparent:"\uD22C\uBA85\uB3C4",twoDimensionalSlider:"2D \uC2AC\uB77C\uC774\uB354"},"lt-LT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Spalv\u0173 parinkiklis",colorSwatch:"spalv\u0173 pavyzdys",transparent:"skaidrus",twoDimensionalSlider:"2D slankiklis"},"lv-LV":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kr\u0101su atlas\u012Bt\u0101js",colorSwatch:"kr\u0101su paraugs",transparent:"caursp\u012Bd\u012Bgs",twoDimensionalSlider:"2D sl\u012Bdnis"},"nb-NO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Fargevelger",colorSwatch:"fargekart",transparent:"gjennomsiktig",twoDimensionalSlider:"2D-glidebryter"},"nl-NL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kleurkiezer",colorSwatch:"kleurstaal",transparent:"transparant",twoDimensionalSlider:"2D-schuifregelaar"},"pl-PL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Pr\xF3bnik kolor\xF3w",colorSwatch:"pr\xF3bka koloru",transparent:"przezroczysty",twoDimensionalSlider:"Suwak 2D"},"pt-BR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cores",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"pt-PT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cor",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"ro-RO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de culori",colorSwatch:"specimen de culoare",transparent:"transparent",twoDimensionalSlider:"Glisor 2D"},"ru-RU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0438\u0442\u0440\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",colorSwatch:"\u0446\u0432\u0435\u0442\u043E\u0432\u043E\u0439 \u043E\u0431\u0440\u0430\u0437\u0435\u0446",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",twoDimensionalSlider:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A 2D"},"sk-SK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDber farieb",colorSwatch:"vzorkovn\xEDk farieb",transparent:"transparentn\xFD",twoDimensionalSlider:"2D jazdec"},"sl-SI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Izbirnik barv",colorSwatch:"barvna paleta",transparent:"prozorno",twoDimensionalSlider:"2D drsnik"},"sr-SP":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Bira\u010D boja",colorSwatch:"Uzorak boje",transparent:"providno",twoDimensionalSlider:"2D kliza\u010D"},"sv-SE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"F\xE4rgv\xE4ljaren",colorSwatch:"f\xE4rgruta",transparent:"genomskinlig",twoDimensionalSlider:"2D-reglage"},"tr-TR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Renk Se\xE7ici",colorSwatch:"renk \xF6rne\u011Fi",transparent:"saydam",twoDimensionalSlider:"2D s\xFCrg\xFC"},"uk-UA":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0456\u0442\u0440\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",colorSwatch:"\u0437\u0440\u0430\u0437\u043E\u043A \u043A\u043E\u043B\u044C\u043E\u0440\u0443",transparent:"\u043F\u0440\u043E\u0437\u043E\u0440\u0438\u0439",twoDimensionalSlider:"\u041F\u043E\u0432\u0437\u0443\u043D\u043E\u043A 2D"},"zh-CN":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u62FE\u8272\u5668",colorSwatch:"\u989C\u8272\u8272\u677F",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u5757"},"zh-TW":{colorInputLabel:e=>`${e.label}\uFF0C${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u6AA2\u8272\u5668",colorSwatch:"\u8272\u7968",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u687F"}};var Ye=e=>[0,60,120,180,240,300,360].map(r=>e.withChannelValue("hue",r).toString("css")).join(", "),Je=e=>`${e.withChannelValue("saturation",0)}, transparent`,wr={hue:Ye,saturation:Je,lightness:()=>"black, transparent, white"},Ar={hue:Ye,saturation:Je,brightness:()=>"black, transparent"};function Ze({direction:e,state:r,zChannel:l,xChannel:t,yChannel:a}){return useMemo(()=>{let y=e==="rtl"?"left":"right",C={},g=r.value.getChannelValue(l);switch(r.value.getColorSpace()){case "rgb":{let i=a$1("rgb(0, 0, 0)");C={background:[`linear-gradient(to ${y}, ${i.withChannelValue(t,0)}, ${i.withChannelValue(t,255)})`,`linear-gradient(to top, ${i.withChannelValue(a,0)}, ${i.withChannelValue(a,255)})`,i.withChannelValue(l,g)].join(","),backgroundBlendMode:"screen"};break}case "hsl":{let i=r.value.getColorChannels(),s=a$1("hsl(0, 100%, 50%)").withChannelValue(l,g),c=i.filter(n=>n!==l).map(n=>`linear-gradient(to ${n===t?y:"top"}, ${wr[n](s)})`).reverse();l==="hue"&&c.push(s.toString("css")),C={background:c.join(", ")};break}case "hsb":{let i=r.value.getColorChannels(),s=a$1("hsb(0, 100%, 100%)").withChannelValue(l,g),c=i.filter(n=>n!==l).map(n=>`linear-gradient(to ${n===t?y:"top"}, ${Ar[n](s)})`).reverse();l==="hue"&&c.push(s.toString("css")),C={background:c.join(", ")};break}}let{x:f,y:d}=r.getThumbPosition();e==="rtl"&&(f=1-f);let z={forcedColorAdjust:"none"};return {colorAreaStyleProps:{style:{position:"relative",touchAction:"none",...z,...C}},thumbStyleProps:{style:{position:"absolute",left:`${f*100}%`,top:`${d*100}%`,transform:"translate(-50%, -50%)",touchAction:"none",...z}}}},[e,r,l,t,a])}function er(e,r){let{isDisabled:l$1,inputXRef:t,inputYRef:a,containerRef:u,"aria-label":y,xName:C,yName:g,form:f}=e,d=b$2(ne,"@react-aria/color"),{addGlobalListener:z,removeGlobalListener:i}=a$9(),{direction:s,locale:c$1}=b$1(),[n,v]=useState(null),b=useCallback((o=t)=>{o.current&&a$a(o.current);},[t]);a$b(t,r.defaultValue,r.setValue);let[S,h$1]=useState(false),[I,x]=useState(false),{xChannel:_,yChannel:m,zChannel:A}=r.channels,j$1=r.xChannelStep,N=r.yChannelStep,k=useRef(null),O=(o,p,w)=>{r.setDragging(true),h$1(true),o(),r.setDragging(false),b(p),v(w);},{keyboardProps:$}=j({shortcuts:{PageUp:()=>O(()=>{r.incrementY(r.yChannelPageStep);},a,"y"),PageDown:()=>O(()=>{r.decrementY(r.yChannelPageStep);},a,"y"),Home:()=>O(()=>{s==="rtl"?r.incrementX(r.xChannelPageStep):r.decrementX(r.xChannelPageStep);},t,"x"),End:()=>O(()=>{s==="rtl"?r.decrementX(r.xChannelPageStep):r.incrementX(r.xChannelPageStep);},t,"x")},allowRepeats:true}),J={onMoveStart(){k.current=null,r.setDragging(true);},onMove({deltaX:o,deltaY:p,pointerType:w,shiftKey:Z}){let{incrementX:U,decrementX:se,incrementY:ce,decrementY:T,xChannelPageStep:q,xChannelStep:B,yChannelPageStep:ke,yChannelStep:Pe,getThumbPosition:Sr,setColorFromPoint:gr}=r;k.current==null&&(k.current=Sr());let{width:xr,height:kr}=u.current?.getBoundingClientRect()||{width:0,height:0},we=o!==0||p!==0;if(w==="keyboard"){let Ae=Z&&q>B?q:B,$e=Z&&ke>Pe?ke:Pe;o>0&&s==="ltr"||o<0&&s==="rtl"?U(Ae):o<0&&s==="ltr"||o>0&&s==="rtl"?se(Ae):p>0?T($e):p<0&&ce($e),h$1(we),n=we&&Math.abs(p)>Math.abs(o)?"y":"x",v(n);}else k.current.x+=(s==="rtl"?-1:1)*o/xr,k.current.y+=p/kr,gr(k.current.x,k.current.y);},onMoveEnd(){M.current=false,r.setDragging(false),b(n==="x"?t:a);}},{moveProps:sr}=a$c(J),{focusWithinProps:cr}=b$3({onFocusWithinChange:o=>{o||(h$1(false),x(false));}}),F=useRef(void 0),M=useRef(false),{moveProps:dr}=a$c({onMoveStart(){M.current&&J.onMoveStart();},onMove(o){M.current&&J.onMove(o);},onMoveEnd(){M.current&&J.onMoveEnd();}}),pe=o=>{let p=b$5(u.current);r.isDragging||(F.current=o,h$1(false),b(),r.setDragging(true),typeof PointerEvent<"u"?z(p,"pointerup",R,false):(z(p,"mouseup",R,false),z(p,"touchend",R,false)));},R=o=>{let p=b$5(u.current);(o.pointerId??o.changedTouches?.[0].identifier)===F.current&&(h$1(false),b(),r.setDragging(false),F.current=void 0,M.current=false,typeof PointerEvent<"u"?i(p,"pointerup",R,false):(i(p,"mouseup",R,false),i(p,"touchend",R,false)));},ue=(o,p,w,Z)=>{let U=o.getBoundingClientRect(),{width:se,height:ce}=U,T=(w-U.x)/se,q=(Z-U.y)/ce;s==="rtl"&&(T=1-T);let B=b$5(u.current);T>=0&&T<=1&&q>=0&&q<=1&&!r.isDragging&&F.current===void 0&&(M.current=true,h$1(false),F.current=p,r.setColorFromPoint(T,q),b(),r.setDragging(true),typeof PointerEvent<"u"?z(B,"pointerup",E,false):(z(B,"mouseup",E,false),z(B,"touchend",E,false)));},E=o=>{let p=o.pointerId??o.changedTouches?.[0].identifier;if(M.current&&p===F.current){M.current=false,h$1(false),F.current=void 0,r.setDragging(false),b();let w=b$5(u.current);typeof PointerEvent<"u"?i(w,"pointerup",E,false):(i(w,"mouseup",E,false),i(w,"touchend",E,false));}},mr=l$1?{}:c({...typeof PointerEvent<"u"?{onPointerDown:o=>{o.pointerType==="mouse"&&(o.button!==0||o.altKey||o.ctrlKey||o.metaKey)||ue(o.currentTarget,o.pointerId,o.clientX,o.clientY);}}:{onMouseDown:o=>{o.button!==0||o.altKey||o.ctrlKey||o.metaKey||ue(o.currentTarget,void 0,o.clientX,o.clientY);},onTouchStart:o=>{ue(o.currentTarget,o.changedTouches[0].identifier,o.changedTouches[0].clientX,o.changedTouches[0].clientY);}}},dr),yr=l$1?{}:c({...typeof PointerEvent<"u"?{onPointerDown:o=>{o.pointerType==="mouse"&&(o.button!==0||o.altKey||o.ctrlKey||o.metaKey)||pe(o.pointerId);}}:{onMouseDown:o=>{o.button!==0||o.altKey||o.ctrlKey||o.metaKey||pe(void 0);},onTouchStart:o=>{pe(o.changedTouches[0].identifier);}}},cr,$,sr),{focusProps:br}=a$d({onFocus:()=>{v("x");}}),{focusProps:_r}=a$d({onFocus:()=>{v("y");}}),ve=o=>{let{target:p}=o;x(true),p===t.current?r.setXValue(parseFloat(p.value)):p===a.current&&r.setYValue(parseFloat(p.value));},W=h()||l(),P=r.getDisplayColor(),Se=useCallback(o=>`${I||S?d.format("colorNameAndValue",{name:P.getChannelName(o,c$1),value:P.formatChannelValue(o,c$1)}):[d.format("colorNameAndValue",{name:P.getChannelName(o,c$1),value:P.formatChannelValue(o,c$1)}),d.format("colorNameAndValue",{name:P.getChannelName(o===m?_:m,c$1),value:P.formatChannelValue(o===m?_:m,c$1)}),d.format("colorNameAndValue",{name:P.getChannelName(A,c$1),value:P.formatChannelValue(A,c$1)})].join(", ")}, ${P.getColorName(c$1)}`,[c$1,P,d,I,S,_,m,A]),H=d.format("colorPicker"),fr=a$e({...e,"aria-label":y?d.format("colorInputLabel",{label:y,channelLabel:H}):H}),zr=a$e({...e,"aria-label":y?d.format("colorInputLabel",{label:y,channelLabel:H}):H}),hr=a$e({...e,"aria-label":y?`${y}, ${H}`:void 0},W?H:void 0),ge=d.format("twoDimensionalSlider"),{visuallyHiddenProps:xe}=a$f({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}}),{colorAreaStyleProps:Cr,thumbStyleProps:vr}=Ze({direction:s,state:r,xChannel:_,yChannel:m,zChannel:A});return {colorAreaProps:{...hr,...mr,...Cr,role:"group"},thumbProps:{...yr,...vr,role:"presentation"},xInputProps:{...fr,...xe,...br,type:"range",min:r.value.getChannelRange(_).minValue,max:r.value.getChannelRange(_).maxValue,step:j$1,"aria-roledescription":ge,"aria-valuetext":Se(_),"aria-orientation":"horizontal","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:l$1,value:r.value.getChannelValue(_),name:C,form:f,tabIndex:W||!n||n==="x"?void 0:-1,"aria-hidden":W||!n||n==="x"||S?void 0:"true",onChange:ve},yInputProps:{...zr,...xe,..._r,type:"range",min:r.value.getChannelRange(m).minValue,max:r.value.getChannelRange(m).maxValue,step:N,"aria-roledescription":ge,"aria-valuetext":Se(m),"aria-orientation":"vertical","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:l$1,value:r.value.getChannelValue(m),name:g,form:f,tabIndex:W||n==="y"?void 0:-1,"aria-hidden":W||n==="y"||S?void 0:"true",onChange:ve}}}function rr(e,r){let{trackRef:l,inputRef:t,orientation:a,channel:u,"aria-label":y,name:C,form:g}=e,{locale:f,direction:d}=b$1();!e.label&&!y&&!e["aria-labelledby"]&&(y=r.value.getChannelName(u,f));let{groupProps:z,trackProps:i,labelProps:s,outputProps:c$1}=a$g({...e,"aria-label":y},r,l),{inputProps:n,thumbProps:v}=b$4({index:0,orientation:a,isDisabled:e.isDisabled,name:C,form:g,trackRef:l,inputRef:t},r),b=r.getDisplayColor(),S=()=>{let x;switch(a==="vertical"?x="top":d==="ltr"?x="right":x="left",u){case "hue":{let _=[0,60,120,180,240,300,360].map(m=>b.withChannelValue("hue",m).toString("css")).join(", ");return `linear-gradient(to ${x}, ${_})`}case "lightness":{let _=r.getThumbMinValue(0),m=r.getThumbMaxValue(0),A=b.withChannelValue(u,_).toString("css"),j=b.withChannelValue(u,(m-_)/2).toString("css"),N=b.withChannelValue(u,m).toString("css");return `linear-gradient(to ${x}, ${A}, ${j}, ${N})`}case "saturation":case "brightness":case "red":case "green":case "blue":case "alpha":{let _=b.withChannelValue(u,r.getThumbMinValue(0)).toString("css"),m=b.withChannelValue(u,r.getThumbMaxValue(0)).toString("css");return `linear-gradient(to ${x}, ${_}, ${m})`}default:throw new Error("Unknown color channel: "+u)}},h={forcedColorAdjust:"none"};u==="hue"?n["aria-valuetext"]+=`, ${b.getHueName(f)}`:u!=="alpha"&&(n["aria-valuetext"]+=`, ${b.getColorName(f)}`);let{visuallyHiddenProps:I}=a$f({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}});return {trackProps:{...c(z,i),style:{...i.style,...h,background:S()}},inputProps:{...n,style:{...n.style,...I.style}},thumbProps:{...v,style:{...v.style,...h}},labelProps:s,outputProps:c$1}}function or(e,r,l){let{isDisabled:t,isReadOnly:a,isRequired:u,isWheelDisabled:y,validationBehavior:C="aria",onKeyDown:g,onKeyUp:f}=e,{colorValue:d,inputValue:z,increment:i,decrement:s,incrementToMax:c$1,decrementToMin:n,commit:v,commitValidation:b}=r,S=c$2(),{spinButtonProps:h}=a$h({isDisabled:t,isReadOnly:a,isRequired:u,maxValue:16777215,minValue:0,onIncrement:i,onIncrementToMax:c$1,onDecrement:s,onDecrementToMin:n,value:d?d.toHexInt():void 0,textValue:d?d.toString("hex"):void 0}),[I,x]=useState(false),{focusWithinProps:_}=b$3({isDisabled:t,onFocusWithinChange:x}),m=useCallback($=>{Math.abs($.deltaY)<=Math.abs($.deltaX)||($.deltaY>0?i():$.deltaY<0&&s());},[s,i]);a$i({onScroll:m,isDisabled:y||t||a||!I},l);let{keyboardProps:j$1}=j({isDisabled:t||a,shortcuts:{Enter:()=>(flushSync(()=>{v();}),b(),{shouldPreventDefault:false})},onKeyDown:g,onKeyUp:f}),N=$=>{r.validate($)&&r.setInputValue($);},{inputProps:k,...O}=a$j({...e,id:S,value:z,defaultValue:"!",validate:void 0,[c$3]:r,type:"text",autoComplete:"off",onChange:N,onKeyDown:void 0,onKeyUp:void 0},r,l);return a$b(l,r.defaultColorValue,r.setColorValue),k=c(j$1,k,h,_,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:v}),C==="native"&&(k["aria-required"]=void 0),{inputProps:k,...O}}function ie(e){let{color:r,colorName:l}=e,t=r||"#fff0",a=useMemo(()=>typeof t=="string"?a$1(t):t,[t]),{locale:u}=b$1(),y=a$8(e,{labelable:true}),C=b$2(ne,"@react-aria/color"),g=c$2(e.id);return l||(l=a.getChannelValue("alpha")===0?C.format("transparent"):a.getColorName(u)),{colorSwatchProps:{...y,role:"img","aria-roledescription":C.format("colorSwatch"),"aria-label":[l,e["aria-label"]||""].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]?`${g} ${e["aria-labelledby"]}`:void 0,id:g,style:{backgroundColor:a.toString("css"),forcedColorAdjust:"none"}},color:a||null}}var nl="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6m3",il="_1dbkl5e",pl=a({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6me _1yep5z6m6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ey _1yep5z6m5 _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup82 _1yep5z611l"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),ul="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1",sl=a({defaultClassName:"_1dbkl50 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6dy _1yep5z6ez",variantClassNames:{labelPosition:{top:"_1yep5z6oy _1yep5z6oz _1yep5z6p0",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),cl="_1dbkl5l _1yep5z6je _1yep5z6jf _1yep5z6jg _1yep5z69f _1yep5z69g _1yep5z69h",dl="_1dbkl5f z9nup86",ml="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6it _1yep5z6iu _1yep5z6iv",lr="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6m6",yl="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6dy _1yep5z6ez _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jz _1yep5z6k0 _1yep5z6k1",bl=a({defaultClassName:"_1dbkl5h _1dbkl5g _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g9",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6nm _1yep5z6nn _1yep5z6no"}},defaultVariants:{},compoundVariants:[]}),_l="_1dbkl5v _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj",fl=a({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6mf _1yep5z6hg _1yep5z6m6 _1yep5z6ey _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z613w"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z618m"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocused:false},"_1yep5z61qj"]]}),zl=a({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f9 _1yep5z6m5 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6lq _1yep5z6lt",variantClassNames:{isHovered:{true:"_1yep5z612u"},isFocusVisible:{true:"_1yep5z618s _1yep5z618q _1yep5z618t _1yep5z614w"},isDisabled:{true:"_1yep5z611u"}},defaultVariants:{},compoundVariants:[]}),hl="_1dbkl5g",Cl="_1dbkl5u",vl="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69f _1yep5z69g _1yep5z69h",Sl="_1dbkl5x",gl="_1dbkl5w",xl="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69l _1yep5z69m _1yep5z69n",kl=a({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ma _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6mf _1yep5z6mi",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z618q _1yep5z614w _1yep5z618s"}},defaultVariants:{},compoundVariants:[]}),Pl="z9nup83 z9nup85 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lw _1yep5z6lx _1yep5z6lz _1yep5z6ly _1yep5z6iw _1yep5z6ix _1yep5z6iy";var jl=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Nl=a$1("#000000").toFormat("hsla"),fe="hsla",ze="hexa";function jr(e){if(typeof document>"u")return "#000000";let r=document.createElement("canvas").getContext("2d");return a$k(r,"Failed to get canvas context"),r.fillStyle=e,r.fillStyle}function Ml(e$1){if(typeof e$1=="string")try{return e(e$1).toFormat(fe)}catch{return a$1(jr(e$1)).toFormat(fe)}else if(e$1)return e$1.toFormat(fe);return null}function Fl(e,r){return e?.getChannelValue("alpha")?r?.toString(ze)===e.toString(ze):!r?.getChannelValue("alpha")}function Tl(e,r,l){return r?.label?r.label:e?.getChannelValue("alpha")===0?l:e?.toString("rgba")}var he="NONE";function Ol(e$1,r){let l=r?.map(a=>({id:e(a.color).toString(ze),label:a.label}))||[],t={id:he,label:e$1};return [...l,t]}var Rl=(e,{optionProps:r,isFocusVisible:l,isSelected:t},a)=>(a$k(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...r,ref:a,className:lr,children:jsx(Ce,{color:e.value.id,isFocusVisible:l,isSelected:t,"aria-label":e.value.label,isInteractive:true})})),ar=(e,r=4)=>{let l=e.getChannelValue("alpha")===0,t=`repeating-conic-gradient(transparent 0% 25%, ${themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:l?t:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${t}`,backgroundSize:`${r}px ${r}px`}};var nr=a({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6m0 _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv z9nup8a",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z618s _1yep5z618q _1yep5z614w _1yep5z618v"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isFocusVisible:true},"_1344e9q6"],[{isSelected:true,isFocusVisible:true},"_1344e9q7 _1yep5z61vb _1yep5z61v9 _1yep5z61rf _1yep5z61ve"],[{isSelected:true,isDisabled:true},"_1yep5z61vb _1yep5z61v9 _1yep5z61rf _1yep5z61ve _1yep5z61rp"],[{isHovered:true,isSelected:false},"_1yep5z61ve _1yep5z61vb _1yep5z61v9 _1yep5z61rj"]]}),ir="_1yep5z6fa",pr="_1344e9q9 _1yep5z6fp";var Ce=Mr.forwardRef(({color:e$1,isFocusVisible:r,isSelected:l,isInteractive:t,isDisabled:a,style:u,className:y,id:C,tooltip:g,isIndeterminate:f,indeterminateIcon:d$1=HelpIcon,noneLabel:z,"data-block-id":i,"data-block-class":s,...c$1},n)=>{let v=e$1&&e$1!==he&&(typeof e$1=="string"?e(e$1):e$1),{formatMessage:b$1}=b(),S=!v,{colorSwatchProps:h}=ie({color:S?"#000000":v}),{hoverProps:I,isHovered:x}=a$2({isDisabled:a||!t}),_=a$3({"data-focus-visible":r,"data-selected":l,"data-hovered":x,"data-block-id":i,"data-block-class":s,"data-disabled":a,"data-interactive":t,"data-indeterminate":f}),m=S?z??b$1(ur.none):h["aria-label"],A=c$1["aria-label"]??m,{tooltipProps:j}=a$4({tooltip:g,label:A}),N=jsx("div",{...c(I,_,S?{}:h),style:u,"aria-label":S?z??b$1(ur.none):h["aria-label"],role:"img",className:a$6(nr({removeBlendMode:S,isFocusVisible:r,isDisabled:!!a,isSelected:!!l,isHovered:x}),"BaselineUI-ColorSwatch",y),ref:n,id:C,...c$1,children:jsxs(a$5,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:v&&!f?ar(v,4):void 0,children:[S&&!f?jsx("div",{className:pr}):null,f&&d$1?jsx(d$1,{role:"presentation",size:16,className:ir,"aria-hidden":"true"}):null]})});return j&&!a?jsx(a$7,{...j,children:jsx(d,{children:N})}):N});Ce.displayName="ColorSwatch";var ur=c$1({none:{id:"bui.colorSwatch.none",defaultMessage:"None"}});export{fe as A,ze as B,Ml as C,Fl as D,Tl as E,he as F,Ol as G,Rl as H,Ce as I,er as a,or as b,rr as c,nl as d,il as e,pl as f,ul as g,sl as h,cl as i,dl as j,ml as k,yl as l,bl as m,_l as n,fl as o,zl as p,hl as q,Cl as r,vl as s,Sl as t,gl as u,xl as v,kl as w,Pl as x,jl as y,Nl as z};
@@ -1,4 +1,4 @@
1
- import {b}from'./chunk-4JQUB53Q.mjs';import {a}from'./chunk-OO7BXL2N.mjs';import {useContext}from'react';/**
1
+ import {b}from'./chunk-YDUKC7QS.mjs';import {a}from'./chunk-OO7BXL2N.mjs';import {useContext}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 from'react';/**
1
+ import r from'dompurify';/**
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 c from'react';/**
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- function o(e){let r=c.useRef(null),n=()=>({get current(){return r.current},set current(u){r.current=u;}}),t=c.useRef({portalContainer:e,ref:n()});return t.current.portalContainer!==e&&(t.current={portalContainer:e,ref:n()}),t.current.ref}export{o as a};
10
+ var i=e=>e.charAt(0).toUpperCase()+e.slice(1),s=e=>typeof DOMParser>"u"?e.replaceAll(/<[^<>]*>/g,""):new DOMParser().parseFromString(r.sanitize(e),"text/html").body.textContent||"";export{i as a,s as b};
@@ -0,0 +1,10 @@
1
+ import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-4QEH5CGK.mjs';import {createContext,forwardRef,useEffect,useImperativeHandle,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 b=createContext({});function h(){return useContext(b)}function m(e){return typeof e=="number"?`${e}%`:e}var S=forwardRef(({className:e,isCollapsible:r=false,id:t,onResize:i,defaultSize:d,minSize:f,maxSize:p,collapsedSize:u,...P},o)=>{let a$1=usePanelRef(),g=c(),c$1=t??g,{autoSaveId:l}=h();return useEffect(()=>{l&&!t&&console.warn("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.");},[l,t]),useImperativeHandle(o,()=>({resize:n=>a$1.current?.resize(n)})),jsx(Panel,{className:a("BaselineUI-Panel",e),collapsible:r,panelRef:a$1,id:c$1,defaultSize:m(d),minSize:m(f),maxSize:m(p),collapsedSize:m(u),onResize:i?n=>{i(n.asPercentage);}:void 0,...P})});S.displayName="Panel";var U={getItem:()=>null,setItem:()=>{}},V={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}}},q=forwardRef(({className:e,autoSaveId:r,direction:t,onLayout:i,...d},f)=>{let p=useGroupRef();useImperativeHandle(f,()=>({setLayout:o=>{let a=p.current;if(!a)return;let g=a.getLayout(),c=Object.keys(g);if(c.length>0){let l={};for(let n of c)n in o&&(l[n]=o[n]);a.setLayout(l);}else a.setLayout(o);}}));let u=useDefaultLayout({id:r??"",storage:r?V:U}),P=useMemo(()=>({autoSaveId:r}),[r]);return jsx(b.Provider,{value:P,children:jsx(Group,{className:a("BaselineUI-PanelGroup",e),groupRef:p,orientation:t,defaultLayout:r?u.defaultLayout:void 0,onLayoutChanged:o=>{r&&u.onLayoutChanged(o),i&&i(o);},...d})})});q.displayName="PanelGroup";var z="_6abhjk0";var D=({className:e,isDisabled:r=false,...t})=>jsx(Separator,{disabled:r,className:a(z,"BaselineUI-PanelResizeHandle",e),...t});D.displayName="PanelResizeHandle";export{S as a,q as b,D as c};