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