@mjhls/mjh-framework 1.0.852 → 1.0.854-adblocker-fix-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +21 -20
- package/dist/cjs/AD300x250x600.js +21 -20
- package/dist/cjs/AD728x90.js +22 -21
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +14 -13
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-5f236872.js → ADInfeed-25d48cc2.js} +12 -10
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +37 -27
- package/dist/cjs/{ADlgInfeed-7b915591.js → ADlgInfeed-a535a768.js} +8 -7
- package/dist/cjs/AccordionPanel.js +28 -26
- package/dist/cjs/AdSlot.js +27 -26
- package/dist/cjs/AdSlotsProvider.js +20 -18
- package/dist/cjs/AlgoliaSearch.js +637 -650
- package/dist/cjs/AlphabeticList.js +24 -23
- package/dist/cjs/ArticleCarousel.js +18 -17
- package/dist/cjs/ArticleProgramLandingPage.js +37 -36
- package/dist/cjs/ArticleSeriesLandingPage.js +34 -33
- package/dist/cjs/ArticleSeriesListing.js +49 -48
- package/dist/cjs/Auth.js +294 -426
- package/dist/cjs/AuthWrapper.js +256 -216
- package/dist/cjs/{AuthorComponent-0c464248.js → AuthorComponent-ac8972ce.js} +14 -13
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +28 -26
- package/dist/cjs/CMEDeck.js +75 -75
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +30 -27
- package/dist/cjs/Column3.js +48 -45
- package/dist/cjs/ConferenceArticleCard.js +31 -30
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +98 -94
- package/dist/cjs/DeckQueue.js +83 -79
- package/dist/cjs/{Dfp-ac0c1cc6.js → Dfp-391fd124.js} +29 -28
- package/dist/cjs/EventsDeck.js +150 -143
- package/dist/cjs/ExternalResources.js +61 -60
- package/dist/cjs/Feature.js +25 -23
- package/dist/cjs/ForbesHero.js +39 -38
- package/dist/cjs/GridContent.js +222 -217
- package/dist/cjs/GridHero.js +40 -39
- package/dist/cjs/GroupDeck.js +55 -54
- package/dist/cjs/HamMagazine.js +137 -132
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -9
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +51 -50
- package/dist/cjs/HorizontalHero.js +23 -22
- package/dist/cjs/IssueContentDeck.js +74 -69
- package/dist/cjs/IssueDeck.js +73 -68
- package/dist/cjs/IssueLanding.js +70 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +33 -31
- package/dist/cjs/MasterDeck.js +72 -71
- package/dist/cjs/MediaSeriesLanding.js +853 -905
- package/dist/cjs/NavDvm.js +75 -70
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +138 -133
- package/dist/cjs/NavNative.js +133 -125
- package/dist/cjs/OncliveHero.js +16 -15
- package/dist/cjs/OncliveLargeHero.js +68 -67
- package/dist/cjs/PageFilter.js +14 -13
- package/dist/cjs/PartnerDetailListing.js +83 -82
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +20 -18
- package/dist/cjs/PubSection.js +31 -30
- package/dist/cjs/PubToc.js +15 -14
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +123 -119
- package/dist/cjs/QueueDeckExpanded.js +296 -296
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +48 -47
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +21 -17
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +31 -31
- package/dist/cjs/{SeriesSlider-dad08884.js → SeriesSlider-0d3bf265.js} +39 -38
- package/dist/cjs/SideFooter.js +33 -32
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-ad15dd61.js → SocialSearchComponent-19548e2a.js} +39 -35
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +61 -56
- package/dist/cjs/TaxonomyDescription.js +36 -35
- package/dist/cjs/TemplateNormal.js +46 -45
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +29 -28
- package/dist/cjs/VerticalHero.js +15 -14
- package/dist/cjs/VideoProgramLandingPage.js +57 -53
- package/dist/cjs/VideoSeriesCard.js +28 -27
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +40 -39
- package/dist/cjs/VideoSeriesListing.js +66 -65
- package/dist/cjs/View.js +211 -207
- package/dist/cjs/YahooHero.js +35 -34
- package/dist/cjs/YoutubeGroup.js +61 -60
- package/dist/cjs/{_is-array-39ff55dd.js → _is-array-754e012d.js} +1 -1
- package/dist/cjs/{_iter-detect-ef35661e.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-b231f928.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-c3aeb51d.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_to-object-7a3ce269.js → _to-object-329a650b.js} +2 -2
- package/dist/cjs/{asyncToGenerator-8ae2191c.js → asyncToGenerator-140e5f89.js} +5 -5
- package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-5c98aec7.js} +6 -5
- package/dist/cjs/{core.get-iterator-method-6cd7682d.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
- package/dist/cjs/{define-property-fc002cec.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-03c4c82e.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{es6.string.iterator-ab94a594.js → es6.string.iterator-cc0bbaa4.js} +1 -1
- package/dist/cjs/{extends-acc1318d.js → extends-0a918631.js} +1 -1
- package/dist/cjs/faundadb.js +6 -6
- package/dist/cjs/getRelatedArticle.js +73 -137
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-608e1fd1.js → getTargeting-a9a871f0.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-a7a90204.js → index-00a7ead6.js} +570 -541
- package/dist/cjs/{index-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-79eed652.js → index-6367b7bf.js} +29 -29
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-ff69979f.js → index-b5eb3ff8.js} +3 -8
- package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
- package/dist/cjs/{index.es-e9d84959.js → index.es-f3e47207.js} +8 -7
- package/dist/cjs/{index.esm-bf016399.js → index.esm-3ffa049c.js} +18 -17
- package/dist/cjs/index.js +74 -71
- package/dist/cjs/{inherits-bfdb22af.js → inherits-0c7830c5.js} +8 -8
- package/dist/cjs/{keys-62e097ca.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-b5e0d5f6.js → lodash-7fd85bcf.js} +9 -57
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{slicedToArray-41819145.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{stringify-7ccc8524.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/{toConsumableArray-4fdb72e2.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
- package/dist/cjs/{typeof-e83d4a26.js → typeof-9d7f610f.js} +5 -5
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-c30d203c.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-68e3aaf2.js → web.dom.iterable-a0e279c1.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +18 -18
- package/dist/esm/AD300x250x600.js +18 -18
- package/dist/esm/AD728x90.js +19 -19
- package/dist/esm/ADFloatingFooter.js +20 -20
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +20 -20
- package/dist/esm/{ADInfeed-dec9975c.js → ADInfeed-56a3db8b.js} +8 -8
- package/dist/esm/ADSkyscraper.js +20 -20
- package/dist/esm/ADSponsoredResources.js +20 -20
- package/dist/esm/ADWebcast.js +20 -20
- package/dist/esm/ADWelcome.js +34 -25
- package/dist/esm/{ADlgInfeed-1ea41fb6.js → ADlgInfeed-53edb995.js} +5 -5
- package/dist/esm/AccordionPanel.js +21 -21
- package/dist/esm/AdSlot.js +18 -18
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlgoliaSearch.js +266 -280
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +15 -15
- package/dist/esm/ArticleProgramLandingPage.js +34 -34
- package/dist/esm/ArticleSeriesLandingPage.js +31 -31
- package/dist/esm/ArticleSeriesListing.js +45 -45
- package/dist/esm/Auth.js +275 -411
- package/dist/esm/AuthWrapper.js +253 -214
- package/dist/esm/{AuthorComponent-5cab1f6b.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +16 -16
- package/dist/esm/CMEDeck.js +72 -72
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +43 -43
- package/dist/esm/ConferenceArticleCard.js +29 -29
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +90 -90
- package/dist/esm/DeckQueue.js +75 -75
- package/dist/esm/{Dfp-4b94fbd4.js → Dfp-2f9796e1.js} +17 -17
- package/dist/esm/EventsDeck.js +120 -120
- package/dist/esm/ExternalResources.js +55 -55
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +32 -32
- package/dist/esm/GridContent.js +186 -186
- package/dist/esm/GridHero.js +33 -33
- package/dist/esm/GroupDeck.js +42 -42
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +48 -48
- package/dist/esm/HorizontalHero.js +19 -19
- package/dist/esm/IssueContentDeck.js +57 -57
- package/dist/esm/IssueDeck.js +62 -62
- package/dist/esm/IssueLanding.js +69 -69
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +27 -27
- package/dist/esm/MasterDeck.js +68 -68
- package/dist/esm/MediaSeriesLanding.js +484 -539
- package/dist/esm/NavDvm.js +53 -53
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +108 -108
- package/dist/esm/NavNative.js +100 -100
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +56 -56
- package/dist/esm/PageFilter.js +11 -11
- package/dist/esm/PartnerDetailListing.js +80 -80
- package/dist/esm/PdfDownload.js +5 -5
- package/dist/esm/PopUpModal.js +13 -13
- package/dist/esm/PubSection.js +28 -28
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +105 -105
- package/dist/esm/QueueDeckExpanded.js +262 -262
- package/dist/esm/RecentNews.js +16 -16
- package/dist/esm/RelatedContent.js +44 -44
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +28 -28
- package/dist/esm/{SeriesSlider-5ba2e521.js → SeriesSlider-7d89f4d9.js} +29 -29
- package/dist/esm/SideFooter.js +29 -29
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-9cc36413.js → SocialSearchComponent-47815365.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +52 -52
- package/dist/esm/TaxonomyDescription.js +30 -30
- package/dist/esm/TemplateNormal.js +42 -42
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoProgramLandingPage.js +46 -46
- package/dist/esm/VideoSeriesCard.js +21 -21
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +31 -31
- package/dist/esm/VideoSeriesListing.js +62 -62
- package/dist/esm/View.js +196 -196
- package/dist/esm/YahooHero.js +29 -29
- package/dist/esm/YoutubeGroup.js +45 -45
- package/dist/esm/{_is-array-328b85b7.js → _is-array-58e95429.js} +1 -1
- package/dist/esm/{_iter-detect-0fa1c752.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-1b84e2bf.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-c8f72bf1.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_to-object-cedb5b78.js → _to-object-a4107da3.js} +2 -2
- package/dist/esm/{asyncToGenerator-e1a2f43a.js → asyncToGenerator-fc1c2e29.js} +5 -5
- package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-227107e6.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
- package/dist/esm/{define-property-2f35af22.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-eb9699c0.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{es6.string.iterator-1577cb76.js → es6.string.iterator-c990c18c.js} +1 -1
- package/dist/esm/{extends-be71a29a.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +6 -6
- package/dist/esm/getRelatedArticle.js +68 -132
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -25
- package/dist/esm/{getTargeting-37cb4051.js → getTargeting-bd800589.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-03da2fcc.js → index-0500ae55.js} +513 -494
- package/dist/esm/{index-f7fdcc91.js → index-51a80699.js} +3 -8
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
- package/dist/esm/{index-511bdaa5.js → index-c00b0bbb.js} +29 -29
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-ed50151c.js → index.esm-8ee5ff72.js} +15 -15
- package/dist/esm/index.js +63 -63
- package/dist/esm/{inherits-2cf82c38.js → inherits-75d45541.js} +5 -5
- package/dist/esm/{keys-526daf0a.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-a818d390.js → lodash-ec8c6b48.js} +9 -57
- package/dist/esm/main-747e7d25.js +886 -0
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{slicedToArray-f0edf3d6.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{stringify-d1b9276a.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/{toConsumableArray-81605212.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
- package/dist/esm/{typeof-ad2c7a21.js → typeof-af9c50d8.js} +5 -5
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-cf90f7e6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-ace8ed30.js → web.dom.iterable-4439f05a.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/main-bc7d4bf8.js +0 -972
- package/dist/esm/main-ae902629.js +0 -961
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './es6.string.iterator-
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './toConsumableArray-
|
|
7
|
-
import './core.get-iterator-method-
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends$1 } from './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
|
|
9
|
+
import { _ as _extends$1 } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-75d45541.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
17
|
import './events-6c3a7a63.js';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-f7fb1e25.js';
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import 'react-bootstrap/Container';
|
|
21
21
|
import 'react-bootstrap/Row';
|
|
@@ -24,48 +24,48 @@ import 'react-bootstrap/Card';
|
|
|
24
24
|
import { m as moment } from './moment-b6f49411.js';
|
|
25
25
|
import 'next/router';
|
|
26
26
|
import './isSymbol-1981418f.js';
|
|
27
|
-
import './debounce-
|
|
28
|
-
import './toNumber-
|
|
29
|
-
import './index.es-
|
|
27
|
+
import './debounce-9207d8ee.js';
|
|
28
|
+
import './toNumber-2f7a84cd.js';
|
|
29
|
+
import './index.es-c6222053.js';
|
|
30
30
|
import ReactDOM from 'react-dom';
|
|
31
|
-
import './visibility-sensor-
|
|
32
|
-
import './index-
|
|
31
|
+
import './visibility-sensor-f40c2564.js';
|
|
32
|
+
import './index-51a80699.js';
|
|
33
33
|
import urlFor from './urlFor.js';
|
|
34
|
-
import { L as LazyLoad } from './index-
|
|
35
|
-
import './main-
|
|
34
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
+
import './main-747e7d25.js';
|
|
36
36
|
import './entities-7cc3bf45.js';
|
|
37
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
38
|
-
import './stringify-
|
|
39
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
37
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
38
|
+
import './stringify-4330ccdc.js';
|
|
39
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
40
40
|
import './Segment.js';
|
|
41
41
|
import './Beam.js';
|
|
42
42
|
import './AdSlot.js';
|
|
43
|
-
import './ADInfeed-
|
|
44
|
-
import './lodash-
|
|
45
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADInfeed-56a3db8b.js';
|
|
44
|
+
import './lodash-ec8c6b48.js';
|
|
45
|
+
import './ADlgInfeed-53edb995.js';
|
|
46
46
|
import 'react-bootstrap/Button';
|
|
47
|
-
import { B as BlockContent } from './BlockContent-
|
|
47
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
48
48
|
import './index-c7e2ac95.js';
|
|
49
49
|
import './smoothscroll-0cd4c7a6.js';
|
|
50
50
|
import './GroupDeck.js';
|
|
51
51
|
import 'react-bootstrap';
|
|
52
52
|
import './iconBase-602d52fe.js';
|
|
53
53
|
import './index.esm-3fdda599.js';
|
|
54
|
-
import { g as getSerializers } from './index-
|
|
54
|
+
import { g as getSerializers } from './index-0500ae55.js';
|
|
55
55
|
import './util-7700fc59.js';
|
|
56
|
-
import './brightcove-react-player-loader.es-
|
|
56
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
57
57
|
import 'next/head';
|
|
58
58
|
import 'react-share';
|
|
59
59
|
import './SocialShare.js';
|
|
60
|
-
import './_object-to-array-
|
|
60
|
+
import './_object-to-array-7e804fce.js';
|
|
61
61
|
import 'react-bootstrap/Pagination';
|
|
62
62
|
import 'react-bootstrap/Figure';
|
|
63
63
|
import 'react-bootstrap/OverlayTrigger';
|
|
64
64
|
import 'react-bootstrap/Tooltip';
|
|
65
65
|
import 'react-bootstrap/Popover';
|
|
66
66
|
import MasterDeck from './MasterDeck.js';
|
|
67
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
68
|
-
import { _ as _objectWithoutPropertiesLoose,
|
|
67
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
68
|
+
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
69
69
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
70
|
import Link from 'next/link';
|
|
71
71
|
|
|
@@ -177,10 +177,10 @@ function useUncontrolled(props, config) {
|
|
|
177
177
|
function _inheritsLoose(subClass, superClass) {
|
|
178
178
|
subClass.prototype = Object.create(superClass.prototype);
|
|
179
179
|
subClass.prototype.constructor = subClass;
|
|
180
|
-
|
|
180
|
+
subClass.__proto__ = superClass;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
var ThemeContext =
|
|
183
|
+
var ThemeContext = React.createContext({});
|
|
184
184
|
var Consumer = ThemeContext.Consumer,
|
|
185
185
|
Provider = ThemeContext.Provider;
|
|
186
186
|
|
|
@@ -189,7 +189,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
189
189
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
var SelectableContext =
|
|
192
|
+
var SelectableContext = React.createContext(null);
|
|
193
193
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
194
194
|
if (href === void 0) {
|
|
195
195
|
href = null;
|
|
@@ -199,7 +199,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
199
199
|
return href || null;
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
-
var context =
|
|
202
|
+
var context = React.createContext(null);
|
|
203
203
|
context.displayName = 'AccordionContext';
|
|
204
204
|
|
|
205
205
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -215,7 +215,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
215
215
|
if (onClick) onClick(e);
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
var AccordionToggle =
|
|
218
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
219
219
|
var _ref$as = _ref.as,
|
|
220
220
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
221
221
|
children = _ref.children,
|
|
@@ -229,7 +229,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
229
229
|
props.type = 'button';
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
233
233
|
ref: ref,
|
|
234
234
|
onClick: accordionOnClick
|
|
235
235
|
}, props), children);
|
|
@@ -426,7 +426,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
426
426
|
exitActive: PropTypes.string
|
|
427
427
|
})]) : null;
|
|
428
428
|
|
|
429
|
-
var TransitionGroupContext =
|
|
429
|
+
var TransitionGroupContext = React.createContext(null);
|
|
430
430
|
|
|
431
431
|
var UNMOUNTED = 'unmounted';
|
|
432
432
|
var EXITED = 'exited';
|
|
@@ -816,14 +816,14 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
816
816
|
return (
|
|
817
817
|
/*#__PURE__*/
|
|
818
818
|
// allows for nested Transitions
|
|
819
|
-
|
|
819
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
820
820
|
value: null
|
|
821
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
821
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
822
822
|
);
|
|
823
823
|
};
|
|
824
824
|
|
|
825
825
|
return Transition;
|
|
826
|
-
}(
|
|
826
|
+
}(React.Component);
|
|
827
827
|
|
|
828
828
|
Transition.contextType = TransitionGroupContext;
|
|
829
829
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1099,7 +1099,7 @@ var defaultProps = {
|
|
|
1099
1099
|
appear: false,
|
|
1100
1100
|
getDimensionValue: getDefaultDimensionValue
|
|
1101
1101
|
};
|
|
1102
|
-
var Collapse =
|
|
1102
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1103
1103
|
var onEnter = _ref.onEnter,
|
|
1104
1104
|
onEntering = _ref.onEntering,
|
|
1105
1105
|
onEntered = _ref.onEntered,
|
|
@@ -1146,7 +1146,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1146
1146
|
elem.style[computedDimension] = null;
|
|
1147
1147
|
}, onExiting);
|
|
1148
1148
|
}, [computedDimension, onExiting]);
|
|
1149
|
-
return /*#__PURE__*/
|
|
1149
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1150
1150
|
, _extends({
|
|
1151
1151
|
ref: ref,
|
|
1152
1152
|
addEndListener: transitionEnd
|
|
@@ -1158,7 +1158,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1158
1158
|
onExit: handleExit,
|
|
1159
1159
|
onExiting: handleExiting
|
|
1160
1160
|
}), function (state, innerProps) {
|
|
1161
|
-
return
|
|
1161
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1162
1162
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1163
1163
|
}));
|
|
1164
1164
|
});
|
|
@@ -1167,7 +1167,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1167
1167
|
// @ts-ignore
|
|
1168
1168
|
Collapse.defaultProps = defaultProps;
|
|
1169
1169
|
|
|
1170
|
-
var AccordionCollapse =
|
|
1170
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1171
1171
|
var children = _ref.children,
|
|
1172
1172
|
eventKey = _ref.eventKey,
|
|
1173
1173
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
@@ -1175,16 +1175,16 @@ var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1175
1175
|
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1176
1176
|
// from collapsing the accordion when clicked.
|
|
1177
1177
|
|
|
1178
|
-
return /*#__PURE__*/
|
|
1178
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1179
1179
|
value: null
|
|
1180
|
-
}, /*#__PURE__*/
|
|
1180
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1181
1181
|
ref: ref,
|
|
1182
1182
|
in: contextEventKey === eventKey
|
|
1183
|
-
}, props), /*#__PURE__*/
|
|
1183
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1184
1184
|
});
|
|
1185
1185
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1186
1186
|
|
|
1187
|
-
var Accordion =
|
|
1187
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1188
1188
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1189
1189
|
activeKey: 'onSelect'
|
|
1190
1190
|
}),
|
|
@@ -1198,11 +1198,11 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1198
1198
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1199
1199
|
|
|
1200
1200
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1201
|
-
return /*#__PURE__*/
|
|
1201
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1202
1202
|
value: activeKey || null
|
|
1203
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1204
1204
|
value: onSelect || null
|
|
1205
|
-
}, /*#__PURE__*/
|
|
1205
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1206
1206
|
ref: ref
|
|
1207
1207
|
}, controlledProps, {
|
|
1208
1208
|
className: finalClassName
|
|
@@ -1246,7 +1246,7 @@ var defaultProps$1 = {
|
|
|
1246
1246
|
appear: false
|
|
1247
1247
|
};
|
|
1248
1248
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1249
|
-
var Fade =
|
|
1249
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1250
1250
|
var className = _ref.className,
|
|
1251
1251
|
children = _ref.children,
|
|
1252
1252
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1255,13 +1255,13 @@ var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
|
1255
1255
|
triggerBrowserReflow(node);
|
|
1256
1256
|
if (props.onEnter) props.onEnter(node);
|
|
1257
1257
|
}, [props]);
|
|
1258
|
-
return /*#__PURE__*/
|
|
1258
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1259
1259
|
ref: ref,
|
|
1260
1260
|
addEndListener: transitionEnd
|
|
1261
1261
|
}, props, {
|
|
1262
1262
|
onEnter: handleEnter
|
|
1263
1263
|
}), function (status, innerProps) {
|
|
1264
|
-
return
|
|
1264
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1265
1265
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1266
1266
|
}));
|
|
1267
1267
|
});
|
|
@@ -1276,20 +1276,20 @@ var propTypes = {
|
|
|
1276
1276
|
var defaultProps$2 = {
|
|
1277
1277
|
label: 'Close'
|
|
1278
1278
|
};
|
|
1279
|
-
var CloseButton =
|
|
1279
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1280
1280
|
var label = _ref.label,
|
|
1281
1281
|
onClick = _ref.onClick,
|
|
1282
1282
|
className = _ref.className,
|
|
1283
1283
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1284
1284
|
|
|
1285
|
-
return /*#__PURE__*/
|
|
1285
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1286
1286
|
ref: ref,
|
|
1287
1287
|
type: "button",
|
|
1288
1288
|
className: classnames('close', className),
|
|
1289
1289
|
onClick: onClick
|
|
1290
|
-
}, props), /*#__PURE__*/
|
|
1290
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1291
1291
|
"aria-hidden": "true"
|
|
1292
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1292
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1293
1293
|
className: "sr-only"
|
|
1294
1294
|
}, label));
|
|
1295
1295
|
});
|
|
@@ -1298,8 +1298,8 @@ CloseButton.propTypes = propTypes;
|
|
|
1298
1298
|
CloseButton.defaultProps = defaultProps$2;
|
|
1299
1299
|
|
|
1300
1300
|
var divWithClassName = (function (className) {
|
|
1301
|
-
return
|
|
1302
|
-
return /*#__PURE__*/
|
|
1301
|
+
return React.forwardRef(function (p, ref) {
|
|
1302
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1303
1303
|
ref: ref,
|
|
1304
1304
|
className: classnames(p.className, className)
|
|
1305
1305
|
}));
|
|
@@ -1325,7 +1325,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1325
1325
|
Component = _ref.Component,
|
|
1326
1326
|
defaultProps = _ref.defaultProps;
|
|
1327
1327
|
|
|
1328
|
-
var BsComponent =
|
|
1328
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1329
1329
|
var className = _ref2.className,
|
|
1330
1330
|
bsPrefix = _ref2.bsPrefix,
|
|
1331
1331
|
_ref2$as = _ref2.as,
|
|
@@ -1333,7 +1333,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1333
1333
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1334
1334
|
|
|
1335
1335
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1336
|
-
return /*#__PURE__*/
|
|
1336
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1337
1337
|
ref: ref,
|
|
1338
1338
|
className: classnames(className, resolvedPrefix)
|
|
1339
1339
|
}, props));
|
|
@@ -1355,7 +1355,7 @@ function isTrivialHref(href) {
|
|
|
1355
1355
|
*/
|
|
1356
1356
|
|
|
1357
1357
|
|
|
1358
|
-
var SafeAnchor =
|
|
1358
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1359
1359
|
var _ref$as = _ref.as,
|
|
1360
1360
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1361
1361
|
disabled = _ref.disabled,
|
|
@@ -1399,7 +1399,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1399
1399
|
props['aria-disabled'] = true;
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
|
-
return /*#__PURE__*/
|
|
1402
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1403
1403
|
ref: ref
|
|
1404
1404
|
}, props, {
|
|
1405
1405
|
onClick: handleClick,
|
|
@@ -1421,7 +1421,7 @@ var defaultProps$3 = {
|
|
|
1421
1421
|
transition: Fade,
|
|
1422
1422
|
closeLabel: 'Close alert'
|
|
1423
1423
|
};
|
|
1424
|
-
var Alert =
|
|
1424
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1425
1425
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1426
1426
|
show: 'onClose'
|
|
1427
1427
|
}),
|
|
@@ -1443,17 +1443,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
});
|
|
1445
1445
|
var Transition = transition === true ? Fade : transition;
|
|
1446
|
-
var alert = /*#__PURE__*/
|
|
1446
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1447
1447
|
role: "alert"
|
|
1448
1448
|
}, Transition ? props : undefined, {
|
|
1449
1449
|
ref: ref,
|
|
1450
1450
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1451
|
-
}), dismissible && /*#__PURE__*/
|
|
1451
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1452
1452
|
onClick: handleClose,
|
|
1453
1453
|
label: closeLabel
|
|
1454
1454
|
}), children);
|
|
1455
1455
|
if (!Transition) return show ? alert : null;
|
|
1456
|
-
return /*#__PURE__*/
|
|
1456
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1457
1457
|
unmountOnExit: true
|
|
1458
1458
|
}, props, {
|
|
1459
1459
|
ref: undefined,
|
|
@@ -1468,7 +1468,7 @@ Alert.Heading = AlertHeading;
|
|
|
1468
1468
|
var defaultProps$4 = {
|
|
1469
1469
|
pill: false
|
|
1470
1470
|
};
|
|
1471
|
-
var Badge =
|
|
1471
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1472
1472
|
var bsPrefix = _ref.bsPrefix,
|
|
1473
1473
|
variant = _ref.variant,
|
|
1474
1474
|
pill = _ref.pill,
|
|
@@ -1478,7 +1478,7 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1478
1478
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1479
1479
|
|
|
1480
1480
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1481
|
-
return /*#__PURE__*/
|
|
1481
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1482
1482
|
ref: ref
|
|
1483
1483
|
}, props, {
|
|
1484
1484
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1491,7 +1491,7 @@ var defaultProps$5 = {
|
|
|
1491
1491
|
active: false,
|
|
1492
1492
|
linkProps: {}
|
|
1493
1493
|
};
|
|
1494
|
-
var BreadcrumbItem =
|
|
1494
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1495
1495
|
var bsPrefix = _ref.bsPrefix,
|
|
1496
1496
|
active = _ref.active,
|
|
1497
1497
|
children = _ref.children,
|
|
@@ -1507,14 +1507,14 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1507
1507
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1508
1508
|
|
|
1509
1509
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1510
|
-
return /*#__PURE__*/
|
|
1510
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1511
1511
|
ref: ref
|
|
1512
1512
|
}, props, {
|
|
1513
1513
|
className: classnames(prefix, className, {
|
|
1514
1514
|
active: active
|
|
1515
1515
|
}),
|
|
1516
1516
|
"aria-current": active ? 'page' : undefined
|
|
1517
|
-
}), active ? children : /*#__PURE__*/
|
|
1517
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1518
1518
|
href: href,
|
|
1519
1519
|
title: title,
|
|
1520
1520
|
target: target
|
|
@@ -1527,7 +1527,7 @@ var defaultProps$6 = {
|
|
|
1527
1527
|
label: 'breadcrumb',
|
|
1528
1528
|
listProps: {}
|
|
1529
1529
|
};
|
|
1530
|
-
var Breadcrumb =
|
|
1530
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1531
1531
|
var bsPrefix = _ref.bsPrefix,
|
|
1532
1532
|
className = _ref.className,
|
|
1533
1533
|
listProps = _ref.listProps,
|
|
@@ -1538,11 +1538,11 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1538
1538
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1539
1539
|
|
|
1540
1540
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1541
|
-
return /*#__PURE__*/
|
|
1541
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1542
1542
|
"aria-label": label,
|
|
1543
1543
|
className: className,
|
|
1544
1544
|
ref: ref
|
|
1545
|
-
}, props), /*#__PURE__*/
|
|
1545
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1546
1546
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1547
1547
|
}), children));
|
|
1548
1548
|
});
|
|
@@ -1555,7 +1555,7 @@ var defaultProps$7 = {
|
|
|
1555
1555
|
active: false,
|
|
1556
1556
|
disabled: false
|
|
1557
1557
|
};
|
|
1558
|
-
var Button =
|
|
1558
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1559
1559
|
var bsPrefix = _ref.bsPrefix,
|
|
1560
1560
|
variant = _ref.variant,
|
|
1561
1561
|
size = _ref.size,
|
|
@@ -1570,7 +1570,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1570
1570
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1571
1571
|
|
|
1572
1572
|
if (props.href) {
|
|
1573
|
-
return /*#__PURE__*/
|
|
1573
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1574
1574
|
as: as,
|
|
1575
1575
|
ref: ref,
|
|
1576
1576
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1588,7 +1588,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
1590
1590
|
var Component = as || 'button';
|
|
1591
|
-
return /*#__PURE__*/
|
|
1591
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1592
1592
|
className: classes
|
|
1593
1593
|
}));
|
|
1594
1594
|
});
|
|
@@ -1600,7 +1600,7 @@ var defaultProps$8 = {
|
|
|
1600
1600
|
toggle: false,
|
|
1601
1601
|
role: 'group'
|
|
1602
1602
|
};
|
|
1603
|
-
var ButtonGroup =
|
|
1603
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1604
1604
|
var bsPrefix = _ref.bsPrefix,
|
|
1605
1605
|
size = _ref.size,
|
|
1606
1606
|
toggle = _ref.toggle,
|
|
@@ -1613,7 +1613,7 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1613
1613
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1614
1614
|
var baseClass = prefix;
|
|
1615
1615
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1616
|
-
return /*#__PURE__*/
|
|
1616
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1617
1617
|
ref: ref,
|
|
1618
1618
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1619
1619
|
}));
|
|
@@ -1624,13 +1624,13 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1624
1624
|
var defaultProps$9 = {
|
|
1625
1625
|
role: 'toolbar'
|
|
1626
1626
|
};
|
|
1627
|
-
var ButtonToolbar =
|
|
1627
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1628
1628
|
var bsPrefix = _ref.bsPrefix,
|
|
1629
1629
|
className = _ref.className,
|
|
1630
1630
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1631
1631
|
|
|
1632
1632
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1633
|
-
return /*#__PURE__*/
|
|
1633
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1634
1634
|
ref: ref,
|
|
1635
1635
|
className: classnames(className, prefix)
|
|
1636
1636
|
}));
|
|
@@ -1638,13 +1638,13 @@ var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
|
1638
1638
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1639
1639
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1640
1640
|
|
|
1641
|
-
var context$1 =
|
|
1641
|
+
var context$1 = React.createContext(null);
|
|
1642
1642
|
context$1.displayName = 'CardContext';
|
|
1643
1643
|
|
|
1644
1644
|
var defaultProps$a = {
|
|
1645
1645
|
variant: null
|
|
1646
1646
|
};
|
|
1647
|
-
var CardImg =
|
|
1647
|
+
var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1648
1648
|
function (_ref, ref) {
|
|
1649
1649
|
var bsPrefix = _ref.bsPrefix,
|
|
1650
1650
|
className = _ref.className,
|
|
@@ -1654,7 +1654,7 @@ function (_ref, ref) {
|
|
|
1654
1654
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1655
1655
|
|
|
1656
1656
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1657
|
-
return /*#__PURE__*/
|
|
1657
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1658
1658
|
ref: ref,
|
|
1659
1659
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1660
1660
|
}, props));
|
|
@@ -1683,7 +1683,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1683
1683
|
var defaultProps$b = {
|
|
1684
1684
|
body: false
|
|
1685
1685
|
};
|
|
1686
|
-
var Card =
|
|
1686
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1687
1687
|
var bsPrefix = _ref.bsPrefix,
|
|
1688
1688
|
className = _ref.className,
|
|
1689
1689
|
bg = _ref.bg,
|
|
@@ -1701,16 +1701,16 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1701
1701
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1702
1702
|
};
|
|
1703
1703
|
}, [prefix]);
|
|
1704
|
-
return /*#__PURE__*/
|
|
1704
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1705
1705
|
value: cardContext
|
|
1706
|
-
}, /*#__PURE__*/
|
|
1706
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1707
1707
|
ref: ref
|
|
1708
1708
|
}, props, {
|
|
1709
1709
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1710
1710
|
}), body ?
|
|
1711
1711
|
/*#__PURE__*/
|
|
1712
1712
|
// @ts-ignore
|
|
1713
|
-
|
|
1713
|
+
React.createElement(CardBody, null, children) : children));
|
|
1714
1714
|
});
|
|
1715
1715
|
Card.displayName = 'Card';
|
|
1716
1716
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1846,20 +1846,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1848
1848
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1849
|
-
*
|
|
1850
|
-
*
|
|
1851
|
-
*
|
|
1852
|
-
* ```tsx
|
|
1853
|
-
* const { set, clear } = useTimeout();
|
|
1854
|
-
* const [hello, showHello] = useState(false);
|
|
1855
|
-
* //Display hello after 5 seconds
|
|
1856
|
-
* set(() => showHello(true), 5000);
|
|
1857
|
-
* return (
|
|
1858
|
-
* <div className="App">
|
|
1859
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1860
|
-
* </div>
|
|
1861
|
-
* );
|
|
1862
|
-
* ```
|
|
1863
1849
|
*/
|
|
1864
1850
|
|
|
1865
1851
|
|
|
@@ -1900,7 +1886,7 @@ function useTimeout() {
|
|
|
1900
1886
|
|
|
1901
1887
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1902
1888
|
|
|
1903
|
-
var CarouselItem =
|
|
1889
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1904
1890
|
var _ref$as = _ref.as,
|
|
1905
1891
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1906
1892
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -1909,7 +1895,7 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1909
1895
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1910
1896
|
|
|
1911
1897
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1912
|
-
return /*#__PURE__*/
|
|
1898
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1913
1899
|
ref: ref
|
|
1914
1900
|
}, props, {
|
|
1915
1901
|
className: finalClassName
|
|
@@ -1928,8 +1914,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1928
1914
|
|
|
1929
1915
|
function map(children, func) {
|
|
1930
1916
|
var index = 0;
|
|
1931
|
-
return
|
|
1932
|
-
return
|
|
1917
|
+
return React.Children.map(children, function (child) {
|
|
1918
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1933
1919
|
});
|
|
1934
1920
|
}
|
|
1935
1921
|
/**
|
|
@@ -1942,8 +1928,8 @@ function map(children, func) {
|
|
|
1942
1928
|
|
|
1943
1929
|
function forEach(children, func) {
|
|
1944
1930
|
var index = 0;
|
|
1945
|
-
|
|
1946
|
-
if (
|
|
1931
|
+
React.Children.forEach(children, function (child) {
|
|
1932
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
1947
1933
|
});
|
|
1948
1934
|
}
|
|
1949
1935
|
|
|
@@ -2061,12 +2047,12 @@ var defaultProps$c = {
|
|
|
2061
2047
|
pause: 'hover',
|
|
2062
2048
|
wrap: true,
|
|
2063
2049
|
touch: true,
|
|
2064
|
-
prevIcon: /*#__PURE__*/
|
|
2050
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2065
2051
|
"aria-hidden": "true",
|
|
2066
2052
|
className: "carousel-control-prev-icon"
|
|
2067
2053
|
}),
|
|
2068
2054
|
prevLabel: 'Previous',
|
|
2069
|
-
nextIcon: /*#__PURE__*/
|
|
2055
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2070
2056
|
"aria-hidden": "true",
|
|
2071
2057
|
className: "carousel-control-next-icon"
|
|
2072
2058
|
}),
|
|
@@ -2371,7 +2357,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2371
2357
|
};
|
|
2372
2358
|
});
|
|
2373
2359
|
}, [indicators, numChildren, onSelect]);
|
|
2374
|
-
return /*#__PURE__*/
|
|
2360
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2375
2361
|
ref: elementRef
|
|
2376
2362
|
}, props, {
|
|
2377
2363
|
onKeyDown: handleKeyDown,
|
|
@@ -2381,44 +2367,44 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2381
2367
|
onTouchMove: handleTouchMove,
|
|
2382
2368
|
onTouchEnd: handleTouchEnd,
|
|
2383
2369
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2384
|
-
}), indicators && /*#__PURE__*/
|
|
2370
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2385
2371
|
className: prefix + "-indicators"
|
|
2386
2372
|
}, map(children, function (_child, index) {
|
|
2387
|
-
return /*#__PURE__*/
|
|
2373
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2388
2374
|
key: index,
|
|
2389
2375
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2390
2376
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2391
2377
|
});
|
|
2392
|
-
})), /*#__PURE__*/
|
|
2378
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2393
2379
|
className: prefix + "-inner"
|
|
2394
2380
|
}, map(children, function (child, index) {
|
|
2395
2381
|
var isActive = index === renderedActiveIndex;
|
|
2396
|
-
return slide ? /*#__PURE__*/
|
|
2382
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2397
2383
|
in: isActive,
|
|
2398
2384
|
onEnter: isActive ? handleEnter : undefined,
|
|
2399
2385
|
onEntered: isActive ? handleEntered : undefined,
|
|
2400
2386
|
addEndListener: transitionEnd
|
|
2401
2387
|
}, function (status) {
|
|
2402
|
-
return
|
|
2388
|
+
return React.cloneElement(child, {
|
|
2403
2389
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2404
2390
|
});
|
|
2405
|
-
}) :
|
|
2391
|
+
}) : React.cloneElement(child, {
|
|
2406
2392
|
className: classnames(child.props.className, isActive && 'active')
|
|
2407
2393
|
});
|
|
2408
|
-
})), controls && /*#__PURE__*/
|
|
2394
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2409
2395
|
className: prefix + "-control-prev",
|
|
2410
2396
|
onClick: prev
|
|
2411
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2397
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2412
2398
|
className: "sr-only"
|
|
2413
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2399
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2414
2400
|
className: prefix + "-control-next",
|
|
2415
2401
|
onClick: next
|
|
2416
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2402
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2417
2403
|
className: "sr-only"
|
|
2418
2404
|
}, nextLabel))));
|
|
2419
2405
|
}
|
|
2420
2406
|
|
|
2421
|
-
var Carousel =
|
|
2407
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2422
2408
|
Carousel.displayName = 'Carousel';
|
|
2423
2409
|
Carousel.propTypes = propTypes$1;
|
|
2424
2410
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2426,7 +2412,7 @@ Carousel.Caption = CarouselCaption;
|
|
|
2426
2412
|
Carousel.Item = CarouselItem;
|
|
2427
2413
|
|
|
2428
2414
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2429
|
-
var Col =
|
|
2415
|
+
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2430
2416
|
function (_ref, ref) {
|
|
2431
2417
|
var bsPrefix = _ref.bsPrefix,
|
|
2432
2418
|
className = _ref.className,
|
|
@@ -2463,7 +2449,7 @@ function (_ref, ref) {
|
|
|
2463
2449
|
spans.push(prefix); // plain 'col'
|
|
2464
2450
|
}
|
|
2465
2451
|
|
|
2466
|
-
return /*#__PURE__*/
|
|
2452
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2467
2453
|
ref: ref,
|
|
2468
2454
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2469
2455
|
}));
|
|
@@ -2572,7 +2558,7 @@ function useForceUpdate() {
|
|
|
2572
2558
|
return dispatch;
|
|
2573
2559
|
}
|
|
2574
2560
|
|
|
2575
|
-
var DropdownContext = /*#__PURE__*/
|
|
2561
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2576
2562
|
|
|
2577
2563
|
function useSafeState(state) {
|
|
2578
2564
|
var isMounted = useMounted();
|
|
@@ -2618,50 +2604,21 @@ function getBasePlacement(placement) {
|
|
|
2618
2604
|
return placement.split('-')[0];
|
|
2619
2605
|
}
|
|
2620
2606
|
|
|
2621
|
-
|
|
2622
|
-
var rect = element.getBoundingClientRect();
|
|
2623
|
-
return {
|
|
2624
|
-
width: rect.width,
|
|
2625
|
-
height: rect.height,
|
|
2626
|
-
top: rect.top,
|
|
2627
|
-
right: rect.right,
|
|
2628
|
-
bottom: rect.bottom,
|
|
2629
|
-
left: rect.left,
|
|
2630
|
-
x: rect.left,
|
|
2631
|
-
y: rect.top
|
|
2632
|
-
};
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2607
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2635
2608
|
// means it doesn't take into account transforms.
|
|
2636
|
-
|
|
2637
2609
|
function getLayoutRect(element) {
|
|
2638
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2639
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2640
|
-
|
|
2641
|
-
var width = element.offsetWidth;
|
|
2642
|
-
var height = element.offsetHeight;
|
|
2643
|
-
|
|
2644
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2645
|
-
width = clientRect.width;
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2649
|
-
height = clientRect.height;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
2610
|
return {
|
|
2653
2611
|
x: element.offsetLeft,
|
|
2654
2612
|
y: element.offsetTop,
|
|
2655
|
-
width:
|
|
2656
|
-
height:
|
|
2613
|
+
width: element.offsetWidth,
|
|
2614
|
+
height: element.offsetHeight
|
|
2657
2615
|
};
|
|
2658
2616
|
}
|
|
2659
2617
|
|
|
2660
|
-
|
|
2661
|
-
if (node == null) {
|
|
2662
|
-
return window;
|
|
2663
|
-
}
|
|
2618
|
+
/*:: import type { Window } from '../types'; */
|
|
2664
2619
|
|
|
2620
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2621
|
+
function getWindow(node) {
|
|
2665
2622
|
if (node.toString() !== '[object Window]') {
|
|
2666
2623
|
var ownerDocument = node.ownerDocument;
|
|
2667
2624
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2670,22 +2627,26 @@ function getWindow(node) {
|
|
|
2670
2627
|
return node;
|
|
2671
2628
|
}
|
|
2672
2629
|
|
|
2630
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2631
|
+
Element); */
|
|
2632
|
+
|
|
2673
2633
|
function isElement(node) {
|
|
2674
2634
|
var OwnElement = getWindow(node).Element;
|
|
2675
2635
|
return node instanceof OwnElement || node instanceof Element;
|
|
2676
2636
|
}
|
|
2637
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2638
|
+
HTMLElement); */
|
|
2639
|
+
|
|
2677
2640
|
|
|
2678
2641
|
function isHTMLElement(node) {
|
|
2679
2642
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2680
2643
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2681
2644
|
}
|
|
2645
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2646
|
+
ShadowRoot); */
|
|
2682
2647
|
|
|
2683
|
-
function isShadowRoot(node) {
|
|
2684
|
-
// IE 11 has no ShadowRoot
|
|
2685
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2686
|
-
return false;
|
|
2687
|
-
}
|
|
2688
2648
|
|
|
2649
|
+
function isShadowRoot(node) {
|
|
2689
2650
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2690
2651
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2691
2652
|
}
|
|
@@ -2702,7 +2663,7 @@ function contains(parent, child) {
|
|
|
2702
2663
|
do {
|
|
2703
2664
|
if (next && parent.isSameNode(next)) {
|
|
2704
2665
|
return true;
|
|
2705
|
-
} // $FlowFixMe
|
|
2666
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2706
2667
|
|
|
2707
2668
|
|
|
2708
2669
|
next = next.parentNode || next.host;
|
|
@@ -2726,9 +2687,8 @@ function isTableElement(element) {
|
|
|
2726
2687
|
}
|
|
2727
2688
|
|
|
2728
2689
|
function getDocumentElement(element) {
|
|
2729
|
-
// $FlowFixMe
|
|
2730
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2731
|
-
element.document) || window.document).documentElement;
|
|
2690
|
+
// $FlowFixMe: assume body is always available
|
|
2691
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2732
2692
|
}
|
|
2733
2693
|
|
|
2734
2694
|
function getParentNode(element) {
|
|
@@ -2736,13 +2696,12 @@ function getParentNode(element) {
|
|
|
2736
2696
|
return element;
|
|
2737
2697
|
}
|
|
2738
2698
|
|
|
2739
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2740
|
-
// $FlowFixMe[incompatible-return]
|
|
2741
|
-
// $FlowFixMe[prop-missing]
|
|
2699
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2742
2700
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2743
|
-
element.parentNode ||
|
|
2744
|
-
|
|
2745
|
-
|
|
2701
|
+
element.parentNode || // DOM Element detected
|
|
2702
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2703
|
+
element.host || // ShadowRoot detected
|
|
2704
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2746
2705
|
getDocumentElement(element) // fallback
|
|
2747
2706
|
|
|
2748
2707
|
);
|
|
@@ -2754,32 +2713,29 @@ function getTrueOffsetParent(element) {
|
|
|
2754
2713
|
return null;
|
|
2755
2714
|
}
|
|
2756
2715
|
|
|
2757
|
-
|
|
2758
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2759
|
-
// return the containing block
|
|
2716
|
+
var offsetParent = element.offsetParent;
|
|
2760
2717
|
|
|
2718
|
+
if (offsetParent) {
|
|
2719
|
+
var html = getDocumentElement(offsetParent);
|
|
2761
2720
|
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2765
|
-
|
|
2766
|
-
if (isIE && isHTMLElement(element)) {
|
|
2767
|
-
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2768
|
-
var elementCss = getComputedStyle$2(element);
|
|
2769
|
-
|
|
2770
|
-
if (elementCss.position === 'fixed') {
|
|
2771
|
-
return null;
|
|
2721
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2722
|
+
return html;
|
|
2772
2723
|
}
|
|
2773
2724
|
}
|
|
2774
2725
|
|
|
2726
|
+
return offsetParent;
|
|
2727
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2728
|
+
// return the containing block
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
function getContainingBlock(element) {
|
|
2775
2732
|
var currentNode = getParentNode(element);
|
|
2776
2733
|
|
|
2777
2734
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2778
2735
|
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2779
2736
|
// create a containing block.
|
|
2780
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2781
2737
|
|
|
2782
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2738
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2783
2739
|
return currentNode;
|
|
2784
2740
|
} else {
|
|
2785
2741
|
currentNode = currentNode.parentNode;
|
|
@@ -2799,7 +2755,7 @@ function getOffsetParent(element) {
|
|
|
2799
2755
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2800
2756
|
}
|
|
2801
2757
|
|
|
2802
|
-
if (offsetParent &&
|
|
2758
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2803
2759
|
return window;
|
|
2804
2760
|
}
|
|
2805
2761
|
|
|
@@ -2810,12 +2766,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2810
2766
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2811
2767
|
}
|
|
2812
2768
|
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
var round = Math.round;
|
|
2816
|
-
|
|
2817
|
-
function within(min$1, value, max$1) {
|
|
2818
|
-
return max(min$1, min(value, max$1));
|
|
2769
|
+
function within(min, value, max) {
|
|
2770
|
+
return Math.max(min, Math.min(value, max));
|
|
2819
2771
|
}
|
|
2820
2772
|
|
|
2821
2773
|
function getFreshSideObject() {
|
|
@@ -2828,7 +2780,7 @@ function getFreshSideObject() {
|
|
|
2828
2780
|
}
|
|
2829
2781
|
|
|
2830
2782
|
function mergePaddingObject(paddingObject) {
|
|
2831
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2783
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2832
2784
|
}
|
|
2833
2785
|
|
|
2834
2786
|
function expandToHashMap(value, keys) {
|
|
@@ -2838,19 +2790,11 @@ function expandToHashMap(value, keys) {
|
|
|
2838
2790
|
}, {});
|
|
2839
2791
|
}
|
|
2840
2792
|
|
|
2841
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2842
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2843
|
-
placement: state.placement
|
|
2844
|
-
})) : padding;
|
|
2845
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2846
|
-
};
|
|
2847
|
-
|
|
2848
2793
|
function arrow(_ref) {
|
|
2849
2794
|
var _state$modifiersData$;
|
|
2850
2795
|
|
|
2851
2796
|
var state = _ref.state,
|
|
2852
|
-
name = _ref.name
|
|
2853
|
-
options = _ref.options;
|
|
2797
|
+
name = _ref.name;
|
|
2854
2798
|
var arrowElement = state.elements.arrow;
|
|
2855
2799
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2856
2800
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2862,7 +2806,7 @@ function arrow(_ref) {
|
|
|
2862
2806
|
return;
|
|
2863
2807
|
}
|
|
2864
2808
|
|
|
2865
|
-
var paddingObject =
|
|
2809
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2866
2810
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2867
2811
|
var minProp = axis === 'y' ? top : left;
|
|
2868
2812
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2884,9 +2828,12 @@ function arrow(_ref) {
|
|
|
2884
2828
|
|
|
2885
2829
|
function effect(_ref2) {
|
|
2886
2830
|
var state = _ref2.state,
|
|
2887
|
-
options = _ref2.options
|
|
2831
|
+
options = _ref2.options,
|
|
2832
|
+
name = _ref2.name;
|
|
2888
2833
|
var _options$element = options.element,
|
|
2889
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2834
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2835
|
+
_options$padding = options.padding,
|
|
2836
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2890
2837
|
|
|
2891
2838
|
if (arrowElement == null) {
|
|
2892
2839
|
return;
|
|
@@ -2916,6 +2863,9 @@ function effect(_ref2) {
|
|
|
2916
2863
|
}
|
|
2917
2864
|
|
|
2918
2865
|
state.elements.arrow = arrowElement;
|
|
2866
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2867
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2868
|
+
};
|
|
2919
2869
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2920
2870
|
|
|
2921
2871
|
|
|
@@ -2938,14 +2888,14 @@ var unsetSides = {
|
|
|
2938
2888
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2939
2889
|
// cleanly divide the values into the appropriate subpixels.
|
|
2940
2890
|
|
|
2941
|
-
function
|
|
2891
|
+
function roundOffsets(_ref) {
|
|
2942
2892
|
var x = _ref.x,
|
|
2943
2893
|
y = _ref.y;
|
|
2944
2894
|
var win = window;
|
|
2945
2895
|
var dpr = win.devicePixelRatio || 1;
|
|
2946
2896
|
return {
|
|
2947
|
-
x: round(
|
|
2948
|
-
y: round(
|
|
2897
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2898
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2949
2899
|
};
|
|
2950
2900
|
}
|
|
2951
2901
|
|
|
@@ -2958,14 +2908,11 @@ function mapToStyles(_ref2) {
|
|
|
2958
2908
|
offsets = _ref2.offsets,
|
|
2959
2909
|
position = _ref2.position,
|
|
2960
2910
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2961
|
-
adaptive = _ref2.adaptive
|
|
2962
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2911
|
+
adaptive = _ref2.adaptive;
|
|
2963
2912
|
|
|
2964
|
-
var
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
_ref3$y = _ref3.y,
|
|
2968
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2913
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2914
|
+
x = _roundOffsets.x,
|
|
2915
|
+
y = _roundOffsets.y;
|
|
2969
2916
|
|
|
2970
2917
|
var hasX = offsets.hasOwnProperty('x');
|
|
2971
2918
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2975,32 +2922,23 @@ function mapToStyles(_ref2) {
|
|
|
2975
2922
|
|
|
2976
2923
|
if (adaptive) {
|
|
2977
2924
|
var offsetParent = getOffsetParent(popper);
|
|
2978
|
-
var heightProp = 'clientHeight';
|
|
2979
|
-
var widthProp = 'clientWidth';
|
|
2980
2925
|
|
|
2981
2926
|
if (offsetParent === getWindow(popper)) {
|
|
2982
2927
|
offsetParent = getDocumentElement(popper);
|
|
2928
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2983
2929
|
|
|
2984
|
-
|
|
2985
|
-
heightProp = 'scrollHeight';
|
|
2986
|
-
widthProp = 'scrollWidth';
|
|
2987
|
-
}
|
|
2988
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2989
|
-
|
|
2930
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2990
2931
|
|
|
2991
|
-
offsetParent = offsetParent;
|
|
2992
2932
|
|
|
2993
2933
|
if (placement === top) {
|
|
2994
|
-
sideY = bottom;
|
|
2995
|
-
|
|
2996
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2934
|
+
sideY = bottom;
|
|
2935
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
2997
2936
|
y *= gpuAcceleration ? 1 : -1;
|
|
2998
2937
|
}
|
|
2999
2938
|
|
|
3000
2939
|
if (placement === left) {
|
|
3001
|
-
sideX = right;
|
|
3002
|
-
|
|
3003
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2940
|
+
sideX = right;
|
|
2941
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3004
2942
|
x *= gpuAcceleration ? 1 : -1;
|
|
3005
2943
|
}
|
|
3006
2944
|
}
|
|
@@ -3012,21 +2950,19 @@ function mapToStyles(_ref2) {
|
|
|
3012
2950
|
if (gpuAcceleration) {
|
|
3013
2951
|
var _Object$assign;
|
|
3014
2952
|
|
|
3015
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
2953
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3016
2954
|
}
|
|
3017
2955
|
|
|
3018
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2956
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3019
2957
|
}
|
|
3020
2958
|
|
|
3021
|
-
function computeStyles(
|
|
3022
|
-
var state =
|
|
3023
|
-
options =
|
|
2959
|
+
function computeStyles(_ref3) {
|
|
2960
|
+
var state = _ref3.state,
|
|
2961
|
+
options = _ref3.options;
|
|
3024
2962
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3025
2963
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3026
2964
|
_options$adaptive = options.adaptive,
|
|
3027
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3028
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3029
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2965
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3030
2966
|
|
|
3031
2967
|
if (process.env.NODE_ENV !== "production") {
|
|
3032
2968
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -3046,24 +2982,22 @@ function computeStyles(_ref4) {
|
|
|
3046
2982
|
};
|
|
3047
2983
|
|
|
3048
2984
|
if (state.modifiersData.popperOffsets != null) {
|
|
3049
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2985
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3050
2986
|
offsets: state.modifiersData.popperOffsets,
|
|
3051
2987
|
position: state.options.strategy,
|
|
3052
|
-
adaptive: adaptive
|
|
3053
|
-
roundOffsets: roundOffsets
|
|
2988
|
+
adaptive: adaptive
|
|
3054
2989
|
})));
|
|
3055
2990
|
}
|
|
3056
2991
|
|
|
3057
2992
|
if (state.modifiersData.arrow != null) {
|
|
3058
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2993
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3059
2994
|
offsets: state.modifiersData.arrow,
|
|
3060
2995
|
position: 'absolute',
|
|
3061
|
-
adaptive: false
|
|
3062
|
-
roundOffsets: roundOffsets
|
|
2996
|
+
adaptive: false
|
|
3063
2997
|
})));
|
|
3064
2998
|
}
|
|
3065
2999
|
|
|
3066
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3000
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3067
3001
|
'data-popper-placement': state.placement
|
|
3068
3002
|
});
|
|
3069
3003
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3147,6 +3081,20 @@ function getOppositeVariationPlacement(placement) {
|
|
|
3147
3081
|
});
|
|
3148
3082
|
}
|
|
3149
3083
|
|
|
3084
|
+
function getBoundingClientRect(element) {
|
|
3085
|
+
var rect = element.getBoundingClientRect();
|
|
3086
|
+
return {
|
|
3087
|
+
width: rect.width,
|
|
3088
|
+
height: rect.height,
|
|
3089
|
+
top: rect.top,
|
|
3090
|
+
right: rect.right,
|
|
3091
|
+
bottom: rect.bottom,
|
|
3092
|
+
left: rect.left,
|
|
3093
|
+
x: rect.left,
|
|
3094
|
+
y: rect.top
|
|
3095
|
+
};
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3150
3098
|
function getWindowScroll(node) {
|
|
3151
3099
|
var win = getWindow(node);
|
|
3152
3100
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3209,18 +3157,16 @@ function getViewportRect(element) {
|
|
|
3209
3157
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3210
3158
|
|
|
3211
3159
|
function getDocumentRect(element) {
|
|
3212
|
-
var _element$ownerDocumen;
|
|
3213
|
-
|
|
3214
3160
|
var html = getDocumentElement(element);
|
|
3215
3161
|
var winScroll = getWindowScroll(element);
|
|
3216
|
-
var body =
|
|
3217
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3218
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3162
|
+
var body = element.ownerDocument.body;
|
|
3163
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3164
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3219
3165
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3220
3166
|
var y = -winScroll.scrollTop;
|
|
3221
3167
|
|
|
3222
3168
|
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3223
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3169
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3224
3170
|
}
|
|
3225
3171
|
|
|
3226
3172
|
return {
|
|
@@ -3243,7 +3189,7 @@ function isScrollParent(element) {
|
|
|
3243
3189
|
|
|
3244
3190
|
function getScrollParent(node) {
|
|
3245
3191
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3246
|
-
// $FlowFixMe
|
|
3192
|
+
// $FlowFixMe: assume body is always available
|
|
3247
3193
|
return node.ownerDocument.body;
|
|
3248
3194
|
}
|
|
3249
3195
|
|
|
@@ -3257,28 +3203,26 @@ function getScrollParent(node) {
|
|
|
3257
3203
|
/*
|
|
3258
3204
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3259
3205
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3260
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3206
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3261
3207
|
reference element's position.
|
|
3262
3208
|
*/
|
|
3263
3209
|
|
|
3264
3210
|
function listScrollParents(element, list) {
|
|
3265
|
-
var _element$ownerDocumen;
|
|
3266
|
-
|
|
3267
3211
|
if (list === void 0) {
|
|
3268
3212
|
list = [];
|
|
3269
3213
|
}
|
|
3270
3214
|
|
|
3271
3215
|
var scrollParent = getScrollParent(element);
|
|
3272
|
-
var isBody = scrollParent ===
|
|
3216
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3273
3217
|
var win = getWindow(scrollParent);
|
|
3274
3218
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3275
3219
|
var updatedList = list.concat(target);
|
|
3276
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3220
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3277
3221
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3278
3222
|
}
|
|
3279
3223
|
|
|
3280
3224
|
function rectToClientRect(rect) {
|
|
3281
|
-
return Object.assign({}, rect, {
|
|
3225
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3282
3226
|
left: rect.x,
|
|
3283
3227
|
top: rect.y,
|
|
3284
3228
|
right: rect.x + rect.width,
|
|
@@ -3313,7 +3257,7 @@ function getClippingParents(element) {
|
|
|
3313
3257
|
|
|
3314
3258
|
if (!isElement(clipperElement)) {
|
|
3315
3259
|
return [];
|
|
3316
|
-
} // $FlowFixMe
|
|
3260
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3317
3261
|
|
|
3318
3262
|
|
|
3319
3263
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3329,10 +3273,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3329
3273
|
var firstClippingParent = clippingParents[0];
|
|
3330
3274
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3331
3275
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3332
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3333
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3334
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3335
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3276
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3277
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3278
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3279
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3336
3280
|
return accRect;
|
|
3337
3281
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3338
3282
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3399,11 +3343,11 @@ function computeOffsets(_ref) {
|
|
|
3399
3343
|
|
|
3400
3344
|
switch (variation) {
|
|
3401
3345
|
case start:
|
|
3402
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3346
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3403
3347
|
break;
|
|
3404
3348
|
|
|
3405
3349
|
case end:
|
|
3406
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3350
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3407
3351
|
break;
|
|
3408
3352
|
}
|
|
3409
3353
|
}
|
|
@@ -3442,7 +3386,7 @@ function detectOverflow(state, options) {
|
|
|
3442
3386
|
strategy: 'absolute',
|
|
3443
3387
|
placement: placement
|
|
3444
3388
|
});
|
|
3445
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3389
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3446
3390
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3447
3391
|
// 0 or negative = within the clipping rect
|
|
3448
3392
|
|
|
@@ -3466,6 +3410,9 @@ function detectOverflow(state, options) {
|
|
|
3466
3410
|
return overflowOffsets;
|
|
3467
3411
|
}
|
|
3468
3412
|
|
|
3413
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3414
|
+
|
|
3415
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3469
3416
|
function computeAutoPlacement(state, options) {
|
|
3470
3417
|
if (options === void 0) {
|
|
3471
3418
|
options = {};
|
|
@@ -3482,7 +3429,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3482
3429
|
var variation = getVariation(placement);
|
|
3483
3430
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3484
3431
|
return getVariation(placement) === variation;
|
|
3485
|
-
}) : basePlacements;
|
|
3432
|
+
}) : basePlacements; // $FlowFixMe
|
|
3433
|
+
|
|
3486
3434
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3487
3435
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3488
3436
|
});
|
|
@@ -3493,7 +3441,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3493
3441
|
if (process.env.NODE_ENV !== "production") {
|
|
3494
3442
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3495
3443
|
}
|
|
3496
|
-
} // $FlowFixMe
|
|
3444
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3497
3445
|
|
|
3498
3446
|
|
|
3499
3447
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3694,7 +3642,7 @@ function hide(_ref) {
|
|
|
3694
3642
|
isReferenceHidden: isReferenceHidden,
|
|
3695
3643
|
hasPopperEscaped: hasPopperEscaped
|
|
3696
3644
|
};
|
|
3697
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3645
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3698
3646
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3699
3647
|
'data-popper-escaped': hasPopperEscaped
|
|
3700
3648
|
});
|
|
@@ -3713,7 +3661,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3713
3661
|
var basePlacement = getBasePlacement(placement);
|
|
3714
3662
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3715
3663
|
|
|
3716
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3664
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3717
3665
|
placement: placement
|
|
3718
3666
|
})) : offset,
|
|
3719
3667
|
skidding = _ref[0],
|
|
@@ -3819,7 +3767,7 @@ function preventOverflow(_ref) {
|
|
|
3819
3767
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3820
3768
|
var referenceRect = state.rects.reference;
|
|
3821
3769
|
var popperRect = state.rects.popper;
|
|
3822
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3770
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3823
3771
|
placement: state.placement
|
|
3824
3772
|
})) : tetherOffset;
|
|
3825
3773
|
var data = {
|
|
@@ -3831,13 +3779,13 @@ function preventOverflow(_ref) {
|
|
|
3831
3779
|
return;
|
|
3832
3780
|
}
|
|
3833
3781
|
|
|
3834
|
-
if (checkMainAxis
|
|
3782
|
+
if (checkMainAxis) {
|
|
3835
3783
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3836
3784
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3837
3785
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3838
3786
|
var offset = popperOffsets[mainAxis];
|
|
3839
|
-
var min
|
|
3840
|
-
var max
|
|
3787
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3788
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3841
3789
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3842
3790
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3843
3791
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3864,29 +3812,26 @@ function preventOverflow(_ref) {
|
|
|
3864
3812
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3865
3813
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3866
3814
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3815
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3816
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3817
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3818
|
+
}
|
|
3867
3819
|
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3871
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3872
|
-
}
|
|
3873
|
-
|
|
3874
|
-
if (checkAltAxis) {
|
|
3875
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3820
|
+
if (checkAltAxis) {
|
|
3821
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3876
3822
|
|
|
3877
|
-
|
|
3823
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3878
3824
|
|
|
3879
|
-
|
|
3825
|
+
var _offset = popperOffsets[altAxis];
|
|
3880
3826
|
|
|
3881
|
-
|
|
3827
|
+
var _min = _offset + overflow[_mainSide];
|
|
3882
3828
|
|
|
3883
|
-
|
|
3829
|
+
var _max = _offset - overflow[_altSide];
|
|
3884
3830
|
|
|
3885
|
-
|
|
3831
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3886
3832
|
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
}
|
|
3833
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3834
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3890
3835
|
}
|
|
3891
3836
|
|
|
3892
3837
|
state.modifiersData[name] = data;
|
|
@@ -4117,9 +4062,9 @@ function uniqueBy(arr, fn) {
|
|
|
4117
4062
|
function mergeByName(modifiers) {
|
|
4118
4063
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4119
4064
|
var existing = merged[current.name];
|
|
4120
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4121
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4122
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4065
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4066
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4067
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4123
4068
|
}) : current;
|
|
4124
4069
|
return merged;
|
|
4125
4070
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4165,7 +4110,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4165
4110
|
var state = {
|
|
4166
4111
|
placement: 'bottom',
|
|
4167
4112
|
orderedModifiers: [],
|
|
4168
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4113
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4169
4114
|
modifiersData: {},
|
|
4170
4115
|
elements: {
|
|
4171
4116
|
reference: reference,
|
|
@@ -4180,7 +4125,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4180
4125
|
state: state,
|
|
4181
4126
|
setOptions: function setOptions(options) {
|
|
4182
4127
|
cleanupModifierEffects();
|
|
4183
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4128
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4184
4129
|
state.scrollParents = {
|
|
4185
4130
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4186
4131
|
popper: listScrollParents(popper)
|
|
@@ -4968,7 +4913,7 @@ function DropdownMenu(_ref2) {
|
|
|
4968
4913
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4969
4914
|
|
|
4970
4915
|
var args = useDropdownMenu(options);
|
|
4971
|
-
return /*#__PURE__*/
|
|
4916
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4972
4917
|
}
|
|
4973
4918
|
|
|
4974
4919
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -5035,7 +4980,7 @@ function DropdownToggle(_ref2) {
|
|
|
5035
4980
|
show = _useDropdownToggle$.show,
|
|
5036
4981
|
toggle = _useDropdownToggle$.toggle;
|
|
5037
4982
|
|
|
5038
|
-
return /*#__PURE__*/
|
|
4983
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5039
4984
|
show: show,
|
|
5040
4985
|
toggle: toggle,
|
|
5041
4986
|
props: props
|
|
@@ -5250,7 +5195,7 @@ function Dropdown(_ref) {
|
|
|
5250
5195
|
}
|
|
5251
5196
|
};
|
|
5252
5197
|
|
|
5253
|
-
return /*#__PURE__*/
|
|
5198
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5254
5199
|
value: context
|
|
5255
5200
|
}, children({
|
|
5256
5201
|
props: {
|
|
@@ -5264,14 +5209,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5264
5209
|
Dropdown.Menu = DropdownMenu;
|
|
5265
5210
|
Dropdown.Toggle = DropdownToggle;
|
|
5266
5211
|
|
|
5267
|
-
var NavContext =
|
|
5212
|
+
var NavContext = React.createContext(null);
|
|
5268
5213
|
NavContext.displayName = 'NavContext';
|
|
5269
5214
|
|
|
5270
5215
|
var defaultProps$e = {
|
|
5271
5216
|
as: SafeAnchor,
|
|
5272
5217
|
disabled: false
|
|
5273
5218
|
};
|
|
5274
|
-
var DropdownItem =
|
|
5219
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5275
5220
|
var bsPrefix = _ref.bsPrefix,
|
|
5276
5221
|
className = _ref.className,
|
|
5277
5222
|
children = _ref.children,
|
|
@@ -5306,7 +5251,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5306
5251
|
/*#__PURE__*/
|
|
5307
5252
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5308
5253
|
// @ts-ignore
|
|
5309
|
-
|
|
5254
|
+
React.createElement(Component, _extends({}, props, {
|
|
5310
5255
|
ref: ref,
|
|
5311
5256
|
href: href,
|
|
5312
5257
|
disabled: disabled,
|
|
@@ -5355,7 +5300,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5355
5300
|
}, [refA, refB]);
|
|
5356
5301
|
}
|
|
5357
5302
|
|
|
5358
|
-
var context$2 =
|
|
5303
|
+
var context$2 = React.createContext(null);
|
|
5359
5304
|
context$2.displayName = 'NavbarContext';
|
|
5360
5305
|
|
|
5361
5306
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5483,7 +5428,7 @@ var defaultProps$f = {
|
|
|
5483
5428
|
flip: true
|
|
5484
5429
|
}; // TODO: remove this hack
|
|
5485
5430
|
|
|
5486
|
-
var DropdownMenu$1 =
|
|
5431
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5487
5432
|
var bsPrefix = _ref.bsPrefix,
|
|
5488
5433
|
className = _ref.className,
|
|
5489
5434
|
align = _ref.align,
|
|
@@ -5558,7 +5503,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5558
5503
|
props['x-placement'] = placement;
|
|
5559
5504
|
}
|
|
5560
5505
|
|
|
5561
|
-
return /*#__PURE__*/
|
|
5506
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5562
5507
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5563
5508
|
}));
|
|
5564
5509
|
});
|
|
@@ -5592,7 +5537,7 @@ module.exports = exports['default'];
|
|
|
5592
5537
|
|
|
5593
5538
|
unwrapExports(isRequiredForA11y_1);
|
|
5594
5539
|
|
|
5595
|
-
var DropdownToggle$1 =
|
|
5540
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5596
5541
|
var bsPrefix = _ref.bsPrefix,
|
|
5597
5542
|
split = _ref.split,
|
|
5598
5543
|
className = _ref.className,
|
|
@@ -5614,7 +5559,7 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5614
5559
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5615
5560
|
// underlying component, to allow it to render size and style variants.
|
|
5616
5561
|
|
|
5617
|
-
return /*#__PURE__*/
|
|
5562
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5618
5563
|
onClick: toggle,
|
|
5619
5564
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5620
5565
|
}, toggleProps, props));
|
|
@@ -5637,7 +5582,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5637
5582
|
var defaultProps$g = {
|
|
5638
5583
|
navbar: false
|
|
5639
5584
|
};
|
|
5640
|
-
var Dropdown$1 =
|
|
5585
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5641
5586
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5642
5587
|
show: 'onToggle'
|
|
5643
5588
|
}),
|
|
@@ -5674,9 +5619,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5674
5619
|
if (onSelect) onSelect(key, event);
|
|
5675
5620
|
handleToggle(false, event, 'select');
|
|
5676
5621
|
});
|
|
5677
|
-
return /*#__PURE__*/
|
|
5622
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5678
5623
|
value: handleSelect
|
|
5679
|
-
}, /*#__PURE__*/
|
|
5624
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5680
5625
|
drop: drop,
|
|
5681
5626
|
show: show,
|
|
5682
5627
|
alignEnd: alignRight,
|
|
@@ -5685,7 +5630,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5685
5630
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5686
5631
|
}, function (_ref) {
|
|
5687
5632
|
var dropdownProps = _ref.props;
|
|
5688
|
-
return /*#__PURE__*/
|
|
5633
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5689
5634
|
ref: ref,
|
|
5690
5635
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5691
5636
|
}));
|
|
@@ -5760,7 +5705,7 @@ var propTypes$5 = {
|
|
|
5760
5705
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5761
5706
|
*/
|
|
5762
5707
|
|
|
5763
|
-
var DropdownButton =
|
|
5708
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5764
5709
|
var title = _ref.title,
|
|
5765
5710
|
children = _ref.children,
|
|
5766
5711
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5775,16 +5720,16 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5775
5720
|
id = _ref.id,
|
|
5776
5721
|
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5777
5722
|
|
|
5778
|
-
return /*#__PURE__*/
|
|
5723
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5779
5724
|
ref: ref
|
|
5780
|
-
}, props), /*#__PURE__*/
|
|
5725
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5781
5726
|
id: id,
|
|
5782
5727
|
href: href,
|
|
5783
5728
|
size: size,
|
|
5784
5729
|
variant: variant,
|
|
5785
5730
|
disabled: disabled,
|
|
5786
5731
|
childBsPrefix: bsPrefix
|
|
5787
|
-
}, title), /*#__PURE__*/
|
|
5732
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5788
5733
|
align: menuAlign,
|
|
5789
5734
|
role: menuRole,
|
|
5790
5735
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5899,7 +5844,7 @@ var propTypes$6 = {
|
|
|
5899
5844
|
tooltip: PropTypes.bool,
|
|
5900
5845
|
as: PropTypes.elementType
|
|
5901
5846
|
};
|
|
5902
|
-
var Feedback =
|
|
5847
|
+
var Feedback = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5903
5848
|
function (_ref, ref) {
|
|
5904
5849
|
var _ref$as = _ref.as,
|
|
5905
5850
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5910,7 +5855,7 @@ function (_ref, ref) {
|
|
|
5910
5855
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5911
5856
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5912
5857
|
|
|
5913
|
-
return /*#__PURE__*/
|
|
5858
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5914
5859
|
ref: ref,
|
|
5915
5860
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5916
5861
|
}));
|
|
@@ -5918,11 +5863,11 @@ function (_ref, ref) {
|
|
|
5918
5863
|
Feedback.displayName = 'Feedback';
|
|
5919
5864
|
Feedback.propTypes = propTypes$6;
|
|
5920
5865
|
|
|
5921
|
-
var FormContext =
|
|
5866
|
+
var FormContext = React.createContext({
|
|
5922
5867
|
controlId: undefined
|
|
5923
5868
|
});
|
|
5924
5869
|
|
|
5925
|
-
var FormCheckInput =
|
|
5870
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5926
5871
|
var id = _ref.id,
|
|
5927
5872
|
bsPrefix = _ref.bsPrefix,
|
|
5928
5873
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5947,7 +5892,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5947
5892
|
defaultPrefix = _ref2[1];
|
|
5948
5893
|
|
|
5949
5894
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5950
|
-
return /*#__PURE__*/
|
|
5895
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5951
5896
|
ref: ref,
|
|
5952
5897
|
type: type,
|
|
5953
5898
|
id: id || controlId,
|
|
@@ -5956,7 +5901,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5956
5901
|
});
|
|
5957
5902
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5958
5903
|
|
|
5959
|
-
var FormCheckLabel =
|
|
5904
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5960
5905
|
var bsPrefix = _ref.bsPrefix,
|
|
5961
5906
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5962
5907
|
className = _ref.className,
|
|
@@ -5972,7 +5917,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5972
5917
|
defaultPrefix = _ref2[1];
|
|
5973
5918
|
|
|
5974
5919
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5975
|
-
return /*#__PURE__*/
|
|
5920
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
5976
5921
|
ref: ref,
|
|
5977
5922
|
htmlFor: htmlFor || controlId,
|
|
5978
5923
|
className: classnames(className, bsPrefix)
|
|
@@ -5980,7 +5925,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5980
5925
|
});
|
|
5981
5926
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5982
5927
|
|
|
5983
|
-
var FormCheck =
|
|
5928
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
5984
5929
|
var id = _ref.id,
|
|
5985
5930
|
bsPrefix = _ref.bsPrefix,
|
|
5986
5931
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6026,7 +5971,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6026
5971
|
};
|
|
6027
5972
|
}, [controlId, custom, id]);
|
|
6028
5973
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6029
|
-
var input = /*#__PURE__*/
|
|
5974
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6030
5975
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6031
5976
|
ref: ref,
|
|
6032
5977
|
isValid: isValid,
|
|
@@ -6035,14 +5980,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6035
5980
|
disabled: disabled,
|
|
6036
5981
|
as: as
|
|
6037
5982
|
}));
|
|
6038
|
-
return /*#__PURE__*/
|
|
5983
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6039
5984
|
value: innerFormContext
|
|
6040
|
-
}, /*#__PURE__*/
|
|
5985
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6041
5986
|
style: style,
|
|
6042
5987
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6043
|
-
}, children || /*#__PURE__*/
|
|
5988
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6044
5989
|
title: title
|
|
6045
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5990
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6046
5991
|
type: isValid ? 'valid' : 'invalid',
|
|
6047
5992
|
tooltip: feedbackTooltip
|
|
6048
5993
|
}, feedback))));
|
|
@@ -6051,7 +5996,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6051
5996
|
FormCheck.Input = FormCheckInput;
|
|
6052
5997
|
FormCheck.Label = FormCheckLabel;
|
|
6053
5998
|
|
|
6054
|
-
var FormFileInput =
|
|
5999
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6055
6000
|
var id = _ref.id,
|
|
6056
6001
|
bsPrefix = _ref.bsPrefix,
|
|
6057
6002
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6074,7 +6019,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6074
6019
|
defaultPrefix = _ref2[1];
|
|
6075
6020
|
|
|
6076
6021
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6077
|
-
return /*#__PURE__*/
|
|
6022
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6078
6023
|
ref: ref,
|
|
6079
6024
|
id: id || controlId,
|
|
6080
6025
|
type: type,
|
|
@@ -6084,7 +6029,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6084
6029
|
});
|
|
6085
6030
|
FormFileInput.displayName = 'FormFileInput';
|
|
6086
6031
|
|
|
6087
|
-
var FormFileLabel =
|
|
6032
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6088
6033
|
var bsPrefix = _ref.bsPrefix,
|
|
6089
6034
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6090
6035
|
className = _ref.className,
|
|
@@ -6100,7 +6045,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6100
6045
|
defaultPrefix = _ref2[1];
|
|
6101
6046
|
|
|
6102
6047
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6103
|
-
return /*#__PURE__*/
|
|
6048
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6104
6049
|
ref: ref,
|
|
6105
6050
|
htmlFor: htmlFor || controlId,
|
|
6106
6051
|
className: classnames(className, bsPrefix),
|
|
@@ -6109,7 +6054,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6109
6054
|
});
|
|
6110
6055
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6111
6056
|
|
|
6112
|
-
var FormFile =
|
|
6057
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6113
6058
|
var id = _ref.id,
|
|
6114
6059
|
bsPrefix = _ref.bsPrefix,
|
|
6115
6060
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6152,7 +6097,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6152
6097
|
};
|
|
6153
6098
|
}, [controlId, custom, id]);
|
|
6154
6099
|
var hasLabel = label != null && label !== false && !children;
|
|
6155
|
-
var input = /*#__PURE__*/
|
|
6100
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6156
6101
|
ref: ref,
|
|
6157
6102
|
isValid: isValid,
|
|
6158
6103
|
isInvalid: isInvalid,
|
|
@@ -6160,14 +6105,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6160
6105
|
as: inputAs,
|
|
6161
6106
|
lang: lang
|
|
6162
6107
|
}));
|
|
6163
|
-
return /*#__PURE__*/
|
|
6108
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6164
6109
|
value: innerFormContext
|
|
6165
|
-
}, /*#__PURE__*/
|
|
6110
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6166
6111
|
style: style,
|
|
6167
6112
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6168
|
-
}, children || /*#__PURE__*/
|
|
6113
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6169
6114
|
"data-browse": dataBrowse
|
|
6170
|
-
}, label)) : /*#__PURE__*/
|
|
6115
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6171
6116
|
type: isValid ? 'valid' : 'invalid',
|
|
6172
6117
|
tooltip: feedbackTooltip
|
|
6173
6118
|
}, feedback))));
|
|
@@ -6176,7 +6121,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6176
6121
|
FormFile.Input = FormFileInput;
|
|
6177
6122
|
FormFile.Label = FormFileLabel;
|
|
6178
6123
|
|
|
6179
|
-
var FormControl =
|
|
6124
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6180
6125
|
var bsPrefix = _ref.bsPrefix,
|
|
6181
6126
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6182
6127
|
type = _ref.type,
|
|
@@ -6228,7 +6173,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6228
6173
|
}
|
|
6229
6174
|
|
|
6230
6175
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6231
|
-
return /*#__PURE__*/
|
|
6176
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6232
6177
|
type: type,
|
|
6233
6178
|
size: htmlSize,
|
|
6234
6179
|
ref: ref,
|
|
@@ -6242,7 +6187,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6242
6187
|
Feedback: Feedback
|
|
6243
6188
|
});
|
|
6244
6189
|
|
|
6245
|
-
var FormGroup =
|
|
6190
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6246
6191
|
var bsPrefix = _ref.bsPrefix,
|
|
6247
6192
|
className = _ref.className,
|
|
6248
6193
|
children = _ref.children,
|
|
@@ -6257,9 +6202,9 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6257
6202
|
controlId: controlId
|
|
6258
6203
|
};
|
|
6259
6204
|
}, [controlId]);
|
|
6260
|
-
return /*#__PURE__*/
|
|
6205
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6261
6206
|
value: context
|
|
6262
|
-
}, /*#__PURE__*/
|
|
6207
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6263
6208
|
ref: ref,
|
|
6264
6209
|
className: classnames(className, bsPrefix)
|
|
6265
6210
|
}), children));
|
|
@@ -6270,7 +6215,7 @@ var defaultProps$h = {
|
|
|
6270
6215
|
column: false,
|
|
6271
6216
|
srOnly: false
|
|
6272
6217
|
};
|
|
6273
|
-
var FormLabel =
|
|
6218
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6274
6219
|
var _ref$as = _ref.as,
|
|
6275
6220
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6276
6221
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6289,7 +6234,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6289
6234
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6290
6235
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6291
6236
|
htmlFor = htmlFor || controlId;
|
|
6292
|
-
if (column) return /*#__PURE__*/
|
|
6237
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6293
6238
|
as: "label",
|
|
6294
6239
|
className: classes,
|
|
6295
6240
|
htmlFor: htmlFor
|
|
@@ -6297,7 +6242,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6297
6242
|
return (
|
|
6298
6243
|
/*#__PURE__*/
|
|
6299
6244
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6300
|
-
|
|
6245
|
+
React.createElement(Component, _extends({
|
|
6301
6246
|
ref: ref,
|
|
6302
6247
|
className: classes,
|
|
6303
6248
|
htmlFor: htmlFor
|
|
@@ -6307,7 +6252,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6307
6252
|
FormLabel.displayName = 'FormLabel';
|
|
6308
6253
|
FormLabel.defaultProps = defaultProps$h;
|
|
6309
6254
|
|
|
6310
|
-
var FormText =
|
|
6255
|
+
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6311
6256
|
function (_ref, ref) {
|
|
6312
6257
|
var bsPrefix = _ref.bsPrefix,
|
|
6313
6258
|
className = _ref.className,
|
|
@@ -6317,15 +6262,15 @@ function (_ref, ref) {
|
|
|
6317
6262
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6318
6263
|
|
|
6319
6264
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6320
|
-
return /*#__PURE__*/
|
|
6265
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6321
6266
|
ref: ref,
|
|
6322
6267
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6323
6268
|
}));
|
|
6324
6269
|
});
|
|
6325
6270
|
FormText.displayName = 'FormText';
|
|
6326
6271
|
|
|
6327
|
-
var Switch =
|
|
6328
|
-
return /*#__PURE__*/
|
|
6272
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6273
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6329
6274
|
ref: ref,
|
|
6330
6275
|
type: "switch"
|
|
6331
6276
|
}));
|
|
@@ -6338,7 +6283,7 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6338
6283
|
var defaultProps$i = {
|
|
6339
6284
|
inline: false
|
|
6340
6285
|
};
|
|
6341
|
-
var FormImpl =
|
|
6286
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6342
6287
|
var bsPrefix = _ref.bsPrefix,
|
|
6343
6288
|
inline = _ref.inline,
|
|
6344
6289
|
className = _ref.className,
|
|
@@ -6348,7 +6293,7 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6348
6293
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6349
6294
|
|
|
6350
6295
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6351
|
-
return /*#__PURE__*/
|
|
6296
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6352
6297
|
ref: ref,
|
|
6353
6298
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6354
6299
|
}));
|
|
@@ -6367,7 +6312,7 @@ FormImpl.Text = FormText;
|
|
|
6367
6312
|
var defaultProps$j = {
|
|
6368
6313
|
fluid: false
|
|
6369
6314
|
};
|
|
6370
|
-
var Container =
|
|
6315
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6371
6316
|
var bsPrefix = _ref.bsPrefix,
|
|
6372
6317
|
fluid = _ref.fluid,
|
|
6373
6318
|
_ref$as = _ref.as,
|
|
@@ -6377,7 +6322,7 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6377
6322
|
|
|
6378
6323
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6379
6324
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6380
|
-
return /*#__PURE__*/
|
|
6325
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6381
6326
|
ref: ref
|
|
6382
6327
|
}, props, {
|
|
6383
6328
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6418,7 +6363,7 @@ var defaultProps$k = {
|
|
|
6418
6363
|
roundedCircle: false,
|
|
6419
6364
|
thumbnail: false
|
|
6420
6365
|
};
|
|
6421
|
-
var Image =
|
|
6366
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6422
6367
|
var bsPrefix = _ref.bsPrefix,
|
|
6423
6368
|
className = _ref.className,
|
|
6424
6369
|
fluid = _ref.fluid,
|
|
@@ -6429,7 +6374,7 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6429
6374
|
|
|
6430
6375
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6431
6376
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6432
|
-
return /*#__PURE__*/
|
|
6377
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6433
6378
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6434
6379
|
ref: ref
|
|
6435
6380
|
}, props, {
|
|
@@ -6442,11 +6387,11 @@ Image.defaultProps = defaultProps$k;
|
|
|
6442
6387
|
var defaultProps$l = {
|
|
6443
6388
|
fluid: true
|
|
6444
6389
|
};
|
|
6445
|
-
var FigureImage =
|
|
6390
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6446
6391
|
var className = _ref.className,
|
|
6447
6392
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6448
6393
|
|
|
6449
|
-
return /*#__PURE__*/
|
|
6394
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6450
6395
|
ref: ref
|
|
6451
6396
|
}, props, {
|
|
6452
6397
|
className: classnames(className, 'figure-img')
|
|
@@ -6473,13 +6418,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6473
6418
|
});
|
|
6474
6419
|
|
|
6475
6420
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6476
|
-
return /*#__PURE__*/
|
|
6421
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6477
6422
|
type: "checkbox"
|
|
6478
6423
|
}, props)));
|
|
6479
6424
|
};
|
|
6480
6425
|
|
|
6481
6426
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6482
|
-
return /*#__PURE__*/
|
|
6427
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6483
6428
|
type: "radio"
|
|
6484
6429
|
}, props)));
|
|
6485
6430
|
};
|
|
@@ -6492,7 +6437,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6492
6437
|
* @property {InputGroupRadio} Radio
|
|
6493
6438
|
* @property {InputGroupCheckbox} Checkbox
|
|
6494
6439
|
*/
|
|
6495
|
-
var InputGroup =
|
|
6440
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6496
6441
|
var bsPrefix = _ref.bsPrefix,
|
|
6497
6442
|
size = _ref.size,
|
|
6498
6443
|
className = _ref.className,
|
|
@@ -6501,7 +6446,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6501
6446
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6502
6447
|
|
|
6503
6448
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6504
|
-
return /*#__PURE__*/
|
|
6449
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6505
6450
|
ref: ref
|
|
6506
6451
|
}, props, {
|
|
6507
6452
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6520,7 +6465,7 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6520
6465
|
var defaultProps$m = {
|
|
6521
6466
|
fluid: false
|
|
6522
6467
|
};
|
|
6523
|
-
var Jumbotron =
|
|
6468
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6524
6469
|
var _classes;
|
|
6525
6470
|
|
|
6526
6471
|
var _ref$as = _ref.as,
|
|
@@ -6532,7 +6477,7 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6532
6477
|
|
|
6533
6478
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6534
6479
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6535
|
-
return /*#__PURE__*/
|
|
6480
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6536
6481
|
ref: ref
|
|
6537
6482
|
}, props, {
|
|
6538
6483
|
className: classnames(className, classes)
|
|
@@ -6541,12 +6486,12 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6541
6486
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6542
6487
|
Jumbotron.displayName = 'Jumbotron';
|
|
6543
6488
|
|
|
6544
|
-
var TabContext =
|
|
6489
|
+
var TabContext = React.createContext(null);
|
|
6545
6490
|
|
|
6546
6491
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6547
6492
|
var noop$4 = function noop() {};
|
|
6548
6493
|
|
|
6549
|
-
var AbstractNav =
|
|
6494
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6550
6495
|
var _ref$as = _ref.as,
|
|
6551
6496
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6552
6497
|
onSelect = _ref.onSelect,
|
|
@@ -6627,9 +6572,9 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6627
6572
|
needsRefocusRef.current = false;
|
|
6628
6573
|
});
|
|
6629
6574
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6630
|
-
return /*#__PURE__*/
|
|
6575
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6631
6576
|
value: handleSelect
|
|
6632
|
-
}, /*#__PURE__*/
|
|
6577
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6633
6578
|
value: {
|
|
6634
6579
|
role: role,
|
|
6635
6580
|
// used by NavLink to determine it's role
|
|
@@ -6637,7 +6582,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6637
6582
|
getControlledId: getControlledId || noop$4,
|
|
6638
6583
|
getControllerId: getControllerId || noop$4
|
|
6639
6584
|
}
|
|
6640
|
-
}, /*#__PURE__*/
|
|
6585
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6641
6586
|
onKeyDown: handleKeyDown,
|
|
6642
6587
|
ref: mergedRef,
|
|
6643
6588
|
role: role
|
|
@@ -6647,7 +6592,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6647
6592
|
var defaultProps$n = {
|
|
6648
6593
|
disabled: false
|
|
6649
6594
|
};
|
|
6650
|
-
var AbstractNavItem =
|
|
6595
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6651
6596
|
var active = _ref.active,
|
|
6652
6597
|
className = _ref.className,
|
|
6653
6598
|
eventKey = _ref.eventKey,
|
|
@@ -6684,7 +6629,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6684
6629
|
if (onSelect) onSelect(navKey, e);
|
|
6685
6630
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6686
6631
|
});
|
|
6687
|
-
return /*#__PURE__*/
|
|
6632
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6688
6633
|
ref: ref,
|
|
6689
6634
|
onClick: handleOnclick,
|
|
6690
6635
|
className: classnames(className, isActive && 'active')
|
|
@@ -6697,7 +6642,7 @@ var defaultProps$o = {
|
|
|
6697
6642
|
active: false,
|
|
6698
6643
|
disabled: false
|
|
6699
6644
|
};
|
|
6700
|
-
var ListGroupItem =
|
|
6645
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6701
6646
|
var bsPrefix = _ref.bsPrefix,
|
|
6702
6647
|
active = _ref.active,
|
|
6703
6648
|
disabled = _ref.disabled,
|
|
@@ -6719,7 +6664,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6719
6664
|
|
|
6720
6665
|
if (onClick) onClick(event);
|
|
6721
6666
|
}, [disabled, onClick]);
|
|
6722
|
-
return /*#__PURE__*/
|
|
6667
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6723
6668
|
ref: ref
|
|
6724
6669
|
}, props, {
|
|
6725
6670
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6737,7 +6682,7 @@ var defaultProps$p = {
|
|
|
6737
6682
|
variant: undefined,
|
|
6738
6683
|
horizontal: undefined
|
|
6739
6684
|
};
|
|
6740
|
-
var ListGroup =
|
|
6685
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6741
6686
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6742
6687
|
activeKey: 'onSelect'
|
|
6743
6688
|
}),
|
|
@@ -6759,7 +6704,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6759
6704
|
}
|
|
6760
6705
|
|
|
6761
6706
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6762
|
-
return /*#__PURE__*/
|
|
6707
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6763
6708
|
ref: ref
|
|
6764
6709
|
}, controlledProps, {
|
|
6765
6710
|
as: as,
|
|
@@ -6771,7 +6716,7 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6771
6716
|
ListGroup.Item = ListGroupItem;
|
|
6772
6717
|
|
|
6773
6718
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6774
|
-
var Media =
|
|
6719
|
+
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6775
6720
|
function (_ref, ref) {
|
|
6776
6721
|
var bsPrefix = _ref.bsPrefix,
|
|
6777
6722
|
className = _ref.className,
|
|
@@ -6780,7 +6725,7 @@ function (_ref, ref) {
|
|
|
6780
6725
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6781
6726
|
|
|
6782
6727
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6783
|
-
return /*#__PURE__*/
|
|
6728
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6784
6729
|
ref: ref,
|
|
6785
6730
|
className: classnames(className, prefix)
|
|
6786
6731
|
}));
|
|
@@ -7168,7 +7113,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7168
7113
|
renderDialog = _ref.renderDialog,
|
|
7169
7114
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7170
7115
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7171
|
-
return /*#__PURE__*/
|
|
7116
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7172
7117
|
} : _ref$renderBackdrop,
|
|
7173
7118
|
providedManager = _ref.manager,
|
|
7174
7119
|
containerRef = _ref.container,
|
|
@@ -7326,12 +7271,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7326
7271
|
tabIndex: -1
|
|
7327
7272
|
});
|
|
7328
7273
|
|
|
7329
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7274
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7330
7275
|
role: 'document'
|
|
7331
7276
|
}));
|
|
7332
7277
|
|
|
7333
7278
|
if (Transition) {
|
|
7334
|
-
dialog = /*#__PURE__*/
|
|
7279
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7335
7280
|
appear: true,
|
|
7336
7281
|
unmountOnExit: true,
|
|
7337
7282
|
"in": !!show,
|
|
@@ -7354,14 +7299,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7354
7299
|
});
|
|
7355
7300
|
|
|
7356
7301
|
if (BackdropTransition) {
|
|
7357
|
-
backdropElement = /*#__PURE__*/
|
|
7302
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7358
7303
|
appear: true,
|
|
7359
7304
|
"in": !!show
|
|
7360
7305
|
}, backdropElement);
|
|
7361
7306
|
}
|
|
7362
7307
|
}
|
|
7363
7308
|
|
|
7364
|
-
return /*#__PURE__*/
|
|
7309
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7365
7310
|
});
|
|
7366
7311
|
var propTypes$8 = {
|
|
7367
7312
|
/**
|
|
@@ -7600,12 +7545,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7600
7545
|
|
|
7601
7546
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7602
7547
|
|
|
7603
|
-
var ModalContext =
|
|
7548
|
+
var ModalContext = React.createContext({
|
|
7604
7549
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7605
7550
|
onHide: function onHide() {}
|
|
7606
7551
|
});
|
|
7607
7552
|
|
|
7608
|
-
var ModalDialog =
|
|
7553
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7609
7554
|
var bsPrefix = _ref.bsPrefix,
|
|
7610
7555
|
className = _ref.className,
|
|
7611
7556
|
contentClassName = _ref.contentClassName,
|
|
@@ -7617,10 +7562,10 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7617
7562
|
|
|
7618
7563
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7619
7564
|
var dialogClass = bsPrefix + "-dialog";
|
|
7620
|
-
return /*#__PURE__*/
|
|
7565
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7621
7566
|
ref: ref,
|
|
7622
7567
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7623
|
-
}), /*#__PURE__*/
|
|
7568
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7624
7569
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7625
7570
|
}, children));
|
|
7626
7571
|
});
|
|
@@ -7632,7 +7577,7 @@ var defaultProps$q = {
|
|
|
7632
7577
|
closeLabel: 'Close',
|
|
7633
7578
|
closeButton: false
|
|
7634
7579
|
};
|
|
7635
|
-
var ModalHeader =
|
|
7580
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7636
7581
|
var bsPrefix = _ref.bsPrefix,
|
|
7637
7582
|
closeLabel = _ref.closeLabel,
|
|
7638
7583
|
closeButton = _ref.closeButton,
|
|
@@ -7647,11 +7592,11 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7647
7592
|
if (context) context.onHide();
|
|
7648
7593
|
if (onHide) onHide();
|
|
7649
7594
|
});
|
|
7650
|
-
return /*#__PURE__*/
|
|
7595
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7651
7596
|
ref: ref
|
|
7652
7597
|
}, props, {
|
|
7653
7598
|
className: classnames(className, bsPrefix)
|
|
7654
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7599
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7655
7600
|
label: closeLabel,
|
|
7656
7601
|
onClick: handleClick
|
|
7657
7602
|
}));
|
|
@@ -7678,16 +7623,16 @@ var defaultProps$r = {
|
|
|
7678
7623
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7679
7624
|
|
|
7680
7625
|
function DialogTransition(props) {
|
|
7681
|
-
return /*#__PURE__*/
|
|
7626
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7682
7627
|
}
|
|
7683
7628
|
|
|
7684
7629
|
function BackdropTransition(props) {
|
|
7685
|
-
return /*#__PURE__*/
|
|
7630
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7686
7631
|
}
|
|
7687
7632
|
/* eslint-enable no-use-before-define */
|
|
7688
7633
|
|
|
7689
7634
|
|
|
7690
|
-
var Modal$1 =
|
|
7635
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7691
7636
|
var bsPrefix = _ref.bsPrefix,
|
|
7692
7637
|
className = _ref.className,
|
|
7693
7638
|
style = _ref.style,
|
|
@@ -7882,7 +7827,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7882
7827
|
};
|
|
7883
7828
|
|
|
7884
7829
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7885
|
-
return /*#__PURE__*/
|
|
7830
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7886
7831
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7887
7832
|
}));
|
|
7888
7833
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7895,7 +7840,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7895
7840
|
}
|
|
7896
7841
|
|
|
7897
7842
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7898
|
-
return /*#__PURE__*/
|
|
7843
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7899
7844
|
role: "dialog"
|
|
7900
7845
|
}, dialogProps, {
|
|
7901
7846
|
style: baseModalStyle,
|
|
@@ -7903,7 +7848,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7903
7848
|
onClick: backdrop ? handleClick : undefined,
|
|
7904
7849
|
onMouseUp: handleMouseUp,
|
|
7905
7850
|
"aria-labelledby": ariaLabelledby
|
|
7906
|
-
}), /*#__PURE__*/
|
|
7851
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7907
7852
|
role: "document",
|
|
7908
7853
|
onMouseDown: handleDialogMouseDown,
|
|
7909
7854
|
className: dialogClassName,
|
|
@@ -7911,9 +7856,9 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7911
7856
|
}), children));
|
|
7912
7857
|
};
|
|
7913
7858
|
|
|
7914
|
-
return /*#__PURE__*/
|
|
7859
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7915
7860
|
value: modalContext
|
|
7916
|
-
}, /*#__PURE__*/
|
|
7861
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7917
7862
|
show: show,
|
|
7918
7863
|
ref: setModalRef,
|
|
7919
7864
|
backdrop: backdrop,
|
|
@@ -7951,7 +7896,7 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7951
7896
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7952
7897
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7953
7898
|
|
|
7954
|
-
var NavItem =
|
|
7899
|
+
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7955
7900
|
function (_ref, ref) {
|
|
7956
7901
|
var bsPrefix = _ref.bsPrefix,
|
|
7957
7902
|
className = _ref.className,
|
|
@@ -7961,7 +7906,7 @@ function (_ref, ref) {
|
|
|
7961
7906
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7962
7907
|
|
|
7963
7908
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7964
|
-
return /*#__PURE__*/
|
|
7909
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
7965
7910
|
ref: ref,
|
|
7966
7911
|
className: classnames(className, bsPrefix)
|
|
7967
7912
|
}), children);
|
|
@@ -7972,7 +7917,7 @@ var defaultProps$s = {
|
|
|
7972
7917
|
disabled: false,
|
|
7973
7918
|
as: SafeAnchor
|
|
7974
7919
|
};
|
|
7975
|
-
var NavLink =
|
|
7920
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
7976
7921
|
var bsPrefix = _ref.bsPrefix,
|
|
7977
7922
|
disabled = _ref.disabled,
|
|
7978
7923
|
className = _ref.className,
|
|
@@ -7983,7 +7928,7 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7983
7928
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7984
7929
|
|
|
7985
7930
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7986
|
-
return /*#__PURE__*/
|
|
7931
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
7987
7932
|
href: href,
|
|
7988
7933
|
ref: ref,
|
|
7989
7934
|
eventKey: eventKey,
|
|
@@ -8000,7 +7945,7 @@ var defaultProps$t = {
|
|
|
8000
7945
|
justify: false,
|
|
8001
7946
|
fill: false
|
|
8002
7947
|
};
|
|
8003
|
-
var Nav =
|
|
7948
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8004
7949
|
var _classNames;
|
|
8005
7950
|
|
|
8006
7951
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8032,7 +7977,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8032
7977
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8033
7978
|
}
|
|
8034
7979
|
|
|
8035
|
-
return /*#__PURE__*/
|
|
7980
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8036
7981
|
as: as,
|
|
8037
7982
|
ref: ref,
|
|
8038
7983
|
activeKey: activeKey,
|
|
@@ -8044,7 +7989,7 @@ Nav.defaultProps = defaultProps$t;
|
|
|
8044
7989
|
Nav.Item = NavItem;
|
|
8045
7990
|
Nav.Link = NavLink;
|
|
8046
7991
|
|
|
8047
|
-
var NavbarBrand =
|
|
7992
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8048
7993
|
var bsPrefix = _ref.bsPrefix,
|
|
8049
7994
|
className = _ref.className,
|
|
8050
7995
|
as = _ref.as,
|
|
@@ -8052,23 +7997,23 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8052
7997
|
|
|
8053
7998
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8054
7999
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8055
|
-
return /*#__PURE__*/
|
|
8000
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8056
8001
|
ref: ref,
|
|
8057
8002
|
className: classnames(className, bsPrefix)
|
|
8058
8003
|
}));
|
|
8059
8004
|
});
|
|
8060
8005
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8061
8006
|
|
|
8062
|
-
var NavbarCollapse =
|
|
8007
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8063
8008
|
var children = _ref.children,
|
|
8064
8009
|
bsPrefix = _ref.bsPrefix,
|
|
8065
8010
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8066
8011
|
|
|
8067
8012
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8068
|
-
return /*#__PURE__*/
|
|
8069
|
-
return /*#__PURE__*/
|
|
8013
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8014
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8070
8015
|
in: !!(context && context.expanded)
|
|
8071
|
-
}, props), /*#__PURE__*/
|
|
8016
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8072
8017
|
ref: ref,
|
|
8073
8018
|
className: bsPrefix
|
|
8074
8019
|
}, children));
|
|
@@ -8079,7 +8024,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8079
8024
|
var defaultProps$u = {
|
|
8080
8025
|
label: 'Toggle navigation'
|
|
8081
8026
|
};
|
|
8082
|
-
var NavbarToggle =
|
|
8027
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8083
8028
|
var bsPrefix = _ref.bsPrefix,
|
|
8084
8029
|
className = _ref.className,
|
|
8085
8030
|
children = _ref.children,
|
|
@@ -8104,12 +8049,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8104
8049
|
props.type = 'button';
|
|
8105
8050
|
}
|
|
8106
8051
|
|
|
8107
|
-
return /*#__PURE__*/
|
|
8052
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8108
8053
|
ref: ref,
|
|
8109
8054
|
onClick: handleClick,
|
|
8110
8055
|
"aria-label": label,
|
|
8111
8056
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8112
|
-
}), children || /*#__PURE__*/
|
|
8057
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8113
8058
|
className: bsPrefix + "-icon"
|
|
8114
8059
|
}));
|
|
8115
8060
|
});
|
|
@@ -8124,7 +8069,7 @@ var defaultProps$v = {
|
|
|
8124
8069
|
variant: 'light',
|
|
8125
8070
|
collapseOnSelect: false
|
|
8126
8071
|
};
|
|
8127
|
-
var Navbar =
|
|
8072
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8128
8073
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8129
8074
|
expanded: 'onToggle'
|
|
8130
8075
|
}),
|
|
@@ -8172,11 +8117,11 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8172
8117
|
expanded: !!expanded
|
|
8173
8118
|
};
|
|
8174
8119
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8175
|
-
return /*#__PURE__*/
|
|
8120
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8176
8121
|
value: navbarContext
|
|
8177
|
-
}, /*#__PURE__*/
|
|
8122
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8178
8123
|
value: handleCollapse
|
|
8179
|
-
}, /*#__PURE__*/
|
|
8124
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8180
8125
|
ref: ref
|
|
8181
8126
|
}, controlledProps, {
|
|
8182
8127
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8225,7 +8170,7 @@ var propTypes$9 = {
|
|
|
8225
8170
|
/** @ignore */
|
|
8226
8171
|
bsPrefix: PropTypes.string
|
|
8227
8172
|
};
|
|
8228
|
-
var NavDropdown =
|
|
8173
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8229
8174
|
var id = _ref.id,
|
|
8230
8175
|
title = _ref.title,
|
|
8231
8176
|
children = _ref.children,
|
|
@@ -8237,18 +8182,18 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8237
8182
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8238
8183
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8239
8184
|
|
|
8240
|
-
return /*#__PURE__*/
|
|
8185
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8241
8186
|
ref: ref
|
|
8242
8187
|
}, props, {
|
|
8243
8188
|
as: NavItem
|
|
8244
|
-
}), /*#__PURE__*/
|
|
8189
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8245
8190
|
id: id,
|
|
8246
8191
|
eventKey: null,
|
|
8247
8192
|
active: active,
|
|
8248
8193
|
disabled: disabled,
|
|
8249
8194
|
childBsPrefix: bsPrefix,
|
|
8250
8195
|
as: NavLink
|
|
8251
|
-
}, title), /*#__PURE__*/
|
|
8196
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8252
8197
|
role: menuRole,
|
|
8253
8198
|
renderOnMount: renderMenuOnMount,
|
|
8254
8199
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8265,7 +8210,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8265
8210
|
* Built on top of `Popper.js`, the overlay component is
|
|
8266
8211
|
* great for custom tooltip overlays.
|
|
8267
8212
|
*/
|
|
8268
|
-
var Overlay = /*#__PURE__*/
|
|
8213
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8269
8214
|
var flip = props.flip,
|
|
8270
8215
|
offset = props.offset,
|
|
8271
8216
|
placement = props.placement,
|
|
@@ -8348,7 +8293,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8348
8293
|
onEnter = props.onEnter,
|
|
8349
8294
|
onEntering = props.onEntering,
|
|
8350
8295
|
onEntered = props.onEntered;
|
|
8351
|
-
child = /*#__PURE__*/
|
|
8296
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8352
8297
|
"in": props.show,
|
|
8353
8298
|
appear: true,
|
|
8354
8299
|
onExit: onExit,
|
|
@@ -8514,14 +8459,14 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8514
8459
|
};
|
|
8515
8460
|
|
|
8516
8461
|
return RefHolder;
|
|
8517
|
-
}(
|
|
8462
|
+
}(React.Component);
|
|
8518
8463
|
|
|
8519
8464
|
var defaultProps$w = {
|
|
8520
8465
|
active: false,
|
|
8521
8466
|
disabled: false,
|
|
8522
8467
|
activeLabel: '(current)'
|
|
8523
8468
|
};
|
|
8524
|
-
var PageItem =
|
|
8469
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8525
8470
|
var active = _ref.active,
|
|
8526
8471
|
disabled = _ref.disabled,
|
|
8527
8472
|
className = _ref.className,
|
|
@@ -8531,17 +8476,17 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8531
8476
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8532
8477
|
|
|
8533
8478
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8534
|
-
return /*#__PURE__*/
|
|
8479
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8535
8480
|
ref: ref,
|
|
8536
8481
|
style: style,
|
|
8537
8482
|
className: classnames(className, 'page-item', {
|
|
8538
8483
|
active: active,
|
|
8539
8484
|
disabled: disabled
|
|
8540
8485
|
})
|
|
8541
|
-
}, /*#__PURE__*/
|
|
8486
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8542
8487
|
className: "page-link",
|
|
8543
8488
|
disabled: disabled
|
|
8544
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8489
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8545
8490
|
className: "sr-only"
|
|
8546
8491
|
}, activeLabel)));
|
|
8547
8492
|
});
|
|
@@ -8557,9 +8502,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8557
8502
|
var children = _ref2.children,
|
|
8558
8503
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8559
8504
|
|
|
8560
|
-
return /*#__PURE__*/
|
|
8505
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8561
8506
|
"aria-hidden": "true"
|
|
8562
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8507
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8563
8508
|
className: "sr-only"
|
|
8564
8509
|
}, label));
|
|
8565
8510
|
}
|
|
@@ -8582,7 +8527,7 @@ var Last = createButton('Last', '»');
|
|
|
8582
8527
|
* @property {PageItem} Next
|
|
8583
8528
|
* @property {PageItem} Last
|
|
8584
8529
|
*/
|
|
8585
|
-
var Pagination =
|
|
8530
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8586
8531
|
var bsPrefix = _ref.bsPrefix,
|
|
8587
8532
|
className = _ref.className,
|
|
8588
8533
|
children = _ref.children,
|
|
@@ -8590,7 +8535,7 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8590
8535
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8591
8536
|
|
|
8592
8537
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8593
|
-
return /*#__PURE__*/
|
|
8538
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8594
8539
|
ref: ref
|
|
8595
8540
|
}, props, {
|
|
8596
8541
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8603,7 +8548,7 @@ Pagination.Item = PageItem;
|
|
|
8603
8548
|
Pagination.Next = Next;
|
|
8604
8549
|
Pagination.Last = Last;
|
|
8605
8550
|
|
|
8606
|
-
var PopoverTitle =
|
|
8551
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8607
8552
|
var _ref$as = _ref.as,
|
|
8608
8553
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8609
8554
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8612,14 +8557,14 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8612
8557
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8613
8558
|
|
|
8614
8559
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8615
|
-
return /*#__PURE__*/
|
|
8560
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8616
8561
|
ref: ref
|
|
8617
8562
|
}, props, {
|
|
8618
8563
|
className: classnames(bsPrefix, className)
|
|
8619
8564
|
}), children);
|
|
8620
8565
|
});
|
|
8621
8566
|
|
|
8622
|
-
var PopoverContent =
|
|
8567
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8623
8568
|
var _ref$as = _ref.as,
|
|
8624
8569
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8625
8570
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8628,7 +8573,7 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8628
8573
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8629
8574
|
|
|
8630
8575
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8631
|
-
return /*#__PURE__*/
|
|
8576
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8632
8577
|
ref: ref
|
|
8633
8578
|
}, props, {
|
|
8634
8579
|
className: classnames(className, bsPrefix)
|
|
@@ -8638,7 +8583,7 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8638
8583
|
var defaultProps$x = {
|
|
8639
8584
|
placement: 'right'
|
|
8640
8585
|
};
|
|
8641
|
-
var Popover =
|
|
8586
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8642
8587
|
var bsPrefix = _ref.bsPrefix,
|
|
8643
8588
|
placement = _ref.placement,
|
|
8644
8589
|
className = _ref.className,
|
|
@@ -8655,15 +8600,15 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8655
8600
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8656
8601
|
primaryPlacement = _ref2[0];
|
|
8657
8602
|
|
|
8658
|
-
return /*#__PURE__*/
|
|
8603
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8659
8604
|
ref: ref,
|
|
8660
8605
|
role: "tooltip",
|
|
8661
8606
|
style: style,
|
|
8662
8607
|
"x-placement": primaryPlacement,
|
|
8663
8608
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8664
|
-
}, props), /*#__PURE__*/
|
|
8609
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8665
8610
|
className: "arrow"
|
|
8666
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8611
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8667
8612
|
});
|
|
8668
8613
|
Popover.defaultProps = defaultProps$x;
|
|
8669
8614
|
Popover.Title = PopoverTitle;
|
|
@@ -8701,7 +8646,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8701
8646
|
bsPrefix = _ref.bsPrefix,
|
|
8702
8647
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8703
8648
|
|
|
8704
|
-
return /*#__PURE__*/
|
|
8649
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8705
8650
|
ref: ref
|
|
8706
8651
|
}, props, {
|
|
8707
8652
|
role: "progressbar",
|
|
@@ -8712,12 +8657,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8712
8657
|
"aria-valuenow": now,
|
|
8713
8658
|
"aria-valuemin": min,
|
|
8714
8659
|
"aria-valuemax": max
|
|
8715
|
-
}), srOnly ? /*#__PURE__*/
|
|
8660
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8716
8661
|
className: "sr-only"
|
|
8717
8662
|
}, label) : label);
|
|
8718
8663
|
}
|
|
8719
8664
|
|
|
8720
|
-
var ProgressBar =
|
|
8665
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8721
8666
|
var isChild = _ref2.isChild,
|
|
8722
8667
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8723
8668
|
|
|
@@ -8740,7 +8685,7 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8740
8685
|
children = props.children,
|
|
8741
8686
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8742
8687
|
|
|
8743
|
-
return /*#__PURE__*/
|
|
8688
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8744
8689
|
ref: ref
|
|
8745
8690
|
}, wrapperProps, {
|
|
8746
8691
|
className: classnames(className, bsPrefix)
|
|
@@ -8766,7 +8711,7 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8766
8711
|
var defaultProps$z = {
|
|
8767
8712
|
aspectRatio: '1by1'
|
|
8768
8713
|
};
|
|
8769
|
-
var ResponsiveEmbed =
|
|
8714
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8770
8715
|
var bsPrefix = _ref.bsPrefix,
|
|
8771
8716
|
className = _ref.className,
|
|
8772
8717
|
children = _ref.children,
|
|
@@ -8774,12 +8719,12 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8774
8719
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8775
8720
|
|
|
8776
8721
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8777
|
-
var child =
|
|
8778
|
-
return /*#__PURE__*/
|
|
8722
|
+
var child = React.Children.only(children);
|
|
8723
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8779
8724
|
ref: ref
|
|
8780
8725
|
}, props, {
|
|
8781
8726
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8782
|
-
}),
|
|
8727
|
+
}), React.cloneElement(child, {
|
|
8783
8728
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8784
8729
|
}));
|
|
8785
8730
|
});
|
|
@@ -8789,7 +8734,7 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8789
8734
|
var defaultProps$A = {
|
|
8790
8735
|
noGutters: false
|
|
8791
8736
|
};
|
|
8792
|
-
var Row =
|
|
8737
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8793
8738
|
var bsPrefix = _ref.bsPrefix,
|
|
8794
8739
|
className = _ref.className,
|
|
8795
8740
|
noGutters = _ref.noGutters,
|
|
@@ -8814,7 +8759,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8814
8759
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8815
8760
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8816
8761
|
});
|
|
8817
|
-
return /*#__PURE__*/
|
|
8762
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8818
8763
|
ref: ref
|
|
8819
8764
|
}, props, {
|
|
8820
8765
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8823,7 +8768,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8823
8768
|
Row.displayName = 'Row';
|
|
8824
8769
|
Row.defaultProps = defaultProps$A;
|
|
8825
8770
|
|
|
8826
|
-
var Spinner =
|
|
8771
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8827
8772
|
var bsPrefix = _ref.bsPrefix,
|
|
8828
8773
|
variant = _ref.variant,
|
|
8829
8774
|
animation = _ref.animation,
|
|
@@ -8836,7 +8781,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8836
8781
|
|
|
8837
8782
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8838
8783
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8839
|
-
return /*#__PURE__*/
|
|
8784
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8840
8785
|
ref: ref
|
|
8841
8786
|
}, props, {
|
|
8842
8787
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8910,7 +8855,7 @@ var defaultProps$B = {
|
|
|
8910
8855
|
toggleLabel: 'Toggle dropdown',
|
|
8911
8856
|
type: 'button'
|
|
8912
8857
|
};
|
|
8913
|
-
var SplitButton =
|
|
8858
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8914
8859
|
var id = _ref.id,
|
|
8915
8860
|
bsPrefix = _ref.bsPrefix,
|
|
8916
8861
|
size = _ref.size,
|
|
@@ -8928,11 +8873,11 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8928
8873
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8929
8874
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8930
8875
|
|
|
8931
|
-
return /*#__PURE__*/
|
|
8876
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8932
8877
|
ref: ref
|
|
8933
8878
|
}, props, {
|
|
8934
8879
|
as: ButtonGroup
|
|
8935
|
-
}), /*#__PURE__*/
|
|
8880
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8936
8881
|
size: size,
|
|
8937
8882
|
variant: variant,
|
|
8938
8883
|
disabled: props.disabled,
|
|
@@ -8941,16 +8886,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8941
8886
|
target: target,
|
|
8942
8887
|
onClick: onClick,
|
|
8943
8888
|
type: type
|
|
8944
|
-
}, title), /*#__PURE__*/
|
|
8889
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8945
8890
|
split: true,
|
|
8946
8891
|
id: id ? id.toString() : undefined,
|
|
8947
8892
|
size: size,
|
|
8948
8893
|
variant: variant,
|
|
8949
8894
|
disabled: props.disabled,
|
|
8950
8895
|
childBsPrefix: bsPrefix
|
|
8951
|
-
}, /*#__PURE__*/
|
|
8896
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8952
8897
|
className: "sr-only"
|
|
8953
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8898
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8954
8899
|
align: menuAlign,
|
|
8955
8900
|
role: menuRole,
|
|
8956
8901
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8994,14 +8939,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
8994
8939
|
}
|
|
8995
8940
|
};
|
|
8996
8941
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8997
|
-
return /*#__PURE__*/
|
|
8942
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
8998
8943
|
value: tabContext
|
|
8999
|
-
}, /*#__PURE__*/
|
|
8944
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9000
8945
|
value: onSelect || null
|
|
9001
8946
|
}, children));
|
|
9002
8947
|
};
|
|
9003
8948
|
|
|
9004
|
-
var TabContent =
|
|
8949
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9005
8950
|
var bsPrefix = _ref.bsPrefix,
|
|
9006
8951
|
_ref$as = _ref.as,
|
|
9007
8952
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -9009,7 +8954,7 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9009
8954
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9010
8955
|
|
|
9011
8956
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9012
|
-
return /*#__PURE__*/
|
|
8957
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9013
8958
|
ref: ref
|
|
9014
8959
|
}, props, {
|
|
9015
8960
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9037,7 +8982,7 @@ function useTabContext(props) {
|
|
|
9037
8982
|
});
|
|
9038
8983
|
}
|
|
9039
8984
|
|
|
9040
|
-
var TabPane =
|
|
8985
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9041
8986
|
var _useTabContext = useTabContext(props),
|
|
9042
8987
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9043
8988
|
className = _useTabContext.className,
|
|
@@ -9058,7 +9003,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9058
9003
|
|
|
9059
9004
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9060
9005
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9061
|
-
var pane = /*#__PURE__*/
|
|
9006
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9062
9007
|
ref: ref,
|
|
9063
9008
|
role: "tabpanel",
|
|
9064
9009
|
"aria-hidden": !active,
|
|
@@ -9066,7 +9011,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9066
9011
|
active: active
|
|
9067
9012
|
})
|
|
9068
9013
|
}));
|
|
9069
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9014
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9070
9015
|
in: active,
|
|
9071
9016
|
onEnter: onEnter,
|
|
9072
9017
|
onEntering: onEntering,
|
|
@@ -9079,9 +9024,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9079
9024
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9080
9025
|
// conflict with the top level one.
|
|
9081
9026
|
|
|
9082
|
-
return /*#__PURE__*/
|
|
9027
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9083
9028
|
value: null
|
|
9084
|
-
}, /*#__PURE__*/
|
|
9029
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9085
9030
|
value: null
|
|
9086
9031
|
}, pane));
|
|
9087
9032
|
});
|
|
@@ -9102,13 +9047,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9102
9047
|
};
|
|
9103
9048
|
|
|
9104
9049
|
return Tab;
|
|
9105
|
-
}(
|
|
9050
|
+
}(React.Component);
|
|
9106
9051
|
|
|
9107
9052
|
Tab.Container = TabContainer;
|
|
9108
9053
|
Tab.Content = TabContent;
|
|
9109
9054
|
Tab.Pane = TabPane;
|
|
9110
9055
|
|
|
9111
|
-
var Table =
|
|
9056
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9112
9057
|
var bsPrefix = _ref.bsPrefix,
|
|
9113
9058
|
className = _ref.className,
|
|
9114
9059
|
striped = _ref.striped,
|
|
@@ -9122,7 +9067,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9122
9067
|
|
|
9123
9068
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9124
9069
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9125
|
-
var table = /*#__PURE__*/
|
|
9070
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9126
9071
|
className: classes,
|
|
9127
9072
|
ref: ref
|
|
9128
9073
|
}));
|
|
@@ -9134,7 +9079,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9134
9079
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9135
9080
|
}
|
|
9136
9081
|
|
|
9137
|
-
return /*#__PURE__*/
|
|
9082
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9138
9083
|
className: responsiveClass
|
|
9139
9084
|
}, table);
|
|
9140
9085
|
}
|
|
@@ -9142,7 +9087,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9142
9087
|
return table;
|
|
9143
9088
|
});
|
|
9144
9089
|
|
|
9145
|
-
var ToastContext =
|
|
9090
|
+
var ToastContext = React.createContext({
|
|
9146
9091
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9147
9092
|
onClose: function onClose() {}
|
|
9148
9093
|
});
|
|
@@ -9151,7 +9096,7 @@ var defaultProps$C = {
|
|
|
9151
9096
|
closeLabel: 'Close',
|
|
9152
9097
|
closeButton: true
|
|
9153
9098
|
};
|
|
9154
|
-
var ToastHeader =
|
|
9099
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9155
9100
|
var bsPrefix = _ref.bsPrefix,
|
|
9156
9101
|
closeLabel = _ref.closeLabel,
|
|
9157
9102
|
closeButton = _ref.closeButton,
|
|
@@ -9166,11 +9111,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9166
9111
|
context.onClose(e);
|
|
9167
9112
|
}
|
|
9168
9113
|
});
|
|
9169
|
-
return /*#__PURE__*/
|
|
9114
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9170
9115
|
ref: ref
|
|
9171
9116
|
}, props, {
|
|
9172
9117
|
className: classnames(bsPrefix, className)
|
|
9173
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9118
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9174
9119
|
label: closeLabel,
|
|
9175
9120
|
onClick: handleClick,
|
|
9176
9121
|
className: "ml-2 mb-1",
|
|
@@ -9182,7 +9127,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9182
9127
|
|
|
9183
9128
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9184
9129
|
|
|
9185
|
-
var Toast =
|
|
9130
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9186
9131
|
var bsPrefix = _ref.bsPrefix,
|
|
9187
9132
|
className = _ref.className,
|
|
9188
9133
|
children = _ref.children,
|
|
@@ -9225,16 +9170,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9225
9170
|
};
|
|
9226
9171
|
}, [onClose]);
|
|
9227
9172
|
var hasAnimation = !!(Transition && animation);
|
|
9228
|
-
var toast = /*#__PURE__*/
|
|
9173
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9229
9174
|
ref: ref,
|
|
9230
9175
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9231
9176
|
role: "alert",
|
|
9232
9177
|
"aria-live": "assertive",
|
|
9233
9178
|
"aria-atomic": "true"
|
|
9234
9179
|
}), children);
|
|
9235
|
-
return /*#__PURE__*/
|
|
9180
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9236
9181
|
value: toastContext
|
|
9237
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9182
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9238
9183
|
in: show,
|
|
9239
9184
|
unmountOnExit: true
|
|
9240
9185
|
}, toast) : toast);
|
|
@@ -9249,7 +9194,7 @@ var noop$5 = function noop() {
|
|
|
9249
9194
|
return undefined;
|
|
9250
9195
|
};
|
|
9251
9196
|
|
|
9252
|
-
var ToggleButton =
|
|
9197
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9253
9198
|
var children = _ref.children,
|
|
9254
9199
|
name = _ref.name,
|
|
9255
9200
|
className = _ref.className,
|
|
@@ -9271,13 +9216,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9271
9216
|
var handleBlur = useCallback(function (e) {
|
|
9272
9217
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9273
9218
|
}, []);
|
|
9274
|
-
return /*#__PURE__*/
|
|
9219
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9275
9220
|
ref: ref,
|
|
9276
9221
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9277
9222
|
type: undefined,
|
|
9278
9223
|
active: !!checked,
|
|
9279
9224
|
as: "label"
|
|
9280
|
-
}), /*#__PURE__*/
|
|
9225
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9281
9226
|
name: name,
|
|
9282
9227
|
type: type,
|
|
9283
9228
|
value: value,
|
|
@@ -9296,7 +9241,7 @@ var defaultProps$D = {
|
|
|
9296
9241
|
type: 'radio',
|
|
9297
9242
|
vertical: false
|
|
9298
9243
|
};
|
|
9299
|
-
var ToggleButtonGroup =
|
|
9244
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9300
9245
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9301
9246
|
value: 'onChange'
|
|
9302
9247
|
}),
|
|
@@ -9334,7 +9279,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9334
9279
|
};
|
|
9335
9280
|
|
|
9336
9281
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9337
|
-
return /*#__PURE__*/
|
|
9282
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9338
9283
|
ref: ref,
|
|
9339
9284
|
toggle: true
|
|
9340
9285
|
}), map(children, function (child) {
|
|
@@ -9347,7 +9292,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9347
9292
|
return handleToggle(childVal, e);
|
|
9348
9293
|
};
|
|
9349
9294
|
|
|
9350
|
-
return
|
|
9295
|
+
return React.cloneElement(child, {
|
|
9351
9296
|
type: type,
|
|
9352
9297
|
name: child.name || name,
|
|
9353
9298
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9361,7 +9306,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9361
9306
|
var defaultProps$E = {
|
|
9362
9307
|
placement: 'right'
|
|
9363
9308
|
};
|
|
9364
|
-
var Tooltip =
|
|
9309
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9365
9310
|
var bsPrefix = _ref.bsPrefix,
|
|
9366
9311
|
placement = _ref.placement,
|
|
9367
9312
|
className = _ref.className,
|
|
@@ -9377,22 +9322,22 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9377
9322
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9378
9323
|
primaryPlacement = _ref2[0];
|
|
9379
9324
|
|
|
9380
|
-
return /*#__PURE__*/
|
|
9325
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9381
9326
|
ref: ref,
|
|
9382
9327
|
style: style,
|
|
9383
9328
|
role: "tooltip",
|
|
9384
9329
|
"x-placement": primaryPlacement,
|
|
9385
9330
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9386
|
-
}, props), /*#__PURE__*/
|
|
9331
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9387
9332
|
className: "arrow"
|
|
9388
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9333
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9389
9334
|
className: bsPrefix + "-inner"
|
|
9390
9335
|
}, children));
|
|
9391
9336
|
});
|
|
9392
9337
|
Tooltip.defaultProps = defaultProps$E;
|
|
9393
9338
|
Tooltip.displayName = 'Tooltip';
|
|
9394
9339
|
|
|
9395
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9340
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9396
9341
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9397
9342
|
styleInject(css);
|
|
9398
9343
|
|
|
@@ -9403,54 +9348,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9403
9348
|
client = props.client;
|
|
9404
9349
|
|
|
9405
9350
|
|
|
9406
|
-
return
|
|
9351
|
+
return React.createElement(
|
|
9407
9352
|
'div',
|
|
9408
9353
|
{ className: styles.article },
|
|
9409
|
-
|
|
9354
|
+
React.createElement(
|
|
9410
9355
|
'a',
|
|
9411
9356
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9412
|
-
|
|
9357
|
+
React.createElement(
|
|
9413
9358
|
'div',
|
|
9414
9359
|
{ className: styles.thumb },
|
|
9415
|
-
|
|
9360
|
+
React.createElement(
|
|
9416
9361
|
'figure',
|
|
9417
9362
|
null,
|
|
9418
|
-
|
|
9363
|
+
React.createElement(
|
|
9419
9364
|
LazyLoad,
|
|
9420
9365
|
null,
|
|
9421
|
-
|
|
9366
|
+
React.createElement('img', {
|
|
9422
9367
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9423
9368
|
})
|
|
9424
9369
|
)
|
|
9425
9370
|
)
|
|
9426
9371
|
),
|
|
9427
|
-
|
|
9372
|
+
React.createElement(
|
|
9428
9373
|
'div',
|
|
9429
9374
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9430
|
-
|
|
9375
|
+
React.createElement(
|
|
9431
9376
|
'div',
|
|
9432
9377
|
{ className: styles.name },
|
|
9433
9378
|
data.name
|
|
9434
9379
|
),
|
|
9435
|
-
data.published &&
|
|
9380
|
+
data.published && React.createElement(
|
|
9436
9381
|
'p',
|
|
9437
9382
|
{ className: styles.published },
|
|
9438
9383
|
moment(data.published).format('MMMM Do YYYY')
|
|
9439
9384
|
),
|
|
9440
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9385
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9441
9386
|
'p',
|
|
9442
9387
|
{ className: styles.author },
|
|
9443
9388
|
'By ',
|
|
9444
|
-
|
|
9389
|
+
React.createElement(
|
|
9445
9390
|
'span',
|
|
9446
9391
|
null,
|
|
9447
9392
|
data.authorMapping.displayName
|
|
9448
9393
|
)
|
|
9449
9394
|
),
|
|
9450
|
-
data.description &&
|
|
9395
|
+
data.description && React.createElement(
|
|
9451
9396
|
'div',
|
|
9452
9397
|
{ className: 'media-series-desc' },
|
|
9453
|
-
|
|
9398
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9454
9399
|
)
|
|
9455
9400
|
)
|
|
9456
9401
|
)
|
|
@@ -9479,11 +9424,11 @@ var Filter = function Filter(_ref) {
|
|
|
9479
9424
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9480
9425
|
grandChildData = _useState6[0],
|
|
9481
9426
|
setGrandChildData = _useState6[1];
|
|
9482
|
-
/*
|
|
9483
|
-
{parent: showAll,
|
|
9484
|
-
chidlren: show selected from parent,
|
|
9485
|
-
grandchildren: show selected from children
|
|
9486
|
-
}
|
|
9427
|
+
/*
|
|
9428
|
+
{parent: showAll,
|
|
9429
|
+
chidlren: show selected from parent,
|
|
9430
|
+
grandchildren: show selected from children
|
|
9431
|
+
}
|
|
9487
9432
|
*/
|
|
9488
9433
|
|
|
9489
9434
|
|
|
@@ -9547,13 +9492,13 @@ var Filter = function Filter(_ref) {
|
|
|
9547
9492
|
}
|
|
9548
9493
|
};
|
|
9549
9494
|
|
|
9550
|
-
return
|
|
9495
|
+
return React.createElement(
|
|
9551
9496
|
'div',
|
|
9552
9497
|
{ className: 'flex-container' },
|
|
9553
|
-
parentData &&
|
|
9498
|
+
parentData && React.createElement(
|
|
9554
9499
|
DropdownButton,
|
|
9555
9500
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9556
|
-
|
|
9501
|
+
React.createElement(
|
|
9557
9502
|
Dropdown$1.Item,
|
|
9558
9503
|
{ onSelect: function onSelect() {
|
|
9559
9504
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9562,7 +9507,7 @@ var Filter = function Filter(_ref) {
|
|
|
9562
9507
|
),
|
|
9563
9508
|
parentData.data.map(function (docGroup) {
|
|
9564
9509
|
if (!docGroup._id) return null;
|
|
9565
|
-
return
|
|
9510
|
+
return React.createElement(
|
|
9566
9511
|
Dropdown$1.Item,
|
|
9567
9512
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9568
9513
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9571,10 +9516,10 @@ var Filter = function Filter(_ref) {
|
|
|
9571
9516
|
);
|
|
9572
9517
|
})
|
|
9573
9518
|
),
|
|
9574
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9519
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9575
9520
|
DropdownButton,
|
|
9576
9521
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9577
|
-
|
|
9522
|
+
React.createElement(
|
|
9578
9523
|
Dropdown$1.Item,
|
|
9579
9524
|
{ onSelect: function onSelect() {
|
|
9580
9525
|
return handleFilterSelect({}, 'child');
|
|
@@ -9583,7 +9528,7 @@ var Filter = function Filter(_ref) {
|
|
|
9583
9528
|
),
|
|
9584
9529
|
childData.data.map(function (docGroup) {
|
|
9585
9530
|
if (!docGroup._id) return null;
|
|
9586
|
-
return
|
|
9531
|
+
return React.createElement(
|
|
9587
9532
|
Dropdown$1.Item,
|
|
9588
9533
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9589
9534
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9592,10 +9537,10 @@ var Filter = function Filter(_ref) {
|
|
|
9592
9537
|
);
|
|
9593
9538
|
})
|
|
9594
9539
|
),
|
|
9595
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9540
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9596
9541
|
DropdownButton,
|
|
9597
9542
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9598
|
-
|
|
9543
|
+
React.createElement(
|
|
9599
9544
|
Dropdown$1.Item,
|
|
9600
9545
|
{ onSelect: function onSelect() {
|
|
9601
9546
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9604,7 +9549,7 @@ var Filter = function Filter(_ref) {
|
|
|
9604
9549
|
),
|
|
9605
9550
|
grandChildData.data.map(function (docGroup) {
|
|
9606
9551
|
if (!docGroup._id) return null;
|
|
9607
|
-
return
|
|
9552
|
+
return React.createElement(
|
|
9608
9553
|
Dropdown$1.Item,
|
|
9609
9554
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9610
9555
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9613,7 +9558,7 @@ var Filter = function Filter(_ref) {
|
|
|
9613
9558
|
);
|
|
9614
9559
|
})
|
|
9615
9560
|
),
|
|
9616
|
-
|
|
9561
|
+
React.createElement(
|
|
9617
9562
|
'style',
|
|
9618
9563
|
{ jsx: 'true' },
|
|
9619
9564
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9703,27 +9648,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9703
9648
|
}();
|
|
9704
9649
|
|
|
9705
9650
|
if (props.statusCode === 404) {
|
|
9706
|
-
return
|
|
9651
|
+
return React.createElement(
|
|
9707
9652
|
'div',
|
|
9708
9653
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9709
|
-
|
|
9654
|
+
React.createElement(
|
|
9710
9655
|
'h3',
|
|
9711
9656
|
null,
|
|
9712
9657
|
'404: Resource not found'
|
|
9713
9658
|
),
|
|
9714
|
-
|
|
9659
|
+
React.createElement(
|
|
9715
9660
|
'p',
|
|
9716
9661
|
null,
|
|
9717
9662
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9718
9663
|
),
|
|
9719
|
-
|
|
9664
|
+
React.createElement(
|
|
9720
9665
|
'p',
|
|
9721
9666
|
null,
|
|
9722
9667
|
'Click here to',
|
|
9723
|
-
|
|
9668
|
+
React.createElement(
|
|
9724
9669
|
Link,
|
|
9725
9670
|
{ href: '/' },
|
|
9726
|
-
|
|
9671
|
+
React.createElement(
|
|
9727
9672
|
'a',
|
|
9728
9673
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9729
9674
|
' return to homepage.'
|
|
@@ -9733,17 +9678,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9733
9678
|
);
|
|
9734
9679
|
}
|
|
9735
9680
|
|
|
9736
|
-
return
|
|
9681
|
+
return React.createElement(
|
|
9737
9682
|
'div',
|
|
9738
9683
|
{ className: 'mb-5' },
|
|
9739
|
-
props.docGroup && props.docGroup.description &&
|
|
9740
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9684
|
+
props.docGroup && props.docGroup.description && React.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9685
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9741
9686
|
'div',
|
|
9742
9687
|
{ className: '' },
|
|
9743
|
-
|
|
9744
|
-
|
|
9688
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9689
|
+
React.createElement('hr', null)
|
|
9745
9690
|
),
|
|
9746
|
-
seriesData &&
|
|
9691
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9747
9692
|
deck: MediaSeriesCard,
|
|
9748
9693
|
variant: 'left',
|
|
9749
9694
|
defaultImage: '/placeholder.jpg',
|