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