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