@arc-ui/components 12.0.0-beta.13 → 12.0.0-beta.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Alert/Alert.cjs +47 -0
- package/lib/Alert/Alert.mjs +45 -0
- package/lib/Alert/styles.css +1 -0
- package/lib/Align/Align.cjs +28 -0
- package/lib/Align/Align.mjs +26 -0
- package/lib/Align/styles.css +1 -0
- package/lib/AppButton/AppButton.cjs +68 -0
- package/lib/AppButton/AppButton.mjs +66 -0
- package/lib/AppButton/styles.css +1 -0
- package/lib/Avatar/Avatar.cjs +17 -0
- package/lib/Avatar/Avatar.mjs +11 -0
- package/lib/Avatar/styles.css +1 -0
- package/lib/AvatarGroup/AvatarGroup.cjs +33 -0
- package/lib/AvatarGroup/AvatarGroup.mjs +31 -0
- package/lib/AvatarGroup/styles.css +1 -0
- package/lib/Badge/Badge.cjs +12 -0
- package/lib/Badge/Badge.mjs +6 -0
- package/lib/Badge/styles.css +1 -0
- package/lib/Banner/Banner.cjs +24 -0
- package/lib/Banner/Banner.mjs +22 -0
- package/lib/Box/Box.cjs +12 -0
- package/lib/Box/Box.mjs +6 -0
- package/lib/Box/styles.css +1 -0
- package/lib/BrandLogo/BrandLogo.cjs +14 -0
- package/lib/BrandLogo/BrandLogo.mjs +7 -0
- package/lib/BrandLogo/styles.css +1 -0
- package/lib/Breadcrumbs/Breadcrumbs.cjs +17 -0
- package/lib/Breadcrumbs/Breadcrumbs.mjs +11 -0
- package/lib/Breadcrumbs/styles.css +1 -0
- package/lib/Button/Button.cjs +15 -0
- package/lib/Button/Button.mjs +9 -0
- package/lib/Button/styles.css +1 -0
- package/lib/ButtonGroup/ButtonGroup.cjs +33 -0
- package/lib/ButtonGroup/ButtonGroup.mjs +31 -0
- package/lib/ButtonGroup/styles.css +1 -0
- package/lib/ButtonV2/ButtonV2.cjs +15 -0
- package/lib/ButtonV2/ButtonV2.mjs +9 -0
- package/lib/ButtonV2/styles.css +1 -0
- package/lib/Calendar/Calendar.cjs +21 -0
- package/lib/Calendar/Calendar.mjs +15 -0
- package/lib/Calendar/styles.css +1 -0
- package/lib/CardFooter/CardFooter.cjs +17 -0
- package/lib/CardFooter/CardFooter.mjs +11 -0
- package/lib/CardFooter/styles.css +1 -0
- package/lib/CardHeading/CardHeading.cjs +14 -0
- package/lib/CardHeading/CardHeading.mjs +8 -0
- package/lib/CardHeading/styles.css +1 -0
- package/lib/Carousel/Carousel.cjs +1902 -0
- package/lib/Carousel/Carousel.mjs +1900 -0
- package/lib/Carousel/styles.css +1 -0
- package/lib/Checkbox/Checkbox.cjs +18 -0
- package/lib/Checkbox/Checkbox.mjs +12 -0
- package/lib/Checkbox/styles.css +1 -0
- package/lib/Columns/Columns.cjs +12 -0
- package/lib/Columns/Columns.mjs +6 -0
- package/lib/Columns/styles.css +1 -0
- package/lib/ComboBox/ComboBox.cjs +27 -0
- package/lib/ComboBox/ComboBox.mjs +21 -0
- package/lib/ComboBox/styles.css +1 -0
- package/lib/ConditionalWrapper/ConditionalWrapper.cjs +8 -0
- package/lib/ConditionalWrapper/ConditionalWrapper.mjs +2 -0
- package/lib/ContentSwitcher/ContentSwitcher.cjs +22 -0
- package/lib/ContentSwitcher/ContentSwitcher.mjs +13 -0
- package/lib/ContentSwitcher/styles.css +1 -0
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +21 -0
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +15 -0
- package/lib/ContentSwitcherDropdown/styles.css +1 -0
- package/lib/DatePicker/DatePicker.cjs +39 -0
- package/lib/DatePicker/DatePicker.mjs +28 -0
- package/lib/DatePicker/styles.css +1 -0
- package/lib/Disclosure/Disclosure.cjs +34 -0
- package/lib/Disclosure/Disclosure.mjs +32 -0
- package/lib/Disclosure/styles.css +1 -0
- package/lib/DisclosureMini/DisclosureMini.cjs +15 -0
- package/lib/DisclosureMini/DisclosureMini.mjs +9 -0
- package/lib/DisclosureMini/styles.css +1 -0
- package/lib/Download/Download.cjs +16 -0
- package/lib/Download/Download.mjs +10 -0
- package/lib/Download/styles.css +1 -0
- package/lib/Drawer/Drawer.cjs +374 -0
- package/lib/Drawer/Drawer.mjs +354 -0
- package/lib/Drawer/styles.css +1 -0
- package/lib/Elevation/Elevation.cjs +21 -0
- package/lib/Elevation/Elevation.mjs +19 -0
- package/lib/Elevation/styles.css +1 -0
- package/lib/Filter/Filter.cjs +13 -0
- package/lib/Filter/Filter.mjs +7 -0
- package/lib/Filter/styles.css +1 -0
- package/lib/FormControl/FormControl.cjs +18 -0
- package/lib/FormControl/FormControl.mjs +11 -0
- package/lib/FormControl/styles.css +1 -0
- package/lib/Grid/Grid.cjs +12 -0
- package/lib/Grid/Grid.mjs +6 -0
- package/lib/Grid/styles.css +1 -0
- package/lib/Group/Group.cjs +12 -0
- package/lib/Group/Group.mjs +6 -0
- package/lib/Group/styles.css +1 -0
- package/lib/Heading/Heading.cjs +14 -0
- package/lib/Heading/Heading.mjs +7 -0
- package/lib/Heading/styles.css +1 -0
- package/lib/HeroBanner/HeroBanner.cjs +28 -0
- package/lib/HeroBanner/HeroBanner.mjs +26 -0
- package/lib/HeroBanner/styles.css +1 -0
- package/lib/HeroButton/HeroButton.cjs +15 -0
- package/lib/HeroButton/HeroButton.mjs +9 -0
- package/lib/HeroButton/styles.css +1 -0
- package/lib/Hidden/Hidden.cjs +18 -0
- package/lib/Hidden/Hidden.mjs +16 -0
- package/lib/Hidden/styles.css +1 -0
- package/lib/Icon/Icon.cjs +14 -0
- package/lib/Icon/Icon.mjs +7 -0
- package/lib/Icon/styles.css +1 -0
- package/lib/Image/Image.cjs +15 -0
- package/lib/Image/Image.mjs +6 -0
- package/lib/Image/styles.css +1 -0
- package/lib/ImpactCard/ImpactCard.cjs +39 -0
- package/lib/ImpactCard/ImpactCard.mjs +37 -0
- package/lib/ImpactCard/styles.css +1 -0
- package/lib/InformationCard/InformationCard.cjs +94 -0
- package/lib/InformationCard/InformationCard.mjs +92 -0
- package/lib/InformationCard/styles.css +1 -0
- package/lib/Link/Link.cjs +71 -0
- package/lib/Link/Link.mjs +69 -0
- package/lib/Link/styles.css +1 -0
- package/lib/Markup/Markup.cjs +22 -0
- package/lib/Markup/Markup.mjs +20 -0
- package/lib/Markup/styles.css +1 -0
- package/lib/MediaCard/MediaCard.cjs +26 -0
- package/lib/MediaCard/MediaCard.mjs +20 -0
- package/lib/MediaCard/styles.css +1 -0
- package/lib/Modal/Modal.cjs +73 -0
- package/lib/Modal/Modal.mjs +71 -0
- package/lib/Modal/styles.css +1 -0
- package/lib/Pagination/Pagination.cjs +77 -0
- package/lib/Pagination/Pagination.mjs +75 -0
- package/lib/Pagination/styles.css +1 -0
- package/lib/PaginationSimple/PaginationSimple.cjs +106 -0
- package/lib/PaginationSimple/PaginationSimple.mjs +104 -0
- package/lib/PaginationSimple/styles.css +1 -0
- package/lib/Popover/Popover.cjs +36 -0
- package/lib/Popover/Popover.mjs +34 -0
- package/lib/Popover/styles.css +1 -0
- package/lib/Poster/Poster.cjs +14 -0
- package/lib/Poster/Poster.mjs +8 -0
- package/lib/Poster/styles.css +1 -0
- package/lib/ProgressBar/ProgressBar.cjs +65 -0
- package/lib/ProgressBar/ProgressBar.mjs +63 -0
- package/lib/ProgressBar/styles.css +1 -0
- package/lib/ProgressStepper/ProgressStepper.cjs +17 -0
- package/lib/ProgressStepper/ProgressStepper.mjs +10 -0
- package/lib/ProgressStepper/styles.css +1 -0
- package/lib/RadioCardGroup/RadioCardGroup.cjs +20 -0
- package/lib/RadioCardGroup/RadioCardGroup.mjs +14 -0
- package/lib/RadioCardGroup/styles.css +1 -0
- package/lib/RadioGroup/RadioGroup.cjs +19 -0
- package/lib/RadioGroup/RadioGroup.mjs +12 -0
- package/lib/RadioGroup/styles.css +1 -0
- package/lib/Rule/Rule.cjs +24 -0
- package/lib/Rule/Rule.mjs +22 -0
- package/lib/Rule/styles.css +1 -0
- package/lib/ScrollToTop/ScrollToTop.cjs +62 -0
- package/lib/ScrollToTop/ScrollToTop.mjs +60 -0
- package/lib/ScrollToTop/styles.css +1 -0
- package/lib/Section/Section.cjs +10 -0
- package/lib/Section/Section.mjs +4 -0
- package/lib/Section/styles.css +1 -0
- package/lib/Select/Select.cjs +82 -0
- package/lib/Select/Select.mjs +80 -0
- package/lib/Select/styles.css +1 -0
- package/lib/SiteFooter/SiteFooter.cjs +21 -0
- package/lib/SiteFooter/SiteFooter.mjs +13 -0
- package/lib/SiteFooter/styles.css +1 -0
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +24 -0
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +18 -0
- package/lib/SiteHeaderV2/styles.css +1 -0
- package/lib/Skeleton/Skeleton.cjs +20 -0
- package/lib/Skeleton/Skeleton.mjs +18 -0
- package/lib/Skeleton/styles.css +1 -0
- package/lib/SkipLink/SkipLink.cjs +9 -0
- package/lib/SkipLink/SkipLink.mjs +3 -0
- package/lib/SkipLink/styles.css +1 -0
- package/lib/Spinner/Spinner.cjs +10 -0
- package/lib/Spinner/Spinner.mjs +4 -0
- package/lib/Spinner/styles.css +1 -0
- package/lib/Surface/Surface.cjs +14 -0
- package/lib/Surface/Surface.mjs +5 -0
- package/lib/Surface/styles.css +1 -0
- package/lib/Switch/Switch.cjs +232 -0
- package/lib/Switch/Switch.mjs +230 -0
- package/lib/Switch/styles.css +1 -0
- package/lib/TabbedBanner/TabbedBanner.cjs +66 -0
- package/lib/TabbedBanner/TabbedBanner.mjs +64 -0
- package/lib/TabbedBanner/styles.css +1 -0
- package/lib/Tabs/Tabs.cjs +19 -0
- package/lib/Tabs/Tabs.mjs +12 -0
- package/lib/Tabs/styles.css +1 -0
- package/lib/Tag/Tag.cjs +80 -0
- package/lib/Tag/Tag.mjs +78 -0
- package/lib/Tag/styles.css +1 -0
- package/lib/TemplateBanner/TemplateBanner.cjs +21 -0
- package/lib/TemplateBanner/TemplateBanner.mjs +15 -0
- package/lib/TemplateBanner/styles.css +1 -0
- package/lib/Text/Text.cjs +13 -0
- package/lib/Text/Text.mjs +7 -0
- package/lib/Text/styles.css +1 -0
- package/lib/TextArea/TextArea.cjs +121 -0
- package/lib/TextArea/TextArea.mjs +119 -0
- package/lib/TextArea/styles.css +1 -0
- package/lib/TextInput/TextInput.cjs +19 -0
- package/lib/TextInput/TextInput.mjs +13 -0
- package/lib/TextInput/styles.css +1 -0
- package/lib/Theme/Theme.cjs +75 -0
- package/lib/Theme/Theme.mjs +72 -0
- package/lib/Theme/styles.css +1 -0
- package/lib/ThemeIcon/ThemeIcon.cjs +13 -0
- package/lib/ThemeIcon/ThemeIcon.mjs +7 -0
- package/lib/ThemeIcon/styles.css +1 -0
- package/lib/Toast/Toast.cjs +17 -0
- package/lib/Toast/Toast.mjs +11 -0
- package/lib/Toast/styles.css +1 -0
- package/lib/Tooltip/Tooltip.cjs +554 -0
- package/lib/Tooltip/Tooltip.mjs +534 -0
- package/lib/Tooltip/styles.css +1 -0
- package/lib/Truncate/Truncate.cjs +12 -0
- package/lib/Truncate/Truncate.mjs +10 -0
- package/lib/Truncate/styles.css +1 -0
- package/lib/TypographyCard/TypographyCard.cjs +36 -0
- package/lib/TypographyCard/TypographyCard.mjs +34 -0
- package/lib/TypographyCard/styles.css +1 -0
- package/lib/UniversalHeader/UniversalHeader.cjs +12 -0
- package/lib/UniversalHeader/UniversalHeader.mjs +6 -0
- package/lib/UniversalHeader/styles.css +1 -0
- package/lib/VerticalSpace/VerticalSpace.cjs +10 -0
- package/lib/VerticalSpace/VerticalSpace.mjs +4 -0
- package/lib/VerticalSpace/styles.css +1 -0
- package/lib/VideoPlayer/VideoPlayer.cjs +3203 -0
- package/lib/VideoPlayer/VideoPlayer.mjs +3201 -0
- package/lib/VideoPlayer/styles.css +1 -0
- package/lib/Visible/Visible.cjs +18 -0
- package/lib/Visible/Visible.mjs +16 -0
- package/lib/Visible/styles.css +1 -0
- package/lib/VisuallyHidden/VisuallyHidden.cjs +9 -0
- package/lib/VisuallyHidden/VisuallyHidden.mjs +3 -0
- package/lib/VisuallyHidden/styles.css +1 -0
- package/lib/_shared/cjs/Avatar-CO_KcWAu.cjs +44 -0
- package/lib/_shared/cjs/Badge-CQVEPH9v.cjs +14 -0
- package/lib/_shared/cjs/Box-COPXU1Jf.cjs +25 -0
- package/lib/_shared/cjs/BrandLogo-D5wlIFmm.cjs +29 -0
- package/lib/_shared/cjs/Breadcrumbs-Ct2tJs5-.cjs +101 -0
- package/lib/_shared/cjs/Button-b36K7-Cf.cjs +50 -0
- package/lib/_shared/cjs/ButtonV2-DitTW91Z.cjs +49 -0
- package/lib/_shared/cjs/Calendar-BC-wjsFG.cjs +1924 -0
- package/lib/_shared/cjs/CardFooter-BA8K3lsL.cjs +75 -0
- package/lib/_shared/cjs/CardHeading-DJHqAMXm.cjs +12 -0
- package/lib/_shared/cjs/Checkbox-D2UQsmiB.cjs +88 -0
- package/lib/_shared/cjs/Columns-vV_2g6iR.cjs +47 -0
- package/lib/_shared/cjs/Combination-C5xlVcaJ.cjs +1294 -0
- package/lib/_shared/cjs/ComboBox-BLV3qdpH.cjs +290 -0
- package/lib/_shared/cjs/ContentSwitcher-DN5eEyc3.cjs +108 -0
- package/lib/_shared/cjs/ContentSwitcherDropdown-3N9Hv-WU.cjs +71 -0
- package/lib/_shared/cjs/DatePicker-CmRbyMHi.cjs +316 -0
- package/lib/_shared/cjs/DisclosureMini-CtvDxVaG.cjs +37 -0
- package/lib/_shared/cjs/Download-CrIytI74.cjs +39 -0
- package/lib/_shared/cjs/Filter-qdfbndHd.cjs +120 -0
- package/lib/_shared/cjs/FormControl-D3-JbAVb.cjs +108 -0
- package/lib/_shared/cjs/Grid-D9hh5dMx.cjs +44 -0
- package/lib/_shared/cjs/Group-CXH1eTrP.cjs +38 -0
- package/lib/_shared/cjs/Heading-ByiXEHGj.cjs +38 -0
- package/lib/_shared/cjs/HeroButton-D0w6E67b.cjs +123 -0
- package/lib/_shared/cjs/Icon-DdqFr6bT.cjs +52 -0
- package/lib/_shared/cjs/Image-Bk-IOgez.cjs +56 -0
- package/lib/_shared/cjs/MediaCard-DEbY0pn4.cjs +61 -0
- package/lib/_shared/cjs/Poster-DD5EQ-X1.cjs +42 -0
- package/lib/_shared/cjs/Preview-BYuMaIh7.cjs +175 -0
- package/lib/_shared/cjs/ProgressStepper-SGsD7ZHy.cjs +93 -0
- package/lib/_shared/cjs/RadioCardGroup-BqDsRkMM.cjs +81 -0
- package/lib/_shared/cjs/RadioGroup-CTam1JqK.cjs +81 -0
- package/lib/_shared/cjs/Section-wUVdzmGA.cjs +21 -0
- package/lib/_shared/cjs/SiteFooter-KApsSEZz.cjs +68 -0
- package/lib/_shared/cjs/SiteHeaderV2-CYLoQkgz.cjs +645 -0
- package/lib/_shared/cjs/SkipLink-mJJv4-9E.cjs +18 -0
- package/lib/_shared/cjs/Spinner-bbrOwxv2.cjs +16 -0
- package/lib/_shared/cjs/Surface-BFx1yNsq.cjs +55 -0
- package/lib/_shared/cjs/Tabs-CsTC__0B.cjs +88 -0
- package/lib/_shared/cjs/TemplateBanner-DvwXqJMm.cjs +65 -0
- package/lib/_shared/cjs/Text-Cr5nmYmx.cjs +29 -0
- package/lib/_shared/cjs/TextInput-DT4hi02U.cjs +107 -0
- package/lib/_shared/cjs/ThemeIcon-BoxbjTaQ.cjs +23 -0
- package/lib/_shared/cjs/Toast-DLjxph76.cjs +995 -0
- package/lib/_shared/cjs/UniversalHeader-DUo1yR-g.cjs +29 -0
- package/lib/_shared/cjs/VerticalSpace-BJvST6WP.cjs +25 -0
- package/lib/_shared/cjs/VisuallyHidden-B4XCvPYP.cjs +14 -0
- package/lib/_shared/cjs/capitalise-first-letter-CdhexpSx.cjs +8 -0
- package/lib/_shared/cjs/debounce-BeIT3oyF.cjs +659 -0
- package/lib/_shared/cjs/filter-attrs-eK6E_34o.cjs +72 -0
- package/lib/_shared/cjs/index-B11wQrRa.cjs +2208 -0
- package/lib/_shared/cjs/index-BCsybVMl.cjs +1175 -0
- package/lib/_shared/cjs/index-BCu-VH8y.cjs +416 -0
- package/lib/_shared/cjs/index-BoR_yLsK.cjs +858 -0
- package/lib/_shared/cjs/index-CztwwwKE.cjs +375 -0
- package/lib/_shared/cjs/index-DCBkpeuX.cjs +457 -0
- package/lib/_shared/cjs/index-DM20WK5o.cjs +194 -0
- package/lib/_shared/cjs/index-DR8Rkav9.cjs +130 -0
- package/lib/_shared/cjs/index-DXNM3D1d.cjs +196 -0
- package/lib/_shared/cjs/index-DmvtEa22.cjs +219 -0
- package/lib/_shared/cjs/index-dEuvxpL3.cjs +1556 -0
- package/lib/_shared/cjs/index.es-gP1lKcqE.cjs +19 -0
- package/lib/_shared/cjs/suffix-modifier-DLUGR-yG.cjs +10 -0
- package/lib/_shared/esm/Avatar-RQ3Bn9NC.mjs +42 -0
- package/lib/_shared/esm/Badge-BZ7E0zcQ.mjs +12 -0
- package/lib/_shared/esm/Box-BYm_GTct.mjs +23 -0
- package/lib/_shared/esm/BrandLogo-_2Z_8I2Y.mjs +26 -0
- package/lib/_shared/esm/Breadcrumbs-Dvhyjy1c.mjs +99 -0
- package/lib/_shared/esm/Button-DtmI3xYm.mjs +48 -0
- package/lib/_shared/esm/ButtonV2-yixMtjeC.mjs +47 -0
- package/lib/_shared/esm/Calendar-BM7KALf9.mjs +1919 -0
- package/lib/_shared/esm/CardFooter-B1zkMZd9.mjs +73 -0
- package/lib/_shared/esm/CardHeading-C7ZPtnmj.mjs +10 -0
- package/lib/_shared/esm/Checkbox-NxnK40uZ.mjs +86 -0
- package/lib/_shared/esm/Columns-CxNZc7lV.mjs +45 -0
- package/lib/_shared/esm/Combination-BWqjRkSE.mjs +1267 -0
- package/lib/_shared/esm/ComboBox-Cww79__R.mjs +288 -0
- package/lib/_shared/esm/ContentSwitcher-CWxxoWTA.mjs +103 -0
- package/lib/_shared/esm/ContentSwitcherDropdown-CSsewSNR.mjs +69 -0
- package/lib/_shared/esm/DatePicker-DBX6wi3O.mjs +309 -0
- package/lib/_shared/esm/DisclosureMini-B9LzsQC2.mjs +35 -0
- package/lib/_shared/esm/Download-DFz_1HCG.mjs +37 -0
- package/lib/_shared/esm/Filter-C6tm6z36.mjs +118 -0
- package/lib/_shared/esm/FormControl-B9fp1ilz.mjs +104 -0
- package/lib/_shared/esm/Grid-YLHV9FOw.mjs +42 -0
- package/lib/_shared/esm/Group-IeAmNyQM.mjs +36 -0
- package/lib/_shared/esm/Heading-CtGuamJw.mjs +35 -0
- package/lib/_shared/esm/HeroButton-B1bJcYq3.mjs +121 -0
- package/lib/_shared/esm/Icon-B626JGP1.mjs +49 -0
- package/lib/_shared/esm/Image-Bx91_r2O.mjs +51 -0
- package/lib/_shared/esm/MediaCard-OZMQZjSh.mjs +59 -0
- package/lib/_shared/esm/Poster-B49pPgP_.mjs +40 -0
- package/lib/_shared/esm/Preview-AHYIJh9S.mjs +173 -0
- package/lib/_shared/esm/ProgressStepper-yMm9a5q7.mjs +90 -0
- package/lib/_shared/esm/RadioCardGroup-D2UZsecc.mjs +79 -0
- package/lib/_shared/esm/RadioGroup-Dt2GI6Ps.mjs +78 -0
- package/lib/_shared/esm/Section-DDygQ5Az.mjs +19 -0
- package/lib/_shared/esm/SiteFooter-C6OLx0Jn.mjs +64 -0
- package/lib/_shared/esm/SiteHeaderV2-BpTiemru.mjs +643 -0
- package/lib/_shared/esm/SkipLink-By4ViYhR.mjs +16 -0
- package/lib/_shared/esm/Spinner-Cd7LiPTy.mjs +14 -0
- package/lib/_shared/esm/Surface-Colbp3Zx.mjs +50 -0
- package/lib/_shared/esm/Tabs-DTxciSmI.mjs +85 -0
- package/lib/_shared/esm/TemplateBanner-mMKf6sDd.mjs +63 -0
- package/lib/_shared/esm/Text-CBlnm5CT.mjs +27 -0
- package/lib/_shared/esm/TextInput-Vp_cBbpQ.mjs +104 -0
- package/lib/_shared/esm/ThemeIcon-CN_Ed5b1.mjs +21 -0
- package/lib/_shared/esm/Toast-DjWsXi6n.mjs +993 -0
- package/lib/_shared/esm/UniversalHeader-4Qm-HxD7.mjs +27 -0
- package/lib/_shared/esm/VerticalSpace-Duhm0zXP.mjs +23 -0
- package/lib/_shared/esm/VisuallyHidden-DqAgoqJo.mjs +12 -0
- package/lib/_shared/esm/capitalise-first-letter-Cubg2CS1.mjs +6 -0
- package/lib/_shared/esm/debounce-mCD9-ufA.mjs +657 -0
- package/lib/_shared/esm/filter-attrs-B6CM-NUr.mjs +68 -0
- package/lib/_shared/esm/index-6HtUz28p.mjs +216 -0
- package/lib/_shared/esm/index-BYYnPaYO.mjs +431 -0
- package/lib/_shared/esm/index-CVbKsmi-.mjs +393 -0
- package/lib/_shared/esm/index-DAKCDHmP.mjs +171 -0
- package/lib/_shared/esm/index-DBBWLR4b.mjs +825 -0
- package/lib/_shared/esm/index-DKUZMeu5.mjs +169 -0
- package/lib/_shared/esm/index-DTF1_dbG.mjs +2178 -0
- package/lib/_shared/esm/index-DXHprNQ6.mjs +364 -0
- package/lib/_shared/esm/index-Spae4j7j.mjs +128 -0
- package/lib/_shared/esm/index-sjWSIoCo.mjs +1150 -0
- package/lib/_shared/esm/index-uZWnqtCw.mjs +1524 -0
- package/lib/_shared/esm/index.es-C7HkLzRN.mjs +12 -0
- package/lib/_shared/esm/suffix-modifier-B_pO0UkF.mjs +8 -0
- package/lib/index.cjs +25374 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.cts +4040 -0
- package/lib/index.d.mts +4040 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +25251 -0
- package/lib/index.mjs.map +1 -0
- package/lib/styles.css +15 -0
- package/lib/use-media-query/use-media-query.cjs +8 -0
- package/lib/use-media-query/use-media-query.mjs +2 -0
- package/package.json +87 -82
- package/dist/Alert/Alert.cjs.js +0 -45
- package/dist/Alert/Alert.esm.js +0 -43
- package/dist/Alert/package.json +0 -7
- package/dist/Alert/styles.css +0 -1
- package/dist/Align/Align.cjs.js +0 -26
- package/dist/Align/Align.esm.js +0 -24
- package/dist/Align/package.json +0 -7
- package/dist/Align/styles.css +0 -1
- package/dist/AppButton/AppButton.cjs.js +0 -68
- package/dist/AppButton/AppButton.esm.js +0 -66
- package/dist/AppButton/package.json +0 -7
- package/dist/AppButton/styles.css +0 -1
- package/dist/Avatar/Avatar.cjs.js +0 -15
- package/dist/Avatar/Avatar.esm.js +0 -9
- package/dist/Avatar/package.json +0 -7
- package/dist/Avatar/styles.css +0 -1
- package/dist/AvatarGroup/AvatarGroup.cjs.js +0 -31
- package/dist/AvatarGroup/AvatarGroup.esm.js +0 -29
- package/dist/AvatarGroup/package.json +0 -7
- package/dist/AvatarGroup/styles.css +0 -1
- package/dist/Badge/Badge.cjs.js +0 -10
- package/dist/Badge/Badge.esm.js +0 -4
- package/dist/Badge/package.json +0 -7
- package/dist/Badge/styles.css +0 -1
- package/dist/Banner/Banner.cjs.js +0 -22
- package/dist/Banner/Banner.esm.js +0 -20
- package/dist/Banner/package.json +0 -7
- package/dist/Box/Box.cjs.js +0 -11
- package/dist/Box/Box.esm.js +0 -5
- package/dist/Box/package.json +0 -7
- package/dist/Box/styles.css +0 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +0 -11
- package/dist/BrandLogo/BrandLogo.esm.js +0 -5
- package/dist/BrandLogo/package.json +0 -7
- package/dist/BrandLogo/styles.css +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +0 -15
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +0 -9
- package/dist/Breadcrumbs/package.json +0 -7
- package/dist/Breadcrumbs/styles.css +0 -1
- package/dist/Button/Button.cjs.js +0 -13
- package/dist/Button/Button.esm.js +0 -7
- package/dist/Button/package.json +0 -7
- package/dist/Button/styles.css +0 -1
- package/dist/ButtonGroup/ButtonGroup.cjs.js +0 -31
- package/dist/ButtonGroup/ButtonGroup.esm.js +0 -29
- package/dist/ButtonGroup/package.json +0 -7
- package/dist/ButtonGroup/styles.css +0 -1
- package/dist/ButtonV2/ButtonV2.cjs.js +0 -13
- package/dist/ButtonV2/ButtonV2.esm.js +0 -7
- package/dist/ButtonV2/package.json +0 -7
- package/dist/ButtonV2/styles.css +0 -1
- package/dist/Calendar/Calendar.cjs.js +0 -19
- package/dist/Calendar/Calendar.esm.js +0 -13
- package/dist/Calendar/package.json +0 -7
- package/dist/Calendar/styles.css +0 -1
- package/dist/CardFooter/CardFooter.cjs.js +0 -15
- package/dist/CardFooter/CardFooter.esm.js +0 -9
- package/dist/CardFooter/package.json +0 -7
- package/dist/CardFooter/styles.css +0 -1
- package/dist/CardHeading/CardHeading.cjs.js +0 -12
- package/dist/CardHeading/CardHeading.esm.js +0 -6
- package/dist/CardHeading/package.json +0 -7
- package/dist/CardHeading/styles.css +0 -1
- package/dist/Carousel/Carousel.cjs.js +0 -1909
- package/dist/Carousel/Carousel.esm.js +0 -1907
- package/dist/Carousel/package.json +0 -7
- package/dist/Carousel/styles.css +0 -1
- package/dist/Checkbox/Checkbox.cjs.js +0 -16
- package/dist/Checkbox/Checkbox.esm.js +0 -10
- package/dist/Checkbox/package.json +0 -7
- package/dist/Checkbox/styles.css +0 -1
- package/dist/Columns/Columns.cjs.js +0 -10
- package/dist/Columns/Columns.esm.js +0 -4
- package/dist/Columns/package.json +0 -7
- package/dist/Columns/styles.css +0 -1
- package/dist/ComboBox/ComboBox.cjs.js +0 -27
- package/dist/ComboBox/ComboBox.esm.js +0 -21
- package/dist/ComboBox/package.json +0 -7
- package/dist/ComboBox/styles.css +0 -1
- package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +0 -8
- package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +0 -2
- package/dist/ConditionalWrapper/package.json +0 -7
- package/dist/ContentSwitcher/ContentSwitcher.cjs.js +0 -18
- package/dist/ContentSwitcher/ContentSwitcher.esm.js +0 -12
- package/dist/ContentSwitcher/package.json +0 -7
- package/dist/ContentSwitcher/styles.css +0 -1
- package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +0 -23
- package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +0 -17
- package/dist/ContentSwitcherDropdown/package.json +0 -7
- package/dist/ContentSwitcherDropdown/styles.css +0 -1
- package/dist/DatePicker/DatePicker.cjs.js +0 -39
- package/dist/DatePicker/DatePicker.esm.js +0 -28
- package/dist/DatePicker/package.json +0 -7
- package/dist/DatePicker/styles.css +0 -1
- package/dist/Disclosure/Disclosure.cjs.js +0 -32
- package/dist/Disclosure/Disclosure.esm.js +0 -30
- package/dist/Disclosure/package.json +0 -7
- package/dist/Disclosure/styles.css +0 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +0 -13
- package/dist/DisclosureMini/DisclosureMini.esm.js +0 -7
- package/dist/DisclosureMini/package.json +0 -7
- package/dist/DisclosureMini/styles.css +0 -1
- package/dist/Download/Download.cjs.js +0 -14
- package/dist/Download/Download.esm.js +0 -8
- package/dist/Download/package.json +0 -7
- package/dist/Download/styles.css +0 -1
- package/dist/Drawer/Drawer.cjs.js +0 -374
- package/dist/Drawer/Drawer.esm.js +0 -354
- package/dist/Drawer/package.json +0 -7
- package/dist/Drawer/styles.css +0 -1
- package/dist/Elevation/Elevation.cjs.js +0 -21
- package/dist/Elevation/Elevation.esm.js +0 -19
- package/dist/Elevation/package.json +0 -7
- package/dist/Elevation/styles.css +0 -1
- package/dist/Filter/Filter.cjs.js +0 -12
- package/dist/Filter/Filter.esm.js +0 -6
- package/dist/Filter/package.json +0 -7
- package/dist/Filter/styles.css +0 -1
- package/dist/FormControl/FormControl.cjs.js +0 -16
- package/dist/FormControl/FormControl.esm.js +0 -9
- package/dist/FormControl/package.json +0 -7
- package/dist/FormControl/styles.css +0 -1
- package/dist/Grid/Grid.cjs.js +0 -10
- package/dist/Grid/Grid.esm.js +0 -4
- package/dist/Grid/package.json +0 -7
- package/dist/Grid/styles.css +0 -1
- package/dist/Group/Group.cjs.js +0 -11
- package/dist/Group/Group.esm.js +0 -5
- package/dist/Group/package.json +0 -7
- package/dist/Group/styles.css +0 -1
- package/dist/Heading/Heading.cjs.js +0 -11
- package/dist/Heading/Heading.esm.js +0 -5
- package/dist/Heading/package.json +0 -7
- package/dist/Heading/styles.css +0 -1
- package/dist/HeroBanner/HeroBanner.cjs.js +0 -26
- package/dist/HeroBanner/HeroBanner.esm.js +0 -24
- package/dist/HeroBanner/package.json +0 -7
- package/dist/HeroBanner/styles.css +0 -1
- package/dist/HeroButton/HeroButton.cjs.js +0 -13
- package/dist/HeroButton/HeroButton.esm.js +0 -7
- package/dist/HeroButton/package.json +0 -7
- package/dist/HeroButton/styles.css +0 -1
- package/dist/Hidden/Hidden.cjs.js +0 -18
- package/dist/Hidden/Hidden.esm.js +0 -16
- package/dist/Hidden/package.json +0 -7
- package/dist/Hidden/styles.css +0 -1
- package/dist/Icon/Icon.cjs.js +0 -11
- package/dist/Icon/Icon.esm.js +0 -5
- package/dist/Icon/package.json +0 -7
- package/dist/Icon/styles.css +0 -1
- package/dist/Image/Image.cjs.js +0 -11
- package/dist/Image/Image.esm.js +0 -4
- package/dist/Image/package.json +0 -7
- package/dist/Image/styles.css +0 -1
- package/dist/ImpactCard/ImpactCard.cjs.js +0 -37
- package/dist/ImpactCard/ImpactCard.esm.js +0 -35
- package/dist/ImpactCard/package.json +0 -7
- package/dist/ImpactCard/styles.css +0 -1
- package/dist/InformationCard/InformationCard.cjs.js +0 -54
- package/dist/InformationCard/InformationCard.esm.js +0 -52
- package/dist/InformationCard/package.json +0 -7
- package/dist/InformationCard/styles.css +0 -1
- package/dist/Link/Link.cjs.js +0 -69
- package/dist/Link/Link.esm.js +0 -67
- package/dist/Link/package.json +0 -7
- package/dist/Link/styles.css +0 -1
- package/dist/Markup/Markup.cjs.js +0 -21
- package/dist/Markup/Markup.esm.js +0 -19
- package/dist/Markup/package.json +0 -7
- package/dist/Markup/styles.css +0 -1
- package/dist/MediaCard/MediaCard.cjs.js +0 -24
- package/dist/MediaCard/MediaCard.esm.js +0 -18
- package/dist/MediaCard/package.json +0 -7
- package/dist/MediaCard/styles.css +0 -1
- package/dist/Modal/Modal.cjs.js +0 -73
- package/dist/Modal/Modal.esm.js +0 -71
- package/dist/Modal/package.json +0 -7
- package/dist/Modal/styles.css +0 -1
- package/dist/Pagination/Pagination.cjs.js +0 -75
- package/dist/Pagination/Pagination.esm.js +0 -73
- package/dist/Pagination/package.json +0 -7
- package/dist/Pagination/styles.css +0 -1
- package/dist/PaginationSimple/PaginationSimple.cjs.js +0 -104
- package/dist/PaginationSimple/PaginationSimple.esm.js +0 -102
- package/dist/PaginationSimple/package.json +0 -7
- package/dist/PaginationSimple/styles.css +0 -1
- package/dist/Popover/Popover.cjs.js +0 -36
- package/dist/Popover/Popover.esm.js +0 -34
- package/dist/Popover/package.json +0 -7
- package/dist/Popover/styles.css +0 -1
- package/dist/Poster/Poster.cjs.js +0 -12
- package/dist/Poster/Poster.esm.js +0 -6
- package/dist/Poster/package.json +0 -7
- package/dist/Poster/styles.css +0 -1
- package/dist/ProgressBar/ProgressBar.cjs.js +0 -63
- package/dist/ProgressBar/ProgressBar.esm.js +0 -61
- package/dist/ProgressBar/package.json +0 -7
- package/dist/ProgressBar/styles.css +0 -1
- package/dist/ProgressStepper/ProgressStepper.cjs.js +0 -13
- package/dist/ProgressStepper/ProgressStepper.esm.js +0 -7
- package/dist/ProgressStepper/package.json +0 -7
- package/dist/ProgressStepper/styles.css +0 -1
- package/dist/RadioCardGroup/RadioCardGroup.cjs.js +0 -17
- package/dist/RadioCardGroup/RadioCardGroup.esm.js +0 -11
- package/dist/RadioCardGroup/package.json +0 -7
- package/dist/RadioCardGroup/styles.css +0 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +0 -17
- package/dist/RadioGroup/RadioGroup.esm.js +0 -10
- package/dist/RadioGroup/package.json +0 -7
- package/dist/RadioGroup/styles.css +0 -1
- package/dist/Rule/Rule.cjs.js +0 -23
- package/dist/Rule/Rule.esm.js +0 -21
- package/dist/Rule/package.json +0 -7
- package/dist/Rule/styles.css +0 -1
- package/dist/ScrollToTop/ScrollToTop.cjs.js +0 -60
- package/dist/ScrollToTop/ScrollToTop.esm.js +0 -58
- package/dist/ScrollToTop/package.json +0 -7
- package/dist/ScrollToTop/styles.css +0 -1
- package/dist/Section/Section.cjs.js +0 -10
- package/dist/Section/Section.esm.js +0 -4
- package/dist/Section/package.json +0 -7
- package/dist/Section/styles.css +0 -1
- package/dist/Select/Select.cjs.js +0 -84
- package/dist/Select/Select.esm.js +0 -82
- package/dist/Select/package.json +0 -7
- package/dist/Select/styles.css +0 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +0 -17
- package/dist/SiteFooter/SiteFooter.esm.js +0 -11
- package/dist/SiteFooter/package.json +0 -7
- package/dist/SiteFooter/styles.css +0 -1
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +0 -22
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +0 -16
- package/dist/SiteHeaderV2/package.json +0 -7
- package/dist/SiteHeaderV2/styles.css +0 -1
- package/dist/Skeleton/Skeleton.cjs.js +0 -20
- package/dist/Skeleton/Skeleton.esm.js +0 -18
- package/dist/Skeleton/package.json +0 -7
- package/dist/Skeleton/styles.css +0 -1
- package/dist/SkipLink/SkipLink.cjs.js +0 -9
- package/dist/SkipLink/SkipLink.esm.js +0 -3
- package/dist/SkipLink/package.json +0 -7
- package/dist/SkipLink/styles.css +0 -1
- package/dist/Spinner/Spinner.cjs.js +0 -10
- package/dist/Spinner/Spinner.esm.js +0 -4
- package/dist/Spinner/package.json +0 -7
- package/dist/Spinner/styles.css +0 -1
- package/dist/Surface/Surface.cjs.js +0 -13
- package/dist/Surface/Surface.esm.js +0 -4
- package/dist/Surface/package.json +0 -7
- package/dist/Surface/styles.css +0 -1
- package/dist/Switch/Switch.cjs.js +0 -162
- package/dist/Switch/Switch.esm.js +0 -160
- package/dist/Switch/package.json +0 -7
- package/dist/Switch/styles.css +0 -1
- package/dist/TabbedBanner/TabbedBanner.cjs.js +0 -66
- package/dist/TabbedBanner/TabbedBanner.esm.js +0 -64
- package/dist/TabbedBanner/package.json +0 -7
- package/dist/TabbedBanner/styles.css +0 -1
- package/dist/Tabs/Tabs.cjs.js +0 -18
- package/dist/Tabs/Tabs.esm.js +0 -12
- package/dist/Tabs/package.json +0 -7
- package/dist/Tabs/styles.css +0 -1
- package/dist/Tag/Tag.cjs.js +0 -78
- package/dist/Tag/Tag.esm.js +0 -76
- package/dist/Tag/package.json +0 -7
- package/dist/Tag/styles.css +0 -1
- package/dist/TemplateBanner/TemplateBanner.cjs.js +0 -19
- package/dist/TemplateBanner/TemplateBanner.esm.js +0 -13
- package/dist/TemplateBanner/package.json +0 -7
- package/dist/TemplateBanner/styles.css +0 -1
- package/dist/Text/Text.cjs.js +0 -11
- package/dist/Text/Text.esm.js +0 -5
- package/dist/Text/package.json +0 -7
- package/dist/Text/styles.css +0 -1
- package/dist/TextArea/TextArea.cjs.js +0 -124
- package/dist/TextArea/TextArea.esm.js +0 -122
- package/dist/TextArea/package.json +0 -7
- package/dist/TextArea/styles.css +0 -1
- package/dist/TextInput/TextInput.cjs.js +0 -17
- package/dist/TextInput/TextInput.esm.js +0 -11
- package/dist/TextInput/package.json +0 -7
- package/dist/TextInput/styles.css +0 -1
- package/dist/Theme/Theme.cjs.js +0 -25
- package/dist/Theme/Theme.esm.js +0 -22
- package/dist/Theme/package.json +0 -7
- package/dist/Theme/styles.css +0 -1
- package/dist/ThemeIcon/ThemeIcon.cjs.js +0 -11
- package/dist/ThemeIcon/ThemeIcon.esm.js +0 -5
- package/dist/ThemeIcon/package.json +0 -7
- package/dist/ThemeIcon/styles.css +0 -1
- package/dist/Toast/Toast.cjs.js +0 -17
- package/dist/Toast/Toast.esm.js +0 -11
- package/dist/Toast/package.json +0 -7
- package/dist/Toast/styles.css +0 -1
- package/dist/Tooltip/Tooltip.cjs.js +0 -553
- package/dist/Tooltip/Tooltip.esm.js +0 -533
- package/dist/Tooltip/package.json +0 -7
- package/dist/Tooltip/styles.css +0 -1
- package/dist/Truncate/Truncate.cjs.js +0 -12
- package/dist/Truncate/Truncate.esm.js +0 -10
- package/dist/Truncate/package.json +0 -7
- package/dist/Truncate/styles.css +0 -1
- package/dist/TypographyCard/TypographyCard.cjs.js +0 -34
- package/dist/TypographyCard/TypographyCard.esm.js +0 -32
- package/dist/TypographyCard/package.json +0 -7
- package/dist/TypographyCard/styles.css +0 -1
- package/dist/UniversalHeader/UniversalHeader.cjs.js +0 -11
- package/dist/UniversalHeader/UniversalHeader.esm.js +0 -5
- package/dist/UniversalHeader/package.json +0 -7
- package/dist/UniversalHeader/styles.css +0 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.js +0 -10
- package/dist/VerticalSpace/VerticalSpace.esm.js +0 -4
- package/dist/VerticalSpace/package.json +0 -7
- package/dist/VerticalSpace/styles.css +0 -1
- package/dist/VideoPlayer/VideoPlayer.cjs.js +0 -3201
- package/dist/VideoPlayer/VideoPlayer.esm.js +0 -3199
- package/dist/VideoPlayer/package.json +0 -7
- package/dist/VideoPlayer/styles.css +0 -1
- package/dist/Visible/Visible.cjs.js +0 -18
- package/dist/Visible/Visible.esm.js +0 -16
- package/dist/Visible/package.json +0 -7
- package/dist/Visible/styles.css +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.cjs.js +0 -9
- package/dist/VisuallyHidden/VisuallyHidden.esm.js +0 -3
- package/dist/VisuallyHidden/package.json +0 -7
- package/dist/VisuallyHidden/styles.css +0 -1
- package/dist/_shared/cjs/Avatar-Caj5Cj5M.js +0 -44
- package/dist/_shared/cjs/Badge-CKKpzGxD.js +0 -13
- package/dist/_shared/cjs/Box-DHEgsHNm.js +0 -25
- package/dist/_shared/cjs/BrandLogo-IAXn8lnd.js +0 -26
- package/dist/_shared/cjs/Breadcrumbs-BwuRMZM-.js +0 -101
- package/dist/_shared/cjs/Button-DOYW7cIj.js +0 -49
- package/dist/_shared/cjs/ButtonV2-BhtTYaGh.js +0 -49
- package/dist/_shared/cjs/Calendar-HHjRQCvi.js +0 -1923
- package/dist/_shared/cjs/CardFooter-Bbn1wEJI.js +0 -75
- package/dist/_shared/cjs/CardHeading-BjSIrQC8.js +0 -12
- package/dist/_shared/cjs/Checkbox-D2j1GIQ6.js +0 -88
- package/dist/_shared/cjs/Columns-BFi_S894.js +0 -44
- package/dist/_shared/cjs/ComboBox-DUQckLrZ.js +0 -290
- package/dist/_shared/cjs/ContentSwitcher-ro4BnJjR.js +0 -17315
- package/dist/_shared/cjs/ContentSwitcherDropdown-COdUSVHm.js +0 -60
- package/dist/_shared/cjs/DatePicker-3lHRIkai.js +0 -316
- package/dist/_shared/cjs/DisclosureMini-Bln2KdOz.js +0 -37
- package/dist/_shared/cjs/Download-DEiQTPc3.js +0 -39
- package/dist/_shared/cjs/Filter-BheSbUnA.js +0 -120
- package/dist/_shared/cjs/FormControl-x7kC-Srg.js +0 -108
- package/dist/_shared/cjs/Grid-Bfnjhc5b.js +0 -41
- package/dist/_shared/cjs/Group-DZ8hdyp4.js +0 -36
- package/dist/_shared/cjs/Heading-lzfM5f17.js +0 -36
- package/dist/_shared/cjs/HeroButton-CNJkSeLs.js +0 -122
- package/dist/_shared/cjs/Icon-C5peYhWn.js +0 -43
- package/dist/_shared/cjs/Image-55IzIW6l.js +0 -51
- package/dist/_shared/cjs/MediaCard-DcApbyvL.js +0 -61
- package/dist/_shared/cjs/Poster-DbbbiYa_.js +0 -41
- package/dist/_shared/cjs/Preview-B-4AqOxZ.js +0 -175
- package/dist/_shared/cjs/ProgressStepper-CE6FGMTC.js +0 -91
- package/dist/_shared/cjs/RadioCardGroup-DWZrK-Cs.js +0 -80
- package/dist/_shared/cjs/RadioGroup-BoSuMksh.js +0 -81
- package/dist/_shared/cjs/Section-DXB0XocO.js +0 -19
- package/dist/_shared/cjs/SiteFooter-D5IeZC_c.js +0 -66
- package/dist/_shared/cjs/SiteHeaderV2-BtJmB-dG.js +0 -644
- package/dist/_shared/cjs/SkipLink-D3i06ZIl.js +0 -18
- package/dist/_shared/cjs/Spinner-DmTvG4x-.js +0 -16
- package/dist/_shared/cjs/Surface-BCplA5V_.js +0 -180
- package/dist/_shared/cjs/Tabs-BMWK-vMy.js +0 -86
- package/dist/_shared/cjs/TemplateBanner-BTbeT-Yz.js +0 -65
- package/dist/_shared/cjs/Text-DIA-MbS2.js +0 -28
- package/dist/_shared/cjs/TextInput-DyZc-njK.js +0 -107
- package/dist/_shared/cjs/ThemeIcon-CHgtRxWu.js +0 -22
- package/dist/_shared/cjs/Toast-DNC06aD5.js +0 -960
- package/dist/_shared/cjs/UniversalHeader-Cbxk9QRM.js +0 -25
- package/dist/_shared/cjs/VerticalSpace-B-ZFqw2Y.js +0 -25
- package/dist/_shared/cjs/VisuallyHidden-BItgxu3C.js +0 -14
- package/dist/_shared/cjs/component-BGCX8GK6.js +0 -96
- package/dist/_shared/cjs/component-DpycPOA_.js +0 -422
- package/dist/_shared/cjs/debounce-8awAB-Hj.js +0 -659
- package/dist/_shared/cjs/floating-ui.react-dom-CJlNwMgv.js +0 -1907
- package/dist/_shared/cjs/index-B349W-g3.js +0 -93
- package/dist/_shared/cjs/index-BWForWNw.js +0 -746
- package/dist/_shared/cjs/index-BqJfkZWj.js +0 -380
- package/dist/_shared/cjs/index-Bsexyvjp.js +0 -379
- package/dist/_shared/cjs/index-BtclGxUt.js +0 -999
- package/dist/_shared/cjs/index-CH4TSNdS.js +0 -753
- package/dist/_shared/cjs/index-CUkcChbR.js +0 -226
- package/dist/_shared/cjs/index-CalDQPRt.js +0 -330
- package/dist/_shared/cjs/index-D6hGsItk.js +0 -367
- package/dist/_shared/cjs/index-DYP3_Qh-.js +0 -14
- package/dist/_shared/cjs/index-DiFGFQH4.js +0 -44
- package/dist/_shared/cjs/index-Ds3p1an5.js +0 -131
- package/dist/_shared/cjs/index-Dvj8rZCZ.js +0 -46
- package/dist/_shared/cjs/index-Dx8AlCbY.js +0 -72
- package/dist/_shared/cjs/index-io8xALL_.js +0 -2264
- package/dist/_shared/cjs/index.es-y9hyGBEL.js +0 -13
- package/dist/_shared/esm/Avatar-Cnu84iB4.js +0 -42
- package/dist/_shared/esm/Badge-BCVel0Om.js +0 -11
- package/dist/_shared/esm/Box-DTTKhpiV.js +0 -23
- package/dist/_shared/esm/BrandLogo-DP-pw2qU.js +0 -24
- package/dist/_shared/esm/Breadcrumbs-CCK8JbEL.js +0 -99
- package/dist/_shared/esm/Button-i6svvyLV.js +0 -47
- package/dist/_shared/esm/ButtonV2-qvYPdE3y.js +0 -47
- package/dist/_shared/esm/Calendar-BheqKbaS.js +0 -1918
- package/dist/_shared/esm/CardFooter-Dor2jbTF.js +0 -73
- package/dist/_shared/esm/CardHeading-DnkJg4cS.js +0 -10
- package/dist/_shared/esm/Checkbox-BsVIoYs3.js +0 -86
- package/dist/_shared/esm/Columns-3lnyGVbo.js +0 -42
- package/dist/_shared/esm/ComboBox-BoNNJ010.js +0 -288
- package/dist/_shared/esm/ContentSwitcher-CsFy2wkg.js +0 -17313
- package/dist/_shared/esm/ContentSwitcherDropdown-Dsl0lVob.js +0 -58
- package/dist/_shared/esm/DatePicker-DxP3x_PU.js +0 -309
- package/dist/_shared/esm/DisclosureMini-C21SM9kp.js +0 -35
- package/dist/_shared/esm/Download-QSXeopnf.js +0 -37
- package/dist/_shared/esm/Filter-BWvcdo3D.js +0 -118
- package/dist/_shared/esm/FormControl-Dx4vj08j.js +0 -104
- package/dist/_shared/esm/Grid-3ulOWrk_.js +0 -39
- package/dist/_shared/esm/Group-CemLONoC.js +0 -34
- package/dist/_shared/esm/Heading-B4CveN1U.js +0 -34
- package/dist/_shared/esm/HeroButton-CCdiNf0U.js +0 -120
- package/dist/_shared/esm/Icon-PQa1SRbJ.js +0 -41
- package/dist/_shared/esm/Image-ByvKaYWN.js +0 -48
- package/dist/_shared/esm/MediaCard-BXs0Bn_k.js +0 -59
- package/dist/_shared/esm/Poster-BDAll4Is.js +0 -39
- package/dist/_shared/esm/Preview-C4XOmSrc.js +0 -173
- package/dist/_shared/esm/ProgressStepper-CzfbHcdz.js +0 -89
- package/dist/_shared/esm/RadioCardGroup-zNPknE5D.js +0 -78
- package/dist/_shared/esm/RadioGroup-DCQshSdc.js +0 -78
- package/dist/_shared/esm/Section-D_oywLIw.js +0 -17
- package/dist/_shared/esm/SiteFooter-DAJmYrdZ.js +0 -64
- package/dist/_shared/esm/SiteHeaderV2-X0qnDr53.js +0 -642
- package/dist/_shared/esm/SkipLink-U1oEgZ_e.js +0 -16
- package/dist/_shared/esm/Spinner-5EXh-1JS.js +0 -14
- package/dist/_shared/esm/Surface-DnIdJOp5.js +0 -174
- package/dist/_shared/esm/Tabs-CthwgnE8.js +0 -84
- package/dist/_shared/esm/TemplateBanner-C0WAd6x-.js +0 -63
- package/dist/_shared/esm/Text-pH7Fi5ml.js +0 -26
- package/dist/_shared/esm/TextInput-qy9_xgAX.js +0 -104
- package/dist/_shared/esm/ThemeIcon-a0WvZRNE.js +0 -20
- package/dist/_shared/esm/Toast-BW9P2Bsb.js +0 -958
- package/dist/_shared/esm/UniversalHeader-CKwbQWiu.js +0 -23
- package/dist/_shared/esm/VerticalSpace-CYle3p59.js +0 -23
- package/dist/_shared/esm/VisuallyHidden-DhtgCXQL.js +0 -12
- package/dist/_shared/esm/component-CyFG7PdP.js +0 -73
- package/dist/_shared/esm/component-SwsHiZS0.js +0 -398
- package/dist/_shared/esm/debounce-BpHLpQ2o.js +0 -657
- package/dist/_shared/esm/floating-ui.react-dom-RgnG-641.js +0 -1878
- package/dist/_shared/esm/index-2c7jWqIG.js +0 -25
- package/dist/_shared/esm/index-65dylwyZ.js +0 -720
- package/dist/_shared/esm/index-9kqlGfMG.js +0 -973
- package/dist/_shared/esm/index-Bnj2U8kS.js +0 -374
- package/dist/_shared/esm/index-C1FjNiZC.js +0 -296
- package/dist/_shared/esm/index-CXSorLUc.js +0 -41
- package/dist/_shared/esm/index-CXzJEJNs.js +0 -2233
- package/dist/_shared/esm/index-CbKHA_yL.js +0 -724
- package/dist/_shared/esm/index-Cf_Ki--9.js +0 -129
- package/dist/_shared/esm/index-CxovAi9d.js +0 -69
- package/dist/_shared/esm/index-DMMRfg3O.js +0 -359
- package/dist/_shared/esm/index-D_GX6ppB.js +0 -91
- package/dist/_shared/esm/index-UaaG1irA.js +0 -205
- package/dist/_shared/esm/index-_nBH8-GT.js +0 -12
- package/dist/_shared/esm/index-g5oDHuf6.js +0 -369
- package/dist/_shared/esm/index.es-DZ7a2pSw.js +0 -9
- package/dist/index.es.js +0 -42081
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -42178
- package/dist/index.js.map +0 -1
- package/dist/styles.css +0 -15
- package/dist/types/components/Alert/Alert.d.ts +0 -49
- package/dist/types/components/Alert/index.d.ts +0 -1
- package/dist/types/components/Align/Align.d.ts +0 -30
- package/dist/types/components/Align/index.d.ts +0 -1
- package/dist/types/components/AppButton/AppButton.d.ts +0 -9
- package/dist/types/components/AppButton/icons/AppStore.d.ts +0 -2
- package/dist/types/components/AppButton/icons/GooglePlay.d.ts +0 -2
- package/dist/types/components/AppButton/index.d.ts +0 -1
- package/dist/types/components/Avatar/Avatar.d.ts +0 -14
- package/dist/types/components/Avatar/components/AvatarContent/AvatarContent.d.ts +0 -9
- package/dist/types/components/Avatar/index.d.ts +0 -1
- package/dist/types/components/Avatar/types/avatar-icon-size.d.ts +0 -1
- package/dist/types/components/Avatar/types/avatar-image.d.ts +0 -2
- package/dist/types/components/Avatar/types/avatar-size.d.ts +0 -1
- package/dist/types/components/Avatar/types/avatar-text-size.d.ts +0 -2
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +0 -14
- package/dist/types/components/AvatarGroup/index.d.ts +0 -1
- package/dist/types/components/AvatarGroup/types/group-avatar.d.ts +0 -2
- package/dist/types/components/AvatarGroup/utils/get-avatars.d.ts +0 -2
- package/dist/types/components/Badge/Badge.d.ts +0 -21
- package/dist/types/components/Badge/index.d.ts +0 -1
- package/dist/types/components/Banner/Banner.d.ts +0 -4
- package/dist/types/components/Banner/index.d.ts +0 -1
- package/dist/types/components/Box/Box.d.ts +0 -40
- package/dist/types/components/Box/index.d.ts +0 -1
- package/dist/types/components/BrandLogo/BrandLogo.d.ts +0 -25
- package/dist/types/components/BrandLogo/index.d.ts +0 -1
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -18
- package/dist/types/components/Breadcrumbs/BreadcrumbsItem/BreadcrumbsItem.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/BreadcrumbsLink/BreadcrumbsLink.d.ts +0 -29
- package/dist/types/components/Breadcrumbs/index.d.ts +0 -1
- package/dist/types/components/Button/Button.d.ts +0 -116
- package/dist/types/components/Button/index.d.ts +0 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +0 -34
- package/dist/types/components/ButtonGroup/index.d.ts +0 -1
- package/dist/types/components/ButtonV2/ButtonV2.d.ts +0 -91
- package/dist/types/components/ButtonV2/index.d.ts +0 -1
- package/dist/types/components/Calendar/Calendar.d.ts +0 -50
- package/dist/types/components/Calendar/Calendar.provider.d.ts +0 -21
- package/dist/types/components/Calendar/components/CalendarDateSelect/CalendarDateSelect.d.ts +0 -15
- package/dist/types/components/Calendar/components/CalendarDateSelect/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarDayGrid/CalendarDayGrid.d.ts +0 -6
- package/dist/types/components/Calendar/components/CalendarDayGrid/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarDayNumber/CalendarDayNumber.d.ts +0 -8
- package/dist/types/components/Calendar/components/CalendarDayNumber/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarDoubleMonthView/CalendarDoubleMonthView.d.ts +0 -9
- package/dist/types/components/Calendar/components/CalendarDoubleMonthView/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarFooter/CalendarFooter.d.ts +0 -6
- package/dist/types/components/Calendar/components/CalendarFooter/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarMonthView/CalendarMonthView.d.ts +0 -9
- package/dist/types/components/Calendar/components/CalendarMonthView/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarMonthYearView/CalendarMonthYearView.d.ts +0 -11
- package/dist/types/components/Calendar/components/CalendarMonthYearView/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarNavButton/CalendarNavButton.d.ts +0 -10
- package/dist/types/components/Calendar/components/CalendarNavButton/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarWrapper/CalendarWrapper.d.ts +0 -5
- package/dist/types/components/Calendar/components/CalendarWrapper/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/index.d.ts +0 -6
- package/dist/types/components/Calendar/constants/day-names.d.ts +0 -5
- package/dist/types/components/Calendar/constants/index.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/contains-date.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/contains-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/date-without-time.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/date-without-time.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-calendar-type.d.ts +0 -2
- package/dist/types/components/Calendar/helpers/get-calendar-type.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-dates-in-month.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-dates-in-month.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-double-month-display-range.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-double-month-display-range.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-focus-date.d.ts +0 -5
- package/dist/types/components/Calendar/helpers/get-focus-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-highlighted-range.d.ts +0 -6
- package/dist/types/components/Calendar/helpers/get-highlighted-range.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-keydown-date.d.ts +0 -6
- package/dist/types/components/Calendar/helpers/get-keydown-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/index.d.ts +0 -13
- package/dist/types/components/Calendar/helpers/is-day.d.ts +0 -2
- package/dist/types/components/Calendar/helpers/is-day.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-disabled-date.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-disabled-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-month-after-max-date.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-month-after-max-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-month-before-min-date.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-month-before-min-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/process-selected-range.d.ts +0 -9
- package/dist/types/components/Calendar/helpers/process-selected-range.test.d.ts +0 -1
- package/dist/types/components/Calendar/index.d.ts +0 -2
- package/dist/types/components/Calendar/state/handlers/calendar-keydown-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/day-grid-leave-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/day-number-select-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/default-handler.d.ts +0 -2
- package/dist/types/components/Calendar/state/handlers/dropdown-change-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/dropdown-change-year-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/highlight-range-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/index.d.ts +0 -12
- package/dist/types/components/Calendar/state/handlers/range-select-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/show-next-double-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/show-next-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/show-previous-double-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/show-previous-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/index.d.ts +0 -2
- package/dist/types/components/Calendar/state/reducer.d.ts +0 -3
- package/dist/types/components/Calendar/state/reducer.test.d.ts +0 -1
- package/dist/types/components/Calendar/state/types/actions.d.ts +0 -81
- package/dist/types/components/Calendar/state/types/state-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/types/state.d.ts +0 -5
- package/dist/types/components/Calendar/types/calendar-type.d.ts +0 -1
- package/dist/types/components/Calendar/types/date-select-value.d.ts +0 -2
- package/dist/types/components/Calendar/types/index.d.ts +0 -6
- package/dist/types/components/Calendar/types/key-names.d.ts +0 -13
- package/dist/types/components/Calendar/types/range-selection.d.ts +0 -10
- package/dist/types/components/Calendar/types/selection-type.d.ts +0 -1
- package/dist/types/components/Calendar/types/week-days.d.ts +0 -18
- package/dist/types/components/CardFooter/CardFooter.d.ts +0 -11
- package/dist/types/components/CardFooter/index.d.ts +0 -1
- package/dist/types/components/CardHeading/CardHeading.d.ts +0 -19
- package/dist/types/components/CardHeading/index.d.ts +0 -1
- package/dist/types/components/Carousel/Carousel.d.ts +0 -34
- package/dist/types/components/Carousel/components/DotButton.d.ts +0 -10
- package/dist/types/components/Carousel/constants/breakpoints.d.ts +0 -5
- package/dist/types/components/Carousel/helpers/get-options.d.ts +0 -3
- package/dist/types/components/Carousel/helpers/get-slide-width.d.ts +0 -12
- package/dist/types/components/Carousel/index.d.ts +0 -1
- package/dist/types/components/Carousel/types/breakpoints.d.ts +0 -1
- package/dist/types/components/Carousel/types/keynames.d.ts +0 -5
- package/dist/types/components/Carousel/types/responsive.d.ts +0 -3
- package/dist/types/components/Carousel/types/screen-sizes.d.ts +0 -2
- package/dist/types/components/Carousel/types/slide-config.d.ts +0 -5
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -75
- package/dist/types/components/Checkbox/index.d.ts +0 -1
- package/dist/types/components/Columns/Columns.d.ts +0 -76
- package/dist/types/components/Columns/index.d.ts +0 -1
- package/dist/types/components/ComboBox/ComboBox.d.ts +0 -17
- package/dist/types/components/ComboBox/index.d.ts +0 -1
- package/dist/types/components/ComboBox/reducer.d.ts +0 -2
- package/dist/types/components/ComboBox/types/actions.d.ts +0 -45
- package/dist/types/components/ComboBox/types/index.d.ts +0 -3
- package/dist/types/components/ComboBox/types/keynames.d.ts +0 -7
- package/dist/types/components/ComboBox/types/state.d.ts +0 -7
- package/dist/types/components/ComboBox/utils.d.ts +0 -4
- package/dist/types/components/ConditionalWrapper/ConditionalWrapper.d.ts +0 -7
- package/dist/types/components/ConditionalWrapper/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +0 -32
- package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +0 -12
- package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +0 -24
- package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +0 -17
- package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcher/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +0 -57
- package/dist/types/components/ContentSwitcherDropdown/index.d.ts +0 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +0 -20
- package/dist/types/components/DatePicker/constants/date-format.d.ts +0 -1
- package/dist/types/components/DatePicker/constants/index.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/format-date.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/format-date.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/index.d.ts +0 -8
- package/dist/types/components/DatePicker/helpers/is-date-valid.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-date-valid.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-disabled-date.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-disabled-date.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-range-valid.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-range-valid.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/parse-date-string.d.ts +0 -5
- package/dist/types/components/DatePicker/helpers/parse-date-string.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/parse-range-string.d.ts +0 -14
- package/dist/types/components/DatePicker/helpers/parse-range-string.test.d.ts +0 -1
- package/dist/types/components/DatePicker/index.d.ts +0 -6
- package/dist/types/components/Disclosure/Disclosure.d.ts +0 -29
- package/dist/types/components/Disclosure/index.d.ts +0 -1
- package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +0 -35
- package/dist/types/components/DisclosureMini/index.d.ts +0 -1
- package/dist/types/components/Download/Download.d.ts +0 -41
- package/dist/types/components/Download/index.d.ts +0 -1
- package/dist/types/components/Drawer/Drawer.d.ts +0 -40
- package/dist/types/components/Drawer/index.d.ts +0 -1
- package/dist/types/components/Elevation/Elevation.d.ts +0 -19
- package/dist/types/components/Elevation/index.d.ts +0 -1
- package/dist/types/components/Filter/Filter.d.ts +0 -38
- package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +0 -16
- package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +0 -12
- package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +0 -12
- package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +0 -16
- package/dist/types/components/Filter/index.d.ts +0 -1
- package/dist/types/components/FormControl/FormControl.d.ts +0 -83
- package/dist/types/components/FormControl/index.d.ts +0 -1
- package/dist/types/components/Grid/Grid.constants.d.ts +0 -1
- package/dist/types/components/Grid/Grid.d.ts +0 -28
- package/dist/types/components/Grid/Grid.types.d.ts +0 -10
- package/dist/types/components/Grid/components/Col/Col.d.ts +0 -10
- package/dist/types/components/Grid/components/Col/index.d.ts +0 -1
- package/dist/types/components/Grid/components/Row/Row.d.ts +0 -10
- package/dist/types/components/Grid/components/Row/index.d.ts +0 -1
- package/dist/types/components/Grid/index.d.ts +0 -2
- package/dist/types/components/Group/Group.d.ts +0 -45
- package/dist/types/components/Group/GroupItem/GroupItem.d.ts +0 -17
- package/dist/types/components/Group/index.d.ts +0 -1
- package/dist/types/components/Heading/Heading.d.ts +0 -53
- package/dist/types/components/Heading/index.d.ts +0 -1
- package/dist/types/components/HeroBanner/HeroBanner.d.ts +0 -9
- package/dist/types/components/HeroBanner/index.d.ts +0 -1
- package/dist/types/components/HeroButton/HeroButton.d.ts +0 -66
- package/dist/types/components/HeroButton/index.d.ts +0 -1
- package/dist/types/components/Hidden/Hidden.d.ts +0 -11
- package/dist/types/components/Hidden/index.d.ts +0 -1
- package/dist/types/components/Icon/Icon.d.ts +0 -37
- package/dist/types/components/Icon/index.d.ts +0 -1
- package/dist/types/components/Image/Image.d.ts +0 -97
- package/dist/types/components/Image/index.d.ts +0 -1
- package/dist/types/components/ImpactCard/ImpactCard.d.ts +0 -58
- package/dist/types/components/ImpactCard/index.d.ts +0 -1
- package/dist/types/components/InformationCard/InformationCard.d.ts +0 -62
- package/dist/types/components/InformationCard/index.d.ts +0 -1
- package/dist/types/components/Link/Link.d.ts +0 -52
- package/dist/types/components/Link/index.d.ts +0 -1
- package/dist/types/components/Markup/Markup.d.ts +0 -15
- package/dist/types/components/Markup/index.d.ts +0 -1
- package/dist/types/components/MediaCard/MediaCard.d.ts +0 -56
- package/dist/types/components/MediaCard/index.d.ts +0 -1
- package/dist/types/components/MediaCard/types/index.d.ts +0 -2
- package/dist/types/components/MediaCard/types/media-card-image.d.ts +0 -4
- package/dist/types/components/MediaCard/types/media-card-video.d.ts +0 -4
- package/dist/types/components/Modal/Modal.d.ts +0 -50
- package/dist/types/components/Modal/index.d.ts +0 -1
- package/dist/types/components/Pagination/Pagination.d.ts +0 -19
- package/dist/types/components/Pagination/index.d.ts +0 -1
- package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +0 -43
- package/dist/types/components/PaginationSimple/index.d.ts +0 -1
- package/dist/types/components/Popover/Popover.d.ts +0 -73
- package/dist/types/components/Popover/index.d.ts +0 -1
- package/dist/types/components/Poster/Poster.d.ts +0 -29
- package/dist/types/components/Poster/PosterImage.d.ts +0 -34
- package/dist/types/components/Poster/PosterVideo.d.ts +0 -21
- package/dist/types/components/Poster/index.d.ts +0 -1
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +0 -50
- package/dist/types/components/ProgressBar/constants/progress-bar-icon-map.d.ts +0 -3
- package/dist/types/components/ProgressBar/index.d.ts +0 -1
- package/dist/types/components/ProgressBar/types/progress-bar-icons.d.ts +0 -1
- package/dist/types/components/ProgressBar/types/progress-bar-state.d.ts +0 -1
- package/dist/types/components/ProgressBar/utils/get-progress-bar-props.d.ts +0 -1
- package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +0 -32
- package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +0 -62
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Complete.d.ts +0 -2
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Current.d.ts +0 -2
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Error.d.ts +0 -2
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Warning.d.ts +0 -2
- package/dist/types/components/ProgressStepper/index.d.ts +0 -1
- package/dist/types/components/ProgressStepper/progressStatus.d.ts +0 -1
- package/dist/types/components/RadioCardGroup/RadioCard/RadioCard.d.ts +0 -59
- package/dist/types/components/RadioCardGroup/RadioCard/index.d.ts +0 -1
- package/dist/types/components/RadioCardGroup/RadioCardGroup.d.ts +0 -74
- package/dist/types/components/RadioCardGroup/RadioCardGroupInput/RadioCardGroupInput.d.ts +0 -37
- package/dist/types/components/RadioCardGroup/RadioCardGroupInput/index.d.ts +0 -1
- package/dist/types/components/RadioCardGroup/context.d.ts +0 -12
- package/dist/types/components/RadioCardGroup/index.d.ts +0 -1
- package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +0 -21
- package/dist/types/components/RadioGroup/RadioButton/index.d.ts +0 -1
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +0 -36
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +0 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +0 -66
- package/dist/types/components/RadioGroup/context.d.ts +0 -14
- package/dist/types/components/RadioGroup/index.d.ts +0 -2
- package/dist/types/components/Rule/Rule.d.ts +0 -8
- package/dist/types/components/Rule/index.d.ts +0 -1
- package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +0 -24
- package/dist/types/components/ScrollToTop/index.d.ts +0 -1
- package/dist/types/components/Section/Section.d.ts +0 -20
- package/dist/types/components/Section/index.d.ts +0 -1
- package/dist/types/components/Select/Select.d.ts +0 -85
- package/dist/types/components/Select/index.d.ts +0 -1
- package/dist/types/components/SiteFooter/SiteFooter.d.ts +0 -57
- package/dist/types/components/SiteFooter/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/SiteHeaderV2.d.ts +0 -82
- package/dist/types/components/SiteHeaderV2/components/BackButton/BackButton.d.ts +0 -6
- package/dist/types/components/SiteHeaderV2/components/BackButton/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/Column/Column.d.ts +0 -8
- package/dist/types/components/SiteHeaderV2/components/Column/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/HorizontalPanel.d.ts +0 -12
- package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/Item/Item.d.ts +0 -16
- package/dist/types/components/SiteHeaderV2/components/Item/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/ItemGroup/ItemGroup.d.ts +0 -27
- package/dist/types/components/SiteHeaderV2/components/ItemGroup/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/MenuButton/MenuButton.d.ts +0 -6
- package/dist/types/components/SiteHeaderV2/components/MenuButton/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/NavItem/NavItem.d.ts +0 -35
- package/dist/types/components/SiteHeaderV2/components/NavItem/NavItemWithSubNav.d.ts +0 -56
- package/dist/types/components/SiteHeaderV2/components/NavItem/index.d.ts +0 -2
- package/dist/types/components/SiteHeaderV2/components/NodeItem/NodeItem.d.ts +0 -8
- package/dist/types/components/SiteHeaderV2/components/Panel/Panel.d.ts +0 -26
- package/dist/types/components/SiteHeaderV2/components/Panel/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/SubNavItem/SubNavItem.d.ts +0 -45
- package/dist/types/components/SiteHeaderV2/components/SubNavItem/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +0 -2
- package/dist/types/components/SiteHeaderV2/components/VerticalDivider/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/index.d.ts +0 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +0 -23
- package/dist/types/components/Skeleton/index.d.ts +0 -1
- package/dist/types/components/SkipLink/SkipLink.d.ts +0 -12
- package/dist/types/components/SkipLink/SkipLinkItem/SkipLinkItem.d.ts +0 -16
- package/dist/types/components/SkipLink/index.d.ts +0 -1
- package/dist/types/components/Spinner/Spinner.d.ts +0 -16
- package/dist/types/components/Spinner/index.d.ts +0 -1
- package/dist/types/components/Surface/Surface.d.ts +0 -53
- package/dist/types/components/Surface/index.d.ts +0 -1
- package/dist/types/components/Switch/Switch.d.ts +0 -47
- package/dist/types/components/Switch/index.d.ts +0 -1
- package/dist/types/components/TabbedBanner/TabbedBanner.d.ts +0 -26
- package/dist/types/components/TabbedBanner/index.d.ts +0 -1
- package/dist/types/components/Tabs/Tab/Tab.d.ts +0 -22
- package/dist/types/components/Tabs/Tab/index.d.ts +0 -1
- package/dist/types/components/Tabs/TabContent/TabContent.d.ts +0 -12
- package/dist/types/components/Tabs/TabContent/index.d.ts +0 -1
- package/dist/types/components/Tabs/Tabs.d.ts +0 -28
- package/dist/types/components/Tabs/TabsList/TabsList.d.ts +0 -20
- package/dist/types/components/Tabs/TabsList/index.d.ts +0 -1
- package/dist/types/components/Tabs/index.d.ts +0 -1
- package/dist/types/components/Tag/Tag.d.ts +0 -36
- package/dist/types/components/Tag/index.d.ts +0 -1
- package/dist/types/components/TemplateBanner/TemplateBanner.d.ts +0 -68
- package/dist/types/components/TemplateBanner/index.d.ts +0 -1
- package/dist/types/components/Text/Text.d.ts +0 -41
- package/dist/types/components/Text/index.d.ts +0 -1
- package/dist/types/components/TextArea/TextArea.d.ts +0 -82
- package/dist/types/components/TextArea/index.d.ts +0 -1
- package/dist/types/components/TextInput/TextInput.d.ts +0 -129
- package/dist/types/components/TextInput/index.d.ts +0 -1
- package/dist/types/components/Theme/Theme.d.ts +0 -21
- package/dist/types/components/Theme/index.d.ts +0 -1
- package/dist/types/components/ThemeIcon/ThemeIcon.d.ts +0 -18
- package/dist/types/components/ThemeIcon/icon-names.d.ts +0 -1
- package/dist/types/components/ThemeIcon/index.d.ts +0 -1
- package/dist/types/components/Toast/Toast.d.ts +0 -17
- package/dist/types/components/Toast/ToastNotification.d.ts +0 -39
- package/dist/types/components/Toast/index.d.ts +0 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -54
- package/dist/types/components/Tooltip/index.d.ts +0 -1
- package/dist/types/components/Truncate/Truncate.d.ts +0 -17
- package/dist/types/components/Truncate/index.d.ts +0 -1
- package/dist/types/components/TypographyCard/TypographyCard.d.ts +0 -58
- package/dist/types/components/TypographyCard/index.d.ts +0 -1
- package/dist/types/components/UniversalHeader/UniversalHeader.d.ts +0 -29
- package/dist/types/components/UniversalHeader/index.d.ts +0 -1
- package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +0 -33
- package/dist/types/components/VerticalSpace/index.d.ts +0 -1
- package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +0 -27
- package/dist/types/components/VideoPlayer/index.d.ts +0 -1
- package/dist/types/components/Visible/Visible.d.ts +0 -11
- package/dist/types/components/Visible/index.d.ts +0 -1
- package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +0 -11
- package/dist/types/components/VisuallyHidden/index.d.ts +0 -1
- package/dist/types/components/index.d.ts +0 -76
- package/dist/types/helpers/anchor-points.d.ts +0 -1
- package/dist/types/helpers/get-theme-img.d.ts +0 -6
- package/dist/types/helpers/handle-link-click.d.ts +0 -7
- package/dist/types/helpers/index.d.ts +0 -2
- package/dist/types/hooks/__tests__/use-aria-describedby.test.d.ts +0 -1
- package/dist/types/hooks/__tests__/use-numeric-input.test.d.ts +0 -1
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/private/index.d.ts +0 -5
- package/dist/types/hooks/private/use-aria-describedby/index.d.ts +0 -1
- package/dist/types/hooks/private/use-aria-describedby/use-aria-describedby.d.ts +0 -22
- package/dist/types/hooks/private/use-interaction-mode/index.d.ts +0 -1
- package/dist/types/hooks/private/use-interaction-mode/use-interaction-mode.d.ts +0 -6
- package/dist/types/hooks/private/use-numeric-input/index.d.ts +0 -1
- package/dist/types/hooks/private/use-numeric-input/use-numeric-input.d.ts +0 -9
- package/dist/types/hooks/private/use-pagination/index.d.ts +0 -1
- package/dist/types/hooks/private/use-pagination/use-pagination.d.ts +0 -1
- package/dist/types/hooks/private/use-theme-element/index.d.ts +0 -1
- package/dist/types/hooks/public/index.d.ts +0 -1
- package/dist/types/hooks/public/use-media-query/index.d.ts +0 -1
- package/dist/types/hooks/public/use-media-query/use-media-query.d.ts +0 -19
- package/dist/types/index.d.ts +0 -2
- package/dist/types/styles.d.ts +0 -81
- package/dist/types/types/arc-icon.d.ts +0 -2
- package/dist/types/types/auto-complete-types.d.ts +0 -1
- package/dist/use-media-query/package.json +0 -7
- package/dist/use-media-query/use-media-query.cjs.js +0 -8
- package/dist/use-media-query/use-media-query.esm.js +0 -2
- /package/{dist/_shared/cjs/BtIconArrowRight.esm-tlOxlRcu.js → lib/_shared/cjs/BtIconArrowRight-tlOxlRcu.cjs} +0 -0
- /package/{dist/_shared/cjs/BtIconChevronRight2Px.esm-Bi9czTg8.js → lib/_shared/cjs/BtIconChevronRight2Px-Bi9czTg8.cjs} +0 -0
- /package/{dist/_shared/cjs/BtIconChevronRightMid.esm-Dol_sskt.js → lib/_shared/cjs/BtIconChevronRightMid-Dol_sskt.cjs} +0 -0
- /package/{dist/_shared/cjs/BtIconPlayFill.esm-1FkY9-lL.js → lib/_shared/cjs/BtIconPlayFill-1FkY9-lL.cjs} +0 -0
- /package/{dist/_shared/cjs/ConditionalWrapper-C09Kw6EG.js → lib/_shared/cjs/ConditionalWrapper-C09Kw6EG.cjs} +0 -0
- /package/{dist/_shared/cjs/handle-link-click-C7BvOIYa.js → lib/_shared/cjs/handle-link-click-C7BvOIYa.cjs} +0 -0
- /package/{dist/_shared/cjs/index-BLRjGROQ.js → lib/_shared/cjs/index-BLRjGROQ.cjs} +0 -0
- /package/{dist/_shared/cjs/index-CTlXMLug.js → lib/_shared/cjs/index-CTlXMLug.cjs} +0 -0
- /package/{dist/_shared/cjs/keynames-Cx13-hWr.js → lib/_shared/cjs/keynames-Cx13-hWr.cjs} +0 -0
- /package/{dist/_shared/cjs/use-media-query-BsUfHjPZ.js → lib/_shared/cjs/use-media-query-BsUfHjPZ.cjs} +0 -0
- /package/{dist/_shared/esm/BtIconArrowRight.esm-26CZetOo.js → lib/_shared/esm/BtIconArrowRight-26CZetOo.mjs} +0 -0
- /package/{dist/_shared/esm/BtIconChevronRight2Px.esm-DXhBZyIV.js → lib/_shared/esm/BtIconChevronRight2Px-DXhBZyIV.mjs} +0 -0
- /package/{dist/_shared/esm/BtIconChevronRightMid.esm-CbaH-o1_.js → lib/_shared/esm/BtIconChevronRightMid-CbaH-o1_.mjs} +0 -0
- /package/{dist/_shared/esm/BtIconPlayFill.esm-Bi65YfLF.js → lib/_shared/esm/BtIconPlayFill-Bi65YfLF.mjs} +0 -0
- /package/{dist/_shared/esm/ConditionalWrapper-WoJxFYwS.js → lib/_shared/esm/ConditionalWrapper-WoJxFYwS.mjs} +0 -0
- /package/{dist/_shared/esm/handle-link-click-CIgZ7pa0.js → lib/_shared/esm/handle-link-click-CIgZ7pa0.mjs} +0 -0
- /package/{dist/_shared/esm/index-5C0-U8cc.js → lib/_shared/esm/index-5C0-U8cc.mjs} +0 -0
- /package/{dist/_shared/esm/index-Cr6KeQLU.js → lib/_shared/esm/index-Cr6KeQLU.mjs} +0 -0
- /package/{dist/_shared/esm/keynames-B5whqsjh.js → lib/_shared/esm/keynames-B5whqsjh.mjs} +0 -0
- /package/{dist/_shared/esm/use-media-query-DmKuIDEM.js → lib/_shared/esm/use-media-query-DmKuIDEM.mjs} +0 -0
|
@@ -1,3201 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index$1 = require('../_shared/cjs/index-D6hGsItk.js');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var index = require('../_shared/cjs/index-CTlXMLug.js');
|
|
6
|
-
var BtIconPlayFill_esm = require('../_shared/cjs/BtIconPlayFill.esm-1FkY9-lL.js');
|
|
7
|
-
var Icon = require('../_shared/cjs/Icon-C5peYhWn.js');
|
|
8
|
-
var VisuallyHidden = require('../_shared/cjs/VisuallyHidden-BItgxu3C.js');
|
|
9
|
-
var VerticalSpace = require('../_shared/cjs/VerticalSpace-B-ZFqw2Y.js');
|
|
10
|
-
var Heading = require('../_shared/cjs/Heading-lzfM5f17.js');
|
|
11
|
-
var Text = require('../_shared/cjs/Text-DIA-MbS2.js');
|
|
12
|
-
var Download = require('../_shared/cjs/Download-DEiQTPc3.js');
|
|
13
|
-
var DisclosureMini = require('../_shared/cjs/DisclosureMini-Bln2KdOz.js');
|
|
14
|
-
require('../_shared/cjs/Surface-BCplA5V_.js');
|
|
15
|
-
require('../_shared/cjs/ThemeIcon-CHgtRxWu.js');
|
|
16
|
-
|
|
17
|
-
var cjs;
|
|
18
|
-
var hasRequiredCjs;
|
|
19
|
-
|
|
20
|
-
function requireCjs () {
|
|
21
|
-
if (hasRequiredCjs) return cjs;
|
|
22
|
-
hasRequiredCjs = 1;
|
|
23
|
-
|
|
24
|
-
var isMergeableObject = function isMergeableObject(value) {
|
|
25
|
-
return isNonNullObject(value)
|
|
26
|
-
&& !isSpecial(value)
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
function isNonNullObject(value) {
|
|
30
|
-
return !!value && typeof value === 'object'
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function isSpecial(value) {
|
|
34
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
35
|
-
|
|
36
|
-
return stringValue === '[object RegExp]'
|
|
37
|
-
|| stringValue === '[object Date]'
|
|
38
|
-
|| isReactElement(value)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
42
|
-
var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
43
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
44
|
-
|
|
45
|
-
function isReactElement(value) {
|
|
46
|
-
return value.$$typeof === REACT_ELEMENT_TYPE
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function emptyTarget(val) {
|
|
50
|
-
return Array.isArray(val) ? [] : {}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
54
|
-
return (options.clone !== false && options.isMergeableObject(value))
|
|
55
|
-
? deepmerge(emptyTarget(value), value, options)
|
|
56
|
-
: value
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function defaultArrayMerge(target, source, options) {
|
|
60
|
-
return target.concat(source).map(function(element) {
|
|
61
|
-
return cloneUnlessOtherwiseSpecified(element, options)
|
|
62
|
-
})
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function getMergeFunction(key, options) {
|
|
66
|
-
if (!options.customMerge) {
|
|
67
|
-
return deepmerge
|
|
68
|
-
}
|
|
69
|
-
var customMerge = options.customMerge(key);
|
|
70
|
-
return typeof customMerge === 'function' ? customMerge : deepmerge
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
74
|
-
return Object.getOwnPropertySymbols
|
|
75
|
-
? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
76
|
-
return Object.propertyIsEnumerable.call(target, symbol)
|
|
77
|
-
})
|
|
78
|
-
: []
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function getKeys(target) {
|
|
82
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function propertyIsOnObject(object, property) {
|
|
86
|
-
try {
|
|
87
|
-
return property in object
|
|
88
|
-
} catch(_) {
|
|
89
|
-
return false
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
94
|
-
function propertyIsUnsafe(target, key) {
|
|
95
|
-
return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
|
|
96
|
-
&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
|
|
97
|
-
&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function mergeObject(target, source, options) {
|
|
101
|
-
var destination = {};
|
|
102
|
-
if (options.isMergeableObject(target)) {
|
|
103
|
-
getKeys(target).forEach(function(key) {
|
|
104
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
getKeys(source).forEach(function(key) {
|
|
108
|
-
if (propertyIsUnsafe(target, key)) {
|
|
109
|
-
return
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
113
|
-
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
114
|
-
} else {
|
|
115
|
-
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
return destination
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function deepmerge(target, source, options) {
|
|
122
|
-
options = options || {};
|
|
123
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
124
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
125
|
-
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
126
|
-
// implementations can use it. The caller may not replace it.
|
|
127
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
128
|
-
|
|
129
|
-
var sourceIsArray = Array.isArray(source);
|
|
130
|
-
var targetIsArray = Array.isArray(target);
|
|
131
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
132
|
-
|
|
133
|
-
if (!sourceAndTargetTypesMatch) {
|
|
134
|
-
return cloneUnlessOtherwiseSpecified(source, options)
|
|
135
|
-
} else if (sourceIsArray) {
|
|
136
|
-
return options.arrayMerge(target, source, options)
|
|
137
|
-
} else {
|
|
138
|
-
return mergeObject(target, source, options)
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
143
|
-
if (!Array.isArray(array)) {
|
|
144
|
-
throw new Error('first argument should be an array')
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return array.reduce(function(prev, next) {
|
|
148
|
-
return deepmerge(prev, next, options)
|
|
149
|
-
}, {})
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
var deepmerge_1 = deepmerge;
|
|
153
|
-
|
|
154
|
-
cjs = deepmerge_1;
|
|
155
|
-
return cjs;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
var safeIsNaN = Number.isNaN ||
|
|
159
|
-
function ponyfill(value) {
|
|
160
|
-
return typeof value === 'number' && value !== value;
|
|
161
|
-
};
|
|
162
|
-
function isEqual(first, second) {
|
|
163
|
-
if (first === second) {
|
|
164
|
-
return true;
|
|
165
|
-
}
|
|
166
|
-
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
167
|
-
return true;
|
|
168
|
-
}
|
|
169
|
-
return false;
|
|
170
|
-
}
|
|
171
|
-
function areInputsEqual(newInputs, lastInputs) {
|
|
172
|
-
if (newInputs.length !== lastInputs.length) {
|
|
173
|
-
return false;
|
|
174
|
-
}
|
|
175
|
-
for (var i = 0; i < newInputs.length; i++) {
|
|
176
|
-
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
177
|
-
return false;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
return true;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function memoizeOne(resultFn, isEqual) {
|
|
184
|
-
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
|
185
|
-
var lastThis;
|
|
186
|
-
var lastArgs = [];
|
|
187
|
-
var lastResult;
|
|
188
|
-
var calledOnce = false;
|
|
189
|
-
function memoized() {
|
|
190
|
-
var newArgs = [];
|
|
191
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
192
|
-
newArgs[_i] = arguments[_i];
|
|
193
|
-
}
|
|
194
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
195
|
-
return lastResult;
|
|
196
|
-
}
|
|
197
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
198
|
-
calledOnce = true;
|
|
199
|
-
lastThis = this;
|
|
200
|
-
lastArgs = newArgs;
|
|
201
|
-
return lastResult;
|
|
202
|
-
}
|
|
203
|
-
return memoized;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
var memoizeOne_esm = /*#__PURE__*/Object.freeze({
|
|
207
|
-
__proto__: null,
|
|
208
|
-
default: memoizeOne
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
var require$$2 = /*@__PURE__*/index.getAugmentedNamespace(memoizeOne_esm);
|
|
212
|
-
|
|
213
|
-
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
214
|
-
|
|
215
|
-
var reactFastCompare;
|
|
216
|
-
var hasRequiredReactFastCompare;
|
|
217
|
-
|
|
218
|
-
function requireReactFastCompare () {
|
|
219
|
-
if (hasRequiredReactFastCompare) return reactFastCompare;
|
|
220
|
-
hasRequiredReactFastCompare = 1;
|
|
221
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
222
|
-
var hasMap = typeof Map === 'function';
|
|
223
|
-
var hasSet = typeof Set === 'function';
|
|
224
|
-
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
225
|
-
|
|
226
|
-
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
227
|
-
|
|
228
|
-
function equal(a, b) {
|
|
229
|
-
// START: fast-deep-equal es6/index.js 3.1.3
|
|
230
|
-
if (a === b) return true;
|
|
231
|
-
|
|
232
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
233
|
-
if (a.constructor !== b.constructor) return false;
|
|
234
|
-
|
|
235
|
-
var length, i, keys;
|
|
236
|
-
if (Array.isArray(a)) {
|
|
237
|
-
length = a.length;
|
|
238
|
-
if (length != b.length) return false;
|
|
239
|
-
for (i = length; i-- !== 0;)
|
|
240
|
-
if (!equal(a[i], b[i])) return false;
|
|
241
|
-
return true;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// START: Modifications:
|
|
245
|
-
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
246
|
-
// to co-exist with es5.
|
|
247
|
-
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
248
|
-
// Basically, take:
|
|
249
|
-
//
|
|
250
|
-
// ```js
|
|
251
|
-
// for (i of a.entries())
|
|
252
|
-
// if (!b.has(i[0])) return false;
|
|
253
|
-
// ```
|
|
254
|
-
//
|
|
255
|
-
// ... and convert to:
|
|
256
|
-
//
|
|
257
|
-
// ```js
|
|
258
|
-
// it = a.entries();
|
|
259
|
-
// while (!(i = it.next()).done)
|
|
260
|
-
// if (!b.has(i.value[0])) return false;
|
|
261
|
-
// ```
|
|
262
|
-
//
|
|
263
|
-
// **Note**: `i` access switches to `i.value`.
|
|
264
|
-
var it;
|
|
265
|
-
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
266
|
-
if (a.size !== b.size) return false;
|
|
267
|
-
it = a.entries();
|
|
268
|
-
while (!(i = it.next()).done)
|
|
269
|
-
if (!b.has(i.value[0])) return false;
|
|
270
|
-
it = a.entries();
|
|
271
|
-
while (!(i = it.next()).done)
|
|
272
|
-
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
273
|
-
return true;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
277
|
-
if (a.size !== b.size) return false;
|
|
278
|
-
it = a.entries();
|
|
279
|
-
while (!(i = it.next()).done)
|
|
280
|
-
if (!b.has(i.value[0])) return false;
|
|
281
|
-
return true;
|
|
282
|
-
}
|
|
283
|
-
// END: Modifications
|
|
284
|
-
|
|
285
|
-
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
286
|
-
length = a.length;
|
|
287
|
-
if (length != b.length) return false;
|
|
288
|
-
for (i = length; i-- !== 0;)
|
|
289
|
-
if (a[i] !== b[i]) return false;
|
|
290
|
-
return true;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
294
|
-
// START: Modifications:
|
|
295
|
-
// Apply guards for `Object.create(null)` handling. See:
|
|
296
|
-
// - https://github.com/FormidableLabs/react-fast-compare/issues/64
|
|
297
|
-
// - https://github.com/epoberezkin/fast-deep-equal/issues/49
|
|
298
|
-
if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();
|
|
299
|
-
if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();
|
|
300
|
-
// END: Modifications
|
|
301
|
-
|
|
302
|
-
keys = Object.keys(a);
|
|
303
|
-
length = keys.length;
|
|
304
|
-
if (length !== Object.keys(b).length) return false;
|
|
305
|
-
|
|
306
|
-
for (i = length; i-- !== 0;)
|
|
307
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
308
|
-
// END: fast-deep-equal
|
|
309
|
-
|
|
310
|
-
// START: react-fast-compare
|
|
311
|
-
// custom handling for DOM elements
|
|
312
|
-
if (hasElementType && a instanceof Element) return false;
|
|
313
|
-
|
|
314
|
-
// custom handling for React/Preact
|
|
315
|
-
for (i = length; i-- !== 0;) {
|
|
316
|
-
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
317
|
-
// React-specific: avoid traversing React elements' _owner
|
|
318
|
-
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
319
|
-
// __v = $_original / $_vnode
|
|
320
|
-
// __o = $_owner
|
|
321
|
-
// These properties contain circular references and are not needed when
|
|
322
|
-
// comparing the actual elements (and not their owners)
|
|
323
|
-
// .$$typeof and ._store on just reasonable markers of elements
|
|
324
|
-
|
|
325
|
-
continue;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// all other properties should be traversed as usual
|
|
329
|
-
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
330
|
-
}
|
|
331
|
-
// END: react-fast-compare
|
|
332
|
-
|
|
333
|
-
// START: fast-deep-equal
|
|
334
|
-
return true;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
return a !== a && b !== b;
|
|
338
|
-
}
|
|
339
|
-
// end fast-deep-equal
|
|
340
|
-
|
|
341
|
-
reactFastCompare = function isEqual(a, b) {
|
|
342
|
-
try {
|
|
343
|
-
return equal(a, b);
|
|
344
|
-
} catch (error) {
|
|
345
|
-
if (((error.message || '').match(/stack|recursion/i))) {
|
|
346
|
-
// warn on circular references, don't crash
|
|
347
|
-
// browsers give this different errors name and messages:
|
|
348
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
349
|
-
// firefox: "InternalError", too much recursion"
|
|
350
|
-
// edge: "Error", "Out of stack space"
|
|
351
|
-
console.warn('react-fast-compare cannot handle circular refs');
|
|
352
|
-
return false;
|
|
353
|
-
}
|
|
354
|
-
// some other error. we should definitely know about these
|
|
355
|
-
throw error;
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
return reactFastCompare;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
var propTypes = {exports: {}};
|
|
362
|
-
|
|
363
|
-
var reactIs = {exports: {}};
|
|
364
|
-
|
|
365
|
-
var reactIs_production_min = {};
|
|
366
|
-
|
|
367
|
-
/** @license React v16.13.1
|
|
368
|
-
* react-is.production.min.js
|
|
369
|
-
*
|
|
370
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
371
|
-
*
|
|
372
|
-
* This source code is licensed under the MIT license found in the
|
|
373
|
-
* LICENSE file in the root directory of this source tree.
|
|
374
|
-
*/
|
|
375
|
-
|
|
376
|
-
var hasRequiredReactIs_production_min;
|
|
377
|
-
|
|
378
|
-
function requireReactIs_production_min () {
|
|
379
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
380
|
-
hasRequiredReactIs_production_min = 1;
|
|
381
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
382
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
383
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
384
|
-
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
385
|
-
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
386
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
387
|
-
return reactIs_production_min;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
var reactIs_development = {};
|
|
391
|
-
|
|
392
|
-
/** @license React v16.13.1
|
|
393
|
-
* react-is.development.js
|
|
394
|
-
*
|
|
395
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
396
|
-
*
|
|
397
|
-
* This source code is licensed under the MIT license found in the
|
|
398
|
-
* LICENSE file in the root directory of this source tree.
|
|
399
|
-
*/
|
|
400
|
-
|
|
401
|
-
var hasRequiredReactIs_development;
|
|
402
|
-
|
|
403
|
-
function requireReactIs_development () {
|
|
404
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
405
|
-
hasRequiredReactIs_development = 1;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
if (process.env.NODE_ENV !== "production") {
|
|
410
|
-
(function() {
|
|
411
|
-
|
|
412
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
413
|
-
// nor polyfill, then a plain number is used for performance.
|
|
414
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
415
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
416
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
417
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
418
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
419
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
420
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
421
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
422
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
423
|
-
|
|
424
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
425
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
426
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
427
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
428
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
429
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
430
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
431
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
432
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
433
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
434
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
435
|
-
|
|
436
|
-
function isValidElementType(type) {
|
|
437
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
438
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
function typeOf(object) {
|
|
442
|
-
if (typeof object === 'object' && object !== null) {
|
|
443
|
-
var $$typeof = object.$$typeof;
|
|
444
|
-
|
|
445
|
-
switch ($$typeof) {
|
|
446
|
-
case REACT_ELEMENT_TYPE:
|
|
447
|
-
var type = object.type;
|
|
448
|
-
|
|
449
|
-
switch (type) {
|
|
450
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
451
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
452
|
-
case REACT_FRAGMENT_TYPE:
|
|
453
|
-
case REACT_PROFILER_TYPE:
|
|
454
|
-
case REACT_STRICT_MODE_TYPE:
|
|
455
|
-
case REACT_SUSPENSE_TYPE:
|
|
456
|
-
return type;
|
|
457
|
-
|
|
458
|
-
default:
|
|
459
|
-
var $$typeofType = type && type.$$typeof;
|
|
460
|
-
|
|
461
|
-
switch ($$typeofType) {
|
|
462
|
-
case REACT_CONTEXT_TYPE:
|
|
463
|
-
case REACT_FORWARD_REF_TYPE:
|
|
464
|
-
case REACT_LAZY_TYPE:
|
|
465
|
-
case REACT_MEMO_TYPE:
|
|
466
|
-
case REACT_PROVIDER_TYPE:
|
|
467
|
-
return $$typeofType;
|
|
468
|
-
|
|
469
|
-
default:
|
|
470
|
-
return $$typeof;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
case REACT_PORTAL_TYPE:
|
|
476
|
-
return $$typeof;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
return undefined;
|
|
481
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
482
|
-
|
|
483
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
484
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
485
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
486
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
487
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
488
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
489
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
490
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
491
|
-
var Memo = REACT_MEMO_TYPE;
|
|
492
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
493
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
494
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
495
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
496
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
497
|
-
|
|
498
|
-
function isAsyncMode(object) {
|
|
499
|
-
{
|
|
500
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
501
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
502
|
-
|
|
503
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
508
|
-
}
|
|
509
|
-
function isConcurrentMode(object) {
|
|
510
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
511
|
-
}
|
|
512
|
-
function isContextConsumer(object) {
|
|
513
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
514
|
-
}
|
|
515
|
-
function isContextProvider(object) {
|
|
516
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
517
|
-
}
|
|
518
|
-
function isElement(object) {
|
|
519
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
520
|
-
}
|
|
521
|
-
function isForwardRef(object) {
|
|
522
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
523
|
-
}
|
|
524
|
-
function isFragment(object) {
|
|
525
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
526
|
-
}
|
|
527
|
-
function isLazy(object) {
|
|
528
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
529
|
-
}
|
|
530
|
-
function isMemo(object) {
|
|
531
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
532
|
-
}
|
|
533
|
-
function isPortal(object) {
|
|
534
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
535
|
-
}
|
|
536
|
-
function isProfiler(object) {
|
|
537
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
538
|
-
}
|
|
539
|
-
function isStrictMode(object) {
|
|
540
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
541
|
-
}
|
|
542
|
-
function isSuspense(object) {
|
|
543
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
547
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
548
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
549
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
550
|
-
reactIs_development.Element = Element;
|
|
551
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
552
|
-
reactIs_development.Fragment = Fragment;
|
|
553
|
-
reactIs_development.Lazy = Lazy;
|
|
554
|
-
reactIs_development.Memo = Memo;
|
|
555
|
-
reactIs_development.Portal = Portal;
|
|
556
|
-
reactIs_development.Profiler = Profiler;
|
|
557
|
-
reactIs_development.StrictMode = StrictMode;
|
|
558
|
-
reactIs_development.Suspense = Suspense;
|
|
559
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
560
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
561
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
562
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
563
|
-
reactIs_development.isElement = isElement;
|
|
564
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
565
|
-
reactIs_development.isFragment = isFragment;
|
|
566
|
-
reactIs_development.isLazy = isLazy;
|
|
567
|
-
reactIs_development.isMemo = isMemo;
|
|
568
|
-
reactIs_development.isPortal = isPortal;
|
|
569
|
-
reactIs_development.isProfiler = isProfiler;
|
|
570
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
571
|
-
reactIs_development.isSuspense = isSuspense;
|
|
572
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
573
|
-
reactIs_development.typeOf = typeOf;
|
|
574
|
-
})();
|
|
575
|
-
}
|
|
576
|
-
return reactIs_development;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
var hasRequiredReactIs;
|
|
580
|
-
|
|
581
|
-
function requireReactIs () {
|
|
582
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
583
|
-
hasRequiredReactIs = 1;
|
|
584
|
-
|
|
585
|
-
if (process.env.NODE_ENV === 'production') {
|
|
586
|
-
reactIs.exports = requireReactIs_production_min();
|
|
587
|
-
} else {
|
|
588
|
-
reactIs.exports = requireReactIs_development();
|
|
589
|
-
}
|
|
590
|
-
return reactIs.exports;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
/*
|
|
594
|
-
object-assign
|
|
595
|
-
(c) Sindre Sorhus
|
|
596
|
-
@license MIT
|
|
597
|
-
*/
|
|
598
|
-
|
|
599
|
-
var objectAssign;
|
|
600
|
-
var hasRequiredObjectAssign;
|
|
601
|
-
|
|
602
|
-
function requireObjectAssign () {
|
|
603
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
604
|
-
hasRequiredObjectAssign = 1;
|
|
605
|
-
/* eslint-disable no-unused-vars */
|
|
606
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
607
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
608
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
609
|
-
|
|
610
|
-
function toObject(val) {
|
|
611
|
-
if (val === null || val === undefined) {
|
|
612
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
return Object(val);
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
function shouldUseNative() {
|
|
619
|
-
try {
|
|
620
|
-
if (!Object.assign) {
|
|
621
|
-
return false;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
625
|
-
|
|
626
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
627
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
628
|
-
test1[5] = 'de';
|
|
629
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
630
|
-
return false;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
634
|
-
var test2 = {};
|
|
635
|
-
for (var i = 0; i < 10; i++) {
|
|
636
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
637
|
-
}
|
|
638
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
639
|
-
return test2[n];
|
|
640
|
-
});
|
|
641
|
-
if (order2.join('') !== '0123456789') {
|
|
642
|
-
return false;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
646
|
-
var test3 = {};
|
|
647
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
648
|
-
test3[letter] = letter;
|
|
649
|
-
});
|
|
650
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
651
|
-
'abcdefghijklmnopqrst') {
|
|
652
|
-
return false;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
return true;
|
|
656
|
-
} catch (err) {
|
|
657
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
658
|
-
return false;
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
663
|
-
var from;
|
|
664
|
-
var to = toObject(target);
|
|
665
|
-
var symbols;
|
|
666
|
-
|
|
667
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
668
|
-
from = Object(arguments[s]);
|
|
669
|
-
|
|
670
|
-
for (var key in from) {
|
|
671
|
-
if (hasOwnProperty.call(from, key)) {
|
|
672
|
-
to[key] = from[key];
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
if (getOwnPropertySymbols) {
|
|
677
|
-
symbols = getOwnPropertySymbols(from);
|
|
678
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
679
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
680
|
-
to[symbols[i]] = from[symbols[i]];
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
return to;
|
|
687
|
-
};
|
|
688
|
-
return objectAssign;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
693
|
-
*
|
|
694
|
-
* This source code is licensed under the MIT license found in the
|
|
695
|
-
* LICENSE file in the root directory of this source tree.
|
|
696
|
-
*/
|
|
697
|
-
|
|
698
|
-
var ReactPropTypesSecret_1;
|
|
699
|
-
var hasRequiredReactPropTypesSecret;
|
|
700
|
-
|
|
701
|
-
function requireReactPropTypesSecret () {
|
|
702
|
-
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
703
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
704
|
-
|
|
705
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
706
|
-
|
|
707
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
708
|
-
return ReactPropTypesSecret_1;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
var has;
|
|
712
|
-
var hasRequiredHas;
|
|
713
|
-
|
|
714
|
-
function requireHas () {
|
|
715
|
-
if (hasRequiredHas) return has;
|
|
716
|
-
hasRequiredHas = 1;
|
|
717
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
718
|
-
return has;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
/**
|
|
722
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
723
|
-
*
|
|
724
|
-
* This source code is licensed under the MIT license found in the
|
|
725
|
-
* LICENSE file in the root directory of this source tree.
|
|
726
|
-
*/
|
|
727
|
-
|
|
728
|
-
var checkPropTypes_1;
|
|
729
|
-
var hasRequiredCheckPropTypes;
|
|
730
|
-
|
|
731
|
-
function requireCheckPropTypes () {
|
|
732
|
-
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
733
|
-
hasRequiredCheckPropTypes = 1;
|
|
734
|
-
|
|
735
|
-
var printWarning = function() {};
|
|
736
|
-
|
|
737
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
738
|
-
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
|
|
739
|
-
var loggedTypeFailures = {};
|
|
740
|
-
var has = /*@__PURE__*/ requireHas();
|
|
741
|
-
|
|
742
|
-
printWarning = function(text) {
|
|
743
|
-
var message = 'Warning: ' + text;
|
|
744
|
-
if (typeof console !== 'undefined') {
|
|
745
|
-
console.error(message);
|
|
746
|
-
}
|
|
747
|
-
try {
|
|
748
|
-
// --- Welcome to debugging React ---
|
|
749
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
750
|
-
// to find the callsite that caused this warning to fire.
|
|
751
|
-
throw new Error(message);
|
|
752
|
-
} catch (x) { /**/ }
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
* Assert that the values match with the type specs.
|
|
758
|
-
* Error messages are memorized and will only be shown once.
|
|
759
|
-
*
|
|
760
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
761
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
762
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
763
|
-
* @param {string} componentName Name of the component for error messages.
|
|
764
|
-
* @param {?Function} getStack Returns the component stack.
|
|
765
|
-
* @private
|
|
766
|
-
*/
|
|
767
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
768
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
769
|
-
for (var typeSpecName in typeSpecs) {
|
|
770
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
771
|
-
var error;
|
|
772
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
773
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
774
|
-
// After these have been cleaned up, we'll let them throw.
|
|
775
|
-
try {
|
|
776
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
777
|
-
// behavior as without this statement except with a better message.
|
|
778
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
779
|
-
var err = Error(
|
|
780
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
781
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
782
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
783
|
-
);
|
|
784
|
-
err.name = 'Invariant Violation';
|
|
785
|
-
throw err;
|
|
786
|
-
}
|
|
787
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
788
|
-
} catch (ex) {
|
|
789
|
-
error = ex;
|
|
790
|
-
}
|
|
791
|
-
if (error && !(error instanceof Error)) {
|
|
792
|
-
printWarning(
|
|
793
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
794
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
795
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
796
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
797
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
798
|
-
'shape all require an argument).'
|
|
799
|
-
);
|
|
800
|
-
}
|
|
801
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
802
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
803
|
-
// same error.
|
|
804
|
-
loggedTypeFailures[error.message] = true;
|
|
805
|
-
|
|
806
|
-
var stack = getStack ? getStack() : '';
|
|
807
|
-
|
|
808
|
-
printWarning(
|
|
809
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
810
|
-
);
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* Resets warning cache when testing.
|
|
819
|
-
*
|
|
820
|
-
* @private
|
|
821
|
-
*/
|
|
822
|
-
checkPropTypes.resetWarningCache = function() {
|
|
823
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
824
|
-
loggedTypeFailures = {};
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
|
-
|
|
828
|
-
checkPropTypes_1 = checkPropTypes;
|
|
829
|
-
return checkPropTypes_1;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
/**
|
|
833
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
834
|
-
*
|
|
835
|
-
* This source code is licensed under the MIT license found in the
|
|
836
|
-
* LICENSE file in the root directory of this source tree.
|
|
837
|
-
*/
|
|
838
|
-
|
|
839
|
-
var factoryWithTypeCheckers;
|
|
840
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
841
|
-
|
|
842
|
-
function requireFactoryWithTypeCheckers () {
|
|
843
|
-
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
844
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
845
|
-
|
|
846
|
-
var ReactIs = requireReactIs();
|
|
847
|
-
var assign = requireObjectAssign();
|
|
848
|
-
|
|
849
|
-
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
|
|
850
|
-
var has = /*@__PURE__*/ requireHas();
|
|
851
|
-
var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes();
|
|
852
|
-
|
|
853
|
-
var printWarning = function() {};
|
|
854
|
-
|
|
855
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
856
|
-
printWarning = function(text) {
|
|
857
|
-
var message = 'Warning: ' + text;
|
|
858
|
-
if (typeof console !== 'undefined') {
|
|
859
|
-
console.error(message);
|
|
860
|
-
}
|
|
861
|
-
try {
|
|
862
|
-
// --- Welcome to debugging React ---
|
|
863
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
864
|
-
// to find the callsite that caused this warning to fire.
|
|
865
|
-
throw new Error(message);
|
|
866
|
-
} catch (x) {}
|
|
867
|
-
};
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
function emptyFunctionThatReturnsNull() {
|
|
871
|
-
return null;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
875
|
-
/* global Symbol */
|
|
876
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
877
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* Returns the iterator method function contained on the iterable object.
|
|
881
|
-
*
|
|
882
|
-
* Be sure to invoke the function with the iterable as context:
|
|
883
|
-
*
|
|
884
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
885
|
-
* if (iteratorFn) {
|
|
886
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
887
|
-
* ...
|
|
888
|
-
* }
|
|
889
|
-
*
|
|
890
|
-
* @param {?object} maybeIterable
|
|
891
|
-
* @return {?function}
|
|
892
|
-
*/
|
|
893
|
-
function getIteratorFn(maybeIterable) {
|
|
894
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
895
|
-
if (typeof iteratorFn === 'function') {
|
|
896
|
-
return iteratorFn;
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
902
|
-
* supplied to React components. Example usage:
|
|
903
|
-
*
|
|
904
|
-
* var Props = require('ReactPropTypes');
|
|
905
|
-
* var MyArticle = React.createClass({
|
|
906
|
-
* propTypes: {
|
|
907
|
-
* // An optional string prop named "description".
|
|
908
|
-
* description: Props.string,
|
|
909
|
-
*
|
|
910
|
-
* // A required enum prop named "category".
|
|
911
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
912
|
-
*
|
|
913
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
914
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
915
|
-
* },
|
|
916
|
-
* render: function() { ... }
|
|
917
|
-
* });
|
|
918
|
-
*
|
|
919
|
-
* A more formal specification of how these methods are used:
|
|
920
|
-
*
|
|
921
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
922
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
923
|
-
*
|
|
924
|
-
* Each and every declaration produces a function with the same signature. This
|
|
925
|
-
* allows the creation of custom validation functions. For example:
|
|
926
|
-
*
|
|
927
|
-
* var MyLink = React.createClass({
|
|
928
|
-
* propTypes: {
|
|
929
|
-
* // An optional string or URI prop named "href".
|
|
930
|
-
* href: function(props, propName, componentName) {
|
|
931
|
-
* var propValue = props[propName];
|
|
932
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
933
|
-
* !(propValue instanceof URI)) {
|
|
934
|
-
* return new Error(
|
|
935
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
936
|
-
* componentName
|
|
937
|
-
* );
|
|
938
|
-
* }
|
|
939
|
-
* }
|
|
940
|
-
* },
|
|
941
|
-
* render: function() {...}
|
|
942
|
-
* });
|
|
943
|
-
*
|
|
944
|
-
* @internal
|
|
945
|
-
*/
|
|
946
|
-
|
|
947
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
948
|
-
|
|
949
|
-
// Important!
|
|
950
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
951
|
-
var ReactPropTypes = {
|
|
952
|
-
array: createPrimitiveTypeChecker('array'),
|
|
953
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
954
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
955
|
-
func: createPrimitiveTypeChecker('function'),
|
|
956
|
-
number: createPrimitiveTypeChecker('number'),
|
|
957
|
-
object: createPrimitiveTypeChecker('object'),
|
|
958
|
-
string: createPrimitiveTypeChecker('string'),
|
|
959
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
960
|
-
|
|
961
|
-
any: createAnyTypeChecker(),
|
|
962
|
-
arrayOf: createArrayOfTypeChecker,
|
|
963
|
-
element: createElementTypeChecker(),
|
|
964
|
-
elementType: createElementTypeTypeChecker(),
|
|
965
|
-
instanceOf: createInstanceTypeChecker,
|
|
966
|
-
node: createNodeChecker(),
|
|
967
|
-
objectOf: createObjectOfTypeChecker,
|
|
968
|
-
oneOf: createEnumTypeChecker,
|
|
969
|
-
oneOfType: createUnionTypeChecker,
|
|
970
|
-
shape: createShapeTypeChecker,
|
|
971
|
-
exact: createStrictShapeTypeChecker,
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
976
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
977
|
-
*/
|
|
978
|
-
/*eslint-disable no-self-compare*/
|
|
979
|
-
function is(x, y) {
|
|
980
|
-
// SameValue algorithm
|
|
981
|
-
if (x === y) {
|
|
982
|
-
// Steps 1-5, 7-10
|
|
983
|
-
// Steps 6.b-6.e: +0 != -0
|
|
984
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
985
|
-
} else {
|
|
986
|
-
// Step 6.a: NaN == NaN
|
|
987
|
-
return x !== x && y !== y;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
/*eslint-enable no-self-compare*/
|
|
991
|
-
|
|
992
|
-
/**
|
|
993
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
994
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
995
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
996
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
997
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
998
|
-
*/
|
|
999
|
-
function PropTypeError(message, data) {
|
|
1000
|
-
this.message = message;
|
|
1001
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
1002
|
-
this.stack = '';
|
|
1003
|
-
}
|
|
1004
|
-
// Make `instanceof Error` still work for returned errors.
|
|
1005
|
-
PropTypeError.prototype = Error.prototype;
|
|
1006
|
-
|
|
1007
|
-
function createChainableTypeChecker(validate) {
|
|
1008
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1009
|
-
var manualPropTypeCallCache = {};
|
|
1010
|
-
var manualPropTypeWarningCount = 0;
|
|
1011
|
-
}
|
|
1012
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
1013
|
-
componentName = componentName || ANONYMOUS;
|
|
1014
|
-
propFullName = propFullName || propName;
|
|
1015
|
-
|
|
1016
|
-
if (secret !== ReactPropTypesSecret) {
|
|
1017
|
-
if (throwOnDirectAccess) {
|
|
1018
|
-
// New behavior only for users of `prop-types` package
|
|
1019
|
-
var err = new Error(
|
|
1020
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1021
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
1022
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
1023
|
-
);
|
|
1024
|
-
err.name = 'Invariant Violation';
|
|
1025
|
-
throw err;
|
|
1026
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
1027
|
-
// Old behavior for people using React.PropTypes
|
|
1028
|
-
var cacheKey = componentName + ':' + propName;
|
|
1029
|
-
if (
|
|
1030
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
1031
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
1032
|
-
manualPropTypeWarningCount < 3
|
|
1033
|
-
) {
|
|
1034
|
-
printWarning(
|
|
1035
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
1036
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
1037
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
1038
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
1039
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
1040
|
-
);
|
|
1041
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
1042
|
-
manualPropTypeWarningCount++;
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
if (props[propName] == null) {
|
|
1047
|
-
if (isRequired) {
|
|
1048
|
-
if (props[propName] === null) {
|
|
1049
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
1050
|
-
}
|
|
1051
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
1052
|
-
}
|
|
1053
|
-
return null;
|
|
1054
|
-
} else {
|
|
1055
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
1060
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
1061
|
-
|
|
1062
|
-
return chainedCheckType;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
1066
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
1067
|
-
var propValue = props[propName];
|
|
1068
|
-
var propType = getPropType(propValue);
|
|
1069
|
-
if (propType !== expectedType) {
|
|
1070
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
1071
|
-
// check, but we can offer a more precise error message here rather than
|
|
1072
|
-
// 'of type `object`'.
|
|
1073
|
-
var preciseType = getPreciseType(propValue);
|
|
1074
|
-
|
|
1075
|
-
return new PropTypeError(
|
|
1076
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
1077
|
-
{expectedType: expectedType}
|
|
1078
|
-
);
|
|
1079
|
-
}
|
|
1080
|
-
return null;
|
|
1081
|
-
}
|
|
1082
|
-
return createChainableTypeChecker(validate);
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
function createAnyTypeChecker() {
|
|
1086
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
1090
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1091
|
-
if (typeof typeChecker !== 'function') {
|
|
1092
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
1093
|
-
}
|
|
1094
|
-
var propValue = props[propName];
|
|
1095
|
-
if (!Array.isArray(propValue)) {
|
|
1096
|
-
var propType = getPropType(propValue);
|
|
1097
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
1098
|
-
}
|
|
1099
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
1100
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
1101
|
-
if (error instanceof Error) {
|
|
1102
|
-
return error;
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
return null;
|
|
1106
|
-
}
|
|
1107
|
-
return createChainableTypeChecker(validate);
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
function createElementTypeChecker() {
|
|
1111
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1112
|
-
var propValue = props[propName];
|
|
1113
|
-
if (!isValidElement(propValue)) {
|
|
1114
|
-
var propType = getPropType(propValue);
|
|
1115
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
1116
|
-
}
|
|
1117
|
-
return null;
|
|
1118
|
-
}
|
|
1119
|
-
return createChainableTypeChecker(validate);
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
function createElementTypeTypeChecker() {
|
|
1123
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1124
|
-
var propValue = props[propName];
|
|
1125
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
1126
|
-
var propType = getPropType(propValue);
|
|
1127
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
1128
|
-
}
|
|
1129
|
-
return null;
|
|
1130
|
-
}
|
|
1131
|
-
return createChainableTypeChecker(validate);
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
1135
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1136
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
1137
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
1138
|
-
var actualClassName = getClassName(props[propName]);
|
|
1139
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
1140
|
-
}
|
|
1141
|
-
return null;
|
|
1142
|
-
}
|
|
1143
|
-
return createChainableTypeChecker(validate);
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
function createEnumTypeChecker(expectedValues) {
|
|
1147
|
-
if (!Array.isArray(expectedValues)) {
|
|
1148
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1149
|
-
if (arguments.length > 1) {
|
|
1150
|
-
printWarning(
|
|
1151
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
1152
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
1153
|
-
);
|
|
1154
|
-
} else {
|
|
1155
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
return emptyFunctionThatReturnsNull;
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1162
|
-
var propValue = props[propName];
|
|
1163
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
1164
|
-
if (is(propValue, expectedValues[i])) {
|
|
1165
|
-
return null;
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
1170
|
-
var type = getPreciseType(value);
|
|
1171
|
-
if (type === 'symbol') {
|
|
1172
|
-
return String(value);
|
|
1173
|
-
}
|
|
1174
|
-
return value;
|
|
1175
|
-
});
|
|
1176
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
1177
|
-
}
|
|
1178
|
-
return createChainableTypeChecker(validate);
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
1182
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1183
|
-
if (typeof typeChecker !== 'function') {
|
|
1184
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
1185
|
-
}
|
|
1186
|
-
var propValue = props[propName];
|
|
1187
|
-
var propType = getPropType(propValue);
|
|
1188
|
-
if (propType !== 'object') {
|
|
1189
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
1190
|
-
}
|
|
1191
|
-
for (var key in propValue) {
|
|
1192
|
-
if (has(propValue, key)) {
|
|
1193
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1194
|
-
if (error instanceof Error) {
|
|
1195
|
-
return error;
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
return null;
|
|
1200
|
-
}
|
|
1201
|
-
return createChainableTypeChecker(validate);
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
1205
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
1206
|
-
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
1207
|
-
return emptyFunctionThatReturnsNull;
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1211
|
-
var checker = arrayOfTypeCheckers[i];
|
|
1212
|
-
if (typeof checker !== 'function') {
|
|
1213
|
-
printWarning(
|
|
1214
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
1215
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
1216
|
-
);
|
|
1217
|
-
return emptyFunctionThatReturnsNull;
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1222
|
-
var expectedTypes = [];
|
|
1223
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1224
|
-
var checker = arrayOfTypeCheckers[i];
|
|
1225
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
1226
|
-
if (checkerResult == null) {
|
|
1227
|
-
return null;
|
|
1228
|
-
}
|
|
1229
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
1230
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
1234
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
1235
|
-
}
|
|
1236
|
-
return createChainableTypeChecker(validate);
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
function createNodeChecker() {
|
|
1240
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1241
|
-
if (!isNode(props[propName])) {
|
|
1242
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
1243
|
-
}
|
|
1244
|
-
return null;
|
|
1245
|
-
}
|
|
1246
|
-
return createChainableTypeChecker(validate);
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
1250
|
-
return new PropTypeError(
|
|
1251
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
1252
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
1253
|
-
);
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
1257
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1258
|
-
var propValue = props[propName];
|
|
1259
|
-
var propType = getPropType(propValue);
|
|
1260
|
-
if (propType !== 'object') {
|
|
1261
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1262
|
-
}
|
|
1263
|
-
for (var key in shapeTypes) {
|
|
1264
|
-
var checker = shapeTypes[key];
|
|
1265
|
-
if (typeof checker !== 'function') {
|
|
1266
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1267
|
-
}
|
|
1268
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1269
|
-
if (error) {
|
|
1270
|
-
return error;
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
return null;
|
|
1274
|
-
}
|
|
1275
|
-
return createChainableTypeChecker(validate);
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
1279
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1280
|
-
var propValue = props[propName];
|
|
1281
|
-
var propType = getPropType(propValue);
|
|
1282
|
-
if (propType !== 'object') {
|
|
1283
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1284
|
-
}
|
|
1285
|
-
// We need to check all keys in case some are required but missing from props.
|
|
1286
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
1287
|
-
for (var key in allKeys) {
|
|
1288
|
-
var checker = shapeTypes[key];
|
|
1289
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
1290
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1291
|
-
}
|
|
1292
|
-
if (!checker) {
|
|
1293
|
-
return new PropTypeError(
|
|
1294
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
1295
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
1296
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1297
|
-
);
|
|
1298
|
-
}
|
|
1299
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1300
|
-
if (error) {
|
|
1301
|
-
return error;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
return null;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
return createChainableTypeChecker(validate);
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
function isNode(propValue) {
|
|
1311
|
-
switch (typeof propValue) {
|
|
1312
|
-
case 'number':
|
|
1313
|
-
case 'string':
|
|
1314
|
-
case 'undefined':
|
|
1315
|
-
return true;
|
|
1316
|
-
case 'boolean':
|
|
1317
|
-
return !propValue;
|
|
1318
|
-
case 'object':
|
|
1319
|
-
if (Array.isArray(propValue)) {
|
|
1320
|
-
return propValue.every(isNode);
|
|
1321
|
-
}
|
|
1322
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
1323
|
-
return true;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
1327
|
-
if (iteratorFn) {
|
|
1328
|
-
var iterator = iteratorFn.call(propValue);
|
|
1329
|
-
var step;
|
|
1330
|
-
if (iteratorFn !== propValue.entries) {
|
|
1331
|
-
while (!(step = iterator.next()).done) {
|
|
1332
|
-
if (!isNode(step.value)) {
|
|
1333
|
-
return false;
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
} else {
|
|
1337
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
1338
|
-
while (!(step = iterator.next()).done) {
|
|
1339
|
-
var entry = step.value;
|
|
1340
|
-
if (entry) {
|
|
1341
|
-
if (!isNode(entry[1])) {
|
|
1342
|
-
return false;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
} else {
|
|
1348
|
-
return false;
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
return true;
|
|
1352
|
-
default:
|
|
1353
|
-
return false;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
function isSymbol(propType, propValue) {
|
|
1358
|
-
// Native Symbol.
|
|
1359
|
-
if (propType === 'symbol') {
|
|
1360
|
-
return true;
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
// falsy value can't be a Symbol
|
|
1364
|
-
if (!propValue) {
|
|
1365
|
-
return false;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
1369
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
1370
|
-
return true;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
1374
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
1375
|
-
return true;
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
return false;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
1382
|
-
function getPropType(propValue) {
|
|
1383
|
-
var propType = typeof propValue;
|
|
1384
|
-
if (Array.isArray(propValue)) {
|
|
1385
|
-
return 'array';
|
|
1386
|
-
}
|
|
1387
|
-
if (propValue instanceof RegExp) {
|
|
1388
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
1389
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
1390
|
-
// passes PropTypes.object.
|
|
1391
|
-
return 'object';
|
|
1392
|
-
}
|
|
1393
|
-
if (isSymbol(propType, propValue)) {
|
|
1394
|
-
return 'symbol';
|
|
1395
|
-
}
|
|
1396
|
-
return propType;
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
1400
|
-
// See `createPrimitiveTypeChecker`.
|
|
1401
|
-
function getPreciseType(propValue) {
|
|
1402
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
1403
|
-
return '' + propValue;
|
|
1404
|
-
}
|
|
1405
|
-
var propType = getPropType(propValue);
|
|
1406
|
-
if (propType === 'object') {
|
|
1407
|
-
if (propValue instanceof Date) {
|
|
1408
|
-
return 'date';
|
|
1409
|
-
} else if (propValue instanceof RegExp) {
|
|
1410
|
-
return 'regexp';
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
return propType;
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
1417
|
-
// For example, "undefined" or "of type array"
|
|
1418
|
-
function getPostfixForTypeWarning(value) {
|
|
1419
|
-
var type = getPreciseType(value);
|
|
1420
|
-
switch (type) {
|
|
1421
|
-
case 'array':
|
|
1422
|
-
case 'object':
|
|
1423
|
-
return 'an ' + type;
|
|
1424
|
-
case 'boolean':
|
|
1425
|
-
case 'date':
|
|
1426
|
-
case 'regexp':
|
|
1427
|
-
return 'a ' + type;
|
|
1428
|
-
default:
|
|
1429
|
-
return type;
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
// Returns class name of the object, if any.
|
|
1434
|
-
function getClassName(propValue) {
|
|
1435
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
1436
|
-
return ANONYMOUS;
|
|
1437
|
-
}
|
|
1438
|
-
return propValue.constructor.name;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
1442
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
1443
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1444
|
-
|
|
1445
|
-
return ReactPropTypes;
|
|
1446
|
-
};
|
|
1447
|
-
return factoryWithTypeCheckers;
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
/**
|
|
1451
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1452
|
-
*
|
|
1453
|
-
* This source code is licensed under the MIT license found in the
|
|
1454
|
-
* LICENSE file in the root directory of this source tree.
|
|
1455
|
-
*/
|
|
1456
|
-
|
|
1457
|
-
var factoryWithThrowingShims;
|
|
1458
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
1459
|
-
|
|
1460
|
-
function requireFactoryWithThrowingShims () {
|
|
1461
|
-
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
1462
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
1463
|
-
|
|
1464
|
-
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
|
|
1465
|
-
|
|
1466
|
-
function emptyFunction() {}
|
|
1467
|
-
function emptyFunctionWithReset() {}
|
|
1468
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1469
|
-
|
|
1470
|
-
factoryWithThrowingShims = function() {
|
|
1471
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1472
|
-
if (secret === ReactPropTypesSecret) {
|
|
1473
|
-
// It is still safe when called from React.
|
|
1474
|
-
return;
|
|
1475
|
-
}
|
|
1476
|
-
var err = new Error(
|
|
1477
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1478
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
1479
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
1480
|
-
);
|
|
1481
|
-
err.name = 'Invariant Violation';
|
|
1482
|
-
throw err;
|
|
1483
|
-
} shim.isRequired = shim;
|
|
1484
|
-
function getShim() {
|
|
1485
|
-
return shim;
|
|
1486
|
-
} // Important!
|
|
1487
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1488
|
-
var ReactPropTypes = {
|
|
1489
|
-
array: shim,
|
|
1490
|
-
bigint: shim,
|
|
1491
|
-
bool: shim,
|
|
1492
|
-
func: shim,
|
|
1493
|
-
number: shim,
|
|
1494
|
-
object: shim,
|
|
1495
|
-
string: shim,
|
|
1496
|
-
symbol: shim,
|
|
1497
|
-
|
|
1498
|
-
any: shim,
|
|
1499
|
-
arrayOf: getShim,
|
|
1500
|
-
element: shim,
|
|
1501
|
-
elementType: shim,
|
|
1502
|
-
instanceOf: getShim,
|
|
1503
|
-
node: shim,
|
|
1504
|
-
objectOf: getShim,
|
|
1505
|
-
oneOf: getShim,
|
|
1506
|
-
oneOfType: getShim,
|
|
1507
|
-
shape: getShim,
|
|
1508
|
-
exact: getShim,
|
|
1509
|
-
|
|
1510
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1511
|
-
resetWarningCache: emptyFunction
|
|
1512
|
-
};
|
|
1513
|
-
|
|
1514
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1515
|
-
|
|
1516
|
-
return ReactPropTypes;
|
|
1517
|
-
};
|
|
1518
|
-
return factoryWithThrowingShims;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1523
|
-
*
|
|
1524
|
-
* This source code is licensed under the MIT license found in the
|
|
1525
|
-
* LICENSE file in the root directory of this source tree.
|
|
1526
|
-
*/
|
|
1527
|
-
|
|
1528
|
-
var hasRequiredPropTypes;
|
|
1529
|
-
|
|
1530
|
-
function requirePropTypes () {
|
|
1531
|
-
if (hasRequiredPropTypes) return propTypes.exports;
|
|
1532
|
-
hasRequiredPropTypes = 1;
|
|
1533
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1534
|
-
var ReactIs = requireReactIs();
|
|
1535
|
-
|
|
1536
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1537
|
-
// http://fb.me/prop-types-in-prod
|
|
1538
|
-
var throwOnDirectAccess = true;
|
|
1539
|
-
propTypes.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
1540
|
-
} else {
|
|
1541
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1542
|
-
// http://fb.me/prop-types-in-prod
|
|
1543
|
-
propTypes.exports = /*@__PURE__*/ requireFactoryWithThrowingShims()();
|
|
1544
|
-
}
|
|
1545
|
-
return propTypes.exports;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
var props;
|
|
1549
|
-
var hasRequiredProps;
|
|
1550
|
-
|
|
1551
|
-
function requireProps () {
|
|
1552
|
-
if (hasRequiredProps) return props;
|
|
1553
|
-
hasRequiredProps = 1;
|
|
1554
|
-
var __create = Object.create;
|
|
1555
|
-
var __defProp = Object.defineProperty;
|
|
1556
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1557
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1558
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
1559
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1560
|
-
var __export = (target, all) => {
|
|
1561
|
-
for (var name in all)
|
|
1562
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1563
|
-
};
|
|
1564
|
-
var __copyProps = (to, from, except, desc) => {
|
|
1565
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
1566
|
-
for (let key of __getOwnPropNames(from))
|
|
1567
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1568
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1569
|
-
}
|
|
1570
|
-
return to;
|
|
1571
|
-
};
|
|
1572
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
1573
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
1574
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
1575
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1576
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1577
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
1578
|
-
mod
|
|
1579
|
-
));
|
|
1580
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1581
|
-
var props_exports = {};
|
|
1582
|
-
__export(props_exports, {
|
|
1583
|
-
defaultProps: () => defaultProps,
|
|
1584
|
-
propTypes: () => propTypes
|
|
1585
|
-
});
|
|
1586
|
-
props = __toCommonJS(props_exports);
|
|
1587
|
-
var import_prop_types = __toESM(/*@__PURE__*/ requirePropTypes());
|
|
1588
|
-
const { string, bool, number, array, oneOfType, shape, object, func, node } = import_prop_types.default;
|
|
1589
|
-
const propTypes = {
|
|
1590
|
-
url: oneOfType([string, array, object]),
|
|
1591
|
-
playing: bool,
|
|
1592
|
-
loop: bool,
|
|
1593
|
-
controls: bool,
|
|
1594
|
-
volume: number,
|
|
1595
|
-
muted: bool,
|
|
1596
|
-
playbackRate: number,
|
|
1597
|
-
width: oneOfType([string, number]),
|
|
1598
|
-
height: oneOfType([string, number]),
|
|
1599
|
-
style: object,
|
|
1600
|
-
progressInterval: number,
|
|
1601
|
-
playsinline: bool,
|
|
1602
|
-
pip: bool,
|
|
1603
|
-
stopOnUnmount: bool,
|
|
1604
|
-
light: oneOfType([bool, string, object]),
|
|
1605
|
-
playIcon: node,
|
|
1606
|
-
previewTabIndex: number,
|
|
1607
|
-
previewAriaLabel: string,
|
|
1608
|
-
fallback: node,
|
|
1609
|
-
oEmbedUrl: string,
|
|
1610
|
-
wrapper: oneOfType([
|
|
1611
|
-
string,
|
|
1612
|
-
func,
|
|
1613
|
-
shape({ render: func.isRequired })
|
|
1614
|
-
]),
|
|
1615
|
-
config: shape({
|
|
1616
|
-
soundcloud: shape({
|
|
1617
|
-
options: object
|
|
1618
|
-
}),
|
|
1619
|
-
youtube: shape({
|
|
1620
|
-
playerVars: object,
|
|
1621
|
-
embedOptions: object,
|
|
1622
|
-
onUnstarted: func
|
|
1623
|
-
}),
|
|
1624
|
-
facebook: shape({
|
|
1625
|
-
appId: string,
|
|
1626
|
-
version: string,
|
|
1627
|
-
playerId: string,
|
|
1628
|
-
attributes: object
|
|
1629
|
-
}),
|
|
1630
|
-
dailymotion: shape({
|
|
1631
|
-
params: object
|
|
1632
|
-
}),
|
|
1633
|
-
vimeo: shape({
|
|
1634
|
-
playerOptions: object,
|
|
1635
|
-
title: string
|
|
1636
|
-
}),
|
|
1637
|
-
mux: shape({
|
|
1638
|
-
attributes: object,
|
|
1639
|
-
version: string
|
|
1640
|
-
}),
|
|
1641
|
-
file: shape({
|
|
1642
|
-
attributes: object,
|
|
1643
|
-
tracks: array,
|
|
1644
|
-
forceVideo: bool,
|
|
1645
|
-
forceAudio: bool,
|
|
1646
|
-
forceHLS: bool,
|
|
1647
|
-
forceSafariHLS: bool,
|
|
1648
|
-
forceDisableHls: bool,
|
|
1649
|
-
forceDASH: bool,
|
|
1650
|
-
forceFLV: bool,
|
|
1651
|
-
hlsOptions: object,
|
|
1652
|
-
hlsVersion: string,
|
|
1653
|
-
dashVersion: string,
|
|
1654
|
-
flvVersion: string
|
|
1655
|
-
}),
|
|
1656
|
-
wistia: shape({
|
|
1657
|
-
options: object,
|
|
1658
|
-
playerId: string,
|
|
1659
|
-
customControls: array
|
|
1660
|
-
}),
|
|
1661
|
-
mixcloud: shape({
|
|
1662
|
-
options: object
|
|
1663
|
-
}),
|
|
1664
|
-
twitch: shape({
|
|
1665
|
-
options: object,
|
|
1666
|
-
playerId: string
|
|
1667
|
-
}),
|
|
1668
|
-
vidyard: shape({
|
|
1669
|
-
options: object
|
|
1670
|
-
})
|
|
1671
|
-
}),
|
|
1672
|
-
onReady: func,
|
|
1673
|
-
onStart: func,
|
|
1674
|
-
onPlay: func,
|
|
1675
|
-
onPause: func,
|
|
1676
|
-
onBuffer: func,
|
|
1677
|
-
onBufferEnd: func,
|
|
1678
|
-
onEnded: func,
|
|
1679
|
-
onError: func,
|
|
1680
|
-
onDuration: func,
|
|
1681
|
-
onSeek: func,
|
|
1682
|
-
onPlaybackRateChange: func,
|
|
1683
|
-
onPlaybackQualityChange: func,
|
|
1684
|
-
onProgress: func,
|
|
1685
|
-
onClickPreview: func,
|
|
1686
|
-
onEnablePIP: func,
|
|
1687
|
-
onDisablePIP: func
|
|
1688
|
-
};
|
|
1689
|
-
const noop = () => {
|
|
1690
|
-
};
|
|
1691
|
-
const defaultProps = {
|
|
1692
|
-
playing: false,
|
|
1693
|
-
loop: false,
|
|
1694
|
-
controls: false,
|
|
1695
|
-
volume: null,
|
|
1696
|
-
muted: false,
|
|
1697
|
-
playbackRate: 1,
|
|
1698
|
-
width: "640px",
|
|
1699
|
-
height: "360px",
|
|
1700
|
-
style: {},
|
|
1701
|
-
progressInterval: 1e3,
|
|
1702
|
-
playsinline: false,
|
|
1703
|
-
pip: false,
|
|
1704
|
-
stopOnUnmount: true,
|
|
1705
|
-
light: false,
|
|
1706
|
-
fallback: null,
|
|
1707
|
-
wrapper: "div",
|
|
1708
|
-
previewTabIndex: 0,
|
|
1709
|
-
previewAriaLabel: "",
|
|
1710
|
-
oEmbedUrl: "https://noembed.com/embed?url={url}",
|
|
1711
|
-
config: {
|
|
1712
|
-
soundcloud: {
|
|
1713
|
-
options: {
|
|
1714
|
-
visual: true,
|
|
1715
|
-
// Undocumented, but makes player fill container and look better
|
|
1716
|
-
buying: false,
|
|
1717
|
-
liking: false,
|
|
1718
|
-
download: false,
|
|
1719
|
-
sharing: false,
|
|
1720
|
-
show_comments: false,
|
|
1721
|
-
show_playcount: false
|
|
1722
|
-
}
|
|
1723
|
-
},
|
|
1724
|
-
youtube: {
|
|
1725
|
-
playerVars: {
|
|
1726
|
-
playsinline: 1,
|
|
1727
|
-
showinfo: 0,
|
|
1728
|
-
rel: 0,
|
|
1729
|
-
iv_load_policy: 3,
|
|
1730
|
-
modestbranding: 1
|
|
1731
|
-
},
|
|
1732
|
-
embedOptions: {},
|
|
1733
|
-
onUnstarted: noop
|
|
1734
|
-
},
|
|
1735
|
-
facebook: {
|
|
1736
|
-
appId: "1309697205772819",
|
|
1737
|
-
version: "v3.3",
|
|
1738
|
-
playerId: null,
|
|
1739
|
-
attributes: {}
|
|
1740
|
-
},
|
|
1741
|
-
dailymotion: {
|
|
1742
|
-
params: {
|
|
1743
|
-
api: 1,
|
|
1744
|
-
"endscreen-enable": false
|
|
1745
|
-
}
|
|
1746
|
-
},
|
|
1747
|
-
vimeo: {
|
|
1748
|
-
playerOptions: {
|
|
1749
|
-
autopause: false,
|
|
1750
|
-
byline: false,
|
|
1751
|
-
portrait: false,
|
|
1752
|
-
title: false
|
|
1753
|
-
},
|
|
1754
|
-
title: null
|
|
1755
|
-
},
|
|
1756
|
-
mux: {
|
|
1757
|
-
attributes: {},
|
|
1758
|
-
version: "2"
|
|
1759
|
-
},
|
|
1760
|
-
file: {
|
|
1761
|
-
attributes: {},
|
|
1762
|
-
tracks: [],
|
|
1763
|
-
forceVideo: false,
|
|
1764
|
-
forceAudio: false,
|
|
1765
|
-
forceHLS: false,
|
|
1766
|
-
forceDASH: false,
|
|
1767
|
-
forceFLV: false,
|
|
1768
|
-
hlsOptions: {},
|
|
1769
|
-
hlsVersion: "1.1.4",
|
|
1770
|
-
dashVersion: "3.1.3",
|
|
1771
|
-
flvVersion: "1.5.0",
|
|
1772
|
-
forceDisableHls: false
|
|
1773
|
-
},
|
|
1774
|
-
wistia: {
|
|
1775
|
-
options: {},
|
|
1776
|
-
playerId: null,
|
|
1777
|
-
customControls: null
|
|
1778
|
-
},
|
|
1779
|
-
mixcloud: {
|
|
1780
|
-
options: {
|
|
1781
|
-
hide_cover: 1
|
|
1782
|
-
}
|
|
1783
|
-
},
|
|
1784
|
-
twitch: {
|
|
1785
|
-
options: {},
|
|
1786
|
-
playerId: null
|
|
1787
|
-
},
|
|
1788
|
-
vidyard: {
|
|
1789
|
-
options: {}
|
|
1790
|
-
}
|
|
1791
|
-
},
|
|
1792
|
-
onReady: noop,
|
|
1793
|
-
onStart: noop,
|
|
1794
|
-
onPlay: noop,
|
|
1795
|
-
onPause: noop,
|
|
1796
|
-
onBuffer: noop,
|
|
1797
|
-
onBufferEnd: noop,
|
|
1798
|
-
onEnded: noop,
|
|
1799
|
-
onError: noop,
|
|
1800
|
-
onDuration: noop,
|
|
1801
|
-
onSeek: noop,
|
|
1802
|
-
onPlaybackRateChange: noop,
|
|
1803
|
-
onPlaybackQualityChange: noop,
|
|
1804
|
-
onProgress: noop,
|
|
1805
|
-
onClickPreview: noop,
|
|
1806
|
-
onEnablePIP: noop,
|
|
1807
|
-
onDisablePIP: noop
|
|
1808
|
-
};
|
|
1809
|
-
return props;
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
var loadScript;
|
|
1813
|
-
var hasRequiredLoadScript;
|
|
1814
|
-
|
|
1815
|
-
function requireLoadScript () {
|
|
1816
|
-
if (hasRequiredLoadScript) return loadScript;
|
|
1817
|
-
hasRequiredLoadScript = 1;
|
|
1818
|
-
loadScript = function load (src, opts, cb) {
|
|
1819
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1820
|
-
var script = document.createElement('script');
|
|
1821
|
-
|
|
1822
|
-
if (typeof opts === 'function') {
|
|
1823
|
-
cb = opts;
|
|
1824
|
-
opts = {};
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
opts = opts || {};
|
|
1828
|
-
cb = cb || function() {};
|
|
1829
|
-
|
|
1830
|
-
script.type = opts.type || 'text/javascript';
|
|
1831
|
-
script.charset = opts.charset || 'utf8';
|
|
1832
|
-
script.async = 'async' in opts ? !!opts.async : true;
|
|
1833
|
-
script.src = src;
|
|
1834
|
-
|
|
1835
|
-
if (opts.attrs) {
|
|
1836
|
-
setAttributes(script, opts.attrs);
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
if (opts.text) {
|
|
1840
|
-
script.text = '' + opts.text;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
var onend = 'onload' in script ? stdOnEnd : ieOnEnd;
|
|
1844
|
-
onend(script, cb);
|
|
1845
|
-
|
|
1846
|
-
// some good legacy browsers (firefox) fail the 'in' detection above
|
|
1847
|
-
// so as a fallback we always set onload
|
|
1848
|
-
// old IE will ignore this and new IE will set onload
|
|
1849
|
-
if (!script.onload) {
|
|
1850
|
-
stdOnEnd(script, cb);
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
head.appendChild(script);
|
|
1854
|
-
};
|
|
1855
|
-
|
|
1856
|
-
function setAttributes(script, attrs) {
|
|
1857
|
-
for (var attr in attrs) {
|
|
1858
|
-
script.setAttribute(attr, attrs[attr]);
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
function stdOnEnd (script, cb) {
|
|
1863
|
-
script.onload = function () {
|
|
1864
|
-
this.onerror = this.onload = null;
|
|
1865
|
-
cb(null, script);
|
|
1866
|
-
};
|
|
1867
|
-
script.onerror = function () {
|
|
1868
|
-
// this.onload = null here is necessary
|
|
1869
|
-
// because even IE9 works not like others
|
|
1870
|
-
this.onerror = this.onload = null;
|
|
1871
|
-
cb(new Error('Failed to load ' + this.src), script);
|
|
1872
|
-
};
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
function ieOnEnd (script, cb) {
|
|
1876
|
-
script.onreadystatechange = function () {
|
|
1877
|
-
if (this.readyState != 'complete' && this.readyState != 'loaded') return
|
|
1878
|
-
this.onreadystatechange = null;
|
|
1879
|
-
cb(null, script); // there is no way to catch loading errors in IE8
|
|
1880
|
-
};
|
|
1881
|
-
}
|
|
1882
|
-
return loadScript;
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
var utils;
|
|
1886
|
-
var hasRequiredUtils;
|
|
1887
|
-
|
|
1888
|
-
function requireUtils () {
|
|
1889
|
-
if (hasRequiredUtils) return utils;
|
|
1890
|
-
hasRequiredUtils = 1;
|
|
1891
|
-
var __create = Object.create;
|
|
1892
|
-
var __defProp = Object.defineProperty;
|
|
1893
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1894
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1895
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
1896
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1897
|
-
var __export = (target, all) => {
|
|
1898
|
-
for (var name in all)
|
|
1899
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1900
|
-
};
|
|
1901
|
-
var __copyProps = (to, from, except, desc) => {
|
|
1902
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
1903
|
-
for (let key of __getOwnPropNames(from))
|
|
1904
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1905
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1906
|
-
}
|
|
1907
|
-
return to;
|
|
1908
|
-
};
|
|
1909
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
1910
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
1911
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
1912
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1913
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1914
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
1915
|
-
mod
|
|
1916
|
-
));
|
|
1917
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1918
|
-
var utils_exports = {};
|
|
1919
|
-
__export(utils_exports, {
|
|
1920
|
-
callPlayer: () => callPlayer,
|
|
1921
|
-
getConfig: () => getConfig,
|
|
1922
|
-
getSDK: () => getSDK,
|
|
1923
|
-
isBlobUrl: () => isBlobUrl,
|
|
1924
|
-
isMediaStream: () => isMediaStream,
|
|
1925
|
-
lazy: () => lazy,
|
|
1926
|
-
omit: () => omit,
|
|
1927
|
-
parseEndTime: () => parseEndTime,
|
|
1928
|
-
parseStartTime: () => parseStartTime,
|
|
1929
|
-
queryString: () => queryString,
|
|
1930
|
-
randomString: () => randomString,
|
|
1931
|
-
supportsWebKitPresentationMode: () => supportsWebKitPresentationMode
|
|
1932
|
-
});
|
|
1933
|
-
utils = __toCommonJS(utils_exports);
|
|
1934
|
-
var import_react = __toESM(React);
|
|
1935
|
-
var import_load_script = __toESM(requireLoadScript());
|
|
1936
|
-
var import_deepmerge = __toESM(requireCjs());
|
|
1937
|
-
const lazy = (componentImportFn) => import_react.default.lazy(async () => {
|
|
1938
|
-
const obj = await componentImportFn();
|
|
1939
|
-
return typeof obj.default === "function" ? obj : obj.default;
|
|
1940
|
-
});
|
|
1941
|
-
const MATCH_START_QUERY = /[?&#](?:start|t)=([0-9hms]+)/;
|
|
1942
|
-
const MATCH_END_QUERY = /[?&#]end=([0-9hms]+)/;
|
|
1943
|
-
const MATCH_START_STAMP = /(\d+)(h|m|s)/g;
|
|
1944
|
-
const MATCH_NUMERIC = /^\d+$/;
|
|
1945
|
-
function parseTimeParam(url, pattern) {
|
|
1946
|
-
if (url instanceof Array) {
|
|
1947
|
-
return void 0;
|
|
1948
|
-
}
|
|
1949
|
-
const match = url.match(pattern);
|
|
1950
|
-
if (match) {
|
|
1951
|
-
const stamp = match[1];
|
|
1952
|
-
if (stamp.match(MATCH_START_STAMP)) {
|
|
1953
|
-
return parseTimeString(stamp);
|
|
1954
|
-
}
|
|
1955
|
-
if (MATCH_NUMERIC.test(stamp)) {
|
|
1956
|
-
return parseInt(stamp);
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
return void 0;
|
|
1960
|
-
}
|
|
1961
|
-
function parseTimeString(stamp) {
|
|
1962
|
-
let seconds = 0;
|
|
1963
|
-
let array = MATCH_START_STAMP.exec(stamp);
|
|
1964
|
-
while (array !== null) {
|
|
1965
|
-
const [, count, period] = array;
|
|
1966
|
-
if (period === "h")
|
|
1967
|
-
seconds += parseInt(count, 10) * 60 * 60;
|
|
1968
|
-
if (period === "m")
|
|
1969
|
-
seconds += parseInt(count, 10) * 60;
|
|
1970
|
-
if (period === "s")
|
|
1971
|
-
seconds += parseInt(count, 10);
|
|
1972
|
-
array = MATCH_START_STAMP.exec(stamp);
|
|
1973
|
-
}
|
|
1974
|
-
return seconds;
|
|
1975
|
-
}
|
|
1976
|
-
function parseStartTime(url) {
|
|
1977
|
-
return parseTimeParam(url, MATCH_START_QUERY);
|
|
1978
|
-
}
|
|
1979
|
-
function parseEndTime(url) {
|
|
1980
|
-
return parseTimeParam(url, MATCH_END_QUERY);
|
|
1981
|
-
}
|
|
1982
|
-
function randomString() {
|
|
1983
|
-
return Math.random().toString(36).substr(2, 5);
|
|
1984
|
-
}
|
|
1985
|
-
function queryString(object) {
|
|
1986
|
-
return Object.keys(object).map((key) => `${key}=${object[key]}`).join("&");
|
|
1987
|
-
}
|
|
1988
|
-
function getGlobal(key) {
|
|
1989
|
-
if (window[key]) {
|
|
1990
|
-
return window[key];
|
|
1991
|
-
}
|
|
1992
|
-
if (window.exports && window.exports[key]) {
|
|
1993
|
-
return window.exports[key];
|
|
1994
|
-
}
|
|
1995
|
-
if (window.module && window.module.exports && window.module.exports[key]) {
|
|
1996
|
-
return window.module.exports[key];
|
|
1997
|
-
}
|
|
1998
|
-
return null;
|
|
1999
|
-
}
|
|
2000
|
-
const requests = {};
|
|
2001
|
-
const getSDK = enableStubOn(function getSDK2(url, sdkGlobal, sdkReady = null, isLoaded = () => true, fetchScript = import_load_script.default) {
|
|
2002
|
-
const existingGlobal = getGlobal(sdkGlobal);
|
|
2003
|
-
if (existingGlobal && isLoaded(existingGlobal)) {
|
|
2004
|
-
return Promise.resolve(existingGlobal);
|
|
2005
|
-
}
|
|
2006
|
-
return new Promise((resolve, reject) => {
|
|
2007
|
-
if (requests[url]) {
|
|
2008
|
-
requests[url].push({ resolve, reject });
|
|
2009
|
-
return;
|
|
2010
|
-
}
|
|
2011
|
-
requests[url] = [{ resolve, reject }];
|
|
2012
|
-
const onLoaded = (sdk) => {
|
|
2013
|
-
requests[url].forEach((request) => request.resolve(sdk));
|
|
2014
|
-
};
|
|
2015
|
-
if (sdkReady) {
|
|
2016
|
-
const previousOnReady = window[sdkReady];
|
|
2017
|
-
window[sdkReady] = function() {
|
|
2018
|
-
if (previousOnReady)
|
|
2019
|
-
previousOnReady();
|
|
2020
|
-
onLoaded(getGlobal(sdkGlobal));
|
|
2021
|
-
};
|
|
2022
|
-
}
|
|
2023
|
-
fetchScript(url, (err) => {
|
|
2024
|
-
if (err) {
|
|
2025
|
-
requests[url].forEach((request) => request.reject(err));
|
|
2026
|
-
requests[url] = null;
|
|
2027
|
-
} else if (!sdkReady) {
|
|
2028
|
-
onLoaded(getGlobal(sdkGlobal));
|
|
2029
|
-
}
|
|
2030
|
-
});
|
|
2031
|
-
});
|
|
2032
|
-
});
|
|
2033
|
-
function getConfig(props, defaultProps) {
|
|
2034
|
-
return (0, import_deepmerge.default)(defaultProps.config, props.config);
|
|
2035
|
-
}
|
|
2036
|
-
function omit(object, ...arrays) {
|
|
2037
|
-
const omitKeys = [].concat(...arrays);
|
|
2038
|
-
const output = {};
|
|
2039
|
-
const keys = Object.keys(object);
|
|
2040
|
-
for (const key of keys) {
|
|
2041
|
-
if (omitKeys.indexOf(key) === -1) {
|
|
2042
|
-
output[key] = object[key];
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
return output;
|
|
2046
|
-
}
|
|
2047
|
-
function callPlayer(method, ...args) {
|
|
2048
|
-
if (!this.player || !this.player[method]) {
|
|
2049
|
-
let message = `ReactPlayer: ${this.constructor.displayName} player could not call %c${method}%c \u2013 `;
|
|
2050
|
-
if (!this.player) {
|
|
2051
|
-
message += "The player was not available";
|
|
2052
|
-
} else if (!this.player[method]) {
|
|
2053
|
-
message += "The method was not available";
|
|
2054
|
-
}
|
|
2055
|
-
console.warn(message, "font-weight: bold", "");
|
|
2056
|
-
return null;
|
|
2057
|
-
}
|
|
2058
|
-
return this.player[method](...args);
|
|
2059
|
-
}
|
|
2060
|
-
function isMediaStream(url) {
|
|
2061
|
-
return typeof window !== "undefined" && typeof window.MediaStream !== "undefined" && url instanceof window.MediaStream;
|
|
2062
|
-
}
|
|
2063
|
-
function isBlobUrl(url) {
|
|
2064
|
-
return /^blob:/.test(url);
|
|
2065
|
-
}
|
|
2066
|
-
function supportsWebKitPresentationMode(video = document.createElement("video")) {
|
|
2067
|
-
const notMobile = /iPhone|iPod/.test(navigator.userAgent) === false;
|
|
2068
|
-
return video.webkitSupportsPresentationMode && typeof video.webkitSetPresentationMode === "function" && notMobile;
|
|
2069
|
-
}
|
|
2070
|
-
function enableStubOn(fn) {
|
|
2071
|
-
return fn;
|
|
2072
|
-
}
|
|
2073
|
-
return utils;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
var Player_1;
|
|
2077
|
-
var hasRequiredPlayer;
|
|
2078
|
-
|
|
2079
|
-
function requirePlayer () {
|
|
2080
|
-
if (hasRequiredPlayer) return Player_1;
|
|
2081
|
-
hasRequiredPlayer = 1;
|
|
2082
|
-
var __create = Object.create;
|
|
2083
|
-
var __defProp = Object.defineProperty;
|
|
2084
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2085
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2086
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
2087
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2088
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2089
|
-
var __export = (target, all) => {
|
|
2090
|
-
for (var name in all)
|
|
2091
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2092
|
-
};
|
|
2093
|
-
var __copyProps = (to, from, except, desc) => {
|
|
2094
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
2095
|
-
for (let key of __getOwnPropNames(from))
|
|
2096
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2097
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2098
|
-
}
|
|
2099
|
-
return to;
|
|
2100
|
-
};
|
|
2101
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
2102
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
2103
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
2104
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2105
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2106
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
2107
|
-
mod
|
|
2108
|
-
));
|
|
2109
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2110
|
-
var __publicField = (obj, key, value) => {
|
|
2111
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2112
|
-
return value;
|
|
2113
|
-
};
|
|
2114
|
-
var Player_exports = {};
|
|
2115
|
-
__export(Player_exports, {
|
|
2116
|
-
default: () => Player
|
|
2117
|
-
});
|
|
2118
|
-
Player_1 = __toCommonJS(Player_exports);
|
|
2119
|
-
var import_react = __toESM(React);
|
|
2120
|
-
var import_react_fast_compare = __toESM(requireReactFastCompare());
|
|
2121
|
-
var import_props = /*@__PURE__*/ requireProps();
|
|
2122
|
-
var import_utils = /*@__PURE__*/ requireUtils();
|
|
2123
|
-
const SEEK_ON_PLAY_EXPIRY = 5e3;
|
|
2124
|
-
class Player extends import_react.Component {
|
|
2125
|
-
constructor() {
|
|
2126
|
-
super(...arguments);
|
|
2127
|
-
__publicField(this, "mounted", false);
|
|
2128
|
-
__publicField(this, "isReady", false);
|
|
2129
|
-
__publicField(this, "isPlaying", false);
|
|
2130
|
-
// Track playing state internally to prevent bugs
|
|
2131
|
-
__publicField(this, "isLoading", true);
|
|
2132
|
-
// Use isLoading to prevent onPause when switching URL
|
|
2133
|
-
__publicField(this, "loadOnReady", null);
|
|
2134
|
-
__publicField(this, "startOnPlay", true);
|
|
2135
|
-
__publicField(this, "seekOnPlay", null);
|
|
2136
|
-
__publicField(this, "onDurationCalled", false);
|
|
2137
|
-
__publicField(this, "handlePlayerMount", (player) => {
|
|
2138
|
-
if (this.player) {
|
|
2139
|
-
this.progress();
|
|
2140
|
-
return;
|
|
2141
|
-
}
|
|
2142
|
-
this.player = player;
|
|
2143
|
-
this.player.load(this.props.url);
|
|
2144
|
-
this.progress();
|
|
2145
|
-
});
|
|
2146
|
-
__publicField(this, "getInternalPlayer", (key) => {
|
|
2147
|
-
if (!this.player)
|
|
2148
|
-
return null;
|
|
2149
|
-
return this.player[key];
|
|
2150
|
-
});
|
|
2151
|
-
__publicField(this, "progress", () => {
|
|
2152
|
-
if (this.props.url && this.player && this.isReady) {
|
|
2153
|
-
const playedSeconds = this.getCurrentTime() || 0;
|
|
2154
|
-
const loadedSeconds = this.getSecondsLoaded();
|
|
2155
|
-
const duration = this.getDuration();
|
|
2156
|
-
if (duration) {
|
|
2157
|
-
const progress = {
|
|
2158
|
-
playedSeconds,
|
|
2159
|
-
played: playedSeconds / duration
|
|
2160
|
-
};
|
|
2161
|
-
if (loadedSeconds !== null) {
|
|
2162
|
-
progress.loadedSeconds = loadedSeconds;
|
|
2163
|
-
progress.loaded = loadedSeconds / duration;
|
|
2164
|
-
}
|
|
2165
|
-
if (progress.playedSeconds !== this.prevPlayed || progress.loadedSeconds !== this.prevLoaded) {
|
|
2166
|
-
this.props.onProgress(progress);
|
|
2167
|
-
}
|
|
2168
|
-
this.prevPlayed = progress.playedSeconds;
|
|
2169
|
-
this.prevLoaded = progress.loadedSeconds;
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval);
|
|
2173
|
-
});
|
|
2174
|
-
__publicField(this, "handleReady", () => {
|
|
2175
|
-
if (!this.mounted)
|
|
2176
|
-
return;
|
|
2177
|
-
this.isReady = true;
|
|
2178
|
-
this.isLoading = false;
|
|
2179
|
-
const { onReady, playing, volume, muted } = this.props;
|
|
2180
|
-
onReady();
|
|
2181
|
-
if (!muted && volume !== null) {
|
|
2182
|
-
this.player.setVolume(volume);
|
|
2183
|
-
}
|
|
2184
|
-
if (this.loadOnReady) {
|
|
2185
|
-
this.player.load(this.loadOnReady, true);
|
|
2186
|
-
this.loadOnReady = null;
|
|
2187
|
-
} else if (playing) {
|
|
2188
|
-
this.player.play();
|
|
2189
|
-
}
|
|
2190
|
-
this.handleDurationCheck();
|
|
2191
|
-
});
|
|
2192
|
-
__publicField(this, "handlePlay", () => {
|
|
2193
|
-
this.isPlaying = true;
|
|
2194
|
-
this.isLoading = false;
|
|
2195
|
-
const { onStart, onPlay, playbackRate } = this.props;
|
|
2196
|
-
if (this.startOnPlay) {
|
|
2197
|
-
if (this.player.setPlaybackRate && playbackRate !== 1) {
|
|
2198
|
-
this.player.setPlaybackRate(playbackRate);
|
|
2199
|
-
}
|
|
2200
|
-
onStart();
|
|
2201
|
-
this.startOnPlay = false;
|
|
2202
|
-
}
|
|
2203
|
-
onPlay();
|
|
2204
|
-
if (this.seekOnPlay) {
|
|
2205
|
-
this.seekTo(this.seekOnPlay);
|
|
2206
|
-
this.seekOnPlay = null;
|
|
2207
|
-
}
|
|
2208
|
-
this.handleDurationCheck();
|
|
2209
|
-
});
|
|
2210
|
-
__publicField(this, "handlePause", (e) => {
|
|
2211
|
-
this.isPlaying = false;
|
|
2212
|
-
if (!this.isLoading) {
|
|
2213
|
-
this.props.onPause(e);
|
|
2214
|
-
}
|
|
2215
|
-
});
|
|
2216
|
-
__publicField(this, "handleEnded", () => {
|
|
2217
|
-
const { activePlayer, loop, onEnded } = this.props;
|
|
2218
|
-
if (activePlayer.loopOnEnded && loop) {
|
|
2219
|
-
this.seekTo(0);
|
|
2220
|
-
}
|
|
2221
|
-
if (!loop) {
|
|
2222
|
-
this.isPlaying = false;
|
|
2223
|
-
onEnded();
|
|
2224
|
-
}
|
|
2225
|
-
});
|
|
2226
|
-
__publicField(this, "handleError", (...args) => {
|
|
2227
|
-
this.isLoading = false;
|
|
2228
|
-
this.props.onError(...args);
|
|
2229
|
-
});
|
|
2230
|
-
__publicField(this, "handleDurationCheck", () => {
|
|
2231
|
-
clearTimeout(this.durationCheckTimeout);
|
|
2232
|
-
const duration = this.getDuration();
|
|
2233
|
-
if (duration) {
|
|
2234
|
-
if (!this.onDurationCalled) {
|
|
2235
|
-
this.props.onDuration(duration);
|
|
2236
|
-
this.onDurationCalled = true;
|
|
2237
|
-
}
|
|
2238
|
-
} else {
|
|
2239
|
-
this.durationCheckTimeout = setTimeout(this.handleDurationCheck, 100);
|
|
2240
|
-
}
|
|
2241
|
-
});
|
|
2242
|
-
__publicField(this, "handleLoaded", () => {
|
|
2243
|
-
this.isLoading = false;
|
|
2244
|
-
});
|
|
2245
|
-
}
|
|
2246
|
-
componentDidMount() {
|
|
2247
|
-
this.mounted = true;
|
|
2248
|
-
}
|
|
2249
|
-
componentWillUnmount() {
|
|
2250
|
-
clearTimeout(this.progressTimeout);
|
|
2251
|
-
clearTimeout(this.durationCheckTimeout);
|
|
2252
|
-
if (this.isReady && this.props.stopOnUnmount) {
|
|
2253
|
-
this.player.stop();
|
|
2254
|
-
if (this.player.disablePIP) {
|
|
2255
|
-
this.player.disablePIP();
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
this.mounted = false;
|
|
2259
|
-
}
|
|
2260
|
-
componentDidUpdate(prevProps) {
|
|
2261
|
-
if (!this.player) {
|
|
2262
|
-
return;
|
|
2263
|
-
}
|
|
2264
|
-
const { url, playing, volume, muted, playbackRate, pip, loop, activePlayer, disableDeferredLoading } = this.props;
|
|
2265
|
-
if (!(0, import_react_fast_compare.default)(prevProps.url, url)) {
|
|
2266
|
-
if (this.isLoading && !activePlayer.forceLoad && !disableDeferredLoading && !(0, import_utils.isMediaStream)(url)) {
|
|
2267
|
-
console.warn(`ReactPlayer: the attempt to load ${url} is being deferred until the player has loaded`);
|
|
2268
|
-
this.loadOnReady = url;
|
|
2269
|
-
return;
|
|
2270
|
-
}
|
|
2271
|
-
this.isLoading = true;
|
|
2272
|
-
this.startOnPlay = true;
|
|
2273
|
-
this.onDurationCalled = false;
|
|
2274
|
-
this.player.load(url, this.isReady);
|
|
2275
|
-
}
|
|
2276
|
-
if (!prevProps.playing && playing && !this.isPlaying) {
|
|
2277
|
-
this.player.play();
|
|
2278
|
-
}
|
|
2279
|
-
if (prevProps.playing && !playing && this.isPlaying) {
|
|
2280
|
-
this.player.pause();
|
|
2281
|
-
}
|
|
2282
|
-
if (!prevProps.pip && pip && this.player.enablePIP) {
|
|
2283
|
-
this.player.enablePIP();
|
|
2284
|
-
}
|
|
2285
|
-
if (prevProps.pip && !pip && this.player.disablePIP) {
|
|
2286
|
-
this.player.disablePIP();
|
|
2287
|
-
}
|
|
2288
|
-
if (prevProps.volume !== volume && volume !== null) {
|
|
2289
|
-
this.player.setVolume(volume);
|
|
2290
|
-
}
|
|
2291
|
-
if (prevProps.muted !== muted) {
|
|
2292
|
-
if (muted) {
|
|
2293
|
-
this.player.mute();
|
|
2294
|
-
} else {
|
|
2295
|
-
this.player.unmute();
|
|
2296
|
-
if (volume !== null) {
|
|
2297
|
-
setTimeout(() => this.player.setVolume(volume));
|
|
2298
|
-
}
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
if (prevProps.playbackRate !== playbackRate && this.player.setPlaybackRate) {
|
|
2302
|
-
this.player.setPlaybackRate(playbackRate);
|
|
2303
|
-
}
|
|
2304
|
-
if (prevProps.loop !== loop && this.player.setLoop) {
|
|
2305
|
-
this.player.setLoop(loop);
|
|
2306
|
-
}
|
|
2307
|
-
}
|
|
2308
|
-
getDuration() {
|
|
2309
|
-
if (!this.isReady)
|
|
2310
|
-
return null;
|
|
2311
|
-
return this.player.getDuration();
|
|
2312
|
-
}
|
|
2313
|
-
getCurrentTime() {
|
|
2314
|
-
if (!this.isReady)
|
|
2315
|
-
return null;
|
|
2316
|
-
return this.player.getCurrentTime();
|
|
2317
|
-
}
|
|
2318
|
-
getSecondsLoaded() {
|
|
2319
|
-
if (!this.isReady)
|
|
2320
|
-
return null;
|
|
2321
|
-
return this.player.getSecondsLoaded();
|
|
2322
|
-
}
|
|
2323
|
-
seekTo(amount, type, keepPlaying) {
|
|
2324
|
-
if (!this.isReady) {
|
|
2325
|
-
if (amount !== 0) {
|
|
2326
|
-
this.seekOnPlay = amount;
|
|
2327
|
-
setTimeout(() => {
|
|
2328
|
-
this.seekOnPlay = null;
|
|
2329
|
-
}, SEEK_ON_PLAY_EXPIRY);
|
|
2330
|
-
}
|
|
2331
|
-
return;
|
|
2332
|
-
}
|
|
2333
|
-
const isFraction = !type ? amount > 0 && amount < 1 : type === "fraction";
|
|
2334
|
-
if (isFraction) {
|
|
2335
|
-
const duration = this.player.getDuration();
|
|
2336
|
-
if (!duration) {
|
|
2337
|
-
console.warn("ReactPlayer: could not seek using fraction \u2013\xA0duration not yet available");
|
|
2338
|
-
return;
|
|
2339
|
-
}
|
|
2340
|
-
this.player.seekTo(duration * amount, keepPlaying);
|
|
2341
|
-
return;
|
|
2342
|
-
}
|
|
2343
|
-
this.player.seekTo(amount, keepPlaying);
|
|
2344
|
-
}
|
|
2345
|
-
render() {
|
|
2346
|
-
const Player2 = this.props.activePlayer;
|
|
2347
|
-
if (!Player2) {
|
|
2348
|
-
return null;
|
|
2349
|
-
}
|
|
2350
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
2351
|
-
Player2,
|
|
2352
|
-
{
|
|
2353
|
-
...this.props,
|
|
2354
|
-
onMount: this.handlePlayerMount,
|
|
2355
|
-
onReady: this.handleReady,
|
|
2356
|
-
onPlay: this.handlePlay,
|
|
2357
|
-
onPause: this.handlePause,
|
|
2358
|
-
onEnded: this.handleEnded,
|
|
2359
|
-
onLoaded: this.handleLoaded,
|
|
2360
|
-
onError: this.handleError
|
|
2361
|
-
}
|
|
2362
|
-
);
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
__publicField(Player, "displayName", "Player");
|
|
2366
|
-
__publicField(Player, "propTypes", import_props.propTypes);
|
|
2367
|
-
__publicField(Player, "defaultProps", import_props.defaultProps);
|
|
2368
|
-
return Player_1;
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
var ReactPlayer;
|
|
2372
|
-
var hasRequiredReactPlayer;
|
|
2373
|
-
|
|
2374
|
-
function requireReactPlayer () {
|
|
2375
|
-
if (hasRequiredReactPlayer) return ReactPlayer;
|
|
2376
|
-
hasRequiredReactPlayer = 1;
|
|
2377
|
-
var __create = Object.create;
|
|
2378
|
-
var __defProp = Object.defineProperty;
|
|
2379
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2380
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2381
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
2382
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2383
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2384
|
-
var __export = (target, all) => {
|
|
2385
|
-
for (var name in all)
|
|
2386
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2387
|
-
};
|
|
2388
|
-
var __copyProps = (to, from, except, desc) => {
|
|
2389
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
2390
|
-
for (let key of __getOwnPropNames(from))
|
|
2391
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2392
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2393
|
-
}
|
|
2394
|
-
return to;
|
|
2395
|
-
};
|
|
2396
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
2397
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
2398
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
2399
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2400
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2401
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
2402
|
-
mod
|
|
2403
|
-
));
|
|
2404
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2405
|
-
var __publicField = (obj, key, value) => {
|
|
2406
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2407
|
-
return value;
|
|
2408
|
-
};
|
|
2409
|
-
var ReactPlayer_exports = {};
|
|
2410
|
-
__export(ReactPlayer_exports, {
|
|
2411
|
-
createReactPlayer: () => createReactPlayer
|
|
2412
|
-
});
|
|
2413
|
-
ReactPlayer = __toCommonJS(ReactPlayer_exports);
|
|
2414
|
-
var import_react = __toESM(React);
|
|
2415
|
-
var import_deepmerge = __toESM(requireCjs());
|
|
2416
|
-
var import_memoize_one = __toESM(require$$2);
|
|
2417
|
-
var import_react_fast_compare = __toESM(requireReactFastCompare());
|
|
2418
|
-
var import_props = /*@__PURE__*/ requireProps();
|
|
2419
|
-
var import_utils = /*@__PURE__*/ requireUtils();
|
|
2420
|
-
var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
|
|
2421
|
-
const Preview = (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
2422
|
-
/* webpackChunkName: 'reactPlayerPreview' */
|
|
2423
|
-
'../_shared/cjs/Preview-B-4AqOxZ.js'
|
|
2424
|
-
); }).then(function (n) { return n.Preview; }));
|
|
2425
|
-
const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
|
|
2426
|
-
const IS_GLOBAL = typeof index.commonjsGlobal !== "undefined" && index.commonjsGlobal.window && index.commonjsGlobal.window.document;
|
|
2427
|
-
const SUPPORTED_PROPS = Object.keys(import_props.propTypes);
|
|
2428
|
-
const UniversalSuspense = IS_BROWSER || IS_GLOBAL ? import_react.Suspense : () => null;
|
|
2429
|
-
const customPlayers = [];
|
|
2430
|
-
const createReactPlayer = (players, fallback) => {
|
|
2431
|
-
var _a;
|
|
2432
|
-
return _a = class extends import_react.Component {
|
|
2433
|
-
constructor() {
|
|
2434
|
-
super(...arguments);
|
|
2435
|
-
__publicField(this, "state", {
|
|
2436
|
-
showPreview: !!this.props.light
|
|
2437
|
-
});
|
|
2438
|
-
// Use references, as refs is used by React
|
|
2439
|
-
__publicField(this, "references", {
|
|
2440
|
-
wrapper: (wrapper) => {
|
|
2441
|
-
this.wrapper = wrapper;
|
|
2442
|
-
},
|
|
2443
|
-
player: (player) => {
|
|
2444
|
-
this.player = player;
|
|
2445
|
-
}
|
|
2446
|
-
});
|
|
2447
|
-
__publicField(this, "handleClickPreview", (e) => {
|
|
2448
|
-
this.setState({ showPreview: false });
|
|
2449
|
-
this.props.onClickPreview(e);
|
|
2450
|
-
});
|
|
2451
|
-
__publicField(this, "showPreview", () => {
|
|
2452
|
-
this.setState({ showPreview: true });
|
|
2453
|
-
});
|
|
2454
|
-
__publicField(this, "getDuration", () => {
|
|
2455
|
-
if (!this.player)
|
|
2456
|
-
return null;
|
|
2457
|
-
return this.player.getDuration();
|
|
2458
|
-
});
|
|
2459
|
-
__publicField(this, "getCurrentTime", () => {
|
|
2460
|
-
if (!this.player)
|
|
2461
|
-
return null;
|
|
2462
|
-
return this.player.getCurrentTime();
|
|
2463
|
-
});
|
|
2464
|
-
__publicField(this, "getSecondsLoaded", () => {
|
|
2465
|
-
if (!this.player)
|
|
2466
|
-
return null;
|
|
2467
|
-
return this.player.getSecondsLoaded();
|
|
2468
|
-
});
|
|
2469
|
-
__publicField(this, "getInternalPlayer", (key = "player") => {
|
|
2470
|
-
if (!this.player)
|
|
2471
|
-
return null;
|
|
2472
|
-
return this.player.getInternalPlayer(key);
|
|
2473
|
-
});
|
|
2474
|
-
__publicField(this, "seekTo", (fraction, type, keepPlaying) => {
|
|
2475
|
-
if (!this.player)
|
|
2476
|
-
return null;
|
|
2477
|
-
this.player.seekTo(fraction, type, keepPlaying);
|
|
2478
|
-
});
|
|
2479
|
-
__publicField(this, "handleReady", () => {
|
|
2480
|
-
this.props.onReady(this);
|
|
2481
|
-
});
|
|
2482
|
-
__publicField(this, "getActivePlayer", (0, import_memoize_one.default)((url) => {
|
|
2483
|
-
for (const player of [...customPlayers, ...players]) {
|
|
2484
|
-
if (player.canPlay(url)) {
|
|
2485
|
-
return player;
|
|
2486
|
-
}
|
|
2487
|
-
}
|
|
2488
|
-
if (fallback) {
|
|
2489
|
-
return fallback;
|
|
2490
|
-
}
|
|
2491
|
-
return null;
|
|
2492
|
-
}));
|
|
2493
|
-
__publicField(this, "getConfig", (0, import_memoize_one.default)((url, key) => {
|
|
2494
|
-
const { config } = this.props;
|
|
2495
|
-
return import_deepmerge.default.all([
|
|
2496
|
-
import_props.defaultProps.config,
|
|
2497
|
-
import_props.defaultProps.config[key] || {},
|
|
2498
|
-
config,
|
|
2499
|
-
config[key] || {}
|
|
2500
|
-
]);
|
|
2501
|
-
}));
|
|
2502
|
-
__publicField(this, "getAttributes", (0, import_memoize_one.default)((url) => {
|
|
2503
|
-
return (0, import_utils.omit)(this.props, SUPPORTED_PROPS);
|
|
2504
|
-
}));
|
|
2505
|
-
__publicField(this, "renderActivePlayer", (url) => {
|
|
2506
|
-
if (!url)
|
|
2507
|
-
return null;
|
|
2508
|
-
const player = this.getActivePlayer(url);
|
|
2509
|
-
if (!player)
|
|
2510
|
-
return null;
|
|
2511
|
-
const config = this.getConfig(url, player.key);
|
|
2512
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
2513
|
-
import_Player.default,
|
|
2514
|
-
{
|
|
2515
|
-
...this.props,
|
|
2516
|
-
key: player.key,
|
|
2517
|
-
ref: this.references.player,
|
|
2518
|
-
config,
|
|
2519
|
-
activePlayer: player.lazyPlayer || player,
|
|
2520
|
-
onReady: this.handleReady
|
|
2521
|
-
}
|
|
2522
|
-
);
|
|
2523
|
-
});
|
|
2524
|
-
}
|
|
2525
|
-
shouldComponentUpdate(nextProps, nextState) {
|
|
2526
|
-
return !(0, import_react_fast_compare.default)(this.props, nextProps) || !(0, import_react_fast_compare.default)(this.state, nextState);
|
|
2527
|
-
}
|
|
2528
|
-
componentDidUpdate(prevProps) {
|
|
2529
|
-
const { light } = this.props;
|
|
2530
|
-
if (!prevProps.light && light) {
|
|
2531
|
-
this.setState({ showPreview: true });
|
|
2532
|
-
}
|
|
2533
|
-
if (prevProps.light && !light) {
|
|
2534
|
-
this.setState({ showPreview: false });
|
|
2535
|
-
}
|
|
2536
|
-
}
|
|
2537
|
-
renderPreview(url) {
|
|
2538
|
-
if (!url)
|
|
2539
|
-
return null;
|
|
2540
|
-
const { light, playIcon, previewTabIndex, oEmbedUrl, previewAriaLabel } = this.props;
|
|
2541
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
2542
|
-
Preview,
|
|
2543
|
-
{
|
|
2544
|
-
url,
|
|
2545
|
-
light,
|
|
2546
|
-
playIcon,
|
|
2547
|
-
previewTabIndex,
|
|
2548
|
-
previewAriaLabel,
|
|
2549
|
-
oEmbedUrl,
|
|
2550
|
-
onClick: this.handleClickPreview
|
|
2551
|
-
}
|
|
2552
|
-
);
|
|
2553
|
-
}
|
|
2554
|
-
render() {
|
|
2555
|
-
const { url, style, width, height, fallback: fallback2, wrapper: Wrapper } = this.props;
|
|
2556
|
-
const { showPreview } = this.state;
|
|
2557
|
-
const attributes = this.getAttributes(url);
|
|
2558
|
-
const wrapperRef = typeof Wrapper === "string" ? this.references.wrapper : void 0;
|
|
2559
|
-
return /* @__PURE__ */ import_react.default.createElement(Wrapper, { ref: wrapperRef, style: { ...style, width, height }, ...attributes }, /* @__PURE__ */ import_react.default.createElement(UniversalSuspense, { fallback: fallback2 }, showPreview ? this.renderPreview(url) : this.renderActivePlayer(url)));
|
|
2560
|
-
}
|
|
2561
|
-
}, __publicField(_a, "displayName", "ReactPlayer"), __publicField(_a, "propTypes", import_props.propTypes), __publicField(_a, "defaultProps", import_props.defaultProps), __publicField(_a, "addCustomPlayer", (player) => {
|
|
2562
|
-
customPlayers.push(player);
|
|
2563
|
-
}), __publicField(_a, "removeCustomPlayers", () => {
|
|
2564
|
-
customPlayers.length = 0;
|
|
2565
|
-
}), __publicField(_a, "canPlay", (url) => {
|
|
2566
|
-
for (const Player2 of [...customPlayers, ...players]) {
|
|
2567
|
-
if (Player2.canPlay(url)) {
|
|
2568
|
-
return true;
|
|
2569
|
-
}
|
|
2570
|
-
}
|
|
2571
|
-
return false;
|
|
2572
|
-
}), __publicField(_a, "canEnablePIP", (url) => {
|
|
2573
|
-
for (const Player2 of [...customPlayers, ...players]) {
|
|
2574
|
-
if (Player2.canEnablePIP && Player2.canEnablePIP(url)) {
|
|
2575
|
-
return true;
|
|
2576
|
-
}
|
|
2577
|
-
}
|
|
2578
|
-
return false;
|
|
2579
|
-
}), _a;
|
|
2580
|
-
};
|
|
2581
|
-
return ReactPlayer;
|
|
2582
|
-
}
|
|
2583
|
-
|
|
2584
|
-
var patterns;
|
|
2585
|
-
var hasRequiredPatterns;
|
|
2586
|
-
|
|
2587
|
-
function requirePatterns () {
|
|
2588
|
-
if (hasRequiredPatterns) return patterns;
|
|
2589
|
-
hasRequiredPatterns = 1;
|
|
2590
|
-
var __defProp = Object.defineProperty;
|
|
2591
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2592
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2593
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2594
|
-
var __export = (target, all) => {
|
|
2595
|
-
for (var name in all)
|
|
2596
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2597
|
-
};
|
|
2598
|
-
var __copyProps = (to, from, except, desc) => {
|
|
2599
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
2600
|
-
for (let key of __getOwnPropNames(from))
|
|
2601
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2602
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2603
|
-
}
|
|
2604
|
-
return to;
|
|
2605
|
-
};
|
|
2606
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2607
|
-
var patterns_exports = {};
|
|
2608
|
-
__export(patterns_exports, {
|
|
2609
|
-
AUDIO_EXTENSIONS: () => AUDIO_EXTENSIONS,
|
|
2610
|
-
DASH_EXTENSIONS: () => DASH_EXTENSIONS,
|
|
2611
|
-
FLV_EXTENSIONS: () => FLV_EXTENSIONS,
|
|
2612
|
-
HLS_EXTENSIONS: () => HLS_EXTENSIONS,
|
|
2613
|
-
MATCH_URL_DAILYMOTION: () => MATCH_URL_DAILYMOTION,
|
|
2614
|
-
MATCH_URL_FACEBOOK: () => MATCH_URL_FACEBOOK,
|
|
2615
|
-
MATCH_URL_FACEBOOK_WATCH: () => MATCH_URL_FACEBOOK_WATCH,
|
|
2616
|
-
MATCH_URL_KALTURA: () => MATCH_URL_KALTURA,
|
|
2617
|
-
MATCH_URL_MIXCLOUD: () => MATCH_URL_MIXCLOUD,
|
|
2618
|
-
MATCH_URL_MUX: () => MATCH_URL_MUX,
|
|
2619
|
-
MATCH_URL_SOUNDCLOUD: () => MATCH_URL_SOUNDCLOUD,
|
|
2620
|
-
MATCH_URL_STREAMABLE: () => MATCH_URL_STREAMABLE,
|
|
2621
|
-
MATCH_URL_TWITCH_CHANNEL: () => MATCH_URL_TWITCH_CHANNEL,
|
|
2622
|
-
MATCH_URL_TWITCH_VIDEO: () => MATCH_URL_TWITCH_VIDEO,
|
|
2623
|
-
MATCH_URL_VIDYARD: () => MATCH_URL_VIDYARD,
|
|
2624
|
-
MATCH_URL_VIMEO: () => MATCH_URL_VIMEO,
|
|
2625
|
-
MATCH_URL_WISTIA: () => MATCH_URL_WISTIA,
|
|
2626
|
-
MATCH_URL_YOUTUBE: () => MATCH_URL_YOUTUBE,
|
|
2627
|
-
VIDEO_EXTENSIONS: () => VIDEO_EXTENSIONS,
|
|
2628
|
-
canPlay: () => canPlay
|
|
2629
|
-
});
|
|
2630
|
-
patterns = __toCommonJS(patterns_exports);
|
|
2631
|
-
var import_utils = /*@__PURE__*/ requireUtils();
|
|
2632
|
-
const MATCH_URL_YOUTUBE = /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;
|
|
2633
|
-
const MATCH_URL_SOUNDCLOUD = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
2634
|
-
const MATCH_URL_VIMEO = /vimeo\.com\/(?!progressive_redirect).+/;
|
|
2635
|
-
const MATCH_URL_MUX = /stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/;
|
|
2636
|
-
const MATCH_URL_FACEBOOK = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
2637
|
-
const MATCH_URL_FACEBOOK_WATCH = /^https?:\/\/fb\.watch\/.+$/;
|
|
2638
|
-
const MATCH_URL_STREAMABLE = /streamable\.com\/([a-z0-9]+)$/;
|
|
2639
|
-
const MATCH_URL_WISTIA = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/;
|
|
2640
|
-
const MATCH_URL_TWITCH_VIDEO = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
2641
|
-
const MATCH_URL_TWITCH_CHANNEL = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;
|
|
2642
|
-
const MATCH_URL_DAILYMOTION = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/;
|
|
2643
|
-
const MATCH_URL_MIXCLOUD = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
2644
|
-
const MATCH_URL_VIDYARD = /vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;
|
|
2645
|
-
const MATCH_URL_KALTURA = /^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/;
|
|
2646
|
-
const AUDIO_EXTENSIONS = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
2647
|
-
const VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;
|
|
2648
|
-
const HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
2649
|
-
const DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
2650
|
-
const FLV_EXTENSIONS = /\.(flv)($|\?)/i;
|
|
2651
|
-
const canPlayFile = (url) => {
|
|
2652
|
-
if (url instanceof Array) {
|
|
2653
|
-
for (const item of url) {
|
|
2654
|
-
if (typeof item === "string" && canPlayFile(item)) {
|
|
2655
|
-
return true;
|
|
2656
|
-
}
|
|
2657
|
-
if (canPlayFile(item.src)) {
|
|
2658
|
-
return true;
|
|
2659
|
-
}
|
|
2660
|
-
}
|
|
2661
|
-
return false;
|
|
2662
|
-
}
|
|
2663
|
-
if ((0, import_utils.isMediaStream)(url) || (0, import_utils.isBlobUrl)(url)) {
|
|
2664
|
-
return true;
|
|
2665
|
-
}
|
|
2666
|
-
return AUDIO_EXTENSIONS.test(url) || VIDEO_EXTENSIONS.test(url) || HLS_EXTENSIONS.test(url) || DASH_EXTENSIONS.test(url) || FLV_EXTENSIONS.test(url);
|
|
2667
|
-
};
|
|
2668
|
-
const canPlay = {
|
|
2669
|
-
youtube: (url) => {
|
|
2670
|
-
if (url instanceof Array) {
|
|
2671
|
-
return url.every((item) => MATCH_URL_YOUTUBE.test(item));
|
|
2672
|
-
}
|
|
2673
|
-
return MATCH_URL_YOUTUBE.test(url);
|
|
2674
|
-
},
|
|
2675
|
-
soundcloud: (url) => MATCH_URL_SOUNDCLOUD.test(url) && !AUDIO_EXTENSIONS.test(url),
|
|
2676
|
-
vimeo: (url) => MATCH_URL_VIMEO.test(url) && !VIDEO_EXTENSIONS.test(url) && !HLS_EXTENSIONS.test(url),
|
|
2677
|
-
mux: (url) => MATCH_URL_MUX.test(url),
|
|
2678
|
-
facebook: (url) => MATCH_URL_FACEBOOK.test(url) || MATCH_URL_FACEBOOK_WATCH.test(url),
|
|
2679
|
-
streamable: (url) => MATCH_URL_STREAMABLE.test(url),
|
|
2680
|
-
wistia: (url) => MATCH_URL_WISTIA.test(url),
|
|
2681
|
-
twitch: (url) => MATCH_URL_TWITCH_VIDEO.test(url) || MATCH_URL_TWITCH_CHANNEL.test(url),
|
|
2682
|
-
dailymotion: (url) => MATCH_URL_DAILYMOTION.test(url),
|
|
2683
|
-
mixcloud: (url) => MATCH_URL_MIXCLOUD.test(url),
|
|
2684
|
-
vidyard: (url) => MATCH_URL_VIDYARD.test(url),
|
|
2685
|
-
kaltura: (url) => MATCH_URL_KALTURA.test(url),
|
|
2686
|
-
file: canPlayFile
|
|
2687
|
-
};
|
|
2688
|
-
return patterns;
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
var YouTube_1;
|
|
2692
|
-
var hasRequiredYouTube;
|
|
2693
|
-
|
|
2694
|
-
function requireYouTube () {
|
|
2695
|
-
if (hasRequiredYouTube) return YouTube_1;
|
|
2696
|
-
hasRequiredYouTube = 1;
|
|
2697
|
-
var __create = Object.create;
|
|
2698
|
-
var __defProp = Object.defineProperty;
|
|
2699
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2700
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2701
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
2702
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2703
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2704
|
-
var __export = (target, all) => {
|
|
2705
|
-
for (var name in all)
|
|
2706
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2707
|
-
};
|
|
2708
|
-
var __copyProps = (to, from, except, desc) => {
|
|
2709
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
2710
|
-
for (let key of __getOwnPropNames(from))
|
|
2711
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2712
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2713
|
-
}
|
|
2714
|
-
return to;
|
|
2715
|
-
};
|
|
2716
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
2717
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
2718
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
2719
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2720
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2721
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
2722
|
-
mod
|
|
2723
|
-
));
|
|
2724
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2725
|
-
var __publicField = (obj, key, value) => {
|
|
2726
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2727
|
-
return value;
|
|
2728
|
-
};
|
|
2729
|
-
var YouTube_exports = {};
|
|
2730
|
-
__export(YouTube_exports, {
|
|
2731
|
-
default: () => YouTube
|
|
2732
|
-
});
|
|
2733
|
-
YouTube_1 = __toCommonJS(YouTube_exports);
|
|
2734
|
-
var import_react = __toESM(React);
|
|
2735
|
-
var import_utils = /*@__PURE__*/ requireUtils();
|
|
2736
|
-
var import_patterns = /*@__PURE__*/ requirePatterns();
|
|
2737
|
-
const SDK_URL = "https://www.youtube.com/iframe_api";
|
|
2738
|
-
const SDK_GLOBAL = "YT";
|
|
2739
|
-
const SDK_GLOBAL_READY = "onYouTubeIframeAPIReady";
|
|
2740
|
-
const MATCH_PLAYLIST = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/;
|
|
2741
|
-
const MATCH_USER_UPLOADS = /user\/([a-zA-Z0-9_-]+)\/?/;
|
|
2742
|
-
const MATCH_NOCOOKIE = /youtube-nocookie\.com/;
|
|
2743
|
-
const NOCOOKIE_HOST = "https://www.youtube-nocookie.com";
|
|
2744
|
-
class YouTube extends import_react.Component {
|
|
2745
|
-
constructor() {
|
|
2746
|
-
super(...arguments);
|
|
2747
|
-
__publicField(this, "callPlayer", import_utils.callPlayer);
|
|
2748
|
-
__publicField(this, "parsePlaylist", (url) => {
|
|
2749
|
-
if (url instanceof Array) {
|
|
2750
|
-
return {
|
|
2751
|
-
listType: "playlist",
|
|
2752
|
-
playlist: url.map(this.getID).join(",")
|
|
2753
|
-
};
|
|
2754
|
-
}
|
|
2755
|
-
if (MATCH_PLAYLIST.test(url)) {
|
|
2756
|
-
const [, playlistId] = url.match(MATCH_PLAYLIST);
|
|
2757
|
-
return {
|
|
2758
|
-
listType: "playlist",
|
|
2759
|
-
list: playlistId.replace(/^UC/, "UU")
|
|
2760
|
-
};
|
|
2761
|
-
}
|
|
2762
|
-
if (MATCH_USER_UPLOADS.test(url)) {
|
|
2763
|
-
const [, username] = url.match(MATCH_USER_UPLOADS);
|
|
2764
|
-
return {
|
|
2765
|
-
listType: "user_uploads",
|
|
2766
|
-
list: username
|
|
2767
|
-
};
|
|
2768
|
-
}
|
|
2769
|
-
return {};
|
|
2770
|
-
});
|
|
2771
|
-
__publicField(this, "onStateChange", (event) => {
|
|
2772
|
-
const { data } = event;
|
|
2773
|
-
const { onPlay, onPause, onBuffer, onBufferEnd, onEnded, onReady, loop, config: { playerVars, onUnstarted } } = this.props;
|
|
2774
|
-
const { UNSTARTED, PLAYING, PAUSED, BUFFERING, ENDED, CUED } = window[SDK_GLOBAL].PlayerState;
|
|
2775
|
-
if (data === UNSTARTED)
|
|
2776
|
-
onUnstarted();
|
|
2777
|
-
if (data === PLAYING) {
|
|
2778
|
-
onPlay();
|
|
2779
|
-
onBufferEnd();
|
|
2780
|
-
}
|
|
2781
|
-
if (data === PAUSED)
|
|
2782
|
-
onPause();
|
|
2783
|
-
if (data === BUFFERING)
|
|
2784
|
-
onBuffer();
|
|
2785
|
-
if (data === ENDED) {
|
|
2786
|
-
const isPlaylist = !!this.callPlayer("getPlaylist");
|
|
2787
|
-
if (loop && !isPlaylist) {
|
|
2788
|
-
if (playerVars.start) {
|
|
2789
|
-
this.seekTo(playerVars.start);
|
|
2790
|
-
} else {
|
|
2791
|
-
this.play();
|
|
2792
|
-
}
|
|
2793
|
-
}
|
|
2794
|
-
onEnded();
|
|
2795
|
-
}
|
|
2796
|
-
if (data === CUED)
|
|
2797
|
-
onReady();
|
|
2798
|
-
});
|
|
2799
|
-
__publicField(this, "mute", () => {
|
|
2800
|
-
this.callPlayer("mute");
|
|
2801
|
-
});
|
|
2802
|
-
__publicField(this, "unmute", () => {
|
|
2803
|
-
this.callPlayer("unMute");
|
|
2804
|
-
});
|
|
2805
|
-
__publicField(this, "ref", (container) => {
|
|
2806
|
-
this.container = container;
|
|
2807
|
-
});
|
|
2808
|
-
}
|
|
2809
|
-
componentDidMount() {
|
|
2810
|
-
this.props.onMount && this.props.onMount(this);
|
|
2811
|
-
}
|
|
2812
|
-
getID(url) {
|
|
2813
|
-
if (!url || url instanceof Array || MATCH_PLAYLIST.test(url)) {
|
|
2814
|
-
return null;
|
|
2815
|
-
}
|
|
2816
|
-
return url.match(import_patterns.MATCH_URL_YOUTUBE)[1];
|
|
2817
|
-
}
|
|
2818
|
-
load(url, isReady) {
|
|
2819
|
-
const { playing, muted, playsinline, controls, loop, config, onError } = this.props;
|
|
2820
|
-
const { playerVars, embedOptions } = config;
|
|
2821
|
-
const id = this.getID(url);
|
|
2822
|
-
if (isReady) {
|
|
2823
|
-
if (MATCH_PLAYLIST.test(url) || MATCH_USER_UPLOADS.test(url) || url instanceof Array) {
|
|
2824
|
-
this.player.loadPlaylist(this.parsePlaylist(url));
|
|
2825
|
-
return;
|
|
2826
|
-
}
|
|
2827
|
-
this.player.cueVideoById({
|
|
2828
|
-
videoId: id,
|
|
2829
|
-
startSeconds: (0, import_utils.parseStartTime)(url) || playerVars.start,
|
|
2830
|
-
endSeconds: (0, import_utils.parseEndTime)(url) || playerVars.end
|
|
2831
|
-
});
|
|
2832
|
-
return;
|
|
2833
|
-
}
|
|
2834
|
-
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (YT) => YT.loaded).then((YT) => {
|
|
2835
|
-
if (!this.container)
|
|
2836
|
-
return;
|
|
2837
|
-
this.player = new YT.Player(this.container, {
|
|
2838
|
-
width: "100%",
|
|
2839
|
-
height: "100%",
|
|
2840
|
-
videoId: id,
|
|
2841
|
-
playerVars: {
|
|
2842
|
-
autoplay: playing ? 1 : 0,
|
|
2843
|
-
mute: muted ? 1 : 0,
|
|
2844
|
-
controls: controls ? 1 : 0,
|
|
2845
|
-
start: (0, import_utils.parseStartTime)(url),
|
|
2846
|
-
end: (0, import_utils.parseEndTime)(url),
|
|
2847
|
-
origin: window.location.origin,
|
|
2848
|
-
playsinline: playsinline ? 1 : 0,
|
|
2849
|
-
...this.parsePlaylist(url),
|
|
2850
|
-
...playerVars
|
|
2851
|
-
},
|
|
2852
|
-
events: {
|
|
2853
|
-
onReady: () => {
|
|
2854
|
-
if (loop) {
|
|
2855
|
-
this.player.setLoop(true);
|
|
2856
|
-
}
|
|
2857
|
-
this.props.onReady();
|
|
2858
|
-
},
|
|
2859
|
-
onPlaybackRateChange: (event) => this.props.onPlaybackRateChange(event.data),
|
|
2860
|
-
onPlaybackQualityChange: (event) => this.props.onPlaybackQualityChange(event),
|
|
2861
|
-
onStateChange: this.onStateChange,
|
|
2862
|
-
onError: (event) => onError(event.data)
|
|
2863
|
-
},
|
|
2864
|
-
host: MATCH_NOCOOKIE.test(url) ? NOCOOKIE_HOST : void 0,
|
|
2865
|
-
...embedOptions
|
|
2866
|
-
});
|
|
2867
|
-
}, onError);
|
|
2868
|
-
if (embedOptions.events) {
|
|
2869
|
-
console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause");
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
play() {
|
|
2873
|
-
this.callPlayer("playVideo");
|
|
2874
|
-
}
|
|
2875
|
-
pause() {
|
|
2876
|
-
this.callPlayer("pauseVideo");
|
|
2877
|
-
}
|
|
2878
|
-
stop() {
|
|
2879
|
-
if (!document.body.contains(this.callPlayer("getIframe")))
|
|
2880
|
-
return;
|
|
2881
|
-
this.callPlayer("stopVideo");
|
|
2882
|
-
}
|
|
2883
|
-
seekTo(amount, keepPlaying = false) {
|
|
2884
|
-
this.callPlayer("seekTo", amount);
|
|
2885
|
-
if (!keepPlaying && !this.props.playing) {
|
|
2886
|
-
this.pause();
|
|
2887
|
-
}
|
|
2888
|
-
}
|
|
2889
|
-
setVolume(fraction) {
|
|
2890
|
-
this.callPlayer("setVolume", fraction * 100);
|
|
2891
|
-
}
|
|
2892
|
-
setPlaybackRate(rate) {
|
|
2893
|
-
this.callPlayer("setPlaybackRate", rate);
|
|
2894
|
-
}
|
|
2895
|
-
setLoop(loop) {
|
|
2896
|
-
this.callPlayer("setLoop", loop);
|
|
2897
|
-
}
|
|
2898
|
-
getDuration() {
|
|
2899
|
-
return this.callPlayer("getDuration");
|
|
2900
|
-
}
|
|
2901
|
-
getCurrentTime() {
|
|
2902
|
-
return this.callPlayer("getCurrentTime");
|
|
2903
|
-
}
|
|
2904
|
-
getSecondsLoaded() {
|
|
2905
|
-
return this.callPlayer("getVideoLoadedFraction") * this.getDuration();
|
|
2906
|
-
}
|
|
2907
|
-
render() {
|
|
2908
|
-
const { display } = this.props;
|
|
2909
|
-
const style = {
|
|
2910
|
-
width: "100%",
|
|
2911
|
-
height: "100%",
|
|
2912
|
-
display
|
|
2913
|
-
};
|
|
2914
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { style }, /* @__PURE__ */ import_react.default.createElement("div", { ref: this.ref }));
|
|
2915
|
-
}
|
|
2916
|
-
}
|
|
2917
|
-
__publicField(YouTube, "displayName", "YouTube");
|
|
2918
|
-
__publicField(YouTube, "canPlay", import_patterns.canPlay.youtube);
|
|
2919
|
-
return YouTube_1;
|
|
2920
|
-
}
|
|
2921
|
-
|
|
2922
|
-
var youtube;
|
|
2923
|
-
var hasRequiredYoutube;
|
|
2924
|
-
|
|
2925
|
-
function requireYoutube () {
|
|
2926
|
-
if (hasRequiredYoutube) return youtube;
|
|
2927
|
-
hasRequiredYoutube = 1;
|
|
2928
|
-
var createReactPlayer = /*@__PURE__*/ requireReactPlayer().createReactPlayer;
|
|
2929
|
-
var Player = /*@__PURE__*/ requireYouTube().default;
|
|
2930
|
-
youtube = createReactPlayer([{
|
|
2931
|
-
key: 'youtube',
|
|
2932
|
-
canPlay: Player.canPlay,
|
|
2933
|
-
lazyPlayer: Player
|
|
2934
|
-
}]);
|
|
2935
|
-
return youtube;
|
|
2936
|
-
}
|
|
2937
|
-
|
|
2938
|
-
var youtubeExports = /*@__PURE__*/ requireYoutube();
|
|
2939
|
-
var ReactPlayerYoutube = /*@__PURE__*/index.getDefaultExportFromCjs(youtubeExports);
|
|
2940
|
-
|
|
2941
|
-
var Vimeo_1;
|
|
2942
|
-
var hasRequiredVimeo$1;
|
|
2943
|
-
|
|
2944
|
-
function requireVimeo$1 () {
|
|
2945
|
-
if (hasRequiredVimeo$1) return Vimeo_1;
|
|
2946
|
-
hasRequiredVimeo$1 = 1;
|
|
2947
|
-
var __create = Object.create;
|
|
2948
|
-
var __defProp = Object.defineProperty;
|
|
2949
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2950
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2951
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
2952
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2953
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2954
|
-
var __export = (target, all) => {
|
|
2955
|
-
for (var name in all)
|
|
2956
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2957
|
-
};
|
|
2958
|
-
var __copyProps = (to, from, except, desc) => {
|
|
2959
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
2960
|
-
for (let key of __getOwnPropNames(from))
|
|
2961
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
2962
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
2963
|
-
}
|
|
2964
|
-
return to;
|
|
2965
|
-
};
|
|
2966
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
2967
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
2968
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
2969
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2970
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2971
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
2972
|
-
mod
|
|
2973
|
-
));
|
|
2974
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2975
|
-
var __publicField = (obj, key, value) => {
|
|
2976
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2977
|
-
return value;
|
|
2978
|
-
};
|
|
2979
|
-
var Vimeo_exports = {};
|
|
2980
|
-
__export(Vimeo_exports, {
|
|
2981
|
-
default: () => Vimeo
|
|
2982
|
-
});
|
|
2983
|
-
Vimeo_1 = __toCommonJS(Vimeo_exports);
|
|
2984
|
-
var import_react = __toESM(React);
|
|
2985
|
-
var import_utils = /*@__PURE__*/ requireUtils();
|
|
2986
|
-
var import_patterns = /*@__PURE__*/ requirePatterns();
|
|
2987
|
-
const SDK_URL = "https://player.vimeo.com/api/player.js";
|
|
2988
|
-
const SDK_GLOBAL = "Vimeo";
|
|
2989
|
-
const cleanUrl = (url) => {
|
|
2990
|
-
return url.replace("/manage/videos", "");
|
|
2991
|
-
};
|
|
2992
|
-
class Vimeo extends import_react.Component {
|
|
2993
|
-
constructor() {
|
|
2994
|
-
super(...arguments);
|
|
2995
|
-
// Prevent checking isLoading when URL changes
|
|
2996
|
-
__publicField(this, "callPlayer", import_utils.callPlayer);
|
|
2997
|
-
__publicField(this, "duration", null);
|
|
2998
|
-
__publicField(this, "currentTime", null);
|
|
2999
|
-
__publicField(this, "secondsLoaded", null);
|
|
3000
|
-
__publicField(this, "mute", () => {
|
|
3001
|
-
this.setMuted(true);
|
|
3002
|
-
});
|
|
3003
|
-
__publicField(this, "unmute", () => {
|
|
3004
|
-
this.setMuted(false);
|
|
3005
|
-
});
|
|
3006
|
-
__publicField(this, "ref", (container) => {
|
|
3007
|
-
this.container = container;
|
|
3008
|
-
});
|
|
3009
|
-
}
|
|
3010
|
-
componentDidMount() {
|
|
3011
|
-
this.props.onMount && this.props.onMount(this);
|
|
3012
|
-
}
|
|
3013
|
-
load(url) {
|
|
3014
|
-
this.duration = null;
|
|
3015
|
-
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Vimeo2) => {
|
|
3016
|
-
if (!this.container)
|
|
3017
|
-
return;
|
|
3018
|
-
const { playerOptions, title } = this.props.config;
|
|
3019
|
-
this.player = new Vimeo2.Player(this.container, {
|
|
3020
|
-
url: cleanUrl(url),
|
|
3021
|
-
autoplay: this.props.playing,
|
|
3022
|
-
muted: this.props.muted,
|
|
3023
|
-
loop: this.props.loop,
|
|
3024
|
-
playsinline: this.props.playsinline,
|
|
3025
|
-
controls: this.props.controls,
|
|
3026
|
-
...playerOptions
|
|
3027
|
-
});
|
|
3028
|
-
this.player.ready().then(() => {
|
|
3029
|
-
const iframe = this.container.querySelector("iframe");
|
|
3030
|
-
iframe.style.width = "100%";
|
|
3031
|
-
iframe.style.height = "100%";
|
|
3032
|
-
if (title) {
|
|
3033
|
-
iframe.title = title;
|
|
3034
|
-
}
|
|
3035
|
-
}).catch(this.props.onError);
|
|
3036
|
-
this.player.on("loaded", () => {
|
|
3037
|
-
this.props.onReady();
|
|
3038
|
-
this.refreshDuration();
|
|
3039
|
-
});
|
|
3040
|
-
this.player.on("play", () => {
|
|
3041
|
-
this.props.onPlay();
|
|
3042
|
-
this.refreshDuration();
|
|
3043
|
-
});
|
|
3044
|
-
this.player.on("pause", this.props.onPause);
|
|
3045
|
-
this.player.on("seeked", (e) => this.props.onSeek(e.seconds));
|
|
3046
|
-
this.player.on("ended", this.props.onEnded);
|
|
3047
|
-
this.player.on("error", this.props.onError);
|
|
3048
|
-
this.player.on("timeupdate", ({ seconds }) => {
|
|
3049
|
-
this.currentTime = seconds;
|
|
3050
|
-
});
|
|
3051
|
-
this.player.on("progress", ({ seconds }) => {
|
|
3052
|
-
this.secondsLoaded = seconds;
|
|
3053
|
-
});
|
|
3054
|
-
this.player.on("bufferstart", this.props.onBuffer);
|
|
3055
|
-
this.player.on("bufferend", this.props.onBufferEnd);
|
|
3056
|
-
this.player.on("playbackratechange", (e) => this.props.onPlaybackRateChange(e.playbackRate));
|
|
3057
|
-
}, this.props.onError);
|
|
3058
|
-
}
|
|
3059
|
-
refreshDuration() {
|
|
3060
|
-
this.player.getDuration().then((duration) => {
|
|
3061
|
-
this.duration = duration;
|
|
3062
|
-
});
|
|
3063
|
-
}
|
|
3064
|
-
play() {
|
|
3065
|
-
const promise = this.callPlayer("play");
|
|
3066
|
-
if (promise) {
|
|
3067
|
-
promise.catch(this.props.onError);
|
|
3068
|
-
}
|
|
3069
|
-
}
|
|
3070
|
-
pause() {
|
|
3071
|
-
this.callPlayer("pause");
|
|
3072
|
-
}
|
|
3073
|
-
stop() {
|
|
3074
|
-
this.callPlayer("unload");
|
|
3075
|
-
}
|
|
3076
|
-
seekTo(seconds, keepPlaying = true) {
|
|
3077
|
-
this.callPlayer("setCurrentTime", seconds);
|
|
3078
|
-
if (!keepPlaying) {
|
|
3079
|
-
this.pause();
|
|
3080
|
-
}
|
|
3081
|
-
}
|
|
3082
|
-
setVolume(fraction) {
|
|
3083
|
-
this.callPlayer("setVolume", fraction);
|
|
3084
|
-
}
|
|
3085
|
-
setMuted(muted) {
|
|
3086
|
-
this.callPlayer("setMuted", muted);
|
|
3087
|
-
}
|
|
3088
|
-
setLoop(loop) {
|
|
3089
|
-
this.callPlayer("setLoop", loop);
|
|
3090
|
-
}
|
|
3091
|
-
setPlaybackRate(rate) {
|
|
3092
|
-
this.callPlayer("setPlaybackRate", rate);
|
|
3093
|
-
}
|
|
3094
|
-
getDuration() {
|
|
3095
|
-
return this.duration;
|
|
3096
|
-
}
|
|
3097
|
-
getCurrentTime() {
|
|
3098
|
-
return this.currentTime;
|
|
3099
|
-
}
|
|
3100
|
-
getSecondsLoaded() {
|
|
3101
|
-
return this.secondsLoaded;
|
|
3102
|
-
}
|
|
3103
|
-
render() {
|
|
3104
|
-
const { display } = this.props;
|
|
3105
|
-
const style = {
|
|
3106
|
-
width: "100%",
|
|
3107
|
-
height: "100%",
|
|
3108
|
-
overflow: "hidden",
|
|
3109
|
-
display
|
|
3110
|
-
};
|
|
3111
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
3112
|
-
"div",
|
|
3113
|
-
{
|
|
3114
|
-
key: this.props.url,
|
|
3115
|
-
ref: this.ref,
|
|
3116
|
-
style
|
|
3117
|
-
}
|
|
3118
|
-
);
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
__publicField(Vimeo, "displayName", "Vimeo");
|
|
3122
|
-
__publicField(Vimeo, "canPlay", import_patterns.canPlay.vimeo);
|
|
3123
|
-
__publicField(Vimeo, "forceLoad", true);
|
|
3124
|
-
return Vimeo_1;
|
|
3125
|
-
}
|
|
3126
|
-
|
|
3127
|
-
var vimeo;
|
|
3128
|
-
var hasRequiredVimeo;
|
|
3129
|
-
|
|
3130
|
-
function requireVimeo () {
|
|
3131
|
-
if (hasRequiredVimeo) return vimeo;
|
|
3132
|
-
hasRequiredVimeo = 1;
|
|
3133
|
-
var createReactPlayer = /*@__PURE__*/ requireReactPlayer().createReactPlayer;
|
|
3134
|
-
var Player = /*@__PURE__*/ requireVimeo$1().default;
|
|
3135
|
-
vimeo = createReactPlayer([{
|
|
3136
|
-
key: 'vimeo',
|
|
3137
|
-
canPlay: Player.canPlay,
|
|
3138
|
-
lazyPlayer: Player
|
|
3139
|
-
}]);
|
|
3140
|
-
return vimeo;
|
|
3141
|
-
}
|
|
3142
|
-
|
|
3143
|
-
var vimeoExports = /*@__PURE__*/ requireVimeo();
|
|
3144
|
-
var ReactPlayerVimeo = /*@__PURE__*/index.getDefaultExportFromCjs(vimeoExports);
|
|
3145
|
-
|
|
3146
|
-
/**
|
|
3147
|
-
* Use `VideoPlayer` to embed videos from YouTube or Vimeo.
|
|
3148
|
-
*/
|
|
3149
|
-
var VideoPlayer = function (_a) {
|
|
3150
|
-
var title = _a.title, description = _a.description, transcriptLink = _a.transcriptLink, transcriptContent = _a.transcriptContent, light = _a.light, url = _a.url, onReady = _a.onReady, onPlay = _a.onPlay, onStart = _a.onStart, onPause = _a.onPause, onError = _a.onError, onEnded = _a.onEnded, _b = _a.isBorderRadius, isBorderRadius = _b === void 0 ? false : _b, _c = _a.isSupportingTextHidden, isSupportingTextHidden = _c === void 0 ? false : _c, props = index$1.__rest(_a, ["title", "description", "transcriptLink", "transcriptContent", "light", "url", "onReady", "onPlay", "onStart", "onPause", "onError", "onEnded", "isBorderRadius", "isSupportingTextHidden"]);
|
|
3151
|
-
var TextWrapper = isSupportingTextHidden ? VisuallyHidden.VisuallyHidden : "div";
|
|
3152
|
-
var isVimeo = new URL(url).hostname.includes("vimeo");
|
|
3153
|
-
var playerProps = {
|
|
3154
|
-
url: url,
|
|
3155
|
-
light: light,
|
|
3156
|
-
onReady: onReady,
|
|
3157
|
-
onPlay: onPlay,
|
|
3158
|
-
onStart: onStart,
|
|
3159
|
-
onPause: onPause,
|
|
3160
|
-
onError: onError,
|
|
3161
|
-
onEnded: onEnded,
|
|
3162
|
-
playIcon: (React.createElement("div", { className: "arc-VideoPlayer-icon" },
|
|
3163
|
-
React.createElement(Icon.Icon, { isPresentationIcon: true, icon: BtIconPlayFill_esm.BtIconPlayFill }))),
|
|
3164
|
-
playing: Boolean(light),
|
|
3165
|
-
controls: true,
|
|
3166
|
-
className: "arc-VideoPlayer",
|
|
3167
|
-
width: "100%",
|
|
3168
|
-
height: "100%"
|
|
3169
|
-
};
|
|
3170
|
-
return (React.createElement("div", index$1.__assign({}, index$1.filterAttrs(props)),
|
|
3171
|
-
React.createElement("div", { "data-testid": "arc-video-player", className: index.classNames("arc-VideoPlayer-wrapper", {
|
|
3172
|
-
"arc-VideoPlayer-wrapper--borderRadius": isBorderRadius
|
|
3173
|
-
}) }, isVimeo ? (React.createElement(ReactPlayerVimeo, index$1.__assign({}, playerProps))) : (React.createElement(ReactPlayerYoutube, index$1.__assign({}, playerProps)))),
|
|
3174
|
-
React.createElement(TextWrapper, null,
|
|
3175
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
3176
|
-
React.createElement(Heading.Heading, { level: "3", size: "s" }, title),
|
|
3177
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
3178
|
-
React.createElement(Text.Text, null, description)),
|
|
3179
|
-
transcriptLink && (React.createElement(React.Fragment, null,
|
|
3180
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
3181
|
-
React.createElement(Download.Download, { isCompact: true, icon: "downloadAccessibility", href: transcriptLink.url, name: transcriptLink.text, type: transcriptLink.format, size: transcriptLink.fileSize }))),
|
|
3182
|
-
transcriptContent && (React.createElement(React.Fragment, null,
|
|
3183
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
3184
|
-
React.createElement(DisclosureMini.DisclosureMini, { summary: "Audio Described Transcript" },
|
|
3185
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
3186
|
-
React.createElement(Heading.Heading, null, transcriptContent.heading.toUpperCase()),
|
|
3187
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3188
|
-
React.createElement(Text.Text, null, transcriptContent.description),
|
|
3189
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
3190
|
-
transcriptContent.content.map(function (_a) {
|
|
3191
|
-
var heading = _a.heading, text = _a.text;
|
|
3192
|
-
return (React.createElement(React.Fragment, null,
|
|
3193
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
3194
|
-
heading && (React.createElement(React.Fragment, null,
|
|
3195
|
-
React.createElement(Heading.Heading, { isInline: true }, heading === null || heading === void 0 ? void 0 : heading.toUpperCase()),
|
|
3196
|
-
"\u00A0")),
|
|
3197
|
-
React.createElement(Text.Text, { isInline: true }, text)));
|
|
3198
|
-
}))))));
|
|
3199
|
-
};
|
|
3200
|
-
|
|
3201
|
-
exports.VideoPlayer = VideoPlayer;
|