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