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