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