@mjhls/mjh-framework 1.0.853 → 1.0.854-adblocker-fix-v1
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 +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +24 -24
- package/dist/cjs/AD300x250x600.js +24 -24
- package/dist/cjs/AD728x90.js +27 -27
- package/dist/cjs/ADFloatingFooter.js +23 -23
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -23
- package/dist/cjs/{ADInfeed-fb136f1d.js → ADInfeed-25d48cc2.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -23
- package/dist/cjs/ADSponsoredResources.js +23 -23
- package/dist/cjs/ADWebcast.js +23 -23
- package/dist/cjs/ADWelcome.js +30 -21
- package/dist/cjs/{ADlgInfeed-d303d27e.js → ADlgInfeed-a535a768.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -24
- package/dist/cjs/AdSlotsProvider.js +13 -13
- package/dist/cjs/AlgoliaSearch.js +500 -508
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +31 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -33
- package/dist/cjs/Auth.js +348 -484
- package/dist/cjs/AuthWrapper.js +240 -201
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +24 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -33
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/DeckContent.js +42 -42
- package/dist/cjs/DeckQueue.js +31 -31
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-391fd124.js} +15 -15
- package/dist/cjs/EventsDeck.js +45 -45
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +47 -47
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +36 -36
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -47
- package/dist/cjs/HorizontalHero.js +4 -4
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +84 -84
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -22
- package/dist/cjs/MasterDeck.js +41 -41
- package/dist/cjs/MediaSeriesLanding.js +465 -509
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +40 -40
- package/dist/cjs/NavNative.js +41 -41
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +57 -57
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +34 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +55 -55
- package/dist/cjs/QueueDeckExpanded.js +38 -38
- package/dist/cjs/RecentNews.js +3 -3
- package/dist/cjs/RelatedContent.js +35 -35
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -20
- package/dist/cjs/{SeriesSlider-cbab9f0f.js → SeriesSlider-0d3bf265.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +17 -17
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-19548e2a.js} +10 -10
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +47 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +13 -13
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +37 -37
- package/dist/cjs/VideoSeriesListing.js +33 -33
- package/dist/cjs/View.js +92 -91
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +26 -26
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +71 -135
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-faf37284.js → getTargeting-a9a871f0.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-8d141227.js → index-00a7ead6.js} +193 -174
- package/dist/cjs/{index-fc2f1ca2.js → index-2cf30c83.js} +4 -4
- package/dist/cjs/{index-f86bb269.js → index-6367b7bf.js} +35 -35
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-efca863c.js → index-b5eb3ff8.js} +11 -16
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-3ffa049c.js} +1 -1
- package/dist/cjs/index.js +140 -140
- package/dist/cjs/{inherits-c2065b95.js → inherits-0c7830c5.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/{main-025fdc78.js → main-7b5e57b0.js} +159 -234
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-9d7f610f.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-df562a07.js → ADInfeed-56a3db8b.js} +4 -4
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +30 -21
- package/dist/esm/{ADlgInfeed-53992119.js → ADlgInfeed-53edb995.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +24 -24
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlgoliaSearch.js +499 -507
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +50 -50
- package/dist/esm/ArticleSeriesLandingPage.js +31 -31
- package/dist/esm/ArticleSeriesListing.js +33 -33
- package/dist/esm/Auth.js +348 -484
- package/dist/esm/AuthWrapper.js +240 -201
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-8ffd4679.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-d05b5b23.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -24
- package/dist/esm/Column2.js +16 -16
- package/dist/esm/Column3.js +33 -33
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +42 -42
- package/dist/esm/DeckQueue.js +31 -31
- package/dist/esm/{Dfp-43f121ff.js → Dfp-2f9796e1.js} +15 -15
- package/dist/esm/EventsDeck.js +43 -43
- package/dist/esm/ExternalResources.js +47 -47
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +47 -47
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +36 -36
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +47 -47
- package/dist/esm/HorizontalHero.js +4 -4
- package/dist/esm/IssueContentDeck.js +13 -13
- package/dist/esm/IssueDeck.js +15 -15
- package/dist/esm/IssueLanding.js +84 -84
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +22 -22
- package/dist/esm/MasterDeck.js +41 -41
- package/dist/esm/MediaSeriesLanding.js +465 -509
- package/dist/esm/NavDvm.js +13 -13
- package/dist/esm/NavMagazine.js +40 -40
- package/dist/esm/NavNative.js +39 -39
- package/dist/esm/OncliveHero.js +4 -4
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +57 -57
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +34 -34
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +7 -7
- package/dist/esm/PublicationLanding.js +54 -54
- package/dist/esm/QueueDeckExpanded.js +38 -38
- package/dist/esm/RecentNews.js +3 -3
- package/dist/esm/RelatedContent.js +35 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-5c62a578.js → SeriesSlider-7d89f4d9.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-47815365.js} +9 -9
- package/dist/esm/TaxonomyCard.js +10 -10
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +47 -47
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +13 -13
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +51 -51
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +37 -37
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +91 -90
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +26 -26
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +71 -135
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-c3401fa7.js → getTargeting-bd800589.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-b03f775b.js → index-0500ae55.js} +190 -171
- package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
- package/dist/esm/{index-35bdcc81.js → index-6c12bdd5.js} +6 -6
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-79cfd25c.js → index-c00b0bbb.js} +35 -35
- package/dist/esm/{index-2446af28.js → index-f7fb1e25.js} +4 -4
- package/dist/esm/{index.esm-8016b507.js → index.esm-8ee5ff72.js} +1 -1
- package/dist/esm/index.js +121 -121
- package/dist/esm/{inherits-a41fe93f.js → inherits-75d45541.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/{main-b5c5aac1.js → main-747e7d25.js} +153 -228
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-3822f1ce.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-af9c50d8.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +110 -110
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-4abff0b1.js} +1 -1
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
-
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
-
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
-
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
|
-
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-67e1773f.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
import ReactDOM from 'react-dom';
|
|
10
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
|
-
import urlFor from './urlFor.js';
|
|
15
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
16
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
-
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
18
|
-
import { g as getSerializers } from './index-b03f775b.js';
|
|
19
|
-
import './define-property-fe54dc9f.js';
|
|
20
|
-
import './_to-object-b50e61c3.js';
|
|
21
|
-
import './es6.string.iterator-bc33758b.js';
|
|
22
|
-
import './web.dom.iterable-4109ff68.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
23
4
|
import './_library-528f1934.js';
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import './_object-pie-
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
31
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends$1 } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-75d45541.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
32
17
|
import './events-6c3a7a63.js';
|
|
18
|
+
import './index-f7fb1e25.js';
|
|
19
|
+
import PropTypes from 'prop-types';
|
|
33
20
|
import 'react-bootstrap/Container';
|
|
34
21
|
import 'react-bootstrap/Row';
|
|
35
22
|
import 'react-bootstrap/Col';
|
|
36
23
|
import 'react-bootstrap/Card';
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
37
25
|
import 'next/router';
|
|
38
|
-
import './
|
|
39
|
-
import './debounce-
|
|
40
|
-
import './
|
|
41
|
-
import './toNumber-5aeba6e7.js';
|
|
26
|
+
import './isSymbol-1981418f.js';
|
|
27
|
+
import './debounce-9207d8ee.js';
|
|
28
|
+
import './toNumber-2f7a84cd.js';
|
|
42
29
|
import './index.es-c6222053.js';
|
|
30
|
+
import ReactDOM from 'react-dom';
|
|
43
31
|
import './visibility-sensor-f40c2564.js';
|
|
44
|
-
import './index-
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
48
|
-
import './
|
|
32
|
+
import './index-51a80699.js';
|
|
33
|
+
import urlFor from './urlFor.js';
|
|
34
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
+
import './main-747e7d25.js';
|
|
36
|
+
import './entities-7cc3bf45.js';
|
|
37
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
38
|
+
import './stringify-4330ccdc.js';
|
|
39
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
49
40
|
import './Segment.js';
|
|
50
|
-
import './
|
|
51
|
-
import './
|
|
52
|
-
import '
|
|
41
|
+
import './Beam.js';
|
|
42
|
+
import './AdSlot.js';
|
|
43
|
+
import './ADInfeed-56a3db8b.js';
|
|
44
|
+
import './lodash-ec8c6b48.js';
|
|
45
|
+
import './ADlgInfeed-53edb995.js';
|
|
46
|
+
import 'react-bootstrap/Button';
|
|
47
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
53
48
|
import './index-c7e2ac95.js';
|
|
54
|
-
import './
|
|
55
|
-
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
49
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
56
50
|
import './GroupDeck.js';
|
|
57
|
-
import '
|
|
58
|
-
import './
|
|
51
|
+
import 'react-bootstrap';
|
|
52
|
+
import './iconBase-602d52fe.js';
|
|
53
|
+
import './index.esm-3fdda599.js';
|
|
54
|
+
import { g as getSerializers } from './index-0500ae55.js';
|
|
55
|
+
import './util-7700fc59.js';
|
|
56
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
59
57
|
import 'next/head';
|
|
60
58
|
import 'react-share';
|
|
61
|
-
import './
|
|
59
|
+
import './SocialShare.js';
|
|
60
|
+
import './_object-to-array-7e804fce.js';
|
|
62
61
|
import 'react-bootstrap/Pagination';
|
|
63
|
-
import 'react-bootstrap/Button';
|
|
64
|
-
import './entities-932b50cf.js';
|
|
65
|
-
import './index.esm-3fdda599.js';
|
|
66
|
-
import './iconBase-602d52fe.js';
|
|
67
62
|
import 'react-bootstrap/Figure';
|
|
68
63
|
import 'react-bootstrap/OverlayTrigger';
|
|
69
64
|
import 'react-bootstrap/Tooltip';
|
|
70
65
|
import 'react-bootstrap/Popover';
|
|
66
|
+
import MasterDeck from './MasterDeck.js';
|
|
67
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
68
|
+
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
69
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
|
+
import Link from 'next/link';
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -177,12 +177,12 @@ function useUncontrolled(props, config) {
|
|
|
177
177
|
function _inheritsLoose(subClass, superClass) {
|
|
178
178
|
subClass.prototype = Object.create(superClass.prototype);
|
|
179
179
|
subClass.prototype.constructor = subClass;
|
|
180
|
-
|
|
180
|
+
subClass.__proto__ = superClass;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
var ThemeContext = React.createContext({});
|
|
184
|
-
ThemeContext.Consumer
|
|
185
|
-
ThemeContext.Provider;
|
|
184
|
+
var Consumer = ThemeContext.Consumer,
|
|
185
|
+
Provider = ThemeContext.Provider;
|
|
186
186
|
|
|
187
187
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
188
188
|
var prefixes = useContext(ThemeContext);
|
|
@@ -199,11 +199,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
199
199
|
return href || null;
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
-
var context
|
|
203
|
-
context
|
|
202
|
+
var context = React.createContext(null);
|
|
203
|
+
context.displayName = 'AccordionContext';
|
|
204
204
|
|
|
205
205
|
function useAccordionToggle(eventKey, onClick) {
|
|
206
|
-
var contextEventKey = useContext(context
|
|
206
|
+
var contextEventKey = useContext(context);
|
|
207
207
|
var onSelect = useContext(SelectableContext);
|
|
208
208
|
return function (e) {
|
|
209
209
|
/*
|
|
@@ -235,16 +235,16 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
235
235
|
}, props), children);
|
|
236
236
|
});
|
|
237
237
|
|
|
238
|
-
function ownerDocument
|
|
238
|
+
function ownerDocument(node) {
|
|
239
239
|
return node && node.ownerDocument || document;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
function ownerWindow(node) {
|
|
243
|
-
var doc = ownerDocument
|
|
243
|
+
var doc = ownerDocument(node);
|
|
244
244
|
return doc && doc.defaultView || window;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
function getComputedStyle$
|
|
247
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
248
248
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -273,7 +273,7 @@ function style(node, property) {
|
|
|
273
273
|
var transforms = '';
|
|
274
274
|
|
|
275
275
|
if (typeof property === 'string') {
|
|
276
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
276
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
Object.keys(property).forEach(function (key) {
|
|
@@ -413,7 +413,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
413
413
|
exit: PropTypes.number,
|
|
414
414
|
appear: PropTypes.number
|
|
415
415
|
}).isRequired]) : null;
|
|
416
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
416
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
417
417
|
enter: PropTypes.string,
|
|
418
418
|
exit: PropTypes.string,
|
|
419
419
|
active: PropTypes.string
|
|
@@ -795,23 +795,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
795
795
|
}
|
|
796
796
|
|
|
797
797
|
var _this$props = this.props,
|
|
798
|
-
children = _this$props.children
|
|
799
|
-
_this$props.in
|
|
800
|
-
_this$props.mountOnEnter
|
|
801
|
-
_this$props.unmountOnExit
|
|
802
|
-
_this$props.appear
|
|
803
|
-
_this$props.enter
|
|
804
|
-
_this$props.exit
|
|
805
|
-
_this$props.timeout
|
|
806
|
-
_this$props.addEndListener
|
|
807
|
-
_this$props.onEnter
|
|
808
|
-
_this$props.onEntering
|
|
809
|
-
_this$props.onEntered
|
|
810
|
-
_this$props.onExit
|
|
811
|
-
_this$props.onExiting
|
|
812
|
-
_this$props.onExited
|
|
813
|
-
_this$props.nodeRef
|
|
814
|
-
|
|
798
|
+
children = _this$props.children,
|
|
799
|
+
_in = _this$props.in,
|
|
800
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
801
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
802
|
+
_appear = _this$props.appear,
|
|
803
|
+
_enter = _this$props.enter,
|
|
804
|
+
_exit = _this$props.exit,
|
|
805
|
+
_timeout = _this$props.timeout,
|
|
806
|
+
_addEndListener = _this$props.addEndListener,
|
|
807
|
+
_onEnter = _this$props.onEnter,
|
|
808
|
+
_onEntering = _this$props.onEntering,
|
|
809
|
+
_onEntered = _this$props.onEntered,
|
|
810
|
+
_onExit = _this$props.onExit,
|
|
811
|
+
_onExiting = _this$props.onExiting,
|
|
812
|
+
_onExited = _this$props.onExited,
|
|
813
|
+
_nodeRef = _this$props.nodeRef,
|
|
814
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
815
815
|
|
|
816
816
|
return (
|
|
817
817
|
/*#__PURE__*/
|
|
@@ -1011,7 +1011,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1011
1011
|
onExited: PropTypes.func
|
|
1012
1012
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1013
1013
|
|
|
1014
|
-
function noop
|
|
1014
|
+
function noop() {}
|
|
1015
1015
|
|
|
1016
1016
|
Transition.defaultProps = {
|
|
1017
1017
|
in: false,
|
|
@@ -1020,12 +1020,12 @@ Transition.defaultProps = {
|
|
|
1020
1020
|
appear: false,
|
|
1021
1021
|
enter: true,
|
|
1022
1022
|
exit: true,
|
|
1023
|
-
onEnter: noop
|
|
1024
|
-
onEntering: noop
|
|
1025
|
-
onEntered: noop
|
|
1026
|
-
onExit: noop
|
|
1027
|
-
onExiting: noop
|
|
1028
|
-
onExited: noop
|
|
1023
|
+
onEnter: noop,
|
|
1024
|
+
onEntering: noop,
|
|
1025
|
+
onEntered: noop,
|
|
1026
|
+
onExit: noop,
|
|
1027
|
+
onExiting: noop,
|
|
1028
|
+
onExited: noop
|
|
1029
1029
|
};
|
|
1030
1030
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1031
1031
|
Transition.EXITED = EXITED;
|
|
@@ -1091,7 +1091,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1094
|
-
var defaultProps
|
|
1094
|
+
var defaultProps = {
|
|
1095
1095
|
in: false,
|
|
1096
1096
|
timeout: 300,
|
|
1097
1097
|
mountOnEnter: false,
|
|
@@ -1165,14 +1165,14 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1165
1165
|
}); // @ts-ignore
|
|
1166
1166
|
|
|
1167
1167
|
// @ts-ignore
|
|
1168
|
-
Collapse.defaultProps = defaultProps
|
|
1168
|
+
Collapse.defaultProps = defaultProps;
|
|
1169
1169
|
|
|
1170
1170
|
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1171
1171
|
var children = _ref.children,
|
|
1172
1172
|
eventKey = _ref.eventKey,
|
|
1173
1173
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1174
1174
|
|
|
1175
|
-
var contextEventKey = useContext(context
|
|
1175
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1176
1176
|
// from collapsing the accordion when clicked.
|
|
1177
1177
|
|
|
1178
1178
|
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
@@ -1198,7 +1198,7 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1198
1198
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1199
1199
|
|
|
1200
1200
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1201
|
-
return /*#__PURE__*/React.createElement(context
|
|
1201
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1202
1202
|
value: activeKey || null
|
|
1203
1203
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1204
1204
|
value: onSelect || null
|
|
@@ -1238,7 +1238,7 @@ function useEventCallback(fn) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
1240
1240
|
var _fadeStyles;
|
|
1241
|
-
var defaultProps$
|
|
1241
|
+
var defaultProps$1 = {
|
|
1242
1242
|
in: false,
|
|
1243
1243
|
timeout: 300,
|
|
1244
1244
|
mountOnEnter: false,
|
|
@@ -1266,14 +1266,14 @@ var Fade = React.forwardRef(function (_ref, ref) {
|
|
|
1266
1266
|
}));
|
|
1267
1267
|
});
|
|
1268
1268
|
});
|
|
1269
|
-
Fade.defaultProps = defaultProps$
|
|
1269
|
+
Fade.defaultProps = defaultProps$1;
|
|
1270
1270
|
Fade.displayName = 'Fade';
|
|
1271
1271
|
|
|
1272
|
-
var propTypes
|
|
1272
|
+
var propTypes = {
|
|
1273
1273
|
label: PropTypes.string.isRequired,
|
|
1274
1274
|
onClick: PropTypes.func
|
|
1275
1275
|
};
|
|
1276
|
-
var defaultProps$
|
|
1276
|
+
var defaultProps$2 = {
|
|
1277
1277
|
label: 'Close'
|
|
1278
1278
|
};
|
|
1279
1279
|
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
@@ -1294,8 +1294,8 @@ var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
|
1294
1294
|
}, label));
|
|
1295
1295
|
});
|
|
1296
1296
|
CloseButton.displayName = 'CloseButton';
|
|
1297
|
-
CloseButton.propTypes = propTypes
|
|
1298
|
-
CloseButton.defaultProps = defaultProps$
|
|
1297
|
+
CloseButton.propTypes = propTypes;
|
|
1298
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1299
1299
|
|
|
1300
1300
|
var divWithClassName = (function (className) {
|
|
1301
1301
|
return React.forwardRef(function (p, ref) {
|
|
@@ -1408,15 +1408,15 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1408
1408
|
});
|
|
1409
1409
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1410
1410
|
|
|
1411
|
-
var DivStyledAsH4
|
|
1412
|
-
DivStyledAsH4
|
|
1411
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1412
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1413
1413
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1414
|
-
Component: DivStyledAsH4
|
|
1414
|
+
Component: DivStyledAsH4
|
|
1415
1415
|
});
|
|
1416
1416
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1417
1417
|
Component: SafeAnchor
|
|
1418
1418
|
});
|
|
1419
|
-
var defaultProps$
|
|
1419
|
+
var defaultProps$3 = {
|
|
1420
1420
|
show: true,
|
|
1421
1421
|
transition: Fade,
|
|
1422
1422
|
closeLabel: 'Close alert'
|
|
@@ -1461,11 +1461,11 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1461
1461
|
}), alert);
|
|
1462
1462
|
});
|
|
1463
1463
|
Alert.displayName = 'Alert';
|
|
1464
|
-
Alert.defaultProps = defaultProps$
|
|
1464
|
+
Alert.defaultProps = defaultProps$3;
|
|
1465
1465
|
Alert.Link = AlertLink;
|
|
1466
1466
|
Alert.Heading = AlertHeading;
|
|
1467
1467
|
|
|
1468
|
-
var defaultProps$
|
|
1468
|
+
var defaultProps$4 = {
|
|
1469
1469
|
pill: false
|
|
1470
1470
|
};
|
|
1471
1471
|
var Badge = React.forwardRef(function (_ref, ref) {
|
|
@@ -1485,9 +1485,9 @@ var Badge = React.forwardRef(function (_ref, ref) {
|
|
|
1485
1485
|
}));
|
|
1486
1486
|
});
|
|
1487
1487
|
Badge.displayName = 'Badge';
|
|
1488
|
-
Badge.defaultProps = defaultProps$
|
|
1488
|
+
Badge.defaultProps = defaultProps$4;
|
|
1489
1489
|
|
|
1490
|
-
var defaultProps$
|
|
1490
|
+
var defaultProps$5 = {
|
|
1491
1491
|
active: false,
|
|
1492
1492
|
linkProps: {}
|
|
1493
1493
|
};
|
|
@@ -1521,9 +1521,9 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1521
1521
|
}), children));
|
|
1522
1522
|
});
|
|
1523
1523
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1524
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1524
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1525
1525
|
|
|
1526
|
-
var defaultProps$
|
|
1526
|
+
var defaultProps$6 = {
|
|
1527
1527
|
label: 'breadcrumb',
|
|
1528
1528
|
listProps: {}
|
|
1529
1529
|
};
|
|
@@ -1547,10 +1547,10 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1547
1547
|
}), children));
|
|
1548
1548
|
});
|
|
1549
1549
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1550
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1550
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1551
1551
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1552
1552
|
|
|
1553
|
-
var defaultProps$
|
|
1553
|
+
var defaultProps$7 = {
|
|
1554
1554
|
variant: 'primary',
|
|
1555
1555
|
active: false,
|
|
1556
1556
|
disabled: false
|
|
@@ -1593,9 +1593,9 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1593
1593
|
}));
|
|
1594
1594
|
});
|
|
1595
1595
|
Button.displayName = 'Button';
|
|
1596
|
-
Button.defaultProps = defaultProps$
|
|
1596
|
+
Button.defaultProps = defaultProps$7;
|
|
1597
1597
|
|
|
1598
|
-
var defaultProps$
|
|
1598
|
+
var defaultProps$8 = {
|
|
1599
1599
|
vertical: false,
|
|
1600
1600
|
toggle: false,
|
|
1601
1601
|
role: 'group'
|
|
@@ -1619,9 +1619,9 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1619
1619
|
}));
|
|
1620
1620
|
});
|
|
1621
1621
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1622
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1622
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1623
1623
|
|
|
1624
|
-
var defaultProps$
|
|
1624
|
+
var defaultProps$9 = {
|
|
1625
1625
|
role: 'toolbar'
|
|
1626
1626
|
};
|
|
1627
1627
|
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
@@ -1636,12 +1636,12 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
|
1636
1636
|
}));
|
|
1637
1637
|
});
|
|
1638
1638
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1639
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1639
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1640
1640
|
|
|
1641
1641
|
var context$1 = React.createContext(null);
|
|
1642
1642
|
context$1.displayName = 'CardContext';
|
|
1643
1643
|
|
|
1644
|
-
var defaultProps$
|
|
1644
|
+
var defaultProps$a = {
|
|
1645
1645
|
variant: null
|
|
1646
1646
|
};
|
|
1647
1647
|
var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -1660,7 +1660,7 @@ function (_ref, ref) {
|
|
|
1660
1660
|
}, props));
|
|
1661
1661
|
});
|
|
1662
1662
|
CardImg.displayName = 'CardImg';
|
|
1663
|
-
CardImg.defaultProps = defaultProps$
|
|
1663
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1664
1664
|
|
|
1665
1665
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1666
1666
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1680,7 +1680,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1680
1680
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1681
1681
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1682
1682
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1683
|
-
var defaultProps$
|
|
1683
|
+
var defaultProps$b = {
|
|
1684
1684
|
body: false
|
|
1685
1685
|
};
|
|
1686
1686
|
var Card = React.forwardRef(function (_ref, ref) {
|
|
@@ -1713,7 +1713,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1713
1713
|
React.createElement(CardBody, null, children) : children));
|
|
1714
1714
|
});
|
|
1715
1715
|
Card.displayName = 'Card';
|
|
1716
|
-
Card.defaultProps = defaultProps$
|
|
1716
|
+
Card.defaultProps = defaultProps$b;
|
|
1717
1717
|
Card.Img = CardImg;
|
|
1718
1718
|
Card.Title = CardTitle;
|
|
1719
1719
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1846,20 +1846,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1848
1848
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1849
|
-
*
|
|
1850
|
-
*
|
|
1851
|
-
*
|
|
1852
|
-
* ```tsx
|
|
1853
|
-
* const { set, clear } = useTimeout();
|
|
1854
|
-
* const [hello, showHello] = useState(false);
|
|
1855
|
-
* //Display hello after 5 seconds
|
|
1856
|
-
* set(() => showHello(true), 5000);
|
|
1857
|
-
* return (
|
|
1858
|
-
* <div className="App">
|
|
1859
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1860
|
-
* </div>
|
|
1861
|
-
* );
|
|
1862
|
-
* ```
|
|
1863
1849
|
*/
|
|
1864
1850
|
|
|
1865
1851
|
|
|
@@ -1948,7 +1934,7 @@ function forEach(children, func) {
|
|
|
1948
1934
|
}
|
|
1949
1935
|
|
|
1950
1936
|
var SWIPE_THRESHOLD = 40;
|
|
1951
|
-
var propTypes$
|
|
1937
|
+
var propTypes$1 = {
|
|
1952
1938
|
/**
|
|
1953
1939
|
* @default 'carousel'
|
|
1954
1940
|
*/
|
|
@@ -2050,7 +2036,7 @@ var propTypes$9 = {
|
|
|
2050
2036
|
*/
|
|
2051
2037
|
nextLabel: PropTypes.string
|
|
2052
2038
|
};
|
|
2053
|
-
var defaultProps$
|
|
2039
|
+
var defaultProps$c = {
|
|
2054
2040
|
slide: true,
|
|
2055
2041
|
fade: false,
|
|
2056
2042
|
controls: true,
|
|
@@ -2420,12 +2406,12 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2420
2406
|
|
|
2421
2407
|
var Carousel = React.forwardRef(CarouselFunc);
|
|
2422
2408
|
Carousel.displayName = 'Carousel';
|
|
2423
|
-
Carousel.propTypes = propTypes$
|
|
2424
|
-
Carousel.defaultProps = defaultProps$
|
|
2409
|
+
Carousel.propTypes = propTypes$1;
|
|
2410
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2425
2411
|
Carousel.Caption = CarouselCaption;
|
|
2426
2412
|
Carousel.Item = CarouselItem;
|
|
2427
2413
|
|
|
2428
|
-
var DEVICE_SIZES
|
|
2414
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2429
2415
|
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2430
2416
|
function (_ref, ref) {
|
|
2431
2417
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -2437,7 +2423,7 @@ function (_ref, ref) {
|
|
|
2437
2423
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2438
2424
|
var spans = [];
|
|
2439
2425
|
var classes = [];
|
|
2440
|
-
DEVICE_SIZES
|
|
2426
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2441
2427
|
var propValue = props[brkPoint];
|
|
2442
2428
|
delete props[brkPoint];
|
|
2443
2429
|
var span;
|
|
@@ -2618,50 +2604,21 @@ function getBasePlacement(placement) {
|
|
|
2618
2604
|
return placement.split('-')[0];
|
|
2619
2605
|
}
|
|
2620
2606
|
|
|
2621
|
-
|
|
2622
|
-
var rect = element.getBoundingClientRect();
|
|
2623
|
-
return {
|
|
2624
|
-
width: rect.width,
|
|
2625
|
-
height: rect.height,
|
|
2626
|
-
top: rect.top,
|
|
2627
|
-
right: rect.right,
|
|
2628
|
-
bottom: rect.bottom,
|
|
2629
|
-
left: rect.left,
|
|
2630
|
-
x: rect.left,
|
|
2631
|
-
y: rect.top
|
|
2632
|
-
};
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2607
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2635
2608
|
// means it doesn't take into account transforms.
|
|
2636
|
-
|
|
2637
2609
|
function getLayoutRect(element) {
|
|
2638
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2639
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2640
|
-
|
|
2641
|
-
var width = element.offsetWidth;
|
|
2642
|
-
var height = element.offsetHeight;
|
|
2643
|
-
|
|
2644
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2645
|
-
width = clientRect.width;
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2649
|
-
height = clientRect.height;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
2610
|
return {
|
|
2653
2611
|
x: element.offsetLeft,
|
|
2654
2612
|
y: element.offsetTop,
|
|
2655
|
-
width:
|
|
2656
|
-
height:
|
|
2613
|
+
width: element.offsetWidth,
|
|
2614
|
+
height: element.offsetHeight
|
|
2657
2615
|
};
|
|
2658
2616
|
}
|
|
2659
2617
|
|
|
2660
|
-
|
|
2661
|
-
if (node == null) {
|
|
2662
|
-
return window;
|
|
2663
|
-
}
|
|
2618
|
+
/*:: import type { Window } from '../types'; */
|
|
2664
2619
|
|
|
2620
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2621
|
+
function getWindow(node) {
|
|
2665
2622
|
if (node.toString() !== '[object Window]') {
|
|
2666
2623
|
var ownerDocument = node.ownerDocument;
|
|
2667
2624
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2670,27 +2627,31 @@ function getWindow(node) {
|
|
|
2670
2627
|
return node;
|
|
2671
2628
|
}
|
|
2672
2629
|
|
|
2630
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2631
|
+
Element); */
|
|
2632
|
+
|
|
2673
2633
|
function isElement(node) {
|
|
2674
2634
|
var OwnElement = getWindow(node).Element;
|
|
2675
2635
|
return node instanceof OwnElement || node instanceof Element;
|
|
2676
2636
|
}
|
|
2637
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2638
|
+
HTMLElement); */
|
|
2639
|
+
|
|
2677
2640
|
|
|
2678
2641
|
function isHTMLElement(node) {
|
|
2679
2642
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2680
2643
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2681
2644
|
}
|
|
2645
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2646
|
+
ShadowRoot); */
|
|
2682
2647
|
|
|
2683
|
-
function isShadowRoot(node) {
|
|
2684
|
-
// IE 11 has no ShadowRoot
|
|
2685
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2686
|
-
return false;
|
|
2687
|
-
}
|
|
2688
2648
|
|
|
2649
|
+
function isShadowRoot(node) {
|
|
2689
2650
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2690
2651
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2691
2652
|
}
|
|
2692
2653
|
|
|
2693
|
-
function contains
|
|
2654
|
+
function contains(parent, child) {
|
|
2694
2655
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2695
2656
|
|
|
2696
2657
|
if (parent.contains(child)) {
|
|
@@ -2702,7 +2663,7 @@ function contains$1(parent, child) {
|
|
|
2702
2663
|
do {
|
|
2703
2664
|
if (next && parent.isSameNode(next)) {
|
|
2704
2665
|
return true;
|
|
2705
|
-
} // $FlowFixMe
|
|
2666
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2706
2667
|
|
|
2707
2668
|
|
|
2708
2669
|
next = next.parentNode || next.host;
|
|
@@ -2717,7 +2678,7 @@ function getNodeName(element) {
|
|
|
2717
2678
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2718
2679
|
}
|
|
2719
2680
|
|
|
2720
|
-
function getComputedStyle$
|
|
2681
|
+
function getComputedStyle$2(element) {
|
|
2721
2682
|
return getWindow(element).getComputedStyle(element);
|
|
2722
2683
|
}
|
|
2723
2684
|
|
|
@@ -2726,9 +2687,8 @@ function isTableElement(element) {
|
|
|
2726
2687
|
}
|
|
2727
2688
|
|
|
2728
2689
|
function getDocumentElement(element) {
|
|
2729
|
-
// $FlowFixMe
|
|
2730
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2731
|
-
element.document) || window.document).documentElement;
|
|
2690
|
+
// $FlowFixMe: assume body is always available
|
|
2691
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2732
2692
|
}
|
|
2733
2693
|
|
|
2734
2694
|
function getParentNode(element) {
|
|
@@ -2736,13 +2696,12 @@ function getParentNode(element) {
|
|
|
2736
2696
|
return element;
|
|
2737
2697
|
}
|
|
2738
2698
|
|
|
2739
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2740
|
-
// $FlowFixMe[incompatible-return]
|
|
2741
|
-
// $FlowFixMe[prop-missing]
|
|
2699
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2742
2700
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2743
|
-
element.parentNode ||
|
|
2744
|
-
|
|
2745
|
-
|
|
2701
|
+
element.parentNode || // DOM Element detected
|
|
2702
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2703
|
+
element.host || // ShadowRoot detected
|
|
2704
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2746
2705
|
getDocumentElement(element) // fallback
|
|
2747
2706
|
|
|
2748
2707
|
);
|
|
@@ -2750,25 +2709,33 @@ function getParentNode(element) {
|
|
|
2750
2709
|
|
|
2751
2710
|
function getTrueOffsetParent(element) {
|
|
2752
2711
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2753
|
-
getComputedStyle$
|
|
2712
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2754
2713
|
return null;
|
|
2755
2714
|
}
|
|
2756
2715
|
|
|
2757
|
-
|
|
2716
|
+
var offsetParent = element.offsetParent;
|
|
2717
|
+
|
|
2718
|
+
if (offsetParent) {
|
|
2719
|
+
var html = getDocumentElement(offsetParent);
|
|
2720
|
+
|
|
2721
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2722
|
+
return html;
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
return offsetParent;
|
|
2758
2727
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2759
2728
|
// return the containing block
|
|
2760
2729
|
|
|
2761
2730
|
|
|
2762
2731
|
function getContainingBlock(element) {
|
|
2763
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2764
2732
|
var currentNode = getParentNode(element);
|
|
2765
2733
|
|
|
2766
2734
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2767
|
-
var css = getComputedStyle$
|
|
2735
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2768
2736
|
// create a containing block.
|
|
2769
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2770
2737
|
|
|
2771
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2738
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2772
2739
|
return currentNode;
|
|
2773
2740
|
} else {
|
|
2774
2741
|
currentNode = currentNode.parentNode;
|
|
@@ -2784,11 +2751,11 @@ function getOffsetParent(element) {
|
|
|
2784
2751
|
var window = getWindow(element);
|
|
2785
2752
|
var offsetParent = getTrueOffsetParent(element);
|
|
2786
2753
|
|
|
2787
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2754
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2788
2755
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2789
2756
|
}
|
|
2790
2757
|
|
|
2791
|
-
if (offsetParent &&
|
|
2758
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2792
2759
|
return window;
|
|
2793
2760
|
}
|
|
2794
2761
|
|
|
@@ -2799,12 +2766,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2799
2766
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2800
2767
|
}
|
|
2801
2768
|
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
var round = Math.round;
|
|
2805
|
-
|
|
2806
|
-
function within(min$1, value, max$1) {
|
|
2807
|
-
return max(min$1, min(value, max$1));
|
|
2769
|
+
function within(min, value, max) {
|
|
2770
|
+
return Math.max(min, Math.min(value, max));
|
|
2808
2771
|
}
|
|
2809
2772
|
|
|
2810
2773
|
function getFreshSideObject() {
|
|
@@ -2817,7 +2780,7 @@ function getFreshSideObject() {
|
|
|
2817
2780
|
}
|
|
2818
2781
|
|
|
2819
2782
|
function mergePaddingObject(paddingObject) {
|
|
2820
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2783
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2821
2784
|
}
|
|
2822
2785
|
|
|
2823
2786
|
function expandToHashMap(value, keys) {
|
|
@@ -2827,19 +2790,11 @@ function expandToHashMap(value, keys) {
|
|
|
2827
2790
|
}, {});
|
|
2828
2791
|
}
|
|
2829
2792
|
|
|
2830
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2831
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2832
|
-
placement: state.placement
|
|
2833
|
-
})) : padding;
|
|
2834
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2835
|
-
};
|
|
2836
|
-
|
|
2837
2793
|
function arrow(_ref) {
|
|
2838
2794
|
var _state$modifiersData$;
|
|
2839
2795
|
|
|
2840
2796
|
var state = _ref.state,
|
|
2841
|
-
name = _ref.name
|
|
2842
|
-
options = _ref.options;
|
|
2797
|
+
name = _ref.name;
|
|
2843
2798
|
var arrowElement = state.elements.arrow;
|
|
2844
2799
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2845
2800
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2851,7 +2806,7 @@ function arrow(_ref) {
|
|
|
2851
2806
|
return;
|
|
2852
2807
|
}
|
|
2853
2808
|
|
|
2854
|
-
var paddingObject =
|
|
2809
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2855
2810
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2856
2811
|
var minProp = axis === 'y' ? top : left;
|
|
2857
2812
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2871,11 +2826,14 @@ function arrow(_ref) {
|
|
|
2871
2826
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2872
2827
|
}
|
|
2873
2828
|
|
|
2874
|
-
function effect
|
|
2829
|
+
function effect(_ref2) {
|
|
2875
2830
|
var state = _ref2.state,
|
|
2876
|
-
options = _ref2.options
|
|
2831
|
+
options = _ref2.options,
|
|
2832
|
+
name = _ref2.name;
|
|
2877
2833
|
var _options$element = options.element,
|
|
2878
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2834
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2835
|
+
_options$padding = options.padding,
|
|
2836
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2879
2837
|
|
|
2880
2838
|
if (arrowElement == null) {
|
|
2881
2839
|
return;
|
|
@@ -2896,7 +2854,7 @@ function effect$1(_ref2) {
|
|
|
2896
2854
|
}
|
|
2897
2855
|
}
|
|
2898
2856
|
|
|
2899
|
-
if (!contains
|
|
2857
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2900
2858
|
if (process.env.NODE_ENV !== "production") {
|
|
2901
2859
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2902
2860
|
}
|
|
@@ -2905,6 +2863,9 @@ function effect$1(_ref2) {
|
|
|
2905
2863
|
}
|
|
2906
2864
|
|
|
2907
2865
|
state.elements.arrow = arrowElement;
|
|
2866
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2867
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2868
|
+
};
|
|
2908
2869
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2909
2870
|
|
|
2910
2871
|
|
|
@@ -2913,7 +2874,7 @@ var arrow$1 = {
|
|
|
2913
2874
|
enabled: true,
|
|
2914
2875
|
phase: 'main',
|
|
2915
2876
|
fn: arrow,
|
|
2916
|
-
effect: effect
|
|
2877
|
+
effect: effect,
|
|
2917
2878
|
requires: ['popperOffsets'],
|
|
2918
2879
|
requiresIfExists: ['preventOverflow']
|
|
2919
2880
|
};
|
|
@@ -2927,14 +2888,14 @@ var unsetSides = {
|
|
|
2927
2888
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2928
2889
|
// cleanly divide the values into the appropriate subpixels.
|
|
2929
2890
|
|
|
2930
|
-
function
|
|
2891
|
+
function roundOffsets(_ref) {
|
|
2931
2892
|
var x = _ref.x,
|
|
2932
2893
|
y = _ref.y;
|
|
2933
2894
|
var win = window;
|
|
2934
2895
|
var dpr = win.devicePixelRatio || 1;
|
|
2935
2896
|
return {
|
|
2936
|
-
x: round(
|
|
2937
|
-
y: round(
|
|
2897
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2898
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2938
2899
|
};
|
|
2939
2900
|
}
|
|
2940
2901
|
|
|
@@ -2947,14 +2908,11 @@ function mapToStyles(_ref2) {
|
|
|
2947
2908
|
offsets = _ref2.offsets,
|
|
2948
2909
|
position = _ref2.position,
|
|
2949
2910
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2950
|
-
adaptive = _ref2.adaptive
|
|
2951
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2911
|
+
adaptive = _ref2.adaptive;
|
|
2952
2912
|
|
|
2953
|
-
var
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
_ref3$y = _ref3.y,
|
|
2957
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2913
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2914
|
+
x = _roundOffsets.x,
|
|
2915
|
+
y = _roundOffsets.y;
|
|
2958
2916
|
|
|
2959
2917
|
var hasX = offsets.hasOwnProperty('x');
|
|
2960
2918
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2964,32 +2922,23 @@ function mapToStyles(_ref2) {
|
|
|
2964
2922
|
|
|
2965
2923
|
if (adaptive) {
|
|
2966
2924
|
var offsetParent = getOffsetParent(popper);
|
|
2967
|
-
var heightProp = 'clientHeight';
|
|
2968
|
-
var widthProp = 'clientWidth';
|
|
2969
2925
|
|
|
2970
2926
|
if (offsetParent === getWindow(popper)) {
|
|
2971
2927
|
offsetParent = getDocumentElement(popper);
|
|
2928
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2972
2929
|
|
|
2973
|
-
|
|
2974
|
-
heightProp = 'scrollHeight';
|
|
2975
|
-
widthProp = 'scrollWidth';
|
|
2976
|
-
}
|
|
2977
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2978
|
-
|
|
2930
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2979
2931
|
|
|
2980
|
-
offsetParent = offsetParent;
|
|
2981
2932
|
|
|
2982
2933
|
if (placement === top) {
|
|
2983
|
-
sideY = bottom;
|
|
2984
|
-
|
|
2985
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2934
|
+
sideY = bottom;
|
|
2935
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
2986
2936
|
y *= gpuAcceleration ? 1 : -1;
|
|
2987
2937
|
}
|
|
2988
2938
|
|
|
2989
2939
|
if (placement === left) {
|
|
2990
|
-
sideX = right;
|
|
2991
|
-
|
|
2992
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2940
|
+
sideX = right;
|
|
2941
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
2993
2942
|
x *= gpuAcceleration ? 1 : -1;
|
|
2994
2943
|
}
|
|
2995
2944
|
}
|
|
@@ -3001,24 +2950,22 @@ function mapToStyles(_ref2) {
|
|
|
3001
2950
|
if (gpuAcceleration) {
|
|
3002
2951
|
var _Object$assign;
|
|
3003
2952
|
|
|
3004
|
-
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));
|
|
2953
|
+
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));
|
|
3005
2954
|
}
|
|
3006
2955
|
|
|
3007
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2956
|
+
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));
|
|
3008
2957
|
}
|
|
3009
2958
|
|
|
3010
|
-
function computeStyles(
|
|
3011
|
-
var state =
|
|
3012
|
-
options =
|
|
2959
|
+
function computeStyles(_ref3) {
|
|
2960
|
+
var state = _ref3.state,
|
|
2961
|
+
options = _ref3.options;
|
|
3013
2962
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3014
2963
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3015
2964
|
_options$adaptive = options.adaptive,
|
|
3016
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3017
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3018
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2965
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3019
2966
|
|
|
3020
2967
|
if (process.env.NODE_ENV !== "production") {
|
|
3021
|
-
var transitionProperty = getComputedStyle$
|
|
2968
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3022
2969
|
|
|
3023
2970
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3024
2971
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3035,24 +2982,22 @@ function computeStyles(_ref4) {
|
|
|
3035
2982
|
};
|
|
3036
2983
|
|
|
3037
2984
|
if (state.modifiersData.popperOffsets != null) {
|
|
3038
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2985
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3039
2986
|
offsets: state.modifiersData.popperOffsets,
|
|
3040
2987
|
position: state.options.strategy,
|
|
3041
|
-
adaptive: adaptive
|
|
3042
|
-
roundOffsets: roundOffsets
|
|
2988
|
+
adaptive: adaptive
|
|
3043
2989
|
})));
|
|
3044
2990
|
}
|
|
3045
2991
|
|
|
3046
2992
|
if (state.modifiersData.arrow != null) {
|
|
3047
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2993
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3048
2994
|
offsets: state.modifiersData.arrow,
|
|
3049
2995
|
position: 'absolute',
|
|
3050
|
-
adaptive: false
|
|
3051
|
-
roundOffsets: roundOffsets
|
|
2996
|
+
adaptive: false
|
|
3052
2997
|
})));
|
|
3053
2998
|
}
|
|
3054
2999
|
|
|
3055
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3000
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3056
3001
|
'data-popper-placement': state.placement
|
|
3057
3002
|
});
|
|
3058
3003
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3070,7 +3015,7 @@ var passive = {
|
|
|
3070
3015
|
passive: true
|
|
3071
3016
|
};
|
|
3072
3017
|
|
|
3073
|
-
function effect(_ref) {
|
|
3018
|
+
function effect$1(_ref) {
|
|
3074
3019
|
var state = _ref.state,
|
|
3075
3020
|
instance = _ref.instance,
|
|
3076
3021
|
options = _ref.options;
|
|
@@ -3110,11 +3055,11 @@ var eventListeners = {
|
|
|
3110
3055
|
enabled: true,
|
|
3111
3056
|
phase: 'write',
|
|
3112
3057
|
fn: function fn() {},
|
|
3113
|
-
effect: effect,
|
|
3058
|
+
effect: effect$1,
|
|
3114
3059
|
data: {}
|
|
3115
3060
|
};
|
|
3116
3061
|
|
|
3117
|
-
var hash
|
|
3062
|
+
var hash = {
|
|
3118
3063
|
left: 'right',
|
|
3119
3064
|
right: 'left',
|
|
3120
3065
|
bottom: 'top',
|
|
@@ -3122,20 +3067,34 @@ var hash$1 = {
|
|
|
3122
3067
|
};
|
|
3123
3068
|
function getOppositePlacement(placement) {
|
|
3124
3069
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3125
|
-
return hash
|
|
3070
|
+
return hash[matched];
|
|
3126
3071
|
});
|
|
3127
3072
|
}
|
|
3128
3073
|
|
|
3129
|
-
var hash = {
|
|
3074
|
+
var hash$1 = {
|
|
3130
3075
|
start: 'end',
|
|
3131
3076
|
end: 'start'
|
|
3132
3077
|
};
|
|
3133
3078
|
function getOppositeVariationPlacement(placement) {
|
|
3134
3079
|
return placement.replace(/start|end/g, function (matched) {
|
|
3135
|
-
return hash[matched];
|
|
3080
|
+
return hash$1[matched];
|
|
3136
3081
|
});
|
|
3137
3082
|
}
|
|
3138
3083
|
|
|
3084
|
+
function getBoundingClientRect(element) {
|
|
3085
|
+
var rect = element.getBoundingClientRect();
|
|
3086
|
+
return {
|
|
3087
|
+
width: rect.width,
|
|
3088
|
+
height: rect.height,
|
|
3089
|
+
top: rect.top,
|
|
3090
|
+
right: rect.right,
|
|
3091
|
+
bottom: rect.bottom,
|
|
3092
|
+
left: rect.left,
|
|
3093
|
+
x: rect.left,
|
|
3094
|
+
y: rect.top
|
|
3095
|
+
};
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3139
3098
|
function getWindowScroll(node) {
|
|
3140
3099
|
var win = getWindow(node);
|
|
3141
3100
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3198,18 +3157,16 @@ function getViewportRect(element) {
|
|
|
3198
3157
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3199
3158
|
|
|
3200
3159
|
function getDocumentRect(element) {
|
|
3201
|
-
var _element$ownerDocumen;
|
|
3202
|
-
|
|
3203
3160
|
var html = getDocumentElement(element);
|
|
3204
3161
|
var winScroll = getWindowScroll(element);
|
|
3205
|
-
var body =
|
|
3206
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3207
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3162
|
+
var body = element.ownerDocument.body;
|
|
3163
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3164
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3208
3165
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3209
3166
|
var y = -winScroll.scrollTop;
|
|
3210
3167
|
|
|
3211
|
-
if (getComputedStyle$
|
|
3212
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3168
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3169
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3213
3170
|
}
|
|
3214
3171
|
|
|
3215
3172
|
return {
|
|
@@ -3222,7 +3179,7 @@ function getDocumentRect(element) {
|
|
|
3222
3179
|
|
|
3223
3180
|
function isScrollParent(element) {
|
|
3224
3181
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3225
|
-
var _getComputedStyle = getComputedStyle$
|
|
3182
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3226
3183
|
overflow = _getComputedStyle.overflow,
|
|
3227
3184
|
overflowX = _getComputedStyle.overflowX,
|
|
3228
3185
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3232,7 +3189,7 @@ function isScrollParent(element) {
|
|
|
3232
3189
|
|
|
3233
3190
|
function getScrollParent(node) {
|
|
3234
3191
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3235
|
-
// $FlowFixMe
|
|
3192
|
+
// $FlowFixMe: assume body is always available
|
|
3236
3193
|
return node.ownerDocument.body;
|
|
3237
3194
|
}
|
|
3238
3195
|
|
|
@@ -3246,28 +3203,26 @@ function getScrollParent(node) {
|
|
|
3246
3203
|
/*
|
|
3247
3204
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3248
3205
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3249
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3206
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3250
3207
|
reference element's position.
|
|
3251
3208
|
*/
|
|
3252
3209
|
|
|
3253
3210
|
function listScrollParents(element, list) {
|
|
3254
|
-
var _element$ownerDocumen;
|
|
3255
|
-
|
|
3256
3211
|
if (list === void 0) {
|
|
3257
3212
|
list = [];
|
|
3258
3213
|
}
|
|
3259
3214
|
|
|
3260
3215
|
var scrollParent = getScrollParent(element);
|
|
3261
|
-
var isBody = scrollParent ===
|
|
3216
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3262
3217
|
var win = getWindow(scrollParent);
|
|
3263
3218
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3264
3219
|
var updatedList = list.concat(target);
|
|
3265
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3220
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3266
3221
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3267
3222
|
}
|
|
3268
3223
|
|
|
3269
3224
|
function rectToClientRect(rect) {
|
|
3270
|
-
return Object.assign({}, rect, {
|
|
3225
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3271
3226
|
left: rect.x,
|
|
3272
3227
|
top: rect.y,
|
|
3273
3228
|
right: rect.x + rect.width,
|
|
@@ -3297,16 +3252,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3297
3252
|
|
|
3298
3253
|
function getClippingParents(element) {
|
|
3299
3254
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3300
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3255
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3301
3256
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3302
3257
|
|
|
3303
3258
|
if (!isElement(clipperElement)) {
|
|
3304
3259
|
return [];
|
|
3305
|
-
} // $FlowFixMe
|
|
3260
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3306
3261
|
|
|
3307
3262
|
|
|
3308
3263
|
return clippingParents.filter(function (clippingParent) {
|
|
3309
|
-
return isElement(clippingParent) && contains
|
|
3264
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3310
3265
|
});
|
|
3311
3266
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3312
3267
|
// clipping parents
|
|
@@ -3318,10 +3273,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3318
3273
|
var firstClippingParent = clippingParents[0];
|
|
3319
3274
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3320
3275
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3321
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3322
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3323
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3324
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3276
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3277
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3278
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3279
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3325
3280
|
return accRect;
|
|
3326
3281
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3327
3282
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3388,11 +3343,11 @@ function computeOffsets(_ref) {
|
|
|
3388
3343
|
|
|
3389
3344
|
switch (variation) {
|
|
3390
3345
|
case start:
|
|
3391
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3346
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3392
3347
|
break;
|
|
3393
3348
|
|
|
3394
3349
|
case end:
|
|
3395
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3350
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3396
3351
|
break;
|
|
3397
3352
|
}
|
|
3398
3353
|
}
|
|
@@ -3431,7 +3386,7 @@ function detectOverflow(state, options) {
|
|
|
3431
3386
|
strategy: 'absolute',
|
|
3432
3387
|
placement: placement
|
|
3433
3388
|
});
|
|
3434
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3389
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3435
3390
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3436
3391
|
// 0 or negative = within the clipping rect
|
|
3437
3392
|
|
|
@@ -3455,6 +3410,9 @@ function detectOverflow(state, options) {
|
|
|
3455
3410
|
return overflowOffsets;
|
|
3456
3411
|
}
|
|
3457
3412
|
|
|
3413
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3414
|
+
|
|
3415
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3458
3416
|
function computeAutoPlacement(state, options) {
|
|
3459
3417
|
if (options === void 0) {
|
|
3460
3418
|
options = {};
|
|
@@ -3471,7 +3429,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3471
3429
|
var variation = getVariation(placement);
|
|
3472
3430
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3473
3431
|
return getVariation(placement) === variation;
|
|
3474
|
-
}) : basePlacements;
|
|
3432
|
+
}) : basePlacements; // $FlowFixMe
|
|
3433
|
+
|
|
3475
3434
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3476
3435
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3477
3436
|
});
|
|
@@ -3482,7 +3441,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3482
3441
|
if (process.env.NODE_ENV !== "production") {
|
|
3483
3442
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3484
3443
|
}
|
|
3485
|
-
} // $FlowFixMe
|
|
3444
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3486
3445
|
|
|
3487
3446
|
|
|
3488
3447
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3683,7 +3642,7 @@ function hide(_ref) {
|
|
|
3683
3642
|
isReferenceHidden: isReferenceHidden,
|
|
3684
3643
|
hasPopperEscaped: hasPopperEscaped
|
|
3685
3644
|
};
|
|
3686
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3645
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3687
3646
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3688
3647
|
'data-popper-escaped': hasPopperEscaped
|
|
3689
3648
|
});
|
|
@@ -3702,7 +3661,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3702
3661
|
var basePlacement = getBasePlacement(placement);
|
|
3703
3662
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3704
3663
|
|
|
3705
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3664
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3706
3665
|
placement: placement
|
|
3707
3666
|
})) : offset,
|
|
3708
3667
|
skidding = _ref[0],
|
|
@@ -3808,7 +3767,7 @@ function preventOverflow(_ref) {
|
|
|
3808
3767
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3809
3768
|
var referenceRect = state.rects.reference;
|
|
3810
3769
|
var popperRect = state.rects.popper;
|
|
3811
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3770
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3812
3771
|
placement: state.placement
|
|
3813
3772
|
})) : tetherOffset;
|
|
3814
3773
|
var data = {
|
|
@@ -3820,13 +3779,13 @@ function preventOverflow(_ref) {
|
|
|
3820
3779
|
return;
|
|
3821
3780
|
}
|
|
3822
3781
|
|
|
3823
|
-
if (checkMainAxis
|
|
3782
|
+
if (checkMainAxis) {
|
|
3824
3783
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3825
3784
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3826
3785
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3827
3786
|
var offset = popperOffsets[mainAxis];
|
|
3828
|
-
var min
|
|
3829
|
-
var max
|
|
3787
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3788
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3830
3789
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3831
3790
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3832
3791
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3853,29 +3812,26 @@ function preventOverflow(_ref) {
|
|
|
3853
3812
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3854
3813
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3855
3814
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3815
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3816
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3817
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3818
|
+
}
|
|
3856
3819
|
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3860
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
|
-
if (checkAltAxis) {
|
|
3864
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3820
|
+
if (checkAltAxis) {
|
|
3821
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3865
3822
|
|
|
3866
|
-
|
|
3823
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3867
3824
|
|
|
3868
|
-
|
|
3825
|
+
var _offset = popperOffsets[altAxis];
|
|
3869
3826
|
|
|
3870
|
-
|
|
3827
|
+
var _min = _offset + overflow[_mainSide];
|
|
3871
3828
|
|
|
3872
|
-
|
|
3829
|
+
var _max = _offset - overflow[_altSide];
|
|
3873
3830
|
|
|
3874
|
-
|
|
3831
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3875
3832
|
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
}
|
|
3833
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3834
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3879
3835
|
}
|
|
3880
3836
|
|
|
3881
3837
|
state.modifiersData[name] = data;
|
|
@@ -4106,9 +4062,9 @@ function uniqueBy(arr, fn) {
|
|
|
4106
4062
|
function mergeByName(modifiers) {
|
|
4107
4063
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4108
4064
|
var existing = merged[current.name];
|
|
4109
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4110
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4111
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4065
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4066
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4067
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4112
4068
|
}) : current;
|
|
4113
4069
|
return merged;
|
|
4114
4070
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4154,7 +4110,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4154
4110
|
var state = {
|
|
4155
4111
|
placement: 'bottom',
|
|
4156
4112
|
orderedModifiers: [],
|
|
4157
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4113
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4158
4114
|
modifiersData: {},
|
|
4159
4115
|
elements: {
|
|
4160
4116
|
reference: reference,
|
|
@@ -4169,7 +4125,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4169
4125
|
state: state,
|
|
4170
4126
|
setOptions: function setOptions(options) {
|
|
4171
4127
|
cleanupModifierEffects();
|
|
4172
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4128
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4173
4129
|
state.scrollParents = {
|
|
4174
4130
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4175
4131
|
popper: listScrollParents(popper)
|
|
@@ -4201,7 +4157,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4201
4157
|
}
|
|
4202
4158
|
}
|
|
4203
4159
|
|
|
4204
|
-
var _getComputedStyle = getComputedStyle$
|
|
4160
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4205
4161
|
marginTop = _getComputedStyle.marginTop,
|
|
4206
4162
|
marginRight = _getComputedStyle.marginRight,
|
|
4207
4163
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4541,7 +4497,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4541
4497
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4542
4498
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4543
4499
|
// so we need to check on context instead of a document root element.
|
|
4544
|
-
function contains(context, node) {
|
|
4500
|
+
function contains$1(context, node) {
|
|
4545
4501
|
if (context.contains) return context.contains(node);
|
|
4546
4502
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4547
4503
|
}
|
|
@@ -4615,13 +4571,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4615
4571
|
return componentOrElement != null ? componentOrElement : null;
|
|
4616
4572
|
}
|
|
4617
4573
|
|
|
4618
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4619
|
-
return ownerDocument
|
|
4574
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4575
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4620
4576
|
});
|
|
4621
4577
|
|
|
4622
4578
|
var escapeKeyCode = 27;
|
|
4623
4579
|
|
|
4624
|
-
var noop$
|
|
4580
|
+
var noop$1 = function noop() {};
|
|
4625
4581
|
|
|
4626
4582
|
function isLeftClickEvent(event) {
|
|
4627
4583
|
return event.button === 0;
|
|
@@ -4654,11 +4610,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4654
4610
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4655
4611
|
|
|
4656
4612
|
var preventMouseRootCloseRef = useRef(false);
|
|
4657
|
-
var onClose = onRootClose || noop$
|
|
4613
|
+
var onClose = onRootClose || noop$1;
|
|
4658
4614
|
var handleMouseCapture = useCallback(function (e) {
|
|
4659
4615
|
var currentTarget = getRefTarget(ref);
|
|
4660
4616
|
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');
|
|
4661
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4617
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4662
4618
|
}, [ref]);
|
|
4663
4619
|
var handleMouse = useEventCallback(function (e) {
|
|
4664
4620
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4675,7 +4631,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4675
4631
|
// https://github.com/facebook/react/issues/20074
|
|
4676
4632
|
|
|
4677
4633
|
var currentEvent = window.event;
|
|
4678
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4634
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4679
4635
|
// avoid false positives in the contains() check below if the target DOM
|
|
4680
4636
|
// element is removed in the React mouse callback.
|
|
4681
4637
|
|
|
@@ -4702,7 +4658,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4702
4658
|
|
|
4703
4659
|
if ('ontouchstart' in doc.documentElement) {
|
|
4704
4660
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4705
|
-
return listen(el, 'mousemove', noop$
|
|
4661
|
+
return listen(el, 'mousemove', noop$1);
|
|
4706
4662
|
});
|
|
4707
4663
|
}
|
|
4708
4664
|
|
|
@@ -4784,7 +4740,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4784
4740
|
});
|
|
4785
4741
|
}
|
|
4786
4742
|
|
|
4787
|
-
var noop$
|
|
4743
|
+
var noop$2 = function noop() {};
|
|
4788
4744
|
/**
|
|
4789
4745
|
* @memberOf Dropdown
|
|
4790
4746
|
* @param {object} options
|
|
@@ -4852,7 +4808,7 @@ function useDropdownMenu(options) {
|
|
|
4852
4808
|
|
|
4853
4809
|
var menu;
|
|
4854
4810
|
var menuProps = {
|
|
4855
|
-
ref: setMenu || noop$
|
|
4811
|
+
ref: setMenu || noop$2,
|
|
4856
4812
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4857
4813
|
};
|
|
4858
4814
|
var childArgs = {
|
|
@@ -4885,7 +4841,7 @@ function useDropdownMenu(options) {
|
|
|
4885
4841
|
});
|
|
4886
4842
|
return menu;
|
|
4887
4843
|
}
|
|
4888
|
-
var propTypes$
|
|
4844
|
+
var propTypes$2 = {
|
|
4889
4845
|
/**
|
|
4890
4846
|
* A render prop that returns a Menu element. The `props`
|
|
4891
4847
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4942,7 +4898,7 @@ var propTypes$8 = {
|
|
|
4942
4898
|
*/
|
|
4943
4899
|
rootCloseEvent: PropTypes.string
|
|
4944
4900
|
};
|
|
4945
|
-
var defaultProps$
|
|
4901
|
+
var defaultProps$d = {
|
|
4946
4902
|
usePopper: true
|
|
4947
4903
|
};
|
|
4948
4904
|
|
|
@@ -4952,7 +4908,7 @@ var defaultProps$r = {
|
|
|
4952
4908
|
* @displayName DropdownMenu
|
|
4953
4909
|
* @memberOf Dropdown
|
|
4954
4910
|
*/
|
|
4955
|
-
function DropdownMenu
|
|
4911
|
+
function DropdownMenu(_ref2) {
|
|
4956
4912
|
var children = _ref2.children,
|
|
4957
4913
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4958
4914
|
|
|
@@ -4960,11 +4916,11 @@ function DropdownMenu$1(_ref2) {
|
|
|
4960
4916
|
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4961
4917
|
}
|
|
4962
4918
|
|
|
4963
|
-
DropdownMenu
|
|
4964
|
-
DropdownMenu
|
|
4965
|
-
DropdownMenu
|
|
4919
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4920
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4921
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
4966
4922
|
|
|
4967
|
-
var noop$
|
|
4923
|
+
var noop$3 = function noop() {};
|
|
4968
4924
|
/**
|
|
4969
4925
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4970
4926
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4978,11 +4934,11 @@ function useDropdownToggle() {
|
|
|
4978
4934
|
_ref$show = _ref.show,
|
|
4979
4935
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4980
4936
|
_ref$toggle = _ref.toggle,
|
|
4981
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4937
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
4982
4938
|
setToggle = _ref.setToggle;
|
|
4983
4939
|
|
|
4984
4940
|
return [{
|
|
4985
|
-
ref: setToggle || noop$
|
|
4941
|
+
ref: setToggle || noop$3,
|
|
4986
4942
|
'aria-haspopup': true,
|
|
4987
4943
|
'aria-expanded': !!show
|
|
4988
4944
|
}, {
|
|
@@ -4990,7 +4946,7 @@ function useDropdownToggle() {
|
|
|
4990
4946
|
toggle: toggle
|
|
4991
4947
|
}];
|
|
4992
4948
|
}
|
|
4993
|
-
var propTypes$
|
|
4949
|
+
var propTypes$3 = {
|
|
4994
4950
|
/**
|
|
4995
4951
|
* A render prop that returns a Toggle element. The `props`
|
|
4996
4952
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5015,7 +4971,7 @@ var propTypes$7 = {
|
|
|
5015
4971
|
* @displayName DropdownToggle
|
|
5016
4972
|
* @memberOf Dropdown
|
|
5017
4973
|
*/
|
|
5018
|
-
function DropdownToggle
|
|
4974
|
+
function DropdownToggle(_ref2) {
|
|
5019
4975
|
var children = _ref2.children;
|
|
5020
4976
|
|
|
5021
4977
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5031,10 +4987,10 @@ function DropdownToggle$1(_ref2) {
|
|
|
5031
4987
|
}));
|
|
5032
4988
|
}
|
|
5033
4989
|
|
|
5034
|
-
DropdownToggle
|
|
5035
|
-
DropdownToggle
|
|
4990
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4991
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5036
4992
|
|
|
5037
|
-
var propTypes$
|
|
4993
|
+
var propTypes$4 = {
|
|
5038
4994
|
/**
|
|
5039
4995
|
* A render prop that returns the root dropdown element. The `props`
|
|
5040
4996
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5106,7 +5062,7 @@ var propTypes$6 = {
|
|
|
5106
5062
|
/**
|
|
5107
5063
|
* @displayName Dropdown
|
|
5108
5064
|
*/
|
|
5109
|
-
function Dropdown
|
|
5065
|
+
function Dropdown(_ref) {
|
|
5110
5066
|
var drop = _ref.drop,
|
|
5111
5067
|
alignEnd = _ref.alignEnd,
|
|
5112
5068
|
defaultShow = _ref.defaultShow,
|
|
@@ -5248,15 +5204,15 @@ function Dropdown$1(_ref) {
|
|
|
5248
5204
|
}));
|
|
5249
5205
|
}
|
|
5250
5206
|
|
|
5251
|
-
Dropdown
|
|
5252
|
-
Dropdown
|
|
5253
|
-
Dropdown
|
|
5254
|
-
Dropdown
|
|
5207
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5208
|
+
Dropdown.propTypes = propTypes$4;
|
|
5209
|
+
Dropdown.Menu = DropdownMenu;
|
|
5210
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5255
5211
|
|
|
5256
5212
|
var NavContext = React.createContext(null);
|
|
5257
5213
|
NavContext.displayName = 'NavContext';
|
|
5258
5214
|
|
|
5259
|
-
var defaultProps$
|
|
5215
|
+
var defaultProps$e = {
|
|
5260
5216
|
as: SafeAnchor,
|
|
5261
5217
|
disabled: false
|
|
5262
5218
|
};
|
|
@@ -5305,7 +5261,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5305
5261
|
);
|
|
5306
5262
|
});
|
|
5307
5263
|
DropdownItem.displayName = 'DropdownItem';
|
|
5308
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5264
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5309
5265
|
|
|
5310
5266
|
var toFnRef = function toFnRef(ref) {
|
|
5311
5267
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5344,8 +5300,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5344
5300
|
}, [refA, refB]);
|
|
5345
5301
|
}
|
|
5346
5302
|
|
|
5347
|
-
var context = React.createContext(null);
|
|
5348
|
-
context.displayName = 'NavbarContext';
|
|
5303
|
+
var context$2 = React.createContext(null);
|
|
5304
|
+
context$2.displayName = 'NavbarContext';
|
|
5349
5305
|
|
|
5350
5306
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5351
5307
|
// @ts-ignore
|
|
@@ -5466,13 +5422,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5466
5422
|
}), PropTypes.shape({
|
|
5467
5423
|
xl: alignDirection
|
|
5468
5424
|
})]);
|
|
5469
|
-
var defaultProps$
|
|
5425
|
+
var defaultProps$f = {
|
|
5470
5426
|
align: 'left',
|
|
5471
5427
|
alignRight: false,
|
|
5472
5428
|
flip: true
|
|
5473
5429
|
}; // TODO: remove this hack
|
|
5474
5430
|
|
|
5475
|
-
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
5431
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5476
5432
|
var bsPrefix = _ref.bsPrefix,
|
|
5477
5433
|
className = _ref.className,
|
|
5478
5434
|
align = _ref.align,
|
|
@@ -5486,7 +5442,7 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5486
5442
|
popperConfig = _ref.popperConfig,
|
|
5487
5443
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5488
5444
|
|
|
5489
|
-
var isNavbar = useContext(context);
|
|
5445
|
+
var isNavbar = useContext(context$2);
|
|
5490
5446
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5491
5447
|
|
|
5492
5448
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5551,8 +5507,8 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5551
5507
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5552
5508
|
}));
|
|
5553
5509
|
});
|
|
5554
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5555
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5510
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5511
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5556
5512
|
|
|
5557
5513
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5558
5514
|
|
|
@@ -5581,7 +5537,7 @@ module.exports = exports['default'];
|
|
|
5581
5537
|
|
|
5582
5538
|
unwrapExports(isRequiredForA11y_1);
|
|
5583
5539
|
|
|
5584
|
-
var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
5540
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5585
5541
|
var bsPrefix = _ref.bsPrefix,
|
|
5586
5542
|
split = _ref.split,
|
|
5587
5543
|
className = _ref.className,
|
|
@@ -5608,7 +5564,7 @@ var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
|
5608
5564
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5609
5565
|
}, toggleProps, props));
|
|
5610
5566
|
});
|
|
5611
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5567
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5612
5568
|
|
|
5613
5569
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5614
5570
|
defaultProps: {
|
|
@@ -5623,10 +5579,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5623
5579
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5624
5580
|
Component: 'span'
|
|
5625
5581
|
});
|
|
5626
|
-
var defaultProps$
|
|
5582
|
+
var defaultProps$g = {
|
|
5627
5583
|
navbar: false
|
|
5628
5584
|
};
|
|
5629
|
-
var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
5585
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5630
5586
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5631
5587
|
show: 'onToggle'
|
|
5632
5588
|
}),
|
|
@@ -5639,9 +5595,9 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5639
5595
|
onToggle = _useUncontrolled.onToggle,
|
|
5640
5596
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5641
5597
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5642
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5643
|
-
_useUncontrolled.navbar
|
|
5644
|
-
|
|
5598
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5599
|
+
_4 = _useUncontrolled.navbar,
|
|
5600
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5645
5601
|
|
|
5646
5602
|
var onSelectCtx = useContext(SelectableContext);
|
|
5647
5603
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5665,7 +5621,7 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5665
5621
|
});
|
|
5666
5622
|
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5667
5623
|
value: handleSelect
|
|
5668
|
-
}, /*#__PURE__*/React.createElement(Dropdown
|
|
5624
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5669
5625
|
drop: drop,
|
|
5670
5626
|
show: show,
|
|
5671
5627
|
alignEnd: alignRight,
|
|
@@ -5680,14 +5636,14 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5680
5636
|
}));
|
|
5681
5637
|
}));
|
|
5682
5638
|
});
|
|
5683
|
-
Dropdown.displayName = 'Dropdown';
|
|
5684
|
-
Dropdown.defaultProps = defaultProps$
|
|
5685
|
-
Dropdown.Divider = DropdownDivider;
|
|
5686
|
-
Dropdown.Header = DropdownHeader;
|
|
5687
|
-
Dropdown.Item = DropdownItem;
|
|
5688
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5689
|
-
Dropdown.Menu = DropdownMenu;
|
|
5690
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5639
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5640
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5641
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5642
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5643
|
+
Dropdown$1.Item = DropdownItem;
|
|
5644
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5645
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5646
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5691
5647
|
|
|
5692
5648
|
var propTypes$5 = {
|
|
5693
5649
|
/**
|
|
@@ -5764,16 +5720,16 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
5764
5720
|
id = _ref.id,
|
|
5765
5721
|
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5766
5722
|
|
|
5767
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
5723
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5768
5724
|
ref: ref
|
|
5769
|
-
}, props), /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
5725
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5770
5726
|
id: id,
|
|
5771
5727
|
href: href,
|
|
5772
5728
|
size: size,
|
|
5773
5729
|
variant: variant,
|
|
5774
5730
|
disabled: disabled,
|
|
5775
5731
|
childBsPrefix: bsPrefix
|
|
5776
|
-
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
5732
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5777
5733
|
align: menuAlign,
|
|
5778
5734
|
role: menuRole,
|
|
5779
5735
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5876,7 +5832,7 @@ module.exports = exports['default'];
|
|
|
5876
5832
|
|
|
5877
5833
|
unwrapExports(all_1);
|
|
5878
5834
|
|
|
5879
|
-
var propTypes$
|
|
5835
|
+
var propTypes$6 = {
|
|
5880
5836
|
/**
|
|
5881
5837
|
* Specify whether the feedback is for valid or invalid fields
|
|
5882
5838
|
*
|
|
@@ -5905,7 +5861,7 @@ function (_ref, ref) {
|
|
|
5905
5861
|
}));
|
|
5906
5862
|
});
|
|
5907
5863
|
Feedback.displayName = 'Feedback';
|
|
5908
|
-
Feedback.propTypes = propTypes$
|
|
5864
|
+
Feedback.propTypes = propTypes$6;
|
|
5909
5865
|
|
|
5910
5866
|
var FormContext = React.createContext({
|
|
5911
5867
|
controlId: undefined
|
|
@@ -6255,7 +6211,7 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6255
6211
|
});
|
|
6256
6212
|
FormGroup.displayName = 'FormGroup';
|
|
6257
6213
|
|
|
6258
|
-
var defaultProps$
|
|
6214
|
+
var defaultProps$h = {
|
|
6259
6215
|
column: false,
|
|
6260
6216
|
srOnly: false
|
|
6261
6217
|
};
|
|
@@ -6294,7 +6250,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6294
6250
|
);
|
|
6295
6251
|
});
|
|
6296
6252
|
FormLabel.displayName = 'FormLabel';
|
|
6297
|
-
FormLabel.defaultProps = defaultProps$
|
|
6253
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6298
6254
|
|
|
6299
6255
|
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6300
6256
|
function (_ref, ref) {
|
|
@@ -6324,7 +6280,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6324
6280
|
Switch.Label = FormCheck.Label;
|
|
6325
6281
|
|
|
6326
6282
|
var FormRow = createWithBsPrefix('form-row');
|
|
6327
|
-
var defaultProps$
|
|
6283
|
+
var defaultProps$i = {
|
|
6328
6284
|
inline: false
|
|
6329
6285
|
};
|
|
6330
6286
|
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
@@ -6343,7 +6299,7 @@ var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
|
6343
6299
|
}));
|
|
6344
6300
|
});
|
|
6345
6301
|
FormImpl.displayName = 'Form';
|
|
6346
|
-
FormImpl.defaultProps = defaultProps$
|
|
6302
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6347
6303
|
FormImpl.Row = FormRow;
|
|
6348
6304
|
FormImpl.Group = FormGroup;
|
|
6349
6305
|
FormImpl.Control = FormControl$1;
|
|
@@ -6353,7 +6309,7 @@ FormImpl.Switch = Switch;
|
|
|
6353
6309
|
FormImpl.Label = FormLabel;
|
|
6354
6310
|
FormImpl.Text = FormText;
|
|
6355
6311
|
|
|
6356
|
-
var defaultProps$
|
|
6312
|
+
var defaultProps$j = {
|
|
6357
6313
|
fluid: false
|
|
6358
6314
|
};
|
|
6359
6315
|
var Container = React.forwardRef(function (_ref, ref) {
|
|
@@ -6373,9 +6329,9 @@ var Container = React.forwardRef(function (_ref, ref) {
|
|
|
6373
6329
|
}));
|
|
6374
6330
|
});
|
|
6375
6331
|
Container.displayName = 'Container';
|
|
6376
|
-
Container.defaultProps = defaultProps$
|
|
6332
|
+
Container.defaultProps = defaultProps$j;
|
|
6377
6333
|
|
|
6378
|
-
var propTypes$
|
|
6334
|
+
var propTypes$7 = {
|
|
6379
6335
|
/**
|
|
6380
6336
|
* @default 'img'
|
|
6381
6337
|
*/
|
|
@@ -6428,7 +6384,7 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6428
6384
|
Image.displayName = 'Image';
|
|
6429
6385
|
Image.defaultProps = defaultProps$k;
|
|
6430
6386
|
|
|
6431
|
-
var defaultProps$
|
|
6387
|
+
var defaultProps$l = {
|
|
6432
6388
|
fluid: true
|
|
6433
6389
|
};
|
|
6434
6390
|
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
@@ -6442,8 +6398,8 @@ var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
|
6442
6398
|
}));
|
|
6443
6399
|
});
|
|
6444
6400
|
FigureImage.displayName = 'FigureImage';
|
|
6445
|
-
FigureImage.propTypes = propTypes$
|
|
6446
|
-
FigureImage.defaultProps = defaultProps$
|
|
6401
|
+
FigureImage.propTypes = propTypes$7;
|
|
6402
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6447
6403
|
|
|
6448
6404
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6449
6405
|
Component: 'figcaption'
|
|
@@ -6498,7 +6454,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6498
6454
|
});
|
|
6499
6455
|
InputGroup.displayName = 'InputGroup';
|
|
6500
6456
|
|
|
6501
|
-
_extends({}, InputGroup, {
|
|
6457
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6502
6458
|
Text: InputGroupText,
|
|
6503
6459
|
Radio: InputGroupRadio,
|
|
6504
6460
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6506,7 +6462,7 @@ _extends({}, InputGroup, {
|
|
|
6506
6462
|
Prepend: InputGroupPrepend
|
|
6507
6463
|
});
|
|
6508
6464
|
|
|
6509
|
-
var defaultProps$
|
|
6465
|
+
var defaultProps$m = {
|
|
6510
6466
|
fluid: false
|
|
6511
6467
|
};
|
|
6512
6468
|
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
@@ -6527,13 +6483,13 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6527
6483
|
className: classnames(className, classes)
|
|
6528
6484
|
}));
|
|
6529
6485
|
});
|
|
6530
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6486
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6531
6487
|
Jumbotron.displayName = 'Jumbotron';
|
|
6532
6488
|
|
|
6533
6489
|
var TabContext = React.createContext(null);
|
|
6534
6490
|
|
|
6535
6491
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6536
|
-
var noop$
|
|
6492
|
+
var noop$4 = function noop() {};
|
|
6537
6493
|
|
|
6538
6494
|
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6539
6495
|
var _ref$as = _ref.as,
|
|
@@ -6623,8 +6579,8 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6623
6579
|
role: role,
|
|
6624
6580
|
// used by NavLink to determine it's role
|
|
6625
6581
|
activeKey: makeEventKey(activeKey),
|
|
6626
|
-
getControlledId: getControlledId || noop$
|
|
6627
|
-
getControllerId: getControllerId || noop$
|
|
6582
|
+
getControlledId: getControlledId || noop$4,
|
|
6583
|
+
getControllerId: getControllerId || noop$4
|
|
6628
6584
|
}
|
|
6629
6585
|
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6630
6586
|
onKeyDown: handleKeyDown,
|
|
@@ -6633,7 +6589,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6633
6589
|
}))));
|
|
6634
6590
|
});
|
|
6635
6591
|
|
|
6636
|
-
var defaultProps$
|
|
6592
|
+
var defaultProps$n = {
|
|
6637
6593
|
disabled: false
|
|
6638
6594
|
};
|
|
6639
6595
|
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
@@ -6679,9 +6635,9 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6679
6635
|
className: classnames(className, isActive && 'active')
|
|
6680
6636
|
}));
|
|
6681
6637
|
});
|
|
6682
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6638
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6683
6639
|
|
|
6684
|
-
var defaultProps$
|
|
6640
|
+
var defaultProps$o = {
|
|
6685
6641
|
variant: undefined,
|
|
6686
6642
|
active: false,
|
|
6687
6643
|
disabled: false
|
|
@@ -6719,10 +6675,10 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6719
6675
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6720
6676
|
}));
|
|
6721
6677
|
});
|
|
6722
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6678
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6723
6679
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6724
6680
|
|
|
6725
|
-
var defaultProps$
|
|
6681
|
+
var defaultProps$p = {
|
|
6726
6682
|
variant: undefined,
|
|
6727
6683
|
horizontal: undefined
|
|
6728
6684
|
};
|
|
@@ -6755,7 +6711,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6755
6711
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6756
6712
|
}));
|
|
6757
6713
|
});
|
|
6758
|
-
ListGroup.defaultProps = defaultProps$
|
|
6714
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6759
6715
|
ListGroup.displayName = 'ListGroup';
|
|
6760
6716
|
ListGroup.Item = ListGroupItem;
|
|
6761
6717
|
|
|
@@ -6804,7 +6760,7 @@ function scrollbarSize(recalc) {
|
|
|
6804
6760
|
|
|
6805
6761
|
function activeElement(doc) {
|
|
6806
6762
|
if (doc === void 0) {
|
|
6807
|
-
doc = ownerDocument
|
|
6763
|
+
doc = ownerDocument();
|
|
6808
6764
|
}
|
|
6809
6765
|
|
|
6810
6766
|
// Support: IE 9 only
|
|
@@ -6854,7 +6810,7 @@ function isBody(node) {
|
|
|
6854
6810
|
}
|
|
6855
6811
|
|
|
6856
6812
|
function bodyIsOverflowing(node) {
|
|
6857
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6813
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6858
6814
|
var win = isWindow(node) || doc.defaultView;
|
|
6859
6815
|
return doc.body.clientWidth < win.innerWidth;
|
|
6860
6816
|
}
|
|
@@ -7066,7 +7022,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7066
7022
|
var _ref;
|
|
7067
7023
|
|
|
7068
7024
|
if (typeof document === 'undefined') return null;
|
|
7069
|
-
if (ref == null) return ownerDocument
|
|
7025
|
+
if (ref == null) return ownerDocument().body;
|
|
7070
7026
|
if (typeof ref === 'function') ref = ref();
|
|
7071
7027
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7072
7028
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7099,11 +7055,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7099
7055
|
return resolvedRef;
|
|
7100
7056
|
}
|
|
7101
7057
|
|
|
7102
|
-
var manager
|
|
7058
|
+
var manager;
|
|
7103
7059
|
|
|
7104
7060
|
function getManager() {
|
|
7105
|
-
if (!manager
|
|
7106
|
-
return manager
|
|
7061
|
+
if (!manager) manager = new ModalManager();
|
|
7062
|
+
return manager;
|
|
7107
7063
|
}
|
|
7108
7064
|
|
|
7109
7065
|
function useModalManager(provided) {
|
|
@@ -7131,7 +7087,7 @@ function useModalManager(provided) {
|
|
|
7131
7087
|
});
|
|
7132
7088
|
}
|
|
7133
7089
|
|
|
7134
|
-
var Modal
|
|
7090
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7135
7091
|
var _ref$show = _ref.show,
|
|
7136
7092
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7137
7093
|
_ref$role = _ref.role,
|
|
@@ -7215,7 +7171,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7215
7171
|
if (autoFocus) {
|
|
7216
7172
|
var currentActiveElement = activeElement(document);
|
|
7217
7173
|
|
|
7218
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7174
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7219
7175
|
lastFocusRef.current = currentActiveElement;
|
|
7220
7176
|
modal.dialog.focus();
|
|
7221
7177
|
}
|
|
@@ -7261,7 +7217,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7261
7217
|
|
|
7262
7218
|
var currentActiveElement = activeElement();
|
|
7263
7219
|
|
|
7264
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7220
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7265
7221
|
modal.dialog.focus();
|
|
7266
7222
|
}
|
|
7267
7223
|
});
|
|
@@ -7352,7 +7308,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7352
7308
|
|
|
7353
7309
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7354
7310
|
});
|
|
7355
|
-
var propTypes$
|
|
7311
|
+
var propTypes$8 = {
|
|
7356
7312
|
/**
|
|
7357
7313
|
* Set the visibility of the Modal
|
|
7358
7314
|
*/
|
|
@@ -7508,9 +7464,9 @@ var propTypes$2 = {
|
|
|
7508
7464
|
*/
|
|
7509
7465
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7510
7466
|
};
|
|
7511
|
-
Modal
|
|
7512
|
-
Modal
|
|
7513
|
-
var BaseModal = Object.assign(Modal
|
|
7467
|
+
Modal.displayName = 'Modal';
|
|
7468
|
+
Modal.propTypes = propTypes$8;
|
|
7469
|
+
var BaseModal = Object.assign(Modal, {
|
|
7514
7470
|
Manager: ModalManager
|
|
7515
7471
|
});
|
|
7516
7472
|
|
|
@@ -7617,7 +7573,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7617
7573
|
|
|
7618
7574
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7619
7575
|
|
|
7620
|
-
var defaultProps$
|
|
7576
|
+
var defaultProps$q = {
|
|
7621
7577
|
closeLabel: 'Close',
|
|
7622
7578
|
closeButton: false
|
|
7623
7579
|
};
|
|
@@ -7646,15 +7602,15 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7646
7602
|
}));
|
|
7647
7603
|
});
|
|
7648
7604
|
ModalHeader.displayName = 'ModalHeader';
|
|
7649
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7605
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7650
7606
|
|
|
7651
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7607
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7652
7608
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7653
|
-
Component: DivStyledAsH4
|
|
7609
|
+
Component: DivStyledAsH4$1
|
|
7654
7610
|
});
|
|
7655
7611
|
|
|
7656
|
-
var manager;
|
|
7657
|
-
var defaultProps$
|
|
7612
|
+
var manager$1;
|
|
7613
|
+
var defaultProps$r = {
|
|
7658
7614
|
show: false,
|
|
7659
7615
|
backdrop: true,
|
|
7660
7616
|
keyboard: true,
|
|
@@ -7676,7 +7632,7 @@ function BackdropTransition(props) {
|
|
|
7676
7632
|
/* eslint-enable no-use-before-define */
|
|
7677
7633
|
|
|
7678
7634
|
|
|
7679
|
-
var Modal = React.forwardRef(function (_ref, ref) {
|
|
7635
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7680
7636
|
var bsPrefix = _ref.bsPrefix,
|
|
7681
7637
|
className = _ref.className,
|
|
7682
7638
|
style = _ref.style,
|
|
@@ -7742,14 +7698,14 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7742
7698
|
|
|
7743
7699
|
function getModalManager() {
|
|
7744
7700
|
if (propsManager) return propsManager;
|
|
7745
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7746
|
-
return manager;
|
|
7701
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7702
|
+
return manager$1;
|
|
7747
7703
|
}
|
|
7748
7704
|
|
|
7749
7705
|
function updateDialogStyle(node) {
|
|
7750
7706
|
if (!canUseDOM) return;
|
|
7751
7707
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7752
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7708
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7753
7709
|
setStyle({
|
|
7754
7710
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7755
7711
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7930,15 +7886,15 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7930
7886
|
renderDialog: renderDialog
|
|
7931
7887
|
}));
|
|
7932
7888
|
});
|
|
7933
|
-
Modal.displayName = 'Modal';
|
|
7934
|
-
Modal.defaultProps = defaultProps$
|
|
7935
|
-
Modal.Body = ModalBody;
|
|
7936
|
-
Modal.Header = ModalHeader;
|
|
7937
|
-
Modal.Title = ModalTitle;
|
|
7938
|
-
Modal.Footer = ModalFooter;
|
|
7939
|
-
Modal.Dialog = ModalDialog;
|
|
7940
|
-
Modal.TRANSITION_DURATION = 300;
|
|
7941
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7889
|
+
Modal$1.displayName = 'Modal';
|
|
7890
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7891
|
+
Modal$1.Body = ModalBody;
|
|
7892
|
+
Modal$1.Header = ModalHeader;
|
|
7893
|
+
Modal$1.Title = ModalTitle;
|
|
7894
|
+
Modal$1.Footer = ModalFooter;
|
|
7895
|
+
Modal$1.Dialog = ModalDialog;
|
|
7896
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7897
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7942
7898
|
|
|
7943
7899
|
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7944
7900
|
function (_ref, ref) {
|
|
@@ -7957,7 +7913,7 @@ function (_ref, ref) {
|
|
|
7957
7913
|
});
|
|
7958
7914
|
NavItem.displayName = 'NavItem';
|
|
7959
7915
|
|
|
7960
|
-
var defaultProps$
|
|
7916
|
+
var defaultProps$s = {
|
|
7961
7917
|
disabled: false,
|
|
7962
7918
|
as: SafeAnchor
|
|
7963
7919
|
};
|
|
@@ -7983,9 +7939,9 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7983
7939
|
}));
|
|
7984
7940
|
});
|
|
7985
7941
|
NavLink.displayName = 'NavLink';
|
|
7986
|
-
NavLink.defaultProps = defaultProps$
|
|
7942
|
+
NavLink.defaultProps = defaultProps$s;
|
|
7987
7943
|
|
|
7988
|
-
var defaultProps$
|
|
7944
|
+
var defaultProps$t = {
|
|
7989
7945
|
justify: false,
|
|
7990
7946
|
fill: false
|
|
7991
7947
|
};
|
|
@@ -8011,7 +7967,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8011
7967
|
var navbarBsPrefix;
|
|
8012
7968
|
var cardHeaderBsPrefix;
|
|
8013
7969
|
var isNavbar = false;
|
|
8014
|
-
var navbarContext = useContext(context);
|
|
7970
|
+
var navbarContext = useContext(context$2);
|
|
8015
7971
|
var cardContext = useContext(context$1);
|
|
8016
7972
|
|
|
8017
7973
|
if (navbarContext) {
|
|
@@ -8029,7 +7985,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8029
7985
|
}, props), children);
|
|
8030
7986
|
});
|
|
8031
7987
|
Nav.displayName = 'Nav';
|
|
8032
|
-
Nav.defaultProps = defaultProps$
|
|
7988
|
+
Nav.defaultProps = defaultProps$t;
|
|
8033
7989
|
Nav.Item = NavItem;
|
|
8034
7990
|
Nav.Link = NavLink;
|
|
8035
7991
|
|
|
@@ -8054,7 +8010,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8054
8010
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8055
8011
|
|
|
8056
8012
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8057
|
-
return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
|
|
8013
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8058
8014
|
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8059
8015
|
in: !!(context && context.expanded)
|
|
8060
8016
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
@@ -8065,7 +8021,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8065
8021
|
});
|
|
8066
8022
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8067
8023
|
|
|
8068
|
-
var defaultProps$
|
|
8024
|
+
var defaultProps$u = {
|
|
8069
8025
|
label: 'Toggle navigation'
|
|
8070
8026
|
};
|
|
8071
8027
|
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
@@ -8080,7 +8036,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8080
8036
|
|
|
8081
8037
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8082
8038
|
|
|
8083
|
-
var _ref2 = useContext(context) || {},
|
|
8039
|
+
var _ref2 = useContext(context$2) || {},
|
|
8084
8040
|
onToggle = _ref2.onToggle,
|
|
8085
8041
|
expanded = _ref2.expanded;
|
|
8086
8042
|
|
|
@@ -8103,12 +8059,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8103
8059
|
}));
|
|
8104
8060
|
});
|
|
8105
8061
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8106
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8062
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8107
8063
|
|
|
8108
8064
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8109
8065
|
Component: 'span'
|
|
8110
8066
|
});
|
|
8111
|
-
var defaultProps$
|
|
8067
|
+
var defaultProps$v = {
|
|
8112
8068
|
expand: true,
|
|
8113
8069
|
variant: 'light',
|
|
8114
8070
|
collapseOnSelect: false
|
|
@@ -8161,7 +8117,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8161
8117
|
expanded: !!expanded
|
|
8162
8118
|
};
|
|
8163
8119
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8164
|
-
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
8120
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8165
8121
|
value: navbarContext
|
|
8166
8122
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8167
8123
|
value: handleCollapse
|
|
@@ -8171,14 +8127,14 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8171
8127
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8172
8128
|
}), children)));
|
|
8173
8129
|
});
|
|
8174
|
-
Navbar.defaultProps = defaultProps$
|
|
8130
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8175
8131
|
Navbar.displayName = 'Navbar';
|
|
8176
8132
|
Navbar.Brand = NavbarBrand;
|
|
8177
8133
|
Navbar.Toggle = NavbarToggle;
|
|
8178
8134
|
Navbar.Collapse = NavbarCollapse;
|
|
8179
8135
|
Navbar.Text = NavbarText;
|
|
8180
8136
|
|
|
8181
|
-
var propTypes$
|
|
8137
|
+
var propTypes$9 = {
|
|
8182
8138
|
/**
|
|
8183
8139
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8184
8140
|
* @type {string|number}
|
|
@@ -8226,29 +8182,29 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8226
8182
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8227
8183
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8228
8184
|
|
|
8229
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8185
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8230
8186
|
ref: ref
|
|
8231
8187
|
}, props, {
|
|
8232
8188
|
as: NavItem
|
|
8233
|
-
}), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8189
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8234
8190
|
id: id,
|
|
8235
8191
|
eventKey: null,
|
|
8236
8192
|
active: active,
|
|
8237
8193
|
disabled: disabled,
|
|
8238
8194
|
childBsPrefix: bsPrefix,
|
|
8239
8195
|
as: NavLink
|
|
8240
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8196
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8241
8197
|
role: menuRole,
|
|
8242
8198
|
renderOnMount: renderMenuOnMount,
|
|
8243
8199
|
rootCloseEvent: rootCloseEvent
|
|
8244
8200
|
}, children));
|
|
8245
8201
|
});
|
|
8246
8202
|
NavDropdown.displayName = 'NavDropdown';
|
|
8247
|
-
NavDropdown.propTypes = propTypes$
|
|
8248
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8249
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8250
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8251
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8203
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8204
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8205
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8206
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8207
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8252
8208
|
|
|
8253
8209
|
/**
|
|
8254
8210
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8489,7 +8445,7 @@ Overlay.propTypes = {
|
|
|
8489
8445
|
onExited: PropTypes.func
|
|
8490
8446
|
};
|
|
8491
8447
|
|
|
8492
|
-
/*#__PURE__*/
|
|
8448
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8493
8449
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8494
8450
|
|
|
8495
8451
|
function RefHolder() {
|
|
@@ -8503,9 +8459,9 @@ Overlay.propTypes = {
|
|
|
8503
8459
|
};
|
|
8504
8460
|
|
|
8505
8461
|
return RefHolder;
|
|
8506
|
-
}
|
|
8462
|
+
}(React.Component);
|
|
8507
8463
|
|
|
8508
|
-
var defaultProps$
|
|
8464
|
+
var defaultProps$w = {
|
|
8509
8465
|
active: false,
|
|
8510
8466
|
disabled: false,
|
|
8511
8467
|
activeLabel: '(current)'
|
|
@@ -8534,7 +8490,7 @@ var PageItem = React.forwardRef(function (_ref, ref) {
|
|
|
8534
8490
|
className: "sr-only"
|
|
8535
8491
|
}, activeLabel)));
|
|
8536
8492
|
});
|
|
8537
|
-
PageItem.defaultProps = defaultProps$
|
|
8493
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8538
8494
|
PageItem.displayName = 'PageItem';
|
|
8539
8495
|
|
|
8540
8496
|
function createButton(name, defaultValue, label) {
|
|
@@ -8624,7 +8580,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8624
8580
|
}), children);
|
|
8625
8581
|
});
|
|
8626
8582
|
|
|
8627
|
-
var defaultProps$
|
|
8583
|
+
var defaultProps$x = {
|
|
8628
8584
|
placement: 'right'
|
|
8629
8585
|
};
|
|
8630
8586
|
var Popover = React.forwardRef(function (_ref, ref) {
|
|
@@ -8634,10 +8590,10 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8634
8590
|
style = _ref.style,
|
|
8635
8591
|
children = _ref.children,
|
|
8636
8592
|
content = _ref.content,
|
|
8637
|
-
arrowProps = _ref.arrowProps
|
|
8638
|
-
_ref.popper
|
|
8639
|
-
_ref.show
|
|
8640
|
-
|
|
8593
|
+
arrowProps = _ref.arrowProps,
|
|
8594
|
+
_ = _ref.popper,
|
|
8595
|
+
_1 = _ref.show,
|
|
8596
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8641
8597
|
|
|
8642
8598
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8643
8599
|
|
|
@@ -8654,13 +8610,13 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8654
8610
|
className: "arrow"
|
|
8655
8611
|
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8656
8612
|
});
|
|
8657
|
-
Popover.defaultProps = defaultProps$
|
|
8613
|
+
Popover.defaultProps = defaultProps$x;
|
|
8658
8614
|
Popover.Title = PopoverTitle;
|
|
8659
8615
|
Popover.Content = PopoverContent;
|
|
8660
8616
|
|
|
8661
8617
|
var ROUND_PRECISION = 1000;
|
|
8662
8618
|
|
|
8663
|
-
var defaultProps$
|
|
8619
|
+
var defaultProps$y = {
|
|
8664
8620
|
min: 0,
|
|
8665
8621
|
max: 100,
|
|
8666
8622
|
animated: false,
|
|
@@ -8750,9 +8706,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8750
8706
|
}, ref));
|
|
8751
8707
|
});
|
|
8752
8708
|
ProgressBar.displayName = 'ProgressBar';
|
|
8753
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8709
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8754
8710
|
|
|
8755
|
-
var defaultProps$
|
|
8711
|
+
var defaultProps$z = {
|
|
8756
8712
|
aspectRatio: '1by1'
|
|
8757
8713
|
};
|
|
8758
8714
|
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
@@ -8772,10 +8728,10 @@ var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
|
8772
8728
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8773
8729
|
}));
|
|
8774
8730
|
});
|
|
8775
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8731
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8776
8732
|
|
|
8777
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8778
|
-
var defaultProps$
|
|
8733
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8734
|
+
var defaultProps$A = {
|
|
8779
8735
|
noGutters: false
|
|
8780
8736
|
};
|
|
8781
8737
|
var Row = React.forwardRef(function (_ref, ref) {
|
|
@@ -8789,7 +8745,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8789
8745
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8790
8746
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8791
8747
|
var classes = [];
|
|
8792
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8748
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8793
8749
|
var propValue = props[brkPoint];
|
|
8794
8750
|
delete props[brkPoint];
|
|
8795
8751
|
var cols;
|
|
@@ -8810,7 +8766,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8810
8766
|
}));
|
|
8811
8767
|
});
|
|
8812
8768
|
Row.displayName = 'Row';
|
|
8813
|
-
Row.defaultProps = defaultProps$
|
|
8769
|
+
Row.defaultProps = defaultProps$A;
|
|
8814
8770
|
|
|
8815
8771
|
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8816
8772
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8833,7 +8789,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8833
8789
|
});
|
|
8834
8790
|
Spinner.displayName = 'Spinner';
|
|
8835
8791
|
|
|
8836
|
-
var propTypes = {
|
|
8792
|
+
var propTypes$a = {
|
|
8837
8793
|
/**
|
|
8838
8794
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8839
8795
|
* @type {string|number}
|
|
@@ -8895,7 +8851,7 @@ var propTypes = {
|
|
|
8895
8851
|
/** @ignore */
|
|
8896
8852
|
size: PropTypes.string
|
|
8897
8853
|
};
|
|
8898
|
-
var defaultProps$
|
|
8854
|
+
var defaultProps$B = {
|
|
8899
8855
|
toggleLabel: 'Toggle dropdown',
|
|
8900
8856
|
type: 'button'
|
|
8901
8857
|
};
|
|
@@ -8917,7 +8873,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8917
8873
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8918
8874
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8919
8875
|
|
|
8920
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8876
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8921
8877
|
ref: ref
|
|
8922
8878
|
}, props, {
|
|
8923
8879
|
as: ButtonGroup
|
|
@@ -8930,7 +8886,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8930
8886
|
target: target,
|
|
8931
8887
|
onClick: onClick,
|
|
8932
8888
|
type: type
|
|
8933
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8889
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8934
8890
|
split: true,
|
|
8935
8891
|
id: id ? id.toString() : undefined,
|
|
8936
8892
|
size: size,
|
|
@@ -8939,15 +8895,15 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8939
8895
|
childBsPrefix: bsPrefix
|
|
8940
8896
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8941
8897
|
className: "sr-only"
|
|
8942
|
-
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8898
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8943
8899
|
align: menuAlign,
|
|
8944
8900
|
role: menuRole,
|
|
8945
8901
|
renderOnMount: renderMenuOnMount,
|
|
8946
8902
|
rootCloseEvent: rootCloseEvent
|
|
8947
8903
|
}, children));
|
|
8948
8904
|
});
|
|
8949
|
-
SplitButton.propTypes = propTypes;
|
|
8950
|
-
SplitButton.defaultProps = defaultProps$
|
|
8905
|
+
SplitButton.propTypes = propTypes$a;
|
|
8906
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
8951
8907
|
SplitButton.displayName = 'SplitButton';
|
|
8952
8908
|
|
|
8953
8909
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9041,9 +8997,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9041
8997
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9042
8998
|
Transition = _useTabContext.transition,
|
|
9043
8999
|
_useTabContext$as = _useTabContext.as,
|
|
9044
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9045
|
-
_useTabContext.eventKey
|
|
9046
|
-
|
|
9000
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9001
|
+
_ = _useTabContext.eventKey,
|
|
9002
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9047
9003
|
|
|
9048
9004
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9049
9005
|
if (!active && !Transition && unmountOnExit) return null;
|
|
@@ -9097,7 +9053,7 @@ Tab.Container = TabContainer;
|
|
|
9097
9053
|
Tab.Content = TabContent;
|
|
9098
9054
|
Tab.Pane = TabPane;
|
|
9099
9055
|
|
|
9100
|
-
React.forwardRef(function (_ref, ref) {
|
|
9056
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9101
9057
|
var bsPrefix = _ref.bsPrefix,
|
|
9102
9058
|
className = _ref.className,
|
|
9103
9059
|
striped = _ref.striped,
|
|
@@ -9136,7 +9092,7 @@ var ToastContext = React.createContext({
|
|
|
9136
9092
|
onClose: function onClose() {}
|
|
9137
9093
|
});
|
|
9138
9094
|
|
|
9139
|
-
var defaultProps$
|
|
9095
|
+
var defaultProps$C = {
|
|
9140
9096
|
closeLabel: 'Close',
|
|
9141
9097
|
closeButton: true
|
|
9142
9098
|
};
|
|
@@ -9167,7 +9123,7 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9167
9123
|
}));
|
|
9168
9124
|
});
|
|
9169
9125
|
ToastHeader.displayName = 'ToastHeader';
|
|
9170
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9126
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9171
9127
|
|
|
9172
9128
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9173
9129
|
|
|
@@ -9234,7 +9190,7 @@ Object.assign(Toast, {
|
|
|
9234
9190
|
Header: ToastHeader
|
|
9235
9191
|
});
|
|
9236
9192
|
|
|
9237
|
-
var noop = function noop() {
|
|
9193
|
+
var noop$5 = function noop() {
|
|
9238
9194
|
return undefined;
|
|
9239
9195
|
};
|
|
9240
9196
|
|
|
@@ -9276,12 +9232,12 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9276
9232
|
disabled: !!disabled,
|
|
9277
9233
|
onFocus: handleFocus,
|
|
9278
9234
|
onBlur: handleBlur,
|
|
9279
|
-
onChange: onChange || noop
|
|
9235
|
+
onChange: onChange || noop$5
|
|
9280
9236
|
}), children);
|
|
9281
9237
|
});
|
|
9282
9238
|
ToggleButton.displayName = 'ToggleButton';
|
|
9283
9239
|
|
|
9284
|
-
var defaultProps$
|
|
9240
|
+
var defaultProps$D = {
|
|
9285
9241
|
type: 'radio',
|
|
9286
9242
|
vertical: false
|
|
9287
9243
|
};
|
|
@@ -9344,10 +9300,10 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9344
9300
|
});
|
|
9345
9301
|
}));
|
|
9346
9302
|
});
|
|
9347
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9303
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9348
9304
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9349
9305
|
|
|
9350
|
-
var defaultProps = {
|
|
9306
|
+
var defaultProps$E = {
|
|
9351
9307
|
placement: 'right'
|
|
9352
9308
|
};
|
|
9353
9309
|
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
@@ -9356,10 +9312,10 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9356
9312
|
className = _ref.className,
|
|
9357
9313
|
style = _ref.style,
|
|
9358
9314
|
children = _ref.children,
|
|
9359
|
-
arrowProps = _ref.arrowProps
|
|
9360
|
-
_ref.popper
|
|
9361
|
-
_ref.show
|
|
9362
|
-
|
|
9315
|
+
arrowProps = _ref.arrowProps,
|
|
9316
|
+
_ = _ref.popper,
|
|
9317
|
+
_2 = _ref.show,
|
|
9318
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9363
9319
|
|
|
9364
9320
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9365
9321
|
|
|
@@ -9378,10 +9334,10 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9378
9334
|
className: bsPrefix + "-inner"
|
|
9379
9335
|
}, children));
|
|
9380
9336
|
});
|
|
9381
|
-
Tooltip.defaultProps = defaultProps;
|
|
9337
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9382
9338
|
Tooltip.displayName = 'Tooltip';
|
|
9383
9339
|
|
|
9384
|
-
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";
|
|
9340
|
+
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";
|
|
9385
9341
|
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" };
|
|
9386
9342
|
styleInject(css);
|
|
9387
9343
|
|
|
@@ -9468,11 +9424,11 @@ var Filter = function Filter(_ref) {
|
|
|
9468
9424
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9469
9425
|
grandChildData = _useState6[0],
|
|
9470
9426
|
setGrandChildData = _useState6[1];
|
|
9471
|
-
/*
|
|
9472
|
-
{parent: showAll,
|
|
9473
|
-
chidlren: show selected from parent,
|
|
9474
|
-
grandchildren: show selected from children
|
|
9475
|
-
}
|
|
9427
|
+
/*
|
|
9428
|
+
{parent: showAll,
|
|
9429
|
+
chidlren: show selected from parent,
|
|
9430
|
+
grandchildren: show selected from children
|
|
9431
|
+
}
|
|
9476
9432
|
*/
|
|
9477
9433
|
|
|
9478
9434
|
|
|
@@ -9543,7 +9499,7 @@ var Filter = function Filter(_ref) {
|
|
|
9543
9499
|
DropdownButton,
|
|
9544
9500
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9545
9501
|
React.createElement(
|
|
9546
|
-
Dropdown.Item,
|
|
9502
|
+
Dropdown$1.Item,
|
|
9547
9503
|
{ onSelect: function onSelect() {
|
|
9548
9504
|
return handleFilterSelect({}, 'parent');
|
|
9549
9505
|
} },
|
|
@@ -9552,7 +9508,7 @@ var Filter = function Filter(_ref) {
|
|
|
9552
9508
|
parentData.data.map(function (docGroup) {
|
|
9553
9509
|
if (!docGroup._id) return null;
|
|
9554
9510
|
return React.createElement(
|
|
9555
|
-
Dropdown.Item,
|
|
9511
|
+
Dropdown$1.Item,
|
|
9556
9512
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9557
9513
|
return handleFilterSelect(docGroup, 'parent');
|
|
9558
9514
|
} },
|
|
@@ -9564,7 +9520,7 @@ var Filter = function Filter(_ref) {
|
|
|
9564
9520
|
DropdownButton,
|
|
9565
9521
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9566
9522
|
React.createElement(
|
|
9567
|
-
Dropdown.Item,
|
|
9523
|
+
Dropdown$1.Item,
|
|
9568
9524
|
{ onSelect: function onSelect() {
|
|
9569
9525
|
return handleFilterSelect({}, 'child');
|
|
9570
9526
|
} },
|
|
@@ -9573,7 +9529,7 @@ var Filter = function Filter(_ref) {
|
|
|
9573
9529
|
childData.data.map(function (docGroup) {
|
|
9574
9530
|
if (!docGroup._id) return null;
|
|
9575
9531
|
return React.createElement(
|
|
9576
|
-
Dropdown.Item,
|
|
9532
|
+
Dropdown$1.Item,
|
|
9577
9533
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9578
9534
|
return handleFilterSelect(docGroup, 'child');
|
|
9579
9535
|
} },
|
|
@@ -9585,7 +9541,7 @@ var Filter = function Filter(_ref) {
|
|
|
9585
9541
|
DropdownButton,
|
|
9586
9542
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9587
9543
|
React.createElement(
|
|
9588
|
-
Dropdown.Item,
|
|
9544
|
+
Dropdown$1.Item,
|
|
9589
9545
|
{ onSelect: function onSelect() {
|
|
9590
9546
|
return handleFilterSelect({}, 'grandchild');
|
|
9591
9547
|
} },
|
|
@@ -9594,7 +9550,7 @@ var Filter = function Filter(_ref) {
|
|
|
9594
9550
|
grandChildData.data.map(function (docGroup) {
|
|
9595
9551
|
if (!docGroup._id) return null;
|
|
9596
9552
|
return React.createElement(
|
|
9597
|
-
Dropdown.Item,
|
|
9553
|
+
Dropdown$1.Item,
|
|
9598
9554
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9599
9555
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9600
9556
|
} },
|
|
@@ -9752,12 +9708,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9752
9708
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9753
9709
|
var _ref4;
|
|
9754
9710
|
|
|
9755
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9711
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9756
9712
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9757
9713
|
while (1) {
|
|
9758
9714
|
switch (_context2.prev = _context2.next) {
|
|
9759
9715
|
case 0:
|
|
9760
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9716
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9761
9717
|
identifier = pathname.replace('/', '');
|
|
9762
9718
|
itemsPerPage = 10;
|
|
9763
9719
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|