@mjhls/mjh-framework 1.0.862 → 1.0.863-author-details-v1
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 +1 -1
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-25d48cc2.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +20 -19
- package/dist/cjs/{ADlgInfeed-98d7c699.js → ADlgInfeed-a535a768.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -23
- package/dist/cjs/AdSlotsProvider.js +14 -13
- package/dist/cjs/AlgoliaSearch.js +14103 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -49
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +348 -484
- package/dist/cjs/AuthWrapper.js +244 -208
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +25 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -32
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +31 -30
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-391fd124.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -46
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +47 -46
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -46
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -55
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +738 -882
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +32 -32
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +2770 -65
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +35 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-0d3bf265.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-19548e2a.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -45
- package/dist/cjs/TemplateNormal.js +48 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -51
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +33 -32
- package/dist/cjs/View.js +94 -90
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- 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/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +71 -135
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -45
- package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-a9a871f0.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-3c2fa34e.js → index-04a5a4a2.js} +175 -174
- package/dist/cjs/{index-0e4427c8.js → index-2cf30c83.js} +5 -470
- package/dist/cjs/{index-f86bb269.js → index-6367b7bf.js} +35 -35
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-efca863c.js → index-b5eb3ff8.js} +11 -16
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +140 -140
- package/dist/cjs/{inherits-c2065b95.js → inherits-0c7830c5.js} +19 -19
- 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-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- 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-9d7f610f.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- 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/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -26
- package/dist/esm/AD300x250x600.js +27 -26
- package/dist/esm/AD728x90.js +30 -29
- package/dist/esm/ADFloatingFooter.js +29 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -28
- package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-56a3db8b.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -28
- package/dist/esm/ADSponsoredResources.js +29 -28
- package/dist/esm/ADWebcast.js +29 -28
- package/dist/esm/ADWelcome.js +30 -29
- package/dist/esm/{ADlgInfeed-d94f1437.js → ADlgInfeed-53edb995.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -26
- package/dist/esm/AdSlotsProvider.js +15 -14
- package/dist/esm/AlgoliaSearch.js +14124 -51
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -55
- package/dist/esm/ArticleSeriesLandingPage.js +38 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +418 -554
- package/dist/esm/AuthWrapper.js +264 -228
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -51
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +69 -68
- package/dist/esm/{Dfp-be030f2a.js → Dfp-2f9796e1.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -72
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +164 -163
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -68
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +64 -63
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +752 -896
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +103 -103
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +2818 -114
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +40 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-7d89f4d9.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-47815365.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -49
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +64 -63
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +43 -42
- package/dist/esm/VideoSeriesListing.js +73 -72
- package/dist/esm/View.js +250 -246
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- 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-4abff0b1.js} +3 -3
- 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 +71 -135
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -45
- package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-bd800589.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-c00b0bbb.js} +35 -35
- package/dist/esm/{index-fce5c5b6.js → index-cf54da7f.js} +571 -570
- package/dist/esm/{index-5cc7b406.js → index-f7fb1e25.js} +7 -472
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +136 -136
- package/dist/esm/{inherits-a41fe93f.js → inherits-75d45541.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-ec8c6b48.js} +10 -58
- package/dist/esm/main-747e7d25.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- 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-af9c50d8.js} +35 -35
- 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/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- 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
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
|
@@ -1,153 +1,73 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
-
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
-
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import Link from 'next/link';
|
|
11
|
-
import MasterDeck from './MasterDeck.js';
|
|
12
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
13
|
-
import urlFor from './urlFor.js';
|
|
14
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
15
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
16
|
-
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
17
|
-
import { g as getSerializers } from './index-fce5c5b6.js';
|
|
18
|
-
import './define-property-fe54dc9f.js';
|
|
19
|
-
import './_to-object-b50e61c3.js';
|
|
20
|
-
import './es6.string.iterator-bc33758b.js';
|
|
21
|
-
import './web.dom.iterable-4109ff68.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
22
4
|
import './_library-528f1934.js';
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './_object-pie-
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends$1 } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-75d45541.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
|
+
import './events-6c3a7a63.js';
|
|
18
|
+
import './index-f7fb1e25.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-b6f49411.js';
|
|
35
25
|
import 'next/router';
|
|
36
|
-
import './
|
|
37
|
-
import './debounce-
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
40
|
-
import '
|
|
41
|
-
import './visibility-sensor-
|
|
42
|
-
import './index-
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
26
|
+
import './isSymbol-1981418f.js';
|
|
27
|
+
import './debounce-9207d8ee.js';
|
|
28
|
+
import './toNumber-2f7a84cd.js';
|
|
29
|
+
import './index.es-c6222053.js';
|
|
30
|
+
import ReactDOM from 'react-dom';
|
|
31
|
+
import './visibility-sensor-f40c2564.js';
|
|
32
|
+
import './index-51a80699.js';
|
|
33
|
+
import urlFor from './urlFor.js';
|
|
34
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
+
import './main-747e7d25.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-56a3db8b.js';
|
|
44
|
+
import './lodash-ec8c6b48.js';
|
|
45
|
+
import './ADlgInfeed-53edb995.js';
|
|
46
|
+
import 'react-bootstrap/Button';
|
|
47
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.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-3fdda599.js';
|
|
54
|
+
import { g as getSerializers } from './index-cf54da7f.js';
|
|
55
|
+
import './util-7700fc59.js';
|
|
56
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
57
57
|
import 'next/head';
|
|
58
58
|
import 'react-share';
|
|
59
|
-
import './
|
|
59
|
+
import './SocialShare.js';
|
|
60
|
+
import './_object-to-array-7e804fce.js';
|
|
60
61
|
import 'react-bootstrap/Pagination';
|
|
61
|
-
import 'react-bootstrap/Button';
|
|
62
|
-
import './entities-932b50cf.js';
|
|
63
|
-
import './index.esm-f6156a57.js';
|
|
64
|
-
import './iconBase-ccc56b97.js';
|
|
65
62
|
import 'react-bootstrap/Figure';
|
|
66
63
|
import 'react-bootstrap/OverlayTrigger';
|
|
67
64
|
import 'react-bootstrap/Tooltip';
|
|
68
65
|
import 'react-bootstrap/Popover';
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var key in source) {
|
|
76
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
77
|
-
target[key] = source[key];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return target;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
return _extends.apply(this, arguments);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
89
|
-
if (source == null) return {};
|
|
90
|
-
var target = {};
|
|
91
|
-
var sourceKeys = Object.keys(source);
|
|
92
|
-
var key, i;
|
|
93
|
-
|
|
94
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
95
|
-
key = sourceKeys[i];
|
|
96
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
97
|
-
target[key] = source[key];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return target;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var classnames = createCommonjsModule(function (module) {
|
|
104
|
-
/*!
|
|
105
|
-
Copyright (c) 2017 Jed Watson.
|
|
106
|
-
Licensed under the MIT License (MIT), see
|
|
107
|
-
http://jedwatson.github.io/classnames
|
|
108
|
-
*/
|
|
109
|
-
/* global define */
|
|
110
|
-
|
|
111
|
-
(function () {
|
|
112
|
-
|
|
113
|
-
var hasOwn = {}.hasOwnProperty;
|
|
114
|
-
|
|
115
|
-
function classNames () {
|
|
116
|
-
var classes = [];
|
|
117
|
-
|
|
118
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
119
|
-
var arg = arguments[i];
|
|
120
|
-
if (!arg) continue;
|
|
121
|
-
|
|
122
|
-
var argType = typeof arg;
|
|
123
|
-
|
|
124
|
-
if (argType === 'string' || argType === 'number') {
|
|
125
|
-
classes.push(arg);
|
|
126
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
127
|
-
var inner = classNames.apply(null, arg);
|
|
128
|
-
if (inner) {
|
|
129
|
-
classes.push(inner);
|
|
130
|
-
}
|
|
131
|
-
} else if (argType === 'object') {
|
|
132
|
-
for (var key in arg) {
|
|
133
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
134
|
-
classes.push(key);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return classes.join(' ');
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (module.exports) {
|
|
144
|
-
classNames.default = classNames;
|
|
145
|
-
module.exports = classNames;
|
|
146
|
-
} else {
|
|
147
|
-
window.classNames = classNames;
|
|
148
|
-
}
|
|
149
|
-
}());
|
|
150
|
-
});
|
|
66
|
+
import MasterDeck from './MasterDeck.js';
|
|
67
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
68
|
+
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
69
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
|
+
import Link from 'next/link';
|
|
151
71
|
|
|
152
72
|
/**
|
|
153
73
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -254,31 +174,22 @@ function useUncontrolled(props, config) {
|
|
|
254
174
|
}, props);
|
|
255
175
|
}
|
|
256
176
|
|
|
257
|
-
function _setPrototypeOf(o, p) {
|
|
258
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
259
|
-
o.__proto__ = p;
|
|
260
|
-
return o;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
return _setPrototypeOf(o, p);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
177
|
function _inheritsLoose(subClass, superClass) {
|
|
267
178
|
subClass.prototype = Object.create(superClass.prototype);
|
|
268
179
|
subClass.prototype.constructor = subClass;
|
|
269
|
-
|
|
180
|
+
subClass.__proto__ = superClass;
|
|
270
181
|
}
|
|
271
182
|
|
|
272
|
-
var ThemeContext =
|
|
273
|
-
ThemeContext.Consumer
|
|
274
|
-
ThemeContext.Provider;
|
|
183
|
+
var ThemeContext = React.createContext({});
|
|
184
|
+
var Consumer = ThemeContext.Consumer,
|
|
185
|
+
Provider = ThemeContext.Provider;
|
|
275
186
|
|
|
276
187
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
277
188
|
var prefixes = useContext(ThemeContext);
|
|
278
189
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
279
190
|
}
|
|
280
191
|
|
|
281
|
-
var SelectableContext =
|
|
192
|
+
var SelectableContext = React.createContext(null);
|
|
282
193
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
283
194
|
if (href === void 0) {
|
|
284
195
|
href = null;
|
|
@@ -288,11 +199,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
288
199
|
return href || null;
|
|
289
200
|
};
|
|
290
201
|
|
|
291
|
-
var context
|
|
292
|
-
context
|
|
202
|
+
var context = React.createContext(null);
|
|
203
|
+
context.displayName = 'AccordionContext';
|
|
293
204
|
|
|
294
205
|
function useAccordionToggle(eventKey, onClick) {
|
|
295
|
-
var contextEventKey = useContext(context
|
|
206
|
+
var contextEventKey = useContext(context);
|
|
296
207
|
var onSelect = useContext(SelectableContext);
|
|
297
208
|
return function (e) {
|
|
298
209
|
/*
|
|
@@ -304,7 +215,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
304
215
|
if (onClick) onClick(e);
|
|
305
216
|
};
|
|
306
217
|
}
|
|
307
|
-
var AccordionToggle =
|
|
218
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
308
219
|
var _ref$as = _ref.as,
|
|
309
220
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
310
221
|
children = _ref.children,
|
|
@@ -318,22 +229,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
318
229
|
props.type = 'button';
|
|
319
230
|
}
|
|
320
231
|
|
|
321
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
322
233
|
ref: ref,
|
|
323
234
|
onClick: accordionOnClick
|
|
324
235
|
}, props), children);
|
|
325
236
|
});
|
|
326
237
|
|
|
327
|
-
function ownerDocument
|
|
238
|
+
function ownerDocument(node) {
|
|
328
239
|
return node && node.ownerDocument || document;
|
|
329
240
|
}
|
|
330
241
|
|
|
331
242
|
function ownerWindow(node) {
|
|
332
|
-
var doc = ownerDocument
|
|
243
|
+
var doc = ownerDocument(node);
|
|
333
244
|
return doc && doc.defaultView || window;
|
|
334
245
|
}
|
|
335
246
|
|
|
336
|
-
function getComputedStyle$
|
|
247
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
337
248
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
338
249
|
}
|
|
339
250
|
|
|
@@ -362,7 +273,7 @@ function style(node, property) {
|
|
|
362
273
|
var transforms = '';
|
|
363
274
|
|
|
364
275
|
if (typeof property === 'string') {
|
|
365
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
276
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
366
277
|
}
|
|
367
278
|
|
|
368
279
|
Object.keys(property).forEach(function (key) {
|
|
@@ -502,7 +413,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
502
413
|
exit: PropTypes.number,
|
|
503
414
|
appear: PropTypes.number
|
|
504
415
|
}).isRequired]) : null;
|
|
505
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
416
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
506
417
|
enter: PropTypes.string,
|
|
507
418
|
exit: PropTypes.string,
|
|
508
419
|
active: PropTypes.string
|
|
@@ -515,7 +426,7 @@ process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, P
|
|
|
515
426
|
exitActive: PropTypes.string
|
|
516
427
|
})]) : null;
|
|
517
428
|
|
|
518
|
-
var TransitionGroupContext =
|
|
429
|
+
var TransitionGroupContext = React.createContext(null);
|
|
519
430
|
|
|
520
431
|
var UNMOUNTED = 'unmounted';
|
|
521
432
|
var EXITED = 'exited';
|
|
@@ -884,35 +795,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
884
795
|
}
|
|
885
796
|
|
|
886
797
|
var _this$props = this.props,
|
|
887
|
-
children = _this$props.children
|
|
888
|
-
_this$props.in
|
|
889
|
-
_this$props.mountOnEnter
|
|
890
|
-
_this$props.unmountOnExit
|
|
891
|
-
_this$props.appear
|
|
892
|
-
_this$props.enter
|
|
893
|
-
_this$props.exit
|
|
894
|
-
_this$props.timeout
|
|
895
|
-
_this$props.addEndListener
|
|
896
|
-
_this$props.onEnter
|
|
897
|
-
_this$props.onEntering
|
|
898
|
-
_this$props.onEntered
|
|
899
|
-
_this$props.onExit
|
|
900
|
-
_this$props.onExiting
|
|
901
|
-
_this$props.onExited
|
|
902
|
-
_this$props.nodeRef
|
|
903
|
-
|
|
798
|
+
children = _this$props.children,
|
|
799
|
+
_in = _this$props.in,
|
|
800
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
801
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
802
|
+
_appear = _this$props.appear,
|
|
803
|
+
_enter = _this$props.enter,
|
|
804
|
+
_exit = _this$props.exit,
|
|
805
|
+
_timeout = _this$props.timeout,
|
|
806
|
+
_addEndListener = _this$props.addEndListener,
|
|
807
|
+
_onEnter = _this$props.onEnter,
|
|
808
|
+
_onEntering = _this$props.onEntering,
|
|
809
|
+
_onEntered = _this$props.onEntered,
|
|
810
|
+
_onExit = _this$props.onExit,
|
|
811
|
+
_onExiting = _this$props.onExiting,
|
|
812
|
+
_onExited = _this$props.onExited,
|
|
813
|
+
_nodeRef = _this$props.nodeRef,
|
|
814
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
904
815
|
|
|
905
816
|
return (
|
|
906
817
|
/*#__PURE__*/
|
|
907
818
|
// allows for nested Transitions
|
|
908
|
-
|
|
819
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
909
820
|
value: null
|
|
910
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
821
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
911
822
|
);
|
|
912
823
|
};
|
|
913
824
|
|
|
914
825
|
return Transition;
|
|
915
|
-
}(
|
|
826
|
+
}(React.Component);
|
|
916
827
|
|
|
917
828
|
Transition.contextType = TransitionGroupContext;
|
|
918
829
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1100,7 +1011,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1100
1011
|
onExited: PropTypes.func
|
|
1101
1012
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1102
1013
|
|
|
1103
|
-
function noop
|
|
1014
|
+
function noop() {}
|
|
1104
1015
|
|
|
1105
1016
|
Transition.defaultProps = {
|
|
1106
1017
|
in: false,
|
|
@@ -1109,12 +1020,12 @@ Transition.defaultProps = {
|
|
|
1109
1020
|
appear: false,
|
|
1110
1021
|
enter: true,
|
|
1111
1022
|
exit: true,
|
|
1112
|
-
onEnter: noop
|
|
1113
|
-
onEntering: noop
|
|
1114
|
-
onEntered: noop
|
|
1115
|
-
onExit: noop
|
|
1116
|
-
onExiting: noop
|
|
1117
|
-
onExited: noop
|
|
1023
|
+
onEnter: noop,
|
|
1024
|
+
onEntering: noop,
|
|
1025
|
+
onEntered: noop,
|
|
1026
|
+
onExit: noop,
|
|
1027
|
+
onExiting: noop,
|
|
1028
|
+
onExited: noop
|
|
1118
1029
|
};
|
|
1119
1030
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1120
1031
|
Transition.EXITED = EXITED;
|
|
@@ -1180,7 +1091,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1180
1091
|
}
|
|
1181
1092
|
|
|
1182
1093
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1183
|
-
var defaultProps
|
|
1094
|
+
var defaultProps = {
|
|
1184
1095
|
in: false,
|
|
1185
1096
|
timeout: 300,
|
|
1186
1097
|
mountOnEnter: false,
|
|
@@ -1188,7 +1099,7 @@ var defaultProps$E = {
|
|
|
1188
1099
|
appear: false,
|
|
1189
1100
|
getDimensionValue: getDefaultDimensionValue
|
|
1190
1101
|
};
|
|
1191
|
-
var Collapse =
|
|
1102
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1192
1103
|
var onEnter = _ref.onEnter,
|
|
1193
1104
|
onEntering = _ref.onEntering,
|
|
1194
1105
|
onEntered = _ref.onEntered,
|
|
@@ -1235,7 +1146,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1235
1146
|
elem.style[computedDimension] = null;
|
|
1236
1147
|
}, onExiting);
|
|
1237
1148
|
}, [computedDimension, onExiting]);
|
|
1238
|
-
return /*#__PURE__*/
|
|
1149
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1239
1150
|
, _extends({
|
|
1240
1151
|
ref: ref,
|
|
1241
1152
|
addEndListener: transitionEnd
|
|
@@ -1247,33 +1158,33 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1247
1158
|
onExit: handleExit,
|
|
1248
1159
|
onExiting: handleExiting
|
|
1249
1160
|
}), function (state, innerProps) {
|
|
1250
|
-
return
|
|
1161
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1251
1162
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1252
1163
|
}));
|
|
1253
1164
|
});
|
|
1254
1165
|
}); // @ts-ignore
|
|
1255
1166
|
|
|
1256
1167
|
// @ts-ignore
|
|
1257
|
-
Collapse.defaultProps = defaultProps
|
|
1168
|
+
Collapse.defaultProps = defaultProps;
|
|
1258
1169
|
|
|
1259
|
-
var AccordionCollapse =
|
|
1170
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1260
1171
|
var children = _ref.children,
|
|
1261
1172
|
eventKey = _ref.eventKey,
|
|
1262
1173
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1263
1174
|
|
|
1264
|
-
var contextEventKey = useContext(context
|
|
1175
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1265
1176
|
// from collapsing the accordion when clicked.
|
|
1266
1177
|
|
|
1267
|
-
return /*#__PURE__*/
|
|
1178
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1268
1179
|
value: null
|
|
1269
|
-
}, /*#__PURE__*/
|
|
1180
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1270
1181
|
ref: ref,
|
|
1271
1182
|
in: contextEventKey === eventKey
|
|
1272
|
-
}, props), /*#__PURE__*/
|
|
1183
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1273
1184
|
});
|
|
1274
1185
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1275
1186
|
|
|
1276
|
-
var Accordion =
|
|
1187
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1277
1188
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1278
1189
|
activeKey: 'onSelect'
|
|
1279
1190
|
}),
|
|
@@ -1287,11 +1198,11 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1287
1198
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1288
1199
|
|
|
1289
1200
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1290
|
-
return /*#__PURE__*/
|
|
1201
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1291
1202
|
value: activeKey || null
|
|
1292
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1293
1204
|
value: onSelect || null
|
|
1294
|
-
}, /*#__PURE__*/
|
|
1205
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1295
1206
|
ref: ref
|
|
1296
1207
|
}, controlledProps, {
|
|
1297
1208
|
className: finalClassName
|
|
@@ -1327,7 +1238,7 @@ function useEventCallback(fn) {
|
|
|
1327
1238
|
}
|
|
1328
1239
|
|
|
1329
1240
|
var _fadeStyles;
|
|
1330
|
-
var defaultProps$
|
|
1241
|
+
var defaultProps$1 = {
|
|
1331
1242
|
in: false,
|
|
1332
1243
|
timeout: 300,
|
|
1333
1244
|
mountOnEnter: false,
|
|
@@ -1335,7 +1246,7 @@ var defaultProps$D = {
|
|
|
1335
1246
|
appear: false
|
|
1336
1247
|
};
|
|
1337
1248
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1338
|
-
var Fade =
|
|
1249
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1339
1250
|
var className = _ref.className,
|
|
1340
1251
|
children = _ref.children,
|
|
1341
1252
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1344,51 +1255,51 @@ var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
|
1344
1255
|
triggerBrowserReflow(node);
|
|
1345
1256
|
if (props.onEnter) props.onEnter(node);
|
|
1346
1257
|
}, [props]);
|
|
1347
|
-
return /*#__PURE__*/
|
|
1258
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1348
1259
|
ref: ref,
|
|
1349
1260
|
addEndListener: transitionEnd
|
|
1350
1261
|
}, props, {
|
|
1351
1262
|
onEnter: handleEnter
|
|
1352
1263
|
}), function (status, innerProps) {
|
|
1353
|
-
return
|
|
1264
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1354
1265
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1355
1266
|
}));
|
|
1356
1267
|
});
|
|
1357
1268
|
});
|
|
1358
|
-
Fade.defaultProps = defaultProps$
|
|
1269
|
+
Fade.defaultProps = defaultProps$1;
|
|
1359
1270
|
Fade.displayName = 'Fade';
|
|
1360
1271
|
|
|
1361
|
-
var propTypes
|
|
1272
|
+
var propTypes = {
|
|
1362
1273
|
label: PropTypes.string.isRequired,
|
|
1363
1274
|
onClick: PropTypes.func
|
|
1364
1275
|
};
|
|
1365
|
-
var defaultProps$
|
|
1276
|
+
var defaultProps$2 = {
|
|
1366
1277
|
label: 'Close'
|
|
1367
1278
|
};
|
|
1368
|
-
var CloseButton =
|
|
1279
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1369
1280
|
var label = _ref.label,
|
|
1370
1281
|
onClick = _ref.onClick,
|
|
1371
1282
|
className = _ref.className,
|
|
1372
1283
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1373
1284
|
|
|
1374
|
-
return /*#__PURE__*/
|
|
1285
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1375
1286
|
ref: ref,
|
|
1376
1287
|
type: "button",
|
|
1377
1288
|
className: classnames('close', className),
|
|
1378
1289
|
onClick: onClick
|
|
1379
|
-
}, props), /*#__PURE__*/
|
|
1290
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1380
1291
|
"aria-hidden": "true"
|
|
1381
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1292
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1382
1293
|
className: "sr-only"
|
|
1383
1294
|
}, label));
|
|
1384
1295
|
});
|
|
1385
1296
|
CloseButton.displayName = 'CloseButton';
|
|
1386
|
-
CloseButton.propTypes = propTypes
|
|
1387
|
-
CloseButton.defaultProps = defaultProps$
|
|
1297
|
+
CloseButton.propTypes = propTypes;
|
|
1298
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1388
1299
|
|
|
1389
1300
|
var divWithClassName = (function (className) {
|
|
1390
|
-
return
|
|
1391
|
-
return /*#__PURE__*/
|
|
1301
|
+
return React.forwardRef(function (p, ref) {
|
|
1302
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1392
1303
|
ref: ref,
|
|
1393
1304
|
className: classnames(p.className, className)
|
|
1394
1305
|
}));
|
|
@@ -1414,7 +1325,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1414
1325
|
Component = _ref.Component,
|
|
1415
1326
|
defaultProps = _ref.defaultProps;
|
|
1416
1327
|
|
|
1417
|
-
var BsComponent =
|
|
1328
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1418
1329
|
var className = _ref2.className,
|
|
1419
1330
|
bsPrefix = _ref2.bsPrefix,
|
|
1420
1331
|
_ref2$as = _ref2.as,
|
|
@@ -1422,7 +1333,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1422
1333
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1423
1334
|
|
|
1424
1335
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1425
|
-
return /*#__PURE__*/
|
|
1336
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1426
1337
|
ref: ref,
|
|
1427
1338
|
className: classnames(className, resolvedPrefix)
|
|
1428
1339
|
}, props));
|
|
@@ -1444,7 +1355,7 @@ function isTrivialHref(href) {
|
|
|
1444
1355
|
*/
|
|
1445
1356
|
|
|
1446
1357
|
|
|
1447
|
-
var SafeAnchor =
|
|
1358
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1448
1359
|
var _ref$as = _ref.as,
|
|
1449
1360
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1450
1361
|
disabled = _ref.disabled,
|
|
@@ -1488,7 +1399,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1488
1399
|
props['aria-disabled'] = true;
|
|
1489
1400
|
}
|
|
1490
1401
|
|
|
1491
|
-
return /*#__PURE__*/
|
|
1402
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1492
1403
|
ref: ref
|
|
1493
1404
|
}, props, {
|
|
1494
1405
|
onClick: handleClick,
|
|
@@ -1497,20 +1408,20 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1497
1408
|
});
|
|
1498
1409
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1499
1410
|
|
|
1500
|
-
var DivStyledAsH4
|
|
1501
|
-
DivStyledAsH4
|
|
1411
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1412
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1502
1413
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1503
|
-
Component: DivStyledAsH4
|
|
1414
|
+
Component: DivStyledAsH4
|
|
1504
1415
|
});
|
|
1505
1416
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1506
1417
|
Component: SafeAnchor
|
|
1507
1418
|
});
|
|
1508
|
-
var defaultProps$
|
|
1419
|
+
var defaultProps$3 = {
|
|
1509
1420
|
show: true,
|
|
1510
1421
|
transition: Fade,
|
|
1511
1422
|
closeLabel: 'Close alert'
|
|
1512
1423
|
};
|
|
1513
|
-
var Alert =
|
|
1424
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1514
1425
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1515
1426
|
show: 'onClose'
|
|
1516
1427
|
}),
|
|
@@ -1532,17 +1443,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1532
1443
|
}
|
|
1533
1444
|
});
|
|
1534
1445
|
var Transition = transition === true ? Fade : transition;
|
|
1535
|
-
var alert = /*#__PURE__*/
|
|
1446
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1536
1447
|
role: "alert"
|
|
1537
1448
|
}, Transition ? props : undefined, {
|
|
1538
1449
|
ref: ref,
|
|
1539
1450
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1540
|
-
}), dismissible && /*#__PURE__*/
|
|
1451
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1541
1452
|
onClick: handleClose,
|
|
1542
1453
|
label: closeLabel
|
|
1543
1454
|
}), children);
|
|
1544
1455
|
if (!Transition) return show ? alert : null;
|
|
1545
|
-
return /*#__PURE__*/
|
|
1456
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1546
1457
|
unmountOnExit: true
|
|
1547
1458
|
}, props, {
|
|
1548
1459
|
ref: undefined,
|
|
@@ -1550,14 +1461,14 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1550
1461
|
}), alert);
|
|
1551
1462
|
});
|
|
1552
1463
|
Alert.displayName = 'Alert';
|
|
1553
|
-
Alert.defaultProps = defaultProps$
|
|
1464
|
+
Alert.defaultProps = defaultProps$3;
|
|
1554
1465
|
Alert.Link = AlertLink;
|
|
1555
1466
|
Alert.Heading = AlertHeading;
|
|
1556
1467
|
|
|
1557
|
-
var defaultProps$
|
|
1468
|
+
var defaultProps$4 = {
|
|
1558
1469
|
pill: false
|
|
1559
1470
|
};
|
|
1560
|
-
var Badge =
|
|
1471
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1561
1472
|
var bsPrefix = _ref.bsPrefix,
|
|
1562
1473
|
variant = _ref.variant,
|
|
1563
1474
|
pill = _ref.pill,
|
|
@@ -1567,20 +1478,20 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1567
1478
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1568
1479
|
|
|
1569
1480
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1570
|
-
return /*#__PURE__*/
|
|
1481
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1571
1482
|
ref: ref
|
|
1572
1483
|
}, props, {
|
|
1573
1484
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1574
1485
|
}));
|
|
1575
1486
|
});
|
|
1576
1487
|
Badge.displayName = 'Badge';
|
|
1577
|
-
Badge.defaultProps = defaultProps$
|
|
1488
|
+
Badge.defaultProps = defaultProps$4;
|
|
1578
1489
|
|
|
1579
|
-
var defaultProps$
|
|
1490
|
+
var defaultProps$5 = {
|
|
1580
1491
|
active: false,
|
|
1581
1492
|
linkProps: {}
|
|
1582
1493
|
};
|
|
1583
|
-
var BreadcrumbItem =
|
|
1494
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1584
1495
|
var bsPrefix = _ref.bsPrefix,
|
|
1585
1496
|
active = _ref.active,
|
|
1586
1497
|
children = _ref.children,
|
|
@@ -1596,27 +1507,27 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1596
1507
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1597
1508
|
|
|
1598
1509
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1599
|
-
return /*#__PURE__*/
|
|
1510
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1600
1511
|
ref: ref
|
|
1601
1512
|
}, props, {
|
|
1602
1513
|
className: classnames(prefix, className, {
|
|
1603
1514
|
active: active
|
|
1604
1515
|
}),
|
|
1605
1516
|
"aria-current": active ? 'page' : undefined
|
|
1606
|
-
}), active ? children : /*#__PURE__*/
|
|
1517
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1607
1518
|
href: href,
|
|
1608
1519
|
title: title,
|
|
1609
1520
|
target: target
|
|
1610
1521
|
}), children));
|
|
1611
1522
|
});
|
|
1612
1523
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1613
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1524
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1614
1525
|
|
|
1615
|
-
var defaultProps$
|
|
1526
|
+
var defaultProps$6 = {
|
|
1616
1527
|
label: 'breadcrumb',
|
|
1617
1528
|
listProps: {}
|
|
1618
1529
|
};
|
|
1619
|
-
var Breadcrumb =
|
|
1530
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1620
1531
|
var bsPrefix = _ref.bsPrefix,
|
|
1621
1532
|
className = _ref.className,
|
|
1622
1533
|
listProps = _ref.listProps,
|
|
@@ -1627,24 +1538,24 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1627
1538
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1628
1539
|
|
|
1629
1540
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1630
|
-
return /*#__PURE__*/
|
|
1541
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1631
1542
|
"aria-label": label,
|
|
1632
1543
|
className: className,
|
|
1633
1544
|
ref: ref
|
|
1634
|
-
}, props), /*#__PURE__*/
|
|
1545
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1635
1546
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1636
1547
|
}), children));
|
|
1637
1548
|
});
|
|
1638
1549
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1639
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1550
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1640
1551
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1641
1552
|
|
|
1642
|
-
var defaultProps$
|
|
1553
|
+
var defaultProps$7 = {
|
|
1643
1554
|
variant: 'primary',
|
|
1644
1555
|
active: false,
|
|
1645
1556
|
disabled: false
|
|
1646
1557
|
};
|
|
1647
|
-
var Button =
|
|
1558
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1648
1559
|
var bsPrefix = _ref.bsPrefix,
|
|
1649
1560
|
variant = _ref.variant,
|
|
1650
1561
|
size = _ref.size,
|
|
@@ -1659,7 +1570,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1659
1570
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1660
1571
|
|
|
1661
1572
|
if (props.href) {
|
|
1662
|
-
return /*#__PURE__*/
|
|
1573
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1663
1574
|
as: as,
|
|
1664
1575
|
ref: ref,
|
|
1665
1576
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1677,19 +1588,19 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1677
1588
|
}
|
|
1678
1589
|
|
|
1679
1590
|
var Component = as || 'button';
|
|
1680
|
-
return /*#__PURE__*/
|
|
1591
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1681
1592
|
className: classes
|
|
1682
1593
|
}));
|
|
1683
1594
|
});
|
|
1684
1595
|
Button.displayName = 'Button';
|
|
1685
|
-
Button.defaultProps = defaultProps$
|
|
1596
|
+
Button.defaultProps = defaultProps$7;
|
|
1686
1597
|
|
|
1687
|
-
var defaultProps$
|
|
1598
|
+
var defaultProps$8 = {
|
|
1688
1599
|
vertical: false,
|
|
1689
1600
|
toggle: false,
|
|
1690
1601
|
role: 'group'
|
|
1691
1602
|
};
|
|
1692
|
-
var ButtonGroup =
|
|
1603
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1693
1604
|
var bsPrefix = _ref.bsPrefix,
|
|
1694
1605
|
size = _ref.size,
|
|
1695
1606
|
toggle = _ref.toggle,
|
|
@@ -1702,38 +1613,38 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1702
1613
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1703
1614
|
var baseClass = prefix;
|
|
1704
1615
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1705
|
-
return /*#__PURE__*/
|
|
1616
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1706
1617
|
ref: ref,
|
|
1707
1618
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1708
1619
|
}));
|
|
1709
1620
|
});
|
|
1710
1621
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1711
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1622
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1712
1623
|
|
|
1713
|
-
var defaultProps$
|
|
1624
|
+
var defaultProps$9 = {
|
|
1714
1625
|
role: 'toolbar'
|
|
1715
1626
|
};
|
|
1716
|
-
var ButtonToolbar =
|
|
1627
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1717
1628
|
var bsPrefix = _ref.bsPrefix,
|
|
1718
1629
|
className = _ref.className,
|
|
1719
1630
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1720
1631
|
|
|
1721
1632
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1722
|
-
return /*#__PURE__*/
|
|
1633
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1723
1634
|
ref: ref,
|
|
1724
1635
|
className: classnames(className, prefix)
|
|
1725
1636
|
}));
|
|
1726
1637
|
});
|
|
1727
1638
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1728
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1639
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1729
1640
|
|
|
1730
|
-
var context$1 =
|
|
1641
|
+
var context$1 = React.createContext(null);
|
|
1731
1642
|
context$1.displayName = 'CardContext';
|
|
1732
1643
|
|
|
1733
|
-
var defaultProps$
|
|
1644
|
+
var defaultProps$a = {
|
|
1734
1645
|
variant: null
|
|
1735
1646
|
};
|
|
1736
|
-
var CardImg =
|
|
1647
|
+
var CardImg = React.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
1648
|
function (_ref, ref) {
|
|
1738
1649
|
var bsPrefix = _ref.bsPrefix,
|
|
1739
1650
|
className = _ref.className,
|
|
@@ -1743,13 +1654,13 @@ function (_ref, ref) {
|
|
|
1743
1654
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1744
1655
|
|
|
1745
1656
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1746
|
-
return /*#__PURE__*/
|
|
1657
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1747
1658
|
ref: ref,
|
|
1748
1659
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1749
1660
|
}, props));
|
|
1750
1661
|
});
|
|
1751
1662
|
CardImg.displayName = 'CardImg';
|
|
1752
|
-
CardImg.defaultProps = defaultProps$
|
|
1663
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1753
1664
|
|
|
1754
1665
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1755
1666
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1769,10 +1680,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1769
1680
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1770
1681
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1771
1682
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1772
|
-
var defaultProps$
|
|
1683
|
+
var defaultProps$b = {
|
|
1773
1684
|
body: false
|
|
1774
1685
|
};
|
|
1775
|
-
var Card =
|
|
1686
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1776
1687
|
var bsPrefix = _ref.bsPrefix,
|
|
1777
1688
|
className = _ref.className,
|
|
1778
1689
|
bg = _ref.bg,
|
|
@@ -1790,19 +1701,19 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1790
1701
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1791
1702
|
};
|
|
1792
1703
|
}, [prefix]);
|
|
1793
|
-
return /*#__PURE__*/
|
|
1704
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1794
1705
|
value: cardContext
|
|
1795
|
-
}, /*#__PURE__*/
|
|
1706
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1796
1707
|
ref: ref
|
|
1797
1708
|
}, props, {
|
|
1798
1709
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1799
1710
|
}), body ?
|
|
1800
1711
|
/*#__PURE__*/
|
|
1801
1712
|
// @ts-ignore
|
|
1802
|
-
|
|
1713
|
+
React.createElement(CardBody, null, children) : children));
|
|
1803
1714
|
});
|
|
1804
1715
|
Card.displayName = 'Card';
|
|
1805
|
-
Card.defaultProps = defaultProps$
|
|
1716
|
+
Card.defaultProps = defaultProps$b;
|
|
1806
1717
|
Card.Img = CardImg;
|
|
1807
1718
|
Card.Title = CardTitle;
|
|
1808
1719
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1935,20 +1846,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1935
1846
|
/**
|
|
1936
1847
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1937
1848
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1938
|
-
*
|
|
1939
|
-
*
|
|
1940
|
-
*
|
|
1941
|
-
* ```tsx
|
|
1942
|
-
* const { set, clear } = useTimeout();
|
|
1943
|
-
* const [hello, showHello] = useState(false);
|
|
1944
|
-
* //Display hello after 5 seconds
|
|
1945
|
-
* set(() => showHello(true), 5000);
|
|
1946
|
-
* return (
|
|
1947
|
-
* <div className="App">
|
|
1948
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1949
|
-
* </div>
|
|
1950
|
-
* );
|
|
1951
|
-
* ```
|
|
1952
1849
|
*/
|
|
1953
1850
|
|
|
1954
1851
|
|
|
@@ -1989,7 +1886,7 @@ function useTimeout() {
|
|
|
1989
1886
|
|
|
1990
1887
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1991
1888
|
|
|
1992
|
-
var CarouselItem =
|
|
1889
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1993
1890
|
var _ref$as = _ref.as,
|
|
1994
1891
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1995
1892
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -1998,7 +1895,7 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1998
1895
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1999
1896
|
|
|
2000
1897
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
2001
|
-
return /*#__PURE__*/
|
|
1898
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2002
1899
|
ref: ref
|
|
2003
1900
|
}, props, {
|
|
2004
1901
|
className: finalClassName
|
|
@@ -2017,8 +1914,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
2017
1914
|
|
|
2018
1915
|
function map(children, func) {
|
|
2019
1916
|
var index = 0;
|
|
2020
|
-
return
|
|
2021
|
-
return
|
|
1917
|
+
return React.Children.map(children, function (child) {
|
|
1918
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
2022
1919
|
});
|
|
2023
1920
|
}
|
|
2024
1921
|
/**
|
|
@@ -2031,13 +1928,13 @@ function map(children, func) {
|
|
|
2031
1928
|
|
|
2032
1929
|
function forEach(children, func) {
|
|
2033
1930
|
var index = 0;
|
|
2034
|
-
|
|
2035
|
-
if (
|
|
1931
|
+
React.Children.forEach(children, function (child) {
|
|
1932
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
2036
1933
|
});
|
|
2037
1934
|
}
|
|
2038
1935
|
|
|
2039
1936
|
var SWIPE_THRESHOLD = 40;
|
|
2040
|
-
var propTypes$
|
|
1937
|
+
var propTypes$1 = {
|
|
2041
1938
|
/**
|
|
2042
1939
|
* @default 'carousel'
|
|
2043
1940
|
*/
|
|
@@ -2139,7 +2036,7 @@ var propTypes$9 = {
|
|
|
2139
2036
|
*/
|
|
2140
2037
|
nextLabel: PropTypes.string
|
|
2141
2038
|
};
|
|
2142
|
-
var defaultProps$
|
|
2039
|
+
var defaultProps$c = {
|
|
2143
2040
|
slide: true,
|
|
2144
2041
|
fade: false,
|
|
2145
2042
|
controls: true,
|
|
@@ -2150,12 +2047,12 @@ var defaultProps$s = {
|
|
|
2150
2047
|
pause: 'hover',
|
|
2151
2048
|
wrap: true,
|
|
2152
2049
|
touch: true,
|
|
2153
|
-
prevIcon: /*#__PURE__*/
|
|
2050
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2154
2051
|
"aria-hidden": "true",
|
|
2155
2052
|
className: "carousel-control-prev-icon"
|
|
2156
2053
|
}),
|
|
2157
2054
|
prevLabel: 'Previous',
|
|
2158
|
-
nextIcon: /*#__PURE__*/
|
|
2055
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2159
2056
|
"aria-hidden": "true",
|
|
2160
2057
|
className: "carousel-control-next-icon"
|
|
2161
2058
|
}),
|
|
@@ -2460,7 +2357,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2460
2357
|
};
|
|
2461
2358
|
});
|
|
2462
2359
|
}, [indicators, numChildren, onSelect]);
|
|
2463
|
-
return /*#__PURE__*/
|
|
2360
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2464
2361
|
ref: elementRef
|
|
2465
2362
|
}, props, {
|
|
2466
2363
|
onKeyDown: handleKeyDown,
|
|
@@ -2470,52 +2367,52 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2470
2367
|
onTouchMove: handleTouchMove,
|
|
2471
2368
|
onTouchEnd: handleTouchEnd,
|
|
2472
2369
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2473
|
-
}), indicators && /*#__PURE__*/
|
|
2370
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2474
2371
|
className: prefix + "-indicators"
|
|
2475
2372
|
}, map(children, function (_child, index) {
|
|
2476
|
-
return /*#__PURE__*/
|
|
2373
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2477
2374
|
key: index,
|
|
2478
2375
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2479
2376
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2480
2377
|
});
|
|
2481
|
-
})), /*#__PURE__*/
|
|
2378
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2482
2379
|
className: prefix + "-inner"
|
|
2483
2380
|
}, map(children, function (child, index) {
|
|
2484
2381
|
var isActive = index === renderedActiveIndex;
|
|
2485
|
-
return slide ? /*#__PURE__*/
|
|
2382
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2486
2383
|
in: isActive,
|
|
2487
2384
|
onEnter: isActive ? handleEnter : undefined,
|
|
2488
2385
|
onEntered: isActive ? handleEntered : undefined,
|
|
2489
2386
|
addEndListener: transitionEnd
|
|
2490
2387
|
}, function (status) {
|
|
2491
|
-
return
|
|
2388
|
+
return React.cloneElement(child, {
|
|
2492
2389
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2493
2390
|
});
|
|
2494
|
-
}) :
|
|
2391
|
+
}) : React.cloneElement(child, {
|
|
2495
2392
|
className: classnames(child.props.className, isActive && 'active')
|
|
2496
2393
|
});
|
|
2497
|
-
})), controls && /*#__PURE__*/
|
|
2394
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2498
2395
|
className: prefix + "-control-prev",
|
|
2499
2396
|
onClick: prev
|
|
2500
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2397
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2501
2398
|
className: "sr-only"
|
|
2502
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2399
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2503
2400
|
className: prefix + "-control-next",
|
|
2504
2401
|
onClick: next
|
|
2505
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2402
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2506
2403
|
className: "sr-only"
|
|
2507
2404
|
}, nextLabel))));
|
|
2508
2405
|
}
|
|
2509
2406
|
|
|
2510
|
-
var Carousel =
|
|
2407
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2511
2408
|
Carousel.displayName = 'Carousel';
|
|
2512
|
-
Carousel.propTypes = propTypes$
|
|
2513
|
-
Carousel.defaultProps = defaultProps$
|
|
2409
|
+
Carousel.propTypes = propTypes$1;
|
|
2410
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2514
2411
|
Carousel.Caption = CarouselCaption;
|
|
2515
2412
|
Carousel.Item = CarouselItem;
|
|
2516
2413
|
|
|
2517
|
-
var DEVICE_SIZES
|
|
2518
|
-
var Col =
|
|
2414
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2415
|
+
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2519
2416
|
function (_ref, ref) {
|
|
2520
2417
|
var bsPrefix = _ref.bsPrefix,
|
|
2521
2418
|
className = _ref.className,
|
|
@@ -2526,7 +2423,7 @@ function (_ref, ref) {
|
|
|
2526
2423
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2527
2424
|
var spans = [];
|
|
2528
2425
|
var classes = [];
|
|
2529
|
-
DEVICE_SIZES
|
|
2426
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2530
2427
|
var propValue = props[brkPoint];
|
|
2531
2428
|
delete props[brkPoint];
|
|
2532
2429
|
var span;
|
|
@@ -2552,7 +2449,7 @@ function (_ref, ref) {
|
|
|
2552
2449
|
spans.push(prefix); // plain 'col'
|
|
2553
2450
|
}
|
|
2554
2451
|
|
|
2555
|
-
return /*#__PURE__*/
|
|
2452
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2556
2453
|
ref: ref,
|
|
2557
2454
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2558
2455
|
}));
|
|
@@ -2661,7 +2558,7 @@ function useForceUpdate() {
|
|
|
2661
2558
|
return dispatch;
|
|
2662
2559
|
}
|
|
2663
2560
|
|
|
2664
|
-
var DropdownContext = /*#__PURE__*/
|
|
2561
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2665
2562
|
|
|
2666
2563
|
function useSafeState(state) {
|
|
2667
2564
|
var isMounted = useMounted();
|
|
@@ -2707,50 +2604,21 @@ function getBasePlacement(placement) {
|
|
|
2707
2604
|
return placement.split('-')[0];
|
|
2708
2605
|
}
|
|
2709
2606
|
|
|
2710
|
-
|
|
2711
|
-
var rect = element.getBoundingClientRect();
|
|
2712
|
-
return {
|
|
2713
|
-
width: rect.width,
|
|
2714
|
-
height: rect.height,
|
|
2715
|
-
top: rect.top,
|
|
2716
|
-
right: rect.right,
|
|
2717
|
-
bottom: rect.bottom,
|
|
2718
|
-
left: rect.left,
|
|
2719
|
-
x: rect.left,
|
|
2720
|
-
y: rect.top
|
|
2721
|
-
};
|
|
2722
|
-
}
|
|
2723
|
-
|
|
2607
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2724
2608
|
// means it doesn't take into account transforms.
|
|
2725
|
-
|
|
2726
2609
|
function getLayoutRect(element) {
|
|
2727
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2728
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2729
|
-
|
|
2730
|
-
var width = element.offsetWidth;
|
|
2731
|
-
var height = element.offsetHeight;
|
|
2732
|
-
|
|
2733
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2734
|
-
width = clientRect.width;
|
|
2735
|
-
}
|
|
2736
|
-
|
|
2737
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2738
|
-
height = clientRect.height;
|
|
2739
|
-
}
|
|
2740
|
-
|
|
2741
2610
|
return {
|
|
2742
2611
|
x: element.offsetLeft,
|
|
2743
2612
|
y: element.offsetTop,
|
|
2744
|
-
width:
|
|
2745
|
-
height:
|
|
2613
|
+
width: element.offsetWidth,
|
|
2614
|
+
height: element.offsetHeight
|
|
2746
2615
|
};
|
|
2747
2616
|
}
|
|
2748
2617
|
|
|
2749
|
-
|
|
2750
|
-
if (node == null) {
|
|
2751
|
-
return window;
|
|
2752
|
-
}
|
|
2618
|
+
/*:: import type { Window } from '../types'; */
|
|
2753
2619
|
|
|
2620
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2621
|
+
function getWindow(node) {
|
|
2754
2622
|
if (node.toString() !== '[object Window]') {
|
|
2755
2623
|
var ownerDocument = node.ownerDocument;
|
|
2756
2624
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2759,27 +2627,31 @@ function getWindow(node) {
|
|
|
2759
2627
|
return node;
|
|
2760
2628
|
}
|
|
2761
2629
|
|
|
2630
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2631
|
+
Element); */
|
|
2632
|
+
|
|
2762
2633
|
function isElement(node) {
|
|
2763
2634
|
var OwnElement = getWindow(node).Element;
|
|
2764
2635
|
return node instanceof OwnElement || node instanceof Element;
|
|
2765
2636
|
}
|
|
2637
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2638
|
+
HTMLElement); */
|
|
2639
|
+
|
|
2766
2640
|
|
|
2767
2641
|
function isHTMLElement(node) {
|
|
2768
2642
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2769
2643
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2770
2644
|
}
|
|
2645
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2646
|
+
ShadowRoot); */
|
|
2771
2647
|
|
|
2772
|
-
function isShadowRoot(node) {
|
|
2773
|
-
// IE 11 has no ShadowRoot
|
|
2774
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2775
|
-
return false;
|
|
2776
|
-
}
|
|
2777
2648
|
|
|
2649
|
+
function isShadowRoot(node) {
|
|
2778
2650
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2779
2651
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2780
2652
|
}
|
|
2781
2653
|
|
|
2782
|
-
function contains
|
|
2654
|
+
function contains(parent, child) {
|
|
2783
2655
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2784
2656
|
|
|
2785
2657
|
if (parent.contains(child)) {
|
|
@@ -2791,7 +2663,7 @@ function contains$1(parent, child) {
|
|
|
2791
2663
|
do {
|
|
2792
2664
|
if (next && parent.isSameNode(next)) {
|
|
2793
2665
|
return true;
|
|
2794
|
-
} // $FlowFixMe
|
|
2666
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2795
2667
|
|
|
2796
2668
|
|
|
2797
2669
|
next = next.parentNode || next.host;
|
|
@@ -2806,7 +2678,7 @@ function getNodeName(element) {
|
|
|
2806
2678
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2807
2679
|
}
|
|
2808
2680
|
|
|
2809
|
-
function getComputedStyle$
|
|
2681
|
+
function getComputedStyle$2(element) {
|
|
2810
2682
|
return getWindow(element).getComputedStyle(element);
|
|
2811
2683
|
}
|
|
2812
2684
|
|
|
@@ -2815,9 +2687,8 @@ function isTableElement(element) {
|
|
|
2815
2687
|
}
|
|
2816
2688
|
|
|
2817
2689
|
function getDocumentElement(element) {
|
|
2818
|
-
// $FlowFixMe
|
|
2819
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2820
|
-
element.document) || window.document).documentElement;
|
|
2690
|
+
// $FlowFixMe: assume body is always available
|
|
2691
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2821
2692
|
}
|
|
2822
2693
|
|
|
2823
2694
|
function getParentNode(element) {
|
|
@@ -2825,13 +2696,12 @@ function getParentNode(element) {
|
|
|
2825
2696
|
return element;
|
|
2826
2697
|
}
|
|
2827
2698
|
|
|
2828
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2829
|
-
// $FlowFixMe[incompatible-return]
|
|
2830
|
-
// $FlowFixMe[prop-missing]
|
|
2699
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2831
2700
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2832
|
-
element.parentNode ||
|
|
2833
|
-
|
|
2834
|
-
|
|
2701
|
+
element.parentNode || // DOM Element detected
|
|
2702
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2703
|
+
element.host || // ShadowRoot detected
|
|
2704
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2835
2705
|
getDocumentElement(element) // fallback
|
|
2836
2706
|
|
|
2837
2707
|
);
|
|
@@ -2839,36 +2709,33 @@ function getParentNode(element) {
|
|
|
2839
2709
|
|
|
2840
2710
|
function getTrueOffsetParent(element) {
|
|
2841
2711
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2842
|
-
getComputedStyle$
|
|
2712
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2843
2713
|
return null;
|
|
2844
2714
|
}
|
|
2845
2715
|
|
|
2846
|
-
|
|
2847
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2848
|
-
// return the containing block
|
|
2716
|
+
var offsetParent = element.offsetParent;
|
|
2849
2717
|
|
|
2718
|
+
if (offsetParent) {
|
|
2719
|
+
var html = getDocumentElement(offsetParent);
|
|
2850
2720
|
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2854
|
-
|
|
2855
|
-
if (isIE && isHTMLElement(element)) {
|
|
2856
|
-
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2857
|
-
var elementCss = getComputedStyle$1(element);
|
|
2858
|
-
|
|
2859
|
-
if (elementCss.position === 'fixed') {
|
|
2860
|
-
return null;
|
|
2721
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2722
|
+
return html;
|
|
2861
2723
|
}
|
|
2862
2724
|
}
|
|
2863
2725
|
|
|
2726
|
+
return offsetParent;
|
|
2727
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2728
|
+
// return the containing block
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
function getContainingBlock(element) {
|
|
2864
2732
|
var currentNode = getParentNode(element);
|
|
2865
2733
|
|
|
2866
2734
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2867
|
-
var css = getComputedStyle$
|
|
2735
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2868
2736
|
// create a containing block.
|
|
2869
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2870
2737
|
|
|
2871
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2738
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2872
2739
|
return currentNode;
|
|
2873
2740
|
} else {
|
|
2874
2741
|
currentNode = currentNode.parentNode;
|
|
@@ -2884,11 +2751,11 @@ function getOffsetParent(element) {
|
|
|
2884
2751
|
var window = getWindow(element);
|
|
2885
2752
|
var offsetParent = getTrueOffsetParent(element);
|
|
2886
2753
|
|
|
2887
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2754
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2888
2755
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2889
2756
|
}
|
|
2890
2757
|
|
|
2891
|
-
if (offsetParent &&
|
|
2758
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2892
2759
|
return window;
|
|
2893
2760
|
}
|
|
2894
2761
|
|
|
@@ -2899,12 +2766,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2899
2766
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2900
2767
|
}
|
|
2901
2768
|
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
var round = Math.round;
|
|
2905
|
-
|
|
2906
|
-
function within(min$1, value, max$1) {
|
|
2907
|
-
return max(min$1, min(value, max$1));
|
|
2769
|
+
function within(min, value, max) {
|
|
2770
|
+
return Math.max(min, Math.min(value, max));
|
|
2908
2771
|
}
|
|
2909
2772
|
|
|
2910
2773
|
function getFreshSideObject() {
|
|
@@ -2917,7 +2780,7 @@ function getFreshSideObject() {
|
|
|
2917
2780
|
}
|
|
2918
2781
|
|
|
2919
2782
|
function mergePaddingObject(paddingObject) {
|
|
2920
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2783
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2921
2784
|
}
|
|
2922
2785
|
|
|
2923
2786
|
function expandToHashMap(value, keys) {
|
|
@@ -2927,19 +2790,11 @@ function expandToHashMap(value, keys) {
|
|
|
2927
2790
|
}, {});
|
|
2928
2791
|
}
|
|
2929
2792
|
|
|
2930
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2931
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2932
|
-
placement: state.placement
|
|
2933
|
-
})) : padding;
|
|
2934
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2935
|
-
};
|
|
2936
|
-
|
|
2937
2793
|
function arrow(_ref) {
|
|
2938
2794
|
var _state$modifiersData$;
|
|
2939
2795
|
|
|
2940
2796
|
var state = _ref.state,
|
|
2941
|
-
name = _ref.name
|
|
2942
|
-
options = _ref.options;
|
|
2797
|
+
name = _ref.name;
|
|
2943
2798
|
var arrowElement = state.elements.arrow;
|
|
2944
2799
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2945
2800
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2951,7 +2806,7 @@ function arrow(_ref) {
|
|
|
2951
2806
|
return;
|
|
2952
2807
|
}
|
|
2953
2808
|
|
|
2954
|
-
var paddingObject =
|
|
2809
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2955
2810
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2956
2811
|
var minProp = axis === 'y' ? top : left;
|
|
2957
2812
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2971,11 +2826,14 @@ function arrow(_ref) {
|
|
|
2971
2826
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2972
2827
|
}
|
|
2973
2828
|
|
|
2974
|
-
function effect
|
|
2829
|
+
function effect(_ref2) {
|
|
2975
2830
|
var state = _ref2.state,
|
|
2976
|
-
options = _ref2.options
|
|
2831
|
+
options = _ref2.options,
|
|
2832
|
+
name = _ref2.name;
|
|
2977
2833
|
var _options$element = options.element,
|
|
2978
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2834
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2835
|
+
_options$padding = options.padding,
|
|
2836
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2979
2837
|
|
|
2980
2838
|
if (arrowElement == null) {
|
|
2981
2839
|
return;
|
|
@@ -2996,7 +2854,7 @@ function effect$1(_ref2) {
|
|
|
2996
2854
|
}
|
|
2997
2855
|
}
|
|
2998
2856
|
|
|
2999
|
-
if (!contains
|
|
2857
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
3000
2858
|
if (process.env.NODE_ENV !== "production") {
|
|
3001
2859
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
3002
2860
|
}
|
|
@@ -3005,6 +2863,9 @@ function effect$1(_ref2) {
|
|
|
3005
2863
|
}
|
|
3006
2864
|
|
|
3007
2865
|
state.elements.arrow = arrowElement;
|
|
2866
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2867
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2868
|
+
};
|
|
3008
2869
|
} // eslint-disable-next-line import/no-unused-modules
|
|
3009
2870
|
|
|
3010
2871
|
|
|
@@ -3013,7 +2874,7 @@ var arrow$1 = {
|
|
|
3013
2874
|
enabled: true,
|
|
3014
2875
|
phase: 'main',
|
|
3015
2876
|
fn: arrow,
|
|
3016
|
-
effect: effect
|
|
2877
|
+
effect: effect,
|
|
3017
2878
|
requires: ['popperOffsets'],
|
|
3018
2879
|
requiresIfExists: ['preventOverflow']
|
|
3019
2880
|
};
|
|
@@ -3027,14 +2888,14 @@ var unsetSides = {
|
|
|
3027
2888
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
3028
2889
|
// cleanly divide the values into the appropriate subpixels.
|
|
3029
2890
|
|
|
3030
|
-
function
|
|
2891
|
+
function roundOffsets(_ref) {
|
|
3031
2892
|
var x = _ref.x,
|
|
3032
2893
|
y = _ref.y;
|
|
3033
2894
|
var win = window;
|
|
3034
2895
|
var dpr = win.devicePixelRatio || 1;
|
|
3035
2896
|
return {
|
|
3036
|
-
x: round(
|
|
3037
|
-
y: round(
|
|
2897
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2898
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
3038
2899
|
};
|
|
3039
2900
|
}
|
|
3040
2901
|
|
|
@@ -3047,14 +2908,11 @@ function mapToStyles(_ref2) {
|
|
|
3047
2908
|
offsets = _ref2.offsets,
|
|
3048
2909
|
position = _ref2.position,
|
|
3049
2910
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
3050
|
-
adaptive = _ref2.adaptive
|
|
3051
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2911
|
+
adaptive = _ref2.adaptive;
|
|
3052
2912
|
|
|
3053
|
-
var
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
_ref3$y = _ref3.y,
|
|
3057
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2913
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2914
|
+
x = _roundOffsets.x,
|
|
2915
|
+
y = _roundOffsets.y;
|
|
3058
2916
|
|
|
3059
2917
|
var hasX = offsets.hasOwnProperty('x');
|
|
3060
2918
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -3064,32 +2922,23 @@ function mapToStyles(_ref2) {
|
|
|
3064
2922
|
|
|
3065
2923
|
if (adaptive) {
|
|
3066
2924
|
var offsetParent = getOffsetParent(popper);
|
|
3067
|
-
var heightProp = 'clientHeight';
|
|
3068
|
-
var widthProp = 'clientWidth';
|
|
3069
2925
|
|
|
3070
2926
|
if (offsetParent === getWindow(popper)) {
|
|
3071
2927
|
offsetParent = getDocumentElement(popper);
|
|
2928
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3072
2929
|
|
|
3073
|
-
|
|
3074
|
-
heightProp = 'scrollHeight';
|
|
3075
|
-
widthProp = 'scrollWidth';
|
|
3076
|
-
}
|
|
3077
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3078
|
-
|
|
2930
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3079
2931
|
|
|
3080
|
-
offsetParent = offsetParent;
|
|
3081
2932
|
|
|
3082
2933
|
if (placement === top) {
|
|
3083
|
-
sideY = bottom;
|
|
3084
|
-
|
|
3085
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2934
|
+
sideY = bottom;
|
|
2935
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3086
2936
|
y *= gpuAcceleration ? 1 : -1;
|
|
3087
2937
|
}
|
|
3088
2938
|
|
|
3089
2939
|
if (placement === left) {
|
|
3090
|
-
sideX = right;
|
|
3091
|
-
|
|
3092
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2940
|
+
sideX = right;
|
|
2941
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3093
2942
|
x *= gpuAcceleration ? 1 : -1;
|
|
3094
2943
|
}
|
|
3095
2944
|
}
|
|
@@ -3101,24 +2950,22 @@ function mapToStyles(_ref2) {
|
|
|
3101
2950
|
if (gpuAcceleration) {
|
|
3102
2951
|
var _Object$assign;
|
|
3103
2952
|
|
|
3104
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
2953
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3105
2954
|
}
|
|
3106
2955
|
|
|
3107
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2956
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3108
2957
|
}
|
|
3109
2958
|
|
|
3110
|
-
function computeStyles(
|
|
3111
|
-
var state =
|
|
3112
|
-
options =
|
|
2959
|
+
function computeStyles(_ref3) {
|
|
2960
|
+
var state = _ref3.state,
|
|
2961
|
+
options = _ref3.options;
|
|
3113
2962
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3114
2963
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3115
2964
|
_options$adaptive = options.adaptive,
|
|
3116
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3117
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3118
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2965
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3119
2966
|
|
|
3120
2967
|
if (process.env.NODE_ENV !== "production") {
|
|
3121
|
-
var transitionProperty = getComputedStyle$
|
|
2968
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3122
2969
|
|
|
3123
2970
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3124
2971
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3135,24 +2982,22 @@ function computeStyles(_ref4) {
|
|
|
3135
2982
|
};
|
|
3136
2983
|
|
|
3137
2984
|
if (state.modifiersData.popperOffsets != null) {
|
|
3138
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2985
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3139
2986
|
offsets: state.modifiersData.popperOffsets,
|
|
3140
2987
|
position: state.options.strategy,
|
|
3141
|
-
adaptive: adaptive
|
|
3142
|
-
roundOffsets: roundOffsets
|
|
2988
|
+
adaptive: adaptive
|
|
3143
2989
|
})));
|
|
3144
2990
|
}
|
|
3145
2991
|
|
|
3146
2992
|
if (state.modifiersData.arrow != null) {
|
|
3147
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2993
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3148
2994
|
offsets: state.modifiersData.arrow,
|
|
3149
2995
|
position: 'absolute',
|
|
3150
|
-
adaptive: false
|
|
3151
|
-
roundOffsets: roundOffsets
|
|
2996
|
+
adaptive: false
|
|
3152
2997
|
})));
|
|
3153
2998
|
}
|
|
3154
2999
|
|
|
3155
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3000
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3156
3001
|
'data-popper-placement': state.placement
|
|
3157
3002
|
});
|
|
3158
3003
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3170,7 +3015,7 @@ var passive = {
|
|
|
3170
3015
|
passive: true
|
|
3171
3016
|
};
|
|
3172
3017
|
|
|
3173
|
-
function effect(_ref) {
|
|
3018
|
+
function effect$1(_ref) {
|
|
3174
3019
|
var state = _ref.state,
|
|
3175
3020
|
instance = _ref.instance,
|
|
3176
3021
|
options = _ref.options;
|
|
@@ -3210,11 +3055,11 @@ var eventListeners = {
|
|
|
3210
3055
|
enabled: true,
|
|
3211
3056
|
phase: 'write',
|
|
3212
3057
|
fn: function fn() {},
|
|
3213
|
-
effect: effect,
|
|
3058
|
+
effect: effect$1,
|
|
3214
3059
|
data: {}
|
|
3215
3060
|
};
|
|
3216
3061
|
|
|
3217
|
-
var hash
|
|
3062
|
+
var hash = {
|
|
3218
3063
|
left: 'right',
|
|
3219
3064
|
right: 'left',
|
|
3220
3065
|
bottom: 'top',
|
|
@@ -3222,20 +3067,34 @@ var hash$1 = {
|
|
|
3222
3067
|
};
|
|
3223
3068
|
function getOppositePlacement(placement) {
|
|
3224
3069
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3225
|
-
return hash
|
|
3070
|
+
return hash[matched];
|
|
3226
3071
|
});
|
|
3227
3072
|
}
|
|
3228
3073
|
|
|
3229
|
-
var hash = {
|
|
3074
|
+
var hash$1 = {
|
|
3230
3075
|
start: 'end',
|
|
3231
3076
|
end: 'start'
|
|
3232
3077
|
};
|
|
3233
3078
|
function getOppositeVariationPlacement(placement) {
|
|
3234
3079
|
return placement.replace(/start|end/g, function (matched) {
|
|
3235
|
-
return hash[matched];
|
|
3080
|
+
return hash$1[matched];
|
|
3236
3081
|
});
|
|
3237
3082
|
}
|
|
3238
3083
|
|
|
3084
|
+
function getBoundingClientRect(element) {
|
|
3085
|
+
var rect = element.getBoundingClientRect();
|
|
3086
|
+
return {
|
|
3087
|
+
width: rect.width,
|
|
3088
|
+
height: rect.height,
|
|
3089
|
+
top: rect.top,
|
|
3090
|
+
right: rect.right,
|
|
3091
|
+
bottom: rect.bottom,
|
|
3092
|
+
left: rect.left,
|
|
3093
|
+
x: rect.left,
|
|
3094
|
+
y: rect.top
|
|
3095
|
+
};
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3239
3098
|
function getWindowScroll(node) {
|
|
3240
3099
|
var win = getWindow(node);
|
|
3241
3100
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3298,18 +3157,16 @@ function getViewportRect(element) {
|
|
|
3298
3157
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3299
3158
|
|
|
3300
3159
|
function getDocumentRect(element) {
|
|
3301
|
-
var _element$ownerDocumen;
|
|
3302
|
-
|
|
3303
3160
|
var html = getDocumentElement(element);
|
|
3304
3161
|
var winScroll = getWindowScroll(element);
|
|
3305
|
-
var body =
|
|
3306
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3307
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3162
|
+
var body = element.ownerDocument.body;
|
|
3163
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3164
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3308
3165
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3309
3166
|
var y = -winScroll.scrollTop;
|
|
3310
3167
|
|
|
3311
|
-
if (getComputedStyle$
|
|
3312
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3168
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3169
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3313
3170
|
}
|
|
3314
3171
|
|
|
3315
3172
|
return {
|
|
@@ -3322,7 +3179,7 @@ function getDocumentRect(element) {
|
|
|
3322
3179
|
|
|
3323
3180
|
function isScrollParent(element) {
|
|
3324
3181
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3325
|
-
var _getComputedStyle = getComputedStyle$
|
|
3182
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3326
3183
|
overflow = _getComputedStyle.overflow,
|
|
3327
3184
|
overflowX = _getComputedStyle.overflowX,
|
|
3328
3185
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3332,7 +3189,7 @@ function isScrollParent(element) {
|
|
|
3332
3189
|
|
|
3333
3190
|
function getScrollParent(node) {
|
|
3334
3191
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3335
|
-
// $FlowFixMe
|
|
3192
|
+
// $FlowFixMe: assume body is always available
|
|
3336
3193
|
return node.ownerDocument.body;
|
|
3337
3194
|
}
|
|
3338
3195
|
|
|
@@ -3346,28 +3203,26 @@ function getScrollParent(node) {
|
|
|
3346
3203
|
/*
|
|
3347
3204
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3348
3205
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3349
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3206
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3350
3207
|
reference element's position.
|
|
3351
3208
|
*/
|
|
3352
3209
|
|
|
3353
3210
|
function listScrollParents(element, list) {
|
|
3354
|
-
var _element$ownerDocumen;
|
|
3355
|
-
|
|
3356
3211
|
if (list === void 0) {
|
|
3357
3212
|
list = [];
|
|
3358
3213
|
}
|
|
3359
3214
|
|
|
3360
3215
|
var scrollParent = getScrollParent(element);
|
|
3361
|
-
var isBody = scrollParent ===
|
|
3216
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3362
3217
|
var win = getWindow(scrollParent);
|
|
3363
3218
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3364
3219
|
var updatedList = list.concat(target);
|
|
3365
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3220
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3366
3221
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3367
3222
|
}
|
|
3368
3223
|
|
|
3369
3224
|
function rectToClientRect(rect) {
|
|
3370
|
-
return Object.assign({}, rect, {
|
|
3225
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3371
3226
|
left: rect.x,
|
|
3372
3227
|
top: rect.y,
|
|
3373
3228
|
right: rect.x + rect.width,
|
|
@@ -3397,16 +3252,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3397
3252
|
|
|
3398
3253
|
function getClippingParents(element) {
|
|
3399
3254
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3400
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3255
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3401
3256
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3402
3257
|
|
|
3403
3258
|
if (!isElement(clipperElement)) {
|
|
3404
3259
|
return [];
|
|
3405
|
-
} // $FlowFixMe
|
|
3260
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3406
3261
|
|
|
3407
3262
|
|
|
3408
3263
|
return clippingParents.filter(function (clippingParent) {
|
|
3409
|
-
return isElement(clippingParent) && contains
|
|
3264
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3410
3265
|
});
|
|
3411
3266
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3412
3267
|
// clipping parents
|
|
@@ -3418,10 +3273,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3418
3273
|
var firstClippingParent = clippingParents[0];
|
|
3419
3274
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3420
3275
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3421
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3422
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3423
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3424
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3276
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3277
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3278
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3279
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3425
3280
|
return accRect;
|
|
3426
3281
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3427
3282
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3488,11 +3343,11 @@ function computeOffsets(_ref) {
|
|
|
3488
3343
|
|
|
3489
3344
|
switch (variation) {
|
|
3490
3345
|
case start:
|
|
3491
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3346
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3492
3347
|
break;
|
|
3493
3348
|
|
|
3494
3349
|
case end:
|
|
3495
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3350
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3496
3351
|
break;
|
|
3497
3352
|
}
|
|
3498
3353
|
}
|
|
@@ -3531,7 +3386,7 @@ function detectOverflow(state, options) {
|
|
|
3531
3386
|
strategy: 'absolute',
|
|
3532
3387
|
placement: placement
|
|
3533
3388
|
});
|
|
3534
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3389
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3535
3390
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3536
3391
|
// 0 or negative = within the clipping rect
|
|
3537
3392
|
|
|
@@ -3555,6 +3410,9 @@ function detectOverflow(state, options) {
|
|
|
3555
3410
|
return overflowOffsets;
|
|
3556
3411
|
}
|
|
3557
3412
|
|
|
3413
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3414
|
+
|
|
3415
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3558
3416
|
function computeAutoPlacement(state, options) {
|
|
3559
3417
|
if (options === void 0) {
|
|
3560
3418
|
options = {};
|
|
@@ -3571,7 +3429,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3571
3429
|
var variation = getVariation(placement);
|
|
3572
3430
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3573
3431
|
return getVariation(placement) === variation;
|
|
3574
|
-
}) : basePlacements;
|
|
3432
|
+
}) : basePlacements; // $FlowFixMe
|
|
3433
|
+
|
|
3575
3434
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3576
3435
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3577
3436
|
});
|
|
@@ -3582,7 +3441,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3582
3441
|
if (process.env.NODE_ENV !== "production") {
|
|
3583
3442
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3584
3443
|
}
|
|
3585
|
-
} // $FlowFixMe
|
|
3444
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3586
3445
|
|
|
3587
3446
|
|
|
3588
3447
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3783,7 +3642,7 @@ function hide(_ref) {
|
|
|
3783
3642
|
isReferenceHidden: isReferenceHidden,
|
|
3784
3643
|
hasPopperEscaped: hasPopperEscaped
|
|
3785
3644
|
};
|
|
3786
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3645
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3787
3646
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3788
3647
|
'data-popper-escaped': hasPopperEscaped
|
|
3789
3648
|
});
|
|
@@ -3802,7 +3661,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3802
3661
|
var basePlacement = getBasePlacement(placement);
|
|
3803
3662
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3804
3663
|
|
|
3805
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3664
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3806
3665
|
placement: placement
|
|
3807
3666
|
})) : offset,
|
|
3808
3667
|
skidding = _ref[0],
|
|
@@ -3908,7 +3767,7 @@ function preventOverflow(_ref) {
|
|
|
3908
3767
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3909
3768
|
var referenceRect = state.rects.reference;
|
|
3910
3769
|
var popperRect = state.rects.popper;
|
|
3911
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3770
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3912
3771
|
placement: state.placement
|
|
3913
3772
|
})) : tetherOffset;
|
|
3914
3773
|
var data = {
|
|
@@ -3920,13 +3779,13 @@ function preventOverflow(_ref) {
|
|
|
3920
3779
|
return;
|
|
3921
3780
|
}
|
|
3922
3781
|
|
|
3923
|
-
if (checkMainAxis
|
|
3782
|
+
if (checkMainAxis) {
|
|
3924
3783
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3925
3784
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3926
3785
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3927
3786
|
var offset = popperOffsets[mainAxis];
|
|
3928
|
-
var min
|
|
3929
|
-
var max
|
|
3787
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3788
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3930
3789
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3931
3790
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3932
3791
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3953,29 +3812,26 @@ function preventOverflow(_ref) {
|
|
|
3953
3812
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3954
3813
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3955
3814
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3815
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3816
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3817
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3818
|
+
}
|
|
3956
3819
|
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3960
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3961
|
-
}
|
|
3962
|
-
|
|
3963
|
-
if (checkAltAxis) {
|
|
3964
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3820
|
+
if (checkAltAxis) {
|
|
3821
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3965
3822
|
|
|
3966
|
-
|
|
3823
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3967
3824
|
|
|
3968
|
-
|
|
3825
|
+
var _offset = popperOffsets[altAxis];
|
|
3969
3826
|
|
|
3970
|
-
|
|
3827
|
+
var _min = _offset + overflow[_mainSide];
|
|
3971
3828
|
|
|
3972
|
-
|
|
3829
|
+
var _max = _offset - overflow[_altSide];
|
|
3973
3830
|
|
|
3974
|
-
|
|
3831
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3975
3832
|
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
}
|
|
3833
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3834
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3979
3835
|
}
|
|
3980
3836
|
|
|
3981
3837
|
state.modifiersData[name] = data;
|
|
@@ -4206,9 +4062,9 @@ function uniqueBy(arr, fn) {
|
|
|
4206
4062
|
function mergeByName(modifiers) {
|
|
4207
4063
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4208
4064
|
var existing = merged[current.name];
|
|
4209
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4210
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4211
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4065
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4066
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4067
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4212
4068
|
}) : current;
|
|
4213
4069
|
return merged;
|
|
4214
4070
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4254,7 +4110,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4254
4110
|
var state = {
|
|
4255
4111
|
placement: 'bottom',
|
|
4256
4112
|
orderedModifiers: [],
|
|
4257
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4113
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4258
4114
|
modifiersData: {},
|
|
4259
4115
|
elements: {
|
|
4260
4116
|
reference: reference,
|
|
@@ -4269,7 +4125,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4269
4125
|
state: state,
|
|
4270
4126
|
setOptions: function setOptions(options) {
|
|
4271
4127
|
cleanupModifierEffects();
|
|
4272
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4128
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4273
4129
|
state.scrollParents = {
|
|
4274
4130
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4275
4131
|
popper: listScrollParents(popper)
|
|
@@ -4301,7 +4157,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4301
4157
|
}
|
|
4302
4158
|
}
|
|
4303
4159
|
|
|
4304
|
-
var _getComputedStyle = getComputedStyle$
|
|
4160
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4305
4161
|
marginTop = _getComputedStyle.marginTop,
|
|
4306
4162
|
marginRight = _getComputedStyle.marginRight,
|
|
4307
4163
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4641,7 +4497,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4641
4497
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4642
4498
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4643
4499
|
// so we need to check on context instead of a document root element.
|
|
4644
|
-
function contains(context, node) {
|
|
4500
|
+
function contains$1(context, node) {
|
|
4645
4501
|
if (context.contains) return context.contains(node);
|
|
4646
4502
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4647
4503
|
}
|
|
@@ -4715,13 +4571,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4715
4571
|
return componentOrElement != null ? componentOrElement : null;
|
|
4716
4572
|
}
|
|
4717
4573
|
|
|
4718
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4719
|
-
return ownerDocument
|
|
4574
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4575
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4720
4576
|
});
|
|
4721
4577
|
|
|
4722
4578
|
var escapeKeyCode = 27;
|
|
4723
4579
|
|
|
4724
|
-
var noop$
|
|
4580
|
+
var noop$1 = function noop() {};
|
|
4725
4581
|
|
|
4726
4582
|
function isLeftClickEvent(event) {
|
|
4727
4583
|
return event.button === 0;
|
|
@@ -4754,11 +4610,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4754
4610
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4755
4611
|
|
|
4756
4612
|
var preventMouseRootCloseRef = useRef(false);
|
|
4757
|
-
var onClose = onRootClose || noop$
|
|
4613
|
+
var onClose = onRootClose || noop$1;
|
|
4758
4614
|
var handleMouseCapture = useCallback(function (e) {
|
|
4759
4615
|
var currentTarget = getRefTarget(ref);
|
|
4760
4616
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4761
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4617
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4762
4618
|
}, [ref]);
|
|
4763
4619
|
var handleMouse = useEventCallback(function (e) {
|
|
4764
4620
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4775,7 +4631,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4775
4631
|
// https://github.com/facebook/react/issues/20074
|
|
4776
4632
|
|
|
4777
4633
|
var currentEvent = window.event;
|
|
4778
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4634
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4779
4635
|
// avoid false positives in the contains() check below if the target DOM
|
|
4780
4636
|
// element is removed in the React mouse callback.
|
|
4781
4637
|
|
|
@@ -4802,7 +4658,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4802
4658
|
|
|
4803
4659
|
if ('ontouchstart' in doc.documentElement) {
|
|
4804
4660
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4805
|
-
return listen(el, 'mousemove', noop$
|
|
4661
|
+
return listen(el, 'mousemove', noop$1);
|
|
4806
4662
|
});
|
|
4807
4663
|
}
|
|
4808
4664
|
|
|
@@ -4884,7 +4740,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4884
4740
|
});
|
|
4885
4741
|
}
|
|
4886
4742
|
|
|
4887
|
-
var noop$
|
|
4743
|
+
var noop$2 = function noop() {};
|
|
4888
4744
|
/**
|
|
4889
4745
|
* @memberOf Dropdown
|
|
4890
4746
|
* @param {object} options
|
|
@@ -4952,7 +4808,7 @@ function useDropdownMenu(options) {
|
|
|
4952
4808
|
|
|
4953
4809
|
var menu;
|
|
4954
4810
|
var menuProps = {
|
|
4955
|
-
ref: setMenu || noop$
|
|
4811
|
+
ref: setMenu || noop$2,
|
|
4956
4812
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4957
4813
|
};
|
|
4958
4814
|
var childArgs = {
|
|
@@ -4985,7 +4841,7 @@ function useDropdownMenu(options) {
|
|
|
4985
4841
|
});
|
|
4986
4842
|
return menu;
|
|
4987
4843
|
}
|
|
4988
|
-
var propTypes$
|
|
4844
|
+
var propTypes$2 = {
|
|
4989
4845
|
/**
|
|
4990
4846
|
* A render prop that returns a Menu element. The `props`
|
|
4991
4847
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5042,7 +4898,7 @@ var propTypes$8 = {
|
|
|
5042
4898
|
*/
|
|
5043
4899
|
rootCloseEvent: PropTypes.string
|
|
5044
4900
|
};
|
|
5045
|
-
var defaultProps$
|
|
4901
|
+
var defaultProps$d = {
|
|
5046
4902
|
usePopper: true
|
|
5047
4903
|
};
|
|
5048
4904
|
|
|
@@ -5052,19 +4908,19 @@ var defaultProps$r = {
|
|
|
5052
4908
|
* @displayName DropdownMenu
|
|
5053
4909
|
* @memberOf Dropdown
|
|
5054
4910
|
*/
|
|
5055
|
-
function DropdownMenu
|
|
4911
|
+
function DropdownMenu(_ref2) {
|
|
5056
4912
|
var children = _ref2.children,
|
|
5057
4913
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5058
4914
|
|
|
5059
4915
|
var args = useDropdownMenu(options);
|
|
5060
|
-
return /*#__PURE__*/
|
|
4916
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
5061
4917
|
}
|
|
5062
4918
|
|
|
5063
|
-
DropdownMenu
|
|
5064
|
-
DropdownMenu
|
|
5065
|
-
DropdownMenu
|
|
4919
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4920
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4921
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5066
4922
|
|
|
5067
|
-
var noop$
|
|
4923
|
+
var noop$3 = function noop() {};
|
|
5068
4924
|
/**
|
|
5069
4925
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5070
4926
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5078,11 +4934,11 @@ function useDropdownToggle() {
|
|
|
5078
4934
|
_ref$show = _ref.show,
|
|
5079
4935
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5080
4936
|
_ref$toggle = _ref.toggle,
|
|
5081
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4937
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5082
4938
|
setToggle = _ref.setToggle;
|
|
5083
4939
|
|
|
5084
4940
|
return [{
|
|
5085
|
-
ref: setToggle || noop$
|
|
4941
|
+
ref: setToggle || noop$3,
|
|
5086
4942
|
'aria-haspopup': true,
|
|
5087
4943
|
'aria-expanded': !!show
|
|
5088
4944
|
}, {
|
|
@@ -5090,7 +4946,7 @@ function useDropdownToggle() {
|
|
|
5090
4946
|
toggle: toggle
|
|
5091
4947
|
}];
|
|
5092
4948
|
}
|
|
5093
|
-
var propTypes$
|
|
4949
|
+
var propTypes$3 = {
|
|
5094
4950
|
/**
|
|
5095
4951
|
* A render prop that returns a Toggle element. The `props`
|
|
5096
4952
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5115,7 +4971,7 @@ var propTypes$7 = {
|
|
|
5115
4971
|
* @displayName DropdownToggle
|
|
5116
4972
|
* @memberOf Dropdown
|
|
5117
4973
|
*/
|
|
5118
|
-
function DropdownToggle
|
|
4974
|
+
function DropdownToggle(_ref2) {
|
|
5119
4975
|
var children = _ref2.children;
|
|
5120
4976
|
|
|
5121
4977
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5124,17 +4980,17 @@ function DropdownToggle$1(_ref2) {
|
|
|
5124
4980
|
show = _useDropdownToggle$.show,
|
|
5125
4981
|
toggle = _useDropdownToggle$.toggle;
|
|
5126
4982
|
|
|
5127
|
-
return /*#__PURE__*/
|
|
4983
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5128
4984
|
show: show,
|
|
5129
4985
|
toggle: toggle,
|
|
5130
4986
|
props: props
|
|
5131
4987
|
}));
|
|
5132
4988
|
}
|
|
5133
4989
|
|
|
5134
|
-
DropdownToggle
|
|
5135
|
-
DropdownToggle
|
|
4990
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4991
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5136
4992
|
|
|
5137
|
-
var propTypes$
|
|
4993
|
+
var propTypes$4 = {
|
|
5138
4994
|
/**
|
|
5139
4995
|
* A render prop that returns the root dropdown element. The `props`
|
|
5140
4996
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5206,7 +5062,7 @@ var propTypes$6 = {
|
|
|
5206
5062
|
/**
|
|
5207
5063
|
* @displayName Dropdown
|
|
5208
5064
|
*/
|
|
5209
|
-
function Dropdown
|
|
5065
|
+
function Dropdown(_ref) {
|
|
5210
5066
|
var drop = _ref.drop,
|
|
5211
5067
|
alignEnd = _ref.alignEnd,
|
|
5212
5068
|
defaultShow = _ref.defaultShow,
|
|
@@ -5339,7 +5195,7 @@ function Dropdown$1(_ref) {
|
|
|
5339
5195
|
}
|
|
5340
5196
|
};
|
|
5341
5197
|
|
|
5342
|
-
return /*#__PURE__*/
|
|
5198
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5343
5199
|
value: context
|
|
5344
5200
|
}, children({
|
|
5345
5201
|
props: {
|
|
@@ -5348,19 +5204,19 @@ function Dropdown$1(_ref) {
|
|
|
5348
5204
|
}));
|
|
5349
5205
|
}
|
|
5350
5206
|
|
|
5351
|
-
Dropdown
|
|
5352
|
-
Dropdown
|
|
5353
|
-
Dropdown
|
|
5354
|
-
Dropdown
|
|
5207
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5208
|
+
Dropdown.propTypes = propTypes$4;
|
|
5209
|
+
Dropdown.Menu = DropdownMenu;
|
|
5210
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5355
5211
|
|
|
5356
|
-
var NavContext =
|
|
5212
|
+
var NavContext = React.createContext(null);
|
|
5357
5213
|
NavContext.displayName = 'NavContext';
|
|
5358
5214
|
|
|
5359
|
-
var defaultProps$
|
|
5215
|
+
var defaultProps$e = {
|
|
5360
5216
|
as: SafeAnchor,
|
|
5361
5217
|
disabled: false
|
|
5362
5218
|
};
|
|
5363
|
-
var DropdownItem =
|
|
5219
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5364
5220
|
var bsPrefix = _ref.bsPrefix,
|
|
5365
5221
|
className = _ref.className,
|
|
5366
5222
|
children = _ref.children,
|
|
@@ -5395,7 +5251,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5395
5251
|
/*#__PURE__*/
|
|
5396
5252
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5397
5253
|
// @ts-ignore
|
|
5398
|
-
|
|
5254
|
+
React.createElement(Component, _extends({}, props, {
|
|
5399
5255
|
ref: ref,
|
|
5400
5256
|
href: href,
|
|
5401
5257
|
disabled: disabled,
|
|
@@ -5405,7 +5261,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5405
5261
|
);
|
|
5406
5262
|
});
|
|
5407
5263
|
DropdownItem.displayName = 'DropdownItem';
|
|
5408
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5264
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5409
5265
|
|
|
5410
5266
|
var toFnRef = function toFnRef(ref) {
|
|
5411
5267
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5444,8 +5300,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5444
5300
|
}, [refA, refB]);
|
|
5445
5301
|
}
|
|
5446
5302
|
|
|
5447
|
-
var context =
|
|
5448
|
-
context.displayName = 'NavbarContext';
|
|
5303
|
+
var context$2 = React.createContext(null);
|
|
5304
|
+
context$2.displayName = 'NavbarContext';
|
|
5449
5305
|
|
|
5450
5306
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5451
5307
|
// @ts-ignore
|
|
@@ -5566,13 +5422,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5566
5422
|
}), PropTypes.shape({
|
|
5567
5423
|
xl: alignDirection
|
|
5568
5424
|
})]);
|
|
5569
|
-
var defaultProps$
|
|
5425
|
+
var defaultProps$f = {
|
|
5570
5426
|
align: 'left',
|
|
5571
5427
|
alignRight: false,
|
|
5572
5428
|
flip: true
|
|
5573
5429
|
}; // TODO: remove this hack
|
|
5574
5430
|
|
|
5575
|
-
var DropdownMenu =
|
|
5431
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5576
5432
|
var bsPrefix = _ref.bsPrefix,
|
|
5577
5433
|
className = _ref.className,
|
|
5578
5434
|
align = _ref.align,
|
|
@@ -5586,7 +5442,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5586
5442
|
popperConfig = _ref.popperConfig,
|
|
5587
5443
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5588
5444
|
|
|
5589
|
-
var isNavbar = useContext(context);
|
|
5445
|
+
var isNavbar = useContext(context$2);
|
|
5590
5446
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5591
5447
|
|
|
5592
5448
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5647,12 +5503,12 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5647
5503
|
props['x-placement'] = placement;
|
|
5648
5504
|
}
|
|
5649
5505
|
|
|
5650
|
-
return /*#__PURE__*/
|
|
5506
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5651
5507
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5652
5508
|
}));
|
|
5653
5509
|
});
|
|
5654
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5655
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5510
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5511
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5656
5512
|
|
|
5657
5513
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5658
5514
|
|
|
@@ -5681,7 +5537,7 @@ module.exports = exports['default'];
|
|
|
5681
5537
|
|
|
5682
5538
|
unwrapExports(isRequiredForA11y_1);
|
|
5683
5539
|
|
|
5684
|
-
var DropdownToggle =
|
|
5540
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5685
5541
|
var bsPrefix = _ref.bsPrefix,
|
|
5686
5542
|
split = _ref.split,
|
|
5687
5543
|
className = _ref.className,
|
|
@@ -5703,12 +5559,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5703
5559
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5704
5560
|
// underlying component, to allow it to render size and style variants.
|
|
5705
5561
|
|
|
5706
|
-
return /*#__PURE__*/
|
|
5562
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5707
5563
|
onClick: toggle,
|
|
5708
5564
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5709
5565
|
}, toggleProps, props));
|
|
5710
5566
|
});
|
|
5711
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5567
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5712
5568
|
|
|
5713
5569
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5714
5570
|
defaultProps: {
|
|
@@ -5723,10 +5579,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5723
5579
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5724
5580
|
Component: 'span'
|
|
5725
5581
|
});
|
|
5726
|
-
var defaultProps$
|
|
5582
|
+
var defaultProps$g = {
|
|
5727
5583
|
navbar: false
|
|
5728
5584
|
};
|
|
5729
|
-
var Dropdown =
|
|
5585
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5730
5586
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5731
5587
|
show: 'onToggle'
|
|
5732
5588
|
}),
|
|
@@ -5739,9 +5595,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5739
5595
|
onToggle = _useUncontrolled.onToggle,
|
|
5740
5596
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5741
5597
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5742
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5743
|
-
_useUncontrolled.navbar
|
|
5744
|
-
|
|
5598
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5599
|
+
_4 = _useUncontrolled.navbar,
|
|
5600
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5745
5601
|
|
|
5746
5602
|
var onSelectCtx = useContext(SelectableContext);
|
|
5747
5603
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5763,9 +5619,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5763
5619
|
if (onSelect) onSelect(key, event);
|
|
5764
5620
|
handleToggle(false, event, 'select');
|
|
5765
5621
|
});
|
|
5766
|
-
return /*#__PURE__*/
|
|
5622
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5767
5623
|
value: handleSelect
|
|
5768
|
-
}, /*#__PURE__*/
|
|
5624
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5769
5625
|
drop: drop,
|
|
5770
5626
|
show: show,
|
|
5771
5627
|
alignEnd: alignRight,
|
|
@@ -5774,20 +5630,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5774
5630
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5775
5631
|
}, function (_ref) {
|
|
5776
5632
|
var dropdownProps = _ref.props;
|
|
5777
|
-
return /*#__PURE__*/
|
|
5633
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5778
5634
|
ref: ref,
|
|
5779
5635
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5780
5636
|
}));
|
|
5781
5637
|
}));
|
|
5782
5638
|
});
|
|
5783
|
-
Dropdown.displayName = 'Dropdown';
|
|
5784
|
-
Dropdown.defaultProps = defaultProps$
|
|
5785
|
-
Dropdown.Divider = DropdownDivider;
|
|
5786
|
-
Dropdown.Header = DropdownHeader;
|
|
5787
|
-
Dropdown.Item = DropdownItem;
|
|
5788
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5789
|
-
Dropdown.Menu = DropdownMenu;
|
|
5790
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5639
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5640
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5641
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5642
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5643
|
+
Dropdown$1.Item = DropdownItem;
|
|
5644
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5645
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5646
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5791
5647
|
|
|
5792
5648
|
var propTypes$5 = {
|
|
5793
5649
|
/**
|
|
@@ -5849,7 +5705,7 @@ var propTypes$5 = {
|
|
|
5849
5705
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5850
5706
|
*/
|
|
5851
5707
|
|
|
5852
|
-
var DropdownButton =
|
|
5708
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5853
5709
|
var title = _ref.title,
|
|
5854
5710
|
children = _ref.children,
|
|
5855
5711
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5864,16 +5720,16 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5864
5720
|
id = _ref.id,
|
|
5865
5721
|
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5866
5722
|
|
|
5867
|
-
return /*#__PURE__*/
|
|
5723
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5868
5724
|
ref: ref
|
|
5869
|
-
}, props), /*#__PURE__*/
|
|
5725
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5870
5726
|
id: id,
|
|
5871
5727
|
href: href,
|
|
5872
5728
|
size: size,
|
|
5873
5729
|
variant: variant,
|
|
5874
5730
|
disabled: disabled,
|
|
5875
5731
|
childBsPrefix: bsPrefix
|
|
5876
|
-
}, title), /*#__PURE__*/
|
|
5732
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5877
5733
|
align: menuAlign,
|
|
5878
5734
|
role: menuRole,
|
|
5879
5735
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5976,7 +5832,7 @@ module.exports = exports['default'];
|
|
|
5976
5832
|
|
|
5977
5833
|
unwrapExports(all_1);
|
|
5978
5834
|
|
|
5979
|
-
var propTypes$
|
|
5835
|
+
var propTypes$6 = {
|
|
5980
5836
|
/**
|
|
5981
5837
|
* Specify whether the feedback is for valid or invalid fields
|
|
5982
5838
|
*
|
|
@@ -5988,7 +5844,7 @@ var propTypes$4 = {
|
|
|
5988
5844
|
tooltip: PropTypes.bool,
|
|
5989
5845
|
as: PropTypes.elementType
|
|
5990
5846
|
};
|
|
5991
|
-
var Feedback =
|
|
5847
|
+
var Feedback = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5992
5848
|
function (_ref, ref) {
|
|
5993
5849
|
var _ref$as = _ref.as,
|
|
5994
5850
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5999,19 +5855,19 @@ function (_ref, ref) {
|
|
|
5999
5855
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
6000
5856
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
6001
5857
|
|
|
6002
|
-
return /*#__PURE__*/
|
|
5858
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6003
5859
|
ref: ref,
|
|
6004
5860
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
6005
5861
|
}));
|
|
6006
5862
|
});
|
|
6007
5863
|
Feedback.displayName = 'Feedback';
|
|
6008
|
-
Feedback.propTypes = propTypes$
|
|
5864
|
+
Feedback.propTypes = propTypes$6;
|
|
6009
5865
|
|
|
6010
|
-
var FormContext =
|
|
5866
|
+
var FormContext = React.createContext({
|
|
6011
5867
|
controlId: undefined
|
|
6012
5868
|
});
|
|
6013
5869
|
|
|
6014
|
-
var FormCheckInput =
|
|
5870
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
6015
5871
|
var id = _ref.id,
|
|
6016
5872
|
bsPrefix = _ref.bsPrefix,
|
|
6017
5873
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6036,7 +5892,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6036
5892
|
defaultPrefix = _ref2[1];
|
|
6037
5893
|
|
|
6038
5894
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6039
|
-
return /*#__PURE__*/
|
|
5895
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6040
5896
|
ref: ref,
|
|
6041
5897
|
type: type,
|
|
6042
5898
|
id: id || controlId,
|
|
@@ -6045,7 +5901,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6045
5901
|
});
|
|
6046
5902
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
6047
5903
|
|
|
6048
|
-
var FormCheckLabel =
|
|
5904
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
6049
5905
|
var bsPrefix = _ref.bsPrefix,
|
|
6050
5906
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6051
5907
|
className = _ref.className,
|
|
@@ -6061,7 +5917,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6061
5917
|
defaultPrefix = _ref2[1];
|
|
6062
5918
|
|
|
6063
5919
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6064
|
-
return /*#__PURE__*/
|
|
5920
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6065
5921
|
ref: ref,
|
|
6066
5922
|
htmlFor: htmlFor || controlId,
|
|
6067
5923
|
className: classnames(className, bsPrefix)
|
|
@@ -6069,7 +5925,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6069
5925
|
});
|
|
6070
5926
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
6071
5927
|
|
|
6072
|
-
var FormCheck =
|
|
5928
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
6073
5929
|
var id = _ref.id,
|
|
6074
5930
|
bsPrefix = _ref.bsPrefix,
|
|
6075
5931
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6115,7 +5971,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6115
5971
|
};
|
|
6116
5972
|
}, [controlId, custom, id]);
|
|
6117
5973
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6118
|
-
var input = /*#__PURE__*/
|
|
5974
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6119
5975
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6120
5976
|
ref: ref,
|
|
6121
5977
|
isValid: isValid,
|
|
@@ -6124,14 +5980,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6124
5980
|
disabled: disabled,
|
|
6125
5981
|
as: as
|
|
6126
5982
|
}));
|
|
6127
|
-
return /*#__PURE__*/
|
|
5983
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6128
5984
|
value: innerFormContext
|
|
6129
|
-
}, /*#__PURE__*/
|
|
5985
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6130
5986
|
style: style,
|
|
6131
5987
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6132
|
-
}, children || /*#__PURE__*/
|
|
5988
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6133
5989
|
title: title
|
|
6134
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5990
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6135
5991
|
type: isValid ? 'valid' : 'invalid',
|
|
6136
5992
|
tooltip: feedbackTooltip
|
|
6137
5993
|
}, feedback))));
|
|
@@ -6140,7 +5996,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6140
5996
|
FormCheck.Input = FormCheckInput;
|
|
6141
5997
|
FormCheck.Label = FormCheckLabel;
|
|
6142
5998
|
|
|
6143
|
-
var FormFileInput =
|
|
5999
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6144
6000
|
var id = _ref.id,
|
|
6145
6001
|
bsPrefix = _ref.bsPrefix,
|
|
6146
6002
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6163,7 +6019,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6163
6019
|
defaultPrefix = _ref2[1];
|
|
6164
6020
|
|
|
6165
6021
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6166
|
-
return /*#__PURE__*/
|
|
6022
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6167
6023
|
ref: ref,
|
|
6168
6024
|
id: id || controlId,
|
|
6169
6025
|
type: type,
|
|
@@ -6173,7 +6029,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6173
6029
|
});
|
|
6174
6030
|
FormFileInput.displayName = 'FormFileInput';
|
|
6175
6031
|
|
|
6176
|
-
var FormFileLabel =
|
|
6032
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6177
6033
|
var bsPrefix = _ref.bsPrefix,
|
|
6178
6034
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6179
6035
|
className = _ref.className,
|
|
@@ -6189,7 +6045,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6189
6045
|
defaultPrefix = _ref2[1];
|
|
6190
6046
|
|
|
6191
6047
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6192
|
-
return /*#__PURE__*/
|
|
6048
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6193
6049
|
ref: ref,
|
|
6194
6050
|
htmlFor: htmlFor || controlId,
|
|
6195
6051
|
className: classnames(className, bsPrefix),
|
|
@@ -6198,7 +6054,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6198
6054
|
});
|
|
6199
6055
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6200
6056
|
|
|
6201
|
-
var FormFile =
|
|
6057
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6202
6058
|
var id = _ref.id,
|
|
6203
6059
|
bsPrefix = _ref.bsPrefix,
|
|
6204
6060
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6241,7 +6097,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6241
6097
|
};
|
|
6242
6098
|
}, [controlId, custom, id]);
|
|
6243
6099
|
var hasLabel = label != null && label !== false && !children;
|
|
6244
|
-
var input = /*#__PURE__*/
|
|
6100
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6245
6101
|
ref: ref,
|
|
6246
6102
|
isValid: isValid,
|
|
6247
6103
|
isInvalid: isInvalid,
|
|
@@ -6249,14 +6105,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6249
6105
|
as: inputAs,
|
|
6250
6106
|
lang: lang
|
|
6251
6107
|
}));
|
|
6252
|
-
return /*#__PURE__*/
|
|
6108
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6253
6109
|
value: innerFormContext
|
|
6254
|
-
}, /*#__PURE__*/
|
|
6110
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6255
6111
|
style: style,
|
|
6256
6112
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6257
|
-
}, children || /*#__PURE__*/
|
|
6113
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6258
6114
|
"data-browse": dataBrowse
|
|
6259
|
-
}, label)) : /*#__PURE__*/
|
|
6115
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6260
6116
|
type: isValid ? 'valid' : 'invalid',
|
|
6261
6117
|
tooltip: feedbackTooltip
|
|
6262
6118
|
}, feedback))));
|
|
@@ -6265,7 +6121,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6265
6121
|
FormFile.Input = FormFileInput;
|
|
6266
6122
|
FormFile.Label = FormFileLabel;
|
|
6267
6123
|
|
|
6268
|
-
var FormControl =
|
|
6124
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6269
6125
|
var bsPrefix = _ref.bsPrefix,
|
|
6270
6126
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6271
6127
|
type = _ref.type,
|
|
@@ -6317,7 +6173,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6317
6173
|
}
|
|
6318
6174
|
|
|
6319
6175
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6320
|
-
return /*#__PURE__*/
|
|
6176
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6321
6177
|
type: type,
|
|
6322
6178
|
size: htmlSize,
|
|
6323
6179
|
ref: ref,
|
|
@@ -6331,7 +6187,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6331
6187
|
Feedback: Feedback
|
|
6332
6188
|
});
|
|
6333
6189
|
|
|
6334
|
-
var FormGroup =
|
|
6190
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6335
6191
|
var bsPrefix = _ref.bsPrefix,
|
|
6336
6192
|
className = _ref.className,
|
|
6337
6193
|
children = _ref.children,
|
|
@@ -6346,20 +6202,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6346
6202
|
controlId: controlId
|
|
6347
6203
|
};
|
|
6348
6204
|
}, [controlId]);
|
|
6349
|
-
return /*#__PURE__*/
|
|
6205
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6350
6206
|
value: context
|
|
6351
|
-
}, /*#__PURE__*/
|
|
6207
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6352
6208
|
ref: ref,
|
|
6353
6209
|
className: classnames(className, bsPrefix)
|
|
6354
6210
|
}), children));
|
|
6355
6211
|
});
|
|
6356
6212
|
FormGroup.displayName = 'FormGroup';
|
|
6357
6213
|
|
|
6358
|
-
var defaultProps$
|
|
6214
|
+
var defaultProps$h = {
|
|
6359
6215
|
column: false,
|
|
6360
6216
|
srOnly: false
|
|
6361
6217
|
};
|
|
6362
|
-
var FormLabel =
|
|
6218
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6363
6219
|
var _ref$as = _ref.as,
|
|
6364
6220
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6365
6221
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6378,7 +6234,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6378
6234
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6379
6235
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6380
6236
|
htmlFor = htmlFor || controlId;
|
|
6381
|
-
if (column) return /*#__PURE__*/
|
|
6237
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6382
6238
|
as: "label",
|
|
6383
6239
|
className: classes,
|
|
6384
6240
|
htmlFor: htmlFor
|
|
@@ -6386,7 +6242,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6386
6242
|
return (
|
|
6387
6243
|
/*#__PURE__*/
|
|
6388
6244
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6389
|
-
|
|
6245
|
+
React.createElement(Component, _extends({
|
|
6390
6246
|
ref: ref,
|
|
6391
6247
|
className: classes,
|
|
6392
6248
|
htmlFor: htmlFor
|
|
@@ -6394,9 +6250,9 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6394
6250
|
);
|
|
6395
6251
|
});
|
|
6396
6252
|
FormLabel.displayName = 'FormLabel';
|
|
6397
|
-
FormLabel.defaultProps = defaultProps$
|
|
6253
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6398
6254
|
|
|
6399
|
-
var FormText =
|
|
6255
|
+
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6400
6256
|
function (_ref, ref) {
|
|
6401
6257
|
var bsPrefix = _ref.bsPrefix,
|
|
6402
6258
|
className = _ref.className,
|
|
@@ -6406,15 +6262,15 @@ function (_ref, ref) {
|
|
|
6406
6262
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6407
6263
|
|
|
6408
6264
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6409
|
-
return /*#__PURE__*/
|
|
6265
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6410
6266
|
ref: ref,
|
|
6411
6267
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6412
6268
|
}));
|
|
6413
6269
|
});
|
|
6414
6270
|
FormText.displayName = 'FormText';
|
|
6415
6271
|
|
|
6416
|
-
var Switch =
|
|
6417
|
-
return /*#__PURE__*/
|
|
6272
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6273
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6418
6274
|
ref: ref,
|
|
6419
6275
|
type: "switch"
|
|
6420
6276
|
}));
|
|
@@ -6424,10 +6280,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6424
6280
|
Switch.Label = FormCheck.Label;
|
|
6425
6281
|
|
|
6426
6282
|
var FormRow = createWithBsPrefix('form-row');
|
|
6427
|
-
var defaultProps$
|
|
6283
|
+
var defaultProps$i = {
|
|
6428
6284
|
inline: false
|
|
6429
6285
|
};
|
|
6430
|
-
var FormImpl =
|
|
6286
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6431
6287
|
var bsPrefix = _ref.bsPrefix,
|
|
6432
6288
|
inline = _ref.inline,
|
|
6433
6289
|
className = _ref.className,
|
|
@@ -6437,13 +6293,13 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6437
6293
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6438
6294
|
|
|
6439
6295
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6440
|
-
return /*#__PURE__*/
|
|
6296
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6441
6297
|
ref: ref,
|
|
6442
6298
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6443
6299
|
}));
|
|
6444
6300
|
});
|
|
6445
6301
|
FormImpl.displayName = 'Form';
|
|
6446
|
-
FormImpl.defaultProps = defaultProps$
|
|
6302
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6447
6303
|
FormImpl.Row = FormRow;
|
|
6448
6304
|
FormImpl.Group = FormGroup;
|
|
6449
6305
|
FormImpl.Control = FormControl$1;
|
|
@@ -6453,10 +6309,10 @@ FormImpl.Switch = Switch;
|
|
|
6453
6309
|
FormImpl.Label = FormLabel;
|
|
6454
6310
|
FormImpl.Text = FormText;
|
|
6455
6311
|
|
|
6456
|
-
var defaultProps$
|
|
6312
|
+
var defaultProps$j = {
|
|
6457
6313
|
fluid: false
|
|
6458
6314
|
};
|
|
6459
|
-
var Container =
|
|
6315
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6460
6316
|
var bsPrefix = _ref.bsPrefix,
|
|
6461
6317
|
fluid = _ref.fluid,
|
|
6462
6318
|
_ref$as = _ref.as,
|
|
@@ -6466,16 +6322,16 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6466
6322
|
|
|
6467
6323
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6468
6324
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6469
|
-
return /*#__PURE__*/
|
|
6325
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6470
6326
|
ref: ref
|
|
6471
6327
|
}, props, {
|
|
6472
6328
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6473
6329
|
}));
|
|
6474
6330
|
});
|
|
6475
6331
|
Container.displayName = 'Container';
|
|
6476
|
-
Container.defaultProps = defaultProps$
|
|
6332
|
+
Container.defaultProps = defaultProps$j;
|
|
6477
6333
|
|
|
6478
|
-
var propTypes$
|
|
6334
|
+
var propTypes$7 = {
|
|
6479
6335
|
/**
|
|
6480
6336
|
* @default 'img'
|
|
6481
6337
|
*/
|
|
@@ -6507,7 +6363,7 @@ var defaultProps$k = {
|
|
|
6507
6363
|
roundedCircle: false,
|
|
6508
6364
|
thumbnail: false
|
|
6509
6365
|
};
|
|
6510
|
-
var Image =
|
|
6366
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6511
6367
|
var bsPrefix = _ref.bsPrefix,
|
|
6512
6368
|
className = _ref.className,
|
|
6513
6369
|
fluid = _ref.fluid,
|
|
@@ -6518,7 +6374,7 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6518
6374
|
|
|
6519
6375
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6520
6376
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6521
|
-
return /*#__PURE__*/
|
|
6377
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6522
6378
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6523
6379
|
ref: ref
|
|
6524
6380
|
}, props, {
|
|
@@ -6528,22 +6384,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6528
6384
|
Image.displayName = 'Image';
|
|
6529
6385
|
Image.defaultProps = defaultProps$k;
|
|
6530
6386
|
|
|
6531
|
-
var defaultProps$
|
|
6387
|
+
var defaultProps$l = {
|
|
6532
6388
|
fluid: true
|
|
6533
6389
|
};
|
|
6534
|
-
var FigureImage =
|
|
6390
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6535
6391
|
var className = _ref.className,
|
|
6536
6392
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6537
6393
|
|
|
6538
|
-
return /*#__PURE__*/
|
|
6394
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6539
6395
|
ref: ref
|
|
6540
6396
|
}, props, {
|
|
6541
6397
|
className: classnames(className, 'figure-img')
|
|
6542
6398
|
}));
|
|
6543
6399
|
});
|
|
6544
6400
|
FigureImage.displayName = 'FigureImage';
|
|
6545
|
-
FigureImage.propTypes = propTypes$
|
|
6546
|
-
FigureImage.defaultProps = defaultProps$
|
|
6401
|
+
FigureImage.propTypes = propTypes$7;
|
|
6402
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6547
6403
|
|
|
6548
6404
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6549
6405
|
Component: 'figcaption'
|
|
@@ -6562,13 +6418,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6562
6418
|
});
|
|
6563
6419
|
|
|
6564
6420
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6565
|
-
return /*#__PURE__*/
|
|
6421
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6566
6422
|
type: "checkbox"
|
|
6567
6423
|
}, props)));
|
|
6568
6424
|
};
|
|
6569
6425
|
|
|
6570
6426
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6571
|
-
return /*#__PURE__*/
|
|
6427
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6572
6428
|
type: "radio"
|
|
6573
6429
|
}, props)));
|
|
6574
6430
|
};
|
|
@@ -6581,7 +6437,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6581
6437
|
* @property {InputGroupRadio} Radio
|
|
6582
6438
|
* @property {InputGroupCheckbox} Checkbox
|
|
6583
6439
|
*/
|
|
6584
|
-
var InputGroup =
|
|
6440
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6585
6441
|
var bsPrefix = _ref.bsPrefix,
|
|
6586
6442
|
size = _ref.size,
|
|
6587
6443
|
className = _ref.className,
|
|
@@ -6590,7 +6446,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6590
6446
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6591
6447
|
|
|
6592
6448
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6593
|
-
return /*#__PURE__*/
|
|
6449
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6594
6450
|
ref: ref
|
|
6595
6451
|
}, props, {
|
|
6596
6452
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6598,7 +6454,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6598
6454
|
});
|
|
6599
6455
|
InputGroup.displayName = 'InputGroup';
|
|
6600
6456
|
|
|
6601
|
-
_extends({}, InputGroup, {
|
|
6457
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6602
6458
|
Text: InputGroupText,
|
|
6603
6459
|
Radio: InputGroupRadio,
|
|
6604
6460
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6606,10 +6462,10 @@ _extends({}, InputGroup, {
|
|
|
6606
6462
|
Prepend: InputGroupPrepend
|
|
6607
6463
|
});
|
|
6608
6464
|
|
|
6609
|
-
var defaultProps$
|
|
6465
|
+
var defaultProps$m = {
|
|
6610
6466
|
fluid: false
|
|
6611
6467
|
};
|
|
6612
|
-
var Jumbotron =
|
|
6468
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6613
6469
|
var _classes;
|
|
6614
6470
|
|
|
6615
6471
|
var _ref$as = _ref.as,
|
|
@@ -6621,21 +6477,21 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6621
6477
|
|
|
6622
6478
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6623
6479
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6624
|
-
return /*#__PURE__*/
|
|
6480
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6625
6481
|
ref: ref
|
|
6626
6482
|
}, props, {
|
|
6627
6483
|
className: classnames(className, classes)
|
|
6628
6484
|
}));
|
|
6629
6485
|
});
|
|
6630
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6486
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6631
6487
|
Jumbotron.displayName = 'Jumbotron';
|
|
6632
6488
|
|
|
6633
|
-
var TabContext =
|
|
6489
|
+
var TabContext = React.createContext(null);
|
|
6634
6490
|
|
|
6635
6491
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6636
|
-
var noop$
|
|
6492
|
+
var noop$4 = function noop() {};
|
|
6637
6493
|
|
|
6638
|
-
var AbstractNav =
|
|
6494
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6639
6495
|
var _ref$as = _ref.as,
|
|
6640
6496
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6641
6497
|
onSelect = _ref.onSelect,
|
|
@@ -6716,27 +6572,27 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6716
6572
|
needsRefocusRef.current = false;
|
|
6717
6573
|
});
|
|
6718
6574
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6719
|
-
return /*#__PURE__*/
|
|
6575
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6720
6576
|
value: handleSelect
|
|
6721
|
-
}, /*#__PURE__*/
|
|
6577
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6722
6578
|
value: {
|
|
6723
6579
|
role: role,
|
|
6724
6580
|
// used by NavLink to determine it's role
|
|
6725
6581
|
activeKey: makeEventKey(activeKey),
|
|
6726
|
-
getControlledId: getControlledId || noop$
|
|
6727
|
-
getControllerId: getControllerId || noop$
|
|
6582
|
+
getControlledId: getControlledId || noop$4,
|
|
6583
|
+
getControllerId: getControllerId || noop$4
|
|
6728
6584
|
}
|
|
6729
|
-
}, /*#__PURE__*/
|
|
6585
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6730
6586
|
onKeyDown: handleKeyDown,
|
|
6731
6587
|
ref: mergedRef,
|
|
6732
6588
|
role: role
|
|
6733
6589
|
}))));
|
|
6734
6590
|
});
|
|
6735
6591
|
|
|
6736
|
-
var defaultProps$
|
|
6592
|
+
var defaultProps$n = {
|
|
6737
6593
|
disabled: false
|
|
6738
6594
|
};
|
|
6739
|
-
var AbstractNavItem =
|
|
6595
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6740
6596
|
var active = _ref.active,
|
|
6741
6597
|
className = _ref.className,
|
|
6742
6598
|
eventKey = _ref.eventKey,
|
|
@@ -6773,20 +6629,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6773
6629
|
if (onSelect) onSelect(navKey, e);
|
|
6774
6630
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6775
6631
|
});
|
|
6776
|
-
return /*#__PURE__*/
|
|
6632
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6777
6633
|
ref: ref,
|
|
6778
6634
|
onClick: handleOnclick,
|
|
6779
6635
|
className: classnames(className, isActive && 'active')
|
|
6780
6636
|
}));
|
|
6781
6637
|
});
|
|
6782
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6638
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6783
6639
|
|
|
6784
|
-
var defaultProps$
|
|
6640
|
+
var defaultProps$o = {
|
|
6785
6641
|
variant: undefined,
|
|
6786
6642
|
active: false,
|
|
6787
6643
|
disabled: false
|
|
6788
6644
|
};
|
|
6789
|
-
var ListGroupItem =
|
|
6645
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6790
6646
|
var bsPrefix = _ref.bsPrefix,
|
|
6791
6647
|
active = _ref.active,
|
|
6792
6648
|
disabled = _ref.disabled,
|
|
@@ -6808,7 +6664,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6808
6664
|
|
|
6809
6665
|
if (onClick) onClick(event);
|
|
6810
6666
|
}, [disabled, onClick]);
|
|
6811
|
-
return /*#__PURE__*/
|
|
6667
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6812
6668
|
ref: ref
|
|
6813
6669
|
}, props, {
|
|
6814
6670
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6819,14 +6675,14 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6819
6675
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6820
6676
|
}));
|
|
6821
6677
|
});
|
|
6822
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6678
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6823
6679
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6824
6680
|
|
|
6825
|
-
var defaultProps$
|
|
6681
|
+
var defaultProps$p = {
|
|
6826
6682
|
variant: undefined,
|
|
6827
6683
|
horizontal: undefined
|
|
6828
6684
|
};
|
|
6829
|
-
var ListGroup =
|
|
6685
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6830
6686
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6831
6687
|
activeKey: 'onSelect'
|
|
6832
6688
|
}),
|
|
@@ -6848,19 +6704,19 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6848
6704
|
}
|
|
6849
6705
|
|
|
6850
6706
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6851
|
-
return /*#__PURE__*/
|
|
6707
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6852
6708
|
ref: ref
|
|
6853
6709
|
}, controlledProps, {
|
|
6854
6710
|
as: as,
|
|
6855
6711
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6856
6712
|
}));
|
|
6857
6713
|
});
|
|
6858
|
-
ListGroup.defaultProps = defaultProps$
|
|
6714
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6859
6715
|
ListGroup.displayName = 'ListGroup';
|
|
6860
6716
|
ListGroup.Item = ListGroupItem;
|
|
6861
6717
|
|
|
6862
6718
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6863
|
-
var Media =
|
|
6719
|
+
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6864
6720
|
function (_ref, ref) {
|
|
6865
6721
|
var bsPrefix = _ref.bsPrefix,
|
|
6866
6722
|
className = _ref.className,
|
|
@@ -6869,7 +6725,7 @@ function (_ref, ref) {
|
|
|
6869
6725
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6870
6726
|
|
|
6871
6727
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6872
|
-
return /*#__PURE__*/
|
|
6728
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6873
6729
|
ref: ref,
|
|
6874
6730
|
className: classnames(className, prefix)
|
|
6875
6731
|
}));
|
|
@@ -6904,7 +6760,7 @@ function scrollbarSize(recalc) {
|
|
|
6904
6760
|
|
|
6905
6761
|
function activeElement(doc) {
|
|
6906
6762
|
if (doc === void 0) {
|
|
6907
|
-
doc = ownerDocument
|
|
6763
|
+
doc = ownerDocument();
|
|
6908
6764
|
}
|
|
6909
6765
|
|
|
6910
6766
|
// Support: IE 9 only
|
|
@@ -6954,7 +6810,7 @@ function isBody(node) {
|
|
|
6954
6810
|
}
|
|
6955
6811
|
|
|
6956
6812
|
function bodyIsOverflowing(node) {
|
|
6957
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6813
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6958
6814
|
var win = isWindow(node) || doc.defaultView;
|
|
6959
6815
|
return doc.body.clientWidth < win.innerWidth;
|
|
6960
6816
|
}
|
|
@@ -7166,7 +7022,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7166
7022
|
var _ref;
|
|
7167
7023
|
|
|
7168
7024
|
if (typeof document === 'undefined') return null;
|
|
7169
|
-
if (ref == null) return ownerDocument
|
|
7025
|
+
if (ref == null) return ownerDocument().body;
|
|
7170
7026
|
if (typeof ref === 'function') ref = ref();
|
|
7171
7027
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7172
7028
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7199,11 +7055,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7199
7055
|
return resolvedRef;
|
|
7200
7056
|
}
|
|
7201
7057
|
|
|
7202
|
-
var manager
|
|
7058
|
+
var manager;
|
|
7203
7059
|
|
|
7204
7060
|
function getManager() {
|
|
7205
|
-
if (!manager
|
|
7206
|
-
return manager
|
|
7061
|
+
if (!manager) manager = new ModalManager();
|
|
7062
|
+
return manager;
|
|
7207
7063
|
}
|
|
7208
7064
|
|
|
7209
7065
|
function useModalManager(provided) {
|
|
@@ -7231,7 +7087,7 @@ function useModalManager(provided) {
|
|
|
7231
7087
|
});
|
|
7232
7088
|
}
|
|
7233
7089
|
|
|
7234
|
-
var Modal
|
|
7090
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7235
7091
|
var _ref$show = _ref.show,
|
|
7236
7092
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7237
7093
|
_ref$role = _ref.role,
|
|
@@ -7257,7 +7113,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7257
7113
|
renderDialog = _ref.renderDialog,
|
|
7258
7114
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7259
7115
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7260
|
-
return /*#__PURE__*/
|
|
7116
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7261
7117
|
} : _ref$renderBackdrop,
|
|
7262
7118
|
providedManager = _ref.manager,
|
|
7263
7119
|
containerRef = _ref.container,
|
|
@@ -7315,7 +7171,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7315
7171
|
if (autoFocus) {
|
|
7316
7172
|
var currentActiveElement = activeElement(document);
|
|
7317
7173
|
|
|
7318
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7174
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7319
7175
|
lastFocusRef.current = currentActiveElement;
|
|
7320
7176
|
modal.dialog.focus();
|
|
7321
7177
|
}
|
|
@@ -7361,7 +7217,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7361
7217
|
|
|
7362
7218
|
var currentActiveElement = activeElement();
|
|
7363
7219
|
|
|
7364
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7220
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7365
7221
|
modal.dialog.focus();
|
|
7366
7222
|
}
|
|
7367
7223
|
});
|
|
@@ -7415,12 +7271,12 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7415
7271
|
tabIndex: -1
|
|
7416
7272
|
});
|
|
7417
7273
|
|
|
7418
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7274
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7419
7275
|
role: 'document'
|
|
7420
7276
|
}));
|
|
7421
7277
|
|
|
7422
7278
|
if (Transition) {
|
|
7423
|
-
dialog = /*#__PURE__*/
|
|
7279
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7424
7280
|
appear: true,
|
|
7425
7281
|
unmountOnExit: true,
|
|
7426
7282
|
"in": !!show,
|
|
@@ -7443,16 +7299,16 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7443
7299
|
});
|
|
7444
7300
|
|
|
7445
7301
|
if (BackdropTransition) {
|
|
7446
|
-
backdropElement = /*#__PURE__*/
|
|
7302
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7447
7303
|
appear: true,
|
|
7448
7304
|
"in": !!show
|
|
7449
7305
|
}, backdropElement);
|
|
7450
7306
|
}
|
|
7451
7307
|
}
|
|
7452
7308
|
|
|
7453
|
-
return /*#__PURE__*/
|
|
7309
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7454
7310
|
});
|
|
7455
|
-
var propTypes$
|
|
7311
|
+
var propTypes$8 = {
|
|
7456
7312
|
/**
|
|
7457
7313
|
* Set the visibility of the Modal
|
|
7458
7314
|
*/
|
|
@@ -7608,9 +7464,9 @@ var propTypes$2 = {
|
|
|
7608
7464
|
*/
|
|
7609
7465
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7610
7466
|
};
|
|
7611
|
-
Modal
|
|
7612
|
-
Modal
|
|
7613
|
-
var BaseModal = Object.assign(Modal
|
|
7467
|
+
Modal.displayName = 'Modal';
|
|
7468
|
+
Modal.propTypes = propTypes$8;
|
|
7469
|
+
var BaseModal = Object.assign(Modal, {
|
|
7614
7470
|
Manager: ModalManager
|
|
7615
7471
|
});
|
|
7616
7472
|
|
|
@@ -7689,12 +7545,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7689
7545
|
|
|
7690
7546
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7691
7547
|
|
|
7692
|
-
var ModalContext =
|
|
7548
|
+
var ModalContext = React.createContext({
|
|
7693
7549
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7694
7550
|
onHide: function onHide() {}
|
|
7695
7551
|
});
|
|
7696
7552
|
|
|
7697
|
-
var ModalDialog =
|
|
7553
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7698
7554
|
var bsPrefix = _ref.bsPrefix,
|
|
7699
7555
|
className = _ref.className,
|
|
7700
7556
|
contentClassName = _ref.contentClassName,
|
|
@@ -7706,10 +7562,10 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7706
7562
|
|
|
7707
7563
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7708
7564
|
var dialogClass = bsPrefix + "-dialog";
|
|
7709
|
-
return /*#__PURE__*/
|
|
7565
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7710
7566
|
ref: ref,
|
|
7711
7567
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7712
|
-
}), /*#__PURE__*/
|
|
7568
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7713
7569
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7714
7570
|
}, children));
|
|
7715
7571
|
});
|
|
@@ -7717,11 +7573,11 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7717
7573
|
|
|
7718
7574
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7719
7575
|
|
|
7720
|
-
var defaultProps$
|
|
7576
|
+
var defaultProps$q = {
|
|
7721
7577
|
closeLabel: 'Close',
|
|
7722
7578
|
closeButton: false
|
|
7723
7579
|
};
|
|
7724
|
-
var ModalHeader =
|
|
7580
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7725
7581
|
var bsPrefix = _ref.bsPrefix,
|
|
7726
7582
|
closeLabel = _ref.closeLabel,
|
|
7727
7583
|
closeButton = _ref.closeButton,
|
|
@@ -7736,25 +7592,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7736
7592
|
if (context) context.onHide();
|
|
7737
7593
|
if (onHide) onHide();
|
|
7738
7594
|
});
|
|
7739
|
-
return /*#__PURE__*/
|
|
7595
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7740
7596
|
ref: ref
|
|
7741
7597
|
}, props, {
|
|
7742
7598
|
className: classnames(className, bsPrefix)
|
|
7743
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7599
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7744
7600
|
label: closeLabel,
|
|
7745
7601
|
onClick: handleClick
|
|
7746
7602
|
}));
|
|
7747
7603
|
});
|
|
7748
7604
|
ModalHeader.displayName = 'ModalHeader';
|
|
7749
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7605
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7750
7606
|
|
|
7751
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7607
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7752
7608
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7753
|
-
Component: DivStyledAsH4
|
|
7609
|
+
Component: DivStyledAsH4$1
|
|
7754
7610
|
});
|
|
7755
7611
|
|
|
7756
|
-
var manager;
|
|
7757
|
-
var defaultProps$
|
|
7612
|
+
var manager$1;
|
|
7613
|
+
var defaultProps$r = {
|
|
7758
7614
|
show: false,
|
|
7759
7615
|
backdrop: true,
|
|
7760
7616
|
keyboard: true,
|
|
@@ -7767,16 +7623,16 @@ var defaultProps$d = {
|
|
|
7767
7623
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7768
7624
|
|
|
7769
7625
|
function DialogTransition(props) {
|
|
7770
|
-
return /*#__PURE__*/
|
|
7626
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7771
7627
|
}
|
|
7772
7628
|
|
|
7773
7629
|
function BackdropTransition(props) {
|
|
7774
|
-
return /*#__PURE__*/
|
|
7630
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7775
7631
|
}
|
|
7776
7632
|
/* eslint-enable no-use-before-define */
|
|
7777
7633
|
|
|
7778
7634
|
|
|
7779
|
-
var Modal =
|
|
7635
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7780
7636
|
var bsPrefix = _ref.bsPrefix,
|
|
7781
7637
|
className = _ref.className,
|
|
7782
7638
|
style = _ref.style,
|
|
@@ -7842,14 +7698,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7842
7698
|
|
|
7843
7699
|
function getModalManager() {
|
|
7844
7700
|
if (propsManager) return propsManager;
|
|
7845
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7846
|
-
return manager;
|
|
7701
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7702
|
+
return manager$1;
|
|
7847
7703
|
}
|
|
7848
7704
|
|
|
7849
7705
|
function updateDialogStyle(node) {
|
|
7850
7706
|
if (!canUseDOM) return;
|
|
7851
7707
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7852
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7708
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7853
7709
|
setStyle({
|
|
7854
7710
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7855
7711
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7971,7 +7827,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7971
7827
|
};
|
|
7972
7828
|
|
|
7973
7829
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7974
|
-
return /*#__PURE__*/
|
|
7830
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7975
7831
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7976
7832
|
}));
|
|
7977
7833
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7984,7 +7840,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7984
7840
|
}
|
|
7985
7841
|
|
|
7986
7842
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7987
|
-
return /*#__PURE__*/
|
|
7843
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7988
7844
|
role: "dialog"
|
|
7989
7845
|
}, dialogProps, {
|
|
7990
7846
|
style: baseModalStyle,
|
|
@@ -7992,7 +7848,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7992
7848
|
onClick: backdrop ? handleClick : undefined,
|
|
7993
7849
|
onMouseUp: handleMouseUp,
|
|
7994
7850
|
"aria-labelledby": ariaLabelledby
|
|
7995
|
-
}), /*#__PURE__*/
|
|
7851
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7996
7852
|
role: "document",
|
|
7997
7853
|
onMouseDown: handleDialogMouseDown,
|
|
7998
7854
|
className: dialogClassName,
|
|
@@ -8000,9 +7856,9 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8000
7856
|
}), children));
|
|
8001
7857
|
};
|
|
8002
7858
|
|
|
8003
|
-
return /*#__PURE__*/
|
|
7859
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
8004
7860
|
value: modalContext
|
|
8005
|
-
}, /*#__PURE__*/
|
|
7861
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
8006
7862
|
show: show,
|
|
8007
7863
|
ref: setModalRef,
|
|
8008
7864
|
backdrop: backdrop,
|
|
@@ -8030,17 +7886,17 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8030
7886
|
renderDialog: renderDialog
|
|
8031
7887
|
}));
|
|
8032
7888
|
});
|
|
8033
|
-
Modal.displayName = 'Modal';
|
|
8034
|
-
Modal.defaultProps = defaultProps$
|
|
8035
|
-
Modal.Body = ModalBody;
|
|
8036
|
-
Modal.Header = ModalHeader;
|
|
8037
|
-
Modal.Title = ModalTitle;
|
|
8038
|
-
Modal.Footer = ModalFooter;
|
|
8039
|
-
Modal.Dialog = ModalDialog;
|
|
8040
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8041
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8042
|
-
|
|
8043
|
-
var NavItem =
|
|
7889
|
+
Modal$1.displayName = 'Modal';
|
|
7890
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7891
|
+
Modal$1.Body = ModalBody;
|
|
7892
|
+
Modal$1.Header = ModalHeader;
|
|
7893
|
+
Modal$1.Title = ModalTitle;
|
|
7894
|
+
Modal$1.Footer = ModalFooter;
|
|
7895
|
+
Modal$1.Dialog = ModalDialog;
|
|
7896
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7897
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7898
|
+
|
|
7899
|
+
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8044
7900
|
function (_ref, ref) {
|
|
8045
7901
|
var bsPrefix = _ref.bsPrefix,
|
|
8046
7902
|
className = _ref.className,
|
|
@@ -8050,18 +7906,18 @@ function (_ref, ref) {
|
|
|
8050
7906
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8051
7907
|
|
|
8052
7908
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8053
|
-
return /*#__PURE__*/
|
|
7909
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8054
7910
|
ref: ref,
|
|
8055
7911
|
className: classnames(className, bsPrefix)
|
|
8056
7912
|
}), children);
|
|
8057
7913
|
});
|
|
8058
7914
|
NavItem.displayName = 'NavItem';
|
|
8059
7915
|
|
|
8060
|
-
var defaultProps$
|
|
7916
|
+
var defaultProps$s = {
|
|
8061
7917
|
disabled: false,
|
|
8062
7918
|
as: SafeAnchor
|
|
8063
7919
|
};
|
|
8064
|
-
var NavLink =
|
|
7920
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
8065
7921
|
var bsPrefix = _ref.bsPrefix,
|
|
8066
7922
|
disabled = _ref.disabled,
|
|
8067
7923
|
className = _ref.className,
|
|
@@ -8072,7 +7928,7 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8072
7928
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8073
7929
|
|
|
8074
7930
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8075
|
-
return /*#__PURE__*/
|
|
7931
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
8076
7932
|
href: href,
|
|
8077
7933
|
ref: ref,
|
|
8078
7934
|
eventKey: eventKey,
|
|
@@ -8083,13 +7939,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8083
7939
|
}));
|
|
8084
7940
|
});
|
|
8085
7941
|
NavLink.displayName = 'NavLink';
|
|
8086
|
-
NavLink.defaultProps = defaultProps$
|
|
7942
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8087
7943
|
|
|
8088
|
-
var defaultProps$
|
|
7944
|
+
var defaultProps$t = {
|
|
8089
7945
|
justify: false,
|
|
8090
7946
|
fill: false
|
|
8091
7947
|
};
|
|
8092
|
-
var Nav =
|
|
7948
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8093
7949
|
var _classNames;
|
|
8094
7950
|
|
|
8095
7951
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8111,7 +7967,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8111
7967
|
var navbarBsPrefix;
|
|
8112
7968
|
var cardHeaderBsPrefix;
|
|
8113
7969
|
var isNavbar = false;
|
|
8114
|
-
var navbarContext = useContext(context);
|
|
7970
|
+
var navbarContext = useContext(context$2);
|
|
8115
7971
|
var cardContext = useContext(context$1);
|
|
8116
7972
|
|
|
8117
7973
|
if (navbarContext) {
|
|
@@ -8121,7 +7977,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8121
7977
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8122
7978
|
}
|
|
8123
7979
|
|
|
8124
|
-
return /*#__PURE__*/
|
|
7980
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8125
7981
|
as: as,
|
|
8126
7982
|
ref: ref,
|
|
8127
7983
|
activeKey: activeKey,
|
|
@@ -8129,11 +7985,11 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8129
7985
|
}, props), children);
|
|
8130
7986
|
});
|
|
8131
7987
|
Nav.displayName = 'Nav';
|
|
8132
|
-
Nav.defaultProps = defaultProps$
|
|
7988
|
+
Nav.defaultProps = defaultProps$t;
|
|
8133
7989
|
Nav.Item = NavItem;
|
|
8134
7990
|
Nav.Link = NavLink;
|
|
8135
7991
|
|
|
8136
|
-
var NavbarBrand =
|
|
7992
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8137
7993
|
var bsPrefix = _ref.bsPrefix,
|
|
8138
7994
|
className = _ref.className,
|
|
8139
7995
|
as = _ref.as,
|
|
@@ -8141,23 +7997,23 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8141
7997
|
|
|
8142
7998
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8143
7999
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8144
|
-
return /*#__PURE__*/
|
|
8000
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8145
8001
|
ref: ref,
|
|
8146
8002
|
className: classnames(className, bsPrefix)
|
|
8147
8003
|
}));
|
|
8148
8004
|
});
|
|
8149
8005
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8150
8006
|
|
|
8151
|
-
var NavbarCollapse =
|
|
8007
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8152
8008
|
var children = _ref.children,
|
|
8153
8009
|
bsPrefix = _ref.bsPrefix,
|
|
8154
8010
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8155
8011
|
|
|
8156
8012
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8157
|
-
return /*#__PURE__*/
|
|
8158
|
-
return /*#__PURE__*/
|
|
8013
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8014
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8159
8015
|
in: !!(context && context.expanded)
|
|
8160
|
-
}, props), /*#__PURE__*/
|
|
8016
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8161
8017
|
ref: ref,
|
|
8162
8018
|
className: bsPrefix
|
|
8163
8019
|
}, children));
|
|
@@ -8165,10 +8021,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8165
8021
|
});
|
|
8166
8022
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8167
8023
|
|
|
8168
|
-
var defaultProps$
|
|
8024
|
+
var defaultProps$u = {
|
|
8169
8025
|
label: 'Toggle navigation'
|
|
8170
8026
|
};
|
|
8171
|
-
var NavbarToggle =
|
|
8027
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8172
8028
|
var bsPrefix = _ref.bsPrefix,
|
|
8173
8029
|
className = _ref.className,
|
|
8174
8030
|
children = _ref.children,
|
|
@@ -8180,7 +8036,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8180
8036
|
|
|
8181
8037
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8182
8038
|
|
|
8183
|
-
var _ref2 = useContext(context) || {},
|
|
8039
|
+
var _ref2 = useContext(context$2) || {},
|
|
8184
8040
|
onToggle = _ref2.onToggle,
|
|
8185
8041
|
expanded = _ref2.expanded;
|
|
8186
8042
|
|
|
@@ -8193,27 +8049,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8193
8049
|
props.type = 'button';
|
|
8194
8050
|
}
|
|
8195
8051
|
|
|
8196
|
-
return /*#__PURE__*/
|
|
8052
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8197
8053
|
ref: ref,
|
|
8198
8054
|
onClick: handleClick,
|
|
8199
8055
|
"aria-label": label,
|
|
8200
8056
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8201
|
-
}), children || /*#__PURE__*/
|
|
8057
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8202
8058
|
className: bsPrefix + "-icon"
|
|
8203
8059
|
}));
|
|
8204
8060
|
});
|
|
8205
8061
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8206
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8062
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8207
8063
|
|
|
8208
8064
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8209
8065
|
Component: 'span'
|
|
8210
8066
|
});
|
|
8211
|
-
var defaultProps$
|
|
8067
|
+
var defaultProps$v = {
|
|
8212
8068
|
expand: true,
|
|
8213
8069
|
variant: 'light',
|
|
8214
8070
|
collapseOnSelect: false
|
|
8215
8071
|
};
|
|
8216
|
-
var Navbar =
|
|
8072
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8217
8073
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8218
8074
|
expanded: 'onToggle'
|
|
8219
8075
|
}),
|
|
@@ -8261,24 +8117,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8261
8117
|
expanded: !!expanded
|
|
8262
8118
|
};
|
|
8263
8119
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8264
|
-
return /*#__PURE__*/
|
|
8120
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8265
8121
|
value: navbarContext
|
|
8266
|
-
}, /*#__PURE__*/
|
|
8122
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8267
8123
|
value: handleCollapse
|
|
8268
|
-
}, /*#__PURE__*/
|
|
8124
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8269
8125
|
ref: ref
|
|
8270
8126
|
}, controlledProps, {
|
|
8271
8127
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8272
8128
|
}), children)));
|
|
8273
8129
|
});
|
|
8274
|
-
Navbar.defaultProps = defaultProps$
|
|
8130
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8275
8131
|
Navbar.displayName = 'Navbar';
|
|
8276
8132
|
Navbar.Brand = NavbarBrand;
|
|
8277
8133
|
Navbar.Toggle = NavbarToggle;
|
|
8278
8134
|
Navbar.Collapse = NavbarCollapse;
|
|
8279
8135
|
Navbar.Text = NavbarText;
|
|
8280
8136
|
|
|
8281
|
-
var propTypes$
|
|
8137
|
+
var propTypes$9 = {
|
|
8282
8138
|
/**
|
|
8283
8139
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8284
8140
|
* @type {string|number}
|
|
@@ -8314,7 +8170,7 @@ var propTypes$1 = {
|
|
|
8314
8170
|
/** @ignore */
|
|
8315
8171
|
bsPrefix: PropTypes.string
|
|
8316
8172
|
};
|
|
8317
|
-
var NavDropdown =
|
|
8173
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8318
8174
|
var id = _ref.id,
|
|
8319
8175
|
title = _ref.title,
|
|
8320
8176
|
children = _ref.children,
|
|
@@ -8326,35 +8182,35 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8326
8182
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8327
8183
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8328
8184
|
|
|
8329
|
-
return /*#__PURE__*/
|
|
8185
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8330
8186
|
ref: ref
|
|
8331
8187
|
}, props, {
|
|
8332
8188
|
as: NavItem
|
|
8333
|
-
}), /*#__PURE__*/
|
|
8189
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8334
8190
|
id: id,
|
|
8335
8191
|
eventKey: null,
|
|
8336
8192
|
active: active,
|
|
8337
8193
|
disabled: disabled,
|
|
8338
8194
|
childBsPrefix: bsPrefix,
|
|
8339
8195
|
as: NavLink
|
|
8340
|
-
}, title), /*#__PURE__*/
|
|
8196
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8341
8197
|
role: menuRole,
|
|
8342
8198
|
renderOnMount: renderMenuOnMount,
|
|
8343
8199
|
rootCloseEvent: rootCloseEvent
|
|
8344
8200
|
}, children));
|
|
8345
8201
|
});
|
|
8346
8202
|
NavDropdown.displayName = 'NavDropdown';
|
|
8347
|
-
NavDropdown.propTypes = propTypes$
|
|
8348
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8349
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8350
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8351
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8203
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8204
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8205
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8206
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8207
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8352
8208
|
|
|
8353
8209
|
/**
|
|
8354
8210
|
* Built on top of `Popper.js`, the overlay component is
|
|
8355
8211
|
* great for custom tooltip overlays.
|
|
8356
8212
|
*/
|
|
8357
|
-
var Overlay = /*#__PURE__*/
|
|
8213
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8358
8214
|
var flip = props.flip,
|
|
8359
8215
|
offset = props.offset,
|
|
8360
8216
|
placement = props.placement,
|
|
@@ -8437,7 +8293,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8437
8293
|
onEnter = props.onEnter,
|
|
8438
8294
|
onEntering = props.onEntering,
|
|
8439
8295
|
onEntered = props.onEntered;
|
|
8440
|
-
child = /*#__PURE__*/
|
|
8296
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8441
8297
|
"in": props.show,
|
|
8442
8298
|
appear: true,
|
|
8443
8299
|
onExit: onExit,
|
|
@@ -8589,7 +8445,7 @@ Overlay.propTypes = {
|
|
|
8589
8445
|
onExited: PropTypes.func
|
|
8590
8446
|
};
|
|
8591
8447
|
|
|
8592
|
-
/*#__PURE__*/
|
|
8448
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8593
8449
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8594
8450
|
|
|
8595
8451
|
function RefHolder() {
|
|
@@ -8603,14 +8459,14 @@ Overlay.propTypes = {
|
|
|
8603
8459
|
};
|
|
8604
8460
|
|
|
8605
8461
|
return RefHolder;
|
|
8606
|
-
}
|
|
8462
|
+
}(React.Component);
|
|
8607
8463
|
|
|
8608
|
-
var defaultProps$
|
|
8464
|
+
var defaultProps$w = {
|
|
8609
8465
|
active: false,
|
|
8610
8466
|
disabled: false,
|
|
8611
8467
|
activeLabel: '(current)'
|
|
8612
8468
|
};
|
|
8613
|
-
var PageItem =
|
|
8469
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8614
8470
|
var active = _ref.active,
|
|
8615
8471
|
disabled = _ref.disabled,
|
|
8616
8472
|
className = _ref.className,
|
|
@@ -8620,21 +8476,21 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8620
8476
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8621
8477
|
|
|
8622
8478
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8623
|
-
return /*#__PURE__*/
|
|
8479
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8624
8480
|
ref: ref,
|
|
8625
8481
|
style: style,
|
|
8626
8482
|
className: classnames(className, 'page-item', {
|
|
8627
8483
|
active: active,
|
|
8628
8484
|
disabled: disabled
|
|
8629
8485
|
})
|
|
8630
|
-
}, /*#__PURE__*/
|
|
8486
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8631
8487
|
className: "page-link",
|
|
8632
8488
|
disabled: disabled
|
|
8633
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8489
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8634
8490
|
className: "sr-only"
|
|
8635
8491
|
}, activeLabel)));
|
|
8636
8492
|
});
|
|
8637
|
-
PageItem.defaultProps = defaultProps$
|
|
8493
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8638
8494
|
PageItem.displayName = 'PageItem';
|
|
8639
8495
|
|
|
8640
8496
|
function createButton(name, defaultValue, label) {
|
|
@@ -8646,9 +8502,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8646
8502
|
var children = _ref2.children,
|
|
8647
8503
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8648
8504
|
|
|
8649
|
-
return /*#__PURE__*/
|
|
8505
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8650
8506
|
"aria-hidden": "true"
|
|
8651
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8507
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8652
8508
|
className: "sr-only"
|
|
8653
8509
|
}, label));
|
|
8654
8510
|
}
|
|
@@ -8671,7 +8527,7 @@ var Last = createButton('Last', '»');
|
|
|
8671
8527
|
* @property {PageItem} Next
|
|
8672
8528
|
* @property {PageItem} Last
|
|
8673
8529
|
*/
|
|
8674
|
-
var Pagination =
|
|
8530
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8675
8531
|
var bsPrefix = _ref.bsPrefix,
|
|
8676
8532
|
className = _ref.className,
|
|
8677
8533
|
children = _ref.children,
|
|
@@ -8679,7 +8535,7 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8679
8535
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8680
8536
|
|
|
8681
8537
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8682
|
-
return /*#__PURE__*/
|
|
8538
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8683
8539
|
ref: ref
|
|
8684
8540
|
}, props, {
|
|
8685
8541
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8692,7 +8548,7 @@ Pagination.Item = PageItem;
|
|
|
8692
8548
|
Pagination.Next = Next;
|
|
8693
8549
|
Pagination.Last = Last;
|
|
8694
8550
|
|
|
8695
|
-
var PopoverTitle =
|
|
8551
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8696
8552
|
var _ref$as = _ref.as,
|
|
8697
8553
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8698
8554
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8701,14 +8557,14 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8701
8557
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8702
8558
|
|
|
8703
8559
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8704
|
-
return /*#__PURE__*/
|
|
8560
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8705
8561
|
ref: ref
|
|
8706
8562
|
}, props, {
|
|
8707
8563
|
className: classnames(bsPrefix, className)
|
|
8708
8564
|
}), children);
|
|
8709
8565
|
});
|
|
8710
8566
|
|
|
8711
|
-
var PopoverContent =
|
|
8567
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8712
8568
|
var _ref$as = _ref.as,
|
|
8713
8569
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8714
8570
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8717,50 +8573,50 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8717
8573
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8718
8574
|
|
|
8719
8575
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8720
|
-
return /*#__PURE__*/
|
|
8576
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8721
8577
|
ref: ref
|
|
8722
8578
|
}, props, {
|
|
8723
8579
|
className: classnames(className, bsPrefix)
|
|
8724
8580
|
}), children);
|
|
8725
8581
|
});
|
|
8726
8582
|
|
|
8727
|
-
var defaultProps$
|
|
8583
|
+
var defaultProps$x = {
|
|
8728
8584
|
placement: 'right'
|
|
8729
8585
|
};
|
|
8730
|
-
var Popover =
|
|
8586
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8731
8587
|
var bsPrefix = _ref.bsPrefix,
|
|
8732
8588
|
placement = _ref.placement,
|
|
8733
8589
|
className = _ref.className,
|
|
8734
8590
|
style = _ref.style,
|
|
8735
8591
|
children = _ref.children,
|
|
8736
8592
|
content = _ref.content,
|
|
8737
|
-
arrowProps = _ref.arrowProps
|
|
8738
|
-
_ref.popper
|
|
8739
|
-
_ref.show
|
|
8740
|
-
|
|
8593
|
+
arrowProps = _ref.arrowProps,
|
|
8594
|
+
_ = _ref.popper,
|
|
8595
|
+
_1 = _ref.show,
|
|
8596
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8741
8597
|
|
|
8742
8598
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8743
8599
|
|
|
8744
8600
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8745
8601
|
primaryPlacement = _ref2[0];
|
|
8746
8602
|
|
|
8747
|
-
return /*#__PURE__*/
|
|
8603
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8748
8604
|
ref: ref,
|
|
8749
8605
|
role: "tooltip",
|
|
8750
8606
|
style: style,
|
|
8751
8607
|
"x-placement": primaryPlacement,
|
|
8752
8608
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8753
|
-
}, props), /*#__PURE__*/
|
|
8609
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8754
8610
|
className: "arrow"
|
|
8755
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8611
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8756
8612
|
});
|
|
8757
|
-
Popover.defaultProps = defaultProps$
|
|
8613
|
+
Popover.defaultProps = defaultProps$x;
|
|
8758
8614
|
Popover.Title = PopoverTitle;
|
|
8759
8615
|
Popover.Content = PopoverContent;
|
|
8760
8616
|
|
|
8761
8617
|
var ROUND_PRECISION = 1000;
|
|
8762
8618
|
|
|
8763
|
-
var defaultProps$
|
|
8619
|
+
var defaultProps$y = {
|
|
8764
8620
|
min: 0,
|
|
8765
8621
|
max: 100,
|
|
8766
8622
|
animated: false,
|
|
@@ -8790,7 +8646,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8790
8646
|
bsPrefix = _ref.bsPrefix,
|
|
8791
8647
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8792
8648
|
|
|
8793
|
-
return /*#__PURE__*/
|
|
8649
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8794
8650
|
ref: ref
|
|
8795
8651
|
}, props, {
|
|
8796
8652
|
role: "progressbar",
|
|
@@ -8801,12 +8657,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8801
8657
|
"aria-valuenow": now,
|
|
8802
8658
|
"aria-valuemin": min,
|
|
8803
8659
|
"aria-valuemax": max
|
|
8804
|
-
}), srOnly ? /*#__PURE__*/
|
|
8660
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8805
8661
|
className: "sr-only"
|
|
8806
8662
|
}, label) : label);
|
|
8807
8663
|
}
|
|
8808
8664
|
|
|
8809
|
-
var ProgressBar =
|
|
8665
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8810
8666
|
var isChild = _ref2.isChild,
|
|
8811
8667
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8812
8668
|
|
|
@@ -8829,7 +8685,7 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8829
8685
|
children = props.children,
|
|
8830
8686
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8831
8687
|
|
|
8832
|
-
return /*#__PURE__*/
|
|
8688
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8833
8689
|
ref: ref
|
|
8834
8690
|
}, wrapperProps, {
|
|
8835
8691
|
className: classnames(className, bsPrefix)
|
|
@@ -8850,12 +8706,12 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8850
8706
|
}, ref));
|
|
8851
8707
|
});
|
|
8852
8708
|
ProgressBar.displayName = 'ProgressBar';
|
|
8853
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8709
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8854
8710
|
|
|
8855
|
-
var defaultProps$
|
|
8711
|
+
var defaultProps$z = {
|
|
8856
8712
|
aspectRatio: '1by1'
|
|
8857
8713
|
};
|
|
8858
|
-
var ResponsiveEmbed =
|
|
8714
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8859
8715
|
var bsPrefix = _ref.bsPrefix,
|
|
8860
8716
|
className = _ref.className,
|
|
8861
8717
|
children = _ref.children,
|
|
@@ -8863,22 +8719,22 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8863
8719
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8864
8720
|
|
|
8865
8721
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8866
|
-
var child =
|
|
8867
|
-
return /*#__PURE__*/
|
|
8722
|
+
var child = React.Children.only(children);
|
|
8723
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8868
8724
|
ref: ref
|
|
8869
8725
|
}, props, {
|
|
8870
8726
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8871
|
-
}),
|
|
8727
|
+
}), React.cloneElement(child, {
|
|
8872
8728
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8873
8729
|
}));
|
|
8874
8730
|
});
|
|
8875
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8731
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8876
8732
|
|
|
8877
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8878
|
-
var defaultProps$
|
|
8733
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8734
|
+
var defaultProps$A = {
|
|
8879
8735
|
noGutters: false
|
|
8880
8736
|
};
|
|
8881
|
-
var Row =
|
|
8737
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8882
8738
|
var bsPrefix = _ref.bsPrefix,
|
|
8883
8739
|
className = _ref.className,
|
|
8884
8740
|
noGutters = _ref.noGutters,
|
|
@@ -8889,7 +8745,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8889
8745
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8890
8746
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8891
8747
|
var classes = [];
|
|
8892
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8748
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8893
8749
|
var propValue = props[brkPoint];
|
|
8894
8750
|
delete props[brkPoint];
|
|
8895
8751
|
var cols;
|
|
@@ -8903,16 +8759,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8903
8759
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8904
8760
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8905
8761
|
});
|
|
8906
|
-
return /*#__PURE__*/
|
|
8762
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8907
8763
|
ref: ref
|
|
8908
8764
|
}, props, {
|
|
8909
8765
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8910
8766
|
}));
|
|
8911
8767
|
});
|
|
8912
8768
|
Row.displayName = 'Row';
|
|
8913
|
-
Row.defaultProps = defaultProps$
|
|
8769
|
+
Row.defaultProps = defaultProps$A;
|
|
8914
8770
|
|
|
8915
|
-
var Spinner =
|
|
8771
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8916
8772
|
var bsPrefix = _ref.bsPrefix,
|
|
8917
8773
|
variant = _ref.variant,
|
|
8918
8774
|
animation = _ref.animation,
|
|
@@ -8925,7 +8781,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8925
8781
|
|
|
8926
8782
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8927
8783
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8928
|
-
return /*#__PURE__*/
|
|
8784
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8929
8785
|
ref: ref
|
|
8930
8786
|
}, props, {
|
|
8931
8787
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8933,7 +8789,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8933
8789
|
});
|
|
8934
8790
|
Spinner.displayName = 'Spinner';
|
|
8935
8791
|
|
|
8936
|
-
var propTypes = {
|
|
8792
|
+
var propTypes$a = {
|
|
8937
8793
|
/**
|
|
8938
8794
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8939
8795
|
* @type {string|number}
|
|
@@ -8995,11 +8851,11 @@ var propTypes = {
|
|
|
8995
8851
|
/** @ignore */
|
|
8996
8852
|
size: PropTypes.string
|
|
8997
8853
|
};
|
|
8998
|
-
var defaultProps$
|
|
8854
|
+
var defaultProps$B = {
|
|
8999
8855
|
toggleLabel: 'Toggle dropdown',
|
|
9000
8856
|
type: 'button'
|
|
9001
8857
|
};
|
|
9002
|
-
var SplitButton =
|
|
8858
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
9003
8859
|
var id = _ref.id,
|
|
9004
8860
|
bsPrefix = _ref.bsPrefix,
|
|
9005
8861
|
size = _ref.size,
|
|
@@ -9017,11 +8873,11 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9017
8873
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9018
8874
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9019
8875
|
|
|
9020
|
-
return /*#__PURE__*/
|
|
8876
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
9021
8877
|
ref: ref
|
|
9022
8878
|
}, props, {
|
|
9023
8879
|
as: ButtonGroup
|
|
9024
|
-
}), /*#__PURE__*/
|
|
8880
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
9025
8881
|
size: size,
|
|
9026
8882
|
variant: variant,
|
|
9027
8883
|
disabled: props.disabled,
|
|
@@ -9030,24 +8886,24 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9030
8886
|
target: target,
|
|
9031
8887
|
onClick: onClick,
|
|
9032
8888
|
type: type
|
|
9033
|
-
}, title), /*#__PURE__*/
|
|
8889
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
9034
8890
|
split: true,
|
|
9035
8891
|
id: id ? id.toString() : undefined,
|
|
9036
8892
|
size: size,
|
|
9037
8893
|
variant: variant,
|
|
9038
8894
|
disabled: props.disabled,
|
|
9039
8895
|
childBsPrefix: bsPrefix
|
|
9040
|
-
}, /*#__PURE__*/
|
|
8896
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
9041
8897
|
className: "sr-only"
|
|
9042
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8898
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
9043
8899
|
align: menuAlign,
|
|
9044
8900
|
role: menuRole,
|
|
9045
8901
|
renderOnMount: renderMenuOnMount,
|
|
9046
8902
|
rootCloseEvent: rootCloseEvent
|
|
9047
8903
|
}, children));
|
|
9048
8904
|
});
|
|
9049
|
-
SplitButton.propTypes = propTypes;
|
|
9050
|
-
SplitButton.defaultProps = defaultProps$
|
|
8905
|
+
SplitButton.propTypes = propTypes$a;
|
|
8906
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9051
8907
|
SplitButton.displayName = 'SplitButton';
|
|
9052
8908
|
|
|
9053
8909
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9083,14 +8939,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
9083
8939
|
}
|
|
9084
8940
|
};
|
|
9085
8941
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
9086
|
-
return /*#__PURE__*/
|
|
8942
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9087
8943
|
value: tabContext
|
|
9088
|
-
}, /*#__PURE__*/
|
|
8944
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9089
8945
|
value: onSelect || null
|
|
9090
8946
|
}, children));
|
|
9091
8947
|
};
|
|
9092
8948
|
|
|
9093
|
-
var TabContent =
|
|
8949
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9094
8950
|
var bsPrefix = _ref.bsPrefix,
|
|
9095
8951
|
_ref$as = _ref.as,
|
|
9096
8952
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -9098,7 +8954,7 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9098
8954
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9099
8955
|
|
|
9100
8956
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9101
|
-
return /*#__PURE__*/
|
|
8957
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9102
8958
|
ref: ref
|
|
9103
8959
|
}, props, {
|
|
9104
8960
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9126,7 +8982,7 @@ function useTabContext(props) {
|
|
|
9126
8982
|
});
|
|
9127
8983
|
}
|
|
9128
8984
|
|
|
9129
|
-
var TabPane =
|
|
8985
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9130
8986
|
var _useTabContext = useTabContext(props),
|
|
9131
8987
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9132
8988
|
className = _useTabContext.className,
|
|
@@ -9141,13 +8997,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9141
8997
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9142
8998
|
Transition = _useTabContext.transition,
|
|
9143
8999
|
_useTabContext$as = _useTabContext.as,
|
|
9144
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9145
|
-
_useTabContext.eventKey
|
|
9146
|
-
|
|
9000
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9001
|
+
_ = _useTabContext.eventKey,
|
|
9002
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9147
9003
|
|
|
9148
9004
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9149
9005
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9150
|
-
var pane = /*#__PURE__*/
|
|
9006
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9151
9007
|
ref: ref,
|
|
9152
9008
|
role: "tabpanel",
|
|
9153
9009
|
"aria-hidden": !active,
|
|
@@ -9155,7 +9011,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9155
9011
|
active: active
|
|
9156
9012
|
})
|
|
9157
9013
|
}));
|
|
9158
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9014
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9159
9015
|
in: active,
|
|
9160
9016
|
onEnter: onEnter,
|
|
9161
9017
|
onEntering: onEntering,
|
|
@@ -9168,9 +9024,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9168
9024
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9169
9025
|
// conflict with the top level one.
|
|
9170
9026
|
|
|
9171
|
-
return /*#__PURE__*/
|
|
9027
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9172
9028
|
value: null
|
|
9173
|
-
}, /*#__PURE__*/
|
|
9029
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9174
9030
|
value: null
|
|
9175
9031
|
}, pane));
|
|
9176
9032
|
});
|
|
@@ -9191,13 +9047,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9191
9047
|
};
|
|
9192
9048
|
|
|
9193
9049
|
return Tab;
|
|
9194
|
-
}(
|
|
9050
|
+
}(React.Component);
|
|
9195
9051
|
|
|
9196
9052
|
Tab.Container = TabContainer;
|
|
9197
9053
|
Tab.Content = TabContent;
|
|
9198
9054
|
Tab.Pane = TabPane;
|
|
9199
9055
|
|
|
9200
|
-
|
|
9056
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9201
9057
|
var bsPrefix = _ref.bsPrefix,
|
|
9202
9058
|
className = _ref.className,
|
|
9203
9059
|
striped = _ref.striped,
|
|
@@ -9211,7 +9067,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9211
9067
|
|
|
9212
9068
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9213
9069
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9214
|
-
var table = /*#__PURE__*/
|
|
9070
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9215
9071
|
className: classes,
|
|
9216
9072
|
ref: ref
|
|
9217
9073
|
}));
|
|
@@ -9223,7 +9079,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9223
9079
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9224
9080
|
}
|
|
9225
9081
|
|
|
9226
|
-
return /*#__PURE__*/
|
|
9082
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9227
9083
|
className: responsiveClass
|
|
9228
9084
|
}, table);
|
|
9229
9085
|
}
|
|
@@ -9231,16 +9087,16 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9231
9087
|
return table;
|
|
9232
9088
|
});
|
|
9233
9089
|
|
|
9234
|
-
var ToastContext =
|
|
9090
|
+
var ToastContext = React.createContext({
|
|
9235
9091
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9236
9092
|
onClose: function onClose() {}
|
|
9237
9093
|
});
|
|
9238
9094
|
|
|
9239
|
-
var defaultProps$
|
|
9095
|
+
var defaultProps$C = {
|
|
9240
9096
|
closeLabel: 'Close',
|
|
9241
9097
|
closeButton: true
|
|
9242
9098
|
};
|
|
9243
|
-
var ToastHeader =
|
|
9099
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9244
9100
|
var bsPrefix = _ref.bsPrefix,
|
|
9245
9101
|
closeLabel = _ref.closeLabel,
|
|
9246
9102
|
closeButton = _ref.closeButton,
|
|
@@ -9255,11 +9111,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9255
9111
|
context.onClose(e);
|
|
9256
9112
|
}
|
|
9257
9113
|
});
|
|
9258
|
-
return /*#__PURE__*/
|
|
9114
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9259
9115
|
ref: ref
|
|
9260
9116
|
}, props, {
|
|
9261
9117
|
className: classnames(bsPrefix, className)
|
|
9262
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9118
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9263
9119
|
label: closeLabel,
|
|
9264
9120
|
onClick: handleClick,
|
|
9265
9121
|
className: "ml-2 mb-1",
|
|
@@ -9267,11 +9123,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9267
9123
|
}));
|
|
9268
9124
|
});
|
|
9269
9125
|
ToastHeader.displayName = 'ToastHeader';
|
|
9270
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9126
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9271
9127
|
|
|
9272
9128
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9273
9129
|
|
|
9274
|
-
var Toast =
|
|
9130
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9275
9131
|
var bsPrefix = _ref.bsPrefix,
|
|
9276
9132
|
className = _ref.className,
|
|
9277
9133
|
children = _ref.children,
|
|
@@ -9314,16 +9170,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9314
9170
|
};
|
|
9315
9171
|
}, [onClose]);
|
|
9316
9172
|
var hasAnimation = !!(Transition && animation);
|
|
9317
|
-
var toast = /*#__PURE__*/
|
|
9173
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9318
9174
|
ref: ref,
|
|
9319
9175
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9320
9176
|
role: "alert",
|
|
9321
9177
|
"aria-live": "assertive",
|
|
9322
9178
|
"aria-atomic": "true"
|
|
9323
9179
|
}), children);
|
|
9324
|
-
return /*#__PURE__*/
|
|
9180
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9325
9181
|
value: toastContext
|
|
9326
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9182
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9327
9183
|
in: show,
|
|
9328
9184
|
unmountOnExit: true
|
|
9329
9185
|
}, toast) : toast);
|
|
@@ -9334,11 +9190,11 @@ Object.assign(Toast, {
|
|
|
9334
9190
|
Header: ToastHeader
|
|
9335
9191
|
});
|
|
9336
9192
|
|
|
9337
|
-
var noop = function noop() {
|
|
9193
|
+
var noop$5 = function noop() {
|
|
9338
9194
|
return undefined;
|
|
9339
9195
|
};
|
|
9340
9196
|
|
|
9341
|
-
var ToggleButton =
|
|
9197
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9342
9198
|
var children = _ref.children,
|
|
9343
9199
|
name = _ref.name,
|
|
9344
9200
|
className = _ref.className,
|
|
@@ -9360,13 +9216,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9360
9216
|
var handleBlur = useCallback(function (e) {
|
|
9361
9217
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9362
9218
|
}, []);
|
|
9363
|
-
return /*#__PURE__*/
|
|
9219
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9364
9220
|
ref: ref,
|
|
9365
9221
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9366
9222
|
type: undefined,
|
|
9367
9223
|
active: !!checked,
|
|
9368
9224
|
as: "label"
|
|
9369
|
-
}), /*#__PURE__*/
|
|
9225
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9370
9226
|
name: name,
|
|
9371
9227
|
type: type,
|
|
9372
9228
|
value: value,
|
|
@@ -9376,16 +9232,16 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9376
9232
|
disabled: !!disabled,
|
|
9377
9233
|
onFocus: handleFocus,
|
|
9378
9234
|
onBlur: handleBlur,
|
|
9379
|
-
onChange: onChange || noop
|
|
9235
|
+
onChange: onChange || noop$5
|
|
9380
9236
|
}), children);
|
|
9381
9237
|
});
|
|
9382
9238
|
ToggleButton.displayName = 'ToggleButton';
|
|
9383
9239
|
|
|
9384
|
-
var defaultProps$
|
|
9240
|
+
var defaultProps$D = {
|
|
9385
9241
|
type: 'radio',
|
|
9386
9242
|
vertical: false
|
|
9387
9243
|
};
|
|
9388
|
-
var ToggleButtonGroup =
|
|
9244
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9389
9245
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9390
9246
|
value: 'onChange'
|
|
9391
9247
|
}),
|
|
@@ -9423,7 +9279,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9423
9279
|
};
|
|
9424
9280
|
|
|
9425
9281
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9426
|
-
return /*#__PURE__*/
|
|
9282
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9427
9283
|
ref: ref,
|
|
9428
9284
|
toggle: true
|
|
9429
9285
|
}), map(children, function (child) {
|
|
@@ -9436,7 +9292,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9436
9292
|
return handleToggle(childVal, e);
|
|
9437
9293
|
};
|
|
9438
9294
|
|
|
9439
|
-
return
|
|
9295
|
+
return React.cloneElement(child, {
|
|
9440
9296
|
type: type,
|
|
9441
9297
|
name: child.name || name,
|
|
9442
9298
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9444,41 +9300,41 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9444
9300
|
});
|
|
9445
9301
|
}));
|
|
9446
9302
|
});
|
|
9447
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9303
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9448
9304
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9449
9305
|
|
|
9450
|
-
var defaultProps = {
|
|
9306
|
+
var defaultProps$E = {
|
|
9451
9307
|
placement: 'right'
|
|
9452
9308
|
};
|
|
9453
|
-
var Tooltip =
|
|
9309
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9454
9310
|
var bsPrefix = _ref.bsPrefix,
|
|
9455
9311
|
placement = _ref.placement,
|
|
9456
9312
|
className = _ref.className,
|
|
9457
9313
|
style = _ref.style,
|
|
9458
9314
|
children = _ref.children,
|
|
9459
|
-
arrowProps = _ref.arrowProps
|
|
9460
|
-
_ref.popper
|
|
9461
|
-
_ref.show
|
|
9462
|
-
|
|
9315
|
+
arrowProps = _ref.arrowProps,
|
|
9316
|
+
_ = _ref.popper,
|
|
9317
|
+
_2 = _ref.show,
|
|
9318
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9463
9319
|
|
|
9464
9320
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9465
9321
|
|
|
9466
9322
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9467
9323
|
primaryPlacement = _ref2[0];
|
|
9468
9324
|
|
|
9469
|
-
return /*#__PURE__*/
|
|
9325
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9470
9326
|
ref: ref,
|
|
9471
9327
|
style: style,
|
|
9472
9328
|
role: "tooltip",
|
|
9473
9329
|
"x-placement": primaryPlacement,
|
|
9474
9330
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9475
|
-
}, props), /*#__PURE__*/
|
|
9331
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9476
9332
|
className: "arrow"
|
|
9477
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9333
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9478
9334
|
className: bsPrefix + "-inner"
|
|
9479
9335
|
}, children));
|
|
9480
9336
|
});
|
|
9481
|
-
Tooltip.defaultProps = defaultProps;
|
|
9337
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9482
9338
|
Tooltip.displayName = 'Tooltip';
|
|
9483
9339
|
|
|
9484
9340
|
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";
|
|
@@ -9492,54 +9348,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9492
9348
|
client = props.client;
|
|
9493
9349
|
|
|
9494
9350
|
|
|
9495
|
-
return
|
|
9351
|
+
return React.createElement(
|
|
9496
9352
|
'div',
|
|
9497
9353
|
{ className: styles.article },
|
|
9498
|
-
|
|
9354
|
+
React.createElement(
|
|
9499
9355
|
'a',
|
|
9500
9356
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9501
|
-
|
|
9357
|
+
React.createElement(
|
|
9502
9358
|
'div',
|
|
9503
9359
|
{ className: styles.thumb },
|
|
9504
|
-
|
|
9360
|
+
React.createElement(
|
|
9505
9361
|
'figure',
|
|
9506
9362
|
null,
|
|
9507
|
-
|
|
9363
|
+
React.createElement(
|
|
9508
9364
|
LazyLoad,
|
|
9509
9365
|
null,
|
|
9510
|
-
|
|
9366
|
+
React.createElement('img', {
|
|
9511
9367
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9512
9368
|
})
|
|
9513
9369
|
)
|
|
9514
9370
|
)
|
|
9515
9371
|
),
|
|
9516
|
-
|
|
9372
|
+
React.createElement(
|
|
9517
9373
|
'div',
|
|
9518
9374
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9519
|
-
|
|
9375
|
+
React.createElement(
|
|
9520
9376
|
'div',
|
|
9521
9377
|
{ className: styles.name },
|
|
9522
9378
|
data.name
|
|
9523
9379
|
),
|
|
9524
|
-
data.published &&
|
|
9380
|
+
data.published && React.createElement(
|
|
9525
9381
|
'p',
|
|
9526
9382
|
{ className: styles.published },
|
|
9527
9383
|
moment(data.published).format('MMMM Do YYYY')
|
|
9528
9384
|
),
|
|
9529
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9385
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9530
9386
|
'p',
|
|
9531
9387
|
{ className: styles.author },
|
|
9532
9388
|
'By ',
|
|
9533
|
-
|
|
9389
|
+
React.createElement(
|
|
9534
9390
|
'span',
|
|
9535
9391
|
null,
|
|
9536
9392
|
data.authorMapping.displayName
|
|
9537
9393
|
)
|
|
9538
9394
|
),
|
|
9539
|
-
data.description &&
|
|
9395
|
+
data.description && React.createElement(
|
|
9540
9396
|
'div',
|
|
9541
9397
|
{ className: 'media-series-desc' },
|
|
9542
|
-
|
|
9398
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9543
9399
|
)
|
|
9544
9400
|
)
|
|
9545
9401
|
)
|
|
@@ -9636,14 +9492,14 @@ var Filter = function Filter(_ref) {
|
|
|
9636
9492
|
}
|
|
9637
9493
|
};
|
|
9638
9494
|
|
|
9639
|
-
return
|
|
9495
|
+
return React.createElement(
|
|
9640
9496
|
'div',
|
|
9641
9497
|
{ className: 'flex-container' },
|
|
9642
|
-
parentData &&
|
|
9498
|
+
parentData && React.createElement(
|
|
9643
9499
|
DropdownButton,
|
|
9644
9500
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9645
|
-
|
|
9646
|
-
Dropdown.Item,
|
|
9501
|
+
React.createElement(
|
|
9502
|
+
Dropdown$1.Item,
|
|
9647
9503
|
{ onSelect: function onSelect() {
|
|
9648
9504
|
return handleFilterSelect({}, 'parent');
|
|
9649
9505
|
} },
|
|
@@ -9651,8 +9507,8 @@ var Filter = function Filter(_ref) {
|
|
|
9651
9507
|
),
|
|
9652
9508
|
parentData.data.map(function (docGroup) {
|
|
9653
9509
|
if (!docGroup._id) return null;
|
|
9654
|
-
return
|
|
9655
|
-
Dropdown.Item,
|
|
9510
|
+
return React.createElement(
|
|
9511
|
+
Dropdown$1.Item,
|
|
9656
9512
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9657
9513
|
return handleFilterSelect(docGroup, 'parent');
|
|
9658
9514
|
} },
|
|
@@ -9660,11 +9516,11 @@ var Filter = function Filter(_ref) {
|
|
|
9660
9516
|
);
|
|
9661
9517
|
})
|
|
9662
9518
|
),
|
|
9663
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9519
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9664
9520
|
DropdownButton,
|
|
9665
9521
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9666
|
-
|
|
9667
|
-
Dropdown.Item,
|
|
9522
|
+
React.createElement(
|
|
9523
|
+
Dropdown$1.Item,
|
|
9668
9524
|
{ onSelect: function onSelect() {
|
|
9669
9525
|
return handleFilterSelect({}, 'child');
|
|
9670
9526
|
} },
|
|
@@ -9672,8 +9528,8 @@ var Filter = function Filter(_ref) {
|
|
|
9672
9528
|
),
|
|
9673
9529
|
childData.data.map(function (docGroup) {
|
|
9674
9530
|
if (!docGroup._id) return null;
|
|
9675
|
-
return
|
|
9676
|
-
Dropdown.Item,
|
|
9531
|
+
return React.createElement(
|
|
9532
|
+
Dropdown$1.Item,
|
|
9677
9533
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9678
9534
|
return handleFilterSelect(docGroup, 'child');
|
|
9679
9535
|
} },
|
|
@@ -9681,11 +9537,11 @@ var Filter = function Filter(_ref) {
|
|
|
9681
9537
|
);
|
|
9682
9538
|
})
|
|
9683
9539
|
),
|
|
9684
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9540
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9685
9541
|
DropdownButton,
|
|
9686
9542
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9687
|
-
|
|
9688
|
-
Dropdown.Item,
|
|
9543
|
+
React.createElement(
|
|
9544
|
+
Dropdown$1.Item,
|
|
9689
9545
|
{ onSelect: function onSelect() {
|
|
9690
9546
|
return handleFilterSelect({}, 'grandchild');
|
|
9691
9547
|
} },
|
|
@@ -9693,8 +9549,8 @@ var Filter = function Filter(_ref) {
|
|
|
9693
9549
|
),
|
|
9694
9550
|
grandChildData.data.map(function (docGroup) {
|
|
9695
9551
|
if (!docGroup._id) return null;
|
|
9696
|
-
return
|
|
9697
|
-
Dropdown.Item,
|
|
9552
|
+
return React.createElement(
|
|
9553
|
+
Dropdown$1.Item,
|
|
9698
9554
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9699
9555
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9700
9556
|
} },
|
|
@@ -9702,7 +9558,7 @@ var Filter = function Filter(_ref) {
|
|
|
9702
9558
|
);
|
|
9703
9559
|
})
|
|
9704
9560
|
),
|
|
9705
|
-
|
|
9561
|
+
React.createElement(
|
|
9706
9562
|
'style',
|
|
9707
9563
|
{ jsx: 'true' },
|
|
9708
9564
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9792,27 +9648,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9792
9648
|
}();
|
|
9793
9649
|
|
|
9794
9650
|
if (props.statusCode === 404) {
|
|
9795
|
-
return
|
|
9651
|
+
return React.createElement(
|
|
9796
9652
|
'div',
|
|
9797
9653
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9798
|
-
|
|
9654
|
+
React.createElement(
|
|
9799
9655
|
'h3',
|
|
9800
9656
|
null,
|
|
9801
9657
|
'404: Resource not found'
|
|
9802
9658
|
),
|
|
9803
|
-
|
|
9659
|
+
React.createElement(
|
|
9804
9660
|
'p',
|
|
9805
9661
|
null,
|
|
9806
9662
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9807
9663
|
),
|
|
9808
|
-
|
|
9664
|
+
React.createElement(
|
|
9809
9665
|
'p',
|
|
9810
9666
|
null,
|
|
9811
9667
|
'Click here to',
|
|
9812
|
-
|
|
9668
|
+
React.createElement(
|
|
9813
9669
|
Link,
|
|
9814
9670
|
{ href: '/' },
|
|
9815
|
-
|
|
9671
|
+
React.createElement(
|
|
9816
9672
|
'a',
|
|
9817
9673
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9818
9674
|
' return to homepage.'
|
|
@@ -9822,17 +9678,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9822
9678
|
);
|
|
9823
9679
|
}
|
|
9824
9680
|
|
|
9825
|
-
return
|
|
9681
|
+
return React.createElement(
|
|
9826
9682
|
'div',
|
|
9827
9683
|
{ className: 'mb-5' },
|
|
9828
|
-
props.docGroup && props.docGroup.description &&
|
|
9829
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9684
|
+
props.docGroup && props.docGroup.description && React.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9685
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9830
9686
|
'div',
|
|
9831
9687
|
{ className: '' },
|
|
9832
|
-
|
|
9833
|
-
|
|
9688
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9689
|
+
React.createElement('hr', null)
|
|
9834
9690
|
),
|
|
9835
|
-
seriesData &&
|
|
9691
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9836
9692
|
deck: MediaSeriesCard,
|
|
9837
9693
|
variant: 'left',
|
|
9838
9694
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9852,12 +9708,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9852
9708
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9853
9709
|
var _ref4;
|
|
9854
9710
|
|
|
9855
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9711
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9856
9712
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9857
9713
|
while (1) {
|
|
9858
9714
|
switch (_context2.prev = _context2.next) {
|
|
9859
9715
|
case 0:
|
|
9860
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9716
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9861
9717
|
identifier = pathname.replace('/', '');
|
|
9862
9718
|
itemsPerPage = 10;
|
|
9863
9719
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|