@mjhls/mjh-framework 1.0.791-auth-test-v4 → 1.0.792
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +15 -15
- package/dist/cjs/AD300x250x600.js +15 -15
- package/dist/cjs/AD728x90.js +16 -16
- package/dist/cjs/ADFloatingFooter.js +14 -14
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +14 -14
- package/dist/cjs/{ADInfeed-e7aecdf9.js → ADInfeed-1e53d7db.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +14 -14
- package/dist/cjs/ADSponsoredResources.js +14 -14
- package/dist/cjs/ADWebcast.js +14 -14
- package/dist/cjs/ADWelcome.js +14 -14
- package/dist/cjs/{ADlgInfeed-0941023e.js → ADlgInfeed-2494fd17.js} +1 -1
- package/dist/cjs/AccordionPanel.js +5 -5
- package/dist/cjs/AdSlot.js +16 -16
- package/dist/cjs/AdSlotsProvider.js +10 -10
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +11 -11
- package/dist/cjs/ArticleProgramLandingPage.js +25 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +17 -17
- package/dist/cjs/Auth.js +789 -210
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-5fa89df5.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-eca358e4.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +11 -11
- package/dist/cjs/Column3.js +20 -20
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +21 -21
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-6d140494.js} +8 -8
- package/dist/cjs/EventsDeck.js +36 -36
- package/dist/cjs/ExternalResources.js +26 -25
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +7 -7
- package/dist/cjs/GridContent.js +30 -30
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +9 -9
- package/dist/cjs/HamMagazine.js +21 -21
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +25 -24
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +7 -7
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +49 -49
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +14 -14
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +400 -408
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +21 -21
- package/dist/cjs/NavNative.js +26 -26
- package/dist/cjs/NavNormal.js +7 -7
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +31 -30
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +49 -49
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +12 -12
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-49577417.js} +12 -12
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-45c54bed.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +5 -5
- package/dist/cjs/TaxonomyDescription.js +25 -24
- package/dist/cjs/TemplateNormal.js +19 -19
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +7 -7
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +25 -24
- package/dist/cjs/VideoSeriesCard.js +8 -8
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +24 -24
- package/dist/cjs/VideoSeriesListing.js +17 -17
- package/dist/cjs/View.js +39 -38
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +19 -19
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-63ae4740.js} +1 -1
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-2613ffa1.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-bec5fcf2.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-b6a175bf.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-aff11f8a.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-20d42c53.js} +5 -5
- package/dist/cjs/{extends-29bdbc6d.js → extends-1e24fc8d.js} +7 -8
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +9 -11
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +25 -24
- package/dist/cjs/{getTargeting-45b91c88.js → getTargeting-497b581d.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-f86bb269.js → index-4d74ffd6.js} +4 -4
- package/dist/cjs/{index-70cfabd2.js → index-d450e2d5.js} +88 -338
- package/dist/cjs/{index-efca863c.js → index-d48b231c.js} +5 -5
- package/dist/cjs/index.js +37 -37
- package/dist/cjs/{inherits-c2065b95.js → inherits-2eb23889.js} +19 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-95c064c9.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-4ef21f0f.js} +9 -57
- package/dist/cjs/{main-025fdc78.js → main-dc082238.js} +109 -184
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-db24842a.js} +14 -14
- package/dist/cjs/stringify-01cf47f7.js +17 -0
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-cf0865fc.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-97065d40.js} +34 -34
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-4480325a.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +15 -15
- package/dist/esm/AD300x250x600.js +15 -15
- package/dist/esm/AD728x90.js +16 -16
- package/dist/esm/ADFloatingFooter.js +14 -14
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +14 -14
- package/dist/esm/{ADInfeed-e1e18f87.js → ADInfeed-94817c40.js} +1 -1
- package/dist/esm/ADSkyscraper.js +14 -14
- package/dist/esm/ADSponsoredResources.js +14 -14
- package/dist/esm/ADWebcast.js +14 -14
- package/dist/esm/ADWelcome.js +14 -14
- package/dist/esm/{ADlgInfeed-c6d2831b.js → ADlgInfeed-6124ee3c.js} +1 -1
- package/dist/esm/AccordionPanel.js +5 -5
- package/dist/esm/AdSlot.js +16 -16
- package/dist/esm/AdSlotsProvider.js +10 -10
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +11 -11
- package/dist/esm/ArticleProgramLandingPage.js +25 -24
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +17 -17
- package/dist/esm/Auth.js +787 -208
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-c7ff069f.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-d8cd739c.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +20 -20
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +21 -21
- package/dist/esm/{Dfp-a304d96c.js → Dfp-313e4ebe.js} +8 -8
- package/dist/esm/EventsDeck.js +36 -36
- package/dist/esm/ExternalResources.js +26 -25
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +7 -7
- package/dist/esm/GridContent.js +30 -30
- package/dist/esm/GridHero.js +7 -7
- package/dist/esm/GroupDeck.js +9 -9
- package/dist/esm/HamMagazine.js +21 -21
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +25 -24
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +7 -7
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +49 -49
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +14 -14
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +396 -404
- package/dist/esm/NavDvm.js +7 -7
- package/dist/esm/NavMagazine.js +21 -21
- package/dist/esm/NavNative.js +26 -26
- package/dist/esm/NavNormal.js +7 -7
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +7 -7
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +31 -30
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +20 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +22 -22
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-291e1c9e.js} +12 -12
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-c3216d1a.js} +6 -6
- package/dist/esm/TaxonomyCard.js +5 -5
- package/dist/esm/TaxonomyDescription.js +25 -24
- package/dist/esm/TemplateNormal.js +19 -19
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +7 -7
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +25 -24
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +17 -17
- package/dist/esm/View.js +39 -38
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +19 -19
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-674f71ec.js} +1 -1
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-48516cd3.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-8f409e54.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-97770c52.js} +4 -4
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-585841c0.js} +30 -30
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-ec6d528d.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-aa6068a3.js} +5 -5
- package/dist/esm/{extends-60e0e1c6.js → extends-31d65aba.js} +8 -8
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +9 -11
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +25 -24
- package/dist/esm/{getTargeting-d0d71a56.js → getTargeting-2d402d66.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-0dbff1d1.js → index-3f5c03b2.js} +5 -5
- package/dist/esm/{index-79cfd25c.js → index-ccb770c7.js} +4 -4
- package/dist/esm/{index-613fdebe.js → index-f4fe5a50.js} +86 -337
- package/dist/esm/index.js +37 -37
- package/dist/esm/{inherits-a41fe93f.js → inherits-5906fbea.js} +20 -20
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-a0b0c7a4.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ad27652f.js} +9 -57
- package/dist/esm/{main-b5c5aac1.js → main-1450d277.js} +103 -178
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-cdeaee08.js} +14 -14
- package/dist/esm/stringify-d4839bab.js +15 -0
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-fa2dcda7.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-e9cea9e8.js} +34 -34
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-035980f3.js} +2 -2
- package/package.json +108 -111
- package/dist/cjs/AuthWrapper.js +0 -2957
- package/dist/cjs/faundadb.js +0 -324
- package/dist/cjs/inheritsLoose-b17eb2a8.js +0 -18
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/md5-e1ca5797.js +0 -323
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/AuthWrapper.js +0 -2951
- package/dist/esm/faundadb.js +0 -316
- package/dist/esm/inheritsLoose-8f901617.js +0 -16
- package/dist/esm/md5-4e42248e.js +0 -321
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,55 +1,54 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defineProperty = require('./defineProperty-
|
|
4
|
-
var asyncToGenerator = require('./asyncToGenerator-
|
|
5
|
-
var _extends$1 = require('./extends-
|
|
6
|
-
var slicedToArray = require('./slicedToArray-
|
|
3
|
+
var defineProperty = require('./defineProperty-d6fbb280.js');
|
|
4
|
+
var asyncToGenerator = require('./asyncToGenerator-b6a175bf.js');
|
|
5
|
+
var _extends$1 = require('./extends-1e24fc8d.js');
|
|
6
|
+
var slicedToArray = require('./slicedToArray-db24842a.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
9
|
-
var inheritsLoose = require('./inheritsLoose-b17eb2a8.js');
|
|
10
9
|
var PropTypes = require('prop-types');
|
|
11
10
|
var ReactDOM = require('react-dom');
|
|
12
11
|
var Link = require('next/link');
|
|
13
12
|
require('./iconBase-68959171.js');
|
|
14
13
|
var MasterDeck = require('./MasterDeck.js');
|
|
15
|
-
var _typeof = require('./typeof-
|
|
14
|
+
var _typeof = require('./typeof-97065d40.js');
|
|
16
15
|
var index$1 = require('./index-eadd5035.js');
|
|
17
|
-
var index = require('./index-
|
|
16
|
+
var index = require('./index-d48b231c.js');
|
|
18
17
|
var moment = require('./moment-aca40de1.js');
|
|
19
18
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
20
|
-
var BlockContent = require('./BlockContent-
|
|
21
|
-
var getSerializers = require('./index-
|
|
22
|
-
require('./define-property-
|
|
23
|
-
require('./_to-object-
|
|
24
|
-
require('./es6.string.iterator-
|
|
25
|
-
require('./web.dom.iterable-
|
|
19
|
+
var BlockContent = require('./BlockContent-eca358e4.js');
|
|
20
|
+
var getSerializers = require('./index-d450e2d5.js');
|
|
21
|
+
require('./define-property-aff11f8a.js');
|
|
22
|
+
require('./_to-object-821a2927.js');
|
|
23
|
+
require('./es6.string.iterator-20d42c53.js');
|
|
24
|
+
require('./web.dom.iterable-4480325a.js');
|
|
26
25
|
require('./_library-dd23b178.js');
|
|
27
|
-
require('./core.get-iterator-method-
|
|
28
|
-
require('./_iter-detect-
|
|
29
|
-
require('./_object-pie-
|
|
30
|
-
require('./toConsumableArray-
|
|
31
|
-
require('./inherits-
|
|
32
|
-
require('./_object-sap-
|
|
26
|
+
require('./core.get-iterator-method-b4615fd3.js');
|
|
27
|
+
require('./_iter-detect-2613ffa1.js');
|
|
28
|
+
require('./_object-pie-68c5bcbc.js');
|
|
29
|
+
require('./toConsumableArray-cf0865fc.js');
|
|
30
|
+
require('./inherits-2eb23889.js');
|
|
31
|
+
require('./_object-sap-c5bd707d.js');
|
|
33
32
|
require('./index-0e4427c8.js');
|
|
34
33
|
require('react-bootstrap/Container');
|
|
35
34
|
require('react-bootstrap/Row');
|
|
36
35
|
require('react-bootstrap/Col');
|
|
37
36
|
require('react-bootstrap/Card');
|
|
38
37
|
require('next/router');
|
|
39
|
-
require('./lodash-
|
|
40
|
-
require('./debounce-
|
|
41
|
-
require('./isSymbol-
|
|
42
|
-
require('./toNumber-
|
|
38
|
+
require('./lodash-4ef21f0f.js');
|
|
39
|
+
require('./debounce-529c8d06.js');
|
|
40
|
+
require('./isSymbol-04666465.js');
|
|
41
|
+
require('./toNumber-36d1e7e5.js');
|
|
43
42
|
require('./index.es-f3e47207.js');
|
|
44
43
|
require('./visibility-sensor-eb2c5b69.js');
|
|
45
|
-
require('./ADlgInfeed-
|
|
44
|
+
require('./ADlgInfeed-2494fd17.js');
|
|
46
45
|
require('./AdSlot.js');
|
|
47
46
|
require('./Beam.js');
|
|
48
|
-
require('./stringify-
|
|
47
|
+
require('./stringify-01cf47f7.js');
|
|
49
48
|
require('./Segment.js');
|
|
50
|
-
require('./main-
|
|
51
|
-
require('./ADInfeed-
|
|
52
|
-
require('./_is-array-
|
|
49
|
+
require('./main-dc082238.js');
|
|
50
|
+
require('./ADInfeed-1e53d7db.js');
|
|
51
|
+
require('./_is-array-63ae4740.js');
|
|
53
52
|
require('react-bootstrap');
|
|
54
53
|
require('./index-187c967e.js');
|
|
55
54
|
require('./util-6f784d85.js');
|
|
@@ -59,12 +58,13 @@ require('./smoothscroll-99df7f93.js');
|
|
|
59
58
|
require('./SocialShare.js');
|
|
60
59
|
require('next/head');
|
|
61
60
|
require('react-share');
|
|
62
|
-
require('./_object-to-array-
|
|
61
|
+
require('./_object-to-array-bec5fcf2.js');
|
|
63
62
|
require('react-bootstrap/Pagination');
|
|
64
63
|
require('react-bootstrap/Button');
|
|
65
64
|
require('./entities-3f9d0f2f.js');
|
|
66
65
|
require('./index.esm-974f47d9.js');
|
|
67
66
|
require('react-bootstrap/Figure');
|
|
67
|
+
require('react-script-tag');
|
|
68
68
|
|
|
69
69
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
70
70
|
|
|
@@ -260,6 +260,21 @@ function useUncontrolled(props, config) {
|
|
|
260
260
|
}, props);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
function _setPrototypeOf(o, p) {
|
|
264
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
265
|
+
o.__proto__ = p;
|
|
266
|
+
return o;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
return _setPrototypeOf(o, p);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function _inheritsLoose(subClass, superClass) {
|
|
273
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
274
|
+
subClass.prototype.constructor = subClass;
|
|
275
|
+
_setPrototypeOf(subClass, superClass);
|
|
276
|
+
}
|
|
277
|
+
|
|
263
278
|
var ThemeContext = React__default['default'].createContext({});
|
|
264
279
|
ThemeContext.Consumer;
|
|
265
280
|
ThemeContext.Provider;
|
|
@@ -279,11 +294,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
279
294
|
return href || null;
|
|
280
295
|
};
|
|
281
296
|
|
|
282
|
-
var context
|
|
283
|
-
context
|
|
297
|
+
var context = React__default['default'].createContext(null);
|
|
298
|
+
context.displayName = 'AccordionContext';
|
|
284
299
|
|
|
285
300
|
function useAccordionToggle(eventKey, onClick) {
|
|
286
|
-
var contextEventKey = React.useContext(context
|
|
301
|
+
var contextEventKey = React.useContext(context);
|
|
287
302
|
var onSelect = React.useContext(SelectableContext);
|
|
288
303
|
return function (e) {
|
|
289
304
|
/*
|
|
@@ -315,16 +330,16 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
315
330
|
}, props), children);
|
|
316
331
|
});
|
|
317
332
|
|
|
318
|
-
function ownerDocument
|
|
333
|
+
function ownerDocument(node) {
|
|
319
334
|
return node && node.ownerDocument || document;
|
|
320
335
|
}
|
|
321
336
|
|
|
322
337
|
function ownerWindow(node) {
|
|
323
|
-
var doc = ownerDocument
|
|
338
|
+
var doc = ownerDocument(node);
|
|
324
339
|
return doc && doc.defaultView || window;
|
|
325
340
|
}
|
|
326
341
|
|
|
327
|
-
function getComputedStyle$
|
|
342
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
328
343
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
329
344
|
}
|
|
330
345
|
|
|
@@ -353,7 +368,7 @@ function style(node, property) {
|
|
|
353
368
|
var transforms = '';
|
|
354
369
|
|
|
355
370
|
if (typeof property === 'string') {
|
|
356
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
371
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
357
372
|
}
|
|
358
373
|
|
|
359
374
|
Object.keys(property).forEach(function (key) {
|
|
@@ -606,7 +621,7 @@ var EXITING = 'exiting';
|
|
|
606
621
|
*/
|
|
607
622
|
|
|
608
623
|
var Transition = /*#__PURE__*/function (_React$Component) {
|
|
609
|
-
|
|
624
|
+
_inheritsLoose(Transition, _React$Component);
|
|
610
625
|
|
|
611
626
|
function Transition(props, context) {
|
|
612
627
|
var _this;
|
|
@@ -1091,7 +1106,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1091
1106
|
onExited: PropTypes__default['default'].func
|
|
1092
1107
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1093
1108
|
|
|
1094
|
-
function noop
|
|
1109
|
+
function noop() {}
|
|
1095
1110
|
|
|
1096
1111
|
Transition.defaultProps = {
|
|
1097
1112
|
in: false,
|
|
@@ -1100,12 +1115,12 @@ Transition.defaultProps = {
|
|
|
1100
1115
|
appear: false,
|
|
1101
1116
|
enter: true,
|
|
1102
1117
|
exit: true,
|
|
1103
|
-
onEnter: noop
|
|
1104
|
-
onEntering: noop
|
|
1105
|
-
onEntered: noop
|
|
1106
|
-
onExit: noop
|
|
1107
|
-
onExiting: noop
|
|
1108
|
-
onExited: noop
|
|
1118
|
+
onEnter: noop,
|
|
1119
|
+
onEntering: noop,
|
|
1120
|
+
onEntered: noop,
|
|
1121
|
+
onExit: noop,
|
|
1122
|
+
onExiting: noop,
|
|
1123
|
+
onExited: noop
|
|
1109
1124
|
};
|
|
1110
1125
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1111
1126
|
Transition.EXITED = EXITED;
|
|
@@ -1171,7 +1186,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1171
1186
|
}
|
|
1172
1187
|
|
|
1173
1188
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1174
|
-
var defaultProps
|
|
1189
|
+
var defaultProps = {
|
|
1175
1190
|
in: false,
|
|
1176
1191
|
timeout: 300,
|
|
1177
1192
|
mountOnEnter: false,
|
|
@@ -1245,14 +1260,14 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1245
1260
|
}); // @ts-ignore
|
|
1246
1261
|
|
|
1247
1262
|
// @ts-ignore
|
|
1248
|
-
Collapse.defaultProps = defaultProps
|
|
1263
|
+
Collapse.defaultProps = defaultProps;
|
|
1249
1264
|
|
|
1250
1265
|
var AccordionCollapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
1251
1266
|
var children = _ref.children,
|
|
1252
1267
|
eventKey = _ref.eventKey,
|
|
1253
1268
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1254
1269
|
|
|
1255
|
-
var contextEventKey = React.useContext(context
|
|
1270
|
+
var contextEventKey = React.useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1256
1271
|
// from collapsing the accordion when clicked.
|
|
1257
1272
|
|
|
1258
1273
|
return /*#__PURE__*/React__default['default'].createElement(SelectableContext.Provider, {
|
|
@@ -1278,7 +1293,7 @@ var Accordion = React__default['default'].forwardRef(function (props, ref) {
|
|
|
1278
1293
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1279
1294
|
|
|
1280
1295
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1281
|
-
return /*#__PURE__*/React__default['default'].createElement(context
|
|
1296
|
+
return /*#__PURE__*/React__default['default'].createElement(context.Provider, {
|
|
1282
1297
|
value: activeKey || null
|
|
1283
1298
|
}, /*#__PURE__*/React__default['default'].createElement(SelectableContext.Provider, {
|
|
1284
1299
|
value: onSelect || null
|
|
@@ -1318,7 +1333,7 @@ function useEventCallback(fn) {
|
|
|
1318
1333
|
}
|
|
1319
1334
|
|
|
1320
1335
|
var _fadeStyles;
|
|
1321
|
-
var defaultProps$
|
|
1336
|
+
var defaultProps$1 = {
|
|
1322
1337
|
in: false,
|
|
1323
1338
|
timeout: 300,
|
|
1324
1339
|
mountOnEnter: false,
|
|
@@ -1346,14 +1361,14 @@ var Fade = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1346
1361
|
}));
|
|
1347
1362
|
});
|
|
1348
1363
|
});
|
|
1349
|
-
Fade.defaultProps = defaultProps$
|
|
1364
|
+
Fade.defaultProps = defaultProps$1;
|
|
1350
1365
|
Fade.displayName = 'Fade';
|
|
1351
1366
|
|
|
1352
|
-
var propTypes
|
|
1367
|
+
var propTypes = {
|
|
1353
1368
|
label: PropTypes__default['default'].string.isRequired,
|
|
1354
1369
|
onClick: PropTypes__default['default'].func
|
|
1355
1370
|
};
|
|
1356
|
-
var defaultProps$
|
|
1371
|
+
var defaultProps$2 = {
|
|
1357
1372
|
label: 'Close'
|
|
1358
1373
|
};
|
|
1359
1374
|
var CloseButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -1374,8 +1389,8 @@ var CloseButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1374
1389
|
}, label));
|
|
1375
1390
|
});
|
|
1376
1391
|
CloseButton.displayName = 'CloseButton';
|
|
1377
|
-
CloseButton.propTypes = propTypes
|
|
1378
|
-
CloseButton.defaultProps = defaultProps$
|
|
1392
|
+
CloseButton.propTypes = propTypes;
|
|
1393
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1379
1394
|
|
|
1380
1395
|
var divWithClassName = (function (className) {
|
|
1381
1396
|
return React__default['default'].forwardRef(function (p, ref) {
|
|
@@ -1488,15 +1503,15 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1488
1503
|
});
|
|
1489
1504
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1490
1505
|
|
|
1491
|
-
var DivStyledAsH4
|
|
1492
|
-
DivStyledAsH4
|
|
1506
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1507
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1493
1508
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1494
|
-
Component: DivStyledAsH4
|
|
1509
|
+
Component: DivStyledAsH4
|
|
1495
1510
|
});
|
|
1496
1511
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1497
1512
|
Component: SafeAnchor
|
|
1498
1513
|
});
|
|
1499
|
-
var defaultProps$
|
|
1514
|
+
var defaultProps$3 = {
|
|
1500
1515
|
show: true,
|
|
1501
1516
|
transition: Fade,
|
|
1502
1517
|
closeLabel: 'Close alert'
|
|
@@ -1541,11 +1556,11 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1541
1556
|
}), alert);
|
|
1542
1557
|
});
|
|
1543
1558
|
Alert.displayName = 'Alert';
|
|
1544
|
-
Alert.defaultProps = defaultProps$
|
|
1559
|
+
Alert.defaultProps = defaultProps$3;
|
|
1545
1560
|
Alert.Link = AlertLink;
|
|
1546
1561
|
Alert.Heading = AlertHeading;
|
|
1547
1562
|
|
|
1548
|
-
var defaultProps$
|
|
1563
|
+
var defaultProps$4 = {
|
|
1549
1564
|
pill: false
|
|
1550
1565
|
};
|
|
1551
1566
|
var Badge = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -1565,9 +1580,9 @@ var Badge = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1565
1580
|
}));
|
|
1566
1581
|
});
|
|
1567
1582
|
Badge.displayName = 'Badge';
|
|
1568
|
-
Badge.defaultProps = defaultProps$
|
|
1583
|
+
Badge.defaultProps = defaultProps$4;
|
|
1569
1584
|
|
|
1570
|
-
var defaultProps$
|
|
1585
|
+
var defaultProps$5 = {
|
|
1571
1586
|
active: false,
|
|
1572
1587
|
linkProps: {}
|
|
1573
1588
|
};
|
|
@@ -1601,9 +1616,9 @@ var BreadcrumbItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1601
1616
|
}), children));
|
|
1602
1617
|
});
|
|
1603
1618
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1604
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1619
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1605
1620
|
|
|
1606
|
-
var defaultProps$
|
|
1621
|
+
var defaultProps$6 = {
|
|
1607
1622
|
label: 'breadcrumb',
|
|
1608
1623
|
listProps: {}
|
|
1609
1624
|
};
|
|
@@ -1627,10 +1642,10 @@ var Breadcrumb = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1627
1642
|
}), children));
|
|
1628
1643
|
});
|
|
1629
1644
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1630
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1645
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1631
1646
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1632
1647
|
|
|
1633
|
-
var defaultProps$
|
|
1648
|
+
var defaultProps$7 = {
|
|
1634
1649
|
variant: 'primary',
|
|
1635
1650
|
active: false,
|
|
1636
1651
|
disabled: false
|
|
@@ -1673,9 +1688,9 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1673
1688
|
}));
|
|
1674
1689
|
});
|
|
1675
1690
|
Button.displayName = 'Button';
|
|
1676
|
-
Button.defaultProps = defaultProps$
|
|
1691
|
+
Button.defaultProps = defaultProps$7;
|
|
1677
1692
|
|
|
1678
|
-
var defaultProps$
|
|
1693
|
+
var defaultProps$8 = {
|
|
1679
1694
|
vertical: false,
|
|
1680
1695
|
toggle: false,
|
|
1681
1696
|
role: 'group'
|
|
@@ -1699,9 +1714,9 @@ var ButtonGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1699
1714
|
}));
|
|
1700
1715
|
});
|
|
1701
1716
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1702
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1717
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1703
1718
|
|
|
1704
|
-
var defaultProps$
|
|
1719
|
+
var defaultProps$9 = {
|
|
1705
1720
|
role: 'toolbar'
|
|
1706
1721
|
};
|
|
1707
1722
|
var ButtonToolbar = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -1716,12 +1731,12 @@ var ButtonToolbar = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1716
1731
|
}));
|
|
1717
1732
|
});
|
|
1718
1733
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1719
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1734
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1720
1735
|
|
|
1721
1736
|
var context$1 = React__default['default'].createContext(null);
|
|
1722
1737
|
context$1.displayName = 'CardContext';
|
|
1723
1738
|
|
|
1724
|
-
var defaultProps$
|
|
1739
|
+
var defaultProps$a = {
|
|
1725
1740
|
variant: null
|
|
1726
1741
|
};
|
|
1727
1742
|
var CardImg = React__default['default'].forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -1740,7 +1755,7 @@ function (_ref, ref) {
|
|
|
1740
1755
|
}, props));
|
|
1741
1756
|
});
|
|
1742
1757
|
CardImg.displayName = 'CardImg';
|
|
1743
|
-
CardImg.defaultProps = defaultProps$
|
|
1758
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1744
1759
|
|
|
1745
1760
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1746
1761
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1760,7 +1775,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1760
1775
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1761
1776
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1762
1777
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1763
|
-
var defaultProps$
|
|
1778
|
+
var defaultProps$b = {
|
|
1764
1779
|
body: false
|
|
1765
1780
|
};
|
|
1766
1781
|
var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -1793,7 +1808,7 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1793
1808
|
React__default['default'].createElement(CardBody, null, children) : children));
|
|
1794
1809
|
});
|
|
1795
1810
|
Card.displayName = 'Card';
|
|
1796
|
-
Card.defaultProps = defaultProps$
|
|
1811
|
+
Card.defaultProps = defaultProps$b;
|
|
1797
1812
|
Card.Img = CardImg;
|
|
1798
1813
|
Card.Title = CardTitle;
|
|
1799
1814
|
Card.Subtitle = CardSubtitle;
|
|
@@ -2028,7 +2043,7 @@ function forEach(children, func) {
|
|
|
2028
2043
|
}
|
|
2029
2044
|
|
|
2030
2045
|
var SWIPE_THRESHOLD = 40;
|
|
2031
|
-
var propTypes$
|
|
2046
|
+
var propTypes$1 = {
|
|
2032
2047
|
/**
|
|
2033
2048
|
* @default 'carousel'
|
|
2034
2049
|
*/
|
|
@@ -2130,7 +2145,7 @@ var propTypes$9 = {
|
|
|
2130
2145
|
*/
|
|
2131
2146
|
nextLabel: PropTypes__default['default'].string
|
|
2132
2147
|
};
|
|
2133
|
-
var defaultProps$
|
|
2148
|
+
var defaultProps$c = {
|
|
2134
2149
|
slide: true,
|
|
2135
2150
|
fade: false,
|
|
2136
2151
|
controls: true,
|
|
@@ -2500,12 +2515,12 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2500
2515
|
|
|
2501
2516
|
var Carousel = React__default['default'].forwardRef(CarouselFunc);
|
|
2502
2517
|
Carousel.displayName = 'Carousel';
|
|
2503
|
-
Carousel.propTypes = propTypes$
|
|
2504
|
-
Carousel.defaultProps = defaultProps$
|
|
2518
|
+
Carousel.propTypes = propTypes$1;
|
|
2519
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2505
2520
|
Carousel.Caption = CarouselCaption;
|
|
2506
2521
|
Carousel.Item = CarouselItem;
|
|
2507
2522
|
|
|
2508
|
-
var DEVICE_SIZES
|
|
2523
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2509
2524
|
var Col = React__default['default'].forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2510
2525
|
function (_ref, ref) {
|
|
2511
2526
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -2517,7 +2532,7 @@ function (_ref, ref) {
|
|
|
2517
2532
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2518
2533
|
var spans = [];
|
|
2519
2534
|
var classes = [];
|
|
2520
|
-
DEVICE_SIZES
|
|
2535
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2521
2536
|
var propValue = props[brkPoint];
|
|
2522
2537
|
delete props[brkPoint];
|
|
2523
2538
|
var span;
|
|
@@ -2698,50 +2713,21 @@ function getBasePlacement(placement) {
|
|
|
2698
2713
|
return placement.split('-')[0];
|
|
2699
2714
|
}
|
|
2700
2715
|
|
|
2701
|
-
|
|
2702
|
-
var rect = element.getBoundingClientRect();
|
|
2703
|
-
return {
|
|
2704
|
-
width: rect.width,
|
|
2705
|
-
height: rect.height,
|
|
2706
|
-
top: rect.top,
|
|
2707
|
-
right: rect.right,
|
|
2708
|
-
bottom: rect.bottom,
|
|
2709
|
-
left: rect.left,
|
|
2710
|
-
x: rect.left,
|
|
2711
|
-
y: rect.top
|
|
2712
|
-
};
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2716
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2715
2717
|
// means it doesn't take into account transforms.
|
|
2716
|
-
|
|
2717
2718
|
function getLayoutRect(element) {
|
|
2718
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2719
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2720
|
-
|
|
2721
|
-
var width = element.offsetWidth;
|
|
2722
|
-
var height = element.offsetHeight;
|
|
2723
|
-
|
|
2724
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2725
|
-
width = clientRect.width;
|
|
2726
|
-
}
|
|
2727
|
-
|
|
2728
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2729
|
-
height = clientRect.height;
|
|
2730
|
-
}
|
|
2731
|
-
|
|
2732
2719
|
return {
|
|
2733
2720
|
x: element.offsetLeft,
|
|
2734
2721
|
y: element.offsetTop,
|
|
2735
|
-
width:
|
|
2736
|
-
height:
|
|
2722
|
+
width: element.offsetWidth,
|
|
2723
|
+
height: element.offsetHeight
|
|
2737
2724
|
};
|
|
2738
2725
|
}
|
|
2739
2726
|
|
|
2740
|
-
|
|
2741
|
-
if (node == null) {
|
|
2742
|
-
return window;
|
|
2743
|
-
}
|
|
2727
|
+
/*:: import type { Window } from '../types'; */
|
|
2744
2728
|
|
|
2729
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2730
|
+
function getWindow(node) {
|
|
2745
2731
|
if (node.toString() !== '[object Window]') {
|
|
2746
2732
|
var ownerDocument = node.ownerDocument;
|
|
2747
2733
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2750,27 +2736,31 @@ function getWindow(node) {
|
|
|
2750
2736
|
return node;
|
|
2751
2737
|
}
|
|
2752
2738
|
|
|
2739
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2740
|
+
Element); */
|
|
2741
|
+
|
|
2753
2742
|
function isElement(node) {
|
|
2754
2743
|
var OwnElement = getWindow(node).Element;
|
|
2755
2744
|
return node instanceof OwnElement || node instanceof Element;
|
|
2756
2745
|
}
|
|
2746
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2747
|
+
HTMLElement); */
|
|
2748
|
+
|
|
2757
2749
|
|
|
2758
2750
|
function isHTMLElement(node) {
|
|
2759
2751
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2760
2752
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2761
2753
|
}
|
|
2754
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2755
|
+
ShadowRoot); */
|
|
2762
2756
|
|
|
2763
|
-
function isShadowRoot(node) {
|
|
2764
|
-
// IE 11 has no ShadowRoot
|
|
2765
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2766
|
-
return false;
|
|
2767
|
-
}
|
|
2768
2757
|
|
|
2758
|
+
function isShadowRoot(node) {
|
|
2769
2759
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2770
2760
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2771
2761
|
}
|
|
2772
2762
|
|
|
2773
|
-
function contains
|
|
2763
|
+
function contains(parent, child) {
|
|
2774
2764
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2775
2765
|
|
|
2776
2766
|
if (parent.contains(child)) {
|
|
@@ -2797,7 +2787,7 @@ function getNodeName(element) {
|
|
|
2797
2787
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2798
2788
|
}
|
|
2799
2789
|
|
|
2800
|
-
function getComputedStyle$
|
|
2790
|
+
function getComputedStyle$2(element) {
|
|
2801
2791
|
return getWindow(element).getComputedStyle(element);
|
|
2802
2792
|
}
|
|
2803
2793
|
|
|
@@ -2820,8 +2810,9 @@ function getParentNode(element) {
|
|
|
2820
2810
|
// $FlowFixMe[incompatible-return]
|
|
2821
2811
|
// $FlowFixMe[prop-missing]
|
|
2822
2812
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2823
|
-
element.parentNode ||
|
|
2824
|
-
|
|
2813
|
+
element.parentNode || // DOM Element detected
|
|
2814
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2815
|
+
element.host || // ShadowRoot detected
|
|
2825
2816
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2826
2817
|
getDocumentElement(element) // fallback
|
|
2827
2818
|
|
|
@@ -2830,25 +2821,33 @@ function getParentNode(element) {
|
|
|
2830
2821
|
|
|
2831
2822
|
function getTrueOffsetParent(element) {
|
|
2832
2823
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2833
|
-
getComputedStyle$
|
|
2824
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2834
2825
|
return null;
|
|
2835
2826
|
}
|
|
2836
2827
|
|
|
2837
|
-
|
|
2828
|
+
var offsetParent = element.offsetParent;
|
|
2829
|
+
|
|
2830
|
+
if (offsetParent) {
|
|
2831
|
+
var html = getDocumentElement(offsetParent);
|
|
2832
|
+
|
|
2833
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2834
|
+
return html;
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
return offsetParent;
|
|
2838
2839
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2839
2840
|
// return the containing block
|
|
2840
2841
|
|
|
2841
2842
|
|
|
2842
2843
|
function getContainingBlock(element) {
|
|
2843
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2844
2844
|
var currentNode = getParentNode(element);
|
|
2845
2845
|
|
|
2846
2846
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2847
|
-
var css = getComputedStyle$
|
|
2847
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2848
2848
|
// create a containing block.
|
|
2849
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2850
2849
|
|
|
2851
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2850
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2852
2851
|
return currentNode;
|
|
2853
2852
|
} else {
|
|
2854
2853
|
currentNode = currentNode.parentNode;
|
|
@@ -2864,11 +2863,11 @@ function getOffsetParent(element) {
|
|
|
2864
2863
|
var window = getWindow(element);
|
|
2865
2864
|
var offsetParent = getTrueOffsetParent(element);
|
|
2866
2865
|
|
|
2867
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2866
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2868
2867
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2869
2868
|
}
|
|
2870
2869
|
|
|
2871
|
-
if (offsetParent &&
|
|
2870
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2872
2871
|
return window;
|
|
2873
2872
|
}
|
|
2874
2873
|
|
|
@@ -2879,12 +2878,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2879
2878
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2880
2879
|
}
|
|
2881
2880
|
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
var round = Math.round;
|
|
2885
|
-
|
|
2886
|
-
function within(min$1, value, max$1) {
|
|
2887
|
-
return max(min$1, min(value, max$1));
|
|
2881
|
+
function within(min, value, max) {
|
|
2882
|
+
return Math.max(min, Math.min(value, max));
|
|
2888
2883
|
}
|
|
2889
2884
|
|
|
2890
2885
|
function getFreshSideObject() {
|
|
@@ -2897,7 +2892,7 @@ function getFreshSideObject() {
|
|
|
2897
2892
|
}
|
|
2898
2893
|
|
|
2899
2894
|
function mergePaddingObject(paddingObject) {
|
|
2900
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2895
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2901
2896
|
}
|
|
2902
2897
|
|
|
2903
2898
|
function expandToHashMap(value, keys) {
|
|
@@ -2907,19 +2902,11 @@ function expandToHashMap(value, keys) {
|
|
|
2907
2902
|
}, {});
|
|
2908
2903
|
}
|
|
2909
2904
|
|
|
2910
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2911
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2912
|
-
placement: state.placement
|
|
2913
|
-
})) : padding;
|
|
2914
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2915
|
-
};
|
|
2916
|
-
|
|
2917
2905
|
function arrow(_ref) {
|
|
2918
2906
|
var _state$modifiersData$;
|
|
2919
2907
|
|
|
2920
2908
|
var state = _ref.state,
|
|
2921
|
-
name = _ref.name
|
|
2922
|
-
options = _ref.options;
|
|
2909
|
+
name = _ref.name;
|
|
2923
2910
|
var arrowElement = state.elements.arrow;
|
|
2924
2911
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2925
2912
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2931,7 +2918,7 @@ function arrow(_ref) {
|
|
|
2931
2918
|
return;
|
|
2932
2919
|
}
|
|
2933
2920
|
|
|
2934
|
-
var paddingObject =
|
|
2921
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2935
2922
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2936
2923
|
var minProp = axis === 'y' ? top : left;
|
|
2937
2924
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2951,11 +2938,14 @@ function arrow(_ref) {
|
|
|
2951
2938
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2952
2939
|
}
|
|
2953
2940
|
|
|
2954
|
-
function effect
|
|
2941
|
+
function effect(_ref2) {
|
|
2955
2942
|
var state = _ref2.state,
|
|
2956
|
-
options = _ref2.options
|
|
2943
|
+
options = _ref2.options,
|
|
2944
|
+
name = _ref2.name;
|
|
2957
2945
|
var _options$element = options.element,
|
|
2958
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2946
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2947
|
+
_options$padding = options.padding,
|
|
2948
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2959
2949
|
|
|
2960
2950
|
if (arrowElement == null) {
|
|
2961
2951
|
return;
|
|
@@ -2976,7 +2966,7 @@ function effect$1(_ref2) {
|
|
|
2976
2966
|
}
|
|
2977
2967
|
}
|
|
2978
2968
|
|
|
2979
|
-
if (!contains
|
|
2969
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2980
2970
|
if (process.env.NODE_ENV !== "production") {
|
|
2981
2971
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2982
2972
|
}
|
|
@@ -2985,6 +2975,9 @@ function effect$1(_ref2) {
|
|
|
2985
2975
|
}
|
|
2986
2976
|
|
|
2987
2977
|
state.elements.arrow = arrowElement;
|
|
2978
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2979
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2980
|
+
};
|
|
2988
2981
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2989
2982
|
|
|
2990
2983
|
|
|
@@ -2993,7 +2986,7 @@ var arrow$1 = {
|
|
|
2993
2986
|
enabled: true,
|
|
2994
2987
|
phase: 'main',
|
|
2995
2988
|
fn: arrow,
|
|
2996
|
-
effect: effect
|
|
2989
|
+
effect: effect,
|
|
2997
2990
|
requires: ['popperOffsets'],
|
|
2998
2991
|
requiresIfExists: ['preventOverflow']
|
|
2999
2992
|
};
|
|
@@ -3013,8 +3006,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
3013
3006
|
var win = window;
|
|
3014
3007
|
var dpr = win.devicePixelRatio || 1;
|
|
3015
3008
|
return {
|
|
3016
|
-
x: round(
|
|
3017
|
-
y: round(
|
|
3009
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
3010
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
3018
3011
|
};
|
|
3019
3012
|
}
|
|
3020
3013
|
|
|
@@ -3030,7 +3023,7 @@ function mapToStyles(_ref2) {
|
|
|
3030
3023
|
adaptive = _ref2.adaptive,
|
|
3031
3024
|
roundOffsets = _ref2.roundOffsets;
|
|
3032
3025
|
|
|
3033
|
-
var _ref3 = roundOffsets
|
|
3026
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
3034
3027
|
_ref3$x = _ref3.x,
|
|
3035
3028
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
3036
3029
|
_ref3$y = _ref3.y,
|
|
@@ -3044,32 +3037,23 @@ function mapToStyles(_ref2) {
|
|
|
3044
3037
|
|
|
3045
3038
|
if (adaptive) {
|
|
3046
3039
|
var offsetParent = getOffsetParent(popper);
|
|
3047
|
-
var heightProp = 'clientHeight';
|
|
3048
|
-
var widthProp = 'clientWidth';
|
|
3049
3040
|
|
|
3050
3041
|
if (offsetParent === getWindow(popper)) {
|
|
3051
3042
|
offsetParent = getDocumentElement(popper);
|
|
3052
|
-
|
|
3053
|
-
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3054
|
-
heightProp = 'scrollHeight';
|
|
3055
|
-
widthProp = 'scrollWidth';
|
|
3056
|
-
}
|
|
3057
3043
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3058
3044
|
|
|
3045
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3059
3046
|
|
|
3060
|
-
offsetParent = offsetParent;
|
|
3061
3047
|
|
|
3062
3048
|
if (placement === top) {
|
|
3063
|
-
sideY = bottom;
|
|
3064
|
-
|
|
3065
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
3049
|
+
sideY = bottom;
|
|
3050
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3066
3051
|
y *= gpuAcceleration ? 1 : -1;
|
|
3067
3052
|
}
|
|
3068
3053
|
|
|
3069
3054
|
if (placement === left) {
|
|
3070
|
-
sideX = right;
|
|
3071
|
-
|
|
3072
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
3055
|
+
sideX = right;
|
|
3056
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3073
3057
|
x *= gpuAcceleration ? 1 : -1;
|
|
3074
3058
|
}
|
|
3075
3059
|
}
|
|
@@ -3081,10 +3065,10 @@ function mapToStyles(_ref2) {
|
|
|
3081
3065
|
if (gpuAcceleration) {
|
|
3082
3066
|
var _Object$assign;
|
|
3083
3067
|
|
|
3084
|
-
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));
|
|
3068
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3085
3069
|
}
|
|
3086
3070
|
|
|
3087
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3071
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3088
3072
|
}
|
|
3089
3073
|
|
|
3090
3074
|
function computeStyles(_ref4) {
|
|
@@ -3098,7 +3082,7 @@ function computeStyles(_ref4) {
|
|
|
3098
3082
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3099
3083
|
|
|
3100
3084
|
if (process.env.NODE_ENV !== "production") {
|
|
3101
|
-
var transitionProperty = getComputedStyle$
|
|
3085
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3102
3086
|
|
|
3103
3087
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3104
3088
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3115,7 +3099,7 @@ function computeStyles(_ref4) {
|
|
|
3115
3099
|
};
|
|
3116
3100
|
|
|
3117
3101
|
if (state.modifiersData.popperOffsets != null) {
|
|
3118
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3102
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3119
3103
|
offsets: state.modifiersData.popperOffsets,
|
|
3120
3104
|
position: state.options.strategy,
|
|
3121
3105
|
adaptive: adaptive,
|
|
@@ -3124,7 +3108,7 @@ function computeStyles(_ref4) {
|
|
|
3124
3108
|
}
|
|
3125
3109
|
|
|
3126
3110
|
if (state.modifiersData.arrow != null) {
|
|
3127
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3111
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3128
3112
|
offsets: state.modifiersData.arrow,
|
|
3129
3113
|
position: 'absolute',
|
|
3130
3114
|
adaptive: false,
|
|
@@ -3132,7 +3116,7 @@ function computeStyles(_ref4) {
|
|
|
3132
3116
|
})));
|
|
3133
3117
|
}
|
|
3134
3118
|
|
|
3135
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3119
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3136
3120
|
'data-popper-placement': state.placement
|
|
3137
3121
|
});
|
|
3138
3122
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3150,7 +3134,7 @@ var passive = {
|
|
|
3150
3134
|
passive: true
|
|
3151
3135
|
};
|
|
3152
3136
|
|
|
3153
|
-
function effect(_ref) {
|
|
3137
|
+
function effect$1(_ref) {
|
|
3154
3138
|
var state = _ref.state,
|
|
3155
3139
|
instance = _ref.instance,
|
|
3156
3140
|
options = _ref.options;
|
|
@@ -3190,11 +3174,11 @@ var eventListeners = {
|
|
|
3190
3174
|
enabled: true,
|
|
3191
3175
|
phase: 'write',
|
|
3192
3176
|
fn: function fn() {},
|
|
3193
|
-
effect: effect,
|
|
3177
|
+
effect: effect$1,
|
|
3194
3178
|
data: {}
|
|
3195
3179
|
};
|
|
3196
3180
|
|
|
3197
|
-
var hash
|
|
3181
|
+
var hash = {
|
|
3198
3182
|
left: 'right',
|
|
3199
3183
|
right: 'left',
|
|
3200
3184
|
bottom: 'top',
|
|
@@ -3202,20 +3186,34 @@ var hash$1 = {
|
|
|
3202
3186
|
};
|
|
3203
3187
|
function getOppositePlacement(placement) {
|
|
3204
3188
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3205
|
-
return hash
|
|
3189
|
+
return hash[matched];
|
|
3206
3190
|
});
|
|
3207
3191
|
}
|
|
3208
3192
|
|
|
3209
|
-
var hash = {
|
|
3193
|
+
var hash$1 = {
|
|
3210
3194
|
start: 'end',
|
|
3211
3195
|
end: 'start'
|
|
3212
3196
|
};
|
|
3213
3197
|
function getOppositeVariationPlacement(placement) {
|
|
3214
3198
|
return placement.replace(/start|end/g, function (matched) {
|
|
3215
|
-
return hash[matched];
|
|
3199
|
+
return hash$1[matched];
|
|
3216
3200
|
});
|
|
3217
3201
|
}
|
|
3218
3202
|
|
|
3203
|
+
function getBoundingClientRect(element) {
|
|
3204
|
+
var rect = element.getBoundingClientRect();
|
|
3205
|
+
return {
|
|
3206
|
+
width: rect.width,
|
|
3207
|
+
height: rect.height,
|
|
3208
|
+
top: rect.top,
|
|
3209
|
+
right: rect.right,
|
|
3210
|
+
bottom: rect.bottom,
|
|
3211
|
+
left: rect.left,
|
|
3212
|
+
x: rect.left,
|
|
3213
|
+
y: rect.top
|
|
3214
|
+
};
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3219
3217
|
function getWindowScroll(node) {
|
|
3220
3218
|
var win = getWindow(node);
|
|
3221
3219
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3278,18 +3276,16 @@ function getViewportRect(element) {
|
|
|
3278
3276
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3279
3277
|
|
|
3280
3278
|
function getDocumentRect(element) {
|
|
3281
|
-
var _element$ownerDocumen;
|
|
3282
|
-
|
|
3283
3279
|
var html = getDocumentElement(element);
|
|
3284
3280
|
var winScroll = getWindowScroll(element);
|
|
3285
|
-
var body =
|
|
3286
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3287
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3281
|
+
var body = element.ownerDocument.body;
|
|
3282
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3283
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3288
3284
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3289
3285
|
var y = -winScroll.scrollTop;
|
|
3290
3286
|
|
|
3291
|
-
if (getComputedStyle$
|
|
3292
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3287
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3288
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3293
3289
|
}
|
|
3294
3290
|
|
|
3295
3291
|
return {
|
|
@@ -3302,7 +3298,7 @@ function getDocumentRect(element) {
|
|
|
3302
3298
|
|
|
3303
3299
|
function isScrollParent(element) {
|
|
3304
3300
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3305
|
-
var _getComputedStyle = getComputedStyle$
|
|
3301
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3306
3302
|
overflow = _getComputedStyle.overflow,
|
|
3307
3303
|
overflowX = _getComputedStyle.overflowX,
|
|
3308
3304
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3331,14 +3327,12 @@ reference element's position.
|
|
|
3331
3327
|
*/
|
|
3332
3328
|
|
|
3333
3329
|
function listScrollParents(element, list) {
|
|
3334
|
-
var _element$ownerDocumen;
|
|
3335
|
-
|
|
3336
3330
|
if (list === void 0) {
|
|
3337
3331
|
list = [];
|
|
3338
3332
|
}
|
|
3339
3333
|
|
|
3340
3334
|
var scrollParent = getScrollParent(element);
|
|
3341
|
-
var isBody = scrollParent ===
|
|
3335
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3342
3336
|
var win = getWindow(scrollParent);
|
|
3343
3337
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3344
3338
|
var updatedList = list.concat(target);
|
|
@@ -3347,7 +3341,7 @@ function listScrollParents(element, list) {
|
|
|
3347
3341
|
}
|
|
3348
3342
|
|
|
3349
3343
|
function rectToClientRect(rect) {
|
|
3350
|
-
return Object.assign({}, rect, {
|
|
3344
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3351
3345
|
left: rect.x,
|
|
3352
3346
|
top: rect.y,
|
|
3353
3347
|
right: rect.x + rect.width,
|
|
@@ -3377,7 +3371,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3377
3371
|
|
|
3378
3372
|
function getClippingParents(element) {
|
|
3379
3373
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3380
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3374
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3381
3375
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3382
3376
|
|
|
3383
3377
|
if (!isElement(clipperElement)) {
|
|
@@ -3386,7 +3380,7 @@ function getClippingParents(element) {
|
|
|
3386
3380
|
|
|
3387
3381
|
|
|
3388
3382
|
return clippingParents.filter(function (clippingParent) {
|
|
3389
|
-
return isElement(clippingParent) && contains
|
|
3383
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3390
3384
|
});
|
|
3391
3385
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3392
3386
|
// clipping parents
|
|
@@ -3398,10 +3392,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3398
3392
|
var firstClippingParent = clippingParents[0];
|
|
3399
3393
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3400
3394
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3401
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3402
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3403
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3404
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3395
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3396
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3397
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3398
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3405
3399
|
return accRect;
|
|
3406
3400
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3407
3401
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3511,7 +3505,7 @@ function detectOverflow(state, options) {
|
|
|
3511
3505
|
strategy: 'absolute',
|
|
3512
3506
|
placement: placement
|
|
3513
3507
|
});
|
|
3514
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3508
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3515
3509
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3516
3510
|
// 0 or negative = within the clipping rect
|
|
3517
3511
|
|
|
@@ -3535,6 +3529,9 @@ function detectOverflow(state, options) {
|
|
|
3535
3529
|
return overflowOffsets;
|
|
3536
3530
|
}
|
|
3537
3531
|
|
|
3532
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3533
|
+
|
|
3534
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3538
3535
|
function computeAutoPlacement(state, options) {
|
|
3539
3536
|
if (options === void 0) {
|
|
3540
3537
|
options = {};
|
|
@@ -3763,7 +3760,7 @@ function hide(_ref) {
|
|
|
3763
3760
|
isReferenceHidden: isReferenceHidden,
|
|
3764
3761
|
hasPopperEscaped: hasPopperEscaped
|
|
3765
3762
|
};
|
|
3766
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3763
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3767
3764
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3768
3765
|
'data-popper-escaped': hasPopperEscaped
|
|
3769
3766
|
});
|
|
@@ -3782,7 +3779,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3782
3779
|
var basePlacement = getBasePlacement(placement);
|
|
3783
3780
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3784
3781
|
|
|
3785
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3782
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3786
3783
|
placement: placement
|
|
3787
3784
|
})) : offset,
|
|
3788
3785
|
skidding = _ref[0],
|
|
@@ -3888,7 +3885,7 @@ function preventOverflow(_ref) {
|
|
|
3888
3885
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3889
3886
|
var referenceRect = state.rects.reference;
|
|
3890
3887
|
var popperRect = state.rects.popper;
|
|
3891
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3888
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3892
3889
|
placement: state.placement
|
|
3893
3890
|
})) : tetherOffset;
|
|
3894
3891
|
var data = {
|
|
@@ -3900,13 +3897,13 @@ function preventOverflow(_ref) {
|
|
|
3900
3897
|
return;
|
|
3901
3898
|
}
|
|
3902
3899
|
|
|
3903
|
-
if (checkMainAxis
|
|
3900
|
+
if (checkMainAxis) {
|
|
3904
3901
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3905
3902
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3906
3903
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3907
3904
|
var offset = popperOffsets[mainAxis];
|
|
3908
|
-
var min
|
|
3909
|
-
var max
|
|
3905
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3906
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3910
3907
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3911
3908
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3912
3909
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3933,29 +3930,26 @@ function preventOverflow(_ref) {
|
|
|
3933
3930
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3934
3931
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3935
3932
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3933
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3934
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3935
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3936
|
+
}
|
|
3936
3937
|
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3940
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3941
|
-
}
|
|
3942
|
-
|
|
3943
|
-
if (checkAltAxis) {
|
|
3944
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3938
|
+
if (checkAltAxis) {
|
|
3939
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3945
3940
|
|
|
3946
|
-
|
|
3941
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3947
3942
|
|
|
3948
|
-
|
|
3943
|
+
var _offset = popperOffsets[altAxis];
|
|
3949
3944
|
|
|
3950
|
-
|
|
3945
|
+
var _min = _offset + overflow[_mainSide];
|
|
3951
3946
|
|
|
3952
|
-
|
|
3947
|
+
var _max = _offset - overflow[_altSide];
|
|
3953
3948
|
|
|
3954
|
-
|
|
3949
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3955
3950
|
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
}
|
|
3951
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3952
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3959
3953
|
}
|
|
3960
3954
|
|
|
3961
3955
|
state.modifiersData[name] = data;
|
|
@@ -4186,9 +4180,9 @@ function uniqueBy(arr, fn) {
|
|
|
4186
4180
|
function mergeByName(modifiers) {
|
|
4187
4181
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4188
4182
|
var existing = merged[current.name];
|
|
4189
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4190
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4191
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4183
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4184
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4185
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4192
4186
|
}) : current;
|
|
4193
4187
|
return merged;
|
|
4194
4188
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4234,7 +4228,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4234
4228
|
var state = {
|
|
4235
4229
|
placement: 'bottom',
|
|
4236
4230
|
orderedModifiers: [],
|
|
4237
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4231
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4238
4232
|
modifiersData: {},
|
|
4239
4233
|
elements: {
|
|
4240
4234
|
reference: reference,
|
|
@@ -4249,7 +4243,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4249
4243
|
state: state,
|
|
4250
4244
|
setOptions: function setOptions(options) {
|
|
4251
4245
|
cleanupModifierEffects();
|
|
4252
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4246
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4253
4247
|
state.scrollParents = {
|
|
4254
4248
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4255
4249
|
popper: listScrollParents(popper)
|
|
@@ -4281,7 +4275,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4281
4275
|
}
|
|
4282
4276
|
}
|
|
4283
4277
|
|
|
4284
|
-
var _getComputedStyle = getComputedStyle$
|
|
4278
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4285
4279
|
marginTop = _getComputedStyle.marginTop,
|
|
4286
4280
|
marginRight = _getComputedStyle.marginRight,
|
|
4287
4281
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4621,7 +4615,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4621
4615
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4622
4616
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4623
4617
|
// so we need to check on context instead of a document root element.
|
|
4624
|
-
function contains(context, node) {
|
|
4618
|
+
function contains$1(context, node) {
|
|
4625
4619
|
if (context.contains) return context.contains(node);
|
|
4626
4620
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4627
4621
|
}
|
|
@@ -4695,13 +4689,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4695
4689
|
return componentOrElement != null ? componentOrElement : null;
|
|
4696
4690
|
}
|
|
4697
4691
|
|
|
4698
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4699
|
-
return ownerDocument
|
|
4692
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4693
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4700
4694
|
});
|
|
4701
4695
|
|
|
4702
4696
|
var escapeKeyCode = 27;
|
|
4703
4697
|
|
|
4704
|
-
var noop$
|
|
4698
|
+
var noop$1 = function noop() {};
|
|
4705
4699
|
|
|
4706
4700
|
function isLeftClickEvent(event) {
|
|
4707
4701
|
return event.button === 0;
|
|
@@ -4734,11 +4728,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4734
4728
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4735
4729
|
|
|
4736
4730
|
var preventMouseRootCloseRef = React.useRef(false);
|
|
4737
|
-
var onClose = onRootClose || noop$
|
|
4731
|
+
var onClose = onRootClose || noop$1;
|
|
4738
4732
|
var handleMouseCapture = React.useCallback(function (e) {
|
|
4739
4733
|
var currentTarget = getRefTarget(ref);
|
|
4740
4734
|
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');
|
|
4741
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4735
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4742
4736
|
}, [ref]);
|
|
4743
4737
|
var handleMouse = useEventCallback(function (e) {
|
|
4744
4738
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4755,7 +4749,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4755
4749
|
// https://github.com/facebook/react/issues/20074
|
|
4756
4750
|
|
|
4757
4751
|
var currentEvent = window.event;
|
|
4758
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4752
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4759
4753
|
// avoid false positives in the contains() check below if the target DOM
|
|
4760
4754
|
// element is removed in the React mouse callback.
|
|
4761
4755
|
|
|
@@ -4782,7 +4776,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4782
4776
|
|
|
4783
4777
|
if ('ontouchstart' in doc.documentElement) {
|
|
4784
4778
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4785
|
-
return listen(el, 'mousemove', noop$
|
|
4779
|
+
return listen(el, 'mousemove', noop$1);
|
|
4786
4780
|
});
|
|
4787
4781
|
}
|
|
4788
4782
|
|
|
@@ -4864,7 +4858,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4864
4858
|
});
|
|
4865
4859
|
}
|
|
4866
4860
|
|
|
4867
|
-
var noop$
|
|
4861
|
+
var noop$2 = function noop() {};
|
|
4868
4862
|
/**
|
|
4869
4863
|
* @memberOf Dropdown
|
|
4870
4864
|
* @param {object} options
|
|
@@ -4932,7 +4926,7 @@ function useDropdownMenu(options) {
|
|
|
4932
4926
|
|
|
4933
4927
|
var menu;
|
|
4934
4928
|
var menuProps = {
|
|
4935
|
-
ref: setMenu || noop$
|
|
4929
|
+
ref: setMenu || noop$2,
|
|
4936
4930
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4937
4931
|
};
|
|
4938
4932
|
var childArgs = {
|
|
@@ -4965,7 +4959,7 @@ function useDropdownMenu(options) {
|
|
|
4965
4959
|
});
|
|
4966
4960
|
return menu;
|
|
4967
4961
|
}
|
|
4968
|
-
var propTypes$
|
|
4962
|
+
var propTypes$2 = {
|
|
4969
4963
|
/**
|
|
4970
4964
|
* A render prop that returns a Menu element. The `props`
|
|
4971
4965
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5022,7 +5016,7 @@ var propTypes$8 = {
|
|
|
5022
5016
|
*/
|
|
5023
5017
|
rootCloseEvent: PropTypes__default['default'].string
|
|
5024
5018
|
};
|
|
5025
|
-
var defaultProps$
|
|
5019
|
+
var defaultProps$d = {
|
|
5026
5020
|
usePopper: true
|
|
5027
5021
|
};
|
|
5028
5022
|
|
|
@@ -5032,7 +5026,7 @@ var defaultProps$r = {
|
|
|
5032
5026
|
* @displayName DropdownMenu
|
|
5033
5027
|
* @memberOf Dropdown
|
|
5034
5028
|
*/
|
|
5035
|
-
function DropdownMenu
|
|
5029
|
+
function DropdownMenu(_ref2) {
|
|
5036
5030
|
var children = _ref2.children,
|
|
5037
5031
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5038
5032
|
|
|
@@ -5040,11 +5034,11 @@ function DropdownMenu$1(_ref2) {
|
|
|
5040
5034
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, args.hasShown ? children(args) : null);
|
|
5041
5035
|
}
|
|
5042
5036
|
|
|
5043
|
-
DropdownMenu
|
|
5044
|
-
DropdownMenu
|
|
5045
|
-
DropdownMenu
|
|
5037
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
5038
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
5039
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5046
5040
|
|
|
5047
|
-
var noop$
|
|
5041
|
+
var noop$3 = function noop() {};
|
|
5048
5042
|
/**
|
|
5049
5043
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5050
5044
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5058,11 +5052,11 @@ function useDropdownToggle() {
|
|
|
5058
5052
|
_ref$show = _ref.show,
|
|
5059
5053
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5060
5054
|
_ref$toggle = _ref.toggle,
|
|
5061
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
5055
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5062
5056
|
setToggle = _ref.setToggle;
|
|
5063
5057
|
|
|
5064
5058
|
return [{
|
|
5065
|
-
ref: setToggle || noop$
|
|
5059
|
+
ref: setToggle || noop$3,
|
|
5066
5060
|
'aria-haspopup': true,
|
|
5067
5061
|
'aria-expanded': !!show
|
|
5068
5062
|
}, {
|
|
@@ -5070,7 +5064,7 @@ function useDropdownToggle() {
|
|
|
5070
5064
|
toggle: toggle
|
|
5071
5065
|
}];
|
|
5072
5066
|
}
|
|
5073
|
-
var propTypes$
|
|
5067
|
+
var propTypes$3 = {
|
|
5074
5068
|
/**
|
|
5075
5069
|
* A render prop that returns a Toggle element. The `props`
|
|
5076
5070
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5095,7 +5089,7 @@ var propTypes$7 = {
|
|
|
5095
5089
|
* @displayName DropdownToggle
|
|
5096
5090
|
* @memberOf Dropdown
|
|
5097
5091
|
*/
|
|
5098
|
-
function DropdownToggle
|
|
5092
|
+
function DropdownToggle(_ref2) {
|
|
5099
5093
|
var children = _ref2.children;
|
|
5100
5094
|
|
|
5101
5095
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5111,10 +5105,10 @@ function DropdownToggle$1(_ref2) {
|
|
|
5111
5105
|
}));
|
|
5112
5106
|
}
|
|
5113
5107
|
|
|
5114
|
-
DropdownToggle
|
|
5115
|
-
DropdownToggle
|
|
5108
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5109
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5116
5110
|
|
|
5117
|
-
var propTypes$
|
|
5111
|
+
var propTypes$4 = {
|
|
5118
5112
|
/**
|
|
5119
5113
|
* A render prop that returns the root dropdown element. The `props`
|
|
5120
5114
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5186,7 +5180,7 @@ var propTypes$6 = {
|
|
|
5186
5180
|
/**
|
|
5187
5181
|
* @displayName Dropdown
|
|
5188
5182
|
*/
|
|
5189
|
-
function Dropdown
|
|
5183
|
+
function Dropdown(_ref) {
|
|
5190
5184
|
var drop = _ref.drop,
|
|
5191
5185
|
alignEnd = _ref.alignEnd,
|
|
5192
5186
|
defaultShow = _ref.defaultShow,
|
|
@@ -5328,15 +5322,15 @@ function Dropdown$1(_ref) {
|
|
|
5328
5322
|
}));
|
|
5329
5323
|
}
|
|
5330
5324
|
|
|
5331
|
-
Dropdown
|
|
5332
|
-
Dropdown
|
|
5333
|
-
Dropdown
|
|
5334
|
-
Dropdown
|
|
5325
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5326
|
+
Dropdown.propTypes = propTypes$4;
|
|
5327
|
+
Dropdown.Menu = DropdownMenu;
|
|
5328
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5335
5329
|
|
|
5336
5330
|
var NavContext = React__default['default'].createContext(null);
|
|
5337
5331
|
NavContext.displayName = 'NavContext';
|
|
5338
5332
|
|
|
5339
|
-
var defaultProps$
|
|
5333
|
+
var defaultProps$e = {
|
|
5340
5334
|
as: SafeAnchor,
|
|
5341
5335
|
disabled: false
|
|
5342
5336
|
};
|
|
@@ -5385,7 +5379,7 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5385
5379
|
);
|
|
5386
5380
|
});
|
|
5387
5381
|
DropdownItem.displayName = 'DropdownItem';
|
|
5388
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5382
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5389
5383
|
|
|
5390
5384
|
var toFnRef = function toFnRef(ref) {
|
|
5391
5385
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5424,8 +5418,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5424
5418
|
}, [refA, refB]);
|
|
5425
5419
|
}
|
|
5426
5420
|
|
|
5427
|
-
var context = React__default['default'].createContext(null);
|
|
5428
|
-
context.displayName = 'NavbarContext';
|
|
5421
|
+
var context$2 = React__default['default'].createContext(null);
|
|
5422
|
+
context$2.displayName = 'NavbarContext';
|
|
5429
5423
|
|
|
5430
5424
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5431
5425
|
// @ts-ignore
|
|
@@ -5546,13 +5540,13 @@ var alignPropType = PropTypes__default['default'].oneOfType([alignDirection, Pro
|
|
|
5546
5540
|
}), PropTypes__default['default'].shape({
|
|
5547
5541
|
xl: alignDirection
|
|
5548
5542
|
})]);
|
|
5549
|
-
var defaultProps$
|
|
5543
|
+
var defaultProps$f = {
|
|
5550
5544
|
align: 'left',
|
|
5551
5545
|
alignRight: false,
|
|
5552
5546
|
flip: true
|
|
5553
5547
|
}; // TODO: remove this hack
|
|
5554
5548
|
|
|
5555
|
-
var DropdownMenu = React__default['default'].forwardRef(function (_ref, ref) {
|
|
5549
|
+
var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
5556
5550
|
var bsPrefix = _ref.bsPrefix,
|
|
5557
5551
|
className = _ref.className,
|
|
5558
5552
|
align = _ref.align,
|
|
@@ -5566,7 +5560,7 @@ var DropdownMenu = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5566
5560
|
popperConfig = _ref.popperConfig,
|
|
5567
5561
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5568
5562
|
|
|
5569
|
-
var isNavbar = React.useContext(context);
|
|
5563
|
+
var isNavbar = React.useContext(context$2);
|
|
5570
5564
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5571
5565
|
|
|
5572
5566
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5631,8 +5625,8 @@ var DropdownMenu = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5631
5625
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5632
5626
|
}));
|
|
5633
5627
|
});
|
|
5634
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5635
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5628
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5629
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5636
5630
|
|
|
5637
5631
|
var isRequiredForA11y_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5638
5632
|
|
|
@@ -5661,7 +5655,7 @@ module.exports = exports['default'];
|
|
|
5661
5655
|
|
|
5662
5656
|
_commonjsHelpers.unwrapExports(isRequiredForA11y_1);
|
|
5663
5657
|
|
|
5664
|
-
var DropdownToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
5658
|
+
var DropdownToggle$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
5665
5659
|
var bsPrefix = _ref.bsPrefix,
|
|
5666
5660
|
split = _ref.split,
|
|
5667
5661
|
className = _ref.className,
|
|
@@ -5688,7 +5682,7 @@ var DropdownToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5688
5682
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5689
5683
|
}, toggleProps, props));
|
|
5690
5684
|
});
|
|
5691
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5685
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5692
5686
|
|
|
5693
5687
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5694
5688
|
defaultProps: {
|
|
@@ -5703,10 +5697,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5703
5697
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5704
5698
|
Component: 'span'
|
|
5705
5699
|
});
|
|
5706
|
-
var defaultProps$
|
|
5700
|
+
var defaultProps$g = {
|
|
5707
5701
|
navbar: false
|
|
5708
5702
|
};
|
|
5709
|
-
var Dropdown = React__default['default'].forwardRef(function (pProps, ref) {
|
|
5703
|
+
var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
5710
5704
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5711
5705
|
show: 'onToggle'
|
|
5712
5706
|
}),
|
|
@@ -5745,7 +5739,7 @@ var Dropdown = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5745
5739
|
});
|
|
5746
5740
|
return /*#__PURE__*/React__default['default'].createElement(SelectableContext.Provider, {
|
|
5747
5741
|
value: handleSelect
|
|
5748
|
-
}, /*#__PURE__*/React__default['default'].createElement(Dropdown
|
|
5742
|
+
}, /*#__PURE__*/React__default['default'].createElement(Dropdown, {
|
|
5749
5743
|
drop: drop,
|
|
5750
5744
|
show: show,
|
|
5751
5745
|
alignEnd: alignRight,
|
|
@@ -5760,14 +5754,14 @@ var Dropdown = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5760
5754
|
}));
|
|
5761
5755
|
}));
|
|
5762
5756
|
});
|
|
5763
|
-
Dropdown.displayName = 'Dropdown';
|
|
5764
|
-
Dropdown.defaultProps = defaultProps$
|
|
5765
|
-
Dropdown.Divider = DropdownDivider;
|
|
5766
|
-
Dropdown.Header = DropdownHeader;
|
|
5767
|
-
Dropdown.Item = DropdownItem;
|
|
5768
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5769
|
-
Dropdown.Menu = DropdownMenu;
|
|
5770
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5757
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5758
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5759
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5760
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5761
|
+
Dropdown$1.Item = DropdownItem;
|
|
5762
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5763
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5764
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5771
5765
|
|
|
5772
5766
|
var propTypes$5 = {
|
|
5773
5767
|
/**
|
|
@@ -5844,16 +5838,16 @@ var DropdownButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5844
5838
|
id = _ref.id,
|
|
5845
5839
|
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5846
5840
|
|
|
5847
|
-
return /*#__PURE__*/React__default['default'].createElement(Dropdown, _extends({
|
|
5841
|
+
return /*#__PURE__*/React__default['default'].createElement(Dropdown$1, _extends({
|
|
5848
5842
|
ref: ref
|
|
5849
|
-
}, props), /*#__PURE__*/React__default['default'].createElement(DropdownToggle, {
|
|
5843
|
+
}, props), /*#__PURE__*/React__default['default'].createElement(DropdownToggle$1, {
|
|
5850
5844
|
id: id,
|
|
5851
5845
|
href: href,
|
|
5852
5846
|
size: size,
|
|
5853
5847
|
variant: variant,
|
|
5854
5848
|
disabled: disabled,
|
|
5855
5849
|
childBsPrefix: bsPrefix
|
|
5856
|
-
}, title), /*#__PURE__*/React__default['default'].createElement(DropdownMenu, {
|
|
5850
|
+
}, title), /*#__PURE__*/React__default['default'].createElement(DropdownMenu$1, {
|
|
5857
5851
|
align: menuAlign,
|
|
5858
5852
|
role: menuRole,
|
|
5859
5853
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5956,7 +5950,7 @@ module.exports = exports['default'];
|
|
|
5956
5950
|
|
|
5957
5951
|
_commonjsHelpers.unwrapExports(all_1);
|
|
5958
5952
|
|
|
5959
|
-
var propTypes$
|
|
5953
|
+
var propTypes$6 = {
|
|
5960
5954
|
/**
|
|
5961
5955
|
* Specify whether the feedback is for valid or invalid fields
|
|
5962
5956
|
*
|
|
@@ -5985,7 +5979,7 @@ function (_ref, ref) {
|
|
|
5985
5979
|
}));
|
|
5986
5980
|
});
|
|
5987
5981
|
Feedback.displayName = 'Feedback';
|
|
5988
|
-
Feedback.propTypes = propTypes$
|
|
5982
|
+
Feedback.propTypes = propTypes$6;
|
|
5989
5983
|
|
|
5990
5984
|
var FormContext = React__default['default'].createContext({
|
|
5991
5985
|
controlId: undefined
|
|
@@ -6335,7 +6329,7 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6335
6329
|
});
|
|
6336
6330
|
FormGroup.displayName = 'FormGroup';
|
|
6337
6331
|
|
|
6338
|
-
var defaultProps$
|
|
6332
|
+
var defaultProps$h = {
|
|
6339
6333
|
column: false,
|
|
6340
6334
|
srOnly: false
|
|
6341
6335
|
};
|
|
@@ -6374,7 +6368,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6374
6368
|
);
|
|
6375
6369
|
});
|
|
6376
6370
|
FormLabel.displayName = 'FormLabel';
|
|
6377
|
-
FormLabel.defaultProps = defaultProps$
|
|
6371
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6378
6372
|
|
|
6379
6373
|
var FormText = React__default['default'].forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6380
6374
|
function (_ref, ref) {
|
|
@@ -6404,7 +6398,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6404
6398
|
Switch.Label = FormCheck.Label;
|
|
6405
6399
|
|
|
6406
6400
|
var FormRow = createWithBsPrefix('form-row');
|
|
6407
|
-
var defaultProps$
|
|
6401
|
+
var defaultProps$i = {
|
|
6408
6402
|
inline: false
|
|
6409
6403
|
};
|
|
6410
6404
|
var FormImpl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6423,7 +6417,7 @@ var FormImpl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6423
6417
|
}));
|
|
6424
6418
|
});
|
|
6425
6419
|
FormImpl.displayName = 'Form';
|
|
6426
|
-
FormImpl.defaultProps = defaultProps$
|
|
6420
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6427
6421
|
FormImpl.Row = FormRow;
|
|
6428
6422
|
FormImpl.Group = FormGroup;
|
|
6429
6423
|
FormImpl.Control = FormControl$1;
|
|
@@ -6433,7 +6427,7 @@ FormImpl.Switch = Switch;
|
|
|
6433
6427
|
FormImpl.Label = FormLabel;
|
|
6434
6428
|
FormImpl.Text = FormText;
|
|
6435
6429
|
|
|
6436
|
-
var defaultProps$
|
|
6430
|
+
var defaultProps$j = {
|
|
6437
6431
|
fluid: false
|
|
6438
6432
|
};
|
|
6439
6433
|
var Container = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6453,9 +6447,9 @@ var Container = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6453
6447
|
}));
|
|
6454
6448
|
});
|
|
6455
6449
|
Container.displayName = 'Container';
|
|
6456
|
-
Container.defaultProps = defaultProps$
|
|
6450
|
+
Container.defaultProps = defaultProps$j;
|
|
6457
6451
|
|
|
6458
|
-
var propTypes$
|
|
6452
|
+
var propTypes$7 = {
|
|
6459
6453
|
/**
|
|
6460
6454
|
* @default 'img'
|
|
6461
6455
|
*/
|
|
@@ -6508,7 +6502,7 @@ var Image = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6508
6502
|
Image.displayName = 'Image';
|
|
6509
6503
|
Image.defaultProps = defaultProps$k;
|
|
6510
6504
|
|
|
6511
|
-
var defaultProps$
|
|
6505
|
+
var defaultProps$l = {
|
|
6512
6506
|
fluid: true
|
|
6513
6507
|
};
|
|
6514
6508
|
var FigureImage = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6522,8 +6516,8 @@ var FigureImage = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6522
6516
|
}));
|
|
6523
6517
|
});
|
|
6524
6518
|
FigureImage.displayName = 'FigureImage';
|
|
6525
|
-
FigureImage.propTypes = propTypes$
|
|
6526
|
-
FigureImage.defaultProps = defaultProps$
|
|
6519
|
+
FigureImage.propTypes = propTypes$7;
|
|
6520
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6527
6521
|
|
|
6528
6522
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6529
6523
|
Component: 'figcaption'
|
|
@@ -6586,7 +6580,7 @@ _extends({}, InputGroup, {
|
|
|
6586
6580
|
Prepend: InputGroupPrepend
|
|
6587
6581
|
});
|
|
6588
6582
|
|
|
6589
|
-
var defaultProps$
|
|
6583
|
+
var defaultProps$m = {
|
|
6590
6584
|
fluid: false
|
|
6591
6585
|
};
|
|
6592
6586
|
var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6607,13 +6601,13 @@ var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6607
6601
|
className: classnames(className, classes)
|
|
6608
6602
|
}));
|
|
6609
6603
|
});
|
|
6610
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6604
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6611
6605
|
Jumbotron.displayName = 'Jumbotron';
|
|
6612
6606
|
|
|
6613
6607
|
var TabContext = React__default['default'].createContext(null);
|
|
6614
6608
|
|
|
6615
6609
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6616
|
-
var noop$
|
|
6610
|
+
var noop$4 = function noop() {};
|
|
6617
6611
|
|
|
6618
6612
|
var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
6619
6613
|
var _ref$as = _ref.as,
|
|
@@ -6703,8 +6697,8 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6703
6697
|
role: role,
|
|
6704
6698
|
// used by NavLink to determine it's role
|
|
6705
6699
|
activeKey: makeEventKey(activeKey),
|
|
6706
|
-
getControlledId: getControlledId || noop$
|
|
6707
|
-
getControllerId: getControllerId || noop$
|
|
6700
|
+
getControlledId: getControlledId || noop$4,
|
|
6701
|
+
getControllerId: getControllerId || noop$4
|
|
6708
6702
|
}
|
|
6709
6703
|
}, /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6710
6704
|
onKeyDown: handleKeyDown,
|
|
@@ -6713,7 +6707,7 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6713
6707
|
}))));
|
|
6714
6708
|
});
|
|
6715
6709
|
|
|
6716
|
-
var defaultProps$
|
|
6710
|
+
var defaultProps$n = {
|
|
6717
6711
|
disabled: false
|
|
6718
6712
|
};
|
|
6719
6713
|
var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6759,9 +6753,9 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6759
6753
|
className: classnames(className, isActive && 'active')
|
|
6760
6754
|
}));
|
|
6761
6755
|
});
|
|
6762
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6756
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6763
6757
|
|
|
6764
|
-
var defaultProps$
|
|
6758
|
+
var defaultProps$o = {
|
|
6765
6759
|
variant: undefined,
|
|
6766
6760
|
active: false,
|
|
6767
6761
|
disabled: false
|
|
@@ -6799,10 +6793,10 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6799
6793
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6800
6794
|
}));
|
|
6801
6795
|
});
|
|
6802
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6796
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6803
6797
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6804
6798
|
|
|
6805
|
-
var defaultProps$
|
|
6799
|
+
var defaultProps$p = {
|
|
6806
6800
|
variant: undefined,
|
|
6807
6801
|
horizontal: undefined
|
|
6808
6802
|
};
|
|
@@ -6835,7 +6829,7 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6835
6829
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6836
6830
|
}));
|
|
6837
6831
|
});
|
|
6838
|
-
ListGroup.defaultProps = defaultProps$
|
|
6832
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6839
6833
|
ListGroup.displayName = 'ListGroup';
|
|
6840
6834
|
ListGroup.Item = ListGroupItem;
|
|
6841
6835
|
|
|
@@ -6884,7 +6878,7 @@ function scrollbarSize(recalc) {
|
|
|
6884
6878
|
|
|
6885
6879
|
function activeElement(doc) {
|
|
6886
6880
|
if (doc === void 0) {
|
|
6887
|
-
doc = ownerDocument
|
|
6881
|
+
doc = ownerDocument();
|
|
6888
6882
|
}
|
|
6889
6883
|
|
|
6890
6884
|
// Support: IE 9 only
|
|
@@ -6934,7 +6928,7 @@ function isBody(node) {
|
|
|
6934
6928
|
}
|
|
6935
6929
|
|
|
6936
6930
|
function bodyIsOverflowing(node) {
|
|
6937
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6931
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6938
6932
|
var win = isWindow(node) || doc.defaultView;
|
|
6939
6933
|
return doc.body.clientWidth < win.innerWidth;
|
|
6940
6934
|
}
|
|
@@ -7146,7 +7140,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7146
7140
|
var _ref;
|
|
7147
7141
|
|
|
7148
7142
|
if (typeof document === 'undefined') return null;
|
|
7149
|
-
if (ref == null) return ownerDocument
|
|
7143
|
+
if (ref == null) return ownerDocument().body;
|
|
7150
7144
|
if (typeof ref === 'function') ref = ref();
|
|
7151
7145
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7152
7146
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7179,11 +7173,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7179
7173
|
return resolvedRef;
|
|
7180
7174
|
}
|
|
7181
7175
|
|
|
7182
|
-
var manager
|
|
7176
|
+
var manager;
|
|
7183
7177
|
|
|
7184
7178
|
function getManager() {
|
|
7185
|
-
if (!manager
|
|
7186
|
-
return manager
|
|
7179
|
+
if (!manager) manager = new ModalManager();
|
|
7180
|
+
return manager;
|
|
7187
7181
|
}
|
|
7188
7182
|
|
|
7189
7183
|
function useModalManager(provided) {
|
|
@@ -7211,7 +7205,7 @@ function useModalManager(provided) {
|
|
|
7211
7205
|
});
|
|
7212
7206
|
}
|
|
7213
7207
|
|
|
7214
|
-
var Modal
|
|
7208
|
+
var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7215
7209
|
var _ref$show = _ref.show,
|
|
7216
7210
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7217
7211
|
_ref$role = _ref.role,
|
|
@@ -7295,7 +7289,7 @@ var Modal$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7295
7289
|
if (autoFocus) {
|
|
7296
7290
|
var currentActiveElement = activeElement(document);
|
|
7297
7291
|
|
|
7298
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7292
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7299
7293
|
lastFocusRef.current = currentActiveElement;
|
|
7300
7294
|
modal.dialog.focus();
|
|
7301
7295
|
}
|
|
@@ -7341,7 +7335,7 @@ var Modal$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7341
7335
|
|
|
7342
7336
|
var currentActiveElement = activeElement();
|
|
7343
7337
|
|
|
7344
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7338
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7345
7339
|
modal.dialog.focus();
|
|
7346
7340
|
}
|
|
7347
7341
|
});
|
|
@@ -7432,7 +7426,7 @@ var Modal$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7432
7426
|
|
|
7433
7427
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/ReactDOM__default['default'].createPortal( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, backdropElement, dialog), container));
|
|
7434
7428
|
});
|
|
7435
|
-
var propTypes$
|
|
7429
|
+
var propTypes$8 = {
|
|
7436
7430
|
/**
|
|
7437
7431
|
* Set the visibility of the Modal
|
|
7438
7432
|
*/
|
|
@@ -7588,9 +7582,9 @@ var propTypes$2 = {
|
|
|
7588
7582
|
*/
|
|
7589
7583
|
manager: PropTypes__default['default'].instanceOf(ModalManager)
|
|
7590
7584
|
};
|
|
7591
|
-
Modal
|
|
7592
|
-
Modal
|
|
7593
|
-
var BaseModal = Object.assign(Modal
|
|
7585
|
+
Modal.displayName = 'Modal';
|
|
7586
|
+
Modal.propTypes = propTypes$8;
|
|
7587
|
+
var BaseModal = Object.assign(Modal, {
|
|
7594
7588
|
Manager: ModalManager
|
|
7595
7589
|
});
|
|
7596
7590
|
|
|
@@ -7601,7 +7595,7 @@ var Selector = {
|
|
|
7601
7595
|
};
|
|
7602
7596
|
|
|
7603
7597
|
var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
7604
|
-
|
|
7598
|
+
_inheritsLoose(BootstrapModalManager, _ModalManager);
|
|
7605
7599
|
|
|
7606
7600
|
function BootstrapModalManager() {
|
|
7607
7601
|
return _ModalManager.apply(this, arguments) || this;
|
|
@@ -7697,7 +7691,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7697
7691
|
|
|
7698
7692
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7699
7693
|
|
|
7700
|
-
var defaultProps$
|
|
7694
|
+
var defaultProps$q = {
|
|
7701
7695
|
closeLabel: 'Close',
|
|
7702
7696
|
closeButton: false
|
|
7703
7697
|
};
|
|
@@ -7726,15 +7720,15 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7726
7720
|
}));
|
|
7727
7721
|
});
|
|
7728
7722
|
ModalHeader.displayName = 'ModalHeader';
|
|
7729
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7723
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7730
7724
|
|
|
7731
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7725
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7732
7726
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7733
|
-
Component: DivStyledAsH4
|
|
7727
|
+
Component: DivStyledAsH4$1
|
|
7734
7728
|
});
|
|
7735
7729
|
|
|
7736
|
-
var manager;
|
|
7737
|
-
var defaultProps$
|
|
7730
|
+
var manager$1;
|
|
7731
|
+
var defaultProps$r = {
|
|
7738
7732
|
show: false,
|
|
7739
7733
|
backdrop: true,
|
|
7740
7734
|
keyboard: true,
|
|
@@ -7756,7 +7750,7 @@ function BackdropTransition(props) {
|
|
|
7756
7750
|
/* eslint-enable no-use-before-define */
|
|
7757
7751
|
|
|
7758
7752
|
|
|
7759
|
-
var Modal = React__default['default'].forwardRef(function (_ref, ref) {
|
|
7753
|
+
var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
7760
7754
|
var bsPrefix = _ref.bsPrefix,
|
|
7761
7755
|
className = _ref.className,
|
|
7762
7756
|
style = _ref.style,
|
|
@@ -7822,14 +7816,14 @@ var Modal = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7822
7816
|
|
|
7823
7817
|
function getModalManager() {
|
|
7824
7818
|
if (propsManager) return propsManager;
|
|
7825
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7826
|
-
return manager;
|
|
7819
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7820
|
+
return manager$1;
|
|
7827
7821
|
}
|
|
7828
7822
|
|
|
7829
7823
|
function updateDialogStyle(node) {
|
|
7830
7824
|
if (!canUseDOM) return;
|
|
7831
7825
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7832
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7826
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7833
7827
|
setStyle({
|
|
7834
7828
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7835
7829
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -8010,15 +8004,15 @@ var Modal = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8010
8004
|
renderDialog: renderDialog
|
|
8011
8005
|
}));
|
|
8012
8006
|
});
|
|
8013
|
-
Modal.displayName = 'Modal';
|
|
8014
|
-
Modal.defaultProps = defaultProps$
|
|
8015
|
-
Modal.Body = ModalBody;
|
|
8016
|
-
Modal.Header = ModalHeader;
|
|
8017
|
-
Modal.Title = ModalTitle;
|
|
8018
|
-
Modal.Footer = ModalFooter;
|
|
8019
|
-
Modal.Dialog = ModalDialog;
|
|
8020
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8021
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8007
|
+
Modal$1.displayName = 'Modal';
|
|
8008
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
8009
|
+
Modal$1.Body = ModalBody;
|
|
8010
|
+
Modal$1.Header = ModalHeader;
|
|
8011
|
+
Modal$1.Title = ModalTitle;
|
|
8012
|
+
Modal$1.Footer = ModalFooter;
|
|
8013
|
+
Modal$1.Dialog = ModalDialog;
|
|
8014
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
8015
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
8022
8016
|
|
|
8023
8017
|
var NavItem = React__default['default'].forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8024
8018
|
function (_ref, ref) {
|
|
@@ -8037,7 +8031,7 @@ function (_ref, ref) {
|
|
|
8037
8031
|
});
|
|
8038
8032
|
NavItem.displayName = 'NavItem';
|
|
8039
8033
|
|
|
8040
|
-
var defaultProps$
|
|
8034
|
+
var defaultProps$s = {
|
|
8041
8035
|
disabled: false,
|
|
8042
8036
|
as: SafeAnchor
|
|
8043
8037
|
};
|
|
@@ -8063,9 +8057,9 @@ var NavLink = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8063
8057
|
}));
|
|
8064
8058
|
});
|
|
8065
8059
|
NavLink.displayName = 'NavLink';
|
|
8066
|
-
NavLink.defaultProps = defaultProps$
|
|
8060
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8067
8061
|
|
|
8068
|
-
var defaultProps$
|
|
8062
|
+
var defaultProps$t = {
|
|
8069
8063
|
justify: false,
|
|
8070
8064
|
fill: false
|
|
8071
8065
|
};
|
|
@@ -8091,7 +8085,7 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
8091
8085
|
var navbarBsPrefix;
|
|
8092
8086
|
var cardHeaderBsPrefix;
|
|
8093
8087
|
var isNavbar = false;
|
|
8094
|
-
var navbarContext = React.useContext(context);
|
|
8088
|
+
var navbarContext = React.useContext(context$2);
|
|
8095
8089
|
var cardContext = React.useContext(context$1);
|
|
8096
8090
|
|
|
8097
8091
|
if (navbarContext) {
|
|
@@ -8109,7 +8103,7 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
8109
8103
|
}, props), children);
|
|
8110
8104
|
});
|
|
8111
8105
|
Nav.displayName = 'Nav';
|
|
8112
|
-
Nav.defaultProps = defaultProps$
|
|
8106
|
+
Nav.defaultProps = defaultProps$t;
|
|
8113
8107
|
Nav.Item = NavItem;
|
|
8114
8108
|
Nav.Link = NavLink;
|
|
8115
8109
|
|
|
@@ -8134,7 +8128,7 @@ var NavbarCollapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8134
8128
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8135
8129
|
|
|
8136
8130
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8137
|
-
return /*#__PURE__*/React__default['default'].createElement(context.Consumer, null, function (context) {
|
|
8131
|
+
return /*#__PURE__*/React__default['default'].createElement(context$2.Consumer, null, function (context) {
|
|
8138
8132
|
return /*#__PURE__*/React__default['default'].createElement(Collapse, _extends({
|
|
8139
8133
|
in: !!(context && context.expanded)
|
|
8140
8134
|
}, props), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -8145,7 +8139,7 @@ var NavbarCollapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8145
8139
|
});
|
|
8146
8140
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8147
8141
|
|
|
8148
|
-
var defaultProps$
|
|
8142
|
+
var defaultProps$u = {
|
|
8149
8143
|
label: 'Toggle navigation'
|
|
8150
8144
|
};
|
|
8151
8145
|
var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -8160,7 +8154,7 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8160
8154
|
|
|
8161
8155
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8162
8156
|
|
|
8163
|
-
var _ref2 = React.useContext(context) || {},
|
|
8157
|
+
var _ref2 = React.useContext(context$2) || {},
|
|
8164
8158
|
onToggle = _ref2.onToggle,
|
|
8165
8159
|
expanded = _ref2.expanded;
|
|
8166
8160
|
|
|
@@ -8183,12 +8177,12 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8183
8177
|
}));
|
|
8184
8178
|
});
|
|
8185
8179
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8186
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8180
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8187
8181
|
|
|
8188
8182
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8189
8183
|
Component: 'span'
|
|
8190
8184
|
});
|
|
8191
|
-
var defaultProps$
|
|
8185
|
+
var defaultProps$v = {
|
|
8192
8186
|
expand: true,
|
|
8193
8187
|
variant: 'light',
|
|
8194
8188
|
collapseOnSelect: false
|
|
@@ -8241,7 +8235,7 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8241
8235
|
expanded: !!expanded
|
|
8242
8236
|
};
|
|
8243
8237
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8244
|
-
return /*#__PURE__*/React__default['default'].createElement(context.Provider, {
|
|
8238
|
+
return /*#__PURE__*/React__default['default'].createElement(context$2.Provider, {
|
|
8245
8239
|
value: navbarContext
|
|
8246
8240
|
}, /*#__PURE__*/React__default['default'].createElement(SelectableContext.Provider, {
|
|
8247
8241
|
value: handleCollapse
|
|
@@ -8251,14 +8245,14 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8251
8245
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8252
8246
|
}), children)));
|
|
8253
8247
|
});
|
|
8254
|
-
Navbar.defaultProps = defaultProps$
|
|
8248
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8255
8249
|
Navbar.displayName = 'Navbar';
|
|
8256
8250
|
Navbar.Brand = NavbarBrand;
|
|
8257
8251
|
Navbar.Toggle = NavbarToggle;
|
|
8258
8252
|
Navbar.Collapse = NavbarCollapse;
|
|
8259
8253
|
Navbar.Text = NavbarText;
|
|
8260
8254
|
|
|
8261
|
-
var propTypes$
|
|
8255
|
+
var propTypes$9 = {
|
|
8262
8256
|
/**
|
|
8263
8257
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8264
8258
|
* @type {string|number}
|
|
@@ -8306,29 +8300,29 @@ var NavDropdown = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8306
8300
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8307
8301
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8308
8302
|
|
|
8309
|
-
return /*#__PURE__*/React__default['default'].createElement(Dropdown, _extends({
|
|
8303
|
+
return /*#__PURE__*/React__default['default'].createElement(Dropdown$1, _extends({
|
|
8310
8304
|
ref: ref
|
|
8311
8305
|
}, props, {
|
|
8312
8306
|
as: NavItem
|
|
8313
|
-
}), /*#__PURE__*/React__default['default'].createElement(Dropdown.Toggle, {
|
|
8307
|
+
}), /*#__PURE__*/React__default['default'].createElement(Dropdown$1.Toggle, {
|
|
8314
8308
|
id: id,
|
|
8315
8309
|
eventKey: null,
|
|
8316
8310
|
active: active,
|
|
8317
8311
|
disabled: disabled,
|
|
8318
8312
|
childBsPrefix: bsPrefix,
|
|
8319
8313
|
as: NavLink
|
|
8320
|
-
}, title), /*#__PURE__*/React__default['default'].createElement(Dropdown.Menu, {
|
|
8314
|
+
}, title), /*#__PURE__*/React__default['default'].createElement(Dropdown$1.Menu, {
|
|
8321
8315
|
role: menuRole,
|
|
8322
8316
|
renderOnMount: renderMenuOnMount,
|
|
8323
8317
|
rootCloseEvent: rootCloseEvent
|
|
8324
8318
|
}, children));
|
|
8325
8319
|
});
|
|
8326
8320
|
NavDropdown.displayName = 'NavDropdown';
|
|
8327
|
-
NavDropdown.propTypes = propTypes$
|
|
8328
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8329
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8330
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8331
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8321
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8322
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8323
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8324
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8325
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8332
8326
|
|
|
8333
8327
|
/**
|
|
8334
8328
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8570,7 +8564,7 @@ Overlay.propTypes = {
|
|
|
8570
8564
|
};
|
|
8571
8565
|
|
|
8572
8566
|
/*#__PURE__*/(function (_React$Component) {
|
|
8573
|
-
|
|
8567
|
+
_inheritsLoose(RefHolder, _React$Component);
|
|
8574
8568
|
|
|
8575
8569
|
function RefHolder() {
|
|
8576
8570
|
return _React$Component.apply(this, arguments) || this;
|
|
@@ -8585,7 +8579,7 @@ Overlay.propTypes = {
|
|
|
8585
8579
|
return RefHolder;
|
|
8586
8580
|
})(React__default['default'].Component);
|
|
8587
8581
|
|
|
8588
|
-
var defaultProps$
|
|
8582
|
+
var defaultProps$w = {
|
|
8589
8583
|
active: false,
|
|
8590
8584
|
disabled: false,
|
|
8591
8585
|
activeLabel: '(current)'
|
|
@@ -8614,7 +8608,7 @@ var PageItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8614
8608
|
className: "sr-only"
|
|
8615
8609
|
}, activeLabel)));
|
|
8616
8610
|
});
|
|
8617
|
-
PageItem.defaultProps = defaultProps$
|
|
8611
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8618
8612
|
PageItem.displayName = 'PageItem';
|
|
8619
8613
|
|
|
8620
8614
|
function createButton(name, defaultValue, label) {
|
|
@@ -8704,7 +8698,7 @@ var PopoverContent = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8704
8698
|
}), children);
|
|
8705
8699
|
});
|
|
8706
8700
|
|
|
8707
|
-
var defaultProps$
|
|
8701
|
+
var defaultProps$x = {
|
|
8708
8702
|
placement: 'right'
|
|
8709
8703
|
};
|
|
8710
8704
|
var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -8734,13 +8728,13 @@ var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8734
8728
|
className: "arrow"
|
|
8735
8729
|
}, arrowProps)), content ? /*#__PURE__*/React__default['default'].createElement(PopoverContent, null, children) : children);
|
|
8736
8730
|
});
|
|
8737
|
-
Popover.defaultProps = defaultProps$
|
|
8731
|
+
Popover.defaultProps = defaultProps$x;
|
|
8738
8732
|
Popover.Title = PopoverTitle;
|
|
8739
8733
|
Popover.Content = PopoverContent;
|
|
8740
8734
|
|
|
8741
8735
|
var ROUND_PRECISION = 1000;
|
|
8742
8736
|
|
|
8743
|
-
var defaultProps$
|
|
8737
|
+
var defaultProps$y = {
|
|
8744
8738
|
min: 0,
|
|
8745
8739
|
max: 100,
|
|
8746
8740
|
animated: false,
|
|
@@ -8830,9 +8824,9 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8830
8824
|
}, ref));
|
|
8831
8825
|
});
|
|
8832
8826
|
ProgressBar.displayName = 'ProgressBar';
|
|
8833
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8827
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8834
8828
|
|
|
8835
|
-
var defaultProps$
|
|
8829
|
+
var defaultProps$z = {
|
|
8836
8830
|
aspectRatio: '1by1'
|
|
8837
8831
|
};
|
|
8838
8832
|
var ResponsiveEmbed = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -8852,10 +8846,10 @@ var ResponsiveEmbed = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
8852
8846
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8853
8847
|
}));
|
|
8854
8848
|
});
|
|
8855
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8849
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8856
8850
|
|
|
8857
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8858
|
-
var defaultProps$
|
|
8851
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8852
|
+
var defaultProps$A = {
|
|
8859
8853
|
noGutters: false
|
|
8860
8854
|
};
|
|
8861
8855
|
var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -8869,7 +8863,7 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8869
8863
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8870
8864
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8871
8865
|
var classes = [];
|
|
8872
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8866
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8873
8867
|
var propValue = props[brkPoint];
|
|
8874
8868
|
delete props[brkPoint];
|
|
8875
8869
|
var cols;
|
|
@@ -8890,7 +8884,7 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8890
8884
|
}));
|
|
8891
8885
|
});
|
|
8892
8886
|
Row.displayName = 'Row';
|
|
8893
|
-
Row.defaultProps = defaultProps$
|
|
8887
|
+
Row.defaultProps = defaultProps$A;
|
|
8894
8888
|
|
|
8895
8889
|
var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
8896
8890
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8913,7 +8907,7 @@ var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8913
8907
|
});
|
|
8914
8908
|
Spinner.displayName = 'Spinner';
|
|
8915
8909
|
|
|
8916
|
-
var propTypes = {
|
|
8910
|
+
var propTypes$a = {
|
|
8917
8911
|
/**
|
|
8918
8912
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8919
8913
|
* @type {string|number}
|
|
@@ -8975,7 +8969,7 @@ var propTypes = {
|
|
|
8975
8969
|
/** @ignore */
|
|
8976
8970
|
size: PropTypes__default['default'].string
|
|
8977
8971
|
};
|
|
8978
|
-
var defaultProps$
|
|
8972
|
+
var defaultProps$B = {
|
|
8979
8973
|
toggleLabel: 'Toggle dropdown',
|
|
8980
8974
|
type: 'button'
|
|
8981
8975
|
};
|
|
@@ -8997,7 +8991,7 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8997
8991
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8998
8992
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8999
8993
|
|
|
9000
|
-
return /*#__PURE__*/React__default['default'].createElement(Dropdown, _extends({
|
|
8994
|
+
return /*#__PURE__*/React__default['default'].createElement(Dropdown$1, _extends({
|
|
9001
8995
|
ref: ref
|
|
9002
8996
|
}, props, {
|
|
9003
8997
|
as: ButtonGroup
|
|
@@ -9010,7 +9004,7 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9010
9004
|
target: target,
|
|
9011
9005
|
onClick: onClick,
|
|
9012
9006
|
type: type
|
|
9013
|
-
}, title), /*#__PURE__*/React__default['default'].createElement(Dropdown.Toggle, {
|
|
9007
|
+
}, title), /*#__PURE__*/React__default['default'].createElement(Dropdown$1.Toggle, {
|
|
9014
9008
|
split: true,
|
|
9015
9009
|
id: id ? id.toString() : undefined,
|
|
9016
9010
|
size: size,
|
|
@@ -9019,15 +9013,15 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9019
9013
|
childBsPrefix: bsPrefix
|
|
9020
9014
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
9021
9015
|
className: "sr-only"
|
|
9022
|
-
}, toggleLabel)), /*#__PURE__*/React__default['default'].createElement(Dropdown.Menu, {
|
|
9016
|
+
}, toggleLabel)), /*#__PURE__*/React__default['default'].createElement(Dropdown$1.Menu, {
|
|
9023
9017
|
align: menuAlign,
|
|
9024
9018
|
role: menuRole,
|
|
9025
9019
|
renderOnMount: renderMenuOnMount,
|
|
9026
9020
|
rootCloseEvent: rootCloseEvent
|
|
9027
9021
|
}, children));
|
|
9028
9022
|
});
|
|
9029
|
-
SplitButton.propTypes = propTypes;
|
|
9030
|
-
SplitButton.defaultProps = defaultProps$
|
|
9023
|
+
SplitButton.propTypes = propTypes$a;
|
|
9024
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9031
9025
|
SplitButton.displayName = 'SplitButton';
|
|
9032
9026
|
|
|
9033
9027
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9158,7 +9152,7 @@ TabPane.displayName = 'TabPane';
|
|
|
9158
9152
|
|
|
9159
9153
|
/* eslint-disable react/require-render-return, react/no-unused-prop-types */
|
|
9160
9154
|
var Tab = /*#__PURE__*/function (_React$Component) {
|
|
9161
|
-
|
|
9155
|
+
_inheritsLoose(Tab, _React$Component);
|
|
9162
9156
|
|
|
9163
9157
|
function Tab() {
|
|
9164
9158
|
return _React$Component.apply(this, arguments) || this;
|
|
@@ -9216,7 +9210,7 @@ var ToastContext = React__default['default'].createContext({
|
|
|
9216
9210
|
onClose: function onClose() {}
|
|
9217
9211
|
});
|
|
9218
9212
|
|
|
9219
|
-
var defaultProps$
|
|
9213
|
+
var defaultProps$C = {
|
|
9220
9214
|
closeLabel: 'Close',
|
|
9221
9215
|
closeButton: true
|
|
9222
9216
|
};
|
|
@@ -9247,7 +9241,7 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9247
9241
|
}));
|
|
9248
9242
|
});
|
|
9249
9243
|
ToastHeader.displayName = 'ToastHeader';
|
|
9250
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9244
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9251
9245
|
|
|
9252
9246
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9253
9247
|
|
|
@@ -9314,7 +9308,7 @@ Object.assign(Toast, {
|
|
|
9314
9308
|
Header: ToastHeader
|
|
9315
9309
|
});
|
|
9316
9310
|
|
|
9317
|
-
var noop = function noop() {
|
|
9311
|
+
var noop$5 = function noop() {
|
|
9318
9312
|
return undefined;
|
|
9319
9313
|
};
|
|
9320
9314
|
|
|
@@ -9356,12 +9350,12 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9356
9350
|
disabled: !!disabled,
|
|
9357
9351
|
onFocus: handleFocus,
|
|
9358
9352
|
onBlur: handleBlur,
|
|
9359
|
-
onChange: onChange || noop
|
|
9353
|
+
onChange: onChange || noop$5
|
|
9360
9354
|
}), children);
|
|
9361
9355
|
});
|
|
9362
9356
|
ToggleButton.displayName = 'ToggleButton';
|
|
9363
9357
|
|
|
9364
|
-
var defaultProps$
|
|
9358
|
+
var defaultProps$D = {
|
|
9365
9359
|
type: 'radio',
|
|
9366
9360
|
vertical: false
|
|
9367
9361
|
};
|
|
@@ -9424,10 +9418,10 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9424
9418
|
});
|
|
9425
9419
|
}));
|
|
9426
9420
|
});
|
|
9427
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9421
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9428
9422
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9429
9423
|
|
|
9430
|
-
var defaultProps = {
|
|
9424
|
+
var defaultProps$E = {
|
|
9431
9425
|
placement: 'right'
|
|
9432
9426
|
};
|
|
9433
9427
|
var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -9458,10 +9452,10 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9458
9452
|
className: bsPrefix + "-inner"
|
|
9459
9453
|
}, children));
|
|
9460
9454
|
});
|
|
9461
|
-
Tooltip.defaultProps = defaultProps;
|
|
9455
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9462
9456
|
Tooltip.displayName = 'Tooltip';
|
|
9463
9457
|
|
|
9464
|
-
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";
|
|
9458
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9465
9459
|
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" };
|
|
9466
9460
|
styleInject_es.styleInject(css);
|
|
9467
9461
|
|
|
@@ -9549,11 +9543,11 @@ var Filter = function Filter(_ref) {
|
|
|
9549
9543
|
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
9550
9544
|
grandChildData = _useState6[0],
|
|
9551
9545
|
setGrandChildData = _useState6[1];
|
|
9552
|
-
/*
|
|
9553
|
-
{parent: showAll,
|
|
9554
|
-
chidlren: show selected from parent,
|
|
9555
|
-
grandchildren: show selected from children
|
|
9556
|
-
}
|
|
9546
|
+
/*
|
|
9547
|
+
{parent: showAll,
|
|
9548
|
+
chidlren: show selected from parent,
|
|
9549
|
+
grandchildren: show selected from children
|
|
9550
|
+
}
|
|
9557
9551
|
*/
|
|
9558
9552
|
|
|
9559
9553
|
|
|
@@ -9608,7 +9602,7 @@ var Filter = function Filter(_ref) {
|
|
|
9608
9602
|
DropdownButton,
|
|
9609
9603
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9610
9604
|
React__default['default'].createElement(
|
|
9611
|
-
Dropdown.Item,
|
|
9605
|
+
Dropdown$1.Item,
|
|
9612
9606
|
{ onSelect: function onSelect() {
|
|
9613
9607
|
return handleFilterSelect({}, 'parent');
|
|
9614
9608
|
} },
|
|
@@ -9616,7 +9610,7 @@ var Filter = function Filter(_ref) {
|
|
|
9616
9610
|
),
|
|
9617
9611
|
parentData.data.map(function (docGroup) {
|
|
9618
9612
|
return React__default['default'].createElement(
|
|
9619
|
-
Dropdown.Item,
|
|
9613
|
+
Dropdown$1.Item,
|
|
9620
9614
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9621
9615
|
return handleFilterSelect(docGroup, 'parent');
|
|
9622
9616
|
} },
|
|
@@ -9628,7 +9622,7 @@ var Filter = function Filter(_ref) {
|
|
|
9628
9622
|
DropdownButton,
|
|
9629
9623
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9630
9624
|
!parentData && React__default['default'].createElement(
|
|
9631
|
-
Dropdown.Item,
|
|
9625
|
+
Dropdown$1.Item,
|
|
9632
9626
|
{ onSelect: function onSelect() {
|
|
9633
9627
|
return handleFilterSelect({}, 'child');
|
|
9634
9628
|
} },
|
|
@@ -9636,7 +9630,7 @@ var Filter = function Filter(_ref) {
|
|
|
9636
9630
|
),
|
|
9637
9631
|
childData.data.map(function (docGroup) {
|
|
9638
9632
|
return React__default['default'].createElement(
|
|
9639
|
-
Dropdown.Item,
|
|
9633
|
+
Dropdown$1.Item,
|
|
9640
9634
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9641
9635
|
return handleFilterSelect(docGroup, 'child');
|
|
9642
9636
|
} },
|
|
@@ -9648,7 +9642,7 @@ var Filter = function Filter(_ref) {
|
|
|
9648
9642
|
DropdownButton,
|
|
9649
9643
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9650
9644
|
!childData && React__default['default'].createElement(
|
|
9651
|
-
Dropdown.Item,
|
|
9645
|
+
Dropdown$1.Item,
|
|
9652
9646
|
{ onSelect: function onSelect() {
|
|
9653
9647
|
return handleFilterSelect({}, 'grandchild');
|
|
9654
9648
|
} },
|
|
@@ -9656,7 +9650,7 @@ var Filter = function Filter(_ref) {
|
|
|
9656
9650
|
),
|
|
9657
9651
|
grandChildData.data.map(function (docGroup) {
|
|
9658
9652
|
return React__default['default'].createElement(
|
|
9659
|
-
Dropdown.Item,
|
|
9653
|
+
Dropdown$1.Item,
|
|
9660
9654
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9661
9655
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9662
9656
|
} },
|
|
@@ -9796,8 +9790,6 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9796
9790
|
|
|
9797
9791
|
MediaSeriesLanding.getInitialData = function () {
|
|
9798
9792
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9799
|
-
var _ref4;
|
|
9800
|
-
|
|
9801
9793
|
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, taxonomyFilter;
|
|
9802
9794
|
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
9803
9795
|
while (1) {
|
|
@@ -9816,11 +9808,11 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9816
9808
|
url: pathname
|
|
9817
9809
|
};
|
|
9818
9810
|
_context2.next = 9;
|
|
9819
|
-
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n
|
|
9811
|
+
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n name\n }');
|
|
9820
9812
|
|
|
9821
9813
|
case 9:
|
|
9822
9814
|
docGroupID = _context2.sent;
|
|
9823
|
-
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
|
|
9815
|
+
seriesQuery = '*[_type == \'documentGroup\' && references(\'' + docGroupID._id + '\') && isSeries != false && isShow != false && defined(published) && dateTime(published) <= dateTime(now()) ] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n published,\n thumbnail,\n description,\n topicMapping[]->,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + identifier + '\'\n }';
|
|
9824
9816
|
_context2.next = 13;
|
|
9825
9817
|
return client.fetch(seriesQuery, params);
|
|
9826
9818
|
|
|
@@ -9837,7 +9829,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9837
9829
|
statusCode = 404;
|
|
9838
9830
|
}
|
|
9839
9831
|
|
|
9840
|
-
return _context2.abrupt('return', (
|
|
9832
|
+
return _context2.abrupt('return', defineProperty._defineProperty({ seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, 'taxonomyFilter', taxonomyFilter));
|
|
9841
9833
|
|
|
9842
9834
|
case 19:
|
|
9843
9835
|
case 'end':
|