@baseline-ui/core 3.3.0 → 3.5.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.
- package/dist/Accordion.css +1 -1
- package/dist/Accordion.mjs +1 -1
- package/dist/ActionButton.css +1 -1
- package/dist/ActionButton.mjs +1 -1
- package/dist/ActionGroup.css +1 -1
- package/dist/ActionGroup.mjs +1 -1
- package/dist/ActionIconButton.css +1 -1
- package/dist/ActionIconButton.mjs +1 -1
- package/dist/Actionable.mjs +1 -1
- package/dist/AlertDialog.css +1 -1
- package/dist/AlertDialog.mjs +1 -1
- package/dist/AudioPlayer.css +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/Avatar.mjs +1 -1
- package/dist/ButtonSelect.css +1 -1
- package/dist/ButtonSelect.mjs +1 -1
- package/dist/Calendar.css +1 -1
- package/dist/Calendar.mjs +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/ColorInput.css +1 -1
- package/dist/ColorInput.mjs +1 -1
- package/dist/ColorSwatch.mjs +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ComboBox.css +1 -1
- package/dist/ComboBox.mjs +1 -1
- package/dist/DateField.css +1 -1
- package/dist/DateField.mjs +1 -1
- package/dist/DateFormat.mjs +1 -1
- package/dist/Dialog.css +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/DomNodeRenderer.mjs +1 -1
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.mjs +1 -1
- package/dist/Editor.css +1 -1
- package/dist/Editor.mjs +1 -1
- package/dist/FileInput.css +1 -1
- package/dist/FileInput.mjs +1 -1
- package/dist/FileList.css +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FileUploader.css +1 -1
- package/dist/FileUploader.mjs +1 -1
- package/dist/FrameProvider.mjs +1 -1
- package/dist/FreehandCanvas.css +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/GridList.mjs +1 -1
- package/dist/Group.mjs +1 -1
- package/dist/I18nProvider.mjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/ImageDropZone.css +1 -1
- package/dist/ImageDropZone.mjs +1 -1
- package/dist/ImageGallery.css +1 -1
- package/dist/ImageGallery.mjs +1 -1
- package/dist/InlineAlert.css +1 -1
- package/dist/InlineAlert.mjs +1 -1
- package/dist/InlineToolbar.mjs +2 -2
- package/dist/Kbd.mjs +1 -1
- package/dist/Link.mjs +1 -1
- package/dist/ListBox.mjs +1 -1
- package/dist/Menu.css +1 -1
- package/dist/Menu.mjs +1 -1
- package/dist/MessageFormat.mjs +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberFormat.mjs +1 -1
- package/dist/NumberInput.css +1 -1
- package/dist/NumberInput.mjs +1 -1
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.mjs +1 -1
- package/dist/Panel.mjs +1 -1
- package/dist/PointPicker.mjs +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.mjs +1 -1
- package/dist/Preview.css +1 -1
- package/dist/Preview.mjs +1 -1
- package/dist/ProgressBar.mjs +1 -1
- package/dist/ProgressSpinner.mjs +1 -1
- package/dist/RadioGroup.mjs +1 -1
- package/dist/Reaction.mjs +1 -1
- package/dist/ScrollControlButton.mjs +1 -1
- package/dist/SearchInput.css +1 -1
- package/dist/SearchInput.mjs +1 -1
- package/dist/Select.css +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Separator.mjs +1 -1
- package/dist/Slider.css +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Table.css +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.css +1 -1
- package/dist/Tabs.mjs +1 -1
- package/dist/Tag.mjs +1 -1
- package/dist/TagGroup.mjs +1 -1
- package/dist/TaggedPagination.css +1 -1
- package/dist/TaggedPagination.mjs +1 -1
- package/dist/Text.mjs +1 -1
- package/dist/TextInput.mjs +1 -1
- package/dist/ThemeProvider.mjs +1 -1
- package/dist/TimeField.mjs +1 -1
- package/dist/Toast.css +1 -1
- package/dist/Toast.mjs +1 -1
- package/dist/ToggleButton.css +1 -1
- package/dist/ToggleButton.mjs +1 -1
- package/dist/ToggleIconButton.mjs +1 -1
- package/dist/Toolbar.css +1 -1
- package/dist/Toolbar.mjs +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TreeView.css +1 -1
- package/dist/TreeView.mjs +1 -1
- package/dist/UNSAFE_ListBox.mjs +1 -1
- package/dist/Virtualizer.mjs +1 -1
- package/dist/{chunk-UUBOEBYZ.mjs → chunk-22MA6EYO.mjs} +1 -1
- package/dist/chunk-22VRCVTH.mjs +10 -0
- package/dist/chunk-235S3EB7.mjs +10 -0
- package/dist/{chunk-PNBYTIUO.mjs → chunk-2AKHB7Y5.mjs} +1 -1
- package/dist/{chunk-CHTLOFCT.mjs → chunk-2JGVUCP5.mjs} +1 -1
- package/dist/chunk-2M2LI4MI.mjs +10 -0
- package/dist/{chunk-TK4QXU3W.mjs → chunk-2VOWBYNS.mjs} +1 -1
- package/dist/chunk-2WA3KB7H.mjs +10 -0
- package/dist/{chunk-TO2TQ2LE.mjs → chunk-335C37NB.mjs} +1 -1
- package/dist/{chunk-E5GYCA3P.mjs → chunk-3DWFAHR2.mjs} +1 -1
- package/dist/chunk-3KWSJRYK.mjs +10 -0
- package/dist/chunk-3M3WJHOI.mjs +10 -0
- package/dist/{chunk-FWAK2OZM.mjs → chunk-3UC5V5E3.mjs} +1 -1
- package/dist/{chunk-TZ4MVY4E.mjs → chunk-3WKDIXCM.mjs} +1 -1
- package/dist/chunk-43LOJ3SH.mjs +10 -0
- package/dist/chunk-46RUOB4U.mjs +29 -0
- package/dist/{chunk-TCCQDGMI.mjs → chunk-4EAXDHSV.mjs} +1 -1
- package/dist/{chunk-UQJGSVXP.mjs → chunk-4I7K4CCG.mjs} +2 -2
- package/dist/chunk-4P247R4V.mjs +10 -0
- package/dist/{chunk-RXSYDMT6.mjs → chunk-4QBHQCCK.mjs} +2 -2
- package/dist/chunk-4S4GGUSH.mjs +10 -0
- package/dist/chunk-4WVW4KEK.mjs +10 -0
- package/dist/chunk-5G6JNQQR.mjs +10 -0
- package/dist/{chunk-RSTHM3ZF.mjs → chunk-5G7ABQYJ.mjs} +1 -1
- package/dist/{chunk-WAOWR7MR.mjs → chunk-5USQ6HBY.mjs} +1 -1
- package/dist/{chunk-UCPPKNGF.mjs → chunk-5VNC6UYE.mjs} +2 -2
- package/dist/chunk-5W67PVZQ.mjs +10 -0
- package/dist/chunk-5ZC64ZG7.mjs +10 -0
- package/dist/chunk-676DOXEK.mjs +10 -0
- package/dist/{chunk-VZFS4QRW.mjs → chunk-6GMU63H2.mjs} +1 -1
- package/dist/chunk-6M7PJXEE.mjs +10 -0
- package/dist/chunk-6Q5PNIYZ.mjs +10 -0
- package/dist/chunk-6QQEK5I6.mjs +10 -0
- package/dist/{chunk-XEGXSFIP.mjs → chunk-7BE6MOPW.mjs} +2 -2
- package/dist/chunk-7EQIV4GX.mjs +10 -0
- package/dist/{chunk-GX2IOGYR.mjs → chunk-7MLFM55C.mjs} +1 -1
- package/dist/{chunk-6NQPENP4.mjs → chunk-7P7VZMTO.mjs} +1 -1
- package/dist/{chunk-CFLEBB5T.mjs → chunk-7SKQUEHP.mjs} +1 -1
- package/dist/chunk-7SQRBY7N.mjs +10 -0
- package/dist/chunk-7XGNJE7J.mjs +10 -0
- package/dist/chunk-7XLBV46W.mjs +10 -0
- package/dist/chunk-ABXTAFKP.mjs +11 -0
- package/dist/{chunk-AYBACQ6U.mjs → chunk-AFOW62QN.mjs} +2 -2
- package/dist/chunk-AI6WQPRX.mjs +10 -0
- package/dist/chunk-AMVX34SS.mjs +10 -0
- package/dist/chunk-AN26QORL.mjs +10 -0
- package/dist/chunk-AYQN3OH2.mjs +10 -0
- package/dist/chunk-B3EZOXNU.mjs +10 -0
- package/dist/{chunk-F3HQNHR5.mjs → chunk-BA5OA5DY.mjs} +1 -1
- package/dist/chunk-BAIVRB2I.mjs +10 -0
- package/dist/chunk-BET5GVGQ.mjs +10 -0
- package/dist/chunk-BGQRLALS.mjs +10 -0
- package/dist/chunk-BGRGRUG4.mjs +10 -0
- package/dist/chunk-BPW4QRPV.mjs +10 -0
- package/dist/chunk-BSSLS6MF.mjs +10 -0
- package/dist/chunk-BTPAZDGG.mjs +10 -0
- package/dist/{chunk-I3YGB2BE.mjs → chunk-C4WHTPLY.mjs} +2 -2
- package/dist/chunk-CENNHSIS.mjs +15 -0
- package/dist/chunk-CIPPPD6E.mjs +10 -0
- package/dist/{chunk-2TH2QRSV.mjs → chunk-CTBCJZEG.mjs} +1 -1
- package/dist/chunk-CU6D2EA6.mjs +10 -0
- package/dist/{chunk-SAZLJ66W.mjs → chunk-CY6W27WG.mjs} +1 -1
- package/dist/{chunk-34TYNTXM.mjs → chunk-D4NW56YQ.mjs} +1 -1
- package/dist/chunk-D5VU5TED.mjs +11 -0
- package/dist/chunk-DAI7V4TE.mjs +10 -0
- package/dist/{chunk-PAQQ7MQG.mjs → chunk-DF2D7NE6.mjs} +1 -1
- package/dist/chunk-DO5YROCG.mjs +10 -0
- package/dist/{chunk-DRYSJSKA.mjs → chunk-E3FP4B25.mjs} +1 -1
- package/dist/{chunk-QSSCSN5S.mjs → chunk-EGLD5KVP.mjs} +2 -2
- package/dist/{chunk-HVKYWSRF.mjs → chunk-EL5OYHOX.mjs} +2 -2
- package/dist/chunk-ETM4MNG4.mjs +10 -0
- package/dist/chunk-F7WPMQ3P.mjs +16 -0
- package/dist/{chunk-EU75HMPG.mjs → chunk-FCKJCFMD.mjs} +2 -2
- package/dist/chunk-FGSVPRDN.mjs +10 -0
- package/dist/chunk-FNCHBVLF.mjs +10 -0
- package/dist/chunk-FPM5UJRF.mjs +10 -0
- package/dist/{chunk-TJEK54BW.mjs → chunk-G77E7EDE.mjs} +1 -1
- package/dist/{chunk-N26C7NYZ.mjs → chunk-GCBMNOA6.mjs} +1 -1
- package/dist/chunk-GFBRKKX4.mjs +10 -0
- package/dist/chunk-GFKZXGWJ.mjs +10 -0
- package/dist/{chunk-CPSUI4IW.mjs → chunk-GFTIEY5K.mjs} +1 -1
- package/dist/{chunk-IVVZSESM.mjs → chunk-GL5GUKT7.mjs} +2 -2
- package/dist/chunk-GLAMJIYO.mjs +10 -0
- package/dist/chunk-GMALMQWI.mjs +10 -0
- package/dist/chunk-GQIS4QBN.mjs +10 -0
- package/dist/chunk-GUPSQSPC.mjs +0 -0
- package/dist/chunk-HABKIEKC.mjs +10 -0
- package/dist/chunk-HH4VLTF3.mjs +10 -0
- package/dist/{chunk-HI44JQA7.mjs → chunk-HPUUQKKH.mjs} +2 -2
- package/dist/chunk-HZM2XZP4.mjs +10 -0
- package/dist/chunk-I7LPPUZS.mjs +10 -0
- package/dist/{chunk-IXK6S6IH.mjs → chunk-I7SMG6PT.mjs} +1 -1
- package/dist/chunk-IHES52NR.mjs +10 -0
- package/dist/{chunk-AGYQLGBZ.mjs → chunk-IIURKT24.mjs} +1 -1
- package/dist/{chunk-NQO6OQT6.mjs → chunk-IM3E5JL4.mjs} +1 -1
- package/dist/chunk-IROFSPEN.mjs +10 -0
- package/dist/chunk-JRCDMRIW.mjs +10 -0
- package/dist/{chunk-XUJJMAKM.mjs → chunk-JZXLV6JU.mjs} +1 -1
- package/dist/{chunk-4ZJMZB5B.mjs → chunk-K5RYVERS.mjs} +1 -1
- package/dist/{chunk-WL27JGVG.mjs → chunk-KG2EHFYA.mjs} +1 -1
- package/dist/chunk-KHDWTXGG.mjs +10 -0
- package/dist/{chunk-AMYRLAIC.mjs → chunk-KT4FTBJ2.mjs} +1 -1
- package/dist/chunk-KUDCYGII.mjs +10 -0
- package/dist/{chunk-YCI6BEXQ.mjs → chunk-KVIV5RTE.mjs} +1 -1
- package/dist/chunk-KW3BKIG4.mjs +10 -0
- package/dist/chunk-KX7WG3L4.mjs +10 -0
- package/dist/chunk-LBHZV4BO.mjs +10 -0
- package/dist/chunk-LJZ7ZS4C.mjs +10 -0
- package/dist/chunk-LKSUUT3M.mjs +10 -0
- package/dist/chunk-LQ7PGSP4.mjs +10 -0
- package/dist/chunk-LQHFBXCW.mjs +10 -0
- package/dist/{chunk-V37GPPZD.mjs → chunk-LSPDPDB6.mjs} +1 -1
- package/dist/{chunk-L6S5GBKS.mjs → chunk-MBRNO6IW.mjs} +1 -1
- package/dist/chunk-MCN5JU6E.mjs +10 -0
- package/dist/chunk-MHAPHPNN.mjs +10 -0
- package/dist/chunk-MZIQ27JP.mjs +10 -0
- package/dist/chunk-NKC4MIX3.mjs +10 -0
- package/dist/{chunk-GI2O6H4I.mjs → chunk-NMGKHMH3.mjs} +1 -1
- package/dist/chunk-NMK4W6K3.mjs +10 -0
- package/dist/{chunk-GEZGEZAP.mjs → chunk-NQIZ3U7Q.mjs} +2 -2
- package/dist/{chunk-6Z6HOW6T.mjs → chunk-NUCSMH4S.mjs} +2 -2
- package/dist/chunk-NZNOHFLD.mjs +10 -0
- package/dist/{chunk-4PYEGHW5.mjs → chunk-O23QVPUT.mjs} +2 -2
- package/dist/{chunk-UN7XC7QV.mjs → chunk-O6FPWOHR.mjs} +1 -1
- package/dist/{chunk-3UH5CQQF.mjs → chunk-O7IU5NHN.mjs} +2 -2
- package/dist/chunk-OMWMNUTI.mjs +10 -0
- package/dist/{chunk-Z4HTFTPM.mjs → chunk-ONBEVR2G.mjs} +2 -2
- package/dist/chunk-OQPYPKZV.mjs +10 -0
- package/dist/chunk-OVJT5F2R.mjs +10 -0
- package/dist/chunk-OWQRYRWF.mjs +10 -0
- package/dist/{chunk-XJ2DFV56.mjs → chunk-PLZ6ZFEO.mjs} +1 -1
- package/dist/chunk-PMDRFB75.mjs +10 -0
- package/dist/chunk-PPHSLODC.mjs +10 -0
- package/dist/chunk-PYV5J322.mjs +11 -0
- package/dist/chunk-QAAOC64D.mjs +10 -0
- package/dist/chunk-QMV2O57M.mjs +10 -0
- package/dist/{chunk-ZLZAFTSD.mjs → chunk-QWZBZ23U.mjs} +1 -1
- package/dist/{chunk-NADBGP35.mjs → chunk-QXXKOFWM.mjs} +2 -2
- package/dist/{chunk-DMJHCNBU.mjs → chunk-R6Q7UMQS.mjs} +1 -1
- package/dist/{chunk-CGFLGZL4.mjs → chunk-R6TFTLMV.mjs} +1 -1
- package/dist/{chunk-AV4ZP5SY.mjs → chunk-RPIUPWPO.mjs} +1 -1
- package/dist/chunk-S2XIFW52.mjs +10 -0
- package/dist/chunk-S4HLMIFK.mjs +10 -0
- package/dist/chunk-SBGZCLF4.mjs +10 -0
- package/dist/chunk-SD43KVTU.mjs +10 -0
- package/dist/{chunk-YS3Y5KGV.mjs → chunk-SGZWUG3H.mjs} +2 -2
- package/dist/chunk-SI5WP6I7.mjs +10 -0
- package/dist/chunk-SLFKSR3T.mjs +10 -0
- package/dist/chunk-SLSJEMQ4.mjs +10 -0
- package/dist/{chunk-K6X2BHPP.mjs → chunk-STMDFIUL.mjs} +1 -1
- package/dist/chunk-SVIYLH7R.mjs +10 -0
- package/dist/{chunk-GXOXYPQQ.mjs → chunk-SVV6DLJH.mjs} +1 -1
- package/dist/chunk-SZCVQU55.mjs +10 -0
- package/dist/{chunk-QXOG2ISL.mjs → chunk-T6J7G3YL.mjs} +2 -2
- package/dist/chunk-TAT552A5.mjs +10 -0
- package/dist/{chunk-ZNN43VZV.mjs → chunk-TFSBTGTQ.mjs} +2 -2
- package/dist/chunk-TIGGKOJQ.mjs +10 -0
- package/dist/chunk-TTVYMCU3.mjs +10 -0
- package/dist/chunk-TUY23KMK.mjs +10 -0
- package/dist/chunk-TYKMNZJ4.mjs +11 -0
- package/dist/chunk-TZGK36KC.mjs +10 -0
- package/dist/chunk-UBLCUHRL.mjs +10 -0
- package/dist/chunk-UFN2OAM2.mjs +10 -0
- package/dist/{chunk-5K46OAX5.mjs → chunk-UH6QIGD3.mjs} +1 -1
- package/dist/{chunk-ZLAY7NNY.mjs → chunk-UI2VBG26.mjs} +1 -1
- package/dist/{chunk-545KDVGI.mjs → chunk-UO75BAPM.mjs} +2 -2
- package/dist/chunk-UOWKAUCQ.mjs +10 -0
- package/dist/chunk-UPJHL37C.mjs +10 -0
- package/dist/chunk-USUPPN73.mjs +10 -0
- package/dist/chunk-UYAFH4CW.mjs +10 -0
- package/dist/{chunk-6EFNC443.mjs → chunk-UYUYQFOW.mjs} +1 -1
- package/dist/chunk-UZ672WDX.mjs +10 -0
- package/dist/chunk-VFO35ZLL.mjs +10 -0
- package/dist/chunk-VXZT2JR2.mjs +10 -0
- package/dist/chunk-WFYFHANE.mjs +10 -0
- package/dist/chunk-X5ORCNAU.mjs +10 -0
- package/dist/chunk-X5ZTXDQ4.mjs +10 -0
- package/dist/chunk-X7CKWYUD.mjs +10 -0
- package/dist/{chunk-NUYBQ7KP.mjs → chunk-XAM3AXXK.mjs} +1 -1
- package/dist/{chunk-5KD2MNNX.mjs → chunk-XDTKLQJB.mjs} +1 -1
- package/dist/chunk-XMGPNXZH.mjs +10 -0
- package/dist/chunk-XOS3JIQX.mjs +10 -0
- package/dist/chunk-XQC3DSTW.mjs +10 -0
- package/dist/{chunk-D3IZ4HBL.mjs → chunk-Y2MIU76N.mjs} +1 -1
- package/dist/chunk-Y3HXPORF.mjs +10 -0
- package/dist/chunk-YDUKC7QS.mjs +10 -0
- package/dist/chunk-YF63IQQR.mjs +10 -0
- package/dist/chunk-YFBMCK5O.mjs +10 -0
- package/dist/{chunk-2RCST7ET.mjs → chunk-YHI2PD3M.mjs} +1 -1
- package/dist/chunk-YMYMFVW4.mjs +10 -0
- package/dist/chunk-YQHHE5AT.mjs +10 -0
- package/dist/{chunk-UCNHDT36.mjs → chunk-YS3Z53YT.mjs} +2 -2
- package/dist/chunk-YYU46XNM.mjs +10 -0
- package/dist/{chunk-2EMOQIU7.mjs → chunk-Z3ZMWJSV.mjs} +2 -2
- package/dist/chunk-Z4QTH4TB.mjs +10 -0
- package/dist/chunk-ZA2FH3MS.mjs +10 -0
- package/dist/{chunk-DECHIERQ.mjs → chunk-ZQOR4LCM.mjs} +1 -1
- package/dist/hooks/useContainerScopedRef.mjs +1 -1
- package/dist/hooks/useDevice.mjs +1 -1
- package/dist/hooks/useI18n.mjs +1 -1
- package/dist/hooks/useIntersectionObserver.mjs +1 -1
- package/dist/hooks/useLiveInteractionModality.mjs +1 -1
- package/dist/hooks/useMedia.mjs +1 -1
- package/dist/hooks/useMutationObserver.mjs +1 -1
- package/dist/hooks/usePortalContainer.mjs +1 -1
- package/dist/hooks/usePreventFocus.mjs +1 -1
- package/dist/hooks/useResizeObserver.mjs +1 -1
- package/dist/hooks/useTextSelection.mjs +1 -1
- package/dist/hooks/useUndoRedo.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +440 -188
- package/dist/index.js +21 -20
- package/dist/index.mjs +1 -1
- package/dist/messageIds.mjs +1 -1
- package/dist/react-aria.mjs +1 -1
- package/dist/react-stately.mjs +1 -1
- package/dist/utils/colors.mjs +1 -1
- package/dist/utils/dom.mjs +1 -1
- package/dist/utils/isInShadowDOM.mjs +1 -1
- package/dist/utils/keyboards.mjs +1 -1
- package/dist/utils/strings.mjs +1 -1
- package/intl/ar.json +1 -0
- package/intl/cs.json +1 -0
- package/intl/cy.json +1 -0
- package/intl/da.json +1 -0
- package/intl/de.json +1 -0
- package/intl/el.json +1 -0
- package/intl/en-GB.json +1 -0
- package/intl/en.json +1 -0
- package/intl/es.json +1 -0
- package/intl/fi.json +1 -0
- package/intl/fr-CA.json +1 -0
- package/intl/fr.json +1 -0
- package/intl/he.json +1 -0
- package/intl/hr.json +1 -0
- package/intl/id.json +1 -0
- package/intl/it.json +1 -0
- package/intl/ja.json +1 -0
- package/intl/ko.json +1 -0
- package/intl/ms.json +1 -0
- package/intl/nb-NO.json +1 -0
- package/intl/nl.json +1 -0
- package/intl/pl.json +1 -0
- package/intl/pt-PT.json +1 -0
- package/intl/pt.json +1 -0
- package/intl/ru.json +1 -0
- package/intl/sk.json +1 -0
- package/intl/sl.json +1 -0
- package/intl/sv.json +1 -0
- package/intl/th.json +1 -0
- package/intl/tr.json +1 -0
- package/intl/uk.json +1 -0
- package/intl/zh-Hans.json +1 -0
- package/intl/zh-Hant.json +1 -0
- package/messages.json +5 -1
- package/package.json +4 -4
- package/sbom.json +6 -6
- package/dist/chunk-2BXXD6SW.mjs +0 -10
- package/dist/chunk-2V323KAD.mjs +0 -10
- package/dist/chunk-2YTKLY4F.mjs +0 -10
- package/dist/chunk-3FYY26ED.mjs +0 -10
- package/dist/chunk-3W6RWDIE.mjs +0 -10
- package/dist/chunk-4C6AJ3TZ.mjs +0 -10
- package/dist/chunk-5HK56IXH.mjs +0 -10
- package/dist/chunk-5IXSPQRW.mjs +0 -10
- package/dist/chunk-63KRQW56.mjs +0 -10
- package/dist/chunk-66NJ7EYY.mjs +0 -10
- package/dist/chunk-6JWACCHG.mjs +0 -10
- package/dist/chunk-6PXOVWVM.mjs +0 -10
- package/dist/chunk-6V7BIFQD.mjs +0 -10
- package/dist/chunk-6VXBFM6Q.mjs +0 -10
- package/dist/chunk-7L5UOGZA.mjs +0 -10
- package/dist/chunk-7MQBBSZ2.mjs +0 -10
- package/dist/chunk-7P322KP4.mjs +0 -10
- package/dist/chunk-7PRJIPFA.mjs +0 -10
- package/dist/chunk-A24DWFQ2.mjs +0 -10
- package/dist/chunk-AC7OXVHA.mjs +0 -10
- package/dist/chunk-AKES5B6C.mjs +0 -10
- package/dist/chunk-AQYBKDT2.mjs +0 -16
- package/dist/chunk-AUOQSTS5.mjs +0 -10
- package/dist/chunk-AW5WDI2U.mjs +0 -10
- package/dist/chunk-B237CJT4.mjs +0 -10
- package/dist/chunk-B6U6JHD4.mjs +0 -10
- package/dist/chunk-B7PSE5KC.mjs +0 -10
- package/dist/chunk-BBZ2I3RF.mjs +0 -10
- package/dist/chunk-BCENUHNO.mjs +0 -10
- package/dist/chunk-BGHBSM3K.mjs +0 -10
- package/dist/chunk-BGMVPFYK.mjs +0 -10
- package/dist/chunk-BJVFZYUV.mjs +0 -10
- package/dist/chunk-BU5H25MV.mjs +0 -10
- package/dist/chunk-C7AUJO36.mjs +0 -10
- package/dist/chunk-CAWUDHAE.mjs +0 -10
- package/dist/chunk-CCA2ABXO.mjs +0 -10
- package/dist/chunk-CUOTJ7AP.mjs +0 -10
- package/dist/chunk-CYTHB4M4.mjs +0 -10
- package/dist/chunk-D5EEZT5J.mjs +0 -10
- package/dist/chunk-DDLZ6CKC.mjs +0 -10
- package/dist/chunk-E3DMXJIC.mjs +0 -10
- package/dist/chunk-E3QDPL77.mjs +0 -10
- package/dist/chunk-EA6GA4WC.mjs +0 -10
- package/dist/chunk-EGXILQNX.mjs +0 -10
- package/dist/chunk-EX2LI2CV.mjs +0 -10
- package/dist/chunk-EYKIXVM3.mjs +0 -10
- package/dist/chunk-F2X474RV.mjs +0 -10
- package/dist/chunk-F7PGMOQF.mjs +0 -10
- package/dist/chunk-GKODQS6E.mjs +0 -10
- package/dist/chunk-GVI6EBGJ.mjs +0 -10
- package/dist/chunk-HK3CZVHY.mjs +0 -10
- package/dist/chunk-HONWMHMX.mjs +0 -10
- package/dist/chunk-HT55YHTN.mjs +0 -10
- package/dist/chunk-HZHAKW6I.mjs +0 -10
- package/dist/chunk-ILAQFMYD.mjs +0 -10
- package/dist/chunk-INDVRI57.mjs +0 -10
- package/dist/chunk-ITWJSFYK.mjs +0 -10
- package/dist/chunk-IVC2BJRU.mjs +0 -10
- package/dist/chunk-IXRSSEHQ.mjs +0 -10
- package/dist/chunk-JDLUGVXG.mjs +0 -10
- package/dist/chunk-K6HE4Z2Y.mjs +0 -10
- package/dist/chunk-K73R5G6G.mjs +0 -10
- package/dist/chunk-KEAM6GSA.mjs +0 -10
- package/dist/chunk-KEVERVHK.mjs +0 -10
- package/dist/chunk-KHOXLBPR.mjs +0 -10
- package/dist/chunk-KPEONVLU.mjs +0 -10
- package/dist/chunk-KUEDQO7P.mjs +0 -10
- package/dist/chunk-KWHTLY23.mjs +0 -10
- package/dist/chunk-KY3JKXSX.mjs +0 -10
- package/dist/chunk-LQMEFFFM.mjs +0 -10
- package/dist/chunk-LZFTBNPW.mjs +0 -10
- package/dist/chunk-M5M3EPG5.mjs +0 -10
- package/dist/chunk-M7OLZJYB.mjs +0 -10
- package/dist/chunk-MHUFXHRU.mjs +0 -10
- package/dist/chunk-MONDDKB4.mjs +0 -10
- package/dist/chunk-MRJFGHFW.mjs +0 -10
- package/dist/chunk-MVK5CB64.mjs +0 -10
- package/dist/chunk-N6VKP3UH.mjs +0 -10
- package/dist/chunk-NZQVKNP4.mjs +0 -10
- package/dist/chunk-OAY74XPB.mjs +0 -10
- package/dist/chunk-OMT6ZWSV.mjs +0 -11
- package/dist/chunk-P37WUXAI.mjs +0 -10
- package/dist/chunk-P5LSMA24.mjs +0 -11
- package/dist/chunk-PA3THES4.mjs +0 -10
- package/dist/chunk-QDQPVCXN.mjs +0 -10
- package/dist/chunk-QR2AF3KT.mjs +0 -10
- package/dist/chunk-QYTY3KJR.mjs +0 -10
- package/dist/chunk-R2OV7FJO.mjs +0 -10
- package/dist/chunk-RCBUNCHV.mjs +0 -10
- package/dist/chunk-RFTDIXEG.mjs +0 -10
- package/dist/chunk-RJZZIVSY.mjs +0 -10
- package/dist/chunk-SHJ2TJYG.mjs +0 -10
- package/dist/chunk-SMAYNDQQ.mjs +0 -10
- package/dist/chunk-SYFSGF73.mjs +0 -10
- package/dist/chunk-T4R3EXGI.mjs +0 -10
- package/dist/chunk-TBCZKWGQ.mjs +0 -10
- package/dist/chunk-TDXALNX3.mjs +0 -10
- package/dist/chunk-TKQOQVZD.mjs +0 -10
- package/dist/chunk-TTYRHIRQ.mjs +0 -10
- package/dist/chunk-UBFMOTBM.mjs +0 -10
- package/dist/chunk-UEDBY5JI.mjs +0 -10
- package/dist/chunk-UT2I4K7L.mjs +0 -10
- package/dist/chunk-V3L4SVVF.mjs +0 -10
- package/dist/chunk-VAFIUM63.mjs +0 -29
- package/dist/chunk-VIVNQZYK.mjs +0 -10
- package/dist/chunk-VOSSQAHC.mjs +0 -11
- package/dist/chunk-WWSGOGLA.mjs +0 -10
- package/dist/chunk-X3AXUU3H.mjs +0 -10
- package/dist/chunk-X6IJEPSH.mjs +0 -10
- package/dist/chunk-XF5UMU6D.mjs +0 -15
- package/dist/chunk-XTH6B5FE.mjs +0 -10
- package/dist/chunk-XWLESSHN.mjs +0 -10
- package/dist/chunk-XZSDCUID.mjs +0 -10
- package/dist/chunk-Y3YZMICA.mjs +0 -10
- package/dist/chunk-Y4DRSGEJ.mjs +0 -10
- package/dist/chunk-YB3KW7JC.mjs +0 -10
- package/dist/chunk-YIGT3OP2.mjs +0 -10
- package/dist/chunk-YKMSINHH.mjs +0 -10
- package/dist/chunk-YWCU4PP7.mjs +0 -10
- package/dist/chunk-YWQXHVMW.mjs +0 -10
- package/dist/chunk-YX2ASVM3.mjs +0 -10
- package/dist/chunk-ZGRRD3TU.mjs +0 -10
- /package/dist/{chunk-FKYHERP4.mjs → chunk-3K2H3JOE.mjs} +0 -0
package/dist/chunk-DDLZ6CKC.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a,b as b$1}from'./chunk-MVK5CB64.mjs';import {b}from'./chunk-AUOQSTS5.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
|
-
var Y=16,S=50,A=30;function F({ref:l,isDisabled:i}){let v=useRef(null),p=useRef({isScrollableX:true,isScrollableY:true}),u=useRef({x:0,y:0}),c=useRef(void 0),w=useRef(0);useEffect(()=>{if(i||!l.current)return;let e=l.current,d=b(e),a$1=a(e)?e:b$1(e),m=d.getComputedStyle(a$1);v.current=a$1,p.current={isScrollableX:/(auto|scroll)/.test(m.overflowX),isScrollableY:/(auto|scroll)/.test(m.overflowY)};},[i,l]),useEffect(()=>{if(i||!l.current||!v.current)return;let e=v.current,d=()=>{if(!e)return;let{isScrollableX:r,isScrollableY:n}=p.current,{x:t,y:o}=u.current;r&&t!==0&&(e.scrollLeft+=t),n&&o!==0&&(e.scrollTop+=o),c.current=requestAnimationFrame(d);},a=(r,n)=>r<S?-A*(1-r/S):r>n-S?A*(1-(n-r)/S):0,m=(r,n,t,o)=>{let E=performance.now();if(E-w.current<Y)return;let b=a(r,t),g=a(n,o);(b!==u.current.x||g!==u.current.y)&&(u.current={x:b,y:g},w.current=E,(b!==0||g!==0)&&!c.current&&(c.current=requestAnimationFrame(d)));},R=r=>{if(r.preventDefault(),!e)return;let n=r,t=e.getBoundingClientRect(),o=n.clientX-t.left,E=n.clientY-t.top;m(o,E,t.width,t.height);},f=()=>{u.current={x:0,y:0},c.current&&(cancelAnimationFrame(c.current),c.current=void 0);};return e.addEventListener("dragover",R),e.addEventListener("dragend",f),e.addEventListener("drop",f),()=>{e.removeEventListener("dragover",R),e.removeEventListener("dragend",f),e.removeEventListener("drop",f),c.current&&cancelAnimationFrame(c.current);}},[i,l]);}export{F as a};
|
package/dist/chunk-E3DMXJIC.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-AMW7LGCF.mjs';import {c}from'./chunk-VIVNQZYK.mjs';import {a as a$8}from'./chunk-EX2LI2CV.mjs';import {a as a$5}from'./chunk-2V323KAD.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {e}from'./chunk-B7PSE5KC.mjs';import {a as a$7}from'./chunk-X3AXUU3H.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-K6X2BHPP.mjs';import {c as c$1,a as a$9}from'./chunk-TZ4MVY4E.mjs';import {a as a$4}from'./chunk-KEVERVHK.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/12';import {XIcon as XIcon$1}from'@baseline-ui/icons/16';import {SearchIcon as SearchIcon$1}from'@baseline-ui/icons/20';import {SearchIcon}from'@baseline-ui/icons/24';import K from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var B={"ar-AE":{"Clear search":"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B"},"bg-BG":{"Clear search":"\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435"},"cs-CZ":{"Clear search":"Vymazat hled\xE1n\xED"},"da-DK":{"Clear search":"Ryd s\xF8gning"},"de-DE":{"Clear search":"Suche zur\xFCcksetzen"},"el-GR":{"Clear search":"\u0391\u03C0\u03B1\u03BB\u03BF\u03B9\u03C6\u03AE \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar b\xFAsqueda"},"et-EE":{"Clear search":"T\xFChjenda otsing"},"fi-FI":{"Clear search":"Tyhjenn\xE4 haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"\u05E0\u05E7\u05D4 \u05D7\u05D9\u05E4\u05D5\u05E9"},"hr-HR":{"Clear search":"Obri\u0161i pretragu"},"hu-HU":{"Clear search":"Keres\xE9s t\xF6rl\xE9se"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2"},"ko-KR":{"Clear search":"\uAC80\uC0C9 \uC9C0\uC6B0\uAE30"},"lt-LT":{"Clear search":"I\u0161valyti ie\u0161k\u0105"},"lv-LV":{"Clear search":"Not\u012Br\u012Bt mekl\u0113\u0161anu"},"nb-NO":{"Clear search":"T\xF8m s\xF8k"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczy\u015B\u0107 zawarto\u015B\u0107 wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"\u015Eterge\u0163i c\u0103utarea"},"ru-RU":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A"},"sk-SK":{"Clear search":"Vymaza\u0165 vyh\u013Ead\xE1vanie"},"sl-SI":{"Clear search":"Po\u010Disti iskanje"},"sr-SP":{"Clear search":"Obri\u0161i pretragu"},"sv-SE":{"Clear search":"Rensa s\xF6kning"},"tr-TR":{"Clear search":"Aramay\u0131 temizle"},"uk-UA":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A"},"zh-CN":{"Clear search":"\u6E05\u9664\u641C\u7D22"},"zh-TW":{"Clear search":"\u6E05\u9664\u641C\u5C0B\u689D\u4EF6"}};function S(r,e,t){let d=b$1(B,"@react-aria/searchfield"),{isDisabled:l,isReadOnly:s,onSubmit:i,onClear:a,type:h="search"}=r,n=o=>{let u=o.key;u==="Enter"&&(l||s)&&o.preventDefault(),!(l||s)&&(u==="Enter"&&i&&(o.preventDefault(),i(e.value)),u==="Escape"&&(e.value===""&&(!t.current||t.current.value==="")?o.continuePropagation():(o.preventDefault(),e.setValue(""),a&&a())));},p=()=>{e.setValue(""),a&&a();},m=()=>{t.current?.focus();},{labelProps:c,inputProps:f,descriptionProps:_,errorMessageProps:y,...z}=a$8({...r,value:e.value,onChange:e.setValue,onKeyDown:s?r.onKeyDown:a$9(n,r.onKeyDown),type:h},t);return {labelProps:c,inputProps:{...f,defaultValue:void 0},clearButtonProps:{"aria-label":d.format("Clear search"),excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:l||s,onPress:p,onPressStart:m},descriptionProps:_,errorMessageProps:y,...z}}function b(r){let[e,t]=a$7(E(r.value),E(r.defaultValue)||"",r.onChange);return {value:e,setValue:t}}function E(r){if(r!=null)return r.toString()}var H="_19n40yy9 _1yep5z6me _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kk _1yep5z6kl _1yep5z6km _1yep5z6ey",O=a({defaultClassName:"_19n40yy0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6g9 _1yep5z6mh _1yep5z6mf _1yep5z6hs _1yep5z6f9 _1yep5z6m3 _1yep5z6e6",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3 _1yep5z610m"},variant:{primary:"_1yep5z613z",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_1yep5z6os _1yep5z6ot _1yep5z6ou"},isDisabled:{true:"_19n40yy8 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]});var W={sm:SearchIcon$1,md:SearchIcon,lg:SearchIcon},U=K.forwardRef(({className:r,size:e$1="md",variant:t="primary","data-block-id":d,"data-block-class":l,style:s,isClearFocusable:i=false,...a},h)=>{let n=K.useRef(null);[a,n]=e(a,n,c);let p=b(a),{inputProps:m,clearButtonProps:c$2}=S({...a$1(a),"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},p,n),{focusProps:f,isFocusVisible:_,isFocused:y}=a$2({within:true,isTextInput:true}),z=W[e$1],o=e$1==="sm"?XIcon:XIcon$1,u=a$3({"data-block-id":d,"data-block-class":l,"data-focused":y,"data-disabled":a.isDisabled,"data-focus-visible":_}),P=a$4(a,{global:true});return delete P.id,jsxs("div",{...P,...u,className:a$6(O({size:e$1,isFocused:y,variant:t,hasText:!!p.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",r),style:s,ref:h,children:[jsx(z,{size:e$1==="sm"?20:24}),jsx("input",{...c$1(m,f),className:H,ref:n}),p.value!==""&&jsx(a$5,{icon:o,...c$2,size:e$1==="sm"?"xs":"sm",variant:"secondary",isExcludedFromRovingFocus:!i,excludeFromTabOrder:!i,...i?{onPressStart:x=>{c$2.onPressStart?.(x),c$2.onPress?.(x);}}:{}})]})});U.displayName="SearchInput";export{U as a};
|
package/dist/chunk-E3QDPL77.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$d}from'./chunk-5BAHJXOI.mjs';import {a as a$c}from'./chunk-RFTDIXEG.mjs';import {a as a$2}from'./chunk-SAZLJ66W.mjs';import {a as a$5}from'./chunk-M5M3EPG5.mjs';import {d}from'./chunk-W6QO7FPZ.mjs';import {a as a$a}from'./chunk-O7XK2WIX.mjs';import {a as a$8,b as b$4}from'./chunk-KPEONVLU.mjs';import {e,d as d$2}from'./chunk-KUEDQO7P.mjs';import {b as b$1,a as a$i}from'./chunk-WL27JGVG.mjs';import {a,b as b$3}from'./chunk-2RCST7ET.mjs';import {a as a$b}from'./chunk-CV6JQGJ3.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {e as e$2,b as b$5}from'./chunk-MVK5CB64.mjs';import {a as a$3}from'./chunk-XWLESSHN.mjs';import {a as a$h}from'./chunk-D3IZ4HBL.mjs';import {a as a$f}from'./chunk-RXSYDMT6.mjs';import {a as a$7}from'./chunk-X3AXUU3H.mjs';import {a as a$4}from'./chunk-545KDVGI.mjs';import {a as a$9}from'./chunk-K6X2BHPP.mjs';import {b}from'./chunk-YB3KW7JC.mjs';import {d as d$1}from'./chunk-AQYBKDT2.mjs';import {g as g$1,d as d$3}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$6}from'./chunk-KEVERVHK.mjs';import {a as a$g,c as c$1}from'./chunk-JDLUGVXG.mjs';import {g,a as a$e,e as e$1,f}from'./chunk-AUOQSTS5.mjs';import {a as a$1}from'./chunk-JQQGRJ5J.mjs';import pa,{useRef,useMemo,useEffect,useState}from'react';import {DateFormatter,isEqualCalendar,toCalendar,GregorianCalendar,CalendarDate,now,getLocalTimeZone,toCalendarDate,toCalendarDateTime}from'@internationalized/date';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 re={"ar-AE":{calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",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.startDate} \u0625\u0644\u0649 ${e.endDate}`,selectedTimeDescription:e=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"},"bg-BG":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",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.startDate} \u0434\u043E ${e.endDate}`,selectedTimeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${e.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"},"cs-CZ":{calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:e=>`Vybran\xE9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xE9 obdob\xED: ${e.startDate} a\u017E ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xFD \u010Das: ${e.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xE4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xE4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xE4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\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.startDate} \u03AD\u03C9\u03C2 ${e.endDate}`,selectedTimeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${e.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"},"et-EE":{calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xE4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xE4li: ${e.startDate} \u2013 ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xE9lectionn\xE9e\xA0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xE9lectionn\xE9e\xA0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xA0: ${e.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"},"he-IL":{calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:e=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${e.date}`,selectedRangeDescription:e=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${e.startDate} \u05E2\u05D3 ${e.endDate}`,selectedTimeDescription:e=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${e.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:e=>`Kijel\xF6lt d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xF6lt tartom\xE1ny: ${e.startDate}\u2013${e.endDate}`,selectedTimeDescription:e=>`Kijel\xF6lt id\u0151: ${e.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${e.date}`,selectedRangeDescription:e=>`\u9078\u629E\u7BC4\u56F2 : ${e.startDate} \u304B\u3089 ${e.endDate}`,selectedTimeDescription:e=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${e.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"},"ko-KR":{calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:e=>`\uC120\uD0DD \uC77C\uC790: ${e.date}`,selectedRangeDescription:e=>`\uC120\uD0DD \uBC94\uC704: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\uC120\uD0DD \uC2DC\uAC04: ${e.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"},"lv-LV":{calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:e=>`Atlas\u012Btais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u012Btais diapazons: no ${e.startDate} l\u012Bdz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u012Btais laiks: ${e.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xE5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"},"pt-BR":{calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:e=>`Dat\u0103 selectat\u0103: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xE2n\u0103 la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u0103: ${e.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"},"ru-RU":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",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: \u0441 ${e.startDate} \u043F\u043E ${e.endDate}`,selectedTimeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${e.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"},"sk-SK":{calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xFD d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xFD rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xFD \u010Das: ${e.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u010Dje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u010Das: ${e.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"},"tr-TR":{calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xE7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xE7ilen Aral\u0131k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xE7ilen Zaman: ${e.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"},"uk-UA":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",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.startDate} \u2014 ${e.endDate}`,selectedTimeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${e.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"},"zh-CN":{calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${e.startDate} \u81F3 ${e.endDate}`,selectedTimeDescription:e=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${e.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"},"zh-TW":{calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${e.startDate} \u81F3 ${e.endDate}`,selectedTimeDescription:e=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${e.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"}};function Ye(e$2,a,t){let{direction:r}=b$2(),l=useMemo(()=>e(a),[a]),n=o=>{if(e$1(o.currentTarget,g(o))&&(o.altKey&&(o.key==="ArrowDown"||o.key==="ArrowUp")&&"setOpen"in e$2&&(o.preventDefault(),o.stopPropagation(),e$2.setOpen(true)),!t))switch(o.key){case "ArrowLeft":if(o.preventDefault(),o.stopPropagation(),r==="rtl"){if(a.current){let c=g(o),m=qe(a.current,c.getBoundingClientRect().left,-1);m&&m.focus();}}else l.focusPrevious();break;case "ArrowRight":if(o.preventDefault(),o.stopPropagation(),r==="rtl"){if(a.current){let c=g(o),m=qe(a.current,c.getBoundingClientRect().left,1);m&&m.focus();}}else l.focusNext();break}},u=o=>{if(!a.current)return;let c=d$2(a.current,{tabbable:true});if(o&&(c.currentNode=o,o=c.previousNode()),!o){let m;do m=c.lastChild(),m&&(o=m);while(m)}for(;o?.hasAttribute("data-placeholder");){let m=c.previousNode();if(m&&m.hasAttribute("data-placeholder"))o=m;else break}o&&o.focus();},{pressProps:s}=d$1({preventFocusOnPress:true,allowTextSelectionOnPress:true});return c(s,{onKeyDown:n,onPointerDown(o){o.pointerType==="mouse"&&u(g(o));},onPointerUp(o){(o.pointerType==="touch"||o.pointerType==="pen")&&u(g(o));},onMouseDown(o){typeof PointerEvent>"u"&&u(g(o));},onTouchEnd(o){typeof PointerEvent>"u"&&u(g(o));}})}function qe(e,a,t){let r=d$2(e,{tabbable:true}),l=r.nextNode(),n=null,u=1/0;for(;l;){let o=l.getBoundingClientRect().left-a,c=Math.abs(o);Math.sign(o)===t&&c<u&&(n=l,u=c),l=r.nextNode();}return n}var De=new WeakMap,ye="__reactAriaDateFieldRole",ma="__reactAriaDateFieldFocusManager";function Qe(e$1,a,t){let{isInvalid:r,validationErrors:l,validationDetails:n}=a.displayValidation,{labelProps:u,fieldProps:s,descriptionProps:o,errorMessageProps:c$1}=a$2({...e$1,labelElementType:"span",isInvalid:r,errorMessage:e$1.errorMessage||l,ref:t}),m=useRef(null),{focusWithinProps:f}=b({...e$1,onFocusWithin($){m.current=a.value,e$1.onFocus?.($);},onBlurWithin:$=>{a.confirmPlaceholder(),a.value!==m.current&&a.commitValidation(),e$1.onBlur?.($);},onFocusWithinChange:e$1.onFocusChange}),h=b$1(re,"@react-aria/datepicker"),D=a.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",y=a.maxGranularity==="hour"?"time":"date",b$2=a.value?h.format(D,{[y]:a.formatValue({month:"long"})}):"",P=a$3(b$2,t),S=e$1[ye]==="presentation"?s["aria-describedby"]:[P["aria-describedby"],s["aria-describedby"]].filter(Boolean).join(" ")||void 0,F=e$1[ma],g=useMemo(()=>F||e(t),[F,t]),v=Ye(a,t,e$1[ye]==="presentation");De.set(a,{ariaLabel:e$1["aria-label"],ariaLabelledBy:[u.id,e$1["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:S,focusManager:g});let w=useRef(e$1.autoFocus),R;e$1[ye]==="presentation"?R={role:"presentation"}:R=c(s,{role:"group","aria-disabled":e$1.isDisabled||void 0,"aria-describedby":S}),useEffect(()=>{w.current&&g.focusFirst(),w.current=false;},[g]),a$4(e$1.inputRef,a.defaultValue,a.setValue),a$5({...e$1,focus(){g.focusFirst();}},a,e$1.inputRef);let T={type:"hidden",name:e$1.name,form:e$1.form,value:a.value?.toString()||"",disabled:e$1.isDisabled};e$1.validationBehavior==="native"&&(T.type="text",T.hidden=true,T.required=e$1.isRequired,T.onChange=()=>{});let L=a$6(e$1);return {labelProps:{...u,onClick:()=>{g.focusFirst();}},fieldProps:c(L,R,v,f,{onKeyDown($){e$1.onKeyDown&&e$1.onKeyDown($);},onKeyUp($){e$1.onKeyUp&&e$1.onKeyUp($);},style:{unicodeBidi:"isolate"}}),inputProps:T,descriptionProps:o,errorMessageProps:c$1,isInvalid:r,validationErrors:l,validationDetails:n}}function ot(e,a,t){let r=Qe(e,a,t);return r.inputProps.value=a.timeValue?.toString()||"",r}function Xe(){let{locale:e}=b$2(),a=a$i(re,"@react-aria/datepicker");return useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new pe(e,a)}},[e,a])}var pe=class{locale;dictionary;constructor(a,t){this.locale=a,this.dictionary=t;}of(a){return this.dictionary.getStringForLocale(a,this.locale)}};function he(e,a,t){let r=useRef(""),{locale:l,direction:n}=b$2(),u=Xe(),{ariaLabel:s,ariaLabelledBy:o,ariaDescribedBy:c$2,focusManager:m}=De.get(a),[f$1,h]=useState(null),D=e.isPlaceholder?"":e.text,y=useMemo(()=>a.dateFormatter.resolvedOptions(),[a.dateFormatter]),b=a$b({month:"long",timeZone:y.timeZone}),P=a$b({hour:"numeric",hour12:y.hour12,timeZone:y.timeZone});if(e.type==="month"&&!e.isPlaceholder){let i=b.format(a.dateValue);D=i!==D?`${D} \u2013 ${i}`:i;}else e.type==="hour"&&!e.isPlaceholder&&(D=P.format(a.dateValue));let{spinButtonProps:S}=a$c({value:e.value??void 0,textValue:D,minValue:e.minValue,maxValue:e.maxValue,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly||!e.isEditable,isRequired:a.isRequired,onIncrement:()=>{r.current="",a.increment(e.type);},onDecrement:()=>{r.current="",a.decrement(e.type);},onIncrementPage:()=>{r.current="",a.incrementPage(e.type);},onDecrementPage:()=>{r.current="",a.decrementPage(e.type);},onIncrementToMax:()=>{r.current="",a.incrementToMax(e.type);},onDecrementToMin:()=>{r.current="",a.decrementToMin(e.type);}}),F=useMemo(()=>new b$4(l,{maximumFractionDigits:0}),[l]),g=()=>{if(e.text===e.placeholder&&m.focusPrevious(),F.isValidPartialNumber(e.text)&&!a.isReadOnly&&!e.isPlaceholder){let i=e.text.slice(0,-1),V=F.parse(i);i=V===0?"":i,i.length===0||V===0?a.clearSegment(e.type):a.setSegment(e.type,V),r.current=i;}else (e.type==="dayPeriod"||e.type==="era")&&a.clearSegment(e.type);},v=i=>{if(i.key==="a"&&(d$3()?i.metaKey:i.ctrlKey)&&i.preventDefault(),!(i.ctrlKey||i.metaKey||i.shiftKey||i.altKey))switch(i.key){case "Backspace":case "Delete":{i.preventDefault(),i.stopPropagation(),g();break}}},{startsWith:w}=a$d({sensitivity:"base"}),R=a$b({hour:"numeric",hour12:true}),T=useMemo(()=>{let i=new Date;return i.setHours(0),R.formatToParts(i).find(V=>V.type==="dayPeriod").value},[R]),L=useMemo(()=>{let i=new Date;return i.setHours(12),R.formatToParts(i).find(V=>V.type==="dayPeriod").value},[R]),$=a$b({year:"numeric",era:"narrow",timeZone:"UTC"}),J=useMemo(()=>{if(e.type!=="era")return [];let i=toCalendar(new CalendarDate(1,1,1),a.calendar),V=a.calendar.getEras().map(x=>{let de=i.set({year:1,month:1,day:1,era:x}).toDate("UTC"),p=$.formatToParts(de).find(E=>E.type==="era").value;return {era:x,formatted:p}}),k=ga(V.map(x=>x.formatted));if(k)for(let x of V)x.formatted=x.formatted.slice(k);return V},[$,a.calendar,e.type]),O=i=>{if(a.isDisabled||a.isReadOnly)return;let V=r.current+i;switch(e.type){case "dayPeriod":if(w(T,i))a.setSegment("dayPeriod",0);else if(w(L,i))a.setSegment("dayPeriod",1);else break;m.focusNext();break;case "era":{let k=J.find(x=>w(x.formatted,i));k&&(a.setSegment("era",k.era),m.focusNext());break}case "day":case "hour":case "minute":case "second":case "month":case "year":{if(!F.isValidPartialNumber(V))return;let k=F.parse(V),x=k;if(e.maxValue!==void 0&&k>e.maxValue&&(x=F.parse(i)),isNaN(k))return;a.setSegment(e.type,x),e.maxValue!==void 0&&(+(k+"0")>e.maxValue||V.length>=String(e.maxValue).length)?(r.current="",m.focusNext()):r.current=V;break}}};useEffect(()=>{h(a$e(t.current));},[t]);let N=()=>{r.current="",t.current&&e$2(t.current,{containingElement:b$5(t.current)}),f$1?.defaultView?.getSelection()?.collapse(t.current);},Q=useRef(typeof document<"u"?document:null);Q.current=f$1,a$f(Q,"selectionchange",()=>{let i=f$1?.defaultView?.getSelection();i?.anchorNode&&e$1(t.current,i?.anchorNode)&&i.collapse(t.current);});let X=useRef("");a$f(t,"beforeinput",i=>{if(t.current)switch(i.preventDefault(),i.inputType){case "deleteContentBackward":case "deleteContentForward":F.isValidPartialNumber(e.text)&&!a.isReadOnly&&g();break;case "insertCompositionText":X.current=t.current.textContent,t.current.textContent=t.current.textContent;break;default:i.data!=null&&O(i.data);break}}),a$f(t,"input",i=>{let{inputType:V,data:k}=i;V==="insertCompositionText"&&(t.current&&(t.current.textContent=X.current),k!=null&&(w(T,k)||w(L,k))&&O(k));}),a$g(()=>{let i=t.current;return ()=>{f(a$e(i))===i&&(m.focusPrevious()||m.focusNext());}},[t,m]);let ie=g$1()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},oe=useMemo(()=>a.segments.find(i=>i.isEditable),[a.segments]);e!==oe&&!a.isInvalid&&(c$2=void 0);let le=c$1(),j=!a.isDisabled&&!a.isReadOnly&&e.isEditable,I=e.type==="literal"?"":u.of(e.type),U=a$h({"aria-label":`${I}${s?`, ${s}`:""}${o?", ":""}`,"aria-labelledby":o});if(e.type==="literal")return {segmentProps:{"aria-hidden":true}};let B={caretColor:"transparent"};if(n==="rtl"){B.unicodeBidi="embed";let i=y[e.type];(i==="numeric"||i==="2-digit")&&(B.direction="ltr");}return {segmentProps:c(S,U,{id:le,...ie,"aria-invalid":a.isInvalid?"true":void 0,"aria-describedby":c$2,"aria-readonly":a.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(pa.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:a.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:a.isDisabled?void 0:0,onKeyDown:v,onFocus:N,style:B,onPointerDown(i){i.stopPropagation();},onMouseDown(i){i.stopPropagation();}})}}function ga(e){e.sort();let a=e[0],t=e[e.length-1];for(let r=0;r<a.length;r++)if(a[r]!==t[r])return r;return 0}var ea={"ar-AE":{rangeOverflow:e=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${e.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:e=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${e.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."},"bg-BG":{rangeOverflow:e=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${e.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:e=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${e.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xED b\xFDt ${e.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:e=>`Hodnota mus\xED b\xFDt ${e.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."},"da-DK":{rangeOverflow:e=>`V\xE6rdien skal v\xE6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:e=>`V\xE6rdien skal v\xE6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."},"el-GR":{rangeOverflow:e=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${e.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:e=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${e.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xE4\xE4rtus peab olema ${e.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:e=>`V\xE4\xE4rtus peab olema ${e.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xEAtre ${e.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xEAtre ${e.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."},"he-IL":{rangeOverflow:e=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${e.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:e=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${e.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xE9rt\xE9knek ${e.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:e=>`Az \xE9rt\xE9knek ${e.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u5024\u306F ${e.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:e=>`\u5024\u306F ${e.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"},"ko-KR":{rangeOverflow:e=>`\uAC12\uC740 ${e.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:e=>`\uAC12\uC740 ${e.minValue} \uC774\uD6C4\uC5EC\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},"lt-LT":{rangeOverflow:e=>`Reik\u0161m\u0117 turi b\u016Bti ${e.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:e=>`Reik\u0161m\u0117 turi b\u016Bti ${e.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${e.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:e=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${e.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xE5 v\xE6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xE5 v\xE6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${e.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:e=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${e.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u0103 fie ${e.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:e=>`Valoarea trebuie s\u0103 fie ${e.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."},"ru-RU":{rangeOverflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${e.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${e.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xED by\u0165 ${e.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:e=>`Hodnota mus\xED by\u0165 ${e.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xE4rdet m\xE5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:e=>`V\xE4rdet m\xE5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u011Fer, ${e.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:e=>`De\u011Fer, ${e.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."},"uk-UA":{rangeOverflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${e.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${e.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."},"zh-CN":{rangeOverflow:e=>`\u503C\u5FC5\u987B\u662F ${e.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:e=>`\u503C\u5FC5\u987B\u662F ${e.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"},"zh-TW":{rangeOverflow:e=>`\u503C\u5FC5\u9808\u662F ${e.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:e=>`\u503C\u5FC5\u9808\u662F ${e.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"}};var wa=new a(ea);function Ta(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return e}function ta(e,a$1,t,r,l){let n=e!=null&&t!=null&&e.compare(t)>0,u=e!=null&&a$1!=null&&e.compare(a$1)<0,s=e!=null&&r?.(e)||false,o=n||u||s,c=[];if(o){let m=Ta(),f=a.getGlobalDictionaryForPackage("@react-stately/datepicker")||wa,h=new b$3(m,f),D=new DateFormatter(m,q({},l)),y=D.resolvedOptions().timeZone;u&&a$1!=null&&c.push(h.format("rangeUnderflow",{minValue:D.format(a$1.toDate(y))})),n&&t!=null&&c.push(h.format("rangeOverflow",{maxValue:D.format(t.toDate(y))})),s&&c.push(h.format("unavailableDate"));}return {isInvalid:o,validationErrors:c,validationDetails:{badInput:s,customError:false,patternMismatch:false,rangeOverflow:n,rangeUnderflow:u,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:false,valid:!o}}}var xa={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Sa={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function q(e,a){e={...a.shouldForceLeadingZeros?Sa:xa,...e};let r=a.granularity||"minute",l=Object.keys(e),n=l.indexOf(a.maxGranularity??"year");n<0&&(n=0);let u=l.indexOf(r);if(u<0&&(u=2),n>u)throw new Error("maxGranularity must be greater than granularity");let s=l.slice(n,u+1).reduce((c,m)=>(c[m]=e[m],c),{});return a.hourCycle!=null&&(s.hour12=a.hourCycle===12),s.timeZone=a.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&a.timeZone&&!a.hideTimeZone&&(s.timeZoneName="short"),a.showEra&&n===0&&(s.era="short"),s}function ge(e,a){if(e===null)return null;if(e)return toCalendar(e,a)}function ra(e,a,t,r){if(e)return ge(e,t);let l=toCalendar(now(r??getLocalTimeZone()).set({hour:0,minute:0,second:0,millisecond:0}),t);return a==="year"||a==="month"||a==="day"?toCalendarDate(l):r?l:toCalendarDateTime(l)}function na(e,a){let t=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&a&&!(a in e))throw new Error("Invalid granularity "+a+" for value "+e.toString());let[l,n]=useState([r,t]);e&&(l[0]!==r||l[1]!==t)&&n([r,t]),a||(a=e?r:l[0]);let u=e?t:l[1];return [a,u]}var Fa=new a({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"\xE1\xE1\xE1\xE1",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function ia(e,a,t){return e==="era"||e==="dayPeriod"?a:e==="year"||e==="month"||e==="day"?Fa.getStringForLocale(e,t):"\u2013\u2013"}var C=class e{calendar;era;year;month;day;hour;hourCycle;dayPeriod;minute;second;millisecond;offset;constructor(a,t,r){if(this.era=r?.era??null,this.calendar=a,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,this.hour!=null){let[l,n]=H(this.hour,t);this.dayPeriod=l,this.hour=n;}}copy(){let a=new e(this.calendar,this.hourCycle);return a.era=this.era,a.year=this.year,a.month=this.month,a.day=this.day,a.hour=this.hour,a.dayPeriod=this.dayPeriod,a.minute=this.minute,a.second=this.second,a.millisecond=this.millisecond,a.offset=this.offset,a}isComplete(a){return a.every(t=>this[t]!=null)}validate(a,t){return t.every(r=>{if((r==="hour"||r==="dayPeriod")&&"hour"in a){let[l,n]=H(a.hour,this.hourCycle);return this.dayPeriod===l&&this.hour===n}return this[r]===a[r]})}isCleared(a){return a.every(t=>this[t]===null)}set(a,t,r){let l=this.copy();return l[a]=t,a==="hour"&&l.dayPeriod==null&&"hour"in r&&(l.dayPeriod=H(r.hour,this.hourCycle)[0]),a==="year"&&l.era==null&&(l.era=r.era),a!=="second"&&a!=="literal"&&a!=="timeZoneName"&&(l.offset=null),l}clear(a){let t=this.copy();return t[a]=null,a==="year"&&(t.era=null),t.offset=null,t}cycle(a,t,r,l){let n=this.copy();if(n[a]==null&&a!=="dayPeriod"&&a!=="era"){if(a==="hour"&&"hour"in r){let[u,s]=H(r.hour,this.hourCycle);n.dayPeriod=u,n.hour=s;}else n[a]=r[a];return a==="year"&&n.era==null&&(n.era=r.era),n}switch(a){case "era":{let u=this.calendar.getEras(),s=u.indexOf(n.era);s=Z(s,t,0,u.length-1),n.era=u[s];break}case "year":{let u=new CalendarDate(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);u=u.cycle(a,t,{round:a==="year"}),n.era=u.era,n.year=u.year;break}case "month":n.month=Z(n.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case "day":n.day=Z(n.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case "hour":{let u=l.some(s=>["year","month","day"].includes(s));if("timeZone"in r&&(!u||n.year!=null&&n.month!=null&&n.day!=null)){let s=this.toValue(r);s=s.cycle("hour",t,{hourCycle:this.hourCycle==="h12"?12:24,round:false});let[o,c]=H(s.hour,this.hourCycle);n.hour=c,n.dayPeriod=o,n.offset=s.offset;}else {let s=n.hour??0,o=this.getSegmentLimits("hour");n.hour=Z(s,t,o.minValue,o.maxValue),n.dayPeriod==null&&"hour"in r&&(n.dayPeriod=H(r.hour,this.hourCycle)[0]);}break}case "dayPeriod":n.dayPeriod=Z(n.dayPeriod??0,t,0,1);break;case "minute":n.minute=Z(n.minute??0,t,0,59,true);break;case "second":n.second=Z(n.second??0,t,0,59,true);break}return n}toValue(a){if("hour"in a){let t=this.hour;t!=null?t=Oa(t,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(t=this.dayPeriod===1?12:0);let r=a.set({era:this.era??a.era,year:this.year??a.year,month:this.month??a.month,day:this.day??a.day,hour:t??a.hour,minute:this.minute??a.minute,second:this.second??a.second,millisecond:this.millisecond??a.millisecond});return "offset"in r&&this.offset!=null&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}else return a.set({era:this.era??a.era,year:this.year??a.year,month:this.month??a.month,day:this.day??a.day})}getSegmentLimits(a){switch(a){case "era":{let t=this.calendar.getEras();return {value:this.era!=null?t.indexOf(this.era):t.length-1,minValue:0,maxValue:t.length-1}}case "year":return {value:this.year,minValue:1,maxValue:9999};case "month":return {value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case "day":return {value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case "dayPeriod":return {value:this.dayPeriod,minValue:0,maxValue:1};case "hour":{let t=0,r=23;return this.hourCycle==="h12"?(t=1,r=12):this.hourCycle==="h11"&&(t=0,r=11),{value:this.hour,minValue:t,maxValue:r}}case "minute":return {value:this.minute,minValue:0,maxValue:59};case "second":return {value:this.second,minValue:0,maxValue:59}}}};function Z(e,a,t,r,l=false){if(l){e+=Math.sign(a),e<t&&(e=r);let n=Math.abs(a);a>0?e=Math.ceil(e/n)*n:e=Math.floor(e/n)*n,e>r&&(e=t);}else e+=a,e<t?e=r-(t-e-1):e>r&&(e=t+(e-r-1));return e}function H(e,a){let t=e>=12?1:0;switch(a){case "h11":e>=12&&(e-=12);break;case "h12":e===0?e=12:e>12&&(e-=12);break;case "h23":t=null;break;case "h24":e+=1,t=null;}return [t,e]}function Oa(e,a,t){switch(t){case "h11":a===1&&(e+=12);break;case "h12":e===12&&(e=0),a===1&&(e+=12);break;case "h24":e-=1;break}return e}var Ve={year:true,month:true,day:true,hour:true,minute:true,second:true,dayPeriod:true,era:true},oa={year:5,month:2,day:7,hour:2,minute:15,second:15},Ma={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function mr(e){let{locale:a,createCalendar:t,hideTimeZone:r,isDisabled:l=false,isReadOnly:n=false,isRequired:u=false,minValue:s,maxValue:o,isDateUnavailable:c}=e,m=e.value||e.defaultValue||e.placeholderValue||null,[f,h]=na(m,e.granularity),D=h||"UTC";if(m&&!(f in m))throw new Error("Invalid granularity "+f+" for value "+m.toString());let[y,b]=useMemo(()=>{let p=new DateFormatter(a,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return [t(p.calendar),p.hourCycle]},[a,e.hourCycle,t]),[P,S]=a$7(e.value,e.defaultValue??null,e.onChange),[F]=useState(P),g=useMemo(()=>ge(P,y)??null,[P,y]),[v,w]=useState(()=>new C(y,b,g)),R=y.identifier==="gregory"&&v.era==="BC",T=useMemo(()=>({granularity:f,maxGranularity:e.maxGranularity??"year",timeZone:h,hideTimeZone:r,hourCycle:e.hourCycle,showEra:R,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,h,r,R]),L=useMemo(()=>q({},T),[T]),$=useMemo(()=>new DateFormatter(a,L),[a,L]),J=useMemo(()=>$.resolvedOptions(),[$]),O=useMemo(()=>ra(e.placeholderValue,f,y,h),[e.placeholderValue,f,y,h]),N=useMemo(()=>{let d=b==="h11"||b==="h12",p=["era","year","month","day","hour",...d?["dayPeriod"]:[],"minute","second"],E=p.indexOf(e.maxGranularity||"era"),se=p.indexOf(f==="hour"&&d?"dayPeriod":f);return p.slice(E,se+1)},[e.maxGranularity,f,b]),[Q,X]=useState(g),[ie,oe]=useState(y),[le,j]=useState(b);(g!==Q||b!==le||!isEqualCalendar(y,ie))&&(v=new C(y,b,g),X(g),oe(y),j(b),w(v));let I=d=>{if(!(e.isDisabled||e.isReadOnly))if(d==null||d instanceof C&&d.isCleared(N))w(new C(y,b,g)),S(null);else if(!(d instanceof C))d=toCalendar(d,m?.calendar||new GregorianCalendar),w(new C(y,b,g)),S(d);else {if(d.isComplete(N)){let p=d.toValue(g??O);if(d.validate(p,N)){let E=toCalendar(p,m?.calendar||new GregorianCalendar);if(!P||E.compare(P)!==0){w(new C(y,b,g)),S(E);return}}}w(d);}},U=useMemo(()=>v.toValue(g??O).toDate(D),[v,D,g,O]),B=useMemo(()=>Ea(U,v,$,J,y,a,f),[U,$,J,v,y,a,f]),i=(d,p)=>{I(v.cycle(d,p,O,N));},V=useMemo(()=>ta(P,s,o,c,T),[P,s,o,c,T]),k=d({...e,value:P,builtinValidation:V}),x=k.displayValidation.isInvalid,de=e.validationState||(x?"invalid":null);return {...k,value:g,defaultValue:e.defaultValue??F,dateValue:U,calendar:y,setValue:I,segments:B,dateFormatter:$,validationState:de,isInvalid:x,granularity:f,maxGranularity:e.maxGranularity??"year",isDisabled:l,isReadOnly:n,isRequired:u,increment(d){i(d,1);},decrement(d){i(d,-1);},incrementPage(d){i(d,oa[d]||1);},decrementPage(d){i(d,-(oa[d]||1));},incrementToMax(d){let p=d==="hour"&&b==="h12"?11:v.getSegmentLimits(d).maxValue;I(v.set(d,p,O));},decrementToMin(d){let p=d==="hour"&&b==="h12"?12:v.getSegmentLimits(d).minValue;I(v.set(d,p,O));},setSegment(d,p){I(v.set(d,p,O));},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&v.isComplete(N)){let d=v.toValue(g??O),p=toCalendar(d,m?.calendar||new GregorianCalendar);(!P||p.compare(P)!==0)&&S(p),w(new C(y,b,g));}},clearSegment(d){let p=v;d!=="timeZoneName"&&d!=="literal"&&(p=v.clear(d)),I(p);},formatValue(d){if(!g)return "";let p=q(d,T);return new DateFormatter(a,p).format(U)},getDateFormatter(d,p){let E={...T,...p},se=q({},E);return new DateFormatter(d,se)}}}function Ea(e,a,t,r,l,n,u){let s=["hour","minute","second"],o=t.formatToParts(e),c=new a$8(n,{useGrouping:false}),m=new a$8(n,{useGrouping:false,minimumIntegerDigits:2});for(let h of o)if(h.type==="year"||h.type==="month"||h.type==="day"||h.type==="hour"){let D=a[h.type]??0;r[h.type]==="2-digit"?h.value=m.format(D):h.value=c.format(D);}let f=[];for(let h of o){let D=Ma[h.type]||h.type,y=Ve[D];D==="era"&&l.getEras().length===1&&(y=false);let b=Ve[D]&&a[h.type]==null,P=Ve[D]?ia(D,h.value,n):null,S={type:D,text:b?P:h.value,...a.getSegmentLimits(D),isPlaceholder:b,placeholder:P,isEditable:y};D==="hour"?(f.push({type:"literal",text:"\u2066",isPlaceholder:false,placeholder:"",isEditable:false}),f.push(S),D===u&&f.push({type:"literal",text:"\u2069",isPlaceholder:false,placeholder:"",isEditable:false})):s.includes(D)&&D===u?(f.push(S),f.push({type:"literal",text:"\u2069",isPlaceholder:false,placeholder:"",isEditable:false})):f.push(S);}return f}var la=a$1({defaultClassName:"_1lrwegk0",variantClassNames:{isSeparator:{true:"_1yep5z611i"}},defaultVariants:{},compoundVariants:[]}),hr="_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6kz _1yep5z6l0 _1yep5z6l1";var ke="\u2013";function wr({segment:e,state:a}){let t=pa.useRef(null),{segmentProps:r}=he(e,a,t),{focusProps:l,isFocused:n}=a$9(),u=useMemo(()=>{let{text:s,type:o}=e;switch(o){case "hour":return s.replaceAll(ke,"H");case "minute":return s.replaceAll(ke,"M");case "second":return s.replaceAll(ke,"S");default:return s}},[e]);return jsx(a$a,{...c(r,l),typography:"label.md.medium",color:e.isPlaceholder?"text.placeholder":"text.primary",backgroundColor:n?"support.info.subtle":void 0,ref:t,marginLeft:e.type==="timeZoneName"?"xs":void 0,className:la({isSeparator:e.text===":"||e.text==="/"}),children:e.isPlaceholder?u:e.text})}export{Qe as a,ot as b,mr as c,hr as d,wr as e};
|
package/dist/chunk-EA6GA4WC.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-WAOWR7MR.mjs';import {a}from'./chunk-M5M3EPG5.mjs';import {d,c}from'./chunk-W6QO7FPZ.mjs';import {a as a$2}from'./chunk-545KDVGI.mjs';import {d as d$2}from'./chunk-BGMVPFYK.mjs';import {d as d$1}from'./chunk-AQYBKDT2.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$1}from'./chunk-KEVERVHK.mjs';import {g}from'./chunk-AUOQSTS5.mjs';import {useState}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 pe(r,i,t){let{isDisabled:a$4=false,isReadOnly:l=false,value:u,name:R,form:V,children:k,isRequired:b,validationBehavior:P="aria","aria-label":C,"aria-labelledby":x,"aria-describedby":F,onPressStart:c$2,onPressEnd:m,onPressChange:n,onPress:f,onPressUp:g$1,onClick:v}=r,s=d({...r,value:i.isSelected}),{isInvalid:T,validationErrors:j,validationDetails:q}=s.displayValidation;a(r,s,t);let W=e=>{e.stopPropagation(),i.setSelected(g(e).checked);},B=k!=null,N=C!=null||x!=null;!B&&!N&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:U,isPressed:w}=d$1({onPressStart:c$2,onPressEnd:m,onPressChange:n,onPress:f,onPressUp:g$1,onClick:v,isDisabled:a$4}),[_,y]=useState(false),{pressProps:z}=d$1({onPressStart(e){if(e.pointerType==="keyboard"||e.pointerType==="virtual"){e.continuePropagation();return}c$2?.(e),n?.(true),y(true);},onPressEnd(e){if(e.pointerType==="keyboard"||e.pointerType==="virtual"){e.continuePropagation();return}m?.(e),n?.(false),y(false);},onPressUp(e){if(e.pointerType==="keyboard"||e.pointerType==="virtual"){e.continuePropagation();return}g$1?.(e);},onClick:v,onPress(e){if(e.pointerType==="keyboard"||e.pointerType==="virtual"){e.continuePropagation();return}f?.(e),i.toggle(),t.current?.focus();let{[c]:S}=r,{commitValidation:Q}=S||s;Q();},isDisabled:a$4||l}),{focusableProps:G}=d$2(r,t),J=c$1(U,G),K=a$1(r,{labelable:true});a$2(t,i.defaultSelected,i.setSelected);let L=a$3(),M=a$3();return {labelProps:c$1(z,{onClick:e=>e.preventDefault()}),inputProps:c$1(K,{checked:i.isSelected,"aria-required":b&&P==="aria"||void 0,required:b&&P==="native","aria-invalid":T||r.validationState==="invalid"||void 0,"aria-errormessage":r["aria-errormessage"],"aria-controls":r["aria-controls"],"aria-readonly":l||void 0,"aria-describedby":[L.id,M.id,F].filter(Boolean).join(" ")||void 0,onChange:W,disabled:a$4,...u==null?{}:{value:u},name:R,form:V,type:"checkbox",...J}),descriptionProps:L,errorMessageProps:M,isSelected:i.isSelected,isPressed:w||_,isDisabled:a$4,isReadOnly:l,isInvalid:T||r.validationState==="invalid",validationErrors:j,validationDetails:q}}export{pe as a};
|
package/dist/chunk-EGXILQNX.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$b}from'./chunk-5HXTXIE5.mjs';import {a as a$3}from'./chunk-TTYRHIRQ.mjs';import {d,a as a$a,c as c$2,b as b$3}from'./chunk-5MUEJ5WI.mjs';import {a as a$9}from'./chunk-RO5ZRU3Y.mjs';import {a as a$6}from'./chunk-E5GYCA3P.mjs';import {a}from'./chunk-CGFLGZL4.mjs';import {b,c as c$3}from'./chunk-GX2IOGYR.mjs';import {b as b$2}from'./chunk-AYBACQ6U.mjs';import {a as a$7}from'./chunk-2V323KAD.mjs';import {b as b$1}from'./chunk-4ZJMZB5B.mjs';import {a as a$5}from'./chunk-2VY4FAOY.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {a as a$4}from'./chunk-BGMVPFYK.mjs';import {a as a$2}from'./chunk-3FYY26ED.mjs';import {c as c$1,b as b$4}from'./chunk-TZ4MVY4E.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import {UndoIcon,RedoIcon}from'@baseline-ui/icons/16';import {getStroke}from'perfect-freehand';import h,{useState,useCallback,useEffect,useMemo,useRef}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function de({line:t,options:o}){let r=useRef([]),m=useMemo(()=>{let i=Math.ceil(t.length/P),d;for(let a=0;a<i;a++)if(!(!(a===i-1)&&!!r.current[a])){let C=t.slice(a*P-(a>0?1:0),a*P+P);d=a$b(getStroke(C.map(([k,g,l])=>({x:k,y:g,pressure:l})),o)),C.length>=(a>0?P+1:P)&&(r.current[a]=d);}return d},[t,o]);return [...r.current,m]}var P=180;var Xe={size:1,thinning:0,smoothing:0,streamline:0,easing:t=>t,start:{taper:0,easing:t=>t,cap:true},end:{taper:0,easing:t=>t,cap:true},simulatePressure:false},ce=h.forwardRef(({className:t,style:o,canvasClassName:r,canvasStyle:m,isBound:i=true,strokeWidth:d$1=2,strokeColor:a$b="#3A87FD",onChange:v,defaultValue:H,onChangeEnd:C,enableHistory:k=false,isInline:g=true,isDisabled:l,placeholder:E,clearLabel:R,undoLabel:he,redoLabel:ve,footerClassName:ge,canvasRef:Pe,value:N,footerStyle:Ce,"data-block-id":ke,"data-block-class":ye,"aria-label":Se="Drawing canvas",description:be="This is a canvas for drawing using a mouse or touch input.",...f},Fe)=>{let T=b(),De=h.useRef(null),[u,S]=h.useState(N||H||[]),U=h.useMemo(()=>({...Xe,...f}),[f]),[c$3,z]=h.useState(),V=c(),{labelProps:Ee,fieldProps:Re}=a({...f,"aria-label":Se,labelElementType:"span"}),{isFocusVisible:Me,focusProps:we}=a$1({within:true}),{hoverProps:Le,isHovered:Oe}=a$2({isDisabled:l}),{undo:I,redo:x,canRedo:K,canUndo:G,push:W}=a$3(u,{onAction:e=>{e&&(S(e),C?.(e));},isDisabled:!k}),{keyboardProps:He}=a$4({onKeyDown:e=>{e.key==="Backspace"?A():e.key==="z"&&(e.metaKey||e.ctrlKey)&&(e.shiftKey?K&&x():G&&I());}}),[Ne,_]=useState(false),Te=useCallback(e=>{let p=e.currentTarget.getBoundingClientRect();z(p),e.target.setPointerCapture(e.pointerId);let y=[e.clientX-p.x,e.clientY-p.y,e.pressure];S(s=>[...s,[y]]),_(true);},[]),Ue=useCallback(e=>{if(e.buttons!==1||!c$3)return;let y=ue(e.nativeEvent).map(s=>[i?a$5(s.clientX-c$3.left,0,c$3.width):s.clientX-c$3.left,i?a$5(s.clientY-c$3.top,0,c$3.height):s.clientY-c$3.top,s.pressure]);S(s=>{let M=[...s];return M[s.length-1]=[...M[s.length-1],...y],M});},[c$3,i]),ze=()=>{c$3&&(C?.(u),W(u),_(false),z(void 0));};useEffect(()=>{v?.(u);},[u,v]);let A=()=>{S([]),v?.([]),W([]);};return jsxs("div",{ref:b$4(De,Fe),className:a$8(b$3,"BaselineUI-FreehandCanvas",t),style:o,"aria-disabled":l,"data-block-id":ke,"data-block-class":ye,children:[f.label||k?jsxs("div",{className:d({isInline:g}),children:[f.label?jsx(a$6,{type:"label",size:"sm",...Ee,children:f.label}):jsx("span",{}),k?jsxs("div",{children:[jsx(a$7,{variant:"secondary",size:"sm",isDisabled:!G||l,icon:UndoIcon,onPress:I,"aria-label":he||T.formatMessage(me.undo)}),jsx(a$7,{variant:"secondary",size:"sm",isDisabled:!K||l,icon:RedoIcon,onPress:x,"aria-label":ve||T.formatMessage(me.redo)})]}):null]}):null,jsxs("div",{role:"application",...c$1(we,He,Le,Re),tabIndex:l?void 0:0,className:a$8(a$9({isInline:g,isHovered:Oe}),a$a({isFocusVisible:Me,isInline:g,isDisabled:!!l}),r),"aria-describedby":f["aria-describedby"]||V,style:m,ref:Pe,children:[jsx(b$1,{children:jsx("div",{id:V,children:be})}),jsx("svg",{width:m?.width||"100%",height:m?.height||"100%",onPointerDown:Te,onPointerMove:Ue,onPointerUp:ze,children:(N||u).map((e,p,y)=>p<y.length-1||!Ne?jsx(pe,{line:e,options:U,strokeColor:a$b,strokeWidth:d$1},p):jsx(fe,{line:e,options:U,strokeColor:a$b,strokeWidth:d$1},p))})]}),E||R?jsx("div",{style:Ce,className:a$8(c$2({isInline:g,isDisabled:l}),ge),children:(u.length||!E)&&R?jsx(b$2,{size:"sm",variant:"ghost",label:R,isDisabled:l,onPress:A}):jsx(b$2,{size:"sm",variant:"ghost",label:E,isDisabled:true})}):null]})});ce.displayName="FreehandCanvas";var pe=h.memo(({line:t,options:o,strokeColor:r,strokeWidth:m})=>{let i=useMemo(()=>a$b(getStroke(t.map(([d,a,v])=>({x:d,y:a,pressure:v})),o)),[t,o]);return jsx("path",{d:i,stroke:r,strokeWidth:m})});pe.displayName="Stroke";var fe=h.memo(({line:t,options:o,strokeColor:r,strokeWidth:m})=>{let i=de({line:t,options:o});return jsx(Fragment,{children:i.map((d,a)=>jsx("path",{d,stroke:r,strokeWidth:m},a))})});fe.displayName="SplitStroke";function ue(t){if(typeof t.getCoalescedEvents=="function"){let o=t.getCoalescedEvents();return o.length>0?o.flatMap(r=>ue(r)):[t]}return [t]}var me=c$3({undo:{defaultMessage:"Undo",id:"bui.freehandCanvas.undo"},redo:{defaultMessage:"Redo",id:"bui.freehandCanvas.redo"}});export{ce as a};
|
package/dist/chunk-EX2LI2CV.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-SAZLJ66W.mjs';import {a as a$4}from'./chunk-M5M3EPG5.mjs';import {d as d$1}from'./chunk-W6QO7FPZ.mjs';import {a}from'./chunk-X3AXUU3H.mjs';import {a as a$3}from'./chunk-545KDVGI.mjs';import {d}from'./chunk-BGMVPFYK.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$2}from'./chunk-KEVERVHK.mjs';import {g}from'./chunk-AUOQSTS5.mjs';import V,{useState}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 Q(e,t){let{inputElementType:P="input",isDisabled:M=false,isRequired:a$5=false,isReadOnly:F=false,type:y="text",validationBehavior:r="aria"}=e,[i,l]=a(e.value,e.defaultValue||"",e.onChange),{focusableProps:I}=d(e,t),o=d$1({...e,value:i}),{isInvalid:n,validationErrors:s,validationDetails:L}=o.displayValidation,{labelProps:E,fieldProps:g$1,descriptionProps:H,errorMessageProps:A}=a$1({...e,isInvalid:n,errorMessage:e.errorMessage||s,ref:t}),C=a$2(e,{labelable:true}),h={type:y,pattern:e.pattern},[v]=useState(i);return a$3(t,e.defaultValue??v,l),a$4(e,o,t),{labelProps:E,inputProps:c(C,P==="input"?h:void 0,{disabled:M,readOnly:F,required:a$5&&r==="native","aria-required":a$5&&r==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:O=>l(g(O).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(V.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...I,...g$1}),descriptionProps:H,errorMessageProps:A,isInvalid:n,validationErrors:s,validationDetails:L}}export{Q as a};
|
package/dist/chunk-EYKIXVM3.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$b}from'./chunk-AMYRLAIC.mjs';import {j,c,i,l,p,r,s,m,w,u,v,k,f as f$2,e as e$1,x,d,q,a as a$i}from'./chunk-SMAYNDQQ.mjs';import {a as a$f}from'./chunk-AMW7LGCF.mjs';import {b as b$1,c as c$5}from'./chunk-VIVNQZYK.mjs';import {c as c$7}from'./chunk-BROSGYL3.mjs';import {c as c$2,f as f$1,e as e$2,d as d$2}from'./chunk-7P322KP4.mjs';import {a as a$g}from'./chunk-DDLZ6CKC.mjs';import {a as a$l}from'./chunk-V37GPPZD.mjs';import {b as b$3}from'./chunk-NUYBQ7KP.mjs';import {d as d$3}from'./chunk-UBFMOTBM.mjs';import {b,c as c$1}from'./chunk-PAQQ7MQG.mjs';import {a as a$c,f as f$3}from'./chunk-DECHIERQ.mjs';import {f as f$4}from'./chunk-AKES5B6C.mjs';import {a as a$8,b as b$6}from'./chunk-AC7OXVHA.mjs';import {a as a$d}from'./chunk-O7XK2WIX.mjs';import {b as b$9}from'./chunk-WWSGOGLA.mjs';import {a as a$3}from'./chunk-KUEDQO7P.mjs';import {a}from'./chunk-USMC34OO.mjs';import {b as b$8}from'./chunk-WL27JGVG.mjs';import {a as a$q}from'./chunk-BU5H25MV.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {c as c$8}from'./chunk-RCBUNCHV.mjs';import {a as a$p}from'./chunk-UUBOEBYZ.mjs';import {e,h,c as c$3,b as b$4,f,a as a$9,d as d$1}from'./chunk-B7PSE5KC.mjs';import {a as a$m}from'./chunk-4PYEGHW5.mjs';import {a as a$h}from'./chunk-66CUIXA6.mjs';import {h as h$1,i as i$1,e as e$5}from'./chunk-SHJ2TJYG.mjs';import {a as a$k}from'./chunk-RXSYDMT6.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {a as a$6,d as d$6}from'./chunk-BGMVPFYK.mjs';import {a as a$7}from'./chunk-YB3KW7JC.mjs';import {b as b$5,d as d$5,f as f$6}from'./chunk-Y4DRSGEJ.mjs';import {a as a$5}from'./chunk-3FYY26ED.mjs';import {d as d$4}from'./chunk-AQYBKDT2.mjs';import {a as a$4}from'./chunk-RT4LMB6X.mjs';import {n,q as q$1,a as a$n,t,r as r$1}from'./chunk-MRJFGHFW.mjs';import {c as c$4}from'./chunk-TZ4MVY4E.mjs';import {a as a$2}from'./chunk-KEVERVHK.mjs';import {c as c$6,a as a$j,e as e$4}from'./chunk-JDLUGVXG.mjs';import {e as e$3,g,i as i$2,f as f$5,b as b$7,a as a$o}from'./chunk-AUOQSTS5.mjs';import {a as a$a}from'./chunk-JQQGRJ5J.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import be,{createContext,forwardRef,useContext,useMemo,useRef,useEffect,useCallback,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightFilledIcon}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/24';/**
|
|
2
|
-
* 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 ge=createContext({}),ze=j(c,function(e$1,t){return [e$1,t]=e(e$1,t,ge),jsx(h.header,{className:"react-aria-Header",...e$1,ref:t,children:e$1.children})});var _e=createContext({});var lt=createContext(null),le=createContext(null),st=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,lt);let o=useContext(le);return o?jsx(Lr,{state:o,props:e$1,listBoxRef:t}):jsx(i,{content:jsx(l,{...e$1}),children:n=>jsx(uo,{props:e$1,listBoxRef:t,collection:n})})});function uo({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:o}=useContext(p),n=b({...r,layoutDelegate:o});return jsx(Lr,{state:n,props:r,listBoxRef:e})}function Lr({state:r$1,props:e$1,listBoxRef:t}){[e$1,t]=e(e$1,t,b$1);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:l}=e$1,s$1=c$1(r$1,l),{collection:p$1,selectionManager:m$1}=s$1,u$1=!!o?.useDraggableCollectionState,c=!!o?.useDroppableCollectionState,{direction:f}=b$2(),{disabledBehavior:a$4,disabledKeys:x}=m$1,g=a({usage:"search",sensitivity:"base"}),{isVirtualized:R,layoutDelegate:M,dropTargetDelegate:D,CollectionRoot:v$1}=useContext(p),L=useMemo(()=>e$1.keyboardDelegate||new b$3({collection:p$1,collator:g,ref:t,disabledKeys:x,disabledBehavior:a$4,layout:n,orientation:i,direction:f,layoutDelegate:M}),[p$1,g,t,a$4,x,i,f,e$1.keyboardDelegate,n,M]),{listBoxProps:O}=c$2({...e$1,shouldSelectOnPressUp:u$1||e$1.shouldSelectOnPressUp,keyboardDelegate:L,isVirtualized:R},s$1,t),k=useRef(u$1),d=useRef(c);useEffect(()=>{process.env.NODE_ENV!=="production"&&(k.current!==u$1&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),d.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[u$1,c]);let S,E,w$1,y=false,b=null,h$1=useRef(null);if(u$1&&o){S=o.useDraggableCollectionState({collection:p$1,selectionManager:m$1,preview:o.renderDragPreview?h$1:void 0}),o.useDraggableCollection({},S,t);let Y=o.DragPreview;b=o.renderDragPreview?jsx(Y,{ref:h$1,children:o.renderDragPreview}):null;}if(c&&o){E=o.useDroppableCollectionState({collection:p$1,selectionManager:m$1});let Y=o.dropTargetDelegate||D||new o.ListDropTargetDelegate(p$1,t,{orientation:i,layout:n,direction:f});w$1=o.useDroppableCollection({keyboardDelegate:L,dropTargetDelegate:Y},E,t),y=E.isDropTarget({type:"root"});}let{focusProps:z,isFocused:j,isFocusVisible:_}=a$1(),H=s$1.collection.size===0,W={isDropTarget:y,isEmpty:H,isFocused:j,isFocusVisible:_,layout:e$1.layout||"stack",orientation:i,state:s$1},se=c$3({...e$1,children:void 0,defaultClassName:"react-aria-ListBox",values:W}),te=null;H&&e$1.renderEmptyState&&(te=jsx("div",{role:"option",style:{display:"contents"},children:e$1.renderEmptyState(W)}));let J=a$2(e$1,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(J,se,O,z,w$1?.collectionProps),ref:t,slot:e$1.slot||void 0,onScroll:e$1.onScroll,"data-drop-target":y||void 0,"data-empty":H||void 0,"data-focused":j||void 0,"data-focus-visible":_||void 0,"data-layout":e$1.layout||"stack","data-orientation":i,children:[jsx(b$4,{values:[[lt,e$1],[le,s$1],[r,{dragAndDropHooks:o,dragState:S,dropState:E}],[_e,{elementType:"div"}],[s,{render:co}],[m,{name:"ListBoxSection",render:Er}]],children:jsx(w,{children:jsx(v$1,{collection:p$1,scrollRef:t,persistedKeys:v(m$1,o,E),renderDropIndicator:u(o,E)})})}),te,b]})})}function Er(r$1,e,t,o="react-aria-ListBoxSection"){let n=useContext(le),{dragAndDropHooks:i,dropState:l}=useContext(r),{CollectionBranch:s}=useContext(p),[p$1,m]=f(),{headingProps:u$1,groupProps:c}=f$1({heading:m,"aria-label":r$1["aria-label"]??void 0}),f$2=c$3({...r$1,id:void 0,children:void 0,defaultClassName:o,values:void 0}),a=a$2(r$1,{global:true});return delete a.id,jsx(h.section,{...c$4(a,f$2,c),ref:e,children:jsx(ge.Provider,{value:{...u$1,ref:p$1},children:jsx(s,{collection:n.collection,parent:t,renderDropIndicator:u(i,l)})})})}var at=k(f$2,Er),ut=j(e$1,function(e,t,o){let n=a$4(t),i=useContext(le),{dragAndDropHooks:l,dragState:s,dropState:p}=useContext(r),m=s&&!(s.isDisabled||s.selectionManager.isDisabled(o.key)),{optionProps:u,labelProps:c,descriptionProps:f,...a}=e$2({key:o.key,"aria-label":e?.["aria-label"]},i,n),{hoverProps:x$1,isHovered:g}=a$5({isDisabled:!a.allowsSelection&&!a.hasAction&&!m,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:R}=a$6(e),{focusProps:M}=a$7(e),D=null;s&&l&&(D=l.useDraggableItem({key:o.key,hasAction:a.hasAction},s,n));let v=null;p&&l&&(v=l.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},p,n));let L=s&&s.isDragging(o.key),O=c$3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...a,isHovered:g,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:L,isDropTarget:v?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let k=e.href?h.a:h.div,d=a$2(e,{global:true});return delete d.id,delete d.onClick,e.href&&u.tabIndex==null&&(u.tabIndex=-1),jsx(k,{...c$4(d,O,u,x$1,R,M,D?.dragProps,v?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":a.isSelected||void 0,"data-disabled":a.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":a.isFocusVisible||void 0,"data-pressed":a.isPressed||void 0,"data-dragging":L||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:c,label:c,description:f}}],[x,{isSelected:a.isSelected}]],children:O.children})})});function co(r$1,e){e=a$4(e);let{dragAndDropHooks:t,dropState:o}=useContext(r),{dropIndicatorProps:n,isHidden:i,isDropTarget:l}=t.useDropIndicator(r$1,o,e);return i?null:jsx(mo,{...r$1,dropIndicatorProps:n,isDropTarget:l,ref:e})}function po(r,e){let{dropIndicatorProps:t,isDropTarget:o,...n}=r,i=c$3({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(h.div,{...t,...i,role:"option",ref:e,"data-drop-target":o||void 0})})}var mo=forwardRef(po);j(d,function(e,t,o){let n=useContext(le),{isLoading:i,onLoadMore:l,scrollOffset:s,...p}=e,m=useRef(null),u=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:m,scrollOffset:s}),[l,s,n?.collection]);h$1(u,m);let c=c$3({...p,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),f={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:i$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:m,style:{position:"absolute",height:1,width:1}})}),i&&c.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),f),...c,role:"option",ref:t,children:c.children})})]})});var Ve=({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s}={})=>Object.values({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s});var gi=a$a({defaultClassName:"_1fjxa6ld _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"},orientation:{vertical:"_1yep5z618m",horizontal:"_1yep5z618n"}},defaultVariants:{},compoundVariants:[]}),Ar="_1fjxa6la _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Ir=a$a({defaultClassName:"_1fjxa6lb _1yep5z6ez _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6f2"}},defaultVariants:{},compoundVariants:[]}),kr=a$a({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6ey _1yep5z6lq _1yep5z6lt _1yep5z6m6 _1yep5z6m5 _1yep5z6m3 _1yep5z6m0",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t _1yep5z615c _1yep5z615d _1yep5z615e"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z612t",false:"_1yep5z612s"},isDisabled:{true:"z9nup82 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),wr="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",Fr="_1fjxa6l1",Br="_1fjxa6l2",Hr="_1fjxa6l0";var Nr={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};function dt(r,e,t){let{type:o="menu",isDisabled:n,trigger:i="press"}=r,l=c$6(),{triggerProps:s,overlayProps:p}=a$p({type:o},e,t),m=a=>{if(!n&&!(i==="longPress"&&!a.altKey)&&t&&t.current)switch(a.key){case "Enter":case " ":if(i==="longPress"||a.isDefaultPrevented())return;case "ArrowDown":"continuePropagation"in a||a.stopPropagation(),a.preventDefault(),e.toggle("first");break;case "ArrowUp":"continuePropagation"in a||a.stopPropagation(),a.preventDefault(),e.toggle("last");break;default:"continuePropagation"in a&&a.continuePropagation();}},u=b$8(Nr,"@react-aria/menu"),{longPressProps:c}=a$q({isDisabled:n||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){e.close();},onLongPress(){e.open("first");}}),f={preventFocusOnPress:true,onPressStart(a){a.pointerType!=="touch"&&a.pointerType!=="keyboard"&&!n&&(a$n(a.target),e.open(a.pointerType==="virtual"?"first":null));},onPress(a){a.pointerType==="touch"&&!n&&(a$n(a.target),e.toggle());}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?f:c,id:l,onKeyDown:m},menuProps:{...p,"aria-labelledby":l,autoFocus:e.focusStrategy||true,onClose:e.close}}}var je=new WeakMap;function ct(r,e,t){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...l}=r;!r["aria-label"]&&!r["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=a$2(r,{labelable:true}),{listProps:p}=a$l({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return je.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:c$4(s,{onKeyDown:n,onKeyUp:i},{role:"menu",...p,onKeyDown:m=>{(m.key!=="Escape"||r.shouldUseVirtualFocus)&&p.onKeyDown?.(m);}})}}function pt(r,e,t){let{id:o,key:n$1,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s,"aria-haspopup":p,onPressStart:m,onPressUp:u,onPress:c,onPressChange:f,onPressEnd:a,onClick:x,onHoverStart:g$1,onHoverChange:R,onHoverEnd:M,onKeyDown:D,onKeyUp:v,onFocus:L,onFocusChange:O,onBlur:k,selectionManager:d=e.selectionManager}=r,S=!!p,E=S&&r["aria-expanded"]==="true",w=r.isDisabled??d.isDisabled(n$1),y=r.isSelected??d.isSelected(n$1),b=je.get(e),h=e.collection.getItem(n$1),z=r.onClose||b.onClose,j=n(),_=()=>{if(!S&&(h?.props?.onAction?h.props.onAction():r.onAction&&r.onAction(n$1),b.onAction)){let P=b.onAction;P(n$1,h?.value);}},H="menuitem";S||(d.selectionMode==="single"?H="menuitemradio":d.selectionMode==="multiple"&&(H="menuitemcheckbox"));let W=e$4(),se=e$4(),te=e$4(),J={id:o,"aria-disabled":w||void 0,role:H,"aria-label":r["aria-label"],"aria-labelledby":W,"aria-describedby":[r["aria-describedby"],se,te].filter(Boolean).join(" ")||void 0,"aria-controls":r["aria-controls"],"aria-haspopup":p,"aria-expanded":r["aria-expanded"]};if(d.selectionMode!=="none"&&!S&&(J["aria-checked"]=y),s){let P=Number(h?.index);J["aria-posinset"]=Number.isNaN(P)?void 0:P+1,J["aria-setsize"]=d$2(e.collection);}let Y=useRef(false),he=P=>{f?.(P),Y.current=P;},Z=useRef(null),T=P=>{P.pointerType!=="keyboard"&&(Z.current={pointerType:P.pointerType}),P.pointerType==="mouse"&&(Y.current||P.target.click()),u?.(P);},ue=P=>{x?.(P),_(),r$1(P,j,h.props.href,h?.props.routerOptions);let Je=Z.current?.pointerType==="keyboard"?Z.current?.key==="Enter"||d.selectionMode==="none"||d.isLink(n$1):d.selectionMode!=="multiple"||d.isLink(n$1);Je=l??i??Je,z&&!S&&Je&&z(),Z.current=null;},{itemProps:re,isFocused:At}=d$3({id:o,selectionManager:d,key:n$1,ref:t,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:b.shouldUseVirtualFocus}),{pressProps:eo,isPressed:to}=d$4({onPressStart:m,onPress:c,onPressUp:T,onPressChange:he,onPressEnd:a,isDisabled:w}),{hoverProps:ro}=a$5({isDisabled:w,onHoverStart(P){!b$5()&&!(E&&p)&&(d.setFocused(true),d.setFocusedKey(n$1)),g$1?.(P);},onHoverChange:R,onHoverEnd:M}),{keyboardProps:oo}=a$6({onKeyDown:P=>{if(P.repeat){P.continuePropagation();return}switch(P.key){case " ":Z.current={pointerType:"keyboard",key:" "},g(P).click(),d$5("keyboard");break;case "Enter":Z.current={pointerType:"keyboard",key:"Enter"},g(P).tagName!=="A"&&g(P).click(),d$5("keyboard");break;default:S||P.continuePropagation(),D?.(P);break}},onKeyUp:v}),{focusableProps:no}=d$6({onBlur:k,onFocus:L,onFocusChange:O},t),It=a$2(h?.props);delete It.id;let io=q$1(h?.props);return {menuItemProps:{...J,...c$4(It,io,S?{onFocus:re.onFocus,"data-collection":re["data-collection"],"data-key":re["data-key"]}:re,eo,ro,oo,no,b.shouldUseVirtualFocus||S?{onMouseDown:P=>P.preventDefault()}:void 0,w?void 0:{onClick:ue}),tabIndex:re.tabIndex!=null&&E&&!b.shouldUseVirtualFocus?-1:re.tabIndex},labelProps:{id:W},descriptionProps:{id:se},keyboardShortcutProps:{id:te},isFocused:At,isFocusVisible:At&&d.isFocused&&b$5()&&!E,isSelected:y,isPressed:to,isDisabled:w}}function mt(r){let{heading:e,"aria-label":t}=r,o=e$4([!!e]);return {itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?o:void 0}}}var Ue=2,Po=50,bo=1e3,_r=Math.PI/12;function Kr(r){let{menuRef:e,submenuRef:t$1,isOpen:o,isDisabled:n}=r,i=useRef(void 0),l=useRef(void 0),s=useRef(0),p=useRef(void 0),m=useRef(void 0),u=useRef(void 0),c=useRef(2),[f,a]=useState(false);e$5({ref:o?t$1:void 0,onResize:()=>{t$1.current&&(l.current=t$1.current.getBoundingClientRect(),u.current=void 0);}});let g=()=>{a(false),c.current=Ue,i.current=void 0;},R=f$6(),M=t(D=>{f&&D.preventDefault();});useEffect(()=>{f&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents="";},[e,f]),a$j(()=>{let D=t$1.current,v=e.current;if(n||!D||!o||R!=="pointer"||!v){g();return}l.current=D.getBoundingClientRect();let L=k=>{if(k.pointerType==="touch"||k.pointerType==="pen")return;let d=Date.now();if(d-s.current<Po)return;clearTimeout(p.current),clearTimeout(m.current);let{clientX:S,clientY:E}=k;if(!i.current){i.current={x:S,y:E};return}if(!l.current)return;if(u.current||(u.current=S>l.current.right?"left":"right"),S<v.getBoundingClientRect().left||S>v.getBoundingClientRect().right||E<v.getBoundingClientRect().top||E>v.getBoundingClientRect().bottom){g();return}let w=i.current.x,y=i.current.y,b=u.current==="right"?l.current.left-w:w-l.current.right,h=Math.atan2(y-l.current.top,b)+_r,z=Math.atan2(y-l.current.bottom,b)-_r,j=Math.atan2(y-E,u.current==="left"?-(S-w):S-w),_=j<h&&j>z;c.current=_?Math.min(c.current+1,Ue):Math.max(c.current-1,0),c.current>=Ue?a(true):a(false),s.current=d,i.current={x:S,y:E},_&&(p.current=setTimeout(()=>{g(),m.current=setTimeout(()=>{let H=a$o(v).elementFromPoint(S,E);H&&e$3(v,H)&&H.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},bo));},O=b$7(v);return O.addEventListener("pointermove",L),process.env.NODE_ENV!=="test"&&O.addEventListener("pointerdown",M,true),()=>{O.removeEventListener("pointermove",L),process.env.NODE_ENV!=="test"&&O.removeEventListener("pointerdown",M,true),clearTimeout(p.current),clearTimeout(m.current),c.current=Ue;}},[n,o,e,R,a,t$1]);}function gt(r,e,t){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:p}=r,m=c$6(),u=c$6(),{direction:c}=b$2(),f=useRef(void 0),a=useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0);},[f]),x=useCallback(d=>{a(),e.open(d);},[e,a]),g$1=useCallback(()=>{a(),e.close();},[e,a]);a$j(()=>()=>{a();},[a]);let R=d=>{if(i$2(d.currentTarget))switch(d.key){case "ArrowLeft":c==="ltr"&&e$3(d.currentTarget,g(d))&&(d.preventDefault(),d.stopPropagation(),g$1(),!p&&t.current&&a$n(t.current));break;case "ArrowRight":c==="rtl"&&e$3(d.currentTarget,g(d))&&(d.preventDefault(),d.stopPropagation(),g$1(),!p&&t.current&&a$n(t.current));break;case "Escape":e$3(n.current,g(d))&&(d.stopPropagation(),g$1(),!p&&t.current&&a$n(t.current));break}},M={id:u,"aria-labelledby":m,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,onKeyDown:R}},D=d=>{switch(d.key){case "ArrowRight":l||(c==="ltr"?(d.preventDefault(),e.isOpen||x("first"),i==="menu"&&n?.current&&f$5()===t?.current&&a$n(n.current)):e.isOpen?g$1():d.continuePropagation());break;case "ArrowLeft":l||(c==="rtl"?(d.preventDefault(),e.isOpen||x("first"),i==="menu"&&n?.current&&f$5()===t?.current&&a$n(n.current)):e.isOpen?g$1():d.continuePropagation());break;default:d.continuePropagation();break}},v=d=>{!l&&(d.pointerType==="virtual"||d.pointerType==="keyboard")&&x("first");},L=d=>{!l&&(d.pointerType==="touch"||d.pointerType==="mouse")&&x();},O=d=>{l||(d&&!e.isOpen?f.current||(f.current=setTimeout(()=>{x();},s)):d||a());};a$k(o,"focusin",d=>{e.isOpen&&e$3(o.current,g(d))&&g(d)!==t.current&&g$1();});let k=d=>d!==t.current;return Kr({menuRef:o,submenuRef:n,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{id:m,"aria-controls":e.isOpen?u:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:v,onPress:L,onHoverChange:O,onKeyDown:D,isOpen:e.isOpen},submenuProps:M,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:k}}}function We(r){let e=a$m(r),[t,o]=useState(null),[n,i]=useState([]),l=()=>{i([]),e.close();};return {focusStrategy:t,...e,open(m=null){o(m),e.open();},toggle(m=null){o(m),e.toggle();},close(){l();},expandedKeysStack:n,openSubmenu:(m,u)=>{i(c=>u>c.length?c:[...c.slice(0,u),m]);},closeSubmenu:(m,u)=>{i(c=>c[u]===m?c.slice(0,u):c);}}}function Pt(r,e){let{triggerKey:t}=r,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:l}=e,[s]=useState(o?.length),p=useMemo(()=>o[s]===t,[o,t,s]),[m,u]=useState(null),c=useCallback(x=>{u(x??null),n(t,s);},[n,s,t]),f=useCallback(()=>{u(null),i(t,s);},[i,s,t]),a=useCallback(x=>{u(x??null),p?f():c(x);},[f,c,p]);return useMemo(()=>({focusStrategy:m,isOpen:p,open:c,close:f,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:a}),[p,c,f,l,m,a,s])}var bt=createContext({});forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,bt),jsx(h.kbd,{dir:"ltr",...e$1,ref:t})});var Do=createContext({}),Xl=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,Do);let{children:o,level:n=3,className:i,...l}=e$1,s=h[`h${n}`];return jsx(s,{...l,ref:t,className:i??"react-aria-Heading",children:o})});var xt=createContext(null);createContext(null);createContext(null);var vt=createContext(null);var Xe=createContext(null),De=createContext(null),Ce=createContext(null),Ge=createContext(null);function Eo(r){let e=We(r),t=useRef(null),{menuTriggerProps:o,menuProps:n}=dt({...r,type:"menu"},e,t),i=useRef(null);return c$8()?null:jsx(b$4,{values:[[Xe,{...n,ref:i}],[vt,e],[Ce,e],[xt,{trigger:"MenuTrigger",triggerRef:t,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"]}]],children:jsx(b$9,{...o,ref:t,isPressed:e.isOpen,children:r.children})})}var Xr=createContext(null),Mt=class extends a$i{static type="submenutrigger";filter(e,t,o){let n=e.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}},Oo=k(Mt,(r,e,t)=>{let{CollectionBranch:o}=useContext(p),n=useContext(De),i=useContext(Ce),l=Pt({triggerKey:t.key},i),s=useRef(null),p$1=a$4(e),{parentMenuRef:m,shouldUseVirtualFocus:u}=useContext(Xr),{submenuTriggerProps:c,submenuProps:f,popoverProps:a}=gt({parentMenuRef:m,submenuRef:s,delay:r.delay,shouldUseVirtualFocus:u},l,p$1);return jsxs(b$4,{values:[[ye,{...c,onAction:void 0,ref:p$1}],[Xe,{ref:s,...f}],[vt,l],[xt,{trigger:"SubmenuTrigger",triggerRef:p$1,placement:"end top","aria-labelledby":f["aria-labelledby"],...a}]],children:[jsx(o,{collection:n.collection,parent:t}),r.children[1]]})},r=>r.children[0]),Ao=forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,Xe),jsx(i,{content:jsx(l,{...e$1}),children:o=>jsx(Io,{props:e$1,collection:o,menuRef:t})})});function Io({props:r,collection:e$1,menuRef:t}){[r,t]=e(r,t,b$1);let{filter:o,...n}=r,i=useMemo(()=>o?e$1.filter(o):e$1,[e$1,o]),l=a$b({...r,collection:i,children:void 0}),s=useContext(Ce),{isVirtualized:p$1,CollectionRoot:m$1}=useContext(p),{menuProps:u}=ct({...r,isVirtualized:p$1,onClose:r.onClose||s?.close},l,t),c=c$3({...r,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),f=null;l.collection.size===0&&r.renderEmptyState&&(f=jsx("div",{role:"menuitem",style:{display:"contents"},children:r.renderEmptyState()}));let a=a$2(r,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(a,c,u),ref:t,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:r.onScroll,children:[jsx(b$4,{values:[[De,l],[_e,{elementType:"div"}],[m,{name:"MenuSection",render:$r}],[Xr,{parentMenuRef:t,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[ye,{shouldCloseOnSelect:r.shouldCloseOnSelect}],[b$1,null],[c$5,null],[Ge,l.selectionManager],[Ce,s??We({})]],children:jsx(w,{children:jsx(m$1,{collection:l.collection,persistedKeys:q(l.selectionManager.focusedKey),scrollRef:t})})}),f]})})}var Tt=class extends f$3{parent;constructor(e,t){super(e.collection,t),this.parent=e;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function $r(r,e,t,o="react-aria-MenuSection"){let n=useContext(De),{CollectionBranch:i}=useContext(p),[l,s]=f(),{headingProps:p$1,groupProps:m}=mt({heading:s,"aria-label":t.props["aria-label"]??void 0}),u=c$3({...r,id:void 0,children:void 0,defaultClassName:o,className:t.props?.className,style:t.props?.style,values:void 0}),c=useContext(Ge),f$1=a$c(r),a=r.selectionMode!=null?new Tt(c,f$1):c,x=d$1(ye)?.shouldCloseOnSelect,g=a$2(r,{global:true});return delete g.id,jsx(h.section,{...c$4(g,u,m),ref:e,children:jsx(b$4,{values:[[ge,{...p$1,ref:l}],[Ge,a],[ye,{shouldCloseOnSelect:r.shouldCloseOnSelect??x}]],children:jsx(i,{collection:n.collection,parent:t})})})}var Ct=k(f$2,$r),ye=createContext(null),Dt=j(e$1,function(e$1,t,o){[e$1,t]=e(e$1,t,ye);let n=d$1(ye)?.id,i=useContext(De),l=a$4(t),s=useContext(Ge),{isVirtualized:p$1}=useContext(p),{menuItemProps:m,labelProps:u,descriptionProps:c,keyboardShortcutProps:f,...a}=pt({...e$1,id:n,key:o.key,selectionManager:s,isVirtualized:p$1},i,l),{hoverProps:x$1,isHovered:g}=a$5({isDisabled:a.isDisabled}),R=c$3({...e$1,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...a,isHovered:g,isFocusVisible:a.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e$1["aria-haspopup"],isOpen:e$1["aria-expanded"]==="true"}}),M=e$1.href?h.a:h.div,D=a$2(e$1,{global:true});return delete D.id,delete D.onClick,jsx(M,{...c$4(D,R,m,x$1),ref:l,"data-disabled":a.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":a.isFocusVisible||void 0,"data-pressed":a.isPressed||void 0,"data-selected":a.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e$1["aria-haspopup"]||void 0,"data-open":e$1["aria-expanded"]==="true"||void 0,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:u,label:u,description:c}}],[bt,f],[x,{isSelected:a.isSelected}]],children:R.children})})});var Rt=be.forwardRef(({section:r,isFirstCollectionItem:e,showSectionHeader:t,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:l$1,componentName:s="ListBox",selectionMode:p$1,selectedKeys:m,defaultSelectedKeys:u,onSelectionChange:c,disabledKeys:f,disallowEmptySelection:a,...x},g)=>{let{isVirtualized:R}=useContext(p),M=o?.(r),D=s==="ListBox"?at:Ct,v=p$1==null?{}:{selectionMode:p$1,selectedKeys:m,defaultSelectedKeys:u,onSelectionChange:c,disabledKeys:f,disallowEmptySelection:a};return jsxs(D,{id:r.id,"aria-label":r.title,...v,className:a$e(`BaselineUI-${s}-Section`,Fr,R&&!e&&Br,typeof l$1=="function"?l$1(r):l$1),style:typeof i=="function"?i(r):i,ref:g,children:[t?M?jsx(ze,{className:`BaselineUI-${s}-SectionHeader`,children:M}):jsx(ze,{className:`BaselineUI-${s}-SectionHeader`,children:jsx(a$d,{className:a$e(wr,`BaselineUI-${s}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:r.title})}):null,jsx(l,{items:r.children,dependencies:Ve(x),children:L=>jsx($e,{componentName:s,item:L,...x},L.id)})]})});Rt.displayName="ListSection";var Bo=({componentName:r})=>{let{direction:e}=b$2();return jsx(a$d,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${r}-SubmenuChevron`,style:e==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},Ho=({item:r,isSelected:e,isHovered:t,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:l,componentName:s="ListBox",hasSubmenu:p=false})=>{let m=r.icon,u=l!=="none",c=r.keyboardShortcut??r.description;return jsxs(a$d,{display:"flex",alignItems:"center",gap:"lg",className:a$e(kr({isHovered:t,isFocused:o,isDisabled:n}),`BaselineUI-${s}-OptionDefault`),children:[jsxs(a$d,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[u&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${s}-SelectionIndicator`,children:e?jsx(CheckmarkIcon,{size:24}):null}):null,u&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:c$7({isSelected:e,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:e?jsx(CheckmarkIcon$1,{size:12}):null})}):null,m?jsx(m,{size:24}):null,jsx(b$6,{slot:"label",elementType:"span",children:r.label})]}),p?jsx(Bo,{componentName:s}):c?jsx(b$6,{slot:"description",className:a$e(Ir({isDisabled:n}),`BaselineUI-${s}-OptionDescription`),children:c}):null]})},$e=be.forwardRef(({item:r,optionStyle:e,optionClassName:t,renderOption:o,componentName:n="ListBox",...i},l)=>{let{onPress:s,onKeyDown:p}=useContext(Zr);return jsx(n==="ListBox"?ut:Dt,{...c$4(a$f(i),{onPress:u=>s?.(u,r.id),onKeyDown:p?u=>{p(u,r.id),u.continuePropagation();}:void 0}),id:r.id,value:r,className:u=>a$e(Hr,`BaselineUI-${n}-Option`,typeof t=="function"?t(r,u):t),style:u=>typeof e=="function"?e(r,u):e,textValue:r.label,ref:l,children:u=>o?o(r,u):jsx(Ho,{componentName:n,...u,item:r})})});$e.displayName="ListOption";var Qr=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Zr=be.createContext({}),zo=be.forwardRef(({withSectionHeaderPadding:r=false,showSectionHeader:e=false,renderSectionHeader:t,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:l,renderOption:s,className:p$1,dragAndDropHooks:m,listBoxHandle:u,"data-block-id":c,"data-block-class":f,...a},x)=>{let g=a$4(x),R=be.useRef(false),M=be.useRef(null),D=useContext(le),{isVirtualized:v,layoutDelegate:L}=useContext(p);useEffect(()=>{D&&(s||o||n)&&console.warn("ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[D,s,o,n,i,l,t]),a$g({ref:g,isDisabled:!m});let O=useCallback(y=>g.current?.querySelector(`[data-key="${y}"][role="option"]`),[g]);useEffect(()=>{if(!v)return;let y=g.current,b=y?.ownerDocument,h=b?.defaultView;if(y==null||b==null||h==null)return;let z=()=>{let T=f$4(y);return T==null||T===b.body||T===b.documentElement},j=()=>y.querySelector('[role="option"][tabindex="0"]')??y.querySelector('[role="option"][data-focused="true"]'),_=()=>{let T=f$4(y);return T!=null&&e$3(y,T)},H=T=>T.composedPath().some(ue=>ue instanceof h.Node&&e$3(y,ue)),W=()=>{R.current=false;},se=()=>{M.current!=null&&h.cancelAnimationFrame(M.current),M.current=h.requestAnimationFrame(()=>{if(M.current=null,_())return;if(!z()){W();return}let T=j();T?.focus({preventScroll:true});});},te=T=>{Qr.has(T.key)&&(R.current=true);},J=T=>{!Qr.has(T.key)||!z()||!R.current||se();},Y=T=>{H(T)||_()||W();},he=T=>{H(T)||W();},Z=new MutationObserver(T=>{T.some(({addedNodes:ue,removedNodes:re})=>ue.length>0||re.length>0)&&R.current&&se();});return y.addEventListener("keydown",te),b.addEventListener("keydown",J,true),b.addEventListener("focusin",Y,true),b.addEventListener("pointerdown",he,true),Z.observe(y,{childList:true,subtree:true}),()=>{y.removeEventListener("keydown",te),b.removeEventListener("keydown",J,true),b.removeEventListener("focusin",Y,true),b.removeEventListener("pointerdown",he,true),Z.disconnect(),M.current!=null&&h.cancelAnimationFrame(M.current),W(),M.current=null;}},[v,g]);let k=be.useRef(null),d=useCallback(()=>{let y=k.current;y&&(y.ownerWindow.cancelAnimationFrame(y.frameId),k.current=null);},[]);useEffect(()=>d,[d]);let S=useCallback((y,b)=>{if(d(),!g.current)return;let h=()=>{let j=O(y);if(j)return j.scrollIntoView({block:"nearest",inline:"nearest",...b}),true;if(v&&L){let _=L.getItemRect(y);return _?(L.virtualizer.delegate.setVisibleRect(_),true):false}return false};if(h())return;let z=g.current.ownerDocument?.defaultView;z&&(k.current={ownerWindow:z,frameId:z.requestAnimationFrame(()=>{k.current=null,h();})});},[d,O,v,L,g]);useImperativeHandle(u,()=>({scrollIntoView:S,setFocusedKey:y=>{let b=O(y);!g.current||!b||(b.focus(),S(y));}}),[S,O,g]);let E={renderOption:s,optionClassName:n,optionStyle:o,renderSectionHeader:t,sectionClassName:l,sectionStyle:i,showSectionHeader:e,withSectionHeaderPadding:r},w=a.items?.[0]?.id;return jsx(st,{...a,dependencies:[...a.dependencies??[],w,...Ve(E)],"data-block-id":c,"data-block-class":f,dragAndDropHooks:m,ref:g,className:a$e(Ar,"BaselineUI-ListBox",p$1),children:y=>jsx(Ko,{item:y,isFirstCollectionItem:w===y.id,...E},y.id)})});zo.displayName="UNSAFE_ListBox";var _o=be.createContext({}),Ko=r=>{let e=useContext(_o),{item:t,isFirstCollectionItem:o,id:n,value:i,...l}={...e,...r};return a$h(t,"Item is required"),"children"in t?jsx(Rt,{section:t,componentName:"ListBox",isFirstCollectionItem:o,...l}):jsx($e,{item:t,componentName:"ListBox",...l})};export{lt as a,le as b,dt as c,Ve as d,gi as e,Do as f,Xl as g,xt as h,vt as i,Eo as j,Oo as k,Ao as l,Rt as m,Ho as n,$e as o,Zr as p,zo as q,Ko as r};
|
package/dist/chunk-F2X474RV.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-XTH6B5FE.mjs';import {b,a,d,e}from'./chunk-AUOQSTS5.mjs';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var C=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function M(i){return i.dataset.liveAnnouncer==="true"||i.dataset.reactAriaTopLayer!==void 0}var E=new WeakMap,r=[];function k(i,s){let l=b(i?.[0]),N=s instanceof l.Element?{root:s}:s,h=N?.root??a(i?.[0]).body,T=N?.shouldUseInert&&C,d$1=new Set(i),a$2=new Set,H=e=>T&&e instanceof l.HTMLElement?e.inert:e.getAttribute("aria-hidden")==="true",L=(e,t)=>{T&&e instanceof l.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof l.HTMLElement&&(e.inert=false));},b$1=new Set;if(d())for(let e of i){let t=e;for(;t&&t!==h;){let n=t.getRootNode();"shadowRoot"in n&&b$1.add(n.shadowRoot),t=n.parentNode;}}let p=e$1=>{for(let o of e$1.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))d$1.add(o);let t=o=>{if(a$2.has(o)||d$1.has(o)||o.parentElement&&a$2.has(o.parentElement)&&o.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let A of d$1)if(e(o,A))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=a$1(a(e$1),e$1,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),f=t(e$1);if(f===NodeFilter.FILTER_ACCEPT&&O(e$1),f!==NodeFilter.FILTER_REJECT){let o=n.nextNode();for(;o!=null;)O(o),o=n.nextNode();}},O=e=>{let t=E.get(e)??0;H(e)&&t===0||(t===0&&L(e,true),a$2.add(e),E.set(e,t+1));};r.length&&r[r.length-1].disconnect(),p(h);let c=new MutationObserver(e$1=>{for(let t of e$1)if(t.type==="childList"){if(t.target.isConnected&&![...d$1,...a$2].some(n=>e(n,t.target)))for(let n of t.addedNodes)(n instanceof l.HTMLElement||n instanceof l.SVGElement)&&M(n)?d$1.add(n):n instanceof l.Element&&p(n);if(d()){for(let n of b$1)if(!n.isConnected){c.disconnect();break}}}});c.observe(h,{childList:true,subtree:true});let g=new Set;if(d())for(let e$1 of b$1){let t=new MutationObserver(n=>{for(let f of n)if(f.type==="childList"){if(f.target.isConnected&&![...d$1,...a$2].some(o=>e(o,f.target)))for(let o of f.addedNodes)(o instanceof l.HTMLElement||o instanceof l.SVGElement)&&M(o)?d$1.add(o):o instanceof l.Element&&p(o);if(d()){for(let o of b$1)if(!o.isConnected){c.disconnect();break}}}});t.observe(e$1,{childList:true,subtree:true}),g.add(t);}let v={visibleNodes:d$1,hiddenNodes:a$2,observe(){c.observe(h,{childList:true,subtree:true});},disconnect(){c.disconnect();}};return r.push(v),()=>{if(c.disconnect(),d())for(let e of g)e.disconnect();for(let e of a$2){let t=E.get(e);t!=null&&(t===1?(L(e,false),E.delete(e)):E.set(e,t-1));}v===r[r.length-1]?(r.pop(),r.length&&r[r.length-1].observe()):r.splice(r.indexOf(v),1);}}function _(i){let s=r[r.length-1];if(s&&!s.visibleNodes.has(i))return s.visibleNodes.add(i),()=>{s.visibleNodes.delete(i);}}export{k as a,_ as b};
|
package/dist/chunk-F7PGMOQF.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var e=["bui.alertDialog.close","bui.audioPlayer.audioTimeline","bui.audioPlayer.pause","bui.audioPlayer.play","bui.buttonSelect.more","bui.buttonSelect.moreWithLabel","bui.calendar.nextMonth","bui.calendar.nextYear","bui.calendar.previousMonth","bui.calendar.previousYear","bui.calendar.selectMonth","bui.calendar.selectYear","bui.colorInput.add","bui.colorInput.addColor","bui.colorInput.cancel","bui.colorInput.colorFormat","bui.colorInput.colorPresets","bui.colorInput.customColors","bui.colorInput.indeterminate","bui.colorInput.newColor","bui.colorInput.noColor","bui.colorInput.removeColor","bui.colorInput.transparent","bui.colorSwatch.none","bui.dateField.openCalendar","bui.drawer.close","bui.editor.action","bui.editor.addLink","bui.editor.backgroundColor","bui.editor.bold","bui.editor.cancel","bui.editor.close","bui.editor.copy","bui.editor.cut","bui.editor.editLink","bui.editor.fontColor","bui.editor.help","bui.editor.italic","bui.editor.linkAnnotation","bui.editor.mention","bui.editor.openHelpDialog","bui.editor.paste","bui.editor.redo","bui.editor.removeLink","bui.editor.save","bui.editor.selectAll","bui.editor.shortcut","bui.editor.submit","bui.editor.toolbarFocus","bui.editor.underline","bui.editor.undo","bui.fileList.loading","bui.fileList.removeHint","bui.freehandCanvas.redo","bui.freehandCanvas.undo","bui.imageDropZone.selectImage","bui.imageGallery.cancel","bui.imageGallery.delete","bui.imageGallery.loading","bui.inlineAlert.close","bui.pagination.goToPage","bui.pagination.nextPage","bui.pagination.pageXofY","bui.pagination.prevPage","bui.select.clear","bui.select.more","bui.select.search","bui.select.selectAll","bui.stepper.completed","bui.stepper.label","bui.stepper.step","bui.table.loading","bui.toolbar.more","bui.treeView.collapse","bui.treeView.expand","bui.treeView.rename","bui.useMedia.paused","bui.useMedia.playing"],i={close:["bui.alertDialog.close","bui.drawer.close","bui.editor.close","bui.inlineAlert.close"],audioTimeline:["bui.audioPlayer.audioTimeline"],pause:["bui.audioPlayer.pause"],play:["bui.audioPlayer.play"],more:["bui.buttonSelect.more","bui.select.more","bui.toolbar.more"],moreWithLabel:["bui.buttonSelect.moreWithLabel"],nextMonth:["bui.calendar.nextMonth"],nextYear:["bui.calendar.nextYear"],previousMonth:["bui.calendar.previousMonth"],previousYear:["bui.calendar.previousYear"],selectMonth:["bui.calendar.selectMonth"],selectYear:["bui.calendar.selectYear"],add:["bui.colorInput.add"],addColor:["bui.colorInput.addColor"],cancel:["bui.colorInput.cancel","bui.editor.cancel","bui.imageGallery.cancel"],colorFormat:["bui.colorInput.colorFormat"],colorPresets:["bui.colorInput.colorPresets"],customColors:["bui.colorInput.customColors"],indeterminate:["bui.colorInput.indeterminate"],newColor:["bui.colorInput.newColor"],noColor:["bui.colorInput.noColor"],removeColor:["bui.colorInput.removeColor"],transparent:["bui.colorInput.transparent"],none:["bui.colorSwatch.none"],openCalendar:["bui.dateField.openCalendar"],action:["bui.editor.action"],addLink:["bui.editor.addLink"],backgroundColor:["bui.editor.backgroundColor"],bold:["bui.editor.bold"],copy:["bui.editor.copy"],cut:["bui.editor.cut"],editLink:["bui.editor.editLink"],fontColor:["bui.editor.fontColor"],help:["bui.editor.help"],italic:["bui.editor.italic"],linkAnnotation:["bui.editor.linkAnnotation"],mention:["bui.editor.mention"],openHelpDialog:["bui.editor.openHelpDialog"],paste:["bui.editor.paste"],redo:["bui.editor.redo","bui.freehandCanvas.redo"],removeLink:["bui.editor.removeLink"],save:["bui.editor.save"],selectAll:["bui.editor.selectAll","bui.select.selectAll"],shortcut:["bui.editor.shortcut"],submit:["bui.editor.submit"],toolbarFocus:["bui.editor.toolbarFocus"],underline:["bui.editor.underline"],undo:["bui.editor.undo","bui.freehandCanvas.undo"],loading:["bui.fileList.loading","bui.imageGallery.loading","bui.table.loading"],removeHint:["bui.fileList.removeHint"],selectImage:["bui.imageDropZone.selectImage"],delete:["bui.imageGallery.delete"],goToPage:["bui.pagination.goToPage"],nextPage:["bui.pagination.nextPage"],pageXofY:["bui.pagination.pageXofY"],prevPage:["bui.pagination.prevPage"],clear:["bui.select.clear"],search:["bui.select.search"],completed:["bui.stepper.completed"],label:["bui.stepper.label"],step:["bui.stepper.step"],collapse:["bui.treeView.collapse"],expand:["bui.treeView.expand"],rename:["bui.treeView.rename"],paused:["bui.useMedia.paused"],playing:["bui.useMedia.playing"]};export{e as a,i as b};
|
package/dist/chunk-GKODQS6E.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-EU75HMPG.mjs';import {a}from'./chunk-66CUIXA6.mjs';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function s(n){if(n===void 0)return null;try{return a$1(n)}catch{return null}}function u(n){return n.toString(16).padStart(2,"0")}function b(n,r){a(r>=0&&r<=100,"Percent must be between 0 and 100");let t=a$1(n),o=t.getChannelValue("red"),l=t.getChannelValue("green"),a$2=t.getChannelValue("blue"),g=Math.round(o+(255-o)*r/100),d=Math.round(l+(255-l)*r/100),f=Math.round(a$2+(255-a$2)*r/100);return `#${u(g)}${u(d)}${u(f)}`}function h(n,r){if(n===r)return true;let t=s(n),o=s(r);return t===null||o===null?false:t.toString("rgba")===o.toString("rgba")}export{b as a,h as b};
|
package/dist/chunk-GVI6EBGJ.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {j,l,m,k,o,i,h}from'./chunk-EYKIXVM3.mjs';import {a as a$3}from'./chunk-UN7XC7QV.mjs';import {a as a$2}from'./chunk-KCHAWPUN.mjs';import {b}from'./chunk-AYBACQ6U.mjs';import {a}from'./chunk-F3HQNHR5.mjs';import {e}from'./chunk-B7PSE5KC.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import P,{useEffect,useContext}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var I="xyd2ss0 _1yep5z6nm _1yep5z6nn _1yep5z6no _1yep5z6py _1yep5z6pz _1yep5z6q0 _1yep5z6r4 _1yep5z6r5 _1yep5z6r6 _1yep5z6os _1yep5z6ot _1yep5z6ou _1yep5z6sa _1yep5z6sb _1yep5z6sc _1yep5z6um _1yep5z6un _1yep5z6uo _1yep5z6vs _1yep5z6vt _1yep5z6vu _1yep5z6tg _1yep5z6th _1yep5z6ti _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi _1yep5z6z4 _1yep5z6z5 _1yep5z6z6 _1yep5z618r _1yep5z618q _1yep5z614z _1yep5z618u _1yep5z612s";var z=e=>e!=null&&typeof e=="object"&&!(Symbol.iterator in e);function G(e,o,r){let i=z(o)||z(r),s=o!=null&&!z(o)||r!=null&&!z(r);return e&&s?"Menu: an object `selectionMode` expects `selectedKeys`/`defaultSelectedKeys` to be records keyed by section id.":!e&&i?"Menu: a per-section `selectedKeys`/`defaultSelectedKeys` record requires the object form of `selectionMode`.":null}var Q=P.forwardRef(({defaultOpen:e,onOpenChange:o,isOpen:r,isDisabled:i,contentClassName:s,placement:l$1="bottom start",isNonModal:a$3,shouldFlip:c,shouldUpdatePosition:t,boundaryElement:M,boundaryAxis:p,horizontalBoundaryBehavior:d,crossOffset:_,offset:Z,triggerLabel:x,renderTrigger:b$1=({buttonProps:u,ref:y})=>jsx(b,{...u,variant:"popover",ref:y,"data-testid":"menu-trigger"}),portalContainer:$,selectionMode:m,selectedKeys:v,defaultSelectedKeys:S,onSelectionChange:K,disabledKeys:h,disallowEmptySelection:N,itemClassName:C,optionClassName:R,optionStyle:ee,renderOption:oe,...O},re)=>{let u=a($),y=m!=null&&typeof m=="object",A=P.useMemo(()=>h==null?void 0:new Set(h),[h]),te=P.useMemo(()=>C?(ne,ie)=>a$1(C,a$2(R,ne,ie)):R,[C,R]),B=G(y,v,S);if(B)throw new Error(B);return useEffect(()=>{!x&&!b$1&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[b$1,x]),jsxs(j,{defaultOpen:e,onOpenChange:o,isOpen:r,children:[jsx(W,{isDisabled:i,renderTrigger:b$1,triggerLabel:x}),jsx(X,{placement:l$1,isNonModal:a$3,shouldFlip:c,shouldUpdatePosition:t,boundaryElement:M,boundaryAxis:p,horizontalBoundaryBehavior:d,crossOffset:_,offset:Z||2,className:"BaselineUI-Menu-Popover",portalContainer:u,children:jsx(l,{...O,disabledKeys:A,...y?{}:{selectionMode:m,selectedKeys:v,defaultSelectedKeys:S,onSelectionChange:K,disallowEmptySelection:N},className:a$1(I,s),ref:re,children:V(O.items,u,{onAction:O.onAction,disabledKeys:A,contentClassName:s,optionClassName:te,optionStyle:ee,renderOption:oe,selection:y?{modes:m,selectedKeys:v,defaultSelectedKeys:S,onSelectionChange:K,disallowEmptySelection:N}:void 0})})})]})});function V(e,o$1,r){let{onAction:i,disabledKeys:s,contentClassName:l$1,selection:a,...c}=r;return e.map((t,M)=>{if("children"in t){let p=t,d=a?.modes[p.id];return jsx(m,{section:p,componentName:"Menu",isFirstCollectionItem:M===0,showSectionHeader:!!p.title,...c,...d?{selectionMode:d,selectedKeys:a?.selectedKeys?.[p.id],defaultSelectedKeys:a?.defaultSelectedKeys?.[p.id],disabledKeys:s,disallowEmptySelection:a?.disallowEmptySelection,onSelectionChange:_=>{a?.onSelectionChange?.(_,{sectionId:p.id});}}:{}},p.id)}return t.items?jsxs(k,{children:[jsx(o,{item:t,componentName:"Menu",...c}),jsx(X,{className:"BaselineUI-Menu-SubmenuPopover",portalContainer:o$1,children:jsx(l,{className:a$1(I,l$1),onAction:i,disabledKeys:s,children:V(t.items,o$1,r)})})]},t.id):jsx(o,{item:t,componentName:"Menu",...c},t.id)})}var W=P.forwardRef(({renderTrigger:e,triggerLabel:o,isDisabled:r,...i$1},s)=>{let l=useContext(i);return e?.({buttonProps:{...i$1,isDisabled:r,label:typeof o=="function"?o(l?.isOpen||false):o,isOpen:l?.isOpen||false,className:"BaselineUI-Menu-Trigger"},ref:s})});W.displayName="MyTrigger";var X=({children:e$1,...o})=>{let r=useContext(i),[i$1]=e(o,void 0,h);return r?.isOpen?jsx(a$3,{...i$1,state:r,children:e$1}):null};Q.displayName="Menu";export{Q as a};
|
package/dist/chunk-HK3CZVHY.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$9}from'./chunk-TJEK54BW.mjs';import {c as c$1,d}from'./chunk-UBFMOTBM.mjs';import {a as a$8}from'./chunk-NGZRN4SF.mjs';import {a as a$2}from'./chunk-2V323KAD.mjs';import {a as a$c}from'./chunk-34TYNTXM.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a as a$a}from'./chunk-D3IZ4HBL.mjs';import {a as a$7}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-K6X2BHPP.mjs';import {a as a$6,d as d$1}from'./chunk-BGMVPFYK.mjs';import {a as a$4}from'./chunk-3FYY26ED.mjs';import {q}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$b}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import R,{useMemo,useRef,useEffect}from'react';import {XIcon}from'@baseline-ui/icons/8';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var I=new WeakMap;function h(a,e,t){if(!a)return "";typeof e=="string"&&(e=e.replace(/\s+/g,""));let i=I.get(a);return process.env.NODE_ENV!=="production"&&!i&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${i}-${t}-${e}`}function C(a,e,t){let{key:i,isDisabled:s,shouldSelectOnPressUp:r}=a,{selectionManager:o,selectedKey:c$1}=e,l=i===c$1,n=s||e.isDisabled||e.selectionManager.isDisabled(i),p=e.collection.getItem(i),{itemProps:b,isPressed:m}=d({selectionManager:o,key:i,ref:t,isDisabled:n,shouldSelectOnPressUp:r??p?.props.href!=null,linkBehavior:"selection"}),d$2=h(e,i,"tab"),P=h(e,i,"tabpanel"),{tabIndex:L}=b,g=a$b(p?.props,{labelable:true});delete g.id;let x=q(p?.props),{focusableProps:v}=d$1({...p?.props,isDisabled:n},t);return {tabProps:c(g,v,x,b,{id:d$2,"aria-selected":l,"aria-disabled":n||void 0,"aria-controls":l?P:void 0,tabIndex:n?void 0:L,role:"tab"}),isSelected:l,isDisabled:n,isPressed:m}}function A(a,e,t){let i=a$c(t)?void 0:0,s=h(e,a.id??e?.selectedKey,"tabpanel"),r=a$a({...a,id:s,"aria-labelledby":h(e,e?.selectedKey,"tab")});return {tabPanelProps:c(r,{tabIndex:i,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}var z=class{collection;flipDirection;disabledKeys;tabDirection;constructor(e,t,i,s=new Set){this.collection=e,this.flipDirection=t==="rtl"&&i==="horizontal",this.disabledKeys=s,this.tabDirection=i==="horizontal";}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function O(a,e,t){let{orientation:i="horizontal",keyboardActivation:s="automatic"}=a,{collection:r,selectionManager:o,disabledKeys:c$3}=e,{direction:l}=b(),n=useMemo(()=>new z(r,l,i,c$3),[r,c$3,i,l]),{collectionProps:p}=c$1({ref:t,selectionManager:o,keyboardDelegate:n,selectOnFocus:s==="automatic",disallowEmptySelection:true,scrollRef:t,linkBehavior:"selection"}),b$1=c$2();I.set(e,b$1);let m=a$a({...a,id:b$1});return {tabListProps:{...c(p,m),role:"tablist","aria-orientation":i,tabIndex:void 0}}}function N(a){let e=a$9({...a,onSelectionChange:a.onSelectionChange?o=>{o!=null&&a.onSelectionChange?.(o);}:void 0,suppressTextValueWarning:true,defaultSelectedKey:a.defaultSelectedKey??Z(a.collection,a.disabledKeys?new Set(a.disabledKeys):new Set)??void 0}),{selectionManager:t,collection:i,selectedKey:s}=e,r=useRef(s);return useEffect(()=>{let o=s;a.selectedKey==null&&(t.isEmpty||o==null||!i.getItem(o))&&(o=Z(i,e.disabledKeys),o!=null&&t.setSelectedKeys([o])),(o!=null&&t.focusedKey==null||!t.isFocused&&o!==r.current)&&t.setFocusedKey(o),r.current=o;}),{...e,isDisabled:a.isDisabled||false}}function Z(a,e){let t=null;if(a){for(t=a.getFirstKey();t!=null&&(e.has(t)||a.getItem(t)?.props?.isDisabled)&&t!==a.getLastKey();)t=a.getKeyAfter(t);t!=null&&(e.has(t)||a.getItem(t)?.props?.isDisabled)&&t===a.getLastKey()&&(t=a.getFirstKey());}return t}var ee="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",te=a({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6lq _1yep5z6lt _1yep5z6ez _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z611h"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z611l"},variant:{primary:"_1x62fhbb _1yep5z610e",ghost:"_1yep5z610h"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61o0"],[{variant:"primary",isSelected:true},"_1yep5z61pb"],[{variant:"ghost",isSelected:true,isFocusVisible:false},"_1x62fhbd"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61o7"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1x62fhbe _1yep5z6f2"],[{variant:"primary",isHovered:true},"_1yep5z61pc"]]}),ae=a({defaultClassName:"_1x62fhb3 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6w1 _1yep5z6w2 _1yep5z6w3"}},defaultVariants:{},compoundVariants:[]}),ie="_1x62fhbl",k=a({defaultClassName:"_1x62fhbf _1yep5z6fa",variantClassNames:{isHovered:{true:"_1yep5z611s"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611u"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61ob"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61og"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1yep5z61od"]]}),re="_1yep5z6ma _1yep5z6m7 _1yep5z6id _1yep5z6m9",se=a({defaultClassName:"_1x62fhb0 _1yep5z6m3 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj",variantClassNames:{variant:{primary:"_1yep5z612u",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var oe=({state:a,...e})=>{let t=R.useRef(null),{tabPanelProps:i}=A(e,a,t),{selectedItem:s}=a,{focusProps:r,isFocusVisible:o}=a$5();if(!s?.value)return null;let{className:c$1,style:l,"data-block-id":n}=s.value;return jsx("div",{...c(i,r),ref:t,className:a$3({[re]:o},"Baseline-Tabs-TabPanel",c$1),"data-block-id":n,style:l,children:s?.props.children})};var M=R.forwardRef(({className:a,style:e,tabHeaderStyle:t,tabHeaderClassName:i,variant:s="primary",actions:r,onRemove:o,"data-block-id":c,...l},n)=>{let p=N({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),b=R.useRef(null),{tabListProps:m}=O({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},p,b);return jsxs("div",{className:a$3("BaselineUI-Tabs",a),style:e,ref:n,"data-block-id":c,children:[jsxs("div",{className:a$3(se({variant:s}),i),style:t,children:[jsx("div",{...m,className:ae({variant:s}),ref:b,children:[...p.collection].map(d=>(a$1(d.value,"TabItem requires a value prop"),jsx(le,{item:d,state:p,onRemove:o,variant:s},d.key)))}),r?.map((d,P)=>jsx("div",{className:ee,children:jsx(a$2,{...d,variant:"secondary",size:"sm",className:a$3(ie,d.className)})},P))]}),jsx(oe,{state:p},p.selectedItem?.key)]})});M.displayName="TabsBase";var le=({item:a,onRemove:e,state:t,variant:i})=>{let{key:s,value:r}=a,o=R.useRef(null),{tabProps:c$1,isSelected:l,isDisabled:n}=C({key:s},t,o),{hoverProps:p,isHovered:b}=a$4({});a$1(r,"TabButton requires a value prop");let{title:m,icon:d,titleStyle:P,titleClassName:L}=r,{focusProps:g,isFocusVisible:x,isFocused:v}=a$5(),{keyboardProps:de}=a$6({onKeyDown:w=>{w.key==="Backspace"&&e?e(s):w.continuePropagation();}}),ce=a$7({"data-selected":l,"data-disabled":n,"data-focused":v,"data-hovered":b,"data-focus-visible":x});return jsxs("div",{...c(de,c$1,p,g,ce),className:a$3(te({isHovered:b,isSelected:l,isFocusVisible:x,isDisabled:n,variant:i}),"BaselineUI-Tabs-TabButton",L),style:P,ref:o,children:[d?jsx(d,{size:20,className:k({isHovered:b,isSelected:l,isDisabled:n,variant:i})}):null,m,e?jsx(a$2,{variant:"secondary",elementType:"div",icon:XIcon,size:"xxs",onPress:()=>{e(s);},excludeFromTabOrder:true,UNSAFE_isVisuallyInteractiveOnly:true,style:{display:"inline-flex",opacity:l||v||b?1:0},className:k({isHovered:b,isSelected:l,isDisabled:n,variant:i})}):null]})};le.displayName="TabButton";var pe=R.forwardRef(function({children:e,...t},i){let s=useMemo(()=>R.Children.map(e,r=>!r||!R.isValidElement(r)||typeof r.type=="string"?null:{...r.props,id:r.props.value}).filter(Boolean),[e]);return jsx(M,{...t,ref:i,items:s,children:r=>jsx(a$8,{title:r.title,children:r.children},r.key)})});pe.displayName="Tabs";var be=({children:a,title:e,value:t})=>(a$1(t,"TabItem requires a value prop"),a$1(e,"TabItem requires a title prop"),a$1(a,"TabItem requires children"),a);be.displayName="TabItem";export{pe as a,be as b};
|
package/dist/chunk-HONWMHMX.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b,g,e}from'./chunk-AUOQSTS5.mjs';import {useEffect}from'react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var m=new WeakMap;function E(u){let{triggerRef:e$1,isOpen:r,onClose:o}=u;useEffect(()=>{if(!r||o===null)return;let n=b(e$1.current),l=a=>{let t=g(a);if(!e$1.current||t instanceof n.Node&&!e(t,e$1.current)||t instanceof n.HTMLInputElement||t instanceof n.HTMLTextAreaElement)return;let i=o||m.get(e$1.current);i&&i();};return n.addEventListener("scroll",l,true),()=>{n.removeEventListener("scroll",l,true);}},[r,o,e$1]);}export{m as a,E as b};
|
package/dist/chunk-HT55YHTN.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-CV6JQGJ3.mjs';import {jsx,Fragment}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var o=({date:r,...a$1})=>{let e=a(a$1);return jsx(Fragment,{children:e.format(r)})};o.displayName="DateFormat";export{o as a};
|
package/dist/chunk-HZHAKW6I.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-N2XGJKZG.mjs';import c,{useRef,useState,useEffect}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 f=process.env.NODE_ENV!=="production",u="BUI \u{1F30D}:",h=e=>{e.error===void 0?console.warn(`${u} ${e.message}`):console.warn(`${u} ${e.message}`,e.error);},S=1e3;function M(e,n){let o=new Set;return (s,r)=>{if(e.has(s)||o.has(s))return;e.size>=S&&(o=new Set(e),e.clear()),e.add(s);let t=n?.();if(!t){h(r());return}try{t(r());}catch(a){console.error(`${u} \`onMessageIssue\` threw; the issue it was given was dropped.`,a);}}}var E=new Set,L=c.createContext({messages:{},reportMessageIssue:f?M(E):void 0,setLang:()=>{}}),y=({children:e,messages:n={},shouldLogMissingMessages:o=f,onMessageIssue:s,...r})=>{let t=useRef(new Set),a$1=useRef(false),[v,g]=useState(r.locale||"");useEffect(()=>{a$1.current?t.current.clear():a$1.current=true;},[v,r.locale]);let d=useRef(s);d.current=s;let P=c.useMemo(()=>M(t.current,()=>d.current),[]),l=s||o?P:void 0,m=c.useMemo(()=>({messages:n,reportMessageIssue:l,setLang:g}),[n,l,g]);return jsx(a,{...r,children:jsx(L.Provider,{value:m,children:e})})};y.displayName="I18nProvider";export{f as a,M as b,L as c,y as d};
|
package/dist/chunk-ILAQFMYD.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b,a as a$5}from'./chunk-Y3YZMICA.mjs';import {a as a$i}from'./chunk-5IC46G5J.mjs';import {a as a$1,f as f$1}from'./chunk-VZFS4QRW.mjs';import {a as a$3}from'./chunk-5BAHJXOI.mjs';import {b as b$2,a as a$g,q}from'./chunk-EYKIXVM3.mjs';import {a as a$9}from'./chunk-2MS356Q7.mjs';import {a as a$f}from'./chunk-UN7XC7QV.mjs';import {b as b$1}from'./chunk-SZTFMBPY.mjs';import {f}from'./chunk-AKES5B6C.mjs';import {a as a$b}from'./chunk-CGFLGZL4.mjs';import {b as b$4}from'./chunk-AYBACQ6U.mjs';import {a as a$e}from'./chunk-6JWACCHG.mjs';import {a as a$4}from'./chunk-TDXALNX3.mjs';import {a as a$d}from'./chunk-VDUFLHKK.mjs';import {a as a$a}from'./chunk-RSKKEGJZ.mjs';import {a as a$8}from'./chunk-K6X2BHPP.mjs';import {a as a$c}from'./chunk-BGMVPFYK.mjs';import {a as a$7}from'./chunk-3FYY26ED.mjs';import {d}from'./chunk-AQYBKDT2.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {a as a$6,c,b as b$3}from'./chunk-TZ4MVY4E.mjs';import {g,e}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$h}from'./chunk-4QEH5CGK.mjs';import z,{useMemo,useState,useRef,useEffect}from'react';import {useGranularEffect}from'granular-hooks';import {jsx,jsxs,Fragment}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 Le=a({defaultClassName:"_18v88n10 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6m3",variantClassNames:{labelPosition:{top:"_1yep5z6163 _1yep5z6164 _1yep5z6165",start:"_1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z617i _1yep5z617j _1yep5z617k _1yep5z6w1 _1yep5z6w2 _1yep5z6w3"}},defaultVariants:{},compoundVariants:[]}),Ne=a({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ey _1yep5z6m3 _1yep5z6me _1yep5z6m6 _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z611l"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),we=a({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6m0",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610x",warning:"_1yep5z6117"},isReadOnly:{true:"_1yep5z611s"}},defaultVariants:{},compoundVariants:[]}),Ie=a({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6mh _1yep5z6mf _1yep5z6hg _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z613e",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z6190 _1yep5z618y _1yep5z613w _1yep5z618r _1yep5z618q _1yep5z614w _1yep5z618t"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z614w"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61vj _1yep5z61vh _1yep5z61qi"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_18v88n1n"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61qj"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61qj"],[{isReadOnly:true,variant:"primary",isFocused:false},"_18v88n1o"]]}),Ee=a({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),Ve=a({defaultClassName:"_18v88n19 _1yep5z6jb _1yep5z6jc _1yep5z6jd",variantClassNames:{labelPosition:{top:"_1yep5z6tp _1yep5z6tq _1yep5z6tr",start:"_1yep5z6nm _1yep5z6nn _1yep5z6no _1yep5z6163 _1yep5z6164 _1yep5z6165"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61tv _1yep5z61tw _1yep5z61tx"]]}),je="_18v88n1y",Oe=a({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6m6",variantClassNames:{isFocusVisible:{true:"_1yep5z612v _1yep5z615b _1yep5z618p"},isHovered:{true:"_1yep5z612v _1yep5z615b _1yep5z618p"},isOpen:{true:"_1yep5z615b _1yep5z618p"}},defaultVariants:{},compoundVariants:[]});function F(n,s,c,p){if(s!=="number"||n===void 0||n==="")return n;let u=Number.parseFloat(n);if(Number.isNaN(u))return n;let t=u;return c!==void 0&&(t=Math.max(t,c)),p!==void 0&&(t=Math.min(t,p)),t===u?n:String(t)}function Me(n,s){return n.selectedKey==null||s!==n.selectedItem?.textValue}function Te({allowsCustomValue:n,onValueChange:s,inputType:c,minValue:p,maxValue:u},t,x,f){let[D,m]=useState(null),r=useRef(false),C=useRef(null),R=!Me(t,t.inputValue),L=(o,a)=>{C.current=a==null?null:{key:a,value:o},s?.({value:o,key:a});},N=o=>{!r.current||!Me(t,o)||(L(o,null),r.current=false);};useEffect(()=>{if(!s)return;let o=x.current,a=b=>{m(g(b));};return o?.addEventListener("focusin",a),()=>{o?.removeEventListener("focusin",a);}},[s,x,t.selectedKey]),useGranularEffect(()=>{if(t.selectedKey==null||t.selectedItem==null){t.selectionManager.isEmpty&&(C.current=null);return}let o=t.selectedKey,a=t.selectedItem.textValue,b=C.current?.key!==o;!b&&(C.current?.value===a||r.current&&!R)||(L(a,o),b&&(r.current=false));},[t.selectedKey,t.selectedItem?.textValue,R],[s,t.selectedItem]);let B=()=>{D===f.current&&n&&r.current&&(r.current=false);};useEffect(()=>{if(!s)return;let o=f.current,a=()=>{r.current=true;};return o?.addEventListener("input",a),()=>{o?.removeEventListener("input",a);}},[f,s]);let{keyboardProps:h}=a$c({isDisabled:!s,onKeyDown:o=>{if(n&&o.key==="Enter"&&r.current){let a=F(f.current?.value,c,p,u);N(a??""),r.current=false;}else o.key==="Escape"&&(t.selectedKey!=null&&(r.current=false),t.close());o.continuePropagation();}});return {inputProps:h,commitCustomValue:N,disarmPendingEdit:B}}var He=z.forwardRef(({renderOption:n,optionStyle:s,optionClassName:c,...p},u)=>jsx(a$1,{items:p.items,listBoxProps:{renderOption:n,optionStyle:s,optionClassName:c},children:t=>jsx(Fe,{...p,collection:t,ref:u})}));He.displayName="ComboBox";var Fe=z.forwardRef(({className:n,style:s,inputStyle:c$1,inputClassName:p,"data-block-id":u,"data-block-class":t,label:x,items:f$2,isInvalid:D=false,labelPosition:m="top",validationState:r="valid",variant:C="primary",toggleLabel:R,showIcon:L=true,filter:N,minValue:B,maxValue:h,inputType:o="text",onInputSubmit:a,onValueChange:b$5,tooltip:Se,collection:Ke,onTriggerPress:S,...e$1},qe)=>{let k=a$2(qe),{contains:Ae}=a$3({sensitivity:"base"}),_=b({...e$1,defaultFilter:N||Ae,defaultItems:f$2,collection:Ke,children:void 0,validationState:D?"invalid":"valid"}),K=z.useRef(null),v=z.useRef(null),q$1=z.useRef(null),M=z.useRef(null),A=z.useRef(null),{inputProps:Ue,commitCustomValue:We,disarmPendingEdit:Ge}=Te({onValueChange:b$5,allowsCustomValue:e$1.allowsCustomValue,inputType:o,minValue:B,maxValue:h},_,k,v),U=i=>{let d=F(i,o,B,h)??"";return d!==i&&!a&&!b$5&&a$i("bui.comboBox.clampNoCallback","ComboBox: minValue/maxValue clamped a value but no onInputSubmit or onValueChange callback is provided. The constraint cannot be enforced without a callback to notify the consumer."),a?.(d),d},W=()=>{let i=v.current?.value??"";!e$1.allowsCustomValue||!i||We(U(i));};a$4({ref:v,onInteractOutside:i=>{let d=g(i);if(e(k.current,d)||e(M.current,d))return;let P=v.current;if(!P||f(P)!==P){Ge();return}_.isOpen&&(W(),_.close());}});let{buttonProps:w,inputProps:Je,listBoxProps:G,labelProps:Qe,errorMessageProps:Xe,descriptionProps:Ye,validationErrors:Ze}=a$5({...e$1,onBlur:a$6(e$1.onBlur,W),inputRef:v,defaultItems:f$2,buttonRef:K,listBoxRef:q$1,popoverRef:M,validationState:r==="error"?"invalid":"valid"},_),J=e$1.errorMessage||Ze.join(" "),I=b$1({...e$1,errorMessage:J,descriptionProps:Ye,errorMessageProps:Xe,labelPosition:m});J&&(r="error");let{hoverProps:$e,isHovered:Q}=a$7({isDisabled:e$1.isDisabled}),{isFocused:X,focusProps:et,isFocusVisible:Y}=a$8(),Z=a$9({isReadOnly:e$1.isReadOnly,validationState:r}),tt=a$a({"data-read-only":e$1.isReadOnly,"data-disabled":e$1.isDisabled,"data-validation-state":r,"data-focused":X,"data-focus-visible":Y}),{labelProps:ot,fieldProps:rt}=a$b({label:x,"aria-label":e$1["aria-label"],"aria-labelledby":e$1["aria-labelledby"],"aria-describedby":e$1["aria-describedby"],"aria-details":e$1["aria-details"]}),{keyboardProps:at}=a$c({onKeyDown:i=>{e$1.allowsCustomValue&&i.key==="Enter"&&U(v.current?.value??"");}}),{tooltipProps:$}=a$d({tooltip:Se,label:e$1["aria-label"]}),{pressProps:nt}=d({onPress:S}),ee=R?.trim()||void 0,te=i=>{let{triggerProps:d,triggerRef:P}=i??{};return jsxs("div",{className:a$h(Le({labelPosition:m}),n,"BaselineUI-ComboBox"),"data-block-id":u,"data-block-class":t,style:s,ref:k,children:[x||m==="start"&&I?jsxs("div",{className:Ve({labelPosition:m,hasMessage:!!I}),children:[jsx("label",{...c(Qe,ot),className:Ee({isDisabled:e$1.isDisabled}),children:x}),m==="start"&&I]}):null,jsxs("div",{...$e,className:Ie({validationState:r,isHovered:Q,isFocused:X,variant:C,isReadOnly:!!e$1.isReadOnly,isDisabled:!!e$1.isDisabled}),ref:A,children:[jsx("input",{...c(nt,d,Je,Ue,et,tt,rt,at,o==="number"?{type:"number",min:B,max:h,onKeyDown:g=>{(g.key==="ArrowUp"||g.key==="ArrowDown")&&g.preventDefault();}}:null),id:e$1.id,ref:b$3(P,v),className:a$h(Ne({isDisabled:e$1.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",p),style:c$1}),Z&&L?jsx(Z,{className:we({validationState:r,isReadOnly:e$1.isReadOnly}),size:16}):null,jsx(b$4,{...w,onPressStart:g=>{w.onPressStart?.(g),S?.(g);},ref:K,"data-testid":"combobox-toggle-button",variant:"popover",label:null,"aria-label":ee??w["aria-label"],"aria-labelledby":ee?void 0:w["aria-labelledby"],className:Oe({isFocusVisible:!e$1.isDisabled&&!e$1.isReadOnly&&Y,isHovered:!e$1.isDisabled&&!e$1.isReadOnly&&Q,isOpen:_.isOpen})})]}),m==="top"&&I]})};return jsxs(Fragment,{children:[$?jsx(a$e,{...$,children:te}):te(),jsx(a$f,{ref:M,triggerRef:A,state:_,isNonModal:true,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsx(b$2.Provider,{value:_,children:jsx(a$g.Provider,{value:useMemo(()=>({...G,ref:q$1}),[G]),children:jsx(q,{selectionMode:"single",className:a$h(f$1,je,"BaselineUI-ComboBox-ListBox")})})})})]})});Fe.displayName="ComboBoxInner";export{He as a};
|