@mjhls/mjh-framework 1.0.865 → 1.0.866-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -30
- package/dist/cjs/AD300x250x600.js +28 -30
- package/dist/cjs/AD728x90.js +31 -33
- package/dist/cjs/ADFloatingFooter.js +30 -32
- package/dist/cjs/ADFooter.js +12 -15
- package/dist/cjs/ADGutter.js +30 -32
- package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-7c09edba.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -32
- package/dist/cjs/ADSponsoredResources.js +30 -32
- package/dist/cjs/ADWebcast.js +30 -32
- package/dist/cjs/ADWelcome.js +31 -33
- package/dist/cjs/{ADlgInfeed-98d7c699.js → ADlgInfeed-2e7effc7.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -31
- package/dist/cjs/AdSlot.js +33 -35
- package/dist/cjs/AdSlotsProvider.js +910 -20
- package/dist/cjs/AlgoliaSearch.js +14023 -60
- package/dist/cjs/AlphabeticList.js +23 -26
- package/dist/cjs/ArticleCarousel.js +19 -22
- package/dist/cjs/ArticleProgramLandingPage.js +60 -62
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -43
- package/dist/cjs/ArticleSeriesListing.js +60 -62
- package/dist/cjs/Auth.js +1504 -682
- package/dist/cjs/AuthWrapper.js +266 -310
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -29
- package/dist/cjs/CMEDeck.js +82 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -36
- package/dist/cjs/Column3.js +57 -61
- package/dist/cjs/ConferenceArticleCard.js +25 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -99
- package/dist/cjs/DeckQueue.js +88 -92
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-14d2455c.js} +32 -34
- package/dist/cjs/EventsDeck.js +134 -143
- package/dist/cjs/ExternalResources.js +78 -80
- package/dist/cjs/Feature.js +27 -26
- package/dist/cjs/ForbesHero.js +40 -43
- package/dist/cjs/GridContent.js +232 -238
- package/dist/cjs/GridHero.js +42 -45
- package/dist/cjs/GroupDeck.js +57 -60
- package/dist/cjs/HamMagazine.js +130 -137
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -73
- package/dist/cjs/HorizontalHero.js +28 -26
- package/dist/cjs/IssueContentDeck.js +71 -78
- package/dist/cjs/IssueDeck.js +70 -77
- package/dist/cjs/IssueLanding.js +65 -67
- package/dist/cjs/LeftNav.js +37 -40
- package/dist/cjs/MasterDeck.js +70 -72
- package/dist/cjs/MediaSeriesLanding.js +1093 -1186
- package/dist/cjs/NavDvm.js +72 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +136 -143
- package/dist/cjs/NavNative.js +128 -138
- package/dist/cjs/OncliveHero.js +22 -19
- package/dist/cjs/OncliveLargeHero.js +70 -73
- package/dist/cjs/PageFilter.js +12 -15
- package/dist/cjs/PartnerDetailListing.js +3917 -118
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -21
- package/dist/cjs/PubSection.js +41 -43
- package/dist/cjs/PubToc.js +13 -16
- package/dist/cjs/PublicationDeck.js +65 -67
- package/dist/cjs/PublicationLanding.js +129 -135
- package/dist/cjs/QueueDeckExpanded.js +309 -310
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +29 -27
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -22
- package/dist/cjs/Segment.js +4 -6
- package/dist/cjs/SeriesListingDeck.js +37 -38
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-49b81b0b.js} +35 -36
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-650f6101.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -64
- package/dist/cjs/TaxonomyDescription.js +53 -55
- package/dist/cjs/TemplateNormal.js +72 -74
- package/dist/cjs/ThumbnailCard.js +24 -23
- package/dist/cjs/Ustream.js +28 -31
- package/dist/cjs/VerticalHero.js +19 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -79
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -52
- package/dist/cjs/VideoSeriesListing.js +77 -79
- package/dist/cjs/View.js +281 -284
- package/dist/cjs/YahooHero.js +39 -42
- package/dist/cjs/YoutubeGroup.js +57 -60
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-aa52fa1e.js} +14 -14
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-05795553.js} +9 -10
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/_object-sap-171b9ea5.js +16 -0
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-9bac8737.js} +5 -5
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-df19209d.js} +82 -84
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{_to-object-6de10e57.js → core.get-iterator-method-f3c44602.js} +247 -11
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/define-property-21887c62.js +20 -0
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-eed4f016.js} +13 -13
- package/dist/cjs/faundadb.js +19 -21
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +18 -20
- package/dist/cjs/getRootDocGroup.js +6 -8
- package/dist/cjs/getSerializers.js +44 -45
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +6 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-32097c80.js → index-59af05c4.js} +1089 -1094
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +164 -171
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-c2065b95.js → inherits-cba9c846.js} +26 -27
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-d207942e.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-f6d4eaa8.js} +17 -19
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-bbc68047.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-c9b8a0d0.js} +12 -14
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-5f52cf64.js} +97 -98
- package/dist/cjs/urlFor.js +21 -4
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-e34bf324.js} +8 -9
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -23
- package/dist/esm/AD300x250x600.js +22 -23
- package/dist/esm/AD728x90.js +25 -26
- package/dist/esm/ADFloatingFooter.js +21 -22
- package/dist/esm/ADFooter.js +4 -6
- package/dist/esm/ADGutter.js +21 -22
- package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-bfd129d9.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -22
- package/dist/esm/ADSponsoredResources.js +21 -22
- package/dist/esm/ADWebcast.js +21 -22
- package/dist/esm/ADWelcome.js +18 -19
- package/dist/esm/{ADlgInfeed-d94f1437.js → ADlgInfeed-0489335b.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -8
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +907 -16
- package/dist/esm/AlgoliaSearch.js +13993 -29
- package/dist/esm/AlphabeticList.js +8 -10
- package/dist/esm/ArticleCarousel.js +13 -15
- package/dist/esm/ArticleProgramLandingPage.js +48 -49
- package/dist/esm/ArticleSeriesLandingPage.js +31 -32
- package/dist/esm/ArticleSeriesListing.js +33 -34
- package/dist/esm/Auth.js +1418 -592
- package/dist/esm/AuthWrapper.js +244 -287
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -7
- package/dist/esm/CMEDeck.js +23 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -21
- package/dist/esm/Column3.js +37 -38
- package/dist/esm/ConferenceArticleCard.js +10 -7
- package/dist/esm/DeckContent.js +48 -49
- package/dist/esm/DeckQueue.js +48 -48
- package/dist/esm/{Dfp-be030f2a.js → Dfp-f867d061.js} +13 -14
- package/dist/esm/EventsDeck.js +48 -50
- package/dist/esm/ExternalResources.js +46 -47
- package/dist/esm/Feature.js +7 -4
- package/dist/esm/ForbesHero.js +10 -12
- package/dist/esm/GridContent.js +89 -90
- package/dist/esm/GridHero.js +11 -13
- package/dist/esm/GroupDeck.js +12 -14
- package/dist/esm/HamMagazine.js +28 -30
- package/dist/esm/Hero.js +7 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -47
- package/dist/esm/HorizontalHero.js +8 -5
- package/dist/esm/IssueContentDeck.js +25 -27
- package/dist/esm/IssueDeck.js +35 -37
- package/dist/esm/IssueLanding.js +54 -55
- package/dist/esm/LeftNav.js +20 -21
- package/dist/esm/MasterDeck.js +35 -36
- package/dist/esm/MediaSeriesLanding.js +643 -733
- package/dist/esm/NavDvm.js +14 -16
- package/dist/esm/NavMagazine.js +32 -34
- package/dist/esm/NavNative.js +32 -34
- package/dist/esm/OncliveHero.js +8 -4
- package/dist/esm/OncliveLargeHero.js +11 -13
- package/dist/esm/PageFilter.js +4 -6
- package/dist/esm/PartnerDetailListing.js +3863 -64
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -6
- package/dist/esm/PubSection.js +33 -34
- package/dist/esm/PubToc.js +6 -8
- package/dist/esm/PublicationDeck.js +27 -24
- package/dist/esm/PublicationLanding.js +47 -49
- package/dist/esm/QueueDeckExpanded.js +37 -38
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +10 -7
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -8
- package/dist/esm/Segment.js +4 -6
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-d555a1d2.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +13 -15
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-d7dec0c2.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -25
- package/dist/esm/TaxonomyDescription.js +44 -45
- package/dist/esm/TemplateNormal.js +48 -49
- package/dist/esm/ThumbnailCard.js +10 -7
- package/dist/esm/Ustream.js +12 -14
- package/dist/esm/VerticalHero.js +6 -3
- package/dist/esm/VideoProgramLandingPage.js +52 -53
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -9
- package/dist/esm/VideoSeriesLandingPage.js +37 -38
- package/dist/esm/VideoSeriesListing.js +34 -35
- package/dist/esm/View.js +109 -108
- package/dist/esm/YahooHero.js +13 -15
- package/dist/esm/YoutubeGroup.js +17 -19
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-130ee549.js} +7 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-7bf8bc4d.js} +30 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{_to-object-b50e61c3.js → core.get-iterator-method-86d4db69.js} +238 -9
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-60e0e1c6.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +12 -14
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +44 -45
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +6 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-41a678ea.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index-5e84f9cd.js → index-efc23b2b.js} +664 -659
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -126
- package/dist/esm/{inherits-a41fe93f.js → inherits-2409637d.js} +18 -19
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/keys-69989821.js +23 -0
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-67a08c9c.js} +12 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-32282905.js} +7 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-c05a82ba.js} +35 -36
- package/dist/esm/urlFor.js +19 -2
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-f8f967cd.js} +2 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_object-sap-a175b4a9.js +0 -16
- package/dist/cjs/core.get-iterator-method-f474eacc.js +0 -39
- package/dist/cjs/define-property-c88be878.js +0 -20
- package/dist/cjs/es6.string.iterator-c2573ffd.js +0 -210
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/core.get-iterator-method-133dfacd.js +0 -36
- package/dist/esm/define-property-fe54dc9f.js +0 -18
- package/dist/esm/es6.string.iterator-bc33758b.js +0 -201
- package/dist/esm/keys-7a3adabf.js +0 -23
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,153 +1,71 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
-
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
-
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
8
|
-
import
|
|
9
|
-
import ReactDOM from 'react-dom';
|
|
10
|
-
import Link from 'next/link';
|
|
11
|
-
import MasterDeck from './MasterDeck.js';
|
|
12
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
13
|
-
import urlFor from './urlFor.js';
|
|
14
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
15
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
16
|
-
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
17
|
-
import { g as getSerializers } from './index-5e84f9cd.js';
|
|
18
|
-
import './define-property-fe54dc9f.js';
|
|
19
|
-
import './_to-object-b50e61c3.js';
|
|
20
|
-
import './es6.string.iterator-bc33758b.js';
|
|
21
|
-
import './web.dom.iterable-4109ff68.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
22
3
|
import './_library-528f1934.js';
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import './inherits-
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './toConsumableArray-32282905.js';
|
|
6
|
+
import './_object-pie-33c40e79.js';
|
|
7
|
+
import { _ as _extends$2 } from './extends-5b1796d4.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
14
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
15
|
+
import './events-6c3a7a63.js';
|
|
16
|
+
import './index-41a678ea.js';
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
31
18
|
import 'react-bootstrap/Container';
|
|
32
19
|
import 'react-bootstrap/Row';
|
|
33
20
|
import 'react-bootstrap/Col';
|
|
34
21
|
import 'react-bootstrap/Card';
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
35
23
|
import 'next/router';
|
|
36
|
-
import './
|
|
37
|
-
import './debounce-
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
40
|
-
import '
|
|
24
|
+
import './isSymbol-1981418f.js';
|
|
25
|
+
import './debounce-9207d8ee.js';
|
|
26
|
+
import './toNumber-2f7a84cd.js';
|
|
27
|
+
import './index.es-29c1cef5.js';
|
|
28
|
+
import ReactDOM from 'react-dom';
|
|
41
29
|
import './visibility-sensor-72fd8f8b.js';
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
30
|
+
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
31
|
+
import './index-73819142.js';
|
|
32
|
+
import urlFor from './urlFor.js';
|
|
33
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
34
|
+
import './main-e4a934b2.js';
|
|
35
|
+
import './entities-7cc3bf45.js';
|
|
36
|
+
import './stringify-70b72959.js';
|
|
37
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
47
38
|
import './Segment.js';
|
|
48
|
-
import './
|
|
49
|
-
import './
|
|
50
|
-
import '
|
|
39
|
+
import './Beam.js';
|
|
40
|
+
import './AdSlot.js';
|
|
41
|
+
import './ADInfeed-bfd129d9.js';
|
|
42
|
+
import './lodash-17fdfebb.js';
|
|
43
|
+
import './ADlgInfeed-0489335b.js';
|
|
44
|
+
import 'react-bootstrap/Button';
|
|
45
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
51
46
|
import './index-c7e2ac95.js';
|
|
52
|
-
import './
|
|
53
|
-
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
47
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
54
48
|
import './GroupDeck.js';
|
|
55
|
-
import '
|
|
56
|
-
import './
|
|
49
|
+
import 'react-bootstrap';
|
|
50
|
+
import './iconBase-602d52fe.js';
|
|
51
|
+
import './index.esm-29e48d38.js';
|
|
52
|
+
import { g as getSerializers } from './index-efc23b2b.js';
|
|
53
|
+
import './util-7700fc59.js';
|
|
54
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
57
55
|
import 'next/head';
|
|
58
56
|
import 'react-share';
|
|
59
|
-
import './
|
|
57
|
+
import './SocialShare.js';
|
|
58
|
+
import './_object-to-array-c54dd835.js';
|
|
60
59
|
import 'react-bootstrap/Pagination';
|
|
61
|
-
import 'react-bootstrap/Button';
|
|
62
|
-
import './entities-932b50cf.js';
|
|
63
|
-
import './index.esm-f6156a57.js';
|
|
64
|
-
import './iconBase-ccc56b97.js';
|
|
65
60
|
import 'react-bootstrap/Figure';
|
|
66
61
|
import 'react-bootstrap/OverlayTrigger';
|
|
67
62
|
import 'react-bootstrap/Tooltip';
|
|
68
63
|
import 'react-bootstrap/Popover';
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var key in source) {
|
|
76
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
77
|
-
target[key] = source[key];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return target;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
return _extends.apply(this, arguments);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
89
|
-
if (source == null) return {};
|
|
90
|
-
var target = {};
|
|
91
|
-
var sourceKeys = Object.keys(source);
|
|
92
|
-
var key, i;
|
|
93
|
-
|
|
94
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
95
|
-
key = sourceKeys[i];
|
|
96
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
97
|
-
target[key] = source[key];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return target;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var classnames = createCommonjsModule(function (module) {
|
|
104
|
-
/*!
|
|
105
|
-
Copyright (c) 2017 Jed Watson.
|
|
106
|
-
Licensed under the MIT License (MIT), see
|
|
107
|
-
http://jedwatson.github.io/classnames
|
|
108
|
-
*/
|
|
109
|
-
/* global define */
|
|
110
|
-
|
|
111
|
-
(function () {
|
|
112
|
-
|
|
113
|
-
var hasOwn = {}.hasOwnProperty;
|
|
114
|
-
|
|
115
|
-
function classNames () {
|
|
116
|
-
var classes = [];
|
|
117
|
-
|
|
118
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
119
|
-
var arg = arguments[i];
|
|
120
|
-
if (!arg) continue;
|
|
121
|
-
|
|
122
|
-
var argType = typeof arg;
|
|
123
|
-
|
|
124
|
-
if (argType === 'string' || argType === 'number') {
|
|
125
|
-
classes.push(arg);
|
|
126
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
127
|
-
var inner = classNames.apply(null, arg);
|
|
128
|
-
if (inner) {
|
|
129
|
-
classes.push(inner);
|
|
130
|
-
}
|
|
131
|
-
} else if (argType === 'object') {
|
|
132
|
-
for (var key in arg) {
|
|
133
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
134
|
-
classes.push(key);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return classes.join(' ');
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (module.exports) {
|
|
144
|
-
classNames.default = classNames;
|
|
145
|
-
module.exports = classNames;
|
|
146
|
-
} else {
|
|
147
|
-
window.classNames = classNames;
|
|
148
|
-
}
|
|
149
|
-
}());
|
|
150
|
-
});
|
|
64
|
+
import MasterDeck from './MasterDeck.js';
|
|
65
|
+
import { _ as _defineProperty } from './defineProperty-d7d9b577.js';
|
|
66
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
67
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
68
|
+
import Link from 'next/link';
|
|
151
69
|
|
|
152
70
|
/**
|
|
153
71
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -242,7 +160,7 @@ function useUncontrolled(props, config) {
|
|
|
242
160
|
var _ref = result,
|
|
243
161
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
244
162
|
propsValue = _ref[fieldName],
|
|
245
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
163
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
246
164
|
|
|
247
165
|
var handlerName = config[fieldName];
|
|
248
166
|
|
|
@@ -250,28 +168,19 @@ function useUncontrolled(props, config) {
|
|
|
250
168
|
value = _useUncontrolledProp[0],
|
|
251
169
|
handler = _useUncontrolledProp[1];
|
|
252
170
|
|
|
253
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
171
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
254
172
|
}, props);
|
|
255
173
|
}
|
|
256
174
|
|
|
257
|
-
function _setPrototypeOf(o, p) {
|
|
258
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
259
|
-
o.__proto__ = p;
|
|
260
|
-
return o;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
return _setPrototypeOf(o, p);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
175
|
function _inheritsLoose(subClass, superClass) {
|
|
267
176
|
subClass.prototype = Object.create(superClass.prototype);
|
|
268
177
|
subClass.prototype.constructor = subClass;
|
|
269
|
-
|
|
178
|
+
subClass.__proto__ = superClass;
|
|
270
179
|
}
|
|
271
180
|
|
|
272
181
|
var ThemeContext = React__default.createContext({});
|
|
273
|
-
ThemeContext.Consumer
|
|
274
|
-
ThemeContext.Provider;
|
|
182
|
+
var Consumer = ThemeContext.Consumer,
|
|
183
|
+
Provider = ThemeContext.Provider;
|
|
275
184
|
|
|
276
185
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
277
186
|
var prefixes = useContext(ThemeContext);
|
|
@@ -288,11 +197,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
288
197
|
return href || null;
|
|
289
198
|
};
|
|
290
199
|
|
|
291
|
-
var context
|
|
292
|
-
context
|
|
200
|
+
var context = React__default.createContext(null);
|
|
201
|
+
context.displayName = 'AccordionContext';
|
|
293
202
|
|
|
294
203
|
function useAccordionToggle(eventKey, onClick) {
|
|
295
|
-
var contextEventKey = useContext(context
|
|
204
|
+
var contextEventKey = useContext(context);
|
|
296
205
|
var onSelect = useContext(SelectableContext);
|
|
297
206
|
return function (e) {
|
|
298
207
|
/*
|
|
@@ -310,7 +219,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
310
219
|
children = _ref.children,
|
|
311
220
|
eventKey = _ref.eventKey,
|
|
312
221
|
onClick = _ref.onClick,
|
|
313
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
222
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
314
223
|
|
|
315
224
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
316
225
|
|
|
@@ -318,22 +227,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
318
227
|
props.type = 'button';
|
|
319
228
|
}
|
|
320
229
|
|
|
321
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
230
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
322
231
|
ref: ref,
|
|
323
232
|
onClick: accordionOnClick
|
|
324
233
|
}, props), children);
|
|
325
234
|
});
|
|
326
235
|
|
|
327
|
-
function ownerDocument
|
|
236
|
+
function ownerDocument(node) {
|
|
328
237
|
return node && node.ownerDocument || document;
|
|
329
238
|
}
|
|
330
239
|
|
|
331
240
|
function ownerWindow(node) {
|
|
332
|
-
var doc = ownerDocument
|
|
241
|
+
var doc = ownerDocument(node);
|
|
333
242
|
return doc && doc.defaultView || window;
|
|
334
243
|
}
|
|
335
244
|
|
|
336
|
-
function getComputedStyle$
|
|
245
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
337
246
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
338
247
|
}
|
|
339
248
|
|
|
@@ -362,7 +271,7 @@ function style(node, property) {
|
|
|
362
271
|
var transforms = '';
|
|
363
272
|
|
|
364
273
|
if (typeof property === 'string') {
|
|
365
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
274
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
366
275
|
}
|
|
367
276
|
|
|
368
277
|
Object.keys(property).forEach(function (key) {
|
|
@@ -502,7 +411,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
502
411
|
exit: PropTypes.number,
|
|
503
412
|
appear: PropTypes.number
|
|
504
413
|
}).isRequired]) : null;
|
|
505
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
414
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
506
415
|
enter: PropTypes.string,
|
|
507
416
|
exit: PropTypes.string,
|
|
508
417
|
active: PropTypes.string
|
|
@@ -884,23 +793,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
884
793
|
}
|
|
885
794
|
|
|
886
795
|
var _this$props = this.props,
|
|
887
|
-
children = _this$props.children
|
|
888
|
-
_this$props.in
|
|
889
|
-
_this$props.mountOnEnter
|
|
890
|
-
_this$props.unmountOnExit
|
|
891
|
-
_this$props.appear
|
|
892
|
-
_this$props.enter
|
|
893
|
-
_this$props.exit
|
|
894
|
-
_this$props.timeout
|
|
895
|
-
_this$props.addEndListener
|
|
896
|
-
_this$props.onEnter
|
|
897
|
-
_this$props.onEntering
|
|
898
|
-
_this$props.onEntered
|
|
899
|
-
_this$props.onExit
|
|
900
|
-
_this$props.onExiting
|
|
901
|
-
_this$props.onExited
|
|
902
|
-
_this$props.nodeRef
|
|
903
|
-
|
|
796
|
+
children = _this$props.children,
|
|
797
|
+
_in = _this$props.in,
|
|
798
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
799
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
800
|
+
_appear = _this$props.appear,
|
|
801
|
+
_enter = _this$props.enter,
|
|
802
|
+
_exit = _this$props.exit,
|
|
803
|
+
_timeout = _this$props.timeout,
|
|
804
|
+
_addEndListener = _this$props.addEndListener,
|
|
805
|
+
_onEnter = _this$props.onEnter,
|
|
806
|
+
_onEntering = _this$props.onEntering,
|
|
807
|
+
_onEntered = _this$props.onEntered,
|
|
808
|
+
_onExit = _this$props.onExit,
|
|
809
|
+
_onExiting = _this$props.onExiting,
|
|
810
|
+
_onExited = _this$props.onExited,
|
|
811
|
+
_nodeRef = _this$props.nodeRef,
|
|
812
|
+
childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
904
813
|
|
|
905
814
|
return (
|
|
906
815
|
/*#__PURE__*/
|
|
@@ -1100,7 +1009,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1100
1009
|
onExited: PropTypes.func
|
|
1101
1010
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1102
1011
|
|
|
1103
|
-
function noop
|
|
1012
|
+
function noop() {}
|
|
1104
1013
|
|
|
1105
1014
|
Transition.defaultProps = {
|
|
1106
1015
|
in: false,
|
|
@@ -1109,12 +1018,12 @@ Transition.defaultProps = {
|
|
|
1109
1018
|
appear: false,
|
|
1110
1019
|
enter: true,
|
|
1111
1020
|
exit: true,
|
|
1112
|
-
onEnter: noop
|
|
1113
|
-
onEntering: noop
|
|
1114
|
-
onEntered: noop
|
|
1115
|
-
onExit: noop
|
|
1116
|
-
onExiting: noop
|
|
1117
|
-
onExited: noop
|
|
1021
|
+
onEnter: noop,
|
|
1022
|
+
onEntering: noop,
|
|
1023
|
+
onEntered: noop,
|
|
1024
|
+
onExit: noop,
|
|
1025
|
+
onExiting: noop,
|
|
1026
|
+
onExited: noop
|
|
1118
1027
|
};
|
|
1119
1028
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1120
1029
|
Transition.EXITED = EXITED;
|
|
@@ -1180,7 +1089,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1180
1089
|
}
|
|
1181
1090
|
|
|
1182
1091
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1183
|
-
var defaultProps
|
|
1092
|
+
var defaultProps = {
|
|
1184
1093
|
in: false,
|
|
1185
1094
|
timeout: 300,
|
|
1186
1095
|
mountOnEnter: false,
|
|
@@ -1200,7 +1109,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1200
1109
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1201
1110
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1202
1111
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1203
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1112
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1204
1113
|
|
|
1205
1114
|
/* Compute dimension */
|
|
1206
1115
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1236,7 +1145,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1236
1145
|
}, onExiting);
|
|
1237
1146
|
}, [computedDimension, onExiting]);
|
|
1238
1147
|
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1239
|
-
, _extends({
|
|
1148
|
+
, _extends$1({
|
|
1240
1149
|
ref: ref,
|
|
1241
1150
|
addEndListener: transitionEnd
|
|
1242
1151
|
}, props, {
|
|
@@ -1247,26 +1156,26 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1247
1156
|
onExit: handleExit,
|
|
1248
1157
|
onExiting: handleExiting
|
|
1249
1158
|
}), function (state, innerProps) {
|
|
1250
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1159
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1251
1160
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1252
1161
|
}));
|
|
1253
1162
|
});
|
|
1254
1163
|
}); // @ts-ignore
|
|
1255
1164
|
|
|
1256
1165
|
// @ts-ignore
|
|
1257
|
-
Collapse.defaultProps = defaultProps
|
|
1166
|
+
Collapse.defaultProps = defaultProps;
|
|
1258
1167
|
|
|
1259
1168
|
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1260
1169
|
var children = _ref.children,
|
|
1261
1170
|
eventKey = _ref.eventKey,
|
|
1262
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1171
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1263
1172
|
|
|
1264
|
-
var contextEventKey = useContext(context
|
|
1173
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1265
1174
|
// from collapsing the accordion when clicked.
|
|
1266
1175
|
|
|
1267
1176
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1268
1177
|
value: null
|
|
1269
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1178
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1270
1179
|
ref: ref,
|
|
1271
1180
|
in: contextEventKey === eventKey
|
|
1272
1181
|
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
@@ -1284,14 +1193,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1284
1193
|
children = _useUncontrolled.children,
|
|
1285
1194
|
className = _useUncontrolled.className,
|
|
1286
1195
|
onSelect = _useUncontrolled.onSelect,
|
|
1287
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1196
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1288
1197
|
|
|
1289
1198
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1290
|
-
return /*#__PURE__*/React__default.createElement(context
|
|
1199
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1291
1200
|
value: activeKey || null
|
|
1292
1201
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1293
1202
|
value: onSelect || null
|
|
1294
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1203
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1295
1204
|
ref: ref
|
|
1296
1205
|
}, controlledProps, {
|
|
1297
1206
|
className: finalClassName
|
|
@@ -1327,7 +1236,7 @@ function useEventCallback(fn) {
|
|
|
1327
1236
|
}
|
|
1328
1237
|
|
|
1329
1238
|
var _fadeStyles;
|
|
1330
|
-
var defaultProps$
|
|
1239
|
+
var defaultProps$1 = {
|
|
1331
1240
|
in: false,
|
|
1332
1241
|
timeout: 300,
|
|
1333
1242
|
mountOnEnter: false,
|
|
@@ -1338,40 +1247,40 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1338
1247
|
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1339
1248
|
var className = _ref.className,
|
|
1340
1249
|
children = _ref.children,
|
|
1341
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1250
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1342
1251
|
|
|
1343
1252
|
var handleEnter = useCallback(function (node) {
|
|
1344
1253
|
triggerBrowserReflow(node);
|
|
1345
1254
|
if (props.onEnter) props.onEnter(node);
|
|
1346
1255
|
}, [props]);
|
|
1347
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1256
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1348
1257
|
ref: ref,
|
|
1349
1258
|
addEndListener: transitionEnd
|
|
1350
1259
|
}, props, {
|
|
1351
1260
|
onEnter: handleEnter
|
|
1352
1261
|
}), function (status, innerProps) {
|
|
1353
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1262
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1354
1263
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1355
1264
|
}));
|
|
1356
1265
|
});
|
|
1357
1266
|
});
|
|
1358
|
-
Fade.defaultProps = defaultProps$
|
|
1267
|
+
Fade.defaultProps = defaultProps$1;
|
|
1359
1268
|
Fade.displayName = 'Fade';
|
|
1360
1269
|
|
|
1361
|
-
var propTypes
|
|
1270
|
+
var propTypes = {
|
|
1362
1271
|
label: PropTypes.string.isRequired,
|
|
1363
1272
|
onClick: PropTypes.func
|
|
1364
1273
|
};
|
|
1365
|
-
var defaultProps$
|
|
1274
|
+
var defaultProps$2 = {
|
|
1366
1275
|
label: 'Close'
|
|
1367
1276
|
};
|
|
1368
1277
|
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1369
1278
|
var label = _ref.label,
|
|
1370
1279
|
onClick = _ref.onClick,
|
|
1371
1280
|
className = _ref.className,
|
|
1372
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1281
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1373
1282
|
|
|
1374
|
-
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1283
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1375
1284
|
ref: ref,
|
|
1376
1285
|
type: "button",
|
|
1377
1286
|
className: classnames('close', className),
|
|
@@ -1383,12 +1292,12 @@ var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
1383
1292
|
}, label));
|
|
1384
1293
|
});
|
|
1385
1294
|
CloseButton.displayName = 'CloseButton';
|
|
1386
|
-
CloseButton.propTypes = propTypes
|
|
1387
|
-
CloseButton.defaultProps = defaultProps$
|
|
1295
|
+
CloseButton.propTypes = propTypes;
|
|
1296
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1388
1297
|
|
|
1389
1298
|
var divWithClassName = (function (className) {
|
|
1390
1299
|
return React__default.forwardRef(function (p, ref) {
|
|
1391
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1300
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1392
1301
|
ref: ref,
|
|
1393
1302
|
className: classnames(p.className, className)
|
|
1394
1303
|
}));
|
|
@@ -1419,10 +1328,10 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1419
1328
|
bsPrefix = _ref2.bsPrefix,
|
|
1420
1329
|
_ref2$as = _ref2.as,
|
|
1421
1330
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1422
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1331
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1423
1332
|
|
|
1424
1333
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1425
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1334
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1426
1335
|
ref: ref,
|
|
1427
1336
|
className: classnames(className, resolvedPrefix)
|
|
1428
1337
|
}, props));
|
|
@@ -1449,7 +1358,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1449
1358
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1450
1359
|
disabled = _ref.disabled,
|
|
1451
1360
|
onKeyDown = _ref.onKeyDown,
|
|
1452
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1361
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1453
1362
|
|
|
1454
1363
|
var handleClick = function handleClick(event) {
|
|
1455
1364
|
var href = props.href,
|
|
@@ -1488,7 +1397,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1488
1397
|
props['aria-disabled'] = true;
|
|
1489
1398
|
}
|
|
1490
1399
|
|
|
1491
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1400
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1492
1401
|
ref: ref
|
|
1493
1402
|
}, props, {
|
|
1494
1403
|
onClick: handleClick,
|
|
@@ -1497,15 +1406,15 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1497
1406
|
});
|
|
1498
1407
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1499
1408
|
|
|
1500
|
-
var DivStyledAsH4
|
|
1501
|
-
DivStyledAsH4
|
|
1409
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1410
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1502
1411
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1503
|
-
Component: DivStyledAsH4
|
|
1412
|
+
Component: DivStyledAsH4
|
|
1504
1413
|
});
|
|
1505
1414
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1506
1415
|
Component: SafeAnchor
|
|
1507
1416
|
});
|
|
1508
|
-
var defaultProps$
|
|
1417
|
+
var defaultProps$3 = {
|
|
1509
1418
|
show: true,
|
|
1510
1419
|
transition: Fade,
|
|
1511
1420
|
closeLabel: 'Close alert'
|
|
@@ -1523,7 +1432,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1523
1432
|
onClose = _useUncontrolled.onClose,
|
|
1524
1433
|
dismissible = _useUncontrolled.dismissible,
|
|
1525
1434
|
transition = _useUncontrolled.transition,
|
|
1526
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1435
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1527
1436
|
|
|
1528
1437
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1529
1438
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1532,7 +1441,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1532
1441
|
}
|
|
1533
1442
|
});
|
|
1534
1443
|
var Transition = transition === true ? Fade : transition;
|
|
1535
|
-
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1444
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1536
1445
|
role: "alert"
|
|
1537
1446
|
}, Transition ? props : undefined, {
|
|
1538
1447
|
ref: ref,
|
|
@@ -1542,7 +1451,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1542
1451
|
label: closeLabel
|
|
1543
1452
|
}), children);
|
|
1544
1453
|
if (!Transition) return show ? alert : null;
|
|
1545
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1454
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1546
1455
|
unmountOnExit: true
|
|
1547
1456
|
}, props, {
|
|
1548
1457
|
ref: undefined,
|
|
@@ -1550,11 +1459,11 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1550
1459
|
}), alert);
|
|
1551
1460
|
});
|
|
1552
1461
|
Alert.displayName = 'Alert';
|
|
1553
|
-
Alert.defaultProps = defaultProps$
|
|
1462
|
+
Alert.defaultProps = defaultProps$3;
|
|
1554
1463
|
Alert.Link = AlertLink;
|
|
1555
1464
|
Alert.Heading = AlertHeading;
|
|
1556
1465
|
|
|
1557
|
-
var defaultProps$
|
|
1466
|
+
var defaultProps$4 = {
|
|
1558
1467
|
pill: false
|
|
1559
1468
|
};
|
|
1560
1469
|
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1564,19 +1473,19 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1564
1473
|
className = _ref.className,
|
|
1565
1474
|
_ref$as = _ref.as,
|
|
1566
1475
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1567
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1476
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1568
1477
|
|
|
1569
1478
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1570
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1479
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1571
1480
|
ref: ref
|
|
1572
1481
|
}, props, {
|
|
1573
1482
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1574
1483
|
}));
|
|
1575
1484
|
});
|
|
1576
1485
|
Badge.displayName = 'Badge';
|
|
1577
|
-
Badge.defaultProps = defaultProps$
|
|
1486
|
+
Badge.defaultProps = defaultProps$4;
|
|
1578
1487
|
|
|
1579
|
-
var defaultProps$
|
|
1488
|
+
var defaultProps$5 = {
|
|
1580
1489
|
active: false,
|
|
1581
1490
|
linkProps: {}
|
|
1582
1491
|
};
|
|
@@ -1593,26 +1502,26 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1593
1502
|
href = _ref.href,
|
|
1594
1503
|
title = _ref.title,
|
|
1595
1504
|
target = _ref.target,
|
|
1596
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1505
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1597
1506
|
|
|
1598
1507
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1599
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1508
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1600
1509
|
ref: ref
|
|
1601
1510
|
}, props, {
|
|
1602
1511
|
className: classnames(prefix, className, {
|
|
1603
1512
|
active: active
|
|
1604
1513
|
}),
|
|
1605
1514
|
"aria-current": active ? 'page' : undefined
|
|
1606
|
-
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1515
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1607
1516
|
href: href,
|
|
1608
1517
|
title: title,
|
|
1609
1518
|
target: target
|
|
1610
1519
|
}), children));
|
|
1611
1520
|
});
|
|
1612
1521
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1613
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1522
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1614
1523
|
|
|
1615
|
-
var defaultProps$
|
|
1524
|
+
var defaultProps$6 = {
|
|
1616
1525
|
label: 'breadcrumb',
|
|
1617
1526
|
listProps: {}
|
|
1618
1527
|
};
|
|
@@ -1624,22 +1533,22 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1624
1533
|
label = _ref.label,
|
|
1625
1534
|
_ref$as = _ref.as,
|
|
1626
1535
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1627
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1536
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1628
1537
|
|
|
1629
1538
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1630
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1539
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1631
1540
|
"aria-label": label,
|
|
1632
1541
|
className: className,
|
|
1633
1542
|
ref: ref
|
|
1634
|
-
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1543
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1635
1544
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1636
1545
|
}), children));
|
|
1637
1546
|
});
|
|
1638
1547
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1639
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1548
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1640
1549
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1641
1550
|
|
|
1642
|
-
var defaultProps$
|
|
1551
|
+
var defaultProps$7 = {
|
|
1643
1552
|
variant: 'primary',
|
|
1644
1553
|
active: false,
|
|
1645
1554
|
disabled: false
|
|
@@ -1653,13 +1562,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1653
1562
|
block = _ref.block,
|
|
1654
1563
|
type = _ref.type,
|
|
1655
1564
|
as = _ref.as,
|
|
1656
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1565
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1657
1566
|
|
|
1658
1567
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1659
1568
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1660
1569
|
|
|
1661
1570
|
if (props.href) {
|
|
1662
|
-
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1571
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1663
1572
|
as: as,
|
|
1664
1573
|
ref: ref,
|
|
1665
1574
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1677,14 +1586,14 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1677
1586
|
}
|
|
1678
1587
|
|
|
1679
1588
|
var Component = as || 'button';
|
|
1680
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1589
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1681
1590
|
className: classes
|
|
1682
1591
|
}));
|
|
1683
1592
|
});
|
|
1684
1593
|
Button.displayName = 'Button';
|
|
1685
|
-
Button.defaultProps = defaultProps$
|
|
1594
|
+
Button.defaultProps = defaultProps$7;
|
|
1686
1595
|
|
|
1687
|
-
var defaultProps$
|
|
1596
|
+
var defaultProps$8 = {
|
|
1688
1597
|
vertical: false,
|
|
1689
1598
|
toggle: false,
|
|
1690
1599
|
role: 'group'
|
|
@@ -1697,40 +1606,40 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1697
1606
|
className = _ref.className,
|
|
1698
1607
|
_ref$as = _ref.as,
|
|
1699
1608
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1700
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1609
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1701
1610
|
|
|
1702
1611
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1703
1612
|
var baseClass = prefix;
|
|
1704
1613
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1705
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1614
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1706
1615
|
ref: ref,
|
|
1707
1616
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1708
1617
|
}));
|
|
1709
1618
|
});
|
|
1710
1619
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1711
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1620
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1712
1621
|
|
|
1713
|
-
var defaultProps$
|
|
1622
|
+
var defaultProps$9 = {
|
|
1714
1623
|
role: 'toolbar'
|
|
1715
1624
|
};
|
|
1716
1625
|
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1717
1626
|
var bsPrefix = _ref.bsPrefix,
|
|
1718
1627
|
className = _ref.className,
|
|
1719
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1628
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1720
1629
|
|
|
1721
1630
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1722
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1631
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1723
1632
|
ref: ref,
|
|
1724
1633
|
className: classnames(className, prefix)
|
|
1725
1634
|
}));
|
|
1726
1635
|
});
|
|
1727
1636
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1728
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1637
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1729
1638
|
|
|
1730
1639
|
var context$1 = React__default.createContext(null);
|
|
1731
1640
|
context$1.displayName = 'CardContext';
|
|
1732
1641
|
|
|
1733
|
-
var defaultProps$
|
|
1642
|
+
var defaultProps$a = {
|
|
1734
1643
|
variant: null
|
|
1735
1644
|
};
|
|
1736
1645
|
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -1740,16 +1649,16 @@ function (_ref, ref) {
|
|
|
1740
1649
|
variant = _ref.variant,
|
|
1741
1650
|
_ref$as = _ref.as,
|
|
1742
1651
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1743
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1652
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1744
1653
|
|
|
1745
1654
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1746
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1655
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1747
1656
|
ref: ref,
|
|
1748
1657
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1749
1658
|
}, props));
|
|
1750
1659
|
});
|
|
1751
1660
|
CardImg.displayName = 'CardImg';
|
|
1752
|
-
CardImg.defaultProps = defaultProps$
|
|
1661
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1753
1662
|
|
|
1754
1663
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1755
1664
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1769,7 +1678,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1769
1678
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1770
1679
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1771
1680
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1772
|
-
var defaultProps$
|
|
1681
|
+
var defaultProps$b = {
|
|
1773
1682
|
body: false
|
|
1774
1683
|
};
|
|
1775
1684
|
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1782,7 +1691,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1782
1691
|
children = _ref.children,
|
|
1783
1692
|
_ref$as = _ref.as,
|
|
1784
1693
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1785
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1694
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1786
1695
|
|
|
1787
1696
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1788
1697
|
var cardContext = useMemo(function () {
|
|
@@ -1792,7 +1701,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1792
1701
|
}, [prefix]);
|
|
1793
1702
|
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1794
1703
|
value: cardContext
|
|
1795
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1704
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1796
1705
|
ref: ref
|
|
1797
1706
|
}, props, {
|
|
1798
1707
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
@@ -1802,7 +1711,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1802
1711
|
React__default.createElement(CardBody, null, children) : children));
|
|
1803
1712
|
});
|
|
1804
1713
|
Card.displayName = 'Card';
|
|
1805
|
-
Card.defaultProps = defaultProps$
|
|
1714
|
+
Card.defaultProps = defaultProps$b;
|
|
1806
1715
|
Card.Img = CardImg;
|
|
1807
1716
|
Card.Title = CardTitle;
|
|
1808
1717
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1995,10 +1904,10 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1995
1904
|
bsPrefix = _ref.bsPrefix,
|
|
1996
1905
|
children = _ref.children,
|
|
1997
1906
|
className = _ref.className,
|
|
1998
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1907
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1999
1908
|
|
|
2000
1909
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
2001
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1910
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2002
1911
|
ref: ref
|
|
2003
1912
|
}, props, {
|
|
2004
1913
|
className: finalClassName
|
|
@@ -2037,7 +1946,7 @@ function forEach(children, func) {
|
|
|
2037
1946
|
}
|
|
2038
1947
|
|
|
2039
1948
|
var SWIPE_THRESHOLD = 40;
|
|
2040
|
-
var propTypes$
|
|
1949
|
+
var propTypes$1 = {
|
|
2041
1950
|
/**
|
|
2042
1951
|
* @default 'carousel'
|
|
2043
1952
|
*/
|
|
@@ -2139,7 +2048,7 @@ var propTypes$9 = {
|
|
|
2139
2048
|
*/
|
|
2140
2049
|
nextLabel: PropTypes.string
|
|
2141
2050
|
};
|
|
2142
|
-
var defaultProps$
|
|
2051
|
+
var defaultProps$c = {
|
|
2143
2052
|
slide: true,
|
|
2144
2053
|
fade: false,
|
|
2145
2054
|
controls: true,
|
|
@@ -2203,7 +2112,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2203
2112
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2204
2113
|
className = _useUncontrolled.className,
|
|
2205
2114
|
children = _useUncontrolled.children,
|
|
2206
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2115
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2207
2116
|
|
|
2208
2117
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2209
2118
|
var nextDirectionRef = useRef(null);
|
|
@@ -2460,7 +2369,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2460
2369
|
};
|
|
2461
2370
|
});
|
|
2462
2371
|
}, [indicators, numChildren, onSelect]);
|
|
2463
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2372
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2464
2373
|
ref: elementRef
|
|
2465
2374
|
}, props, {
|
|
2466
2375
|
onKeyDown: handleKeyDown,
|
|
@@ -2509,24 +2418,24 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2509
2418
|
|
|
2510
2419
|
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2511
2420
|
Carousel.displayName = 'Carousel';
|
|
2512
|
-
Carousel.propTypes = propTypes$
|
|
2513
|
-
Carousel.defaultProps = defaultProps$
|
|
2421
|
+
Carousel.propTypes = propTypes$1;
|
|
2422
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2514
2423
|
Carousel.Caption = CarouselCaption;
|
|
2515
2424
|
Carousel.Item = CarouselItem;
|
|
2516
2425
|
|
|
2517
|
-
var DEVICE_SIZES
|
|
2426
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2518
2427
|
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2519
2428
|
function (_ref, ref) {
|
|
2520
2429
|
var bsPrefix = _ref.bsPrefix,
|
|
2521
2430
|
className = _ref.className,
|
|
2522
2431
|
_ref$as = _ref.as,
|
|
2523
2432
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2524
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2433
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2525
2434
|
|
|
2526
2435
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2527
2436
|
var spans = [];
|
|
2528
2437
|
var classes = [];
|
|
2529
|
-
DEVICE_SIZES
|
|
2438
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2530
2439
|
var propValue = props[brkPoint];
|
|
2531
2440
|
delete props[brkPoint];
|
|
2532
2441
|
var span;
|
|
@@ -2552,7 +2461,7 @@ function (_ref, ref) {
|
|
|
2552
2461
|
spans.push(prefix); // plain 'col'
|
|
2553
2462
|
}
|
|
2554
2463
|
|
|
2555
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2464
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2556
2465
|
ref: ref,
|
|
2557
2466
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2558
2467
|
}));
|
|
@@ -2663,6 +2572,39 @@ function useForceUpdate() {
|
|
|
2663
2572
|
|
|
2664
2573
|
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2665
2574
|
|
|
2575
|
+
function _extends() {
|
|
2576
|
+
_extends = Object.assign || function (target) {
|
|
2577
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2578
|
+
var source = arguments[i];
|
|
2579
|
+
|
|
2580
|
+
for (var key in source) {
|
|
2581
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
+
target[key] = source[key];
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
return target;
|
|
2588
|
+
};
|
|
2589
|
+
|
|
2590
|
+
return _extends.apply(this, arguments);
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2594
|
+
if (source == null) return {};
|
|
2595
|
+
var target = {};
|
|
2596
|
+
var sourceKeys = Object.keys(source);
|
|
2597
|
+
var key, i;
|
|
2598
|
+
|
|
2599
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2600
|
+
key = sourceKeys[i];
|
|
2601
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2602
|
+
target[key] = source[key];
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
return target;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2666
2608
|
function useSafeState(state) {
|
|
2667
2609
|
var isMounted = useMounted();
|
|
2668
2610
|
return [state[0], useCallback(function (nextState) {
|
|
@@ -2707,50 +2649,21 @@ function getBasePlacement(placement) {
|
|
|
2707
2649
|
return placement.split('-')[0];
|
|
2708
2650
|
}
|
|
2709
2651
|
|
|
2710
|
-
|
|
2711
|
-
var rect = element.getBoundingClientRect();
|
|
2712
|
-
return {
|
|
2713
|
-
width: rect.width,
|
|
2714
|
-
height: rect.height,
|
|
2715
|
-
top: rect.top,
|
|
2716
|
-
right: rect.right,
|
|
2717
|
-
bottom: rect.bottom,
|
|
2718
|
-
left: rect.left,
|
|
2719
|
-
x: rect.left,
|
|
2720
|
-
y: rect.top
|
|
2721
|
-
};
|
|
2722
|
-
}
|
|
2723
|
-
|
|
2652
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2724
2653
|
// means it doesn't take into account transforms.
|
|
2725
|
-
|
|
2726
2654
|
function getLayoutRect(element) {
|
|
2727
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2728
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2729
|
-
|
|
2730
|
-
var width = element.offsetWidth;
|
|
2731
|
-
var height = element.offsetHeight;
|
|
2732
|
-
|
|
2733
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2734
|
-
width = clientRect.width;
|
|
2735
|
-
}
|
|
2736
|
-
|
|
2737
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2738
|
-
height = clientRect.height;
|
|
2739
|
-
}
|
|
2740
|
-
|
|
2741
2655
|
return {
|
|
2742
2656
|
x: element.offsetLeft,
|
|
2743
2657
|
y: element.offsetTop,
|
|
2744
|
-
width:
|
|
2745
|
-
height:
|
|
2658
|
+
width: element.offsetWidth,
|
|
2659
|
+
height: element.offsetHeight
|
|
2746
2660
|
};
|
|
2747
2661
|
}
|
|
2748
2662
|
|
|
2749
|
-
|
|
2750
|
-
if (node == null) {
|
|
2751
|
-
return window;
|
|
2752
|
-
}
|
|
2663
|
+
/*:: import type { Window } from '../types'; */
|
|
2753
2664
|
|
|
2665
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2666
|
+
function getWindow(node) {
|
|
2754
2667
|
if (node.toString() !== '[object Window]') {
|
|
2755
2668
|
var ownerDocument = node.ownerDocument;
|
|
2756
2669
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2759,27 +2672,31 @@ function getWindow(node) {
|
|
|
2759
2672
|
return node;
|
|
2760
2673
|
}
|
|
2761
2674
|
|
|
2675
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2676
|
+
Element); */
|
|
2677
|
+
|
|
2762
2678
|
function isElement(node) {
|
|
2763
2679
|
var OwnElement = getWindow(node).Element;
|
|
2764
2680
|
return node instanceof OwnElement || node instanceof Element;
|
|
2765
2681
|
}
|
|
2682
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2683
|
+
HTMLElement); */
|
|
2684
|
+
|
|
2766
2685
|
|
|
2767
2686
|
function isHTMLElement(node) {
|
|
2768
2687
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2769
2688
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2770
2689
|
}
|
|
2690
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2691
|
+
ShadowRoot); */
|
|
2771
2692
|
|
|
2772
|
-
function isShadowRoot(node) {
|
|
2773
|
-
// IE 11 has no ShadowRoot
|
|
2774
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2775
|
-
return false;
|
|
2776
|
-
}
|
|
2777
2693
|
|
|
2694
|
+
function isShadowRoot(node) {
|
|
2778
2695
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2779
2696
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2780
2697
|
}
|
|
2781
2698
|
|
|
2782
|
-
function contains
|
|
2699
|
+
function contains(parent, child) {
|
|
2783
2700
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2784
2701
|
|
|
2785
2702
|
if (parent.contains(child)) {
|
|
@@ -2806,7 +2723,7 @@ function getNodeName(element) {
|
|
|
2806
2723
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2807
2724
|
}
|
|
2808
2725
|
|
|
2809
|
-
function getComputedStyle$
|
|
2726
|
+
function getComputedStyle$2(element) {
|
|
2810
2727
|
return getWindow(element).getComputedStyle(element);
|
|
2811
2728
|
}
|
|
2812
2729
|
|
|
@@ -2829,8 +2746,9 @@ function getParentNode(element) {
|
|
|
2829
2746
|
// $FlowFixMe[incompatible-return]
|
|
2830
2747
|
// $FlowFixMe[prop-missing]
|
|
2831
2748
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2832
|
-
element.parentNode ||
|
|
2833
|
-
|
|
2749
|
+
element.parentNode || // DOM Element detected
|
|
2750
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2751
|
+
element.host || // ShadowRoot detected
|
|
2834
2752
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2835
2753
|
getDocumentElement(element) // fallback
|
|
2836
2754
|
|
|
@@ -2839,36 +2757,33 @@ function getParentNode(element) {
|
|
|
2839
2757
|
|
|
2840
2758
|
function getTrueOffsetParent(element) {
|
|
2841
2759
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2842
|
-
getComputedStyle$
|
|
2760
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2843
2761
|
return null;
|
|
2844
2762
|
}
|
|
2845
2763
|
|
|
2846
|
-
|
|
2847
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2848
|
-
// return the containing block
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
function getContainingBlock(element) {
|
|
2852
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2853
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2764
|
+
var offsetParent = element.offsetParent;
|
|
2854
2765
|
|
|
2855
|
-
if (
|
|
2856
|
-
|
|
2857
|
-
var elementCss = getComputedStyle$1(element);
|
|
2766
|
+
if (offsetParent) {
|
|
2767
|
+
var html = getDocumentElement(offsetParent);
|
|
2858
2768
|
|
|
2859
|
-
if (
|
|
2860
|
-
return
|
|
2769
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2770
|
+
return html;
|
|
2861
2771
|
}
|
|
2862
2772
|
}
|
|
2863
2773
|
|
|
2774
|
+
return offsetParent;
|
|
2775
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2776
|
+
// return the containing block
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
function getContainingBlock(element) {
|
|
2864
2780
|
var currentNode = getParentNode(element);
|
|
2865
2781
|
|
|
2866
2782
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2867
|
-
var css = getComputedStyle$
|
|
2783
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2868
2784
|
// create a containing block.
|
|
2869
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2870
2785
|
|
|
2871
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2786
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2872
2787
|
return currentNode;
|
|
2873
2788
|
} else {
|
|
2874
2789
|
currentNode = currentNode.parentNode;
|
|
@@ -2884,11 +2799,11 @@ function getOffsetParent(element) {
|
|
|
2884
2799
|
var window = getWindow(element);
|
|
2885
2800
|
var offsetParent = getTrueOffsetParent(element);
|
|
2886
2801
|
|
|
2887
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2802
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2888
2803
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2889
2804
|
}
|
|
2890
2805
|
|
|
2891
|
-
if (offsetParent &&
|
|
2806
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2892
2807
|
return window;
|
|
2893
2808
|
}
|
|
2894
2809
|
|
|
@@ -2899,12 +2814,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2899
2814
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2900
2815
|
}
|
|
2901
2816
|
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
var round = Math.round;
|
|
2905
|
-
|
|
2906
|
-
function within(min$1, value, max$1) {
|
|
2907
|
-
return max(min$1, min(value, max$1));
|
|
2817
|
+
function within(min, value, max) {
|
|
2818
|
+
return Math.max(min, Math.min(value, max));
|
|
2908
2819
|
}
|
|
2909
2820
|
|
|
2910
2821
|
function getFreshSideObject() {
|
|
@@ -2917,7 +2828,7 @@ function getFreshSideObject() {
|
|
|
2917
2828
|
}
|
|
2918
2829
|
|
|
2919
2830
|
function mergePaddingObject(paddingObject) {
|
|
2920
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2831
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2921
2832
|
}
|
|
2922
2833
|
|
|
2923
2834
|
function expandToHashMap(value, keys) {
|
|
@@ -2927,19 +2838,11 @@ function expandToHashMap(value, keys) {
|
|
|
2927
2838
|
}, {});
|
|
2928
2839
|
}
|
|
2929
2840
|
|
|
2930
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2931
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2932
|
-
placement: state.placement
|
|
2933
|
-
})) : padding;
|
|
2934
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2935
|
-
};
|
|
2936
|
-
|
|
2937
2841
|
function arrow(_ref) {
|
|
2938
2842
|
var _state$modifiersData$;
|
|
2939
2843
|
|
|
2940
2844
|
var state = _ref.state,
|
|
2941
|
-
name = _ref.name
|
|
2942
|
-
options = _ref.options;
|
|
2845
|
+
name = _ref.name;
|
|
2943
2846
|
var arrowElement = state.elements.arrow;
|
|
2944
2847
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2945
2848
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2951,7 +2854,7 @@ function arrow(_ref) {
|
|
|
2951
2854
|
return;
|
|
2952
2855
|
}
|
|
2953
2856
|
|
|
2954
|
-
var paddingObject =
|
|
2857
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2955
2858
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2956
2859
|
var minProp = axis === 'y' ? top : left;
|
|
2957
2860
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2971,11 +2874,14 @@ function arrow(_ref) {
|
|
|
2971
2874
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2972
2875
|
}
|
|
2973
2876
|
|
|
2974
|
-
function effect
|
|
2877
|
+
function effect(_ref2) {
|
|
2975
2878
|
var state = _ref2.state,
|
|
2976
|
-
options = _ref2.options
|
|
2879
|
+
options = _ref2.options,
|
|
2880
|
+
name = _ref2.name;
|
|
2977
2881
|
var _options$element = options.element,
|
|
2978
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2882
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2883
|
+
_options$padding = options.padding,
|
|
2884
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2979
2885
|
|
|
2980
2886
|
if (arrowElement == null) {
|
|
2981
2887
|
return;
|
|
@@ -2996,7 +2902,7 @@ function effect$1(_ref2) {
|
|
|
2996
2902
|
}
|
|
2997
2903
|
}
|
|
2998
2904
|
|
|
2999
|
-
if (!contains
|
|
2905
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
3000
2906
|
if (process.env.NODE_ENV !== "production") {
|
|
3001
2907
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
3002
2908
|
}
|
|
@@ -3005,6 +2911,9 @@ function effect$1(_ref2) {
|
|
|
3005
2911
|
}
|
|
3006
2912
|
|
|
3007
2913
|
state.elements.arrow = arrowElement;
|
|
2914
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2915
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2916
|
+
};
|
|
3008
2917
|
} // eslint-disable-next-line import/no-unused-modules
|
|
3009
2918
|
|
|
3010
2919
|
|
|
@@ -3013,7 +2922,7 @@ var arrow$1 = {
|
|
|
3013
2922
|
enabled: true,
|
|
3014
2923
|
phase: 'main',
|
|
3015
2924
|
fn: arrow,
|
|
3016
|
-
effect: effect
|
|
2925
|
+
effect: effect,
|
|
3017
2926
|
requires: ['popperOffsets'],
|
|
3018
2927
|
requiresIfExists: ['preventOverflow']
|
|
3019
2928
|
};
|
|
@@ -3033,8 +2942,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
3033
2942
|
var win = window;
|
|
3034
2943
|
var dpr = win.devicePixelRatio || 1;
|
|
3035
2944
|
return {
|
|
3036
|
-
x: round(
|
|
3037
|
-
y: round(
|
|
2945
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2946
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
3038
2947
|
};
|
|
3039
2948
|
}
|
|
3040
2949
|
|
|
@@ -3050,7 +2959,7 @@ function mapToStyles(_ref2) {
|
|
|
3050
2959
|
adaptive = _ref2.adaptive,
|
|
3051
2960
|
roundOffsets = _ref2.roundOffsets;
|
|
3052
2961
|
|
|
3053
|
-
var _ref3 = roundOffsets
|
|
2962
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
3054
2963
|
_ref3$x = _ref3.x,
|
|
3055
2964
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
3056
2965
|
_ref3$y = _ref3.y,
|
|
@@ -3064,32 +2973,23 @@ function mapToStyles(_ref2) {
|
|
|
3064
2973
|
|
|
3065
2974
|
if (adaptive) {
|
|
3066
2975
|
var offsetParent = getOffsetParent(popper);
|
|
3067
|
-
var heightProp = 'clientHeight';
|
|
3068
|
-
var widthProp = 'clientWidth';
|
|
3069
2976
|
|
|
3070
2977
|
if (offsetParent === getWindow(popper)) {
|
|
3071
2978
|
offsetParent = getDocumentElement(popper);
|
|
3072
|
-
|
|
3073
|
-
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3074
|
-
heightProp = 'scrollHeight';
|
|
3075
|
-
widthProp = 'scrollWidth';
|
|
3076
|
-
}
|
|
3077
2979
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3078
2980
|
|
|
2981
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3079
2982
|
|
|
3080
|
-
offsetParent = offsetParent;
|
|
3081
2983
|
|
|
3082
2984
|
if (placement === top) {
|
|
3083
|
-
sideY = bottom;
|
|
3084
|
-
|
|
3085
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2985
|
+
sideY = bottom;
|
|
2986
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3086
2987
|
y *= gpuAcceleration ? 1 : -1;
|
|
3087
2988
|
}
|
|
3088
2989
|
|
|
3089
2990
|
if (placement === left) {
|
|
3090
|
-
sideX = right;
|
|
3091
|
-
|
|
3092
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2991
|
+
sideX = right;
|
|
2992
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3093
2993
|
x *= gpuAcceleration ? 1 : -1;
|
|
3094
2994
|
}
|
|
3095
2995
|
}
|
|
@@ -3101,10 +3001,10 @@ function mapToStyles(_ref2) {
|
|
|
3101
3001
|
if (gpuAcceleration) {
|
|
3102
3002
|
var _Object$assign;
|
|
3103
3003
|
|
|
3104
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3004
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3105
3005
|
}
|
|
3106
3006
|
|
|
3107
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3007
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3108
3008
|
}
|
|
3109
3009
|
|
|
3110
3010
|
function computeStyles(_ref4) {
|
|
@@ -3118,7 +3018,7 @@ function computeStyles(_ref4) {
|
|
|
3118
3018
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3119
3019
|
|
|
3120
3020
|
if (process.env.NODE_ENV !== "production") {
|
|
3121
|
-
var transitionProperty = getComputedStyle$
|
|
3021
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3122
3022
|
|
|
3123
3023
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3124
3024
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3135,7 +3035,7 @@ function computeStyles(_ref4) {
|
|
|
3135
3035
|
};
|
|
3136
3036
|
|
|
3137
3037
|
if (state.modifiersData.popperOffsets != null) {
|
|
3138
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3038
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3139
3039
|
offsets: state.modifiersData.popperOffsets,
|
|
3140
3040
|
position: state.options.strategy,
|
|
3141
3041
|
adaptive: adaptive,
|
|
@@ -3144,7 +3044,7 @@ function computeStyles(_ref4) {
|
|
|
3144
3044
|
}
|
|
3145
3045
|
|
|
3146
3046
|
if (state.modifiersData.arrow != null) {
|
|
3147
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3047
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3148
3048
|
offsets: state.modifiersData.arrow,
|
|
3149
3049
|
position: 'absolute',
|
|
3150
3050
|
adaptive: false,
|
|
@@ -3152,7 +3052,7 @@ function computeStyles(_ref4) {
|
|
|
3152
3052
|
})));
|
|
3153
3053
|
}
|
|
3154
3054
|
|
|
3155
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3055
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3156
3056
|
'data-popper-placement': state.placement
|
|
3157
3057
|
});
|
|
3158
3058
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3170,7 +3070,7 @@ var passive = {
|
|
|
3170
3070
|
passive: true
|
|
3171
3071
|
};
|
|
3172
3072
|
|
|
3173
|
-
function effect(_ref) {
|
|
3073
|
+
function effect$1(_ref) {
|
|
3174
3074
|
var state = _ref.state,
|
|
3175
3075
|
instance = _ref.instance,
|
|
3176
3076
|
options = _ref.options;
|
|
@@ -3210,11 +3110,11 @@ var eventListeners = {
|
|
|
3210
3110
|
enabled: true,
|
|
3211
3111
|
phase: 'write',
|
|
3212
3112
|
fn: function fn() {},
|
|
3213
|
-
effect: effect,
|
|
3113
|
+
effect: effect$1,
|
|
3214
3114
|
data: {}
|
|
3215
3115
|
};
|
|
3216
3116
|
|
|
3217
|
-
var hash
|
|
3117
|
+
var hash = {
|
|
3218
3118
|
left: 'right',
|
|
3219
3119
|
right: 'left',
|
|
3220
3120
|
bottom: 'top',
|
|
@@ -3222,20 +3122,34 @@ var hash$1 = {
|
|
|
3222
3122
|
};
|
|
3223
3123
|
function getOppositePlacement(placement) {
|
|
3224
3124
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3225
|
-
return hash
|
|
3125
|
+
return hash[matched];
|
|
3226
3126
|
});
|
|
3227
3127
|
}
|
|
3228
3128
|
|
|
3229
|
-
var hash = {
|
|
3129
|
+
var hash$1 = {
|
|
3230
3130
|
start: 'end',
|
|
3231
3131
|
end: 'start'
|
|
3232
3132
|
};
|
|
3233
3133
|
function getOppositeVariationPlacement(placement) {
|
|
3234
3134
|
return placement.replace(/start|end/g, function (matched) {
|
|
3235
|
-
return hash[matched];
|
|
3135
|
+
return hash$1[matched];
|
|
3236
3136
|
});
|
|
3237
3137
|
}
|
|
3238
3138
|
|
|
3139
|
+
function getBoundingClientRect(element) {
|
|
3140
|
+
var rect = element.getBoundingClientRect();
|
|
3141
|
+
return {
|
|
3142
|
+
width: rect.width,
|
|
3143
|
+
height: rect.height,
|
|
3144
|
+
top: rect.top,
|
|
3145
|
+
right: rect.right,
|
|
3146
|
+
bottom: rect.bottom,
|
|
3147
|
+
left: rect.left,
|
|
3148
|
+
x: rect.left,
|
|
3149
|
+
y: rect.top
|
|
3150
|
+
};
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3239
3153
|
function getWindowScroll(node) {
|
|
3240
3154
|
var win = getWindow(node);
|
|
3241
3155
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3298,18 +3212,16 @@ function getViewportRect(element) {
|
|
|
3298
3212
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3299
3213
|
|
|
3300
3214
|
function getDocumentRect(element) {
|
|
3301
|
-
var _element$ownerDocumen;
|
|
3302
|
-
|
|
3303
3215
|
var html = getDocumentElement(element);
|
|
3304
3216
|
var winScroll = getWindowScroll(element);
|
|
3305
|
-
var body =
|
|
3306
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3307
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3217
|
+
var body = element.ownerDocument.body;
|
|
3218
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3219
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3308
3220
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3309
3221
|
var y = -winScroll.scrollTop;
|
|
3310
3222
|
|
|
3311
|
-
if (getComputedStyle$
|
|
3312
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3223
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3224
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3313
3225
|
}
|
|
3314
3226
|
|
|
3315
3227
|
return {
|
|
@@ -3322,7 +3234,7 @@ function getDocumentRect(element) {
|
|
|
3322
3234
|
|
|
3323
3235
|
function isScrollParent(element) {
|
|
3324
3236
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3325
|
-
var _getComputedStyle = getComputedStyle$
|
|
3237
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3326
3238
|
overflow = _getComputedStyle.overflow,
|
|
3327
3239
|
overflowX = _getComputedStyle.overflowX,
|
|
3328
3240
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3351,14 +3263,12 @@ reference element's position.
|
|
|
3351
3263
|
*/
|
|
3352
3264
|
|
|
3353
3265
|
function listScrollParents(element, list) {
|
|
3354
|
-
var _element$ownerDocumen;
|
|
3355
|
-
|
|
3356
3266
|
if (list === void 0) {
|
|
3357
3267
|
list = [];
|
|
3358
3268
|
}
|
|
3359
3269
|
|
|
3360
3270
|
var scrollParent = getScrollParent(element);
|
|
3361
|
-
var isBody = scrollParent ===
|
|
3271
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3362
3272
|
var win = getWindow(scrollParent);
|
|
3363
3273
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3364
3274
|
var updatedList = list.concat(target);
|
|
@@ -3367,7 +3277,7 @@ function listScrollParents(element, list) {
|
|
|
3367
3277
|
}
|
|
3368
3278
|
|
|
3369
3279
|
function rectToClientRect(rect) {
|
|
3370
|
-
return Object.assign({}, rect, {
|
|
3280
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3371
3281
|
left: rect.x,
|
|
3372
3282
|
top: rect.y,
|
|
3373
3283
|
right: rect.x + rect.width,
|
|
@@ -3397,7 +3307,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3397
3307
|
|
|
3398
3308
|
function getClippingParents(element) {
|
|
3399
3309
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3400
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3310
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3401
3311
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3402
3312
|
|
|
3403
3313
|
if (!isElement(clipperElement)) {
|
|
@@ -3406,7 +3316,7 @@ function getClippingParents(element) {
|
|
|
3406
3316
|
|
|
3407
3317
|
|
|
3408
3318
|
return clippingParents.filter(function (clippingParent) {
|
|
3409
|
-
return isElement(clippingParent) && contains
|
|
3319
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3410
3320
|
});
|
|
3411
3321
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3412
3322
|
// clipping parents
|
|
@@ -3418,10 +3328,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3418
3328
|
var firstClippingParent = clippingParents[0];
|
|
3419
3329
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3420
3330
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3421
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3422
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3423
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3424
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3331
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3332
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3333
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3334
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3425
3335
|
return accRect;
|
|
3426
3336
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3427
3337
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3531,7 +3441,7 @@ function detectOverflow(state, options) {
|
|
|
3531
3441
|
strategy: 'absolute',
|
|
3532
3442
|
placement: placement
|
|
3533
3443
|
});
|
|
3534
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3444
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3535
3445
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3536
3446
|
// 0 or negative = within the clipping rect
|
|
3537
3447
|
|
|
@@ -3555,6 +3465,9 @@ function detectOverflow(state, options) {
|
|
|
3555
3465
|
return overflowOffsets;
|
|
3556
3466
|
}
|
|
3557
3467
|
|
|
3468
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3469
|
+
|
|
3470
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3558
3471
|
function computeAutoPlacement(state, options) {
|
|
3559
3472
|
if (options === void 0) {
|
|
3560
3473
|
options = {};
|
|
@@ -3783,7 +3696,7 @@ function hide(_ref) {
|
|
|
3783
3696
|
isReferenceHidden: isReferenceHidden,
|
|
3784
3697
|
hasPopperEscaped: hasPopperEscaped
|
|
3785
3698
|
};
|
|
3786
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3699
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3787
3700
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3788
3701
|
'data-popper-escaped': hasPopperEscaped
|
|
3789
3702
|
});
|
|
@@ -3802,7 +3715,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3802
3715
|
var basePlacement = getBasePlacement(placement);
|
|
3803
3716
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3804
3717
|
|
|
3805
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3718
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3806
3719
|
placement: placement
|
|
3807
3720
|
})) : offset,
|
|
3808
3721
|
skidding = _ref[0],
|
|
@@ -3908,7 +3821,7 @@ function preventOverflow(_ref) {
|
|
|
3908
3821
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3909
3822
|
var referenceRect = state.rects.reference;
|
|
3910
3823
|
var popperRect = state.rects.popper;
|
|
3911
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3824
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3912
3825
|
placement: state.placement
|
|
3913
3826
|
})) : tetherOffset;
|
|
3914
3827
|
var data = {
|
|
@@ -3920,13 +3833,13 @@ function preventOverflow(_ref) {
|
|
|
3920
3833
|
return;
|
|
3921
3834
|
}
|
|
3922
3835
|
|
|
3923
|
-
if (checkMainAxis
|
|
3836
|
+
if (checkMainAxis) {
|
|
3924
3837
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3925
3838
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3926
3839
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3927
3840
|
var offset = popperOffsets[mainAxis];
|
|
3928
|
-
var min
|
|
3929
|
-
var max
|
|
3841
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3842
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3930
3843
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3931
3844
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3932
3845
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3953,29 +3866,26 @@ function preventOverflow(_ref) {
|
|
|
3953
3866
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3954
3867
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3955
3868
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3869
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3870
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3871
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3872
|
+
}
|
|
3956
3873
|
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3960
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3961
|
-
}
|
|
3962
|
-
|
|
3963
|
-
if (checkAltAxis) {
|
|
3964
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3874
|
+
if (checkAltAxis) {
|
|
3875
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3965
3876
|
|
|
3966
|
-
|
|
3877
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3967
3878
|
|
|
3968
|
-
|
|
3879
|
+
var _offset = popperOffsets[altAxis];
|
|
3969
3880
|
|
|
3970
|
-
|
|
3881
|
+
var _min = _offset + overflow[_mainSide];
|
|
3971
3882
|
|
|
3972
|
-
|
|
3883
|
+
var _max = _offset - overflow[_altSide];
|
|
3973
3884
|
|
|
3974
|
-
|
|
3885
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3975
3886
|
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
}
|
|
3887
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3888
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3979
3889
|
}
|
|
3980
3890
|
|
|
3981
3891
|
state.modifiersData[name] = data;
|
|
@@ -4206,9 +4116,9 @@ function uniqueBy(arr, fn) {
|
|
|
4206
4116
|
function mergeByName(modifiers) {
|
|
4207
4117
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4208
4118
|
var existing = merged[current.name];
|
|
4209
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4210
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4211
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4119
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4120
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4121
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4212
4122
|
}) : current;
|
|
4213
4123
|
return merged;
|
|
4214
4124
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4254,7 +4164,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4254
4164
|
var state = {
|
|
4255
4165
|
placement: 'bottom',
|
|
4256
4166
|
orderedModifiers: [],
|
|
4257
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4167
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4258
4168
|
modifiersData: {},
|
|
4259
4169
|
elements: {
|
|
4260
4170
|
reference: reference,
|
|
@@ -4269,7 +4179,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4269
4179
|
state: state,
|
|
4270
4180
|
setOptions: function setOptions(options) {
|
|
4271
4181
|
cleanupModifierEffects();
|
|
4272
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4182
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4273
4183
|
state.scrollParents = {
|
|
4274
4184
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4275
4185
|
popper: listScrollParents(popper)
|
|
@@ -4301,7 +4211,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4301
4211
|
}
|
|
4302
4212
|
}
|
|
4303
4213
|
|
|
4304
|
-
var _getComputedStyle = getComputedStyle$
|
|
4214
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4305
4215
|
marginTop = _getComputedStyle.marginTop,
|
|
4306
4216
|
marginRight = _getComputedStyle.marginRight,
|
|
4307
4217
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4641,7 +4551,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4641
4551
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4642
4552
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4643
4553
|
// so we need to check on context instead of a document root element.
|
|
4644
|
-
function contains(context, node) {
|
|
4554
|
+
function contains$1(context, node) {
|
|
4645
4555
|
if (context.contains) return context.contains(node);
|
|
4646
4556
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4647
4557
|
}
|
|
@@ -4715,13 +4625,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4715
4625
|
return componentOrElement != null ? componentOrElement : null;
|
|
4716
4626
|
}
|
|
4717
4627
|
|
|
4718
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4719
|
-
return ownerDocument
|
|
4628
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4629
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4720
4630
|
});
|
|
4721
4631
|
|
|
4722
4632
|
var escapeKeyCode = 27;
|
|
4723
4633
|
|
|
4724
|
-
var noop$
|
|
4634
|
+
var noop$1 = function noop() {};
|
|
4725
4635
|
|
|
4726
4636
|
function isLeftClickEvent(event) {
|
|
4727
4637
|
return event.button === 0;
|
|
@@ -4754,11 +4664,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4754
4664
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4755
4665
|
|
|
4756
4666
|
var preventMouseRootCloseRef = useRef(false);
|
|
4757
|
-
var onClose = onRootClose || noop$
|
|
4667
|
+
var onClose = onRootClose || noop$1;
|
|
4758
4668
|
var handleMouseCapture = useCallback(function (e) {
|
|
4759
4669
|
var currentTarget = getRefTarget(ref);
|
|
4760
4670
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4761
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4671
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4762
4672
|
}, [ref]);
|
|
4763
4673
|
var handleMouse = useEventCallback(function (e) {
|
|
4764
4674
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4775,7 +4685,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4775
4685
|
// https://github.com/facebook/react/issues/20074
|
|
4776
4686
|
|
|
4777
4687
|
var currentEvent = window.event;
|
|
4778
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4688
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4779
4689
|
// avoid false positives in the contains() check below if the target DOM
|
|
4780
4690
|
// element is removed in the React mouse callback.
|
|
4781
4691
|
|
|
@@ -4802,7 +4712,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4802
4712
|
|
|
4803
4713
|
if ('ontouchstart' in doc.documentElement) {
|
|
4804
4714
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4805
|
-
return listen(el, 'mousemove', noop$
|
|
4715
|
+
return listen(el, 'mousemove', noop$1);
|
|
4806
4716
|
});
|
|
4807
4717
|
}
|
|
4808
4718
|
|
|
@@ -4884,7 +4794,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4884
4794
|
});
|
|
4885
4795
|
}
|
|
4886
4796
|
|
|
4887
|
-
var noop$
|
|
4797
|
+
var noop$2 = function noop() {};
|
|
4888
4798
|
/**
|
|
4889
4799
|
* @memberOf Dropdown
|
|
4890
4800
|
* @param {object} options
|
|
@@ -4952,7 +4862,7 @@ function useDropdownMenu(options) {
|
|
|
4952
4862
|
|
|
4953
4863
|
var menu;
|
|
4954
4864
|
var menuProps = {
|
|
4955
|
-
ref: setMenu || noop$
|
|
4865
|
+
ref: setMenu || noop$2,
|
|
4956
4866
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4957
4867
|
};
|
|
4958
4868
|
var childArgs = {
|
|
@@ -4985,7 +4895,7 @@ function useDropdownMenu(options) {
|
|
|
4985
4895
|
});
|
|
4986
4896
|
return menu;
|
|
4987
4897
|
}
|
|
4988
|
-
var propTypes$
|
|
4898
|
+
var propTypes$2 = {
|
|
4989
4899
|
/**
|
|
4990
4900
|
* A render prop that returns a Menu element. The `props`
|
|
4991
4901
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5042,7 +4952,7 @@ var propTypes$8 = {
|
|
|
5042
4952
|
*/
|
|
5043
4953
|
rootCloseEvent: PropTypes.string
|
|
5044
4954
|
};
|
|
5045
|
-
var defaultProps$
|
|
4955
|
+
var defaultProps$d = {
|
|
5046
4956
|
usePopper: true
|
|
5047
4957
|
};
|
|
5048
4958
|
|
|
@@ -5052,7 +4962,7 @@ var defaultProps$r = {
|
|
|
5052
4962
|
* @displayName DropdownMenu
|
|
5053
4963
|
* @memberOf Dropdown
|
|
5054
4964
|
*/
|
|
5055
|
-
function DropdownMenu
|
|
4965
|
+
function DropdownMenu(_ref2) {
|
|
5056
4966
|
var children = _ref2.children,
|
|
5057
4967
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5058
4968
|
|
|
@@ -5060,11 +4970,11 @@ function DropdownMenu$1(_ref2) {
|
|
|
5060
4970
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
5061
4971
|
}
|
|
5062
4972
|
|
|
5063
|
-
DropdownMenu
|
|
5064
|
-
DropdownMenu
|
|
5065
|
-
DropdownMenu
|
|
4973
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4974
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4975
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5066
4976
|
|
|
5067
|
-
var noop$
|
|
4977
|
+
var noop$3 = function noop() {};
|
|
5068
4978
|
/**
|
|
5069
4979
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5070
4980
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5078,11 +4988,11 @@ function useDropdownToggle() {
|
|
|
5078
4988
|
_ref$show = _ref.show,
|
|
5079
4989
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5080
4990
|
_ref$toggle = _ref.toggle,
|
|
5081
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4991
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5082
4992
|
setToggle = _ref.setToggle;
|
|
5083
4993
|
|
|
5084
4994
|
return [{
|
|
5085
|
-
ref: setToggle || noop$
|
|
4995
|
+
ref: setToggle || noop$3,
|
|
5086
4996
|
'aria-haspopup': true,
|
|
5087
4997
|
'aria-expanded': !!show
|
|
5088
4998
|
}, {
|
|
@@ -5090,7 +5000,7 @@ function useDropdownToggle() {
|
|
|
5090
5000
|
toggle: toggle
|
|
5091
5001
|
}];
|
|
5092
5002
|
}
|
|
5093
|
-
var propTypes$
|
|
5003
|
+
var propTypes$3 = {
|
|
5094
5004
|
/**
|
|
5095
5005
|
* A render prop that returns a Toggle element. The `props`
|
|
5096
5006
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5115,7 +5025,7 @@ var propTypes$7 = {
|
|
|
5115
5025
|
* @displayName DropdownToggle
|
|
5116
5026
|
* @memberOf Dropdown
|
|
5117
5027
|
*/
|
|
5118
|
-
function DropdownToggle
|
|
5028
|
+
function DropdownToggle(_ref2) {
|
|
5119
5029
|
var children = _ref2.children;
|
|
5120
5030
|
|
|
5121
5031
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5131,10 +5041,10 @@ function DropdownToggle$1(_ref2) {
|
|
|
5131
5041
|
}));
|
|
5132
5042
|
}
|
|
5133
5043
|
|
|
5134
|
-
DropdownToggle
|
|
5135
|
-
DropdownToggle
|
|
5044
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5045
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5136
5046
|
|
|
5137
|
-
var propTypes$
|
|
5047
|
+
var propTypes$4 = {
|
|
5138
5048
|
/**
|
|
5139
5049
|
* A render prop that returns the root dropdown element. The `props`
|
|
5140
5050
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5206,7 +5116,7 @@ var propTypes$6 = {
|
|
|
5206
5116
|
/**
|
|
5207
5117
|
* @displayName Dropdown
|
|
5208
5118
|
*/
|
|
5209
|
-
function Dropdown
|
|
5119
|
+
function Dropdown(_ref) {
|
|
5210
5120
|
var drop = _ref.drop,
|
|
5211
5121
|
alignEnd = _ref.alignEnd,
|
|
5212
5122
|
defaultShow = _ref.defaultShow,
|
|
@@ -5348,15 +5258,15 @@ function Dropdown$1(_ref) {
|
|
|
5348
5258
|
}));
|
|
5349
5259
|
}
|
|
5350
5260
|
|
|
5351
|
-
Dropdown
|
|
5352
|
-
Dropdown
|
|
5353
|
-
Dropdown
|
|
5354
|
-
Dropdown
|
|
5261
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5262
|
+
Dropdown.propTypes = propTypes$4;
|
|
5263
|
+
Dropdown.Menu = DropdownMenu;
|
|
5264
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5355
5265
|
|
|
5356
5266
|
var NavContext = React__default.createContext(null);
|
|
5357
5267
|
NavContext.displayName = 'NavContext';
|
|
5358
5268
|
|
|
5359
|
-
var defaultProps$
|
|
5269
|
+
var defaultProps$e = {
|
|
5360
5270
|
as: SafeAnchor,
|
|
5361
5271
|
disabled: false
|
|
5362
5272
|
};
|
|
@@ -5371,7 +5281,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5371
5281
|
onSelect = _ref.onSelect,
|
|
5372
5282
|
propActive = _ref.active,
|
|
5373
5283
|
Component = _ref.as,
|
|
5374
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5284
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5375
5285
|
|
|
5376
5286
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5377
5287
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5395,7 +5305,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5395
5305
|
/*#__PURE__*/
|
|
5396
5306
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5397
5307
|
// @ts-ignore
|
|
5398
|
-
React__default.createElement(Component, _extends({}, props, {
|
|
5308
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5399
5309
|
ref: ref,
|
|
5400
5310
|
href: href,
|
|
5401
5311
|
disabled: disabled,
|
|
@@ -5405,7 +5315,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5405
5315
|
);
|
|
5406
5316
|
});
|
|
5407
5317
|
DropdownItem.displayName = 'DropdownItem';
|
|
5408
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5318
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5409
5319
|
|
|
5410
5320
|
var toFnRef = function toFnRef(ref) {
|
|
5411
5321
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5444,8 +5354,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5444
5354
|
}, [refA, refB]);
|
|
5445
5355
|
}
|
|
5446
5356
|
|
|
5447
|
-
var context = React__default.createContext(null);
|
|
5448
|
-
context.displayName = 'NavbarContext';
|
|
5357
|
+
var context$2 = React__default.createContext(null);
|
|
5358
|
+
context$2.displayName = 'NavbarContext';
|
|
5449
5359
|
|
|
5450
5360
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5451
5361
|
// @ts-ignore
|
|
@@ -5566,13 +5476,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5566
5476
|
}), PropTypes.shape({
|
|
5567
5477
|
xl: alignDirection
|
|
5568
5478
|
})]);
|
|
5569
|
-
var defaultProps$
|
|
5479
|
+
var defaultProps$f = {
|
|
5570
5480
|
align: 'left',
|
|
5571
5481
|
alignRight: false,
|
|
5572
5482
|
flip: true
|
|
5573
5483
|
}; // TODO: remove this hack
|
|
5574
5484
|
|
|
5575
|
-
var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
5485
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5576
5486
|
var bsPrefix = _ref.bsPrefix,
|
|
5577
5487
|
className = _ref.className,
|
|
5578
5488
|
align = _ref.align,
|
|
@@ -5584,9 +5494,9 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5584
5494
|
_ref$as = _ref.as,
|
|
5585
5495
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5586
5496
|
popperConfig = _ref.popperConfig,
|
|
5587
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5497
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5588
5498
|
|
|
5589
|
-
var isNavbar = useContext(context);
|
|
5499
|
+
var isNavbar = useContext(context$2);
|
|
5590
5500
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5591
5501
|
|
|
5592
5502
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5620,7 +5530,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5620
5530
|
show: showProps,
|
|
5621
5531
|
alignEnd: alignRight,
|
|
5622
5532
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5623
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5533
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5624
5534
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5625
5535
|
})
|
|
5626
5536
|
}),
|
|
@@ -5643,16 +5553,16 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5643
5553
|
if (placement) {
|
|
5644
5554
|
// we don't need the default popper style,
|
|
5645
5555
|
// menus are display: none when not shown.
|
|
5646
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5556
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5647
5557
|
props['x-placement'] = placement;
|
|
5648
5558
|
}
|
|
5649
5559
|
|
|
5650
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5560
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5651
5561
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5652
5562
|
}));
|
|
5653
5563
|
});
|
|
5654
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5655
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5564
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5565
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5656
5566
|
|
|
5657
5567
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5658
5568
|
|
|
@@ -5681,14 +5591,14 @@ module.exports = exports['default'];
|
|
|
5681
5591
|
|
|
5682
5592
|
unwrapExports(isRequiredForA11y_1);
|
|
5683
5593
|
|
|
5684
|
-
var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
5594
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5685
5595
|
var bsPrefix = _ref.bsPrefix,
|
|
5686
5596
|
split = _ref.split,
|
|
5687
5597
|
className = _ref.className,
|
|
5688
5598
|
childBsPrefix = _ref.childBsPrefix,
|
|
5689
5599
|
_ref$as = _ref.as,
|
|
5690
5600
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5691
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5601
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5692
5602
|
|
|
5693
5603
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5694
5604
|
|
|
@@ -5703,12 +5613,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5703
5613
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5704
5614
|
// underlying component, to allow it to render size and style variants.
|
|
5705
5615
|
|
|
5706
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5616
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5707
5617
|
onClick: toggle,
|
|
5708
5618
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5709
5619
|
}, toggleProps, props));
|
|
5710
5620
|
});
|
|
5711
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5621
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5712
5622
|
|
|
5713
5623
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5714
5624
|
defaultProps: {
|
|
@@ -5723,10 +5633,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5723
5633
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5724
5634
|
Component: 'span'
|
|
5725
5635
|
});
|
|
5726
|
-
var defaultProps$
|
|
5636
|
+
var defaultProps$g = {
|
|
5727
5637
|
navbar: false
|
|
5728
5638
|
};
|
|
5729
|
-
var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
5639
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5730
5640
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5731
5641
|
show: 'onToggle'
|
|
5732
5642
|
}),
|
|
@@ -5739,9 +5649,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5739
5649
|
onToggle = _useUncontrolled.onToggle,
|
|
5740
5650
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5741
5651
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5742
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5743
|
-
_useUncontrolled.navbar
|
|
5744
|
-
|
|
5652
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5653
|
+
_4 = _useUncontrolled.navbar,
|
|
5654
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5745
5655
|
|
|
5746
5656
|
var onSelectCtx = useContext(SelectableContext);
|
|
5747
5657
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5765,7 +5675,7 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5765
5675
|
});
|
|
5766
5676
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5767
5677
|
value: handleSelect
|
|
5768
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown
|
|
5678
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5769
5679
|
drop: drop,
|
|
5770
5680
|
show: show,
|
|
5771
5681
|
alignEnd: alignRight,
|
|
@@ -5774,20 +5684,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5774
5684
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5775
5685
|
}, function (_ref) {
|
|
5776
5686
|
var dropdownProps = _ref.props;
|
|
5777
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5687
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5778
5688
|
ref: ref,
|
|
5779
5689
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5780
5690
|
}));
|
|
5781
5691
|
}));
|
|
5782
5692
|
});
|
|
5783
|
-
Dropdown.displayName = 'Dropdown';
|
|
5784
|
-
Dropdown.defaultProps = defaultProps$
|
|
5785
|
-
Dropdown.Divider = DropdownDivider;
|
|
5786
|
-
Dropdown.Header = DropdownHeader;
|
|
5787
|
-
Dropdown.Item = DropdownItem;
|
|
5788
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5789
|
-
Dropdown.Menu = DropdownMenu;
|
|
5790
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5693
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5694
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5695
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5696
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5697
|
+
Dropdown$1.Item = DropdownItem;
|
|
5698
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5699
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5700
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5791
5701
|
|
|
5792
5702
|
var propTypes$5 = {
|
|
5793
5703
|
/**
|
|
@@ -5862,18 +5772,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5862
5772
|
disabled = _ref.disabled,
|
|
5863
5773
|
href = _ref.href,
|
|
5864
5774
|
id = _ref.id,
|
|
5865
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5775
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5866
5776
|
|
|
5867
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5777
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
5868
5778
|
ref: ref
|
|
5869
|
-
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5779
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5870
5780
|
id: id,
|
|
5871
5781
|
href: href,
|
|
5872
5782
|
size: size,
|
|
5873
5783
|
variant: variant,
|
|
5874
5784
|
disabled: disabled,
|
|
5875
5785
|
childBsPrefix: bsPrefix
|
|
5876
|
-
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
5786
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5877
5787
|
align: menuAlign,
|
|
5878
5788
|
role: menuRole,
|
|
5879
5789
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5976,7 +5886,7 @@ module.exports = exports['default'];
|
|
|
5976
5886
|
|
|
5977
5887
|
unwrapExports(all_1);
|
|
5978
5888
|
|
|
5979
|
-
var propTypes$
|
|
5889
|
+
var propTypes$6 = {
|
|
5980
5890
|
/**
|
|
5981
5891
|
* Specify whether the feedback is for valid or invalid fields
|
|
5982
5892
|
*
|
|
@@ -5997,15 +5907,15 @@ function (_ref, ref) {
|
|
|
5997
5907
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5998
5908
|
_ref$tooltip = _ref.tooltip,
|
|
5999
5909
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
6000
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5910
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
6001
5911
|
|
|
6002
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5912
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6003
5913
|
ref: ref,
|
|
6004
5914
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
6005
5915
|
}));
|
|
6006
5916
|
});
|
|
6007
5917
|
Feedback.displayName = 'Feedback';
|
|
6008
|
-
Feedback.propTypes = propTypes$
|
|
5918
|
+
Feedback.propTypes = propTypes$6;
|
|
6009
5919
|
|
|
6010
5920
|
var FormContext = React__default.createContext({
|
|
6011
5921
|
controlId: undefined
|
|
@@ -6025,7 +5935,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6025
5935
|
isStatic = _ref.isStatic,
|
|
6026
5936
|
_ref$as = _ref.as,
|
|
6027
5937
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6028
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5938
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
6029
5939
|
|
|
6030
5940
|
var _useContext = useContext(FormContext),
|
|
6031
5941
|
controlId = _useContext.controlId,
|
|
@@ -6036,7 +5946,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6036
5946
|
defaultPrefix = _ref2[1];
|
|
6037
5947
|
|
|
6038
5948
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6039
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5949
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6040
5950
|
ref: ref,
|
|
6041
5951
|
type: type,
|
|
6042
5952
|
id: id || controlId,
|
|
@@ -6050,7 +5960,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6050
5960
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6051
5961
|
className = _ref.className,
|
|
6052
5962
|
htmlFor = _ref.htmlFor,
|
|
6053
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5963
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6054
5964
|
|
|
6055
5965
|
var _useContext = useContext(FormContext),
|
|
6056
5966
|
controlId = _useContext.controlId,
|
|
@@ -6061,7 +5971,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6061
5971
|
defaultPrefix = _ref2[1];
|
|
6062
5972
|
|
|
6063
5973
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6064
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5974
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6065
5975
|
ref: ref,
|
|
6066
5976
|
htmlFor: htmlFor || controlId,
|
|
6067
5977
|
className: classnames(className, bsPrefix)
|
|
@@ -6095,7 +6005,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6095
6005
|
propCustom = _ref.custom,
|
|
6096
6006
|
_ref$as = _ref.as,
|
|
6097
6007
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6098
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6008
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6099
6009
|
|
|
6100
6010
|
var custom = type === 'switch' ? true : propCustom;
|
|
6101
6011
|
|
|
@@ -6115,7 +6025,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6115
6025
|
};
|
|
6116
6026
|
}, [controlId, custom, id]);
|
|
6117
6027
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6118
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
6028
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
6119
6029
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6120
6030
|
ref: ref,
|
|
6121
6031
|
isValid: isValid,
|
|
@@ -6150,7 +6060,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6150
6060
|
lang = _ref.lang,
|
|
6151
6061
|
_ref$as = _ref.as,
|
|
6152
6062
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6153
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6063
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6154
6064
|
|
|
6155
6065
|
var _useContext = useContext(FormContext),
|
|
6156
6066
|
controlId = _useContext.controlId,
|
|
@@ -6163,7 +6073,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6163
6073
|
defaultPrefix = _ref2[1];
|
|
6164
6074
|
|
|
6165
6075
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6166
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6076
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6167
6077
|
ref: ref,
|
|
6168
6078
|
id: id || controlId,
|
|
6169
6079
|
type: type,
|
|
@@ -6178,7 +6088,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6178
6088
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6179
6089
|
className = _ref.className,
|
|
6180
6090
|
htmlFor = _ref.htmlFor,
|
|
6181
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6091
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6182
6092
|
|
|
6183
6093
|
var _useContext = useContext(FormContext),
|
|
6184
6094
|
controlId = _useContext.controlId,
|
|
@@ -6189,7 +6099,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6189
6099
|
defaultPrefix = _ref2[1];
|
|
6190
6100
|
|
|
6191
6101
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6192
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6102
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6193
6103
|
ref: ref,
|
|
6194
6104
|
htmlFor: htmlFor || controlId,
|
|
6195
6105
|
className: classnames(className, bsPrefix),
|
|
@@ -6222,7 +6132,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6222
6132
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6223
6133
|
_ref$inputAs = _ref.inputAs,
|
|
6224
6134
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6225
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6135
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6226
6136
|
|
|
6227
6137
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6228
6138
|
prefix = _ref2[0],
|
|
@@ -6241,7 +6151,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6241
6151
|
};
|
|
6242
6152
|
}, [controlId, custom, id]);
|
|
6243
6153
|
var hasLabel = label != null && label !== false && !children;
|
|
6244
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6154
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6245
6155
|
ref: ref,
|
|
6246
6156
|
isValid: isValid,
|
|
6247
6157
|
isInvalid: isInvalid,
|
|
@@ -6282,7 +6192,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6282
6192
|
custom = _ref.custom,
|
|
6283
6193
|
_ref$as = _ref.as,
|
|
6284
6194
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6285
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6195
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6286
6196
|
|
|
6287
6197
|
var _useContext = useContext(FormContext),
|
|
6288
6198
|
controlId = _useContext.controlId;
|
|
@@ -6317,7 +6227,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6317
6227
|
}
|
|
6318
6228
|
|
|
6319
6229
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6320
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6230
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6321
6231
|
type: type,
|
|
6322
6232
|
size: htmlSize,
|
|
6323
6233
|
ref: ref,
|
|
@@ -6338,7 +6248,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6338
6248
|
controlId = _ref.controlId,
|
|
6339
6249
|
_ref$as = _ref.as,
|
|
6340
6250
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6341
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6251
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6342
6252
|
|
|
6343
6253
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6344
6254
|
var context = useMemo(function () {
|
|
@@ -6348,14 +6258,14 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6348
6258
|
}, [controlId]);
|
|
6349
6259
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6350
6260
|
value: context
|
|
6351
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6261
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6352
6262
|
ref: ref,
|
|
6353
6263
|
className: classnames(className, bsPrefix)
|
|
6354
6264
|
}), children));
|
|
6355
6265
|
});
|
|
6356
6266
|
FormGroup.displayName = 'FormGroup';
|
|
6357
6267
|
|
|
6358
|
-
var defaultProps$
|
|
6268
|
+
var defaultProps$h = {
|
|
6359
6269
|
column: false,
|
|
6360
6270
|
srOnly: false
|
|
6361
6271
|
};
|
|
@@ -6367,7 +6277,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6367
6277
|
srOnly = _ref.srOnly,
|
|
6368
6278
|
className = _ref.className,
|
|
6369
6279
|
htmlFor = _ref.htmlFor,
|
|
6370
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6280
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6371
6281
|
|
|
6372
6282
|
var _useContext = useContext(FormContext),
|
|
6373
6283
|
controlId = _useContext.controlId;
|
|
@@ -6378,7 +6288,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6378
6288
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6379
6289
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6380
6290
|
htmlFor = htmlFor || controlId;
|
|
6381
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6291
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6382
6292
|
as: "label",
|
|
6383
6293
|
className: classes,
|
|
6384
6294
|
htmlFor: htmlFor
|
|
@@ -6386,7 +6296,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6386
6296
|
return (
|
|
6387
6297
|
/*#__PURE__*/
|
|
6388
6298
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6389
|
-
React__default.createElement(Component, _extends({
|
|
6299
|
+
React__default.createElement(Component, _extends$1({
|
|
6390
6300
|
ref: ref,
|
|
6391
6301
|
className: classes,
|
|
6392
6302
|
htmlFor: htmlFor
|
|
@@ -6394,7 +6304,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6394
6304
|
);
|
|
6395
6305
|
});
|
|
6396
6306
|
FormLabel.displayName = 'FormLabel';
|
|
6397
|
-
FormLabel.defaultProps = defaultProps$
|
|
6307
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6398
6308
|
|
|
6399
6309
|
var FormText = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6400
6310
|
function (_ref, ref) {
|
|
@@ -6403,10 +6313,10 @@ function (_ref, ref) {
|
|
|
6403
6313
|
_ref$as = _ref.as,
|
|
6404
6314
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6405
6315
|
muted = _ref.muted,
|
|
6406
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6316
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6407
6317
|
|
|
6408
6318
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6409
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6319
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6410
6320
|
ref: ref,
|
|
6411
6321
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6412
6322
|
}));
|
|
@@ -6414,7 +6324,7 @@ function (_ref, ref) {
|
|
|
6414
6324
|
FormText.displayName = 'FormText';
|
|
6415
6325
|
|
|
6416
6326
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6417
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6327
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6418
6328
|
ref: ref,
|
|
6419
6329
|
type: "switch"
|
|
6420
6330
|
}));
|
|
@@ -6424,7 +6334,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6424
6334
|
Switch.Label = FormCheck.Label;
|
|
6425
6335
|
|
|
6426
6336
|
var FormRow = createWithBsPrefix('form-row');
|
|
6427
|
-
var defaultProps$
|
|
6337
|
+
var defaultProps$i = {
|
|
6428
6338
|
inline: false
|
|
6429
6339
|
};
|
|
6430
6340
|
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6434,16 +6344,16 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6434
6344
|
validated = _ref.validated,
|
|
6435
6345
|
_ref$as = _ref.as,
|
|
6436
6346
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6437
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6347
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6438
6348
|
|
|
6439
6349
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6440
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6350
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6441
6351
|
ref: ref,
|
|
6442
6352
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6443
6353
|
}));
|
|
6444
6354
|
});
|
|
6445
6355
|
FormImpl.displayName = 'Form';
|
|
6446
|
-
FormImpl.defaultProps = defaultProps$
|
|
6356
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6447
6357
|
FormImpl.Row = FormRow;
|
|
6448
6358
|
FormImpl.Group = FormGroup;
|
|
6449
6359
|
FormImpl.Control = FormControl$1;
|
|
@@ -6453,7 +6363,7 @@ FormImpl.Switch = Switch;
|
|
|
6453
6363
|
FormImpl.Label = FormLabel;
|
|
6454
6364
|
FormImpl.Text = FormText;
|
|
6455
6365
|
|
|
6456
|
-
var defaultProps$
|
|
6366
|
+
var defaultProps$j = {
|
|
6457
6367
|
fluid: false
|
|
6458
6368
|
};
|
|
6459
6369
|
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6462,20 +6372,20 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6462
6372
|
_ref$as = _ref.as,
|
|
6463
6373
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6464
6374
|
className = _ref.className,
|
|
6465
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6375
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6466
6376
|
|
|
6467
6377
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6468
6378
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6469
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6379
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6470
6380
|
ref: ref
|
|
6471
6381
|
}, props, {
|
|
6472
6382
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6473
6383
|
}));
|
|
6474
6384
|
});
|
|
6475
6385
|
Container.displayName = 'Container';
|
|
6476
|
-
Container.defaultProps = defaultProps$
|
|
6386
|
+
Container.defaultProps = defaultProps$j;
|
|
6477
6387
|
|
|
6478
|
-
var propTypes$
|
|
6388
|
+
var propTypes$7 = {
|
|
6479
6389
|
/**
|
|
6480
6390
|
* @default 'img'
|
|
6481
6391
|
*/
|
|
@@ -6514,11 +6424,11 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6514
6424
|
rounded = _ref.rounded,
|
|
6515
6425
|
roundedCircle = _ref.roundedCircle,
|
|
6516
6426
|
thumbnail = _ref.thumbnail,
|
|
6517
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6427
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6518
6428
|
|
|
6519
6429
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6520
6430
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6521
|
-
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6431
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6522
6432
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6523
6433
|
ref: ref
|
|
6524
6434
|
}, props, {
|
|
@@ -6528,22 +6438,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6528
6438
|
Image.displayName = 'Image';
|
|
6529
6439
|
Image.defaultProps = defaultProps$k;
|
|
6530
6440
|
|
|
6531
|
-
var defaultProps$
|
|
6441
|
+
var defaultProps$l = {
|
|
6532
6442
|
fluid: true
|
|
6533
6443
|
};
|
|
6534
6444
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6535
6445
|
var className = _ref.className,
|
|
6536
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6446
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6537
6447
|
|
|
6538
|
-
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6448
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6539
6449
|
ref: ref
|
|
6540
6450
|
}, props, {
|
|
6541
6451
|
className: classnames(className, 'figure-img')
|
|
6542
6452
|
}));
|
|
6543
6453
|
});
|
|
6544
6454
|
FigureImage.displayName = 'FigureImage';
|
|
6545
|
-
FigureImage.propTypes = propTypes$
|
|
6546
|
-
FigureImage.defaultProps = defaultProps$
|
|
6455
|
+
FigureImage.propTypes = propTypes$7;
|
|
6456
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6547
6457
|
|
|
6548
6458
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6549
6459
|
Component: 'figcaption'
|
|
@@ -6562,13 +6472,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6562
6472
|
});
|
|
6563
6473
|
|
|
6564
6474
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6565
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6475
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6566
6476
|
type: "checkbox"
|
|
6567
6477
|
}, props)));
|
|
6568
6478
|
};
|
|
6569
6479
|
|
|
6570
6480
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6571
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6481
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6572
6482
|
type: "radio"
|
|
6573
6483
|
}, props)));
|
|
6574
6484
|
};
|
|
@@ -6587,10 +6497,10 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6587
6497
|
className = _ref.className,
|
|
6588
6498
|
_ref$as = _ref.as,
|
|
6589
6499
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6590
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6500
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6591
6501
|
|
|
6592
6502
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6593
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6503
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6594
6504
|
ref: ref
|
|
6595
6505
|
}, props, {
|
|
6596
6506
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6598,7 +6508,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6598
6508
|
});
|
|
6599
6509
|
InputGroup.displayName = 'InputGroup';
|
|
6600
6510
|
|
|
6601
|
-
_extends({}, InputGroup, {
|
|
6511
|
+
var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
6602
6512
|
Text: InputGroupText,
|
|
6603
6513
|
Radio: InputGroupRadio,
|
|
6604
6514
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6606,7 +6516,7 @@ _extends({}, InputGroup, {
|
|
|
6606
6516
|
Prepend: InputGroupPrepend
|
|
6607
6517
|
});
|
|
6608
6518
|
|
|
6609
|
-
var defaultProps$
|
|
6519
|
+
var defaultProps$m = {
|
|
6610
6520
|
fluid: false
|
|
6611
6521
|
};
|
|
6612
6522
|
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6617,23 +6527,23 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6617
6527
|
className = _ref.className,
|
|
6618
6528
|
fluid = _ref.fluid,
|
|
6619
6529
|
bsPrefix = _ref.bsPrefix,
|
|
6620
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6530
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6621
6531
|
|
|
6622
6532
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6623
6533
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6624
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6534
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6625
6535
|
ref: ref
|
|
6626
6536
|
}, props, {
|
|
6627
6537
|
className: classnames(className, classes)
|
|
6628
6538
|
}));
|
|
6629
6539
|
});
|
|
6630
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6540
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6631
6541
|
Jumbotron.displayName = 'Jumbotron';
|
|
6632
6542
|
|
|
6633
6543
|
var TabContext = React__default.createContext(null);
|
|
6634
6544
|
|
|
6635
6545
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6636
|
-
var noop$
|
|
6546
|
+
var noop$4 = function noop() {};
|
|
6637
6547
|
|
|
6638
6548
|
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6639
6549
|
var _ref$as = _ref.as,
|
|
@@ -6642,7 +6552,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6642
6552
|
activeKey = _ref.activeKey,
|
|
6643
6553
|
role = _ref.role,
|
|
6644
6554
|
onKeyDown = _ref.onKeyDown,
|
|
6645
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6555
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6646
6556
|
|
|
6647
6557
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6648
6558
|
// and don't want to reset the set in the effect
|
|
@@ -6723,17 +6633,17 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6723
6633
|
role: role,
|
|
6724
6634
|
// used by NavLink to determine it's role
|
|
6725
6635
|
activeKey: makeEventKey(activeKey),
|
|
6726
|
-
getControlledId: getControlledId || noop$
|
|
6727
|
-
getControllerId: getControllerId || noop$
|
|
6636
|
+
getControlledId: getControlledId || noop$4,
|
|
6637
|
+
getControllerId: getControllerId || noop$4
|
|
6728
6638
|
}
|
|
6729
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6639
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6730
6640
|
onKeyDown: handleKeyDown,
|
|
6731
6641
|
ref: mergedRef,
|
|
6732
6642
|
role: role
|
|
6733
6643
|
}))));
|
|
6734
6644
|
});
|
|
6735
6645
|
|
|
6736
|
-
var defaultProps$
|
|
6646
|
+
var defaultProps$n = {
|
|
6737
6647
|
disabled: false
|
|
6738
6648
|
};
|
|
6739
6649
|
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6743,7 +6653,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6743
6653
|
onSelect = _ref.onSelect,
|
|
6744
6654
|
onClick = _ref.onClick,
|
|
6745
6655
|
Component = _ref.as,
|
|
6746
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6656
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6747
6657
|
|
|
6748
6658
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6749
6659
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6773,15 +6683,15 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6773
6683
|
if (onSelect) onSelect(navKey, e);
|
|
6774
6684
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6775
6685
|
});
|
|
6776
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6686
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6777
6687
|
ref: ref,
|
|
6778
6688
|
onClick: handleOnclick,
|
|
6779
6689
|
className: classnames(className, isActive && 'active')
|
|
6780
6690
|
}));
|
|
6781
6691
|
});
|
|
6782
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6692
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6783
6693
|
|
|
6784
|
-
var defaultProps$
|
|
6694
|
+
var defaultProps$o = {
|
|
6785
6695
|
variant: undefined,
|
|
6786
6696
|
active: false,
|
|
6787
6697
|
disabled: false
|
|
@@ -6796,7 +6706,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6796
6706
|
as = _ref.as,
|
|
6797
6707
|
eventKey = _ref.eventKey,
|
|
6798
6708
|
onClick = _ref.onClick,
|
|
6799
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6709
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6800
6710
|
|
|
6801
6711
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6802
6712
|
var handleClick = useCallback(function (event) {
|
|
@@ -6808,7 +6718,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6808
6718
|
|
|
6809
6719
|
if (onClick) onClick(event);
|
|
6810
6720
|
}, [disabled, onClick]);
|
|
6811
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6721
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6812
6722
|
ref: ref
|
|
6813
6723
|
}, props, {
|
|
6814
6724
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6819,10 +6729,10 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6819
6729
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6820
6730
|
}));
|
|
6821
6731
|
});
|
|
6822
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6732
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6823
6733
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6824
6734
|
|
|
6825
|
-
var defaultProps$
|
|
6735
|
+
var defaultProps$p = {
|
|
6826
6736
|
variant: undefined,
|
|
6827
6737
|
horizontal: undefined
|
|
6828
6738
|
};
|
|
@@ -6836,7 +6746,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6836
6746
|
horizontal = _useUncontrolled.horizontal,
|
|
6837
6747
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6838
6748
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6839
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6749
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6840
6750
|
|
|
6841
6751
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6842
6752
|
var horizontalVariant;
|
|
@@ -6848,14 +6758,14 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6848
6758
|
}
|
|
6849
6759
|
|
|
6850
6760
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6851
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6761
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6852
6762
|
ref: ref
|
|
6853
6763
|
}, controlledProps, {
|
|
6854
6764
|
as: as,
|
|
6855
6765
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6856
6766
|
}));
|
|
6857
6767
|
});
|
|
6858
|
-
ListGroup.defaultProps = defaultProps$
|
|
6768
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6859
6769
|
ListGroup.displayName = 'ListGroup';
|
|
6860
6770
|
ListGroup.Item = ListGroupItem;
|
|
6861
6771
|
|
|
@@ -6866,10 +6776,10 @@ function (_ref, ref) {
|
|
|
6866
6776
|
className = _ref.className,
|
|
6867
6777
|
_ref$as = _ref.as,
|
|
6868
6778
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6869
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6779
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6870
6780
|
|
|
6871
6781
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6872
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6782
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6873
6783
|
ref: ref,
|
|
6874
6784
|
className: classnames(className, prefix)
|
|
6875
6785
|
}));
|
|
@@ -6904,7 +6814,7 @@ function scrollbarSize(recalc) {
|
|
|
6904
6814
|
|
|
6905
6815
|
function activeElement(doc) {
|
|
6906
6816
|
if (doc === void 0) {
|
|
6907
|
-
doc = ownerDocument
|
|
6817
|
+
doc = ownerDocument();
|
|
6908
6818
|
}
|
|
6909
6819
|
|
|
6910
6820
|
// Support: IE 9 only
|
|
@@ -6954,7 +6864,7 @@ function isBody(node) {
|
|
|
6954
6864
|
}
|
|
6955
6865
|
|
|
6956
6866
|
function bodyIsOverflowing(node) {
|
|
6957
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6867
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6958
6868
|
var win = isWindow(node) || doc.defaultView;
|
|
6959
6869
|
return doc.body.clientWidth < win.innerWidth;
|
|
6960
6870
|
}
|
|
@@ -7166,7 +7076,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7166
7076
|
var _ref;
|
|
7167
7077
|
|
|
7168
7078
|
if (typeof document === 'undefined') return null;
|
|
7169
|
-
if (ref == null) return ownerDocument
|
|
7079
|
+
if (ref == null) return ownerDocument().body;
|
|
7170
7080
|
if (typeof ref === 'function') ref = ref();
|
|
7171
7081
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7172
7082
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7199,11 +7109,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7199
7109
|
return resolvedRef;
|
|
7200
7110
|
}
|
|
7201
7111
|
|
|
7202
|
-
var manager
|
|
7112
|
+
var manager;
|
|
7203
7113
|
|
|
7204
7114
|
function getManager() {
|
|
7205
|
-
if (!manager
|
|
7206
|
-
return manager
|
|
7115
|
+
if (!manager) manager = new ModalManager();
|
|
7116
|
+
return manager;
|
|
7207
7117
|
}
|
|
7208
7118
|
|
|
7209
7119
|
function useModalManager(provided) {
|
|
@@ -7231,7 +7141,7 @@ function useModalManager(provided) {
|
|
|
7231
7141
|
});
|
|
7232
7142
|
}
|
|
7233
7143
|
|
|
7234
|
-
var Modal
|
|
7144
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7235
7145
|
var _ref$show = _ref.show,
|
|
7236
7146
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7237
7147
|
_ref$role = _ref.role,
|
|
@@ -7315,7 +7225,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7315
7225
|
if (autoFocus) {
|
|
7316
7226
|
var currentActiveElement = activeElement(document);
|
|
7317
7227
|
|
|
7318
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7228
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7319
7229
|
lastFocusRef.current = currentActiveElement;
|
|
7320
7230
|
modal.dialog.focus();
|
|
7321
7231
|
}
|
|
@@ -7361,7 +7271,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7361
7271
|
|
|
7362
7272
|
var currentActiveElement = activeElement();
|
|
7363
7273
|
|
|
7364
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7274
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7365
7275
|
modal.dialog.focus();
|
|
7366
7276
|
}
|
|
7367
7277
|
});
|
|
@@ -7452,7 +7362,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7452
7362
|
|
|
7453
7363
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7454
7364
|
});
|
|
7455
|
-
var propTypes$
|
|
7365
|
+
var propTypes$8 = {
|
|
7456
7366
|
/**
|
|
7457
7367
|
* Set the visibility of the Modal
|
|
7458
7368
|
*/
|
|
@@ -7608,9 +7518,9 @@ var propTypes$2 = {
|
|
|
7608
7518
|
*/
|
|
7609
7519
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7610
7520
|
};
|
|
7611
|
-
Modal
|
|
7612
|
-
Modal
|
|
7613
|
-
var BaseModal = Object.assign(Modal
|
|
7521
|
+
Modal.displayName = 'Modal';
|
|
7522
|
+
Modal.propTypes = propTypes$8;
|
|
7523
|
+
var BaseModal = Object.assign(Modal, {
|
|
7614
7524
|
Manager: ModalManager
|
|
7615
7525
|
});
|
|
7616
7526
|
|
|
@@ -7702,11 +7612,11 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7702
7612
|
size = _ref.size,
|
|
7703
7613
|
children = _ref.children,
|
|
7704
7614
|
scrollable = _ref.scrollable,
|
|
7705
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7615
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7706
7616
|
|
|
7707
7617
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7708
7618
|
var dialogClass = bsPrefix + "-dialog";
|
|
7709
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7619
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7710
7620
|
ref: ref,
|
|
7711
7621
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7712
7622
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7717,7 +7627,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7717
7627
|
|
|
7718
7628
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7719
7629
|
|
|
7720
|
-
var defaultProps$
|
|
7630
|
+
var defaultProps$q = {
|
|
7721
7631
|
closeLabel: 'Close',
|
|
7722
7632
|
closeButton: false
|
|
7723
7633
|
};
|
|
@@ -7728,7 +7638,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7728
7638
|
onHide = _ref.onHide,
|
|
7729
7639
|
className = _ref.className,
|
|
7730
7640
|
children = _ref.children,
|
|
7731
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7641
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7732
7642
|
|
|
7733
7643
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7734
7644
|
var context = useContext(ModalContext);
|
|
@@ -7736,7 +7646,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7736
7646
|
if (context) context.onHide();
|
|
7737
7647
|
if (onHide) onHide();
|
|
7738
7648
|
});
|
|
7739
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7649
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7740
7650
|
ref: ref
|
|
7741
7651
|
}, props, {
|
|
7742
7652
|
className: classnames(className, bsPrefix)
|
|
@@ -7746,15 +7656,15 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7746
7656
|
}));
|
|
7747
7657
|
});
|
|
7748
7658
|
ModalHeader.displayName = 'ModalHeader';
|
|
7749
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7659
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7750
7660
|
|
|
7751
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7661
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7752
7662
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7753
|
-
Component: DivStyledAsH4
|
|
7663
|
+
Component: DivStyledAsH4$1
|
|
7754
7664
|
});
|
|
7755
7665
|
|
|
7756
|
-
var manager;
|
|
7757
|
-
var defaultProps$
|
|
7666
|
+
var manager$1;
|
|
7667
|
+
var defaultProps$r = {
|
|
7758
7668
|
show: false,
|
|
7759
7669
|
backdrop: true,
|
|
7760
7670
|
keyboard: true,
|
|
@@ -7776,7 +7686,7 @@ function BackdropTransition(props) {
|
|
|
7776
7686
|
/* eslint-enable no-use-before-define */
|
|
7777
7687
|
|
|
7778
7688
|
|
|
7779
|
-
var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
7689
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7780
7690
|
var bsPrefix = _ref.bsPrefix,
|
|
7781
7691
|
className = _ref.className,
|
|
7782
7692
|
style = _ref.style,
|
|
@@ -7805,7 +7715,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7805
7715
|
onExited = _ref.onExited,
|
|
7806
7716
|
backdropClassName = _ref.backdropClassName,
|
|
7807
7717
|
propsManager = _ref.manager,
|
|
7808
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7718
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7809
7719
|
|
|
7810
7720
|
var _useState = useState({}),
|
|
7811
7721
|
modalStyle = _useState[0],
|
|
@@ -7842,14 +7752,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7842
7752
|
|
|
7843
7753
|
function getModalManager() {
|
|
7844
7754
|
if (propsManager) return propsManager;
|
|
7845
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7846
|
-
return manager;
|
|
7755
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7756
|
+
return manager$1;
|
|
7847
7757
|
}
|
|
7848
7758
|
|
|
7849
7759
|
function updateDialogStyle(node) {
|
|
7850
7760
|
if (!canUseDOM) return;
|
|
7851
7761
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7852
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7762
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7853
7763
|
setStyle({
|
|
7854
7764
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7855
7765
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7971,12 +7881,12 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7971
7881
|
};
|
|
7972
7882
|
|
|
7973
7883
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7974
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
7884
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7975
7885
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7976
7886
|
}));
|
|
7977
7887
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7978
7888
|
|
|
7979
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7889
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7980
7890
|
|
|
7981
7891
|
|
|
7982
7892
|
if (!animation) {
|
|
@@ -7984,7 +7894,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7984
7894
|
}
|
|
7985
7895
|
|
|
7986
7896
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7987
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7897
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7988
7898
|
role: "dialog"
|
|
7989
7899
|
}, dialogProps, {
|
|
7990
7900
|
style: baseModalStyle,
|
|
@@ -7992,7 +7902,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7992
7902
|
onClick: backdrop ? handleClick : undefined,
|
|
7993
7903
|
onMouseUp: handleMouseUp,
|
|
7994
7904
|
"aria-labelledby": ariaLabelledby
|
|
7995
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
7905
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7996
7906
|
role: "document",
|
|
7997
7907
|
onMouseDown: handleDialogMouseDown,
|
|
7998
7908
|
className: dialogClassName,
|
|
@@ -8030,15 +7940,15 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8030
7940
|
renderDialog: renderDialog
|
|
8031
7941
|
}));
|
|
8032
7942
|
});
|
|
8033
|
-
Modal.displayName = 'Modal';
|
|
8034
|
-
Modal.defaultProps = defaultProps$
|
|
8035
|
-
Modal.Body = ModalBody;
|
|
8036
|
-
Modal.Header = ModalHeader;
|
|
8037
|
-
Modal.Title = ModalTitle;
|
|
8038
|
-
Modal.Footer = ModalFooter;
|
|
8039
|
-
Modal.Dialog = ModalDialog;
|
|
8040
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8041
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7943
|
+
Modal$1.displayName = 'Modal';
|
|
7944
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7945
|
+
Modal$1.Body = ModalBody;
|
|
7946
|
+
Modal$1.Header = ModalHeader;
|
|
7947
|
+
Modal$1.Title = ModalTitle;
|
|
7948
|
+
Modal$1.Footer = ModalFooter;
|
|
7949
|
+
Modal$1.Dialog = ModalDialog;
|
|
7950
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7951
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
8042
7952
|
|
|
8043
7953
|
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8044
7954
|
function (_ref, ref) {
|
|
@@ -8047,17 +7957,17 @@ function (_ref, ref) {
|
|
|
8047
7957
|
children = _ref.children,
|
|
8048
7958
|
_ref$as = _ref.as,
|
|
8049
7959
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8050
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7960
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8051
7961
|
|
|
8052
7962
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8053
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7963
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8054
7964
|
ref: ref,
|
|
8055
7965
|
className: classnames(className, bsPrefix)
|
|
8056
7966
|
}), children);
|
|
8057
7967
|
});
|
|
8058
7968
|
NavItem.displayName = 'NavItem';
|
|
8059
7969
|
|
|
8060
|
-
var defaultProps$
|
|
7970
|
+
var defaultProps$s = {
|
|
8061
7971
|
disabled: false,
|
|
8062
7972
|
as: SafeAnchor
|
|
8063
7973
|
};
|
|
@@ -8069,10 +7979,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8069
7979
|
eventKey = _ref.eventKey,
|
|
8070
7980
|
onSelect = _ref.onSelect,
|
|
8071
7981
|
as = _ref.as,
|
|
8072
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7982
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8073
7983
|
|
|
8074
7984
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8075
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
7985
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
8076
7986
|
href: href,
|
|
8077
7987
|
ref: ref,
|
|
8078
7988
|
eventKey: eventKey,
|
|
@@ -8083,9 +7993,9 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8083
7993
|
}));
|
|
8084
7994
|
});
|
|
8085
7995
|
NavLink.displayName = 'NavLink';
|
|
8086
|
-
NavLink.defaultProps = defaultProps$
|
|
7996
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8087
7997
|
|
|
8088
|
-
var defaultProps$
|
|
7998
|
+
var defaultProps$t = {
|
|
8089
7999
|
justify: false,
|
|
8090
8000
|
fill: false
|
|
8091
8001
|
};
|
|
@@ -8105,13 +8015,13 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8105
8015
|
className = _useUncontrolled.className,
|
|
8106
8016
|
children = _useUncontrolled.children,
|
|
8107
8017
|
activeKey = _useUncontrolled.activeKey,
|
|
8108
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8018
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8109
8019
|
|
|
8110
8020
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8111
8021
|
var navbarBsPrefix;
|
|
8112
8022
|
var cardHeaderBsPrefix;
|
|
8113
8023
|
var isNavbar = false;
|
|
8114
|
-
var navbarContext = useContext(context);
|
|
8024
|
+
var navbarContext = useContext(context$2);
|
|
8115
8025
|
var cardContext = useContext(context$1);
|
|
8116
8026
|
|
|
8117
8027
|
if (navbarContext) {
|
|
@@ -8121,7 +8031,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8121
8031
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8122
8032
|
}
|
|
8123
8033
|
|
|
8124
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
8034
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
8125
8035
|
as: as,
|
|
8126
8036
|
ref: ref,
|
|
8127
8037
|
activeKey: activeKey,
|
|
@@ -8129,7 +8039,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8129
8039
|
}, props), children);
|
|
8130
8040
|
});
|
|
8131
8041
|
Nav.displayName = 'Nav';
|
|
8132
|
-
Nav.defaultProps = defaultProps$
|
|
8042
|
+
Nav.defaultProps = defaultProps$t;
|
|
8133
8043
|
Nav.Item = NavItem;
|
|
8134
8044
|
Nav.Link = NavLink;
|
|
8135
8045
|
|
|
@@ -8137,11 +8047,11 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8137
8047
|
var bsPrefix = _ref.bsPrefix,
|
|
8138
8048
|
className = _ref.className,
|
|
8139
8049
|
as = _ref.as,
|
|
8140
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8050
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
8141
8051
|
|
|
8142
8052
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8143
8053
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8144
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8054
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8145
8055
|
ref: ref,
|
|
8146
8056
|
className: classnames(className, bsPrefix)
|
|
8147
8057
|
}));
|
|
@@ -8151,11 +8061,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8151
8061
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8152
8062
|
var children = _ref.children,
|
|
8153
8063
|
bsPrefix = _ref.bsPrefix,
|
|
8154
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8064
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8155
8065
|
|
|
8156
8066
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8157
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8158
|
-
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
8067
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8068
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8159
8069
|
in: !!(context && context.expanded)
|
|
8160
8070
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8161
8071
|
ref: ref,
|
|
@@ -8165,7 +8075,7 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8165
8075
|
});
|
|
8166
8076
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8167
8077
|
|
|
8168
|
-
var defaultProps$
|
|
8078
|
+
var defaultProps$u = {
|
|
8169
8079
|
label: 'Toggle navigation'
|
|
8170
8080
|
};
|
|
8171
8081
|
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8176,11 +8086,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8176
8086
|
_ref$as = _ref.as,
|
|
8177
8087
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8178
8088
|
onClick = _ref.onClick,
|
|
8179
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8089
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8180
8090
|
|
|
8181
8091
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8182
8092
|
|
|
8183
|
-
var _ref2 = useContext(context) || {},
|
|
8093
|
+
var _ref2 = useContext(context$2) || {},
|
|
8184
8094
|
onToggle = _ref2.onToggle,
|
|
8185
8095
|
expanded = _ref2.expanded;
|
|
8186
8096
|
|
|
@@ -8193,7 +8103,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8193
8103
|
props.type = 'button';
|
|
8194
8104
|
}
|
|
8195
8105
|
|
|
8196
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8106
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8197
8107
|
ref: ref,
|
|
8198
8108
|
onClick: handleClick,
|
|
8199
8109
|
"aria-label": label,
|
|
@@ -8203,12 +8113,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8203
8113
|
}));
|
|
8204
8114
|
});
|
|
8205
8115
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8206
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8116
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8207
8117
|
|
|
8208
8118
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8209
8119
|
Component: 'span'
|
|
8210
8120
|
});
|
|
8211
|
-
var defaultProps$
|
|
8121
|
+
var defaultProps$v = {
|
|
8212
8122
|
expand: true,
|
|
8213
8123
|
variant: 'light',
|
|
8214
8124
|
collapseOnSelect: false
|
|
@@ -8231,7 +8141,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8231
8141
|
_onToggle = _useUncontrolled.onToggle,
|
|
8232
8142
|
onSelect = _useUncontrolled.onSelect,
|
|
8233
8143
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8234
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8144
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8235
8145
|
|
|
8236
8146
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8237
8147
|
var handleCollapse = useCallback(function () {
|
|
@@ -8261,24 +8171,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8261
8171
|
expanded: !!expanded
|
|
8262
8172
|
};
|
|
8263
8173
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8264
|
-
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
8174
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8265
8175
|
value: navbarContext
|
|
8266
8176
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8267
8177
|
value: handleCollapse
|
|
8268
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8178
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8269
8179
|
ref: ref
|
|
8270
8180
|
}, controlledProps, {
|
|
8271
8181
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8272
8182
|
}), children)));
|
|
8273
8183
|
});
|
|
8274
|
-
Navbar.defaultProps = defaultProps$
|
|
8184
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8275
8185
|
Navbar.displayName = 'Navbar';
|
|
8276
8186
|
Navbar.Brand = NavbarBrand;
|
|
8277
8187
|
Navbar.Toggle = NavbarToggle;
|
|
8278
8188
|
Navbar.Collapse = NavbarCollapse;
|
|
8279
8189
|
Navbar.Text = NavbarText;
|
|
8280
8190
|
|
|
8281
|
-
var propTypes$
|
|
8191
|
+
var propTypes$9 = {
|
|
8282
8192
|
/**
|
|
8283
8193
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8284
8194
|
* @type {string|number}
|
|
@@ -8324,31 +8234,31 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8324
8234
|
disabled = _ref.disabled,
|
|
8325
8235
|
active = _ref.active,
|
|
8326
8236
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8327
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8237
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8328
8238
|
|
|
8329
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8239
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8330
8240
|
ref: ref
|
|
8331
8241
|
}, props, {
|
|
8332
8242
|
as: NavItem
|
|
8333
|
-
}), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8243
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8334
8244
|
id: id,
|
|
8335
8245
|
eventKey: null,
|
|
8336
8246
|
active: active,
|
|
8337
8247
|
disabled: disabled,
|
|
8338
8248
|
childBsPrefix: bsPrefix,
|
|
8339
8249
|
as: NavLink
|
|
8340
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8250
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8341
8251
|
role: menuRole,
|
|
8342
8252
|
renderOnMount: renderMenuOnMount,
|
|
8343
8253
|
rootCloseEvent: rootCloseEvent
|
|
8344
8254
|
}, children));
|
|
8345
8255
|
});
|
|
8346
8256
|
NavDropdown.displayName = 'NavDropdown';
|
|
8347
|
-
NavDropdown.propTypes = propTypes$
|
|
8348
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8349
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8350
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8351
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8257
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8258
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8259
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8260
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8261
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8352
8262
|
|
|
8353
8263
|
/**
|
|
8354
8264
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8589,7 +8499,7 @@ Overlay.propTypes = {
|
|
|
8589
8499
|
onExited: PropTypes.func
|
|
8590
8500
|
};
|
|
8591
8501
|
|
|
8592
|
-
/*#__PURE__*/
|
|
8502
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8593
8503
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8594
8504
|
|
|
8595
8505
|
function RefHolder() {
|
|
@@ -8603,9 +8513,9 @@ Overlay.propTypes = {
|
|
|
8603
8513
|
};
|
|
8604
8514
|
|
|
8605
8515
|
return RefHolder;
|
|
8606
|
-
}
|
|
8516
|
+
}(React__default.Component);
|
|
8607
8517
|
|
|
8608
|
-
var defaultProps$
|
|
8518
|
+
var defaultProps$w = {
|
|
8609
8519
|
active: false,
|
|
8610
8520
|
disabled: false,
|
|
8611
8521
|
activeLabel: '(current)'
|
|
@@ -8617,7 +8527,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8617
8527
|
style = _ref.style,
|
|
8618
8528
|
activeLabel = _ref.activeLabel,
|
|
8619
8529
|
children = _ref.children,
|
|
8620
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8530
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8621
8531
|
|
|
8622
8532
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8623
8533
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -8627,14 +8537,14 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8627
8537
|
active: active,
|
|
8628
8538
|
disabled: disabled
|
|
8629
8539
|
})
|
|
8630
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8540
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8631
8541
|
className: "page-link",
|
|
8632
8542
|
disabled: disabled
|
|
8633
8543
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8634
8544
|
className: "sr-only"
|
|
8635
8545
|
}, activeLabel)));
|
|
8636
8546
|
});
|
|
8637
|
-
PageItem.defaultProps = defaultProps$
|
|
8547
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8638
8548
|
PageItem.displayName = 'PageItem';
|
|
8639
8549
|
|
|
8640
8550
|
function createButton(name, defaultValue, label) {
|
|
@@ -8644,7 +8554,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8644
8554
|
|
|
8645
8555
|
function Button(_ref2) {
|
|
8646
8556
|
var children = _ref2.children,
|
|
8647
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8557
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8648
8558
|
|
|
8649
8559
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8650
8560
|
"aria-hidden": "true"
|
|
@@ -8676,10 +8586,10 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8676
8586
|
className = _ref.className,
|
|
8677
8587
|
children = _ref.children,
|
|
8678
8588
|
size = _ref.size,
|
|
8679
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8589
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8680
8590
|
|
|
8681
8591
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8682
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8592
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8683
8593
|
ref: ref
|
|
8684
8594
|
}, props, {
|
|
8685
8595
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8698,10 +8608,10 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8698
8608
|
bsPrefix = _ref.bsPrefix,
|
|
8699
8609
|
className = _ref.className,
|
|
8700
8610
|
children = _ref.children,
|
|
8701
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8611
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8702
8612
|
|
|
8703
8613
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8704
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8614
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8705
8615
|
ref: ref
|
|
8706
8616
|
}, props, {
|
|
8707
8617
|
className: classnames(bsPrefix, className)
|
|
@@ -8714,17 +8624,17 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8714
8624
|
bsPrefix = _ref.bsPrefix,
|
|
8715
8625
|
className = _ref.className,
|
|
8716
8626
|
children = _ref.children,
|
|
8717
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8627
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8718
8628
|
|
|
8719
8629
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8720
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8630
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8721
8631
|
ref: ref
|
|
8722
8632
|
}, props, {
|
|
8723
8633
|
className: classnames(className, bsPrefix)
|
|
8724
8634
|
}), children);
|
|
8725
8635
|
});
|
|
8726
8636
|
|
|
8727
|
-
var defaultProps$
|
|
8637
|
+
var defaultProps$x = {
|
|
8728
8638
|
placement: 'right'
|
|
8729
8639
|
};
|
|
8730
8640
|
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8734,33 +8644,33 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8734
8644
|
style = _ref.style,
|
|
8735
8645
|
children = _ref.children,
|
|
8736
8646
|
content = _ref.content,
|
|
8737
|
-
arrowProps = _ref.arrowProps
|
|
8738
|
-
_ref.popper
|
|
8739
|
-
_ref.show
|
|
8740
|
-
|
|
8647
|
+
arrowProps = _ref.arrowProps,
|
|
8648
|
+
_ = _ref.popper,
|
|
8649
|
+
_1 = _ref.show,
|
|
8650
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8741
8651
|
|
|
8742
8652
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8743
8653
|
|
|
8744
8654
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8745
8655
|
primaryPlacement = _ref2[0];
|
|
8746
8656
|
|
|
8747
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8657
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8748
8658
|
ref: ref,
|
|
8749
8659
|
role: "tooltip",
|
|
8750
8660
|
style: style,
|
|
8751
8661
|
"x-placement": primaryPlacement,
|
|
8752
8662
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8753
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8663
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8754
8664
|
className: "arrow"
|
|
8755
8665
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8756
8666
|
});
|
|
8757
|
-
Popover.defaultProps = defaultProps$
|
|
8667
|
+
Popover.defaultProps = defaultProps$x;
|
|
8758
8668
|
Popover.Title = PopoverTitle;
|
|
8759
8669
|
Popover.Content = PopoverContent;
|
|
8760
8670
|
|
|
8761
8671
|
var ROUND_PRECISION = 1000;
|
|
8762
8672
|
|
|
8763
|
-
var defaultProps$
|
|
8673
|
+
var defaultProps$y = {
|
|
8764
8674
|
min: 0,
|
|
8765
8675
|
max: 100,
|
|
8766
8676
|
animated: false,
|
|
@@ -8788,14 +8698,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8788
8698
|
style = _ref.style,
|
|
8789
8699
|
variant = _ref.variant,
|
|
8790
8700
|
bsPrefix = _ref.bsPrefix,
|
|
8791
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8701
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8792
8702
|
|
|
8793
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8703
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8794
8704
|
ref: ref
|
|
8795
8705
|
}, props, {
|
|
8796
8706
|
role: "progressbar",
|
|
8797
8707
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8798
|
-
style: _extends({
|
|
8708
|
+
style: _extends$1({
|
|
8799
8709
|
width: getPercentage(now, min, max) + "%"
|
|
8800
8710
|
}, style),
|
|
8801
8711
|
"aria-valuenow": now,
|
|
@@ -8808,7 +8718,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8808
8718
|
|
|
8809
8719
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8810
8720
|
var isChild = _ref2.isChild,
|
|
8811
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8721
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8812
8722
|
|
|
8813
8723
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8814
8724
|
|
|
@@ -8827,9 +8737,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8827
8737
|
variant = props.variant,
|
|
8828
8738
|
className = props.className,
|
|
8829
8739
|
children = props.children,
|
|
8830
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8740
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8831
8741
|
|
|
8832
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8742
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8833
8743
|
ref: ref
|
|
8834
8744
|
}, wrapperProps, {
|
|
8835
8745
|
className: classnames(className, bsPrefix)
|
|
@@ -8850,9 +8760,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8850
8760
|
}, ref));
|
|
8851
8761
|
});
|
|
8852
8762
|
ProgressBar.displayName = 'ProgressBar';
|
|
8853
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8763
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8854
8764
|
|
|
8855
|
-
var defaultProps$
|
|
8765
|
+
var defaultProps$z = {
|
|
8856
8766
|
aspectRatio: '1by1'
|
|
8857
8767
|
};
|
|
8858
8768
|
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8860,11 +8770,11 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8860
8770
|
className = _ref.className,
|
|
8861
8771
|
children = _ref.children,
|
|
8862
8772
|
aspectRatio = _ref.aspectRatio,
|
|
8863
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8773
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8864
8774
|
|
|
8865
8775
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8866
8776
|
var child = React__default.Children.only(children);
|
|
8867
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8777
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8868
8778
|
ref: ref
|
|
8869
8779
|
}, props, {
|
|
8870
8780
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
@@ -8872,10 +8782,10 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8872
8782
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8873
8783
|
}));
|
|
8874
8784
|
});
|
|
8875
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8785
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8876
8786
|
|
|
8877
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8878
|
-
var defaultProps$
|
|
8787
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8788
|
+
var defaultProps$A = {
|
|
8879
8789
|
noGutters: false
|
|
8880
8790
|
};
|
|
8881
8791
|
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8884,12 +8794,12 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8884
8794
|
noGutters = _ref.noGutters,
|
|
8885
8795
|
_ref$as = _ref.as,
|
|
8886
8796
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8887
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8797
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8888
8798
|
|
|
8889
8799
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8890
8800
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8891
8801
|
var classes = [];
|
|
8892
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8802
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8893
8803
|
var propValue = props[brkPoint];
|
|
8894
8804
|
delete props[brkPoint];
|
|
8895
8805
|
var cols;
|
|
@@ -8903,14 +8813,14 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8903
8813
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8904
8814
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8905
8815
|
});
|
|
8906
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8816
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8907
8817
|
ref: ref
|
|
8908
8818
|
}, props, {
|
|
8909
8819
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8910
8820
|
}));
|
|
8911
8821
|
});
|
|
8912
8822
|
Row.displayName = 'Row';
|
|
8913
|
-
Row.defaultProps = defaultProps$
|
|
8823
|
+
Row.defaultProps = defaultProps$A;
|
|
8914
8824
|
|
|
8915
8825
|
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8916
8826
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8921,11 +8831,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8921
8831
|
_ref$as = _ref.as,
|
|
8922
8832
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8923
8833
|
className = _ref.className,
|
|
8924
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8834
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8925
8835
|
|
|
8926
8836
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8927
8837
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8928
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8838
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8929
8839
|
ref: ref
|
|
8930
8840
|
}, props, {
|
|
8931
8841
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8933,7 +8843,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8933
8843
|
});
|
|
8934
8844
|
Spinner.displayName = 'Spinner';
|
|
8935
8845
|
|
|
8936
|
-
var propTypes = {
|
|
8846
|
+
var propTypes$a = {
|
|
8937
8847
|
/**
|
|
8938
8848
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8939
8849
|
* @type {string|number}
|
|
@@ -8995,7 +8905,7 @@ var propTypes = {
|
|
|
8995
8905
|
/** @ignore */
|
|
8996
8906
|
size: PropTypes.string
|
|
8997
8907
|
};
|
|
8998
|
-
var defaultProps$
|
|
8908
|
+
var defaultProps$B = {
|
|
8999
8909
|
toggleLabel: 'Toggle dropdown',
|
|
9000
8910
|
type: 'button'
|
|
9001
8911
|
};
|
|
@@ -9015,9 +8925,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9015
8925
|
menuRole = _ref.menuRole,
|
|
9016
8926
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
9017
8927
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9018
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8928
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9019
8929
|
|
|
9020
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8930
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
9021
8931
|
ref: ref
|
|
9022
8932
|
}, props, {
|
|
9023
8933
|
as: ButtonGroup
|
|
@@ -9030,7 +8940,7 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9030
8940
|
target: target,
|
|
9031
8941
|
onClick: onClick,
|
|
9032
8942
|
type: type
|
|
9033
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8943
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
9034
8944
|
split: true,
|
|
9035
8945
|
id: id ? id.toString() : undefined,
|
|
9036
8946
|
size: size,
|
|
@@ -9039,15 +8949,15 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9039
8949
|
childBsPrefix: bsPrefix
|
|
9040
8950
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
9041
8951
|
className: "sr-only"
|
|
9042
|
-
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8952
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
9043
8953
|
align: menuAlign,
|
|
9044
8954
|
role: menuRole,
|
|
9045
8955
|
renderOnMount: renderMenuOnMount,
|
|
9046
8956
|
rootCloseEvent: rootCloseEvent
|
|
9047
8957
|
}, children));
|
|
9048
8958
|
});
|
|
9049
|
-
SplitButton.propTypes = propTypes;
|
|
9050
|
-
SplitButton.defaultProps = defaultProps$
|
|
8959
|
+
SplitButton.propTypes = propTypes$a;
|
|
8960
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9051
8961
|
SplitButton.displayName = 'SplitButton';
|
|
9052
8962
|
|
|
9053
8963
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9095,10 +9005,10 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9095
9005
|
_ref$as = _ref.as,
|
|
9096
9006
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9097
9007
|
className = _ref.className,
|
|
9098
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9008
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
9099
9009
|
|
|
9100
9010
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9101
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9011
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
9102
9012
|
ref: ref
|
|
9103
9013
|
}, props, {
|
|
9104
9014
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9112,11 +9022,11 @@ function useTabContext(props) {
|
|
|
9112
9022
|
var activeKey = context.activeKey,
|
|
9113
9023
|
getControlledId = context.getControlledId,
|
|
9114
9024
|
getControllerId = context.getControllerId,
|
|
9115
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9025
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9116
9026
|
|
|
9117
9027
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9118
9028
|
var key = makeEventKey(props.eventKey);
|
|
9119
|
-
return _extends({}, props, {
|
|
9029
|
+
return _extends$1({}, props, {
|
|
9120
9030
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9121
9031
|
id: getControlledId(props.eventKey),
|
|
9122
9032
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9141,13 +9051,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9141
9051
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9142
9052
|
Transition = _useTabContext.transition,
|
|
9143
9053
|
_useTabContext$as = _useTabContext.as,
|
|
9144
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9145
|
-
_useTabContext.eventKey
|
|
9146
|
-
|
|
9054
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9055
|
+
_ = _useTabContext.eventKey,
|
|
9056
|
+
rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9147
9057
|
|
|
9148
9058
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9149
9059
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9150
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
9060
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9151
9061
|
ref: ref,
|
|
9152
9062
|
role: "tabpanel",
|
|
9153
9063
|
"aria-hidden": !active,
|
|
@@ -9197,7 +9107,7 @@ Tab.Container = TabContainer;
|
|
|
9197
9107
|
Tab.Content = TabContent;
|
|
9198
9108
|
Tab.Pane = TabPane;
|
|
9199
9109
|
|
|
9200
|
-
React__default.forwardRef(function (_ref, ref) {
|
|
9110
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9201
9111
|
var bsPrefix = _ref.bsPrefix,
|
|
9202
9112
|
className = _ref.className,
|
|
9203
9113
|
striped = _ref.striped,
|
|
@@ -9207,11 +9117,11 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9207
9117
|
size = _ref.size,
|
|
9208
9118
|
variant = _ref.variant,
|
|
9209
9119
|
responsive = _ref.responsive,
|
|
9210
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9120
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9211
9121
|
|
|
9212
9122
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9213
9123
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9214
|
-
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9124
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9215
9125
|
className: classes,
|
|
9216
9126
|
ref: ref
|
|
9217
9127
|
}));
|
|
@@ -9236,7 +9146,7 @@ var ToastContext = React__default.createContext({
|
|
|
9236
9146
|
onClose: function onClose() {}
|
|
9237
9147
|
});
|
|
9238
9148
|
|
|
9239
|
-
var defaultProps$
|
|
9149
|
+
var defaultProps$C = {
|
|
9240
9150
|
closeLabel: 'Close',
|
|
9241
9151
|
closeButton: true
|
|
9242
9152
|
};
|
|
@@ -9246,7 +9156,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9246
9156
|
closeButton = _ref.closeButton,
|
|
9247
9157
|
className = _ref.className,
|
|
9248
9158
|
children = _ref.children,
|
|
9249
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9159
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9250
9160
|
|
|
9251
9161
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9252
9162
|
var context = useContext(ToastContext);
|
|
@@ -9255,7 +9165,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9255
9165
|
context.onClose(e);
|
|
9256
9166
|
}
|
|
9257
9167
|
});
|
|
9258
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9168
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9259
9169
|
ref: ref
|
|
9260
9170
|
}, props, {
|
|
9261
9171
|
className: classnames(bsPrefix, className)
|
|
@@ -9267,7 +9177,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9267
9177
|
}));
|
|
9268
9178
|
});
|
|
9269
9179
|
ToastHeader.displayName = 'ToastHeader';
|
|
9270
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9180
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9271
9181
|
|
|
9272
9182
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9273
9183
|
|
|
@@ -9286,7 +9196,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9286
9196
|
_ref$autohide = _ref.autohide,
|
|
9287
9197
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9288
9198
|
onClose = _ref.onClose,
|
|
9289
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9199
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9290
9200
|
|
|
9291
9201
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9292
9202
|
// timer in case these values change.
|
|
@@ -9314,7 +9224,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9314
9224
|
};
|
|
9315
9225
|
}, [onClose]);
|
|
9316
9226
|
var hasAnimation = !!(Transition && animation);
|
|
9317
|
-
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9227
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9318
9228
|
ref: ref,
|
|
9319
9229
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9320
9230
|
role: "alert",
|
|
@@ -9334,7 +9244,7 @@ Object.assign(Toast, {
|
|
|
9334
9244
|
Header: ToastHeader
|
|
9335
9245
|
});
|
|
9336
9246
|
|
|
9337
|
-
var noop = function noop() {
|
|
9247
|
+
var noop$5 = function noop() {
|
|
9338
9248
|
return undefined;
|
|
9339
9249
|
};
|
|
9340
9250
|
|
|
@@ -9348,7 +9258,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9348
9258
|
value = _ref.value,
|
|
9349
9259
|
disabled = _ref.disabled,
|
|
9350
9260
|
inputRef = _ref.inputRef,
|
|
9351
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9261
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9352
9262
|
|
|
9353
9263
|
var _useState = useState(false),
|
|
9354
9264
|
focused = _useState[0],
|
|
@@ -9360,7 +9270,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9360
9270
|
var handleBlur = useCallback(function (e) {
|
|
9361
9271
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9362
9272
|
}, []);
|
|
9363
|
-
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9273
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9364
9274
|
ref: ref,
|
|
9365
9275
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9366
9276
|
type: undefined,
|
|
@@ -9376,12 +9286,12 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9376
9286
|
disabled: !!disabled,
|
|
9377
9287
|
onFocus: handleFocus,
|
|
9378
9288
|
onBlur: handleBlur,
|
|
9379
|
-
onChange: onChange || noop
|
|
9289
|
+
onChange: onChange || noop$5
|
|
9380
9290
|
}), children);
|
|
9381
9291
|
});
|
|
9382
9292
|
ToggleButton.displayName = 'ToggleButton';
|
|
9383
9293
|
|
|
9384
|
-
var defaultProps$
|
|
9294
|
+
var defaultProps$D = {
|
|
9385
9295
|
type: 'radio',
|
|
9386
9296
|
vertical: false
|
|
9387
9297
|
};
|
|
@@ -9394,7 +9304,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9394
9304
|
name = _useUncontrolled.name,
|
|
9395
9305
|
value = _useUncontrolled.value,
|
|
9396
9306
|
onChange = _useUncontrolled.onChange,
|
|
9397
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9307
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9398
9308
|
|
|
9399
9309
|
var getValues = function getValues() {
|
|
9400
9310
|
return value == null ? [] : [].concat(value);
|
|
@@ -9423,7 +9333,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9423
9333
|
};
|
|
9424
9334
|
|
|
9425
9335
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9426
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9336
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9427
9337
|
ref: ref,
|
|
9428
9338
|
toggle: true
|
|
9429
9339
|
}), map(children, function (child) {
|
|
@@ -9444,10 +9354,10 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9444
9354
|
});
|
|
9445
9355
|
}));
|
|
9446
9356
|
});
|
|
9447
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9357
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9448
9358
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9449
9359
|
|
|
9450
|
-
var defaultProps = {
|
|
9360
|
+
var defaultProps$E = {
|
|
9451
9361
|
placement: 'right'
|
|
9452
9362
|
};
|
|
9453
9363
|
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -9456,29 +9366,29 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9456
9366
|
className = _ref.className,
|
|
9457
9367
|
style = _ref.style,
|
|
9458
9368
|
children = _ref.children,
|
|
9459
|
-
arrowProps = _ref.arrowProps
|
|
9460
|
-
_ref.popper
|
|
9461
|
-
_ref.show
|
|
9462
|
-
|
|
9369
|
+
arrowProps = _ref.arrowProps,
|
|
9370
|
+
_ = _ref.popper,
|
|
9371
|
+
_2 = _ref.show,
|
|
9372
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9463
9373
|
|
|
9464
9374
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9465
9375
|
|
|
9466
9376
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9467
9377
|
primaryPlacement = _ref2[0];
|
|
9468
9378
|
|
|
9469
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9379
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9470
9380
|
ref: ref,
|
|
9471
9381
|
style: style,
|
|
9472
9382
|
role: "tooltip",
|
|
9473
9383
|
"x-placement": primaryPlacement,
|
|
9474
9384
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9475
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9385
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9476
9386
|
className: "arrow"
|
|
9477
9387
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9478
9388
|
className: bsPrefix + "-inner"
|
|
9479
9389
|
}, children));
|
|
9480
9390
|
});
|
|
9481
|
-
Tooltip.defaultProps = defaultProps;
|
|
9391
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9482
9392
|
Tooltip.displayName = 'Tooltip';
|
|
9483
9393
|
|
|
9484
9394
|
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
@@ -9587,7 +9497,7 @@ var Filter = function Filter(_ref) {
|
|
|
9587
9497
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9588
9498
|
if (type === 'parent') {
|
|
9589
9499
|
setParentData(function (prevState) {
|
|
9590
|
-
return _extends$
|
|
9500
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null });
|
|
9591
9501
|
});
|
|
9592
9502
|
if (group && group.children && group.children.length > 0) {
|
|
9593
9503
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9601,7 +9511,7 @@ var Filter = function Filter(_ref) {
|
|
|
9601
9511
|
}
|
|
9602
9512
|
if (type === 'child') {
|
|
9603
9513
|
setChildData(function (prevState) {
|
|
9604
|
-
return _extends$
|
|
9514
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9605
9515
|
});
|
|
9606
9516
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9607
9517
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9620,7 +9530,7 @@ var Filter = function Filter(_ref) {
|
|
|
9620
9530
|
}
|
|
9621
9531
|
if (type === 'grandchild') {
|
|
9622
9532
|
setGrandChildData(function (prevState) {
|
|
9623
|
-
return _extends$
|
|
9533
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9624
9534
|
});
|
|
9625
9535
|
//handle filter
|
|
9626
9536
|
if (!group._id) {
|
|
@@ -9643,7 +9553,7 @@ var Filter = function Filter(_ref) {
|
|
|
9643
9553
|
DropdownButton,
|
|
9644
9554
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9645
9555
|
React__default.createElement(
|
|
9646
|
-
Dropdown.Item,
|
|
9556
|
+
Dropdown$1.Item,
|
|
9647
9557
|
{ onSelect: function onSelect() {
|
|
9648
9558
|
return handleFilterSelect({}, 'parent');
|
|
9649
9559
|
} },
|
|
@@ -9652,7 +9562,7 @@ var Filter = function Filter(_ref) {
|
|
|
9652
9562
|
parentData.data.map(function (docGroup) {
|
|
9653
9563
|
if (!docGroup._id) return null;
|
|
9654
9564
|
return React__default.createElement(
|
|
9655
|
-
Dropdown.Item,
|
|
9565
|
+
Dropdown$1.Item,
|
|
9656
9566
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9657
9567
|
return handleFilterSelect(docGroup, 'parent');
|
|
9658
9568
|
} },
|
|
@@ -9664,7 +9574,7 @@ var Filter = function Filter(_ref) {
|
|
|
9664
9574
|
DropdownButton,
|
|
9665
9575
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9666
9576
|
React__default.createElement(
|
|
9667
|
-
Dropdown.Item,
|
|
9577
|
+
Dropdown$1.Item,
|
|
9668
9578
|
{ onSelect: function onSelect() {
|
|
9669
9579
|
return handleFilterSelect({}, 'child');
|
|
9670
9580
|
} },
|
|
@@ -9673,7 +9583,7 @@ var Filter = function Filter(_ref) {
|
|
|
9673
9583
|
childData.data.map(function (docGroup) {
|
|
9674
9584
|
if (!docGroup._id) return null;
|
|
9675
9585
|
return React__default.createElement(
|
|
9676
|
-
Dropdown.Item,
|
|
9586
|
+
Dropdown$1.Item,
|
|
9677
9587
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9678
9588
|
return handleFilterSelect(docGroup, 'child');
|
|
9679
9589
|
} },
|
|
@@ -9685,7 +9595,7 @@ var Filter = function Filter(_ref) {
|
|
|
9685
9595
|
DropdownButton,
|
|
9686
9596
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9687
9597
|
React__default.createElement(
|
|
9688
|
-
Dropdown.Item,
|
|
9598
|
+
Dropdown$1.Item,
|
|
9689
9599
|
{ onSelect: function onSelect() {
|
|
9690
9600
|
return handleFilterSelect({}, 'grandchild');
|
|
9691
9601
|
} },
|
|
@@ -9694,7 +9604,7 @@ var Filter = function Filter(_ref) {
|
|
|
9694
9604
|
grandChildData.data.map(function (docGroup) {
|
|
9695
9605
|
if (!docGroup._id) return null;
|
|
9696
9606
|
return React__default.createElement(
|
|
9697
|
-
Dropdown.Item,
|
|
9607
|
+
Dropdown$1.Item,
|
|
9698
9608
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9699
9609
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9700
9610
|
} },
|
|
@@ -9750,7 +9660,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9750
9660
|
while (1) {
|
|
9751
9661
|
switch (_context.prev = _context.next) {
|
|
9752
9662
|
case 0:
|
|
9753
|
-
newParams = _extends$
|
|
9663
|
+
newParams = _extends$2({}, params, { from: 0, to: 10 });
|
|
9754
9664
|
filterQuery = void 0;
|
|
9755
9665
|
|
|
9756
9666
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9852,12 +9762,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9852
9762
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9853
9763
|
var _ref4;
|
|
9854
9764
|
|
|
9855
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9765
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9856
9766
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9857
9767
|
while (1) {
|
|
9858
9768
|
switch (_context2.prev = _context2.next) {
|
|
9859
9769
|
case 0:
|
|
9860
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9770
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9861
9771
|
identifier = pathname.replace('/', '');
|
|
9862
9772
|
itemsPerPage = 10;
|
|
9863
9773
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|