@mjhls/mjh-framework 1.0.837-formassembly-segment-v1 → 1.0.837
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-0158bee3.js → ADInfeed-8b336c67.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 +20 -20
- package/dist/cjs/{ADlgInfeed-3583144f.js → ADlgInfeed-aedd5e18.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 +508 -500
- 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 +484 -348
- package/dist/cjs/AuthWrapper.js +201 -240
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.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-391fd124.js → Dfp-93399f8c.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 +509 -465
- 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-0d3bf265.js → SeriesSlider-cbab9f0f.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +17 -17
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-ecb4f972.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 +91 -92
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +26 -26
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +135 -71
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-15ad167c.js → getTargeting-be6168ad.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-f5eddbab.js → index-0a582ba9.js} +166 -166
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-6367b7bf.js → index-f86bb269.js} +35 -35
- package/dist/cjs/{index-2cf30c83.js → index-fc2f1ca2.js} +4 -4
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/index.js +137 -137
- package/dist/cjs/{inherits-0c7830c5.js → inherits-c2065b95.js} +19 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/{main-7b5e57b0.js → main-025fdc78.js} +234 -159
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-9d7f610f.js → typeof-88a668c5.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.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-427022e9.js → ADInfeed-28b1e946.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 +20 -20
- package/dist/esm/{ADlgInfeed-28d3f944.js → ADlgInfeed-0b474b02.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 +507 -499
- 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 +484 -348
- package/dist/esm/AuthWrapper.js +201 -240
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-5ae7409f.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-52cf21c5.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-2f9796e1.js → Dfp-43f121ff.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 +509 -465
- 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-7d89f4d9.js → SeriesSlider-5c62a578.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-cd38ae60.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 +90 -91
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +26 -26
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-68291ce9.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-f7fb1e25.js → index-2446af28.js} +4 -4
- package/dist/esm/{index-6c12bdd5.js → index-35bdcc81.js} +6 -6
- package/dist/esm/{index-fed909cb.js → index-66ffc224.js} +163 -163
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-c00b0bbb.js → index-79cfd25c.js} +35 -35
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-8016b507.js} +1 -1
- package/dist/esm/index.js +118 -118
- package/dist/esm/{inherits-75d45541.js → inherits-a41fe93f.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/{main-747e7d25.js → main-b5c5aac1.js} +228 -153
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-91f9716f.js} +16 -16
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-af9c50d8.js → typeof-a286cf0c.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +110 -110
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/stringify-4330ccdc.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-b43c695a.js} +1 -1
|
@@ -1,70 +1,70 @@
|
|
|
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';
|
|
1
10
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import '
|
|
3
|
-
import './
|
|
11
|
+
import Link from 'next/link';
|
|
12
|
+
import MasterDeck from './MasterDeck.js';
|
|
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-66ffc224.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';
|
|
4
23
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './_object-pie-
|
|
9
|
-
import
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
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';
|
|
24
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
25
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
26
|
+
import './_is-array-3e99e06e.js';
|
|
27
|
+
import './_object-pie-133f504a.js';
|
|
28
|
+
import './toConsumableArray-6d9a4616.js';
|
|
29
|
+
import './inherits-a41fe93f.js';
|
|
30
|
+
import './_object-sap-f353c2a9.js';
|
|
31
|
+
import './index-2446af28.js';
|
|
17
32
|
import './events-6c3a7a63.js';
|
|
18
|
-
import './index-f7fb1e25.js';
|
|
19
|
-
import PropTypes from 'prop-types';
|
|
20
33
|
import 'react-bootstrap/Container';
|
|
21
34
|
import 'react-bootstrap/Row';
|
|
22
35
|
import 'react-bootstrap/Col';
|
|
23
36
|
import 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-b6f49411.js';
|
|
25
37
|
import 'next/router';
|
|
26
|
-
import './
|
|
27
|
-
import './debounce-
|
|
28
|
-
import './
|
|
38
|
+
import './lodash-f97fd99a.js';
|
|
39
|
+
import './debounce-533d9748.js';
|
|
40
|
+
import './isSymbol-a7e9aafe.js';
|
|
41
|
+
import './toNumber-5aeba6e7.js';
|
|
29
42
|
import './index.es-c6222053.js';
|
|
30
|
-
import ReactDOM from 'react-dom';
|
|
31
43
|
import './visibility-sensor-f40c2564.js';
|
|
32
|
-
import './index-
|
|
33
|
-
import
|
|
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';
|
|
40
|
-
import './Segment.js';
|
|
41
|
-
import './Beam.js';
|
|
44
|
+
import './index-0dbff1d1.js';
|
|
45
|
+
import './ADlgInfeed-0b474b02.js';
|
|
42
46
|
import './AdSlot.js';
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import '
|
|
47
|
-
import
|
|
47
|
+
import './Beam.js';
|
|
48
|
+
import './stringify-59c8f690.js';
|
|
49
|
+
import './Segment.js';
|
|
50
|
+
import './main-b5c5aac1.js';
|
|
51
|
+
import './ADInfeed-28b1e946.js';
|
|
52
|
+
import 'react-bootstrap';
|
|
48
53
|
import './index-c7e2ac95.js';
|
|
49
|
-
import './
|
|
54
|
+
import './util-3ab476bf.js';
|
|
55
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
50
56
|
import './GroupDeck.js';
|
|
51
|
-
import '
|
|
52
|
-
import './
|
|
53
|
-
import './index.esm-3fdda599.js';
|
|
54
|
-
import { g as getSerializers } from './index-fed909cb.js';
|
|
55
|
-
import './util-7700fc59.js';
|
|
56
|
-
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
57
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
58
|
+
import './SocialShare.js';
|
|
57
59
|
import 'next/head';
|
|
58
60
|
import 'react-share';
|
|
59
|
-
import './
|
|
60
|
-
import './_object-to-array-7e804fce.js';
|
|
61
|
+
import './_object-to-array-0f197f89.js';
|
|
61
62
|
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';
|
|
62
67
|
import 'react-bootstrap/Figure';
|
|
63
|
-
import MasterDeck from './MasterDeck.js';
|
|
64
|
-
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
65
|
-
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
66
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
67
|
-
import Link from 'next/link';
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -174,12 +174,12 @@ function useUncontrolled(props, config) {
|
|
|
174
174
|
function _inheritsLoose(subClass, superClass) {
|
|
175
175
|
subClass.prototype = Object.create(superClass.prototype);
|
|
176
176
|
subClass.prototype.constructor = subClass;
|
|
177
|
-
subClass
|
|
177
|
+
_setPrototypeOf(subClass, superClass);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
var ThemeContext = React.createContext({});
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
ThemeContext.Consumer;
|
|
182
|
+
ThemeContext.Provider;
|
|
183
183
|
|
|
184
184
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
185
185
|
var prefixes = useContext(ThemeContext);
|
|
@@ -196,11 +196,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
196
196
|
return href || null;
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
var context = React.createContext(null);
|
|
200
|
-
context.displayName = 'AccordionContext';
|
|
199
|
+
var context$2 = React.createContext(null);
|
|
200
|
+
context$2.displayName = 'AccordionContext';
|
|
201
201
|
|
|
202
202
|
function useAccordionToggle(eventKey, onClick) {
|
|
203
|
-
var contextEventKey = useContext(context);
|
|
203
|
+
var contextEventKey = useContext(context$2);
|
|
204
204
|
var onSelect = useContext(SelectableContext);
|
|
205
205
|
return function (e) {
|
|
206
206
|
/*
|
|
@@ -232,16 +232,16 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
232
232
|
}, props), children);
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
function ownerDocument(node) {
|
|
235
|
+
function ownerDocument$1(node) {
|
|
236
236
|
return node && node.ownerDocument || document;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
function ownerWindow(node) {
|
|
240
|
-
var doc = ownerDocument(node);
|
|
240
|
+
var doc = ownerDocument$1(node);
|
|
241
241
|
return doc && doc.defaultView || window;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
function getComputedStyle$
|
|
244
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
245
245
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -270,7 +270,7 @@ function style(node, property) {
|
|
|
270
270
|
var transforms = '';
|
|
271
271
|
|
|
272
272
|
if (typeof property === 'string') {
|
|
273
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
273
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
Object.keys(property).forEach(function (key) {
|
|
@@ -410,7 +410,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
410
410
|
exit: PropTypes.number,
|
|
411
411
|
appear: PropTypes.number
|
|
412
412
|
}).isRequired]) : null;
|
|
413
|
-
|
|
413
|
+
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
414
414
|
enter: PropTypes.string,
|
|
415
415
|
exit: PropTypes.string,
|
|
416
416
|
active: PropTypes.string
|
|
@@ -792,23 +792,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
792
792
|
}
|
|
793
793
|
|
|
794
794
|
var _this$props = this.props,
|
|
795
|
-
children = _this$props.children
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
795
|
+
children = _this$props.children;
|
|
796
|
+
_this$props.in;
|
|
797
|
+
_this$props.mountOnEnter;
|
|
798
|
+
_this$props.unmountOnExit;
|
|
799
|
+
_this$props.appear;
|
|
800
|
+
_this$props.enter;
|
|
801
|
+
_this$props.exit;
|
|
802
|
+
_this$props.timeout;
|
|
803
|
+
_this$props.addEndListener;
|
|
804
|
+
_this$props.onEnter;
|
|
805
|
+
_this$props.onEntering;
|
|
806
|
+
_this$props.onEntered;
|
|
807
|
+
_this$props.onExit;
|
|
808
|
+
_this$props.onExiting;
|
|
809
|
+
_this$props.onExited;
|
|
810
|
+
_this$props.nodeRef;
|
|
811
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
812
812
|
|
|
813
813
|
return (
|
|
814
814
|
/*#__PURE__*/
|
|
@@ -1008,7 +1008,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1008
1008
|
onExited: PropTypes.func
|
|
1009
1009
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1010
1010
|
|
|
1011
|
-
function noop() {}
|
|
1011
|
+
function noop$5() {}
|
|
1012
1012
|
|
|
1013
1013
|
Transition.defaultProps = {
|
|
1014
1014
|
in: false,
|
|
@@ -1017,12 +1017,12 @@ Transition.defaultProps = {
|
|
|
1017
1017
|
appear: false,
|
|
1018
1018
|
enter: true,
|
|
1019
1019
|
exit: true,
|
|
1020
|
-
onEnter: noop,
|
|
1021
|
-
onEntering: noop,
|
|
1022
|
-
onEntered: noop,
|
|
1023
|
-
onExit: noop,
|
|
1024
|
-
onExiting: noop,
|
|
1025
|
-
onExited: noop
|
|
1020
|
+
onEnter: noop$5,
|
|
1021
|
+
onEntering: noop$5,
|
|
1022
|
+
onEntered: noop$5,
|
|
1023
|
+
onExit: noop$5,
|
|
1024
|
+
onExiting: noop$5,
|
|
1025
|
+
onExited: noop$5
|
|
1026
1026
|
};
|
|
1027
1027
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1028
1028
|
Transition.EXITED = EXITED;
|
|
@@ -1088,7 +1088,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
1090
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1091
|
-
var defaultProps = {
|
|
1091
|
+
var defaultProps$E = {
|
|
1092
1092
|
in: false,
|
|
1093
1093
|
timeout: 300,
|
|
1094
1094
|
mountOnEnter: false,
|
|
@@ -1162,14 +1162,14 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1162
1162
|
}); // @ts-ignore
|
|
1163
1163
|
|
|
1164
1164
|
// @ts-ignore
|
|
1165
|
-
Collapse.defaultProps = defaultProps;
|
|
1165
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1166
1166
|
|
|
1167
1167
|
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1168
1168
|
var children = _ref.children,
|
|
1169
1169
|
eventKey = _ref.eventKey,
|
|
1170
1170
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1171
1171
|
|
|
1172
|
-
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1172
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1173
1173
|
// from collapsing the accordion when clicked.
|
|
1174
1174
|
|
|
1175
1175
|
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
@@ -1195,7 +1195,7 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1195
1195
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1196
1196
|
|
|
1197
1197
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1198
|
-
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1198
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
1199
1199
|
value: activeKey || null
|
|
1200
1200
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1201
1201
|
value: onSelect || null
|
|
@@ -1235,7 +1235,7 @@ function useEventCallback(fn) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
1237
|
var _fadeStyles;
|
|
1238
|
-
var defaultProps$
|
|
1238
|
+
var defaultProps$D = {
|
|
1239
1239
|
in: false,
|
|
1240
1240
|
timeout: 300,
|
|
1241
1241
|
mountOnEnter: false,
|
|
@@ -1263,14 +1263,14 @@ var Fade = React.forwardRef(function (_ref, ref) {
|
|
|
1263
1263
|
}));
|
|
1264
1264
|
});
|
|
1265
1265
|
});
|
|
1266
|
-
Fade.defaultProps = defaultProps$
|
|
1266
|
+
Fade.defaultProps = defaultProps$D;
|
|
1267
1267
|
Fade.displayName = 'Fade';
|
|
1268
1268
|
|
|
1269
|
-
var propTypes = {
|
|
1269
|
+
var propTypes$a = {
|
|
1270
1270
|
label: PropTypes.string.isRequired,
|
|
1271
1271
|
onClick: PropTypes.func
|
|
1272
1272
|
};
|
|
1273
|
-
var defaultProps$
|
|
1273
|
+
var defaultProps$C = {
|
|
1274
1274
|
label: 'Close'
|
|
1275
1275
|
};
|
|
1276
1276
|
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
@@ -1291,8 +1291,8 @@ var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
|
1291
1291
|
}, label));
|
|
1292
1292
|
});
|
|
1293
1293
|
CloseButton.displayName = 'CloseButton';
|
|
1294
|
-
CloseButton.propTypes = propTypes;
|
|
1295
|
-
CloseButton.defaultProps = defaultProps$
|
|
1294
|
+
CloseButton.propTypes = propTypes$a;
|
|
1295
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1296
1296
|
|
|
1297
1297
|
var divWithClassName = (function (className) {
|
|
1298
1298
|
return React.forwardRef(function (p, ref) {
|
|
@@ -1405,15 +1405,15 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1405
1405
|
});
|
|
1406
1406
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1407
1407
|
|
|
1408
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1409
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1408
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1409
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1410
1410
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1411
|
-
Component: DivStyledAsH4
|
|
1411
|
+
Component: DivStyledAsH4$1
|
|
1412
1412
|
});
|
|
1413
1413
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1414
1414
|
Component: SafeAnchor
|
|
1415
1415
|
});
|
|
1416
|
-
var defaultProps$
|
|
1416
|
+
var defaultProps$B = {
|
|
1417
1417
|
show: true,
|
|
1418
1418
|
transition: Fade,
|
|
1419
1419
|
closeLabel: 'Close alert'
|
|
@@ -1458,11 +1458,11 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1458
1458
|
}), alert);
|
|
1459
1459
|
});
|
|
1460
1460
|
Alert.displayName = 'Alert';
|
|
1461
|
-
Alert.defaultProps = defaultProps$
|
|
1461
|
+
Alert.defaultProps = defaultProps$B;
|
|
1462
1462
|
Alert.Link = AlertLink;
|
|
1463
1463
|
Alert.Heading = AlertHeading;
|
|
1464
1464
|
|
|
1465
|
-
var defaultProps$
|
|
1465
|
+
var defaultProps$A = {
|
|
1466
1466
|
pill: false
|
|
1467
1467
|
};
|
|
1468
1468
|
var Badge = React.forwardRef(function (_ref, ref) {
|
|
@@ -1482,9 +1482,9 @@ var Badge = React.forwardRef(function (_ref, ref) {
|
|
|
1482
1482
|
}));
|
|
1483
1483
|
});
|
|
1484
1484
|
Badge.displayName = 'Badge';
|
|
1485
|
-
Badge.defaultProps = defaultProps$
|
|
1485
|
+
Badge.defaultProps = defaultProps$A;
|
|
1486
1486
|
|
|
1487
|
-
var defaultProps$
|
|
1487
|
+
var defaultProps$z = {
|
|
1488
1488
|
active: false,
|
|
1489
1489
|
linkProps: {}
|
|
1490
1490
|
};
|
|
@@ -1518,9 +1518,9 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1518
1518
|
}), children));
|
|
1519
1519
|
});
|
|
1520
1520
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1521
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1521
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1522
1522
|
|
|
1523
|
-
var defaultProps$
|
|
1523
|
+
var defaultProps$y = {
|
|
1524
1524
|
label: 'breadcrumb',
|
|
1525
1525
|
listProps: {}
|
|
1526
1526
|
};
|
|
@@ -1544,10 +1544,10 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1544
1544
|
}), children));
|
|
1545
1545
|
});
|
|
1546
1546
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1547
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1547
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1548
1548
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1549
1549
|
|
|
1550
|
-
var defaultProps$
|
|
1550
|
+
var defaultProps$x = {
|
|
1551
1551
|
variant: 'primary',
|
|
1552
1552
|
active: false,
|
|
1553
1553
|
disabled: false
|
|
@@ -1590,9 +1590,9 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1590
1590
|
}));
|
|
1591
1591
|
});
|
|
1592
1592
|
Button.displayName = 'Button';
|
|
1593
|
-
Button.defaultProps = defaultProps$
|
|
1593
|
+
Button.defaultProps = defaultProps$x;
|
|
1594
1594
|
|
|
1595
|
-
var defaultProps$
|
|
1595
|
+
var defaultProps$w = {
|
|
1596
1596
|
vertical: false,
|
|
1597
1597
|
toggle: false,
|
|
1598
1598
|
role: 'group'
|
|
@@ -1616,9 +1616,9 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1616
1616
|
}));
|
|
1617
1617
|
});
|
|
1618
1618
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1619
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1619
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1620
1620
|
|
|
1621
|
-
var defaultProps$
|
|
1621
|
+
var defaultProps$v = {
|
|
1622
1622
|
role: 'toolbar'
|
|
1623
1623
|
};
|
|
1624
1624
|
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
@@ -1633,12 +1633,12 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
|
1633
1633
|
}));
|
|
1634
1634
|
});
|
|
1635
1635
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1636
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1636
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1637
1637
|
|
|
1638
1638
|
var context$1 = React.createContext(null);
|
|
1639
1639
|
context$1.displayName = 'CardContext';
|
|
1640
1640
|
|
|
1641
|
-
var defaultProps$
|
|
1641
|
+
var defaultProps$u = {
|
|
1642
1642
|
variant: null
|
|
1643
1643
|
};
|
|
1644
1644
|
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
|
|
@@ -1657,7 +1657,7 @@ function (_ref, ref) {
|
|
|
1657
1657
|
}, props));
|
|
1658
1658
|
});
|
|
1659
1659
|
CardImg.displayName = 'CardImg';
|
|
1660
|
-
CardImg.defaultProps = defaultProps$
|
|
1660
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1661
1661
|
|
|
1662
1662
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1663
1663
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1677,7 +1677,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1677
1677
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1678
1678
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1679
1679
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1680
|
-
var defaultProps$
|
|
1680
|
+
var defaultProps$t = {
|
|
1681
1681
|
body: false
|
|
1682
1682
|
};
|
|
1683
1683
|
var Card = React.forwardRef(function (_ref, ref) {
|
|
@@ -1710,7 +1710,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1710
1710
|
React.createElement(CardBody, null, children) : children));
|
|
1711
1711
|
});
|
|
1712
1712
|
Card.displayName = 'Card';
|
|
1713
|
-
Card.defaultProps = defaultProps$
|
|
1713
|
+
Card.defaultProps = defaultProps$t;
|
|
1714
1714
|
Card.Img = CardImg;
|
|
1715
1715
|
Card.Title = CardTitle;
|
|
1716
1716
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1843,6 +1843,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1843
1843
|
/**
|
|
1844
1844
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1845
1845
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1846
|
+
*
|
|
1847
|
+
*
|
|
1848
|
+
*
|
|
1849
|
+
* ```tsx
|
|
1850
|
+
* const { set, clear } = useTimeout();
|
|
1851
|
+
* const [hello, showHello] = useState(false);
|
|
1852
|
+
* //Display hello after 5 seconds
|
|
1853
|
+
* set(() => showHello(true), 5000);
|
|
1854
|
+
* return (
|
|
1855
|
+
* <div className="App">
|
|
1856
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1857
|
+
* </div>
|
|
1858
|
+
* );
|
|
1859
|
+
* ```
|
|
1846
1860
|
*/
|
|
1847
1861
|
|
|
1848
1862
|
|
|
@@ -1931,7 +1945,7 @@ function forEach(children, func) {
|
|
|
1931
1945
|
}
|
|
1932
1946
|
|
|
1933
1947
|
var SWIPE_THRESHOLD = 40;
|
|
1934
|
-
var propTypes$
|
|
1948
|
+
var propTypes$9 = {
|
|
1935
1949
|
/**
|
|
1936
1950
|
* @default 'carousel'
|
|
1937
1951
|
*/
|
|
@@ -2033,7 +2047,7 @@ var propTypes$1 = {
|
|
|
2033
2047
|
*/
|
|
2034
2048
|
nextLabel: PropTypes.string
|
|
2035
2049
|
};
|
|
2036
|
-
var defaultProps$
|
|
2050
|
+
var defaultProps$s = {
|
|
2037
2051
|
slide: true,
|
|
2038
2052
|
fade: false,
|
|
2039
2053
|
controls: true,
|
|
@@ -2403,12 +2417,12 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2403
2417
|
|
|
2404
2418
|
var Carousel = React.forwardRef(CarouselFunc);
|
|
2405
2419
|
Carousel.displayName = 'Carousel';
|
|
2406
|
-
Carousel.propTypes = propTypes$
|
|
2407
|
-
Carousel.defaultProps = defaultProps$
|
|
2420
|
+
Carousel.propTypes = propTypes$9;
|
|
2421
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2408
2422
|
Carousel.Caption = CarouselCaption;
|
|
2409
2423
|
Carousel.Item = CarouselItem;
|
|
2410
2424
|
|
|
2411
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2425
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2412
2426
|
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
|
|
2413
2427
|
function (_ref, ref) {
|
|
2414
2428
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -2420,7 +2434,7 @@ function (_ref, ref) {
|
|
|
2420
2434
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2421
2435
|
var spans = [];
|
|
2422
2436
|
var classes = [];
|
|
2423
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2437
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2424
2438
|
var propValue = props[brkPoint];
|
|
2425
2439
|
delete props[brkPoint];
|
|
2426
2440
|
var span;
|
|
@@ -2601,21 +2615,50 @@ function getBasePlacement(placement) {
|
|
|
2601
2615
|
return placement.split('-')[0];
|
|
2602
2616
|
}
|
|
2603
2617
|
|
|
2604
|
-
|
|
2618
|
+
function getBoundingClientRect(element) {
|
|
2619
|
+
var rect = element.getBoundingClientRect();
|
|
2620
|
+
return {
|
|
2621
|
+
width: rect.width,
|
|
2622
|
+
height: rect.height,
|
|
2623
|
+
top: rect.top,
|
|
2624
|
+
right: rect.right,
|
|
2625
|
+
bottom: rect.bottom,
|
|
2626
|
+
left: rect.left,
|
|
2627
|
+
x: rect.left,
|
|
2628
|
+
y: rect.top
|
|
2629
|
+
};
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2605
2632
|
// means it doesn't take into account transforms.
|
|
2633
|
+
|
|
2606
2634
|
function getLayoutRect(element) {
|
|
2635
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2636
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2637
|
+
|
|
2638
|
+
var width = element.offsetWidth;
|
|
2639
|
+
var height = element.offsetHeight;
|
|
2640
|
+
|
|
2641
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2642
|
+
width = clientRect.width;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2646
|
+
height = clientRect.height;
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2607
2649
|
return {
|
|
2608
2650
|
x: element.offsetLeft,
|
|
2609
2651
|
y: element.offsetTop,
|
|
2610
|
-
width:
|
|
2611
|
-
height:
|
|
2652
|
+
width: width,
|
|
2653
|
+
height: height
|
|
2612
2654
|
};
|
|
2613
2655
|
}
|
|
2614
2656
|
|
|
2615
|
-
/*:: import type { Window } from '../types'; */
|
|
2616
|
-
|
|
2617
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2618
2657
|
function getWindow(node) {
|
|
2658
|
+
if (node == null) {
|
|
2659
|
+
return window;
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2619
2662
|
if (node.toString() !== '[object Window]') {
|
|
2620
2663
|
var ownerDocument = node.ownerDocument;
|
|
2621
2664
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2624,31 +2667,27 @@ function getWindow(node) {
|
|
|
2624
2667
|
return node;
|
|
2625
2668
|
}
|
|
2626
2669
|
|
|
2627
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2628
|
-
Element); */
|
|
2629
|
-
|
|
2630
2670
|
function isElement(node) {
|
|
2631
2671
|
var OwnElement = getWindow(node).Element;
|
|
2632
2672
|
return node instanceof OwnElement || node instanceof Element;
|
|
2633
2673
|
}
|
|
2634
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2635
|
-
HTMLElement); */
|
|
2636
|
-
|
|
2637
2674
|
|
|
2638
2675
|
function isHTMLElement(node) {
|
|
2639
2676
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2640
2677
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2641
2678
|
}
|
|
2642
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2643
|
-
ShadowRoot); */
|
|
2644
|
-
|
|
2645
2679
|
|
|
2646
2680
|
function isShadowRoot(node) {
|
|
2681
|
+
// IE 11 has no ShadowRoot
|
|
2682
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2683
|
+
return false;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2647
2686
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2648
2687
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2649
2688
|
}
|
|
2650
2689
|
|
|
2651
|
-
function contains(parent, child) {
|
|
2690
|
+
function contains$1(parent, child) {
|
|
2652
2691
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2653
2692
|
|
|
2654
2693
|
if (parent.contains(child)) {
|
|
@@ -2660,7 +2699,7 @@ function contains(parent, child) {
|
|
|
2660
2699
|
do {
|
|
2661
2700
|
if (next && parent.isSameNode(next)) {
|
|
2662
2701
|
return true;
|
|
2663
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2702
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2664
2703
|
|
|
2665
2704
|
|
|
2666
2705
|
next = next.parentNode || next.host;
|
|
@@ -2675,7 +2714,7 @@ function getNodeName(element) {
|
|
|
2675
2714
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2676
2715
|
}
|
|
2677
2716
|
|
|
2678
|
-
function getComputedStyle$
|
|
2717
|
+
function getComputedStyle$1(element) {
|
|
2679
2718
|
return getWindow(element).getComputedStyle(element);
|
|
2680
2719
|
}
|
|
2681
2720
|
|
|
@@ -2684,8 +2723,9 @@ function isTableElement(element) {
|
|
|
2684
2723
|
}
|
|
2685
2724
|
|
|
2686
2725
|
function getDocumentElement(element) {
|
|
2687
|
-
// $FlowFixMe: assume body is always available
|
|
2688
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2726
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2727
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2728
|
+
element.document) || window.document).documentElement;
|
|
2689
2729
|
}
|
|
2690
2730
|
|
|
2691
2731
|
function getParentNode(element) {
|
|
@@ -2693,12 +2733,13 @@ function getParentNode(element) {
|
|
|
2693
2733
|
return element;
|
|
2694
2734
|
}
|
|
2695
2735
|
|
|
2696
|
-
return (//
|
|
2736
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2737
|
+
// $FlowFixMe[incompatible-return]
|
|
2738
|
+
// $FlowFixMe[prop-missing]
|
|
2697
2739
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2698
|
-
element.parentNode || // DOM Element detected
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2740
|
+
element.parentNode || ( // DOM Element detected
|
|
2741
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2742
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2702
2743
|
getDocumentElement(element) // fallback
|
|
2703
2744
|
|
|
2704
2745
|
);
|
|
@@ -2706,33 +2747,25 @@ function getParentNode(element) {
|
|
|
2706
2747
|
|
|
2707
2748
|
function getTrueOffsetParent(element) {
|
|
2708
2749
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2709
|
-
getComputedStyle$
|
|
2750
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2710
2751
|
return null;
|
|
2711
2752
|
}
|
|
2712
2753
|
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
if (offsetParent) {
|
|
2716
|
-
var html = getDocumentElement(offsetParent);
|
|
2717
|
-
|
|
2718
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2719
|
-
return html;
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
return offsetParent;
|
|
2754
|
+
return element.offsetParent;
|
|
2724
2755
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2725
2756
|
// return the containing block
|
|
2726
2757
|
|
|
2727
2758
|
|
|
2728
2759
|
function getContainingBlock(element) {
|
|
2760
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2729
2761
|
var currentNode = getParentNode(element);
|
|
2730
2762
|
|
|
2731
2763
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2732
|
-
var css = getComputedStyle$
|
|
2764
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2733
2765
|
// create a containing block.
|
|
2766
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2734
2767
|
|
|
2735
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2768
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2736
2769
|
return currentNode;
|
|
2737
2770
|
} else {
|
|
2738
2771
|
currentNode = currentNode.parentNode;
|
|
@@ -2748,11 +2781,11 @@ function getOffsetParent(element) {
|
|
|
2748
2781
|
var window = getWindow(element);
|
|
2749
2782
|
var offsetParent = getTrueOffsetParent(element);
|
|
2750
2783
|
|
|
2751
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2784
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2752
2785
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2753
2786
|
}
|
|
2754
2787
|
|
|
2755
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2788
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2756
2789
|
return window;
|
|
2757
2790
|
}
|
|
2758
2791
|
|
|
@@ -2763,8 +2796,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2763
2796
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2764
2797
|
}
|
|
2765
2798
|
|
|
2766
|
-
|
|
2767
|
-
|
|
2799
|
+
var max = Math.max;
|
|
2800
|
+
var min = Math.min;
|
|
2801
|
+
var round = Math.round;
|
|
2802
|
+
|
|
2803
|
+
function within(min$1, value, max$1) {
|
|
2804
|
+
return max(min$1, min(value, max$1));
|
|
2768
2805
|
}
|
|
2769
2806
|
|
|
2770
2807
|
function getFreshSideObject() {
|
|
@@ -2777,7 +2814,7 @@ function getFreshSideObject() {
|
|
|
2777
2814
|
}
|
|
2778
2815
|
|
|
2779
2816
|
function mergePaddingObject(paddingObject) {
|
|
2780
|
-
return Object.assign(
|
|
2817
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2781
2818
|
}
|
|
2782
2819
|
|
|
2783
2820
|
function expandToHashMap(value, keys) {
|
|
@@ -2787,11 +2824,19 @@ function expandToHashMap(value, keys) {
|
|
|
2787
2824
|
}, {});
|
|
2788
2825
|
}
|
|
2789
2826
|
|
|
2827
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2828
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2829
|
+
placement: state.placement
|
|
2830
|
+
})) : padding;
|
|
2831
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2832
|
+
};
|
|
2833
|
+
|
|
2790
2834
|
function arrow(_ref) {
|
|
2791
2835
|
var _state$modifiersData$;
|
|
2792
2836
|
|
|
2793
2837
|
var state = _ref.state,
|
|
2794
|
-
name = _ref.name
|
|
2838
|
+
name = _ref.name,
|
|
2839
|
+
options = _ref.options;
|
|
2795
2840
|
var arrowElement = state.elements.arrow;
|
|
2796
2841
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2797
2842
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2803,7 +2848,7 @@ function arrow(_ref) {
|
|
|
2803
2848
|
return;
|
|
2804
2849
|
}
|
|
2805
2850
|
|
|
2806
|
-
var paddingObject =
|
|
2851
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2807
2852
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2808
2853
|
var minProp = axis === 'y' ? top : left;
|
|
2809
2854
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2823,14 +2868,11 @@ function arrow(_ref) {
|
|
|
2823
2868
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2824
2869
|
}
|
|
2825
2870
|
|
|
2826
|
-
function effect(_ref2) {
|
|
2871
|
+
function effect$1(_ref2) {
|
|
2827
2872
|
var state = _ref2.state,
|
|
2828
|
-
options = _ref2.options
|
|
2829
|
-
name = _ref2.name;
|
|
2873
|
+
options = _ref2.options;
|
|
2830
2874
|
var _options$element = options.element,
|
|
2831
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2832
|
-
_options$padding = options.padding,
|
|
2833
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2875
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2834
2876
|
|
|
2835
2877
|
if (arrowElement == null) {
|
|
2836
2878
|
return;
|
|
@@ -2851,7 +2893,7 @@ function effect(_ref2) {
|
|
|
2851
2893
|
}
|
|
2852
2894
|
}
|
|
2853
2895
|
|
|
2854
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2896
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2855
2897
|
if (process.env.NODE_ENV !== "production") {
|
|
2856
2898
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2857
2899
|
}
|
|
@@ -2860,9 +2902,6 @@ function effect(_ref2) {
|
|
|
2860
2902
|
}
|
|
2861
2903
|
|
|
2862
2904
|
state.elements.arrow = arrowElement;
|
|
2863
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2864
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2865
|
-
};
|
|
2866
2905
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2867
2906
|
|
|
2868
2907
|
|
|
@@ -2871,7 +2910,7 @@ var arrow$1 = {
|
|
|
2871
2910
|
enabled: true,
|
|
2872
2911
|
phase: 'main',
|
|
2873
2912
|
fn: arrow,
|
|
2874
|
-
effect: effect,
|
|
2913
|
+
effect: effect$1,
|
|
2875
2914
|
requires: ['popperOffsets'],
|
|
2876
2915
|
requiresIfExists: ['preventOverflow']
|
|
2877
2916
|
};
|
|
@@ -2885,14 +2924,14 @@ var unsetSides = {
|
|
|
2885
2924
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2886
2925
|
// cleanly divide the values into the appropriate subpixels.
|
|
2887
2926
|
|
|
2888
|
-
function
|
|
2927
|
+
function roundOffsetsByDPR(_ref) {
|
|
2889
2928
|
var x = _ref.x,
|
|
2890
2929
|
y = _ref.y;
|
|
2891
2930
|
var win = window;
|
|
2892
2931
|
var dpr = win.devicePixelRatio || 1;
|
|
2893
2932
|
return {
|
|
2894
|
-
x:
|
|
2895
|
-
y:
|
|
2933
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
2934
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2896
2935
|
};
|
|
2897
2936
|
}
|
|
2898
2937
|
|
|
@@ -2905,11 +2944,14 @@ function mapToStyles(_ref2) {
|
|
|
2905
2944
|
offsets = _ref2.offsets,
|
|
2906
2945
|
position = _ref2.position,
|
|
2907
2946
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2908
|
-
adaptive = _ref2.adaptive
|
|
2947
|
+
adaptive = _ref2.adaptive,
|
|
2948
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2909
2949
|
|
|
2910
|
-
var
|
|
2911
|
-
x =
|
|
2912
|
-
|
|
2950
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2951
|
+
_ref3$x = _ref3.x,
|
|
2952
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2953
|
+
_ref3$y = _ref3.y,
|
|
2954
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2913
2955
|
|
|
2914
2956
|
var hasX = offsets.hasOwnProperty('x');
|
|
2915
2957
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2919,23 +2961,32 @@ function mapToStyles(_ref2) {
|
|
|
2919
2961
|
|
|
2920
2962
|
if (adaptive) {
|
|
2921
2963
|
var offsetParent = getOffsetParent(popper);
|
|
2964
|
+
var heightProp = 'clientHeight';
|
|
2965
|
+
var widthProp = 'clientWidth';
|
|
2922
2966
|
|
|
2923
2967
|
if (offsetParent === getWindow(popper)) {
|
|
2924
2968
|
offsetParent = getDocumentElement(popper);
|
|
2925
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2926
2969
|
|
|
2927
|
-
|
|
2970
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
2971
|
+
heightProp = 'scrollHeight';
|
|
2972
|
+
widthProp = 'scrollWidth';
|
|
2973
|
+
}
|
|
2974
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2975
|
+
|
|
2928
2976
|
|
|
2977
|
+
offsetParent = offsetParent;
|
|
2929
2978
|
|
|
2930
2979
|
if (placement === top) {
|
|
2931
|
-
sideY = bottom;
|
|
2932
|
-
|
|
2980
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
2981
|
+
|
|
2982
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2933
2983
|
y *= gpuAcceleration ? 1 : -1;
|
|
2934
2984
|
}
|
|
2935
2985
|
|
|
2936
2986
|
if (placement === left) {
|
|
2937
|
-
sideX = right;
|
|
2938
|
-
|
|
2987
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
2988
|
+
|
|
2989
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2939
2990
|
x *= gpuAcceleration ? 1 : -1;
|
|
2940
2991
|
}
|
|
2941
2992
|
}
|
|
@@ -2947,22 +2998,24 @@ function mapToStyles(_ref2) {
|
|
|
2947
2998
|
if (gpuAcceleration) {
|
|
2948
2999
|
var _Object$assign;
|
|
2949
3000
|
|
|
2950
|
-
return Object.assign(
|
|
3001
|
+
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));
|
|
2951
3002
|
}
|
|
2952
3003
|
|
|
2953
|
-
return Object.assign(
|
|
3004
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2954
3005
|
}
|
|
2955
3006
|
|
|
2956
|
-
function computeStyles(
|
|
2957
|
-
var state =
|
|
2958
|
-
options =
|
|
3007
|
+
function computeStyles(_ref4) {
|
|
3008
|
+
var state = _ref4.state,
|
|
3009
|
+
options = _ref4.options;
|
|
2959
3010
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2960
3011
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2961
3012
|
_options$adaptive = options.adaptive,
|
|
2962
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3013
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3014
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3015
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2963
3016
|
|
|
2964
3017
|
if (process.env.NODE_ENV !== "production") {
|
|
2965
|
-
var transitionProperty = getComputedStyle$
|
|
3018
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
2966
3019
|
|
|
2967
3020
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
2968
3021
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -2979,22 +3032,24 @@ function computeStyles(_ref3) {
|
|
|
2979
3032
|
};
|
|
2980
3033
|
|
|
2981
3034
|
if (state.modifiersData.popperOffsets != null) {
|
|
2982
|
-
state.styles.popper = Object.assign(
|
|
3035
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2983
3036
|
offsets: state.modifiersData.popperOffsets,
|
|
2984
3037
|
position: state.options.strategy,
|
|
2985
|
-
adaptive: adaptive
|
|
3038
|
+
adaptive: adaptive,
|
|
3039
|
+
roundOffsets: roundOffsets
|
|
2986
3040
|
})));
|
|
2987
3041
|
}
|
|
2988
3042
|
|
|
2989
3043
|
if (state.modifiersData.arrow != null) {
|
|
2990
|
-
state.styles.arrow = Object.assign(
|
|
3044
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2991
3045
|
offsets: state.modifiersData.arrow,
|
|
2992
3046
|
position: 'absolute',
|
|
2993
|
-
adaptive: false
|
|
3047
|
+
adaptive: false,
|
|
3048
|
+
roundOffsets: roundOffsets
|
|
2994
3049
|
})));
|
|
2995
3050
|
}
|
|
2996
3051
|
|
|
2997
|
-
state.attributes.popper = Object.assign(
|
|
3052
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2998
3053
|
'data-popper-placement': state.placement
|
|
2999
3054
|
});
|
|
3000
3055
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3012,7 +3067,7 @@ var passive = {
|
|
|
3012
3067
|
passive: true
|
|
3013
3068
|
};
|
|
3014
3069
|
|
|
3015
|
-
function effect
|
|
3070
|
+
function effect(_ref) {
|
|
3016
3071
|
var state = _ref.state,
|
|
3017
3072
|
instance = _ref.instance,
|
|
3018
3073
|
options = _ref.options;
|
|
@@ -3052,11 +3107,11 @@ var eventListeners = {
|
|
|
3052
3107
|
enabled: true,
|
|
3053
3108
|
phase: 'write',
|
|
3054
3109
|
fn: function fn() {},
|
|
3055
|
-
effect: effect
|
|
3110
|
+
effect: effect,
|
|
3056
3111
|
data: {}
|
|
3057
3112
|
};
|
|
3058
3113
|
|
|
3059
|
-
var hash = {
|
|
3114
|
+
var hash$1 = {
|
|
3060
3115
|
left: 'right',
|
|
3061
3116
|
right: 'left',
|
|
3062
3117
|
bottom: 'top',
|
|
@@ -3064,34 +3119,20 @@ var hash = {
|
|
|
3064
3119
|
};
|
|
3065
3120
|
function getOppositePlacement(placement) {
|
|
3066
3121
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3067
|
-
return hash[matched];
|
|
3122
|
+
return hash$1[matched];
|
|
3068
3123
|
});
|
|
3069
3124
|
}
|
|
3070
3125
|
|
|
3071
|
-
var hash
|
|
3126
|
+
var hash = {
|
|
3072
3127
|
start: 'end',
|
|
3073
3128
|
end: 'start'
|
|
3074
3129
|
};
|
|
3075
3130
|
function getOppositeVariationPlacement(placement) {
|
|
3076
3131
|
return placement.replace(/start|end/g, function (matched) {
|
|
3077
|
-
return hash
|
|
3132
|
+
return hash[matched];
|
|
3078
3133
|
});
|
|
3079
3134
|
}
|
|
3080
3135
|
|
|
3081
|
-
function getBoundingClientRect(element) {
|
|
3082
|
-
var rect = element.getBoundingClientRect();
|
|
3083
|
-
return {
|
|
3084
|
-
width: rect.width,
|
|
3085
|
-
height: rect.height,
|
|
3086
|
-
top: rect.top,
|
|
3087
|
-
right: rect.right,
|
|
3088
|
-
bottom: rect.bottom,
|
|
3089
|
-
left: rect.left,
|
|
3090
|
-
x: rect.left,
|
|
3091
|
-
y: rect.top
|
|
3092
|
-
};
|
|
3093
|
-
}
|
|
3094
|
-
|
|
3095
3136
|
function getWindowScroll(node) {
|
|
3096
3137
|
var win = getWindow(node);
|
|
3097
3138
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3154,16 +3195,18 @@ function getViewportRect(element) {
|
|
|
3154
3195
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3155
3196
|
|
|
3156
3197
|
function getDocumentRect(element) {
|
|
3198
|
+
var _element$ownerDocumen;
|
|
3199
|
+
|
|
3157
3200
|
var html = getDocumentElement(element);
|
|
3158
3201
|
var winScroll = getWindowScroll(element);
|
|
3159
|
-
var body = element.ownerDocument.body;
|
|
3160
|
-
var width =
|
|
3161
|
-
var height =
|
|
3202
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3203
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3204
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3162
3205
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3163
3206
|
var y = -winScroll.scrollTop;
|
|
3164
3207
|
|
|
3165
|
-
if (getComputedStyle$
|
|
3166
|
-
x +=
|
|
3208
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3209
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3167
3210
|
}
|
|
3168
3211
|
|
|
3169
3212
|
return {
|
|
@@ -3176,7 +3219,7 @@ function getDocumentRect(element) {
|
|
|
3176
3219
|
|
|
3177
3220
|
function isScrollParent(element) {
|
|
3178
3221
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3179
|
-
var _getComputedStyle = getComputedStyle$
|
|
3222
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3180
3223
|
overflow = _getComputedStyle.overflow,
|
|
3181
3224
|
overflowX = _getComputedStyle.overflowX,
|
|
3182
3225
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3186,7 +3229,7 @@ function isScrollParent(element) {
|
|
|
3186
3229
|
|
|
3187
3230
|
function getScrollParent(node) {
|
|
3188
3231
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3189
|
-
// $FlowFixMe: assume body is always available
|
|
3232
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3190
3233
|
return node.ownerDocument.body;
|
|
3191
3234
|
}
|
|
3192
3235
|
|
|
@@ -3200,26 +3243,28 @@ function getScrollParent(node) {
|
|
|
3200
3243
|
/*
|
|
3201
3244
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3202
3245
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3203
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3246
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3204
3247
|
reference element's position.
|
|
3205
3248
|
*/
|
|
3206
3249
|
|
|
3207
3250
|
function listScrollParents(element, list) {
|
|
3251
|
+
var _element$ownerDocumen;
|
|
3252
|
+
|
|
3208
3253
|
if (list === void 0) {
|
|
3209
3254
|
list = [];
|
|
3210
3255
|
}
|
|
3211
3256
|
|
|
3212
3257
|
var scrollParent = getScrollParent(element);
|
|
3213
|
-
var isBody =
|
|
3258
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3214
3259
|
var win = getWindow(scrollParent);
|
|
3215
3260
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3216
3261
|
var updatedList = list.concat(target);
|
|
3217
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3262
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3218
3263
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3219
3264
|
}
|
|
3220
3265
|
|
|
3221
3266
|
function rectToClientRect(rect) {
|
|
3222
|
-
return Object.assign(
|
|
3267
|
+
return Object.assign({}, rect, {
|
|
3223
3268
|
left: rect.x,
|
|
3224
3269
|
top: rect.y,
|
|
3225
3270
|
right: rect.x + rect.width,
|
|
@@ -3249,16 +3294,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3249
3294
|
|
|
3250
3295
|
function getClippingParents(element) {
|
|
3251
3296
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3252
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3297
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3253
3298
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3254
3299
|
|
|
3255
3300
|
if (!isElement(clipperElement)) {
|
|
3256
3301
|
return [];
|
|
3257
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3302
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3258
3303
|
|
|
3259
3304
|
|
|
3260
3305
|
return clippingParents.filter(function (clippingParent) {
|
|
3261
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3306
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3262
3307
|
});
|
|
3263
3308
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3264
3309
|
// clipping parents
|
|
@@ -3270,10 +3315,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3270
3315
|
var firstClippingParent = clippingParents[0];
|
|
3271
3316
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3272
3317
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3273
|
-
accRect.top =
|
|
3274
|
-
accRect.right =
|
|
3275
|
-
accRect.bottom =
|
|
3276
|
-
accRect.left =
|
|
3318
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3319
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3320
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3321
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3277
3322
|
return accRect;
|
|
3278
3323
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3279
3324
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3340,11 +3385,11 @@ function computeOffsets(_ref) {
|
|
|
3340
3385
|
|
|
3341
3386
|
switch (variation) {
|
|
3342
3387
|
case start:
|
|
3343
|
-
offsets[mainAxis] =
|
|
3388
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3344
3389
|
break;
|
|
3345
3390
|
|
|
3346
3391
|
case end:
|
|
3347
|
-
offsets[mainAxis] =
|
|
3392
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3348
3393
|
break;
|
|
3349
3394
|
}
|
|
3350
3395
|
}
|
|
@@ -3383,7 +3428,7 @@ function detectOverflow(state, options) {
|
|
|
3383
3428
|
strategy: 'absolute',
|
|
3384
3429
|
placement: placement
|
|
3385
3430
|
});
|
|
3386
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3431
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3387
3432
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3388
3433
|
// 0 or negative = within the clipping rect
|
|
3389
3434
|
|
|
@@ -3407,9 +3452,6 @@ function detectOverflow(state, options) {
|
|
|
3407
3452
|
return overflowOffsets;
|
|
3408
3453
|
}
|
|
3409
3454
|
|
|
3410
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3411
|
-
|
|
3412
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3413
3455
|
function computeAutoPlacement(state, options) {
|
|
3414
3456
|
if (options === void 0) {
|
|
3415
3457
|
options = {};
|
|
@@ -3426,8 +3468,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3426
3468
|
var variation = getVariation(placement);
|
|
3427
3469
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3428
3470
|
return getVariation(placement) === variation;
|
|
3429
|
-
}) : basePlacements;
|
|
3430
|
-
|
|
3471
|
+
}) : basePlacements;
|
|
3431
3472
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3432
3473
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3433
3474
|
});
|
|
@@ -3438,7 +3479,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3438
3479
|
if (process.env.NODE_ENV !== "production") {
|
|
3439
3480
|
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(' '));
|
|
3440
3481
|
}
|
|
3441
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3482
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3442
3483
|
|
|
3443
3484
|
|
|
3444
3485
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3639,7 +3680,7 @@ function hide(_ref) {
|
|
|
3639
3680
|
isReferenceHidden: isReferenceHidden,
|
|
3640
3681
|
hasPopperEscaped: hasPopperEscaped
|
|
3641
3682
|
};
|
|
3642
|
-
state.attributes.popper = Object.assign(
|
|
3683
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3643
3684
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3644
3685
|
'data-popper-escaped': hasPopperEscaped
|
|
3645
3686
|
});
|
|
@@ -3658,7 +3699,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3658
3699
|
var basePlacement = getBasePlacement(placement);
|
|
3659
3700
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3660
3701
|
|
|
3661
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3702
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3662
3703
|
placement: placement
|
|
3663
3704
|
})) : offset,
|
|
3664
3705
|
skidding = _ref[0],
|
|
@@ -3764,7 +3805,7 @@ function preventOverflow(_ref) {
|
|
|
3764
3805
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3765
3806
|
var referenceRect = state.rects.reference;
|
|
3766
3807
|
var popperRect = state.rects.popper;
|
|
3767
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3808
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3768
3809
|
placement: state.placement
|
|
3769
3810
|
})) : tetherOffset;
|
|
3770
3811
|
var data = {
|
|
@@ -3776,13 +3817,13 @@ function preventOverflow(_ref) {
|
|
|
3776
3817
|
return;
|
|
3777
3818
|
}
|
|
3778
3819
|
|
|
3779
|
-
if (checkMainAxis) {
|
|
3820
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3780
3821
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3781
3822
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3782
3823
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3783
3824
|
var offset = popperOffsets[mainAxis];
|
|
3784
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3785
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3825
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3826
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3786
3827
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3787
3828
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3788
3829
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3809,26 +3850,29 @@ function preventOverflow(_ref) {
|
|
|
3809
3850
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3810
3851
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3811
3852
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3812
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3813
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3814
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3815
|
-
}
|
|
3816
3853
|
|
|
3817
|
-
|
|
3818
|
-
|
|
3854
|
+
if (checkMainAxis) {
|
|
3855
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3856
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3857
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
if (checkAltAxis) {
|
|
3861
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3819
3862
|
|
|
3820
|
-
|
|
3863
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3821
3864
|
|
|
3822
|
-
|
|
3865
|
+
var _offset = popperOffsets[altAxis];
|
|
3823
3866
|
|
|
3824
|
-
|
|
3867
|
+
var _min = _offset + overflow[_mainSide];
|
|
3825
3868
|
|
|
3826
|
-
|
|
3869
|
+
var _max = _offset - overflow[_altSide];
|
|
3827
3870
|
|
|
3828
|
-
|
|
3871
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3829
3872
|
|
|
3830
|
-
|
|
3831
|
-
|
|
3873
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3874
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3875
|
+
}
|
|
3832
3876
|
}
|
|
3833
3877
|
|
|
3834
3878
|
state.modifiersData[name] = data;
|
|
@@ -4059,9 +4103,9 @@ function uniqueBy(arr, fn) {
|
|
|
4059
4103
|
function mergeByName(modifiers) {
|
|
4060
4104
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4061
4105
|
var existing = merged[current.name];
|
|
4062
|
-
merged[current.name] = existing ? Object.assign(
|
|
4063
|
-
options: Object.assign(
|
|
4064
|
-
data: Object.assign(
|
|
4106
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4107
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4108
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4065
4109
|
}) : current;
|
|
4066
4110
|
return merged;
|
|
4067
4111
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4107,7 +4151,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4107
4151
|
var state = {
|
|
4108
4152
|
placement: 'bottom',
|
|
4109
4153
|
orderedModifiers: [],
|
|
4110
|
-
options: Object.assign(
|
|
4154
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4111
4155
|
modifiersData: {},
|
|
4112
4156
|
elements: {
|
|
4113
4157
|
reference: reference,
|
|
@@ -4122,7 +4166,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4122
4166
|
state: state,
|
|
4123
4167
|
setOptions: function setOptions(options) {
|
|
4124
4168
|
cleanupModifierEffects();
|
|
4125
|
-
state.options = Object.assign(
|
|
4169
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4126
4170
|
state.scrollParents = {
|
|
4127
4171
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4128
4172
|
popper: listScrollParents(popper)
|
|
@@ -4154,7 +4198,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4154
4198
|
}
|
|
4155
4199
|
}
|
|
4156
4200
|
|
|
4157
|
-
var _getComputedStyle = getComputedStyle$
|
|
4201
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4158
4202
|
marginTop = _getComputedStyle.marginTop,
|
|
4159
4203
|
marginRight = _getComputedStyle.marginRight,
|
|
4160
4204
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4494,7 +4538,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4494
4538
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4495
4539
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4496
4540
|
// so we need to check on context instead of a document root element.
|
|
4497
|
-
function contains
|
|
4541
|
+
function contains(context, node) {
|
|
4498
4542
|
if (context.contains) return context.contains(node);
|
|
4499
4543
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4500
4544
|
}
|
|
@@ -4568,13 +4612,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4568
4612
|
return componentOrElement != null ? componentOrElement : null;
|
|
4569
4613
|
}
|
|
4570
4614
|
|
|
4571
|
-
var ownerDocument
|
|
4572
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4615
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4616
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4573
4617
|
});
|
|
4574
4618
|
|
|
4575
4619
|
var escapeKeyCode = 27;
|
|
4576
4620
|
|
|
4577
|
-
var noop$
|
|
4621
|
+
var noop$4 = function noop() {};
|
|
4578
4622
|
|
|
4579
4623
|
function isLeftClickEvent(event) {
|
|
4580
4624
|
return event.button === 0;
|
|
@@ -4607,11 +4651,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4607
4651
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4608
4652
|
|
|
4609
4653
|
var preventMouseRootCloseRef = useRef(false);
|
|
4610
|
-
var onClose = onRootClose || noop$
|
|
4654
|
+
var onClose = onRootClose || noop$4;
|
|
4611
4655
|
var handleMouseCapture = useCallback(function (e) {
|
|
4612
4656
|
var currentTarget = getRefTarget(ref);
|
|
4613
4657
|
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');
|
|
4614
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4658
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4615
4659
|
}, [ref]);
|
|
4616
4660
|
var handleMouse = useEventCallback(function (e) {
|
|
4617
4661
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4628,7 +4672,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4628
4672
|
// https://github.com/facebook/react/issues/20074
|
|
4629
4673
|
|
|
4630
4674
|
var currentEvent = window.event;
|
|
4631
|
-
var doc = ownerDocument
|
|
4675
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4632
4676
|
// avoid false positives in the contains() check below if the target DOM
|
|
4633
4677
|
// element is removed in the React mouse callback.
|
|
4634
4678
|
|
|
@@ -4655,7 +4699,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4655
4699
|
|
|
4656
4700
|
if ('ontouchstart' in doc.documentElement) {
|
|
4657
4701
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4658
|
-
return listen(el, 'mousemove', noop$
|
|
4702
|
+
return listen(el, 'mousemove', noop$4);
|
|
4659
4703
|
});
|
|
4660
4704
|
}
|
|
4661
4705
|
|
|
@@ -4737,7 +4781,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4737
4781
|
});
|
|
4738
4782
|
}
|
|
4739
4783
|
|
|
4740
|
-
var noop$
|
|
4784
|
+
var noop$3 = function noop() {};
|
|
4741
4785
|
/**
|
|
4742
4786
|
* @memberOf Dropdown
|
|
4743
4787
|
* @param {object} options
|
|
@@ -4805,7 +4849,7 @@ function useDropdownMenu(options) {
|
|
|
4805
4849
|
|
|
4806
4850
|
var menu;
|
|
4807
4851
|
var menuProps = {
|
|
4808
|
-
ref: setMenu || noop$
|
|
4852
|
+
ref: setMenu || noop$3,
|
|
4809
4853
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4810
4854
|
};
|
|
4811
4855
|
var childArgs = {
|
|
@@ -4838,7 +4882,7 @@ function useDropdownMenu(options) {
|
|
|
4838
4882
|
});
|
|
4839
4883
|
return menu;
|
|
4840
4884
|
}
|
|
4841
|
-
var propTypes$
|
|
4885
|
+
var propTypes$8 = {
|
|
4842
4886
|
/**
|
|
4843
4887
|
* A render prop that returns a Menu element. The `props`
|
|
4844
4888
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4895,7 +4939,7 @@ var propTypes$2 = {
|
|
|
4895
4939
|
*/
|
|
4896
4940
|
rootCloseEvent: PropTypes.string
|
|
4897
4941
|
};
|
|
4898
|
-
var defaultProps$
|
|
4942
|
+
var defaultProps$r = {
|
|
4899
4943
|
usePopper: true
|
|
4900
4944
|
};
|
|
4901
4945
|
|
|
@@ -4905,7 +4949,7 @@ var defaultProps$d = {
|
|
|
4905
4949
|
* @displayName DropdownMenu
|
|
4906
4950
|
* @memberOf Dropdown
|
|
4907
4951
|
*/
|
|
4908
|
-
function DropdownMenu(_ref2) {
|
|
4952
|
+
function DropdownMenu$1(_ref2) {
|
|
4909
4953
|
var children = _ref2.children,
|
|
4910
4954
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4911
4955
|
|
|
@@ -4913,11 +4957,11 @@ function DropdownMenu(_ref2) {
|
|
|
4913
4957
|
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4914
4958
|
}
|
|
4915
4959
|
|
|
4916
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4917
|
-
DropdownMenu.propTypes = propTypes$
|
|
4918
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
4960
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
4961
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
4962
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
4919
4963
|
|
|
4920
|
-
var noop$
|
|
4964
|
+
var noop$2 = function noop() {};
|
|
4921
4965
|
/**
|
|
4922
4966
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4923
4967
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4931,11 +4975,11 @@ function useDropdownToggle() {
|
|
|
4931
4975
|
_ref$show = _ref.show,
|
|
4932
4976
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4933
4977
|
_ref$toggle = _ref.toggle,
|
|
4934
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4978
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
4935
4979
|
setToggle = _ref.setToggle;
|
|
4936
4980
|
|
|
4937
4981
|
return [{
|
|
4938
|
-
ref: setToggle || noop$
|
|
4982
|
+
ref: setToggle || noop$2,
|
|
4939
4983
|
'aria-haspopup': true,
|
|
4940
4984
|
'aria-expanded': !!show
|
|
4941
4985
|
}, {
|
|
@@ -4943,7 +4987,7 @@ function useDropdownToggle() {
|
|
|
4943
4987
|
toggle: toggle
|
|
4944
4988
|
}];
|
|
4945
4989
|
}
|
|
4946
|
-
var propTypes$
|
|
4990
|
+
var propTypes$7 = {
|
|
4947
4991
|
/**
|
|
4948
4992
|
* A render prop that returns a Toggle element. The `props`
|
|
4949
4993
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -4968,7 +5012,7 @@ var propTypes$3 = {
|
|
|
4968
5012
|
* @displayName DropdownToggle
|
|
4969
5013
|
* @memberOf Dropdown
|
|
4970
5014
|
*/
|
|
4971
|
-
function DropdownToggle(_ref2) {
|
|
5015
|
+
function DropdownToggle$1(_ref2) {
|
|
4972
5016
|
var children = _ref2.children;
|
|
4973
5017
|
|
|
4974
5018
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -4984,10 +5028,10 @@ function DropdownToggle(_ref2) {
|
|
|
4984
5028
|
}));
|
|
4985
5029
|
}
|
|
4986
5030
|
|
|
4987
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4988
|
-
DropdownToggle.propTypes = propTypes$
|
|
5031
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5032
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
4989
5033
|
|
|
4990
|
-
var propTypes$
|
|
5034
|
+
var propTypes$6 = {
|
|
4991
5035
|
/**
|
|
4992
5036
|
* A render prop that returns the root dropdown element. The `props`
|
|
4993
5037
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5059,7 +5103,7 @@ var propTypes$4 = {
|
|
|
5059
5103
|
/**
|
|
5060
5104
|
* @displayName Dropdown
|
|
5061
5105
|
*/
|
|
5062
|
-
function Dropdown(_ref) {
|
|
5106
|
+
function Dropdown$1(_ref) {
|
|
5063
5107
|
var drop = _ref.drop,
|
|
5064
5108
|
alignEnd = _ref.alignEnd,
|
|
5065
5109
|
defaultShow = _ref.defaultShow,
|
|
@@ -5201,15 +5245,15 @@ function Dropdown(_ref) {
|
|
|
5201
5245
|
}));
|
|
5202
5246
|
}
|
|
5203
5247
|
|
|
5204
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5205
|
-
Dropdown.propTypes = propTypes$
|
|
5206
|
-
Dropdown.Menu = DropdownMenu;
|
|
5207
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5248
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5249
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5250
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5251
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5208
5252
|
|
|
5209
5253
|
var NavContext = React.createContext(null);
|
|
5210
5254
|
NavContext.displayName = 'NavContext';
|
|
5211
5255
|
|
|
5212
|
-
var defaultProps$
|
|
5256
|
+
var defaultProps$q = {
|
|
5213
5257
|
as: SafeAnchor,
|
|
5214
5258
|
disabled: false
|
|
5215
5259
|
};
|
|
@@ -5258,7 +5302,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5258
5302
|
);
|
|
5259
5303
|
});
|
|
5260
5304
|
DropdownItem.displayName = 'DropdownItem';
|
|
5261
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5305
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5262
5306
|
|
|
5263
5307
|
var toFnRef = function toFnRef(ref) {
|
|
5264
5308
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5297,8 +5341,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5297
5341
|
}, [refA, refB]);
|
|
5298
5342
|
}
|
|
5299
5343
|
|
|
5300
|
-
var context
|
|
5301
|
-
context
|
|
5344
|
+
var context = React.createContext(null);
|
|
5345
|
+
context.displayName = 'NavbarContext';
|
|
5302
5346
|
|
|
5303
5347
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5304
5348
|
// @ts-ignore
|
|
@@ -5419,13 +5463,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5419
5463
|
}), PropTypes.shape({
|
|
5420
5464
|
xl: alignDirection
|
|
5421
5465
|
})]);
|
|
5422
|
-
var defaultProps$
|
|
5466
|
+
var defaultProps$p = {
|
|
5423
5467
|
align: 'left',
|
|
5424
5468
|
alignRight: false,
|
|
5425
5469
|
flip: true
|
|
5426
5470
|
}; // TODO: remove this hack
|
|
5427
5471
|
|
|
5428
|
-
var DropdownMenu
|
|
5472
|
+
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
5429
5473
|
var bsPrefix = _ref.bsPrefix,
|
|
5430
5474
|
className = _ref.className,
|
|
5431
5475
|
align = _ref.align,
|
|
@@ -5439,7 +5483,7 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5439
5483
|
popperConfig = _ref.popperConfig,
|
|
5440
5484
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5441
5485
|
|
|
5442
|
-
var isNavbar = useContext(context
|
|
5486
|
+
var isNavbar = useContext(context);
|
|
5443
5487
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5444
5488
|
|
|
5445
5489
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5504,8 +5548,8 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5504
5548
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5505
5549
|
}));
|
|
5506
5550
|
});
|
|
5507
|
-
DropdownMenu
|
|
5508
|
-
DropdownMenu
|
|
5551
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5552
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5509
5553
|
|
|
5510
5554
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5511
5555
|
|
|
@@ -5534,7 +5578,7 @@ module.exports = exports['default'];
|
|
|
5534
5578
|
|
|
5535
5579
|
unwrapExports(isRequiredForA11y_1);
|
|
5536
5580
|
|
|
5537
|
-
var DropdownToggle
|
|
5581
|
+
var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
5538
5582
|
var bsPrefix = _ref.bsPrefix,
|
|
5539
5583
|
split = _ref.split,
|
|
5540
5584
|
className = _ref.className,
|
|
@@ -5561,7 +5605,7 @@ var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5561
5605
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5562
5606
|
}, toggleProps, props));
|
|
5563
5607
|
});
|
|
5564
|
-
DropdownToggle
|
|
5608
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5565
5609
|
|
|
5566
5610
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5567
5611
|
defaultProps: {
|
|
@@ -5576,10 +5620,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5576
5620
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5577
5621
|
Component: 'span'
|
|
5578
5622
|
});
|
|
5579
|
-
var defaultProps$
|
|
5623
|
+
var defaultProps$o = {
|
|
5580
5624
|
navbar: false
|
|
5581
5625
|
};
|
|
5582
|
-
var Dropdown
|
|
5626
|
+
var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
5583
5627
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5584
5628
|
show: 'onToggle'
|
|
5585
5629
|
}),
|
|
@@ -5592,9 +5636,9 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5592
5636
|
onToggle = _useUncontrolled.onToggle,
|
|
5593
5637
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5594
5638
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5595
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5596
|
-
|
|
5597
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5639
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5640
|
+
_useUncontrolled.navbar;
|
|
5641
|
+
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5598
5642
|
|
|
5599
5643
|
var onSelectCtx = useContext(SelectableContext);
|
|
5600
5644
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5618,7 +5662,7 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5618
5662
|
});
|
|
5619
5663
|
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5620
5664
|
value: handleSelect
|
|
5621
|
-
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5665
|
+
}, /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
5622
5666
|
drop: drop,
|
|
5623
5667
|
show: show,
|
|
5624
5668
|
alignEnd: alignRight,
|
|
@@ -5633,14 +5677,14 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5633
5677
|
}));
|
|
5634
5678
|
}));
|
|
5635
5679
|
});
|
|
5636
|
-
Dropdown
|
|
5637
|
-
Dropdown
|
|
5638
|
-
Dropdown
|
|
5639
|
-
Dropdown
|
|
5640
|
-
Dropdown
|
|
5641
|
-
Dropdown
|
|
5642
|
-
Dropdown
|
|
5643
|
-
Dropdown
|
|
5680
|
+
Dropdown.displayName = 'Dropdown';
|
|
5681
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5682
|
+
Dropdown.Divider = DropdownDivider;
|
|
5683
|
+
Dropdown.Header = DropdownHeader;
|
|
5684
|
+
Dropdown.Item = DropdownItem;
|
|
5685
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5686
|
+
Dropdown.Menu = DropdownMenu;
|
|
5687
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5644
5688
|
|
|
5645
5689
|
var propTypes$5 = {
|
|
5646
5690
|
/**
|
|
@@ -5717,16 +5761,16 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
5717
5761
|
id = _ref.id,
|
|
5718
5762
|
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5719
5763
|
|
|
5720
|
-
return /*#__PURE__*/React.createElement(Dropdown
|
|
5764
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
5721
5765
|
ref: ref
|
|
5722
|
-
}, props), /*#__PURE__*/React.createElement(DropdownToggle
|
|
5766
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
5723
5767
|
id: id,
|
|
5724
5768
|
href: href,
|
|
5725
5769
|
size: size,
|
|
5726
5770
|
variant: variant,
|
|
5727
5771
|
disabled: disabled,
|
|
5728
5772
|
childBsPrefix: bsPrefix
|
|
5729
|
-
}, title), /*#__PURE__*/React.createElement(DropdownMenu
|
|
5773
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
5730
5774
|
align: menuAlign,
|
|
5731
5775
|
role: menuRole,
|
|
5732
5776
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5829,7 +5873,7 @@ module.exports = exports['default'];
|
|
|
5829
5873
|
|
|
5830
5874
|
unwrapExports(all_1);
|
|
5831
5875
|
|
|
5832
|
-
var propTypes$
|
|
5876
|
+
var propTypes$4 = {
|
|
5833
5877
|
/**
|
|
5834
5878
|
* Specify whether the feedback is for valid or invalid fields
|
|
5835
5879
|
*
|
|
@@ -5858,7 +5902,7 @@ function (_ref, ref) {
|
|
|
5858
5902
|
}));
|
|
5859
5903
|
});
|
|
5860
5904
|
Feedback.displayName = 'Feedback';
|
|
5861
|
-
Feedback.propTypes = propTypes$
|
|
5905
|
+
Feedback.propTypes = propTypes$4;
|
|
5862
5906
|
|
|
5863
5907
|
var FormContext = React.createContext({
|
|
5864
5908
|
controlId: undefined
|
|
@@ -6208,7 +6252,7 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6208
6252
|
});
|
|
6209
6253
|
FormGroup.displayName = 'FormGroup';
|
|
6210
6254
|
|
|
6211
|
-
var defaultProps$
|
|
6255
|
+
var defaultProps$n = {
|
|
6212
6256
|
column: false,
|
|
6213
6257
|
srOnly: false
|
|
6214
6258
|
};
|
|
@@ -6247,7 +6291,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6247
6291
|
);
|
|
6248
6292
|
});
|
|
6249
6293
|
FormLabel.displayName = 'FormLabel';
|
|
6250
|
-
FormLabel.defaultProps = defaultProps$
|
|
6294
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6251
6295
|
|
|
6252
6296
|
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
|
|
6253
6297
|
function (_ref, ref) {
|
|
@@ -6277,7 +6321,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6277
6321
|
Switch.Label = FormCheck.Label;
|
|
6278
6322
|
|
|
6279
6323
|
var FormRow = createWithBsPrefix('form-row');
|
|
6280
|
-
var defaultProps$
|
|
6324
|
+
var defaultProps$m = {
|
|
6281
6325
|
inline: false
|
|
6282
6326
|
};
|
|
6283
6327
|
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
@@ -6296,7 +6340,7 @@ var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
|
6296
6340
|
}));
|
|
6297
6341
|
});
|
|
6298
6342
|
FormImpl.displayName = 'Form';
|
|
6299
|
-
FormImpl.defaultProps = defaultProps$
|
|
6343
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6300
6344
|
FormImpl.Row = FormRow;
|
|
6301
6345
|
FormImpl.Group = FormGroup;
|
|
6302
6346
|
FormImpl.Control = FormControl$1;
|
|
@@ -6306,7 +6350,7 @@ FormImpl.Switch = Switch;
|
|
|
6306
6350
|
FormImpl.Label = FormLabel;
|
|
6307
6351
|
FormImpl.Text = FormText;
|
|
6308
6352
|
|
|
6309
|
-
var defaultProps$
|
|
6353
|
+
var defaultProps$l = {
|
|
6310
6354
|
fluid: false
|
|
6311
6355
|
};
|
|
6312
6356
|
var Container = React.forwardRef(function (_ref, ref) {
|
|
@@ -6326,9 +6370,9 @@ var Container = React.forwardRef(function (_ref, ref) {
|
|
|
6326
6370
|
}));
|
|
6327
6371
|
});
|
|
6328
6372
|
Container.displayName = 'Container';
|
|
6329
|
-
Container.defaultProps = defaultProps$
|
|
6373
|
+
Container.defaultProps = defaultProps$l;
|
|
6330
6374
|
|
|
6331
|
-
var propTypes$
|
|
6375
|
+
var propTypes$3 = {
|
|
6332
6376
|
/**
|
|
6333
6377
|
* @default 'img'
|
|
6334
6378
|
*/
|
|
@@ -6381,7 +6425,7 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6381
6425
|
Image.displayName = 'Image';
|
|
6382
6426
|
Image.defaultProps = defaultProps$k;
|
|
6383
6427
|
|
|
6384
|
-
var defaultProps$
|
|
6428
|
+
var defaultProps$j = {
|
|
6385
6429
|
fluid: true
|
|
6386
6430
|
};
|
|
6387
6431
|
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
@@ -6395,8 +6439,8 @@ var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
|
6395
6439
|
}));
|
|
6396
6440
|
});
|
|
6397
6441
|
FigureImage.displayName = 'FigureImage';
|
|
6398
|
-
FigureImage.propTypes = propTypes$
|
|
6399
|
-
FigureImage.defaultProps = defaultProps$
|
|
6442
|
+
FigureImage.propTypes = propTypes$3;
|
|
6443
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6400
6444
|
|
|
6401
6445
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6402
6446
|
Component: 'figcaption'
|
|
@@ -6451,7 +6495,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6451
6495
|
});
|
|
6452
6496
|
InputGroup.displayName = 'InputGroup';
|
|
6453
6497
|
|
|
6454
|
-
|
|
6498
|
+
_extends({}, InputGroup, {
|
|
6455
6499
|
Text: InputGroupText,
|
|
6456
6500
|
Radio: InputGroupRadio,
|
|
6457
6501
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6459,7 +6503,7 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6459
6503
|
Prepend: InputGroupPrepend
|
|
6460
6504
|
});
|
|
6461
6505
|
|
|
6462
|
-
var defaultProps$
|
|
6506
|
+
var defaultProps$i = {
|
|
6463
6507
|
fluid: false
|
|
6464
6508
|
};
|
|
6465
6509
|
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
@@ -6480,13 +6524,13 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6480
6524
|
className: classnames(className, classes)
|
|
6481
6525
|
}));
|
|
6482
6526
|
});
|
|
6483
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6527
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6484
6528
|
Jumbotron.displayName = 'Jumbotron';
|
|
6485
6529
|
|
|
6486
6530
|
var TabContext = React.createContext(null);
|
|
6487
6531
|
|
|
6488
6532
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6489
|
-
var noop$
|
|
6533
|
+
var noop$1 = function noop() {};
|
|
6490
6534
|
|
|
6491
6535
|
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6492
6536
|
var _ref$as = _ref.as,
|
|
@@ -6576,8 +6620,8 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6576
6620
|
role: role,
|
|
6577
6621
|
// used by NavLink to determine it's role
|
|
6578
6622
|
activeKey: makeEventKey(activeKey),
|
|
6579
|
-
getControlledId: getControlledId || noop$
|
|
6580
|
-
getControllerId: getControllerId || noop$
|
|
6623
|
+
getControlledId: getControlledId || noop$1,
|
|
6624
|
+
getControllerId: getControllerId || noop$1
|
|
6581
6625
|
}
|
|
6582
6626
|
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6583
6627
|
onKeyDown: handleKeyDown,
|
|
@@ -6586,7 +6630,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6586
6630
|
}))));
|
|
6587
6631
|
});
|
|
6588
6632
|
|
|
6589
|
-
var defaultProps$
|
|
6633
|
+
var defaultProps$h = {
|
|
6590
6634
|
disabled: false
|
|
6591
6635
|
};
|
|
6592
6636
|
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
@@ -6632,9 +6676,9 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6632
6676
|
className: classnames(className, isActive && 'active')
|
|
6633
6677
|
}));
|
|
6634
6678
|
});
|
|
6635
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6679
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6636
6680
|
|
|
6637
|
-
var defaultProps$
|
|
6681
|
+
var defaultProps$g = {
|
|
6638
6682
|
variant: undefined,
|
|
6639
6683
|
active: false,
|
|
6640
6684
|
disabled: false
|
|
@@ -6672,10 +6716,10 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6672
6716
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6673
6717
|
}));
|
|
6674
6718
|
});
|
|
6675
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6719
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6676
6720
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6677
6721
|
|
|
6678
|
-
var defaultProps$
|
|
6722
|
+
var defaultProps$f = {
|
|
6679
6723
|
variant: undefined,
|
|
6680
6724
|
horizontal: undefined
|
|
6681
6725
|
};
|
|
@@ -6708,7 +6752,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6708
6752
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6709
6753
|
}));
|
|
6710
6754
|
});
|
|
6711
|
-
ListGroup.defaultProps = defaultProps$
|
|
6755
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6712
6756
|
ListGroup.displayName = 'ListGroup';
|
|
6713
6757
|
ListGroup.Item = ListGroupItem;
|
|
6714
6758
|
|
|
@@ -6757,7 +6801,7 @@ function scrollbarSize(recalc) {
|
|
|
6757
6801
|
|
|
6758
6802
|
function activeElement(doc) {
|
|
6759
6803
|
if (doc === void 0) {
|
|
6760
|
-
doc = ownerDocument();
|
|
6804
|
+
doc = ownerDocument$1();
|
|
6761
6805
|
}
|
|
6762
6806
|
|
|
6763
6807
|
// Support: IE 9 only
|
|
@@ -6807,7 +6851,7 @@ function isBody(node) {
|
|
|
6807
6851
|
}
|
|
6808
6852
|
|
|
6809
6853
|
function bodyIsOverflowing(node) {
|
|
6810
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6854
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6811
6855
|
var win = isWindow(node) || doc.defaultView;
|
|
6812
6856
|
return doc.body.clientWidth < win.innerWidth;
|
|
6813
6857
|
}
|
|
@@ -7019,7 +7063,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7019
7063
|
var _ref;
|
|
7020
7064
|
|
|
7021
7065
|
if (typeof document === 'undefined') return null;
|
|
7022
|
-
if (ref == null) return ownerDocument().body;
|
|
7066
|
+
if (ref == null) return ownerDocument$1().body;
|
|
7023
7067
|
if (typeof ref === 'function') ref = ref();
|
|
7024
7068
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7025
7069
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7052,11 +7096,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7052
7096
|
return resolvedRef;
|
|
7053
7097
|
}
|
|
7054
7098
|
|
|
7055
|
-
var manager;
|
|
7099
|
+
var manager$1;
|
|
7056
7100
|
|
|
7057
7101
|
function getManager() {
|
|
7058
|
-
if (!manager) manager = new ModalManager();
|
|
7059
|
-
return manager;
|
|
7102
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7103
|
+
return manager$1;
|
|
7060
7104
|
}
|
|
7061
7105
|
|
|
7062
7106
|
function useModalManager(provided) {
|
|
@@ -7084,7 +7128,7 @@ function useModalManager(provided) {
|
|
|
7084
7128
|
});
|
|
7085
7129
|
}
|
|
7086
7130
|
|
|
7087
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7131
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7088
7132
|
var _ref$show = _ref.show,
|
|
7089
7133
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7090
7134
|
_ref$role = _ref.role,
|
|
@@ -7168,7 +7212,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7168
7212
|
if (autoFocus) {
|
|
7169
7213
|
var currentActiveElement = activeElement(document);
|
|
7170
7214
|
|
|
7171
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7215
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7172
7216
|
lastFocusRef.current = currentActiveElement;
|
|
7173
7217
|
modal.dialog.focus();
|
|
7174
7218
|
}
|
|
@@ -7214,7 +7258,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7214
7258
|
|
|
7215
7259
|
var currentActiveElement = activeElement();
|
|
7216
7260
|
|
|
7217
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7261
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7218
7262
|
modal.dialog.focus();
|
|
7219
7263
|
}
|
|
7220
7264
|
});
|
|
@@ -7305,7 +7349,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7305
7349
|
|
|
7306
7350
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7307
7351
|
});
|
|
7308
|
-
var propTypes$
|
|
7352
|
+
var propTypes$2 = {
|
|
7309
7353
|
/**
|
|
7310
7354
|
* Set the visibility of the Modal
|
|
7311
7355
|
*/
|
|
@@ -7461,9 +7505,9 @@ var propTypes$8 = {
|
|
|
7461
7505
|
*/
|
|
7462
7506
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7463
7507
|
};
|
|
7464
|
-
Modal.displayName = 'Modal';
|
|
7465
|
-
Modal.propTypes = propTypes$
|
|
7466
|
-
var BaseModal = Object.assign(Modal, {
|
|
7508
|
+
Modal$1.displayName = 'Modal';
|
|
7509
|
+
Modal$1.propTypes = propTypes$2;
|
|
7510
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7467
7511
|
Manager: ModalManager
|
|
7468
7512
|
});
|
|
7469
7513
|
|
|
@@ -7570,7 +7614,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7570
7614
|
|
|
7571
7615
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7572
7616
|
|
|
7573
|
-
var defaultProps$
|
|
7617
|
+
var defaultProps$e = {
|
|
7574
7618
|
closeLabel: 'Close',
|
|
7575
7619
|
closeButton: false
|
|
7576
7620
|
};
|
|
@@ -7599,15 +7643,15 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7599
7643
|
}));
|
|
7600
7644
|
});
|
|
7601
7645
|
ModalHeader.displayName = 'ModalHeader';
|
|
7602
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7646
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7603
7647
|
|
|
7604
|
-
var DivStyledAsH4
|
|
7648
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7605
7649
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7606
|
-
Component: DivStyledAsH4
|
|
7650
|
+
Component: DivStyledAsH4
|
|
7607
7651
|
});
|
|
7608
7652
|
|
|
7609
|
-
var manager
|
|
7610
|
-
var defaultProps$
|
|
7653
|
+
var manager;
|
|
7654
|
+
var defaultProps$d = {
|
|
7611
7655
|
show: false,
|
|
7612
7656
|
backdrop: true,
|
|
7613
7657
|
keyboard: true,
|
|
@@ -7629,7 +7673,7 @@ function BackdropTransition(props) {
|
|
|
7629
7673
|
/* eslint-enable no-use-before-define */
|
|
7630
7674
|
|
|
7631
7675
|
|
|
7632
|
-
var Modal
|
|
7676
|
+
var Modal = React.forwardRef(function (_ref, ref) {
|
|
7633
7677
|
var bsPrefix = _ref.bsPrefix,
|
|
7634
7678
|
className = _ref.className,
|
|
7635
7679
|
style = _ref.style,
|
|
@@ -7695,14 +7739,14 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7695
7739
|
|
|
7696
7740
|
function getModalManager() {
|
|
7697
7741
|
if (propsManager) return propsManager;
|
|
7698
|
-
if (!manager
|
|
7699
|
-
return manager
|
|
7742
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7743
|
+
return manager;
|
|
7700
7744
|
}
|
|
7701
7745
|
|
|
7702
7746
|
function updateDialogStyle(node) {
|
|
7703
7747
|
if (!canUseDOM) return;
|
|
7704
7748
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7705
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7749
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7706
7750
|
setStyle({
|
|
7707
7751
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7708
7752
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7883,15 +7927,15 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7883
7927
|
renderDialog: renderDialog
|
|
7884
7928
|
}));
|
|
7885
7929
|
});
|
|
7886
|
-
Modal
|
|
7887
|
-
Modal
|
|
7888
|
-
Modal
|
|
7889
|
-
Modal
|
|
7890
|
-
Modal
|
|
7891
|
-
Modal
|
|
7892
|
-
Modal
|
|
7893
|
-
Modal
|
|
7894
|
-
Modal
|
|
7930
|
+
Modal.displayName = 'Modal';
|
|
7931
|
+
Modal.defaultProps = defaultProps$d;
|
|
7932
|
+
Modal.Body = ModalBody;
|
|
7933
|
+
Modal.Header = ModalHeader;
|
|
7934
|
+
Modal.Title = ModalTitle;
|
|
7935
|
+
Modal.Footer = ModalFooter;
|
|
7936
|
+
Modal.Dialog = ModalDialog;
|
|
7937
|
+
Modal.TRANSITION_DURATION = 300;
|
|
7938
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7895
7939
|
|
|
7896
7940
|
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
|
|
7897
7941
|
function (_ref, ref) {
|
|
@@ -7910,7 +7954,7 @@ function (_ref, ref) {
|
|
|
7910
7954
|
});
|
|
7911
7955
|
NavItem.displayName = 'NavItem';
|
|
7912
7956
|
|
|
7913
|
-
var defaultProps$
|
|
7957
|
+
var defaultProps$c = {
|
|
7914
7958
|
disabled: false,
|
|
7915
7959
|
as: SafeAnchor
|
|
7916
7960
|
};
|
|
@@ -7936,9 +7980,9 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7936
7980
|
}));
|
|
7937
7981
|
});
|
|
7938
7982
|
NavLink.displayName = 'NavLink';
|
|
7939
|
-
NavLink.defaultProps = defaultProps$
|
|
7983
|
+
NavLink.defaultProps = defaultProps$c;
|
|
7940
7984
|
|
|
7941
|
-
var defaultProps$
|
|
7985
|
+
var defaultProps$b = {
|
|
7942
7986
|
justify: false,
|
|
7943
7987
|
fill: false
|
|
7944
7988
|
};
|
|
@@ -7964,7 +8008,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7964
8008
|
var navbarBsPrefix;
|
|
7965
8009
|
var cardHeaderBsPrefix;
|
|
7966
8010
|
var isNavbar = false;
|
|
7967
|
-
var navbarContext = useContext(context
|
|
8011
|
+
var navbarContext = useContext(context);
|
|
7968
8012
|
var cardContext = useContext(context$1);
|
|
7969
8013
|
|
|
7970
8014
|
if (navbarContext) {
|
|
@@ -7982,7 +8026,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7982
8026
|
}, props), children);
|
|
7983
8027
|
});
|
|
7984
8028
|
Nav.displayName = 'Nav';
|
|
7985
|
-
Nav.defaultProps = defaultProps$
|
|
8029
|
+
Nav.defaultProps = defaultProps$b;
|
|
7986
8030
|
Nav.Item = NavItem;
|
|
7987
8031
|
Nav.Link = NavLink;
|
|
7988
8032
|
|
|
@@ -8007,7 +8051,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8007
8051
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8008
8052
|
|
|
8009
8053
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8010
|
-
return /*#__PURE__*/React.createElement(context
|
|
8054
|
+
return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
|
|
8011
8055
|
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8012
8056
|
in: !!(context && context.expanded)
|
|
8013
8057
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
@@ -8018,7 +8062,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8018
8062
|
});
|
|
8019
8063
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8020
8064
|
|
|
8021
|
-
var defaultProps$
|
|
8065
|
+
var defaultProps$a = {
|
|
8022
8066
|
label: 'Toggle navigation'
|
|
8023
8067
|
};
|
|
8024
8068
|
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
@@ -8033,7 +8077,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8033
8077
|
|
|
8034
8078
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8035
8079
|
|
|
8036
|
-
var _ref2 = useContext(context
|
|
8080
|
+
var _ref2 = useContext(context) || {},
|
|
8037
8081
|
onToggle = _ref2.onToggle,
|
|
8038
8082
|
expanded = _ref2.expanded;
|
|
8039
8083
|
|
|
@@ -8056,12 +8100,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8056
8100
|
}));
|
|
8057
8101
|
});
|
|
8058
8102
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8059
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8103
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
8060
8104
|
|
|
8061
8105
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8062
8106
|
Component: 'span'
|
|
8063
8107
|
});
|
|
8064
|
-
var defaultProps$
|
|
8108
|
+
var defaultProps$9 = {
|
|
8065
8109
|
expand: true,
|
|
8066
8110
|
variant: 'light',
|
|
8067
8111
|
collapseOnSelect: false
|
|
@@ -8114,7 +8158,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8114
8158
|
expanded: !!expanded
|
|
8115
8159
|
};
|
|
8116
8160
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8117
|
-
return /*#__PURE__*/React.createElement(context
|
|
8161
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
8118
8162
|
value: navbarContext
|
|
8119
8163
|
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8120
8164
|
value: handleCollapse
|
|
@@ -8124,14 +8168,14 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8124
8168
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8125
8169
|
}), children)));
|
|
8126
8170
|
});
|
|
8127
|
-
Navbar.defaultProps = defaultProps$
|
|
8171
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8128
8172
|
Navbar.displayName = 'Navbar';
|
|
8129
8173
|
Navbar.Brand = NavbarBrand;
|
|
8130
8174
|
Navbar.Toggle = NavbarToggle;
|
|
8131
8175
|
Navbar.Collapse = NavbarCollapse;
|
|
8132
8176
|
Navbar.Text = NavbarText;
|
|
8133
8177
|
|
|
8134
|
-
var propTypes$
|
|
8178
|
+
var propTypes$1 = {
|
|
8135
8179
|
/**
|
|
8136
8180
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8137
8181
|
* @type {string|number}
|
|
@@ -8179,29 +8223,29 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8179
8223
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8180
8224
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8181
8225
|
|
|
8182
|
-
return /*#__PURE__*/React.createElement(Dropdown
|
|
8226
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8183
8227
|
ref: ref
|
|
8184
8228
|
}, props, {
|
|
8185
8229
|
as: NavItem
|
|
8186
|
-
}), /*#__PURE__*/React.createElement(Dropdown
|
|
8230
|
+
}), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8187
8231
|
id: id,
|
|
8188
8232
|
eventKey: null,
|
|
8189
8233
|
active: active,
|
|
8190
8234
|
disabled: disabled,
|
|
8191
8235
|
childBsPrefix: bsPrefix,
|
|
8192
8236
|
as: NavLink
|
|
8193
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown
|
|
8237
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8194
8238
|
role: menuRole,
|
|
8195
8239
|
renderOnMount: renderMenuOnMount,
|
|
8196
8240
|
rootCloseEvent: rootCloseEvent
|
|
8197
8241
|
}, children));
|
|
8198
8242
|
});
|
|
8199
8243
|
NavDropdown.displayName = 'NavDropdown';
|
|
8200
|
-
NavDropdown.propTypes = propTypes$
|
|
8201
|
-
NavDropdown.Item = Dropdown
|
|
8202
|
-
NavDropdown.ItemText = Dropdown
|
|
8203
|
-
NavDropdown.Divider = Dropdown
|
|
8204
|
-
NavDropdown.Header = Dropdown
|
|
8244
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8245
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8246
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8247
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8248
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8205
8249
|
|
|
8206
8250
|
/**
|
|
8207
8251
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8442,7 +8486,7 @@ Overlay.propTypes = {
|
|
|
8442
8486
|
onExited: PropTypes.func
|
|
8443
8487
|
};
|
|
8444
8488
|
|
|
8445
|
-
|
|
8489
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8446
8490
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8447
8491
|
|
|
8448
8492
|
function RefHolder() {
|
|
@@ -8456,9 +8500,9 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8456
8500
|
};
|
|
8457
8501
|
|
|
8458
8502
|
return RefHolder;
|
|
8459
|
-
}(React.Component);
|
|
8503
|
+
})(React.Component);
|
|
8460
8504
|
|
|
8461
|
-
var defaultProps$
|
|
8505
|
+
var defaultProps$8 = {
|
|
8462
8506
|
active: false,
|
|
8463
8507
|
disabled: false,
|
|
8464
8508
|
activeLabel: '(current)'
|
|
@@ -8487,7 +8531,7 @@ var PageItem = React.forwardRef(function (_ref, ref) {
|
|
|
8487
8531
|
className: "sr-only"
|
|
8488
8532
|
}, activeLabel)));
|
|
8489
8533
|
});
|
|
8490
|
-
PageItem.defaultProps = defaultProps$
|
|
8534
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8491
8535
|
PageItem.displayName = 'PageItem';
|
|
8492
8536
|
|
|
8493
8537
|
function createButton(name, defaultValue, label) {
|
|
@@ -8577,7 +8621,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8577
8621
|
}), children);
|
|
8578
8622
|
});
|
|
8579
8623
|
|
|
8580
|
-
var defaultProps$
|
|
8624
|
+
var defaultProps$7 = {
|
|
8581
8625
|
placement: 'right'
|
|
8582
8626
|
};
|
|
8583
8627
|
var Popover = React.forwardRef(function (_ref, ref) {
|
|
@@ -8587,10 +8631,10 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8587
8631
|
style = _ref.style,
|
|
8588
8632
|
children = _ref.children,
|
|
8589
8633
|
content = _ref.content,
|
|
8590
|
-
arrowProps = _ref.arrowProps
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8634
|
+
arrowProps = _ref.arrowProps;
|
|
8635
|
+
_ref.popper;
|
|
8636
|
+
_ref.show;
|
|
8637
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8594
8638
|
|
|
8595
8639
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8596
8640
|
|
|
@@ -8607,13 +8651,13 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8607
8651
|
className: "arrow"
|
|
8608
8652
|
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8609
8653
|
});
|
|
8610
|
-
Popover.defaultProps = defaultProps$
|
|
8654
|
+
Popover.defaultProps = defaultProps$7;
|
|
8611
8655
|
Popover.Title = PopoverTitle;
|
|
8612
8656
|
Popover.Content = PopoverContent;
|
|
8613
8657
|
|
|
8614
8658
|
var ROUND_PRECISION = 1000;
|
|
8615
8659
|
|
|
8616
|
-
var defaultProps$
|
|
8660
|
+
var defaultProps$6 = {
|
|
8617
8661
|
min: 0,
|
|
8618
8662
|
max: 100,
|
|
8619
8663
|
animated: false,
|
|
@@ -8703,9 +8747,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8703
8747
|
}, ref));
|
|
8704
8748
|
});
|
|
8705
8749
|
ProgressBar.displayName = 'ProgressBar';
|
|
8706
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8750
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8707
8751
|
|
|
8708
|
-
var defaultProps$
|
|
8752
|
+
var defaultProps$5 = {
|
|
8709
8753
|
aspectRatio: '1by1'
|
|
8710
8754
|
};
|
|
8711
8755
|
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
@@ -8725,10 +8769,10 @@ var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
|
8725
8769
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8726
8770
|
}));
|
|
8727
8771
|
});
|
|
8728
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8772
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8729
8773
|
|
|
8730
|
-
var DEVICE_SIZES
|
|
8731
|
-
var defaultProps$
|
|
8774
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8775
|
+
var defaultProps$4 = {
|
|
8732
8776
|
noGutters: false
|
|
8733
8777
|
};
|
|
8734
8778
|
var Row = React.forwardRef(function (_ref, ref) {
|
|
@@ -8742,7 +8786,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8742
8786
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8743
8787
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8744
8788
|
var classes = [];
|
|
8745
|
-
DEVICE_SIZES
|
|
8789
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8746
8790
|
var propValue = props[brkPoint];
|
|
8747
8791
|
delete props[brkPoint];
|
|
8748
8792
|
var cols;
|
|
@@ -8763,7 +8807,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8763
8807
|
}));
|
|
8764
8808
|
});
|
|
8765
8809
|
Row.displayName = 'Row';
|
|
8766
|
-
Row.defaultProps = defaultProps$
|
|
8810
|
+
Row.defaultProps = defaultProps$4;
|
|
8767
8811
|
|
|
8768
8812
|
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8769
8813
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8786,7 +8830,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8786
8830
|
});
|
|
8787
8831
|
Spinner.displayName = 'Spinner';
|
|
8788
8832
|
|
|
8789
|
-
var propTypes
|
|
8833
|
+
var propTypes = {
|
|
8790
8834
|
/**
|
|
8791
8835
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8792
8836
|
* @type {string|number}
|
|
@@ -8848,7 +8892,7 @@ var propTypes$a = {
|
|
|
8848
8892
|
/** @ignore */
|
|
8849
8893
|
size: PropTypes.string
|
|
8850
8894
|
};
|
|
8851
|
-
var defaultProps$
|
|
8895
|
+
var defaultProps$3 = {
|
|
8852
8896
|
toggleLabel: 'Toggle dropdown',
|
|
8853
8897
|
type: 'button'
|
|
8854
8898
|
};
|
|
@@ -8870,7 +8914,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8870
8914
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8871
8915
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8872
8916
|
|
|
8873
|
-
return /*#__PURE__*/React.createElement(Dropdown
|
|
8917
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8874
8918
|
ref: ref
|
|
8875
8919
|
}, props, {
|
|
8876
8920
|
as: ButtonGroup
|
|
@@ -8883,7 +8927,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8883
8927
|
target: target,
|
|
8884
8928
|
onClick: onClick,
|
|
8885
8929
|
type: type
|
|
8886
|
-
}, title), /*#__PURE__*/React.createElement(Dropdown
|
|
8930
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8887
8931
|
split: true,
|
|
8888
8932
|
id: id ? id.toString() : undefined,
|
|
8889
8933
|
size: size,
|
|
@@ -8892,15 +8936,15 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8892
8936
|
childBsPrefix: bsPrefix
|
|
8893
8937
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8894
8938
|
className: "sr-only"
|
|
8895
|
-
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown
|
|
8939
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8896
8940
|
align: menuAlign,
|
|
8897
8941
|
role: menuRole,
|
|
8898
8942
|
renderOnMount: renderMenuOnMount,
|
|
8899
8943
|
rootCloseEvent: rootCloseEvent
|
|
8900
8944
|
}, children));
|
|
8901
8945
|
});
|
|
8902
|
-
SplitButton.propTypes = propTypes
|
|
8903
|
-
SplitButton.defaultProps = defaultProps$
|
|
8946
|
+
SplitButton.propTypes = propTypes;
|
|
8947
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
8904
8948
|
SplitButton.displayName = 'SplitButton';
|
|
8905
8949
|
|
|
8906
8950
|
var TabContainer = function TabContainer(props) {
|
|
@@ -8994,9 +9038,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8994
9038
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
8995
9039
|
Transition = _useTabContext.transition,
|
|
8996
9040
|
_useTabContext$as = _useTabContext.as,
|
|
8997
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
8998
|
-
|
|
8999
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9041
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9042
|
+
_useTabContext.eventKey;
|
|
9043
|
+
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9000
9044
|
|
|
9001
9045
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9002
9046
|
if (!active && !Transition && unmountOnExit) return null;
|
|
@@ -9050,7 +9094,7 @@ Tab.Container = TabContainer;
|
|
|
9050
9094
|
Tab.Content = TabContent;
|
|
9051
9095
|
Tab.Pane = TabPane;
|
|
9052
9096
|
|
|
9053
|
-
|
|
9097
|
+
React.forwardRef(function (_ref, ref) {
|
|
9054
9098
|
var bsPrefix = _ref.bsPrefix,
|
|
9055
9099
|
className = _ref.className,
|
|
9056
9100
|
striped = _ref.striped,
|
|
@@ -9089,7 +9133,7 @@ var ToastContext = React.createContext({
|
|
|
9089
9133
|
onClose: function onClose() {}
|
|
9090
9134
|
});
|
|
9091
9135
|
|
|
9092
|
-
var defaultProps$
|
|
9136
|
+
var defaultProps$2 = {
|
|
9093
9137
|
closeLabel: 'Close',
|
|
9094
9138
|
closeButton: true
|
|
9095
9139
|
};
|
|
@@ -9120,7 +9164,7 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9120
9164
|
}));
|
|
9121
9165
|
});
|
|
9122
9166
|
ToastHeader.displayName = 'ToastHeader';
|
|
9123
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9167
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9124
9168
|
|
|
9125
9169
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9126
9170
|
|
|
@@ -9187,7 +9231,7 @@ Object.assign(Toast, {
|
|
|
9187
9231
|
Header: ToastHeader
|
|
9188
9232
|
});
|
|
9189
9233
|
|
|
9190
|
-
var noop
|
|
9234
|
+
var noop = function noop() {
|
|
9191
9235
|
return undefined;
|
|
9192
9236
|
};
|
|
9193
9237
|
|
|
@@ -9229,12 +9273,12 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9229
9273
|
disabled: !!disabled,
|
|
9230
9274
|
onFocus: handleFocus,
|
|
9231
9275
|
onBlur: handleBlur,
|
|
9232
|
-
onChange: onChange || noop
|
|
9276
|
+
onChange: onChange || noop
|
|
9233
9277
|
}), children);
|
|
9234
9278
|
});
|
|
9235
9279
|
ToggleButton.displayName = 'ToggleButton';
|
|
9236
9280
|
|
|
9237
|
-
var defaultProps$
|
|
9281
|
+
var defaultProps$1 = {
|
|
9238
9282
|
type: 'radio',
|
|
9239
9283
|
vertical: false
|
|
9240
9284
|
};
|
|
@@ -9297,10 +9341,10 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9297
9341
|
});
|
|
9298
9342
|
}));
|
|
9299
9343
|
});
|
|
9300
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9344
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9301
9345
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9302
9346
|
|
|
9303
|
-
var defaultProps
|
|
9347
|
+
var defaultProps = {
|
|
9304
9348
|
placement: 'right'
|
|
9305
9349
|
};
|
|
9306
9350
|
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
@@ -9309,10 +9353,10 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9309
9353
|
className = _ref.className,
|
|
9310
9354
|
style = _ref.style,
|
|
9311
9355
|
children = _ref.children,
|
|
9312
|
-
arrowProps = _ref.arrowProps
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9356
|
+
arrowProps = _ref.arrowProps;
|
|
9357
|
+
_ref.popper;
|
|
9358
|
+
_ref.show;
|
|
9359
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9316
9360
|
|
|
9317
9361
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9318
9362
|
|
|
@@ -9331,10 +9375,10 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9331
9375
|
className: bsPrefix + "-inner"
|
|
9332
9376
|
}, children));
|
|
9333
9377
|
});
|
|
9334
|
-
Tooltip.defaultProps = defaultProps
|
|
9378
|
+
Tooltip.defaultProps = defaultProps;
|
|
9335
9379
|
Tooltip.displayName = 'Tooltip';
|
|
9336
9380
|
|
|
9337
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9381
|
+
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";
|
|
9338
9382
|
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" };
|
|
9339
9383
|
styleInject(css);
|
|
9340
9384
|
|
|
@@ -9421,11 +9465,11 @@ var Filter = function Filter(_ref) {
|
|
|
9421
9465
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9422
9466
|
grandChildData = _useState6[0],
|
|
9423
9467
|
setGrandChildData = _useState6[1];
|
|
9424
|
-
/*
|
|
9425
|
-
{parent: showAll,
|
|
9426
|
-
chidlren: show selected from parent,
|
|
9427
|
-
grandchildren: show selected from children
|
|
9428
|
-
}
|
|
9468
|
+
/*
|
|
9469
|
+
{parent: showAll,
|
|
9470
|
+
chidlren: show selected from parent,
|
|
9471
|
+
grandchildren: show selected from children
|
|
9472
|
+
}
|
|
9429
9473
|
*/
|
|
9430
9474
|
|
|
9431
9475
|
|
|
@@ -9496,7 +9540,7 @@ var Filter = function Filter(_ref) {
|
|
|
9496
9540
|
DropdownButton,
|
|
9497
9541
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9498
9542
|
React.createElement(
|
|
9499
|
-
Dropdown
|
|
9543
|
+
Dropdown.Item,
|
|
9500
9544
|
{ onSelect: function onSelect() {
|
|
9501
9545
|
return handleFilterSelect({}, 'parent');
|
|
9502
9546
|
} },
|
|
@@ -9505,7 +9549,7 @@ var Filter = function Filter(_ref) {
|
|
|
9505
9549
|
parentData.data.map(function (docGroup) {
|
|
9506
9550
|
if (!docGroup._id) return null;
|
|
9507
9551
|
return React.createElement(
|
|
9508
|
-
Dropdown
|
|
9552
|
+
Dropdown.Item,
|
|
9509
9553
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9510
9554
|
return handleFilterSelect(docGroup, 'parent');
|
|
9511
9555
|
} },
|
|
@@ -9517,7 +9561,7 @@ var Filter = function Filter(_ref) {
|
|
|
9517
9561
|
DropdownButton,
|
|
9518
9562
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9519
9563
|
React.createElement(
|
|
9520
|
-
Dropdown
|
|
9564
|
+
Dropdown.Item,
|
|
9521
9565
|
{ onSelect: function onSelect() {
|
|
9522
9566
|
return handleFilterSelect({}, 'child');
|
|
9523
9567
|
} },
|
|
@@ -9526,7 +9570,7 @@ var Filter = function Filter(_ref) {
|
|
|
9526
9570
|
childData.data.map(function (docGroup) {
|
|
9527
9571
|
if (!docGroup._id) return null;
|
|
9528
9572
|
return React.createElement(
|
|
9529
|
-
Dropdown
|
|
9573
|
+
Dropdown.Item,
|
|
9530
9574
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9531
9575
|
return handleFilterSelect(docGroup, 'child');
|
|
9532
9576
|
} },
|
|
@@ -9538,7 +9582,7 @@ var Filter = function Filter(_ref) {
|
|
|
9538
9582
|
DropdownButton,
|
|
9539
9583
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9540
9584
|
React.createElement(
|
|
9541
|
-
Dropdown
|
|
9585
|
+
Dropdown.Item,
|
|
9542
9586
|
{ onSelect: function onSelect() {
|
|
9543
9587
|
return handleFilterSelect({}, 'grandchild');
|
|
9544
9588
|
} },
|
|
@@ -9547,7 +9591,7 @@ var Filter = function Filter(_ref) {
|
|
|
9547
9591
|
grandChildData.data.map(function (docGroup) {
|
|
9548
9592
|
if (!docGroup._id) return null;
|
|
9549
9593
|
return React.createElement(
|
|
9550
|
-
Dropdown
|
|
9594
|
+
Dropdown.Item,
|
|
9551
9595
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9552
9596
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9553
9597
|
} },
|
|
@@ -9704,12 +9748,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9704
9748
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9705
9749
|
var _ref4;
|
|
9706
9750
|
|
|
9707
|
-
var urlQuery, pathname,
|
|
9751
|
+
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9708
9752
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9709
9753
|
while (1) {
|
|
9710
9754
|
switch (_context2.prev = _context2.next) {
|
|
9711
9755
|
case 0:
|
|
9712
|
-
urlQuery = ctx.query, pathname = ctx.pathname,
|
|
9756
|
+
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9713
9757
|
identifier = pathname.replace('/', '');
|
|
9714
9758
|
itemsPerPage = 10;
|
|
9715
9759
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|