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