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