@mjhls/mjh-framework 1.0.859-segment-targeting-v3 → 1.0.860-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +16 -19
- package/dist/cjs/AD300x250x600.js +16 -19
- package/dist/cjs/AD728x90.js +17 -20
- package/dist/cjs/ADFloatingFooter.js +18 -21
- package/dist/cjs/ADFooter.js +11 -14
- package/dist/cjs/ADGutter.js +18 -21
- package/dist/cjs/{ADInfeed-7cd00f5d.js → ADInfeed-7c09edba.js} +10 -12
- package/dist/cjs/ADSkyscraper.js +18 -21
- package/dist/cjs/ADSponsoredResources.js +18 -21
- package/dist/cjs/ADWebcast.js +18 -21
- package/dist/cjs/ADWelcome.js +22 -25
- package/dist/cjs/{ADlgInfeed-0c68c2d8.js → ADlgInfeed-2e7effc7.js} +7 -8
- package/dist/cjs/AccordionPanel.js +25 -29
- package/dist/cjs/AdSlot.js +20 -23
- package/dist/cjs/AdSlotsProvider.js +907 -18
- package/dist/cjs/AlgoliaSearch.js +849 -959
- package/dist/cjs/AlphabeticList.js +21 -24
- package/dist/cjs/ArticleCarousel.js +15 -18
- package/dist/cjs/ArticleProgramLandingPage.js +34 -37
- package/dist/cjs/ArticleSeriesLandingPage.js +30 -33
- package/dist/cjs/ArticleSeriesListing.js +46 -49
- package/dist/cjs/Auth.js +1203 -245
- package/dist/cjs/AuthWrapper.js +41 -124
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +5 -7
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +24 -28
- package/dist/cjs/CMEDeck.js +71 -73
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +25 -30
- package/dist/cjs/Column3.js +41 -46
- package/dist/cjs/ConferenceArticleCard.js +20 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +83 -89
- package/dist/cjs/DeckQueue.js +77 -82
- package/dist/cjs/{Dfp-391fd124.js → Dfp-14d2455c.js} +25 -28
- package/dist/cjs/EventsDeck.js +127 -136
- package/dist/cjs/ExternalResources.js +58 -61
- package/dist/cjs/Feature.js +26 -25
- package/dist/cjs/ForbesHero.js +37 -40
- package/dist/cjs/GridContent.js +214 -221
- package/dist/cjs/GridHero.js +38 -41
- package/dist/cjs/GroupDeck.js +52 -55
- package/dist/cjs/HamMagazine.js +121 -128
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +48 -51
- package/dist/cjs/HorizontalHero.js +26 -24
- package/dist/cjs/IssueContentDeck.js +68 -75
- package/dist/cjs/IssueDeck.js +66 -73
- package/dist/cjs/IssueLanding.js +40 -43
- package/dist/cjs/LeftNav.js +27 -31
- package/dist/cjs/MasterDeck.js +60 -63
- package/dist/cjs/MediaSeriesLanding.js +792 -741
- package/dist/cjs/NavDvm.js +68 -75
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +121 -128
- package/dist/cjs/NavNative.js +113 -123
- package/dist/cjs/OncliveHero.js +20 -17
- package/dist/cjs/OncliveLargeHero.js +66 -69
- package/dist/cjs/PageFilter.js +11 -14
- package/dist/cjs/PartnerDetailListing.js +1179 -84
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +16 -20
- package/dist/cjs/PubSection.js +27 -30
- package/dist/cjs/PubToc.js +12 -15
- package/dist/cjs/PublicationDeck.js +62 -64
- package/dist/cjs/PublicationLanding.js +118 -124
- package/dist/cjs/QueueDeckExpanded.js +293 -295
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +25 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +15 -21
- package/dist/cjs/Segment.js +25 -15
- package/dist/cjs/SeriesListingDeck.js +31 -33
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-94af9fcb.js} +34 -35
- package/dist/cjs/SideFooter.js +28 -31
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-650f6101.js} +35 -39
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +58 -61
- package/dist/cjs/TaxonomyDescription.js +33 -36
- package/dist/cjs/TemplateNormal.js +43 -46
- package/dist/cjs/ThumbnailCard.js +20 -19
- package/dist/cjs/Ustream.js +26 -29
- package/dist/cjs/VerticalHero.js +18 -16
- package/dist/cjs/VideoProgramLandingPage.js +51 -57
- package/dist/cjs/VideoSeriesCard.js +26 -27
- package/dist/cjs/VideoSeriesFilter.js +14 -16
- package/dist/cjs/VideoSeriesLandingPage.js +35 -38
- package/dist/cjs/VideoSeriesListing.js +63 -66
- package/dist/cjs/View.js +216 -228
- package/dist/cjs/YahooHero.js +33 -36
- package/dist/cjs/YoutubeGroup.js +54 -57
- package/dist/cjs/{_is-array-754e012d.js → _is-array-aa52fa1e.js} +9 -9
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-05795553.js} +6 -7
- package/dist/cjs/_object-sap-171b9ea5.js +16 -0
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-9bac8737.js} +4 -4
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-df19209d.js} +65 -67
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/{_to-object-329a650b.js → core.get-iterator-method-f3c44602.js} +239 -3
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-21887c62.js} +3 -3
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{extends-0a918631.js → extends-eed4f016.js} +8 -8
- package/dist/cjs/faundadb.js +5 -7
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +135 -73
- package/dist/cjs/getRootDocGroup.js +4 -6
- package/dist/cjs/getSerializers.js +23 -25
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +5 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-efd6512d.js → index-cdcc0b5e.js} +963 -968
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +72 -79
- package/dist/cjs/{inherits-0c7830c5.js → inherits-12d44cca.js} +13 -14
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{keys-a586b7a0.js → keys-d207942e.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-f6d4eaa8.js} +7 -9
- package/dist/cjs/{stringify-7c5aff47.js → stringify-bbc68047.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-c9b8a0d0.js} +8 -10
- package/dist/cjs/{typeof-9d7f610f.js → typeof-5f52cf64.js} +73 -74
- package/dist/cjs/urlFor.js +21 -4
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-e34bf324.js} +8 -9
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +14 -16
- package/dist/esm/AD300x250x600.js +14 -16
- package/dist/esm/AD728x90.js +15 -17
- package/dist/esm/ADFloatingFooter.js +16 -18
- package/dist/esm/ADFooter.js +9 -11
- package/dist/esm/ADGutter.js +16 -18
- package/dist/esm/{ADInfeed-77da0e2a.js → ADInfeed-bfd129d9.js} +8 -8
- package/dist/esm/ADSkyscraper.js +16 -18
- package/dist/esm/ADSponsoredResources.js +16 -18
- package/dist/esm/ADWebcast.js +16 -18
- package/dist/esm/ADWelcome.js +20 -22
- package/dist/esm/{ADlgInfeed-d3e3000f.js → ADlgInfeed-0489335b.js} +5 -5
- package/dist/esm/AccordionPanel.js +20 -22
- package/dist/esm/AdSlot.js +12 -14
- package/dist/esm/AdSlotsProvider.js +906 -16
- package/dist/esm/AlgoliaSearch.js +245 -354
- package/dist/esm/AlphabeticList.js +19 -21
- package/dist/esm/ArticleCarousel.js +13 -15
- package/dist/esm/ArticleProgramLandingPage.js +32 -34
- package/dist/esm/ArticleSeriesLandingPage.js +28 -30
- package/dist/esm/ArticleSeriesListing.js +43 -45
- package/dist/esm/Auth.js +1187 -225
- package/dist/esm/AuthWrapper.js +39 -121
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-e6f95c2f.js} +11 -11
- package/dist/esm/Beam.js +5 -7
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +14 -16
- package/dist/esm/CMEDeck.js +68 -70
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +23 -25
- package/dist/esm/Column3.js +39 -41
- package/dist/esm/ConferenceArticleCard.js +18 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -81
- package/dist/esm/DeckQueue.js +73 -74
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-f867d061.js} +13 -15
- package/dist/esm/EventsDeck.js +102 -104
- package/dist/esm/ExternalResources.js +53 -55
- package/dist/esm/Feature.js +20 -17
- package/dist/esm/ForbesHero.js +31 -33
- package/dist/esm/GridContent.js +183 -185
- package/dist/esm/GridHero.js +32 -34
- package/dist/esm/GroupDeck.js +40 -42
- package/dist/esm/HamMagazine.js +96 -98
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +46 -48
- package/dist/esm/HorizontalHero.js +24 -21
- package/dist/esm/IssueContentDeck.js +56 -58
- package/dist/esm/IssueDeck.js +60 -62
- package/dist/esm/IssueLanding.js +38 -40
- package/dist/esm/LeftNav.js +23 -25
- package/dist/esm/MasterDeck.js +57 -59
- package/dist/esm/MediaSeriesLanding.js +518 -464
- package/dist/esm/NavDvm.js +51 -53
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +98 -100
- package/dist/esm/NavNative.js +88 -90
- package/dist/esm/OncliveHero.js +18 -14
- package/dist/esm/OncliveLargeHero.js +55 -57
- package/dist/esm/PageFilter.js +9 -11
- package/dist/esm/PartnerDetailListing.js +1178 -83
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +11 -13
- package/dist/esm/PubSection.js +25 -27
- package/dist/esm/PubToc.js +10 -12
- package/dist/esm/PublicationDeck.js +54 -51
- package/dist/esm/PublicationLanding.js +77 -79
- package/dist/esm/QueueDeckExpanded.js +259 -261
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +20 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +10 -12
- package/dist/esm/Segment.js +25 -15
- package/dist/esm/SeriesListingDeck.js +26 -28
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-0371fc11.js} +25 -25
- package/dist/esm/SideFooter.js +25 -27
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-d7dec0c2.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -52
- package/dist/esm/TaxonomyDescription.js +28 -30
- package/dist/esm/TemplateNormal.js +40 -42
- package/dist/esm/ThumbnailCard.js +13 -10
- package/dist/esm/Ustream.js +24 -26
- package/dist/esm/VerticalHero.js +16 -13
- package/dist/esm/VideoProgramLandingPage.js +44 -46
- package/dist/esm/VideoSeriesCard.js +21 -21
- package/dist/esm/VideoSeriesFilter.js +11 -13
- package/dist/esm/VideoSeriesLandingPage.js +28 -30
- package/dist/esm/VideoSeriesListing.js +60 -62
- package/dist/esm/View.js +199 -207
- package/dist/esm/YahooHero.js +28 -30
- package/dist/esm/YoutubeGroup.js +39 -41
- package/dist/esm/{_is-array-58e95429.js → _is-array-4df618a6.js} +1 -1
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-130ee549.js} +1 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-c54dd835.js} +1 -1
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7bf8bc4d.js} +3 -5
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{_to-object-a4107da3.js → core.get-iterator-method-86d4db69.js} +230 -1
- package/dist/esm/{define-property-8af5f002.js → define-property-6d26cb48.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{extends-6f2fcc99.js → extends-5b1796d4.js} +1 -1
- package/dist/esm/faundadb.js +5 -7
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +130 -68
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +23 -25
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +5 -7
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index-23415831.js → index-fe008ffe.js} +914 -909
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +64 -68
- package/dist/esm/{inherits-75d45541.js → inherits-2409637d.js} +4 -5
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{keys-8eda7a5c.js → keys-69989821.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-67a08c9c.js} +2 -4
- package/dist/esm/{stringify-4330ccdc.js → stringify-70b72959.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-32282905.js} +2 -4
- package/dist/esm/{typeof-af9c50d8.js → typeof-c05a82ba.js} +4 -5
- package/dist/esm/urlFor.js +19 -2
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-f8f967cd.js} +1 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_object-sap-5e74ba08.js +0 -16
- package/dist/cjs/core.get-iterator-method-f62321d4.js +0 -39
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +0 -210
- package/dist/esm/core.get-iterator-method-e1de7503.js +0 -36
- package/dist/esm/es6.string.iterator-c990c18c.js +0 -201
|
@@ -1,71 +1,69 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
4
3
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './toConsumableArray-
|
|
7
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './toConsumableArray-32282905.js';
|
|
8
6
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends$
|
|
10
|
-
import './_object-sap-
|
|
11
|
-
import './inherits-
|
|
12
|
-
import './define-property-
|
|
13
|
-
import './web.dom.iterable-
|
|
14
|
-
import { _ as _typeof } from './typeof-
|
|
15
|
-
import './_is-array-
|
|
16
|
-
import
|
|
7
|
+
import { _ as _extends$2 } from './extends-5b1796d4.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
14
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
15
|
import './events-6c3a7a63.js';
|
|
18
|
-
import './index-
|
|
16
|
+
import './index-41a678ea.js';
|
|
19
17
|
import PropTypes from 'prop-types';
|
|
20
18
|
import 'react-bootstrap/Container';
|
|
21
19
|
import 'react-bootstrap/Row';
|
|
22
20
|
import 'react-bootstrap/Col';
|
|
23
21
|
import 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
25
23
|
import 'next/router';
|
|
26
24
|
import './isSymbol-1981418f.js';
|
|
27
25
|
import './debounce-9207d8ee.js';
|
|
28
26
|
import './toNumber-2f7a84cd.js';
|
|
29
|
-
import './index.es-
|
|
27
|
+
import './index.es-29c1cef5.js';
|
|
30
28
|
import ReactDOM from 'react-dom';
|
|
31
|
-
import './visibility-sensor-
|
|
32
|
-
import './
|
|
29
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
30
|
+
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
31
|
+
import './index-73819142.js';
|
|
33
32
|
import urlFor from './urlFor.js';
|
|
34
|
-
import { L as LazyLoad } from './index-
|
|
35
|
-
import './main-
|
|
33
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
34
|
+
import './main-e4a934b2.js';
|
|
36
35
|
import './entities-7cc3bf45.js';
|
|
37
|
-
import
|
|
38
|
-
import './
|
|
39
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
36
|
+
import './stringify-70b72959.js';
|
|
37
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
40
38
|
import './Segment.js';
|
|
41
39
|
import './Beam.js';
|
|
42
40
|
import './AdSlot.js';
|
|
43
|
-
import './ADInfeed-
|
|
44
|
-
import './lodash-
|
|
45
|
-
import './ADlgInfeed-
|
|
41
|
+
import './ADInfeed-bfd129d9.js';
|
|
42
|
+
import './lodash-17fdfebb.js';
|
|
43
|
+
import './ADlgInfeed-0489335b.js';
|
|
46
44
|
import 'react-bootstrap/Button';
|
|
47
|
-
import { B as BlockContent } from './BlockContent-
|
|
45
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
48
46
|
import './index-c7e2ac95.js';
|
|
49
47
|
import './smoothscroll-0cd4c7a6.js';
|
|
50
48
|
import './GroupDeck.js';
|
|
51
49
|
import 'react-bootstrap';
|
|
52
50
|
import './iconBase-602d52fe.js';
|
|
53
|
-
import './index.esm-
|
|
54
|
-
import { g as getSerializers } from './index-
|
|
51
|
+
import './index.esm-29e48d38.js';
|
|
52
|
+
import { g as getSerializers } from './index-fe008ffe.js';
|
|
55
53
|
import './util-7700fc59.js';
|
|
56
|
-
import './brightcove-react-player-loader.es-
|
|
54
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
57
55
|
import 'next/head';
|
|
58
56
|
import 'react-share';
|
|
59
57
|
import './SocialShare.js';
|
|
60
|
-
import './_object-to-array-
|
|
58
|
+
import './_object-to-array-c54dd835.js';
|
|
61
59
|
import 'react-bootstrap/Pagination';
|
|
62
60
|
import 'react-bootstrap/Figure';
|
|
63
61
|
import 'react-bootstrap/OverlayTrigger';
|
|
64
62
|
import 'react-bootstrap/Tooltip';
|
|
65
63
|
import 'react-bootstrap/Popover';
|
|
66
64
|
import MasterDeck from './MasterDeck.js';
|
|
67
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
68
|
-
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
65
|
+
import { _ as _defineProperty } from './defineProperty-d7d9b577.js';
|
|
66
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
69
67
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
68
|
import Link from 'next/link';
|
|
71
69
|
|
|
@@ -162,7 +160,7 @@ function useUncontrolled(props, config) {
|
|
|
162
160
|
var _ref = result,
|
|
163
161
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
164
162
|
propsValue = _ref[fieldName],
|
|
165
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
163
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
166
164
|
|
|
167
165
|
var handlerName = config[fieldName];
|
|
168
166
|
|
|
@@ -170,7 +168,7 @@ function useUncontrolled(props, config) {
|
|
|
170
168
|
value = _useUncontrolledProp[0],
|
|
171
169
|
handler = _useUncontrolledProp[1];
|
|
172
170
|
|
|
173
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
171
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
174
172
|
}, props);
|
|
175
173
|
}
|
|
176
174
|
|
|
@@ -180,7 +178,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
180
178
|
subClass.__proto__ = superClass;
|
|
181
179
|
}
|
|
182
180
|
|
|
183
|
-
var ThemeContext =
|
|
181
|
+
var ThemeContext = React__default.createContext({});
|
|
184
182
|
var Consumer = ThemeContext.Consumer,
|
|
185
183
|
Provider = ThemeContext.Provider;
|
|
186
184
|
|
|
@@ -189,7 +187,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
189
187
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
190
188
|
}
|
|
191
189
|
|
|
192
|
-
var SelectableContext =
|
|
190
|
+
var SelectableContext = React__default.createContext(null);
|
|
193
191
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
194
192
|
if (href === void 0) {
|
|
195
193
|
href = null;
|
|
@@ -199,7 +197,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
199
197
|
return href || null;
|
|
200
198
|
};
|
|
201
199
|
|
|
202
|
-
var context =
|
|
200
|
+
var context = React__default.createContext(null);
|
|
203
201
|
context.displayName = 'AccordionContext';
|
|
204
202
|
|
|
205
203
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -215,13 +213,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
215
213
|
if (onClick) onClick(e);
|
|
216
214
|
};
|
|
217
215
|
}
|
|
218
|
-
var AccordionToggle =
|
|
216
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
219
217
|
var _ref$as = _ref.as,
|
|
220
218
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
221
219
|
children = _ref.children,
|
|
222
220
|
eventKey = _ref.eventKey,
|
|
223
221
|
onClick = _ref.onClick,
|
|
224
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
222
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
225
223
|
|
|
226
224
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
227
225
|
|
|
@@ -229,7 +227,7 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
229
227
|
props.type = 'button';
|
|
230
228
|
}
|
|
231
229
|
|
|
232
|
-
return /*#__PURE__*/
|
|
230
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
233
231
|
ref: ref,
|
|
234
232
|
onClick: accordionOnClick
|
|
235
233
|
}, props), children);
|
|
@@ -426,7 +424,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
426
424
|
exitActive: PropTypes.string
|
|
427
425
|
})]) : null;
|
|
428
426
|
|
|
429
|
-
var TransitionGroupContext =
|
|
427
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
430
428
|
|
|
431
429
|
var UNMOUNTED = 'unmounted';
|
|
432
430
|
var EXITED = 'exited';
|
|
@@ -811,19 +809,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
811
809
|
_onExiting = _this$props.onExiting,
|
|
812
810
|
_onExited = _this$props.onExited,
|
|
813
811
|
_nodeRef = _this$props.nodeRef,
|
|
814
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
812
|
+
childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
815
813
|
|
|
816
814
|
return (
|
|
817
815
|
/*#__PURE__*/
|
|
818
816
|
// allows for nested Transitions
|
|
819
|
-
|
|
817
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
820
818
|
value: null
|
|
821
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
819
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
822
820
|
);
|
|
823
821
|
};
|
|
824
822
|
|
|
825
823
|
return Transition;
|
|
826
|
-
}(
|
|
824
|
+
}(React__default.Component);
|
|
827
825
|
|
|
828
826
|
Transition.contextType = TransitionGroupContext;
|
|
829
827
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1099,7 +1097,7 @@ var defaultProps = {
|
|
|
1099
1097
|
appear: false,
|
|
1100
1098
|
getDimensionValue: getDefaultDimensionValue
|
|
1101
1099
|
};
|
|
1102
|
-
var Collapse =
|
|
1100
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1103
1101
|
var onEnter = _ref.onEnter,
|
|
1104
1102
|
onEntering = _ref.onEntering,
|
|
1105
1103
|
onEntered = _ref.onEntered,
|
|
@@ -1111,7 +1109,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1111
1109
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1112
1110
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1113
1111
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1114
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1112
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1115
1113
|
|
|
1116
1114
|
/* Compute dimension */
|
|
1117
1115
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1146,8 +1144,8 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1146
1144
|
elem.style[computedDimension] = null;
|
|
1147
1145
|
}, onExiting);
|
|
1148
1146
|
}, [computedDimension, onExiting]);
|
|
1149
|
-
return /*#__PURE__*/
|
|
1150
|
-
, _extends({
|
|
1147
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1148
|
+
, _extends$1({
|
|
1151
1149
|
ref: ref,
|
|
1152
1150
|
addEndListener: transitionEnd
|
|
1153
1151
|
}, props, {
|
|
@@ -1158,7 +1156,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1158
1156
|
onExit: handleExit,
|
|
1159
1157
|
onExiting: handleExiting
|
|
1160
1158
|
}), function (state, innerProps) {
|
|
1161
|
-
return
|
|
1159
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1162
1160
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1163
1161
|
}));
|
|
1164
1162
|
});
|
|
@@ -1167,24 +1165,24 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1167
1165
|
// @ts-ignore
|
|
1168
1166
|
Collapse.defaultProps = defaultProps;
|
|
1169
1167
|
|
|
1170
|
-
var AccordionCollapse =
|
|
1168
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1171
1169
|
var children = _ref.children,
|
|
1172
1170
|
eventKey = _ref.eventKey,
|
|
1173
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1171
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1174
1172
|
|
|
1175
1173
|
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1176
1174
|
// from collapsing the accordion when clicked.
|
|
1177
1175
|
|
|
1178
|
-
return /*#__PURE__*/
|
|
1176
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1179
1177
|
value: null
|
|
1180
|
-
}, /*#__PURE__*/
|
|
1178
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1181
1179
|
ref: ref,
|
|
1182
1180
|
in: contextEventKey === eventKey
|
|
1183
|
-
}, props), /*#__PURE__*/
|
|
1181
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1184
1182
|
});
|
|
1185
1183
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1186
1184
|
|
|
1187
|
-
var Accordion =
|
|
1185
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1188
1186
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1189
1187
|
activeKey: 'onSelect'
|
|
1190
1188
|
}),
|
|
@@ -1195,14 +1193,14 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1195
1193
|
children = _useUncontrolled.children,
|
|
1196
1194
|
className = _useUncontrolled.className,
|
|
1197
1195
|
onSelect = _useUncontrolled.onSelect,
|
|
1198
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1196
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1199
1197
|
|
|
1200
1198
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1201
|
-
return /*#__PURE__*/
|
|
1199
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1202
1200
|
value: activeKey || null
|
|
1203
|
-
}, /*#__PURE__*/
|
|
1201
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1204
1202
|
value: onSelect || null
|
|
1205
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1206
1204
|
ref: ref
|
|
1207
1205
|
}, controlledProps, {
|
|
1208
1206
|
className: finalClassName
|
|
@@ -1246,22 +1244,22 @@ var defaultProps$1 = {
|
|
|
1246
1244
|
appear: false
|
|
1247
1245
|
};
|
|
1248
1246
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1249
|
-
var Fade =
|
|
1247
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1250
1248
|
var className = _ref.className,
|
|
1251
1249
|
children = _ref.children,
|
|
1252
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1250
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1253
1251
|
|
|
1254
1252
|
var handleEnter = useCallback(function (node) {
|
|
1255
1253
|
triggerBrowserReflow(node);
|
|
1256
1254
|
if (props.onEnter) props.onEnter(node);
|
|
1257
1255
|
}, [props]);
|
|
1258
|
-
return /*#__PURE__*/
|
|
1256
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1259
1257
|
ref: ref,
|
|
1260
1258
|
addEndListener: transitionEnd
|
|
1261
1259
|
}, props, {
|
|
1262
1260
|
onEnter: handleEnter
|
|
1263
1261
|
}), function (status, innerProps) {
|
|
1264
|
-
return
|
|
1262
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1265
1263
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1266
1264
|
}));
|
|
1267
1265
|
});
|
|
@@ -1276,20 +1274,20 @@ var propTypes = {
|
|
|
1276
1274
|
var defaultProps$2 = {
|
|
1277
1275
|
label: 'Close'
|
|
1278
1276
|
};
|
|
1279
|
-
var CloseButton =
|
|
1277
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1280
1278
|
var label = _ref.label,
|
|
1281
1279
|
onClick = _ref.onClick,
|
|
1282
1280
|
className = _ref.className,
|
|
1283
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1281
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1284
1282
|
|
|
1285
|
-
return /*#__PURE__*/
|
|
1283
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1286
1284
|
ref: ref,
|
|
1287
1285
|
type: "button",
|
|
1288
1286
|
className: classnames('close', className),
|
|
1289
1287
|
onClick: onClick
|
|
1290
|
-
}, props), /*#__PURE__*/
|
|
1288
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1291
1289
|
"aria-hidden": "true"
|
|
1292
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1290
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1293
1291
|
className: "sr-only"
|
|
1294
1292
|
}, label));
|
|
1295
1293
|
});
|
|
@@ -1298,8 +1296,8 @@ CloseButton.propTypes = propTypes;
|
|
|
1298
1296
|
CloseButton.defaultProps = defaultProps$2;
|
|
1299
1297
|
|
|
1300
1298
|
var divWithClassName = (function (className) {
|
|
1301
|
-
return
|
|
1302
|
-
return /*#__PURE__*/
|
|
1299
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1300
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1303
1301
|
ref: ref,
|
|
1304
1302
|
className: classnames(p.className, className)
|
|
1305
1303
|
}));
|
|
@@ -1325,15 +1323,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1325
1323
|
Component = _ref.Component,
|
|
1326
1324
|
defaultProps = _ref.defaultProps;
|
|
1327
1325
|
|
|
1328
|
-
var BsComponent =
|
|
1326
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1329
1327
|
var className = _ref2.className,
|
|
1330
1328
|
bsPrefix = _ref2.bsPrefix,
|
|
1331
1329
|
_ref2$as = _ref2.as,
|
|
1332
1330
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1333
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1331
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1334
1332
|
|
|
1335
1333
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1336
|
-
return /*#__PURE__*/
|
|
1334
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1337
1335
|
ref: ref,
|
|
1338
1336
|
className: classnames(className, resolvedPrefix)
|
|
1339
1337
|
}, props));
|
|
@@ -1355,12 +1353,12 @@ function isTrivialHref(href) {
|
|
|
1355
1353
|
*/
|
|
1356
1354
|
|
|
1357
1355
|
|
|
1358
|
-
var SafeAnchor =
|
|
1356
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1359
1357
|
var _ref$as = _ref.as,
|
|
1360
1358
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1361
1359
|
disabled = _ref.disabled,
|
|
1362
1360
|
onKeyDown = _ref.onKeyDown,
|
|
1363
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1361
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1364
1362
|
|
|
1365
1363
|
var handleClick = function handleClick(event) {
|
|
1366
1364
|
var href = props.href,
|
|
@@ -1399,7 +1397,7 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1399
1397
|
props['aria-disabled'] = true;
|
|
1400
1398
|
}
|
|
1401
1399
|
|
|
1402
|
-
return /*#__PURE__*/
|
|
1400
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1403
1401
|
ref: ref
|
|
1404
1402
|
}, props, {
|
|
1405
1403
|
onClick: handleClick,
|
|
@@ -1421,7 +1419,7 @@ var defaultProps$3 = {
|
|
|
1421
1419
|
transition: Fade,
|
|
1422
1420
|
closeLabel: 'Close alert'
|
|
1423
1421
|
};
|
|
1424
|
-
var Alert =
|
|
1422
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1425
1423
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1426
1424
|
show: 'onClose'
|
|
1427
1425
|
}),
|
|
@@ -1434,7 +1432,7 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1434
1432
|
onClose = _useUncontrolled.onClose,
|
|
1435
1433
|
dismissible = _useUncontrolled.dismissible,
|
|
1436
1434
|
transition = _useUncontrolled.transition,
|
|
1437
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1435
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1438
1436
|
|
|
1439
1437
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1440
1438
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1443,17 +1441,17 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1443
1441
|
}
|
|
1444
1442
|
});
|
|
1445
1443
|
var Transition = transition === true ? Fade : transition;
|
|
1446
|
-
var alert = /*#__PURE__*/
|
|
1444
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1447
1445
|
role: "alert"
|
|
1448
1446
|
}, Transition ? props : undefined, {
|
|
1449
1447
|
ref: ref,
|
|
1450
1448
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1451
|
-
}), dismissible && /*#__PURE__*/
|
|
1449
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1452
1450
|
onClick: handleClose,
|
|
1453
1451
|
label: closeLabel
|
|
1454
1452
|
}), children);
|
|
1455
1453
|
if (!Transition) return show ? alert : null;
|
|
1456
|
-
return /*#__PURE__*/
|
|
1454
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1457
1455
|
unmountOnExit: true
|
|
1458
1456
|
}, props, {
|
|
1459
1457
|
ref: undefined,
|
|
@@ -1468,17 +1466,17 @@ Alert.Heading = AlertHeading;
|
|
|
1468
1466
|
var defaultProps$4 = {
|
|
1469
1467
|
pill: false
|
|
1470
1468
|
};
|
|
1471
|
-
var Badge =
|
|
1469
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1472
1470
|
var bsPrefix = _ref.bsPrefix,
|
|
1473
1471
|
variant = _ref.variant,
|
|
1474
1472
|
pill = _ref.pill,
|
|
1475
1473
|
className = _ref.className,
|
|
1476
1474
|
_ref$as = _ref.as,
|
|
1477
1475
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1478
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1476
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1479
1477
|
|
|
1480
1478
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1481
|
-
return /*#__PURE__*/
|
|
1479
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1482
1480
|
ref: ref
|
|
1483
1481
|
}, props, {
|
|
1484
1482
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1491,7 +1489,7 @@ var defaultProps$5 = {
|
|
|
1491
1489
|
active: false,
|
|
1492
1490
|
linkProps: {}
|
|
1493
1491
|
};
|
|
1494
|
-
var BreadcrumbItem =
|
|
1492
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1495
1493
|
var bsPrefix = _ref.bsPrefix,
|
|
1496
1494
|
active = _ref.active,
|
|
1497
1495
|
children = _ref.children,
|
|
@@ -1504,17 +1502,17 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1504
1502
|
href = _ref.href,
|
|
1505
1503
|
title = _ref.title,
|
|
1506
1504
|
target = _ref.target,
|
|
1507
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1505
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1508
1506
|
|
|
1509
1507
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1510
|
-
return /*#__PURE__*/
|
|
1508
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1511
1509
|
ref: ref
|
|
1512
1510
|
}, props, {
|
|
1513
1511
|
className: classnames(prefix, className, {
|
|
1514
1512
|
active: active
|
|
1515
1513
|
}),
|
|
1516
1514
|
"aria-current": active ? 'page' : undefined
|
|
1517
|
-
}), active ? children : /*#__PURE__*/
|
|
1515
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1518
1516
|
href: href,
|
|
1519
1517
|
title: title,
|
|
1520
1518
|
target: target
|
|
@@ -1527,7 +1525,7 @@ var defaultProps$6 = {
|
|
|
1527
1525
|
label: 'breadcrumb',
|
|
1528
1526
|
listProps: {}
|
|
1529
1527
|
};
|
|
1530
|
-
var Breadcrumb =
|
|
1528
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1531
1529
|
var bsPrefix = _ref.bsPrefix,
|
|
1532
1530
|
className = _ref.className,
|
|
1533
1531
|
listProps = _ref.listProps,
|
|
@@ -1535,14 +1533,14 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1535
1533
|
label = _ref.label,
|
|
1536
1534
|
_ref$as = _ref.as,
|
|
1537
1535
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1538
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1536
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1539
1537
|
|
|
1540
1538
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1541
|
-
return /*#__PURE__*/
|
|
1539
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1542
1540
|
"aria-label": label,
|
|
1543
1541
|
className: className,
|
|
1544
1542
|
ref: ref
|
|
1545
|
-
}, props), /*#__PURE__*/
|
|
1543
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1546
1544
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1547
1545
|
}), children));
|
|
1548
1546
|
});
|
|
@@ -1555,7 +1553,7 @@ var defaultProps$7 = {
|
|
|
1555
1553
|
active: false,
|
|
1556
1554
|
disabled: false
|
|
1557
1555
|
};
|
|
1558
|
-
var Button =
|
|
1556
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1559
1557
|
var bsPrefix = _ref.bsPrefix,
|
|
1560
1558
|
variant = _ref.variant,
|
|
1561
1559
|
size = _ref.size,
|
|
@@ -1564,13 +1562,13 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1564
1562
|
block = _ref.block,
|
|
1565
1563
|
type = _ref.type,
|
|
1566
1564
|
as = _ref.as,
|
|
1567
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1565
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1568
1566
|
|
|
1569
1567
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1570
1568
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1571
1569
|
|
|
1572
1570
|
if (props.href) {
|
|
1573
|
-
return /*#__PURE__*/
|
|
1571
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1574
1572
|
as: as,
|
|
1575
1573
|
ref: ref,
|
|
1576
1574
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1588,7 +1586,7 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1588
1586
|
}
|
|
1589
1587
|
|
|
1590
1588
|
var Component = as || 'button';
|
|
1591
|
-
return /*#__PURE__*/
|
|
1589
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1592
1590
|
className: classes
|
|
1593
1591
|
}));
|
|
1594
1592
|
});
|
|
@@ -1600,7 +1598,7 @@ var defaultProps$8 = {
|
|
|
1600
1598
|
toggle: false,
|
|
1601
1599
|
role: 'group'
|
|
1602
1600
|
};
|
|
1603
|
-
var ButtonGroup =
|
|
1601
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1604
1602
|
var bsPrefix = _ref.bsPrefix,
|
|
1605
1603
|
size = _ref.size,
|
|
1606
1604
|
toggle = _ref.toggle,
|
|
@@ -1608,12 +1606,12 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1608
1606
|
className = _ref.className,
|
|
1609
1607
|
_ref$as = _ref.as,
|
|
1610
1608
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1611
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1609
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1612
1610
|
|
|
1613
1611
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1614
1612
|
var baseClass = prefix;
|
|
1615
1613
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1616
|
-
return /*#__PURE__*/
|
|
1614
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1617
1615
|
ref: ref,
|
|
1618
1616
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1619
1617
|
}));
|
|
@@ -1624,13 +1622,13 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1624
1622
|
var defaultProps$9 = {
|
|
1625
1623
|
role: 'toolbar'
|
|
1626
1624
|
};
|
|
1627
|
-
var ButtonToolbar =
|
|
1625
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1628
1626
|
var bsPrefix = _ref.bsPrefix,
|
|
1629
1627
|
className = _ref.className,
|
|
1630
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1628
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1631
1629
|
|
|
1632
1630
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1633
|
-
return /*#__PURE__*/
|
|
1631
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1634
1632
|
ref: ref,
|
|
1635
1633
|
className: classnames(className, prefix)
|
|
1636
1634
|
}));
|
|
@@ -1638,23 +1636,23 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
|
1638
1636
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1639
1637
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1640
1638
|
|
|
1641
|
-
var context$1 =
|
|
1639
|
+
var context$1 = React__default.createContext(null);
|
|
1642
1640
|
context$1.displayName = 'CardContext';
|
|
1643
1641
|
|
|
1644
1642
|
var defaultProps$a = {
|
|
1645
1643
|
variant: null
|
|
1646
1644
|
};
|
|
1647
|
-
var CardImg =
|
|
1645
|
+
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
1646
|
function (_ref, ref) {
|
|
1649
1647
|
var bsPrefix = _ref.bsPrefix,
|
|
1650
1648
|
className = _ref.className,
|
|
1651
1649
|
variant = _ref.variant,
|
|
1652
1650
|
_ref$as = _ref.as,
|
|
1653
1651
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1654
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1652
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1655
1653
|
|
|
1656
1654
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1657
|
-
return /*#__PURE__*/
|
|
1655
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1658
1656
|
ref: ref,
|
|
1659
1657
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1660
1658
|
}, props));
|
|
@@ -1683,7 +1681,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1683
1681
|
var defaultProps$b = {
|
|
1684
1682
|
body: false
|
|
1685
1683
|
};
|
|
1686
|
-
var Card =
|
|
1684
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1687
1685
|
var bsPrefix = _ref.bsPrefix,
|
|
1688
1686
|
className = _ref.className,
|
|
1689
1687
|
bg = _ref.bg,
|
|
@@ -1693,7 +1691,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1693
1691
|
children = _ref.children,
|
|
1694
1692
|
_ref$as = _ref.as,
|
|
1695
1693
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1696
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1694
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1697
1695
|
|
|
1698
1696
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1699
1697
|
var cardContext = useMemo(function () {
|
|
@@ -1701,16 +1699,16 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1701
1699
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1702
1700
|
};
|
|
1703
1701
|
}, [prefix]);
|
|
1704
|
-
return /*#__PURE__*/
|
|
1702
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1705
1703
|
value: cardContext
|
|
1706
|
-
}, /*#__PURE__*/
|
|
1704
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1707
1705
|
ref: ref
|
|
1708
1706
|
}, props, {
|
|
1709
1707
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1710
1708
|
}), body ?
|
|
1711
1709
|
/*#__PURE__*/
|
|
1712
1710
|
// @ts-ignore
|
|
1713
|
-
|
|
1711
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1714
1712
|
});
|
|
1715
1713
|
Card.displayName = 'Card';
|
|
1716
1714
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1846,6 +1844,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1846
1844
|
/**
|
|
1847
1845
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1848
1846
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1847
|
+
*
|
|
1848
|
+
*
|
|
1849
|
+
*
|
|
1850
|
+
* ```tsx
|
|
1851
|
+
* const { set, clear } = useTimeout();
|
|
1852
|
+
* const [hello, showHello] = useState(false);
|
|
1853
|
+
* //Display hello after 5 seconds
|
|
1854
|
+
* set(() => showHello(true), 5000);
|
|
1855
|
+
* return (
|
|
1856
|
+
* <div className="App">
|
|
1857
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1858
|
+
* </div>
|
|
1859
|
+
* );
|
|
1860
|
+
* ```
|
|
1849
1861
|
*/
|
|
1850
1862
|
|
|
1851
1863
|
|
|
@@ -1886,16 +1898,16 @@ function useTimeout() {
|
|
|
1886
1898
|
|
|
1887
1899
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1888
1900
|
|
|
1889
|
-
var CarouselItem =
|
|
1901
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1890
1902
|
var _ref$as = _ref.as,
|
|
1891
1903
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1892
1904
|
bsPrefix = _ref.bsPrefix,
|
|
1893
1905
|
children = _ref.children,
|
|
1894
1906
|
className = _ref.className,
|
|
1895
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1907
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1896
1908
|
|
|
1897
1909
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1898
|
-
return /*#__PURE__*/
|
|
1910
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1899
1911
|
ref: ref
|
|
1900
1912
|
}, props, {
|
|
1901
1913
|
className: finalClassName
|
|
@@ -1914,8 +1926,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1914
1926
|
|
|
1915
1927
|
function map(children, func) {
|
|
1916
1928
|
var index = 0;
|
|
1917
|
-
return
|
|
1918
|
-
return
|
|
1929
|
+
return React__default.Children.map(children, function (child) {
|
|
1930
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1919
1931
|
});
|
|
1920
1932
|
}
|
|
1921
1933
|
/**
|
|
@@ -1928,8 +1940,8 @@ function map(children, func) {
|
|
|
1928
1940
|
|
|
1929
1941
|
function forEach(children, func) {
|
|
1930
1942
|
var index = 0;
|
|
1931
|
-
|
|
1932
|
-
if (
|
|
1943
|
+
React__default.Children.forEach(children, function (child) {
|
|
1944
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1933
1945
|
});
|
|
1934
1946
|
}
|
|
1935
1947
|
|
|
@@ -2047,12 +2059,12 @@ var defaultProps$c = {
|
|
|
2047
2059
|
pause: 'hover',
|
|
2048
2060
|
wrap: true,
|
|
2049
2061
|
touch: true,
|
|
2050
|
-
prevIcon: /*#__PURE__*/
|
|
2062
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2051
2063
|
"aria-hidden": "true",
|
|
2052
2064
|
className: "carousel-control-prev-icon"
|
|
2053
2065
|
}),
|
|
2054
2066
|
prevLabel: 'Previous',
|
|
2055
|
-
nextIcon: /*#__PURE__*/
|
|
2067
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2056
2068
|
"aria-hidden": "true",
|
|
2057
2069
|
className: "carousel-control-next-icon"
|
|
2058
2070
|
}),
|
|
@@ -2100,7 +2112,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2100
2112
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2101
2113
|
className = _useUncontrolled.className,
|
|
2102
2114
|
children = _useUncontrolled.children,
|
|
2103
|
-
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
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2104
2116
|
|
|
2105
2117
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2106
2118
|
var nextDirectionRef = useRef(null);
|
|
@@ -2357,7 +2369,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2357
2369
|
};
|
|
2358
2370
|
});
|
|
2359
2371
|
}, [indicators, numChildren, onSelect]);
|
|
2360
|
-
return /*#__PURE__*/
|
|
2372
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2361
2373
|
ref: elementRef
|
|
2362
2374
|
}, props, {
|
|
2363
2375
|
onKeyDown: handleKeyDown,
|
|
@@ -2367,44 +2379,44 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2367
2379
|
onTouchMove: handleTouchMove,
|
|
2368
2380
|
onTouchEnd: handleTouchEnd,
|
|
2369
2381
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2370
|
-
}), indicators && /*#__PURE__*/
|
|
2382
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2371
2383
|
className: prefix + "-indicators"
|
|
2372
2384
|
}, map(children, function (_child, index) {
|
|
2373
|
-
return /*#__PURE__*/
|
|
2385
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2374
2386
|
key: index,
|
|
2375
2387
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2376
2388
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2377
2389
|
});
|
|
2378
|
-
})), /*#__PURE__*/
|
|
2390
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2379
2391
|
className: prefix + "-inner"
|
|
2380
2392
|
}, map(children, function (child, index) {
|
|
2381
2393
|
var isActive = index === renderedActiveIndex;
|
|
2382
|
-
return slide ? /*#__PURE__*/
|
|
2394
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2383
2395
|
in: isActive,
|
|
2384
2396
|
onEnter: isActive ? handleEnter : undefined,
|
|
2385
2397
|
onEntered: isActive ? handleEntered : undefined,
|
|
2386
2398
|
addEndListener: transitionEnd
|
|
2387
2399
|
}, function (status) {
|
|
2388
|
-
return
|
|
2400
|
+
return React__default.cloneElement(child, {
|
|
2389
2401
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2390
2402
|
});
|
|
2391
|
-
}) :
|
|
2403
|
+
}) : React__default.cloneElement(child, {
|
|
2392
2404
|
className: classnames(child.props.className, isActive && 'active')
|
|
2393
2405
|
});
|
|
2394
|
-
})), controls && /*#__PURE__*/
|
|
2406
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2395
2407
|
className: prefix + "-control-prev",
|
|
2396
2408
|
onClick: prev
|
|
2397
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2409
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2398
2410
|
className: "sr-only"
|
|
2399
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2411
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2400
2412
|
className: prefix + "-control-next",
|
|
2401
2413
|
onClick: next
|
|
2402
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2414
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2403
2415
|
className: "sr-only"
|
|
2404
2416
|
}, nextLabel))));
|
|
2405
2417
|
}
|
|
2406
2418
|
|
|
2407
|
-
var Carousel =
|
|
2419
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2408
2420
|
Carousel.displayName = 'Carousel';
|
|
2409
2421
|
Carousel.propTypes = propTypes$1;
|
|
2410
2422
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2412,13 +2424,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2412
2424
|
Carousel.Item = CarouselItem;
|
|
2413
2425
|
|
|
2414
2426
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2415
|
-
var Col =
|
|
2427
|
+
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
|
|
2416
2428
|
function (_ref, ref) {
|
|
2417
2429
|
var bsPrefix = _ref.bsPrefix,
|
|
2418
2430
|
className = _ref.className,
|
|
2419
2431
|
_ref$as = _ref.as,
|
|
2420
2432
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2421
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2433
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2422
2434
|
|
|
2423
2435
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2424
2436
|
var spans = [];
|
|
@@ -2449,7 +2461,7 @@ function (_ref, ref) {
|
|
|
2449
2461
|
spans.push(prefix); // plain 'col'
|
|
2450
2462
|
}
|
|
2451
2463
|
|
|
2452
|
-
return /*#__PURE__*/
|
|
2464
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2453
2465
|
ref: ref,
|
|
2454
2466
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2455
2467
|
}));
|
|
@@ -2558,7 +2570,40 @@ function useForceUpdate() {
|
|
|
2558
2570
|
return dispatch;
|
|
2559
2571
|
}
|
|
2560
2572
|
|
|
2561
|
-
var DropdownContext = /*#__PURE__*/
|
|
2573
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2574
|
+
|
|
2575
|
+
function _extends() {
|
|
2576
|
+
_extends = Object.assign || function (target) {
|
|
2577
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2578
|
+
var source = arguments[i];
|
|
2579
|
+
|
|
2580
|
+
for (var key in source) {
|
|
2581
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
+
target[key] = source[key];
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
return target;
|
|
2588
|
+
};
|
|
2589
|
+
|
|
2590
|
+
return _extends.apply(this, arguments);
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2594
|
+
if (source == null) return {};
|
|
2595
|
+
var target = {};
|
|
2596
|
+
var sourceKeys = Object.keys(source);
|
|
2597
|
+
var key, i;
|
|
2598
|
+
|
|
2599
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2600
|
+
key = sourceKeys[i];
|
|
2601
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2602
|
+
target[key] = source[key];
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
return target;
|
|
2606
|
+
}
|
|
2562
2607
|
|
|
2563
2608
|
function useSafeState(state) {
|
|
2564
2609
|
var isMounted = useMounted();
|
|
@@ -2663,7 +2708,7 @@ function contains(parent, child) {
|
|
|
2663
2708
|
do {
|
|
2664
2709
|
if (next && parent.isSameNode(next)) {
|
|
2665
2710
|
return true;
|
|
2666
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2711
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2667
2712
|
|
|
2668
2713
|
|
|
2669
2714
|
next = next.parentNode || next.host;
|
|
@@ -2687,8 +2732,9 @@ function isTableElement(element) {
|
|
|
2687
2732
|
}
|
|
2688
2733
|
|
|
2689
2734
|
function getDocumentElement(element) {
|
|
2690
|
-
// $FlowFixMe: assume body is always available
|
|
2691
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2735
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2736
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2737
|
+
element.document) || window.document).documentElement;
|
|
2692
2738
|
}
|
|
2693
2739
|
|
|
2694
2740
|
function getParentNode(element) {
|
|
@@ -2696,12 +2742,14 @@ function getParentNode(element) {
|
|
|
2696
2742
|
return element;
|
|
2697
2743
|
}
|
|
2698
2744
|
|
|
2699
|
-
return (//
|
|
2745
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2746
|
+
// $FlowFixMe[incompatible-return]
|
|
2747
|
+
// $FlowFixMe[prop-missing]
|
|
2700
2748
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2701
2749
|
element.parentNode || // DOM Element detected
|
|
2702
|
-
// $FlowFixMe: need a better way to handle this...
|
|
2750
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2703
2751
|
element.host || // ShadowRoot detected
|
|
2704
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2752
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2705
2753
|
getDocumentElement(element) // fallback
|
|
2706
2754
|
|
|
2707
2755
|
);
|
|
@@ -2888,7 +2936,7 @@ var unsetSides = {
|
|
|
2888
2936
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2889
2937
|
// cleanly divide the values into the appropriate subpixels.
|
|
2890
2938
|
|
|
2891
|
-
function
|
|
2939
|
+
function roundOffsetsByDPR(_ref) {
|
|
2892
2940
|
var x = _ref.x,
|
|
2893
2941
|
y = _ref.y;
|
|
2894
2942
|
var win = window;
|
|
@@ -2908,11 +2956,14 @@ function mapToStyles(_ref2) {
|
|
|
2908
2956
|
offsets = _ref2.offsets,
|
|
2909
2957
|
position = _ref2.position,
|
|
2910
2958
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2911
|
-
adaptive = _ref2.adaptive
|
|
2959
|
+
adaptive = _ref2.adaptive,
|
|
2960
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2912
2961
|
|
|
2913
|
-
var
|
|
2914
|
-
x =
|
|
2915
|
-
|
|
2962
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2963
|
+
_ref3$x = _ref3.x,
|
|
2964
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2965
|
+
_ref3$y = _ref3.y,
|
|
2966
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2916
2967
|
|
|
2917
2968
|
var hasX = offsets.hasOwnProperty('x');
|
|
2918
2969
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2925,7 +2976,7 @@ function mapToStyles(_ref2) {
|
|
|
2925
2976
|
|
|
2926
2977
|
if (offsetParent === getWindow(popper)) {
|
|
2927
2978
|
offsetParent = getDocumentElement(popper);
|
|
2928
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2979
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2929
2980
|
|
|
2930
2981
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2931
2982
|
|
|
@@ -2956,13 +3007,15 @@ function mapToStyles(_ref2) {
|
|
|
2956
3007
|
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2957
3008
|
}
|
|
2958
3009
|
|
|
2959
|
-
function computeStyles(
|
|
2960
|
-
var state =
|
|
2961
|
-
options =
|
|
3010
|
+
function computeStyles(_ref4) {
|
|
3011
|
+
var state = _ref4.state,
|
|
3012
|
+
options = _ref4.options;
|
|
2962
3013
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2963
3014
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2964
3015
|
_options$adaptive = options.adaptive,
|
|
2965
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3016
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3017
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3018
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2966
3019
|
|
|
2967
3020
|
if (process.env.NODE_ENV !== "production") {
|
|
2968
3021
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -2985,7 +3038,8 @@ function computeStyles(_ref3) {
|
|
|
2985
3038
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
2986
3039
|
offsets: state.modifiersData.popperOffsets,
|
|
2987
3040
|
position: state.options.strategy,
|
|
2988
|
-
adaptive: adaptive
|
|
3041
|
+
adaptive: adaptive,
|
|
3042
|
+
roundOffsets: roundOffsets
|
|
2989
3043
|
})));
|
|
2990
3044
|
}
|
|
2991
3045
|
|
|
@@ -2993,7 +3047,8 @@ function computeStyles(_ref3) {
|
|
|
2993
3047
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
2994
3048
|
offsets: state.modifiersData.arrow,
|
|
2995
3049
|
position: 'absolute',
|
|
2996
|
-
adaptive: false
|
|
3050
|
+
adaptive: false,
|
|
3051
|
+
roundOffsets: roundOffsets
|
|
2997
3052
|
})));
|
|
2998
3053
|
}
|
|
2999
3054
|
|
|
@@ -3189,7 +3244,7 @@ function isScrollParent(element) {
|
|
|
3189
3244
|
|
|
3190
3245
|
function getScrollParent(node) {
|
|
3191
3246
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3192
|
-
// $FlowFixMe: assume body is always available
|
|
3247
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3193
3248
|
return node.ownerDocument.body;
|
|
3194
3249
|
}
|
|
3195
3250
|
|
|
@@ -3203,7 +3258,7 @@ function getScrollParent(node) {
|
|
|
3203
3258
|
/*
|
|
3204
3259
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3205
3260
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3206
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3261
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3207
3262
|
reference element's position.
|
|
3208
3263
|
*/
|
|
3209
3264
|
|
|
@@ -3217,7 +3272,7 @@ function listScrollParents(element, list) {
|
|
|
3217
3272
|
var win = getWindow(scrollParent);
|
|
3218
3273
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3219
3274
|
var updatedList = list.concat(target);
|
|
3220
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3275
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3221
3276
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3222
3277
|
}
|
|
3223
3278
|
|
|
@@ -3257,7 +3312,7 @@ function getClippingParents(element) {
|
|
|
3257
3312
|
|
|
3258
3313
|
if (!isElement(clipperElement)) {
|
|
3259
3314
|
return [];
|
|
3260
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3315
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3261
3316
|
|
|
3262
3317
|
|
|
3263
3318
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3343,11 +3398,11 @@ function computeOffsets(_ref) {
|
|
|
3343
3398
|
|
|
3344
3399
|
switch (variation) {
|
|
3345
3400
|
case start:
|
|
3346
|
-
offsets[mainAxis] =
|
|
3401
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3347
3402
|
break;
|
|
3348
3403
|
|
|
3349
3404
|
case end:
|
|
3350
|
-
offsets[mainAxis] =
|
|
3405
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3351
3406
|
break;
|
|
3352
3407
|
}
|
|
3353
3408
|
}
|
|
@@ -3429,8 +3484,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3429
3484
|
var variation = getVariation(placement);
|
|
3430
3485
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3431
3486
|
return getVariation(placement) === variation;
|
|
3432
|
-
}) : basePlacements;
|
|
3433
|
-
|
|
3487
|
+
}) : basePlacements;
|
|
3434
3488
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3435
3489
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3436
3490
|
});
|
|
@@ -3441,7 +3495,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3441
3495
|
if (process.env.NODE_ENV !== "production") {
|
|
3442
3496
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3443
3497
|
}
|
|
3444
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3498
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3445
3499
|
|
|
3446
3500
|
|
|
3447
3501
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4913,7 +4967,7 @@ function DropdownMenu(_ref2) {
|
|
|
4913
4967
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4914
4968
|
|
|
4915
4969
|
var args = useDropdownMenu(options);
|
|
4916
|
-
return /*#__PURE__*/
|
|
4970
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4917
4971
|
}
|
|
4918
4972
|
|
|
4919
4973
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -4980,7 +5034,7 @@ function DropdownToggle(_ref2) {
|
|
|
4980
5034
|
show = _useDropdownToggle$.show,
|
|
4981
5035
|
toggle = _useDropdownToggle$.toggle;
|
|
4982
5036
|
|
|
4983
|
-
return /*#__PURE__*/
|
|
5037
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
4984
5038
|
show: show,
|
|
4985
5039
|
toggle: toggle,
|
|
4986
5040
|
props: props
|
|
@@ -5195,7 +5249,7 @@ function Dropdown(_ref) {
|
|
|
5195
5249
|
}
|
|
5196
5250
|
};
|
|
5197
5251
|
|
|
5198
|
-
return /*#__PURE__*/
|
|
5252
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5199
5253
|
value: context
|
|
5200
5254
|
}, children({
|
|
5201
5255
|
props: {
|
|
@@ -5209,14 +5263,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5209
5263
|
Dropdown.Menu = DropdownMenu;
|
|
5210
5264
|
Dropdown.Toggle = DropdownToggle;
|
|
5211
5265
|
|
|
5212
|
-
var NavContext =
|
|
5266
|
+
var NavContext = React__default.createContext(null);
|
|
5213
5267
|
NavContext.displayName = 'NavContext';
|
|
5214
5268
|
|
|
5215
5269
|
var defaultProps$e = {
|
|
5216
5270
|
as: SafeAnchor,
|
|
5217
5271
|
disabled: false
|
|
5218
5272
|
};
|
|
5219
|
-
var DropdownItem =
|
|
5273
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5220
5274
|
var bsPrefix = _ref.bsPrefix,
|
|
5221
5275
|
className = _ref.className,
|
|
5222
5276
|
children = _ref.children,
|
|
@@ -5227,7 +5281,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5227
5281
|
onSelect = _ref.onSelect,
|
|
5228
5282
|
propActive = _ref.active,
|
|
5229
5283
|
Component = _ref.as,
|
|
5230
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5284
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5231
5285
|
|
|
5232
5286
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5233
5287
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5251,7 +5305,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5251
5305
|
/*#__PURE__*/
|
|
5252
5306
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5253
5307
|
// @ts-ignore
|
|
5254
|
-
|
|
5308
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5255
5309
|
ref: ref,
|
|
5256
5310
|
href: href,
|
|
5257
5311
|
disabled: disabled,
|
|
@@ -5300,7 +5354,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5300
5354
|
}, [refA, refB]);
|
|
5301
5355
|
}
|
|
5302
5356
|
|
|
5303
|
-
var context$2 =
|
|
5357
|
+
var context$2 = React__default.createContext(null);
|
|
5304
5358
|
context$2.displayName = 'NavbarContext';
|
|
5305
5359
|
|
|
5306
5360
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5428,7 +5482,7 @@ var defaultProps$f = {
|
|
|
5428
5482
|
flip: true
|
|
5429
5483
|
}; // TODO: remove this hack
|
|
5430
5484
|
|
|
5431
|
-
var DropdownMenu$1 =
|
|
5485
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5432
5486
|
var bsPrefix = _ref.bsPrefix,
|
|
5433
5487
|
className = _ref.className,
|
|
5434
5488
|
align = _ref.align,
|
|
@@ -5440,7 +5494,7 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5440
5494
|
_ref$as = _ref.as,
|
|
5441
5495
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5442
5496
|
popperConfig = _ref.popperConfig,
|
|
5443
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5497
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5444
5498
|
|
|
5445
5499
|
var isNavbar = useContext(context$2);
|
|
5446
5500
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5476,7 +5530,7 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5476
5530
|
show: showProps,
|
|
5477
5531
|
alignEnd: alignRight,
|
|
5478
5532
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5479
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5533
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5480
5534
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5481
5535
|
})
|
|
5482
5536
|
}),
|
|
@@ -5499,11 +5553,11 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5499
5553
|
if (placement) {
|
|
5500
5554
|
// we don't need the default popper style,
|
|
5501
5555
|
// menus are display: none when not shown.
|
|
5502
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5556
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5503
5557
|
props['x-placement'] = placement;
|
|
5504
5558
|
}
|
|
5505
5559
|
|
|
5506
|
-
return /*#__PURE__*/
|
|
5560
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5507
5561
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5508
5562
|
}));
|
|
5509
5563
|
});
|
|
@@ -5537,14 +5591,14 @@ module.exports = exports['default'];
|
|
|
5537
5591
|
|
|
5538
5592
|
unwrapExports(isRequiredForA11y_1);
|
|
5539
5593
|
|
|
5540
|
-
var DropdownToggle$1 =
|
|
5594
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5541
5595
|
var bsPrefix = _ref.bsPrefix,
|
|
5542
5596
|
split = _ref.split,
|
|
5543
5597
|
className = _ref.className,
|
|
5544
5598
|
childBsPrefix = _ref.childBsPrefix,
|
|
5545
5599
|
_ref$as = _ref.as,
|
|
5546
5600
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5547
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5601
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5548
5602
|
|
|
5549
5603
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5550
5604
|
|
|
@@ -5559,7 +5613,7 @@ var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5559
5613
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5560
5614
|
// underlying component, to allow it to render size and style variants.
|
|
5561
5615
|
|
|
5562
|
-
return /*#__PURE__*/
|
|
5616
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5563
5617
|
onClick: toggle,
|
|
5564
5618
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5565
5619
|
}, toggleProps, props));
|
|
@@ -5582,7 +5636,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5582
5636
|
var defaultProps$g = {
|
|
5583
5637
|
navbar: false
|
|
5584
5638
|
};
|
|
5585
|
-
var Dropdown$1 =
|
|
5639
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5586
5640
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5587
5641
|
show: 'onToggle'
|
|
5588
5642
|
}),
|
|
@@ -5597,7 +5651,7 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5597
5651
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5598
5652
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5599
5653
|
_4 = _useUncontrolled.navbar,
|
|
5600
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5654
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5601
5655
|
|
|
5602
5656
|
var onSelectCtx = useContext(SelectableContext);
|
|
5603
5657
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5619,9 +5673,9 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5619
5673
|
if (onSelect) onSelect(key, event);
|
|
5620
5674
|
handleToggle(false, event, 'select');
|
|
5621
5675
|
});
|
|
5622
|
-
return /*#__PURE__*/
|
|
5676
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5623
5677
|
value: handleSelect
|
|
5624
|
-
}, /*#__PURE__*/
|
|
5678
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5625
5679
|
drop: drop,
|
|
5626
5680
|
show: show,
|
|
5627
5681
|
alignEnd: alignRight,
|
|
@@ -5630,7 +5684,7 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5630
5684
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5631
5685
|
}, function (_ref) {
|
|
5632
5686
|
var dropdownProps = _ref.props;
|
|
5633
|
-
return /*#__PURE__*/
|
|
5687
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5634
5688
|
ref: ref,
|
|
5635
5689
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5636
5690
|
}));
|
|
@@ -5705,7 +5759,7 @@ var propTypes$5 = {
|
|
|
5705
5759
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5706
5760
|
*/
|
|
5707
5761
|
|
|
5708
|
-
var DropdownButton =
|
|
5762
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5709
5763
|
var title = _ref.title,
|
|
5710
5764
|
children = _ref.children,
|
|
5711
5765
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5718,18 +5772,18 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
5718
5772
|
disabled = _ref.disabled,
|
|
5719
5773
|
href = _ref.href,
|
|
5720
5774
|
id = _ref.id,
|
|
5721
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5775
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5722
5776
|
|
|
5723
|
-
return /*#__PURE__*/
|
|
5777
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
5724
5778
|
ref: ref
|
|
5725
|
-
}, props), /*#__PURE__*/
|
|
5779
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5726
5780
|
id: id,
|
|
5727
5781
|
href: href,
|
|
5728
5782
|
size: size,
|
|
5729
5783
|
variant: variant,
|
|
5730
5784
|
disabled: disabled,
|
|
5731
5785
|
childBsPrefix: bsPrefix
|
|
5732
|
-
}, title), /*#__PURE__*/
|
|
5786
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5733
5787
|
align: menuAlign,
|
|
5734
5788
|
role: menuRole,
|
|
5735
5789
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5844,7 +5898,7 @@ var propTypes$6 = {
|
|
|
5844
5898
|
tooltip: PropTypes.bool,
|
|
5845
5899
|
as: PropTypes.elementType
|
|
5846
5900
|
};
|
|
5847
|
-
var Feedback =
|
|
5901
|
+
var Feedback = 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
|
|
5848
5902
|
function (_ref, ref) {
|
|
5849
5903
|
var _ref$as = _ref.as,
|
|
5850
5904
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5853,9 +5907,9 @@ function (_ref, ref) {
|
|
|
5853
5907
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5854
5908
|
_ref$tooltip = _ref.tooltip,
|
|
5855
5909
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5856
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5910
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
5857
5911
|
|
|
5858
|
-
return /*#__PURE__*/
|
|
5912
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5859
5913
|
ref: ref,
|
|
5860
5914
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5861
5915
|
}));
|
|
@@ -5863,11 +5917,11 @@ function (_ref, ref) {
|
|
|
5863
5917
|
Feedback.displayName = 'Feedback';
|
|
5864
5918
|
Feedback.propTypes = propTypes$6;
|
|
5865
5919
|
|
|
5866
|
-
var FormContext =
|
|
5920
|
+
var FormContext = React__default.createContext({
|
|
5867
5921
|
controlId: undefined
|
|
5868
5922
|
});
|
|
5869
5923
|
|
|
5870
|
-
var FormCheckInput =
|
|
5924
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5871
5925
|
var id = _ref.id,
|
|
5872
5926
|
bsPrefix = _ref.bsPrefix,
|
|
5873
5927
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5881,7 +5935,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5881
5935
|
isStatic = _ref.isStatic,
|
|
5882
5936
|
_ref$as = _ref.as,
|
|
5883
5937
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5884
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5938
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5885
5939
|
|
|
5886
5940
|
var _useContext = useContext(FormContext),
|
|
5887
5941
|
controlId = _useContext.controlId,
|
|
@@ -5892,7 +5946,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5892
5946
|
defaultPrefix = _ref2[1];
|
|
5893
5947
|
|
|
5894
5948
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5895
|
-
return /*#__PURE__*/
|
|
5949
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5896
5950
|
ref: ref,
|
|
5897
5951
|
type: type,
|
|
5898
5952
|
id: id || controlId,
|
|
@@ -5901,12 +5955,12 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5901
5955
|
});
|
|
5902
5956
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5903
5957
|
|
|
5904
|
-
var FormCheckLabel =
|
|
5958
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5905
5959
|
var bsPrefix = _ref.bsPrefix,
|
|
5906
5960
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5907
5961
|
className = _ref.className,
|
|
5908
5962
|
htmlFor = _ref.htmlFor,
|
|
5909
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5963
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5910
5964
|
|
|
5911
5965
|
var _useContext = useContext(FormContext),
|
|
5912
5966
|
controlId = _useContext.controlId,
|
|
@@ -5917,7 +5971,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5917
5971
|
defaultPrefix = _ref2[1];
|
|
5918
5972
|
|
|
5919
5973
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5920
|
-
return /*#__PURE__*/
|
|
5974
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
5921
5975
|
ref: ref,
|
|
5922
5976
|
htmlFor: htmlFor || controlId,
|
|
5923
5977
|
className: classnames(className, bsPrefix)
|
|
@@ -5925,7 +5979,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5925
5979
|
});
|
|
5926
5980
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5927
5981
|
|
|
5928
|
-
var FormCheck =
|
|
5982
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5929
5983
|
var id = _ref.id,
|
|
5930
5984
|
bsPrefix = _ref.bsPrefix,
|
|
5931
5985
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5951,7 +6005,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5951
6005
|
propCustom = _ref.custom,
|
|
5952
6006
|
_ref$as = _ref.as,
|
|
5953
6007
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5954
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6008
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5955
6009
|
|
|
5956
6010
|
var custom = type === 'switch' ? true : propCustom;
|
|
5957
6011
|
|
|
@@ -5971,7 +6025,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5971
6025
|
};
|
|
5972
6026
|
}, [controlId, custom, id]);
|
|
5973
6027
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
5974
|
-
var input = /*#__PURE__*/
|
|
6028
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
5975
6029
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5976
6030
|
ref: ref,
|
|
5977
6031
|
isValid: isValid,
|
|
@@ -5980,14 +6034,14 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5980
6034
|
disabled: disabled,
|
|
5981
6035
|
as: as
|
|
5982
6036
|
}));
|
|
5983
|
-
return /*#__PURE__*/
|
|
6037
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5984
6038
|
value: innerFormContext
|
|
5985
|
-
}, /*#__PURE__*/
|
|
6039
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5986
6040
|
style: style,
|
|
5987
6041
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5988
|
-
}, children || /*#__PURE__*/
|
|
6042
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5989
6043
|
title: title
|
|
5990
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6044
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
5991
6045
|
type: isValid ? 'valid' : 'invalid',
|
|
5992
6046
|
tooltip: feedbackTooltip
|
|
5993
6047
|
}, feedback))));
|
|
@@ -5996,7 +6050,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
5996
6050
|
FormCheck.Input = FormCheckInput;
|
|
5997
6051
|
FormCheck.Label = FormCheckLabel;
|
|
5998
6052
|
|
|
5999
|
-
var FormFileInput =
|
|
6053
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
6000
6054
|
var id = _ref.id,
|
|
6001
6055
|
bsPrefix = _ref.bsPrefix,
|
|
6002
6056
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6006,7 +6060,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6006
6060
|
lang = _ref.lang,
|
|
6007
6061
|
_ref$as = _ref.as,
|
|
6008
6062
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6009
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6063
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6010
6064
|
|
|
6011
6065
|
var _useContext = useContext(FormContext),
|
|
6012
6066
|
controlId = _useContext.controlId,
|
|
@@ -6019,7 +6073,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6019
6073
|
defaultPrefix = _ref2[1];
|
|
6020
6074
|
|
|
6021
6075
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6022
|
-
return /*#__PURE__*/
|
|
6076
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6023
6077
|
ref: ref,
|
|
6024
6078
|
id: id || controlId,
|
|
6025
6079
|
type: type,
|
|
@@ -6029,12 +6083,12 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6029
6083
|
});
|
|
6030
6084
|
FormFileInput.displayName = 'FormFileInput';
|
|
6031
6085
|
|
|
6032
|
-
var FormFileLabel =
|
|
6086
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6033
6087
|
var bsPrefix = _ref.bsPrefix,
|
|
6034
6088
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6035
6089
|
className = _ref.className,
|
|
6036
6090
|
htmlFor = _ref.htmlFor,
|
|
6037
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6091
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6038
6092
|
|
|
6039
6093
|
var _useContext = useContext(FormContext),
|
|
6040
6094
|
controlId = _useContext.controlId,
|
|
@@ -6045,7 +6099,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6045
6099
|
defaultPrefix = _ref2[1];
|
|
6046
6100
|
|
|
6047
6101
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6048
|
-
return /*#__PURE__*/
|
|
6102
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6049
6103
|
ref: ref,
|
|
6050
6104
|
htmlFor: htmlFor || controlId,
|
|
6051
6105
|
className: classnames(className, bsPrefix),
|
|
@@ -6054,7 +6108,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6054
6108
|
});
|
|
6055
6109
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6056
6110
|
|
|
6057
|
-
var FormFile =
|
|
6111
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6058
6112
|
var id = _ref.id,
|
|
6059
6113
|
bsPrefix = _ref.bsPrefix,
|
|
6060
6114
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6078,7 +6132,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6078
6132
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6079
6133
|
_ref$inputAs = _ref.inputAs,
|
|
6080
6134
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6081
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6135
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6082
6136
|
|
|
6083
6137
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6084
6138
|
prefix = _ref2[0],
|
|
@@ -6097,7 +6151,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6097
6151
|
};
|
|
6098
6152
|
}, [controlId, custom, id]);
|
|
6099
6153
|
var hasLabel = label != null && label !== false && !children;
|
|
6100
|
-
var input = /*#__PURE__*/
|
|
6154
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6101
6155
|
ref: ref,
|
|
6102
6156
|
isValid: isValid,
|
|
6103
6157
|
isInvalid: isInvalid,
|
|
@@ -6105,14 +6159,14 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6105
6159
|
as: inputAs,
|
|
6106
6160
|
lang: lang
|
|
6107
6161
|
}));
|
|
6108
|
-
return /*#__PURE__*/
|
|
6162
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6109
6163
|
value: innerFormContext
|
|
6110
|
-
}, /*#__PURE__*/
|
|
6164
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6111
6165
|
style: style,
|
|
6112
6166
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6113
|
-
}, children || /*#__PURE__*/
|
|
6167
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, custom ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, {
|
|
6114
6168
|
"data-browse": dataBrowse
|
|
6115
|
-
}, label)) : /*#__PURE__*/
|
|
6169
|
+
}, label)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6116
6170
|
type: isValid ? 'valid' : 'invalid',
|
|
6117
6171
|
tooltip: feedbackTooltip
|
|
6118
6172
|
}, feedback))));
|
|
@@ -6121,7 +6175,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6121
6175
|
FormFile.Input = FormFileInput;
|
|
6122
6176
|
FormFile.Label = FormFileLabel;
|
|
6123
6177
|
|
|
6124
|
-
var FormControl =
|
|
6178
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6125
6179
|
var bsPrefix = _ref.bsPrefix,
|
|
6126
6180
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6127
6181
|
type = _ref.type,
|
|
@@ -6138,7 +6192,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6138
6192
|
custom = _ref.custom,
|
|
6139
6193
|
_ref$as = _ref.as,
|
|
6140
6194
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6141
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6195
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6142
6196
|
|
|
6143
6197
|
var _useContext = useContext(FormContext),
|
|
6144
6198
|
controlId = _useContext.controlId;
|
|
@@ -6173,7 +6227,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6173
6227
|
}
|
|
6174
6228
|
|
|
6175
6229
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6176
|
-
return /*#__PURE__*/
|
|
6230
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6177
6231
|
type: type,
|
|
6178
6232
|
size: htmlSize,
|
|
6179
6233
|
ref: ref,
|
|
@@ -6187,14 +6241,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6187
6241
|
Feedback: Feedback
|
|
6188
6242
|
});
|
|
6189
6243
|
|
|
6190
|
-
var FormGroup =
|
|
6244
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6191
6245
|
var bsPrefix = _ref.bsPrefix,
|
|
6192
6246
|
className = _ref.className,
|
|
6193
6247
|
children = _ref.children,
|
|
6194
6248
|
controlId = _ref.controlId,
|
|
6195
6249
|
_ref$as = _ref.as,
|
|
6196
6250
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6197
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6251
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6198
6252
|
|
|
6199
6253
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6200
6254
|
var context = useMemo(function () {
|
|
@@ -6202,9 +6256,9 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6202
6256
|
controlId: controlId
|
|
6203
6257
|
};
|
|
6204
6258
|
}, [controlId]);
|
|
6205
|
-
return /*#__PURE__*/
|
|
6259
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6206
6260
|
value: context
|
|
6207
|
-
}, /*#__PURE__*/
|
|
6261
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6208
6262
|
ref: ref,
|
|
6209
6263
|
className: classnames(className, bsPrefix)
|
|
6210
6264
|
}), children));
|
|
@@ -6215,7 +6269,7 @@ var defaultProps$h = {
|
|
|
6215
6269
|
column: false,
|
|
6216
6270
|
srOnly: false
|
|
6217
6271
|
};
|
|
6218
|
-
var FormLabel =
|
|
6272
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6219
6273
|
var _ref$as = _ref.as,
|
|
6220
6274
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6221
6275
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6223,7 +6277,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6223
6277
|
srOnly = _ref.srOnly,
|
|
6224
6278
|
className = _ref.className,
|
|
6225
6279
|
htmlFor = _ref.htmlFor,
|
|
6226
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6280
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6227
6281
|
|
|
6228
6282
|
var _useContext = useContext(FormContext),
|
|
6229
6283
|
controlId = _useContext.controlId;
|
|
@@ -6234,7 +6288,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6234
6288
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6235
6289
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6236
6290
|
htmlFor = htmlFor || controlId;
|
|
6237
|
-
if (column) return /*#__PURE__*/
|
|
6291
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6238
6292
|
as: "label",
|
|
6239
6293
|
className: classes,
|
|
6240
6294
|
htmlFor: htmlFor
|
|
@@ -6242,7 +6296,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6242
6296
|
return (
|
|
6243
6297
|
/*#__PURE__*/
|
|
6244
6298
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6245
|
-
|
|
6299
|
+
React__default.createElement(Component, _extends$1({
|
|
6246
6300
|
ref: ref,
|
|
6247
6301
|
className: classes,
|
|
6248
6302
|
htmlFor: htmlFor
|
|
@@ -6252,25 +6306,25 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6252
6306
|
FormLabel.displayName = 'FormLabel';
|
|
6253
6307
|
FormLabel.defaultProps = defaultProps$h;
|
|
6254
6308
|
|
|
6255
|
-
var FormText =
|
|
6309
|
+
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
|
|
6256
6310
|
function (_ref, ref) {
|
|
6257
6311
|
var bsPrefix = _ref.bsPrefix,
|
|
6258
6312
|
className = _ref.className,
|
|
6259
6313
|
_ref$as = _ref.as,
|
|
6260
6314
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6261
6315
|
muted = _ref.muted,
|
|
6262
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6316
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6263
6317
|
|
|
6264
6318
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6265
|
-
return /*#__PURE__*/
|
|
6319
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6266
6320
|
ref: ref,
|
|
6267
6321
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6268
6322
|
}));
|
|
6269
6323
|
});
|
|
6270
6324
|
FormText.displayName = 'FormText';
|
|
6271
6325
|
|
|
6272
|
-
var Switch =
|
|
6273
|
-
return /*#__PURE__*/
|
|
6326
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6327
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6274
6328
|
ref: ref,
|
|
6275
6329
|
type: "switch"
|
|
6276
6330
|
}));
|
|
@@ -6283,17 +6337,17 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6283
6337
|
var defaultProps$i = {
|
|
6284
6338
|
inline: false
|
|
6285
6339
|
};
|
|
6286
|
-
var FormImpl =
|
|
6340
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6287
6341
|
var bsPrefix = _ref.bsPrefix,
|
|
6288
6342
|
inline = _ref.inline,
|
|
6289
6343
|
className = _ref.className,
|
|
6290
6344
|
validated = _ref.validated,
|
|
6291
6345
|
_ref$as = _ref.as,
|
|
6292
6346
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6293
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6347
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6294
6348
|
|
|
6295
6349
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6296
|
-
return /*#__PURE__*/
|
|
6350
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6297
6351
|
ref: ref,
|
|
6298
6352
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6299
6353
|
}));
|
|
@@ -6312,17 +6366,17 @@ FormImpl.Text = FormText;
|
|
|
6312
6366
|
var defaultProps$j = {
|
|
6313
6367
|
fluid: false
|
|
6314
6368
|
};
|
|
6315
|
-
var Container =
|
|
6369
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6316
6370
|
var bsPrefix = _ref.bsPrefix,
|
|
6317
6371
|
fluid = _ref.fluid,
|
|
6318
6372
|
_ref$as = _ref.as,
|
|
6319
6373
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6320
6374
|
className = _ref.className,
|
|
6321
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6375
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6322
6376
|
|
|
6323
6377
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6324
6378
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6325
|
-
return /*#__PURE__*/
|
|
6379
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6326
6380
|
ref: ref
|
|
6327
6381
|
}, props, {
|
|
6328
6382
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6363,18 +6417,18 @@ var defaultProps$k = {
|
|
|
6363
6417
|
roundedCircle: false,
|
|
6364
6418
|
thumbnail: false
|
|
6365
6419
|
};
|
|
6366
|
-
var Image =
|
|
6420
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6367
6421
|
var bsPrefix = _ref.bsPrefix,
|
|
6368
6422
|
className = _ref.className,
|
|
6369
6423
|
fluid = _ref.fluid,
|
|
6370
6424
|
rounded = _ref.rounded,
|
|
6371
6425
|
roundedCircle = _ref.roundedCircle,
|
|
6372
6426
|
thumbnail = _ref.thumbnail,
|
|
6373
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6427
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6374
6428
|
|
|
6375
6429
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6376
6430
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6377
|
-
return /*#__PURE__*/
|
|
6431
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6378
6432
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6379
6433
|
ref: ref
|
|
6380
6434
|
}, props, {
|
|
@@ -6387,11 +6441,11 @@ Image.defaultProps = defaultProps$k;
|
|
|
6387
6441
|
var defaultProps$l = {
|
|
6388
6442
|
fluid: true
|
|
6389
6443
|
};
|
|
6390
|
-
var FigureImage =
|
|
6444
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6391
6445
|
var className = _ref.className,
|
|
6392
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6446
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6393
6447
|
|
|
6394
|
-
return /*#__PURE__*/
|
|
6448
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6395
6449
|
ref: ref
|
|
6396
6450
|
}, props, {
|
|
6397
6451
|
className: classnames(className, 'figure-img')
|
|
@@ -6418,13 +6472,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6418
6472
|
});
|
|
6419
6473
|
|
|
6420
6474
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6421
|
-
return /*#__PURE__*/
|
|
6475
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6422
6476
|
type: "checkbox"
|
|
6423
6477
|
}, props)));
|
|
6424
6478
|
};
|
|
6425
6479
|
|
|
6426
6480
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6427
|
-
return /*#__PURE__*/
|
|
6481
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6428
6482
|
type: "radio"
|
|
6429
6483
|
}, props)));
|
|
6430
6484
|
};
|
|
@@ -6437,16 +6491,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6437
6491
|
* @property {InputGroupRadio} Radio
|
|
6438
6492
|
* @property {InputGroupCheckbox} Checkbox
|
|
6439
6493
|
*/
|
|
6440
|
-
var InputGroup =
|
|
6494
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6441
6495
|
var bsPrefix = _ref.bsPrefix,
|
|
6442
6496
|
size = _ref.size,
|
|
6443
6497
|
className = _ref.className,
|
|
6444
6498
|
_ref$as = _ref.as,
|
|
6445
6499
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6446
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6500
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6447
6501
|
|
|
6448
6502
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6449
|
-
return /*#__PURE__*/
|
|
6503
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6450
6504
|
ref: ref
|
|
6451
6505
|
}, props, {
|
|
6452
6506
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6454,7 +6508,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6454
6508
|
});
|
|
6455
6509
|
InputGroup.displayName = 'InputGroup';
|
|
6456
6510
|
|
|
6457
|
-
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6511
|
+
var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
6458
6512
|
Text: InputGroupText,
|
|
6459
6513
|
Radio: InputGroupRadio,
|
|
6460
6514
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6465,7 +6519,7 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6465
6519
|
var defaultProps$m = {
|
|
6466
6520
|
fluid: false
|
|
6467
6521
|
};
|
|
6468
|
-
var Jumbotron =
|
|
6522
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6469
6523
|
var _classes;
|
|
6470
6524
|
|
|
6471
6525
|
var _ref$as = _ref.as,
|
|
@@ -6473,11 +6527,11 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6473
6527
|
className = _ref.className,
|
|
6474
6528
|
fluid = _ref.fluid,
|
|
6475
6529
|
bsPrefix = _ref.bsPrefix,
|
|
6476
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6530
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6477
6531
|
|
|
6478
6532
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6479
6533
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6480
|
-
return /*#__PURE__*/
|
|
6534
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6481
6535
|
ref: ref
|
|
6482
6536
|
}, props, {
|
|
6483
6537
|
className: classnames(className, classes)
|
|
@@ -6486,19 +6540,19 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6486
6540
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6487
6541
|
Jumbotron.displayName = 'Jumbotron';
|
|
6488
6542
|
|
|
6489
|
-
var TabContext =
|
|
6543
|
+
var TabContext = React__default.createContext(null);
|
|
6490
6544
|
|
|
6491
6545
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6492
6546
|
var noop$4 = function noop() {};
|
|
6493
6547
|
|
|
6494
|
-
var AbstractNav =
|
|
6548
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6495
6549
|
var _ref$as = _ref.as,
|
|
6496
6550
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6497
6551
|
onSelect = _ref.onSelect,
|
|
6498
6552
|
activeKey = _ref.activeKey,
|
|
6499
6553
|
role = _ref.role,
|
|
6500
6554
|
onKeyDown = _ref.onKeyDown,
|
|
6501
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6555
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6502
6556
|
|
|
6503
6557
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6504
6558
|
// and don't want to reset the set in the effect
|
|
@@ -6572,9 +6626,9 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6572
6626
|
needsRefocusRef.current = false;
|
|
6573
6627
|
});
|
|
6574
6628
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6575
|
-
return /*#__PURE__*/
|
|
6629
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6576
6630
|
value: handleSelect
|
|
6577
|
-
}, /*#__PURE__*/
|
|
6631
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6578
6632
|
value: {
|
|
6579
6633
|
role: role,
|
|
6580
6634
|
// used by NavLink to determine it's role
|
|
@@ -6582,7 +6636,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6582
6636
|
getControlledId: getControlledId || noop$4,
|
|
6583
6637
|
getControllerId: getControllerId || noop$4
|
|
6584
6638
|
}
|
|
6585
|
-
}, /*#__PURE__*/
|
|
6639
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6586
6640
|
onKeyDown: handleKeyDown,
|
|
6587
6641
|
ref: mergedRef,
|
|
6588
6642
|
role: role
|
|
@@ -6592,14 +6646,14 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6592
6646
|
var defaultProps$n = {
|
|
6593
6647
|
disabled: false
|
|
6594
6648
|
};
|
|
6595
|
-
var AbstractNavItem =
|
|
6649
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6596
6650
|
var active = _ref.active,
|
|
6597
6651
|
className = _ref.className,
|
|
6598
6652
|
eventKey = _ref.eventKey,
|
|
6599
6653
|
onSelect = _ref.onSelect,
|
|
6600
6654
|
onClick = _ref.onClick,
|
|
6601
6655
|
Component = _ref.as,
|
|
6602
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6656
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6603
6657
|
|
|
6604
6658
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6605
6659
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6629,7 +6683,7 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6629
6683
|
if (onSelect) onSelect(navKey, e);
|
|
6630
6684
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6631
6685
|
});
|
|
6632
|
-
return /*#__PURE__*/
|
|
6686
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6633
6687
|
ref: ref,
|
|
6634
6688
|
onClick: handleOnclick,
|
|
6635
6689
|
className: classnames(className, isActive && 'active')
|
|
@@ -6642,7 +6696,7 @@ var defaultProps$o = {
|
|
|
6642
6696
|
active: false,
|
|
6643
6697
|
disabled: false
|
|
6644
6698
|
};
|
|
6645
|
-
var ListGroupItem =
|
|
6699
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6646
6700
|
var bsPrefix = _ref.bsPrefix,
|
|
6647
6701
|
active = _ref.active,
|
|
6648
6702
|
disabled = _ref.disabled,
|
|
@@ -6652,7 +6706,7 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6652
6706
|
as = _ref.as,
|
|
6653
6707
|
eventKey = _ref.eventKey,
|
|
6654
6708
|
onClick = _ref.onClick,
|
|
6655
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6709
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6656
6710
|
|
|
6657
6711
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6658
6712
|
var handleClick = useCallback(function (event) {
|
|
@@ -6664,7 +6718,7 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6664
6718
|
|
|
6665
6719
|
if (onClick) onClick(event);
|
|
6666
6720
|
}, [disabled, onClick]);
|
|
6667
|
-
return /*#__PURE__*/
|
|
6721
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6668
6722
|
ref: ref
|
|
6669
6723
|
}, props, {
|
|
6670
6724
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6682,7 +6736,7 @@ var defaultProps$p = {
|
|
|
6682
6736
|
variant: undefined,
|
|
6683
6737
|
horizontal: undefined
|
|
6684
6738
|
};
|
|
6685
|
-
var ListGroup =
|
|
6739
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6686
6740
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6687
6741
|
activeKey: 'onSelect'
|
|
6688
6742
|
}),
|
|
@@ -6692,7 +6746,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6692
6746
|
horizontal = _useUncontrolled.horizontal,
|
|
6693
6747
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6694
6748
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6695
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6749
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6696
6750
|
|
|
6697
6751
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6698
6752
|
var horizontalVariant;
|
|
@@ -6704,7 +6758,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6704
6758
|
}
|
|
6705
6759
|
|
|
6706
6760
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6707
|
-
return /*#__PURE__*/
|
|
6761
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6708
6762
|
ref: ref
|
|
6709
6763
|
}, controlledProps, {
|
|
6710
6764
|
as: as,
|
|
@@ -6716,16 +6770,16 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6716
6770
|
ListGroup.Item = ListGroupItem;
|
|
6717
6771
|
|
|
6718
6772
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6719
|
-
var Media =
|
|
6773
|
+
var Media = 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
|
|
6720
6774
|
function (_ref, ref) {
|
|
6721
6775
|
var bsPrefix = _ref.bsPrefix,
|
|
6722
6776
|
className = _ref.className,
|
|
6723
6777
|
_ref$as = _ref.as,
|
|
6724
6778
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6725
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6779
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6726
6780
|
|
|
6727
6781
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6728
|
-
return /*#__PURE__*/
|
|
6782
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6729
6783
|
ref: ref,
|
|
6730
6784
|
className: classnames(className, prefix)
|
|
6731
6785
|
}));
|
|
@@ -7113,7 +7167,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7113
7167
|
renderDialog = _ref.renderDialog,
|
|
7114
7168
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7115
7169
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7116
|
-
return /*#__PURE__*/
|
|
7170
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7117
7171
|
} : _ref$renderBackdrop,
|
|
7118
7172
|
providedManager = _ref.manager,
|
|
7119
7173
|
containerRef = _ref.container,
|
|
@@ -7271,12 +7325,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7271
7325
|
tabIndex: -1
|
|
7272
7326
|
});
|
|
7273
7327
|
|
|
7274
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7328
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7275
7329
|
role: 'document'
|
|
7276
7330
|
}));
|
|
7277
7331
|
|
|
7278
7332
|
if (Transition) {
|
|
7279
|
-
dialog = /*#__PURE__*/
|
|
7333
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7280
7334
|
appear: true,
|
|
7281
7335
|
unmountOnExit: true,
|
|
7282
7336
|
"in": !!show,
|
|
@@ -7299,14 +7353,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7299
7353
|
});
|
|
7300
7354
|
|
|
7301
7355
|
if (BackdropTransition) {
|
|
7302
|
-
backdropElement = /*#__PURE__*/
|
|
7356
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7303
7357
|
appear: true,
|
|
7304
7358
|
"in": !!show
|
|
7305
7359
|
}, backdropElement);
|
|
7306
7360
|
}
|
|
7307
7361
|
}
|
|
7308
7362
|
|
|
7309
|
-
return /*#__PURE__*/
|
|
7363
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7310
7364
|
});
|
|
7311
7365
|
var propTypes$8 = {
|
|
7312
7366
|
/**
|
|
@@ -7545,12 +7599,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7545
7599
|
|
|
7546
7600
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7547
7601
|
|
|
7548
|
-
var ModalContext =
|
|
7602
|
+
var ModalContext = React__default.createContext({
|
|
7549
7603
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7550
7604
|
onHide: function onHide() {}
|
|
7551
7605
|
});
|
|
7552
7606
|
|
|
7553
|
-
var ModalDialog =
|
|
7607
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7554
7608
|
var bsPrefix = _ref.bsPrefix,
|
|
7555
7609
|
className = _ref.className,
|
|
7556
7610
|
contentClassName = _ref.contentClassName,
|
|
@@ -7558,14 +7612,14 @@ var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
|
7558
7612
|
size = _ref.size,
|
|
7559
7613
|
children = _ref.children,
|
|
7560
7614
|
scrollable = _ref.scrollable,
|
|
7561
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7615
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7562
7616
|
|
|
7563
7617
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7564
7618
|
var dialogClass = bsPrefix + "-dialog";
|
|
7565
|
-
return /*#__PURE__*/
|
|
7619
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7566
7620
|
ref: ref,
|
|
7567
7621
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7568
|
-
}), /*#__PURE__*/
|
|
7622
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7569
7623
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7570
7624
|
}, children));
|
|
7571
7625
|
});
|
|
@@ -7577,14 +7631,14 @@ var defaultProps$q = {
|
|
|
7577
7631
|
closeLabel: 'Close',
|
|
7578
7632
|
closeButton: false
|
|
7579
7633
|
};
|
|
7580
|
-
var ModalHeader =
|
|
7634
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7581
7635
|
var bsPrefix = _ref.bsPrefix,
|
|
7582
7636
|
closeLabel = _ref.closeLabel,
|
|
7583
7637
|
closeButton = _ref.closeButton,
|
|
7584
7638
|
onHide = _ref.onHide,
|
|
7585
7639
|
className = _ref.className,
|
|
7586
7640
|
children = _ref.children,
|
|
7587
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7641
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7588
7642
|
|
|
7589
7643
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7590
7644
|
var context = useContext(ModalContext);
|
|
@@ -7592,11 +7646,11 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7592
7646
|
if (context) context.onHide();
|
|
7593
7647
|
if (onHide) onHide();
|
|
7594
7648
|
});
|
|
7595
|
-
return /*#__PURE__*/
|
|
7649
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7596
7650
|
ref: ref
|
|
7597
7651
|
}, props, {
|
|
7598
7652
|
className: classnames(className, bsPrefix)
|
|
7599
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7653
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7600
7654
|
label: closeLabel,
|
|
7601
7655
|
onClick: handleClick
|
|
7602
7656
|
}));
|
|
@@ -7623,16 +7677,16 @@ var defaultProps$r = {
|
|
|
7623
7677
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7624
7678
|
|
|
7625
7679
|
function DialogTransition(props) {
|
|
7626
|
-
return /*#__PURE__*/
|
|
7680
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7627
7681
|
}
|
|
7628
7682
|
|
|
7629
7683
|
function BackdropTransition(props) {
|
|
7630
|
-
return /*#__PURE__*/
|
|
7684
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7631
7685
|
}
|
|
7632
7686
|
/* eslint-enable no-use-before-define */
|
|
7633
7687
|
|
|
7634
7688
|
|
|
7635
|
-
var Modal$1 =
|
|
7689
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7636
7690
|
var bsPrefix = _ref.bsPrefix,
|
|
7637
7691
|
className = _ref.className,
|
|
7638
7692
|
style = _ref.style,
|
|
@@ -7661,7 +7715,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7661
7715
|
onExited = _ref.onExited,
|
|
7662
7716
|
backdropClassName = _ref.backdropClassName,
|
|
7663
7717
|
propsManager = _ref.manager,
|
|
7664
|
-
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
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7665
7719
|
|
|
7666
7720
|
var _useState = useState({}),
|
|
7667
7721
|
modalStyle = _useState[0],
|
|
@@ -7827,12 +7881,12 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7827
7881
|
};
|
|
7828
7882
|
|
|
7829
7883
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7830
|
-
return /*#__PURE__*/
|
|
7884
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7831
7885
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7832
7886
|
}));
|
|
7833
7887
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7834
7888
|
|
|
7835
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7889
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7836
7890
|
|
|
7837
7891
|
|
|
7838
7892
|
if (!animation) {
|
|
@@ -7840,7 +7894,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7840
7894
|
}
|
|
7841
7895
|
|
|
7842
7896
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7843
|
-
return /*#__PURE__*/
|
|
7897
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7844
7898
|
role: "dialog"
|
|
7845
7899
|
}, dialogProps, {
|
|
7846
7900
|
style: baseModalStyle,
|
|
@@ -7848,7 +7902,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7848
7902
|
onClick: backdrop ? handleClick : undefined,
|
|
7849
7903
|
onMouseUp: handleMouseUp,
|
|
7850
7904
|
"aria-labelledby": ariaLabelledby
|
|
7851
|
-
}), /*#__PURE__*/
|
|
7905
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7852
7906
|
role: "document",
|
|
7853
7907
|
onMouseDown: handleDialogMouseDown,
|
|
7854
7908
|
className: dialogClassName,
|
|
@@ -7856,9 +7910,9 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7856
7910
|
}), children));
|
|
7857
7911
|
};
|
|
7858
7912
|
|
|
7859
|
-
return /*#__PURE__*/
|
|
7913
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7860
7914
|
value: modalContext
|
|
7861
|
-
}, /*#__PURE__*/
|
|
7915
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7862
7916
|
show: show,
|
|
7863
7917
|
ref: setModalRef,
|
|
7864
7918
|
backdrop: backdrop,
|
|
@@ -7896,17 +7950,17 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7896
7950
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7897
7951
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7898
7952
|
|
|
7899
|
-
var NavItem =
|
|
7953
|
+
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
|
|
7900
7954
|
function (_ref, ref) {
|
|
7901
7955
|
var bsPrefix = _ref.bsPrefix,
|
|
7902
7956
|
className = _ref.className,
|
|
7903
7957
|
children = _ref.children,
|
|
7904
7958
|
_ref$as = _ref.as,
|
|
7905
7959
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7906
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7960
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7907
7961
|
|
|
7908
7962
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7909
|
-
return /*#__PURE__*/
|
|
7963
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
7910
7964
|
ref: ref,
|
|
7911
7965
|
className: classnames(className, bsPrefix)
|
|
7912
7966
|
}), children);
|
|
@@ -7917,7 +7971,7 @@ var defaultProps$s = {
|
|
|
7917
7971
|
disabled: false,
|
|
7918
7972
|
as: SafeAnchor
|
|
7919
7973
|
};
|
|
7920
|
-
var NavLink =
|
|
7974
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7921
7975
|
var bsPrefix = _ref.bsPrefix,
|
|
7922
7976
|
disabled = _ref.disabled,
|
|
7923
7977
|
className = _ref.className,
|
|
@@ -7925,10 +7979,10 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7925
7979
|
eventKey = _ref.eventKey,
|
|
7926
7980
|
onSelect = _ref.onSelect,
|
|
7927
7981
|
as = _ref.as,
|
|
7928
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7982
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7929
7983
|
|
|
7930
7984
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7931
|
-
return /*#__PURE__*/
|
|
7985
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
7932
7986
|
href: href,
|
|
7933
7987
|
ref: ref,
|
|
7934
7988
|
eventKey: eventKey,
|
|
@@ -7945,7 +7999,7 @@ var defaultProps$t = {
|
|
|
7945
7999
|
justify: false,
|
|
7946
8000
|
fill: false
|
|
7947
8001
|
};
|
|
7948
|
-
var Nav =
|
|
8002
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7949
8003
|
var _classNames;
|
|
7950
8004
|
|
|
7951
8005
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7961,7 +8015,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7961
8015
|
className = _useUncontrolled.className,
|
|
7962
8016
|
children = _useUncontrolled.children,
|
|
7963
8017
|
activeKey = _useUncontrolled.activeKey,
|
|
7964
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8018
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7965
8019
|
|
|
7966
8020
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7967
8021
|
var navbarBsPrefix;
|
|
@@ -7977,7 +8031,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7977
8031
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7978
8032
|
}
|
|
7979
8033
|
|
|
7980
|
-
return /*#__PURE__*/
|
|
8034
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
7981
8035
|
as: as,
|
|
7982
8036
|
ref: ref,
|
|
7983
8037
|
activeKey: activeKey,
|
|
@@ -7989,31 +8043,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
7989
8043
|
Nav.Item = NavItem;
|
|
7990
8044
|
Nav.Link = NavLink;
|
|
7991
8045
|
|
|
7992
|
-
var NavbarBrand =
|
|
8046
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
7993
8047
|
var bsPrefix = _ref.bsPrefix,
|
|
7994
8048
|
className = _ref.className,
|
|
7995
8049
|
as = _ref.as,
|
|
7996
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8050
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
7997
8051
|
|
|
7998
8052
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
7999
8053
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8000
|
-
return /*#__PURE__*/
|
|
8054
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8001
8055
|
ref: ref,
|
|
8002
8056
|
className: classnames(className, bsPrefix)
|
|
8003
8057
|
}));
|
|
8004
8058
|
});
|
|
8005
8059
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8006
8060
|
|
|
8007
|
-
var NavbarCollapse =
|
|
8061
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8008
8062
|
var children = _ref.children,
|
|
8009
8063
|
bsPrefix = _ref.bsPrefix,
|
|
8010
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8064
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8011
8065
|
|
|
8012
8066
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8013
|
-
return /*#__PURE__*/
|
|
8014
|
-
return /*#__PURE__*/
|
|
8067
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8068
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8015
8069
|
in: !!(context && context.expanded)
|
|
8016
|
-
}, props), /*#__PURE__*/
|
|
8070
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8017
8071
|
ref: ref,
|
|
8018
8072
|
className: bsPrefix
|
|
8019
8073
|
}, children));
|
|
@@ -8024,7 +8078,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8024
8078
|
var defaultProps$u = {
|
|
8025
8079
|
label: 'Toggle navigation'
|
|
8026
8080
|
};
|
|
8027
|
-
var NavbarToggle =
|
|
8081
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
8028
8082
|
var bsPrefix = _ref.bsPrefix,
|
|
8029
8083
|
className = _ref.className,
|
|
8030
8084
|
children = _ref.children,
|
|
@@ -8032,7 +8086,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8032
8086
|
_ref$as = _ref.as,
|
|
8033
8087
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8034
8088
|
onClick = _ref.onClick,
|
|
8035
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8089
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8036
8090
|
|
|
8037
8091
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8038
8092
|
|
|
@@ -8049,12 +8103,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8049
8103
|
props.type = 'button';
|
|
8050
8104
|
}
|
|
8051
8105
|
|
|
8052
|
-
return /*#__PURE__*/
|
|
8106
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8053
8107
|
ref: ref,
|
|
8054
8108
|
onClick: handleClick,
|
|
8055
8109
|
"aria-label": label,
|
|
8056
8110
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8057
|
-
}), children || /*#__PURE__*/
|
|
8111
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8058
8112
|
className: bsPrefix + "-icon"
|
|
8059
8113
|
}));
|
|
8060
8114
|
});
|
|
@@ -8069,7 +8123,7 @@ var defaultProps$v = {
|
|
|
8069
8123
|
variant: 'light',
|
|
8070
8124
|
collapseOnSelect: false
|
|
8071
8125
|
};
|
|
8072
|
-
var Navbar =
|
|
8126
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8073
8127
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8074
8128
|
expanded: 'onToggle'
|
|
8075
8129
|
}),
|
|
@@ -8087,7 +8141,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8087
8141
|
_onToggle = _useUncontrolled.onToggle,
|
|
8088
8142
|
onSelect = _useUncontrolled.onSelect,
|
|
8089
8143
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8090
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8144
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8091
8145
|
|
|
8092
8146
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8093
8147
|
var handleCollapse = useCallback(function () {
|
|
@@ -8117,11 +8171,11 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8117
8171
|
expanded: !!expanded
|
|
8118
8172
|
};
|
|
8119
8173
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8120
|
-
return /*#__PURE__*/
|
|
8174
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8121
8175
|
value: navbarContext
|
|
8122
|
-
}, /*#__PURE__*/
|
|
8176
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8123
8177
|
value: handleCollapse
|
|
8124
|
-
}, /*#__PURE__*/
|
|
8178
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8125
8179
|
ref: ref
|
|
8126
8180
|
}, controlledProps, {
|
|
8127
8181
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8170,7 +8224,7 @@ var propTypes$9 = {
|
|
|
8170
8224
|
/** @ignore */
|
|
8171
8225
|
bsPrefix: PropTypes.string
|
|
8172
8226
|
};
|
|
8173
|
-
var NavDropdown =
|
|
8227
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8174
8228
|
var id = _ref.id,
|
|
8175
8229
|
title = _ref.title,
|
|
8176
8230
|
children = _ref.children,
|
|
@@ -8180,20 +8234,20 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8180
8234
|
disabled = _ref.disabled,
|
|
8181
8235
|
active = _ref.active,
|
|
8182
8236
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8183
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8237
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8184
8238
|
|
|
8185
|
-
return /*#__PURE__*/
|
|
8239
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8186
8240
|
ref: ref
|
|
8187
8241
|
}, props, {
|
|
8188
8242
|
as: NavItem
|
|
8189
|
-
}), /*#__PURE__*/
|
|
8243
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8190
8244
|
id: id,
|
|
8191
8245
|
eventKey: null,
|
|
8192
8246
|
active: active,
|
|
8193
8247
|
disabled: disabled,
|
|
8194
8248
|
childBsPrefix: bsPrefix,
|
|
8195
8249
|
as: NavLink
|
|
8196
|
-
}, title), /*#__PURE__*/
|
|
8250
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8197
8251
|
role: menuRole,
|
|
8198
8252
|
renderOnMount: renderMenuOnMount,
|
|
8199
8253
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8210,7 +8264,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8210
8264
|
* Built on top of `Popper.js`, the overlay component is
|
|
8211
8265
|
* great for custom tooltip overlays.
|
|
8212
8266
|
*/
|
|
8213
|
-
var Overlay = /*#__PURE__*/
|
|
8267
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8214
8268
|
var flip = props.flip,
|
|
8215
8269
|
offset = props.offset,
|
|
8216
8270
|
placement = props.placement,
|
|
@@ -8293,7 +8347,7 @@ var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
|
8293
8347
|
onEnter = props.onEnter,
|
|
8294
8348
|
onEntering = props.onEntering,
|
|
8295
8349
|
onEntered = props.onEntered;
|
|
8296
|
-
child = /*#__PURE__*/
|
|
8350
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8297
8351
|
"in": props.show,
|
|
8298
8352
|
appear: true,
|
|
8299
8353
|
onExit: onExit,
|
|
@@ -8459,34 +8513,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8459
8513
|
};
|
|
8460
8514
|
|
|
8461
8515
|
return RefHolder;
|
|
8462
|
-
}(
|
|
8516
|
+
}(React__default.Component);
|
|
8463
8517
|
|
|
8464
8518
|
var defaultProps$w = {
|
|
8465
8519
|
active: false,
|
|
8466
8520
|
disabled: false,
|
|
8467
8521
|
activeLabel: '(current)'
|
|
8468
8522
|
};
|
|
8469
|
-
var PageItem =
|
|
8523
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8470
8524
|
var active = _ref.active,
|
|
8471
8525
|
disabled = _ref.disabled,
|
|
8472
8526
|
className = _ref.className,
|
|
8473
8527
|
style = _ref.style,
|
|
8474
8528
|
activeLabel = _ref.activeLabel,
|
|
8475
8529
|
children = _ref.children,
|
|
8476
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8530
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8477
8531
|
|
|
8478
8532
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8479
|
-
return /*#__PURE__*/
|
|
8533
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8480
8534
|
ref: ref,
|
|
8481
8535
|
style: style,
|
|
8482
8536
|
className: classnames(className, 'page-item', {
|
|
8483
8537
|
active: active,
|
|
8484
8538
|
disabled: disabled
|
|
8485
8539
|
})
|
|
8486
|
-
}, /*#__PURE__*/
|
|
8540
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8487
8541
|
className: "page-link",
|
|
8488
8542
|
disabled: disabled
|
|
8489
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8543
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8490
8544
|
className: "sr-only"
|
|
8491
8545
|
}, activeLabel)));
|
|
8492
8546
|
});
|
|
@@ -8500,11 +8554,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8500
8554
|
|
|
8501
8555
|
function Button(_ref2) {
|
|
8502
8556
|
var children = _ref2.children,
|
|
8503
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8557
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8504
8558
|
|
|
8505
|
-
return /*#__PURE__*/
|
|
8559
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8506
8560
|
"aria-hidden": "true"
|
|
8507
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8561
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8508
8562
|
className: "sr-only"
|
|
8509
8563
|
}, label));
|
|
8510
8564
|
}
|
|
@@ -8527,15 +8581,15 @@ var Last = createButton('Last', '»');
|
|
|
8527
8581
|
* @property {PageItem} Next
|
|
8528
8582
|
* @property {PageItem} Last
|
|
8529
8583
|
*/
|
|
8530
|
-
var Pagination =
|
|
8584
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8531
8585
|
var bsPrefix = _ref.bsPrefix,
|
|
8532
8586
|
className = _ref.className,
|
|
8533
8587
|
children = _ref.children,
|
|
8534
8588
|
size = _ref.size,
|
|
8535
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8589
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8536
8590
|
|
|
8537
8591
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8538
|
-
return /*#__PURE__*/
|
|
8592
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8539
8593
|
ref: ref
|
|
8540
8594
|
}, props, {
|
|
8541
8595
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8548,32 +8602,32 @@ Pagination.Item = PageItem;
|
|
|
8548
8602
|
Pagination.Next = Next;
|
|
8549
8603
|
Pagination.Last = Last;
|
|
8550
8604
|
|
|
8551
|
-
var PopoverTitle =
|
|
8605
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8552
8606
|
var _ref$as = _ref.as,
|
|
8553
8607
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8554
8608
|
bsPrefix = _ref.bsPrefix,
|
|
8555
8609
|
className = _ref.className,
|
|
8556
8610
|
children = _ref.children,
|
|
8557
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8611
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8558
8612
|
|
|
8559
8613
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8560
|
-
return /*#__PURE__*/
|
|
8614
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8561
8615
|
ref: ref
|
|
8562
8616
|
}, props, {
|
|
8563
8617
|
className: classnames(bsPrefix, className)
|
|
8564
8618
|
}), children);
|
|
8565
8619
|
});
|
|
8566
8620
|
|
|
8567
|
-
var PopoverContent =
|
|
8621
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8568
8622
|
var _ref$as = _ref.as,
|
|
8569
8623
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8570
8624
|
bsPrefix = _ref.bsPrefix,
|
|
8571
8625
|
className = _ref.className,
|
|
8572
8626
|
children = _ref.children,
|
|
8573
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8627
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8574
8628
|
|
|
8575
8629
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8576
|
-
return /*#__PURE__*/
|
|
8630
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8577
8631
|
ref: ref
|
|
8578
8632
|
}, props, {
|
|
8579
8633
|
className: classnames(className, bsPrefix)
|
|
@@ -8583,7 +8637,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8583
8637
|
var defaultProps$x = {
|
|
8584
8638
|
placement: 'right'
|
|
8585
8639
|
};
|
|
8586
|
-
var Popover =
|
|
8640
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8587
8641
|
var bsPrefix = _ref.bsPrefix,
|
|
8588
8642
|
placement = _ref.placement,
|
|
8589
8643
|
className = _ref.className,
|
|
@@ -8593,22 +8647,22 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8593
8647
|
arrowProps = _ref.arrowProps,
|
|
8594
8648
|
_ = _ref.popper,
|
|
8595
8649
|
_1 = _ref.show,
|
|
8596
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8650
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8597
8651
|
|
|
8598
8652
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8599
8653
|
|
|
8600
8654
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8601
8655
|
primaryPlacement = _ref2[0];
|
|
8602
8656
|
|
|
8603
|
-
return /*#__PURE__*/
|
|
8657
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8604
8658
|
ref: ref,
|
|
8605
8659
|
role: "tooltip",
|
|
8606
8660
|
style: style,
|
|
8607
8661
|
"x-placement": primaryPlacement,
|
|
8608
8662
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8609
|
-
}, props), /*#__PURE__*/
|
|
8663
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8610
8664
|
className: "arrow"
|
|
8611
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8665
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8612
8666
|
});
|
|
8613
8667
|
Popover.defaultProps = defaultProps$x;
|
|
8614
8668
|
Popover.Title = PopoverTitle;
|
|
@@ -8644,27 +8698,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8644
8698
|
style = _ref.style,
|
|
8645
8699
|
variant = _ref.variant,
|
|
8646
8700
|
bsPrefix = _ref.bsPrefix,
|
|
8647
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8701
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8648
8702
|
|
|
8649
|
-
return /*#__PURE__*/
|
|
8703
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8650
8704
|
ref: ref
|
|
8651
8705
|
}, props, {
|
|
8652
8706
|
role: "progressbar",
|
|
8653
8707
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8654
|
-
style: _extends({
|
|
8708
|
+
style: _extends$1({
|
|
8655
8709
|
width: getPercentage(now, min, max) + "%"
|
|
8656
8710
|
}, style),
|
|
8657
8711
|
"aria-valuenow": now,
|
|
8658
8712
|
"aria-valuemin": min,
|
|
8659
8713
|
"aria-valuemax": max
|
|
8660
|
-
}), srOnly ? /*#__PURE__*/
|
|
8714
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8661
8715
|
className: "sr-only"
|
|
8662
8716
|
}, label) : label);
|
|
8663
8717
|
}
|
|
8664
8718
|
|
|
8665
|
-
var ProgressBar =
|
|
8719
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8666
8720
|
var isChild = _ref2.isChild,
|
|
8667
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8721
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8668
8722
|
|
|
8669
8723
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8670
8724
|
|
|
@@ -8683,9 +8737,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8683
8737
|
variant = props.variant,
|
|
8684
8738
|
className = props.className,
|
|
8685
8739
|
children = props.children,
|
|
8686
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8740
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8687
8741
|
|
|
8688
|
-
return /*#__PURE__*/
|
|
8742
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8689
8743
|
ref: ref
|
|
8690
8744
|
}, wrapperProps, {
|
|
8691
8745
|
className: classnames(className, bsPrefix)
|
|
@@ -8711,20 +8765,20 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8711
8765
|
var defaultProps$z = {
|
|
8712
8766
|
aspectRatio: '1by1'
|
|
8713
8767
|
};
|
|
8714
|
-
var ResponsiveEmbed =
|
|
8768
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8715
8769
|
var bsPrefix = _ref.bsPrefix,
|
|
8716
8770
|
className = _ref.className,
|
|
8717
8771
|
children = _ref.children,
|
|
8718
8772
|
aspectRatio = _ref.aspectRatio,
|
|
8719
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8773
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8720
8774
|
|
|
8721
8775
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8722
|
-
var child =
|
|
8723
|
-
return /*#__PURE__*/
|
|
8776
|
+
var child = React__default.Children.only(children);
|
|
8777
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8724
8778
|
ref: ref
|
|
8725
8779
|
}, props, {
|
|
8726
8780
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8727
|
-
}),
|
|
8781
|
+
}), React__default.cloneElement(child, {
|
|
8728
8782
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8729
8783
|
}));
|
|
8730
8784
|
});
|
|
@@ -8734,13 +8788,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8734
8788
|
var defaultProps$A = {
|
|
8735
8789
|
noGutters: false
|
|
8736
8790
|
};
|
|
8737
|
-
var Row =
|
|
8791
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8738
8792
|
var bsPrefix = _ref.bsPrefix,
|
|
8739
8793
|
className = _ref.className,
|
|
8740
8794
|
noGutters = _ref.noGutters,
|
|
8741
8795
|
_ref$as = _ref.as,
|
|
8742
8796
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8743
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8797
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8744
8798
|
|
|
8745
8799
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8746
8800
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8759,7 +8813,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8759
8813
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8760
8814
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8761
8815
|
});
|
|
8762
|
-
return /*#__PURE__*/
|
|
8816
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8763
8817
|
ref: ref
|
|
8764
8818
|
}, props, {
|
|
8765
8819
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8768,7 +8822,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8768
8822
|
Row.displayName = 'Row';
|
|
8769
8823
|
Row.defaultProps = defaultProps$A;
|
|
8770
8824
|
|
|
8771
|
-
var Spinner =
|
|
8825
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8772
8826
|
var bsPrefix = _ref.bsPrefix,
|
|
8773
8827
|
variant = _ref.variant,
|
|
8774
8828
|
animation = _ref.animation,
|
|
@@ -8777,11 +8831,11 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8777
8831
|
_ref$as = _ref.as,
|
|
8778
8832
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8779
8833
|
className = _ref.className,
|
|
8780
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8834
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8781
8835
|
|
|
8782
8836
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8783
8837
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8784
|
-
return /*#__PURE__*/
|
|
8838
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8785
8839
|
ref: ref
|
|
8786
8840
|
}, props, {
|
|
8787
8841
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8855,7 +8909,7 @@ var defaultProps$B = {
|
|
|
8855
8909
|
toggleLabel: 'Toggle dropdown',
|
|
8856
8910
|
type: 'button'
|
|
8857
8911
|
};
|
|
8858
|
-
var SplitButton =
|
|
8912
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8859
8913
|
var id = _ref.id,
|
|
8860
8914
|
bsPrefix = _ref.bsPrefix,
|
|
8861
8915
|
size = _ref.size,
|
|
@@ -8871,13 +8925,13 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8871
8925
|
menuRole = _ref.menuRole,
|
|
8872
8926
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8873
8927
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8874
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8928
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8875
8929
|
|
|
8876
|
-
return /*#__PURE__*/
|
|
8930
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8877
8931
|
ref: ref
|
|
8878
8932
|
}, props, {
|
|
8879
8933
|
as: ButtonGroup
|
|
8880
|
-
}), /*#__PURE__*/
|
|
8934
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8881
8935
|
size: size,
|
|
8882
8936
|
variant: variant,
|
|
8883
8937
|
disabled: props.disabled,
|
|
@@ -8886,16 +8940,16 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8886
8940
|
target: target,
|
|
8887
8941
|
onClick: onClick,
|
|
8888
8942
|
type: type
|
|
8889
|
-
}, title), /*#__PURE__*/
|
|
8943
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8890
8944
|
split: true,
|
|
8891
8945
|
id: id ? id.toString() : undefined,
|
|
8892
8946
|
size: size,
|
|
8893
8947
|
variant: variant,
|
|
8894
8948
|
disabled: props.disabled,
|
|
8895
8949
|
childBsPrefix: bsPrefix
|
|
8896
|
-
}, /*#__PURE__*/
|
|
8950
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8897
8951
|
className: "sr-only"
|
|
8898
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8952
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8899
8953
|
align: menuAlign,
|
|
8900
8954
|
role: menuRole,
|
|
8901
8955
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8939,22 +8993,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8939
8993
|
}
|
|
8940
8994
|
};
|
|
8941
8995
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8942
|
-
return /*#__PURE__*/
|
|
8996
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8943
8997
|
value: tabContext
|
|
8944
|
-
}, /*#__PURE__*/
|
|
8998
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8945
8999
|
value: onSelect || null
|
|
8946
9000
|
}, children));
|
|
8947
9001
|
};
|
|
8948
9002
|
|
|
8949
|
-
var TabContent =
|
|
9003
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8950
9004
|
var bsPrefix = _ref.bsPrefix,
|
|
8951
9005
|
_ref$as = _ref.as,
|
|
8952
9006
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8953
9007
|
className = _ref.className,
|
|
8954
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9008
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
8955
9009
|
|
|
8956
9010
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8957
|
-
return /*#__PURE__*/
|
|
9011
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8958
9012
|
ref: ref
|
|
8959
9013
|
}, props, {
|
|
8960
9014
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -8968,11 +9022,11 @@ function useTabContext(props) {
|
|
|
8968
9022
|
var activeKey = context.activeKey,
|
|
8969
9023
|
getControlledId = context.getControlledId,
|
|
8970
9024
|
getControllerId = context.getControllerId,
|
|
8971
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9025
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8972
9026
|
|
|
8973
9027
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8974
9028
|
var key = makeEventKey(props.eventKey);
|
|
8975
|
-
return _extends({}, props, {
|
|
9029
|
+
return _extends$1({}, props, {
|
|
8976
9030
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8977
9031
|
id: getControlledId(props.eventKey),
|
|
8978
9032
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8982,7 +9036,7 @@ function useTabContext(props) {
|
|
|
8982
9036
|
});
|
|
8983
9037
|
}
|
|
8984
9038
|
|
|
8985
|
-
var TabPane =
|
|
9039
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8986
9040
|
var _useTabContext = useTabContext(props),
|
|
8987
9041
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8988
9042
|
className = _useTabContext.className,
|
|
@@ -8999,11 +9053,11 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8999
9053
|
_useTabContext$as = _useTabContext.as,
|
|
9000
9054
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9001
9055
|
_ = _useTabContext.eventKey,
|
|
9002
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9056
|
+
rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9003
9057
|
|
|
9004
9058
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9005
9059
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9006
|
-
var pane = /*#__PURE__*/
|
|
9060
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9007
9061
|
ref: ref,
|
|
9008
9062
|
role: "tabpanel",
|
|
9009
9063
|
"aria-hidden": !active,
|
|
@@ -9011,7 +9065,7 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9011
9065
|
active: active
|
|
9012
9066
|
})
|
|
9013
9067
|
}));
|
|
9014
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9068
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
9015
9069
|
in: active,
|
|
9016
9070
|
onEnter: onEnter,
|
|
9017
9071
|
onEntering: onEntering,
|
|
@@ -9024,9 +9078,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9024
9078
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9025
9079
|
// conflict with the top level one.
|
|
9026
9080
|
|
|
9027
|
-
return /*#__PURE__*/
|
|
9081
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
9028
9082
|
value: null
|
|
9029
|
-
}, /*#__PURE__*/
|
|
9083
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
9030
9084
|
value: null
|
|
9031
9085
|
}, pane));
|
|
9032
9086
|
});
|
|
@@ -9047,13 +9101,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9047
9101
|
};
|
|
9048
9102
|
|
|
9049
9103
|
return Tab;
|
|
9050
|
-
}(
|
|
9104
|
+
}(React__default.Component);
|
|
9051
9105
|
|
|
9052
9106
|
Tab.Container = TabContainer;
|
|
9053
9107
|
Tab.Content = TabContent;
|
|
9054
9108
|
Tab.Pane = TabPane;
|
|
9055
9109
|
|
|
9056
|
-
var Table =
|
|
9110
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9057
9111
|
var bsPrefix = _ref.bsPrefix,
|
|
9058
9112
|
className = _ref.className,
|
|
9059
9113
|
striped = _ref.striped,
|
|
@@ -9063,11 +9117,11 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9063
9117
|
size = _ref.size,
|
|
9064
9118
|
variant = _ref.variant,
|
|
9065
9119
|
responsive = _ref.responsive,
|
|
9066
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9120
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9067
9121
|
|
|
9068
9122
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9069
9123
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9070
|
-
var table = /*#__PURE__*/
|
|
9124
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9071
9125
|
className: classes,
|
|
9072
9126
|
ref: ref
|
|
9073
9127
|
}));
|
|
@@ -9079,7 +9133,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9079
9133
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9080
9134
|
}
|
|
9081
9135
|
|
|
9082
|
-
return /*#__PURE__*/
|
|
9136
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9083
9137
|
className: responsiveClass
|
|
9084
9138
|
}, table);
|
|
9085
9139
|
}
|
|
@@ -9087,7 +9141,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9087
9141
|
return table;
|
|
9088
9142
|
});
|
|
9089
9143
|
|
|
9090
|
-
var ToastContext =
|
|
9144
|
+
var ToastContext = React__default.createContext({
|
|
9091
9145
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9092
9146
|
onClose: function onClose() {}
|
|
9093
9147
|
});
|
|
@@ -9096,13 +9150,13 @@ var defaultProps$C = {
|
|
|
9096
9150
|
closeLabel: 'Close',
|
|
9097
9151
|
closeButton: true
|
|
9098
9152
|
};
|
|
9099
|
-
var ToastHeader =
|
|
9153
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9100
9154
|
var bsPrefix = _ref.bsPrefix,
|
|
9101
9155
|
closeLabel = _ref.closeLabel,
|
|
9102
9156
|
closeButton = _ref.closeButton,
|
|
9103
9157
|
className = _ref.className,
|
|
9104
9158
|
children = _ref.children,
|
|
9105
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9159
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9106
9160
|
|
|
9107
9161
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9108
9162
|
var context = useContext(ToastContext);
|
|
@@ -9111,11 +9165,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9111
9165
|
context.onClose(e);
|
|
9112
9166
|
}
|
|
9113
9167
|
});
|
|
9114
|
-
return /*#__PURE__*/
|
|
9168
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9115
9169
|
ref: ref
|
|
9116
9170
|
}, props, {
|
|
9117
9171
|
className: classnames(bsPrefix, className)
|
|
9118
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9172
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9119
9173
|
label: closeLabel,
|
|
9120
9174
|
onClick: handleClick,
|
|
9121
9175
|
className: "ml-2 mb-1",
|
|
@@ -9127,7 +9181,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9127
9181
|
|
|
9128
9182
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9129
9183
|
|
|
9130
|
-
var Toast =
|
|
9184
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9131
9185
|
var bsPrefix = _ref.bsPrefix,
|
|
9132
9186
|
className = _ref.className,
|
|
9133
9187
|
children = _ref.children,
|
|
@@ -9142,7 +9196,7 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9142
9196
|
_ref$autohide = _ref.autohide,
|
|
9143
9197
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9144
9198
|
onClose = _ref.onClose,
|
|
9145
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9199
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9146
9200
|
|
|
9147
9201
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9148
9202
|
// timer in case these values change.
|
|
@@ -9170,16 +9224,16 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9170
9224
|
};
|
|
9171
9225
|
}, [onClose]);
|
|
9172
9226
|
var hasAnimation = !!(Transition && animation);
|
|
9173
|
-
var toast = /*#__PURE__*/
|
|
9227
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9174
9228
|
ref: ref,
|
|
9175
9229
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9176
9230
|
role: "alert",
|
|
9177
9231
|
"aria-live": "assertive",
|
|
9178
9232
|
"aria-atomic": "true"
|
|
9179
9233
|
}), children);
|
|
9180
|
-
return /*#__PURE__*/
|
|
9234
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9181
9235
|
value: toastContext
|
|
9182
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9236
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9183
9237
|
in: show,
|
|
9184
9238
|
unmountOnExit: true
|
|
9185
9239
|
}, toast) : toast);
|
|
@@ -9194,7 +9248,7 @@ var noop$5 = function noop() {
|
|
|
9194
9248
|
return undefined;
|
|
9195
9249
|
};
|
|
9196
9250
|
|
|
9197
|
-
var ToggleButton =
|
|
9251
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9198
9252
|
var children = _ref.children,
|
|
9199
9253
|
name = _ref.name,
|
|
9200
9254
|
className = _ref.className,
|
|
@@ -9204,7 +9258,7 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9204
9258
|
value = _ref.value,
|
|
9205
9259
|
disabled = _ref.disabled,
|
|
9206
9260
|
inputRef = _ref.inputRef,
|
|
9207
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9261
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9208
9262
|
|
|
9209
9263
|
var _useState = useState(false),
|
|
9210
9264
|
focused = _useState[0],
|
|
@@ -9216,13 +9270,13 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9216
9270
|
var handleBlur = useCallback(function (e) {
|
|
9217
9271
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9218
9272
|
}, []);
|
|
9219
|
-
return /*#__PURE__*/
|
|
9273
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9220
9274
|
ref: ref,
|
|
9221
9275
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9222
9276
|
type: undefined,
|
|
9223
9277
|
active: !!checked,
|
|
9224
9278
|
as: "label"
|
|
9225
|
-
}), /*#__PURE__*/
|
|
9279
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9226
9280
|
name: name,
|
|
9227
9281
|
type: type,
|
|
9228
9282
|
value: value,
|
|
@@ -9241,7 +9295,7 @@ var defaultProps$D = {
|
|
|
9241
9295
|
type: 'radio',
|
|
9242
9296
|
vertical: false
|
|
9243
9297
|
};
|
|
9244
|
-
var ToggleButtonGroup =
|
|
9298
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9245
9299
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9246
9300
|
value: 'onChange'
|
|
9247
9301
|
}),
|
|
@@ -9250,7 +9304,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9250
9304
|
name = _useUncontrolled.name,
|
|
9251
9305
|
value = _useUncontrolled.value,
|
|
9252
9306
|
onChange = _useUncontrolled.onChange,
|
|
9253
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9307
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9254
9308
|
|
|
9255
9309
|
var getValues = function getValues() {
|
|
9256
9310
|
return value == null ? [] : [].concat(value);
|
|
@@ -9279,7 +9333,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9279
9333
|
};
|
|
9280
9334
|
|
|
9281
9335
|
!(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;
|
|
9282
|
-
return /*#__PURE__*/
|
|
9336
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9283
9337
|
ref: ref,
|
|
9284
9338
|
toggle: true
|
|
9285
9339
|
}), map(children, function (child) {
|
|
@@ -9292,7 +9346,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9292
9346
|
return handleToggle(childVal, e);
|
|
9293
9347
|
};
|
|
9294
9348
|
|
|
9295
|
-
return
|
|
9349
|
+
return React__default.cloneElement(child, {
|
|
9296
9350
|
type: type,
|
|
9297
9351
|
name: child.name || name,
|
|
9298
9352
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9306,7 +9360,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9306
9360
|
var defaultProps$E = {
|
|
9307
9361
|
placement: 'right'
|
|
9308
9362
|
};
|
|
9309
|
-
var Tooltip =
|
|
9363
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9310
9364
|
var bsPrefix = _ref.bsPrefix,
|
|
9311
9365
|
placement = _ref.placement,
|
|
9312
9366
|
className = _ref.className,
|
|
@@ -9315,22 +9369,22 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9315
9369
|
arrowProps = _ref.arrowProps,
|
|
9316
9370
|
_ = _ref.popper,
|
|
9317
9371
|
_2 = _ref.show,
|
|
9318
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9372
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9319
9373
|
|
|
9320
9374
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9321
9375
|
|
|
9322
9376
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9323
9377
|
primaryPlacement = _ref2[0];
|
|
9324
9378
|
|
|
9325
|
-
return /*#__PURE__*/
|
|
9379
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9326
9380
|
ref: ref,
|
|
9327
9381
|
style: style,
|
|
9328
9382
|
role: "tooltip",
|
|
9329
9383
|
"x-placement": primaryPlacement,
|
|
9330
9384
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9331
|
-
}, props), /*#__PURE__*/
|
|
9385
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9332
9386
|
className: "arrow"
|
|
9333
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9387
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9334
9388
|
className: bsPrefix + "-inner"
|
|
9335
9389
|
}, children));
|
|
9336
9390
|
});
|
|
@@ -9348,54 +9402,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9348
9402
|
client = props.client;
|
|
9349
9403
|
|
|
9350
9404
|
|
|
9351
|
-
return
|
|
9405
|
+
return React__default.createElement(
|
|
9352
9406
|
'div',
|
|
9353
9407
|
{ className: styles.article },
|
|
9354
|
-
|
|
9408
|
+
React__default.createElement(
|
|
9355
9409
|
'a',
|
|
9356
9410
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9357
|
-
|
|
9411
|
+
React__default.createElement(
|
|
9358
9412
|
'div',
|
|
9359
9413
|
{ className: styles.thumb },
|
|
9360
|
-
|
|
9414
|
+
React__default.createElement(
|
|
9361
9415
|
'figure',
|
|
9362
9416
|
null,
|
|
9363
|
-
|
|
9417
|
+
React__default.createElement(
|
|
9364
9418
|
LazyLoad,
|
|
9365
9419
|
null,
|
|
9366
|
-
|
|
9420
|
+
React__default.createElement('img', {
|
|
9367
9421
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9368
9422
|
})
|
|
9369
9423
|
)
|
|
9370
9424
|
)
|
|
9371
9425
|
),
|
|
9372
|
-
|
|
9426
|
+
React__default.createElement(
|
|
9373
9427
|
'div',
|
|
9374
9428
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9375
|
-
|
|
9429
|
+
React__default.createElement(
|
|
9376
9430
|
'div',
|
|
9377
9431
|
{ className: styles.name },
|
|
9378
9432
|
data.name
|
|
9379
9433
|
),
|
|
9380
|
-
data.published &&
|
|
9434
|
+
data.published && React__default.createElement(
|
|
9381
9435
|
'p',
|
|
9382
9436
|
{ className: styles.published },
|
|
9383
9437
|
moment(data.published).format('MMMM Do YYYY')
|
|
9384
9438
|
),
|
|
9385
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9439
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9386
9440
|
'p',
|
|
9387
9441
|
{ className: styles.author },
|
|
9388
9442
|
'By ',
|
|
9389
|
-
|
|
9443
|
+
React__default.createElement(
|
|
9390
9444
|
'span',
|
|
9391
9445
|
null,
|
|
9392
9446
|
data.authorMapping.displayName
|
|
9393
9447
|
)
|
|
9394
9448
|
),
|
|
9395
|
-
data.description &&
|
|
9449
|
+
data.description && React__default.createElement(
|
|
9396
9450
|
'div',
|
|
9397
9451
|
{ className: 'media-series-desc' },
|
|
9398
|
-
|
|
9452
|
+
React__default.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9399
9453
|
)
|
|
9400
9454
|
)
|
|
9401
9455
|
)
|
|
@@ -9443,7 +9497,7 @@ var Filter = function Filter(_ref) {
|
|
|
9443
9497
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9444
9498
|
if (type === 'parent') {
|
|
9445
9499
|
setParentData(function (prevState) {
|
|
9446
|
-
return _extends$
|
|
9500
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null });
|
|
9447
9501
|
});
|
|
9448
9502
|
if (group && group.children && group.children.length > 0) {
|
|
9449
9503
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9457,7 +9511,7 @@ var Filter = function Filter(_ref) {
|
|
|
9457
9511
|
}
|
|
9458
9512
|
if (type === 'child') {
|
|
9459
9513
|
setChildData(function (prevState) {
|
|
9460
|
-
return _extends$
|
|
9514
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9461
9515
|
});
|
|
9462
9516
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9463
9517
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9476,7 +9530,7 @@ var Filter = function Filter(_ref) {
|
|
|
9476
9530
|
}
|
|
9477
9531
|
if (type === 'grandchild') {
|
|
9478
9532
|
setGrandChildData(function (prevState) {
|
|
9479
|
-
return _extends$
|
|
9533
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9480
9534
|
});
|
|
9481
9535
|
//handle filter
|
|
9482
9536
|
if (!group._id) {
|
|
@@ -9492,13 +9546,13 @@ var Filter = function Filter(_ref) {
|
|
|
9492
9546
|
}
|
|
9493
9547
|
};
|
|
9494
9548
|
|
|
9495
|
-
return
|
|
9549
|
+
return React__default.createElement(
|
|
9496
9550
|
'div',
|
|
9497
9551
|
{ className: 'flex-container' },
|
|
9498
|
-
parentData &&
|
|
9552
|
+
parentData && React__default.createElement(
|
|
9499
9553
|
DropdownButton,
|
|
9500
9554
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9501
|
-
|
|
9555
|
+
React__default.createElement(
|
|
9502
9556
|
Dropdown$1.Item,
|
|
9503
9557
|
{ onSelect: function onSelect() {
|
|
9504
9558
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9507,7 +9561,7 @@ var Filter = function Filter(_ref) {
|
|
|
9507
9561
|
),
|
|
9508
9562
|
parentData.data.map(function (docGroup) {
|
|
9509
9563
|
if (!docGroup._id) return null;
|
|
9510
|
-
return
|
|
9564
|
+
return React__default.createElement(
|
|
9511
9565
|
Dropdown$1.Item,
|
|
9512
9566
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9513
9567
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9516,10 +9570,10 @@ var Filter = function Filter(_ref) {
|
|
|
9516
9570
|
);
|
|
9517
9571
|
})
|
|
9518
9572
|
),
|
|
9519
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9573
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9520
9574
|
DropdownButton,
|
|
9521
9575
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9522
|
-
|
|
9576
|
+
React__default.createElement(
|
|
9523
9577
|
Dropdown$1.Item,
|
|
9524
9578
|
{ onSelect: function onSelect() {
|
|
9525
9579
|
return handleFilterSelect({}, 'child');
|
|
@@ -9528,7 +9582,7 @@ var Filter = function Filter(_ref) {
|
|
|
9528
9582
|
),
|
|
9529
9583
|
childData.data.map(function (docGroup) {
|
|
9530
9584
|
if (!docGroup._id) return null;
|
|
9531
|
-
return
|
|
9585
|
+
return React__default.createElement(
|
|
9532
9586
|
Dropdown$1.Item,
|
|
9533
9587
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9534
9588
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9537,10 +9591,10 @@ var Filter = function Filter(_ref) {
|
|
|
9537
9591
|
);
|
|
9538
9592
|
})
|
|
9539
9593
|
),
|
|
9540
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9594
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9541
9595
|
DropdownButton,
|
|
9542
9596
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9543
|
-
|
|
9597
|
+
React__default.createElement(
|
|
9544
9598
|
Dropdown$1.Item,
|
|
9545
9599
|
{ onSelect: function onSelect() {
|
|
9546
9600
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9549,7 +9603,7 @@ var Filter = function Filter(_ref) {
|
|
|
9549
9603
|
),
|
|
9550
9604
|
grandChildData.data.map(function (docGroup) {
|
|
9551
9605
|
if (!docGroup._id) return null;
|
|
9552
|
-
return
|
|
9606
|
+
return React__default.createElement(
|
|
9553
9607
|
Dropdown$1.Item,
|
|
9554
9608
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9555
9609
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9558,7 +9612,7 @@ var Filter = function Filter(_ref) {
|
|
|
9558
9612
|
);
|
|
9559
9613
|
})
|
|
9560
9614
|
),
|
|
9561
|
-
|
|
9615
|
+
React__default.createElement(
|
|
9562
9616
|
'style',
|
|
9563
9617
|
{ jsx: 'true' },
|
|
9564
9618
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9606,7 +9660,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9606
9660
|
while (1) {
|
|
9607
9661
|
switch (_context.prev = _context.next) {
|
|
9608
9662
|
case 0:
|
|
9609
|
-
newParams = _extends$
|
|
9663
|
+
newParams = _extends$2({}, params, { from: 0, to: 10 });
|
|
9610
9664
|
filterQuery = void 0;
|
|
9611
9665
|
|
|
9612
9666
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9648,27 +9702,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9648
9702
|
}();
|
|
9649
9703
|
|
|
9650
9704
|
if (props.statusCode === 404) {
|
|
9651
|
-
return
|
|
9705
|
+
return React__default.createElement(
|
|
9652
9706
|
'div',
|
|
9653
9707
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9654
|
-
|
|
9708
|
+
React__default.createElement(
|
|
9655
9709
|
'h3',
|
|
9656
9710
|
null,
|
|
9657
9711
|
'404: Resource not found'
|
|
9658
9712
|
),
|
|
9659
|
-
|
|
9713
|
+
React__default.createElement(
|
|
9660
9714
|
'p',
|
|
9661
9715
|
null,
|
|
9662
9716
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9663
9717
|
),
|
|
9664
|
-
|
|
9718
|
+
React__default.createElement(
|
|
9665
9719
|
'p',
|
|
9666
9720
|
null,
|
|
9667
9721
|
'Click here to',
|
|
9668
|
-
|
|
9722
|
+
React__default.createElement(
|
|
9669
9723
|
Link,
|
|
9670
9724
|
{ href: '/' },
|
|
9671
|
-
|
|
9725
|
+
React__default.createElement(
|
|
9672
9726
|
'a',
|
|
9673
9727
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9674
9728
|
' return to homepage.'
|
|
@@ -9678,17 +9732,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9678
9732
|
);
|
|
9679
9733
|
}
|
|
9680
9734
|
|
|
9681
|
-
return
|
|
9735
|
+
return React__default.createElement(
|
|
9682
9736
|
'div',
|
|
9683
9737
|
{ className: 'mb-5' },
|
|
9684
|
-
props.docGroup && props.docGroup.description &&
|
|
9685
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9738
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9739
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9686
9740
|
'div',
|
|
9687
9741
|
{ className: '' },
|
|
9688
|
-
|
|
9689
|
-
|
|
9742
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9743
|
+
React__default.createElement('hr', null)
|
|
9690
9744
|
),
|
|
9691
|
-
seriesData &&
|
|
9745
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9692
9746
|
deck: MediaSeriesCard,
|
|
9693
9747
|
variant: 'left',
|
|
9694
9748
|
defaultImage: '/placeholder.jpg',
|