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