@mjhls/mjh-framework 1.0.835 → 1.0.836-deck-pagination-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-eb4ce360.js → ADInfeed-0158bee3.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-8a05b63f.js → ADlgInfeed-3583144f.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 +239 -200
- 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 +33 -32
- 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 +203 -83
- 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 +58 -57
- 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 +37 -34
- package/dist/cjs/View.js +91 -89
- 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-a100d6e5.js → getTargeting-15ad167c.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-4e883ea0.js → index-1a3ac358.js} +159 -159
- 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 +137 -136
- 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-4a09242b.js → ADInfeed-427022e9.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-0bff9a62.js → ADlgInfeed-28d3f944.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 +14123 -50
- 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 +259 -220
- 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 +71 -70
- 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 +262 -143
- 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 +751 -895
- 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 +106 -105
- 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 +77 -74
- package/dist/esm/View.js +244 -242
- 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-05c216d6.js → getTargeting-82e86707.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-b909354c.js → index-9ae17e46.js} +489 -489
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-79cfd25c.js → index-c00b0bbb.js} +35 -35
- 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 +133 -132
- 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,150 +1,70 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
-
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
-
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import Link from 'next/link';
|
|
11
|
-
import MasterDeck from './MasterDeck.js';
|
|
12
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
13
|
-
import urlFor from './urlFor.js';
|
|
14
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
15
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
16
|
-
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
17
|
-
import { g as getSerializers } from './index-b909354c.js';
|
|
18
|
-
import './define-property-fe54dc9f.js';
|
|
19
|
-
import './_to-object-b50e61c3.js';
|
|
20
|
-
import './es6.string.iterator-bc33758b.js';
|
|
21
|
-
import './web.dom.iterable-4109ff68.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
22
4
|
import './_library-528f1934.js';
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './_object-pie-
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends$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-427022e9.js';
|
|
44
|
+
import './lodash-ec8c6b48.js';
|
|
45
|
+
import './ADlgInfeed-28d3f944.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-9ae17e46.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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var key in source) {
|
|
73
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
74
|
-
target[key] = source[key];
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return target;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
return _extends.apply(this, arguments);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
86
|
-
if (source == null) return {};
|
|
87
|
-
var target = {};
|
|
88
|
-
var sourceKeys = Object.keys(source);
|
|
89
|
-
var key, i;
|
|
90
|
-
|
|
91
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
92
|
-
key = sourceKeys[i];
|
|
93
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
94
|
-
target[key] = source[key];
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return target;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
var classnames = createCommonjsModule(function (module) {
|
|
101
|
-
/*!
|
|
102
|
-
Copyright (c) 2017 Jed Watson.
|
|
103
|
-
Licensed under the MIT License (MIT), see
|
|
104
|
-
http://jedwatson.github.io/classnames
|
|
105
|
-
*/
|
|
106
|
-
/* global define */
|
|
107
|
-
|
|
108
|
-
(function () {
|
|
109
|
-
|
|
110
|
-
var hasOwn = {}.hasOwnProperty;
|
|
111
|
-
|
|
112
|
-
function classNames () {
|
|
113
|
-
var classes = [];
|
|
114
|
-
|
|
115
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
116
|
-
var arg = arguments[i];
|
|
117
|
-
if (!arg) continue;
|
|
118
|
-
|
|
119
|
-
var argType = typeof arg;
|
|
120
|
-
|
|
121
|
-
if (argType === 'string' || argType === 'number') {
|
|
122
|
-
classes.push(arg);
|
|
123
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
124
|
-
var inner = classNames.apply(null, arg);
|
|
125
|
-
if (inner) {
|
|
126
|
-
classes.push(inner);
|
|
127
|
-
}
|
|
128
|
-
} else if (argType === 'object') {
|
|
129
|
-
for (var key in arg) {
|
|
130
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
131
|
-
classes.push(key);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return classes.join(' ');
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
if (module.exports) {
|
|
141
|
-
classNames.default = classNames;
|
|
142
|
-
module.exports = classNames;
|
|
143
|
-
} else {
|
|
144
|
-
window.classNames = classNames;
|
|
145
|
-
}
|
|
146
|
-
}());
|
|
147
|
-
});
|
|
63
|
+
import MasterDeck from './MasterDeck.js';
|
|
64
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
65
|
+
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
66
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
67
|
+
import Link from 'next/link';
|
|
148
68
|
|
|
149
69
|
/**
|
|
150
70
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -251,31 +171,22 @@ function useUncontrolled(props, config) {
|
|
|
251
171
|
}, props);
|
|
252
172
|
}
|
|
253
173
|
|
|
254
|
-
function _setPrototypeOf(o, p) {
|
|
255
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
256
|
-
o.__proto__ = p;
|
|
257
|
-
return o;
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
return _setPrototypeOf(o, p);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
174
|
function _inheritsLoose(subClass, superClass) {
|
|
264
175
|
subClass.prototype = Object.create(superClass.prototype);
|
|
265
176
|
subClass.prototype.constructor = subClass;
|
|
266
|
-
|
|
177
|
+
subClass.__proto__ = superClass;
|
|
267
178
|
}
|
|
268
179
|
|
|
269
|
-
var ThemeContext =
|
|
270
|
-
ThemeContext.Consumer
|
|
271
|
-
ThemeContext.Provider;
|
|
180
|
+
var ThemeContext = React.createContext({});
|
|
181
|
+
var Consumer = ThemeContext.Consumer,
|
|
182
|
+
Provider = ThemeContext.Provider;
|
|
272
183
|
|
|
273
184
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
274
185
|
var prefixes = useContext(ThemeContext);
|
|
275
186
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
276
187
|
}
|
|
277
188
|
|
|
278
|
-
var SelectableContext =
|
|
189
|
+
var SelectableContext = React.createContext(null);
|
|
279
190
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
280
191
|
if (href === void 0) {
|
|
281
192
|
href = null;
|
|
@@ -285,11 +196,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
285
196
|
return href || null;
|
|
286
197
|
};
|
|
287
198
|
|
|
288
|
-
var context
|
|
289
|
-
context
|
|
199
|
+
var context = React.createContext(null);
|
|
200
|
+
context.displayName = 'AccordionContext';
|
|
290
201
|
|
|
291
202
|
function useAccordionToggle(eventKey, onClick) {
|
|
292
|
-
var contextEventKey = useContext(context
|
|
203
|
+
var contextEventKey = useContext(context);
|
|
293
204
|
var onSelect = useContext(SelectableContext);
|
|
294
205
|
return function (e) {
|
|
295
206
|
/*
|
|
@@ -301,7 +212,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
301
212
|
if (onClick) onClick(e);
|
|
302
213
|
};
|
|
303
214
|
}
|
|
304
|
-
var AccordionToggle =
|
|
215
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
305
216
|
var _ref$as = _ref.as,
|
|
306
217
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
307
218
|
children = _ref.children,
|
|
@@ -315,22 +226,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
315
226
|
props.type = 'button';
|
|
316
227
|
}
|
|
317
228
|
|
|
318
|
-
return /*#__PURE__*/
|
|
229
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
319
230
|
ref: ref,
|
|
320
231
|
onClick: accordionOnClick
|
|
321
232
|
}, props), children);
|
|
322
233
|
});
|
|
323
234
|
|
|
324
|
-
function ownerDocument
|
|
235
|
+
function ownerDocument(node) {
|
|
325
236
|
return node && node.ownerDocument || document;
|
|
326
237
|
}
|
|
327
238
|
|
|
328
239
|
function ownerWindow(node) {
|
|
329
|
-
var doc = ownerDocument
|
|
240
|
+
var doc = ownerDocument(node);
|
|
330
241
|
return doc && doc.defaultView || window;
|
|
331
242
|
}
|
|
332
243
|
|
|
333
|
-
function getComputedStyle$
|
|
244
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
334
245
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
335
246
|
}
|
|
336
247
|
|
|
@@ -359,7 +270,7 @@ function style(node, property) {
|
|
|
359
270
|
var transforms = '';
|
|
360
271
|
|
|
361
272
|
if (typeof property === 'string') {
|
|
362
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
273
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
363
274
|
}
|
|
364
275
|
|
|
365
276
|
Object.keys(property).forEach(function (key) {
|
|
@@ -499,7 +410,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
499
410
|
exit: PropTypes.number,
|
|
500
411
|
appear: PropTypes.number
|
|
501
412
|
}).isRequired]) : null;
|
|
502
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
413
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
503
414
|
enter: PropTypes.string,
|
|
504
415
|
exit: PropTypes.string,
|
|
505
416
|
active: PropTypes.string
|
|
@@ -512,7 +423,7 @@ process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, P
|
|
|
512
423
|
exitActive: PropTypes.string
|
|
513
424
|
})]) : null;
|
|
514
425
|
|
|
515
|
-
var TransitionGroupContext =
|
|
426
|
+
var TransitionGroupContext = React.createContext(null);
|
|
516
427
|
|
|
517
428
|
var UNMOUNTED = 'unmounted';
|
|
518
429
|
var EXITED = 'exited';
|
|
@@ -881,35 +792,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
881
792
|
}
|
|
882
793
|
|
|
883
794
|
var _this$props = this.props,
|
|
884
|
-
children = _this$props.children
|
|
885
|
-
_this$props.in
|
|
886
|
-
_this$props.mountOnEnter
|
|
887
|
-
_this$props.unmountOnExit
|
|
888
|
-
_this$props.appear
|
|
889
|
-
_this$props.enter
|
|
890
|
-
_this$props.exit
|
|
891
|
-
_this$props.timeout
|
|
892
|
-
_this$props.addEndListener
|
|
893
|
-
_this$props.onEnter
|
|
894
|
-
_this$props.onEntering
|
|
895
|
-
_this$props.onEntered
|
|
896
|
-
_this$props.onExit
|
|
897
|
-
_this$props.onExiting
|
|
898
|
-
_this$props.onExited
|
|
899
|
-
_this$props.nodeRef
|
|
900
|
-
|
|
795
|
+
children = _this$props.children,
|
|
796
|
+
_in = _this$props.in,
|
|
797
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
798
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
799
|
+
_appear = _this$props.appear,
|
|
800
|
+
_enter = _this$props.enter,
|
|
801
|
+
_exit = _this$props.exit,
|
|
802
|
+
_timeout = _this$props.timeout,
|
|
803
|
+
_addEndListener = _this$props.addEndListener,
|
|
804
|
+
_onEnter = _this$props.onEnter,
|
|
805
|
+
_onEntering = _this$props.onEntering,
|
|
806
|
+
_onEntered = _this$props.onEntered,
|
|
807
|
+
_onExit = _this$props.onExit,
|
|
808
|
+
_onExiting = _this$props.onExiting,
|
|
809
|
+
_onExited = _this$props.onExited,
|
|
810
|
+
_nodeRef = _this$props.nodeRef,
|
|
811
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
901
812
|
|
|
902
813
|
return (
|
|
903
814
|
/*#__PURE__*/
|
|
904
815
|
// allows for nested Transitions
|
|
905
|
-
|
|
816
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
906
817
|
value: null
|
|
907
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
818
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
908
819
|
);
|
|
909
820
|
};
|
|
910
821
|
|
|
911
822
|
return Transition;
|
|
912
|
-
}(
|
|
823
|
+
}(React.Component);
|
|
913
824
|
|
|
914
825
|
Transition.contextType = TransitionGroupContext;
|
|
915
826
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1097,7 +1008,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1097
1008
|
onExited: PropTypes.func
|
|
1098
1009
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1099
1010
|
|
|
1100
|
-
function noop
|
|
1011
|
+
function noop() {}
|
|
1101
1012
|
|
|
1102
1013
|
Transition.defaultProps = {
|
|
1103
1014
|
in: false,
|
|
@@ -1106,12 +1017,12 @@ Transition.defaultProps = {
|
|
|
1106
1017
|
appear: false,
|
|
1107
1018
|
enter: true,
|
|
1108
1019
|
exit: true,
|
|
1109
|
-
onEnter: noop
|
|
1110
|
-
onEntering: noop
|
|
1111
|
-
onEntered: noop
|
|
1112
|
-
onExit: noop
|
|
1113
|
-
onExiting: noop
|
|
1114
|
-
onExited: noop
|
|
1020
|
+
onEnter: noop,
|
|
1021
|
+
onEntering: noop,
|
|
1022
|
+
onEntered: noop,
|
|
1023
|
+
onExit: noop,
|
|
1024
|
+
onExiting: noop,
|
|
1025
|
+
onExited: noop
|
|
1115
1026
|
};
|
|
1116
1027
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1117
1028
|
Transition.EXITED = EXITED;
|
|
@@ -1177,7 +1088,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1177
1088
|
}
|
|
1178
1089
|
|
|
1179
1090
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1180
|
-
var defaultProps
|
|
1091
|
+
var defaultProps = {
|
|
1181
1092
|
in: false,
|
|
1182
1093
|
timeout: 300,
|
|
1183
1094
|
mountOnEnter: false,
|
|
@@ -1185,7 +1096,7 @@ var defaultProps$E = {
|
|
|
1185
1096
|
appear: false,
|
|
1186
1097
|
getDimensionValue: getDefaultDimensionValue
|
|
1187
1098
|
};
|
|
1188
|
-
var Collapse =
|
|
1099
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1189
1100
|
var onEnter = _ref.onEnter,
|
|
1190
1101
|
onEntering = _ref.onEntering,
|
|
1191
1102
|
onEntered = _ref.onEntered,
|
|
@@ -1232,7 +1143,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1232
1143
|
elem.style[computedDimension] = null;
|
|
1233
1144
|
}, onExiting);
|
|
1234
1145
|
}, [computedDimension, onExiting]);
|
|
1235
|
-
return /*#__PURE__*/
|
|
1146
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1236
1147
|
, _extends({
|
|
1237
1148
|
ref: ref,
|
|
1238
1149
|
addEndListener: transitionEnd
|
|
@@ -1244,33 +1155,33 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1244
1155
|
onExit: handleExit,
|
|
1245
1156
|
onExiting: handleExiting
|
|
1246
1157
|
}), function (state, innerProps) {
|
|
1247
|
-
return
|
|
1158
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1248
1159
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1249
1160
|
}));
|
|
1250
1161
|
});
|
|
1251
1162
|
}); // @ts-ignore
|
|
1252
1163
|
|
|
1253
1164
|
// @ts-ignore
|
|
1254
|
-
Collapse.defaultProps = defaultProps
|
|
1165
|
+
Collapse.defaultProps = defaultProps;
|
|
1255
1166
|
|
|
1256
|
-
var AccordionCollapse =
|
|
1167
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1257
1168
|
var children = _ref.children,
|
|
1258
1169
|
eventKey = _ref.eventKey,
|
|
1259
1170
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1260
1171
|
|
|
1261
|
-
var contextEventKey = useContext(context
|
|
1172
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1262
1173
|
// from collapsing the accordion when clicked.
|
|
1263
1174
|
|
|
1264
|
-
return /*#__PURE__*/
|
|
1175
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1265
1176
|
value: null
|
|
1266
|
-
}, /*#__PURE__*/
|
|
1177
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1267
1178
|
ref: ref,
|
|
1268
1179
|
in: contextEventKey === eventKey
|
|
1269
|
-
}, props), /*#__PURE__*/
|
|
1180
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1270
1181
|
});
|
|
1271
1182
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1272
1183
|
|
|
1273
|
-
var Accordion =
|
|
1184
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1274
1185
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1275
1186
|
activeKey: 'onSelect'
|
|
1276
1187
|
}),
|
|
@@ -1284,11 +1195,11 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1284
1195
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1285
1196
|
|
|
1286
1197
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1287
|
-
return /*#__PURE__*/
|
|
1198
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1288
1199
|
value: activeKey || null
|
|
1289
|
-
}, /*#__PURE__*/
|
|
1200
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1290
1201
|
value: onSelect || null
|
|
1291
|
-
}, /*#__PURE__*/
|
|
1202
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1292
1203
|
ref: ref
|
|
1293
1204
|
}, controlledProps, {
|
|
1294
1205
|
className: finalClassName
|
|
@@ -1324,7 +1235,7 @@ function useEventCallback(fn) {
|
|
|
1324
1235
|
}
|
|
1325
1236
|
|
|
1326
1237
|
var _fadeStyles;
|
|
1327
|
-
var defaultProps$
|
|
1238
|
+
var defaultProps$1 = {
|
|
1328
1239
|
in: false,
|
|
1329
1240
|
timeout: 300,
|
|
1330
1241
|
mountOnEnter: false,
|
|
@@ -1332,7 +1243,7 @@ var defaultProps$D = {
|
|
|
1332
1243
|
appear: false
|
|
1333
1244
|
};
|
|
1334
1245
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1335
|
-
var Fade =
|
|
1246
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1336
1247
|
var className = _ref.className,
|
|
1337
1248
|
children = _ref.children,
|
|
1338
1249
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1341,51 +1252,51 @@ var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
|
1341
1252
|
triggerBrowserReflow(node);
|
|
1342
1253
|
if (props.onEnter) props.onEnter(node);
|
|
1343
1254
|
}, [props]);
|
|
1344
|
-
return /*#__PURE__*/
|
|
1255
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1345
1256
|
ref: ref,
|
|
1346
1257
|
addEndListener: transitionEnd
|
|
1347
1258
|
}, props, {
|
|
1348
1259
|
onEnter: handleEnter
|
|
1349
1260
|
}), function (status, innerProps) {
|
|
1350
|
-
return
|
|
1261
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1351
1262
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1352
1263
|
}));
|
|
1353
1264
|
});
|
|
1354
1265
|
});
|
|
1355
|
-
Fade.defaultProps = defaultProps$
|
|
1266
|
+
Fade.defaultProps = defaultProps$1;
|
|
1356
1267
|
Fade.displayName = 'Fade';
|
|
1357
1268
|
|
|
1358
|
-
var propTypes
|
|
1269
|
+
var propTypes = {
|
|
1359
1270
|
label: PropTypes.string.isRequired,
|
|
1360
1271
|
onClick: PropTypes.func
|
|
1361
1272
|
};
|
|
1362
|
-
var defaultProps$
|
|
1273
|
+
var defaultProps$2 = {
|
|
1363
1274
|
label: 'Close'
|
|
1364
1275
|
};
|
|
1365
|
-
var CloseButton =
|
|
1276
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1366
1277
|
var label = _ref.label,
|
|
1367
1278
|
onClick = _ref.onClick,
|
|
1368
1279
|
className = _ref.className,
|
|
1369
1280
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1370
1281
|
|
|
1371
|
-
return /*#__PURE__*/
|
|
1282
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1372
1283
|
ref: ref,
|
|
1373
1284
|
type: "button",
|
|
1374
1285
|
className: classnames('close', className),
|
|
1375
1286
|
onClick: onClick
|
|
1376
|
-
}, props), /*#__PURE__*/
|
|
1287
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1377
1288
|
"aria-hidden": "true"
|
|
1378
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1289
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1379
1290
|
className: "sr-only"
|
|
1380
1291
|
}, label));
|
|
1381
1292
|
});
|
|
1382
1293
|
CloseButton.displayName = 'CloseButton';
|
|
1383
|
-
CloseButton.propTypes = propTypes
|
|
1384
|
-
CloseButton.defaultProps = defaultProps$
|
|
1294
|
+
CloseButton.propTypes = propTypes;
|
|
1295
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1385
1296
|
|
|
1386
1297
|
var divWithClassName = (function (className) {
|
|
1387
|
-
return
|
|
1388
|
-
return /*#__PURE__*/
|
|
1298
|
+
return React.forwardRef(function (p, ref) {
|
|
1299
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1389
1300
|
ref: ref,
|
|
1390
1301
|
className: classnames(p.className, className)
|
|
1391
1302
|
}));
|
|
@@ -1411,7 +1322,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1411
1322
|
Component = _ref.Component,
|
|
1412
1323
|
defaultProps = _ref.defaultProps;
|
|
1413
1324
|
|
|
1414
|
-
var BsComponent =
|
|
1325
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1415
1326
|
var className = _ref2.className,
|
|
1416
1327
|
bsPrefix = _ref2.bsPrefix,
|
|
1417
1328
|
_ref2$as = _ref2.as,
|
|
@@ -1419,7 +1330,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1419
1330
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1420
1331
|
|
|
1421
1332
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1422
|
-
return /*#__PURE__*/
|
|
1333
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1423
1334
|
ref: ref,
|
|
1424
1335
|
className: classnames(className, resolvedPrefix)
|
|
1425
1336
|
}, props));
|
|
@@ -1441,7 +1352,7 @@ function isTrivialHref(href) {
|
|
|
1441
1352
|
*/
|
|
1442
1353
|
|
|
1443
1354
|
|
|
1444
|
-
var SafeAnchor =
|
|
1355
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1445
1356
|
var _ref$as = _ref.as,
|
|
1446
1357
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1447
1358
|
disabled = _ref.disabled,
|
|
@@ -1485,7 +1396,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1485
1396
|
props['aria-disabled'] = true;
|
|
1486
1397
|
}
|
|
1487
1398
|
|
|
1488
|
-
return /*#__PURE__*/
|
|
1399
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1489
1400
|
ref: ref
|
|
1490
1401
|
}, props, {
|
|
1491
1402
|
onClick: handleClick,
|
|
@@ -1494,20 +1405,20 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1494
1405
|
});
|
|
1495
1406
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1496
1407
|
|
|
1497
|
-
var DivStyledAsH4
|
|
1498
|
-
DivStyledAsH4
|
|
1408
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1409
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1499
1410
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1500
|
-
Component: DivStyledAsH4
|
|
1411
|
+
Component: DivStyledAsH4
|
|
1501
1412
|
});
|
|
1502
1413
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1503
1414
|
Component: SafeAnchor
|
|
1504
1415
|
});
|
|
1505
|
-
var defaultProps$
|
|
1416
|
+
var defaultProps$3 = {
|
|
1506
1417
|
show: true,
|
|
1507
1418
|
transition: Fade,
|
|
1508
1419
|
closeLabel: 'Close alert'
|
|
1509
1420
|
};
|
|
1510
|
-
var Alert =
|
|
1421
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1511
1422
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1512
1423
|
show: 'onClose'
|
|
1513
1424
|
}),
|
|
@@ -1529,17 +1440,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1529
1440
|
}
|
|
1530
1441
|
});
|
|
1531
1442
|
var Transition = transition === true ? Fade : transition;
|
|
1532
|
-
var alert = /*#__PURE__*/
|
|
1443
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1533
1444
|
role: "alert"
|
|
1534
1445
|
}, Transition ? props : undefined, {
|
|
1535
1446
|
ref: ref,
|
|
1536
1447
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1537
|
-
}), dismissible && /*#__PURE__*/
|
|
1448
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1538
1449
|
onClick: handleClose,
|
|
1539
1450
|
label: closeLabel
|
|
1540
1451
|
}), children);
|
|
1541
1452
|
if (!Transition) return show ? alert : null;
|
|
1542
|
-
return /*#__PURE__*/
|
|
1453
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1543
1454
|
unmountOnExit: true
|
|
1544
1455
|
}, props, {
|
|
1545
1456
|
ref: undefined,
|
|
@@ -1547,14 +1458,14 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1547
1458
|
}), alert);
|
|
1548
1459
|
});
|
|
1549
1460
|
Alert.displayName = 'Alert';
|
|
1550
|
-
Alert.defaultProps = defaultProps$
|
|
1461
|
+
Alert.defaultProps = defaultProps$3;
|
|
1551
1462
|
Alert.Link = AlertLink;
|
|
1552
1463
|
Alert.Heading = AlertHeading;
|
|
1553
1464
|
|
|
1554
|
-
var defaultProps$
|
|
1465
|
+
var defaultProps$4 = {
|
|
1555
1466
|
pill: false
|
|
1556
1467
|
};
|
|
1557
|
-
var Badge =
|
|
1468
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1558
1469
|
var bsPrefix = _ref.bsPrefix,
|
|
1559
1470
|
variant = _ref.variant,
|
|
1560
1471
|
pill = _ref.pill,
|
|
@@ -1564,20 +1475,20 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1564
1475
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1565
1476
|
|
|
1566
1477
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1567
|
-
return /*#__PURE__*/
|
|
1478
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1568
1479
|
ref: ref
|
|
1569
1480
|
}, props, {
|
|
1570
1481
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1571
1482
|
}));
|
|
1572
1483
|
});
|
|
1573
1484
|
Badge.displayName = 'Badge';
|
|
1574
|
-
Badge.defaultProps = defaultProps$
|
|
1485
|
+
Badge.defaultProps = defaultProps$4;
|
|
1575
1486
|
|
|
1576
|
-
var defaultProps$
|
|
1487
|
+
var defaultProps$5 = {
|
|
1577
1488
|
active: false,
|
|
1578
1489
|
linkProps: {}
|
|
1579
1490
|
};
|
|
1580
|
-
var BreadcrumbItem =
|
|
1491
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1581
1492
|
var bsPrefix = _ref.bsPrefix,
|
|
1582
1493
|
active = _ref.active,
|
|
1583
1494
|
children = _ref.children,
|
|
@@ -1593,27 +1504,27 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1593
1504
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1594
1505
|
|
|
1595
1506
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1596
|
-
return /*#__PURE__*/
|
|
1507
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1597
1508
|
ref: ref
|
|
1598
1509
|
}, props, {
|
|
1599
1510
|
className: classnames(prefix, className, {
|
|
1600
1511
|
active: active
|
|
1601
1512
|
}),
|
|
1602
1513
|
"aria-current": active ? 'page' : undefined
|
|
1603
|
-
}), active ? children : /*#__PURE__*/
|
|
1514
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1604
1515
|
href: href,
|
|
1605
1516
|
title: title,
|
|
1606
1517
|
target: target
|
|
1607
1518
|
}), children));
|
|
1608
1519
|
});
|
|
1609
1520
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1610
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1521
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1611
1522
|
|
|
1612
|
-
var defaultProps$
|
|
1523
|
+
var defaultProps$6 = {
|
|
1613
1524
|
label: 'breadcrumb',
|
|
1614
1525
|
listProps: {}
|
|
1615
1526
|
};
|
|
1616
|
-
var Breadcrumb =
|
|
1527
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1617
1528
|
var bsPrefix = _ref.bsPrefix,
|
|
1618
1529
|
className = _ref.className,
|
|
1619
1530
|
listProps = _ref.listProps,
|
|
@@ -1624,24 +1535,24 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1624
1535
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1625
1536
|
|
|
1626
1537
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1627
|
-
return /*#__PURE__*/
|
|
1538
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1628
1539
|
"aria-label": label,
|
|
1629
1540
|
className: className,
|
|
1630
1541
|
ref: ref
|
|
1631
|
-
}, props), /*#__PURE__*/
|
|
1542
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1632
1543
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1633
1544
|
}), children));
|
|
1634
1545
|
});
|
|
1635
1546
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1636
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1547
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1637
1548
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1638
1549
|
|
|
1639
|
-
var defaultProps$
|
|
1550
|
+
var defaultProps$7 = {
|
|
1640
1551
|
variant: 'primary',
|
|
1641
1552
|
active: false,
|
|
1642
1553
|
disabled: false
|
|
1643
1554
|
};
|
|
1644
|
-
var Button =
|
|
1555
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1645
1556
|
var bsPrefix = _ref.bsPrefix,
|
|
1646
1557
|
variant = _ref.variant,
|
|
1647
1558
|
size = _ref.size,
|
|
@@ -1656,7 +1567,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1656
1567
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1657
1568
|
|
|
1658
1569
|
if (props.href) {
|
|
1659
|
-
return /*#__PURE__*/
|
|
1570
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1660
1571
|
as: as,
|
|
1661
1572
|
ref: ref,
|
|
1662
1573
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1674,19 +1585,19 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1674
1585
|
}
|
|
1675
1586
|
|
|
1676
1587
|
var Component = as || 'button';
|
|
1677
|
-
return /*#__PURE__*/
|
|
1588
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1678
1589
|
className: classes
|
|
1679
1590
|
}));
|
|
1680
1591
|
});
|
|
1681
1592
|
Button.displayName = 'Button';
|
|
1682
|
-
Button.defaultProps = defaultProps$
|
|
1593
|
+
Button.defaultProps = defaultProps$7;
|
|
1683
1594
|
|
|
1684
|
-
var defaultProps$
|
|
1595
|
+
var defaultProps$8 = {
|
|
1685
1596
|
vertical: false,
|
|
1686
1597
|
toggle: false,
|
|
1687
1598
|
role: 'group'
|
|
1688
1599
|
};
|
|
1689
|
-
var ButtonGroup =
|
|
1600
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1690
1601
|
var bsPrefix = _ref.bsPrefix,
|
|
1691
1602
|
size = _ref.size,
|
|
1692
1603
|
toggle = _ref.toggle,
|
|
@@ -1699,38 +1610,38 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1699
1610
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1700
1611
|
var baseClass = prefix;
|
|
1701
1612
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1702
|
-
return /*#__PURE__*/
|
|
1613
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1703
1614
|
ref: ref,
|
|
1704
1615
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1705
1616
|
}));
|
|
1706
1617
|
});
|
|
1707
1618
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1708
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1619
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1709
1620
|
|
|
1710
|
-
var defaultProps$
|
|
1621
|
+
var defaultProps$9 = {
|
|
1711
1622
|
role: 'toolbar'
|
|
1712
1623
|
};
|
|
1713
|
-
var ButtonToolbar =
|
|
1624
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1714
1625
|
var bsPrefix = _ref.bsPrefix,
|
|
1715
1626
|
className = _ref.className,
|
|
1716
1627
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1717
1628
|
|
|
1718
1629
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1719
|
-
return /*#__PURE__*/
|
|
1630
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1720
1631
|
ref: ref,
|
|
1721
1632
|
className: classnames(className, prefix)
|
|
1722
1633
|
}));
|
|
1723
1634
|
});
|
|
1724
1635
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1725
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1636
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1726
1637
|
|
|
1727
|
-
var context$1 =
|
|
1638
|
+
var context$1 = React.createContext(null);
|
|
1728
1639
|
context$1.displayName = 'CardContext';
|
|
1729
1640
|
|
|
1730
|
-
var defaultProps$
|
|
1641
|
+
var defaultProps$a = {
|
|
1731
1642
|
variant: null
|
|
1732
1643
|
};
|
|
1733
|
-
var CardImg =
|
|
1644
|
+
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
|
|
1734
1645
|
function (_ref, ref) {
|
|
1735
1646
|
var bsPrefix = _ref.bsPrefix,
|
|
1736
1647
|
className = _ref.className,
|
|
@@ -1740,13 +1651,13 @@ function (_ref, ref) {
|
|
|
1740
1651
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1741
1652
|
|
|
1742
1653
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1743
|
-
return /*#__PURE__*/
|
|
1654
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1744
1655
|
ref: ref,
|
|
1745
1656
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1746
1657
|
}, props));
|
|
1747
1658
|
});
|
|
1748
1659
|
CardImg.displayName = 'CardImg';
|
|
1749
|
-
CardImg.defaultProps = defaultProps$
|
|
1660
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1750
1661
|
|
|
1751
1662
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1752
1663
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1766,10 +1677,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1766
1677
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1767
1678
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1768
1679
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1769
|
-
var defaultProps$
|
|
1680
|
+
var defaultProps$b = {
|
|
1770
1681
|
body: false
|
|
1771
1682
|
};
|
|
1772
|
-
var Card =
|
|
1683
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1773
1684
|
var bsPrefix = _ref.bsPrefix,
|
|
1774
1685
|
className = _ref.className,
|
|
1775
1686
|
bg = _ref.bg,
|
|
@@ -1787,19 +1698,19 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1787
1698
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1788
1699
|
};
|
|
1789
1700
|
}, [prefix]);
|
|
1790
|
-
return /*#__PURE__*/
|
|
1701
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1791
1702
|
value: cardContext
|
|
1792
|
-
}, /*#__PURE__*/
|
|
1703
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1793
1704
|
ref: ref
|
|
1794
1705
|
}, props, {
|
|
1795
1706
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1796
1707
|
}), body ?
|
|
1797
1708
|
/*#__PURE__*/
|
|
1798
1709
|
// @ts-ignore
|
|
1799
|
-
|
|
1710
|
+
React.createElement(CardBody, null, children) : children));
|
|
1800
1711
|
});
|
|
1801
1712
|
Card.displayName = 'Card';
|
|
1802
|
-
Card.defaultProps = defaultProps$
|
|
1713
|
+
Card.defaultProps = defaultProps$b;
|
|
1803
1714
|
Card.Img = CardImg;
|
|
1804
1715
|
Card.Title = CardTitle;
|
|
1805
1716
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1932,20 +1843,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1932
1843
|
/**
|
|
1933
1844
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1934
1845
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1935
|
-
*
|
|
1936
|
-
*
|
|
1937
|
-
*
|
|
1938
|
-
* ```tsx
|
|
1939
|
-
* const { set, clear } = useTimeout();
|
|
1940
|
-
* const [hello, showHello] = useState(false);
|
|
1941
|
-
* //Display hello after 5 seconds
|
|
1942
|
-
* set(() => showHello(true), 5000);
|
|
1943
|
-
* return (
|
|
1944
|
-
* <div className="App">
|
|
1945
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1946
|
-
* </div>
|
|
1947
|
-
* );
|
|
1948
|
-
* ```
|
|
1949
1846
|
*/
|
|
1950
1847
|
|
|
1951
1848
|
|
|
@@ -1986,7 +1883,7 @@ function useTimeout() {
|
|
|
1986
1883
|
|
|
1987
1884
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1988
1885
|
|
|
1989
|
-
var CarouselItem =
|
|
1886
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1990
1887
|
var _ref$as = _ref.as,
|
|
1991
1888
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1992
1889
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -1995,7 +1892,7 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1995
1892
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1996
1893
|
|
|
1997
1894
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1998
|
-
return /*#__PURE__*/
|
|
1895
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1999
1896
|
ref: ref
|
|
2000
1897
|
}, props, {
|
|
2001
1898
|
className: finalClassName
|
|
@@ -2014,8 +1911,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
2014
1911
|
|
|
2015
1912
|
function map(children, func) {
|
|
2016
1913
|
var index = 0;
|
|
2017
|
-
return
|
|
2018
|
-
return
|
|
1914
|
+
return React.Children.map(children, function (child) {
|
|
1915
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
2019
1916
|
});
|
|
2020
1917
|
}
|
|
2021
1918
|
/**
|
|
@@ -2028,13 +1925,13 @@ function map(children, func) {
|
|
|
2028
1925
|
|
|
2029
1926
|
function forEach(children, func) {
|
|
2030
1927
|
var index = 0;
|
|
2031
|
-
|
|
2032
|
-
if (
|
|
1928
|
+
React.Children.forEach(children, function (child) {
|
|
1929
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
2033
1930
|
});
|
|
2034
1931
|
}
|
|
2035
1932
|
|
|
2036
1933
|
var SWIPE_THRESHOLD = 40;
|
|
2037
|
-
var propTypes$
|
|
1934
|
+
var propTypes$1 = {
|
|
2038
1935
|
/**
|
|
2039
1936
|
* @default 'carousel'
|
|
2040
1937
|
*/
|
|
@@ -2136,7 +2033,7 @@ var propTypes$9 = {
|
|
|
2136
2033
|
*/
|
|
2137
2034
|
nextLabel: PropTypes.string
|
|
2138
2035
|
};
|
|
2139
|
-
var defaultProps$
|
|
2036
|
+
var defaultProps$c = {
|
|
2140
2037
|
slide: true,
|
|
2141
2038
|
fade: false,
|
|
2142
2039
|
controls: true,
|
|
@@ -2147,12 +2044,12 @@ var defaultProps$s = {
|
|
|
2147
2044
|
pause: 'hover',
|
|
2148
2045
|
wrap: true,
|
|
2149
2046
|
touch: true,
|
|
2150
|
-
prevIcon: /*#__PURE__*/
|
|
2047
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2151
2048
|
"aria-hidden": "true",
|
|
2152
2049
|
className: "carousel-control-prev-icon"
|
|
2153
2050
|
}),
|
|
2154
2051
|
prevLabel: 'Previous',
|
|
2155
|
-
nextIcon: /*#__PURE__*/
|
|
2052
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2156
2053
|
"aria-hidden": "true",
|
|
2157
2054
|
className: "carousel-control-next-icon"
|
|
2158
2055
|
}),
|
|
@@ -2457,7 +2354,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2457
2354
|
};
|
|
2458
2355
|
});
|
|
2459
2356
|
}, [indicators, numChildren, onSelect]);
|
|
2460
|
-
return /*#__PURE__*/
|
|
2357
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2461
2358
|
ref: elementRef
|
|
2462
2359
|
}, props, {
|
|
2463
2360
|
onKeyDown: handleKeyDown,
|
|
@@ -2467,52 +2364,52 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2467
2364
|
onTouchMove: handleTouchMove,
|
|
2468
2365
|
onTouchEnd: handleTouchEnd,
|
|
2469
2366
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2470
|
-
}), indicators && /*#__PURE__*/
|
|
2367
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2471
2368
|
className: prefix + "-indicators"
|
|
2472
2369
|
}, map(children, function (_child, index) {
|
|
2473
|
-
return /*#__PURE__*/
|
|
2370
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2474
2371
|
key: index,
|
|
2475
2372
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2476
2373
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2477
2374
|
});
|
|
2478
|
-
})), /*#__PURE__*/
|
|
2375
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2479
2376
|
className: prefix + "-inner"
|
|
2480
2377
|
}, map(children, function (child, index) {
|
|
2481
2378
|
var isActive = index === renderedActiveIndex;
|
|
2482
|
-
return slide ? /*#__PURE__*/
|
|
2379
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2483
2380
|
in: isActive,
|
|
2484
2381
|
onEnter: isActive ? handleEnter : undefined,
|
|
2485
2382
|
onEntered: isActive ? handleEntered : undefined,
|
|
2486
2383
|
addEndListener: transitionEnd
|
|
2487
2384
|
}, function (status) {
|
|
2488
|
-
return
|
|
2385
|
+
return React.cloneElement(child, {
|
|
2489
2386
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2490
2387
|
});
|
|
2491
|
-
}) :
|
|
2388
|
+
}) : React.cloneElement(child, {
|
|
2492
2389
|
className: classnames(child.props.className, isActive && 'active')
|
|
2493
2390
|
});
|
|
2494
|
-
})), controls && /*#__PURE__*/
|
|
2391
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2495
2392
|
className: prefix + "-control-prev",
|
|
2496
2393
|
onClick: prev
|
|
2497
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2394
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2498
2395
|
className: "sr-only"
|
|
2499
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2396
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2500
2397
|
className: prefix + "-control-next",
|
|
2501
2398
|
onClick: next
|
|
2502
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2399
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2503
2400
|
className: "sr-only"
|
|
2504
2401
|
}, nextLabel))));
|
|
2505
2402
|
}
|
|
2506
2403
|
|
|
2507
|
-
var Carousel =
|
|
2404
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2508
2405
|
Carousel.displayName = 'Carousel';
|
|
2509
|
-
Carousel.propTypes = propTypes$
|
|
2510
|
-
Carousel.defaultProps = defaultProps$
|
|
2406
|
+
Carousel.propTypes = propTypes$1;
|
|
2407
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2511
2408
|
Carousel.Caption = CarouselCaption;
|
|
2512
2409
|
Carousel.Item = CarouselItem;
|
|
2513
2410
|
|
|
2514
|
-
var DEVICE_SIZES
|
|
2515
|
-
var Col =
|
|
2411
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2412
|
+
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
|
|
2516
2413
|
function (_ref, ref) {
|
|
2517
2414
|
var bsPrefix = _ref.bsPrefix,
|
|
2518
2415
|
className = _ref.className,
|
|
@@ -2523,7 +2420,7 @@ function (_ref, ref) {
|
|
|
2523
2420
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2524
2421
|
var spans = [];
|
|
2525
2422
|
var classes = [];
|
|
2526
|
-
DEVICE_SIZES
|
|
2423
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2527
2424
|
var propValue = props[brkPoint];
|
|
2528
2425
|
delete props[brkPoint];
|
|
2529
2426
|
var span;
|
|
@@ -2549,7 +2446,7 @@ function (_ref, ref) {
|
|
|
2549
2446
|
spans.push(prefix); // plain 'col'
|
|
2550
2447
|
}
|
|
2551
2448
|
|
|
2552
|
-
return /*#__PURE__*/
|
|
2449
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2553
2450
|
ref: ref,
|
|
2554
2451
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2555
2452
|
}));
|
|
@@ -2658,7 +2555,7 @@ function useForceUpdate() {
|
|
|
2658
2555
|
return dispatch;
|
|
2659
2556
|
}
|
|
2660
2557
|
|
|
2661
|
-
var DropdownContext = /*#__PURE__*/
|
|
2558
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2662
2559
|
|
|
2663
2560
|
function useSafeState(state) {
|
|
2664
2561
|
var isMounted = useMounted();
|
|
@@ -2704,50 +2601,21 @@ function getBasePlacement(placement) {
|
|
|
2704
2601
|
return placement.split('-')[0];
|
|
2705
2602
|
}
|
|
2706
2603
|
|
|
2707
|
-
|
|
2708
|
-
var rect = element.getBoundingClientRect();
|
|
2709
|
-
return {
|
|
2710
|
-
width: rect.width,
|
|
2711
|
-
height: rect.height,
|
|
2712
|
-
top: rect.top,
|
|
2713
|
-
right: rect.right,
|
|
2714
|
-
bottom: rect.bottom,
|
|
2715
|
-
left: rect.left,
|
|
2716
|
-
x: rect.left,
|
|
2717
|
-
y: rect.top
|
|
2718
|
-
};
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2604
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2721
2605
|
// means it doesn't take into account transforms.
|
|
2722
|
-
|
|
2723
2606
|
function getLayoutRect(element) {
|
|
2724
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2725
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2726
|
-
|
|
2727
|
-
var width = element.offsetWidth;
|
|
2728
|
-
var height = element.offsetHeight;
|
|
2729
|
-
|
|
2730
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2731
|
-
width = clientRect.width;
|
|
2732
|
-
}
|
|
2733
|
-
|
|
2734
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2735
|
-
height = clientRect.height;
|
|
2736
|
-
}
|
|
2737
|
-
|
|
2738
2607
|
return {
|
|
2739
2608
|
x: element.offsetLeft,
|
|
2740
2609
|
y: element.offsetTop,
|
|
2741
|
-
width:
|
|
2742
|
-
height:
|
|
2610
|
+
width: element.offsetWidth,
|
|
2611
|
+
height: element.offsetHeight
|
|
2743
2612
|
};
|
|
2744
2613
|
}
|
|
2745
2614
|
|
|
2746
|
-
|
|
2747
|
-
if (node == null) {
|
|
2748
|
-
return window;
|
|
2749
|
-
}
|
|
2615
|
+
/*:: import type { Window } from '../types'; */
|
|
2750
2616
|
|
|
2617
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2618
|
+
function getWindow(node) {
|
|
2751
2619
|
if (node.toString() !== '[object Window]') {
|
|
2752
2620
|
var ownerDocument = node.ownerDocument;
|
|
2753
2621
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2756,27 +2624,31 @@ function getWindow(node) {
|
|
|
2756
2624
|
return node;
|
|
2757
2625
|
}
|
|
2758
2626
|
|
|
2627
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2628
|
+
Element); */
|
|
2629
|
+
|
|
2759
2630
|
function isElement(node) {
|
|
2760
2631
|
var OwnElement = getWindow(node).Element;
|
|
2761
2632
|
return node instanceof OwnElement || node instanceof Element;
|
|
2762
2633
|
}
|
|
2634
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2635
|
+
HTMLElement); */
|
|
2636
|
+
|
|
2763
2637
|
|
|
2764
2638
|
function isHTMLElement(node) {
|
|
2765
2639
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2766
2640
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2767
2641
|
}
|
|
2642
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2643
|
+
ShadowRoot); */
|
|
2768
2644
|
|
|
2769
|
-
function isShadowRoot(node) {
|
|
2770
|
-
// IE 11 has no ShadowRoot
|
|
2771
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2772
|
-
return false;
|
|
2773
|
-
}
|
|
2774
2645
|
|
|
2646
|
+
function isShadowRoot(node) {
|
|
2775
2647
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2776
2648
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2777
2649
|
}
|
|
2778
2650
|
|
|
2779
|
-
function contains
|
|
2651
|
+
function contains(parent, child) {
|
|
2780
2652
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2781
2653
|
|
|
2782
2654
|
if (parent.contains(child)) {
|
|
@@ -2788,7 +2660,7 @@ function contains$1(parent, child) {
|
|
|
2788
2660
|
do {
|
|
2789
2661
|
if (next && parent.isSameNode(next)) {
|
|
2790
2662
|
return true;
|
|
2791
|
-
} // $FlowFixMe
|
|
2663
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2792
2664
|
|
|
2793
2665
|
|
|
2794
2666
|
next = next.parentNode || next.host;
|
|
@@ -2803,7 +2675,7 @@ function getNodeName(element) {
|
|
|
2803
2675
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2804
2676
|
}
|
|
2805
2677
|
|
|
2806
|
-
function getComputedStyle$
|
|
2678
|
+
function getComputedStyle$2(element) {
|
|
2807
2679
|
return getWindow(element).getComputedStyle(element);
|
|
2808
2680
|
}
|
|
2809
2681
|
|
|
@@ -2812,9 +2684,8 @@ function isTableElement(element) {
|
|
|
2812
2684
|
}
|
|
2813
2685
|
|
|
2814
2686
|
function getDocumentElement(element) {
|
|
2815
|
-
// $FlowFixMe
|
|
2816
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2817
|
-
element.document) || window.document).documentElement;
|
|
2687
|
+
// $FlowFixMe: assume body is always available
|
|
2688
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2818
2689
|
}
|
|
2819
2690
|
|
|
2820
2691
|
function getParentNode(element) {
|
|
@@ -2822,13 +2693,12 @@ function getParentNode(element) {
|
|
|
2822
2693
|
return element;
|
|
2823
2694
|
}
|
|
2824
2695
|
|
|
2825
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2826
|
-
// $FlowFixMe[incompatible-return]
|
|
2827
|
-
// $FlowFixMe[prop-missing]
|
|
2696
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2828
2697
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2829
|
-
element.parentNode ||
|
|
2830
|
-
|
|
2831
|
-
|
|
2698
|
+
element.parentNode || // DOM Element detected
|
|
2699
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2700
|
+
element.host || // ShadowRoot detected
|
|
2701
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2832
2702
|
getDocumentElement(element) // fallback
|
|
2833
2703
|
|
|
2834
2704
|
);
|
|
@@ -2836,36 +2706,33 @@ function getParentNode(element) {
|
|
|
2836
2706
|
|
|
2837
2707
|
function getTrueOffsetParent(element) {
|
|
2838
2708
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2839
|
-
getComputedStyle$
|
|
2709
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2840
2710
|
return null;
|
|
2841
2711
|
}
|
|
2842
2712
|
|
|
2843
|
-
|
|
2844
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2845
|
-
// return the containing block
|
|
2713
|
+
var offsetParent = element.offsetParent;
|
|
2846
2714
|
|
|
2715
|
+
if (offsetParent) {
|
|
2716
|
+
var html = getDocumentElement(offsetParent);
|
|
2847
2717
|
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2851
|
-
|
|
2852
|
-
if (isIE && isHTMLElement(element)) {
|
|
2853
|
-
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2854
|
-
var elementCss = getComputedStyle$1(element);
|
|
2855
|
-
|
|
2856
|
-
if (elementCss.position === 'fixed') {
|
|
2857
|
-
return null;
|
|
2718
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2719
|
+
return html;
|
|
2858
2720
|
}
|
|
2859
2721
|
}
|
|
2860
2722
|
|
|
2723
|
+
return offsetParent;
|
|
2724
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2725
|
+
// return the containing block
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
function getContainingBlock(element) {
|
|
2861
2729
|
var currentNode = getParentNode(element);
|
|
2862
2730
|
|
|
2863
2731
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2864
|
-
var css = getComputedStyle$
|
|
2732
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2865
2733
|
// create a containing block.
|
|
2866
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2867
2734
|
|
|
2868
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2735
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2869
2736
|
return currentNode;
|
|
2870
2737
|
} else {
|
|
2871
2738
|
currentNode = currentNode.parentNode;
|
|
@@ -2881,11 +2748,11 @@ function getOffsetParent(element) {
|
|
|
2881
2748
|
var window = getWindow(element);
|
|
2882
2749
|
var offsetParent = getTrueOffsetParent(element);
|
|
2883
2750
|
|
|
2884
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2751
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2885
2752
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2886
2753
|
}
|
|
2887
2754
|
|
|
2888
|
-
if (offsetParent &&
|
|
2755
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2889
2756
|
return window;
|
|
2890
2757
|
}
|
|
2891
2758
|
|
|
@@ -2896,12 +2763,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2896
2763
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2897
2764
|
}
|
|
2898
2765
|
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
var round = Math.round;
|
|
2902
|
-
|
|
2903
|
-
function within(min$1, value, max$1) {
|
|
2904
|
-
return max(min$1, min(value, max$1));
|
|
2766
|
+
function within(min, value, max) {
|
|
2767
|
+
return Math.max(min, Math.min(value, max));
|
|
2905
2768
|
}
|
|
2906
2769
|
|
|
2907
2770
|
function getFreshSideObject() {
|
|
@@ -2914,7 +2777,7 @@ function getFreshSideObject() {
|
|
|
2914
2777
|
}
|
|
2915
2778
|
|
|
2916
2779
|
function mergePaddingObject(paddingObject) {
|
|
2917
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2780
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2918
2781
|
}
|
|
2919
2782
|
|
|
2920
2783
|
function expandToHashMap(value, keys) {
|
|
@@ -2924,19 +2787,11 @@ function expandToHashMap(value, keys) {
|
|
|
2924
2787
|
}, {});
|
|
2925
2788
|
}
|
|
2926
2789
|
|
|
2927
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2928
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2929
|
-
placement: state.placement
|
|
2930
|
-
})) : padding;
|
|
2931
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2932
|
-
};
|
|
2933
|
-
|
|
2934
2790
|
function arrow(_ref) {
|
|
2935
2791
|
var _state$modifiersData$;
|
|
2936
2792
|
|
|
2937
2793
|
var state = _ref.state,
|
|
2938
|
-
name = _ref.name
|
|
2939
|
-
options = _ref.options;
|
|
2794
|
+
name = _ref.name;
|
|
2940
2795
|
var arrowElement = state.elements.arrow;
|
|
2941
2796
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2942
2797
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2948,7 +2803,7 @@ function arrow(_ref) {
|
|
|
2948
2803
|
return;
|
|
2949
2804
|
}
|
|
2950
2805
|
|
|
2951
|
-
var paddingObject =
|
|
2806
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2952
2807
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2953
2808
|
var minProp = axis === 'y' ? top : left;
|
|
2954
2809
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2968,11 +2823,14 @@ function arrow(_ref) {
|
|
|
2968
2823
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2969
2824
|
}
|
|
2970
2825
|
|
|
2971
|
-
function effect
|
|
2826
|
+
function effect(_ref2) {
|
|
2972
2827
|
var state = _ref2.state,
|
|
2973
|
-
options = _ref2.options
|
|
2828
|
+
options = _ref2.options,
|
|
2829
|
+
name = _ref2.name;
|
|
2974
2830
|
var _options$element = options.element,
|
|
2975
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2831
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2832
|
+
_options$padding = options.padding,
|
|
2833
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2976
2834
|
|
|
2977
2835
|
if (arrowElement == null) {
|
|
2978
2836
|
return;
|
|
@@ -2993,7 +2851,7 @@ function effect$1(_ref2) {
|
|
|
2993
2851
|
}
|
|
2994
2852
|
}
|
|
2995
2853
|
|
|
2996
|
-
if (!contains
|
|
2854
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2997
2855
|
if (process.env.NODE_ENV !== "production") {
|
|
2998
2856
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2999
2857
|
}
|
|
@@ -3002,6 +2860,9 @@ function effect$1(_ref2) {
|
|
|
3002
2860
|
}
|
|
3003
2861
|
|
|
3004
2862
|
state.elements.arrow = arrowElement;
|
|
2863
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2864
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2865
|
+
};
|
|
3005
2866
|
} // eslint-disable-next-line import/no-unused-modules
|
|
3006
2867
|
|
|
3007
2868
|
|
|
@@ -3010,7 +2871,7 @@ var arrow$1 = {
|
|
|
3010
2871
|
enabled: true,
|
|
3011
2872
|
phase: 'main',
|
|
3012
2873
|
fn: arrow,
|
|
3013
|
-
effect: effect
|
|
2874
|
+
effect: effect,
|
|
3014
2875
|
requires: ['popperOffsets'],
|
|
3015
2876
|
requiresIfExists: ['preventOverflow']
|
|
3016
2877
|
};
|
|
@@ -3024,14 +2885,14 @@ var unsetSides = {
|
|
|
3024
2885
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
3025
2886
|
// cleanly divide the values into the appropriate subpixels.
|
|
3026
2887
|
|
|
3027
|
-
function
|
|
2888
|
+
function roundOffsets(_ref) {
|
|
3028
2889
|
var x = _ref.x,
|
|
3029
2890
|
y = _ref.y;
|
|
3030
2891
|
var win = window;
|
|
3031
2892
|
var dpr = win.devicePixelRatio || 1;
|
|
3032
2893
|
return {
|
|
3033
|
-
x: round(
|
|
3034
|
-
y: round(
|
|
2894
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2895
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
3035
2896
|
};
|
|
3036
2897
|
}
|
|
3037
2898
|
|
|
@@ -3044,14 +2905,11 @@ function mapToStyles(_ref2) {
|
|
|
3044
2905
|
offsets = _ref2.offsets,
|
|
3045
2906
|
position = _ref2.position,
|
|
3046
2907
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
3047
|
-
adaptive = _ref2.adaptive
|
|
3048
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2908
|
+
adaptive = _ref2.adaptive;
|
|
3049
2909
|
|
|
3050
|
-
var
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
_ref3$y = _ref3.y,
|
|
3054
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2910
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2911
|
+
x = _roundOffsets.x,
|
|
2912
|
+
y = _roundOffsets.y;
|
|
3055
2913
|
|
|
3056
2914
|
var hasX = offsets.hasOwnProperty('x');
|
|
3057
2915
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -3061,32 +2919,23 @@ function mapToStyles(_ref2) {
|
|
|
3061
2919
|
|
|
3062
2920
|
if (adaptive) {
|
|
3063
2921
|
var offsetParent = getOffsetParent(popper);
|
|
3064
|
-
var heightProp = 'clientHeight';
|
|
3065
|
-
var widthProp = 'clientWidth';
|
|
3066
2922
|
|
|
3067
2923
|
if (offsetParent === getWindow(popper)) {
|
|
3068
2924
|
offsetParent = getDocumentElement(popper);
|
|
2925
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3069
2926
|
|
|
3070
|
-
|
|
3071
|
-
heightProp = 'scrollHeight';
|
|
3072
|
-
widthProp = 'scrollWidth';
|
|
3073
|
-
}
|
|
3074
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3075
|
-
|
|
2927
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3076
2928
|
|
|
3077
|
-
offsetParent = offsetParent;
|
|
3078
2929
|
|
|
3079
2930
|
if (placement === top) {
|
|
3080
|
-
sideY = bottom;
|
|
3081
|
-
|
|
3082
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2931
|
+
sideY = bottom;
|
|
2932
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3083
2933
|
y *= gpuAcceleration ? 1 : -1;
|
|
3084
2934
|
}
|
|
3085
2935
|
|
|
3086
2936
|
if (placement === left) {
|
|
3087
|
-
sideX = right;
|
|
3088
|
-
|
|
3089
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2937
|
+
sideX = right;
|
|
2938
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3090
2939
|
x *= gpuAcceleration ? 1 : -1;
|
|
3091
2940
|
}
|
|
3092
2941
|
}
|
|
@@ -3098,24 +2947,22 @@ function mapToStyles(_ref2) {
|
|
|
3098
2947
|
if (gpuAcceleration) {
|
|
3099
2948
|
var _Object$assign;
|
|
3100
2949
|
|
|
3101
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
2950
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3102
2951
|
}
|
|
3103
2952
|
|
|
3104
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2953
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3105
2954
|
}
|
|
3106
2955
|
|
|
3107
|
-
function computeStyles(
|
|
3108
|
-
var state =
|
|
3109
|
-
options =
|
|
2956
|
+
function computeStyles(_ref3) {
|
|
2957
|
+
var state = _ref3.state,
|
|
2958
|
+
options = _ref3.options;
|
|
3110
2959
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3111
2960
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3112
2961
|
_options$adaptive = options.adaptive,
|
|
3113
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3114
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3115
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2962
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3116
2963
|
|
|
3117
2964
|
if (process.env.NODE_ENV !== "production") {
|
|
3118
|
-
var transitionProperty = getComputedStyle$
|
|
2965
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3119
2966
|
|
|
3120
2967
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3121
2968
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3132,24 +2979,22 @@ function computeStyles(_ref4) {
|
|
|
3132
2979
|
};
|
|
3133
2980
|
|
|
3134
2981
|
if (state.modifiersData.popperOffsets != null) {
|
|
3135
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2982
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3136
2983
|
offsets: state.modifiersData.popperOffsets,
|
|
3137
2984
|
position: state.options.strategy,
|
|
3138
|
-
adaptive: adaptive
|
|
3139
|
-
roundOffsets: roundOffsets
|
|
2985
|
+
adaptive: adaptive
|
|
3140
2986
|
})));
|
|
3141
2987
|
}
|
|
3142
2988
|
|
|
3143
2989
|
if (state.modifiersData.arrow != null) {
|
|
3144
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2990
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3145
2991
|
offsets: state.modifiersData.arrow,
|
|
3146
2992
|
position: 'absolute',
|
|
3147
|
-
adaptive: false
|
|
3148
|
-
roundOffsets: roundOffsets
|
|
2993
|
+
adaptive: false
|
|
3149
2994
|
})));
|
|
3150
2995
|
}
|
|
3151
2996
|
|
|
3152
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2997
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3153
2998
|
'data-popper-placement': state.placement
|
|
3154
2999
|
});
|
|
3155
3000
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3167,7 +3012,7 @@ var passive = {
|
|
|
3167
3012
|
passive: true
|
|
3168
3013
|
};
|
|
3169
3014
|
|
|
3170
|
-
function effect(_ref) {
|
|
3015
|
+
function effect$1(_ref) {
|
|
3171
3016
|
var state = _ref.state,
|
|
3172
3017
|
instance = _ref.instance,
|
|
3173
3018
|
options = _ref.options;
|
|
@@ -3207,11 +3052,11 @@ var eventListeners = {
|
|
|
3207
3052
|
enabled: true,
|
|
3208
3053
|
phase: 'write',
|
|
3209
3054
|
fn: function fn() {},
|
|
3210
|
-
effect: effect,
|
|
3055
|
+
effect: effect$1,
|
|
3211
3056
|
data: {}
|
|
3212
3057
|
};
|
|
3213
3058
|
|
|
3214
|
-
var hash
|
|
3059
|
+
var hash = {
|
|
3215
3060
|
left: 'right',
|
|
3216
3061
|
right: 'left',
|
|
3217
3062
|
bottom: 'top',
|
|
@@ -3219,20 +3064,34 @@ var hash$1 = {
|
|
|
3219
3064
|
};
|
|
3220
3065
|
function getOppositePlacement(placement) {
|
|
3221
3066
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3222
|
-
return hash
|
|
3067
|
+
return hash[matched];
|
|
3223
3068
|
});
|
|
3224
3069
|
}
|
|
3225
3070
|
|
|
3226
|
-
var hash = {
|
|
3071
|
+
var hash$1 = {
|
|
3227
3072
|
start: 'end',
|
|
3228
3073
|
end: 'start'
|
|
3229
3074
|
};
|
|
3230
3075
|
function getOppositeVariationPlacement(placement) {
|
|
3231
3076
|
return placement.replace(/start|end/g, function (matched) {
|
|
3232
|
-
return hash[matched];
|
|
3077
|
+
return hash$1[matched];
|
|
3233
3078
|
});
|
|
3234
3079
|
}
|
|
3235
3080
|
|
|
3081
|
+
function getBoundingClientRect(element) {
|
|
3082
|
+
var rect = element.getBoundingClientRect();
|
|
3083
|
+
return {
|
|
3084
|
+
width: rect.width,
|
|
3085
|
+
height: rect.height,
|
|
3086
|
+
top: rect.top,
|
|
3087
|
+
right: rect.right,
|
|
3088
|
+
bottom: rect.bottom,
|
|
3089
|
+
left: rect.left,
|
|
3090
|
+
x: rect.left,
|
|
3091
|
+
y: rect.top
|
|
3092
|
+
};
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3236
3095
|
function getWindowScroll(node) {
|
|
3237
3096
|
var win = getWindow(node);
|
|
3238
3097
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3295,18 +3154,16 @@ function getViewportRect(element) {
|
|
|
3295
3154
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3296
3155
|
|
|
3297
3156
|
function getDocumentRect(element) {
|
|
3298
|
-
var _element$ownerDocumen;
|
|
3299
|
-
|
|
3300
3157
|
var html = getDocumentElement(element);
|
|
3301
3158
|
var winScroll = getWindowScroll(element);
|
|
3302
|
-
var body =
|
|
3303
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3304
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3159
|
+
var body = element.ownerDocument.body;
|
|
3160
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3161
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3305
3162
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3306
3163
|
var y = -winScroll.scrollTop;
|
|
3307
3164
|
|
|
3308
|
-
if (getComputedStyle$
|
|
3309
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3165
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3166
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3310
3167
|
}
|
|
3311
3168
|
|
|
3312
3169
|
return {
|
|
@@ -3319,7 +3176,7 @@ function getDocumentRect(element) {
|
|
|
3319
3176
|
|
|
3320
3177
|
function isScrollParent(element) {
|
|
3321
3178
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3322
|
-
var _getComputedStyle = getComputedStyle$
|
|
3179
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3323
3180
|
overflow = _getComputedStyle.overflow,
|
|
3324
3181
|
overflowX = _getComputedStyle.overflowX,
|
|
3325
3182
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3329,7 +3186,7 @@ function isScrollParent(element) {
|
|
|
3329
3186
|
|
|
3330
3187
|
function getScrollParent(node) {
|
|
3331
3188
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3332
|
-
// $FlowFixMe
|
|
3189
|
+
// $FlowFixMe: assume body is always available
|
|
3333
3190
|
return node.ownerDocument.body;
|
|
3334
3191
|
}
|
|
3335
3192
|
|
|
@@ -3343,28 +3200,26 @@ function getScrollParent(node) {
|
|
|
3343
3200
|
/*
|
|
3344
3201
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3345
3202
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3346
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3203
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3347
3204
|
reference element's position.
|
|
3348
3205
|
*/
|
|
3349
3206
|
|
|
3350
3207
|
function listScrollParents(element, list) {
|
|
3351
|
-
var _element$ownerDocumen;
|
|
3352
|
-
|
|
3353
3208
|
if (list === void 0) {
|
|
3354
3209
|
list = [];
|
|
3355
3210
|
}
|
|
3356
3211
|
|
|
3357
3212
|
var scrollParent = getScrollParent(element);
|
|
3358
|
-
var isBody = scrollParent ===
|
|
3213
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3359
3214
|
var win = getWindow(scrollParent);
|
|
3360
3215
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3361
3216
|
var updatedList = list.concat(target);
|
|
3362
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3217
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3363
3218
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3364
3219
|
}
|
|
3365
3220
|
|
|
3366
3221
|
function rectToClientRect(rect) {
|
|
3367
|
-
return Object.assign({}, rect, {
|
|
3222
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3368
3223
|
left: rect.x,
|
|
3369
3224
|
top: rect.y,
|
|
3370
3225
|
right: rect.x + rect.width,
|
|
@@ -3394,16 +3249,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3394
3249
|
|
|
3395
3250
|
function getClippingParents(element) {
|
|
3396
3251
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3397
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3252
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3398
3253
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3399
3254
|
|
|
3400
3255
|
if (!isElement(clipperElement)) {
|
|
3401
3256
|
return [];
|
|
3402
|
-
} // $FlowFixMe
|
|
3257
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3403
3258
|
|
|
3404
3259
|
|
|
3405
3260
|
return clippingParents.filter(function (clippingParent) {
|
|
3406
|
-
return isElement(clippingParent) && contains
|
|
3261
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3407
3262
|
});
|
|
3408
3263
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3409
3264
|
// clipping parents
|
|
@@ -3415,10 +3270,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3415
3270
|
var firstClippingParent = clippingParents[0];
|
|
3416
3271
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3417
3272
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3418
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3419
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3420
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3421
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3273
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3274
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3275
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3276
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3422
3277
|
return accRect;
|
|
3423
3278
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3424
3279
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3485,11 +3340,11 @@ function computeOffsets(_ref) {
|
|
|
3485
3340
|
|
|
3486
3341
|
switch (variation) {
|
|
3487
3342
|
case start:
|
|
3488
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3343
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3489
3344
|
break;
|
|
3490
3345
|
|
|
3491
3346
|
case end:
|
|
3492
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3347
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3493
3348
|
break;
|
|
3494
3349
|
}
|
|
3495
3350
|
}
|
|
@@ -3528,7 +3383,7 @@ function detectOverflow(state, options) {
|
|
|
3528
3383
|
strategy: 'absolute',
|
|
3529
3384
|
placement: placement
|
|
3530
3385
|
});
|
|
3531
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3386
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3532
3387
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3533
3388
|
// 0 or negative = within the clipping rect
|
|
3534
3389
|
|
|
@@ -3552,6 +3407,9 @@ function detectOverflow(state, options) {
|
|
|
3552
3407
|
return overflowOffsets;
|
|
3553
3408
|
}
|
|
3554
3409
|
|
|
3410
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3411
|
+
|
|
3412
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3555
3413
|
function computeAutoPlacement(state, options) {
|
|
3556
3414
|
if (options === void 0) {
|
|
3557
3415
|
options = {};
|
|
@@ -3568,7 +3426,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3568
3426
|
var variation = getVariation(placement);
|
|
3569
3427
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3570
3428
|
return getVariation(placement) === variation;
|
|
3571
|
-
}) : basePlacements;
|
|
3429
|
+
}) : basePlacements; // $FlowFixMe
|
|
3430
|
+
|
|
3572
3431
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3573
3432
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3574
3433
|
});
|
|
@@ -3579,7 +3438,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3579
3438
|
if (process.env.NODE_ENV !== "production") {
|
|
3580
3439
|
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(' '));
|
|
3581
3440
|
}
|
|
3582
|
-
} // $FlowFixMe
|
|
3441
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3583
3442
|
|
|
3584
3443
|
|
|
3585
3444
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3780,7 +3639,7 @@ function hide(_ref) {
|
|
|
3780
3639
|
isReferenceHidden: isReferenceHidden,
|
|
3781
3640
|
hasPopperEscaped: hasPopperEscaped
|
|
3782
3641
|
};
|
|
3783
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3642
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3784
3643
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3785
3644
|
'data-popper-escaped': hasPopperEscaped
|
|
3786
3645
|
});
|
|
@@ -3799,7 +3658,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3799
3658
|
var basePlacement = getBasePlacement(placement);
|
|
3800
3659
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3801
3660
|
|
|
3802
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3661
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3803
3662
|
placement: placement
|
|
3804
3663
|
})) : offset,
|
|
3805
3664
|
skidding = _ref[0],
|
|
@@ -3905,7 +3764,7 @@ function preventOverflow(_ref) {
|
|
|
3905
3764
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3906
3765
|
var referenceRect = state.rects.reference;
|
|
3907
3766
|
var popperRect = state.rects.popper;
|
|
3908
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3767
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3909
3768
|
placement: state.placement
|
|
3910
3769
|
})) : tetherOffset;
|
|
3911
3770
|
var data = {
|
|
@@ -3917,13 +3776,13 @@ function preventOverflow(_ref) {
|
|
|
3917
3776
|
return;
|
|
3918
3777
|
}
|
|
3919
3778
|
|
|
3920
|
-
if (checkMainAxis
|
|
3779
|
+
if (checkMainAxis) {
|
|
3921
3780
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3922
3781
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3923
3782
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3924
3783
|
var offset = popperOffsets[mainAxis];
|
|
3925
|
-
var min
|
|
3926
|
-
var max
|
|
3784
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3785
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3927
3786
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3928
3787
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3929
3788
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3950,29 +3809,26 @@ function preventOverflow(_ref) {
|
|
|
3950
3809
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3951
3810
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3952
3811
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3812
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3813
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3814
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3815
|
+
}
|
|
3953
3816
|
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3957
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3958
|
-
}
|
|
3959
|
-
|
|
3960
|
-
if (checkAltAxis) {
|
|
3961
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3817
|
+
if (checkAltAxis) {
|
|
3818
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3962
3819
|
|
|
3963
|
-
|
|
3820
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3964
3821
|
|
|
3965
|
-
|
|
3822
|
+
var _offset = popperOffsets[altAxis];
|
|
3966
3823
|
|
|
3967
|
-
|
|
3824
|
+
var _min = _offset + overflow[_mainSide];
|
|
3968
3825
|
|
|
3969
|
-
|
|
3826
|
+
var _max = _offset - overflow[_altSide];
|
|
3970
3827
|
|
|
3971
|
-
|
|
3828
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3972
3829
|
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
}
|
|
3830
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3831
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3976
3832
|
}
|
|
3977
3833
|
|
|
3978
3834
|
state.modifiersData[name] = data;
|
|
@@ -4203,9 +4059,9 @@ function uniqueBy(arr, fn) {
|
|
|
4203
4059
|
function mergeByName(modifiers) {
|
|
4204
4060
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4205
4061
|
var existing = merged[current.name];
|
|
4206
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4207
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4208
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4062
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4063
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4064
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4209
4065
|
}) : current;
|
|
4210
4066
|
return merged;
|
|
4211
4067
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4251,7 +4107,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4251
4107
|
var state = {
|
|
4252
4108
|
placement: 'bottom',
|
|
4253
4109
|
orderedModifiers: [],
|
|
4254
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4110
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4255
4111
|
modifiersData: {},
|
|
4256
4112
|
elements: {
|
|
4257
4113
|
reference: reference,
|
|
@@ -4266,7 +4122,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4266
4122
|
state: state,
|
|
4267
4123
|
setOptions: function setOptions(options) {
|
|
4268
4124
|
cleanupModifierEffects();
|
|
4269
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4125
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4270
4126
|
state.scrollParents = {
|
|
4271
4127
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4272
4128
|
popper: listScrollParents(popper)
|
|
@@ -4298,7 +4154,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4298
4154
|
}
|
|
4299
4155
|
}
|
|
4300
4156
|
|
|
4301
|
-
var _getComputedStyle = getComputedStyle$
|
|
4157
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4302
4158
|
marginTop = _getComputedStyle.marginTop,
|
|
4303
4159
|
marginRight = _getComputedStyle.marginRight,
|
|
4304
4160
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4638,7 +4494,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4638
4494
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4639
4495
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4640
4496
|
// so we need to check on context instead of a document root element.
|
|
4641
|
-
function contains(context, node) {
|
|
4497
|
+
function contains$1(context, node) {
|
|
4642
4498
|
if (context.contains) return context.contains(node);
|
|
4643
4499
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4644
4500
|
}
|
|
@@ -4712,13 +4568,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4712
4568
|
return componentOrElement != null ? componentOrElement : null;
|
|
4713
4569
|
}
|
|
4714
4570
|
|
|
4715
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4716
|
-
return ownerDocument
|
|
4571
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4572
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4717
4573
|
});
|
|
4718
4574
|
|
|
4719
4575
|
var escapeKeyCode = 27;
|
|
4720
4576
|
|
|
4721
|
-
var noop$
|
|
4577
|
+
var noop$1 = function noop() {};
|
|
4722
4578
|
|
|
4723
4579
|
function isLeftClickEvent(event) {
|
|
4724
4580
|
return event.button === 0;
|
|
@@ -4751,11 +4607,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4751
4607
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4752
4608
|
|
|
4753
4609
|
var preventMouseRootCloseRef = useRef(false);
|
|
4754
|
-
var onClose = onRootClose || noop$
|
|
4610
|
+
var onClose = onRootClose || noop$1;
|
|
4755
4611
|
var handleMouseCapture = useCallback(function (e) {
|
|
4756
4612
|
var currentTarget = getRefTarget(ref);
|
|
4757
4613
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4758
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4614
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4759
4615
|
}, [ref]);
|
|
4760
4616
|
var handleMouse = useEventCallback(function (e) {
|
|
4761
4617
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4772,7 +4628,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4772
4628
|
// https://github.com/facebook/react/issues/20074
|
|
4773
4629
|
|
|
4774
4630
|
var currentEvent = window.event;
|
|
4775
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4631
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4776
4632
|
// avoid false positives in the contains() check below if the target DOM
|
|
4777
4633
|
// element is removed in the React mouse callback.
|
|
4778
4634
|
|
|
@@ -4799,7 +4655,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4799
4655
|
|
|
4800
4656
|
if ('ontouchstart' in doc.documentElement) {
|
|
4801
4657
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4802
|
-
return listen(el, 'mousemove', noop$
|
|
4658
|
+
return listen(el, 'mousemove', noop$1);
|
|
4803
4659
|
});
|
|
4804
4660
|
}
|
|
4805
4661
|
|
|
@@ -4881,7 +4737,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4881
4737
|
});
|
|
4882
4738
|
}
|
|
4883
4739
|
|
|
4884
|
-
var noop$
|
|
4740
|
+
var noop$2 = function noop() {};
|
|
4885
4741
|
/**
|
|
4886
4742
|
* @memberOf Dropdown
|
|
4887
4743
|
* @param {object} options
|
|
@@ -4949,7 +4805,7 @@ function useDropdownMenu(options) {
|
|
|
4949
4805
|
|
|
4950
4806
|
var menu;
|
|
4951
4807
|
var menuProps = {
|
|
4952
|
-
ref: setMenu || noop$
|
|
4808
|
+
ref: setMenu || noop$2,
|
|
4953
4809
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4954
4810
|
};
|
|
4955
4811
|
var childArgs = {
|
|
@@ -4982,7 +4838,7 @@ function useDropdownMenu(options) {
|
|
|
4982
4838
|
});
|
|
4983
4839
|
return menu;
|
|
4984
4840
|
}
|
|
4985
|
-
var propTypes$
|
|
4841
|
+
var propTypes$2 = {
|
|
4986
4842
|
/**
|
|
4987
4843
|
* A render prop that returns a Menu element. The `props`
|
|
4988
4844
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5039,7 +4895,7 @@ var propTypes$8 = {
|
|
|
5039
4895
|
*/
|
|
5040
4896
|
rootCloseEvent: PropTypes.string
|
|
5041
4897
|
};
|
|
5042
|
-
var defaultProps$
|
|
4898
|
+
var defaultProps$d = {
|
|
5043
4899
|
usePopper: true
|
|
5044
4900
|
};
|
|
5045
4901
|
|
|
@@ -5049,19 +4905,19 @@ var defaultProps$r = {
|
|
|
5049
4905
|
* @displayName DropdownMenu
|
|
5050
4906
|
* @memberOf Dropdown
|
|
5051
4907
|
*/
|
|
5052
|
-
function DropdownMenu
|
|
4908
|
+
function DropdownMenu(_ref2) {
|
|
5053
4909
|
var children = _ref2.children,
|
|
5054
4910
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5055
4911
|
|
|
5056
4912
|
var args = useDropdownMenu(options);
|
|
5057
|
-
return /*#__PURE__*/
|
|
4913
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
5058
4914
|
}
|
|
5059
4915
|
|
|
5060
|
-
DropdownMenu
|
|
5061
|
-
DropdownMenu
|
|
5062
|
-
DropdownMenu
|
|
4916
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4917
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4918
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5063
4919
|
|
|
5064
|
-
var noop$
|
|
4920
|
+
var noop$3 = function noop() {};
|
|
5065
4921
|
/**
|
|
5066
4922
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5067
4923
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5075,11 +4931,11 @@ function useDropdownToggle() {
|
|
|
5075
4931
|
_ref$show = _ref.show,
|
|
5076
4932
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5077
4933
|
_ref$toggle = _ref.toggle,
|
|
5078
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4934
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5079
4935
|
setToggle = _ref.setToggle;
|
|
5080
4936
|
|
|
5081
4937
|
return [{
|
|
5082
|
-
ref: setToggle || noop$
|
|
4938
|
+
ref: setToggle || noop$3,
|
|
5083
4939
|
'aria-haspopup': true,
|
|
5084
4940
|
'aria-expanded': !!show
|
|
5085
4941
|
}, {
|
|
@@ -5087,7 +4943,7 @@ function useDropdownToggle() {
|
|
|
5087
4943
|
toggle: toggle
|
|
5088
4944
|
}];
|
|
5089
4945
|
}
|
|
5090
|
-
var propTypes$
|
|
4946
|
+
var propTypes$3 = {
|
|
5091
4947
|
/**
|
|
5092
4948
|
* A render prop that returns a Toggle element. The `props`
|
|
5093
4949
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5112,7 +4968,7 @@ var propTypes$7 = {
|
|
|
5112
4968
|
* @displayName DropdownToggle
|
|
5113
4969
|
* @memberOf Dropdown
|
|
5114
4970
|
*/
|
|
5115
|
-
function DropdownToggle
|
|
4971
|
+
function DropdownToggle(_ref2) {
|
|
5116
4972
|
var children = _ref2.children;
|
|
5117
4973
|
|
|
5118
4974
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5121,17 +4977,17 @@ function DropdownToggle$1(_ref2) {
|
|
|
5121
4977
|
show = _useDropdownToggle$.show,
|
|
5122
4978
|
toggle = _useDropdownToggle$.toggle;
|
|
5123
4979
|
|
|
5124
|
-
return /*#__PURE__*/
|
|
4980
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5125
4981
|
show: show,
|
|
5126
4982
|
toggle: toggle,
|
|
5127
4983
|
props: props
|
|
5128
4984
|
}));
|
|
5129
4985
|
}
|
|
5130
4986
|
|
|
5131
|
-
DropdownToggle
|
|
5132
|
-
DropdownToggle
|
|
4987
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4988
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5133
4989
|
|
|
5134
|
-
var propTypes$
|
|
4990
|
+
var propTypes$4 = {
|
|
5135
4991
|
/**
|
|
5136
4992
|
* A render prop that returns the root dropdown element. The `props`
|
|
5137
4993
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5203,7 +5059,7 @@ var propTypes$6 = {
|
|
|
5203
5059
|
/**
|
|
5204
5060
|
* @displayName Dropdown
|
|
5205
5061
|
*/
|
|
5206
|
-
function Dropdown
|
|
5062
|
+
function Dropdown(_ref) {
|
|
5207
5063
|
var drop = _ref.drop,
|
|
5208
5064
|
alignEnd = _ref.alignEnd,
|
|
5209
5065
|
defaultShow = _ref.defaultShow,
|
|
@@ -5336,7 +5192,7 @@ function Dropdown$1(_ref) {
|
|
|
5336
5192
|
}
|
|
5337
5193
|
};
|
|
5338
5194
|
|
|
5339
|
-
return /*#__PURE__*/
|
|
5195
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5340
5196
|
value: context
|
|
5341
5197
|
}, children({
|
|
5342
5198
|
props: {
|
|
@@ -5345,19 +5201,19 @@ function Dropdown$1(_ref) {
|
|
|
5345
5201
|
}));
|
|
5346
5202
|
}
|
|
5347
5203
|
|
|
5348
|
-
Dropdown
|
|
5349
|
-
Dropdown
|
|
5350
|
-
Dropdown
|
|
5351
|
-
Dropdown
|
|
5204
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5205
|
+
Dropdown.propTypes = propTypes$4;
|
|
5206
|
+
Dropdown.Menu = DropdownMenu;
|
|
5207
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5352
5208
|
|
|
5353
|
-
var NavContext =
|
|
5209
|
+
var NavContext = React.createContext(null);
|
|
5354
5210
|
NavContext.displayName = 'NavContext';
|
|
5355
5211
|
|
|
5356
|
-
var defaultProps$
|
|
5212
|
+
var defaultProps$e = {
|
|
5357
5213
|
as: SafeAnchor,
|
|
5358
5214
|
disabled: false
|
|
5359
5215
|
};
|
|
5360
|
-
var DropdownItem =
|
|
5216
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5361
5217
|
var bsPrefix = _ref.bsPrefix,
|
|
5362
5218
|
className = _ref.className,
|
|
5363
5219
|
children = _ref.children,
|
|
@@ -5392,7 +5248,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5392
5248
|
/*#__PURE__*/
|
|
5393
5249
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5394
5250
|
// @ts-ignore
|
|
5395
|
-
|
|
5251
|
+
React.createElement(Component, _extends({}, props, {
|
|
5396
5252
|
ref: ref,
|
|
5397
5253
|
href: href,
|
|
5398
5254
|
disabled: disabled,
|
|
@@ -5402,7 +5258,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5402
5258
|
);
|
|
5403
5259
|
});
|
|
5404
5260
|
DropdownItem.displayName = 'DropdownItem';
|
|
5405
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5261
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5406
5262
|
|
|
5407
5263
|
var toFnRef = function toFnRef(ref) {
|
|
5408
5264
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5441,8 +5297,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5441
5297
|
}, [refA, refB]);
|
|
5442
5298
|
}
|
|
5443
5299
|
|
|
5444
|
-
var context =
|
|
5445
|
-
context.displayName = 'NavbarContext';
|
|
5300
|
+
var context$2 = React.createContext(null);
|
|
5301
|
+
context$2.displayName = 'NavbarContext';
|
|
5446
5302
|
|
|
5447
5303
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5448
5304
|
// @ts-ignore
|
|
@@ -5563,13 +5419,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5563
5419
|
}), PropTypes.shape({
|
|
5564
5420
|
xl: alignDirection
|
|
5565
5421
|
})]);
|
|
5566
|
-
var defaultProps$
|
|
5422
|
+
var defaultProps$f = {
|
|
5567
5423
|
align: 'left',
|
|
5568
5424
|
alignRight: false,
|
|
5569
5425
|
flip: true
|
|
5570
5426
|
}; // TODO: remove this hack
|
|
5571
5427
|
|
|
5572
|
-
var DropdownMenu =
|
|
5428
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5573
5429
|
var bsPrefix = _ref.bsPrefix,
|
|
5574
5430
|
className = _ref.className,
|
|
5575
5431
|
align = _ref.align,
|
|
@@ -5583,7 +5439,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5583
5439
|
popperConfig = _ref.popperConfig,
|
|
5584
5440
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5585
5441
|
|
|
5586
|
-
var isNavbar = useContext(context);
|
|
5442
|
+
var isNavbar = useContext(context$2);
|
|
5587
5443
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5588
5444
|
|
|
5589
5445
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5644,12 +5500,12 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5644
5500
|
props['x-placement'] = placement;
|
|
5645
5501
|
}
|
|
5646
5502
|
|
|
5647
|
-
return /*#__PURE__*/
|
|
5503
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5648
5504
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5649
5505
|
}));
|
|
5650
5506
|
});
|
|
5651
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5652
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5507
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5508
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5653
5509
|
|
|
5654
5510
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5655
5511
|
|
|
@@ -5678,7 +5534,7 @@ module.exports = exports['default'];
|
|
|
5678
5534
|
|
|
5679
5535
|
unwrapExports(isRequiredForA11y_1);
|
|
5680
5536
|
|
|
5681
|
-
var DropdownToggle =
|
|
5537
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5682
5538
|
var bsPrefix = _ref.bsPrefix,
|
|
5683
5539
|
split = _ref.split,
|
|
5684
5540
|
className = _ref.className,
|
|
@@ -5700,12 +5556,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5700
5556
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5701
5557
|
// underlying component, to allow it to render size and style variants.
|
|
5702
5558
|
|
|
5703
|
-
return /*#__PURE__*/
|
|
5559
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5704
5560
|
onClick: toggle,
|
|
5705
5561
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5706
5562
|
}, toggleProps, props));
|
|
5707
5563
|
});
|
|
5708
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5564
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5709
5565
|
|
|
5710
5566
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5711
5567
|
defaultProps: {
|
|
@@ -5720,10 +5576,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5720
5576
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5721
5577
|
Component: 'span'
|
|
5722
5578
|
});
|
|
5723
|
-
var defaultProps$
|
|
5579
|
+
var defaultProps$g = {
|
|
5724
5580
|
navbar: false
|
|
5725
5581
|
};
|
|
5726
|
-
var Dropdown =
|
|
5582
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5727
5583
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5728
5584
|
show: 'onToggle'
|
|
5729
5585
|
}),
|
|
@@ -5736,9 +5592,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5736
5592
|
onToggle = _useUncontrolled.onToggle,
|
|
5737
5593
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5738
5594
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5739
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5740
|
-
_useUncontrolled.navbar
|
|
5741
|
-
|
|
5595
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5596
|
+
_4 = _useUncontrolled.navbar,
|
|
5597
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5742
5598
|
|
|
5743
5599
|
var onSelectCtx = useContext(SelectableContext);
|
|
5744
5600
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5760,9 +5616,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5760
5616
|
if (onSelect) onSelect(key, event);
|
|
5761
5617
|
handleToggle(false, event, 'select');
|
|
5762
5618
|
});
|
|
5763
|
-
return /*#__PURE__*/
|
|
5619
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5764
5620
|
value: handleSelect
|
|
5765
|
-
}, /*#__PURE__*/
|
|
5621
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5766
5622
|
drop: drop,
|
|
5767
5623
|
show: show,
|
|
5768
5624
|
alignEnd: alignRight,
|
|
@@ -5771,20 +5627,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5771
5627
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5772
5628
|
}, function (_ref) {
|
|
5773
5629
|
var dropdownProps = _ref.props;
|
|
5774
|
-
return /*#__PURE__*/
|
|
5630
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5775
5631
|
ref: ref,
|
|
5776
5632
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5777
5633
|
}));
|
|
5778
5634
|
}));
|
|
5779
5635
|
});
|
|
5780
|
-
Dropdown.displayName = 'Dropdown';
|
|
5781
|
-
Dropdown.defaultProps = defaultProps$
|
|
5782
|
-
Dropdown.Divider = DropdownDivider;
|
|
5783
|
-
Dropdown.Header = DropdownHeader;
|
|
5784
|
-
Dropdown.Item = DropdownItem;
|
|
5785
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5786
|
-
Dropdown.Menu = DropdownMenu;
|
|
5787
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5636
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5637
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5638
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5639
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5640
|
+
Dropdown$1.Item = DropdownItem;
|
|
5641
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5642
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5643
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5788
5644
|
|
|
5789
5645
|
var propTypes$5 = {
|
|
5790
5646
|
/**
|
|
@@ -5846,7 +5702,7 @@ var propTypes$5 = {
|
|
|
5846
5702
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5847
5703
|
*/
|
|
5848
5704
|
|
|
5849
|
-
var DropdownButton =
|
|
5705
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5850
5706
|
var title = _ref.title,
|
|
5851
5707
|
children = _ref.children,
|
|
5852
5708
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5861,16 +5717,16 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5861
5717
|
id = _ref.id,
|
|
5862
5718
|
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5863
5719
|
|
|
5864
|
-
return /*#__PURE__*/
|
|
5720
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5865
5721
|
ref: ref
|
|
5866
|
-
}, props), /*#__PURE__*/
|
|
5722
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5867
5723
|
id: id,
|
|
5868
5724
|
href: href,
|
|
5869
5725
|
size: size,
|
|
5870
5726
|
variant: variant,
|
|
5871
5727
|
disabled: disabled,
|
|
5872
5728
|
childBsPrefix: bsPrefix
|
|
5873
|
-
}, title), /*#__PURE__*/
|
|
5729
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5874
5730
|
align: menuAlign,
|
|
5875
5731
|
role: menuRole,
|
|
5876
5732
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5973,7 +5829,7 @@ module.exports = exports['default'];
|
|
|
5973
5829
|
|
|
5974
5830
|
unwrapExports(all_1);
|
|
5975
5831
|
|
|
5976
|
-
var propTypes$
|
|
5832
|
+
var propTypes$6 = {
|
|
5977
5833
|
/**
|
|
5978
5834
|
* Specify whether the feedback is for valid or invalid fields
|
|
5979
5835
|
*
|
|
@@ -5985,7 +5841,7 @@ var propTypes$4 = {
|
|
|
5985
5841
|
tooltip: PropTypes.bool,
|
|
5986
5842
|
as: PropTypes.elementType
|
|
5987
5843
|
};
|
|
5988
|
-
var Feedback =
|
|
5844
|
+
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
|
|
5989
5845
|
function (_ref, ref) {
|
|
5990
5846
|
var _ref$as = _ref.as,
|
|
5991
5847
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5996,19 +5852,19 @@ function (_ref, ref) {
|
|
|
5996
5852
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5997
5853
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5998
5854
|
|
|
5999
|
-
return /*#__PURE__*/
|
|
5855
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6000
5856
|
ref: ref,
|
|
6001
5857
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
6002
5858
|
}));
|
|
6003
5859
|
});
|
|
6004
5860
|
Feedback.displayName = 'Feedback';
|
|
6005
|
-
Feedback.propTypes = propTypes$
|
|
5861
|
+
Feedback.propTypes = propTypes$6;
|
|
6006
5862
|
|
|
6007
|
-
var FormContext =
|
|
5863
|
+
var FormContext = React.createContext({
|
|
6008
5864
|
controlId: undefined
|
|
6009
5865
|
});
|
|
6010
5866
|
|
|
6011
|
-
var FormCheckInput =
|
|
5867
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
6012
5868
|
var id = _ref.id,
|
|
6013
5869
|
bsPrefix = _ref.bsPrefix,
|
|
6014
5870
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6033,7 +5889,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6033
5889
|
defaultPrefix = _ref2[1];
|
|
6034
5890
|
|
|
6035
5891
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6036
|
-
return /*#__PURE__*/
|
|
5892
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6037
5893
|
ref: ref,
|
|
6038
5894
|
type: type,
|
|
6039
5895
|
id: id || controlId,
|
|
@@ -6042,7 +5898,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6042
5898
|
});
|
|
6043
5899
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
6044
5900
|
|
|
6045
|
-
var FormCheckLabel =
|
|
5901
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
6046
5902
|
var bsPrefix = _ref.bsPrefix,
|
|
6047
5903
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6048
5904
|
className = _ref.className,
|
|
@@ -6058,7 +5914,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6058
5914
|
defaultPrefix = _ref2[1];
|
|
6059
5915
|
|
|
6060
5916
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6061
|
-
return /*#__PURE__*/
|
|
5917
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6062
5918
|
ref: ref,
|
|
6063
5919
|
htmlFor: htmlFor || controlId,
|
|
6064
5920
|
className: classnames(className, bsPrefix)
|
|
@@ -6066,7 +5922,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6066
5922
|
});
|
|
6067
5923
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
6068
5924
|
|
|
6069
|
-
var FormCheck =
|
|
5925
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
6070
5926
|
var id = _ref.id,
|
|
6071
5927
|
bsPrefix = _ref.bsPrefix,
|
|
6072
5928
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6112,7 +5968,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6112
5968
|
};
|
|
6113
5969
|
}, [controlId, custom, id]);
|
|
6114
5970
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6115
|
-
var input = /*#__PURE__*/
|
|
5971
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6116
5972
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6117
5973
|
ref: ref,
|
|
6118
5974
|
isValid: isValid,
|
|
@@ -6121,14 +5977,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6121
5977
|
disabled: disabled,
|
|
6122
5978
|
as: as
|
|
6123
5979
|
}));
|
|
6124
|
-
return /*#__PURE__*/
|
|
5980
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6125
5981
|
value: innerFormContext
|
|
6126
|
-
}, /*#__PURE__*/
|
|
5982
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6127
5983
|
style: style,
|
|
6128
5984
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6129
|
-
}, children || /*#__PURE__*/
|
|
5985
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6130
5986
|
title: title
|
|
6131
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5987
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6132
5988
|
type: isValid ? 'valid' : 'invalid',
|
|
6133
5989
|
tooltip: feedbackTooltip
|
|
6134
5990
|
}, feedback))));
|
|
@@ -6137,7 +5993,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6137
5993
|
FormCheck.Input = FormCheckInput;
|
|
6138
5994
|
FormCheck.Label = FormCheckLabel;
|
|
6139
5995
|
|
|
6140
|
-
var FormFileInput =
|
|
5996
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6141
5997
|
var id = _ref.id,
|
|
6142
5998
|
bsPrefix = _ref.bsPrefix,
|
|
6143
5999
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6160,7 +6016,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6160
6016
|
defaultPrefix = _ref2[1];
|
|
6161
6017
|
|
|
6162
6018
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6163
|
-
return /*#__PURE__*/
|
|
6019
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6164
6020
|
ref: ref,
|
|
6165
6021
|
id: id || controlId,
|
|
6166
6022
|
type: type,
|
|
@@ -6170,7 +6026,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6170
6026
|
});
|
|
6171
6027
|
FormFileInput.displayName = 'FormFileInput';
|
|
6172
6028
|
|
|
6173
|
-
var FormFileLabel =
|
|
6029
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6174
6030
|
var bsPrefix = _ref.bsPrefix,
|
|
6175
6031
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6176
6032
|
className = _ref.className,
|
|
@@ -6186,7 +6042,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6186
6042
|
defaultPrefix = _ref2[1];
|
|
6187
6043
|
|
|
6188
6044
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6189
|
-
return /*#__PURE__*/
|
|
6045
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6190
6046
|
ref: ref,
|
|
6191
6047
|
htmlFor: htmlFor || controlId,
|
|
6192
6048
|
className: classnames(className, bsPrefix),
|
|
@@ -6195,7 +6051,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6195
6051
|
});
|
|
6196
6052
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6197
6053
|
|
|
6198
|
-
var FormFile =
|
|
6054
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6199
6055
|
var id = _ref.id,
|
|
6200
6056
|
bsPrefix = _ref.bsPrefix,
|
|
6201
6057
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6238,7 +6094,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6238
6094
|
};
|
|
6239
6095
|
}, [controlId, custom, id]);
|
|
6240
6096
|
var hasLabel = label != null && label !== false && !children;
|
|
6241
|
-
var input = /*#__PURE__*/
|
|
6097
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6242
6098
|
ref: ref,
|
|
6243
6099
|
isValid: isValid,
|
|
6244
6100
|
isInvalid: isInvalid,
|
|
@@ -6246,14 +6102,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6246
6102
|
as: inputAs,
|
|
6247
6103
|
lang: lang
|
|
6248
6104
|
}));
|
|
6249
|
-
return /*#__PURE__*/
|
|
6105
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6250
6106
|
value: innerFormContext
|
|
6251
|
-
}, /*#__PURE__*/
|
|
6107
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6252
6108
|
style: style,
|
|
6253
6109
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6254
|
-
}, children || /*#__PURE__*/
|
|
6110
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6255
6111
|
"data-browse": dataBrowse
|
|
6256
|
-
}, label)) : /*#__PURE__*/
|
|
6112
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6257
6113
|
type: isValid ? 'valid' : 'invalid',
|
|
6258
6114
|
tooltip: feedbackTooltip
|
|
6259
6115
|
}, feedback))));
|
|
@@ -6262,7 +6118,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6262
6118
|
FormFile.Input = FormFileInput;
|
|
6263
6119
|
FormFile.Label = FormFileLabel;
|
|
6264
6120
|
|
|
6265
|
-
var FormControl =
|
|
6121
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6266
6122
|
var bsPrefix = _ref.bsPrefix,
|
|
6267
6123
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6268
6124
|
type = _ref.type,
|
|
@@ -6314,7 +6170,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6314
6170
|
}
|
|
6315
6171
|
|
|
6316
6172
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6317
|
-
return /*#__PURE__*/
|
|
6173
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6318
6174
|
type: type,
|
|
6319
6175
|
size: htmlSize,
|
|
6320
6176
|
ref: ref,
|
|
@@ -6328,7 +6184,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6328
6184
|
Feedback: Feedback
|
|
6329
6185
|
});
|
|
6330
6186
|
|
|
6331
|
-
var FormGroup =
|
|
6187
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6332
6188
|
var bsPrefix = _ref.bsPrefix,
|
|
6333
6189
|
className = _ref.className,
|
|
6334
6190
|
children = _ref.children,
|
|
@@ -6343,20 +6199,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6343
6199
|
controlId: controlId
|
|
6344
6200
|
};
|
|
6345
6201
|
}, [controlId]);
|
|
6346
|
-
return /*#__PURE__*/
|
|
6202
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6347
6203
|
value: context
|
|
6348
|
-
}, /*#__PURE__*/
|
|
6204
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6349
6205
|
ref: ref,
|
|
6350
6206
|
className: classnames(className, bsPrefix)
|
|
6351
6207
|
}), children));
|
|
6352
6208
|
});
|
|
6353
6209
|
FormGroup.displayName = 'FormGroup';
|
|
6354
6210
|
|
|
6355
|
-
var defaultProps$
|
|
6211
|
+
var defaultProps$h = {
|
|
6356
6212
|
column: false,
|
|
6357
6213
|
srOnly: false
|
|
6358
6214
|
};
|
|
6359
|
-
var FormLabel =
|
|
6215
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6360
6216
|
var _ref$as = _ref.as,
|
|
6361
6217
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6362
6218
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6375,7 +6231,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6375
6231
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6376
6232
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6377
6233
|
htmlFor = htmlFor || controlId;
|
|
6378
|
-
if (column) return /*#__PURE__*/
|
|
6234
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6379
6235
|
as: "label",
|
|
6380
6236
|
className: classes,
|
|
6381
6237
|
htmlFor: htmlFor
|
|
@@ -6383,7 +6239,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6383
6239
|
return (
|
|
6384
6240
|
/*#__PURE__*/
|
|
6385
6241
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6386
|
-
|
|
6242
|
+
React.createElement(Component, _extends({
|
|
6387
6243
|
ref: ref,
|
|
6388
6244
|
className: classes,
|
|
6389
6245
|
htmlFor: htmlFor
|
|
@@ -6391,9 +6247,9 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6391
6247
|
);
|
|
6392
6248
|
});
|
|
6393
6249
|
FormLabel.displayName = 'FormLabel';
|
|
6394
|
-
FormLabel.defaultProps = defaultProps$
|
|
6250
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6395
6251
|
|
|
6396
|
-
var FormText =
|
|
6252
|
+
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
|
|
6397
6253
|
function (_ref, ref) {
|
|
6398
6254
|
var bsPrefix = _ref.bsPrefix,
|
|
6399
6255
|
className = _ref.className,
|
|
@@ -6403,15 +6259,15 @@ function (_ref, ref) {
|
|
|
6403
6259
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6404
6260
|
|
|
6405
6261
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6406
|
-
return /*#__PURE__*/
|
|
6262
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6407
6263
|
ref: ref,
|
|
6408
6264
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6409
6265
|
}));
|
|
6410
6266
|
});
|
|
6411
6267
|
FormText.displayName = 'FormText';
|
|
6412
6268
|
|
|
6413
|
-
var Switch =
|
|
6414
|
-
return /*#__PURE__*/
|
|
6269
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6270
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6415
6271
|
ref: ref,
|
|
6416
6272
|
type: "switch"
|
|
6417
6273
|
}));
|
|
@@ -6421,10 +6277,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6421
6277
|
Switch.Label = FormCheck.Label;
|
|
6422
6278
|
|
|
6423
6279
|
var FormRow = createWithBsPrefix('form-row');
|
|
6424
|
-
var defaultProps$
|
|
6280
|
+
var defaultProps$i = {
|
|
6425
6281
|
inline: false
|
|
6426
6282
|
};
|
|
6427
|
-
var FormImpl =
|
|
6283
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6428
6284
|
var bsPrefix = _ref.bsPrefix,
|
|
6429
6285
|
inline = _ref.inline,
|
|
6430
6286
|
className = _ref.className,
|
|
@@ -6434,13 +6290,13 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6434
6290
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6435
6291
|
|
|
6436
6292
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6437
|
-
return /*#__PURE__*/
|
|
6293
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6438
6294
|
ref: ref,
|
|
6439
6295
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6440
6296
|
}));
|
|
6441
6297
|
});
|
|
6442
6298
|
FormImpl.displayName = 'Form';
|
|
6443
|
-
FormImpl.defaultProps = defaultProps$
|
|
6299
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6444
6300
|
FormImpl.Row = FormRow;
|
|
6445
6301
|
FormImpl.Group = FormGroup;
|
|
6446
6302
|
FormImpl.Control = FormControl$1;
|
|
@@ -6450,10 +6306,10 @@ FormImpl.Switch = Switch;
|
|
|
6450
6306
|
FormImpl.Label = FormLabel;
|
|
6451
6307
|
FormImpl.Text = FormText;
|
|
6452
6308
|
|
|
6453
|
-
var defaultProps$
|
|
6309
|
+
var defaultProps$j = {
|
|
6454
6310
|
fluid: false
|
|
6455
6311
|
};
|
|
6456
|
-
var Container =
|
|
6312
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6457
6313
|
var bsPrefix = _ref.bsPrefix,
|
|
6458
6314
|
fluid = _ref.fluid,
|
|
6459
6315
|
_ref$as = _ref.as,
|
|
@@ -6463,16 +6319,16 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6463
6319
|
|
|
6464
6320
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6465
6321
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6466
|
-
return /*#__PURE__*/
|
|
6322
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6467
6323
|
ref: ref
|
|
6468
6324
|
}, props, {
|
|
6469
6325
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6470
6326
|
}));
|
|
6471
6327
|
});
|
|
6472
6328
|
Container.displayName = 'Container';
|
|
6473
|
-
Container.defaultProps = defaultProps$
|
|
6329
|
+
Container.defaultProps = defaultProps$j;
|
|
6474
6330
|
|
|
6475
|
-
var propTypes$
|
|
6331
|
+
var propTypes$7 = {
|
|
6476
6332
|
/**
|
|
6477
6333
|
* @default 'img'
|
|
6478
6334
|
*/
|
|
@@ -6504,7 +6360,7 @@ var defaultProps$k = {
|
|
|
6504
6360
|
roundedCircle: false,
|
|
6505
6361
|
thumbnail: false
|
|
6506
6362
|
};
|
|
6507
|
-
var Image =
|
|
6363
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6508
6364
|
var bsPrefix = _ref.bsPrefix,
|
|
6509
6365
|
className = _ref.className,
|
|
6510
6366
|
fluid = _ref.fluid,
|
|
@@ -6515,7 +6371,7 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6515
6371
|
|
|
6516
6372
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6517
6373
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6518
|
-
return /*#__PURE__*/
|
|
6374
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6519
6375
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6520
6376
|
ref: ref
|
|
6521
6377
|
}, props, {
|
|
@@ -6525,22 +6381,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6525
6381
|
Image.displayName = 'Image';
|
|
6526
6382
|
Image.defaultProps = defaultProps$k;
|
|
6527
6383
|
|
|
6528
|
-
var defaultProps$
|
|
6384
|
+
var defaultProps$l = {
|
|
6529
6385
|
fluid: true
|
|
6530
6386
|
};
|
|
6531
|
-
var FigureImage =
|
|
6387
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6532
6388
|
var className = _ref.className,
|
|
6533
6389
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6534
6390
|
|
|
6535
|
-
return /*#__PURE__*/
|
|
6391
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6536
6392
|
ref: ref
|
|
6537
6393
|
}, props, {
|
|
6538
6394
|
className: classnames(className, 'figure-img')
|
|
6539
6395
|
}));
|
|
6540
6396
|
});
|
|
6541
6397
|
FigureImage.displayName = 'FigureImage';
|
|
6542
|
-
FigureImage.propTypes = propTypes$
|
|
6543
|
-
FigureImage.defaultProps = defaultProps$
|
|
6398
|
+
FigureImage.propTypes = propTypes$7;
|
|
6399
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6544
6400
|
|
|
6545
6401
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6546
6402
|
Component: 'figcaption'
|
|
@@ -6559,13 +6415,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6559
6415
|
});
|
|
6560
6416
|
|
|
6561
6417
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6562
|
-
return /*#__PURE__*/
|
|
6418
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6563
6419
|
type: "checkbox"
|
|
6564
6420
|
}, props)));
|
|
6565
6421
|
};
|
|
6566
6422
|
|
|
6567
6423
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6568
|
-
return /*#__PURE__*/
|
|
6424
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6569
6425
|
type: "radio"
|
|
6570
6426
|
}, props)));
|
|
6571
6427
|
};
|
|
@@ -6578,7 +6434,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6578
6434
|
* @property {InputGroupRadio} Radio
|
|
6579
6435
|
* @property {InputGroupCheckbox} Checkbox
|
|
6580
6436
|
*/
|
|
6581
|
-
var InputGroup =
|
|
6437
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6582
6438
|
var bsPrefix = _ref.bsPrefix,
|
|
6583
6439
|
size = _ref.size,
|
|
6584
6440
|
className = _ref.className,
|
|
@@ -6587,7 +6443,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6587
6443
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6588
6444
|
|
|
6589
6445
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6590
|
-
return /*#__PURE__*/
|
|
6446
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6591
6447
|
ref: ref
|
|
6592
6448
|
}, props, {
|
|
6593
6449
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6595,7 +6451,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6595
6451
|
});
|
|
6596
6452
|
InputGroup.displayName = 'InputGroup';
|
|
6597
6453
|
|
|
6598
|
-
_extends({}, InputGroup, {
|
|
6454
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6599
6455
|
Text: InputGroupText,
|
|
6600
6456
|
Radio: InputGroupRadio,
|
|
6601
6457
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6603,10 +6459,10 @@ _extends({}, InputGroup, {
|
|
|
6603
6459
|
Prepend: InputGroupPrepend
|
|
6604
6460
|
});
|
|
6605
6461
|
|
|
6606
|
-
var defaultProps$
|
|
6462
|
+
var defaultProps$m = {
|
|
6607
6463
|
fluid: false
|
|
6608
6464
|
};
|
|
6609
|
-
var Jumbotron =
|
|
6465
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6610
6466
|
var _classes;
|
|
6611
6467
|
|
|
6612
6468
|
var _ref$as = _ref.as,
|
|
@@ -6618,21 +6474,21 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6618
6474
|
|
|
6619
6475
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6620
6476
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6621
|
-
return /*#__PURE__*/
|
|
6477
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6622
6478
|
ref: ref
|
|
6623
6479
|
}, props, {
|
|
6624
6480
|
className: classnames(className, classes)
|
|
6625
6481
|
}));
|
|
6626
6482
|
});
|
|
6627
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6483
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6628
6484
|
Jumbotron.displayName = 'Jumbotron';
|
|
6629
6485
|
|
|
6630
|
-
var TabContext =
|
|
6486
|
+
var TabContext = React.createContext(null);
|
|
6631
6487
|
|
|
6632
6488
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6633
|
-
var noop$
|
|
6489
|
+
var noop$4 = function noop() {};
|
|
6634
6490
|
|
|
6635
|
-
var AbstractNav =
|
|
6491
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6636
6492
|
var _ref$as = _ref.as,
|
|
6637
6493
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6638
6494
|
onSelect = _ref.onSelect,
|
|
@@ -6713,27 +6569,27 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6713
6569
|
needsRefocusRef.current = false;
|
|
6714
6570
|
});
|
|
6715
6571
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6716
|
-
return /*#__PURE__*/
|
|
6572
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6717
6573
|
value: handleSelect
|
|
6718
|
-
}, /*#__PURE__*/
|
|
6574
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6719
6575
|
value: {
|
|
6720
6576
|
role: role,
|
|
6721
6577
|
// used by NavLink to determine it's role
|
|
6722
6578
|
activeKey: makeEventKey(activeKey),
|
|
6723
|
-
getControlledId: getControlledId || noop$
|
|
6724
|
-
getControllerId: getControllerId || noop$
|
|
6579
|
+
getControlledId: getControlledId || noop$4,
|
|
6580
|
+
getControllerId: getControllerId || noop$4
|
|
6725
6581
|
}
|
|
6726
|
-
}, /*#__PURE__*/
|
|
6582
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6727
6583
|
onKeyDown: handleKeyDown,
|
|
6728
6584
|
ref: mergedRef,
|
|
6729
6585
|
role: role
|
|
6730
6586
|
}))));
|
|
6731
6587
|
});
|
|
6732
6588
|
|
|
6733
|
-
var defaultProps$
|
|
6589
|
+
var defaultProps$n = {
|
|
6734
6590
|
disabled: false
|
|
6735
6591
|
};
|
|
6736
|
-
var AbstractNavItem =
|
|
6592
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6737
6593
|
var active = _ref.active,
|
|
6738
6594
|
className = _ref.className,
|
|
6739
6595
|
eventKey = _ref.eventKey,
|
|
@@ -6770,20 +6626,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6770
6626
|
if (onSelect) onSelect(navKey, e);
|
|
6771
6627
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6772
6628
|
});
|
|
6773
|
-
return /*#__PURE__*/
|
|
6629
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6774
6630
|
ref: ref,
|
|
6775
6631
|
onClick: handleOnclick,
|
|
6776
6632
|
className: classnames(className, isActive && 'active')
|
|
6777
6633
|
}));
|
|
6778
6634
|
});
|
|
6779
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6635
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6780
6636
|
|
|
6781
|
-
var defaultProps$
|
|
6637
|
+
var defaultProps$o = {
|
|
6782
6638
|
variant: undefined,
|
|
6783
6639
|
active: false,
|
|
6784
6640
|
disabled: false
|
|
6785
6641
|
};
|
|
6786
|
-
var ListGroupItem =
|
|
6642
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6787
6643
|
var bsPrefix = _ref.bsPrefix,
|
|
6788
6644
|
active = _ref.active,
|
|
6789
6645
|
disabled = _ref.disabled,
|
|
@@ -6805,7 +6661,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6805
6661
|
|
|
6806
6662
|
if (onClick) onClick(event);
|
|
6807
6663
|
}, [disabled, onClick]);
|
|
6808
|
-
return /*#__PURE__*/
|
|
6664
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6809
6665
|
ref: ref
|
|
6810
6666
|
}, props, {
|
|
6811
6667
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6816,14 +6672,14 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6816
6672
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6817
6673
|
}));
|
|
6818
6674
|
});
|
|
6819
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6675
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6820
6676
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6821
6677
|
|
|
6822
|
-
var defaultProps$
|
|
6678
|
+
var defaultProps$p = {
|
|
6823
6679
|
variant: undefined,
|
|
6824
6680
|
horizontal: undefined
|
|
6825
6681
|
};
|
|
6826
|
-
var ListGroup =
|
|
6682
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6827
6683
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6828
6684
|
activeKey: 'onSelect'
|
|
6829
6685
|
}),
|
|
@@ -6845,19 +6701,19 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6845
6701
|
}
|
|
6846
6702
|
|
|
6847
6703
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6848
|
-
return /*#__PURE__*/
|
|
6704
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6849
6705
|
ref: ref
|
|
6850
6706
|
}, controlledProps, {
|
|
6851
6707
|
as: as,
|
|
6852
6708
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6853
6709
|
}));
|
|
6854
6710
|
});
|
|
6855
|
-
ListGroup.defaultProps = defaultProps$
|
|
6711
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6856
6712
|
ListGroup.displayName = 'ListGroup';
|
|
6857
6713
|
ListGroup.Item = ListGroupItem;
|
|
6858
6714
|
|
|
6859
6715
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6860
|
-
var Media =
|
|
6716
|
+
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
|
|
6861
6717
|
function (_ref, ref) {
|
|
6862
6718
|
var bsPrefix = _ref.bsPrefix,
|
|
6863
6719
|
className = _ref.className,
|
|
@@ -6866,7 +6722,7 @@ function (_ref, ref) {
|
|
|
6866
6722
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6867
6723
|
|
|
6868
6724
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6869
|
-
return /*#__PURE__*/
|
|
6725
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6870
6726
|
ref: ref,
|
|
6871
6727
|
className: classnames(className, prefix)
|
|
6872
6728
|
}));
|
|
@@ -6901,7 +6757,7 @@ function scrollbarSize(recalc) {
|
|
|
6901
6757
|
|
|
6902
6758
|
function activeElement(doc) {
|
|
6903
6759
|
if (doc === void 0) {
|
|
6904
|
-
doc = ownerDocument
|
|
6760
|
+
doc = ownerDocument();
|
|
6905
6761
|
}
|
|
6906
6762
|
|
|
6907
6763
|
// Support: IE 9 only
|
|
@@ -6951,7 +6807,7 @@ function isBody(node) {
|
|
|
6951
6807
|
}
|
|
6952
6808
|
|
|
6953
6809
|
function bodyIsOverflowing(node) {
|
|
6954
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6810
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6955
6811
|
var win = isWindow(node) || doc.defaultView;
|
|
6956
6812
|
return doc.body.clientWidth < win.innerWidth;
|
|
6957
6813
|
}
|
|
@@ -7163,7 +7019,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7163
7019
|
var _ref;
|
|
7164
7020
|
|
|
7165
7021
|
if (typeof document === 'undefined') return null;
|
|
7166
|
-
if (ref == null) return ownerDocument
|
|
7022
|
+
if (ref == null) return ownerDocument().body;
|
|
7167
7023
|
if (typeof ref === 'function') ref = ref();
|
|
7168
7024
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7169
7025
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7196,11 +7052,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7196
7052
|
return resolvedRef;
|
|
7197
7053
|
}
|
|
7198
7054
|
|
|
7199
|
-
var manager
|
|
7055
|
+
var manager;
|
|
7200
7056
|
|
|
7201
7057
|
function getManager() {
|
|
7202
|
-
if (!manager
|
|
7203
|
-
return manager
|
|
7058
|
+
if (!manager) manager = new ModalManager();
|
|
7059
|
+
return manager;
|
|
7204
7060
|
}
|
|
7205
7061
|
|
|
7206
7062
|
function useModalManager(provided) {
|
|
@@ -7228,7 +7084,7 @@ function useModalManager(provided) {
|
|
|
7228
7084
|
});
|
|
7229
7085
|
}
|
|
7230
7086
|
|
|
7231
|
-
var Modal
|
|
7087
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7232
7088
|
var _ref$show = _ref.show,
|
|
7233
7089
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7234
7090
|
_ref$role = _ref.role,
|
|
@@ -7254,7 +7110,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7254
7110
|
renderDialog = _ref.renderDialog,
|
|
7255
7111
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7256
7112
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7257
|
-
return /*#__PURE__*/
|
|
7113
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7258
7114
|
} : _ref$renderBackdrop,
|
|
7259
7115
|
providedManager = _ref.manager,
|
|
7260
7116
|
containerRef = _ref.container,
|
|
@@ -7312,7 +7168,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7312
7168
|
if (autoFocus) {
|
|
7313
7169
|
var currentActiveElement = activeElement(document);
|
|
7314
7170
|
|
|
7315
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7171
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7316
7172
|
lastFocusRef.current = currentActiveElement;
|
|
7317
7173
|
modal.dialog.focus();
|
|
7318
7174
|
}
|
|
@@ -7358,7 +7214,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7358
7214
|
|
|
7359
7215
|
var currentActiveElement = activeElement();
|
|
7360
7216
|
|
|
7361
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7217
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7362
7218
|
modal.dialog.focus();
|
|
7363
7219
|
}
|
|
7364
7220
|
});
|
|
@@ -7412,12 +7268,12 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7412
7268
|
tabIndex: -1
|
|
7413
7269
|
});
|
|
7414
7270
|
|
|
7415
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7271
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7416
7272
|
role: 'document'
|
|
7417
7273
|
}));
|
|
7418
7274
|
|
|
7419
7275
|
if (Transition) {
|
|
7420
|
-
dialog = /*#__PURE__*/
|
|
7276
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7421
7277
|
appear: true,
|
|
7422
7278
|
unmountOnExit: true,
|
|
7423
7279
|
"in": !!show,
|
|
@@ -7440,16 +7296,16 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7440
7296
|
});
|
|
7441
7297
|
|
|
7442
7298
|
if (BackdropTransition) {
|
|
7443
|
-
backdropElement = /*#__PURE__*/
|
|
7299
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7444
7300
|
appear: true,
|
|
7445
7301
|
"in": !!show
|
|
7446
7302
|
}, backdropElement);
|
|
7447
7303
|
}
|
|
7448
7304
|
}
|
|
7449
7305
|
|
|
7450
|
-
return /*#__PURE__*/
|
|
7306
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7451
7307
|
});
|
|
7452
|
-
var propTypes$
|
|
7308
|
+
var propTypes$8 = {
|
|
7453
7309
|
/**
|
|
7454
7310
|
* Set the visibility of the Modal
|
|
7455
7311
|
*/
|
|
@@ -7605,9 +7461,9 @@ var propTypes$2 = {
|
|
|
7605
7461
|
*/
|
|
7606
7462
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7607
7463
|
};
|
|
7608
|
-
Modal
|
|
7609
|
-
Modal
|
|
7610
|
-
var BaseModal = Object.assign(Modal
|
|
7464
|
+
Modal.displayName = 'Modal';
|
|
7465
|
+
Modal.propTypes = propTypes$8;
|
|
7466
|
+
var BaseModal = Object.assign(Modal, {
|
|
7611
7467
|
Manager: ModalManager
|
|
7612
7468
|
});
|
|
7613
7469
|
|
|
@@ -7686,12 +7542,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7686
7542
|
|
|
7687
7543
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7688
7544
|
|
|
7689
|
-
var ModalContext =
|
|
7545
|
+
var ModalContext = React.createContext({
|
|
7690
7546
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7691
7547
|
onHide: function onHide() {}
|
|
7692
7548
|
});
|
|
7693
7549
|
|
|
7694
|
-
var ModalDialog =
|
|
7550
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7695
7551
|
var bsPrefix = _ref.bsPrefix,
|
|
7696
7552
|
className = _ref.className,
|
|
7697
7553
|
contentClassName = _ref.contentClassName,
|
|
@@ -7703,10 +7559,10 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7703
7559
|
|
|
7704
7560
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7705
7561
|
var dialogClass = bsPrefix + "-dialog";
|
|
7706
|
-
return /*#__PURE__*/
|
|
7562
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7707
7563
|
ref: ref,
|
|
7708
7564
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7709
|
-
}), /*#__PURE__*/
|
|
7565
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7710
7566
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7711
7567
|
}, children));
|
|
7712
7568
|
});
|
|
@@ -7714,11 +7570,11 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7714
7570
|
|
|
7715
7571
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7716
7572
|
|
|
7717
|
-
var defaultProps$
|
|
7573
|
+
var defaultProps$q = {
|
|
7718
7574
|
closeLabel: 'Close',
|
|
7719
7575
|
closeButton: false
|
|
7720
7576
|
};
|
|
7721
|
-
var ModalHeader =
|
|
7577
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7722
7578
|
var bsPrefix = _ref.bsPrefix,
|
|
7723
7579
|
closeLabel = _ref.closeLabel,
|
|
7724
7580
|
closeButton = _ref.closeButton,
|
|
@@ -7733,25 +7589,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7733
7589
|
if (context) context.onHide();
|
|
7734
7590
|
if (onHide) onHide();
|
|
7735
7591
|
});
|
|
7736
|
-
return /*#__PURE__*/
|
|
7592
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7737
7593
|
ref: ref
|
|
7738
7594
|
}, props, {
|
|
7739
7595
|
className: classnames(className, bsPrefix)
|
|
7740
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7596
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7741
7597
|
label: closeLabel,
|
|
7742
7598
|
onClick: handleClick
|
|
7743
7599
|
}));
|
|
7744
7600
|
});
|
|
7745
7601
|
ModalHeader.displayName = 'ModalHeader';
|
|
7746
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7602
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7747
7603
|
|
|
7748
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7604
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7749
7605
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7750
|
-
Component: DivStyledAsH4
|
|
7606
|
+
Component: DivStyledAsH4$1
|
|
7751
7607
|
});
|
|
7752
7608
|
|
|
7753
|
-
var manager;
|
|
7754
|
-
var defaultProps$
|
|
7609
|
+
var manager$1;
|
|
7610
|
+
var defaultProps$r = {
|
|
7755
7611
|
show: false,
|
|
7756
7612
|
backdrop: true,
|
|
7757
7613
|
keyboard: true,
|
|
@@ -7764,16 +7620,16 @@ var defaultProps$d = {
|
|
|
7764
7620
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7765
7621
|
|
|
7766
7622
|
function DialogTransition(props) {
|
|
7767
|
-
return /*#__PURE__*/
|
|
7623
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7768
7624
|
}
|
|
7769
7625
|
|
|
7770
7626
|
function BackdropTransition(props) {
|
|
7771
|
-
return /*#__PURE__*/
|
|
7627
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7772
7628
|
}
|
|
7773
7629
|
/* eslint-enable no-use-before-define */
|
|
7774
7630
|
|
|
7775
7631
|
|
|
7776
|
-
var Modal =
|
|
7632
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7777
7633
|
var bsPrefix = _ref.bsPrefix,
|
|
7778
7634
|
className = _ref.className,
|
|
7779
7635
|
style = _ref.style,
|
|
@@ -7839,14 +7695,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7839
7695
|
|
|
7840
7696
|
function getModalManager() {
|
|
7841
7697
|
if (propsManager) return propsManager;
|
|
7842
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7843
|
-
return manager;
|
|
7698
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7699
|
+
return manager$1;
|
|
7844
7700
|
}
|
|
7845
7701
|
|
|
7846
7702
|
function updateDialogStyle(node) {
|
|
7847
7703
|
if (!canUseDOM) return;
|
|
7848
7704
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7849
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7705
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7850
7706
|
setStyle({
|
|
7851
7707
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7852
7708
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7968,7 +7824,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7968
7824
|
};
|
|
7969
7825
|
|
|
7970
7826
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7971
|
-
return /*#__PURE__*/
|
|
7827
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7972
7828
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7973
7829
|
}));
|
|
7974
7830
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7981,7 +7837,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7981
7837
|
}
|
|
7982
7838
|
|
|
7983
7839
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7984
|
-
return /*#__PURE__*/
|
|
7840
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7985
7841
|
role: "dialog"
|
|
7986
7842
|
}, dialogProps, {
|
|
7987
7843
|
style: baseModalStyle,
|
|
@@ -7989,7 +7845,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7989
7845
|
onClick: backdrop ? handleClick : undefined,
|
|
7990
7846
|
onMouseUp: handleMouseUp,
|
|
7991
7847
|
"aria-labelledby": ariaLabelledby
|
|
7992
|
-
}), /*#__PURE__*/
|
|
7848
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7993
7849
|
role: "document",
|
|
7994
7850
|
onMouseDown: handleDialogMouseDown,
|
|
7995
7851
|
className: dialogClassName,
|
|
@@ -7997,9 +7853,9 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7997
7853
|
}), children));
|
|
7998
7854
|
};
|
|
7999
7855
|
|
|
8000
|
-
return /*#__PURE__*/
|
|
7856
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
8001
7857
|
value: modalContext
|
|
8002
|
-
}, /*#__PURE__*/
|
|
7858
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
8003
7859
|
show: show,
|
|
8004
7860
|
ref: setModalRef,
|
|
8005
7861
|
backdrop: backdrop,
|
|
@@ -8027,17 +7883,17 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8027
7883
|
renderDialog: renderDialog
|
|
8028
7884
|
}));
|
|
8029
7885
|
});
|
|
8030
|
-
Modal.displayName = 'Modal';
|
|
8031
|
-
Modal.defaultProps = defaultProps$
|
|
8032
|
-
Modal.Body = ModalBody;
|
|
8033
|
-
Modal.Header = ModalHeader;
|
|
8034
|
-
Modal.Title = ModalTitle;
|
|
8035
|
-
Modal.Footer = ModalFooter;
|
|
8036
|
-
Modal.Dialog = ModalDialog;
|
|
8037
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8038
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8039
|
-
|
|
8040
|
-
var NavItem =
|
|
7886
|
+
Modal$1.displayName = 'Modal';
|
|
7887
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7888
|
+
Modal$1.Body = ModalBody;
|
|
7889
|
+
Modal$1.Header = ModalHeader;
|
|
7890
|
+
Modal$1.Title = ModalTitle;
|
|
7891
|
+
Modal$1.Footer = ModalFooter;
|
|
7892
|
+
Modal$1.Dialog = ModalDialog;
|
|
7893
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7894
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7895
|
+
|
|
7896
|
+
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
|
|
8041
7897
|
function (_ref, ref) {
|
|
8042
7898
|
var bsPrefix = _ref.bsPrefix,
|
|
8043
7899
|
className = _ref.className,
|
|
@@ -8047,18 +7903,18 @@ function (_ref, ref) {
|
|
|
8047
7903
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8048
7904
|
|
|
8049
7905
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8050
|
-
return /*#__PURE__*/
|
|
7906
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8051
7907
|
ref: ref,
|
|
8052
7908
|
className: classnames(className, bsPrefix)
|
|
8053
7909
|
}), children);
|
|
8054
7910
|
});
|
|
8055
7911
|
NavItem.displayName = 'NavItem';
|
|
8056
7912
|
|
|
8057
|
-
var defaultProps$
|
|
7913
|
+
var defaultProps$s = {
|
|
8058
7914
|
disabled: false,
|
|
8059
7915
|
as: SafeAnchor
|
|
8060
7916
|
};
|
|
8061
|
-
var NavLink =
|
|
7917
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
8062
7918
|
var bsPrefix = _ref.bsPrefix,
|
|
8063
7919
|
disabled = _ref.disabled,
|
|
8064
7920
|
className = _ref.className,
|
|
@@ -8069,7 +7925,7 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8069
7925
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8070
7926
|
|
|
8071
7927
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8072
|
-
return /*#__PURE__*/
|
|
7928
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
8073
7929
|
href: href,
|
|
8074
7930
|
ref: ref,
|
|
8075
7931
|
eventKey: eventKey,
|
|
@@ -8080,13 +7936,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8080
7936
|
}));
|
|
8081
7937
|
});
|
|
8082
7938
|
NavLink.displayName = 'NavLink';
|
|
8083
|
-
NavLink.defaultProps = defaultProps$
|
|
7939
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8084
7940
|
|
|
8085
|
-
var defaultProps$
|
|
7941
|
+
var defaultProps$t = {
|
|
8086
7942
|
justify: false,
|
|
8087
7943
|
fill: false
|
|
8088
7944
|
};
|
|
8089
|
-
var Nav =
|
|
7945
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8090
7946
|
var _classNames;
|
|
8091
7947
|
|
|
8092
7948
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8108,7 +7964,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8108
7964
|
var navbarBsPrefix;
|
|
8109
7965
|
var cardHeaderBsPrefix;
|
|
8110
7966
|
var isNavbar = false;
|
|
8111
|
-
var navbarContext = useContext(context);
|
|
7967
|
+
var navbarContext = useContext(context$2);
|
|
8112
7968
|
var cardContext = useContext(context$1);
|
|
8113
7969
|
|
|
8114
7970
|
if (navbarContext) {
|
|
@@ -8118,7 +7974,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8118
7974
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8119
7975
|
}
|
|
8120
7976
|
|
|
8121
|
-
return /*#__PURE__*/
|
|
7977
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8122
7978
|
as: as,
|
|
8123
7979
|
ref: ref,
|
|
8124
7980
|
activeKey: activeKey,
|
|
@@ -8126,11 +7982,11 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8126
7982
|
}, props), children);
|
|
8127
7983
|
});
|
|
8128
7984
|
Nav.displayName = 'Nav';
|
|
8129
|
-
Nav.defaultProps = defaultProps$
|
|
7985
|
+
Nav.defaultProps = defaultProps$t;
|
|
8130
7986
|
Nav.Item = NavItem;
|
|
8131
7987
|
Nav.Link = NavLink;
|
|
8132
7988
|
|
|
8133
|
-
var NavbarBrand =
|
|
7989
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8134
7990
|
var bsPrefix = _ref.bsPrefix,
|
|
8135
7991
|
className = _ref.className,
|
|
8136
7992
|
as = _ref.as,
|
|
@@ -8138,23 +7994,23 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8138
7994
|
|
|
8139
7995
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8140
7996
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8141
|
-
return /*#__PURE__*/
|
|
7997
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8142
7998
|
ref: ref,
|
|
8143
7999
|
className: classnames(className, bsPrefix)
|
|
8144
8000
|
}));
|
|
8145
8001
|
});
|
|
8146
8002
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8147
8003
|
|
|
8148
|
-
var NavbarCollapse =
|
|
8004
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8149
8005
|
var children = _ref.children,
|
|
8150
8006
|
bsPrefix = _ref.bsPrefix,
|
|
8151
8007
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8152
8008
|
|
|
8153
8009
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8154
|
-
return /*#__PURE__*/
|
|
8155
|
-
return /*#__PURE__*/
|
|
8010
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8011
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8156
8012
|
in: !!(context && context.expanded)
|
|
8157
|
-
}, props), /*#__PURE__*/
|
|
8013
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8158
8014
|
ref: ref,
|
|
8159
8015
|
className: bsPrefix
|
|
8160
8016
|
}, children));
|
|
@@ -8162,10 +8018,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8162
8018
|
});
|
|
8163
8019
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8164
8020
|
|
|
8165
|
-
var defaultProps$
|
|
8021
|
+
var defaultProps$u = {
|
|
8166
8022
|
label: 'Toggle navigation'
|
|
8167
8023
|
};
|
|
8168
|
-
var NavbarToggle =
|
|
8024
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8169
8025
|
var bsPrefix = _ref.bsPrefix,
|
|
8170
8026
|
className = _ref.className,
|
|
8171
8027
|
children = _ref.children,
|
|
@@ -8177,7 +8033,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8177
8033
|
|
|
8178
8034
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8179
8035
|
|
|
8180
|
-
var _ref2 = useContext(context) || {},
|
|
8036
|
+
var _ref2 = useContext(context$2) || {},
|
|
8181
8037
|
onToggle = _ref2.onToggle,
|
|
8182
8038
|
expanded = _ref2.expanded;
|
|
8183
8039
|
|
|
@@ -8190,27 +8046,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8190
8046
|
props.type = 'button';
|
|
8191
8047
|
}
|
|
8192
8048
|
|
|
8193
|
-
return /*#__PURE__*/
|
|
8049
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8194
8050
|
ref: ref,
|
|
8195
8051
|
onClick: handleClick,
|
|
8196
8052
|
"aria-label": label,
|
|
8197
8053
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8198
|
-
}), children || /*#__PURE__*/
|
|
8054
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8199
8055
|
className: bsPrefix + "-icon"
|
|
8200
8056
|
}));
|
|
8201
8057
|
});
|
|
8202
8058
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8203
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8059
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8204
8060
|
|
|
8205
8061
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8206
8062
|
Component: 'span'
|
|
8207
8063
|
});
|
|
8208
|
-
var defaultProps$
|
|
8064
|
+
var defaultProps$v = {
|
|
8209
8065
|
expand: true,
|
|
8210
8066
|
variant: 'light',
|
|
8211
8067
|
collapseOnSelect: false
|
|
8212
8068
|
};
|
|
8213
|
-
var Navbar =
|
|
8069
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8214
8070
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8215
8071
|
expanded: 'onToggle'
|
|
8216
8072
|
}),
|
|
@@ -8258,24 +8114,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8258
8114
|
expanded: !!expanded
|
|
8259
8115
|
};
|
|
8260
8116
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8261
|
-
return /*#__PURE__*/
|
|
8117
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8262
8118
|
value: navbarContext
|
|
8263
|
-
}, /*#__PURE__*/
|
|
8119
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8264
8120
|
value: handleCollapse
|
|
8265
|
-
}, /*#__PURE__*/
|
|
8121
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8266
8122
|
ref: ref
|
|
8267
8123
|
}, controlledProps, {
|
|
8268
8124
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8269
8125
|
}), children)));
|
|
8270
8126
|
});
|
|
8271
|
-
Navbar.defaultProps = defaultProps$
|
|
8127
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8272
8128
|
Navbar.displayName = 'Navbar';
|
|
8273
8129
|
Navbar.Brand = NavbarBrand;
|
|
8274
8130
|
Navbar.Toggle = NavbarToggle;
|
|
8275
8131
|
Navbar.Collapse = NavbarCollapse;
|
|
8276
8132
|
Navbar.Text = NavbarText;
|
|
8277
8133
|
|
|
8278
|
-
var propTypes$
|
|
8134
|
+
var propTypes$9 = {
|
|
8279
8135
|
/**
|
|
8280
8136
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8281
8137
|
* @type {string|number}
|
|
@@ -8311,7 +8167,7 @@ var propTypes$1 = {
|
|
|
8311
8167
|
/** @ignore */
|
|
8312
8168
|
bsPrefix: PropTypes.string
|
|
8313
8169
|
};
|
|
8314
|
-
var NavDropdown =
|
|
8170
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8315
8171
|
var id = _ref.id,
|
|
8316
8172
|
title = _ref.title,
|
|
8317
8173
|
children = _ref.children,
|
|
@@ -8323,35 +8179,35 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8323
8179
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8324
8180
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8325
8181
|
|
|
8326
|
-
return /*#__PURE__*/
|
|
8182
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8327
8183
|
ref: ref
|
|
8328
8184
|
}, props, {
|
|
8329
8185
|
as: NavItem
|
|
8330
|
-
}), /*#__PURE__*/
|
|
8186
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8331
8187
|
id: id,
|
|
8332
8188
|
eventKey: null,
|
|
8333
8189
|
active: active,
|
|
8334
8190
|
disabled: disabled,
|
|
8335
8191
|
childBsPrefix: bsPrefix,
|
|
8336
8192
|
as: NavLink
|
|
8337
|
-
}, title), /*#__PURE__*/
|
|
8193
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8338
8194
|
role: menuRole,
|
|
8339
8195
|
renderOnMount: renderMenuOnMount,
|
|
8340
8196
|
rootCloseEvent: rootCloseEvent
|
|
8341
8197
|
}, children));
|
|
8342
8198
|
});
|
|
8343
8199
|
NavDropdown.displayName = 'NavDropdown';
|
|
8344
|
-
NavDropdown.propTypes = propTypes$
|
|
8345
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8346
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8347
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8348
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8200
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8201
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8202
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8203
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8204
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8349
8205
|
|
|
8350
8206
|
/**
|
|
8351
8207
|
* Built on top of `Popper.js`, the overlay component is
|
|
8352
8208
|
* great for custom tooltip overlays.
|
|
8353
8209
|
*/
|
|
8354
|
-
var Overlay = /*#__PURE__*/
|
|
8210
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8355
8211
|
var flip = props.flip,
|
|
8356
8212
|
offset = props.offset,
|
|
8357
8213
|
placement = props.placement,
|
|
@@ -8434,7 +8290,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8434
8290
|
onEnter = props.onEnter,
|
|
8435
8291
|
onEntering = props.onEntering,
|
|
8436
8292
|
onEntered = props.onEntered;
|
|
8437
|
-
child = /*#__PURE__*/
|
|
8293
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8438
8294
|
"in": props.show,
|
|
8439
8295
|
appear: true,
|
|
8440
8296
|
onExit: onExit,
|
|
@@ -8586,7 +8442,7 @@ Overlay.propTypes = {
|
|
|
8586
8442
|
onExited: PropTypes.func
|
|
8587
8443
|
};
|
|
8588
8444
|
|
|
8589
|
-
/*#__PURE__*/
|
|
8445
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8590
8446
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8591
8447
|
|
|
8592
8448
|
function RefHolder() {
|
|
@@ -8600,14 +8456,14 @@ Overlay.propTypes = {
|
|
|
8600
8456
|
};
|
|
8601
8457
|
|
|
8602
8458
|
return RefHolder;
|
|
8603
|
-
}
|
|
8459
|
+
}(React.Component);
|
|
8604
8460
|
|
|
8605
|
-
var defaultProps$
|
|
8461
|
+
var defaultProps$w = {
|
|
8606
8462
|
active: false,
|
|
8607
8463
|
disabled: false,
|
|
8608
8464
|
activeLabel: '(current)'
|
|
8609
8465
|
};
|
|
8610
|
-
var PageItem =
|
|
8466
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8611
8467
|
var active = _ref.active,
|
|
8612
8468
|
disabled = _ref.disabled,
|
|
8613
8469
|
className = _ref.className,
|
|
@@ -8617,21 +8473,21 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8617
8473
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8618
8474
|
|
|
8619
8475
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8620
|
-
return /*#__PURE__*/
|
|
8476
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8621
8477
|
ref: ref,
|
|
8622
8478
|
style: style,
|
|
8623
8479
|
className: classnames(className, 'page-item', {
|
|
8624
8480
|
active: active,
|
|
8625
8481
|
disabled: disabled
|
|
8626
8482
|
})
|
|
8627
|
-
}, /*#__PURE__*/
|
|
8483
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8628
8484
|
className: "page-link",
|
|
8629
8485
|
disabled: disabled
|
|
8630
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8486
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8631
8487
|
className: "sr-only"
|
|
8632
8488
|
}, activeLabel)));
|
|
8633
8489
|
});
|
|
8634
|
-
PageItem.defaultProps = defaultProps$
|
|
8490
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8635
8491
|
PageItem.displayName = 'PageItem';
|
|
8636
8492
|
|
|
8637
8493
|
function createButton(name, defaultValue, label) {
|
|
@@ -8643,9 +8499,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8643
8499
|
var children = _ref2.children,
|
|
8644
8500
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8645
8501
|
|
|
8646
|
-
return /*#__PURE__*/
|
|
8502
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8647
8503
|
"aria-hidden": "true"
|
|
8648
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8504
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8649
8505
|
className: "sr-only"
|
|
8650
8506
|
}, label));
|
|
8651
8507
|
}
|
|
@@ -8668,7 +8524,7 @@ var Last = createButton('Last', '»');
|
|
|
8668
8524
|
* @property {PageItem} Next
|
|
8669
8525
|
* @property {PageItem} Last
|
|
8670
8526
|
*/
|
|
8671
|
-
var Pagination =
|
|
8527
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8672
8528
|
var bsPrefix = _ref.bsPrefix,
|
|
8673
8529
|
className = _ref.className,
|
|
8674
8530
|
children = _ref.children,
|
|
@@ -8676,7 +8532,7 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8676
8532
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8677
8533
|
|
|
8678
8534
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8679
|
-
return /*#__PURE__*/
|
|
8535
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8680
8536
|
ref: ref
|
|
8681
8537
|
}, props, {
|
|
8682
8538
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8689,7 +8545,7 @@ Pagination.Item = PageItem;
|
|
|
8689
8545
|
Pagination.Next = Next;
|
|
8690
8546
|
Pagination.Last = Last;
|
|
8691
8547
|
|
|
8692
|
-
var PopoverTitle =
|
|
8548
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8693
8549
|
var _ref$as = _ref.as,
|
|
8694
8550
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8695
8551
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8698,14 +8554,14 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8698
8554
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8699
8555
|
|
|
8700
8556
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8701
|
-
return /*#__PURE__*/
|
|
8557
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8702
8558
|
ref: ref
|
|
8703
8559
|
}, props, {
|
|
8704
8560
|
className: classnames(bsPrefix, className)
|
|
8705
8561
|
}), children);
|
|
8706
8562
|
});
|
|
8707
8563
|
|
|
8708
|
-
var PopoverContent =
|
|
8564
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8709
8565
|
var _ref$as = _ref.as,
|
|
8710
8566
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8711
8567
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8714,50 +8570,50 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8714
8570
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8715
8571
|
|
|
8716
8572
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8717
|
-
return /*#__PURE__*/
|
|
8573
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8718
8574
|
ref: ref
|
|
8719
8575
|
}, props, {
|
|
8720
8576
|
className: classnames(className, bsPrefix)
|
|
8721
8577
|
}), children);
|
|
8722
8578
|
});
|
|
8723
8579
|
|
|
8724
|
-
var defaultProps$
|
|
8580
|
+
var defaultProps$x = {
|
|
8725
8581
|
placement: 'right'
|
|
8726
8582
|
};
|
|
8727
|
-
var Popover =
|
|
8583
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8728
8584
|
var bsPrefix = _ref.bsPrefix,
|
|
8729
8585
|
placement = _ref.placement,
|
|
8730
8586
|
className = _ref.className,
|
|
8731
8587
|
style = _ref.style,
|
|
8732
8588
|
children = _ref.children,
|
|
8733
8589
|
content = _ref.content,
|
|
8734
|
-
arrowProps = _ref.arrowProps
|
|
8735
|
-
_ref.popper
|
|
8736
|
-
_ref.show
|
|
8737
|
-
|
|
8590
|
+
arrowProps = _ref.arrowProps,
|
|
8591
|
+
_ = _ref.popper,
|
|
8592
|
+
_1 = _ref.show,
|
|
8593
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8738
8594
|
|
|
8739
8595
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8740
8596
|
|
|
8741
8597
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8742
8598
|
primaryPlacement = _ref2[0];
|
|
8743
8599
|
|
|
8744
|
-
return /*#__PURE__*/
|
|
8600
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8745
8601
|
ref: ref,
|
|
8746
8602
|
role: "tooltip",
|
|
8747
8603
|
style: style,
|
|
8748
8604
|
"x-placement": primaryPlacement,
|
|
8749
8605
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8750
|
-
}, props), /*#__PURE__*/
|
|
8606
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8751
8607
|
className: "arrow"
|
|
8752
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8608
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8753
8609
|
});
|
|
8754
|
-
Popover.defaultProps = defaultProps$
|
|
8610
|
+
Popover.defaultProps = defaultProps$x;
|
|
8755
8611
|
Popover.Title = PopoverTitle;
|
|
8756
8612
|
Popover.Content = PopoverContent;
|
|
8757
8613
|
|
|
8758
8614
|
var ROUND_PRECISION = 1000;
|
|
8759
8615
|
|
|
8760
|
-
var defaultProps$
|
|
8616
|
+
var defaultProps$y = {
|
|
8761
8617
|
min: 0,
|
|
8762
8618
|
max: 100,
|
|
8763
8619
|
animated: false,
|
|
@@ -8787,7 +8643,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8787
8643
|
bsPrefix = _ref.bsPrefix,
|
|
8788
8644
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8789
8645
|
|
|
8790
|
-
return /*#__PURE__*/
|
|
8646
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8791
8647
|
ref: ref
|
|
8792
8648
|
}, props, {
|
|
8793
8649
|
role: "progressbar",
|
|
@@ -8798,12 +8654,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8798
8654
|
"aria-valuenow": now,
|
|
8799
8655
|
"aria-valuemin": min,
|
|
8800
8656
|
"aria-valuemax": max
|
|
8801
|
-
}), srOnly ? /*#__PURE__*/
|
|
8657
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8802
8658
|
className: "sr-only"
|
|
8803
8659
|
}, label) : label);
|
|
8804
8660
|
}
|
|
8805
8661
|
|
|
8806
|
-
var ProgressBar =
|
|
8662
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8807
8663
|
var isChild = _ref2.isChild,
|
|
8808
8664
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8809
8665
|
|
|
@@ -8826,7 +8682,7 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8826
8682
|
children = props.children,
|
|
8827
8683
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8828
8684
|
|
|
8829
|
-
return /*#__PURE__*/
|
|
8685
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8830
8686
|
ref: ref
|
|
8831
8687
|
}, wrapperProps, {
|
|
8832
8688
|
className: classnames(className, bsPrefix)
|
|
@@ -8847,12 +8703,12 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8847
8703
|
}, ref));
|
|
8848
8704
|
});
|
|
8849
8705
|
ProgressBar.displayName = 'ProgressBar';
|
|
8850
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8706
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8851
8707
|
|
|
8852
|
-
var defaultProps$
|
|
8708
|
+
var defaultProps$z = {
|
|
8853
8709
|
aspectRatio: '1by1'
|
|
8854
8710
|
};
|
|
8855
|
-
var ResponsiveEmbed =
|
|
8711
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8856
8712
|
var bsPrefix = _ref.bsPrefix,
|
|
8857
8713
|
className = _ref.className,
|
|
8858
8714
|
children = _ref.children,
|
|
@@ -8860,22 +8716,22 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8860
8716
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8861
8717
|
|
|
8862
8718
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8863
|
-
var child =
|
|
8864
|
-
return /*#__PURE__*/
|
|
8719
|
+
var child = React.Children.only(children);
|
|
8720
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8865
8721
|
ref: ref
|
|
8866
8722
|
}, props, {
|
|
8867
8723
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8868
|
-
}),
|
|
8724
|
+
}), React.cloneElement(child, {
|
|
8869
8725
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8870
8726
|
}));
|
|
8871
8727
|
});
|
|
8872
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8728
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8873
8729
|
|
|
8874
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8875
|
-
var defaultProps$
|
|
8730
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8731
|
+
var defaultProps$A = {
|
|
8876
8732
|
noGutters: false
|
|
8877
8733
|
};
|
|
8878
|
-
var Row =
|
|
8734
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8879
8735
|
var bsPrefix = _ref.bsPrefix,
|
|
8880
8736
|
className = _ref.className,
|
|
8881
8737
|
noGutters = _ref.noGutters,
|
|
@@ -8886,7 +8742,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8886
8742
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8887
8743
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8888
8744
|
var classes = [];
|
|
8889
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8745
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8890
8746
|
var propValue = props[brkPoint];
|
|
8891
8747
|
delete props[brkPoint];
|
|
8892
8748
|
var cols;
|
|
@@ -8900,16 +8756,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8900
8756
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8901
8757
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8902
8758
|
});
|
|
8903
|
-
return /*#__PURE__*/
|
|
8759
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8904
8760
|
ref: ref
|
|
8905
8761
|
}, props, {
|
|
8906
8762
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8907
8763
|
}));
|
|
8908
8764
|
});
|
|
8909
8765
|
Row.displayName = 'Row';
|
|
8910
|
-
Row.defaultProps = defaultProps$
|
|
8766
|
+
Row.defaultProps = defaultProps$A;
|
|
8911
8767
|
|
|
8912
|
-
var Spinner =
|
|
8768
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8913
8769
|
var bsPrefix = _ref.bsPrefix,
|
|
8914
8770
|
variant = _ref.variant,
|
|
8915
8771
|
animation = _ref.animation,
|
|
@@ -8922,7 +8778,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8922
8778
|
|
|
8923
8779
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8924
8780
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8925
|
-
return /*#__PURE__*/
|
|
8781
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8926
8782
|
ref: ref
|
|
8927
8783
|
}, props, {
|
|
8928
8784
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8930,7 +8786,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8930
8786
|
});
|
|
8931
8787
|
Spinner.displayName = 'Spinner';
|
|
8932
8788
|
|
|
8933
|
-
var propTypes = {
|
|
8789
|
+
var propTypes$a = {
|
|
8934
8790
|
/**
|
|
8935
8791
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8936
8792
|
* @type {string|number}
|
|
@@ -8992,11 +8848,11 @@ var propTypes = {
|
|
|
8992
8848
|
/** @ignore */
|
|
8993
8849
|
size: PropTypes.string
|
|
8994
8850
|
};
|
|
8995
|
-
var defaultProps$
|
|
8851
|
+
var defaultProps$B = {
|
|
8996
8852
|
toggleLabel: 'Toggle dropdown',
|
|
8997
8853
|
type: 'button'
|
|
8998
8854
|
};
|
|
8999
|
-
var SplitButton =
|
|
8855
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
9000
8856
|
var id = _ref.id,
|
|
9001
8857
|
bsPrefix = _ref.bsPrefix,
|
|
9002
8858
|
size = _ref.size,
|
|
@@ -9014,11 +8870,11 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9014
8870
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9015
8871
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9016
8872
|
|
|
9017
|
-
return /*#__PURE__*/
|
|
8873
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
9018
8874
|
ref: ref
|
|
9019
8875
|
}, props, {
|
|
9020
8876
|
as: ButtonGroup
|
|
9021
|
-
}), /*#__PURE__*/
|
|
8877
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
9022
8878
|
size: size,
|
|
9023
8879
|
variant: variant,
|
|
9024
8880
|
disabled: props.disabled,
|
|
@@ -9027,24 +8883,24 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9027
8883
|
target: target,
|
|
9028
8884
|
onClick: onClick,
|
|
9029
8885
|
type: type
|
|
9030
|
-
}, title), /*#__PURE__*/
|
|
8886
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
9031
8887
|
split: true,
|
|
9032
8888
|
id: id ? id.toString() : undefined,
|
|
9033
8889
|
size: size,
|
|
9034
8890
|
variant: variant,
|
|
9035
8891
|
disabled: props.disabled,
|
|
9036
8892
|
childBsPrefix: bsPrefix
|
|
9037
|
-
}, /*#__PURE__*/
|
|
8893
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
9038
8894
|
className: "sr-only"
|
|
9039
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8895
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
9040
8896
|
align: menuAlign,
|
|
9041
8897
|
role: menuRole,
|
|
9042
8898
|
renderOnMount: renderMenuOnMount,
|
|
9043
8899
|
rootCloseEvent: rootCloseEvent
|
|
9044
8900
|
}, children));
|
|
9045
8901
|
});
|
|
9046
|
-
SplitButton.propTypes = propTypes;
|
|
9047
|
-
SplitButton.defaultProps = defaultProps$
|
|
8902
|
+
SplitButton.propTypes = propTypes$a;
|
|
8903
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9048
8904
|
SplitButton.displayName = 'SplitButton';
|
|
9049
8905
|
|
|
9050
8906
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9080,14 +8936,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
9080
8936
|
}
|
|
9081
8937
|
};
|
|
9082
8938
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
9083
|
-
return /*#__PURE__*/
|
|
8939
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9084
8940
|
value: tabContext
|
|
9085
|
-
}, /*#__PURE__*/
|
|
8941
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9086
8942
|
value: onSelect || null
|
|
9087
8943
|
}, children));
|
|
9088
8944
|
};
|
|
9089
8945
|
|
|
9090
|
-
var TabContent =
|
|
8946
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9091
8947
|
var bsPrefix = _ref.bsPrefix,
|
|
9092
8948
|
_ref$as = _ref.as,
|
|
9093
8949
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -9095,7 +8951,7 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9095
8951
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9096
8952
|
|
|
9097
8953
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9098
|
-
return /*#__PURE__*/
|
|
8954
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9099
8955
|
ref: ref
|
|
9100
8956
|
}, props, {
|
|
9101
8957
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9123,7 +8979,7 @@ function useTabContext(props) {
|
|
|
9123
8979
|
});
|
|
9124
8980
|
}
|
|
9125
8981
|
|
|
9126
|
-
var TabPane =
|
|
8982
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9127
8983
|
var _useTabContext = useTabContext(props),
|
|
9128
8984
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9129
8985
|
className = _useTabContext.className,
|
|
@@ -9138,13 +8994,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9138
8994
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9139
8995
|
Transition = _useTabContext.transition,
|
|
9140
8996
|
_useTabContext$as = _useTabContext.as,
|
|
9141
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9142
|
-
_useTabContext.eventKey
|
|
9143
|
-
|
|
8997
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8998
|
+
_ = _useTabContext.eventKey,
|
|
8999
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9144
9000
|
|
|
9145
9001
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9146
9002
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9147
|
-
var pane = /*#__PURE__*/
|
|
9003
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9148
9004
|
ref: ref,
|
|
9149
9005
|
role: "tabpanel",
|
|
9150
9006
|
"aria-hidden": !active,
|
|
@@ -9152,7 +9008,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9152
9008
|
active: active
|
|
9153
9009
|
})
|
|
9154
9010
|
}));
|
|
9155
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9011
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9156
9012
|
in: active,
|
|
9157
9013
|
onEnter: onEnter,
|
|
9158
9014
|
onEntering: onEntering,
|
|
@@ -9165,9 +9021,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9165
9021
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9166
9022
|
// conflict with the top level one.
|
|
9167
9023
|
|
|
9168
|
-
return /*#__PURE__*/
|
|
9024
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9169
9025
|
value: null
|
|
9170
|
-
}, /*#__PURE__*/
|
|
9026
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9171
9027
|
value: null
|
|
9172
9028
|
}, pane));
|
|
9173
9029
|
});
|
|
@@ -9188,13 +9044,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9188
9044
|
};
|
|
9189
9045
|
|
|
9190
9046
|
return Tab;
|
|
9191
|
-
}(
|
|
9047
|
+
}(React.Component);
|
|
9192
9048
|
|
|
9193
9049
|
Tab.Container = TabContainer;
|
|
9194
9050
|
Tab.Content = TabContent;
|
|
9195
9051
|
Tab.Pane = TabPane;
|
|
9196
9052
|
|
|
9197
|
-
|
|
9053
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9198
9054
|
var bsPrefix = _ref.bsPrefix,
|
|
9199
9055
|
className = _ref.className,
|
|
9200
9056
|
striped = _ref.striped,
|
|
@@ -9208,7 +9064,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9208
9064
|
|
|
9209
9065
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9210
9066
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9211
|
-
var table = /*#__PURE__*/
|
|
9067
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9212
9068
|
className: classes,
|
|
9213
9069
|
ref: ref
|
|
9214
9070
|
}));
|
|
@@ -9220,7 +9076,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9220
9076
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9221
9077
|
}
|
|
9222
9078
|
|
|
9223
|
-
return /*#__PURE__*/
|
|
9079
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9224
9080
|
className: responsiveClass
|
|
9225
9081
|
}, table);
|
|
9226
9082
|
}
|
|
@@ -9228,16 +9084,16 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9228
9084
|
return table;
|
|
9229
9085
|
});
|
|
9230
9086
|
|
|
9231
|
-
var ToastContext =
|
|
9087
|
+
var ToastContext = React.createContext({
|
|
9232
9088
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9233
9089
|
onClose: function onClose() {}
|
|
9234
9090
|
});
|
|
9235
9091
|
|
|
9236
|
-
var defaultProps$
|
|
9092
|
+
var defaultProps$C = {
|
|
9237
9093
|
closeLabel: 'Close',
|
|
9238
9094
|
closeButton: true
|
|
9239
9095
|
};
|
|
9240
|
-
var ToastHeader =
|
|
9096
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9241
9097
|
var bsPrefix = _ref.bsPrefix,
|
|
9242
9098
|
closeLabel = _ref.closeLabel,
|
|
9243
9099
|
closeButton = _ref.closeButton,
|
|
@@ -9252,11 +9108,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9252
9108
|
context.onClose(e);
|
|
9253
9109
|
}
|
|
9254
9110
|
});
|
|
9255
|
-
return /*#__PURE__*/
|
|
9111
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9256
9112
|
ref: ref
|
|
9257
9113
|
}, props, {
|
|
9258
9114
|
className: classnames(bsPrefix, className)
|
|
9259
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9115
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9260
9116
|
label: closeLabel,
|
|
9261
9117
|
onClick: handleClick,
|
|
9262
9118
|
className: "ml-2 mb-1",
|
|
@@ -9264,11 +9120,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9264
9120
|
}));
|
|
9265
9121
|
});
|
|
9266
9122
|
ToastHeader.displayName = 'ToastHeader';
|
|
9267
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9123
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9268
9124
|
|
|
9269
9125
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9270
9126
|
|
|
9271
|
-
var Toast =
|
|
9127
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9272
9128
|
var bsPrefix = _ref.bsPrefix,
|
|
9273
9129
|
className = _ref.className,
|
|
9274
9130
|
children = _ref.children,
|
|
@@ -9311,16 +9167,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9311
9167
|
};
|
|
9312
9168
|
}, [onClose]);
|
|
9313
9169
|
var hasAnimation = !!(Transition && animation);
|
|
9314
|
-
var toast = /*#__PURE__*/
|
|
9170
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9315
9171
|
ref: ref,
|
|
9316
9172
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9317
9173
|
role: "alert",
|
|
9318
9174
|
"aria-live": "assertive",
|
|
9319
9175
|
"aria-atomic": "true"
|
|
9320
9176
|
}), children);
|
|
9321
|
-
return /*#__PURE__*/
|
|
9177
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9322
9178
|
value: toastContext
|
|
9323
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9179
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9324
9180
|
in: show,
|
|
9325
9181
|
unmountOnExit: true
|
|
9326
9182
|
}, toast) : toast);
|
|
@@ -9331,11 +9187,11 @@ Object.assign(Toast, {
|
|
|
9331
9187
|
Header: ToastHeader
|
|
9332
9188
|
});
|
|
9333
9189
|
|
|
9334
|
-
var noop = function noop() {
|
|
9190
|
+
var noop$5 = function noop() {
|
|
9335
9191
|
return undefined;
|
|
9336
9192
|
};
|
|
9337
9193
|
|
|
9338
|
-
var ToggleButton =
|
|
9194
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9339
9195
|
var children = _ref.children,
|
|
9340
9196
|
name = _ref.name,
|
|
9341
9197
|
className = _ref.className,
|
|
@@ -9357,13 +9213,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9357
9213
|
var handleBlur = useCallback(function (e) {
|
|
9358
9214
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9359
9215
|
}, []);
|
|
9360
|
-
return /*#__PURE__*/
|
|
9216
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9361
9217
|
ref: ref,
|
|
9362
9218
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9363
9219
|
type: undefined,
|
|
9364
9220
|
active: !!checked,
|
|
9365
9221
|
as: "label"
|
|
9366
|
-
}), /*#__PURE__*/
|
|
9222
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9367
9223
|
name: name,
|
|
9368
9224
|
type: type,
|
|
9369
9225
|
value: value,
|
|
@@ -9373,16 +9229,16 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9373
9229
|
disabled: !!disabled,
|
|
9374
9230
|
onFocus: handleFocus,
|
|
9375
9231
|
onBlur: handleBlur,
|
|
9376
|
-
onChange: onChange || noop
|
|
9232
|
+
onChange: onChange || noop$5
|
|
9377
9233
|
}), children);
|
|
9378
9234
|
});
|
|
9379
9235
|
ToggleButton.displayName = 'ToggleButton';
|
|
9380
9236
|
|
|
9381
|
-
var defaultProps$
|
|
9237
|
+
var defaultProps$D = {
|
|
9382
9238
|
type: 'radio',
|
|
9383
9239
|
vertical: false
|
|
9384
9240
|
};
|
|
9385
|
-
var ToggleButtonGroup =
|
|
9241
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9386
9242
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9387
9243
|
value: 'onChange'
|
|
9388
9244
|
}),
|
|
@@ -9420,7 +9276,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9420
9276
|
};
|
|
9421
9277
|
|
|
9422
9278
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9423
|
-
return /*#__PURE__*/
|
|
9279
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9424
9280
|
ref: ref,
|
|
9425
9281
|
toggle: true
|
|
9426
9282
|
}), map(children, function (child) {
|
|
@@ -9433,7 +9289,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9433
9289
|
return handleToggle(childVal, e);
|
|
9434
9290
|
};
|
|
9435
9291
|
|
|
9436
|
-
return
|
|
9292
|
+
return React.cloneElement(child, {
|
|
9437
9293
|
type: type,
|
|
9438
9294
|
name: child.name || name,
|
|
9439
9295
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9441,41 +9297,41 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9441
9297
|
});
|
|
9442
9298
|
}));
|
|
9443
9299
|
});
|
|
9444
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9300
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9445
9301
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9446
9302
|
|
|
9447
|
-
var defaultProps = {
|
|
9303
|
+
var defaultProps$E = {
|
|
9448
9304
|
placement: 'right'
|
|
9449
9305
|
};
|
|
9450
|
-
var Tooltip =
|
|
9306
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9451
9307
|
var bsPrefix = _ref.bsPrefix,
|
|
9452
9308
|
placement = _ref.placement,
|
|
9453
9309
|
className = _ref.className,
|
|
9454
9310
|
style = _ref.style,
|
|
9455
9311
|
children = _ref.children,
|
|
9456
|
-
arrowProps = _ref.arrowProps
|
|
9457
|
-
_ref.popper
|
|
9458
|
-
_ref.show
|
|
9459
|
-
|
|
9312
|
+
arrowProps = _ref.arrowProps,
|
|
9313
|
+
_ = _ref.popper,
|
|
9314
|
+
_2 = _ref.show,
|
|
9315
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9460
9316
|
|
|
9461
9317
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9462
9318
|
|
|
9463
9319
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9464
9320
|
primaryPlacement = _ref2[0];
|
|
9465
9321
|
|
|
9466
|
-
return /*#__PURE__*/
|
|
9322
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9467
9323
|
ref: ref,
|
|
9468
9324
|
style: style,
|
|
9469
9325
|
role: "tooltip",
|
|
9470
9326
|
"x-placement": primaryPlacement,
|
|
9471
9327
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9472
|
-
}, props), /*#__PURE__*/
|
|
9328
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9473
9329
|
className: "arrow"
|
|
9474
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9330
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9475
9331
|
className: bsPrefix + "-inner"
|
|
9476
9332
|
}, children));
|
|
9477
9333
|
});
|
|
9478
|
-
Tooltip.defaultProps = defaultProps;
|
|
9334
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9479
9335
|
Tooltip.displayName = 'Tooltip';
|
|
9480
9336
|
|
|
9481
9337
|
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";
|
|
@@ -9489,54 +9345,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9489
9345
|
client = props.client;
|
|
9490
9346
|
|
|
9491
9347
|
|
|
9492
|
-
return
|
|
9348
|
+
return React.createElement(
|
|
9493
9349
|
'div',
|
|
9494
9350
|
{ className: styles.article },
|
|
9495
|
-
|
|
9351
|
+
React.createElement(
|
|
9496
9352
|
'a',
|
|
9497
9353
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9498
|
-
|
|
9354
|
+
React.createElement(
|
|
9499
9355
|
'div',
|
|
9500
9356
|
{ className: styles.thumb },
|
|
9501
|
-
|
|
9357
|
+
React.createElement(
|
|
9502
9358
|
'figure',
|
|
9503
9359
|
null,
|
|
9504
|
-
|
|
9360
|
+
React.createElement(
|
|
9505
9361
|
LazyLoad,
|
|
9506
9362
|
null,
|
|
9507
|
-
|
|
9363
|
+
React.createElement('img', {
|
|
9508
9364
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9509
9365
|
})
|
|
9510
9366
|
)
|
|
9511
9367
|
)
|
|
9512
9368
|
),
|
|
9513
|
-
|
|
9369
|
+
React.createElement(
|
|
9514
9370
|
'div',
|
|
9515
9371
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9516
|
-
|
|
9372
|
+
React.createElement(
|
|
9517
9373
|
'div',
|
|
9518
9374
|
{ className: styles.name },
|
|
9519
9375
|
data.name
|
|
9520
9376
|
),
|
|
9521
|
-
data.published &&
|
|
9377
|
+
data.published && React.createElement(
|
|
9522
9378
|
'p',
|
|
9523
9379
|
{ className: styles.published },
|
|
9524
9380
|
moment(data.published).format('MMMM Do YYYY')
|
|
9525
9381
|
),
|
|
9526
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9382
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9527
9383
|
'p',
|
|
9528
9384
|
{ className: styles.author },
|
|
9529
9385
|
'By ',
|
|
9530
|
-
|
|
9386
|
+
React.createElement(
|
|
9531
9387
|
'span',
|
|
9532
9388
|
null,
|
|
9533
9389
|
data.authorMapping.displayName
|
|
9534
9390
|
)
|
|
9535
9391
|
),
|
|
9536
|
-
data.description &&
|
|
9392
|
+
data.description && React.createElement(
|
|
9537
9393
|
'div',
|
|
9538
9394
|
{ className: 'media-series-desc' },
|
|
9539
|
-
|
|
9395
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9540
9396
|
)
|
|
9541
9397
|
)
|
|
9542
9398
|
)
|
|
@@ -9633,14 +9489,14 @@ var Filter = function Filter(_ref) {
|
|
|
9633
9489
|
}
|
|
9634
9490
|
};
|
|
9635
9491
|
|
|
9636
|
-
return
|
|
9492
|
+
return React.createElement(
|
|
9637
9493
|
'div',
|
|
9638
9494
|
{ className: 'flex-container' },
|
|
9639
|
-
parentData &&
|
|
9495
|
+
parentData && React.createElement(
|
|
9640
9496
|
DropdownButton,
|
|
9641
9497
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9642
|
-
|
|
9643
|
-
Dropdown.Item,
|
|
9498
|
+
React.createElement(
|
|
9499
|
+
Dropdown$1.Item,
|
|
9644
9500
|
{ onSelect: function onSelect() {
|
|
9645
9501
|
return handleFilterSelect({}, 'parent');
|
|
9646
9502
|
} },
|
|
@@ -9648,8 +9504,8 @@ var Filter = function Filter(_ref) {
|
|
|
9648
9504
|
),
|
|
9649
9505
|
parentData.data.map(function (docGroup) {
|
|
9650
9506
|
if (!docGroup._id) return null;
|
|
9651
|
-
return
|
|
9652
|
-
Dropdown.Item,
|
|
9507
|
+
return React.createElement(
|
|
9508
|
+
Dropdown$1.Item,
|
|
9653
9509
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9654
9510
|
return handleFilterSelect(docGroup, 'parent');
|
|
9655
9511
|
} },
|
|
@@ -9657,11 +9513,11 @@ var Filter = function Filter(_ref) {
|
|
|
9657
9513
|
);
|
|
9658
9514
|
})
|
|
9659
9515
|
),
|
|
9660
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9516
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9661
9517
|
DropdownButton,
|
|
9662
9518
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9663
|
-
|
|
9664
|
-
Dropdown.Item,
|
|
9519
|
+
React.createElement(
|
|
9520
|
+
Dropdown$1.Item,
|
|
9665
9521
|
{ onSelect: function onSelect() {
|
|
9666
9522
|
return handleFilterSelect({}, 'child');
|
|
9667
9523
|
} },
|
|
@@ -9669,8 +9525,8 @@ var Filter = function Filter(_ref) {
|
|
|
9669
9525
|
),
|
|
9670
9526
|
childData.data.map(function (docGroup) {
|
|
9671
9527
|
if (!docGroup._id) return null;
|
|
9672
|
-
return
|
|
9673
|
-
Dropdown.Item,
|
|
9528
|
+
return React.createElement(
|
|
9529
|
+
Dropdown$1.Item,
|
|
9674
9530
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9675
9531
|
return handleFilterSelect(docGroup, 'child');
|
|
9676
9532
|
} },
|
|
@@ -9678,11 +9534,11 @@ var Filter = function Filter(_ref) {
|
|
|
9678
9534
|
);
|
|
9679
9535
|
})
|
|
9680
9536
|
),
|
|
9681
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9537
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9682
9538
|
DropdownButton,
|
|
9683
9539
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9684
|
-
|
|
9685
|
-
Dropdown.Item,
|
|
9540
|
+
React.createElement(
|
|
9541
|
+
Dropdown$1.Item,
|
|
9686
9542
|
{ onSelect: function onSelect() {
|
|
9687
9543
|
return handleFilterSelect({}, 'grandchild');
|
|
9688
9544
|
} },
|
|
@@ -9690,8 +9546,8 @@ var Filter = function Filter(_ref) {
|
|
|
9690
9546
|
),
|
|
9691
9547
|
grandChildData.data.map(function (docGroup) {
|
|
9692
9548
|
if (!docGroup._id) return null;
|
|
9693
|
-
return
|
|
9694
|
-
Dropdown.Item,
|
|
9549
|
+
return React.createElement(
|
|
9550
|
+
Dropdown$1.Item,
|
|
9695
9551
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9696
9552
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9697
9553
|
} },
|
|
@@ -9699,7 +9555,7 @@ var Filter = function Filter(_ref) {
|
|
|
9699
9555
|
);
|
|
9700
9556
|
})
|
|
9701
9557
|
),
|
|
9702
|
-
|
|
9558
|
+
React.createElement(
|
|
9703
9559
|
'style',
|
|
9704
9560
|
{ jsx: 'true' },
|
|
9705
9561
|
'\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 '
|
|
@@ -9789,27 +9645,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9789
9645
|
}();
|
|
9790
9646
|
|
|
9791
9647
|
if (props.statusCode === 404) {
|
|
9792
|
-
return
|
|
9648
|
+
return React.createElement(
|
|
9793
9649
|
'div',
|
|
9794
9650
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9795
|
-
|
|
9651
|
+
React.createElement(
|
|
9796
9652
|
'h3',
|
|
9797
9653
|
null,
|
|
9798
9654
|
'404: Resource not found'
|
|
9799
9655
|
),
|
|
9800
|
-
|
|
9656
|
+
React.createElement(
|
|
9801
9657
|
'p',
|
|
9802
9658
|
null,
|
|
9803
9659
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9804
9660
|
),
|
|
9805
|
-
|
|
9661
|
+
React.createElement(
|
|
9806
9662
|
'p',
|
|
9807
9663
|
null,
|
|
9808
9664
|
'Click here to',
|
|
9809
|
-
|
|
9665
|
+
React.createElement(
|
|
9810
9666
|
Link,
|
|
9811
9667
|
{ href: '/' },
|
|
9812
|
-
|
|
9668
|
+
React.createElement(
|
|
9813
9669
|
'a',
|
|
9814
9670
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9815
9671
|
' return to homepage.'
|
|
@@ -9819,16 +9675,16 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9819
9675
|
);
|
|
9820
9676
|
}
|
|
9821
9677
|
|
|
9822
|
-
return
|
|
9678
|
+
return React.createElement(
|
|
9823
9679
|
'div',
|
|
9824
9680
|
{ className: 'mb-5' },
|
|
9825
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9681
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9826
9682
|
'div',
|
|
9827
9683
|
{ className: '' },
|
|
9828
|
-
|
|
9829
|
-
|
|
9684
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9685
|
+
React.createElement('hr', null)
|
|
9830
9686
|
),
|
|
9831
|
-
seriesData &&
|
|
9687
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9832
9688
|
deck: MediaSeriesCard,
|
|
9833
9689
|
variant: 'left',
|
|
9834
9690
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9848,12 +9704,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9848
9704
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9849
9705
|
var _ref4;
|
|
9850
9706
|
|
|
9851
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9707
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9852
9708
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9853
9709
|
while (1) {
|
|
9854
9710
|
switch (_context2.prev = _context2.next) {
|
|
9855
9711
|
case 0:
|
|
9856
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9712
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9857
9713
|
identifier = pathname.replace('/', '');
|
|
9858
9714
|
itemsPerPage = 10;
|
|
9859
9715
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|