@mjhls/mjh-framework 1.0.847 → 1.0.849
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-9d179b24.js → ADInfeed-86e987a0.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-e1ba988c.js → ADlgInfeed-5d6f91d7.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 +140 -97
- 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/getQuery.js +2 -2
- 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-be6168ad.js → getTargeting-3e45e4d4.js} +17 -8
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-572bb6bc.js → index-80e98193.js} +165 -415
- 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 +137 -138
- 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-f20eb524.js → ADInfeed-4096aff2.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-c85a91b1.js → ADlgInfeed-8e4fcfbd.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 +139 -96
- 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/getQuery.js +2 -2
- 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-68291ce9.js → getTargeting-9cb7e014.js} +17 -8
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-2446af28.js → index-1819118a.js} +487 -41
- package/dist/esm/{index-aa0e654d.js → index-295b6942.js} +160 -411
- 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-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 +118 -119
- 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,70 +1,151 @@
|
|
|
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-aa0e654d.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-4096aff2.js';
|
|
43
|
+
import './lodash-ec8c6b48.js';
|
|
44
|
+
import './ADlgInfeed-8e4fcfbd.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-295b6942.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';
|
|
62
|
+
import 'react-script-tag';
|
|
63
|
+
import MasterDeck from './MasterDeck.js';
|
|
64
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
65
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
66
|
+
import Link from 'next/link';
|
|
67
|
+
|
|
68
|
+
function _extends() {
|
|
69
|
+
_extends = Object.assign || function (target) {
|
|
70
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
71
|
+
var source = arguments[i];
|
|
72
|
+
|
|
73
|
+
for (var key in source) {
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
75
|
+
target[key] = source[key];
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return target;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
return _extends.apply(this, arguments);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
87
|
+
if (source == null) return {};
|
|
88
|
+
var target = {};
|
|
89
|
+
var sourceKeys = Object.keys(source);
|
|
90
|
+
var key, i;
|
|
91
|
+
|
|
92
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
93
|
+
key = sourceKeys[i];
|
|
94
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
95
|
+
target[key] = source[key];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return target;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
var classnames = createCommonjsModule(function (module) {
|
|
102
|
+
/*!
|
|
103
|
+
Copyright (c) 2017 Jed Watson.
|
|
104
|
+
Licensed under the MIT License (MIT), see
|
|
105
|
+
http://jedwatson.github.io/classnames
|
|
106
|
+
*/
|
|
107
|
+
/* global define */
|
|
108
|
+
|
|
109
|
+
(function () {
|
|
110
|
+
|
|
111
|
+
var hasOwn = {}.hasOwnProperty;
|
|
112
|
+
|
|
113
|
+
function classNames () {
|
|
114
|
+
var classes = [];
|
|
115
|
+
|
|
116
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
117
|
+
var arg = arguments[i];
|
|
118
|
+
if (!arg) continue;
|
|
119
|
+
|
|
120
|
+
var argType = typeof arg;
|
|
121
|
+
|
|
122
|
+
if (argType === 'string' || argType === 'number') {
|
|
123
|
+
classes.push(arg);
|
|
124
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
125
|
+
var inner = classNames.apply(null, arg);
|
|
126
|
+
if (inner) {
|
|
127
|
+
classes.push(inner);
|
|
128
|
+
}
|
|
129
|
+
} else if (argType === 'object') {
|
|
130
|
+
for (var key in arg) {
|
|
131
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
132
|
+
classes.push(key);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return classes.join(' ');
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if ( module.exports) {
|
|
142
|
+
classNames.default = classNames;
|
|
143
|
+
module.exports = classNames;
|
|
144
|
+
} else {
|
|
145
|
+
window.classNames = classNames;
|
|
146
|
+
}
|
|
147
|
+
}());
|
|
148
|
+
});
|
|
68
149
|
|
|
69
150
|
/**
|
|
70
151
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -174,12 +255,12 @@ function useUncontrolled(props, config) {
|
|
|
174
255
|
function _inheritsLoose(subClass, superClass) {
|
|
175
256
|
subClass.prototype = Object.create(superClass.prototype);
|
|
176
257
|
subClass.prototype.constructor = subClass;
|
|
177
|
-
|
|
258
|
+
subClass.__proto__ = superClass;
|
|
178
259
|
}
|
|
179
260
|
|
|
180
261
|
var ThemeContext = React.createContext({});
|
|
181
|
-
ThemeContext.Consumer
|
|
182
|
-
ThemeContext.Provider;
|
|
262
|
+
var Consumer = ThemeContext.Consumer,
|
|
263
|
+
Provider = ThemeContext.Provider;
|
|
183
264
|
|
|
184
265
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
185
266
|
var prefixes = useContext(ThemeContext);
|
|
@@ -196,11 +277,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
196
277
|
return href || null;
|
|
197
278
|
};
|
|
198
279
|
|
|
199
|
-
var context
|
|
200
|
-
context
|
|
280
|
+
var context = React.createContext(null);
|
|
281
|
+
context.displayName = 'AccordionContext';
|
|
201
282
|
|
|
202
283
|
function useAccordionToggle(eventKey, onClick) {
|
|
203
|
-
var contextEventKey = useContext(context
|
|
284
|
+
var contextEventKey = useContext(context);
|
|
204
285
|
var onSelect = useContext(SelectableContext);
|
|
205
286
|
return function (e) {
|
|
206
287
|
/*
|
|
@@ -232,16 +313,16 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
232
313
|
}, props), children);
|
|
233
314
|
});
|
|
234
315
|
|
|
235
|
-
function ownerDocument
|
|
316
|
+
function ownerDocument(node) {
|
|
236
317
|
return node && node.ownerDocument || document;
|
|
237
318
|
}
|
|
238
319
|
|
|
239
320
|
function ownerWindow(node) {
|
|
240
|
-
var doc = ownerDocument
|
|
321
|
+
var doc = ownerDocument(node);
|
|
241
322
|
return doc && doc.defaultView || window;
|
|
242
323
|
}
|
|
243
324
|
|
|
244
|
-
function getComputedStyle$
|
|
325
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
245
326
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
246
327
|
}
|
|
247
328
|
|
|
@@ -270,7 +351,7 @@ function style(node, property) {
|
|
|
270
351
|
var transforms = '';
|
|
271
352
|
|
|
272
353
|
if (typeof property === 'string') {
|
|
273
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
354
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
274
355
|
}
|
|
275
356
|
|
|
276
357
|
Object.keys(property).forEach(function (key) {
|
|
@@ -410,7 +491,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
410
491
|
exit: PropTypes.number,
|
|
411
492
|
appear: PropTypes.number
|
|
412
493
|
}).isRequired]) : null;
|
|
413
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
494
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
414
495
|
enter: PropTypes.string,
|
|
415
496
|
exit: PropTypes.string,
|
|
416
497
|
active: PropTypes.string
|
|
@@ -792,23 +873,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
792
873
|
}
|
|
793
874
|
|
|
794
875
|
var _this$props = this.props,
|
|
795
|
-
children = _this$props.children
|
|
796
|
-
_this$props.in
|
|
797
|
-
_this$props.mountOnEnter
|
|
798
|
-
_this$props.unmountOnExit
|
|
799
|
-
_this$props.appear
|
|
800
|
-
_this$props.enter
|
|
801
|
-
_this$props.exit
|
|
802
|
-
_this$props.timeout
|
|
803
|
-
_this$props.addEndListener
|
|
804
|
-
_this$props.onEnter
|
|
805
|
-
_this$props.onEntering
|
|
806
|
-
_this$props.onEntered
|
|
807
|
-
_this$props.onExit
|
|
808
|
-
_this$props.onExiting
|
|
809
|
-
_this$props.onExited
|
|
810
|
-
_this$props.nodeRef
|
|
811
|
-
|
|
876
|
+
children = _this$props.children,
|
|
877
|
+
_in = _this$props.in,
|
|
878
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
879
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
880
|
+
_appear = _this$props.appear,
|
|
881
|
+
_enter = _this$props.enter,
|
|
882
|
+
_exit = _this$props.exit,
|
|
883
|
+
_timeout = _this$props.timeout,
|
|
884
|
+
_addEndListener = _this$props.addEndListener,
|
|
885
|
+
_onEnter = _this$props.onEnter,
|
|
886
|
+
_onEntering = _this$props.onEntering,
|
|
887
|
+
_onEntered = _this$props.onEntered,
|
|
888
|
+
_onExit = _this$props.onExit,
|
|
889
|
+
_onExiting = _this$props.onExiting,
|
|
890
|
+
_onExited = _this$props.onExited,
|
|
891
|
+
_nodeRef = _this$props.nodeRef,
|
|
892
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
812
893
|
|
|
813
894
|
return (
|
|
814
895
|
/*#__PURE__*/
|
|
@@ -1008,7 +1089,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1008
1089
|
onExited: PropTypes.func
|
|
1009
1090
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1010
1091
|
|
|
1011
|
-
function noop
|
|
1092
|
+
function noop() {}
|
|
1012
1093
|
|
|
1013
1094
|
Transition.defaultProps = {
|
|
1014
1095
|
in: false,
|
|
@@ -1017,12 +1098,12 @@ Transition.defaultProps = {
|
|
|
1017
1098
|
appear: false,
|
|
1018
1099
|
enter: true,
|
|
1019
1100
|
exit: true,
|
|
1020
|
-
onEnter: noop
|
|
1021
|
-
onEntering: noop
|
|
1022
|
-
onEntered: noop
|
|
1023
|
-
onExit: noop
|
|
1024
|
-
onExiting: noop
|
|
1025
|
-
onExited: noop
|
|
1101
|
+
onEnter: noop,
|
|
1102
|
+
onEntering: noop,
|
|
1103
|
+
onEntered: noop,
|
|
1104
|
+
onExit: noop,
|
|
1105
|
+
onExiting: noop,
|
|
1106
|
+
onExited: noop
|
|
1026
1107
|
};
|
|
1027
1108
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1028
1109
|
Transition.EXITED = EXITED;
|
|
@@ -1088,7 +1169,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1088
1169
|
}
|
|
1089
1170
|
|
|
1090
1171
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1091
|
-
var defaultProps
|
|
1172
|
+
var defaultProps = {
|
|
1092
1173
|
in: false,
|
|
1093
1174
|
timeout: 300,
|
|
1094
1175
|
mountOnEnter: false,
|
|
@@ -1162,22 +1243,18 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1162
1243
|
}); // @ts-ignore
|
|
1163
1244
|
|
|
1164
1245
|
// @ts-ignore
|
|
1165
|
-
Collapse.defaultProps = defaultProps
|
|
1246
|
+
Collapse.defaultProps = defaultProps;
|
|
1166
1247
|
|
|
1167
1248
|
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1168
1249
|
var children = _ref.children,
|
|
1169
1250
|
eventKey = _ref.eventKey,
|
|
1170
1251
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1171
1252
|
|
|
1172
|
-
var contextEventKey = useContext(context
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1176
|
-
value: null
|
|
1177
|
-
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1253
|
+
var contextEventKey = useContext(context);
|
|
1254
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1178
1255
|
ref: ref,
|
|
1179
1256
|
in: contextEventKey === eventKey
|
|
1180
|
-
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)))
|
|
1257
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)));
|
|
1181
1258
|
});
|
|
1182
1259
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1183
1260
|
|
|
@@ -1195,7 +1272,7 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1195
1272
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1196
1273
|
|
|
1197
1274
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1198
|
-
return /*#__PURE__*/React.createElement(context
|
|
1275
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1199
1276
|
value: activeKey || null
|
|
1200
1277
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1201
1278
|
value: onSelect || null
|
|
@@ -1235,7 +1312,7 @@ function useEventCallback(fn) {
|
|
|
1235
1312
|
}
|
|
1236
1313
|
|
|
1237
1314
|
var _fadeStyles;
|
|
1238
|
-
var defaultProps$
|
|
1315
|
+
var defaultProps$1 = {
|
|
1239
1316
|
in: false,
|
|
1240
1317
|
timeout: 300,
|
|
1241
1318
|
mountOnEnter: false,
|
|
@@ -1263,14 +1340,14 @@ var Fade = React.forwardRef(function (_ref, ref) {
|
|
|
1263
1340
|
}));
|
|
1264
1341
|
});
|
|
1265
1342
|
});
|
|
1266
|
-
Fade.defaultProps = defaultProps$
|
|
1343
|
+
Fade.defaultProps = defaultProps$1;
|
|
1267
1344
|
Fade.displayName = 'Fade';
|
|
1268
1345
|
|
|
1269
|
-
var propTypes
|
|
1346
|
+
var propTypes = {
|
|
1270
1347
|
label: PropTypes.string.isRequired,
|
|
1271
1348
|
onClick: PropTypes.func
|
|
1272
1349
|
};
|
|
1273
|
-
var defaultProps$
|
|
1350
|
+
var defaultProps$2 = {
|
|
1274
1351
|
label: 'Close'
|
|
1275
1352
|
};
|
|
1276
1353
|
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
@@ -1291,8 +1368,8 @@ var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
|
1291
1368
|
}, label));
|
|
1292
1369
|
});
|
|
1293
1370
|
CloseButton.displayName = 'CloseButton';
|
|
1294
|
-
CloseButton.propTypes = propTypes
|
|
1295
|
-
CloseButton.defaultProps = defaultProps$
|
|
1371
|
+
CloseButton.propTypes = propTypes;
|
|
1372
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1296
1373
|
|
|
1297
1374
|
var divWithClassName = (function (className) {
|
|
1298
1375
|
return React.forwardRef(function (p, ref) {
|
|
@@ -1405,15 +1482,15 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1405
1482
|
});
|
|
1406
1483
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1407
1484
|
|
|
1408
|
-
var DivStyledAsH4
|
|
1409
|
-
DivStyledAsH4
|
|
1485
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1486
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1410
1487
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1411
|
-
Component: DivStyledAsH4
|
|
1488
|
+
Component: DivStyledAsH4
|
|
1412
1489
|
});
|
|
1413
1490
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1414
1491
|
Component: SafeAnchor
|
|
1415
1492
|
});
|
|
1416
|
-
var defaultProps$
|
|
1493
|
+
var defaultProps$3 = {
|
|
1417
1494
|
show: true,
|
|
1418
1495
|
transition: Fade,
|
|
1419
1496
|
closeLabel: 'Close alert'
|
|
@@ -1458,11 +1535,11 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1458
1535
|
}), alert);
|
|
1459
1536
|
});
|
|
1460
1537
|
Alert.displayName = 'Alert';
|
|
1461
|
-
Alert.defaultProps = defaultProps$
|
|
1538
|
+
Alert.defaultProps = defaultProps$3;
|
|
1462
1539
|
Alert.Link = AlertLink;
|
|
1463
1540
|
Alert.Heading = AlertHeading;
|
|
1464
1541
|
|
|
1465
|
-
var defaultProps$
|
|
1542
|
+
var defaultProps$4 = {
|
|
1466
1543
|
pill: false
|
|
1467
1544
|
};
|
|
1468
1545
|
var Badge = React.forwardRef(function (_ref, ref) {
|
|
@@ -1482,9 +1559,9 @@ var Badge = React.forwardRef(function (_ref, ref) {
|
|
|
1482
1559
|
}));
|
|
1483
1560
|
});
|
|
1484
1561
|
Badge.displayName = 'Badge';
|
|
1485
|
-
Badge.defaultProps = defaultProps$
|
|
1562
|
+
Badge.defaultProps = defaultProps$4;
|
|
1486
1563
|
|
|
1487
|
-
var defaultProps$
|
|
1564
|
+
var defaultProps$5 = {
|
|
1488
1565
|
active: false,
|
|
1489
1566
|
linkProps: {}
|
|
1490
1567
|
};
|
|
@@ -1518,9 +1595,9 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1518
1595
|
}), children));
|
|
1519
1596
|
});
|
|
1520
1597
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1521
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1598
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1522
1599
|
|
|
1523
|
-
var defaultProps$
|
|
1600
|
+
var defaultProps$6 = {
|
|
1524
1601
|
label: 'breadcrumb',
|
|
1525
1602
|
listProps: {}
|
|
1526
1603
|
};
|
|
@@ -1544,10 +1621,10 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1544
1621
|
}), children));
|
|
1545
1622
|
});
|
|
1546
1623
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1547
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1624
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1548
1625
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1549
1626
|
|
|
1550
|
-
var defaultProps$
|
|
1627
|
+
var defaultProps$7 = {
|
|
1551
1628
|
variant: 'primary',
|
|
1552
1629
|
active: false,
|
|
1553
1630
|
disabled: false
|
|
@@ -1564,7 +1641,7 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1564
1641
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1565
1642
|
|
|
1566
1643
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1567
|
-
var classes = classnames(className, prefix, active && 'active',
|
|
1644
|
+
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1568
1645
|
|
|
1569
1646
|
if (props.href) {
|
|
1570
1647
|
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
@@ -1590,9 +1667,9 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1590
1667
|
}));
|
|
1591
1668
|
});
|
|
1592
1669
|
Button.displayName = 'Button';
|
|
1593
|
-
Button.defaultProps = defaultProps$
|
|
1670
|
+
Button.defaultProps = defaultProps$7;
|
|
1594
1671
|
|
|
1595
|
-
var defaultProps$
|
|
1672
|
+
var defaultProps$8 = {
|
|
1596
1673
|
vertical: false,
|
|
1597
1674
|
toggle: false,
|
|
1598
1675
|
role: 'group'
|
|
@@ -1616,9 +1693,9 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1616
1693
|
}));
|
|
1617
1694
|
});
|
|
1618
1695
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1619
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1696
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1620
1697
|
|
|
1621
|
-
var defaultProps$
|
|
1698
|
+
var defaultProps$9 = {
|
|
1622
1699
|
role: 'toolbar'
|
|
1623
1700
|
};
|
|
1624
1701
|
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
@@ -1633,12 +1710,12 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
|
1633
1710
|
}));
|
|
1634
1711
|
});
|
|
1635
1712
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1636
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1713
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1637
1714
|
|
|
1638
1715
|
var context$1 = React.createContext(null);
|
|
1639
1716
|
context$1.displayName = 'CardContext';
|
|
1640
1717
|
|
|
1641
|
-
var defaultProps$
|
|
1718
|
+
var defaultProps$a = {
|
|
1642
1719
|
variant: null
|
|
1643
1720
|
};
|
|
1644
1721
|
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
|
|
@@ -1657,7 +1734,7 @@ function (_ref, ref) {
|
|
|
1657
1734
|
}, props));
|
|
1658
1735
|
});
|
|
1659
1736
|
CardImg.displayName = 'CardImg';
|
|
1660
|
-
CardImg.defaultProps = defaultProps$
|
|
1737
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1661
1738
|
|
|
1662
1739
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1663
1740
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1677,7 +1754,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1677
1754
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1678
1755
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1679
1756
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1680
|
-
var defaultProps$
|
|
1757
|
+
var defaultProps$b = {
|
|
1681
1758
|
body: false
|
|
1682
1759
|
};
|
|
1683
1760
|
var Card = React.forwardRef(function (_ref, ref) {
|
|
@@ -1710,7 +1787,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1710
1787
|
React.createElement(CardBody, null, children) : children));
|
|
1711
1788
|
});
|
|
1712
1789
|
Card.displayName = 'Card';
|
|
1713
|
-
Card.defaultProps = defaultProps$
|
|
1790
|
+
Card.defaultProps = defaultProps$b;
|
|
1714
1791
|
Card.Img = CardImg;
|
|
1715
1792
|
Card.Title = CardTitle;
|
|
1716
1793
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1843,20 +1920,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1843
1920
|
/**
|
|
1844
1921
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1845
1922
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1846
|
-
*
|
|
1847
|
-
*
|
|
1848
|
-
*
|
|
1849
|
-
* ```tsx
|
|
1850
|
-
* const { set, clear } = useTimeout();
|
|
1851
|
-
* const [hello, showHello] = useState(false);
|
|
1852
|
-
* //Display hello after 5 seconds
|
|
1853
|
-
* set(() => showHello(true), 5000);
|
|
1854
|
-
* return (
|
|
1855
|
-
* <div className="App">
|
|
1856
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1857
|
-
* </div>
|
|
1858
|
-
* );
|
|
1859
|
-
* ```
|
|
1860
1923
|
*/
|
|
1861
1924
|
|
|
1862
1925
|
|
|
@@ -1897,22 +1960,7 @@ function useTimeout() {
|
|
|
1897
1960
|
|
|
1898
1961
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1899
1962
|
|
|
1900
|
-
var CarouselItem =
|
|
1901
|
-
var _ref$as = _ref.as,
|
|
1902
|
-
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1903
|
-
bsPrefix = _ref.bsPrefix,
|
|
1904
|
-
children = _ref.children,
|
|
1905
|
-
className = _ref.className,
|
|
1906
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1907
|
-
|
|
1908
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1909
|
-
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1910
|
-
ref: ref
|
|
1911
|
-
}, props, {
|
|
1912
|
-
className: finalClassName
|
|
1913
|
-
}), children);
|
|
1914
|
-
});
|
|
1915
|
-
CarouselItem.displayName = 'CarouselItem';
|
|
1963
|
+
var CarouselItem = createWithBsPrefix('carousel-item');
|
|
1916
1964
|
|
|
1917
1965
|
/**
|
|
1918
1966
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1929,23 +1977,9 @@ function map(children, func) {
|
|
|
1929
1977
|
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1930
1978
|
});
|
|
1931
1979
|
}
|
|
1932
|
-
/**
|
|
1933
|
-
* Iterates through children that are "valid elements".
|
|
1934
|
-
*
|
|
1935
|
-
* The provided forEachFunc(child, index) will be called for each
|
|
1936
|
-
* leaf child with the index reflecting the position relative to "valid components".
|
|
1937
|
-
*/
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
function forEach(children, func) {
|
|
1941
|
-
var index = 0;
|
|
1942
|
-
React.Children.forEach(children, function (child) {
|
|
1943
|
-
if (React.isValidElement(child)) func(child, index++);
|
|
1944
|
-
});
|
|
1945
|
-
}
|
|
1946
1980
|
|
|
1947
1981
|
var SWIPE_THRESHOLD = 40;
|
|
1948
|
-
var propTypes$
|
|
1982
|
+
var propTypes$1 = {
|
|
1949
1983
|
/**
|
|
1950
1984
|
* @default 'carousel'
|
|
1951
1985
|
*/
|
|
@@ -2047,7 +2081,7 @@ var propTypes$9 = {
|
|
|
2047
2081
|
*/
|
|
2048
2082
|
nextLabel: PropTypes.string
|
|
2049
2083
|
};
|
|
2050
|
-
var defaultProps$
|
|
2084
|
+
var defaultProps$c = {
|
|
2051
2085
|
slide: true,
|
|
2052
2086
|
fade: false,
|
|
2053
2087
|
controls: true,
|
|
@@ -2131,6 +2165,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2131
2165
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2132
2166
|
if (nextDirectionRef.current) {
|
|
2133
2167
|
setDirection(nextDirectionRef.current);
|
|
2168
|
+
nextDirectionRef.current = null;
|
|
2134
2169
|
} else {
|
|
2135
2170
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2136
2171
|
}
|
|
@@ -2142,23 +2177,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2142
2177
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2143
2178
|
}
|
|
2144
2179
|
|
|
2145
|
-
|
|
2146
|
-
if (nextDirectionRef.current) {
|
|
2147
|
-
nextDirectionRef.current = null;
|
|
2148
|
-
}
|
|
2149
|
-
});
|
|
2150
|
-
var numChildren = 0;
|
|
2151
|
-
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2152
|
-
// (and count them, too)
|
|
2153
|
-
|
|
2154
|
-
forEach(children, function (child, index) {
|
|
2155
|
-
++numChildren;
|
|
2156
|
-
|
|
2157
|
-
if (index === activeIndex) {
|
|
2158
|
-
activeChildInterval = child.props.interval;
|
|
2159
|
-
}
|
|
2160
|
-
});
|
|
2161
|
-
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2180
|
+
var numChildren = React.Children.toArray(children).filter(React.isValidElement).length;
|
|
2162
2181
|
var prev = useCallback(function (event) {
|
|
2163
2182
|
if (isSliding) {
|
|
2164
2183
|
return;
|
|
@@ -2344,19 +2363,17 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2344
2363
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2345
2364
|
var intervalHandleRef = useRef();
|
|
2346
2365
|
useEffect(function () {
|
|
2347
|
-
var _ref, _activeChildIntervalR;
|
|
2348
|
-
|
|
2349
2366
|
if (!shouldPlay) {
|
|
2350
2367
|
return undefined;
|
|
2351
2368
|
}
|
|
2352
2369
|
|
|
2353
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next,
|
|
2370
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval || undefined);
|
|
2354
2371
|
return function () {
|
|
2355
2372
|
if (intervalHandleRef.current !== null) {
|
|
2356
2373
|
clearInterval(intervalHandleRef.current);
|
|
2357
2374
|
}
|
|
2358
2375
|
};
|
|
2359
|
-
}, [shouldPlay, next,
|
|
2376
|
+
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2360
2377
|
var indicatorOnClicks = useMemo(function () {
|
|
2361
2378
|
return indicators && Array.from({
|
|
2362
2379
|
length: numChildren
|
|
@@ -2417,12 +2434,12 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2417
2434
|
|
|
2418
2435
|
var Carousel = React.forwardRef(CarouselFunc);
|
|
2419
2436
|
Carousel.displayName = 'Carousel';
|
|
2420
|
-
Carousel.propTypes = propTypes$
|
|
2421
|
-
Carousel.defaultProps = defaultProps$
|
|
2437
|
+
Carousel.propTypes = propTypes$1;
|
|
2438
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2422
2439
|
Carousel.Caption = CarouselCaption;
|
|
2423
2440
|
Carousel.Item = CarouselItem;
|
|
2424
2441
|
|
|
2425
|
-
var DEVICE_SIZES
|
|
2442
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2426
2443
|
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
|
|
2427
2444
|
function (_ref, ref) {
|
|
2428
2445
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -2434,7 +2451,7 @@ function (_ref, ref) {
|
|
|
2434
2451
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2435
2452
|
var spans = [];
|
|
2436
2453
|
var classes = [];
|
|
2437
|
-
DEVICE_SIZES
|
|
2454
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2438
2455
|
var propValue = props[brkPoint];
|
|
2439
2456
|
delete props[brkPoint];
|
|
2440
2457
|
var span;
|
|
@@ -2615,50 +2632,21 @@ function getBasePlacement(placement) {
|
|
|
2615
2632
|
return placement.split('-')[0];
|
|
2616
2633
|
}
|
|
2617
2634
|
|
|
2618
|
-
|
|
2619
|
-
var rect = element.getBoundingClientRect();
|
|
2620
|
-
return {
|
|
2621
|
-
width: rect.width,
|
|
2622
|
-
height: rect.height,
|
|
2623
|
-
top: rect.top,
|
|
2624
|
-
right: rect.right,
|
|
2625
|
-
bottom: rect.bottom,
|
|
2626
|
-
left: rect.left,
|
|
2627
|
-
x: rect.left,
|
|
2628
|
-
y: rect.top
|
|
2629
|
-
};
|
|
2630
|
-
}
|
|
2631
|
-
|
|
2635
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2632
2636
|
// means it doesn't take into account transforms.
|
|
2633
|
-
|
|
2634
2637
|
function getLayoutRect(element) {
|
|
2635
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2636
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2637
|
-
|
|
2638
|
-
var width = element.offsetWidth;
|
|
2639
|
-
var height = element.offsetHeight;
|
|
2640
|
-
|
|
2641
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2642
|
-
width = clientRect.width;
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2646
|
-
height = clientRect.height;
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
2638
|
return {
|
|
2650
2639
|
x: element.offsetLeft,
|
|
2651
2640
|
y: element.offsetTop,
|
|
2652
|
-
width:
|
|
2653
|
-
height:
|
|
2641
|
+
width: element.offsetWidth,
|
|
2642
|
+
height: element.offsetHeight
|
|
2654
2643
|
};
|
|
2655
2644
|
}
|
|
2656
2645
|
|
|
2657
|
-
|
|
2658
|
-
if (node == null) {
|
|
2659
|
-
return window;
|
|
2660
|
-
}
|
|
2646
|
+
/*:: import type { Window } from '../types'; */
|
|
2661
2647
|
|
|
2648
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2649
|
+
function getWindow(node) {
|
|
2662
2650
|
if (node.toString() !== '[object Window]') {
|
|
2663
2651
|
var ownerDocument = node.ownerDocument;
|
|
2664
2652
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2667,39 +2655,43 @@ function getWindow(node) {
|
|
|
2667
2655
|
return node;
|
|
2668
2656
|
}
|
|
2669
2657
|
|
|
2658
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2659
|
+
Element); */
|
|
2660
|
+
|
|
2670
2661
|
function isElement(node) {
|
|
2671
2662
|
var OwnElement = getWindow(node).Element;
|
|
2672
2663
|
return node instanceof OwnElement || node instanceof Element;
|
|
2673
2664
|
}
|
|
2665
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2666
|
+
HTMLElement); */
|
|
2667
|
+
|
|
2674
2668
|
|
|
2675
2669
|
function isHTMLElement(node) {
|
|
2676
2670
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2677
2671
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2678
2672
|
}
|
|
2673
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2674
|
+
ShadowRoot); */
|
|
2679
2675
|
|
|
2680
|
-
function isShadowRoot(node) {
|
|
2681
|
-
// IE 11 has no ShadowRoot
|
|
2682
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2683
|
-
return false;
|
|
2684
|
-
}
|
|
2685
2676
|
|
|
2677
|
+
function isShadowRoot(node) {
|
|
2686
2678
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2687
2679
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2688
2680
|
}
|
|
2689
2681
|
|
|
2690
|
-
function contains
|
|
2682
|
+
function contains(parent, child) {
|
|
2691
2683
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2692
2684
|
|
|
2693
2685
|
if (parent.contains(child)) {
|
|
2694
2686
|
return true;
|
|
2695
2687
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2696
|
-
else if (
|
|
2688
|
+
else if (isShadowRoot(rootNode)) {
|
|
2697
2689
|
var next = child;
|
|
2698
2690
|
|
|
2699
2691
|
do {
|
|
2700
2692
|
if (next && parent.isSameNode(next)) {
|
|
2701
2693
|
return true;
|
|
2702
|
-
} // $FlowFixMe
|
|
2694
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2703
2695
|
|
|
2704
2696
|
|
|
2705
2697
|
next = next.parentNode || next.host;
|
|
@@ -2714,7 +2706,7 @@ function getNodeName(element) {
|
|
|
2714
2706
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2715
2707
|
}
|
|
2716
2708
|
|
|
2717
|
-
function getComputedStyle$
|
|
2709
|
+
function getComputedStyle$2(element) {
|
|
2718
2710
|
return getWindow(element).getComputedStyle(element);
|
|
2719
2711
|
}
|
|
2720
2712
|
|
|
@@ -2723,9 +2715,8 @@ function isTableElement(element) {
|
|
|
2723
2715
|
}
|
|
2724
2716
|
|
|
2725
2717
|
function getDocumentElement(element) {
|
|
2726
|
-
// $FlowFixMe
|
|
2727
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2728
|
-
element.document) || window.document).documentElement;
|
|
2718
|
+
// $FlowFixMe: assume body is always available
|
|
2719
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2729
2720
|
}
|
|
2730
2721
|
|
|
2731
2722
|
function getParentNode(element) {
|
|
@@ -2733,13 +2724,12 @@ function getParentNode(element) {
|
|
|
2733
2724
|
return element;
|
|
2734
2725
|
}
|
|
2735
2726
|
|
|
2736
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2737
|
-
// $FlowFixMe[incompatible-return]
|
|
2738
|
-
// $FlowFixMe[prop-missing]
|
|
2727
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2739
2728
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2740
|
-
element.parentNode ||
|
|
2741
|
-
|
|
2742
|
-
|
|
2729
|
+
element.parentNode || // DOM Element detected
|
|
2730
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2731
|
+
element.host || // ShadowRoot detected
|
|
2732
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2743
2733
|
getDocumentElement(element) // fallback
|
|
2744
2734
|
|
|
2745
2735
|
);
|
|
@@ -2747,25 +2737,33 @@ function getParentNode(element) {
|
|
|
2747
2737
|
|
|
2748
2738
|
function getTrueOffsetParent(element) {
|
|
2749
2739
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2750
|
-
getComputedStyle$
|
|
2740
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2751
2741
|
return null;
|
|
2752
2742
|
}
|
|
2753
2743
|
|
|
2754
|
-
|
|
2744
|
+
var offsetParent = element.offsetParent;
|
|
2745
|
+
|
|
2746
|
+
if (offsetParent) {
|
|
2747
|
+
var html = getDocumentElement(offsetParent);
|
|
2748
|
+
|
|
2749
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2750
|
+
return html;
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
return offsetParent;
|
|
2755
2755
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2756
2756
|
// return the containing block
|
|
2757
2757
|
|
|
2758
2758
|
|
|
2759
2759
|
function getContainingBlock(element) {
|
|
2760
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2761
2760
|
var currentNode = getParentNode(element);
|
|
2762
2761
|
|
|
2763
2762
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2764
|
-
var css = getComputedStyle$
|
|
2763
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2765
2764
|
// create a containing block.
|
|
2766
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2767
2765
|
|
|
2768
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2766
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2769
2767
|
return currentNode;
|
|
2770
2768
|
} else {
|
|
2771
2769
|
currentNode = currentNode.parentNode;
|
|
@@ -2781,11 +2779,11 @@ function getOffsetParent(element) {
|
|
|
2781
2779
|
var window = getWindow(element);
|
|
2782
2780
|
var offsetParent = getTrueOffsetParent(element);
|
|
2783
2781
|
|
|
2784
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2782
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2785
2783
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2786
2784
|
}
|
|
2787
2785
|
|
|
2788
|
-
if (offsetParent &&
|
|
2786
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2789
2787
|
return window;
|
|
2790
2788
|
}
|
|
2791
2789
|
|
|
@@ -2796,12 +2794,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2796
2794
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2797
2795
|
}
|
|
2798
2796
|
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
var round = Math.round;
|
|
2802
|
-
|
|
2803
|
-
function within(min$1, value, max$1) {
|
|
2804
|
-
return max(min$1, min(value, max$1));
|
|
2797
|
+
function within(min, value, max) {
|
|
2798
|
+
return Math.max(min, Math.min(value, max));
|
|
2805
2799
|
}
|
|
2806
2800
|
|
|
2807
2801
|
function getFreshSideObject() {
|
|
@@ -2814,7 +2808,7 @@ function getFreshSideObject() {
|
|
|
2814
2808
|
}
|
|
2815
2809
|
|
|
2816
2810
|
function mergePaddingObject(paddingObject) {
|
|
2817
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2811
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2818
2812
|
}
|
|
2819
2813
|
|
|
2820
2814
|
function expandToHashMap(value, keys) {
|
|
@@ -2824,19 +2818,11 @@ function expandToHashMap(value, keys) {
|
|
|
2824
2818
|
}, {});
|
|
2825
2819
|
}
|
|
2826
2820
|
|
|
2827
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2828
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2829
|
-
placement: state.placement
|
|
2830
|
-
})) : padding;
|
|
2831
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2832
|
-
};
|
|
2833
|
-
|
|
2834
2821
|
function arrow(_ref) {
|
|
2835
2822
|
var _state$modifiersData$;
|
|
2836
2823
|
|
|
2837
2824
|
var state = _ref.state,
|
|
2838
|
-
name = _ref.name
|
|
2839
|
-
options = _ref.options;
|
|
2825
|
+
name = _ref.name;
|
|
2840
2826
|
var arrowElement = state.elements.arrow;
|
|
2841
2827
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2842
2828
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2848,7 +2834,7 @@ function arrow(_ref) {
|
|
|
2848
2834
|
return;
|
|
2849
2835
|
}
|
|
2850
2836
|
|
|
2851
|
-
var paddingObject =
|
|
2837
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2852
2838
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2853
2839
|
var minProp = axis === 'y' ? top : left;
|
|
2854
2840
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2868,11 +2854,14 @@ function arrow(_ref) {
|
|
|
2868
2854
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2869
2855
|
}
|
|
2870
2856
|
|
|
2871
|
-
function effect
|
|
2857
|
+
function effect(_ref2) {
|
|
2872
2858
|
var state = _ref2.state,
|
|
2873
|
-
options = _ref2.options
|
|
2859
|
+
options = _ref2.options,
|
|
2860
|
+
name = _ref2.name;
|
|
2874
2861
|
var _options$element = options.element,
|
|
2875
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2862
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2863
|
+
_options$padding = options.padding,
|
|
2864
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2876
2865
|
|
|
2877
2866
|
if (arrowElement == null) {
|
|
2878
2867
|
return;
|
|
@@ -2893,7 +2882,7 @@ function effect$1(_ref2) {
|
|
|
2893
2882
|
}
|
|
2894
2883
|
}
|
|
2895
2884
|
|
|
2896
|
-
if (!contains
|
|
2885
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2897
2886
|
if (process.env.NODE_ENV !== "production") {
|
|
2898
2887
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2899
2888
|
}
|
|
@@ -2902,6 +2891,9 @@ function effect$1(_ref2) {
|
|
|
2902
2891
|
}
|
|
2903
2892
|
|
|
2904
2893
|
state.elements.arrow = arrowElement;
|
|
2894
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2895
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2896
|
+
};
|
|
2905
2897
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2906
2898
|
|
|
2907
2899
|
|
|
@@ -2910,7 +2902,7 @@ var arrow$1 = {
|
|
|
2910
2902
|
enabled: true,
|
|
2911
2903
|
phase: 'main',
|
|
2912
2904
|
fn: arrow,
|
|
2913
|
-
effect: effect
|
|
2905
|
+
effect: effect,
|
|
2914
2906
|
requires: ['popperOffsets'],
|
|
2915
2907
|
requiresIfExists: ['preventOverflow']
|
|
2916
2908
|
};
|
|
@@ -2924,14 +2916,14 @@ var unsetSides = {
|
|
|
2924
2916
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2925
2917
|
// cleanly divide the values into the appropriate subpixels.
|
|
2926
2918
|
|
|
2927
|
-
function
|
|
2919
|
+
function roundOffsets(_ref) {
|
|
2928
2920
|
var x = _ref.x,
|
|
2929
2921
|
y = _ref.y;
|
|
2930
2922
|
var win = window;
|
|
2931
2923
|
var dpr = win.devicePixelRatio || 1;
|
|
2932
2924
|
return {
|
|
2933
|
-
x: round(
|
|
2934
|
-
y: round(
|
|
2925
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2926
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2935
2927
|
};
|
|
2936
2928
|
}
|
|
2937
2929
|
|
|
@@ -2944,14 +2936,11 @@ function mapToStyles(_ref2) {
|
|
|
2944
2936
|
offsets = _ref2.offsets,
|
|
2945
2937
|
position = _ref2.position,
|
|
2946
2938
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2947
|
-
adaptive = _ref2.adaptive
|
|
2948
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2939
|
+
adaptive = _ref2.adaptive;
|
|
2949
2940
|
|
|
2950
|
-
var
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
_ref3$y = _ref3.y,
|
|
2954
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2941
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2942
|
+
x = _roundOffsets.x,
|
|
2943
|
+
y = _roundOffsets.y;
|
|
2955
2944
|
|
|
2956
2945
|
var hasX = offsets.hasOwnProperty('x');
|
|
2957
2946
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2961,32 +2950,23 @@ function mapToStyles(_ref2) {
|
|
|
2961
2950
|
|
|
2962
2951
|
if (adaptive) {
|
|
2963
2952
|
var offsetParent = getOffsetParent(popper);
|
|
2964
|
-
var heightProp = 'clientHeight';
|
|
2965
|
-
var widthProp = 'clientWidth';
|
|
2966
2953
|
|
|
2967
2954
|
if (offsetParent === getWindow(popper)) {
|
|
2968
2955
|
offsetParent = getDocumentElement(popper);
|
|
2956
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2969
2957
|
|
|
2970
|
-
|
|
2971
|
-
heightProp = 'scrollHeight';
|
|
2972
|
-
widthProp = 'scrollWidth';
|
|
2973
|
-
}
|
|
2974
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2975
|
-
|
|
2958
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2976
2959
|
|
|
2977
|
-
offsetParent = offsetParent;
|
|
2978
2960
|
|
|
2979
2961
|
if (placement === top) {
|
|
2980
|
-
sideY = bottom;
|
|
2981
|
-
|
|
2982
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2962
|
+
sideY = bottom;
|
|
2963
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
2983
2964
|
y *= gpuAcceleration ? 1 : -1;
|
|
2984
2965
|
}
|
|
2985
2966
|
|
|
2986
2967
|
if (placement === left) {
|
|
2987
|
-
sideX = right;
|
|
2988
|
-
|
|
2989
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2968
|
+
sideX = right;
|
|
2969
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
2990
2970
|
x *= gpuAcceleration ? 1 : -1;
|
|
2991
2971
|
}
|
|
2992
2972
|
}
|
|
@@ -2998,24 +2978,22 @@ function mapToStyles(_ref2) {
|
|
|
2998
2978
|
if (gpuAcceleration) {
|
|
2999
2979
|
var _Object$assign;
|
|
3000
2980
|
|
|
3001
|
-
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));
|
|
2981
|
+
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));
|
|
3002
2982
|
}
|
|
3003
2983
|
|
|
3004
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2984
|
+
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));
|
|
3005
2985
|
}
|
|
3006
2986
|
|
|
3007
|
-
function computeStyles(
|
|
3008
|
-
var state =
|
|
3009
|
-
options =
|
|
2987
|
+
function computeStyles(_ref3) {
|
|
2988
|
+
var state = _ref3.state,
|
|
2989
|
+
options = _ref3.options;
|
|
3010
2990
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3011
2991
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3012
2992
|
_options$adaptive = options.adaptive,
|
|
3013
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3014
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3015
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2993
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3016
2994
|
|
|
3017
2995
|
if (process.env.NODE_ENV !== "production") {
|
|
3018
|
-
var transitionProperty = getComputedStyle$
|
|
2996
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3019
2997
|
|
|
3020
2998
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3021
2999
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3032,24 +3010,22 @@ function computeStyles(_ref4) {
|
|
|
3032
3010
|
};
|
|
3033
3011
|
|
|
3034
3012
|
if (state.modifiersData.popperOffsets != null) {
|
|
3035
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3013
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3036
3014
|
offsets: state.modifiersData.popperOffsets,
|
|
3037
3015
|
position: state.options.strategy,
|
|
3038
|
-
adaptive: adaptive
|
|
3039
|
-
roundOffsets: roundOffsets
|
|
3016
|
+
adaptive: adaptive
|
|
3040
3017
|
})));
|
|
3041
3018
|
}
|
|
3042
3019
|
|
|
3043
3020
|
if (state.modifiersData.arrow != null) {
|
|
3044
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3021
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3045
3022
|
offsets: state.modifiersData.arrow,
|
|
3046
3023
|
position: 'absolute',
|
|
3047
|
-
adaptive: false
|
|
3048
|
-
roundOffsets: roundOffsets
|
|
3024
|
+
adaptive: false
|
|
3049
3025
|
})));
|
|
3050
3026
|
}
|
|
3051
3027
|
|
|
3052
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3028
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3053
3029
|
'data-popper-placement': state.placement
|
|
3054
3030
|
});
|
|
3055
3031
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3067,7 +3043,7 @@ var passive = {
|
|
|
3067
3043
|
passive: true
|
|
3068
3044
|
};
|
|
3069
3045
|
|
|
3070
|
-
function effect(_ref) {
|
|
3046
|
+
function effect$1(_ref) {
|
|
3071
3047
|
var state = _ref.state,
|
|
3072
3048
|
instance = _ref.instance,
|
|
3073
3049
|
options = _ref.options;
|
|
@@ -3107,11 +3083,11 @@ var eventListeners = {
|
|
|
3107
3083
|
enabled: true,
|
|
3108
3084
|
phase: 'write',
|
|
3109
3085
|
fn: function fn() {},
|
|
3110
|
-
effect: effect,
|
|
3086
|
+
effect: effect$1,
|
|
3111
3087
|
data: {}
|
|
3112
3088
|
};
|
|
3113
3089
|
|
|
3114
|
-
var hash
|
|
3090
|
+
var hash = {
|
|
3115
3091
|
left: 'right',
|
|
3116
3092
|
right: 'left',
|
|
3117
3093
|
bottom: 'top',
|
|
@@ -3119,20 +3095,34 @@ var hash$1 = {
|
|
|
3119
3095
|
};
|
|
3120
3096
|
function getOppositePlacement(placement) {
|
|
3121
3097
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3122
|
-
return hash
|
|
3098
|
+
return hash[matched];
|
|
3123
3099
|
});
|
|
3124
3100
|
}
|
|
3125
3101
|
|
|
3126
|
-
var hash = {
|
|
3102
|
+
var hash$1 = {
|
|
3127
3103
|
start: 'end',
|
|
3128
3104
|
end: 'start'
|
|
3129
3105
|
};
|
|
3130
3106
|
function getOppositeVariationPlacement(placement) {
|
|
3131
3107
|
return placement.replace(/start|end/g, function (matched) {
|
|
3132
|
-
return hash[matched];
|
|
3108
|
+
return hash$1[matched];
|
|
3133
3109
|
});
|
|
3134
3110
|
}
|
|
3135
3111
|
|
|
3112
|
+
function getBoundingClientRect(element) {
|
|
3113
|
+
var rect = element.getBoundingClientRect();
|
|
3114
|
+
return {
|
|
3115
|
+
width: rect.width,
|
|
3116
|
+
height: rect.height,
|
|
3117
|
+
top: rect.top,
|
|
3118
|
+
right: rect.right,
|
|
3119
|
+
bottom: rect.bottom,
|
|
3120
|
+
left: rect.left,
|
|
3121
|
+
x: rect.left,
|
|
3122
|
+
y: rect.top
|
|
3123
|
+
};
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3136
3126
|
function getWindowScroll(node) {
|
|
3137
3127
|
var win = getWindow(node);
|
|
3138
3128
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3195,18 +3185,16 @@ function getViewportRect(element) {
|
|
|
3195
3185
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3196
3186
|
|
|
3197
3187
|
function getDocumentRect(element) {
|
|
3198
|
-
var _element$ownerDocumen;
|
|
3199
|
-
|
|
3200
3188
|
var html = getDocumentElement(element);
|
|
3201
3189
|
var winScroll = getWindowScroll(element);
|
|
3202
|
-
var body =
|
|
3203
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3204
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3190
|
+
var body = element.ownerDocument.body;
|
|
3191
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3192
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3205
3193
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3206
3194
|
var y = -winScroll.scrollTop;
|
|
3207
3195
|
|
|
3208
|
-
if (getComputedStyle$
|
|
3209
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3196
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3197
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3210
3198
|
}
|
|
3211
3199
|
|
|
3212
3200
|
return {
|
|
@@ -3219,7 +3207,7 @@ function getDocumentRect(element) {
|
|
|
3219
3207
|
|
|
3220
3208
|
function isScrollParent(element) {
|
|
3221
3209
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3222
|
-
var _getComputedStyle = getComputedStyle$
|
|
3210
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3223
3211
|
overflow = _getComputedStyle.overflow,
|
|
3224
3212
|
overflowX = _getComputedStyle.overflowX,
|
|
3225
3213
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3229,7 +3217,7 @@ function isScrollParent(element) {
|
|
|
3229
3217
|
|
|
3230
3218
|
function getScrollParent(node) {
|
|
3231
3219
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3232
|
-
// $FlowFixMe
|
|
3220
|
+
// $FlowFixMe: assume body is always available
|
|
3233
3221
|
return node.ownerDocument.body;
|
|
3234
3222
|
}
|
|
3235
3223
|
|
|
@@ -3243,28 +3231,26 @@ function getScrollParent(node) {
|
|
|
3243
3231
|
/*
|
|
3244
3232
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3245
3233
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3246
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3234
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3247
3235
|
reference element's position.
|
|
3248
3236
|
*/
|
|
3249
3237
|
|
|
3250
3238
|
function listScrollParents(element, list) {
|
|
3251
|
-
var _element$ownerDocumen;
|
|
3252
|
-
|
|
3253
3239
|
if (list === void 0) {
|
|
3254
3240
|
list = [];
|
|
3255
3241
|
}
|
|
3256
3242
|
|
|
3257
3243
|
var scrollParent = getScrollParent(element);
|
|
3258
|
-
var isBody = scrollParent ===
|
|
3244
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3259
3245
|
var win = getWindow(scrollParent);
|
|
3260
3246
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3261
3247
|
var updatedList = list.concat(target);
|
|
3262
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3248
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3263
3249
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3264
3250
|
}
|
|
3265
3251
|
|
|
3266
3252
|
function rectToClientRect(rect) {
|
|
3267
|
-
return Object.assign({}, rect, {
|
|
3253
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3268
3254
|
left: rect.x,
|
|
3269
3255
|
top: rect.y,
|
|
3270
3256
|
right: rect.x + rect.width,
|
|
@@ -3294,16 +3280,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3294
3280
|
|
|
3295
3281
|
function getClippingParents(element) {
|
|
3296
3282
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3297
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3283
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3298
3284
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3299
3285
|
|
|
3300
3286
|
if (!isElement(clipperElement)) {
|
|
3301
3287
|
return [];
|
|
3302
|
-
} // $FlowFixMe
|
|
3288
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3303
3289
|
|
|
3304
3290
|
|
|
3305
3291
|
return clippingParents.filter(function (clippingParent) {
|
|
3306
|
-
return isElement(clippingParent) && contains
|
|
3292
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3307
3293
|
});
|
|
3308
3294
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3309
3295
|
// clipping parents
|
|
@@ -3315,10 +3301,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3315
3301
|
var firstClippingParent = clippingParents[0];
|
|
3316
3302
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3317
3303
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3318
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3319
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3320
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3321
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3304
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3305
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3306
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3307
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3322
3308
|
return accRect;
|
|
3323
3309
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3324
3310
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3385,11 +3371,11 @@ function computeOffsets(_ref) {
|
|
|
3385
3371
|
|
|
3386
3372
|
switch (variation) {
|
|
3387
3373
|
case start:
|
|
3388
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3374
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3389
3375
|
break;
|
|
3390
3376
|
|
|
3391
3377
|
case end:
|
|
3392
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3378
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3393
3379
|
break;
|
|
3394
3380
|
}
|
|
3395
3381
|
}
|
|
@@ -3428,7 +3414,7 @@ function detectOverflow(state, options) {
|
|
|
3428
3414
|
strategy: 'absolute',
|
|
3429
3415
|
placement: placement
|
|
3430
3416
|
});
|
|
3431
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3417
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3432
3418
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3433
3419
|
// 0 or negative = within the clipping rect
|
|
3434
3420
|
|
|
@@ -3452,6 +3438,9 @@ function detectOverflow(state, options) {
|
|
|
3452
3438
|
return overflowOffsets;
|
|
3453
3439
|
}
|
|
3454
3440
|
|
|
3441
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3442
|
+
|
|
3443
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3455
3444
|
function computeAutoPlacement(state, options) {
|
|
3456
3445
|
if (options === void 0) {
|
|
3457
3446
|
options = {};
|
|
@@ -3468,7 +3457,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3468
3457
|
var variation = getVariation(placement);
|
|
3469
3458
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3470
3459
|
return getVariation(placement) === variation;
|
|
3471
|
-
}) : basePlacements;
|
|
3460
|
+
}) : basePlacements; // $FlowFixMe
|
|
3461
|
+
|
|
3472
3462
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3473
3463
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3474
3464
|
});
|
|
@@ -3479,7 +3469,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3479
3469
|
if (process.env.NODE_ENV !== "production") {
|
|
3480
3470
|
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(' '));
|
|
3481
3471
|
}
|
|
3482
|
-
} // $FlowFixMe
|
|
3472
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3483
3473
|
|
|
3484
3474
|
|
|
3485
3475
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3680,7 +3670,7 @@ function hide(_ref) {
|
|
|
3680
3670
|
isReferenceHidden: isReferenceHidden,
|
|
3681
3671
|
hasPopperEscaped: hasPopperEscaped
|
|
3682
3672
|
};
|
|
3683
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3673
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3684
3674
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3685
3675
|
'data-popper-escaped': hasPopperEscaped
|
|
3686
3676
|
});
|
|
@@ -3699,7 +3689,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3699
3689
|
var basePlacement = getBasePlacement(placement);
|
|
3700
3690
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3701
3691
|
|
|
3702
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3692
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3703
3693
|
placement: placement
|
|
3704
3694
|
})) : offset,
|
|
3705
3695
|
skidding = _ref[0],
|
|
@@ -3805,7 +3795,7 @@ function preventOverflow(_ref) {
|
|
|
3805
3795
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3806
3796
|
var referenceRect = state.rects.reference;
|
|
3807
3797
|
var popperRect = state.rects.popper;
|
|
3808
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3798
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3809
3799
|
placement: state.placement
|
|
3810
3800
|
})) : tetherOffset;
|
|
3811
3801
|
var data = {
|
|
@@ -3817,13 +3807,13 @@ function preventOverflow(_ref) {
|
|
|
3817
3807
|
return;
|
|
3818
3808
|
}
|
|
3819
3809
|
|
|
3820
|
-
if (checkMainAxis
|
|
3810
|
+
if (checkMainAxis) {
|
|
3821
3811
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3822
3812
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3823
3813
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3824
3814
|
var offset = popperOffsets[mainAxis];
|
|
3825
|
-
var min
|
|
3826
|
-
var max
|
|
3815
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3816
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3827
3817
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3828
3818
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3829
3819
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3850,29 +3840,26 @@ function preventOverflow(_ref) {
|
|
|
3850
3840
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3851
3841
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3852
3842
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3843
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3844
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3845
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3846
|
+
}
|
|
3853
3847
|
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3857
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3858
|
-
}
|
|
3859
|
-
|
|
3860
|
-
if (checkAltAxis) {
|
|
3861
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3848
|
+
if (checkAltAxis) {
|
|
3849
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3862
3850
|
|
|
3863
|
-
|
|
3851
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3864
3852
|
|
|
3865
|
-
|
|
3853
|
+
var _offset = popperOffsets[altAxis];
|
|
3866
3854
|
|
|
3867
|
-
|
|
3855
|
+
var _min = _offset + overflow[_mainSide];
|
|
3868
3856
|
|
|
3869
|
-
|
|
3857
|
+
var _max = _offset - overflow[_altSide];
|
|
3870
3858
|
|
|
3871
|
-
|
|
3859
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3872
3860
|
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
}
|
|
3861
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3862
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3876
3863
|
}
|
|
3877
3864
|
|
|
3878
3865
|
state.modifiersData[name] = data;
|
|
@@ -4103,9 +4090,9 @@ function uniqueBy(arr, fn) {
|
|
|
4103
4090
|
function mergeByName(modifiers) {
|
|
4104
4091
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4105
4092
|
var existing = merged[current.name];
|
|
4106
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4107
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4108
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4093
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4094
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4095
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4109
4096
|
}) : current;
|
|
4110
4097
|
return merged;
|
|
4111
4098
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4151,7 +4138,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4151
4138
|
var state = {
|
|
4152
4139
|
placement: 'bottom',
|
|
4153
4140
|
orderedModifiers: [],
|
|
4154
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4141
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4155
4142
|
modifiersData: {},
|
|
4156
4143
|
elements: {
|
|
4157
4144
|
reference: reference,
|
|
@@ -4166,7 +4153,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4166
4153
|
state: state,
|
|
4167
4154
|
setOptions: function setOptions(options) {
|
|
4168
4155
|
cleanupModifierEffects();
|
|
4169
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4156
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4170
4157
|
state.scrollParents = {
|
|
4171
4158
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4172
4159
|
popper: listScrollParents(popper)
|
|
@@ -4198,7 +4185,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4198
4185
|
}
|
|
4199
4186
|
}
|
|
4200
4187
|
|
|
4201
|
-
var _getComputedStyle = getComputedStyle$
|
|
4188
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4202
4189
|
marginTop = _getComputedStyle.marginTop,
|
|
4203
4190
|
marginRight = _getComputedStyle.marginRight,
|
|
4204
4191
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4408,11 +4395,6 @@ var ariaDescribedByModifier = {
|
|
|
4408
4395
|
|
|
4409
4396
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4410
4397
|
var ids = reference.getAttribute('aria-describedby');
|
|
4411
|
-
|
|
4412
|
-
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4413
|
-
return;
|
|
4414
|
-
}
|
|
4415
|
-
|
|
4416
4398
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4417
4399
|
}
|
|
4418
4400
|
}
|
|
@@ -4538,7 +4520,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4538
4520
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4539
4521
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4540
4522
|
// so we need to check on context instead of a document root element.
|
|
4541
|
-
function contains(context, node) {
|
|
4523
|
+
function contains$1(context, node) {
|
|
4542
4524
|
if (context.contains) return context.contains(node);
|
|
4543
4525
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4544
4526
|
}
|
|
@@ -4612,13 +4594,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4612
4594
|
return componentOrElement != null ? componentOrElement : null;
|
|
4613
4595
|
}
|
|
4614
4596
|
|
|
4615
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4616
|
-
return ownerDocument
|
|
4597
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4598
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4617
4599
|
});
|
|
4618
4600
|
|
|
4619
4601
|
var escapeKeyCode = 27;
|
|
4620
4602
|
|
|
4621
|
-
var noop$
|
|
4603
|
+
var noop$1 = function noop() {};
|
|
4622
4604
|
|
|
4623
4605
|
function isLeftClickEvent(event) {
|
|
4624
4606
|
return event.button === 0;
|
|
@@ -4651,11 +4633,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4651
4633
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4652
4634
|
|
|
4653
4635
|
var preventMouseRootCloseRef = useRef(false);
|
|
4654
|
-
var onClose = onRootClose || noop$
|
|
4636
|
+
var onClose = onRootClose || noop$1;
|
|
4655
4637
|
var handleMouseCapture = useCallback(function (e) {
|
|
4656
4638
|
var currentTarget = getRefTarget(ref);
|
|
4657
4639
|
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');
|
|
4658
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4640
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4659
4641
|
}, [ref]);
|
|
4660
4642
|
var handleMouse = useEventCallback(function (e) {
|
|
4661
4643
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4668,38 +4650,19 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4668
4650
|
}
|
|
4669
4651
|
});
|
|
4670
4652
|
useEffect(function () {
|
|
4671
|
-
if (disabled || ref == null) return undefined;
|
|
4672
|
-
//
|
|
4673
|
-
|
|
4674
|
-
var currentEvent = window.event;
|
|
4675
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4653
|
+
if (disabled || ref == null) return undefined;
|
|
4654
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4676
4655
|
// avoid false positives in the contains() check below if the target DOM
|
|
4677
4656
|
// element is removed in the React mouse callback.
|
|
4678
4657
|
|
|
4679
4658
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4680
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4681
|
-
|
|
4682
|
-
if (e === currentEvent) {
|
|
4683
|
-
currentEvent = undefined;
|
|
4684
|
-
return;
|
|
4685
|
-
}
|
|
4686
|
-
|
|
4687
|
-
handleMouse(e);
|
|
4688
|
-
});
|
|
4689
|
-
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4690
|
-
// skip if this event is the same as the one running when we added the handlers
|
|
4691
|
-
if (e === currentEvent) {
|
|
4692
|
-
currentEvent = undefined;
|
|
4693
|
-
return;
|
|
4694
|
-
}
|
|
4695
|
-
|
|
4696
|
-
handleKeyUp(e);
|
|
4697
|
-
});
|
|
4659
|
+
var removeMouseListener = listen(doc, clickTrigger, handleMouse);
|
|
4660
|
+
var removeKeyupListener = listen(doc, 'keyup', handleKeyUp);
|
|
4698
4661
|
var mobileSafariHackListeners = [];
|
|
4699
4662
|
|
|
4700
4663
|
if ('ontouchstart' in doc.documentElement) {
|
|
4701
4664
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4702
|
-
return listen(el, 'mousemove', noop$
|
|
4665
|
+
return listen(el, 'mousemove', noop$1);
|
|
4703
4666
|
});
|
|
4704
4667
|
}
|
|
4705
4668
|
|
|
@@ -4781,7 +4744,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4781
4744
|
});
|
|
4782
4745
|
}
|
|
4783
4746
|
|
|
4784
|
-
var noop$
|
|
4747
|
+
var noop$2 = function noop() {};
|
|
4785
4748
|
/**
|
|
4786
4749
|
* @memberOf Dropdown
|
|
4787
4750
|
* @param {object} options
|
|
@@ -4849,7 +4812,7 @@ function useDropdownMenu(options) {
|
|
|
4849
4812
|
|
|
4850
4813
|
var menu;
|
|
4851
4814
|
var menuProps = {
|
|
4852
|
-
ref: setMenu || noop$
|
|
4815
|
+
ref: setMenu || noop$2,
|
|
4853
4816
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4854
4817
|
};
|
|
4855
4818
|
var childArgs = {
|
|
@@ -4882,7 +4845,7 @@ function useDropdownMenu(options) {
|
|
|
4882
4845
|
});
|
|
4883
4846
|
return menu;
|
|
4884
4847
|
}
|
|
4885
|
-
var propTypes$
|
|
4848
|
+
var propTypes$2 = {
|
|
4886
4849
|
/**
|
|
4887
4850
|
* A render prop that returns a Menu element. The `props`
|
|
4888
4851
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4939,7 +4902,7 @@ var propTypes$8 = {
|
|
|
4939
4902
|
*/
|
|
4940
4903
|
rootCloseEvent: PropTypes.string
|
|
4941
4904
|
};
|
|
4942
|
-
var defaultProps$
|
|
4905
|
+
var defaultProps$d = {
|
|
4943
4906
|
usePopper: true
|
|
4944
4907
|
};
|
|
4945
4908
|
|
|
@@ -4949,7 +4912,7 @@ var defaultProps$r = {
|
|
|
4949
4912
|
* @displayName DropdownMenu
|
|
4950
4913
|
* @memberOf Dropdown
|
|
4951
4914
|
*/
|
|
4952
|
-
function DropdownMenu
|
|
4915
|
+
function DropdownMenu(_ref2) {
|
|
4953
4916
|
var children = _ref2.children,
|
|
4954
4917
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4955
4918
|
|
|
@@ -4957,11 +4920,11 @@ function DropdownMenu$1(_ref2) {
|
|
|
4957
4920
|
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4958
4921
|
}
|
|
4959
4922
|
|
|
4960
|
-
DropdownMenu
|
|
4961
|
-
DropdownMenu
|
|
4962
|
-
DropdownMenu
|
|
4923
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4924
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4925
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
4963
4926
|
|
|
4964
|
-
var noop$
|
|
4927
|
+
var noop$3 = function noop() {};
|
|
4965
4928
|
/**
|
|
4966
4929
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4967
4930
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4975,11 +4938,11 @@ function useDropdownToggle() {
|
|
|
4975
4938
|
_ref$show = _ref.show,
|
|
4976
4939
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4977
4940
|
_ref$toggle = _ref.toggle,
|
|
4978
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4941
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
4979
4942
|
setToggle = _ref.setToggle;
|
|
4980
4943
|
|
|
4981
4944
|
return [{
|
|
4982
|
-
ref: setToggle || noop$
|
|
4945
|
+
ref: setToggle || noop$3,
|
|
4983
4946
|
'aria-haspopup': true,
|
|
4984
4947
|
'aria-expanded': !!show
|
|
4985
4948
|
}, {
|
|
@@ -4987,7 +4950,7 @@ function useDropdownToggle() {
|
|
|
4987
4950
|
toggle: toggle
|
|
4988
4951
|
}];
|
|
4989
4952
|
}
|
|
4990
|
-
var propTypes$
|
|
4953
|
+
var propTypes$3 = {
|
|
4991
4954
|
/**
|
|
4992
4955
|
* A render prop that returns a Toggle element. The `props`
|
|
4993
4956
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5012,7 +4975,7 @@ var propTypes$7 = {
|
|
|
5012
4975
|
* @displayName DropdownToggle
|
|
5013
4976
|
* @memberOf Dropdown
|
|
5014
4977
|
*/
|
|
5015
|
-
function DropdownToggle
|
|
4978
|
+
function DropdownToggle(_ref2) {
|
|
5016
4979
|
var children = _ref2.children;
|
|
5017
4980
|
|
|
5018
4981
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5028,10 +4991,10 @@ function DropdownToggle$1(_ref2) {
|
|
|
5028
4991
|
}));
|
|
5029
4992
|
}
|
|
5030
4993
|
|
|
5031
|
-
DropdownToggle
|
|
5032
|
-
DropdownToggle
|
|
4994
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4995
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5033
4996
|
|
|
5034
|
-
var propTypes$
|
|
4997
|
+
var propTypes$4 = {
|
|
5035
4998
|
/**
|
|
5036
4999
|
* A render prop that returns the root dropdown element. The `props`
|
|
5037
5000
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5103,7 +5066,7 @@ var propTypes$6 = {
|
|
|
5103
5066
|
/**
|
|
5104
5067
|
* @displayName Dropdown
|
|
5105
5068
|
*/
|
|
5106
|
-
function Dropdown
|
|
5069
|
+
function Dropdown(_ref) {
|
|
5107
5070
|
var drop = _ref.drop,
|
|
5108
5071
|
alignEnd = _ref.alignEnd,
|
|
5109
5072
|
defaultShow = _ref.defaultShow,
|
|
@@ -5245,15 +5208,15 @@ function Dropdown$1(_ref) {
|
|
|
5245
5208
|
}));
|
|
5246
5209
|
}
|
|
5247
5210
|
|
|
5248
|
-
Dropdown
|
|
5249
|
-
Dropdown
|
|
5250
|
-
Dropdown
|
|
5251
|
-
Dropdown
|
|
5211
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5212
|
+
Dropdown.propTypes = propTypes$4;
|
|
5213
|
+
Dropdown.Menu = DropdownMenu;
|
|
5214
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5252
5215
|
|
|
5253
5216
|
var NavContext = React.createContext(null);
|
|
5254
5217
|
NavContext.displayName = 'NavContext';
|
|
5255
5218
|
|
|
5256
|
-
var defaultProps$
|
|
5219
|
+
var defaultProps$e = {
|
|
5257
5220
|
as: SafeAnchor,
|
|
5258
5221
|
disabled: false
|
|
5259
5222
|
};
|
|
@@ -5275,10 +5238,9 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5275
5238
|
var navContext = useContext(NavContext);
|
|
5276
5239
|
|
|
5277
5240
|
var _ref2 = navContext || {},
|
|
5278
|
-
activeKey = _ref2.activeKey;
|
|
5279
|
-
|
|
5241
|
+
activeKey = _ref2.activeKey;
|
|
5280
5242
|
|
|
5281
|
-
var key = makeEventKey(eventKey, href);
|
|
5243
|
+
var key = makeEventKey(eventKey || null, href);
|
|
5282
5244
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5283
5245
|
var handleClick = useEventCallback(function (event) {
|
|
5284
5246
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5302,7 +5264,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5302
5264
|
);
|
|
5303
5265
|
});
|
|
5304
5266
|
DropdownItem.displayName = 'DropdownItem';
|
|
5305
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5267
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5306
5268
|
|
|
5307
5269
|
var toFnRef = function toFnRef(ref) {
|
|
5308
5270
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5341,8 +5303,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5341
5303
|
}, [refA, refB]);
|
|
5342
5304
|
}
|
|
5343
5305
|
|
|
5344
|
-
var context = React.createContext(null);
|
|
5345
|
-
context.displayName = 'NavbarContext';
|
|
5306
|
+
var context$2 = React.createContext(null);
|
|
5307
|
+
context$2.displayName = 'NavbarContext';
|
|
5346
5308
|
|
|
5347
5309
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5348
5310
|
// @ts-ignore
|
|
@@ -5377,14 +5339,12 @@ function getMargins(element) {
|
|
|
5377
5339
|
function usePopperMarginModifiers() {
|
|
5378
5340
|
var overlayRef = useRef(null);
|
|
5379
5341
|
var margins = useRef(null);
|
|
5380
|
-
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5381
|
-
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5382
5342
|
var callback = useCallback(function (overlay) {
|
|
5383
|
-
if (!overlay || !(hasClass(overlay,
|
|
5343
|
+
if (!overlay || !(hasClass(overlay, 'popover') || hasClass(overlay, 'dropdown-menu'))) return;
|
|
5384
5344
|
margins.current = getMargins(overlay);
|
|
5385
5345
|
overlay.style.margin = '0';
|
|
5386
5346
|
overlayRef.current = overlay;
|
|
5387
|
-
}, [
|
|
5347
|
+
}, []);
|
|
5388
5348
|
var offset = useMemo(function () {
|
|
5389
5349
|
return {
|
|
5390
5350
|
name: 'offset',
|
|
@@ -5428,7 +5388,7 @@ function usePopperMarginModifiers() {
|
|
|
5428
5388
|
effect: function effect(_ref2) {
|
|
5429
5389
|
var state = _ref2.state;
|
|
5430
5390
|
|
|
5431
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5391
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, 'popover') || !state.modifiersData['arrow#persistent']) {
|
|
5432
5392
|
return undefined;
|
|
5433
5393
|
}
|
|
5434
5394
|
|
|
@@ -5449,30 +5409,18 @@ function usePopperMarginModifiers() {
|
|
|
5449
5409
|
};
|
|
5450
5410
|
}
|
|
5451
5411
|
};
|
|
5452
|
-
}, [
|
|
5412
|
+
}, []);
|
|
5453
5413
|
return [callback, [offset, popoverArrowMargins]];
|
|
5454
5414
|
}
|
|
5455
5415
|
|
|
5456
|
-
var
|
|
5457
|
-
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5458
|
-
sm: alignDirection
|
|
5459
|
-
}), PropTypes.shape({
|
|
5460
|
-
md: alignDirection
|
|
5461
|
-
}), PropTypes.shape({
|
|
5462
|
-
lg: alignDirection
|
|
5463
|
-
}), PropTypes.shape({
|
|
5464
|
-
xl: alignDirection
|
|
5465
|
-
})]);
|
|
5466
|
-
var defaultProps$p = {
|
|
5467
|
-
align: 'left',
|
|
5416
|
+
var defaultProps$f = {
|
|
5468
5417
|
alignRight: false,
|
|
5469
5418
|
flip: true
|
|
5470
5419
|
}; // TODO: remove this hack
|
|
5471
5420
|
|
|
5472
|
-
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
5421
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5473
5422
|
var bsPrefix = _ref.bsPrefix,
|
|
5474
5423
|
className = _ref.className,
|
|
5475
|
-
align = _ref.align,
|
|
5476
5424
|
alignRight = _ref.alignRight,
|
|
5477
5425
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5478
5426
|
flip = _ref.flip,
|
|
@@ -5481,42 +5429,21 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5481
5429
|
_ref$as = _ref.as,
|
|
5482
5430
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5483
5431
|
popperConfig = _ref.popperConfig,
|
|
5484
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
5432
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5485
5433
|
|
|
5486
|
-
var isNavbar = useContext(context);
|
|
5434
|
+
var isNavbar = useContext(context$2);
|
|
5487
5435
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5488
5436
|
|
|
5489
5437
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5490
5438
|
popperRef = _usePopperMarginModif[0],
|
|
5491
5439
|
marginModifiers = _usePopperMarginModif[1];
|
|
5492
5440
|
|
|
5493
|
-
var alignClasses = [];
|
|
5494
|
-
|
|
5495
|
-
if (align) {
|
|
5496
|
-
if (typeof align === 'object') {
|
|
5497
|
-
var keys = Object.keys(align);
|
|
5498
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5499
|
-
|
|
5500
|
-
if (keys.length) {
|
|
5501
|
-
var brkPoint = keys[0];
|
|
5502
|
-
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5503
|
-
// left in addition to align left classes.
|
|
5504
|
-
// Reuse alignRight to toggle the class below.
|
|
5505
|
-
|
|
5506
|
-
alignRight = direction === 'left';
|
|
5507
|
-
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5508
|
-
}
|
|
5509
|
-
} else if (align === 'right') {
|
|
5510
|
-
alignRight = true;
|
|
5511
|
-
}
|
|
5512
|
-
}
|
|
5513
|
-
|
|
5514
5441
|
var _ref2 = useDropdownMenu({
|
|
5515
5442
|
flip: flip,
|
|
5516
5443
|
rootCloseEvent: rootCloseEvent,
|
|
5517
5444
|
show: showProps,
|
|
5518
5445
|
alignEnd: alignRight,
|
|
5519
|
-
usePopper: !isNavbar
|
|
5446
|
+
usePopper: !isNavbar,
|
|
5520
5447
|
popperConfig: _extends({}, popperConfig, {
|
|
5521
5448
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5522
5449
|
})
|
|
@@ -5545,11 +5472,11 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5545
5472
|
}
|
|
5546
5473
|
|
|
5547
5474
|
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5548
|
-
className: classnames
|
|
5475
|
+
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5549
5476
|
}));
|
|
5550
5477
|
});
|
|
5551
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5552
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5478
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5479
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5553
5480
|
|
|
5554
5481
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5555
5482
|
|
|
@@ -5578,14 +5505,15 @@ module.exports = exports['default'];
|
|
|
5578
5505
|
|
|
5579
5506
|
unwrapExports(isRequiredForA11y_1);
|
|
5580
5507
|
|
|
5581
|
-
var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
5508
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5582
5509
|
var bsPrefix = _ref.bsPrefix,
|
|
5583
5510
|
split = _ref.split,
|
|
5584
5511
|
className = _ref.className,
|
|
5512
|
+
children = _ref.children,
|
|
5585
5513
|
childBsPrefix = _ref.childBsPrefix,
|
|
5586
5514
|
_ref$as = _ref.as,
|
|
5587
5515
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5588
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5516
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "children", "childBsPrefix", "as"]);
|
|
5589
5517
|
|
|
5590
5518
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5591
5519
|
|
|
@@ -5603,9 +5531,9 @@ var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
|
5603
5531
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5604
5532
|
onClick: toggle,
|
|
5605
5533
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5606
|
-
}, toggleProps, props));
|
|
5534
|
+
}, toggleProps, props), children);
|
|
5607
5535
|
});
|
|
5608
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5536
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5609
5537
|
|
|
5610
5538
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5611
5539
|
defaultProps: {
|
|
@@ -5620,10 +5548,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5620
5548
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5621
5549
|
Component: 'span'
|
|
5622
5550
|
});
|
|
5623
|
-
var defaultProps$
|
|
5551
|
+
var defaultProps$g = {
|
|
5624
5552
|
navbar: false
|
|
5625
5553
|
};
|
|
5626
|
-
var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
5554
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5627
5555
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5628
5556
|
show: 'onToggle'
|
|
5629
5557
|
}),
|
|
@@ -5636,9 +5564,9 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5636
5564
|
onToggle = _useUncontrolled.onToggle,
|
|
5637
5565
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5638
5566
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5639
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5640
|
-
_useUncontrolled.navbar
|
|
5641
|
-
|
|
5567
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5568
|
+
_4 = _useUncontrolled.navbar,
|
|
5569
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5642
5570
|
|
|
5643
5571
|
var onSelectCtx = useContext(SelectableContext);
|
|
5644
5572
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5662,7 +5590,7 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5662
5590
|
});
|
|
5663
5591
|
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5664
5592
|
value: handleSelect
|
|
5665
|
-
}, /*#__PURE__*/React.createElement(Dropdown
|
|
5593
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5666
5594
|
drop: drop,
|
|
5667
5595
|
show: show,
|
|
5668
5596
|
alignEnd: alignRight,
|
|
@@ -5677,14 +5605,14 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5677
5605
|
}));
|
|
5678
5606
|
}));
|
|
5679
5607
|
});
|
|
5680
|
-
Dropdown.displayName = 'Dropdown';
|
|
5681
|
-
Dropdown.defaultProps = defaultProps$
|
|
5682
|
-
Dropdown.Divider = DropdownDivider;
|
|
5683
|
-
Dropdown.Header = DropdownHeader;
|
|
5684
|
-
Dropdown.Item = DropdownItem;
|
|
5685
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5686
|
-
Dropdown.Menu = DropdownMenu;
|
|
5687
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5608
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5609
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5610
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5611
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5612
|
+
Dropdown$1.Item = DropdownItem;
|
|
5613
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5614
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5615
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5688
5616
|
|
|
5689
5617
|
var propTypes$5 = {
|
|
5690
5618
|
/**
|
|
@@ -5706,15 +5634,6 @@ var propTypes$5 = {
|
|
|
5706
5634
|
/** Disables both Buttons */
|
|
5707
5635
|
disabled: PropTypes.bool,
|
|
5708
5636
|
|
|
5709
|
-
/**
|
|
5710
|
-
* Aligns the dropdown menu responsively.
|
|
5711
|
-
*
|
|
5712
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5713
|
-
*
|
|
5714
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5715
|
-
*/
|
|
5716
|
-
menuAlign: alignPropType,
|
|
5717
|
-
|
|
5718
5637
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5719
5638
|
menuRole: PropTypes.string,
|
|
5720
5639
|
|
|
@@ -5724,7 +5643,7 @@ var propTypes$5 = {
|
|
|
5724
5643
|
/**
|
|
5725
5644
|
* Which event when fired outside the component will cause it to be closed.
|
|
5726
5645
|
*
|
|
5727
|
-
* _see [DropdownMenu](#
|
|
5646
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
5728
5647
|
*/
|
|
5729
5648
|
rootCloseEvent: PropTypes.string,
|
|
5730
5649
|
|
|
@@ -5753,25 +5672,23 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
5753
5672
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5754
5673
|
variant = _ref.variant,
|
|
5755
5674
|
size = _ref.size,
|
|
5756
|
-
menuAlign = _ref.menuAlign,
|
|
5757
5675
|
menuRole = _ref.menuRole,
|
|
5758
5676
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5759
5677
|
disabled = _ref.disabled,
|
|
5760
5678
|
href = _ref.href,
|
|
5761
5679
|
id = _ref.id,
|
|
5762
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "
|
|
5680
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5763
5681
|
|
|
5764
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
5682
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5765
5683
|
ref: ref
|
|
5766
|
-
}, props), /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
5684
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5767
5685
|
id: id,
|
|
5768
5686
|
href: href,
|
|
5769
5687
|
size: size,
|
|
5770
5688
|
variant: variant,
|
|
5771
5689
|
disabled: disabled,
|
|
5772
5690
|
childBsPrefix: bsPrefix
|
|
5773
|
-
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
5774
|
-
align: menuAlign,
|
|
5691
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5775
5692
|
role: menuRole,
|
|
5776
5693
|
renderOnMount: renderMenuOnMount,
|
|
5777
5694
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5873,7 +5790,7 @@ module.exports = exports['default'];
|
|
|
5873
5790
|
|
|
5874
5791
|
unwrapExports(all_1);
|
|
5875
5792
|
|
|
5876
|
-
var propTypes$
|
|
5793
|
+
var propTypes$6 = {
|
|
5877
5794
|
/**
|
|
5878
5795
|
* Specify whether the feedback is for valid or invalid fields
|
|
5879
5796
|
*
|
|
@@ -5902,7 +5819,7 @@ function (_ref, ref) {
|
|
|
5902
5819
|
}));
|
|
5903
5820
|
});
|
|
5904
5821
|
Feedback.displayName = 'Feedback';
|
|
5905
|
-
Feedback.propTypes = propTypes$
|
|
5822
|
+
Feedback.propTypes = propTypes$6;
|
|
5906
5823
|
|
|
5907
5824
|
var FormContext = React.createContext({
|
|
5908
5825
|
controlId: undefined
|
|
@@ -6011,7 +5928,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
6011
5928
|
custom: custom
|
|
6012
5929
|
};
|
|
6013
5930
|
}, [controlId, custom, id]);
|
|
6014
|
-
var hasLabel =
|
|
5931
|
+
var hasLabel = label != null && label !== false && !children;
|
|
6015
5932
|
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6016
5933
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6017
5934
|
ref: ref,
|
|
@@ -6252,7 +6169,7 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6252
6169
|
});
|
|
6253
6170
|
FormGroup.displayName = 'FormGroup';
|
|
6254
6171
|
|
|
6255
|
-
var defaultProps$
|
|
6172
|
+
var defaultProps$h = {
|
|
6256
6173
|
column: false,
|
|
6257
6174
|
srOnly: false
|
|
6258
6175
|
};
|
|
@@ -6271,7 +6188,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6271
6188
|
|
|
6272
6189
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6273
6190
|
var columnClass = 'col-form-label';
|
|
6274
|
-
if (typeof column === 'string') columnClass = columnClass + "
|
|
6191
|
+
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6275
6192
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6276
6193
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6277
6194
|
htmlFor = htmlFor || controlId;
|
|
@@ -6291,7 +6208,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6291
6208
|
);
|
|
6292
6209
|
});
|
|
6293
6210
|
FormLabel.displayName = 'FormLabel';
|
|
6294
|
-
FormLabel.defaultProps = defaultProps$
|
|
6211
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6295
6212
|
|
|
6296
6213
|
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
|
|
6297
6214
|
function (_ref, ref) {
|
|
@@ -6321,7 +6238,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6321
6238
|
Switch.Label = FormCheck.Label;
|
|
6322
6239
|
|
|
6323
6240
|
var FormRow = createWithBsPrefix('form-row');
|
|
6324
|
-
var defaultProps$
|
|
6241
|
+
var defaultProps$i = {
|
|
6325
6242
|
inline: false
|
|
6326
6243
|
};
|
|
6327
6244
|
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
@@ -6340,7 +6257,7 @@ var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
|
6340
6257
|
}));
|
|
6341
6258
|
});
|
|
6342
6259
|
FormImpl.displayName = 'Form';
|
|
6343
|
-
FormImpl.defaultProps = defaultProps$
|
|
6260
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6344
6261
|
FormImpl.Row = FormRow;
|
|
6345
6262
|
FormImpl.Group = FormGroup;
|
|
6346
6263
|
FormImpl.Control = FormControl$1;
|
|
@@ -6350,7 +6267,7 @@ FormImpl.Switch = Switch;
|
|
|
6350
6267
|
FormImpl.Label = FormLabel;
|
|
6351
6268
|
FormImpl.Text = FormText;
|
|
6352
6269
|
|
|
6353
|
-
var defaultProps$
|
|
6270
|
+
var defaultProps$j = {
|
|
6354
6271
|
fluid: false
|
|
6355
6272
|
};
|
|
6356
6273
|
var Container = React.forwardRef(function (_ref, ref) {
|
|
@@ -6370,9 +6287,9 @@ var Container = React.forwardRef(function (_ref, ref) {
|
|
|
6370
6287
|
}));
|
|
6371
6288
|
});
|
|
6372
6289
|
Container.displayName = 'Container';
|
|
6373
|
-
Container.defaultProps = defaultProps$
|
|
6290
|
+
Container.defaultProps = defaultProps$j;
|
|
6374
6291
|
|
|
6375
|
-
var propTypes$
|
|
6292
|
+
var propTypes$7 = {
|
|
6376
6293
|
/**
|
|
6377
6294
|
* @default 'img'
|
|
6378
6295
|
*/
|
|
@@ -6425,7 +6342,7 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6425
6342
|
Image.displayName = 'Image';
|
|
6426
6343
|
Image.defaultProps = defaultProps$k;
|
|
6427
6344
|
|
|
6428
|
-
var defaultProps$
|
|
6345
|
+
var defaultProps$l = {
|
|
6429
6346
|
fluid: true
|
|
6430
6347
|
};
|
|
6431
6348
|
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
@@ -6439,8 +6356,8 @@ var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
|
6439
6356
|
}));
|
|
6440
6357
|
});
|
|
6441
6358
|
FigureImage.displayName = 'FigureImage';
|
|
6442
|
-
FigureImage.propTypes = propTypes$
|
|
6443
|
-
FigureImage.defaultProps = defaultProps$
|
|
6359
|
+
FigureImage.propTypes = propTypes$7;
|
|
6360
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6444
6361
|
|
|
6445
6362
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6446
6363
|
Component: 'figcaption'
|
|
@@ -6495,7 +6412,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6495
6412
|
});
|
|
6496
6413
|
InputGroup.displayName = 'InputGroup';
|
|
6497
6414
|
|
|
6498
|
-
_extends({}, InputGroup, {
|
|
6415
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6499
6416
|
Text: InputGroupText,
|
|
6500
6417
|
Radio: InputGroupRadio,
|
|
6501
6418
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6503,7 +6420,7 @@ _extends({}, InputGroup, {
|
|
|
6503
6420
|
Prepend: InputGroupPrepend
|
|
6504
6421
|
});
|
|
6505
6422
|
|
|
6506
|
-
var defaultProps$
|
|
6423
|
+
var defaultProps$m = {
|
|
6507
6424
|
fluid: false
|
|
6508
6425
|
};
|
|
6509
6426
|
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
@@ -6524,13 +6441,13 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6524
6441
|
className: classnames(className, classes)
|
|
6525
6442
|
}));
|
|
6526
6443
|
});
|
|
6527
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6444
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6528
6445
|
Jumbotron.displayName = 'Jumbotron';
|
|
6529
6446
|
|
|
6530
6447
|
var TabContext = React.createContext(null);
|
|
6531
6448
|
|
|
6532
6449
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6533
|
-
var noop$
|
|
6450
|
+
var noop$4 = function noop() {};
|
|
6534
6451
|
|
|
6535
6452
|
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6536
6453
|
var _ref$as = _ref.as,
|
|
@@ -6620,8 +6537,8 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6620
6537
|
role: role,
|
|
6621
6538
|
// used by NavLink to determine it's role
|
|
6622
6539
|
activeKey: makeEventKey(activeKey),
|
|
6623
|
-
getControlledId: getControlledId || noop$
|
|
6624
|
-
getControllerId: getControllerId || noop$
|
|
6540
|
+
getControlledId: getControlledId || noop$4,
|
|
6541
|
+
getControllerId: getControllerId || noop$4
|
|
6625
6542
|
}
|
|
6626
6543
|
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6627
6544
|
onKeyDown: handleKeyDown,
|
|
@@ -6630,7 +6547,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6630
6547
|
}))));
|
|
6631
6548
|
});
|
|
6632
6549
|
|
|
6633
|
-
var defaultProps$
|
|
6550
|
+
var defaultProps$n = {
|
|
6634
6551
|
disabled: false
|
|
6635
6552
|
};
|
|
6636
6553
|
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
@@ -6676,9 +6593,9 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6676
6593
|
className: classnames(className, isActive && 'active')
|
|
6677
6594
|
}));
|
|
6678
6595
|
});
|
|
6679
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6596
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6680
6597
|
|
|
6681
|
-
var defaultProps$
|
|
6598
|
+
var defaultProps$o = {
|
|
6682
6599
|
variant: undefined,
|
|
6683
6600
|
active: false,
|
|
6684
6601
|
disabled: false
|
|
@@ -6708,18 +6625,17 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6708
6625
|
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6709
6626
|
ref: ref
|
|
6710
6627
|
}, props, {
|
|
6711
|
-
|
|
6712
|
-
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6628
|
+
eventKey: makeEventKey(eventKey || null, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6713
6629
|
,
|
|
6714
6630
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6715
6631
|
onClick: handleClick,
|
|
6716
6632
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6717
6633
|
}));
|
|
6718
6634
|
});
|
|
6719
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6635
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6720
6636
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6721
6637
|
|
|
6722
|
-
var defaultProps$
|
|
6638
|
+
var defaultProps$p = {
|
|
6723
6639
|
variant: undefined,
|
|
6724
6640
|
horizontal: undefined
|
|
6725
6641
|
};
|
|
@@ -6752,7 +6668,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6752
6668
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6753
6669
|
}));
|
|
6754
6670
|
});
|
|
6755
|
-
ListGroup.defaultProps = defaultProps$
|
|
6671
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6756
6672
|
ListGroup.displayName = 'ListGroup';
|
|
6757
6673
|
ListGroup.Item = ListGroupItem;
|
|
6758
6674
|
|
|
@@ -6801,7 +6717,7 @@ function scrollbarSize(recalc) {
|
|
|
6801
6717
|
|
|
6802
6718
|
function activeElement(doc) {
|
|
6803
6719
|
if (doc === void 0) {
|
|
6804
|
-
doc = ownerDocument
|
|
6720
|
+
doc = ownerDocument();
|
|
6805
6721
|
}
|
|
6806
6722
|
|
|
6807
6723
|
// Support: IE 9 only
|
|
@@ -6851,7 +6767,7 @@ function isBody(node) {
|
|
|
6851
6767
|
}
|
|
6852
6768
|
|
|
6853
6769
|
function bodyIsOverflowing(node) {
|
|
6854
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6770
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6855
6771
|
var win = isWindow(node) || doc.defaultView;
|
|
6856
6772
|
return doc.body.clientWidth < win.innerWidth;
|
|
6857
6773
|
}
|
|
@@ -7063,7 +6979,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7063
6979
|
var _ref;
|
|
7064
6980
|
|
|
7065
6981
|
if (typeof document === 'undefined') return null;
|
|
7066
|
-
if (ref == null) return ownerDocument
|
|
6982
|
+
if (ref == null) return ownerDocument().body;
|
|
7067
6983
|
if (typeof ref === 'function') ref = ref();
|
|
7068
6984
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7069
6985
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7096,11 +7012,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7096
7012
|
return resolvedRef;
|
|
7097
7013
|
}
|
|
7098
7014
|
|
|
7099
|
-
var manager
|
|
7015
|
+
var manager;
|
|
7100
7016
|
|
|
7101
7017
|
function getManager() {
|
|
7102
|
-
if (!manager
|
|
7103
|
-
return manager
|
|
7018
|
+
if (!manager) manager = new ModalManager();
|
|
7019
|
+
return manager;
|
|
7104
7020
|
}
|
|
7105
7021
|
|
|
7106
7022
|
function useModalManager(provided) {
|
|
@@ -7128,7 +7044,7 @@ function useModalManager(provided) {
|
|
|
7128
7044
|
});
|
|
7129
7045
|
}
|
|
7130
7046
|
|
|
7131
|
-
var Modal
|
|
7047
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7132
7048
|
var _ref$show = _ref.show,
|
|
7133
7049
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7134
7050
|
_ref$role = _ref.role,
|
|
@@ -7212,7 +7128,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7212
7128
|
if (autoFocus) {
|
|
7213
7129
|
var currentActiveElement = activeElement(document);
|
|
7214
7130
|
|
|
7215
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7131
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7216
7132
|
lastFocusRef.current = currentActiveElement;
|
|
7217
7133
|
modal.dialog.focus();
|
|
7218
7134
|
}
|
|
@@ -7258,7 +7174,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7258
7174
|
|
|
7259
7175
|
var currentActiveElement = activeElement();
|
|
7260
7176
|
|
|
7261
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7177
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7262
7178
|
modal.dialog.focus();
|
|
7263
7179
|
}
|
|
7264
7180
|
});
|
|
@@ -7349,7 +7265,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7349
7265
|
|
|
7350
7266
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7351
7267
|
});
|
|
7352
|
-
var propTypes$
|
|
7268
|
+
var propTypes$8 = {
|
|
7353
7269
|
/**
|
|
7354
7270
|
* Set the visibility of the Modal
|
|
7355
7271
|
*/
|
|
@@ -7505,9 +7421,9 @@ var propTypes$2 = {
|
|
|
7505
7421
|
*/
|
|
7506
7422
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7507
7423
|
};
|
|
7508
|
-
Modal
|
|
7509
|
-
Modal
|
|
7510
|
-
var BaseModal = Object.assign(Modal
|
|
7424
|
+
Modal.displayName = 'Modal';
|
|
7425
|
+
Modal.propTypes = propTypes$8;
|
|
7426
|
+
var BaseModal = Object.assign(Modal, {
|
|
7511
7427
|
Manager: ModalManager
|
|
7512
7428
|
});
|
|
7513
7429
|
|
|
@@ -7594,12 +7510,11 @@ var ModalContext = React.createContext({
|
|
|
7594
7510
|
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7595
7511
|
var bsPrefix = _ref.bsPrefix,
|
|
7596
7512
|
className = _ref.className,
|
|
7597
|
-
contentClassName = _ref.contentClassName,
|
|
7598
7513
|
centered = _ref.centered,
|
|
7599
7514
|
size = _ref.size,
|
|
7600
7515
|
children = _ref.children,
|
|
7601
7516
|
scrollable = _ref.scrollable,
|
|
7602
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
7517
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7603
7518
|
|
|
7604
7519
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7605
7520
|
var dialogClass = bsPrefix + "-dialog";
|
|
@@ -7607,14 +7522,14 @@ var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
|
7607
7522
|
ref: ref,
|
|
7608
7523
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7609
7524
|
}), /*#__PURE__*/React.createElement("div", {
|
|
7610
|
-
className:
|
|
7525
|
+
className: bsPrefix + "-content"
|
|
7611
7526
|
}, children));
|
|
7612
7527
|
});
|
|
7613
7528
|
ModalDialog.displayName = 'ModalDialog';
|
|
7614
7529
|
|
|
7615
7530
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7616
7531
|
|
|
7617
|
-
var defaultProps$
|
|
7532
|
+
var defaultProps$q = {
|
|
7618
7533
|
closeLabel: 'Close',
|
|
7619
7534
|
closeButton: false
|
|
7620
7535
|
};
|
|
@@ -7643,15 +7558,15 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7643
7558
|
}));
|
|
7644
7559
|
});
|
|
7645
7560
|
ModalHeader.displayName = 'ModalHeader';
|
|
7646
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7561
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7647
7562
|
|
|
7648
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7563
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7649
7564
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7650
|
-
Component: DivStyledAsH4
|
|
7565
|
+
Component: DivStyledAsH4$1
|
|
7651
7566
|
});
|
|
7652
7567
|
|
|
7653
|
-
var manager;
|
|
7654
|
-
var defaultProps$
|
|
7568
|
+
var manager$1;
|
|
7569
|
+
var defaultProps$r = {
|
|
7655
7570
|
show: false,
|
|
7656
7571
|
backdrop: true,
|
|
7657
7572
|
keyboard: true,
|
|
@@ -7673,12 +7588,11 @@ function BackdropTransition(props) {
|
|
|
7673
7588
|
/* eslint-enable no-use-before-define */
|
|
7674
7589
|
|
|
7675
7590
|
|
|
7676
|
-
var Modal = React.forwardRef(function (_ref, ref) {
|
|
7591
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7677
7592
|
var bsPrefix = _ref.bsPrefix,
|
|
7678
7593
|
className = _ref.className,
|
|
7679
7594
|
style = _ref.style,
|
|
7680
7595
|
dialogClassName = _ref.dialogClassName,
|
|
7681
|
-
contentClassName = _ref.contentClassName,
|
|
7682
7596
|
children = _ref.children,
|
|
7683
7597
|
Dialog = _ref.dialogAs,
|
|
7684
7598
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7702,7 +7616,7 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7702
7616
|
onExited = _ref.onExited,
|
|
7703
7617
|
backdropClassName = _ref.backdropClassName,
|
|
7704
7618
|
propsManager = _ref.manager,
|
|
7705
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "
|
|
7619
|
+
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"]);
|
|
7706
7620
|
|
|
7707
7621
|
var _useState = useState({}),
|
|
7708
7622
|
modalStyle = _useState[0],
|
|
@@ -7739,14 +7653,14 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7739
7653
|
|
|
7740
7654
|
function getModalManager() {
|
|
7741
7655
|
if (propsManager) return propsManager;
|
|
7742
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7743
|
-
return manager;
|
|
7656
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7657
|
+
return manager$1;
|
|
7744
7658
|
}
|
|
7745
7659
|
|
|
7746
7660
|
function updateDialogStyle(node) {
|
|
7747
7661
|
if (!canUseDOM) return;
|
|
7748
7662
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7749
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7663
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7750
7664
|
setStyle({
|
|
7751
7665
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7752
7666
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7892,8 +7806,7 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7892
7806
|
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7893
7807
|
role: "document",
|
|
7894
7808
|
onMouseDown: handleDialogMouseDown,
|
|
7895
|
-
className: dialogClassName
|
|
7896
|
-
contentClassName: contentClassName
|
|
7809
|
+
className: dialogClassName
|
|
7897
7810
|
}), children));
|
|
7898
7811
|
};
|
|
7899
7812
|
|
|
@@ -7927,15 +7840,15 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7927
7840
|
renderDialog: renderDialog
|
|
7928
7841
|
}));
|
|
7929
7842
|
});
|
|
7930
|
-
Modal.displayName = 'Modal';
|
|
7931
|
-
Modal.defaultProps = defaultProps$
|
|
7932
|
-
Modal.Body = ModalBody;
|
|
7933
|
-
Modal.Header = ModalHeader;
|
|
7934
|
-
Modal.Title = ModalTitle;
|
|
7935
|
-
Modal.Footer = ModalFooter;
|
|
7936
|
-
Modal.Dialog = ModalDialog;
|
|
7937
|
-
Modal.TRANSITION_DURATION = 300;
|
|
7938
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7843
|
+
Modal$1.displayName = 'Modal';
|
|
7844
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7845
|
+
Modal$1.Body = ModalBody;
|
|
7846
|
+
Modal$1.Header = ModalHeader;
|
|
7847
|
+
Modal$1.Title = ModalTitle;
|
|
7848
|
+
Modal$1.Footer = ModalFooter;
|
|
7849
|
+
Modal$1.Dialog = ModalDialog;
|
|
7850
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7851
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7939
7852
|
|
|
7940
7853
|
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
|
|
7941
7854
|
function (_ref, ref) {
|
|
@@ -7954,7 +7867,7 @@ function (_ref, ref) {
|
|
|
7954
7867
|
});
|
|
7955
7868
|
NavItem.displayName = 'NavItem';
|
|
7956
7869
|
|
|
7957
|
-
var defaultProps$
|
|
7870
|
+
var defaultProps$s = {
|
|
7958
7871
|
disabled: false,
|
|
7959
7872
|
as: SafeAnchor
|
|
7960
7873
|
};
|
|
@@ -7980,9 +7893,9 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7980
7893
|
}));
|
|
7981
7894
|
});
|
|
7982
7895
|
NavLink.displayName = 'NavLink';
|
|
7983
|
-
NavLink.defaultProps = defaultProps$
|
|
7896
|
+
NavLink.defaultProps = defaultProps$s;
|
|
7984
7897
|
|
|
7985
|
-
var defaultProps$
|
|
7898
|
+
var defaultProps$t = {
|
|
7986
7899
|
justify: false,
|
|
7987
7900
|
fill: false
|
|
7988
7901
|
};
|
|
@@ -8008,7 +7921,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8008
7921
|
var navbarBsPrefix;
|
|
8009
7922
|
var cardHeaderBsPrefix;
|
|
8010
7923
|
var isNavbar = false;
|
|
8011
|
-
var navbarContext = useContext(context);
|
|
7924
|
+
var navbarContext = useContext(context$2);
|
|
8012
7925
|
var cardContext = useContext(context$1);
|
|
8013
7926
|
|
|
8014
7927
|
if (navbarContext) {
|
|
@@ -8026,7 +7939,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8026
7939
|
}, props), children);
|
|
8027
7940
|
});
|
|
8028
7941
|
Nav.displayName = 'Nav';
|
|
8029
|
-
Nav.defaultProps = defaultProps$
|
|
7942
|
+
Nav.defaultProps = defaultProps$t;
|
|
8030
7943
|
Nav.Item = NavItem;
|
|
8031
7944
|
Nav.Link = NavLink;
|
|
8032
7945
|
|
|
@@ -8051,7 +7964,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8051
7964
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8052
7965
|
|
|
8053
7966
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8054
|
-
return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
|
|
7967
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8055
7968
|
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8056
7969
|
in: !!(context && context.expanded)
|
|
8057
7970
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
@@ -8062,7 +7975,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8062
7975
|
});
|
|
8063
7976
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8064
7977
|
|
|
8065
|
-
var defaultProps$
|
|
7978
|
+
var defaultProps$u = {
|
|
8066
7979
|
label: 'Toggle navigation'
|
|
8067
7980
|
};
|
|
8068
7981
|
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
@@ -8077,7 +7990,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8077
7990
|
|
|
8078
7991
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8079
7992
|
|
|
8080
|
-
var _ref2 = useContext(context) || {},
|
|
7993
|
+
var _ref2 = useContext(context$2) || {},
|
|
8081
7994
|
onToggle = _ref2.onToggle,
|
|
8082
7995
|
expanded = _ref2.expanded;
|
|
8083
7996
|
|
|
@@ -8100,12 +8013,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8100
8013
|
}));
|
|
8101
8014
|
});
|
|
8102
8015
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8103
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8016
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8104
8017
|
|
|
8105
8018
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8106
8019
|
Component: 'span'
|
|
8107
8020
|
});
|
|
8108
|
-
var defaultProps$
|
|
8021
|
+
var defaultProps$v = {
|
|
8109
8022
|
expand: true,
|
|
8110
8023
|
variant: 'light',
|
|
8111
8024
|
collapseOnSelect: false
|
|
@@ -8158,7 +8071,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8158
8071
|
expanded: !!expanded
|
|
8159
8072
|
};
|
|
8160
8073
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8161
|
-
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
8074
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8162
8075
|
value: navbarContext
|
|
8163
8076
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8164
8077
|
value: handleCollapse
|
|
@@ -8168,14 +8081,14 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8168
8081
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8169
8082
|
}), children)));
|
|
8170
8083
|
});
|
|
8171
|
-
Navbar.defaultProps = defaultProps$
|
|
8084
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8172
8085
|
Navbar.displayName = 'Navbar';
|
|
8173
8086
|
Navbar.Brand = NavbarBrand;
|
|
8174
8087
|
Navbar.Toggle = NavbarToggle;
|
|
8175
8088
|
Navbar.Collapse = NavbarCollapse;
|
|
8176
8089
|
Navbar.Text = NavbarText;
|
|
8177
8090
|
|
|
8178
|
-
var propTypes$
|
|
8091
|
+
var propTypes$9 = {
|
|
8179
8092
|
/**
|
|
8180
8093
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8181
8094
|
* @type {string|number}
|
|
@@ -8223,29 +8136,29 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8223
8136
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8224
8137
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8225
8138
|
|
|
8226
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8139
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8227
8140
|
ref: ref
|
|
8228
8141
|
}, props, {
|
|
8229
8142
|
as: NavItem
|
|
8230
|
-
}), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8143
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8231
8144
|
id: id,
|
|
8232
8145
|
eventKey: null,
|
|
8233
8146
|
active: active,
|
|
8234
8147
|
disabled: disabled,
|
|
8235
8148
|
childBsPrefix: bsPrefix,
|
|
8236
8149
|
as: NavLink
|
|
8237
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8150
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8238
8151
|
role: menuRole,
|
|
8239
8152
|
renderOnMount: renderMenuOnMount,
|
|
8240
8153
|
rootCloseEvent: rootCloseEvent
|
|
8241
8154
|
}, children));
|
|
8242
8155
|
});
|
|
8243
8156
|
NavDropdown.displayName = 'NavDropdown';
|
|
8244
|
-
NavDropdown.propTypes = propTypes$
|
|
8245
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8246
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8247
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8248
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8157
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8158
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8159
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8160
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8161
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8249
8162
|
|
|
8250
8163
|
/**
|
|
8251
8164
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8486,7 +8399,7 @@ Overlay.propTypes = {
|
|
|
8486
8399
|
onExited: PropTypes.func
|
|
8487
8400
|
};
|
|
8488
8401
|
|
|
8489
|
-
/*#__PURE__*/
|
|
8402
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8490
8403
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8491
8404
|
|
|
8492
8405
|
function RefHolder() {
|
|
@@ -8500,9 +8413,9 @@ Overlay.propTypes = {
|
|
|
8500
8413
|
};
|
|
8501
8414
|
|
|
8502
8415
|
return RefHolder;
|
|
8503
|
-
}
|
|
8416
|
+
}(React.Component);
|
|
8504
8417
|
|
|
8505
|
-
var defaultProps$
|
|
8418
|
+
var defaultProps$w = {
|
|
8506
8419
|
active: false,
|
|
8507
8420
|
disabled: false,
|
|
8508
8421
|
activeLabel: '(current)'
|
|
@@ -8531,7 +8444,7 @@ var PageItem = React.forwardRef(function (_ref, ref) {
|
|
|
8531
8444
|
className: "sr-only"
|
|
8532
8445
|
}, activeLabel)));
|
|
8533
8446
|
});
|
|
8534
|
-
PageItem.defaultProps = defaultProps$
|
|
8447
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8535
8448
|
PageItem.displayName = 'PageItem';
|
|
8536
8449
|
|
|
8537
8450
|
function createButton(name, defaultValue, label) {
|
|
@@ -8621,7 +8534,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8621
8534
|
}), children);
|
|
8622
8535
|
});
|
|
8623
8536
|
|
|
8624
|
-
var defaultProps$
|
|
8537
|
+
var defaultProps$x = {
|
|
8625
8538
|
placement: 'right'
|
|
8626
8539
|
};
|
|
8627
8540
|
var Popover = React.forwardRef(function (_ref, ref) {
|
|
@@ -8631,10 +8544,10 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8631
8544
|
style = _ref.style,
|
|
8632
8545
|
children = _ref.children,
|
|
8633
8546
|
content = _ref.content,
|
|
8634
|
-
arrowProps = _ref.arrowProps
|
|
8635
|
-
_ref.popper
|
|
8636
|
-
_ref.show
|
|
8637
|
-
|
|
8547
|
+
arrowProps = _ref.arrowProps,
|
|
8548
|
+
_ = _ref.popper,
|
|
8549
|
+
_1 = _ref.show,
|
|
8550
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8638
8551
|
|
|
8639
8552
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8640
8553
|
|
|
@@ -8651,13 +8564,13 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8651
8564
|
className: "arrow"
|
|
8652
8565
|
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8653
8566
|
});
|
|
8654
|
-
Popover.defaultProps = defaultProps$
|
|
8567
|
+
Popover.defaultProps = defaultProps$x;
|
|
8655
8568
|
Popover.Title = PopoverTitle;
|
|
8656
8569
|
Popover.Content = PopoverContent;
|
|
8657
8570
|
|
|
8658
8571
|
var ROUND_PRECISION = 1000;
|
|
8659
8572
|
|
|
8660
|
-
var defaultProps$
|
|
8573
|
+
var defaultProps$y = {
|
|
8661
8574
|
min: 0,
|
|
8662
8575
|
max: 100,
|
|
8663
8576
|
animated: false,
|
|
@@ -8747,9 +8660,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8747
8660
|
}, ref));
|
|
8748
8661
|
});
|
|
8749
8662
|
ProgressBar.displayName = 'ProgressBar';
|
|
8750
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8663
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8751
8664
|
|
|
8752
|
-
var defaultProps$
|
|
8665
|
+
var defaultProps$z = {
|
|
8753
8666
|
aspectRatio: '1by1'
|
|
8754
8667
|
};
|
|
8755
8668
|
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
@@ -8769,10 +8682,10 @@ var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
|
8769
8682
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8770
8683
|
}));
|
|
8771
8684
|
});
|
|
8772
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8685
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8773
8686
|
|
|
8774
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8775
|
-
var defaultProps$
|
|
8687
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8688
|
+
var defaultProps$A = {
|
|
8776
8689
|
noGutters: false
|
|
8777
8690
|
};
|
|
8778
8691
|
var Row = React.forwardRef(function (_ref, ref) {
|
|
@@ -8786,7 +8699,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8786
8699
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8787
8700
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8788
8701
|
var classes = [];
|
|
8789
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8702
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8790
8703
|
var propValue = props[brkPoint];
|
|
8791
8704
|
delete props[brkPoint];
|
|
8792
8705
|
var cols;
|
|
@@ -8807,7 +8720,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8807
8720
|
}));
|
|
8808
8721
|
});
|
|
8809
8722
|
Row.displayName = 'Row';
|
|
8810
|
-
Row.defaultProps = defaultProps$
|
|
8723
|
+
Row.defaultProps = defaultProps$A;
|
|
8811
8724
|
|
|
8812
8725
|
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8813
8726
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8830,7 +8743,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8830
8743
|
});
|
|
8831
8744
|
Spinner.displayName = 'Spinner';
|
|
8832
8745
|
|
|
8833
|
-
var propTypes = {
|
|
8746
|
+
var propTypes$a = {
|
|
8834
8747
|
/**
|
|
8835
8748
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8836
8749
|
* @type {string|number}
|
|
@@ -8861,15 +8774,6 @@ var propTypes = {
|
|
|
8861
8774
|
/** Disables both Buttons */
|
|
8862
8775
|
disabled: PropTypes.bool,
|
|
8863
8776
|
|
|
8864
|
-
/**
|
|
8865
|
-
* Aligns the dropdown menu responsively.
|
|
8866
|
-
*
|
|
8867
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8868
|
-
*
|
|
8869
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8870
|
-
*/
|
|
8871
|
-
menuAlign: alignPropType,
|
|
8872
|
-
|
|
8873
8777
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8874
8778
|
menuRole: PropTypes.string,
|
|
8875
8779
|
|
|
@@ -8879,7 +8783,7 @@ var propTypes = {
|
|
|
8879
8783
|
/**
|
|
8880
8784
|
* Which event when fired outside the component will cause it to be closed.
|
|
8881
8785
|
*
|
|
8882
|
-
* _see [DropdownMenu](#
|
|
8786
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
8883
8787
|
*/
|
|
8884
8788
|
rootCloseEvent: PropTypes.string,
|
|
8885
8789
|
|
|
@@ -8892,7 +8796,7 @@ var propTypes = {
|
|
|
8892
8796
|
/** @ignore */
|
|
8893
8797
|
size: PropTypes.string
|
|
8894
8798
|
};
|
|
8895
|
-
var defaultProps$
|
|
8799
|
+
var defaultProps$B = {
|
|
8896
8800
|
toggleLabel: 'Toggle dropdown',
|
|
8897
8801
|
type: 'button'
|
|
8898
8802
|
};
|
|
@@ -8908,13 +8812,12 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8908
8812
|
onClick = _ref.onClick,
|
|
8909
8813
|
href = _ref.href,
|
|
8910
8814
|
target = _ref.target,
|
|
8911
|
-
menuAlign = _ref.menuAlign,
|
|
8912
8815
|
menuRole = _ref.menuRole,
|
|
8913
8816
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8914
8817
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8915
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "
|
|
8818
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8916
8819
|
|
|
8917
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8820
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8918
8821
|
ref: ref
|
|
8919
8822
|
}, props, {
|
|
8920
8823
|
as: ButtonGroup
|
|
@@ -8927,7 +8830,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8927
8830
|
target: target,
|
|
8928
8831
|
onClick: onClick,
|
|
8929
8832
|
type: type
|
|
8930
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8833
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8931
8834
|
split: true,
|
|
8932
8835
|
id: id ? id.toString() : undefined,
|
|
8933
8836
|
size: size,
|
|
@@ -8936,15 +8839,14 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8936
8839
|
childBsPrefix: bsPrefix
|
|
8937
8840
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8938
8841
|
className: "sr-only"
|
|
8939
|
-
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8940
|
-
align: menuAlign,
|
|
8842
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8941
8843
|
role: menuRole,
|
|
8942
8844
|
renderOnMount: renderMenuOnMount,
|
|
8943
8845
|
rootCloseEvent: rootCloseEvent
|
|
8944
8846
|
}, children));
|
|
8945
8847
|
});
|
|
8946
|
-
SplitButton.propTypes = propTypes;
|
|
8947
|
-
SplitButton.defaultProps = defaultProps$
|
|
8848
|
+
SplitButton.propTypes = propTypes$a;
|
|
8849
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
8948
8850
|
SplitButton.displayName = 'SplitButton';
|
|
8949
8851
|
|
|
8950
8852
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9038,9 +8940,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9038
8940
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9039
8941
|
Transition = _useTabContext.transition,
|
|
9040
8942
|
_useTabContext$as = _useTabContext.as,
|
|
9041
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9042
|
-
_useTabContext.eventKey
|
|
9043
|
-
|
|
8943
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8944
|
+
_ = _useTabContext.eventKey,
|
|
8945
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9044
8946
|
|
|
9045
8947
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9046
8948
|
if (!active && !Transition && unmountOnExit) return null;
|
|
@@ -9094,7 +8996,7 @@ Tab.Container = TabContainer;
|
|
|
9094
8996
|
Tab.Content = TabContent;
|
|
9095
8997
|
Tab.Pane = TabPane;
|
|
9096
8998
|
|
|
9097
|
-
React.forwardRef(function (_ref, ref) {
|
|
8999
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9098
9000
|
var bsPrefix = _ref.bsPrefix,
|
|
9099
9001
|
className = _ref.className,
|
|
9100
9002
|
striped = _ref.striped,
|
|
@@ -9133,7 +9035,7 @@ var ToastContext = React.createContext({
|
|
|
9133
9035
|
onClose: function onClose() {}
|
|
9134
9036
|
});
|
|
9135
9037
|
|
|
9136
|
-
var defaultProps$
|
|
9038
|
+
var defaultProps$C = {
|
|
9137
9039
|
closeLabel: 'Close',
|
|
9138
9040
|
closeButton: true
|
|
9139
9041
|
};
|
|
@@ -9164,7 +9066,7 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9164
9066
|
}));
|
|
9165
9067
|
});
|
|
9166
9068
|
ToastHeader.displayName = 'ToastHeader';
|
|
9167
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9069
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9168
9070
|
|
|
9169
9071
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9170
9072
|
|
|
@@ -9231,7 +9133,7 @@ Object.assign(Toast, {
|
|
|
9231
9133
|
Header: ToastHeader
|
|
9232
9134
|
});
|
|
9233
9135
|
|
|
9234
|
-
var noop = function noop() {
|
|
9136
|
+
var noop$5 = function noop() {
|
|
9235
9137
|
return undefined;
|
|
9236
9138
|
};
|
|
9237
9139
|
|
|
@@ -9273,14 +9175,13 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9273
9175
|
disabled: !!disabled,
|
|
9274
9176
|
onFocus: handleFocus,
|
|
9275
9177
|
onBlur: handleBlur,
|
|
9276
|
-
onChange: onChange || noop
|
|
9178
|
+
onChange: onChange || noop$5
|
|
9277
9179
|
}), children);
|
|
9278
9180
|
});
|
|
9279
9181
|
ToggleButton.displayName = 'ToggleButton';
|
|
9280
9182
|
|
|
9281
|
-
var defaultProps$
|
|
9282
|
-
type: 'radio'
|
|
9283
|
-
vertical: false
|
|
9183
|
+
var defaultProps$D = {
|
|
9184
|
+
type: 'radio'
|
|
9284
9185
|
};
|
|
9285
9186
|
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9286
9187
|
var _useUncontrolled = useUncontrolled(props, {
|
|
@@ -9341,10 +9242,10 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9341
9242
|
});
|
|
9342
9243
|
}));
|
|
9343
9244
|
});
|
|
9344
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9245
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9345
9246
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9346
9247
|
|
|
9347
|
-
var defaultProps = {
|
|
9248
|
+
var defaultProps$E = {
|
|
9348
9249
|
placement: 'right'
|
|
9349
9250
|
};
|
|
9350
9251
|
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
@@ -9353,10 +9254,10 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9353
9254
|
className = _ref.className,
|
|
9354
9255
|
style = _ref.style,
|
|
9355
9256
|
children = _ref.children,
|
|
9356
|
-
arrowProps = _ref.arrowProps
|
|
9357
|
-
_ref.popper
|
|
9358
|
-
_ref.show
|
|
9359
|
-
|
|
9257
|
+
arrowProps = _ref.arrowProps,
|
|
9258
|
+
_ = _ref.popper,
|
|
9259
|
+
_2 = _ref.show,
|
|
9260
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9360
9261
|
|
|
9361
9262
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9362
9263
|
|
|
@@ -9375,7 +9276,7 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9375
9276
|
className: bsPrefix + "-inner"
|
|
9376
9277
|
}, children));
|
|
9377
9278
|
});
|
|
9378
|
-
Tooltip.defaultProps = defaultProps;
|
|
9279
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9379
9280
|
Tooltip.displayName = 'Tooltip';
|
|
9380
9281
|
|
|
9381
9282
|
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";
|
|
@@ -9540,7 +9441,7 @@ var Filter = function Filter(_ref) {
|
|
|
9540
9441
|
DropdownButton,
|
|
9541
9442
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9542
9443
|
React.createElement(
|
|
9543
|
-
Dropdown.Item,
|
|
9444
|
+
Dropdown$1.Item,
|
|
9544
9445
|
{ onSelect: function onSelect() {
|
|
9545
9446
|
return handleFilterSelect({}, 'parent');
|
|
9546
9447
|
} },
|
|
@@ -9549,7 +9450,7 @@ var Filter = function Filter(_ref) {
|
|
|
9549
9450
|
parentData.data.map(function (docGroup) {
|
|
9550
9451
|
if (!docGroup._id) return null;
|
|
9551
9452
|
return React.createElement(
|
|
9552
|
-
Dropdown.Item,
|
|
9453
|
+
Dropdown$1.Item,
|
|
9553
9454
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9554
9455
|
return handleFilterSelect(docGroup, 'parent');
|
|
9555
9456
|
} },
|
|
@@ -9561,7 +9462,7 @@ var Filter = function Filter(_ref) {
|
|
|
9561
9462
|
DropdownButton,
|
|
9562
9463
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9563
9464
|
React.createElement(
|
|
9564
|
-
Dropdown.Item,
|
|
9465
|
+
Dropdown$1.Item,
|
|
9565
9466
|
{ onSelect: function onSelect() {
|
|
9566
9467
|
return handleFilterSelect({}, 'child');
|
|
9567
9468
|
} },
|
|
@@ -9570,7 +9471,7 @@ var Filter = function Filter(_ref) {
|
|
|
9570
9471
|
childData.data.map(function (docGroup) {
|
|
9571
9472
|
if (!docGroup._id) return null;
|
|
9572
9473
|
return React.createElement(
|
|
9573
|
-
Dropdown.Item,
|
|
9474
|
+
Dropdown$1.Item,
|
|
9574
9475
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9575
9476
|
return handleFilterSelect(docGroup, 'child');
|
|
9576
9477
|
} },
|
|
@@ -9582,7 +9483,7 @@ var Filter = function Filter(_ref) {
|
|
|
9582
9483
|
DropdownButton,
|
|
9583
9484
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9584
9485
|
React.createElement(
|
|
9585
|
-
Dropdown.Item,
|
|
9486
|
+
Dropdown$1.Item,
|
|
9586
9487
|
{ onSelect: function onSelect() {
|
|
9587
9488
|
return handleFilterSelect({}, 'grandchild');
|
|
9588
9489
|
} },
|
|
@@ -9591,7 +9492,7 @@ var Filter = function Filter(_ref) {
|
|
|
9591
9492
|
grandChildData.data.map(function (docGroup) {
|
|
9592
9493
|
if (!docGroup._id) return null;
|
|
9593
9494
|
return React.createElement(
|
|
9594
|
-
Dropdown.Item,
|
|
9495
|
+
Dropdown$1.Item,
|
|
9595
9496
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9596
9497
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9597
9498
|
} },
|
|
@@ -9749,12 +9650,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9749
9650
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9750
9651
|
var _ref4;
|
|
9751
9652
|
|
|
9752
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9653
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9753
9654
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9754
9655
|
while (1) {
|
|
9755
9656
|
switch (_context2.prev = _context2.next) {
|
|
9756
9657
|
case 0:
|
|
9757
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9658
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9758
9659
|
identifier = pathname.replace('/', '');
|
|
9759
9660
|
itemsPerPage = 10;
|
|
9760
9661
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|