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