@mjhls/mjh-framework 1.0.854 → 1.0.855
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +23 -24
- package/dist/cjs/AD300x250x600.js +23 -24
- package/dist/cjs/AD728x90.js +26 -27
- package/dist/cjs/ADFloatingFooter.js +22 -23
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +22 -23
- package/dist/cjs/{ADInfeed-fb136f1d.js → ADInfeed-ff26342c.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +22 -23
- package/dist/cjs/ADSponsoredResources.js +22 -23
- package/dist/cjs/ADWebcast.js +22 -23
- package/dist/cjs/ADWelcome.js +19 -20
- package/dist/cjs/{ADlgInfeed-d303d27e.js → ADlgInfeed-ad4953d4.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +23 -24
- package/dist/cjs/AdSlotsProvider.js +13 -14
- package/dist/cjs/AlgoliaSearch.js +30 -14111
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +31 -32
- package/dist/cjs/ArticleSeriesListing.js +32 -33
- package/dist/cjs/Auth.js +348 -484
- package/dist/cjs/AuthWrapper.js +10 -587
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +24 -25
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +32 -33
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +33 -34
- package/dist/cjs/DeckQueue.js +30 -31
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-0bf098b5.js} +14 -15
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +46 -47
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +27 -27
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -47
- package/dist/cjs/HorizontalHero.js +4 -4
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -56
- package/dist/cjs/LeftNav.js +21 -22
- package/dist/cjs/MasterDeck.js +32 -33
- package/dist/cjs/MediaSeriesLanding.js +842 -941
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +30 -30
- package/dist/cjs/NavNative.js +32 -32
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +1257 -60
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +34 -35
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +37 -38
- package/dist/cjs/RecentNews.js +3 -3
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +19 -20
- package/dist/cjs/{SeriesSlider-cbab9f0f.js → SeriesSlider-60fa1342.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-19548e2a.js} +10 -10
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +46 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +13 -13
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +37 -38
- package/dist/cjs/VideoSeriesListing.js +32 -33
- package/dist/cjs/View.js +91 -90
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-60837c34.js} +7 -8
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +71 -135
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-faf37284.js → getTargeting-3e45e4d4.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-d8793467.js → index-646379c4.js} +178 -427
- package/dist/cjs/{index-f86bb269.js → index-99edf08a.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-efca863c.js → index-b5eb3ff8.js} +11 -16
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-3ffa049c.js} +1 -1
- package/dist/cjs/index.js +140 -141
- package/dist/cjs/{inherits-c2065b95.js → inherits-87492b40.js} +19 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/{main-025fdc78.js → main-7b5e57b0.js} +159 -234
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-9d7f610f.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +23 -24
- package/dist/esm/AD300x250x600.js +23 -24
- package/dist/esm/AD728x90.js +26 -27
- package/dist/esm/ADFloatingFooter.js +22 -23
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +22 -23
- package/dist/esm/{ADInfeed-df562a07.js → ADInfeed-422ad6e6.js} +4 -4
- package/dist/esm/ADSkyscraper.js +22 -23
- package/dist/esm/ADSponsoredResources.js +22 -23
- package/dist/esm/ADWebcast.js +22 -23
- package/dist/esm/ADWelcome.js +19 -20
- package/dist/esm/{ADlgInfeed-53992119.js → ADlgInfeed-f7468db8.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +23 -24
- package/dist/esm/AdSlotsProvider.js +13 -14
- package/dist/esm/AlgoliaSearch.js +26 -14107
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +50 -50
- package/dist/esm/ArticleSeriesLandingPage.js +31 -32
- package/dist/esm/ArticleSeriesListing.js +32 -33
- package/dist/esm/Auth.js +348 -484
- package/dist/esm/AuthWrapper.js +9 -587
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-8ffd4679.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-d05b5b23.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -25
- package/dist/esm/Column2.js +16 -16
- package/dist/esm/Column3.js +32 -33
- package/dist/esm/ConferenceArticleCard.js +7 -7
- package/dist/esm/DeckContent.js +33 -34
- package/dist/esm/DeckQueue.js +30 -31
- package/dist/esm/{Dfp-43f121ff.js → Dfp-85c9513e.js} +14 -15
- package/dist/esm/EventsDeck.js +26 -26
- package/dist/esm/ExternalResources.js +47 -47
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +46 -47
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +27 -27
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +47 -47
- package/dist/esm/HorizontalHero.js +4 -4
- package/dist/esm/IssueContentDeck.js +13 -13
- package/dist/esm/IssueDeck.js +15 -15
- package/dist/esm/IssueLanding.js +56 -56
- package/dist/esm/LeftNav.js +21 -22
- package/dist/esm/MasterDeck.js +32 -33
- package/dist/esm/MediaSeriesLanding.js +577 -676
- package/dist/esm/NavDvm.js +13 -13
- package/dist/esm/NavMagazine.js +30 -30
- package/dist/esm/NavNative.js +30 -30
- package/dist/esm/OncliveHero.js +4 -4
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1255 -59
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +34 -35
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +7 -7
- package/dist/esm/PublicationLanding.js +27 -27
- package/dist/esm/QueueDeckExpanded.js +37 -38
- package/dist/esm/RecentNews.js +3 -3
- package/dist/esm/RelatedContent.js +7 -7
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-5c62a578.js → SeriesSlider-05ecb544.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-47815365.js} +9 -9
- package/dist/esm/TaxonomyCard.js +10 -10
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +46 -47
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +13 -13
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +51 -51
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +37 -38
- package/dist/esm/VideoSeriesListing.js +32 -33
- package/dist/esm/View.js +90 -89
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +22 -22
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-eb69e8ac.js} +8 -8
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +71 -135
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-c3401fa7.js → getTargeting-9cb7e014.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-2446af28.js → index-1819118a.js} +487 -41
- package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
- package/dist/esm/{index-35bdcc81.js → index-6c12bdd5.js} +6 -6
- package/dist/esm/{index-ffedd1e8.js → index-d1dee060.js} +173 -423
- package/dist/esm/{index-79cfd25c.js → index-fa2ffe86.js} +45 -44
- package/dist/esm/{index.esm-8016b507.js → index.esm-8ee5ff72.js} +1 -1
- package/dist/esm/index.js +121 -122
- package/dist/esm/{inherits-a41fe93f.js → inherits-0d8cda6e.js} +20 -20
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/{main-b5c5aac1.js → main-747e7d25.js} +153 -228
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-3822f1ce.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-af9c50d8.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-8041a4eb.js +0 -99
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-67e1773f.js +0 -94
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-4abff0b1.js} +1 -1
|
@@ -1,73 +1,154 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
-
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
-
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
-
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
|
-
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-67e1773f.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
import ReactDOM from 'react-dom';
|
|
10
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
|
-
import urlFor from './urlFor.js';
|
|
15
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
16
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
-
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
18
|
-
import { g as getSerializers } from './index-ffedd1e8.js';
|
|
19
|
-
import './define-property-fe54dc9f.js';
|
|
20
|
-
import './_to-object-b50e61c3.js';
|
|
21
|
-
import './es6.string.iterator-bc33758b.js';
|
|
22
|
-
import './web.dom.iterable-4109ff68.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
23
4
|
import './_library-528f1934.js';
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import './_object-pie-
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
31
|
-
import './
|
|
32
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends$1 } from './extends-eb69e8ac.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-0d8cda6e.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
|
+
import './index-1819118a.js';
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
33
19
|
import 'react-bootstrap/Container';
|
|
34
20
|
import 'react-bootstrap/Row';
|
|
35
21
|
import 'react-bootstrap/Col';
|
|
36
22
|
import 'react-bootstrap/Card';
|
|
23
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
37
24
|
import 'next/router';
|
|
38
|
-
import './
|
|
39
|
-
import './debounce-
|
|
40
|
-
import './
|
|
41
|
-
import './toNumber-5aeba6e7.js';
|
|
25
|
+
import './isSymbol-1981418f.js';
|
|
26
|
+
import './debounce-9207d8ee.js';
|
|
27
|
+
import './toNumber-2f7a84cd.js';
|
|
42
28
|
import './index.es-c6222053.js';
|
|
29
|
+
import ReactDOM from 'react-dom';
|
|
43
30
|
import './visibility-sensor-f40c2564.js';
|
|
44
|
-
import './index-
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
48
|
-
import './
|
|
31
|
+
import './index-51a80699.js';
|
|
32
|
+
import urlFor from './urlFor.js';
|
|
33
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
34
|
+
import './main-747e7d25.js';
|
|
35
|
+
import './entities-7cc3bf45.js';
|
|
36
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
37
|
+
import './stringify-4330ccdc.js';
|
|
38
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
49
39
|
import './Segment.js';
|
|
50
|
-
import './
|
|
51
|
-
import './
|
|
52
|
-
import '
|
|
40
|
+
import './Beam.js';
|
|
41
|
+
import './AdSlot.js';
|
|
42
|
+
import './ADInfeed-422ad6e6.js';
|
|
43
|
+
import './lodash-ec8c6b48.js';
|
|
44
|
+
import './ADlgInfeed-f7468db8.js';
|
|
45
|
+
import 'react-bootstrap/Button';
|
|
46
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
53
47
|
import './index-c7e2ac95.js';
|
|
54
|
-
import './
|
|
55
|
-
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
48
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
56
49
|
import './GroupDeck.js';
|
|
57
|
-
import '
|
|
58
|
-
import './
|
|
50
|
+
import 'react-bootstrap';
|
|
51
|
+
import './iconBase-602d52fe.js';
|
|
52
|
+
import './index.esm-3fdda599.js';
|
|
53
|
+
import { g as getSerializers } from './index-d1dee060.js';
|
|
54
|
+
import './util-7700fc59.js';
|
|
55
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
59
56
|
import 'next/head';
|
|
60
57
|
import 'react-share';
|
|
61
|
-
import './
|
|
58
|
+
import './SocialShare.js';
|
|
59
|
+
import './_object-to-array-7e804fce.js';
|
|
62
60
|
import 'react-bootstrap/Pagination';
|
|
63
|
-
import 'react-bootstrap/Button';
|
|
64
|
-
import './entities-932b50cf.js';
|
|
65
|
-
import './index.esm-3fdda599.js';
|
|
66
|
-
import './iconBase-602d52fe.js';
|
|
67
61
|
import 'react-bootstrap/Figure';
|
|
68
62
|
import 'react-bootstrap/OverlayTrigger';
|
|
69
63
|
import 'react-bootstrap/Tooltip';
|
|
70
64
|
import 'react-bootstrap/Popover';
|
|
65
|
+
import 'react-script-tag';
|
|
66
|
+
import MasterDeck from './MasterDeck.js';
|
|
67
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
68
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
69
|
+
import Link from 'next/link';
|
|
70
|
+
|
|
71
|
+
function _extends() {
|
|
72
|
+
_extends = Object.assign || function (target) {
|
|
73
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
74
|
+
var source = arguments[i];
|
|
75
|
+
|
|
76
|
+
for (var key in source) {
|
|
77
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
78
|
+
target[key] = source[key];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return target;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return _extends.apply(this, arguments);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
90
|
+
if (source == null) return {};
|
|
91
|
+
var target = {};
|
|
92
|
+
var sourceKeys = Object.keys(source);
|
|
93
|
+
var key, i;
|
|
94
|
+
|
|
95
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
96
|
+
key = sourceKeys[i];
|
|
97
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
98
|
+
target[key] = source[key];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return target;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
var classnames = createCommonjsModule(function (module) {
|
|
105
|
+
/*!
|
|
106
|
+
Copyright (c) 2017 Jed Watson.
|
|
107
|
+
Licensed under the MIT License (MIT), see
|
|
108
|
+
http://jedwatson.github.io/classnames
|
|
109
|
+
*/
|
|
110
|
+
/* global define */
|
|
111
|
+
|
|
112
|
+
(function () {
|
|
113
|
+
|
|
114
|
+
var hasOwn = {}.hasOwnProperty;
|
|
115
|
+
|
|
116
|
+
function classNames () {
|
|
117
|
+
var classes = [];
|
|
118
|
+
|
|
119
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
120
|
+
var arg = arguments[i];
|
|
121
|
+
if (!arg) continue;
|
|
122
|
+
|
|
123
|
+
var argType = typeof arg;
|
|
124
|
+
|
|
125
|
+
if (argType === 'string' || argType === 'number') {
|
|
126
|
+
classes.push(arg);
|
|
127
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
128
|
+
var inner = classNames.apply(null, arg);
|
|
129
|
+
if (inner) {
|
|
130
|
+
classes.push(inner);
|
|
131
|
+
}
|
|
132
|
+
} else if (argType === 'object') {
|
|
133
|
+
for (var key in arg) {
|
|
134
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
135
|
+
classes.push(key);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return classes.join(' ');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if ( module.exports) {
|
|
145
|
+
classNames.default = classNames;
|
|
146
|
+
module.exports = classNames;
|
|
147
|
+
} else {
|
|
148
|
+
window.classNames = classNames;
|
|
149
|
+
}
|
|
150
|
+
}());
|
|
151
|
+
});
|
|
71
152
|
|
|
72
153
|
/**
|
|
73
154
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -177,12 +258,12 @@ function useUncontrolled(props, config) {
|
|
|
177
258
|
function _inheritsLoose(subClass, superClass) {
|
|
178
259
|
subClass.prototype = Object.create(superClass.prototype);
|
|
179
260
|
subClass.prototype.constructor = subClass;
|
|
180
|
-
|
|
261
|
+
subClass.__proto__ = superClass;
|
|
181
262
|
}
|
|
182
263
|
|
|
183
264
|
var ThemeContext = React.createContext({});
|
|
184
|
-
ThemeContext.Consumer
|
|
185
|
-
ThemeContext.Provider;
|
|
265
|
+
var Consumer = ThemeContext.Consumer,
|
|
266
|
+
Provider = ThemeContext.Provider;
|
|
186
267
|
|
|
187
268
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
188
269
|
var prefixes = useContext(ThemeContext);
|
|
@@ -199,11 +280,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
199
280
|
return href || null;
|
|
200
281
|
};
|
|
201
282
|
|
|
202
|
-
var context
|
|
203
|
-
context
|
|
283
|
+
var context = React.createContext(null);
|
|
284
|
+
context.displayName = 'AccordionContext';
|
|
204
285
|
|
|
205
286
|
function useAccordionToggle(eventKey, onClick) {
|
|
206
|
-
var contextEventKey = useContext(context
|
|
287
|
+
var contextEventKey = useContext(context);
|
|
207
288
|
var onSelect = useContext(SelectableContext);
|
|
208
289
|
return function (e) {
|
|
209
290
|
/*
|
|
@@ -235,16 +316,16 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
235
316
|
}, props), children);
|
|
236
317
|
});
|
|
237
318
|
|
|
238
|
-
function ownerDocument
|
|
319
|
+
function ownerDocument(node) {
|
|
239
320
|
return node && node.ownerDocument || document;
|
|
240
321
|
}
|
|
241
322
|
|
|
242
323
|
function ownerWindow(node) {
|
|
243
|
-
var doc = ownerDocument
|
|
324
|
+
var doc = ownerDocument(node);
|
|
244
325
|
return doc && doc.defaultView || window;
|
|
245
326
|
}
|
|
246
327
|
|
|
247
|
-
function getComputedStyle$
|
|
328
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
248
329
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
249
330
|
}
|
|
250
331
|
|
|
@@ -273,7 +354,7 @@ function style(node, property) {
|
|
|
273
354
|
var transforms = '';
|
|
274
355
|
|
|
275
356
|
if (typeof property === 'string') {
|
|
276
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
357
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
277
358
|
}
|
|
278
359
|
|
|
279
360
|
Object.keys(property).forEach(function (key) {
|
|
@@ -413,7 +494,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
413
494
|
exit: PropTypes.number,
|
|
414
495
|
appear: PropTypes.number
|
|
415
496
|
}).isRequired]) : null;
|
|
416
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
497
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
417
498
|
enter: PropTypes.string,
|
|
418
499
|
exit: PropTypes.string,
|
|
419
500
|
active: PropTypes.string
|
|
@@ -795,23 +876,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
795
876
|
}
|
|
796
877
|
|
|
797
878
|
var _this$props = this.props,
|
|
798
|
-
children = _this$props.children
|
|
799
|
-
_this$props.in
|
|
800
|
-
_this$props.mountOnEnter
|
|
801
|
-
_this$props.unmountOnExit
|
|
802
|
-
_this$props.appear
|
|
803
|
-
_this$props.enter
|
|
804
|
-
_this$props.exit
|
|
805
|
-
_this$props.timeout
|
|
806
|
-
_this$props.addEndListener
|
|
807
|
-
_this$props.onEnter
|
|
808
|
-
_this$props.onEntering
|
|
809
|
-
_this$props.onEntered
|
|
810
|
-
_this$props.onExit
|
|
811
|
-
_this$props.onExiting
|
|
812
|
-
_this$props.onExited
|
|
813
|
-
_this$props.nodeRef
|
|
814
|
-
|
|
879
|
+
children = _this$props.children,
|
|
880
|
+
_in = _this$props.in,
|
|
881
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
882
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
883
|
+
_appear = _this$props.appear,
|
|
884
|
+
_enter = _this$props.enter,
|
|
885
|
+
_exit = _this$props.exit,
|
|
886
|
+
_timeout = _this$props.timeout,
|
|
887
|
+
_addEndListener = _this$props.addEndListener,
|
|
888
|
+
_onEnter = _this$props.onEnter,
|
|
889
|
+
_onEntering = _this$props.onEntering,
|
|
890
|
+
_onEntered = _this$props.onEntered,
|
|
891
|
+
_onExit = _this$props.onExit,
|
|
892
|
+
_onExiting = _this$props.onExiting,
|
|
893
|
+
_onExited = _this$props.onExited,
|
|
894
|
+
_nodeRef = _this$props.nodeRef,
|
|
895
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
815
896
|
|
|
816
897
|
return (
|
|
817
898
|
/*#__PURE__*/
|
|
@@ -1011,7 +1092,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1011
1092
|
onExited: PropTypes.func
|
|
1012
1093
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1013
1094
|
|
|
1014
|
-
function noop
|
|
1095
|
+
function noop() {}
|
|
1015
1096
|
|
|
1016
1097
|
Transition.defaultProps = {
|
|
1017
1098
|
in: false,
|
|
@@ -1020,12 +1101,12 @@ Transition.defaultProps = {
|
|
|
1020
1101
|
appear: false,
|
|
1021
1102
|
enter: true,
|
|
1022
1103
|
exit: true,
|
|
1023
|
-
onEnter: noop
|
|
1024
|
-
onEntering: noop
|
|
1025
|
-
onEntered: noop
|
|
1026
|
-
onExit: noop
|
|
1027
|
-
onExiting: noop
|
|
1028
|
-
onExited: noop
|
|
1104
|
+
onEnter: noop,
|
|
1105
|
+
onEntering: noop,
|
|
1106
|
+
onEntered: noop,
|
|
1107
|
+
onExit: noop,
|
|
1108
|
+
onExiting: noop,
|
|
1109
|
+
onExited: noop
|
|
1029
1110
|
};
|
|
1030
1111
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1031
1112
|
Transition.EXITED = EXITED;
|
|
@@ -1091,7 +1172,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1091
1172
|
}
|
|
1092
1173
|
|
|
1093
1174
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1094
|
-
var defaultProps
|
|
1175
|
+
var defaultProps = {
|
|
1095
1176
|
in: false,
|
|
1096
1177
|
timeout: 300,
|
|
1097
1178
|
mountOnEnter: false,
|
|
@@ -1165,22 +1246,18 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1165
1246
|
}); // @ts-ignore
|
|
1166
1247
|
|
|
1167
1248
|
// @ts-ignore
|
|
1168
|
-
Collapse.defaultProps = defaultProps
|
|
1249
|
+
Collapse.defaultProps = defaultProps;
|
|
1169
1250
|
|
|
1170
1251
|
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1171
1252
|
var children = _ref.children,
|
|
1172
1253
|
eventKey = _ref.eventKey,
|
|
1173
1254
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1174
1255
|
|
|
1175
|
-
var contextEventKey = useContext(context
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1179
|
-
value: null
|
|
1180
|
-
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1256
|
+
var contextEventKey = useContext(context);
|
|
1257
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1181
1258
|
ref: ref,
|
|
1182
1259
|
in: contextEventKey === eventKey
|
|
1183
|
-
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)))
|
|
1260
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)));
|
|
1184
1261
|
});
|
|
1185
1262
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1186
1263
|
|
|
@@ -1198,7 +1275,7 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1198
1275
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1199
1276
|
|
|
1200
1277
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1201
|
-
return /*#__PURE__*/React.createElement(context
|
|
1278
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1202
1279
|
value: activeKey || null
|
|
1203
1280
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1204
1281
|
value: onSelect || null
|
|
@@ -1238,7 +1315,7 @@ function useEventCallback(fn) {
|
|
|
1238
1315
|
}
|
|
1239
1316
|
|
|
1240
1317
|
var _fadeStyles;
|
|
1241
|
-
var defaultProps$
|
|
1318
|
+
var defaultProps$1 = {
|
|
1242
1319
|
in: false,
|
|
1243
1320
|
timeout: 300,
|
|
1244
1321
|
mountOnEnter: false,
|
|
@@ -1266,14 +1343,14 @@ var Fade = React.forwardRef(function (_ref, ref) {
|
|
|
1266
1343
|
}));
|
|
1267
1344
|
});
|
|
1268
1345
|
});
|
|
1269
|
-
Fade.defaultProps = defaultProps$
|
|
1346
|
+
Fade.defaultProps = defaultProps$1;
|
|
1270
1347
|
Fade.displayName = 'Fade';
|
|
1271
1348
|
|
|
1272
|
-
var propTypes
|
|
1349
|
+
var propTypes = {
|
|
1273
1350
|
label: PropTypes.string.isRequired,
|
|
1274
1351
|
onClick: PropTypes.func
|
|
1275
1352
|
};
|
|
1276
|
-
var defaultProps$
|
|
1353
|
+
var defaultProps$2 = {
|
|
1277
1354
|
label: 'Close'
|
|
1278
1355
|
};
|
|
1279
1356
|
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
@@ -1294,8 +1371,8 @@ var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
|
1294
1371
|
}, label));
|
|
1295
1372
|
});
|
|
1296
1373
|
CloseButton.displayName = 'CloseButton';
|
|
1297
|
-
CloseButton.propTypes = propTypes
|
|
1298
|
-
CloseButton.defaultProps = defaultProps$
|
|
1374
|
+
CloseButton.propTypes = propTypes;
|
|
1375
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1299
1376
|
|
|
1300
1377
|
var divWithClassName = (function (className) {
|
|
1301
1378
|
return React.forwardRef(function (p, ref) {
|
|
@@ -1408,15 +1485,15 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1408
1485
|
});
|
|
1409
1486
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1410
1487
|
|
|
1411
|
-
var DivStyledAsH4
|
|
1412
|
-
DivStyledAsH4
|
|
1488
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1489
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1413
1490
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1414
|
-
Component: DivStyledAsH4
|
|
1491
|
+
Component: DivStyledAsH4
|
|
1415
1492
|
});
|
|
1416
1493
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1417
1494
|
Component: SafeAnchor
|
|
1418
1495
|
});
|
|
1419
|
-
var defaultProps$
|
|
1496
|
+
var defaultProps$3 = {
|
|
1420
1497
|
show: true,
|
|
1421
1498
|
transition: Fade,
|
|
1422
1499
|
closeLabel: 'Close alert'
|
|
@@ -1461,11 +1538,11 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1461
1538
|
}), alert);
|
|
1462
1539
|
});
|
|
1463
1540
|
Alert.displayName = 'Alert';
|
|
1464
|
-
Alert.defaultProps = defaultProps$
|
|
1541
|
+
Alert.defaultProps = defaultProps$3;
|
|
1465
1542
|
Alert.Link = AlertLink;
|
|
1466
1543
|
Alert.Heading = AlertHeading;
|
|
1467
1544
|
|
|
1468
|
-
var defaultProps$
|
|
1545
|
+
var defaultProps$4 = {
|
|
1469
1546
|
pill: false
|
|
1470
1547
|
};
|
|
1471
1548
|
var Badge = React.forwardRef(function (_ref, ref) {
|
|
@@ -1485,9 +1562,9 @@ var Badge = React.forwardRef(function (_ref, ref) {
|
|
|
1485
1562
|
}));
|
|
1486
1563
|
});
|
|
1487
1564
|
Badge.displayName = 'Badge';
|
|
1488
|
-
Badge.defaultProps = defaultProps$
|
|
1565
|
+
Badge.defaultProps = defaultProps$4;
|
|
1489
1566
|
|
|
1490
|
-
var defaultProps$
|
|
1567
|
+
var defaultProps$5 = {
|
|
1491
1568
|
active: false,
|
|
1492
1569
|
linkProps: {}
|
|
1493
1570
|
};
|
|
@@ -1521,9 +1598,9 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1521
1598
|
}), children));
|
|
1522
1599
|
});
|
|
1523
1600
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1524
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1601
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1525
1602
|
|
|
1526
|
-
var defaultProps$
|
|
1603
|
+
var defaultProps$6 = {
|
|
1527
1604
|
label: 'breadcrumb',
|
|
1528
1605
|
listProps: {}
|
|
1529
1606
|
};
|
|
@@ -1547,10 +1624,10 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1547
1624
|
}), children));
|
|
1548
1625
|
});
|
|
1549
1626
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1550
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1627
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1551
1628
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1552
1629
|
|
|
1553
|
-
var defaultProps$
|
|
1630
|
+
var defaultProps$7 = {
|
|
1554
1631
|
variant: 'primary',
|
|
1555
1632
|
active: false,
|
|
1556
1633
|
disabled: false
|
|
@@ -1567,7 +1644,7 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1567
1644
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1568
1645
|
|
|
1569
1646
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1570
|
-
var classes = classnames(className, prefix, active && 'active',
|
|
1647
|
+
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1571
1648
|
|
|
1572
1649
|
if (props.href) {
|
|
1573
1650
|
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
@@ -1593,9 +1670,9 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1593
1670
|
}));
|
|
1594
1671
|
});
|
|
1595
1672
|
Button.displayName = 'Button';
|
|
1596
|
-
Button.defaultProps = defaultProps$
|
|
1673
|
+
Button.defaultProps = defaultProps$7;
|
|
1597
1674
|
|
|
1598
|
-
var defaultProps$
|
|
1675
|
+
var defaultProps$8 = {
|
|
1599
1676
|
vertical: false,
|
|
1600
1677
|
toggle: false,
|
|
1601
1678
|
role: 'group'
|
|
@@ -1619,9 +1696,9 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1619
1696
|
}));
|
|
1620
1697
|
});
|
|
1621
1698
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1622
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1699
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1623
1700
|
|
|
1624
|
-
var defaultProps$
|
|
1701
|
+
var defaultProps$9 = {
|
|
1625
1702
|
role: 'toolbar'
|
|
1626
1703
|
};
|
|
1627
1704
|
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
@@ -1636,12 +1713,12 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
|
1636
1713
|
}));
|
|
1637
1714
|
});
|
|
1638
1715
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1639
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1716
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1640
1717
|
|
|
1641
1718
|
var context$1 = React.createContext(null);
|
|
1642
1719
|
context$1.displayName = 'CardContext';
|
|
1643
1720
|
|
|
1644
|
-
var defaultProps$
|
|
1721
|
+
var defaultProps$a = {
|
|
1645
1722
|
variant: null
|
|
1646
1723
|
};
|
|
1647
1724
|
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
|
|
@@ -1660,7 +1737,7 @@ function (_ref, ref) {
|
|
|
1660
1737
|
}, props));
|
|
1661
1738
|
});
|
|
1662
1739
|
CardImg.displayName = 'CardImg';
|
|
1663
|
-
CardImg.defaultProps = defaultProps$
|
|
1740
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1664
1741
|
|
|
1665
1742
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1666
1743
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1680,7 +1757,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1680
1757
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1681
1758
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1682
1759
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1683
|
-
var defaultProps$
|
|
1760
|
+
var defaultProps$b = {
|
|
1684
1761
|
body: false
|
|
1685
1762
|
};
|
|
1686
1763
|
var Card = React.forwardRef(function (_ref, ref) {
|
|
@@ -1713,7 +1790,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1713
1790
|
React.createElement(CardBody, null, children) : children));
|
|
1714
1791
|
});
|
|
1715
1792
|
Card.displayName = 'Card';
|
|
1716
|
-
Card.defaultProps = defaultProps$
|
|
1793
|
+
Card.defaultProps = defaultProps$b;
|
|
1717
1794
|
Card.Img = CardImg;
|
|
1718
1795
|
Card.Title = CardTitle;
|
|
1719
1796
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1846,20 +1923,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1846
1923
|
/**
|
|
1847
1924
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1848
1925
|
* 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
1926
|
*/
|
|
1864
1927
|
|
|
1865
1928
|
|
|
@@ -1900,22 +1963,7 @@ function useTimeout() {
|
|
|
1900
1963
|
|
|
1901
1964
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1902
1965
|
|
|
1903
|
-
var CarouselItem =
|
|
1904
|
-
var _ref$as = _ref.as,
|
|
1905
|
-
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1906
|
-
bsPrefix = _ref.bsPrefix,
|
|
1907
|
-
children = _ref.children,
|
|
1908
|
-
className = _ref.className,
|
|
1909
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1910
|
-
|
|
1911
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1912
|
-
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1913
|
-
ref: ref
|
|
1914
|
-
}, props, {
|
|
1915
|
-
className: finalClassName
|
|
1916
|
-
}), children);
|
|
1917
|
-
});
|
|
1918
|
-
CarouselItem.displayName = 'CarouselItem';
|
|
1966
|
+
var CarouselItem = createWithBsPrefix('carousel-item');
|
|
1919
1967
|
|
|
1920
1968
|
/**
|
|
1921
1969
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1932,23 +1980,9 @@ function map(children, func) {
|
|
|
1932
1980
|
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1933
1981
|
});
|
|
1934
1982
|
}
|
|
1935
|
-
/**
|
|
1936
|
-
* Iterates through children that are "valid elements".
|
|
1937
|
-
*
|
|
1938
|
-
* The provided forEachFunc(child, index) will be called for each
|
|
1939
|
-
* leaf child with the index reflecting the position relative to "valid components".
|
|
1940
|
-
*/
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
function forEach(children, func) {
|
|
1944
|
-
var index = 0;
|
|
1945
|
-
React.Children.forEach(children, function (child) {
|
|
1946
|
-
if (React.isValidElement(child)) func(child, index++);
|
|
1947
|
-
});
|
|
1948
|
-
}
|
|
1949
1983
|
|
|
1950
1984
|
var SWIPE_THRESHOLD = 40;
|
|
1951
|
-
var propTypes$
|
|
1985
|
+
var propTypes$1 = {
|
|
1952
1986
|
/**
|
|
1953
1987
|
* @default 'carousel'
|
|
1954
1988
|
*/
|
|
@@ -2050,7 +2084,7 @@ var propTypes$9 = {
|
|
|
2050
2084
|
*/
|
|
2051
2085
|
nextLabel: PropTypes.string
|
|
2052
2086
|
};
|
|
2053
|
-
var defaultProps$
|
|
2087
|
+
var defaultProps$c = {
|
|
2054
2088
|
slide: true,
|
|
2055
2089
|
fade: false,
|
|
2056
2090
|
controls: true,
|
|
@@ -2134,6 +2168,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2134
2168
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2135
2169
|
if (nextDirectionRef.current) {
|
|
2136
2170
|
setDirection(nextDirectionRef.current);
|
|
2171
|
+
nextDirectionRef.current = null;
|
|
2137
2172
|
} else {
|
|
2138
2173
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2139
2174
|
}
|
|
@@ -2145,23 +2180,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2145
2180
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2146
2181
|
}
|
|
2147
2182
|
|
|
2148
|
-
|
|
2149
|
-
if (nextDirectionRef.current) {
|
|
2150
|
-
nextDirectionRef.current = null;
|
|
2151
|
-
}
|
|
2152
|
-
});
|
|
2153
|
-
var numChildren = 0;
|
|
2154
|
-
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2155
|
-
// (and count them, too)
|
|
2156
|
-
|
|
2157
|
-
forEach(children, function (child, index) {
|
|
2158
|
-
++numChildren;
|
|
2159
|
-
|
|
2160
|
-
if (index === activeIndex) {
|
|
2161
|
-
activeChildInterval = child.props.interval;
|
|
2162
|
-
}
|
|
2163
|
-
});
|
|
2164
|
-
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2183
|
+
var numChildren = React.Children.toArray(children).filter(React.isValidElement).length;
|
|
2165
2184
|
var prev = useCallback(function (event) {
|
|
2166
2185
|
if (isSliding) {
|
|
2167
2186
|
return;
|
|
@@ -2347,19 +2366,17 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2347
2366
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2348
2367
|
var intervalHandleRef = useRef();
|
|
2349
2368
|
useEffect(function () {
|
|
2350
|
-
var _ref, _activeChildIntervalR;
|
|
2351
|
-
|
|
2352
2369
|
if (!shouldPlay) {
|
|
2353
2370
|
return undefined;
|
|
2354
2371
|
}
|
|
2355
2372
|
|
|
2356
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next,
|
|
2373
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval || undefined);
|
|
2357
2374
|
return function () {
|
|
2358
2375
|
if (intervalHandleRef.current !== null) {
|
|
2359
2376
|
clearInterval(intervalHandleRef.current);
|
|
2360
2377
|
}
|
|
2361
2378
|
};
|
|
2362
|
-
}, [shouldPlay, next,
|
|
2379
|
+
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2363
2380
|
var indicatorOnClicks = useMemo(function () {
|
|
2364
2381
|
return indicators && Array.from({
|
|
2365
2382
|
length: numChildren
|
|
@@ -2420,12 +2437,12 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2420
2437
|
|
|
2421
2438
|
var Carousel = React.forwardRef(CarouselFunc);
|
|
2422
2439
|
Carousel.displayName = 'Carousel';
|
|
2423
|
-
Carousel.propTypes = propTypes$
|
|
2424
|
-
Carousel.defaultProps = defaultProps$
|
|
2440
|
+
Carousel.propTypes = propTypes$1;
|
|
2441
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2425
2442
|
Carousel.Caption = CarouselCaption;
|
|
2426
2443
|
Carousel.Item = CarouselItem;
|
|
2427
2444
|
|
|
2428
|
-
var DEVICE_SIZES
|
|
2445
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2429
2446
|
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
2447
|
function (_ref, ref) {
|
|
2431
2448
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -2437,7 +2454,7 @@ function (_ref, ref) {
|
|
|
2437
2454
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2438
2455
|
var spans = [];
|
|
2439
2456
|
var classes = [];
|
|
2440
|
-
DEVICE_SIZES
|
|
2457
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2441
2458
|
var propValue = props[brkPoint];
|
|
2442
2459
|
delete props[brkPoint];
|
|
2443
2460
|
var span;
|
|
@@ -2618,50 +2635,21 @@ function getBasePlacement(placement) {
|
|
|
2618
2635
|
return placement.split('-')[0];
|
|
2619
2636
|
}
|
|
2620
2637
|
|
|
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
|
-
|
|
2638
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2635
2639
|
// means it doesn't take into account transforms.
|
|
2636
|
-
|
|
2637
2640
|
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
2641
|
return {
|
|
2653
2642
|
x: element.offsetLeft,
|
|
2654
2643
|
y: element.offsetTop,
|
|
2655
|
-
width:
|
|
2656
|
-
height:
|
|
2644
|
+
width: element.offsetWidth,
|
|
2645
|
+
height: element.offsetHeight
|
|
2657
2646
|
};
|
|
2658
2647
|
}
|
|
2659
2648
|
|
|
2660
|
-
|
|
2661
|
-
if (node == null) {
|
|
2662
|
-
return window;
|
|
2663
|
-
}
|
|
2649
|
+
/*:: import type { Window } from '../types'; */
|
|
2664
2650
|
|
|
2651
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2652
|
+
function getWindow(node) {
|
|
2665
2653
|
if (node.toString() !== '[object Window]') {
|
|
2666
2654
|
var ownerDocument = node.ownerDocument;
|
|
2667
2655
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2670,39 +2658,43 @@ function getWindow(node) {
|
|
|
2670
2658
|
return node;
|
|
2671
2659
|
}
|
|
2672
2660
|
|
|
2661
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2662
|
+
Element); */
|
|
2663
|
+
|
|
2673
2664
|
function isElement(node) {
|
|
2674
2665
|
var OwnElement = getWindow(node).Element;
|
|
2675
2666
|
return node instanceof OwnElement || node instanceof Element;
|
|
2676
2667
|
}
|
|
2668
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2669
|
+
HTMLElement); */
|
|
2670
|
+
|
|
2677
2671
|
|
|
2678
2672
|
function isHTMLElement(node) {
|
|
2679
2673
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2680
2674
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2681
2675
|
}
|
|
2676
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2677
|
+
ShadowRoot); */
|
|
2682
2678
|
|
|
2683
|
-
function isShadowRoot(node) {
|
|
2684
|
-
// IE 11 has no ShadowRoot
|
|
2685
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2686
|
-
return false;
|
|
2687
|
-
}
|
|
2688
2679
|
|
|
2680
|
+
function isShadowRoot(node) {
|
|
2689
2681
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2690
2682
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2691
2683
|
}
|
|
2692
2684
|
|
|
2693
|
-
function contains
|
|
2685
|
+
function contains(parent, child) {
|
|
2694
2686
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2695
2687
|
|
|
2696
2688
|
if (parent.contains(child)) {
|
|
2697
2689
|
return true;
|
|
2698
2690
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2699
|
-
else if (
|
|
2691
|
+
else if (isShadowRoot(rootNode)) {
|
|
2700
2692
|
var next = child;
|
|
2701
2693
|
|
|
2702
2694
|
do {
|
|
2703
2695
|
if (next && parent.isSameNode(next)) {
|
|
2704
2696
|
return true;
|
|
2705
|
-
} // $FlowFixMe
|
|
2697
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2706
2698
|
|
|
2707
2699
|
|
|
2708
2700
|
next = next.parentNode || next.host;
|
|
@@ -2717,7 +2709,7 @@ function getNodeName(element) {
|
|
|
2717
2709
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2718
2710
|
}
|
|
2719
2711
|
|
|
2720
|
-
function getComputedStyle$
|
|
2712
|
+
function getComputedStyle$2(element) {
|
|
2721
2713
|
return getWindow(element).getComputedStyle(element);
|
|
2722
2714
|
}
|
|
2723
2715
|
|
|
@@ -2726,9 +2718,8 @@ function isTableElement(element) {
|
|
|
2726
2718
|
}
|
|
2727
2719
|
|
|
2728
2720
|
function getDocumentElement(element) {
|
|
2729
|
-
// $FlowFixMe
|
|
2730
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2731
|
-
element.document) || window.document).documentElement;
|
|
2721
|
+
// $FlowFixMe: assume body is always available
|
|
2722
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2732
2723
|
}
|
|
2733
2724
|
|
|
2734
2725
|
function getParentNode(element) {
|
|
@@ -2736,13 +2727,12 @@ function getParentNode(element) {
|
|
|
2736
2727
|
return element;
|
|
2737
2728
|
}
|
|
2738
2729
|
|
|
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]
|
|
2730
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2742
2731
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2743
|
-
element.parentNode ||
|
|
2744
|
-
|
|
2745
|
-
|
|
2732
|
+
element.parentNode || // DOM Element detected
|
|
2733
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2734
|
+
element.host || // ShadowRoot detected
|
|
2735
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2746
2736
|
getDocumentElement(element) // fallback
|
|
2747
2737
|
|
|
2748
2738
|
);
|
|
@@ -2750,25 +2740,33 @@ function getParentNode(element) {
|
|
|
2750
2740
|
|
|
2751
2741
|
function getTrueOffsetParent(element) {
|
|
2752
2742
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2753
|
-
getComputedStyle$
|
|
2743
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2754
2744
|
return null;
|
|
2755
2745
|
}
|
|
2756
2746
|
|
|
2757
|
-
|
|
2747
|
+
var offsetParent = element.offsetParent;
|
|
2748
|
+
|
|
2749
|
+
if (offsetParent) {
|
|
2750
|
+
var html = getDocumentElement(offsetParent);
|
|
2751
|
+
|
|
2752
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2753
|
+
return html;
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
return offsetParent;
|
|
2758
2758
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2759
2759
|
// return the containing block
|
|
2760
2760
|
|
|
2761
2761
|
|
|
2762
2762
|
function getContainingBlock(element) {
|
|
2763
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2764
2763
|
var currentNode = getParentNode(element);
|
|
2765
2764
|
|
|
2766
2765
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2767
|
-
var css = getComputedStyle$
|
|
2766
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2768
2767
|
// create a containing block.
|
|
2769
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2770
2768
|
|
|
2771
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2769
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2772
2770
|
return currentNode;
|
|
2773
2771
|
} else {
|
|
2774
2772
|
currentNode = currentNode.parentNode;
|
|
@@ -2784,11 +2782,11 @@ function getOffsetParent(element) {
|
|
|
2784
2782
|
var window = getWindow(element);
|
|
2785
2783
|
var offsetParent = getTrueOffsetParent(element);
|
|
2786
2784
|
|
|
2787
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2785
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2788
2786
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2789
2787
|
}
|
|
2790
2788
|
|
|
2791
|
-
if (offsetParent &&
|
|
2789
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2792
2790
|
return window;
|
|
2793
2791
|
}
|
|
2794
2792
|
|
|
@@ -2799,12 +2797,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2799
2797
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2800
2798
|
}
|
|
2801
2799
|
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
var round = Math.round;
|
|
2805
|
-
|
|
2806
|
-
function within(min$1, value, max$1) {
|
|
2807
|
-
return max(min$1, min(value, max$1));
|
|
2800
|
+
function within(min, value, max) {
|
|
2801
|
+
return Math.max(min, Math.min(value, max));
|
|
2808
2802
|
}
|
|
2809
2803
|
|
|
2810
2804
|
function getFreshSideObject() {
|
|
@@ -2817,7 +2811,7 @@ function getFreshSideObject() {
|
|
|
2817
2811
|
}
|
|
2818
2812
|
|
|
2819
2813
|
function mergePaddingObject(paddingObject) {
|
|
2820
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2814
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2821
2815
|
}
|
|
2822
2816
|
|
|
2823
2817
|
function expandToHashMap(value, keys) {
|
|
@@ -2827,19 +2821,11 @@ function expandToHashMap(value, keys) {
|
|
|
2827
2821
|
}, {});
|
|
2828
2822
|
}
|
|
2829
2823
|
|
|
2830
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2831
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2832
|
-
placement: state.placement
|
|
2833
|
-
})) : padding;
|
|
2834
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2835
|
-
};
|
|
2836
|
-
|
|
2837
2824
|
function arrow(_ref) {
|
|
2838
2825
|
var _state$modifiersData$;
|
|
2839
2826
|
|
|
2840
2827
|
var state = _ref.state,
|
|
2841
|
-
name = _ref.name
|
|
2842
|
-
options = _ref.options;
|
|
2828
|
+
name = _ref.name;
|
|
2843
2829
|
var arrowElement = state.elements.arrow;
|
|
2844
2830
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2845
2831
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2851,7 +2837,7 @@ function arrow(_ref) {
|
|
|
2851
2837
|
return;
|
|
2852
2838
|
}
|
|
2853
2839
|
|
|
2854
|
-
var paddingObject =
|
|
2840
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2855
2841
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2856
2842
|
var minProp = axis === 'y' ? top : left;
|
|
2857
2843
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2871,11 +2857,14 @@ function arrow(_ref) {
|
|
|
2871
2857
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2872
2858
|
}
|
|
2873
2859
|
|
|
2874
|
-
function effect
|
|
2860
|
+
function effect(_ref2) {
|
|
2875
2861
|
var state = _ref2.state,
|
|
2876
|
-
options = _ref2.options
|
|
2862
|
+
options = _ref2.options,
|
|
2863
|
+
name = _ref2.name;
|
|
2877
2864
|
var _options$element = options.element,
|
|
2878
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2865
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2866
|
+
_options$padding = options.padding,
|
|
2867
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2879
2868
|
|
|
2880
2869
|
if (arrowElement == null) {
|
|
2881
2870
|
return;
|
|
@@ -2896,7 +2885,7 @@ function effect$1(_ref2) {
|
|
|
2896
2885
|
}
|
|
2897
2886
|
}
|
|
2898
2887
|
|
|
2899
|
-
if (!contains
|
|
2888
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2900
2889
|
if (process.env.NODE_ENV !== "production") {
|
|
2901
2890
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2902
2891
|
}
|
|
@@ -2905,6 +2894,9 @@ function effect$1(_ref2) {
|
|
|
2905
2894
|
}
|
|
2906
2895
|
|
|
2907
2896
|
state.elements.arrow = arrowElement;
|
|
2897
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2898
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2899
|
+
};
|
|
2908
2900
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2909
2901
|
|
|
2910
2902
|
|
|
@@ -2913,7 +2905,7 @@ var arrow$1 = {
|
|
|
2913
2905
|
enabled: true,
|
|
2914
2906
|
phase: 'main',
|
|
2915
2907
|
fn: arrow,
|
|
2916
|
-
effect: effect
|
|
2908
|
+
effect: effect,
|
|
2917
2909
|
requires: ['popperOffsets'],
|
|
2918
2910
|
requiresIfExists: ['preventOverflow']
|
|
2919
2911
|
};
|
|
@@ -2927,14 +2919,14 @@ var unsetSides = {
|
|
|
2927
2919
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2928
2920
|
// cleanly divide the values into the appropriate subpixels.
|
|
2929
2921
|
|
|
2930
|
-
function
|
|
2922
|
+
function roundOffsets(_ref) {
|
|
2931
2923
|
var x = _ref.x,
|
|
2932
2924
|
y = _ref.y;
|
|
2933
2925
|
var win = window;
|
|
2934
2926
|
var dpr = win.devicePixelRatio || 1;
|
|
2935
2927
|
return {
|
|
2936
|
-
x: round(
|
|
2937
|
-
y: round(
|
|
2928
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2929
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2938
2930
|
};
|
|
2939
2931
|
}
|
|
2940
2932
|
|
|
@@ -2947,14 +2939,11 @@ function mapToStyles(_ref2) {
|
|
|
2947
2939
|
offsets = _ref2.offsets,
|
|
2948
2940
|
position = _ref2.position,
|
|
2949
2941
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2950
|
-
adaptive = _ref2.adaptive
|
|
2951
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2942
|
+
adaptive = _ref2.adaptive;
|
|
2952
2943
|
|
|
2953
|
-
var
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
_ref3$y = _ref3.y,
|
|
2957
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2944
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2945
|
+
x = _roundOffsets.x,
|
|
2946
|
+
y = _roundOffsets.y;
|
|
2958
2947
|
|
|
2959
2948
|
var hasX = offsets.hasOwnProperty('x');
|
|
2960
2949
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2964,32 +2953,23 @@ function mapToStyles(_ref2) {
|
|
|
2964
2953
|
|
|
2965
2954
|
if (adaptive) {
|
|
2966
2955
|
var offsetParent = getOffsetParent(popper);
|
|
2967
|
-
var heightProp = 'clientHeight';
|
|
2968
|
-
var widthProp = 'clientWidth';
|
|
2969
2956
|
|
|
2970
2957
|
if (offsetParent === getWindow(popper)) {
|
|
2971
2958
|
offsetParent = getDocumentElement(popper);
|
|
2959
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2972
2960
|
|
|
2973
|
-
|
|
2974
|
-
heightProp = 'scrollHeight';
|
|
2975
|
-
widthProp = 'scrollWidth';
|
|
2976
|
-
}
|
|
2977
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2978
|
-
|
|
2961
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2979
2962
|
|
|
2980
|
-
offsetParent = offsetParent;
|
|
2981
2963
|
|
|
2982
2964
|
if (placement === top) {
|
|
2983
|
-
sideY = bottom;
|
|
2984
|
-
|
|
2985
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2965
|
+
sideY = bottom;
|
|
2966
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
2986
2967
|
y *= gpuAcceleration ? 1 : -1;
|
|
2987
2968
|
}
|
|
2988
2969
|
|
|
2989
2970
|
if (placement === left) {
|
|
2990
|
-
sideX = right;
|
|
2991
|
-
|
|
2992
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2971
|
+
sideX = right;
|
|
2972
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
2993
2973
|
x *= gpuAcceleration ? 1 : -1;
|
|
2994
2974
|
}
|
|
2995
2975
|
}
|
|
@@ -3001,24 +2981,22 @@ function mapToStyles(_ref2) {
|
|
|
3001
2981
|
if (gpuAcceleration) {
|
|
3002
2982
|
var _Object$assign;
|
|
3003
2983
|
|
|
3004
|
-
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));
|
|
2984
|
+
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));
|
|
3005
2985
|
}
|
|
3006
2986
|
|
|
3007
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2987
|
+
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));
|
|
3008
2988
|
}
|
|
3009
2989
|
|
|
3010
|
-
function computeStyles(
|
|
3011
|
-
var state =
|
|
3012
|
-
options =
|
|
2990
|
+
function computeStyles(_ref3) {
|
|
2991
|
+
var state = _ref3.state,
|
|
2992
|
+
options = _ref3.options;
|
|
3013
2993
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3014
2994
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3015
2995
|
_options$adaptive = options.adaptive,
|
|
3016
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3017
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3018
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2996
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3019
2997
|
|
|
3020
2998
|
if (process.env.NODE_ENV !== "production") {
|
|
3021
|
-
var transitionProperty = getComputedStyle$
|
|
2999
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3022
3000
|
|
|
3023
3001
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3024
3002
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3035,24 +3013,22 @@ function computeStyles(_ref4) {
|
|
|
3035
3013
|
};
|
|
3036
3014
|
|
|
3037
3015
|
if (state.modifiersData.popperOffsets != null) {
|
|
3038
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3016
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3039
3017
|
offsets: state.modifiersData.popperOffsets,
|
|
3040
3018
|
position: state.options.strategy,
|
|
3041
|
-
adaptive: adaptive
|
|
3042
|
-
roundOffsets: roundOffsets
|
|
3019
|
+
adaptive: adaptive
|
|
3043
3020
|
})));
|
|
3044
3021
|
}
|
|
3045
3022
|
|
|
3046
3023
|
if (state.modifiersData.arrow != null) {
|
|
3047
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3024
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3048
3025
|
offsets: state.modifiersData.arrow,
|
|
3049
3026
|
position: 'absolute',
|
|
3050
|
-
adaptive: false
|
|
3051
|
-
roundOffsets: roundOffsets
|
|
3027
|
+
adaptive: false
|
|
3052
3028
|
})));
|
|
3053
3029
|
}
|
|
3054
3030
|
|
|
3055
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3031
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3056
3032
|
'data-popper-placement': state.placement
|
|
3057
3033
|
});
|
|
3058
3034
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3070,7 +3046,7 @@ var passive = {
|
|
|
3070
3046
|
passive: true
|
|
3071
3047
|
};
|
|
3072
3048
|
|
|
3073
|
-
function effect(_ref) {
|
|
3049
|
+
function effect$1(_ref) {
|
|
3074
3050
|
var state = _ref.state,
|
|
3075
3051
|
instance = _ref.instance,
|
|
3076
3052
|
options = _ref.options;
|
|
@@ -3110,11 +3086,11 @@ var eventListeners = {
|
|
|
3110
3086
|
enabled: true,
|
|
3111
3087
|
phase: 'write',
|
|
3112
3088
|
fn: function fn() {},
|
|
3113
|
-
effect: effect,
|
|
3089
|
+
effect: effect$1,
|
|
3114
3090
|
data: {}
|
|
3115
3091
|
};
|
|
3116
3092
|
|
|
3117
|
-
var hash
|
|
3093
|
+
var hash = {
|
|
3118
3094
|
left: 'right',
|
|
3119
3095
|
right: 'left',
|
|
3120
3096
|
bottom: 'top',
|
|
@@ -3122,20 +3098,34 @@ var hash$1 = {
|
|
|
3122
3098
|
};
|
|
3123
3099
|
function getOppositePlacement(placement) {
|
|
3124
3100
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3125
|
-
return hash
|
|
3101
|
+
return hash[matched];
|
|
3126
3102
|
});
|
|
3127
3103
|
}
|
|
3128
3104
|
|
|
3129
|
-
var hash = {
|
|
3105
|
+
var hash$1 = {
|
|
3130
3106
|
start: 'end',
|
|
3131
3107
|
end: 'start'
|
|
3132
3108
|
};
|
|
3133
3109
|
function getOppositeVariationPlacement(placement) {
|
|
3134
3110
|
return placement.replace(/start|end/g, function (matched) {
|
|
3135
|
-
return hash[matched];
|
|
3111
|
+
return hash$1[matched];
|
|
3136
3112
|
});
|
|
3137
3113
|
}
|
|
3138
3114
|
|
|
3115
|
+
function getBoundingClientRect(element) {
|
|
3116
|
+
var rect = element.getBoundingClientRect();
|
|
3117
|
+
return {
|
|
3118
|
+
width: rect.width,
|
|
3119
|
+
height: rect.height,
|
|
3120
|
+
top: rect.top,
|
|
3121
|
+
right: rect.right,
|
|
3122
|
+
bottom: rect.bottom,
|
|
3123
|
+
left: rect.left,
|
|
3124
|
+
x: rect.left,
|
|
3125
|
+
y: rect.top
|
|
3126
|
+
};
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3139
3129
|
function getWindowScroll(node) {
|
|
3140
3130
|
var win = getWindow(node);
|
|
3141
3131
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3198,18 +3188,16 @@ function getViewportRect(element) {
|
|
|
3198
3188
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3199
3189
|
|
|
3200
3190
|
function getDocumentRect(element) {
|
|
3201
|
-
var _element$ownerDocumen;
|
|
3202
|
-
|
|
3203
3191
|
var html = getDocumentElement(element);
|
|
3204
3192
|
var winScroll = getWindowScroll(element);
|
|
3205
|
-
var body =
|
|
3206
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3207
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3193
|
+
var body = element.ownerDocument.body;
|
|
3194
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3195
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3208
3196
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3209
3197
|
var y = -winScroll.scrollTop;
|
|
3210
3198
|
|
|
3211
|
-
if (getComputedStyle$
|
|
3212
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3199
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3200
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3213
3201
|
}
|
|
3214
3202
|
|
|
3215
3203
|
return {
|
|
@@ -3222,7 +3210,7 @@ function getDocumentRect(element) {
|
|
|
3222
3210
|
|
|
3223
3211
|
function isScrollParent(element) {
|
|
3224
3212
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3225
|
-
var _getComputedStyle = getComputedStyle$
|
|
3213
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3226
3214
|
overflow = _getComputedStyle.overflow,
|
|
3227
3215
|
overflowX = _getComputedStyle.overflowX,
|
|
3228
3216
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3232,7 +3220,7 @@ function isScrollParent(element) {
|
|
|
3232
3220
|
|
|
3233
3221
|
function getScrollParent(node) {
|
|
3234
3222
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3235
|
-
// $FlowFixMe
|
|
3223
|
+
// $FlowFixMe: assume body is always available
|
|
3236
3224
|
return node.ownerDocument.body;
|
|
3237
3225
|
}
|
|
3238
3226
|
|
|
@@ -3246,28 +3234,26 @@ function getScrollParent(node) {
|
|
|
3246
3234
|
/*
|
|
3247
3235
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3248
3236
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3249
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3237
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3250
3238
|
reference element's position.
|
|
3251
3239
|
*/
|
|
3252
3240
|
|
|
3253
3241
|
function listScrollParents(element, list) {
|
|
3254
|
-
var _element$ownerDocumen;
|
|
3255
|
-
|
|
3256
3242
|
if (list === void 0) {
|
|
3257
3243
|
list = [];
|
|
3258
3244
|
}
|
|
3259
3245
|
|
|
3260
3246
|
var scrollParent = getScrollParent(element);
|
|
3261
|
-
var isBody = scrollParent ===
|
|
3247
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3262
3248
|
var win = getWindow(scrollParent);
|
|
3263
3249
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3264
3250
|
var updatedList = list.concat(target);
|
|
3265
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3251
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3266
3252
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3267
3253
|
}
|
|
3268
3254
|
|
|
3269
3255
|
function rectToClientRect(rect) {
|
|
3270
|
-
return Object.assign({}, rect, {
|
|
3256
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3271
3257
|
left: rect.x,
|
|
3272
3258
|
top: rect.y,
|
|
3273
3259
|
right: rect.x + rect.width,
|
|
@@ -3297,16 +3283,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3297
3283
|
|
|
3298
3284
|
function getClippingParents(element) {
|
|
3299
3285
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3300
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3286
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3301
3287
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3302
3288
|
|
|
3303
3289
|
if (!isElement(clipperElement)) {
|
|
3304
3290
|
return [];
|
|
3305
|
-
} // $FlowFixMe
|
|
3291
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3306
3292
|
|
|
3307
3293
|
|
|
3308
3294
|
return clippingParents.filter(function (clippingParent) {
|
|
3309
|
-
return isElement(clippingParent) && contains
|
|
3295
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3310
3296
|
});
|
|
3311
3297
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3312
3298
|
// clipping parents
|
|
@@ -3318,10 +3304,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3318
3304
|
var firstClippingParent = clippingParents[0];
|
|
3319
3305
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3320
3306
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3321
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3322
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3323
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3324
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3307
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3308
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3309
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3310
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3325
3311
|
return accRect;
|
|
3326
3312
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3327
3313
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3388,11 +3374,11 @@ function computeOffsets(_ref) {
|
|
|
3388
3374
|
|
|
3389
3375
|
switch (variation) {
|
|
3390
3376
|
case start:
|
|
3391
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3377
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3392
3378
|
break;
|
|
3393
3379
|
|
|
3394
3380
|
case end:
|
|
3395
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3381
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3396
3382
|
break;
|
|
3397
3383
|
}
|
|
3398
3384
|
}
|
|
@@ -3431,7 +3417,7 @@ function detectOverflow(state, options) {
|
|
|
3431
3417
|
strategy: 'absolute',
|
|
3432
3418
|
placement: placement
|
|
3433
3419
|
});
|
|
3434
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3420
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3435
3421
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3436
3422
|
// 0 or negative = within the clipping rect
|
|
3437
3423
|
|
|
@@ -3455,6 +3441,9 @@ function detectOverflow(state, options) {
|
|
|
3455
3441
|
return overflowOffsets;
|
|
3456
3442
|
}
|
|
3457
3443
|
|
|
3444
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3445
|
+
|
|
3446
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3458
3447
|
function computeAutoPlacement(state, options) {
|
|
3459
3448
|
if (options === void 0) {
|
|
3460
3449
|
options = {};
|
|
@@ -3471,7 +3460,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3471
3460
|
var variation = getVariation(placement);
|
|
3472
3461
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3473
3462
|
return getVariation(placement) === variation;
|
|
3474
|
-
}) : basePlacements;
|
|
3463
|
+
}) : basePlacements; // $FlowFixMe
|
|
3464
|
+
|
|
3475
3465
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3476
3466
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3477
3467
|
});
|
|
@@ -3482,7 +3472,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3482
3472
|
if (process.env.NODE_ENV !== "production") {
|
|
3483
3473
|
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(' '));
|
|
3484
3474
|
}
|
|
3485
|
-
} // $FlowFixMe
|
|
3475
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3486
3476
|
|
|
3487
3477
|
|
|
3488
3478
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3683,7 +3673,7 @@ function hide(_ref) {
|
|
|
3683
3673
|
isReferenceHidden: isReferenceHidden,
|
|
3684
3674
|
hasPopperEscaped: hasPopperEscaped
|
|
3685
3675
|
};
|
|
3686
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3676
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3687
3677
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3688
3678
|
'data-popper-escaped': hasPopperEscaped
|
|
3689
3679
|
});
|
|
@@ -3702,7 +3692,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3702
3692
|
var basePlacement = getBasePlacement(placement);
|
|
3703
3693
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3704
3694
|
|
|
3705
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3695
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3706
3696
|
placement: placement
|
|
3707
3697
|
})) : offset,
|
|
3708
3698
|
skidding = _ref[0],
|
|
@@ -3808,7 +3798,7 @@ function preventOverflow(_ref) {
|
|
|
3808
3798
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3809
3799
|
var referenceRect = state.rects.reference;
|
|
3810
3800
|
var popperRect = state.rects.popper;
|
|
3811
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3801
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3812
3802
|
placement: state.placement
|
|
3813
3803
|
})) : tetherOffset;
|
|
3814
3804
|
var data = {
|
|
@@ -3820,13 +3810,13 @@ function preventOverflow(_ref) {
|
|
|
3820
3810
|
return;
|
|
3821
3811
|
}
|
|
3822
3812
|
|
|
3823
|
-
if (checkMainAxis
|
|
3813
|
+
if (checkMainAxis) {
|
|
3824
3814
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3825
3815
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3826
3816
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3827
3817
|
var offset = popperOffsets[mainAxis];
|
|
3828
|
-
var min
|
|
3829
|
-
var max
|
|
3818
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3819
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3830
3820
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3831
3821
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3832
3822
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3853,29 +3843,26 @@ function preventOverflow(_ref) {
|
|
|
3853
3843
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3854
3844
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3855
3845
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3846
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3847
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3848
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3849
|
+
}
|
|
3856
3850
|
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3860
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
|
-
if (checkAltAxis) {
|
|
3864
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3851
|
+
if (checkAltAxis) {
|
|
3852
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3865
3853
|
|
|
3866
|
-
|
|
3854
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3867
3855
|
|
|
3868
|
-
|
|
3856
|
+
var _offset = popperOffsets[altAxis];
|
|
3869
3857
|
|
|
3870
|
-
|
|
3858
|
+
var _min = _offset + overflow[_mainSide];
|
|
3871
3859
|
|
|
3872
|
-
|
|
3860
|
+
var _max = _offset - overflow[_altSide];
|
|
3873
3861
|
|
|
3874
|
-
|
|
3862
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3875
3863
|
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
}
|
|
3864
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3865
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3879
3866
|
}
|
|
3880
3867
|
|
|
3881
3868
|
state.modifiersData[name] = data;
|
|
@@ -4106,9 +4093,9 @@ function uniqueBy(arr, fn) {
|
|
|
4106
4093
|
function mergeByName(modifiers) {
|
|
4107
4094
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4108
4095
|
var existing = merged[current.name];
|
|
4109
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4110
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4111
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4096
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4097
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4098
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4112
4099
|
}) : current;
|
|
4113
4100
|
return merged;
|
|
4114
4101
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4154,7 +4141,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4154
4141
|
var state = {
|
|
4155
4142
|
placement: 'bottom',
|
|
4156
4143
|
orderedModifiers: [],
|
|
4157
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4144
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4158
4145
|
modifiersData: {},
|
|
4159
4146
|
elements: {
|
|
4160
4147
|
reference: reference,
|
|
@@ -4169,7 +4156,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4169
4156
|
state: state,
|
|
4170
4157
|
setOptions: function setOptions(options) {
|
|
4171
4158
|
cleanupModifierEffects();
|
|
4172
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4159
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4173
4160
|
state.scrollParents = {
|
|
4174
4161
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4175
4162
|
popper: listScrollParents(popper)
|
|
@@ -4201,7 +4188,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4201
4188
|
}
|
|
4202
4189
|
}
|
|
4203
4190
|
|
|
4204
|
-
var _getComputedStyle = getComputedStyle$
|
|
4191
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4205
4192
|
marginTop = _getComputedStyle.marginTop,
|
|
4206
4193
|
marginRight = _getComputedStyle.marginRight,
|
|
4207
4194
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4411,11 +4398,6 @@ var ariaDescribedByModifier = {
|
|
|
4411
4398
|
|
|
4412
4399
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4413
4400
|
var ids = reference.getAttribute('aria-describedby');
|
|
4414
|
-
|
|
4415
|
-
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4416
|
-
return;
|
|
4417
|
-
}
|
|
4418
|
-
|
|
4419
4401
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4420
4402
|
}
|
|
4421
4403
|
}
|
|
@@ -4541,7 +4523,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4541
4523
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4542
4524
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4543
4525
|
// so we need to check on context instead of a document root element.
|
|
4544
|
-
function contains(context, node) {
|
|
4526
|
+
function contains$1(context, node) {
|
|
4545
4527
|
if (context.contains) return context.contains(node);
|
|
4546
4528
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4547
4529
|
}
|
|
@@ -4615,13 +4597,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4615
4597
|
return componentOrElement != null ? componentOrElement : null;
|
|
4616
4598
|
}
|
|
4617
4599
|
|
|
4618
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4619
|
-
return ownerDocument
|
|
4600
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4601
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4620
4602
|
});
|
|
4621
4603
|
|
|
4622
4604
|
var escapeKeyCode = 27;
|
|
4623
4605
|
|
|
4624
|
-
var noop$
|
|
4606
|
+
var noop$1 = function noop() {};
|
|
4625
4607
|
|
|
4626
4608
|
function isLeftClickEvent(event) {
|
|
4627
4609
|
return event.button === 0;
|
|
@@ -4654,11 +4636,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4654
4636
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4655
4637
|
|
|
4656
4638
|
var preventMouseRootCloseRef = useRef(false);
|
|
4657
|
-
var onClose = onRootClose || noop$
|
|
4639
|
+
var onClose = onRootClose || noop$1;
|
|
4658
4640
|
var handleMouseCapture = useCallback(function (e) {
|
|
4659
4641
|
var currentTarget = getRefTarget(ref);
|
|
4660
4642
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4661
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4643
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4662
4644
|
}, [ref]);
|
|
4663
4645
|
var handleMouse = useEventCallback(function (e) {
|
|
4664
4646
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4671,38 +4653,19 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4671
4653
|
}
|
|
4672
4654
|
});
|
|
4673
4655
|
useEffect(function () {
|
|
4674
|
-
if (disabled || ref == null) return undefined;
|
|
4675
|
-
//
|
|
4676
|
-
|
|
4677
|
-
var currentEvent = window.event;
|
|
4678
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4656
|
+
if (disabled || ref == null) return undefined;
|
|
4657
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4679
4658
|
// avoid false positives in the contains() check below if the target DOM
|
|
4680
4659
|
// element is removed in the React mouse callback.
|
|
4681
4660
|
|
|
4682
4661
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4683
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4684
|
-
|
|
4685
|
-
if (e === currentEvent) {
|
|
4686
|
-
currentEvent = undefined;
|
|
4687
|
-
return;
|
|
4688
|
-
}
|
|
4689
|
-
|
|
4690
|
-
handleMouse(e);
|
|
4691
|
-
});
|
|
4692
|
-
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4693
|
-
// skip if this event is the same as the one running when we added the handlers
|
|
4694
|
-
if (e === currentEvent) {
|
|
4695
|
-
currentEvent = undefined;
|
|
4696
|
-
return;
|
|
4697
|
-
}
|
|
4698
|
-
|
|
4699
|
-
handleKeyUp(e);
|
|
4700
|
-
});
|
|
4662
|
+
var removeMouseListener = listen(doc, clickTrigger, handleMouse);
|
|
4663
|
+
var removeKeyupListener = listen(doc, 'keyup', handleKeyUp);
|
|
4701
4664
|
var mobileSafariHackListeners = [];
|
|
4702
4665
|
|
|
4703
4666
|
if ('ontouchstart' in doc.documentElement) {
|
|
4704
4667
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4705
|
-
return listen(el, 'mousemove', noop$
|
|
4668
|
+
return listen(el, 'mousemove', noop$1);
|
|
4706
4669
|
});
|
|
4707
4670
|
}
|
|
4708
4671
|
|
|
@@ -4784,7 +4747,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4784
4747
|
});
|
|
4785
4748
|
}
|
|
4786
4749
|
|
|
4787
|
-
var noop$
|
|
4750
|
+
var noop$2 = function noop() {};
|
|
4788
4751
|
/**
|
|
4789
4752
|
* @memberOf Dropdown
|
|
4790
4753
|
* @param {object} options
|
|
@@ -4852,7 +4815,7 @@ function useDropdownMenu(options) {
|
|
|
4852
4815
|
|
|
4853
4816
|
var menu;
|
|
4854
4817
|
var menuProps = {
|
|
4855
|
-
ref: setMenu || noop$
|
|
4818
|
+
ref: setMenu || noop$2,
|
|
4856
4819
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4857
4820
|
};
|
|
4858
4821
|
var childArgs = {
|
|
@@ -4885,7 +4848,7 @@ function useDropdownMenu(options) {
|
|
|
4885
4848
|
});
|
|
4886
4849
|
return menu;
|
|
4887
4850
|
}
|
|
4888
|
-
var propTypes$
|
|
4851
|
+
var propTypes$2 = {
|
|
4889
4852
|
/**
|
|
4890
4853
|
* A render prop that returns a Menu element. The `props`
|
|
4891
4854
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4942,7 +4905,7 @@ var propTypes$8 = {
|
|
|
4942
4905
|
*/
|
|
4943
4906
|
rootCloseEvent: PropTypes.string
|
|
4944
4907
|
};
|
|
4945
|
-
var defaultProps$
|
|
4908
|
+
var defaultProps$d = {
|
|
4946
4909
|
usePopper: true
|
|
4947
4910
|
};
|
|
4948
4911
|
|
|
@@ -4952,7 +4915,7 @@ var defaultProps$r = {
|
|
|
4952
4915
|
* @displayName DropdownMenu
|
|
4953
4916
|
* @memberOf Dropdown
|
|
4954
4917
|
*/
|
|
4955
|
-
function DropdownMenu
|
|
4918
|
+
function DropdownMenu(_ref2) {
|
|
4956
4919
|
var children = _ref2.children,
|
|
4957
4920
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4958
4921
|
|
|
@@ -4960,11 +4923,11 @@ function DropdownMenu$1(_ref2) {
|
|
|
4960
4923
|
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4961
4924
|
}
|
|
4962
4925
|
|
|
4963
|
-
DropdownMenu
|
|
4964
|
-
DropdownMenu
|
|
4965
|
-
DropdownMenu
|
|
4926
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4927
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4928
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
4966
4929
|
|
|
4967
|
-
var noop$
|
|
4930
|
+
var noop$3 = function noop() {};
|
|
4968
4931
|
/**
|
|
4969
4932
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4970
4933
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4978,11 +4941,11 @@ function useDropdownToggle() {
|
|
|
4978
4941
|
_ref$show = _ref.show,
|
|
4979
4942
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4980
4943
|
_ref$toggle = _ref.toggle,
|
|
4981
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4944
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
4982
4945
|
setToggle = _ref.setToggle;
|
|
4983
4946
|
|
|
4984
4947
|
return [{
|
|
4985
|
-
ref: setToggle || noop$
|
|
4948
|
+
ref: setToggle || noop$3,
|
|
4986
4949
|
'aria-haspopup': true,
|
|
4987
4950
|
'aria-expanded': !!show
|
|
4988
4951
|
}, {
|
|
@@ -4990,7 +4953,7 @@ function useDropdownToggle() {
|
|
|
4990
4953
|
toggle: toggle
|
|
4991
4954
|
}];
|
|
4992
4955
|
}
|
|
4993
|
-
var propTypes$
|
|
4956
|
+
var propTypes$3 = {
|
|
4994
4957
|
/**
|
|
4995
4958
|
* A render prop that returns a Toggle element. The `props`
|
|
4996
4959
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5015,7 +4978,7 @@ var propTypes$7 = {
|
|
|
5015
4978
|
* @displayName DropdownToggle
|
|
5016
4979
|
* @memberOf Dropdown
|
|
5017
4980
|
*/
|
|
5018
|
-
function DropdownToggle
|
|
4981
|
+
function DropdownToggle(_ref2) {
|
|
5019
4982
|
var children = _ref2.children;
|
|
5020
4983
|
|
|
5021
4984
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5031,10 +4994,10 @@ function DropdownToggle$1(_ref2) {
|
|
|
5031
4994
|
}));
|
|
5032
4995
|
}
|
|
5033
4996
|
|
|
5034
|
-
DropdownToggle
|
|
5035
|
-
DropdownToggle
|
|
4997
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4998
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5036
4999
|
|
|
5037
|
-
var propTypes$
|
|
5000
|
+
var propTypes$4 = {
|
|
5038
5001
|
/**
|
|
5039
5002
|
* A render prop that returns the root dropdown element. The `props`
|
|
5040
5003
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5106,7 +5069,7 @@ var propTypes$6 = {
|
|
|
5106
5069
|
/**
|
|
5107
5070
|
* @displayName Dropdown
|
|
5108
5071
|
*/
|
|
5109
|
-
function Dropdown
|
|
5072
|
+
function Dropdown(_ref) {
|
|
5110
5073
|
var drop = _ref.drop,
|
|
5111
5074
|
alignEnd = _ref.alignEnd,
|
|
5112
5075
|
defaultShow = _ref.defaultShow,
|
|
@@ -5248,15 +5211,15 @@ function Dropdown$1(_ref) {
|
|
|
5248
5211
|
}));
|
|
5249
5212
|
}
|
|
5250
5213
|
|
|
5251
|
-
Dropdown
|
|
5252
|
-
Dropdown
|
|
5253
|
-
Dropdown
|
|
5254
|
-
Dropdown
|
|
5214
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5215
|
+
Dropdown.propTypes = propTypes$4;
|
|
5216
|
+
Dropdown.Menu = DropdownMenu;
|
|
5217
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5255
5218
|
|
|
5256
5219
|
var NavContext = React.createContext(null);
|
|
5257
5220
|
NavContext.displayName = 'NavContext';
|
|
5258
5221
|
|
|
5259
|
-
var defaultProps$
|
|
5222
|
+
var defaultProps$e = {
|
|
5260
5223
|
as: SafeAnchor,
|
|
5261
5224
|
disabled: false
|
|
5262
5225
|
};
|
|
@@ -5278,10 +5241,9 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5278
5241
|
var navContext = useContext(NavContext);
|
|
5279
5242
|
|
|
5280
5243
|
var _ref2 = navContext || {},
|
|
5281
|
-
activeKey = _ref2.activeKey;
|
|
5282
|
-
|
|
5244
|
+
activeKey = _ref2.activeKey;
|
|
5283
5245
|
|
|
5284
|
-
var key = makeEventKey(eventKey, href);
|
|
5246
|
+
var key = makeEventKey(eventKey || null, href);
|
|
5285
5247
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5286
5248
|
var handleClick = useEventCallback(function (event) {
|
|
5287
5249
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5305,7 +5267,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5305
5267
|
);
|
|
5306
5268
|
});
|
|
5307
5269
|
DropdownItem.displayName = 'DropdownItem';
|
|
5308
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5270
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5309
5271
|
|
|
5310
5272
|
var toFnRef = function toFnRef(ref) {
|
|
5311
5273
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5344,8 +5306,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5344
5306
|
}, [refA, refB]);
|
|
5345
5307
|
}
|
|
5346
5308
|
|
|
5347
|
-
var context = React.createContext(null);
|
|
5348
|
-
context.displayName = 'NavbarContext';
|
|
5309
|
+
var context$2 = React.createContext(null);
|
|
5310
|
+
context$2.displayName = 'NavbarContext';
|
|
5349
5311
|
|
|
5350
5312
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5351
5313
|
// @ts-ignore
|
|
@@ -5380,14 +5342,12 @@ function getMargins(element) {
|
|
|
5380
5342
|
function usePopperMarginModifiers() {
|
|
5381
5343
|
var overlayRef = useRef(null);
|
|
5382
5344
|
var margins = useRef(null);
|
|
5383
|
-
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5384
|
-
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5385
5345
|
var callback = useCallback(function (overlay) {
|
|
5386
|
-
if (!overlay || !(hasClass(overlay,
|
|
5346
|
+
if (!overlay || !(hasClass(overlay, 'popover') || hasClass(overlay, 'dropdown-menu'))) return;
|
|
5387
5347
|
margins.current = getMargins(overlay);
|
|
5388
5348
|
overlay.style.margin = '0';
|
|
5389
5349
|
overlayRef.current = overlay;
|
|
5390
|
-
}, [
|
|
5350
|
+
}, []);
|
|
5391
5351
|
var offset = useMemo(function () {
|
|
5392
5352
|
return {
|
|
5393
5353
|
name: 'offset',
|
|
@@ -5431,7 +5391,7 @@ function usePopperMarginModifiers() {
|
|
|
5431
5391
|
effect: function effect(_ref2) {
|
|
5432
5392
|
var state = _ref2.state;
|
|
5433
5393
|
|
|
5434
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5394
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, 'popover') || !state.modifiersData['arrow#persistent']) {
|
|
5435
5395
|
return undefined;
|
|
5436
5396
|
}
|
|
5437
5397
|
|
|
@@ -5452,30 +5412,18 @@ function usePopperMarginModifiers() {
|
|
|
5452
5412
|
};
|
|
5453
5413
|
}
|
|
5454
5414
|
};
|
|
5455
|
-
}, [
|
|
5415
|
+
}, []);
|
|
5456
5416
|
return [callback, [offset, popoverArrowMargins]];
|
|
5457
5417
|
}
|
|
5458
5418
|
|
|
5459
|
-
var
|
|
5460
|
-
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5461
|
-
sm: alignDirection
|
|
5462
|
-
}), PropTypes.shape({
|
|
5463
|
-
md: alignDirection
|
|
5464
|
-
}), PropTypes.shape({
|
|
5465
|
-
lg: alignDirection
|
|
5466
|
-
}), PropTypes.shape({
|
|
5467
|
-
xl: alignDirection
|
|
5468
|
-
})]);
|
|
5469
|
-
var defaultProps$p = {
|
|
5470
|
-
align: 'left',
|
|
5419
|
+
var defaultProps$f = {
|
|
5471
5420
|
alignRight: false,
|
|
5472
5421
|
flip: true
|
|
5473
5422
|
}; // TODO: remove this hack
|
|
5474
5423
|
|
|
5475
|
-
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
5424
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5476
5425
|
var bsPrefix = _ref.bsPrefix,
|
|
5477
5426
|
className = _ref.className,
|
|
5478
|
-
align = _ref.align,
|
|
5479
5427
|
alignRight = _ref.alignRight,
|
|
5480
5428
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5481
5429
|
flip = _ref.flip,
|
|
@@ -5484,42 +5432,21 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5484
5432
|
_ref$as = _ref.as,
|
|
5485
5433
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5486
5434
|
popperConfig = _ref.popperConfig,
|
|
5487
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
5435
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5488
5436
|
|
|
5489
|
-
var isNavbar = useContext(context);
|
|
5437
|
+
var isNavbar = useContext(context$2);
|
|
5490
5438
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5491
5439
|
|
|
5492
5440
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5493
5441
|
popperRef = _usePopperMarginModif[0],
|
|
5494
5442
|
marginModifiers = _usePopperMarginModif[1];
|
|
5495
5443
|
|
|
5496
|
-
var alignClasses = [];
|
|
5497
|
-
|
|
5498
|
-
if (align) {
|
|
5499
|
-
if (typeof align === 'object') {
|
|
5500
|
-
var keys = Object.keys(align);
|
|
5501
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5502
|
-
|
|
5503
|
-
if (keys.length) {
|
|
5504
|
-
var brkPoint = keys[0];
|
|
5505
|
-
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5506
|
-
// left in addition to align left classes.
|
|
5507
|
-
// Reuse alignRight to toggle the class below.
|
|
5508
|
-
|
|
5509
|
-
alignRight = direction === 'left';
|
|
5510
|
-
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5511
|
-
}
|
|
5512
|
-
} else if (align === 'right') {
|
|
5513
|
-
alignRight = true;
|
|
5514
|
-
}
|
|
5515
|
-
}
|
|
5516
|
-
|
|
5517
5444
|
var _ref2 = useDropdownMenu({
|
|
5518
5445
|
flip: flip,
|
|
5519
5446
|
rootCloseEvent: rootCloseEvent,
|
|
5520
5447
|
show: showProps,
|
|
5521
5448
|
alignEnd: alignRight,
|
|
5522
|
-
usePopper: !isNavbar
|
|
5449
|
+
usePopper: !isNavbar,
|
|
5523
5450
|
popperConfig: _extends({}, popperConfig, {
|
|
5524
5451
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5525
5452
|
})
|
|
@@ -5548,11 +5475,11 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5548
5475
|
}
|
|
5549
5476
|
|
|
5550
5477
|
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5551
|
-
className: classnames
|
|
5478
|
+
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5552
5479
|
}));
|
|
5553
5480
|
});
|
|
5554
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5555
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5481
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5482
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5556
5483
|
|
|
5557
5484
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5558
5485
|
|
|
@@ -5581,14 +5508,15 @@ module.exports = exports['default'];
|
|
|
5581
5508
|
|
|
5582
5509
|
unwrapExports(isRequiredForA11y_1);
|
|
5583
5510
|
|
|
5584
|
-
var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
5511
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5585
5512
|
var bsPrefix = _ref.bsPrefix,
|
|
5586
5513
|
split = _ref.split,
|
|
5587
5514
|
className = _ref.className,
|
|
5515
|
+
children = _ref.children,
|
|
5588
5516
|
childBsPrefix = _ref.childBsPrefix,
|
|
5589
5517
|
_ref$as = _ref.as,
|
|
5590
5518
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5591
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5519
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "children", "childBsPrefix", "as"]);
|
|
5592
5520
|
|
|
5593
5521
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5594
5522
|
|
|
@@ -5606,9 +5534,9 @@ var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
|
5606
5534
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5607
5535
|
onClick: toggle,
|
|
5608
5536
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5609
|
-
}, toggleProps, props));
|
|
5537
|
+
}, toggleProps, props), children);
|
|
5610
5538
|
});
|
|
5611
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5539
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5612
5540
|
|
|
5613
5541
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5614
5542
|
defaultProps: {
|
|
@@ -5623,10 +5551,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5623
5551
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5624
5552
|
Component: 'span'
|
|
5625
5553
|
});
|
|
5626
|
-
var defaultProps$
|
|
5554
|
+
var defaultProps$g = {
|
|
5627
5555
|
navbar: false
|
|
5628
5556
|
};
|
|
5629
|
-
var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
5557
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5630
5558
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5631
5559
|
show: 'onToggle'
|
|
5632
5560
|
}),
|
|
@@ -5639,9 +5567,9 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5639
5567
|
onToggle = _useUncontrolled.onToggle,
|
|
5640
5568
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5641
5569
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5642
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5643
|
-
_useUncontrolled.navbar
|
|
5644
|
-
|
|
5570
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5571
|
+
_4 = _useUncontrolled.navbar,
|
|
5572
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5645
5573
|
|
|
5646
5574
|
var onSelectCtx = useContext(SelectableContext);
|
|
5647
5575
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5665,7 +5593,7 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5665
5593
|
});
|
|
5666
5594
|
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5667
5595
|
value: handleSelect
|
|
5668
|
-
}, /*#__PURE__*/React.createElement(Dropdown
|
|
5596
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5669
5597
|
drop: drop,
|
|
5670
5598
|
show: show,
|
|
5671
5599
|
alignEnd: alignRight,
|
|
@@ -5680,14 +5608,14 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5680
5608
|
}));
|
|
5681
5609
|
}));
|
|
5682
5610
|
});
|
|
5683
|
-
Dropdown.displayName = 'Dropdown';
|
|
5684
|
-
Dropdown.defaultProps = defaultProps$
|
|
5685
|
-
Dropdown.Divider = DropdownDivider;
|
|
5686
|
-
Dropdown.Header = DropdownHeader;
|
|
5687
|
-
Dropdown.Item = DropdownItem;
|
|
5688
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5689
|
-
Dropdown.Menu = DropdownMenu;
|
|
5690
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5611
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5612
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5613
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5614
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5615
|
+
Dropdown$1.Item = DropdownItem;
|
|
5616
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5617
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5618
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5691
5619
|
|
|
5692
5620
|
var propTypes$5 = {
|
|
5693
5621
|
/**
|
|
@@ -5709,15 +5637,6 @@ var propTypes$5 = {
|
|
|
5709
5637
|
/** Disables both Buttons */
|
|
5710
5638
|
disabled: PropTypes.bool,
|
|
5711
5639
|
|
|
5712
|
-
/**
|
|
5713
|
-
* Aligns the dropdown menu responsively.
|
|
5714
|
-
*
|
|
5715
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5716
|
-
*
|
|
5717
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5718
|
-
*/
|
|
5719
|
-
menuAlign: alignPropType,
|
|
5720
|
-
|
|
5721
5640
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5722
5641
|
menuRole: PropTypes.string,
|
|
5723
5642
|
|
|
@@ -5727,7 +5646,7 @@ var propTypes$5 = {
|
|
|
5727
5646
|
/**
|
|
5728
5647
|
* Which event when fired outside the component will cause it to be closed.
|
|
5729
5648
|
*
|
|
5730
|
-
* _see [DropdownMenu](#
|
|
5649
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
5731
5650
|
*/
|
|
5732
5651
|
rootCloseEvent: PropTypes.string,
|
|
5733
5652
|
|
|
@@ -5756,25 +5675,23 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
5756
5675
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5757
5676
|
variant = _ref.variant,
|
|
5758
5677
|
size = _ref.size,
|
|
5759
|
-
menuAlign = _ref.menuAlign,
|
|
5760
5678
|
menuRole = _ref.menuRole,
|
|
5761
5679
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5762
5680
|
disabled = _ref.disabled,
|
|
5763
5681
|
href = _ref.href,
|
|
5764
5682
|
id = _ref.id,
|
|
5765
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "
|
|
5683
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5766
5684
|
|
|
5767
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
5685
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5768
5686
|
ref: ref
|
|
5769
|
-
}, props), /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
5687
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5770
5688
|
id: id,
|
|
5771
5689
|
href: href,
|
|
5772
5690
|
size: size,
|
|
5773
5691
|
variant: variant,
|
|
5774
5692
|
disabled: disabled,
|
|
5775
5693
|
childBsPrefix: bsPrefix
|
|
5776
|
-
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
5777
|
-
align: menuAlign,
|
|
5694
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5778
5695
|
role: menuRole,
|
|
5779
5696
|
renderOnMount: renderMenuOnMount,
|
|
5780
5697
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5876,7 +5793,7 @@ module.exports = exports['default'];
|
|
|
5876
5793
|
|
|
5877
5794
|
unwrapExports(all_1);
|
|
5878
5795
|
|
|
5879
|
-
var propTypes$
|
|
5796
|
+
var propTypes$6 = {
|
|
5880
5797
|
/**
|
|
5881
5798
|
* Specify whether the feedback is for valid or invalid fields
|
|
5882
5799
|
*
|
|
@@ -5905,7 +5822,7 @@ function (_ref, ref) {
|
|
|
5905
5822
|
}));
|
|
5906
5823
|
});
|
|
5907
5824
|
Feedback.displayName = 'Feedback';
|
|
5908
|
-
Feedback.propTypes = propTypes$
|
|
5825
|
+
Feedback.propTypes = propTypes$6;
|
|
5909
5826
|
|
|
5910
5827
|
var FormContext = React.createContext({
|
|
5911
5828
|
controlId: undefined
|
|
@@ -6014,7 +5931,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
6014
5931
|
custom: custom
|
|
6015
5932
|
};
|
|
6016
5933
|
}, [controlId, custom, id]);
|
|
6017
|
-
var hasLabel =
|
|
5934
|
+
var hasLabel = label != null && label !== false && !children;
|
|
6018
5935
|
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6019
5936
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6020
5937
|
ref: ref,
|
|
@@ -6255,7 +6172,7 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6255
6172
|
});
|
|
6256
6173
|
FormGroup.displayName = 'FormGroup';
|
|
6257
6174
|
|
|
6258
|
-
var defaultProps$
|
|
6175
|
+
var defaultProps$h = {
|
|
6259
6176
|
column: false,
|
|
6260
6177
|
srOnly: false
|
|
6261
6178
|
};
|
|
@@ -6274,7 +6191,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6274
6191
|
|
|
6275
6192
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6276
6193
|
var columnClass = 'col-form-label';
|
|
6277
|
-
if (typeof column === 'string') columnClass = columnClass + "
|
|
6194
|
+
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6278
6195
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6279
6196
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6280
6197
|
htmlFor = htmlFor || controlId;
|
|
@@ -6294,7 +6211,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6294
6211
|
);
|
|
6295
6212
|
});
|
|
6296
6213
|
FormLabel.displayName = 'FormLabel';
|
|
6297
|
-
FormLabel.defaultProps = defaultProps$
|
|
6214
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6298
6215
|
|
|
6299
6216
|
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
|
|
6300
6217
|
function (_ref, ref) {
|
|
@@ -6324,7 +6241,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6324
6241
|
Switch.Label = FormCheck.Label;
|
|
6325
6242
|
|
|
6326
6243
|
var FormRow = createWithBsPrefix('form-row');
|
|
6327
|
-
var defaultProps$
|
|
6244
|
+
var defaultProps$i = {
|
|
6328
6245
|
inline: false
|
|
6329
6246
|
};
|
|
6330
6247
|
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
@@ -6343,7 +6260,7 @@ var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
|
6343
6260
|
}));
|
|
6344
6261
|
});
|
|
6345
6262
|
FormImpl.displayName = 'Form';
|
|
6346
|
-
FormImpl.defaultProps = defaultProps$
|
|
6263
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6347
6264
|
FormImpl.Row = FormRow;
|
|
6348
6265
|
FormImpl.Group = FormGroup;
|
|
6349
6266
|
FormImpl.Control = FormControl$1;
|
|
@@ -6353,7 +6270,7 @@ FormImpl.Switch = Switch;
|
|
|
6353
6270
|
FormImpl.Label = FormLabel;
|
|
6354
6271
|
FormImpl.Text = FormText;
|
|
6355
6272
|
|
|
6356
|
-
var defaultProps$
|
|
6273
|
+
var defaultProps$j = {
|
|
6357
6274
|
fluid: false
|
|
6358
6275
|
};
|
|
6359
6276
|
var Container = React.forwardRef(function (_ref, ref) {
|
|
@@ -6373,9 +6290,9 @@ var Container = React.forwardRef(function (_ref, ref) {
|
|
|
6373
6290
|
}));
|
|
6374
6291
|
});
|
|
6375
6292
|
Container.displayName = 'Container';
|
|
6376
|
-
Container.defaultProps = defaultProps$
|
|
6293
|
+
Container.defaultProps = defaultProps$j;
|
|
6377
6294
|
|
|
6378
|
-
var propTypes$
|
|
6295
|
+
var propTypes$7 = {
|
|
6379
6296
|
/**
|
|
6380
6297
|
* @default 'img'
|
|
6381
6298
|
*/
|
|
@@ -6428,7 +6345,7 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6428
6345
|
Image.displayName = 'Image';
|
|
6429
6346
|
Image.defaultProps = defaultProps$k;
|
|
6430
6347
|
|
|
6431
|
-
var defaultProps$
|
|
6348
|
+
var defaultProps$l = {
|
|
6432
6349
|
fluid: true
|
|
6433
6350
|
};
|
|
6434
6351
|
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
@@ -6442,8 +6359,8 @@ var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
|
6442
6359
|
}));
|
|
6443
6360
|
});
|
|
6444
6361
|
FigureImage.displayName = 'FigureImage';
|
|
6445
|
-
FigureImage.propTypes = propTypes$
|
|
6446
|
-
FigureImage.defaultProps = defaultProps$
|
|
6362
|
+
FigureImage.propTypes = propTypes$7;
|
|
6363
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6447
6364
|
|
|
6448
6365
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6449
6366
|
Component: 'figcaption'
|
|
@@ -6498,7 +6415,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6498
6415
|
});
|
|
6499
6416
|
InputGroup.displayName = 'InputGroup';
|
|
6500
6417
|
|
|
6501
|
-
_extends({}, InputGroup, {
|
|
6418
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6502
6419
|
Text: InputGroupText,
|
|
6503
6420
|
Radio: InputGroupRadio,
|
|
6504
6421
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6506,7 +6423,7 @@ _extends({}, InputGroup, {
|
|
|
6506
6423
|
Prepend: InputGroupPrepend
|
|
6507
6424
|
});
|
|
6508
6425
|
|
|
6509
|
-
var defaultProps$
|
|
6426
|
+
var defaultProps$m = {
|
|
6510
6427
|
fluid: false
|
|
6511
6428
|
};
|
|
6512
6429
|
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
@@ -6527,13 +6444,13 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6527
6444
|
className: classnames(className, classes)
|
|
6528
6445
|
}));
|
|
6529
6446
|
});
|
|
6530
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6447
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6531
6448
|
Jumbotron.displayName = 'Jumbotron';
|
|
6532
6449
|
|
|
6533
6450
|
var TabContext = React.createContext(null);
|
|
6534
6451
|
|
|
6535
6452
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6536
|
-
var noop$
|
|
6453
|
+
var noop$4 = function noop() {};
|
|
6537
6454
|
|
|
6538
6455
|
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6539
6456
|
var _ref$as = _ref.as,
|
|
@@ -6623,8 +6540,8 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6623
6540
|
role: role,
|
|
6624
6541
|
// used by NavLink to determine it's role
|
|
6625
6542
|
activeKey: makeEventKey(activeKey),
|
|
6626
|
-
getControlledId: getControlledId || noop$
|
|
6627
|
-
getControllerId: getControllerId || noop$
|
|
6543
|
+
getControlledId: getControlledId || noop$4,
|
|
6544
|
+
getControllerId: getControllerId || noop$4
|
|
6628
6545
|
}
|
|
6629
6546
|
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6630
6547
|
onKeyDown: handleKeyDown,
|
|
@@ -6633,7 +6550,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6633
6550
|
}))));
|
|
6634
6551
|
});
|
|
6635
6552
|
|
|
6636
|
-
var defaultProps$
|
|
6553
|
+
var defaultProps$n = {
|
|
6637
6554
|
disabled: false
|
|
6638
6555
|
};
|
|
6639
6556
|
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
@@ -6679,9 +6596,9 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6679
6596
|
className: classnames(className, isActive && 'active')
|
|
6680
6597
|
}));
|
|
6681
6598
|
});
|
|
6682
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6599
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6683
6600
|
|
|
6684
|
-
var defaultProps$
|
|
6601
|
+
var defaultProps$o = {
|
|
6685
6602
|
variant: undefined,
|
|
6686
6603
|
active: false,
|
|
6687
6604
|
disabled: false
|
|
@@ -6711,18 +6628,17 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6711
6628
|
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6712
6629
|
ref: ref
|
|
6713
6630
|
}, props, {
|
|
6714
|
-
|
|
6715
|
-
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6631
|
+
eventKey: makeEventKey(eventKey || null, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6716
6632
|
,
|
|
6717
6633
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6718
6634
|
onClick: handleClick,
|
|
6719
6635
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6720
6636
|
}));
|
|
6721
6637
|
});
|
|
6722
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6638
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6723
6639
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6724
6640
|
|
|
6725
|
-
var defaultProps$
|
|
6641
|
+
var defaultProps$p = {
|
|
6726
6642
|
variant: undefined,
|
|
6727
6643
|
horizontal: undefined
|
|
6728
6644
|
};
|
|
@@ -6755,7 +6671,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6755
6671
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6756
6672
|
}));
|
|
6757
6673
|
});
|
|
6758
|
-
ListGroup.defaultProps = defaultProps$
|
|
6674
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6759
6675
|
ListGroup.displayName = 'ListGroup';
|
|
6760
6676
|
ListGroup.Item = ListGroupItem;
|
|
6761
6677
|
|
|
@@ -6804,7 +6720,7 @@ function scrollbarSize(recalc) {
|
|
|
6804
6720
|
|
|
6805
6721
|
function activeElement(doc) {
|
|
6806
6722
|
if (doc === void 0) {
|
|
6807
|
-
doc = ownerDocument
|
|
6723
|
+
doc = ownerDocument();
|
|
6808
6724
|
}
|
|
6809
6725
|
|
|
6810
6726
|
// Support: IE 9 only
|
|
@@ -6854,7 +6770,7 @@ function isBody(node) {
|
|
|
6854
6770
|
}
|
|
6855
6771
|
|
|
6856
6772
|
function bodyIsOverflowing(node) {
|
|
6857
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6773
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6858
6774
|
var win = isWindow(node) || doc.defaultView;
|
|
6859
6775
|
return doc.body.clientWidth < win.innerWidth;
|
|
6860
6776
|
}
|
|
@@ -7066,7 +6982,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7066
6982
|
var _ref;
|
|
7067
6983
|
|
|
7068
6984
|
if (typeof document === 'undefined') return null;
|
|
7069
|
-
if (ref == null) return ownerDocument
|
|
6985
|
+
if (ref == null) return ownerDocument().body;
|
|
7070
6986
|
if (typeof ref === 'function') ref = ref();
|
|
7071
6987
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7072
6988
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7099,11 +7015,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7099
7015
|
return resolvedRef;
|
|
7100
7016
|
}
|
|
7101
7017
|
|
|
7102
|
-
var manager
|
|
7018
|
+
var manager;
|
|
7103
7019
|
|
|
7104
7020
|
function getManager() {
|
|
7105
|
-
if (!manager
|
|
7106
|
-
return manager
|
|
7021
|
+
if (!manager) manager = new ModalManager();
|
|
7022
|
+
return manager;
|
|
7107
7023
|
}
|
|
7108
7024
|
|
|
7109
7025
|
function useModalManager(provided) {
|
|
@@ -7131,7 +7047,7 @@ function useModalManager(provided) {
|
|
|
7131
7047
|
});
|
|
7132
7048
|
}
|
|
7133
7049
|
|
|
7134
|
-
var Modal
|
|
7050
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7135
7051
|
var _ref$show = _ref.show,
|
|
7136
7052
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7137
7053
|
_ref$role = _ref.role,
|
|
@@ -7215,7 +7131,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7215
7131
|
if (autoFocus) {
|
|
7216
7132
|
var currentActiveElement = activeElement(document);
|
|
7217
7133
|
|
|
7218
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7134
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7219
7135
|
lastFocusRef.current = currentActiveElement;
|
|
7220
7136
|
modal.dialog.focus();
|
|
7221
7137
|
}
|
|
@@ -7261,7 +7177,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7261
7177
|
|
|
7262
7178
|
var currentActiveElement = activeElement();
|
|
7263
7179
|
|
|
7264
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7180
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7265
7181
|
modal.dialog.focus();
|
|
7266
7182
|
}
|
|
7267
7183
|
});
|
|
@@ -7352,7 +7268,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7352
7268
|
|
|
7353
7269
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7354
7270
|
});
|
|
7355
|
-
var propTypes$
|
|
7271
|
+
var propTypes$8 = {
|
|
7356
7272
|
/**
|
|
7357
7273
|
* Set the visibility of the Modal
|
|
7358
7274
|
*/
|
|
@@ -7508,9 +7424,9 @@ var propTypes$2 = {
|
|
|
7508
7424
|
*/
|
|
7509
7425
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7510
7426
|
};
|
|
7511
|
-
Modal
|
|
7512
|
-
Modal
|
|
7513
|
-
var BaseModal = Object.assign(Modal
|
|
7427
|
+
Modal.displayName = 'Modal';
|
|
7428
|
+
Modal.propTypes = propTypes$8;
|
|
7429
|
+
var BaseModal = Object.assign(Modal, {
|
|
7514
7430
|
Manager: ModalManager
|
|
7515
7431
|
});
|
|
7516
7432
|
|
|
@@ -7597,12 +7513,11 @@ var ModalContext = React.createContext({
|
|
|
7597
7513
|
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7598
7514
|
var bsPrefix = _ref.bsPrefix,
|
|
7599
7515
|
className = _ref.className,
|
|
7600
|
-
contentClassName = _ref.contentClassName,
|
|
7601
7516
|
centered = _ref.centered,
|
|
7602
7517
|
size = _ref.size,
|
|
7603
7518
|
children = _ref.children,
|
|
7604
7519
|
scrollable = _ref.scrollable,
|
|
7605
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
7520
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7606
7521
|
|
|
7607
7522
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7608
7523
|
var dialogClass = bsPrefix + "-dialog";
|
|
@@ -7610,14 +7525,14 @@ var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
|
7610
7525
|
ref: ref,
|
|
7611
7526
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7612
7527
|
}), /*#__PURE__*/React.createElement("div", {
|
|
7613
|
-
className:
|
|
7528
|
+
className: bsPrefix + "-content"
|
|
7614
7529
|
}, children));
|
|
7615
7530
|
});
|
|
7616
7531
|
ModalDialog.displayName = 'ModalDialog';
|
|
7617
7532
|
|
|
7618
7533
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7619
7534
|
|
|
7620
|
-
var defaultProps$
|
|
7535
|
+
var defaultProps$q = {
|
|
7621
7536
|
closeLabel: 'Close',
|
|
7622
7537
|
closeButton: false
|
|
7623
7538
|
};
|
|
@@ -7646,15 +7561,15 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7646
7561
|
}));
|
|
7647
7562
|
});
|
|
7648
7563
|
ModalHeader.displayName = 'ModalHeader';
|
|
7649
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7564
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7650
7565
|
|
|
7651
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7566
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7652
7567
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7653
|
-
Component: DivStyledAsH4
|
|
7568
|
+
Component: DivStyledAsH4$1
|
|
7654
7569
|
});
|
|
7655
7570
|
|
|
7656
|
-
var manager;
|
|
7657
|
-
var defaultProps$
|
|
7571
|
+
var manager$1;
|
|
7572
|
+
var defaultProps$r = {
|
|
7658
7573
|
show: false,
|
|
7659
7574
|
backdrop: true,
|
|
7660
7575
|
keyboard: true,
|
|
@@ -7676,12 +7591,11 @@ function BackdropTransition(props) {
|
|
|
7676
7591
|
/* eslint-enable no-use-before-define */
|
|
7677
7592
|
|
|
7678
7593
|
|
|
7679
|
-
var Modal = React.forwardRef(function (_ref, ref) {
|
|
7594
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7680
7595
|
var bsPrefix = _ref.bsPrefix,
|
|
7681
7596
|
className = _ref.className,
|
|
7682
7597
|
style = _ref.style,
|
|
7683
7598
|
dialogClassName = _ref.dialogClassName,
|
|
7684
|
-
contentClassName = _ref.contentClassName,
|
|
7685
7599
|
children = _ref.children,
|
|
7686
7600
|
Dialog = _ref.dialogAs,
|
|
7687
7601
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7705,7 +7619,7 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7705
7619
|
onExited = _ref.onExited,
|
|
7706
7620
|
backdropClassName = _ref.backdropClassName,
|
|
7707
7621
|
propsManager = _ref.manager,
|
|
7708
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "
|
|
7622
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7709
7623
|
|
|
7710
7624
|
var _useState = useState({}),
|
|
7711
7625
|
modalStyle = _useState[0],
|
|
@@ -7742,14 +7656,14 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7742
7656
|
|
|
7743
7657
|
function getModalManager() {
|
|
7744
7658
|
if (propsManager) return propsManager;
|
|
7745
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7746
|
-
return manager;
|
|
7659
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7660
|
+
return manager$1;
|
|
7747
7661
|
}
|
|
7748
7662
|
|
|
7749
7663
|
function updateDialogStyle(node) {
|
|
7750
7664
|
if (!canUseDOM) return;
|
|
7751
7665
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7752
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7666
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7753
7667
|
setStyle({
|
|
7754
7668
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7755
7669
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7895,8 +7809,7 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7895
7809
|
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7896
7810
|
role: "document",
|
|
7897
7811
|
onMouseDown: handleDialogMouseDown,
|
|
7898
|
-
className: dialogClassName
|
|
7899
|
-
contentClassName: contentClassName
|
|
7812
|
+
className: dialogClassName
|
|
7900
7813
|
}), children));
|
|
7901
7814
|
};
|
|
7902
7815
|
|
|
@@ -7930,15 +7843,15 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7930
7843
|
renderDialog: renderDialog
|
|
7931
7844
|
}));
|
|
7932
7845
|
});
|
|
7933
|
-
Modal.displayName = 'Modal';
|
|
7934
|
-
Modal.defaultProps = defaultProps$
|
|
7935
|
-
Modal.Body = ModalBody;
|
|
7936
|
-
Modal.Header = ModalHeader;
|
|
7937
|
-
Modal.Title = ModalTitle;
|
|
7938
|
-
Modal.Footer = ModalFooter;
|
|
7939
|
-
Modal.Dialog = ModalDialog;
|
|
7940
|
-
Modal.TRANSITION_DURATION = 300;
|
|
7941
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7846
|
+
Modal$1.displayName = 'Modal';
|
|
7847
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7848
|
+
Modal$1.Body = ModalBody;
|
|
7849
|
+
Modal$1.Header = ModalHeader;
|
|
7850
|
+
Modal$1.Title = ModalTitle;
|
|
7851
|
+
Modal$1.Footer = ModalFooter;
|
|
7852
|
+
Modal$1.Dialog = ModalDialog;
|
|
7853
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7854
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7942
7855
|
|
|
7943
7856
|
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
|
|
7944
7857
|
function (_ref, ref) {
|
|
@@ -7957,7 +7870,7 @@ function (_ref, ref) {
|
|
|
7957
7870
|
});
|
|
7958
7871
|
NavItem.displayName = 'NavItem';
|
|
7959
7872
|
|
|
7960
|
-
var defaultProps$
|
|
7873
|
+
var defaultProps$s = {
|
|
7961
7874
|
disabled: false,
|
|
7962
7875
|
as: SafeAnchor
|
|
7963
7876
|
};
|
|
@@ -7983,9 +7896,9 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7983
7896
|
}));
|
|
7984
7897
|
});
|
|
7985
7898
|
NavLink.displayName = 'NavLink';
|
|
7986
|
-
NavLink.defaultProps = defaultProps$
|
|
7899
|
+
NavLink.defaultProps = defaultProps$s;
|
|
7987
7900
|
|
|
7988
|
-
var defaultProps$
|
|
7901
|
+
var defaultProps$t = {
|
|
7989
7902
|
justify: false,
|
|
7990
7903
|
fill: false
|
|
7991
7904
|
};
|
|
@@ -8011,7 +7924,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8011
7924
|
var navbarBsPrefix;
|
|
8012
7925
|
var cardHeaderBsPrefix;
|
|
8013
7926
|
var isNavbar = false;
|
|
8014
|
-
var navbarContext = useContext(context);
|
|
7927
|
+
var navbarContext = useContext(context$2);
|
|
8015
7928
|
var cardContext = useContext(context$1);
|
|
8016
7929
|
|
|
8017
7930
|
if (navbarContext) {
|
|
@@ -8029,7 +7942,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8029
7942
|
}, props), children);
|
|
8030
7943
|
});
|
|
8031
7944
|
Nav.displayName = 'Nav';
|
|
8032
|
-
Nav.defaultProps = defaultProps$
|
|
7945
|
+
Nav.defaultProps = defaultProps$t;
|
|
8033
7946
|
Nav.Item = NavItem;
|
|
8034
7947
|
Nav.Link = NavLink;
|
|
8035
7948
|
|
|
@@ -8054,7 +7967,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8054
7967
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8055
7968
|
|
|
8056
7969
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8057
|
-
return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
|
|
7970
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8058
7971
|
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8059
7972
|
in: !!(context && context.expanded)
|
|
8060
7973
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
@@ -8065,7 +7978,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8065
7978
|
});
|
|
8066
7979
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8067
7980
|
|
|
8068
|
-
var defaultProps$
|
|
7981
|
+
var defaultProps$u = {
|
|
8069
7982
|
label: 'Toggle navigation'
|
|
8070
7983
|
};
|
|
8071
7984
|
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
@@ -8080,7 +7993,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8080
7993
|
|
|
8081
7994
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8082
7995
|
|
|
8083
|
-
var _ref2 = useContext(context) || {},
|
|
7996
|
+
var _ref2 = useContext(context$2) || {},
|
|
8084
7997
|
onToggle = _ref2.onToggle,
|
|
8085
7998
|
expanded = _ref2.expanded;
|
|
8086
7999
|
|
|
@@ -8103,12 +8016,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8103
8016
|
}));
|
|
8104
8017
|
});
|
|
8105
8018
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8106
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8019
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8107
8020
|
|
|
8108
8021
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8109
8022
|
Component: 'span'
|
|
8110
8023
|
});
|
|
8111
|
-
var defaultProps$
|
|
8024
|
+
var defaultProps$v = {
|
|
8112
8025
|
expand: true,
|
|
8113
8026
|
variant: 'light',
|
|
8114
8027
|
collapseOnSelect: false
|
|
@@ -8161,7 +8074,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8161
8074
|
expanded: !!expanded
|
|
8162
8075
|
};
|
|
8163
8076
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8164
|
-
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
8077
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8165
8078
|
value: navbarContext
|
|
8166
8079
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8167
8080
|
value: handleCollapse
|
|
@@ -8171,14 +8084,14 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8171
8084
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8172
8085
|
}), children)));
|
|
8173
8086
|
});
|
|
8174
|
-
Navbar.defaultProps = defaultProps$
|
|
8087
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8175
8088
|
Navbar.displayName = 'Navbar';
|
|
8176
8089
|
Navbar.Brand = NavbarBrand;
|
|
8177
8090
|
Navbar.Toggle = NavbarToggle;
|
|
8178
8091
|
Navbar.Collapse = NavbarCollapse;
|
|
8179
8092
|
Navbar.Text = NavbarText;
|
|
8180
8093
|
|
|
8181
|
-
var propTypes$
|
|
8094
|
+
var propTypes$9 = {
|
|
8182
8095
|
/**
|
|
8183
8096
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8184
8097
|
* @type {string|number}
|
|
@@ -8226,29 +8139,29 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8226
8139
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8227
8140
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8228
8141
|
|
|
8229
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8142
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8230
8143
|
ref: ref
|
|
8231
8144
|
}, props, {
|
|
8232
8145
|
as: NavItem
|
|
8233
|
-
}), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8146
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8234
8147
|
id: id,
|
|
8235
8148
|
eventKey: null,
|
|
8236
8149
|
active: active,
|
|
8237
8150
|
disabled: disabled,
|
|
8238
8151
|
childBsPrefix: bsPrefix,
|
|
8239
8152
|
as: NavLink
|
|
8240
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8153
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8241
8154
|
role: menuRole,
|
|
8242
8155
|
renderOnMount: renderMenuOnMount,
|
|
8243
8156
|
rootCloseEvent: rootCloseEvent
|
|
8244
8157
|
}, children));
|
|
8245
8158
|
});
|
|
8246
8159
|
NavDropdown.displayName = 'NavDropdown';
|
|
8247
|
-
NavDropdown.propTypes = propTypes$
|
|
8248
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8249
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8250
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8251
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8160
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8161
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8162
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8163
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8164
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8252
8165
|
|
|
8253
8166
|
/**
|
|
8254
8167
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8489,7 +8402,7 @@ Overlay.propTypes = {
|
|
|
8489
8402
|
onExited: PropTypes.func
|
|
8490
8403
|
};
|
|
8491
8404
|
|
|
8492
|
-
/*#__PURE__*/
|
|
8405
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8493
8406
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8494
8407
|
|
|
8495
8408
|
function RefHolder() {
|
|
@@ -8503,9 +8416,9 @@ Overlay.propTypes = {
|
|
|
8503
8416
|
};
|
|
8504
8417
|
|
|
8505
8418
|
return RefHolder;
|
|
8506
|
-
}
|
|
8419
|
+
}(React.Component);
|
|
8507
8420
|
|
|
8508
|
-
var defaultProps$
|
|
8421
|
+
var defaultProps$w = {
|
|
8509
8422
|
active: false,
|
|
8510
8423
|
disabled: false,
|
|
8511
8424
|
activeLabel: '(current)'
|
|
@@ -8534,7 +8447,7 @@ var PageItem = React.forwardRef(function (_ref, ref) {
|
|
|
8534
8447
|
className: "sr-only"
|
|
8535
8448
|
}, activeLabel)));
|
|
8536
8449
|
});
|
|
8537
|
-
PageItem.defaultProps = defaultProps$
|
|
8450
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8538
8451
|
PageItem.displayName = 'PageItem';
|
|
8539
8452
|
|
|
8540
8453
|
function createButton(name, defaultValue, label) {
|
|
@@ -8624,7 +8537,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8624
8537
|
}), children);
|
|
8625
8538
|
});
|
|
8626
8539
|
|
|
8627
|
-
var defaultProps$
|
|
8540
|
+
var defaultProps$x = {
|
|
8628
8541
|
placement: 'right'
|
|
8629
8542
|
};
|
|
8630
8543
|
var Popover = React.forwardRef(function (_ref, ref) {
|
|
@@ -8634,10 +8547,10 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8634
8547
|
style = _ref.style,
|
|
8635
8548
|
children = _ref.children,
|
|
8636
8549
|
content = _ref.content,
|
|
8637
|
-
arrowProps = _ref.arrowProps
|
|
8638
|
-
_ref.popper
|
|
8639
|
-
_ref.show
|
|
8640
|
-
|
|
8550
|
+
arrowProps = _ref.arrowProps,
|
|
8551
|
+
_ = _ref.popper,
|
|
8552
|
+
_1 = _ref.show,
|
|
8553
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8641
8554
|
|
|
8642
8555
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8643
8556
|
|
|
@@ -8654,13 +8567,13 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8654
8567
|
className: "arrow"
|
|
8655
8568
|
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8656
8569
|
});
|
|
8657
|
-
Popover.defaultProps = defaultProps$
|
|
8570
|
+
Popover.defaultProps = defaultProps$x;
|
|
8658
8571
|
Popover.Title = PopoverTitle;
|
|
8659
8572
|
Popover.Content = PopoverContent;
|
|
8660
8573
|
|
|
8661
8574
|
var ROUND_PRECISION = 1000;
|
|
8662
8575
|
|
|
8663
|
-
var defaultProps$
|
|
8576
|
+
var defaultProps$y = {
|
|
8664
8577
|
min: 0,
|
|
8665
8578
|
max: 100,
|
|
8666
8579
|
animated: false,
|
|
@@ -8750,9 +8663,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8750
8663
|
}, ref));
|
|
8751
8664
|
});
|
|
8752
8665
|
ProgressBar.displayName = 'ProgressBar';
|
|
8753
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8666
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8754
8667
|
|
|
8755
|
-
var defaultProps$
|
|
8668
|
+
var defaultProps$z = {
|
|
8756
8669
|
aspectRatio: '1by1'
|
|
8757
8670
|
};
|
|
8758
8671
|
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
@@ -8772,10 +8685,10 @@ var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
|
8772
8685
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8773
8686
|
}));
|
|
8774
8687
|
});
|
|
8775
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8688
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8776
8689
|
|
|
8777
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8778
|
-
var defaultProps$
|
|
8690
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8691
|
+
var defaultProps$A = {
|
|
8779
8692
|
noGutters: false
|
|
8780
8693
|
};
|
|
8781
8694
|
var Row = React.forwardRef(function (_ref, ref) {
|
|
@@ -8789,7 +8702,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8789
8702
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8790
8703
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8791
8704
|
var classes = [];
|
|
8792
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8705
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8793
8706
|
var propValue = props[brkPoint];
|
|
8794
8707
|
delete props[brkPoint];
|
|
8795
8708
|
var cols;
|
|
@@ -8810,7 +8723,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8810
8723
|
}));
|
|
8811
8724
|
});
|
|
8812
8725
|
Row.displayName = 'Row';
|
|
8813
|
-
Row.defaultProps = defaultProps$
|
|
8726
|
+
Row.defaultProps = defaultProps$A;
|
|
8814
8727
|
|
|
8815
8728
|
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8816
8729
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8833,7 +8746,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8833
8746
|
});
|
|
8834
8747
|
Spinner.displayName = 'Spinner';
|
|
8835
8748
|
|
|
8836
|
-
var propTypes = {
|
|
8749
|
+
var propTypes$a = {
|
|
8837
8750
|
/**
|
|
8838
8751
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8839
8752
|
* @type {string|number}
|
|
@@ -8864,15 +8777,6 @@ var propTypes = {
|
|
|
8864
8777
|
/** Disables both Buttons */
|
|
8865
8778
|
disabled: PropTypes.bool,
|
|
8866
8779
|
|
|
8867
|
-
/**
|
|
8868
|
-
* Aligns the dropdown menu responsively.
|
|
8869
|
-
*
|
|
8870
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8871
|
-
*
|
|
8872
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8873
|
-
*/
|
|
8874
|
-
menuAlign: alignPropType,
|
|
8875
|
-
|
|
8876
8780
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8877
8781
|
menuRole: PropTypes.string,
|
|
8878
8782
|
|
|
@@ -8882,7 +8786,7 @@ var propTypes = {
|
|
|
8882
8786
|
/**
|
|
8883
8787
|
* Which event when fired outside the component will cause it to be closed.
|
|
8884
8788
|
*
|
|
8885
|
-
* _see [DropdownMenu](#
|
|
8789
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
8886
8790
|
*/
|
|
8887
8791
|
rootCloseEvent: PropTypes.string,
|
|
8888
8792
|
|
|
@@ -8895,7 +8799,7 @@ var propTypes = {
|
|
|
8895
8799
|
/** @ignore */
|
|
8896
8800
|
size: PropTypes.string
|
|
8897
8801
|
};
|
|
8898
|
-
var defaultProps$
|
|
8802
|
+
var defaultProps$B = {
|
|
8899
8803
|
toggleLabel: 'Toggle dropdown',
|
|
8900
8804
|
type: 'button'
|
|
8901
8805
|
};
|
|
@@ -8911,13 +8815,12 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8911
8815
|
onClick = _ref.onClick,
|
|
8912
8816
|
href = _ref.href,
|
|
8913
8817
|
target = _ref.target,
|
|
8914
|
-
menuAlign = _ref.menuAlign,
|
|
8915
8818
|
menuRole = _ref.menuRole,
|
|
8916
8819
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8917
8820
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8918
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "
|
|
8821
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8919
8822
|
|
|
8920
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8823
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8921
8824
|
ref: ref
|
|
8922
8825
|
}, props, {
|
|
8923
8826
|
as: ButtonGroup
|
|
@@ -8930,7 +8833,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8930
8833
|
target: target,
|
|
8931
8834
|
onClick: onClick,
|
|
8932
8835
|
type: type
|
|
8933
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8836
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8934
8837
|
split: true,
|
|
8935
8838
|
id: id ? id.toString() : undefined,
|
|
8936
8839
|
size: size,
|
|
@@ -8939,15 +8842,14 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8939
8842
|
childBsPrefix: bsPrefix
|
|
8940
8843
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8941
8844
|
className: "sr-only"
|
|
8942
|
-
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8943
|
-
align: menuAlign,
|
|
8845
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8944
8846
|
role: menuRole,
|
|
8945
8847
|
renderOnMount: renderMenuOnMount,
|
|
8946
8848
|
rootCloseEvent: rootCloseEvent
|
|
8947
8849
|
}, children));
|
|
8948
8850
|
});
|
|
8949
|
-
SplitButton.propTypes = propTypes;
|
|
8950
|
-
SplitButton.defaultProps = defaultProps$
|
|
8851
|
+
SplitButton.propTypes = propTypes$a;
|
|
8852
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
8951
8853
|
SplitButton.displayName = 'SplitButton';
|
|
8952
8854
|
|
|
8953
8855
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9041,9 +8943,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9041
8943
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9042
8944
|
Transition = _useTabContext.transition,
|
|
9043
8945
|
_useTabContext$as = _useTabContext.as,
|
|
9044
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9045
|
-
_useTabContext.eventKey
|
|
9046
|
-
|
|
8946
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8947
|
+
_ = _useTabContext.eventKey,
|
|
8948
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9047
8949
|
|
|
9048
8950
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9049
8951
|
if (!active && !Transition && unmountOnExit) return null;
|
|
@@ -9097,7 +8999,7 @@ Tab.Container = TabContainer;
|
|
|
9097
8999
|
Tab.Content = TabContent;
|
|
9098
9000
|
Tab.Pane = TabPane;
|
|
9099
9001
|
|
|
9100
|
-
React.forwardRef(function (_ref, ref) {
|
|
9002
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9101
9003
|
var bsPrefix = _ref.bsPrefix,
|
|
9102
9004
|
className = _ref.className,
|
|
9103
9005
|
striped = _ref.striped,
|
|
@@ -9136,7 +9038,7 @@ var ToastContext = React.createContext({
|
|
|
9136
9038
|
onClose: function onClose() {}
|
|
9137
9039
|
});
|
|
9138
9040
|
|
|
9139
|
-
var defaultProps$
|
|
9041
|
+
var defaultProps$C = {
|
|
9140
9042
|
closeLabel: 'Close',
|
|
9141
9043
|
closeButton: true
|
|
9142
9044
|
};
|
|
@@ -9167,7 +9069,7 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9167
9069
|
}));
|
|
9168
9070
|
});
|
|
9169
9071
|
ToastHeader.displayName = 'ToastHeader';
|
|
9170
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9072
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9171
9073
|
|
|
9172
9074
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9173
9075
|
|
|
@@ -9234,7 +9136,7 @@ Object.assign(Toast, {
|
|
|
9234
9136
|
Header: ToastHeader
|
|
9235
9137
|
});
|
|
9236
9138
|
|
|
9237
|
-
var noop = function noop() {
|
|
9139
|
+
var noop$5 = function noop() {
|
|
9238
9140
|
return undefined;
|
|
9239
9141
|
};
|
|
9240
9142
|
|
|
@@ -9276,14 +9178,13 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9276
9178
|
disabled: !!disabled,
|
|
9277
9179
|
onFocus: handleFocus,
|
|
9278
9180
|
onBlur: handleBlur,
|
|
9279
|
-
onChange: onChange || noop
|
|
9181
|
+
onChange: onChange || noop$5
|
|
9280
9182
|
}), children);
|
|
9281
9183
|
});
|
|
9282
9184
|
ToggleButton.displayName = 'ToggleButton';
|
|
9283
9185
|
|
|
9284
|
-
var defaultProps$
|
|
9285
|
-
type: 'radio'
|
|
9286
|
-
vertical: false
|
|
9186
|
+
var defaultProps$D = {
|
|
9187
|
+
type: 'radio'
|
|
9287
9188
|
};
|
|
9288
9189
|
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9289
9190
|
var _useUncontrolled = useUncontrolled(props, {
|
|
@@ -9344,10 +9245,10 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9344
9245
|
});
|
|
9345
9246
|
}));
|
|
9346
9247
|
});
|
|
9347
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9248
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9348
9249
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9349
9250
|
|
|
9350
|
-
var defaultProps = {
|
|
9251
|
+
var defaultProps$E = {
|
|
9351
9252
|
placement: 'right'
|
|
9352
9253
|
};
|
|
9353
9254
|
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
@@ -9356,10 +9257,10 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9356
9257
|
className = _ref.className,
|
|
9357
9258
|
style = _ref.style,
|
|
9358
9259
|
children = _ref.children,
|
|
9359
|
-
arrowProps = _ref.arrowProps
|
|
9360
|
-
_ref.popper
|
|
9361
|
-
_ref.show
|
|
9362
|
-
|
|
9260
|
+
arrowProps = _ref.arrowProps,
|
|
9261
|
+
_ = _ref.popper,
|
|
9262
|
+
_2 = _ref.show,
|
|
9263
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9363
9264
|
|
|
9364
9265
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9365
9266
|
|
|
@@ -9378,7 +9279,7 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9378
9279
|
className: bsPrefix + "-inner"
|
|
9379
9280
|
}, children));
|
|
9380
9281
|
});
|
|
9381
|
-
Tooltip.defaultProps = defaultProps;
|
|
9282
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9382
9283
|
Tooltip.displayName = 'Tooltip';
|
|
9383
9284
|
|
|
9384
9285
|
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";
|
|
@@ -9543,7 +9444,7 @@ var Filter = function Filter(_ref) {
|
|
|
9543
9444
|
DropdownButton,
|
|
9544
9445
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9545
9446
|
React.createElement(
|
|
9546
|
-
Dropdown.Item,
|
|
9447
|
+
Dropdown$1.Item,
|
|
9547
9448
|
{ onSelect: function onSelect() {
|
|
9548
9449
|
return handleFilterSelect({}, 'parent');
|
|
9549
9450
|
} },
|
|
@@ -9552,7 +9453,7 @@ var Filter = function Filter(_ref) {
|
|
|
9552
9453
|
parentData.data.map(function (docGroup) {
|
|
9553
9454
|
if (!docGroup._id) return null;
|
|
9554
9455
|
return React.createElement(
|
|
9555
|
-
Dropdown.Item,
|
|
9456
|
+
Dropdown$1.Item,
|
|
9556
9457
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9557
9458
|
return handleFilterSelect(docGroup, 'parent');
|
|
9558
9459
|
} },
|
|
@@ -9564,7 +9465,7 @@ var Filter = function Filter(_ref) {
|
|
|
9564
9465
|
DropdownButton,
|
|
9565
9466
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9566
9467
|
React.createElement(
|
|
9567
|
-
Dropdown.Item,
|
|
9468
|
+
Dropdown$1.Item,
|
|
9568
9469
|
{ onSelect: function onSelect() {
|
|
9569
9470
|
return handleFilterSelect({}, 'child');
|
|
9570
9471
|
} },
|
|
@@ -9573,7 +9474,7 @@ var Filter = function Filter(_ref) {
|
|
|
9573
9474
|
childData.data.map(function (docGroup) {
|
|
9574
9475
|
if (!docGroup._id) return null;
|
|
9575
9476
|
return React.createElement(
|
|
9576
|
-
Dropdown.Item,
|
|
9477
|
+
Dropdown$1.Item,
|
|
9577
9478
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9578
9479
|
return handleFilterSelect(docGroup, 'child');
|
|
9579
9480
|
} },
|
|
@@ -9585,7 +9486,7 @@ var Filter = function Filter(_ref) {
|
|
|
9585
9486
|
DropdownButton,
|
|
9586
9487
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9587
9488
|
React.createElement(
|
|
9588
|
-
Dropdown.Item,
|
|
9489
|
+
Dropdown$1.Item,
|
|
9589
9490
|
{ onSelect: function onSelect() {
|
|
9590
9491
|
return handleFilterSelect({}, 'grandchild');
|
|
9591
9492
|
} },
|
|
@@ -9594,7 +9495,7 @@ var Filter = function Filter(_ref) {
|
|
|
9594
9495
|
grandChildData.data.map(function (docGroup) {
|
|
9595
9496
|
if (!docGroup._id) return null;
|
|
9596
9497
|
return React.createElement(
|
|
9597
|
-
Dropdown.Item,
|
|
9498
|
+
Dropdown$1.Item,
|
|
9598
9499
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9599
9500
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9600
9501
|
} },
|
|
@@ -9752,12 +9653,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9752
9653
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9753
9654
|
var _ref4;
|
|
9754
9655
|
|
|
9755
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9656
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9756
9657
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9757
9658
|
while (1) {
|
|
9758
9659
|
switch (_context2.prev = _context2.next) {
|
|
9759
9660
|
case 0:
|
|
9760
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9661
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9761
9662
|
identifier = pathname.replace('/', '');
|
|
9762
9663
|
itemsPerPage = 10;
|
|
9763
9664
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|