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