@mjhls/mjh-framework 1.0.790 → 1.0.791-auth-test
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 +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +15 -15
- package/dist/cjs/AD300x250x600.js +15 -15
- package/dist/cjs/AD728x90.js +16 -16
- package/dist/cjs/ADFloatingFooter.js +14 -14
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +14 -14
- package/dist/cjs/{ADInfeed-1e53d7db.js → ADInfeed-e7aecdf9.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +14 -14
- package/dist/cjs/ADSponsoredResources.js +14 -14
- package/dist/cjs/ADWebcast.js +14 -14
- package/dist/cjs/ADWelcome.js +14 -14
- package/dist/cjs/{ADlgInfeed-2494fd17.js → ADlgInfeed-0941023e.js} +1 -1
- package/dist/cjs/AccordionPanel.js +5 -5
- package/dist/cjs/AdSlot.js +16 -16
- package/dist/cjs/AdSlotsProvider.js +10 -10
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +11 -11
- package/dist/cjs/ArticleProgramLandingPage.js +25 -25
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +17 -17
- package/dist/cjs/Auth.js +206 -468
- package/dist/cjs/AuthWrapper.js +2948 -0
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +11 -11
- package/dist/cjs/Column3.js +20 -20
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +21 -21
- package/dist/cjs/{Dfp-6d140494.js → Dfp-3f0ed4c8.js} +8 -8
- package/dist/cjs/EventsDeck.js +36 -36
- package/dist/cjs/ExternalResources.js +26 -26
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +7 -7
- package/dist/cjs/GridContent.js +30 -30
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +9 -9
- package/dist/cjs/HamMagazine.js +21 -21
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +25 -25
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +7 -7
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +49 -49
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +14 -14
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +409 -400
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +21 -21
- package/dist/cjs/NavNative.js +26 -26
- package/dist/cjs/NavNormal.js +7 -7
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +29 -29
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +49 -49
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +12 -12
- package/dist/cjs/{SeriesSlider-49577417.js → SeriesSlider-c022ce04.js} +12 -12
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-31afe61f.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +5 -5
- package/dist/cjs/TaxonomyDescription.js +25 -25
- package/dist/cjs/TemplateNormal.js +19 -19
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +7 -7
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +25 -25
- package/dist/cjs/VideoSeriesCard.js +8 -8
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +24 -24
- package/dist/cjs/VideoSeriesListing.js +17 -17
- package/dist/cjs/View.js +40 -40
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +19 -19
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-6128bd56.js} +1 -1
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-821a2927.js → _to-object-6de10e57.js} +4 -4
- package/dist/cjs/{asyncToGenerator-b6a175bf.js → asyncToGenerator-58c289d9.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/empty-7d04c64b.js +5 -0
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-c2573ffd.js} +5 -5
- package/dist/cjs/{extends-1e24fc8d.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/faundadb.js +1637 -0
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +11 -9
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -25
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-45b91c88.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-d450e2d5.js → index-d9eab30b.js} +341 -92
- package/dist/cjs/{index-d48b231c.js → index-efca863c.js} +5 -5
- package/dist/cjs/{index-4d74ffd6.js → index-f86bb269.js} +4 -4
- package/dist/cjs/index.js +37 -37
- package/dist/cjs/{inherits-2eb23889.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/inheritsLoose-b17eb2a8.js +18 -0
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-f0783643.js} +57 -9
- package/dist/cjs/{main-dc082238.js → main-025fdc78.js} +184 -109
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-97065d40.js → typeof-88a668c5.js} +34 -34
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-46657b5c.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +15 -15
- package/dist/esm/AD300x250x600.js +15 -15
- package/dist/esm/AD728x90.js +16 -16
- package/dist/esm/ADFloatingFooter.js +14 -14
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +14 -14
- package/dist/esm/{ADInfeed-94817c40.js → ADInfeed-e1e18f87.js} +1 -1
- package/dist/esm/ADSkyscraper.js +14 -14
- package/dist/esm/ADSponsoredResources.js +14 -14
- package/dist/esm/ADWebcast.js +14 -14
- package/dist/esm/ADWelcome.js +14 -14
- package/dist/esm/{ADlgInfeed-6124ee3c.js → ADlgInfeed-c6d2831b.js} +1 -1
- package/dist/esm/AccordionPanel.js +5 -5
- package/dist/esm/AdSlot.js +16 -16
- package/dist/esm/AdSlotsProvider.js +10 -10
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +11 -11
- package/dist/esm/ArticleProgramLandingPage.js +25 -25
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +17 -17
- package/dist/esm/Auth.js +207 -469
- package/dist/esm/AuthWrapper.js +2942 -0
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-5ae7409f.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-52cf21c5.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +20 -20
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +21 -21
- package/dist/esm/{Dfp-313e4ebe.js → Dfp-a304d96c.js} +8 -8
- package/dist/esm/EventsDeck.js +36 -36
- package/dist/esm/ExternalResources.js +26 -26
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +7 -7
- package/dist/esm/GridContent.js +30 -30
- package/dist/esm/GridHero.js +7 -7
- package/dist/esm/GroupDeck.js +9 -9
- package/dist/esm/HamMagazine.js +21 -21
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +25 -25
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +7 -7
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +49 -49
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +14 -14
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +405 -396
- package/dist/esm/NavDvm.js +7 -7
- package/dist/esm/NavMagazine.js +21 -21
- package/dist/esm/NavNative.js +26 -26
- package/dist/esm/NavNormal.js +7 -7
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +7 -7
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +29 -29
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +20 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +22 -22
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-291e1c9e.js → SeriesSlider-8414085b.js} +12 -12
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-116b1d5d.js} +6 -6
- package/dist/esm/TaxonomyCard.js +5 -5
- package/dist/esm/TaxonomyDescription.js +25 -25
- package/dist/esm/TemplateNormal.js +19 -19
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +7 -7
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +25 -25
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +17 -17
- package/dist/esm/View.js +40 -40
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +19 -19
- package/dist/esm/{_is-array-674f71ec.js → _is-array-3e99e06e.js} +1 -1
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-97770c52.js → _to-object-b50e61c3.js} +4 -4
- package/dist/esm/{asyncToGenerator-585841c0.js → asyncToGenerator-7f8f9219.js} +30 -30
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/empty-81a1dbdc.js +3 -0
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-bc33758b.js} +5 -5
- package/dist/esm/{extends-31d65aba.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/faundadb.js +1631 -0
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -9
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -25
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-d0d71a56.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-3f5c03b2.js → index-0dbff1d1.js} +5 -5
- package/dist/esm/{index-f4fe5a50.js → index-20026f92.js} +340 -90
- package/dist/esm/{index-ccb770c7.js → index-79cfd25c.js} +4 -4
- package/dist/esm/index.js +37 -37
- package/dist/esm/{inherits-5906fbea.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/inheritsLoose-8f901617.js +16 -0
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-a0b0c7a4.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ad27652f.js → lodash-f97fd99a.js} +57 -9
- package/dist/esm/{main-1450d277.js → main-b5c5aac1.js} +178 -103
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-e9cea9e8.js → typeof-a286cf0c.js} +34 -34
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4109ff68.js} +2 -2
- package/package.json +111 -108
- package/dist/cjs/keys-95c064c9.js +0 -25
- package/dist/cjs/stringify-01cf47f7.js +0 -17
- package/dist/esm/stringify-d4839bab.js +0 -15
|
@@ -1,68 +1,69 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
3
|
-
import { _ as _extends$1 } from './extends-
|
|
4
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
+
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
4
|
+
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
5
5
|
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
6
6
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
+
import { _ as _inheritsLoose } from './inheritsLoose-8f901617.js';
|
|
7
8
|
import PropTypes from 'prop-types';
|
|
8
9
|
import ReactDOM from 'react-dom';
|
|
9
10
|
import Link from 'next/link';
|
|
10
11
|
import './iconBase-602d52fe.js';
|
|
11
12
|
import MasterDeck from './MasterDeck.js';
|
|
12
|
-
import { _ as _typeof } from './typeof-
|
|
13
|
+
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
13
14
|
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
|
-
import { i as imageUrlBuilder } from './index-
|
|
15
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
15
16
|
import { m as moment } from './moment-bc12cb97.js';
|
|
16
17
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
-
import { B as BlockContent } from './BlockContent-
|
|
18
|
-
import { g as getSerializers } from './index-
|
|
19
|
-
import './define-property-
|
|
20
|
-
import './_to-object-
|
|
21
|
-
import './es6.string.iterator-
|
|
22
|
-
import './web.dom.iterable-
|
|
18
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
19
|
+
import { g as getSerializers } from './index-20026f92.js';
|
|
20
|
+
import './define-property-fe54dc9f.js';
|
|
21
|
+
import './_to-object-b50e61c3.js';
|
|
22
|
+
import './es6.string.iterator-bc33758b.js';
|
|
23
|
+
import './web.dom.iterable-4109ff68.js';
|
|
23
24
|
import './_library-528f1934.js';
|
|
24
|
-
import './core.get-iterator-method-
|
|
25
|
-
import './_iter-detect-
|
|
26
|
-
import './_object-pie-
|
|
27
|
-
import './toConsumableArray-
|
|
28
|
-
import './inherits-
|
|
29
|
-
import './_object-sap-
|
|
25
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
26
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
27
|
+
import './_object-pie-133f504a.js';
|
|
28
|
+
import './toConsumableArray-6d9a4616.js';
|
|
29
|
+
import './inherits-a41fe93f.js';
|
|
30
|
+
import './_object-sap-f353c2a9.js';
|
|
30
31
|
import './index-888f9253.js';
|
|
31
32
|
import 'react-bootstrap/Container';
|
|
32
33
|
import 'react-bootstrap/Row';
|
|
33
34
|
import 'react-bootstrap/Col';
|
|
34
35
|
import 'react-bootstrap/Card';
|
|
35
36
|
import 'next/router';
|
|
36
|
-
import './lodash-
|
|
37
|
-
import './debounce-
|
|
38
|
-
import './isSymbol-
|
|
39
|
-
import './toNumber-
|
|
37
|
+
import './lodash-f97fd99a.js';
|
|
38
|
+
import './debounce-533d9748.js';
|
|
39
|
+
import './isSymbol-a7e9aafe.js';
|
|
40
|
+
import './toNumber-5aeba6e7.js';
|
|
40
41
|
import './index.es-c6222053.js';
|
|
41
42
|
import './visibility-sensor-f40c2564.js';
|
|
42
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADlgInfeed-c6d2831b.js';
|
|
43
44
|
import './AdSlot.js';
|
|
44
45
|
import './Beam.js';
|
|
45
|
-
import './stringify-
|
|
46
|
+
import './stringify-59c8f690.js';
|
|
46
47
|
import './Segment.js';
|
|
47
|
-
import './main-
|
|
48
|
-
import './ADInfeed-
|
|
49
|
-
import './_is-array-
|
|
48
|
+
import './main-b5c5aac1.js';
|
|
49
|
+
import './ADInfeed-e1e18f87.js';
|
|
50
|
+
import './_is-array-3e99e06e.js';
|
|
50
51
|
import 'react-bootstrap';
|
|
51
52
|
import './index-c7e2ac95.js';
|
|
52
53
|
import './util-3ab476bf.js';
|
|
54
|
+
import './empty-81a1dbdc.js';
|
|
53
55
|
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
54
56
|
import './GroupDeck.js';
|
|
55
57
|
import './smoothscroll-fa4e3f8c.js';
|
|
56
58
|
import './SocialShare.js';
|
|
57
59
|
import 'next/head';
|
|
58
60
|
import 'react-share';
|
|
59
|
-
import './_object-to-array-
|
|
61
|
+
import './_object-to-array-0f197f89.js';
|
|
60
62
|
import 'react-bootstrap/Pagination';
|
|
61
63
|
import 'react-bootstrap/Button';
|
|
62
64
|
import './entities-932b50cf.js';
|
|
63
65
|
import './index.esm-3fdda599.js';
|
|
64
66
|
import 'react-bootstrap/Figure';
|
|
65
|
-
import 'react-script-tag';
|
|
66
67
|
|
|
67
68
|
function _extends() {
|
|
68
69
|
_extends = Object.assign || function (target) {
|
|
@@ -251,21 +252,6 @@ function useUncontrolled(props, config) {
|
|
|
251
252
|
}, props);
|
|
252
253
|
}
|
|
253
254
|
|
|
254
|
-
function _setPrototypeOf(o, p) {
|
|
255
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
256
|
-
o.__proto__ = p;
|
|
257
|
-
return o;
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
return _setPrototypeOf(o, p);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
function _inheritsLoose(subClass, superClass) {
|
|
264
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
265
|
-
subClass.prototype.constructor = subClass;
|
|
266
|
-
_setPrototypeOf(subClass, superClass);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
255
|
var ThemeContext = React.createContext({});
|
|
270
256
|
ThemeContext.Consumer;
|
|
271
257
|
ThemeContext.Provider;
|
|
@@ -285,11 +271,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
285
271
|
return href || null;
|
|
286
272
|
};
|
|
287
273
|
|
|
288
|
-
var context = React.createContext(null);
|
|
289
|
-
context.displayName = 'AccordionContext';
|
|
274
|
+
var context$2 = React.createContext(null);
|
|
275
|
+
context$2.displayName = 'AccordionContext';
|
|
290
276
|
|
|
291
277
|
function useAccordionToggle(eventKey, onClick) {
|
|
292
|
-
var contextEventKey = useContext(context);
|
|
278
|
+
var contextEventKey = useContext(context$2);
|
|
293
279
|
var onSelect = useContext(SelectableContext);
|
|
294
280
|
return function (e) {
|
|
295
281
|
/*
|
|
@@ -321,16 +307,16 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
321
307
|
}, props), children);
|
|
322
308
|
});
|
|
323
309
|
|
|
324
|
-
function ownerDocument(node) {
|
|
310
|
+
function ownerDocument$1(node) {
|
|
325
311
|
return node && node.ownerDocument || document;
|
|
326
312
|
}
|
|
327
313
|
|
|
328
314
|
function ownerWindow(node) {
|
|
329
|
-
var doc = ownerDocument(node);
|
|
315
|
+
var doc = ownerDocument$1(node);
|
|
330
316
|
return doc && doc.defaultView || window;
|
|
331
317
|
}
|
|
332
318
|
|
|
333
|
-
function getComputedStyle$
|
|
319
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
334
320
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
335
321
|
}
|
|
336
322
|
|
|
@@ -359,7 +345,7 @@ function style(node, property) {
|
|
|
359
345
|
var transforms = '';
|
|
360
346
|
|
|
361
347
|
if (typeof property === 'string') {
|
|
362
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
348
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
363
349
|
}
|
|
364
350
|
|
|
365
351
|
Object.keys(property).forEach(function (key) {
|
|
@@ -1097,7 +1083,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1097
1083
|
onExited: PropTypes.func
|
|
1098
1084
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1099
1085
|
|
|
1100
|
-
function noop() {}
|
|
1086
|
+
function noop$5() {}
|
|
1101
1087
|
|
|
1102
1088
|
Transition.defaultProps = {
|
|
1103
1089
|
in: false,
|
|
@@ -1106,12 +1092,12 @@ Transition.defaultProps = {
|
|
|
1106
1092
|
appear: false,
|
|
1107
1093
|
enter: true,
|
|
1108
1094
|
exit: true,
|
|
1109
|
-
onEnter: noop,
|
|
1110
|
-
onEntering: noop,
|
|
1111
|
-
onEntered: noop,
|
|
1112
|
-
onExit: noop,
|
|
1113
|
-
onExiting: noop,
|
|
1114
|
-
onExited: noop
|
|
1095
|
+
onEnter: noop$5,
|
|
1096
|
+
onEntering: noop$5,
|
|
1097
|
+
onEntered: noop$5,
|
|
1098
|
+
onExit: noop$5,
|
|
1099
|
+
onExiting: noop$5,
|
|
1100
|
+
onExited: noop$5
|
|
1115
1101
|
};
|
|
1116
1102
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1117
1103
|
Transition.EXITED = EXITED;
|
|
@@ -1177,7 +1163,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1177
1163
|
}
|
|
1178
1164
|
|
|
1179
1165
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1180
|
-
var defaultProps = {
|
|
1166
|
+
var defaultProps$E = {
|
|
1181
1167
|
in: false,
|
|
1182
1168
|
timeout: 300,
|
|
1183
1169
|
mountOnEnter: false,
|
|
@@ -1251,14 +1237,14 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1251
1237
|
}); // @ts-ignore
|
|
1252
1238
|
|
|
1253
1239
|
// @ts-ignore
|
|
1254
|
-
Collapse.defaultProps = defaultProps;
|
|
1240
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1255
1241
|
|
|
1256
1242
|
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1257
1243
|
var children = _ref.children,
|
|
1258
1244
|
eventKey = _ref.eventKey,
|
|
1259
1245
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1260
1246
|
|
|
1261
|
-
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1247
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1262
1248
|
// from collapsing the accordion when clicked.
|
|
1263
1249
|
|
|
1264
1250
|
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
@@ -1284,7 +1270,7 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1284
1270
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1285
1271
|
|
|
1286
1272
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1287
|
-
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1273
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
1288
1274
|
value: activeKey || null
|
|
1289
1275
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1290
1276
|
value: onSelect || null
|
|
@@ -1324,7 +1310,7 @@ function useEventCallback(fn) {
|
|
|
1324
1310
|
}
|
|
1325
1311
|
|
|
1326
1312
|
var _fadeStyles;
|
|
1327
|
-
var defaultProps$
|
|
1313
|
+
var defaultProps$D = {
|
|
1328
1314
|
in: false,
|
|
1329
1315
|
timeout: 300,
|
|
1330
1316
|
mountOnEnter: false,
|
|
@@ -1352,14 +1338,14 @@ var Fade = React.forwardRef(function (_ref, ref) {
|
|
|
1352
1338
|
}));
|
|
1353
1339
|
});
|
|
1354
1340
|
});
|
|
1355
|
-
Fade.defaultProps = defaultProps$
|
|
1341
|
+
Fade.defaultProps = defaultProps$D;
|
|
1356
1342
|
Fade.displayName = 'Fade';
|
|
1357
1343
|
|
|
1358
|
-
var propTypes = {
|
|
1344
|
+
var propTypes$a = {
|
|
1359
1345
|
label: PropTypes.string.isRequired,
|
|
1360
1346
|
onClick: PropTypes.func
|
|
1361
1347
|
};
|
|
1362
|
-
var defaultProps$
|
|
1348
|
+
var defaultProps$C = {
|
|
1363
1349
|
label: 'Close'
|
|
1364
1350
|
};
|
|
1365
1351
|
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
@@ -1380,8 +1366,8 @@ var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
|
1380
1366
|
}, label));
|
|
1381
1367
|
});
|
|
1382
1368
|
CloseButton.displayName = 'CloseButton';
|
|
1383
|
-
CloseButton.propTypes = propTypes;
|
|
1384
|
-
CloseButton.defaultProps = defaultProps$
|
|
1369
|
+
CloseButton.propTypes = propTypes$a;
|
|
1370
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1385
1371
|
|
|
1386
1372
|
var divWithClassName = (function (className) {
|
|
1387
1373
|
return React.forwardRef(function (p, ref) {
|
|
@@ -1494,15 +1480,15 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1494
1480
|
});
|
|
1495
1481
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1496
1482
|
|
|
1497
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1498
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1483
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1484
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1499
1485
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1500
|
-
Component: DivStyledAsH4
|
|
1486
|
+
Component: DivStyledAsH4$1
|
|
1501
1487
|
});
|
|
1502
1488
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1503
1489
|
Component: SafeAnchor
|
|
1504
1490
|
});
|
|
1505
|
-
var defaultProps$
|
|
1491
|
+
var defaultProps$B = {
|
|
1506
1492
|
show: true,
|
|
1507
1493
|
transition: Fade,
|
|
1508
1494
|
closeLabel: 'Close alert'
|
|
@@ -1547,11 +1533,11 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1547
1533
|
}), alert);
|
|
1548
1534
|
});
|
|
1549
1535
|
Alert.displayName = 'Alert';
|
|
1550
|
-
Alert.defaultProps = defaultProps$
|
|
1536
|
+
Alert.defaultProps = defaultProps$B;
|
|
1551
1537
|
Alert.Link = AlertLink;
|
|
1552
1538
|
Alert.Heading = AlertHeading;
|
|
1553
1539
|
|
|
1554
|
-
var defaultProps$
|
|
1540
|
+
var defaultProps$A = {
|
|
1555
1541
|
pill: false
|
|
1556
1542
|
};
|
|
1557
1543
|
var Badge = React.forwardRef(function (_ref, ref) {
|
|
@@ -1571,9 +1557,9 @@ var Badge = React.forwardRef(function (_ref, ref) {
|
|
|
1571
1557
|
}));
|
|
1572
1558
|
});
|
|
1573
1559
|
Badge.displayName = 'Badge';
|
|
1574
|
-
Badge.defaultProps = defaultProps$
|
|
1560
|
+
Badge.defaultProps = defaultProps$A;
|
|
1575
1561
|
|
|
1576
|
-
var defaultProps$
|
|
1562
|
+
var defaultProps$z = {
|
|
1577
1563
|
active: false,
|
|
1578
1564
|
linkProps: {}
|
|
1579
1565
|
};
|
|
@@ -1607,9 +1593,9 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1607
1593
|
}), children));
|
|
1608
1594
|
});
|
|
1609
1595
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1610
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1596
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1611
1597
|
|
|
1612
|
-
var defaultProps$
|
|
1598
|
+
var defaultProps$y = {
|
|
1613
1599
|
label: 'breadcrumb',
|
|
1614
1600
|
listProps: {}
|
|
1615
1601
|
};
|
|
@@ -1633,10 +1619,10 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1633
1619
|
}), children));
|
|
1634
1620
|
});
|
|
1635
1621
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1636
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1622
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1637
1623
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1638
1624
|
|
|
1639
|
-
var defaultProps$
|
|
1625
|
+
var defaultProps$x = {
|
|
1640
1626
|
variant: 'primary',
|
|
1641
1627
|
active: false,
|
|
1642
1628
|
disabled: false
|
|
@@ -1679,9 +1665,9 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1679
1665
|
}));
|
|
1680
1666
|
});
|
|
1681
1667
|
Button.displayName = 'Button';
|
|
1682
|
-
Button.defaultProps = defaultProps$
|
|
1668
|
+
Button.defaultProps = defaultProps$x;
|
|
1683
1669
|
|
|
1684
|
-
var defaultProps$
|
|
1670
|
+
var defaultProps$w = {
|
|
1685
1671
|
vertical: false,
|
|
1686
1672
|
toggle: false,
|
|
1687
1673
|
role: 'group'
|
|
@@ -1705,9 +1691,9 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1705
1691
|
}));
|
|
1706
1692
|
});
|
|
1707
1693
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1708
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1694
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1709
1695
|
|
|
1710
|
-
var defaultProps$
|
|
1696
|
+
var defaultProps$v = {
|
|
1711
1697
|
role: 'toolbar'
|
|
1712
1698
|
};
|
|
1713
1699
|
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
@@ -1722,12 +1708,12 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
|
1722
1708
|
}));
|
|
1723
1709
|
});
|
|
1724
1710
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1725
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1711
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1726
1712
|
|
|
1727
1713
|
var context$1 = React.createContext(null);
|
|
1728
1714
|
context$1.displayName = 'CardContext';
|
|
1729
1715
|
|
|
1730
|
-
var defaultProps$
|
|
1716
|
+
var defaultProps$u = {
|
|
1731
1717
|
variant: null
|
|
1732
1718
|
};
|
|
1733
1719
|
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
|
|
@@ -1746,7 +1732,7 @@ function (_ref, ref) {
|
|
|
1746
1732
|
}, props));
|
|
1747
1733
|
});
|
|
1748
1734
|
CardImg.displayName = 'CardImg';
|
|
1749
|
-
CardImg.defaultProps = defaultProps$
|
|
1735
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1750
1736
|
|
|
1751
1737
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1752
1738
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1766,7 +1752,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1766
1752
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1767
1753
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1768
1754
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1769
|
-
var defaultProps$
|
|
1755
|
+
var defaultProps$t = {
|
|
1770
1756
|
body: false
|
|
1771
1757
|
};
|
|
1772
1758
|
var Card = React.forwardRef(function (_ref, ref) {
|
|
@@ -1799,7 +1785,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1799
1785
|
React.createElement(CardBody, null, children) : children));
|
|
1800
1786
|
});
|
|
1801
1787
|
Card.displayName = 'Card';
|
|
1802
|
-
Card.defaultProps = defaultProps$
|
|
1788
|
+
Card.defaultProps = defaultProps$t;
|
|
1803
1789
|
Card.Img = CardImg;
|
|
1804
1790
|
Card.Title = CardTitle;
|
|
1805
1791
|
Card.Subtitle = CardSubtitle;
|
|
@@ -2034,7 +2020,7 @@ function forEach(children, func) {
|
|
|
2034
2020
|
}
|
|
2035
2021
|
|
|
2036
2022
|
var SWIPE_THRESHOLD = 40;
|
|
2037
|
-
var propTypes$
|
|
2023
|
+
var propTypes$9 = {
|
|
2038
2024
|
/**
|
|
2039
2025
|
* @default 'carousel'
|
|
2040
2026
|
*/
|
|
@@ -2136,7 +2122,7 @@ var propTypes$1 = {
|
|
|
2136
2122
|
*/
|
|
2137
2123
|
nextLabel: PropTypes.string
|
|
2138
2124
|
};
|
|
2139
|
-
var defaultProps$
|
|
2125
|
+
var defaultProps$s = {
|
|
2140
2126
|
slide: true,
|
|
2141
2127
|
fade: false,
|
|
2142
2128
|
controls: true,
|
|
@@ -2506,12 +2492,12 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2506
2492
|
|
|
2507
2493
|
var Carousel = React.forwardRef(CarouselFunc);
|
|
2508
2494
|
Carousel.displayName = 'Carousel';
|
|
2509
|
-
Carousel.propTypes = propTypes$
|
|
2510
|
-
Carousel.defaultProps = defaultProps$
|
|
2495
|
+
Carousel.propTypes = propTypes$9;
|
|
2496
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2511
2497
|
Carousel.Caption = CarouselCaption;
|
|
2512
2498
|
Carousel.Item = CarouselItem;
|
|
2513
2499
|
|
|
2514
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2500
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2515
2501
|
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
|
|
2516
2502
|
function (_ref, ref) {
|
|
2517
2503
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -2523,7 +2509,7 @@ function (_ref, ref) {
|
|
|
2523
2509
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2524
2510
|
var spans = [];
|
|
2525
2511
|
var classes = [];
|
|
2526
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2512
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2527
2513
|
var propValue = props[brkPoint];
|
|
2528
2514
|
delete props[brkPoint];
|
|
2529
2515
|
var span;
|
|
@@ -2704,21 +2690,50 @@ function getBasePlacement(placement) {
|
|
|
2704
2690
|
return placement.split('-')[0];
|
|
2705
2691
|
}
|
|
2706
2692
|
|
|
2707
|
-
|
|
2693
|
+
function getBoundingClientRect(element) {
|
|
2694
|
+
var rect = element.getBoundingClientRect();
|
|
2695
|
+
return {
|
|
2696
|
+
width: rect.width,
|
|
2697
|
+
height: rect.height,
|
|
2698
|
+
top: rect.top,
|
|
2699
|
+
right: rect.right,
|
|
2700
|
+
bottom: rect.bottom,
|
|
2701
|
+
left: rect.left,
|
|
2702
|
+
x: rect.left,
|
|
2703
|
+
y: rect.top
|
|
2704
|
+
};
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2708
2707
|
// means it doesn't take into account transforms.
|
|
2708
|
+
|
|
2709
2709
|
function getLayoutRect(element) {
|
|
2710
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2711
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2712
|
+
|
|
2713
|
+
var width = element.offsetWidth;
|
|
2714
|
+
var height = element.offsetHeight;
|
|
2715
|
+
|
|
2716
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2717
|
+
width = clientRect.width;
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2721
|
+
height = clientRect.height;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2710
2724
|
return {
|
|
2711
2725
|
x: element.offsetLeft,
|
|
2712
2726
|
y: element.offsetTop,
|
|
2713
|
-
width:
|
|
2714
|
-
height:
|
|
2727
|
+
width: width,
|
|
2728
|
+
height: height
|
|
2715
2729
|
};
|
|
2716
2730
|
}
|
|
2717
2731
|
|
|
2718
|
-
/*:: import type { Window } from '../types'; */
|
|
2719
|
-
|
|
2720
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2721
2732
|
function getWindow(node) {
|
|
2733
|
+
if (node == null) {
|
|
2734
|
+
return window;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2722
2737
|
if (node.toString() !== '[object Window]') {
|
|
2723
2738
|
var ownerDocument = node.ownerDocument;
|
|
2724
2739
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2727,31 +2742,27 @@ function getWindow(node) {
|
|
|
2727
2742
|
return node;
|
|
2728
2743
|
}
|
|
2729
2744
|
|
|
2730
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2731
|
-
Element); */
|
|
2732
|
-
|
|
2733
2745
|
function isElement(node) {
|
|
2734
2746
|
var OwnElement = getWindow(node).Element;
|
|
2735
2747
|
return node instanceof OwnElement || node instanceof Element;
|
|
2736
2748
|
}
|
|
2737
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2738
|
-
HTMLElement); */
|
|
2739
|
-
|
|
2740
2749
|
|
|
2741
2750
|
function isHTMLElement(node) {
|
|
2742
2751
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2743
2752
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2744
2753
|
}
|
|
2745
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2746
|
-
ShadowRoot); */
|
|
2747
|
-
|
|
2748
2754
|
|
|
2749
2755
|
function isShadowRoot(node) {
|
|
2756
|
+
// IE 11 has no ShadowRoot
|
|
2757
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2758
|
+
return false;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2750
2761
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2751
2762
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2752
2763
|
}
|
|
2753
2764
|
|
|
2754
|
-
function contains(parent, child) {
|
|
2765
|
+
function contains$1(parent, child) {
|
|
2755
2766
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2756
2767
|
|
|
2757
2768
|
if (parent.contains(child)) {
|
|
@@ -2778,7 +2789,7 @@ function getNodeName(element) {
|
|
|
2778
2789
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2779
2790
|
}
|
|
2780
2791
|
|
|
2781
|
-
function getComputedStyle$
|
|
2792
|
+
function getComputedStyle$1(element) {
|
|
2782
2793
|
return getWindow(element).getComputedStyle(element);
|
|
2783
2794
|
}
|
|
2784
2795
|
|
|
@@ -2801,9 +2812,8 @@ function getParentNode(element) {
|
|
|
2801
2812
|
// $FlowFixMe[incompatible-return]
|
|
2802
2813
|
// $FlowFixMe[prop-missing]
|
|
2803
2814
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2804
|
-
element.parentNode || // DOM Element detected
|
|
2805
|
-
|
|
2806
|
-
element.host || // ShadowRoot detected
|
|
2815
|
+
element.parentNode || ( // DOM Element detected
|
|
2816
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2807
2817
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2808
2818
|
getDocumentElement(element) // fallback
|
|
2809
2819
|
|
|
@@ -2812,33 +2822,25 @@ function getParentNode(element) {
|
|
|
2812
2822
|
|
|
2813
2823
|
function getTrueOffsetParent(element) {
|
|
2814
2824
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2815
|
-
getComputedStyle$
|
|
2825
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2816
2826
|
return null;
|
|
2817
2827
|
}
|
|
2818
2828
|
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
if (offsetParent) {
|
|
2822
|
-
var html = getDocumentElement(offsetParent);
|
|
2823
|
-
|
|
2824
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2825
|
-
return html;
|
|
2826
|
-
}
|
|
2827
|
-
}
|
|
2828
|
-
|
|
2829
|
-
return offsetParent;
|
|
2829
|
+
return element.offsetParent;
|
|
2830
2830
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2831
2831
|
// return the containing block
|
|
2832
2832
|
|
|
2833
2833
|
|
|
2834
2834
|
function getContainingBlock(element) {
|
|
2835
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2835
2836
|
var currentNode = getParentNode(element);
|
|
2836
2837
|
|
|
2837
2838
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2838
|
-
var css = getComputedStyle$
|
|
2839
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2839
2840
|
// create a containing block.
|
|
2841
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2840
2842
|
|
|
2841
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2843
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2842
2844
|
return currentNode;
|
|
2843
2845
|
} else {
|
|
2844
2846
|
currentNode = currentNode.parentNode;
|
|
@@ -2854,11 +2856,11 @@ function getOffsetParent(element) {
|
|
|
2854
2856
|
var window = getWindow(element);
|
|
2855
2857
|
var offsetParent = getTrueOffsetParent(element);
|
|
2856
2858
|
|
|
2857
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2859
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2858
2860
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2859
2861
|
}
|
|
2860
2862
|
|
|
2861
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2863
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2862
2864
|
return window;
|
|
2863
2865
|
}
|
|
2864
2866
|
|
|
@@ -2869,8 +2871,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2869
2871
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2870
2872
|
}
|
|
2871
2873
|
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
+
var max = Math.max;
|
|
2875
|
+
var min = Math.min;
|
|
2876
|
+
var round = Math.round;
|
|
2877
|
+
|
|
2878
|
+
function within(min$1, value, max$1) {
|
|
2879
|
+
return max(min$1, min(value, max$1));
|
|
2874
2880
|
}
|
|
2875
2881
|
|
|
2876
2882
|
function getFreshSideObject() {
|
|
@@ -2883,7 +2889,7 @@ function getFreshSideObject() {
|
|
|
2883
2889
|
}
|
|
2884
2890
|
|
|
2885
2891
|
function mergePaddingObject(paddingObject) {
|
|
2886
|
-
return Object.assign(
|
|
2892
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2887
2893
|
}
|
|
2888
2894
|
|
|
2889
2895
|
function expandToHashMap(value, keys) {
|
|
@@ -2893,11 +2899,19 @@ function expandToHashMap(value, keys) {
|
|
|
2893
2899
|
}, {});
|
|
2894
2900
|
}
|
|
2895
2901
|
|
|
2902
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2903
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2904
|
+
placement: state.placement
|
|
2905
|
+
})) : padding;
|
|
2906
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2907
|
+
};
|
|
2908
|
+
|
|
2896
2909
|
function arrow(_ref) {
|
|
2897
2910
|
var _state$modifiersData$;
|
|
2898
2911
|
|
|
2899
2912
|
var state = _ref.state,
|
|
2900
|
-
name = _ref.name
|
|
2913
|
+
name = _ref.name,
|
|
2914
|
+
options = _ref.options;
|
|
2901
2915
|
var arrowElement = state.elements.arrow;
|
|
2902
2916
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2903
2917
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2909,7 +2923,7 @@ function arrow(_ref) {
|
|
|
2909
2923
|
return;
|
|
2910
2924
|
}
|
|
2911
2925
|
|
|
2912
|
-
var paddingObject =
|
|
2926
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2913
2927
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2914
2928
|
var minProp = axis === 'y' ? top : left;
|
|
2915
2929
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2929,14 +2943,11 @@ function arrow(_ref) {
|
|
|
2929
2943
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2930
2944
|
}
|
|
2931
2945
|
|
|
2932
|
-
function effect(_ref2) {
|
|
2946
|
+
function effect$1(_ref2) {
|
|
2933
2947
|
var state = _ref2.state,
|
|
2934
|
-
options = _ref2.options
|
|
2935
|
-
name = _ref2.name;
|
|
2948
|
+
options = _ref2.options;
|
|
2936
2949
|
var _options$element = options.element,
|
|
2937
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2938
|
-
_options$padding = options.padding,
|
|
2939
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2950
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2940
2951
|
|
|
2941
2952
|
if (arrowElement == null) {
|
|
2942
2953
|
return;
|
|
@@ -2957,7 +2968,7 @@ function effect(_ref2) {
|
|
|
2957
2968
|
}
|
|
2958
2969
|
}
|
|
2959
2970
|
|
|
2960
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2971
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2961
2972
|
if (process.env.NODE_ENV !== "production") {
|
|
2962
2973
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2963
2974
|
}
|
|
@@ -2966,9 +2977,6 @@ function effect(_ref2) {
|
|
|
2966
2977
|
}
|
|
2967
2978
|
|
|
2968
2979
|
state.elements.arrow = arrowElement;
|
|
2969
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2970
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2971
|
-
};
|
|
2972
2980
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2973
2981
|
|
|
2974
2982
|
|
|
@@ -2977,7 +2985,7 @@ var arrow$1 = {
|
|
|
2977
2985
|
enabled: true,
|
|
2978
2986
|
phase: 'main',
|
|
2979
2987
|
fn: arrow,
|
|
2980
|
-
effect: effect,
|
|
2988
|
+
effect: effect$1,
|
|
2981
2989
|
requires: ['popperOffsets'],
|
|
2982
2990
|
requiresIfExists: ['preventOverflow']
|
|
2983
2991
|
};
|
|
@@ -2997,8 +3005,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2997
3005
|
var win = window;
|
|
2998
3006
|
var dpr = win.devicePixelRatio || 1;
|
|
2999
3007
|
return {
|
|
3000
|
-
x:
|
|
3001
|
-
y:
|
|
3008
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
3009
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
3002
3010
|
};
|
|
3003
3011
|
}
|
|
3004
3012
|
|
|
@@ -3014,7 +3022,7 @@ function mapToStyles(_ref2) {
|
|
|
3014
3022
|
adaptive = _ref2.adaptive,
|
|
3015
3023
|
roundOffsets = _ref2.roundOffsets;
|
|
3016
3024
|
|
|
3017
|
-
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
3025
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
3018
3026
|
_ref3$x = _ref3.x,
|
|
3019
3027
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
3020
3028
|
_ref3$y = _ref3.y,
|
|
@@ -3028,23 +3036,32 @@ function mapToStyles(_ref2) {
|
|
|
3028
3036
|
|
|
3029
3037
|
if (adaptive) {
|
|
3030
3038
|
var offsetParent = getOffsetParent(popper);
|
|
3039
|
+
var heightProp = 'clientHeight';
|
|
3040
|
+
var widthProp = 'clientWidth';
|
|
3031
3041
|
|
|
3032
3042
|
if (offsetParent === getWindow(popper)) {
|
|
3033
3043
|
offsetParent = getDocumentElement(popper);
|
|
3044
|
+
|
|
3045
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3046
|
+
heightProp = 'scrollHeight';
|
|
3047
|
+
widthProp = 'scrollWidth';
|
|
3048
|
+
}
|
|
3034
3049
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3035
3050
|
|
|
3036
|
-
/*:: offsetParent = (offsetParent: Element); */
|
|
3037
3051
|
|
|
3052
|
+
offsetParent = offsetParent;
|
|
3038
3053
|
|
|
3039
3054
|
if (placement === top) {
|
|
3040
|
-
sideY = bottom;
|
|
3041
|
-
|
|
3055
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
3056
|
+
|
|
3057
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
3042
3058
|
y *= gpuAcceleration ? 1 : -1;
|
|
3043
3059
|
}
|
|
3044
3060
|
|
|
3045
3061
|
if (placement === left) {
|
|
3046
|
-
sideX = right;
|
|
3047
|
-
|
|
3062
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
3063
|
+
|
|
3064
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
3048
3065
|
x *= gpuAcceleration ? 1 : -1;
|
|
3049
3066
|
}
|
|
3050
3067
|
}
|
|
@@ -3056,10 +3073,10 @@ function mapToStyles(_ref2) {
|
|
|
3056
3073
|
if (gpuAcceleration) {
|
|
3057
3074
|
var _Object$assign;
|
|
3058
3075
|
|
|
3059
|
-
return Object.assign(
|
|
3076
|
+
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));
|
|
3060
3077
|
}
|
|
3061
3078
|
|
|
3062
|
-
return Object.assign(
|
|
3079
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3063
3080
|
}
|
|
3064
3081
|
|
|
3065
3082
|
function computeStyles(_ref4) {
|
|
@@ -3073,7 +3090,7 @@ function computeStyles(_ref4) {
|
|
|
3073
3090
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3074
3091
|
|
|
3075
3092
|
if (process.env.NODE_ENV !== "production") {
|
|
3076
|
-
var transitionProperty = getComputedStyle$
|
|
3093
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
3077
3094
|
|
|
3078
3095
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3079
3096
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3090,7 +3107,7 @@ function computeStyles(_ref4) {
|
|
|
3090
3107
|
};
|
|
3091
3108
|
|
|
3092
3109
|
if (state.modifiersData.popperOffsets != null) {
|
|
3093
|
-
state.styles.popper = Object.assign(
|
|
3110
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3094
3111
|
offsets: state.modifiersData.popperOffsets,
|
|
3095
3112
|
position: state.options.strategy,
|
|
3096
3113
|
adaptive: adaptive,
|
|
@@ -3099,7 +3116,7 @@ function computeStyles(_ref4) {
|
|
|
3099
3116
|
}
|
|
3100
3117
|
|
|
3101
3118
|
if (state.modifiersData.arrow != null) {
|
|
3102
|
-
state.styles.arrow = Object.assign(
|
|
3119
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3103
3120
|
offsets: state.modifiersData.arrow,
|
|
3104
3121
|
position: 'absolute',
|
|
3105
3122
|
adaptive: false,
|
|
@@ -3107,7 +3124,7 @@ function computeStyles(_ref4) {
|
|
|
3107
3124
|
})));
|
|
3108
3125
|
}
|
|
3109
3126
|
|
|
3110
|
-
state.attributes.popper = Object.assign(
|
|
3127
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3111
3128
|
'data-popper-placement': state.placement
|
|
3112
3129
|
});
|
|
3113
3130
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3125,7 +3142,7 @@ var passive = {
|
|
|
3125
3142
|
passive: true
|
|
3126
3143
|
};
|
|
3127
3144
|
|
|
3128
|
-
function effect
|
|
3145
|
+
function effect(_ref) {
|
|
3129
3146
|
var state = _ref.state,
|
|
3130
3147
|
instance = _ref.instance,
|
|
3131
3148
|
options = _ref.options;
|
|
@@ -3165,11 +3182,11 @@ var eventListeners = {
|
|
|
3165
3182
|
enabled: true,
|
|
3166
3183
|
phase: 'write',
|
|
3167
3184
|
fn: function fn() {},
|
|
3168
|
-
effect: effect
|
|
3185
|
+
effect: effect,
|
|
3169
3186
|
data: {}
|
|
3170
3187
|
};
|
|
3171
3188
|
|
|
3172
|
-
var hash = {
|
|
3189
|
+
var hash$1 = {
|
|
3173
3190
|
left: 'right',
|
|
3174
3191
|
right: 'left',
|
|
3175
3192
|
bottom: 'top',
|
|
@@ -3177,34 +3194,20 @@ var hash = {
|
|
|
3177
3194
|
};
|
|
3178
3195
|
function getOppositePlacement(placement) {
|
|
3179
3196
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3180
|
-
return hash[matched];
|
|
3197
|
+
return hash$1[matched];
|
|
3181
3198
|
});
|
|
3182
3199
|
}
|
|
3183
3200
|
|
|
3184
|
-
var hash
|
|
3201
|
+
var hash = {
|
|
3185
3202
|
start: 'end',
|
|
3186
3203
|
end: 'start'
|
|
3187
3204
|
};
|
|
3188
3205
|
function getOppositeVariationPlacement(placement) {
|
|
3189
3206
|
return placement.replace(/start|end/g, function (matched) {
|
|
3190
|
-
return hash
|
|
3207
|
+
return hash[matched];
|
|
3191
3208
|
});
|
|
3192
3209
|
}
|
|
3193
3210
|
|
|
3194
|
-
function getBoundingClientRect(element) {
|
|
3195
|
-
var rect = element.getBoundingClientRect();
|
|
3196
|
-
return {
|
|
3197
|
-
width: rect.width,
|
|
3198
|
-
height: rect.height,
|
|
3199
|
-
top: rect.top,
|
|
3200
|
-
right: rect.right,
|
|
3201
|
-
bottom: rect.bottom,
|
|
3202
|
-
left: rect.left,
|
|
3203
|
-
x: rect.left,
|
|
3204
|
-
y: rect.top
|
|
3205
|
-
};
|
|
3206
|
-
}
|
|
3207
|
-
|
|
3208
3211
|
function getWindowScroll(node) {
|
|
3209
3212
|
var win = getWindow(node);
|
|
3210
3213
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3267,16 +3270,18 @@ function getViewportRect(element) {
|
|
|
3267
3270
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3268
3271
|
|
|
3269
3272
|
function getDocumentRect(element) {
|
|
3273
|
+
var _element$ownerDocumen;
|
|
3274
|
+
|
|
3270
3275
|
var html = getDocumentElement(element);
|
|
3271
3276
|
var winScroll = getWindowScroll(element);
|
|
3272
|
-
var body = element.ownerDocument.body;
|
|
3273
|
-
var width =
|
|
3274
|
-
var height =
|
|
3277
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3278
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3279
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3275
3280
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3276
3281
|
var y = -winScroll.scrollTop;
|
|
3277
3282
|
|
|
3278
|
-
if (getComputedStyle$
|
|
3279
|
-
x +=
|
|
3283
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3284
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3280
3285
|
}
|
|
3281
3286
|
|
|
3282
3287
|
return {
|
|
@@ -3289,7 +3294,7 @@ function getDocumentRect(element) {
|
|
|
3289
3294
|
|
|
3290
3295
|
function isScrollParent(element) {
|
|
3291
3296
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3292
|
-
var _getComputedStyle = getComputedStyle$
|
|
3297
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3293
3298
|
overflow = _getComputedStyle.overflow,
|
|
3294
3299
|
overflowX = _getComputedStyle.overflowX,
|
|
3295
3300
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3318,12 +3323,14 @@ reference element's position.
|
|
|
3318
3323
|
*/
|
|
3319
3324
|
|
|
3320
3325
|
function listScrollParents(element, list) {
|
|
3326
|
+
var _element$ownerDocumen;
|
|
3327
|
+
|
|
3321
3328
|
if (list === void 0) {
|
|
3322
3329
|
list = [];
|
|
3323
3330
|
}
|
|
3324
3331
|
|
|
3325
3332
|
var scrollParent = getScrollParent(element);
|
|
3326
|
-
var isBody =
|
|
3333
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3327
3334
|
var win = getWindow(scrollParent);
|
|
3328
3335
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3329
3336
|
var updatedList = list.concat(target);
|
|
@@ -3332,7 +3339,7 @@ function listScrollParents(element, list) {
|
|
|
3332
3339
|
}
|
|
3333
3340
|
|
|
3334
3341
|
function rectToClientRect(rect) {
|
|
3335
|
-
return Object.assign(
|
|
3342
|
+
return Object.assign({}, rect, {
|
|
3336
3343
|
left: rect.x,
|
|
3337
3344
|
top: rect.y,
|
|
3338
3345
|
right: rect.x + rect.width,
|
|
@@ -3362,7 +3369,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3362
3369
|
|
|
3363
3370
|
function getClippingParents(element) {
|
|
3364
3371
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3365
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3372
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3366
3373
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3367
3374
|
|
|
3368
3375
|
if (!isElement(clipperElement)) {
|
|
@@ -3371,7 +3378,7 @@ function getClippingParents(element) {
|
|
|
3371
3378
|
|
|
3372
3379
|
|
|
3373
3380
|
return clippingParents.filter(function (clippingParent) {
|
|
3374
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3381
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3375
3382
|
});
|
|
3376
3383
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3377
3384
|
// clipping parents
|
|
@@ -3383,10 +3390,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3383
3390
|
var firstClippingParent = clippingParents[0];
|
|
3384
3391
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3385
3392
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3386
|
-
accRect.top =
|
|
3387
|
-
accRect.right =
|
|
3388
|
-
accRect.bottom =
|
|
3389
|
-
accRect.left =
|
|
3393
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3394
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3395
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3396
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3390
3397
|
return accRect;
|
|
3391
3398
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3392
3399
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3496,7 +3503,7 @@ function detectOverflow(state, options) {
|
|
|
3496
3503
|
strategy: 'absolute',
|
|
3497
3504
|
placement: placement
|
|
3498
3505
|
});
|
|
3499
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3506
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3500
3507
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3501
3508
|
// 0 or negative = within the clipping rect
|
|
3502
3509
|
|
|
@@ -3520,9 +3527,6 @@ function detectOverflow(state, options) {
|
|
|
3520
3527
|
return overflowOffsets;
|
|
3521
3528
|
}
|
|
3522
3529
|
|
|
3523
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3524
|
-
|
|
3525
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3526
3530
|
function computeAutoPlacement(state, options) {
|
|
3527
3531
|
if (options === void 0) {
|
|
3528
3532
|
options = {};
|
|
@@ -3751,7 +3755,7 @@ function hide(_ref) {
|
|
|
3751
3755
|
isReferenceHidden: isReferenceHidden,
|
|
3752
3756
|
hasPopperEscaped: hasPopperEscaped
|
|
3753
3757
|
};
|
|
3754
|
-
state.attributes.popper = Object.assign(
|
|
3758
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3755
3759
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3756
3760
|
'data-popper-escaped': hasPopperEscaped
|
|
3757
3761
|
});
|
|
@@ -3770,7 +3774,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3770
3774
|
var basePlacement = getBasePlacement(placement);
|
|
3771
3775
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3772
3776
|
|
|
3773
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3777
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3774
3778
|
placement: placement
|
|
3775
3779
|
})) : offset,
|
|
3776
3780
|
skidding = _ref[0],
|
|
@@ -3876,7 +3880,7 @@ function preventOverflow(_ref) {
|
|
|
3876
3880
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3877
3881
|
var referenceRect = state.rects.reference;
|
|
3878
3882
|
var popperRect = state.rects.popper;
|
|
3879
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3883
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3880
3884
|
placement: state.placement
|
|
3881
3885
|
})) : tetherOffset;
|
|
3882
3886
|
var data = {
|
|
@@ -3888,13 +3892,13 @@ function preventOverflow(_ref) {
|
|
|
3888
3892
|
return;
|
|
3889
3893
|
}
|
|
3890
3894
|
|
|
3891
|
-
if (checkMainAxis) {
|
|
3895
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3892
3896
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3893
3897
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3894
3898
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3895
3899
|
var offset = popperOffsets[mainAxis];
|
|
3896
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3897
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3900
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3901
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3898
3902
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3899
3903
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3900
3904
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3921,26 +3925,29 @@ function preventOverflow(_ref) {
|
|
|
3921
3925
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3922
3926
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3923
3927
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3924
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3925
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3926
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3927
|
-
}
|
|
3928
3928
|
|
|
3929
|
-
|
|
3930
|
-
|
|
3929
|
+
if (checkMainAxis) {
|
|
3930
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3931
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3932
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3933
|
+
}
|
|
3934
|
+
|
|
3935
|
+
if (checkAltAxis) {
|
|
3936
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3931
3937
|
|
|
3932
|
-
|
|
3938
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3933
3939
|
|
|
3934
|
-
|
|
3940
|
+
var _offset = popperOffsets[altAxis];
|
|
3935
3941
|
|
|
3936
|
-
|
|
3942
|
+
var _min = _offset + overflow[_mainSide];
|
|
3937
3943
|
|
|
3938
|
-
|
|
3944
|
+
var _max = _offset - overflow[_altSide];
|
|
3939
3945
|
|
|
3940
|
-
|
|
3946
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3941
3947
|
|
|
3942
|
-
|
|
3943
|
-
|
|
3948
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3949
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3950
|
+
}
|
|
3944
3951
|
}
|
|
3945
3952
|
|
|
3946
3953
|
state.modifiersData[name] = data;
|
|
@@ -4171,9 +4178,9 @@ function uniqueBy(arr, fn) {
|
|
|
4171
4178
|
function mergeByName(modifiers) {
|
|
4172
4179
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4173
4180
|
var existing = merged[current.name];
|
|
4174
|
-
merged[current.name] = existing ? Object.assign(
|
|
4175
|
-
options: Object.assign(
|
|
4176
|
-
data: Object.assign(
|
|
4181
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4182
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4183
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4177
4184
|
}) : current;
|
|
4178
4185
|
return merged;
|
|
4179
4186
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4219,7 +4226,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4219
4226
|
var state = {
|
|
4220
4227
|
placement: 'bottom',
|
|
4221
4228
|
orderedModifiers: [],
|
|
4222
|
-
options: Object.assign(
|
|
4229
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4223
4230
|
modifiersData: {},
|
|
4224
4231
|
elements: {
|
|
4225
4232
|
reference: reference,
|
|
@@ -4234,7 +4241,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4234
4241
|
state: state,
|
|
4235
4242
|
setOptions: function setOptions(options) {
|
|
4236
4243
|
cleanupModifierEffects();
|
|
4237
|
-
state.options = Object.assign(
|
|
4244
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4238
4245
|
state.scrollParents = {
|
|
4239
4246
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4240
4247
|
popper: listScrollParents(popper)
|
|
@@ -4266,7 +4273,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4266
4273
|
}
|
|
4267
4274
|
}
|
|
4268
4275
|
|
|
4269
|
-
var _getComputedStyle = getComputedStyle$
|
|
4276
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4270
4277
|
marginTop = _getComputedStyle.marginTop,
|
|
4271
4278
|
marginRight = _getComputedStyle.marginRight,
|
|
4272
4279
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4606,7 +4613,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4606
4613
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4607
4614
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4608
4615
|
// so we need to check on context instead of a document root element.
|
|
4609
|
-
function contains
|
|
4616
|
+
function contains(context, node) {
|
|
4610
4617
|
if (context.contains) return context.contains(node);
|
|
4611
4618
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4612
4619
|
}
|
|
@@ -4680,13 +4687,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4680
4687
|
return componentOrElement != null ? componentOrElement : null;
|
|
4681
4688
|
}
|
|
4682
4689
|
|
|
4683
|
-
var ownerDocument
|
|
4684
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4690
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4691
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4685
4692
|
});
|
|
4686
4693
|
|
|
4687
4694
|
var escapeKeyCode = 27;
|
|
4688
4695
|
|
|
4689
|
-
var noop$
|
|
4696
|
+
var noop$4 = function noop() {};
|
|
4690
4697
|
|
|
4691
4698
|
function isLeftClickEvent(event) {
|
|
4692
4699
|
return event.button === 0;
|
|
@@ -4719,11 +4726,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4719
4726
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4720
4727
|
|
|
4721
4728
|
var preventMouseRootCloseRef = useRef(false);
|
|
4722
|
-
var onClose = onRootClose || noop$
|
|
4729
|
+
var onClose = onRootClose || noop$4;
|
|
4723
4730
|
var handleMouseCapture = useCallback(function (e) {
|
|
4724
4731
|
var currentTarget = getRefTarget(ref);
|
|
4725
4732
|
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');
|
|
4726
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4733
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4727
4734
|
}, [ref]);
|
|
4728
4735
|
var handleMouse = useEventCallback(function (e) {
|
|
4729
4736
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4740,7 +4747,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4740
4747
|
// https://github.com/facebook/react/issues/20074
|
|
4741
4748
|
|
|
4742
4749
|
var currentEvent = window.event;
|
|
4743
|
-
var doc = ownerDocument
|
|
4750
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4744
4751
|
// avoid false positives in the contains() check below if the target DOM
|
|
4745
4752
|
// element is removed in the React mouse callback.
|
|
4746
4753
|
|
|
@@ -4767,7 +4774,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4767
4774
|
|
|
4768
4775
|
if ('ontouchstart' in doc.documentElement) {
|
|
4769
4776
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4770
|
-
return listen(el, 'mousemove', noop$
|
|
4777
|
+
return listen(el, 'mousemove', noop$4);
|
|
4771
4778
|
});
|
|
4772
4779
|
}
|
|
4773
4780
|
|
|
@@ -4849,7 +4856,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4849
4856
|
});
|
|
4850
4857
|
}
|
|
4851
4858
|
|
|
4852
|
-
var noop$
|
|
4859
|
+
var noop$3 = function noop() {};
|
|
4853
4860
|
/**
|
|
4854
4861
|
* @memberOf Dropdown
|
|
4855
4862
|
* @param {object} options
|
|
@@ -4917,7 +4924,7 @@ function useDropdownMenu(options) {
|
|
|
4917
4924
|
|
|
4918
4925
|
var menu;
|
|
4919
4926
|
var menuProps = {
|
|
4920
|
-
ref: setMenu || noop$
|
|
4927
|
+
ref: setMenu || noop$3,
|
|
4921
4928
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4922
4929
|
};
|
|
4923
4930
|
var childArgs = {
|
|
@@ -4950,7 +4957,7 @@ function useDropdownMenu(options) {
|
|
|
4950
4957
|
});
|
|
4951
4958
|
return menu;
|
|
4952
4959
|
}
|
|
4953
|
-
var propTypes$
|
|
4960
|
+
var propTypes$8 = {
|
|
4954
4961
|
/**
|
|
4955
4962
|
* A render prop that returns a Menu element. The `props`
|
|
4956
4963
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5007,7 +5014,7 @@ var propTypes$2 = {
|
|
|
5007
5014
|
*/
|
|
5008
5015
|
rootCloseEvent: PropTypes.string
|
|
5009
5016
|
};
|
|
5010
|
-
var defaultProps$
|
|
5017
|
+
var defaultProps$r = {
|
|
5011
5018
|
usePopper: true
|
|
5012
5019
|
};
|
|
5013
5020
|
|
|
@@ -5017,7 +5024,7 @@ var defaultProps$d = {
|
|
|
5017
5024
|
* @displayName DropdownMenu
|
|
5018
5025
|
* @memberOf Dropdown
|
|
5019
5026
|
*/
|
|
5020
|
-
function DropdownMenu(_ref2) {
|
|
5027
|
+
function DropdownMenu$1(_ref2) {
|
|
5021
5028
|
var children = _ref2.children,
|
|
5022
5029
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5023
5030
|
|
|
@@ -5025,11 +5032,11 @@ function DropdownMenu(_ref2) {
|
|
|
5025
5032
|
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
5026
5033
|
}
|
|
5027
5034
|
|
|
5028
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
5029
|
-
DropdownMenu.propTypes = propTypes$
|
|
5030
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5035
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
5036
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
5037
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
5031
5038
|
|
|
5032
|
-
var noop$
|
|
5039
|
+
var noop$2 = function noop() {};
|
|
5033
5040
|
/**
|
|
5034
5041
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5035
5042
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5043,11 +5050,11 @@ function useDropdownToggle() {
|
|
|
5043
5050
|
_ref$show = _ref.show,
|
|
5044
5051
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5045
5052
|
_ref$toggle = _ref.toggle,
|
|
5046
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
5053
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
5047
5054
|
setToggle = _ref.setToggle;
|
|
5048
5055
|
|
|
5049
5056
|
return [{
|
|
5050
|
-
ref: setToggle || noop$
|
|
5057
|
+
ref: setToggle || noop$2,
|
|
5051
5058
|
'aria-haspopup': true,
|
|
5052
5059
|
'aria-expanded': !!show
|
|
5053
5060
|
}, {
|
|
@@ -5055,7 +5062,7 @@ function useDropdownToggle() {
|
|
|
5055
5062
|
toggle: toggle
|
|
5056
5063
|
}];
|
|
5057
5064
|
}
|
|
5058
|
-
var propTypes$
|
|
5065
|
+
var propTypes$7 = {
|
|
5059
5066
|
/**
|
|
5060
5067
|
* A render prop that returns a Toggle element. The `props`
|
|
5061
5068
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5080,7 +5087,7 @@ var propTypes$3 = {
|
|
|
5080
5087
|
* @displayName DropdownToggle
|
|
5081
5088
|
* @memberOf Dropdown
|
|
5082
5089
|
*/
|
|
5083
|
-
function DropdownToggle(_ref2) {
|
|
5090
|
+
function DropdownToggle$1(_ref2) {
|
|
5084
5091
|
var children = _ref2.children;
|
|
5085
5092
|
|
|
5086
5093
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5096,10 +5103,10 @@ function DropdownToggle(_ref2) {
|
|
|
5096
5103
|
}));
|
|
5097
5104
|
}
|
|
5098
5105
|
|
|
5099
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5100
|
-
DropdownToggle.propTypes = propTypes$
|
|
5106
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5107
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
5101
5108
|
|
|
5102
|
-
var propTypes$
|
|
5109
|
+
var propTypes$6 = {
|
|
5103
5110
|
/**
|
|
5104
5111
|
* A render prop that returns the root dropdown element. The `props`
|
|
5105
5112
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5171,7 +5178,7 @@ var propTypes$4 = {
|
|
|
5171
5178
|
/**
|
|
5172
5179
|
* @displayName Dropdown
|
|
5173
5180
|
*/
|
|
5174
|
-
function Dropdown(_ref) {
|
|
5181
|
+
function Dropdown$1(_ref) {
|
|
5175
5182
|
var drop = _ref.drop,
|
|
5176
5183
|
alignEnd = _ref.alignEnd,
|
|
5177
5184
|
defaultShow = _ref.defaultShow,
|
|
@@ -5313,15 +5320,15 @@ function Dropdown(_ref) {
|
|
|
5313
5320
|
}));
|
|
5314
5321
|
}
|
|
5315
5322
|
|
|
5316
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5317
|
-
Dropdown.propTypes = propTypes$
|
|
5318
|
-
Dropdown.Menu = DropdownMenu;
|
|
5319
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5323
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5324
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5325
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5326
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5320
5327
|
|
|
5321
5328
|
var NavContext = React.createContext(null);
|
|
5322
5329
|
NavContext.displayName = 'NavContext';
|
|
5323
5330
|
|
|
5324
|
-
var defaultProps$
|
|
5331
|
+
var defaultProps$q = {
|
|
5325
5332
|
as: SafeAnchor,
|
|
5326
5333
|
disabled: false
|
|
5327
5334
|
};
|
|
@@ -5370,7 +5377,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5370
5377
|
);
|
|
5371
5378
|
});
|
|
5372
5379
|
DropdownItem.displayName = 'DropdownItem';
|
|
5373
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5380
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5374
5381
|
|
|
5375
5382
|
var toFnRef = function toFnRef(ref) {
|
|
5376
5383
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5409,8 +5416,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5409
5416
|
}, [refA, refB]);
|
|
5410
5417
|
}
|
|
5411
5418
|
|
|
5412
|
-
var context
|
|
5413
|
-
context
|
|
5419
|
+
var context = React.createContext(null);
|
|
5420
|
+
context.displayName = 'NavbarContext';
|
|
5414
5421
|
|
|
5415
5422
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5416
5423
|
// @ts-ignore
|
|
@@ -5531,13 +5538,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5531
5538
|
}), PropTypes.shape({
|
|
5532
5539
|
xl: alignDirection
|
|
5533
5540
|
})]);
|
|
5534
|
-
var defaultProps$
|
|
5541
|
+
var defaultProps$p = {
|
|
5535
5542
|
align: 'left',
|
|
5536
5543
|
alignRight: false,
|
|
5537
5544
|
flip: true
|
|
5538
5545
|
}; // TODO: remove this hack
|
|
5539
5546
|
|
|
5540
|
-
var DropdownMenu
|
|
5547
|
+
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
5541
5548
|
var bsPrefix = _ref.bsPrefix,
|
|
5542
5549
|
className = _ref.className,
|
|
5543
5550
|
align = _ref.align,
|
|
@@ -5551,7 +5558,7 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5551
5558
|
popperConfig = _ref.popperConfig,
|
|
5552
5559
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5553
5560
|
|
|
5554
|
-
var isNavbar = useContext(context
|
|
5561
|
+
var isNavbar = useContext(context);
|
|
5555
5562
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5556
5563
|
|
|
5557
5564
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5616,8 +5623,8 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5616
5623
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5617
5624
|
}));
|
|
5618
5625
|
});
|
|
5619
|
-
DropdownMenu
|
|
5620
|
-
DropdownMenu
|
|
5626
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5627
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5621
5628
|
|
|
5622
5629
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5623
5630
|
|
|
@@ -5646,7 +5653,7 @@ module.exports = exports['default'];
|
|
|
5646
5653
|
|
|
5647
5654
|
unwrapExports(isRequiredForA11y_1);
|
|
5648
5655
|
|
|
5649
|
-
var DropdownToggle
|
|
5656
|
+
var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
5650
5657
|
var bsPrefix = _ref.bsPrefix,
|
|
5651
5658
|
split = _ref.split,
|
|
5652
5659
|
className = _ref.className,
|
|
@@ -5673,7 +5680,7 @@ var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5673
5680
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5674
5681
|
}, toggleProps, props));
|
|
5675
5682
|
});
|
|
5676
|
-
DropdownToggle
|
|
5683
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5677
5684
|
|
|
5678
5685
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5679
5686
|
defaultProps: {
|
|
@@ -5688,10 +5695,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5688
5695
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5689
5696
|
Component: 'span'
|
|
5690
5697
|
});
|
|
5691
|
-
var defaultProps$
|
|
5698
|
+
var defaultProps$o = {
|
|
5692
5699
|
navbar: false
|
|
5693
5700
|
};
|
|
5694
|
-
var Dropdown
|
|
5701
|
+
var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
5695
5702
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5696
5703
|
show: 'onToggle'
|
|
5697
5704
|
}),
|
|
@@ -5730,7 +5737,7 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5730
5737
|
});
|
|
5731
5738
|
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5732
5739
|
value: handleSelect
|
|
5733
|
-
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5740
|
+
}, /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
5734
5741
|
drop: drop,
|
|
5735
5742
|
show: show,
|
|
5736
5743
|
alignEnd: alignRight,
|
|
@@ -5745,14 +5752,14 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5745
5752
|
}));
|
|
5746
5753
|
}));
|
|
5747
5754
|
});
|
|
5748
|
-
Dropdown
|
|
5749
|
-
Dropdown
|
|
5750
|
-
Dropdown
|
|
5751
|
-
Dropdown
|
|
5752
|
-
Dropdown
|
|
5753
|
-
Dropdown
|
|
5754
|
-
Dropdown
|
|
5755
|
-
Dropdown
|
|
5755
|
+
Dropdown.displayName = 'Dropdown';
|
|
5756
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5757
|
+
Dropdown.Divider = DropdownDivider;
|
|
5758
|
+
Dropdown.Header = DropdownHeader;
|
|
5759
|
+
Dropdown.Item = DropdownItem;
|
|
5760
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5761
|
+
Dropdown.Menu = DropdownMenu;
|
|
5762
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5756
5763
|
|
|
5757
5764
|
var propTypes$5 = {
|
|
5758
5765
|
/**
|
|
@@ -5829,16 +5836,16 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
5829
5836
|
id = _ref.id,
|
|
5830
5837
|
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5831
5838
|
|
|
5832
|
-
return /*#__PURE__*/React.createElement(Dropdown
|
|
5839
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
5833
5840
|
ref: ref
|
|
5834
|
-
}, props), /*#__PURE__*/React.createElement(DropdownToggle
|
|
5841
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
5835
5842
|
id: id,
|
|
5836
5843
|
href: href,
|
|
5837
5844
|
size: size,
|
|
5838
5845
|
variant: variant,
|
|
5839
5846
|
disabled: disabled,
|
|
5840
5847
|
childBsPrefix: bsPrefix
|
|
5841
|
-
}, title), /*#__PURE__*/React.createElement(DropdownMenu
|
|
5848
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
5842
5849
|
align: menuAlign,
|
|
5843
5850
|
role: menuRole,
|
|
5844
5851
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5941,7 +5948,7 @@ module.exports = exports['default'];
|
|
|
5941
5948
|
|
|
5942
5949
|
unwrapExports(all_1);
|
|
5943
5950
|
|
|
5944
|
-
var propTypes$
|
|
5951
|
+
var propTypes$4 = {
|
|
5945
5952
|
/**
|
|
5946
5953
|
* Specify whether the feedback is for valid or invalid fields
|
|
5947
5954
|
*
|
|
@@ -5970,7 +5977,7 @@ function (_ref, ref) {
|
|
|
5970
5977
|
}));
|
|
5971
5978
|
});
|
|
5972
5979
|
Feedback.displayName = 'Feedback';
|
|
5973
|
-
Feedback.propTypes = propTypes$
|
|
5980
|
+
Feedback.propTypes = propTypes$4;
|
|
5974
5981
|
|
|
5975
5982
|
var FormContext = React.createContext({
|
|
5976
5983
|
controlId: undefined
|
|
@@ -6320,7 +6327,7 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6320
6327
|
});
|
|
6321
6328
|
FormGroup.displayName = 'FormGroup';
|
|
6322
6329
|
|
|
6323
|
-
var defaultProps$
|
|
6330
|
+
var defaultProps$n = {
|
|
6324
6331
|
column: false,
|
|
6325
6332
|
srOnly: false
|
|
6326
6333
|
};
|
|
@@ -6359,7 +6366,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6359
6366
|
);
|
|
6360
6367
|
});
|
|
6361
6368
|
FormLabel.displayName = 'FormLabel';
|
|
6362
|
-
FormLabel.defaultProps = defaultProps$
|
|
6369
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6363
6370
|
|
|
6364
6371
|
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
|
|
6365
6372
|
function (_ref, ref) {
|
|
@@ -6389,7 +6396,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6389
6396
|
Switch.Label = FormCheck.Label;
|
|
6390
6397
|
|
|
6391
6398
|
var FormRow = createWithBsPrefix('form-row');
|
|
6392
|
-
var defaultProps$
|
|
6399
|
+
var defaultProps$m = {
|
|
6393
6400
|
inline: false
|
|
6394
6401
|
};
|
|
6395
6402
|
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
@@ -6408,7 +6415,7 @@ var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
|
6408
6415
|
}));
|
|
6409
6416
|
});
|
|
6410
6417
|
FormImpl.displayName = 'Form';
|
|
6411
|
-
FormImpl.defaultProps = defaultProps$
|
|
6418
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6412
6419
|
FormImpl.Row = FormRow;
|
|
6413
6420
|
FormImpl.Group = FormGroup;
|
|
6414
6421
|
FormImpl.Control = FormControl$1;
|
|
@@ -6418,7 +6425,7 @@ FormImpl.Switch = Switch;
|
|
|
6418
6425
|
FormImpl.Label = FormLabel;
|
|
6419
6426
|
FormImpl.Text = FormText;
|
|
6420
6427
|
|
|
6421
|
-
var defaultProps$
|
|
6428
|
+
var defaultProps$l = {
|
|
6422
6429
|
fluid: false
|
|
6423
6430
|
};
|
|
6424
6431
|
var Container = React.forwardRef(function (_ref, ref) {
|
|
@@ -6438,9 +6445,9 @@ var Container = React.forwardRef(function (_ref, ref) {
|
|
|
6438
6445
|
}));
|
|
6439
6446
|
});
|
|
6440
6447
|
Container.displayName = 'Container';
|
|
6441
|
-
Container.defaultProps = defaultProps$
|
|
6448
|
+
Container.defaultProps = defaultProps$l;
|
|
6442
6449
|
|
|
6443
|
-
var propTypes$
|
|
6450
|
+
var propTypes$3 = {
|
|
6444
6451
|
/**
|
|
6445
6452
|
* @default 'img'
|
|
6446
6453
|
*/
|
|
@@ -6493,7 +6500,7 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6493
6500
|
Image.displayName = 'Image';
|
|
6494
6501
|
Image.defaultProps = defaultProps$k;
|
|
6495
6502
|
|
|
6496
|
-
var defaultProps$
|
|
6503
|
+
var defaultProps$j = {
|
|
6497
6504
|
fluid: true
|
|
6498
6505
|
};
|
|
6499
6506
|
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
@@ -6507,8 +6514,8 @@ var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
|
6507
6514
|
}));
|
|
6508
6515
|
});
|
|
6509
6516
|
FigureImage.displayName = 'FigureImage';
|
|
6510
|
-
FigureImage.propTypes = propTypes$
|
|
6511
|
-
FigureImage.defaultProps = defaultProps$
|
|
6517
|
+
FigureImage.propTypes = propTypes$3;
|
|
6518
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6512
6519
|
|
|
6513
6520
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6514
6521
|
Component: 'figcaption'
|
|
@@ -6571,7 +6578,7 @@ _extends({}, InputGroup, {
|
|
|
6571
6578
|
Prepend: InputGroupPrepend
|
|
6572
6579
|
});
|
|
6573
6580
|
|
|
6574
|
-
var defaultProps$
|
|
6581
|
+
var defaultProps$i = {
|
|
6575
6582
|
fluid: false
|
|
6576
6583
|
};
|
|
6577
6584
|
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
@@ -6592,13 +6599,13 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6592
6599
|
className: classnames(className, classes)
|
|
6593
6600
|
}));
|
|
6594
6601
|
});
|
|
6595
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6602
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6596
6603
|
Jumbotron.displayName = 'Jumbotron';
|
|
6597
6604
|
|
|
6598
6605
|
var TabContext = React.createContext(null);
|
|
6599
6606
|
|
|
6600
6607
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6601
|
-
var noop$
|
|
6608
|
+
var noop$1 = function noop() {};
|
|
6602
6609
|
|
|
6603
6610
|
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6604
6611
|
var _ref$as = _ref.as,
|
|
@@ -6688,8 +6695,8 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6688
6695
|
role: role,
|
|
6689
6696
|
// used by NavLink to determine it's role
|
|
6690
6697
|
activeKey: makeEventKey(activeKey),
|
|
6691
|
-
getControlledId: getControlledId || noop$
|
|
6692
|
-
getControllerId: getControllerId || noop$
|
|
6698
|
+
getControlledId: getControlledId || noop$1,
|
|
6699
|
+
getControllerId: getControllerId || noop$1
|
|
6693
6700
|
}
|
|
6694
6701
|
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6695
6702
|
onKeyDown: handleKeyDown,
|
|
@@ -6698,7 +6705,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6698
6705
|
}))));
|
|
6699
6706
|
});
|
|
6700
6707
|
|
|
6701
|
-
var defaultProps$
|
|
6708
|
+
var defaultProps$h = {
|
|
6702
6709
|
disabled: false
|
|
6703
6710
|
};
|
|
6704
6711
|
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
@@ -6744,9 +6751,9 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6744
6751
|
className: classnames(className, isActive && 'active')
|
|
6745
6752
|
}));
|
|
6746
6753
|
});
|
|
6747
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6754
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6748
6755
|
|
|
6749
|
-
var defaultProps$
|
|
6756
|
+
var defaultProps$g = {
|
|
6750
6757
|
variant: undefined,
|
|
6751
6758
|
active: false,
|
|
6752
6759
|
disabled: false
|
|
@@ -6784,10 +6791,10 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6784
6791
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6785
6792
|
}));
|
|
6786
6793
|
});
|
|
6787
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6794
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6788
6795
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6789
6796
|
|
|
6790
|
-
var defaultProps$
|
|
6797
|
+
var defaultProps$f = {
|
|
6791
6798
|
variant: undefined,
|
|
6792
6799
|
horizontal: undefined
|
|
6793
6800
|
};
|
|
@@ -6820,7 +6827,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6820
6827
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6821
6828
|
}));
|
|
6822
6829
|
});
|
|
6823
|
-
ListGroup.defaultProps = defaultProps$
|
|
6830
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6824
6831
|
ListGroup.displayName = 'ListGroup';
|
|
6825
6832
|
ListGroup.Item = ListGroupItem;
|
|
6826
6833
|
|
|
@@ -6869,7 +6876,7 @@ function scrollbarSize(recalc) {
|
|
|
6869
6876
|
|
|
6870
6877
|
function activeElement(doc) {
|
|
6871
6878
|
if (doc === void 0) {
|
|
6872
|
-
doc = ownerDocument();
|
|
6879
|
+
doc = ownerDocument$1();
|
|
6873
6880
|
}
|
|
6874
6881
|
|
|
6875
6882
|
// Support: IE 9 only
|
|
@@ -6919,7 +6926,7 @@ function isBody(node) {
|
|
|
6919
6926
|
}
|
|
6920
6927
|
|
|
6921
6928
|
function bodyIsOverflowing(node) {
|
|
6922
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6929
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6923
6930
|
var win = isWindow(node) || doc.defaultView;
|
|
6924
6931
|
return doc.body.clientWidth < win.innerWidth;
|
|
6925
6932
|
}
|
|
@@ -7131,7 +7138,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7131
7138
|
var _ref;
|
|
7132
7139
|
|
|
7133
7140
|
if (typeof document === 'undefined') return null;
|
|
7134
|
-
if (ref == null) return ownerDocument().body;
|
|
7141
|
+
if (ref == null) return ownerDocument$1().body;
|
|
7135
7142
|
if (typeof ref === 'function') ref = ref();
|
|
7136
7143
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7137
7144
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7164,11 +7171,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7164
7171
|
return resolvedRef;
|
|
7165
7172
|
}
|
|
7166
7173
|
|
|
7167
|
-
var manager;
|
|
7174
|
+
var manager$1;
|
|
7168
7175
|
|
|
7169
7176
|
function getManager() {
|
|
7170
|
-
if (!manager) manager = new ModalManager();
|
|
7171
|
-
return manager;
|
|
7177
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7178
|
+
return manager$1;
|
|
7172
7179
|
}
|
|
7173
7180
|
|
|
7174
7181
|
function useModalManager(provided) {
|
|
@@ -7196,7 +7203,7 @@ function useModalManager(provided) {
|
|
|
7196
7203
|
});
|
|
7197
7204
|
}
|
|
7198
7205
|
|
|
7199
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7206
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7200
7207
|
var _ref$show = _ref.show,
|
|
7201
7208
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7202
7209
|
_ref$role = _ref.role,
|
|
@@ -7280,7 +7287,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7280
7287
|
if (autoFocus) {
|
|
7281
7288
|
var currentActiveElement = activeElement(document);
|
|
7282
7289
|
|
|
7283
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7290
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7284
7291
|
lastFocusRef.current = currentActiveElement;
|
|
7285
7292
|
modal.dialog.focus();
|
|
7286
7293
|
}
|
|
@@ -7326,7 +7333,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7326
7333
|
|
|
7327
7334
|
var currentActiveElement = activeElement();
|
|
7328
7335
|
|
|
7329
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7336
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7330
7337
|
modal.dialog.focus();
|
|
7331
7338
|
}
|
|
7332
7339
|
});
|
|
@@ -7417,7 +7424,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7417
7424
|
|
|
7418
7425
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7419
7426
|
});
|
|
7420
|
-
var propTypes$
|
|
7427
|
+
var propTypes$2 = {
|
|
7421
7428
|
/**
|
|
7422
7429
|
* Set the visibility of the Modal
|
|
7423
7430
|
*/
|
|
@@ -7573,9 +7580,9 @@ var propTypes$8 = {
|
|
|
7573
7580
|
*/
|
|
7574
7581
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7575
7582
|
};
|
|
7576
|
-
Modal.displayName = 'Modal';
|
|
7577
|
-
Modal.propTypes = propTypes$
|
|
7578
|
-
var BaseModal = Object.assign(Modal, {
|
|
7583
|
+
Modal$1.displayName = 'Modal';
|
|
7584
|
+
Modal$1.propTypes = propTypes$2;
|
|
7585
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7579
7586
|
Manager: ModalManager
|
|
7580
7587
|
});
|
|
7581
7588
|
|
|
@@ -7682,7 +7689,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7682
7689
|
|
|
7683
7690
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7684
7691
|
|
|
7685
|
-
var defaultProps$
|
|
7692
|
+
var defaultProps$e = {
|
|
7686
7693
|
closeLabel: 'Close',
|
|
7687
7694
|
closeButton: false
|
|
7688
7695
|
};
|
|
@@ -7711,15 +7718,15 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7711
7718
|
}));
|
|
7712
7719
|
});
|
|
7713
7720
|
ModalHeader.displayName = 'ModalHeader';
|
|
7714
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7721
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7715
7722
|
|
|
7716
|
-
var DivStyledAsH4
|
|
7723
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7717
7724
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7718
|
-
Component: DivStyledAsH4
|
|
7725
|
+
Component: DivStyledAsH4
|
|
7719
7726
|
});
|
|
7720
7727
|
|
|
7721
|
-
var manager
|
|
7722
|
-
var defaultProps$
|
|
7728
|
+
var manager;
|
|
7729
|
+
var defaultProps$d = {
|
|
7723
7730
|
show: false,
|
|
7724
7731
|
backdrop: true,
|
|
7725
7732
|
keyboard: true,
|
|
@@ -7741,7 +7748,7 @@ function BackdropTransition(props) {
|
|
|
7741
7748
|
/* eslint-enable no-use-before-define */
|
|
7742
7749
|
|
|
7743
7750
|
|
|
7744
|
-
var Modal
|
|
7751
|
+
var Modal = React.forwardRef(function (_ref, ref) {
|
|
7745
7752
|
var bsPrefix = _ref.bsPrefix,
|
|
7746
7753
|
className = _ref.className,
|
|
7747
7754
|
style = _ref.style,
|
|
@@ -7807,14 +7814,14 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7807
7814
|
|
|
7808
7815
|
function getModalManager() {
|
|
7809
7816
|
if (propsManager) return propsManager;
|
|
7810
|
-
if (!manager
|
|
7811
|
-
return manager
|
|
7817
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7818
|
+
return manager;
|
|
7812
7819
|
}
|
|
7813
7820
|
|
|
7814
7821
|
function updateDialogStyle(node) {
|
|
7815
7822
|
if (!canUseDOM) return;
|
|
7816
7823
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7817
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7824
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7818
7825
|
setStyle({
|
|
7819
7826
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7820
7827
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7995,15 +8002,15 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7995
8002
|
renderDialog: renderDialog
|
|
7996
8003
|
}));
|
|
7997
8004
|
});
|
|
7998
|
-
Modal
|
|
7999
|
-
Modal
|
|
8000
|
-
Modal
|
|
8001
|
-
Modal
|
|
8002
|
-
Modal
|
|
8003
|
-
Modal
|
|
8004
|
-
Modal
|
|
8005
|
-
Modal
|
|
8006
|
-
Modal
|
|
8005
|
+
Modal.displayName = 'Modal';
|
|
8006
|
+
Modal.defaultProps = defaultProps$d;
|
|
8007
|
+
Modal.Body = ModalBody;
|
|
8008
|
+
Modal.Header = ModalHeader;
|
|
8009
|
+
Modal.Title = ModalTitle;
|
|
8010
|
+
Modal.Footer = ModalFooter;
|
|
8011
|
+
Modal.Dialog = ModalDialog;
|
|
8012
|
+
Modal.TRANSITION_DURATION = 300;
|
|
8013
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8007
8014
|
|
|
8008
8015
|
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
|
|
8009
8016
|
function (_ref, ref) {
|
|
@@ -8022,7 +8029,7 @@ function (_ref, ref) {
|
|
|
8022
8029
|
});
|
|
8023
8030
|
NavItem.displayName = 'NavItem';
|
|
8024
8031
|
|
|
8025
|
-
var defaultProps$
|
|
8032
|
+
var defaultProps$c = {
|
|
8026
8033
|
disabled: false,
|
|
8027
8034
|
as: SafeAnchor
|
|
8028
8035
|
};
|
|
@@ -8048,9 +8055,9 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
8048
8055
|
}));
|
|
8049
8056
|
});
|
|
8050
8057
|
NavLink.displayName = 'NavLink';
|
|
8051
|
-
NavLink.defaultProps = defaultProps$
|
|
8058
|
+
NavLink.defaultProps = defaultProps$c;
|
|
8052
8059
|
|
|
8053
|
-
var defaultProps$
|
|
8060
|
+
var defaultProps$b = {
|
|
8054
8061
|
justify: false,
|
|
8055
8062
|
fill: false
|
|
8056
8063
|
};
|
|
@@ -8076,7 +8083,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8076
8083
|
var navbarBsPrefix;
|
|
8077
8084
|
var cardHeaderBsPrefix;
|
|
8078
8085
|
var isNavbar = false;
|
|
8079
|
-
var navbarContext = useContext(context
|
|
8086
|
+
var navbarContext = useContext(context);
|
|
8080
8087
|
var cardContext = useContext(context$1);
|
|
8081
8088
|
|
|
8082
8089
|
if (navbarContext) {
|
|
@@ -8094,7 +8101,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8094
8101
|
}, props), children);
|
|
8095
8102
|
});
|
|
8096
8103
|
Nav.displayName = 'Nav';
|
|
8097
|
-
Nav.defaultProps = defaultProps$
|
|
8104
|
+
Nav.defaultProps = defaultProps$b;
|
|
8098
8105
|
Nav.Item = NavItem;
|
|
8099
8106
|
Nav.Link = NavLink;
|
|
8100
8107
|
|
|
@@ -8119,7 +8126,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8119
8126
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8120
8127
|
|
|
8121
8128
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8122
|
-
return /*#__PURE__*/React.createElement(context
|
|
8129
|
+
return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
|
|
8123
8130
|
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8124
8131
|
in: !!(context && context.expanded)
|
|
8125
8132
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
@@ -8130,7 +8137,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8130
8137
|
});
|
|
8131
8138
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8132
8139
|
|
|
8133
|
-
var defaultProps$
|
|
8140
|
+
var defaultProps$a = {
|
|
8134
8141
|
label: 'Toggle navigation'
|
|
8135
8142
|
};
|
|
8136
8143
|
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
@@ -8145,7 +8152,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8145
8152
|
|
|
8146
8153
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8147
8154
|
|
|
8148
|
-
var _ref2 = useContext(context
|
|
8155
|
+
var _ref2 = useContext(context) || {},
|
|
8149
8156
|
onToggle = _ref2.onToggle,
|
|
8150
8157
|
expanded = _ref2.expanded;
|
|
8151
8158
|
|
|
@@ -8168,12 +8175,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8168
8175
|
}));
|
|
8169
8176
|
});
|
|
8170
8177
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8171
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8178
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
8172
8179
|
|
|
8173
8180
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8174
8181
|
Component: 'span'
|
|
8175
8182
|
});
|
|
8176
|
-
var defaultProps$
|
|
8183
|
+
var defaultProps$9 = {
|
|
8177
8184
|
expand: true,
|
|
8178
8185
|
variant: 'light',
|
|
8179
8186
|
collapseOnSelect: false
|
|
@@ -8226,7 +8233,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8226
8233
|
expanded: !!expanded
|
|
8227
8234
|
};
|
|
8228
8235
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8229
|
-
return /*#__PURE__*/React.createElement(context
|
|
8236
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
8230
8237
|
value: navbarContext
|
|
8231
8238
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8232
8239
|
value: handleCollapse
|
|
@@ -8236,14 +8243,14 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8236
8243
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8237
8244
|
}), children)));
|
|
8238
8245
|
});
|
|
8239
|
-
Navbar.defaultProps = defaultProps$
|
|
8246
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8240
8247
|
Navbar.displayName = 'Navbar';
|
|
8241
8248
|
Navbar.Brand = NavbarBrand;
|
|
8242
8249
|
Navbar.Toggle = NavbarToggle;
|
|
8243
8250
|
Navbar.Collapse = NavbarCollapse;
|
|
8244
8251
|
Navbar.Text = NavbarText;
|
|
8245
8252
|
|
|
8246
|
-
var propTypes$
|
|
8253
|
+
var propTypes$1 = {
|
|
8247
8254
|
/**
|
|
8248
8255
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8249
8256
|
* @type {string|number}
|
|
@@ -8291,29 +8298,29 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8291
8298
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8292
8299
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8293
8300
|
|
|
8294
|
-
return /*#__PURE__*/React.createElement(Dropdown
|
|
8301
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8295
8302
|
ref: ref
|
|
8296
8303
|
}, props, {
|
|
8297
8304
|
as: NavItem
|
|
8298
|
-
}), /*#__PURE__*/React.createElement(Dropdown
|
|
8305
|
+
}), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8299
8306
|
id: id,
|
|
8300
8307
|
eventKey: null,
|
|
8301
8308
|
active: active,
|
|
8302
8309
|
disabled: disabled,
|
|
8303
8310
|
childBsPrefix: bsPrefix,
|
|
8304
8311
|
as: NavLink
|
|
8305
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown
|
|
8312
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8306
8313
|
role: menuRole,
|
|
8307
8314
|
renderOnMount: renderMenuOnMount,
|
|
8308
8315
|
rootCloseEvent: rootCloseEvent
|
|
8309
8316
|
}, children));
|
|
8310
8317
|
});
|
|
8311
8318
|
NavDropdown.displayName = 'NavDropdown';
|
|
8312
|
-
NavDropdown.propTypes = propTypes$
|
|
8313
|
-
NavDropdown.Item = Dropdown
|
|
8314
|
-
NavDropdown.ItemText = Dropdown
|
|
8315
|
-
NavDropdown.Divider = Dropdown
|
|
8316
|
-
NavDropdown.Header = Dropdown
|
|
8319
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8320
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8321
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8322
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8323
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8317
8324
|
|
|
8318
8325
|
/**
|
|
8319
8326
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8570,7 +8577,7 @@ Overlay.propTypes = {
|
|
|
8570
8577
|
return RefHolder;
|
|
8571
8578
|
})(React.Component);
|
|
8572
8579
|
|
|
8573
|
-
var defaultProps$
|
|
8580
|
+
var defaultProps$8 = {
|
|
8574
8581
|
active: false,
|
|
8575
8582
|
disabled: false,
|
|
8576
8583
|
activeLabel: '(current)'
|
|
@@ -8599,7 +8606,7 @@ var PageItem = React.forwardRef(function (_ref, ref) {
|
|
|
8599
8606
|
className: "sr-only"
|
|
8600
8607
|
}, activeLabel)));
|
|
8601
8608
|
});
|
|
8602
|
-
PageItem.defaultProps = defaultProps$
|
|
8609
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8603
8610
|
PageItem.displayName = 'PageItem';
|
|
8604
8611
|
|
|
8605
8612
|
function createButton(name, defaultValue, label) {
|
|
@@ -8689,7 +8696,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8689
8696
|
}), children);
|
|
8690
8697
|
});
|
|
8691
8698
|
|
|
8692
|
-
var defaultProps$
|
|
8699
|
+
var defaultProps$7 = {
|
|
8693
8700
|
placement: 'right'
|
|
8694
8701
|
};
|
|
8695
8702
|
var Popover = React.forwardRef(function (_ref, ref) {
|
|
@@ -8719,13 +8726,13 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8719
8726
|
className: "arrow"
|
|
8720
8727
|
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8721
8728
|
});
|
|
8722
|
-
Popover.defaultProps = defaultProps$
|
|
8729
|
+
Popover.defaultProps = defaultProps$7;
|
|
8723
8730
|
Popover.Title = PopoverTitle;
|
|
8724
8731
|
Popover.Content = PopoverContent;
|
|
8725
8732
|
|
|
8726
8733
|
var ROUND_PRECISION = 1000;
|
|
8727
8734
|
|
|
8728
|
-
var defaultProps$
|
|
8735
|
+
var defaultProps$6 = {
|
|
8729
8736
|
min: 0,
|
|
8730
8737
|
max: 100,
|
|
8731
8738
|
animated: false,
|
|
@@ -8815,9 +8822,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8815
8822
|
}, ref));
|
|
8816
8823
|
});
|
|
8817
8824
|
ProgressBar.displayName = 'ProgressBar';
|
|
8818
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8825
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8819
8826
|
|
|
8820
|
-
var defaultProps$
|
|
8827
|
+
var defaultProps$5 = {
|
|
8821
8828
|
aspectRatio: '1by1'
|
|
8822
8829
|
};
|
|
8823
8830
|
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
@@ -8837,10 +8844,10 @@ var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
|
8837
8844
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8838
8845
|
}));
|
|
8839
8846
|
});
|
|
8840
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8847
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8841
8848
|
|
|
8842
|
-
var DEVICE_SIZES
|
|
8843
|
-
var defaultProps$
|
|
8849
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8850
|
+
var defaultProps$4 = {
|
|
8844
8851
|
noGutters: false
|
|
8845
8852
|
};
|
|
8846
8853
|
var Row = React.forwardRef(function (_ref, ref) {
|
|
@@ -8854,7 +8861,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8854
8861
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8855
8862
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8856
8863
|
var classes = [];
|
|
8857
|
-
DEVICE_SIZES
|
|
8864
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8858
8865
|
var propValue = props[brkPoint];
|
|
8859
8866
|
delete props[brkPoint];
|
|
8860
8867
|
var cols;
|
|
@@ -8875,7 +8882,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8875
8882
|
}));
|
|
8876
8883
|
});
|
|
8877
8884
|
Row.displayName = 'Row';
|
|
8878
|
-
Row.defaultProps = defaultProps$
|
|
8885
|
+
Row.defaultProps = defaultProps$4;
|
|
8879
8886
|
|
|
8880
8887
|
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8881
8888
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8898,7 +8905,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8898
8905
|
});
|
|
8899
8906
|
Spinner.displayName = 'Spinner';
|
|
8900
8907
|
|
|
8901
|
-
var propTypes
|
|
8908
|
+
var propTypes = {
|
|
8902
8909
|
/**
|
|
8903
8910
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8904
8911
|
* @type {string|number}
|
|
@@ -8960,7 +8967,7 @@ var propTypes$a = {
|
|
|
8960
8967
|
/** @ignore */
|
|
8961
8968
|
size: PropTypes.string
|
|
8962
8969
|
};
|
|
8963
|
-
var defaultProps$
|
|
8970
|
+
var defaultProps$3 = {
|
|
8964
8971
|
toggleLabel: 'Toggle dropdown',
|
|
8965
8972
|
type: 'button'
|
|
8966
8973
|
};
|
|
@@ -8982,7 +8989,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8982
8989
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8983
8990
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8984
8991
|
|
|
8985
|
-
return /*#__PURE__*/React.createElement(Dropdown
|
|
8992
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8986
8993
|
ref: ref
|
|
8987
8994
|
}, props, {
|
|
8988
8995
|
as: ButtonGroup
|
|
@@ -8995,7 +9002,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8995
9002
|
target: target,
|
|
8996
9003
|
onClick: onClick,
|
|
8997
9004
|
type: type
|
|
8998
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown
|
|
9005
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8999
9006
|
split: true,
|
|
9000
9007
|
id: id ? id.toString() : undefined,
|
|
9001
9008
|
size: size,
|
|
@@ -9004,15 +9011,15 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
9004
9011
|
childBsPrefix: bsPrefix
|
|
9005
9012
|
}, /*#__PURE__*/React.createElement("span", {
|
|
9006
9013
|
className: "sr-only"
|
|
9007
|
-
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown
|
|
9014
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
9008
9015
|
align: menuAlign,
|
|
9009
9016
|
role: menuRole,
|
|
9010
9017
|
renderOnMount: renderMenuOnMount,
|
|
9011
9018
|
rootCloseEvent: rootCloseEvent
|
|
9012
9019
|
}, children));
|
|
9013
9020
|
});
|
|
9014
|
-
SplitButton.propTypes = propTypes
|
|
9015
|
-
SplitButton.defaultProps = defaultProps$
|
|
9021
|
+
SplitButton.propTypes = propTypes;
|
|
9022
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
9016
9023
|
SplitButton.displayName = 'SplitButton';
|
|
9017
9024
|
|
|
9018
9025
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9201,7 +9208,7 @@ var ToastContext = React.createContext({
|
|
|
9201
9208
|
onClose: function onClose() {}
|
|
9202
9209
|
});
|
|
9203
9210
|
|
|
9204
|
-
var defaultProps$
|
|
9211
|
+
var defaultProps$2 = {
|
|
9205
9212
|
closeLabel: 'Close',
|
|
9206
9213
|
closeButton: true
|
|
9207
9214
|
};
|
|
@@ -9232,7 +9239,7 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9232
9239
|
}));
|
|
9233
9240
|
});
|
|
9234
9241
|
ToastHeader.displayName = 'ToastHeader';
|
|
9235
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9242
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9236
9243
|
|
|
9237
9244
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9238
9245
|
|
|
@@ -9299,7 +9306,7 @@ Object.assign(Toast, {
|
|
|
9299
9306
|
Header: ToastHeader
|
|
9300
9307
|
});
|
|
9301
9308
|
|
|
9302
|
-
var noop
|
|
9309
|
+
var noop = function noop() {
|
|
9303
9310
|
return undefined;
|
|
9304
9311
|
};
|
|
9305
9312
|
|
|
@@ -9341,12 +9348,12 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9341
9348
|
disabled: !!disabled,
|
|
9342
9349
|
onFocus: handleFocus,
|
|
9343
9350
|
onBlur: handleBlur,
|
|
9344
|
-
onChange: onChange || noop
|
|
9351
|
+
onChange: onChange || noop
|
|
9345
9352
|
}), children);
|
|
9346
9353
|
});
|
|
9347
9354
|
ToggleButton.displayName = 'ToggleButton';
|
|
9348
9355
|
|
|
9349
|
-
var defaultProps$
|
|
9356
|
+
var defaultProps$1 = {
|
|
9350
9357
|
type: 'radio',
|
|
9351
9358
|
vertical: false
|
|
9352
9359
|
};
|
|
@@ -9409,10 +9416,10 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9409
9416
|
});
|
|
9410
9417
|
}));
|
|
9411
9418
|
});
|
|
9412
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9419
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9413
9420
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9414
9421
|
|
|
9415
|
-
var defaultProps
|
|
9422
|
+
var defaultProps = {
|
|
9416
9423
|
placement: 'right'
|
|
9417
9424
|
};
|
|
9418
9425
|
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
@@ -9443,10 +9450,10 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9443
9450
|
className: bsPrefix + "-inner"
|
|
9444
9451
|
}, children));
|
|
9445
9452
|
});
|
|
9446
|
-
Tooltip.defaultProps = defaultProps
|
|
9453
|
+
Tooltip.defaultProps = defaultProps;
|
|
9447
9454
|
Tooltip.displayName = 'Tooltip';
|
|
9448
9455
|
|
|
9449
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9456
|
+
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";
|
|
9450
9457
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9451
9458
|
styleInject(css);
|
|
9452
9459
|
|
|
@@ -9534,11 +9541,11 @@ var Filter = function Filter(_ref) {
|
|
|
9534
9541
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9535
9542
|
grandChildData = _useState6[0],
|
|
9536
9543
|
setGrandChildData = _useState6[1];
|
|
9537
|
-
/*
|
|
9538
|
-
{parent: showAll,
|
|
9539
|
-
chidlren: show selected from parent,
|
|
9540
|
-
grandchildren: show selected from children
|
|
9541
|
-
}
|
|
9544
|
+
/*
|
|
9545
|
+
{parent: showAll,
|
|
9546
|
+
chidlren: show selected from parent,
|
|
9547
|
+
grandchildren: show selected from children
|
|
9548
|
+
}
|
|
9542
9549
|
*/
|
|
9543
9550
|
|
|
9544
9551
|
|
|
@@ -9593,7 +9600,7 @@ var Filter = function Filter(_ref) {
|
|
|
9593
9600
|
DropdownButton,
|
|
9594
9601
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9595
9602
|
React.createElement(
|
|
9596
|
-
Dropdown
|
|
9603
|
+
Dropdown.Item,
|
|
9597
9604
|
{ onSelect: function onSelect() {
|
|
9598
9605
|
return handleFilterSelect({}, 'parent');
|
|
9599
9606
|
} },
|
|
@@ -9601,7 +9608,7 @@ var Filter = function Filter(_ref) {
|
|
|
9601
9608
|
),
|
|
9602
9609
|
parentData.data.map(function (docGroup) {
|
|
9603
9610
|
return React.createElement(
|
|
9604
|
-
Dropdown
|
|
9611
|
+
Dropdown.Item,
|
|
9605
9612
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9606
9613
|
return handleFilterSelect(docGroup, 'parent');
|
|
9607
9614
|
} },
|
|
@@ -9613,7 +9620,7 @@ var Filter = function Filter(_ref) {
|
|
|
9613
9620
|
DropdownButton,
|
|
9614
9621
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9615
9622
|
!parentData && React.createElement(
|
|
9616
|
-
Dropdown
|
|
9623
|
+
Dropdown.Item,
|
|
9617
9624
|
{ onSelect: function onSelect() {
|
|
9618
9625
|
return handleFilterSelect({}, 'child');
|
|
9619
9626
|
} },
|
|
@@ -9621,7 +9628,7 @@ var Filter = function Filter(_ref) {
|
|
|
9621
9628
|
),
|
|
9622
9629
|
childData.data.map(function (docGroup) {
|
|
9623
9630
|
return React.createElement(
|
|
9624
|
-
Dropdown
|
|
9631
|
+
Dropdown.Item,
|
|
9625
9632
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9626
9633
|
return handleFilterSelect(docGroup, 'child');
|
|
9627
9634
|
} },
|
|
@@ -9633,7 +9640,7 @@ var Filter = function Filter(_ref) {
|
|
|
9633
9640
|
DropdownButton,
|
|
9634
9641
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9635
9642
|
!childData && React.createElement(
|
|
9636
|
-
Dropdown
|
|
9643
|
+
Dropdown.Item,
|
|
9637
9644
|
{ onSelect: function onSelect() {
|
|
9638
9645
|
return handleFilterSelect({}, 'grandchild');
|
|
9639
9646
|
} },
|
|
@@ -9641,7 +9648,7 @@ var Filter = function Filter(_ref) {
|
|
|
9641
9648
|
),
|
|
9642
9649
|
grandChildData.data.map(function (docGroup) {
|
|
9643
9650
|
return React.createElement(
|
|
9644
|
-
Dropdown
|
|
9651
|
+
Dropdown.Item,
|
|
9645
9652
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9646
9653
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9647
9654
|
} },
|
|
@@ -9781,6 +9788,8 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9781
9788
|
|
|
9782
9789
|
MediaSeriesLanding.getInitialData = function () {
|
|
9783
9790
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9791
|
+
var _ref4;
|
|
9792
|
+
|
|
9784
9793
|
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, taxonomyFilter;
|
|
9785
9794
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9786
9795
|
while (1) {
|
|
@@ -9799,11 +9808,11 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9799
9808
|
url: pathname
|
|
9800
9809
|
};
|
|
9801
9810
|
_context2.next = 9;
|
|
9802
|
-
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n name\n }');
|
|
9811
|
+
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name\n }');
|
|
9803
9812
|
|
|
9804
9813
|
case 9:
|
|
9805
9814
|
docGroupID = _context2.sent;
|
|
9806
|
-
seriesQuery = '*[_type == \'documentGroup\' && references(\'' + docGroupID._id + '\') && isSeries != false && isShow != false && defined(published) && dateTime(published) <= dateTime(now()) ] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n published,\n thumbnail,\n description,\n topicMapping[]->,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + identifier + '\'\n }';
|
|
9815
|
+
seriesQuery = '*[_type == \'documentGroup\' && references(\'' + docGroupID._id + '\') && isSeries != false && isShow != false && defined(published) && dateTime(published) <= dateTime(now()) ] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n published,\n thumbnail,\n description,\n topicMapping[]->,\n isGated,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + identifier + '\'\n }';
|
|
9807
9816
|
_context2.next = 13;
|
|
9808
9817
|
return client.fetch(seriesQuery, params);
|
|
9809
9818
|
|
|
@@ -9820,7 +9829,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9820
9829
|
statusCode = 404;
|
|
9821
9830
|
}
|
|
9822
9831
|
|
|
9823
|
-
return _context2.abrupt('return',
|
|
9832
|
+
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, _defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), _defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9824
9833
|
|
|
9825
9834
|
case 19:
|
|
9826
9835
|
case 'end':
|