@mjhls/mjh-framework 1.0.799-beta.0 → 1.0.799-social-share-flag
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +30 -29
- package/dist/cjs/AD300x250x600.js +30 -29
- package/dist/cjs/AD728x90.js +33 -32
- package/dist/cjs/ADFloatingFooter.js +32 -31
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +32 -31
- package/dist/cjs/{ADInfeed-5b042ade.js → ADInfeed-e7aecdf9.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +32 -31
- package/dist/cjs/ADSponsoredResources.js +32 -31
- package/dist/cjs/ADWebcast.js +32 -31
- package/dist/cjs/ADWelcome.js +33 -32
- package/dist/cjs/{ADlgInfeed-e92b6f9f.js → ADlgInfeed-0941023e.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +35 -34
- package/dist/cjs/AdSlotsProvider.js +17 -16
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +57 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -40
- package/dist/cjs/ArticleSeriesListing.js +61 -60
- package/dist/cjs/Auth.js +686 -462
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +61 -58
- package/dist/cjs/ConferenceArticleCard.js +39 -38
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -103
- package/dist/cjs/DeckQueue.js +92 -88
- package/dist/cjs/{Dfp-946b8c39.js → Dfp-3f0ed4c8.js} +34 -33
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +80 -79
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +182 -178
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +144 -139
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +70 -69
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +76 -71
- package/dist/cjs/IssueLanding.js +72 -71
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +40 -38
- package/dist/cjs/MasterDeck.js +80 -79
- package/dist/cjs/MediaSeriesLanding.js +961 -961
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +152 -147
- package/dist/cjs/NavNative.js +147 -139
- package/dist/cjs/NavNormal.js +52 -47
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +109 -108
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +42 -41
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +142 -138
- package/dist/cjs/QueueDeckExpanded.js +294 -294
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +53 -52
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-4abb21b4.js → SeriesSlider-c022ce04.js} +42 -41
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +39 -38
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-31afe61f.js} +40 -36
- package/dist/cjs/SocialShare.js +36 -31
- package/dist/cjs/TaxonomyCard.js +63 -58
- package/dist/cjs/TaxonomyDescription.js +54 -53
- package/dist/cjs/TemplateNormal.js +76 -75
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +76 -72
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -48
- package/dist/cjs/VideoSeriesListing.js +78 -77
- package/dist/cjs/View.js +266 -261
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +67 -66
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-60837c34.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +140 -76
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-34e3ba68.js → getTargeting-be6168ad.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
- package/dist/cjs/{index-61690275.js → index-59b791eb.js} +1280 -1040
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +163 -160
- package/dist/cjs/{inherits-c9f99d47.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-025fdc78.js +973 -0
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +26 -26
- package/dist/esm/AD300x250x600.js +26 -26
- package/dist/esm/AD728x90.js +29 -29
- package/dist/esm/ADFloatingFooter.js +28 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +28 -28
- package/dist/esm/{ADInfeed-171677b4.js → ADInfeed-e1e18f87.js} +11 -11
- package/dist/esm/ADSkyscraper.js +28 -28
- package/dist/esm/ADSponsoredResources.js +28 -28
- package/dist/esm/ADWebcast.js +28 -28
- package/dist/esm/ADWelcome.js +29 -29
- package/dist/esm/{ADlgInfeed-f2ac31d1.js → ADlgInfeed-c6d2831b.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +26 -26
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +53 -53
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +665 -445
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5ae7409f.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-52cf21c5.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +55 -55
- package/dist/esm/ConferenceArticleCard.js +34 -34
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +97 -97
- package/dist/esm/DeckQueue.js +82 -82
- package/dist/esm/{Dfp-965b3873.js → Dfp-a304d96c.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +170 -170
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +115 -115
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +66 -66
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +60 -60
- package/dist/esm/IssueDeck.js +64 -64
- package/dist/esm/IssueLanding.js +68 -68
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +34 -34
- package/dist/esm/MasterDeck.js +76 -76
- package/dist/esm/MediaSeriesLanding.js +786 -789
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/NavNormal.js +38 -38
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +104 -104
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +38 -38
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +52 -52
- package/dist/esm/PublicationLanding.js +125 -125
- package/dist/esm/QueueDeckExpanded.js +274 -274
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-36be7223.js → SeriesSlider-8414085b.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-719f230f.js → SocialSearchComponent-116b1d5d.js} +30 -30
- package/dist/esm/SocialShare.js +30 -27
- package/dist/esm/TaxonomyCard.js +53 -53
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +71 -71
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +65 -65
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +41 -41
- package/dist/esm/VideoSeriesListing.js +73 -73
- package/dist/esm/View.js +247 -246
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +50 -50
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-eb69e8ac.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-739e9fed.js → getTargeting-68291ce9.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-c1691ede.js → index-68283a6a.js} +1217 -984
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +132 -132
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-b5c5aac1.js +961 -0
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +108 -108
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,67 +1,67 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
+
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
1
7
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-a4107da3.js';
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
4
|
-
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-5d49a330.js';
|
|
6
|
-
import './toConsumableArray-43aa614d.js';
|
|
7
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
-
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends$2 } from './extends-eb69e8ac.js';
|
|
10
|
-
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-fb9b6e8f.js';
|
|
12
|
-
import './define-property-8af5f002.js';
|
|
13
|
-
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
16
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
|
-
import './index-a9e53f80.js';
|
|
18
8
|
import PropTypes from 'prop-types';
|
|
9
|
+
import ReactDOM from 'react-dom';
|
|
10
|
+
import Link from 'next/link';
|
|
11
|
+
import MasterDeck from './MasterDeck.js';
|
|
12
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
13
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
14
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
15
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
16
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
17
|
+
import { g as getSerializers } from './index-68283a6a.js';
|
|
18
|
+
import './define-property-fe54dc9f.js';
|
|
19
|
+
import './_to-object-b50e61c3.js';
|
|
20
|
+
import './es6.string.iterator-bc33758b.js';
|
|
21
|
+
import './web.dom.iterable-4109ff68.js';
|
|
22
|
+
import './_library-528f1934.js';
|
|
23
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
24
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
25
|
+
import './_is-array-3e99e06e.js';
|
|
26
|
+
import './_object-pie-133f504a.js';
|
|
27
|
+
import './toConsumableArray-6d9a4616.js';
|
|
28
|
+
import './inherits-a41fe93f.js';
|
|
29
|
+
import './_object-sap-f353c2a9.js';
|
|
30
|
+
import './index-888f9253.js';
|
|
19
31
|
import 'react-bootstrap/Container';
|
|
20
32
|
import 'react-bootstrap/Row';
|
|
21
33
|
import 'react-bootstrap/Col';
|
|
22
34
|
import 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
24
35
|
import 'next/router';
|
|
25
|
-
import './
|
|
26
|
-
import './debounce-
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
import
|
|
30
|
-
import './visibility-sensor-
|
|
31
|
-
import
|
|
32
|
-
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
33
|
-
import './main-e4a934b2.js';
|
|
34
|
-
import './entities-7cc3bf45.js';
|
|
35
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
36
|
-
import './stringify-4330ccdc.js';
|
|
37
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
38
|
-
import './Segment.js';
|
|
39
|
-
import './Beam.js';
|
|
36
|
+
import './lodash-f97fd99a.js';
|
|
37
|
+
import './debounce-533d9748.js';
|
|
38
|
+
import './isSymbol-a7e9aafe.js';
|
|
39
|
+
import './toNumber-5aeba6e7.js';
|
|
40
|
+
import './index.es-c6222053.js';
|
|
41
|
+
import './visibility-sensor-f40c2564.js';
|
|
42
|
+
import './ADlgInfeed-c6d2831b.js';
|
|
40
43
|
import './AdSlot.js';
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import
|
|
44
|
+
import './Beam.js';
|
|
45
|
+
import './stringify-59c8f690.js';
|
|
46
|
+
import './Segment.js';
|
|
47
|
+
import './main-b5c5aac1.js';
|
|
48
|
+
import './ADInfeed-e1e18f87.js';
|
|
49
|
+
import 'react-bootstrap';
|
|
45
50
|
import './index-c7e2ac95.js';
|
|
46
|
-
import './
|
|
51
|
+
import './util-3ab476bf.js';
|
|
52
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
47
53
|
import './GroupDeck.js';
|
|
48
|
-
import '
|
|
49
|
-
import './
|
|
50
|
-
import './index.esm-29e48d38.js';
|
|
51
|
-
import { g as getSerializers } from './index-c1691ede.js';
|
|
52
|
-
import './util-7700fc59.js';
|
|
53
|
-
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
54
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
55
|
+
import './SocialShare.js';
|
|
54
56
|
import 'next/head';
|
|
55
57
|
import 'react-share';
|
|
56
|
-
import './
|
|
57
|
-
import './_object-to-array-7e804fce.js';
|
|
58
|
+
import './_object-to-array-0f197f89.js';
|
|
58
59
|
import 'react-bootstrap/Pagination';
|
|
59
60
|
import 'react-bootstrap/Button';
|
|
61
|
+
import './entities-932b50cf.js';
|
|
62
|
+
import './index.esm-3fdda599.js';
|
|
63
|
+
import './iconBase-602d52fe.js';
|
|
60
64
|
import 'react-bootstrap/Figure';
|
|
61
|
-
import MasterDeck from './MasterDeck.js';
|
|
62
|
-
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
63
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
64
|
-
import Link from 'next/link';
|
|
65
65
|
|
|
66
66
|
function _extends() {
|
|
67
67
|
_extends = Object.assign || function (target) {
|
|
@@ -136,7 +136,7 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
136
136
|
return classes.join(' ');
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
if (
|
|
139
|
+
if (module.exports) {
|
|
140
140
|
classNames.default = classNames;
|
|
141
141
|
module.exports = classNames;
|
|
142
142
|
} else {
|
|
@@ -250,22 +250,31 @@ function useUncontrolled(props, config) {
|
|
|
250
250
|
}, props);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
+
function _setPrototypeOf(o, p) {
|
|
254
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
255
|
+
o.__proto__ = p;
|
|
256
|
+
return o;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
return _setPrototypeOf(o, p);
|
|
260
|
+
}
|
|
261
|
+
|
|
253
262
|
function _inheritsLoose(subClass, superClass) {
|
|
254
263
|
subClass.prototype = Object.create(superClass.prototype);
|
|
255
264
|
subClass.prototype.constructor = subClass;
|
|
256
|
-
subClass
|
|
265
|
+
_setPrototypeOf(subClass, superClass);
|
|
257
266
|
}
|
|
258
267
|
|
|
259
|
-
var ThemeContext =
|
|
260
|
-
|
|
261
|
-
|
|
268
|
+
var ThemeContext = React.createContext({});
|
|
269
|
+
ThemeContext.Consumer;
|
|
270
|
+
ThemeContext.Provider;
|
|
262
271
|
|
|
263
272
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
264
273
|
var prefixes = useContext(ThemeContext);
|
|
265
274
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
266
275
|
}
|
|
267
276
|
|
|
268
|
-
var SelectableContext =
|
|
277
|
+
var SelectableContext = React.createContext(null);
|
|
269
278
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
270
279
|
if (href === void 0) {
|
|
271
280
|
href = null;
|
|
@@ -275,11 +284,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
275
284
|
return href || null;
|
|
276
285
|
};
|
|
277
286
|
|
|
278
|
-
var context =
|
|
279
|
-
context.displayName = 'AccordionContext';
|
|
287
|
+
var context$2 = React.createContext(null);
|
|
288
|
+
context$2.displayName = 'AccordionContext';
|
|
280
289
|
|
|
281
290
|
function useAccordionToggle(eventKey, onClick) {
|
|
282
|
-
var contextEventKey = useContext(context);
|
|
291
|
+
var contextEventKey = useContext(context$2);
|
|
283
292
|
var onSelect = useContext(SelectableContext);
|
|
284
293
|
return function (e) {
|
|
285
294
|
/*
|
|
@@ -291,7 +300,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
291
300
|
if (onClick) onClick(e);
|
|
292
301
|
};
|
|
293
302
|
}
|
|
294
|
-
var AccordionToggle =
|
|
303
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
295
304
|
var _ref$as = _ref.as,
|
|
296
305
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
297
306
|
children = _ref.children,
|
|
@@ -305,22 +314,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
305
314
|
props.type = 'button';
|
|
306
315
|
}
|
|
307
316
|
|
|
308
|
-
return /*#__PURE__*/
|
|
317
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
309
318
|
ref: ref,
|
|
310
319
|
onClick: accordionOnClick
|
|
311
320
|
}, props), children);
|
|
312
321
|
});
|
|
313
322
|
|
|
314
|
-
function ownerDocument(node) {
|
|
323
|
+
function ownerDocument$1(node) {
|
|
315
324
|
return node && node.ownerDocument || document;
|
|
316
325
|
}
|
|
317
326
|
|
|
318
327
|
function ownerWindow(node) {
|
|
319
|
-
var doc = ownerDocument(node);
|
|
328
|
+
var doc = ownerDocument$1(node);
|
|
320
329
|
return doc && doc.defaultView || window;
|
|
321
330
|
}
|
|
322
331
|
|
|
323
|
-
function getComputedStyle$
|
|
332
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
324
333
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
325
334
|
}
|
|
326
335
|
|
|
@@ -349,7 +358,7 @@ function style(node, property) {
|
|
|
349
358
|
var transforms = '';
|
|
350
359
|
|
|
351
360
|
if (typeof property === 'string') {
|
|
352
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
361
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
353
362
|
}
|
|
354
363
|
|
|
355
364
|
Object.keys(property).forEach(function (key) {
|
|
@@ -489,7 +498,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
489
498
|
exit: PropTypes.number,
|
|
490
499
|
appear: PropTypes.number
|
|
491
500
|
}).isRequired]) : null;
|
|
492
|
-
|
|
501
|
+
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
493
502
|
enter: PropTypes.string,
|
|
494
503
|
exit: PropTypes.string,
|
|
495
504
|
active: PropTypes.string
|
|
@@ -502,7 +511,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
502
511
|
exitActive: PropTypes.string
|
|
503
512
|
})]) : null;
|
|
504
513
|
|
|
505
|
-
var TransitionGroupContext =
|
|
514
|
+
var TransitionGroupContext = React.createContext(null);
|
|
506
515
|
|
|
507
516
|
var UNMOUNTED = 'unmounted';
|
|
508
517
|
var EXITED = 'exited';
|
|
@@ -871,35 +880,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
871
880
|
}
|
|
872
881
|
|
|
873
882
|
var _this$props = this.props,
|
|
874
|
-
children = _this$props.children
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
883
|
+
children = _this$props.children;
|
|
884
|
+
_this$props.in;
|
|
885
|
+
_this$props.mountOnEnter;
|
|
886
|
+
_this$props.unmountOnExit;
|
|
887
|
+
_this$props.appear;
|
|
888
|
+
_this$props.enter;
|
|
889
|
+
_this$props.exit;
|
|
890
|
+
_this$props.timeout;
|
|
891
|
+
_this$props.addEndListener;
|
|
892
|
+
_this$props.onEnter;
|
|
893
|
+
_this$props.onEntering;
|
|
894
|
+
_this$props.onEntered;
|
|
895
|
+
_this$props.onExit;
|
|
896
|
+
_this$props.onExiting;
|
|
897
|
+
_this$props.onExited;
|
|
898
|
+
_this$props.nodeRef;
|
|
899
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
891
900
|
|
|
892
901
|
return (
|
|
893
902
|
/*#__PURE__*/
|
|
894
903
|
// allows for nested Transitions
|
|
895
|
-
|
|
904
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
896
905
|
value: null
|
|
897
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
906
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
898
907
|
);
|
|
899
908
|
};
|
|
900
909
|
|
|
901
910
|
return Transition;
|
|
902
|
-
}(
|
|
911
|
+
}(React.Component);
|
|
903
912
|
|
|
904
913
|
Transition.contextType = TransitionGroupContext;
|
|
905
914
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1087,7 +1096,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1087
1096
|
onExited: PropTypes.func
|
|
1088
1097
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1089
1098
|
|
|
1090
|
-
function noop() {}
|
|
1099
|
+
function noop$5() {}
|
|
1091
1100
|
|
|
1092
1101
|
Transition.defaultProps = {
|
|
1093
1102
|
in: false,
|
|
@@ -1096,12 +1105,12 @@ Transition.defaultProps = {
|
|
|
1096
1105
|
appear: false,
|
|
1097
1106
|
enter: true,
|
|
1098
1107
|
exit: true,
|
|
1099
|
-
onEnter: noop,
|
|
1100
|
-
onEntering: noop,
|
|
1101
|
-
onEntered: noop,
|
|
1102
|
-
onExit: noop,
|
|
1103
|
-
onExiting: noop,
|
|
1104
|
-
onExited: noop
|
|
1108
|
+
onEnter: noop$5,
|
|
1109
|
+
onEntering: noop$5,
|
|
1110
|
+
onEntered: noop$5,
|
|
1111
|
+
onExit: noop$5,
|
|
1112
|
+
onExiting: noop$5,
|
|
1113
|
+
onExited: noop$5
|
|
1105
1114
|
};
|
|
1106
1115
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1107
1116
|
Transition.EXITED = EXITED;
|
|
@@ -1167,7 +1176,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1167
1176
|
}
|
|
1168
1177
|
|
|
1169
1178
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1170
|
-
var defaultProps = {
|
|
1179
|
+
var defaultProps$E = {
|
|
1171
1180
|
in: false,
|
|
1172
1181
|
timeout: 300,
|
|
1173
1182
|
mountOnEnter: false,
|
|
@@ -1175,7 +1184,7 @@ var defaultProps = {
|
|
|
1175
1184
|
appear: false,
|
|
1176
1185
|
getDimensionValue: getDefaultDimensionValue
|
|
1177
1186
|
};
|
|
1178
|
-
var Collapse =
|
|
1187
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1179
1188
|
var onEnter = _ref.onEnter,
|
|
1180
1189
|
onEntering = _ref.onEntering,
|
|
1181
1190
|
onEntered = _ref.onEntered,
|
|
@@ -1222,7 +1231,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1222
1231
|
elem.style[computedDimension] = null;
|
|
1223
1232
|
}, onExiting);
|
|
1224
1233
|
}, [computedDimension, onExiting]);
|
|
1225
|
-
return /*#__PURE__*/
|
|
1234
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1226
1235
|
, _extends({
|
|
1227
1236
|
ref: ref,
|
|
1228
1237
|
addEndListener: transitionEnd
|
|
@@ -1234,33 +1243,33 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1234
1243
|
onExit: handleExit,
|
|
1235
1244
|
onExiting: handleExiting
|
|
1236
1245
|
}), function (state, innerProps) {
|
|
1237
|
-
return
|
|
1246
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1238
1247
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1239
1248
|
}));
|
|
1240
1249
|
});
|
|
1241
1250
|
}); // @ts-ignore
|
|
1242
1251
|
|
|
1243
1252
|
// @ts-ignore
|
|
1244
|
-
Collapse.defaultProps = defaultProps;
|
|
1253
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1245
1254
|
|
|
1246
|
-
var AccordionCollapse =
|
|
1255
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1247
1256
|
var children = _ref.children,
|
|
1248
1257
|
eventKey = _ref.eventKey,
|
|
1249
1258
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1250
1259
|
|
|
1251
|
-
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1260
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1252
1261
|
// from collapsing the accordion when clicked.
|
|
1253
1262
|
|
|
1254
|
-
return /*#__PURE__*/
|
|
1263
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1255
1264
|
value: null
|
|
1256
|
-
}, /*#__PURE__*/
|
|
1265
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1257
1266
|
ref: ref,
|
|
1258
1267
|
in: contextEventKey === eventKey
|
|
1259
|
-
}, props), /*#__PURE__*/
|
|
1268
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1260
1269
|
});
|
|
1261
1270
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1262
1271
|
|
|
1263
|
-
var Accordion =
|
|
1272
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1264
1273
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1265
1274
|
activeKey: 'onSelect'
|
|
1266
1275
|
}),
|
|
@@ -1274,11 +1283,11 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1274
1283
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1275
1284
|
|
|
1276
1285
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1277
|
-
return /*#__PURE__*/
|
|
1286
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
1278
1287
|
value: activeKey || null
|
|
1279
|
-
}, /*#__PURE__*/
|
|
1288
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1280
1289
|
value: onSelect || null
|
|
1281
|
-
}, /*#__PURE__*/
|
|
1290
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1282
1291
|
ref: ref
|
|
1283
1292
|
}, controlledProps, {
|
|
1284
1293
|
className: finalClassName
|
|
@@ -1314,7 +1323,7 @@ function useEventCallback(fn) {
|
|
|
1314
1323
|
}
|
|
1315
1324
|
|
|
1316
1325
|
var _fadeStyles;
|
|
1317
|
-
var defaultProps$
|
|
1326
|
+
var defaultProps$D = {
|
|
1318
1327
|
in: false,
|
|
1319
1328
|
timeout: 300,
|
|
1320
1329
|
mountOnEnter: false,
|
|
@@ -1322,7 +1331,7 @@ var defaultProps$1 = {
|
|
|
1322
1331
|
appear: false
|
|
1323
1332
|
};
|
|
1324
1333
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1325
|
-
var Fade =
|
|
1334
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1326
1335
|
var className = _ref.className,
|
|
1327
1336
|
children = _ref.children,
|
|
1328
1337
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1331,51 +1340,51 @@ var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
|
1331
1340
|
triggerBrowserReflow(node);
|
|
1332
1341
|
if (props.onEnter) props.onEnter(node);
|
|
1333
1342
|
}, [props]);
|
|
1334
|
-
return /*#__PURE__*/
|
|
1343
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1335
1344
|
ref: ref,
|
|
1336
1345
|
addEndListener: transitionEnd
|
|
1337
1346
|
}, props, {
|
|
1338
1347
|
onEnter: handleEnter
|
|
1339
1348
|
}), function (status, innerProps) {
|
|
1340
|
-
return
|
|
1349
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1341
1350
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1342
1351
|
}));
|
|
1343
1352
|
});
|
|
1344
1353
|
});
|
|
1345
|
-
Fade.defaultProps = defaultProps$
|
|
1354
|
+
Fade.defaultProps = defaultProps$D;
|
|
1346
1355
|
Fade.displayName = 'Fade';
|
|
1347
1356
|
|
|
1348
|
-
var propTypes = {
|
|
1357
|
+
var propTypes$a = {
|
|
1349
1358
|
label: PropTypes.string.isRequired,
|
|
1350
1359
|
onClick: PropTypes.func
|
|
1351
1360
|
};
|
|
1352
|
-
var defaultProps$
|
|
1361
|
+
var defaultProps$C = {
|
|
1353
1362
|
label: 'Close'
|
|
1354
1363
|
};
|
|
1355
|
-
var CloseButton =
|
|
1364
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1356
1365
|
var label = _ref.label,
|
|
1357
1366
|
onClick = _ref.onClick,
|
|
1358
1367
|
className = _ref.className,
|
|
1359
1368
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1360
1369
|
|
|
1361
|
-
return /*#__PURE__*/
|
|
1370
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1362
1371
|
ref: ref,
|
|
1363
1372
|
type: "button",
|
|
1364
1373
|
className: classnames('close', className),
|
|
1365
1374
|
onClick: onClick
|
|
1366
|
-
}, props), /*#__PURE__*/
|
|
1375
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1367
1376
|
"aria-hidden": "true"
|
|
1368
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1377
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1369
1378
|
className: "sr-only"
|
|
1370
1379
|
}, label));
|
|
1371
1380
|
});
|
|
1372
1381
|
CloseButton.displayName = 'CloseButton';
|
|
1373
|
-
CloseButton.propTypes = propTypes;
|
|
1374
|
-
CloseButton.defaultProps = defaultProps$
|
|
1382
|
+
CloseButton.propTypes = propTypes$a;
|
|
1383
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1375
1384
|
|
|
1376
1385
|
var divWithClassName = (function (className) {
|
|
1377
|
-
return
|
|
1378
|
-
return /*#__PURE__*/
|
|
1386
|
+
return React.forwardRef(function (p, ref) {
|
|
1387
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1379
1388
|
ref: ref,
|
|
1380
1389
|
className: classnames(p.className, className)
|
|
1381
1390
|
}));
|
|
@@ -1401,7 +1410,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1401
1410
|
Component = _ref.Component,
|
|
1402
1411
|
defaultProps = _ref.defaultProps;
|
|
1403
1412
|
|
|
1404
|
-
var BsComponent =
|
|
1413
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1405
1414
|
var className = _ref2.className,
|
|
1406
1415
|
bsPrefix = _ref2.bsPrefix,
|
|
1407
1416
|
_ref2$as = _ref2.as,
|
|
@@ -1409,7 +1418,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1409
1418
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1410
1419
|
|
|
1411
1420
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1412
|
-
return /*#__PURE__*/
|
|
1421
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1413
1422
|
ref: ref,
|
|
1414
1423
|
className: classnames(className, resolvedPrefix)
|
|
1415
1424
|
}, props));
|
|
@@ -1431,7 +1440,7 @@ function isTrivialHref(href) {
|
|
|
1431
1440
|
*/
|
|
1432
1441
|
|
|
1433
1442
|
|
|
1434
|
-
var SafeAnchor =
|
|
1443
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1435
1444
|
var _ref$as = _ref.as,
|
|
1436
1445
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1437
1446
|
disabled = _ref.disabled,
|
|
@@ -1475,7 +1484,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1475
1484
|
props['aria-disabled'] = true;
|
|
1476
1485
|
}
|
|
1477
1486
|
|
|
1478
|
-
return /*#__PURE__*/
|
|
1487
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1479
1488
|
ref: ref
|
|
1480
1489
|
}, props, {
|
|
1481
1490
|
onClick: handleClick,
|
|
@@ -1484,20 +1493,20 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1484
1493
|
});
|
|
1485
1494
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1486
1495
|
|
|
1487
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1488
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1496
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1497
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1489
1498
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1490
|
-
Component: DivStyledAsH4
|
|
1499
|
+
Component: DivStyledAsH4$1
|
|
1491
1500
|
});
|
|
1492
1501
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1493
1502
|
Component: SafeAnchor
|
|
1494
1503
|
});
|
|
1495
|
-
var defaultProps$
|
|
1504
|
+
var defaultProps$B = {
|
|
1496
1505
|
show: true,
|
|
1497
1506
|
transition: Fade,
|
|
1498
1507
|
closeLabel: 'Close alert'
|
|
1499
1508
|
};
|
|
1500
|
-
var Alert =
|
|
1509
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1501
1510
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1502
1511
|
show: 'onClose'
|
|
1503
1512
|
}),
|
|
@@ -1519,17 +1528,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1519
1528
|
}
|
|
1520
1529
|
});
|
|
1521
1530
|
var Transition = transition === true ? Fade : transition;
|
|
1522
|
-
var alert = /*#__PURE__*/
|
|
1531
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1523
1532
|
role: "alert"
|
|
1524
1533
|
}, Transition ? props : undefined, {
|
|
1525
1534
|
ref: ref,
|
|
1526
1535
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1527
|
-
}), dismissible && /*#__PURE__*/
|
|
1536
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1528
1537
|
onClick: handleClose,
|
|
1529
1538
|
label: closeLabel
|
|
1530
1539
|
}), children);
|
|
1531
1540
|
if (!Transition) return show ? alert : null;
|
|
1532
|
-
return /*#__PURE__*/
|
|
1541
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1533
1542
|
unmountOnExit: true
|
|
1534
1543
|
}, props, {
|
|
1535
1544
|
ref: undefined,
|
|
@@ -1537,14 +1546,14 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1537
1546
|
}), alert);
|
|
1538
1547
|
});
|
|
1539
1548
|
Alert.displayName = 'Alert';
|
|
1540
|
-
Alert.defaultProps = defaultProps$
|
|
1549
|
+
Alert.defaultProps = defaultProps$B;
|
|
1541
1550
|
Alert.Link = AlertLink;
|
|
1542
1551
|
Alert.Heading = AlertHeading;
|
|
1543
1552
|
|
|
1544
|
-
var defaultProps$
|
|
1553
|
+
var defaultProps$A = {
|
|
1545
1554
|
pill: false
|
|
1546
1555
|
};
|
|
1547
|
-
var Badge =
|
|
1556
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1548
1557
|
var bsPrefix = _ref.bsPrefix,
|
|
1549
1558
|
variant = _ref.variant,
|
|
1550
1559
|
pill = _ref.pill,
|
|
@@ -1554,20 +1563,20 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1554
1563
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1555
1564
|
|
|
1556
1565
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1557
|
-
return /*#__PURE__*/
|
|
1566
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1558
1567
|
ref: ref
|
|
1559
1568
|
}, props, {
|
|
1560
1569
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1561
1570
|
}));
|
|
1562
1571
|
});
|
|
1563
1572
|
Badge.displayName = 'Badge';
|
|
1564
|
-
Badge.defaultProps = defaultProps$
|
|
1573
|
+
Badge.defaultProps = defaultProps$A;
|
|
1565
1574
|
|
|
1566
|
-
var defaultProps$
|
|
1575
|
+
var defaultProps$z = {
|
|
1567
1576
|
active: false,
|
|
1568
1577
|
linkProps: {}
|
|
1569
1578
|
};
|
|
1570
|
-
var BreadcrumbItem =
|
|
1579
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1571
1580
|
var bsPrefix = _ref.bsPrefix,
|
|
1572
1581
|
active = _ref.active,
|
|
1573
1582
|
children = _ref.children,
|
|
@@ -1583,27 +1592,27 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1583
1592
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1584
1593
|
|
|
1585
1594
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1586
|
-
return /*#__PURE__*/
|
|
1595
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1587
1596
|
ref: ref
|
|
1588
1597
|
}, props, {
|
|
1589
1598
|
className: classnames(prefix, className, {
|
|
1590
1599
|
active: active
|
|
1591
1600
|
}),
|
|
1592
1601
|
"aria-current": active ? 'page' : undefined
|
|
1593
|
-
}), active ? children : /*#__PURE__*/
|
|
1602
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1594
1603
|
href: href,
|
|
1595
1604
|
title: title,
|
|
1596
1605
|
target: target
|
|
1597
1606
|
}), children));
|
|
1598
1607
|
});
|
|
1599
1608
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1600
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1609
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1601
1610
|
|
|
1602
|
-
var defaultProps$
|
|
1611
|
+
var defaultProps$y = {
|
|
1603
1612
|
label: 'breadcrumb',
|
|
1604
1613
|
listProps: {}
|
|
1605
1614
|
};
|
|
1606
|
-
var Breadcrumb =
|
|
1615
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1607
1616
|
var bsPrefix = _ref.bsPrefix,
|
|
1608
1617
|
className = _ref.className,
|
|
1609
1618
|
listProps = _ref.listProps,
|
|
@@ -1614,24 +1623,24 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1614
1623
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1615
1624
|
|
|
1616
1625
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1617
|
-
return /*#__PURE__*/
|
|
1626
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1618
1627
|
"aria-label": label,
|
|
1619
1628
|
className: className,
|
|
1620
1629
|
ref: ref
|
|
1621
|
-
}, props), /*#__PURE__*/
|
|
1630
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1622
1631
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1623
1632
|
}), children));
|
|
1624
1633
|
});
|
|
1625
1634
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1626
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1635
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1627
1636
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1628
1637
|
|
|
1629
|
-
var defaultProps$
|
|
1638
|
+
var defaultProps$x = {
|
|
1630
1639
|
variant: 'primary',
|
|
1631
1640
|
active: false,
|
|
1632
1641
|
disabled: false
|
|
1633
1642
|
};
|
|
1634
|
-
var Button =
|
|
1643
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1635
1644
|
var bsPrefix = _ref.bsPrefix,
|
|
1636
1645
|
variant = _ref.variant,
|
|
1637
1646
|
size = _ref.size,
|
|
@@ -1646,7 +1655,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1646
1655
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1647
1656
|
|
|
1648
1657
|
if (props.href) {
|
|
1649
|
-
return /*#__PURE__*/
|
|
1658
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1650
1659
|
as: as,
|
|
1651
1660
|
ref: ref,
|
|
1652
1661
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1664,19 +1673,19 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1664
1673
|
}
|
|
1665
1674
|
|
|
1666
1675
|
var Component = as || 'button';
|
|
1667
|
-
return /*#__PURE__*/
|
|
1676
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1668
1677
|
className: classes
|
|
1669
1678
|
}));
|
|
1670
1679
|
});
|
|
1671
1680
|
Button.displayName = 'Button';
|
|
1672
|
-
Button.defaultProps = defaultProps$
|
|
1681
|
+
Button.defaultProps = defaultProps$x;
|
|
1673
1682
|
|
|
1674
|
-
var defaultProps$
|
|
1683
|
+
var defaultProps$w = {
|
|
1675
1684
|
vertical: false,
|
|
1676
1685
|
toggle: false,
|
|
1677
1686
|
role: 'group'
|
|
1678
1687
|
};
|
|
1679
|
-
var ButtonGroup =
|
|
1688
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1680
1689
|
var bsPrefix = _ref.bsPrefix,
|
|
1681
1690
|
size = _ref.size,
|
|
1682
1691
|
toggle = _ref.toggle,
|
|
@@ -1689,38 +1698,38 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1689
1698
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1690
1699
|
var baseClass = prefix;
|
|
1691
1700
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1692
|
-
return /*#__PURE__*/
|
|
1701
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1693
1702
|
ref: ref,
|
|
1694
1703
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1695
1704
|
}));
|
|
1696
1705
|
});
|
|
1697
1706
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1698
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1707
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1699
1708
|
|
|
1700
|
-
var defaultProps$
|
|
1709
|
+
var defaultProps$v = {
|
|
1701
1710
|
role: 'toolbar'
|
|
1702
1711
|
};
|
|
1703
|
-
var ButtonToolbar =
|
|
1712
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1704
1713
|
var bsPrefix = _ref.bsPrefix,
|
|
1705
1714
|
className = _ref.className,
|
|
1706
1715
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1707
1716
|
|
|
1708
1717
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1709
|
-
return /*#__PURE__*/
|
|
1718
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1710
1719
|
ref: ref,
|
|
1711
1720
|
className: classnames(className, prefix)
|
|
1712
1721
|
}));
|
|
1713
1722
|
});
|
|
1714
1723
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1715
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1724
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1716
1725
|
|
|
1717
|
-
var context$1 =
|
|
1726
|
+
var context$1 = React.createContext(null);
|
|
1718
1727
|
context$1.displayName = 'CardContext';
|
|
1719
1728
|
|
|
1720
|
-
var defaultProps$
|
|
1729
|
+
var defaultProps$u = {
|
|
1721
1730
|
variant: null
|
|
1722
1731
|
};
|
|
1723
|
-
var CardImg =
|
|
1732
|
+
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
|
|
1724
1733
|
function (_ref, ref) {
|
|
1725
1734
|
var bsPrefix = _ref.bsPrefix,
|
|
1726
1735
|
className = _ref.className,
|
|
@@ -1730,13 +1739,13 @@ function (_ref, ref) {
|
|
|
1730
1739
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1731
1740
|
|
|
1732
1741
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1733
|
-
return /*#__PURE__*/
|
|
1742
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1734
1743
|
ref: ref,
|
|
1735
1744
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1736
1745
|
}, props));
|
|
1737
1746
|
});
|
|
1738
1747
|
CardImg.displayName = 'CardImg';
|
|
1739
|
-
CardImg.defaultProps = defaultProps$
|
|
1748
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1740
1749
|
|
|
1741
1750
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1742
1751
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1756,10 +1765,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1756
1765
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1757
1766
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1758
1767
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1759
|
-
var defaultProps$
|
|
1768
|
+
var defaultProps$t = {
|
|
1760
1769
|
body: false
|
|
1761
1770
|
};
|
|
1762
|
-
var Card =
|
|
1771
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1763
1772
|
var bsPrefix = _ref.bsPrefix,
|
|
1764
1773
|
className = _ref.className,
|
|
1765
1774
|
bg = _ref.bg,
|
|
@@ -1777,19 +1786,19 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1777
1786
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1778
1787
|
};
|
|
1779
1788
|
}, [prefix]);
|
|
1780
|
-
return /*#__PURE__*/
|
|
1789
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1781
1790
|
value: cardContext
|
|
1782
|
-
}, /*#__PURE__*/
|
|
1791
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1783
1792
|
ref: ref
|
|
1784
1793
|
}, props, {
|
|
1785
1794
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1786
1795
|
}), body ?
|
|
1787
1796
|
/*#__PURE__*/
|
|
1788
1797
|
// @ts-ignore
|
|
1789
|
-
|
|
1798
|
+
React.createElement(CardBody, null, children) : children));
|
|
1790
1799
|
});
|
|
1791
1800
|
Card.displayName = 'Card';
|
|
1792
|
-
Card.defaultProps = defaultProps$
|
|
1801
|
+
Card.defaultProps = defaultProps$t;
|
|
1793
1802
|
Card.Img = CardImg;
|
|
1794
1803
|
Card.Title = CardTitle;
|
|
1795
1804
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1976,7 +1985,7 @@ function useTimeout() {
|
|
|
1976
1985
|
|
|
1977
1986
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1978
1987
|
|
|
1979
|
-
var CarouselItem =
|
|
1988
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1980
1989
|
var _ref$as = _ref.as,
|
|
1981
1990
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1982
1991
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -1985,7 +1994,7 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1985
1994
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1986
1995
|
|
|
1987
1996
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1988
|
-
return /*#__PURE__*/
|
|
1997
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1989
1998
|
ref: ref
|
|
1990
1999
|
}, props, {
|
|
1991
2000
|
className: finalClassName
|
|
@@ -2004,8 +2013,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
2004
2013
|
|
|
2005
2014
|
function map(children, func) {
|
|
2006
2015
|
var index = 0;
|
|
2007
|
-
return
|
|
2008
|
-
return
|
|
2016
|
+
return React.Children.map(children, function (child) {
|
|
2017
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
2009
2018
|
});
|
|
2010
2019
|
}
|
|
2011
2020
|
/**
|
|
@@ -2018,13 +2027,13 @@ function map(children, func) {
|
|
|
2018
2027
|
|
|
2019
2028
|
function forEach(children, func) {
|
|
2020
2029
|
var index = 0;
|
|
2021
|
-
|
|
2022
|
-
if (
|
|
2030
|
+
React.Children.forEach(children, function (child) {
|
|
2031
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
2023
2032
|
});
|
|
2024
2033
|
}
|
|
2025
2034
|
|
|
2026
2035
|
var SWIPE_THRESHOLD = 40;
|
|
2027
|
-
var propTypes$
|
|
2036
|
+
var propTypes$9 = {
|
|
2028
2037
|
/**
|
|
2029
2038
|
* @default 'carousel'
|
|
2030
2039
|
*/
|
|
@@ -2126,7 +2135,7 @@ var propTypes$1 = {
|
|
|
2126
2135
|
*/
|
|
2127
2136
|
nextLabel: PropTypes.string
|
|
2128
2137
|
};
|
|
2129
|
-
var defaultProps$
|
|
2138
|
+
var defaultProps$s = {
|
|
2130
2139
|
slide: true,
|
|
2131
2140
|
fade: false,
|
|
2132
2141
|
controls: true,
|
|
@@ -2137,12 +2146,12 @@ var defaultProps$c = {
|
|
|
2137
2146
|
pause: 'hover',
|
|
2138
2147
|
wrap: true,
|
|
2139
2148
|
touch: true,
|
|
2140
|
-
prevIcon: /*#__PURE__*/
|
|
2149
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2141
2150
|
"aria-hidden": "true",
|
|
2142
2151
|
className: "carousel-control-prev-icon"
|
|
2143
2152
|
}),
|
|
2144
2153
|
prevLabel: 'Previous',
|
|
2145
|
-
nextIcon: /*#__PURE__*/
|
|
2154
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2146
2155
|
"aria-hidden": "true",
|
|
2147
2156
|
className: "carousel-control-next-icon"
|
|
2148
2157
|
}),
|
|
@@ -2447,7 +2456,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2447
2456
|
};
|
|
2448
2457
|
});
|
|
2449
2458
|
}, [indicators, numChildren, onSelect]);
|
|
2450
|
-
return /*#__PURE__*/
|
|
2459
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2451
2460
|
ref: elementRef
|
|
2452
2461
|
}, props, {
|
|
2453
2462
|
onKeyDown: handleKeyDown,
|
|
@@ -2457,52 +2466,52 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2457
2466
|
onTouchMove: handleTouchMove,
|
|
2458
2467
|
onTouchEnd: handleTouchEnd,
|
|
2459
2468
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2460
|
-
}), indicators && /*#__PURE__*/
|
|
2469
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2461
2470
|
className: prefix + "-indicators"
|
|
2462
2471
|
}, map(children, function (_child, index) {
|
|
2463
|
-
return /*#__PURE__*/
|
|
2472
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2464
2473
|
key: index,
|
|
2465
2474
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2466
2475
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2467
2476
|
});
|
|
2468
|
-
})), /*#__PURE__*/
|
|
2477
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2469
2478
|
className: prefix + "-inner"
|
|
2470
2479
|
}, map(children, function (child, index) {
|
|
2471
2480
|
var isActive = index === renderedActiveIndex;
|
|
2472
|
-
return slide ? /*#__PURE__*/
|
|
2481
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2473
2482
|
in: isActive,
|
|
2474
2483
|
onEnter: isActive ? handleEnter : undefined,
|
|
2475
2484
|
onEntered: isActive ? handleEntered : undefined,
|
|
2476
2485
|
addEndListener: transitionEnd
|
|
2477
2486
|
}, function (status) {
|
|
2478
|
-
return
|
|
2487
|
+
return React.cloneElement(child, {
|
|
2479
2488
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2480
2489
|
});
|
|
2481
|
-
}) :
|
|
2490
|
+
}) : React.cloneElement(child, {
|
|
2482
2491
|
className: classnames(child.props.className, isActive && 'active')
|
|
2483
2492
|
});
|
|
2484
|
-
})), controls && /*#__PURE__*/
|
|
2493
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2485
2494
|
className: prefix + "-control-prev",
|
|
2486
2495
|
onClick: prev
|
|
2487
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2496
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2488
2497
|
className: "sr-only"
|
|
2489
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2498
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2490
2499
|
className: prefix + "-control-next",
|
|
2491
2500
|
onClick: next
|
|
2492
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2501
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2493
2502
|
className: "sr-only"
|
|
2494
2503
|
}, nextLabel))));
|
|
2495
2504
|
}
|
|
2496
2505
|
|
|
2497
|
-
var Carousel =
|
|
2506
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2498
2507
|
Carousel.displayName = 'Carousel';
|
|
2499
|
-
Carousel.propTypes = propTypes$
|
|
2500
|
-
Carousel.defaultProps = defaultProps$
|
|
2508
|
+
Carousel.propTypes = propTypes$9;
|
|
2509
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2501
2510
|
Carousel.Caption = CarouselCaption;
|
|
2502
2511
|
Carousel.Item = CarouselItem;
|
|
2503
2512
|
|
|
2504
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2505
|
-
var Col =
|
|
2513
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2514
|
+
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
|
|
2506
2515
|
function (_ref, ref) {
|
|
2507
2516
|
var bsPrefix = _ref.bsPrefix,
|
|
2508
2517
|
className = _ref.className,
|
|
@@ -2513,7 +2522,7 @@ function (_ref, ref) {
|
|
|
2513
2522
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2514
2523
|
var spans = [];
|
|
2515
2524
|
var classes = [];
|
|
2516
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2525
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2517
2526
|
var propValue = props[brkPoint];
|
|
2518
2527
|
delete props[brkPoint];
|
|
2519
2528
|
var span;
|
|
@@ -2539,7 +2548,7 @@ function (_ref, ref) {
|
|
|
2539
2548
|
spans.push(prefix); // plain 'col'
|
|
2540
2549
|
}
|
|
2541
2550
|
|
|
2542
|
-
return /*#__PURE__*/
|
|
2551
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2543
2552
|
ref: ref,
|
|
2544
2553
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2545
2554
|
}));
|
|
@@ -2648,40 +2657,7 @@ function useForceUpdate() {
|
|
|
2648
2657
|
return dispatch;
|
|
2649
2658
|
}
|
|
2650
2659
|
|
|
2651
|
-
var DropdownContext = /*#__PURE__*/
|
|
2652
|
-
|
|
2653
|
-
function _extends$1() {
|
|
2654
|
-
_extends$1 = Object.assign || function (target) {
|
|
2655
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2656
|
-
var source = arguments[i];
|
|
2657
|
-
|
|
2658
|
-
for (var key in source) {
|
|
2659
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2660
|
-
target[key] = source[key];
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
}
|
|
2664
|
-
|
|
2665
|
-
return target;
|
|
2666
|
-
};
|
|
2667
|
-
|
|
2668
|
-
return _extends$1.apply(this, arguments);
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
2672
|
-
if (source == null) return {};
|
|
2673
|
-
var target = {};
|
|
2674
|
-
var sourceKeys = Object.keys(source);
|
|
2675
|
-
var key, i;
|
|
2676
|
-
|
|
2677
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
2678
|
-
key = sourceKeys[i];
|
|
2679
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
2680
|
-
target[key] = source[key];
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
|
-
return target;
|
|
2684
|
-
}
|
|
2660
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2685
2661
|
|
|
2686
2662
|
function useSafeState(state) {
|
|
2687
2663
|
var isMounted = useMounted();
|
|
@@ -2727,21 +2703,50 @@ function getBasePlacement(placement) {
|
|
|
2727
2703
|
return placement.split('-')[0];
|
|
2728
2704
|
}
|
|
2729
2705
|
|
|
2730
|
-
|
|
2706
|
+
function getBoundingClientRect(element) {
|
|
2707
|
+
var rect = element.getBoundingClientRect();
|
|
2708
|
+
return {
|
|
2709
|
+
width: rect.width,
|
|
2710
|
+
height: rect.height,
|
|
2711
|
+
top: rect.top,
|
|
2712
|
+
right: rect.right,
|
|
2713
|
+
bottom: rect.bottom,
|
|
2714
|
+
left: rect.left,
|
|
2715
|
+
x: rect.left,
|
|
2716
|
+
y: rect.top
|
|
2717
|
+
};
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2731
2720
|
// means it doesn't take into account transforms.
|
|
2721
|
+
|
|
2732
2722
|
function getLayoutRect(element) {
|
|
2723
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2724
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2725
|
+
|
|
2726
|
+
var width = element.offsetWidth;
|
|
2727
|
+
var height = element.offsetHeight;
|
|
2728
|
+
|
|
2729
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2730
|
+
width = clientRect.width;
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2734
|
+
height = clientRect.height;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2733
2737
|
return {
|
|
2734
2738
|
x: element.offsetLeft,
|
|
2735
2739
|
y: element.offsetTop,
|
|
2736
|
-
width:
|
|
2737
|
-
height:
|
|
2740
|
+
width: width,
|
|
2741
|
+
height: height
|
|
2738
2742
|
};
|
|
2739
2743
|
}
|
|
2740
2744
|
|
|
2741
|
-
/*:: import type { Window } from '../types'; */
|
|
2742
|
-
|
|
2743
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2744
2745
|
function getWindow(node) {
|
|
2746
|
+
if (node == null) {
|
|
2747
|
+
return window;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2745
2750
|
if (node.toString() !== '[object Window]') {
|
|
2746
2751
|
var ownerDocument = node.ownerDocument;
|
|
2747
2752
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2750,31 +2755,27 @@ function getWindow(node) {
|
|
|
2750
2755
|
return node;
|
|
2751
2756
|
}
|
|
2752
2757
|
|
|
2753
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2754
|
-
Element); */
|
|
2755
|
-
|
|
2756
2758
|
function isElement(node) {
|
|
2757
2759
|
var OwnElement = getWindow(node).Element;
|
|
2758
2760
|
return node instanceof OwnElement || node instanceof Element;
|
|
2759
2761
|
}
|
|
2760
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2761
|
-
HTMLElement); */
|
|
2762
|
-
|
|
2763
2762
|
|
|
2764
2763
|
function isHTMLElement(node) {
|
|
2765
2764
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2766
2765
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2767
2766
|
}
|
|
2768
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2769
|
-
ShadowRoot); */
|
|
2770
|
-
|
|
2771
2767
|
|
|
2772
2768
|
function isShadowRoot(node) {
|
|
2769
|
+
// IE 11 has no ShadowRoot
|
|
2770
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2771
|
+
return false;
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2773
2774
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2774
2775
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2775
2776
|
}
|
|
2776
2777
|
|
|
2777
|
-
function contains(parent, child) {
|
|
2778
|
+
function contains$1(parent, child) {
|
|
2778
2779
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2779
2780
|
|
|
2780
2781
|
if (parent.contains(child)) {
|
|
@@ -2801,7 +2802,7 @@ function getNodeName(element) {
|
|
|
2801
2802
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2802
2803
|
}
|
|
2803
2804
|
|
|
2804
|
-
function getComputedStyle$
|
|
2805
|
+
function getComputedStyle$1(element) {
|
|
2805
2806
|
return getWindow(element).getComputedStyle(element);
|
|
2806
2807
|
}
|
|
2807
2808
|
|
|
@@ -2824,9 +2825,8 @@ function getParentNode(element) {
|
|
|
2824
2825
|
// $FlowFixMe[incompatible-return]
|
|
2825
2826
|
// $FlowFixMe[prop-missing]
|
|
2826
2827
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2827
|
-
element.parentNode || // DOM Element detected
|
|
2828
|
-
|
|
2829
|
-
element.host || // ShadowRoot detected
|
|
2828
|
+
element.parentNode || ( // DOM Element detected
|
|
2829
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2830
2830
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2831
2831
|
getDocumentElement(element) // fallback
|
|
2832
2832
|
|
|
@@ -2835,33 +2835,25 @@ function getParentNode(element) {
|
|
|
2835
2835
|
|
|
2836
2836
|
function getTrueOffsetParent(element) {
|
|
2837
2837
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2838
|
-
getComputedStyle$
|
|
2838
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2839
2839
|
return null;
|
|
2840
2840
|
}
|
|
2841
2841
|
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
if (offsetParent) {
|
|
2845
|
-
var html = getDocumentElement(offsetParent);
|
|
2846
|
-
|
|
2847
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2848
|
-
return html;
|
|
2849
|
-
}
|
|
2850
|
-
}
|
|
2851
|
-
|
|
2852
|
-
return offsetParent;
|
|
2842
|
+
return element.offsetParent;
|
|
2853
2843
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2854
2844
|
// return the containing block
|
|
2855
2845
|
|
|
2856
2846
|
|
|
2857
2847
|
function getContainingBlock(element) {
|
|
2848
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2858
2849
|
var currentNode = getParentNode(element);
|
|
2859
2850
|
|
|
2860
2851
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2861
|
-
var css = getComputedStyle$
|
|
2852
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2862
2853
|
// create a containing block.
|
|
2854
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2863
2855
|
|
|
2864
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2856
|
+
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') {
|
|
2865
2857
|
return currentNode;
|
|
2866
2858
|
} else {
|
|
2867
2859
|
currentNode = currentNode.parentNode;
|
|
@@ -2877,11 +2869,11 @@ function getOffsetParent(element) {
|
|
|
2877
2869
|
var window = getWindow(element);
|
|
2878
2870
|
var offsetParent = getTrueOffsetParent(element);
|
|
2879
2871
|
|
|
2880
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2872
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2881
2873
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2882
2874
|
}
|
|
2883
2875
|
|
|
2884
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2876
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2885
2877
|
return window;
|
|
2886
2878
|
}
|
|
2887
2879
|
|
|
@@ -2892,8 +2884,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2892
2884
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2893
2885
|
}
|
|
2894
2886
|
|
|
2895
|
-
|
|
2896
|
-
|
|
2887
|
+
var max = Math.max;
|
|
2888
|
+
var min = Math.min;
|
|
2889
|
+
var round = Math.round;
|
|
2890
|
+
|
|
2891
|
+
function within(min$1, value, max$1) {
|
|
2892
|
+
return max(min$1, min(value, max$1));
|
|
2897
2893
|
}
|
|
2898
2894
|
|
|
2899
2895
|
function getFreshSideObject() {
|
|
@@ -2906,7 +2902,7 @@ function getFreshSideObject() {
|
|
|
2906
2902
|
}
|
|
2907
2903
|
|
|
2908
2904
|
function mergePaddingObject(paddingObject) {
|
|
2909
|
-
return Object.assign(
|
|
2905
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2910
2906
|
}
|
|
2911
2907
|
|
|
2912
2908
|
function expandToHashMap(value, keys) {
|
|
@@ -2916,11 +2912,19 @@ function expandToHashMap(value, keys) {
|
|
|
2916
2912
|
}, {});
|
|
2917
2913
|
}
|
|
2918
2914
|
|
|
2915
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2916
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2917
|
+
placement: state.placement
|
|
2918
|
+
})) : padding;
|
|
2919
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2920
|
+
};
|
|
2921
|
+
|
|
2919
2922
|
function arrow(_ref) {
|
|
2920
2923
|
var _state$modifiersData$;
|
|
2921
2924
|
|
|
2922
2925
|
var state = _ref.state,
|
|
2923
|
-
name = _ref.name
|
|
2926
|
+
name = _ref.name,
|
|
2927
|
+
options = _ref.options;
|
|
2924
2928
|
var arrowElement = state.elements.arrow;
|
|
2925
2929
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2926
2930
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2932,7 +2936,7 @@ function arrow(_ref) {
|
|
|
2932
2936
|
return;
|
|
2933
2937
|
}
|
|
2934
2938
|
|
|
2935
|
-
var paddingObject =
|
|
2939
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2936
2940
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2937
2941
|
var minProp = axis === 'y' ? top : left;
|
|
2938
2942
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2952,14 +2956,11 @@ function arrow(_ref) {
|
|
|
2952
2956
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2953
2957
|
}
|
|
2954
2958
|
|
|
2955
|
-
function effect(_ref2) {
|
|
2959
|
+
function effect$1(_ref2) {
|
|
2956
2960
|
var state = _ref2.state,
|
|
2957
|
-
options = _ref2.options
|
|
2958
|
-
name = _ref2.name;
|
|
2961
|
+
options = _ref2.options;
|
|
2959
2962
|
var _options$element = options.element,
|
|
2960
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2961
|
-
_options$padding = options.padding,
|
|
2962
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2963
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2963
2964
|
|
|
2964
2965
|
if (arrowElement == null) {
|
|
2965
2966
|
return;
|
|
@@ -2980,7 +2981,7 @@ function effect(_ref2) {
|
|
|
2980
2981
|
}
|
|
2981
2982
|
}
|
|
2982
2983
|
|
|
2983
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2984
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2984
2985
|
if (process.env.NODE_ENV !== "production") {
|
|
2985
2986
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2986
2987
|
}
|
|
@@ -2989,9 +2990,6 @@ function effect(_ref2) {
|
|
|
2989
2990
|
}
|
|
2990
2991
|
|
|
2991
2992
|
state.elements.arrow = arrowElement;
|
|
2992
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2993
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2994
|
-
};
|
|
2995
2993
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2996
2994
|
|
|
2997
2995
|
|
|
@@ -3000,7 +2998,7 @@ var arrow$1 = {
|
|
|
3000
2998
|
enabled: true,
|
|
3001
2999
|
phase: 'main',
|
|
3002
3000
|
fn: arrow,
|
|
3003
|
-
effect: effect,
|
|
3001
|
+
effect: effect$1,
|
|
3004
3002
|
requires: ['popperOffsets'],
|
|
3005
3003
|
requiresIfExists: ['preventOverflow']
|
|
3006
3004
|
};
|
|
@@ -3020,8 +3018,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
3020
3018
|
var win = window;
|
|
3021
3019
|
var dpr = win.devicePixelRatio || 1;
|
|
3022
3020
|
return {
|
|
3023
|
-
x:
|
|
3024
|
-
y:
|
|
3021
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
3022
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
3025
3023
|
};
|
|
3026
3024
|
}
|
|
3027
3025
|
|
|
@@ -3037,7 +3035,7 @@ function mapToStyles(_ref2) {
|
|
|
3037
3035
|
adaptive = _ref2.adaptive,
|
|
3038
3036
|
roundOffsets = _ref2.roundOffsets;
|
|
3039
3037
|
|
|
3040
|
-
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
3038
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
3041
3039
|
_ref3$x = _ref3.x,
|
|
3042
3040
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
3043
3041
|
_ref3$y = _ref3.y,
|
|
@@ -3051,23 +3049,32 @@ function mapToStyles(_ref2) {
|
|
|
3051
3049
|
|
|
3052
3050
|
if (adaptive) {
|
|
3053
3051
|
var offsetParent = getOffsetParent(popper);
|
|
3052
|
+
var heightProp = 'clientHeight';
|
|
3053
|
+
var widthProp = 'clientWidth';
|
|
3054
3054
|
|
|
3055
3055
|
if (offsetParent === getWindow(popper)) {
|
|
3056
3056
|
offsetParent = getDocumentElement(popper);
|
|
3057
|
+
|
|
3058
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3059
|
+
heightProp = 'scrollHeight';
|
|
3060
|
+
widthProp = 'scrollWidth';
|
|
3061
|
+
}
|
|
3057
3062
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3058
3063
|
|
|
3059
|
-
/*:: offsetParent = (offsetParent: Element); */
|
|
3060
3064
|
|
|
3065
|
+
offsetParent = offsetParent;
|
|
3061
3066
|
|
|
3062
3067
|
if (placement === top) {
|
|
3063
|
-
sideY = bottom;
|
|
3064
|
-
|
|
3068
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
3069
|
+
|
|
3070
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
3065
3071
|
y *= gpuAcceleration ? 1 : -1;
|
|
3066
3072
|
}
|
|
3067
3073
|
|
|
3068
3074
|
if (placement === left) {
|
|
3069
|
-
sideX = right;
|
|
3070
|
-
|
|
3075
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
3076
|
+
|
|
3077
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
3071
3078
|
x *= gpuAcceleration ? 1 : -1;
|
|
3072
3079
|
}
|
|
3073
3080
|
}
|
|
@@ -3079,10 +3086,10 @@ function mapToStyles(_ref2) {
|
|
|
3079
3086
|
if (gpuAcceleration) {
|
|
3080
3087
|
var _Object$assign;
|
|
3081
3088
|
|
|
3082
|
-
return Object.assign(
|
|
3089
|
+
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));
|
|
3083
3090
|
}
|
|
3084
3091
|
|
|
3085
|
-
return Object.assign(
|
|
3092
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3086
3093
|
}
|
|
3087
3094
|
|
|
3088
3095
|
function computeStyles(_ref4) {
|
|
@@ -3096,7 +3103,7 @@ function computeStyles(_ref4) {
|
|
|
3096
3103
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3097
3104
|
|
|
3098
3105
|
if (process.env.NODE_ENV !== "production") {
|
|
3099
|
-
var transitionProperty = getComputedStyle$
|
|
3106
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
3100
3107
|
|
|
3101
3108
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3102
3109
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3113,7 +3120,7 @@ function computeStyles(_ref4) {
|
|
|
3113
3120
|
};
|
|
3114
3121
|
|
|
3115
3122
|
if (state.modifiersData.popperOffsets != null) {
|
|
3116
|
-
state.styles.popper = Object.assign(
|
|
3123
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3117
3124
|
offsets: state.modifiersData.popperOffsets,
|
|
3118
3125
|
position: state.options.strategy,
|
|
3119
3126
|
adaptive: adaptive,
|
|
@@ -3122,7 +3129,7 @@ function computeStyles(_ref4) {
|
|
|
3122
3129
|
}
|
|
3123
3130
|
|
|
3124
3131
|
if (state.modifiersData.arrow != null) {
|
|
3125
|
-
state.styles.arrow = Object.assign(
|
|
3132
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3126
3133
|
offsets: state.modifiersData.arrow,
|
|
3127
3134
|
position: 'absolute',
|
|
3128
3135
|
adaptive: false,
|
|
@@ -3130,7 +3137,7 @@ function computeStyles(_ref4) {
|
|
|
3130
3137
|
})));
|
|
3131
3138
|
}
|
|
3132
3139
|
|
|
3133
|
-
state.attributes.popper = Object.assign(
|
|
3140
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3134
3141
|
'data-popper-placement': state.placement
|
|
3135
3142
|
});
|
|
3136
3143
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3148,7 +3155,7 @@ var passive = {
|
|
|
3148
3155
|
passive: true
|
|
3149
3156
|
};
|
|
3150
3157
|
|
|
3151
|
-
function effect
|
|
3158
|
+
function effect(_ref) {
|
|
3152
3159
|
var state = _ref.state,
|
|
3153
3160
|
instance = _ref.instance,
|
|
3154
3161
|
options = _ref.options;
|
|
@@ -3188,11 +3195,11 @@ var eventListeners = {
|
|
|
3188
3195
|
enabled: true,
|
|
3189
3196
|
phase: 'write',
|
|
3190
3197
|
fn: function fn() {},
|
|
3191
|
-
effect: effect
|
|
3198
|
+
effect: effect,
|
|
3192
3199
|
data: {}
|
|
3193
3200
|
};
|
|
3194
3201
|
|
|
3195
|
-
var hash = {
|
|
3202
|
+
var hash$1 = {
|
|
3196
3203
|
left: 'right',
|
|
3197
3204
|
right: 'left',
|
|
3198
3205
|
bottom: 'top',
|
|
@@ -3200,34 +3207,20 @@ var hash = {
|
|
|
3200
3207
|
};
|
|
3201
3208
|
function getOppositePlacement(placement) {
|
|
3202
3209
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3203
|
-
return hash[matched];
|
|
3210
|
+
return hash$1[matched];
|
|
3204
3211
|
});
|
|
3205
3212
|
}
|
|
3206
3213
|
|
|
3207
|
-
var hash
|
|
3214
|
+
var hash = {
|
|
3208
3215
|
start: 'end',
|
|
3209
3216
|
end: 'start'
|
|
3210
3217
|
};
|
|
3211
3218
|
function getOppositeVariationPlacement(placement) {
|
|
3212
3219
|
return placement.replace(/start|end/g, function (matched) {
|
|
3213
|
-
return hash
|
|
3220
|
+
return hash[matched];
|
|
3214
3221
|
});
|
|
3215
3222
|
}
|
|
3216
3223
|
|
|
3217
|
-
function getBoundingClientRect(element) {
|
|
3218
|
-
var rect = element.getBoundingClientRect();
|
|
3219
|
-
return {
|
|
3220
|
-
width: rect.width,
|
|
3221
|
-
height: rect.height,
|
|
3222
|
-
top: rect.top,
|
|
3223
|
-
right: rect.right,
|
|
3224
|
-
bottom: rect.bottom,
|
|
3225
|
-
left: rect.left,
|
|
3226
|
-
x: rect.left,
|
|
3227
|
-
y: rect.top
|
|
3228
|
-
};
|
|
3229
|
-
}
|
|
3230
|
-
|
|
3231
3224
|
function getWindowScroll(node) {
|
|
3232
3225
|
var win = getWindow(node);
|
|
3233
3226
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3290,16 +3283,18 @@ function getViewportRect(element) {
|
|
|
3290
3283
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3291
3284
|
|
|
3292
3285
|
function getDocumentRect(element) {
|
|
3286
|
+
var _element$ownerDocumen;
|
|
3287
|
+
|
|
3293
3288
|
var html = getDocumentElement(element);
|
|
3294
3289
|
var winScroll = getWindowScroll(element);
|
|
3295
|
-
var body = element.ownerDocument.body;
|
|
3296
|
-
var width =
|
|
3297
|
-
var height =
|
|
3290
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3291
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3292
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3298
3293
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3299
3294
|
var y = -winScroll.scrollTop;
|
|
3300
3295
|
|
|
3301
|
-
if (getComputedStyle$
|
|
3302
|
-
x +=
|
|
3296
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3297
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3303
3298
|
}
|
|
3304
3299
|
|
|
3305
3300
|
return {
|
|
@@ -3312,7 +3307,7 @@ function getDocumentRect(element) {
|
|
|
3312
3307
|
|
|
3313
3308
|
function isScrollParent(element) {
|
|
3314
3309
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3315
|
-
var _getComputedStyle = getComputedStyle$
|
|
3310
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3316
3311
|
overflow = _getComputedStyle.overflow,
|
|
3317
3312
|
overflowX = _getComputedStyle.overflowX,
|
|
3318
3313
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3341,12 +3336,14 @@ reference element's position.
|
|
|
3341
3336
|
*/
|
|
3342
3337
|
|
|
3343
3338
|
function listScrollParents(element, list) {
|
|
3339
|
+
var _element$ownerDocumen;
|
|
3340
|
+
|
|
3344
3341
|
if (list === void 0) {
|
|
3345
3342
|
list = [];
|
|
3346
3343
|
}
|
|
3347
3344
|
|
|
3348
3345
|
var scrollParent = getScrollParent(element);
|
|
3349
|
-
var isBody =
|
|
3346
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3350
3347
|
var win = getWindow(scrollParent);
|
|
3351
3348
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3352
3349
|
var updatedList = list.concat(target);
|
|
@@ -3355,7 +3352,7 @@ function listScrollParents(element, list) {
|
|
|
3355
3352
|
}
|
|
3356
3353
|
|
|
3357
3354
|
function rectToClientRect(rect) {
|
|
3358
|
-
return Object.assign(
|
|
3355
|
+
return Object.assign({}, rect, {
|
|
3359
3356
|
left: rect.x,
|
|
3360
3357
|
top: rect.y,
|
|
3361
3358
|
right: rect.x + rect.width,
|
|
@@ -3385,7 +3382,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3385
3382
|
|
|
3386
3383
|
function getClippingParents(element) {
|
|
3387
3384
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3388
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3385
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3389
3386
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3390
3387
|
|
|
3391
3388
|
if (!isElement(clipperElement)) {
|
|
@@ -3394,7 +3391,7 @@ function getClippingParents(element) {
|
|
|
3394
3391
|
|
|
3395
3392
|
|
|
3396
3393
|
return clippingParents.filter(function (clippingParent) {
|
|
3397
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3394
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3398
3395
|
});
|
|
3399
3396
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3400
3397
|
// clipping parents
|
|
@@ -3406,10 +3403,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3406
3403
|
var firstClippingParent = clippingParents[0];
|
|
3407
3404
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3408
3405
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3409
|
-
accRect.top =
|
|
3410
|
-
accRect.right =
|
|
3411
|
-
accRect.bottom =
|
|
3412
|
-
accRect.left =
|
|
3406
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3407
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3408
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3409
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3413
3410
|
return accRect;
|
|
3414
3411
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3415
3412
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3519,7 +3516,7 @@ function detectOverflow(state, options) {
|
|
|
3519
3516
|
strategy: 'absolute',
|
|
3520
3517
|
placement: placement
|
|
3521
3518
|
});
|
|
3522
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3519
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3523
3520
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3524
3521
|
// 0 or negative = within the clipping rect
|
|
3525
3522
|
|
|
@@ -3543,9 +3540,6 @@ function detectOverflow(state, options) {
|
|
|
3543
3540
|
return overflowOffsets;
|
|
3544
3541
|
}
|
|
3545
3542
|
|
|
3546
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3547
|
-
|
|
3548
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3549
3543
|
function computeAutoPlacement(state, options) {
|
|
3550
3544
|
if (options === void 0) {
|
|
3551
3545
|
options = {};
|
|
@@ -3774,7 +3768,7 @@ function hide(_ref) {
|
|
|
3774
3768
|
isReferenceHidden: isReferenceHidden,
|
|
3775
3769
|
hasPopperEscaped: hasPopperEscaped
|
|
3776
3770
|
};
|
|
3777
|
-
state.attributes.popper = Object.assign(
|
|
3771
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3778
3772
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3779
3773
|
'data-popper-escaped': hasPopperEscaped
|
|
3780
3774
|
});
|
|
@@ -3793,7 +3787,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3793
3787
|
var basePlacement = getBasePlacement(placement);
|
|
3794
3788
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3795
3789
|
|
|
3796
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3790
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3797
3791
|
placement: placement
|
|
3798
3792
|
})) : offset,
|
|
3799
3793
|
skidding = _ref[0],
|
|
@@ -3899,7 +3893,7 @@ function preventOverflow(_ref) {
|
|
|
3899
3893
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3900
3894
|
var referenceRect = state.rects.reference;
|
|
3901
3895
|
var popperRect = state.rects.popper;
|
|
3902
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3896
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3903
3897
|
placement: state.placement
|
|
3904
3898
|
})) : tetherOffset;
|
|
3905
3899
|
var data = {
|
|
@@ -3911,13 +3905,13 @@ function preventOverflow(_ref) {
|
|
|
3911
3905
|
return;
|
|
3912
3906
|
}
|
|
3913
3907
|
|
|
3914
|
-
if (checkMainAxis) {
|
|
3908
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3915
3909
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3916
3910
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3917
3911
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3918
3912
|
var offset = popperOffsets[mainAxis];
|
|
3919
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3920
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3913
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3914
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3921
3915
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3922
3916
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3923
3917
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3944,26 +3938,29 @@ function preventOverflow(_ref) {
|
|
|
3944
3938
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3945
3939
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3946
3940
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3947
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3948
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3949
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3950
|
-
}
|
|
3951
3941
|
|
|
3952
|
-
|
|
3953
|
-
|
|
3942
|
+
if (checkMainAxis) {
|
|
3943
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3944
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3945
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
if (checkAltAxis) {
|
|
3949
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3954
3950
|
|
|
3955
|
-
|
|
3951
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3956
3952
|
|
|
3957
|
-
|
|
3953
|
+
var _offset = popperOffsets[altAxis];
|
|
3958
3954
|
|
|
3959
|
-
|
|
3955
|
+
var _min = _offset + overflow[_mainSide];
|
|
3960
3956
|
|
|
3961
|
-
|
|
3957
|
+
var _max = _offset - overflow[_altSide];
|
|
3962
3958
|
|
|
3963
|
-
|
|
3959
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3964
3960
|
|
|
3965
|
-
|
|
3966
|
-
|
|
3961
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3962
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3963
|
+
}
|
|
3967
3964
|
}
|
|
3968
3965
|
|
|
3969
3966
|
state.modifiersData[name] = data;
|
|
@@ -4194,9 +4191,9 @@ function uniqueBy(arr, fn) {
|
|
|
4194
4191
|
function mergeByName(modifiers) {
|
|
4195
4192
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4196
4193
|
var existing = merged[current.name];
|
|
4197
|
-
merged[current.name] = existing ? Object.assign(
|
|
4198
|
-
options: Object.assign(
|
|
4199
|
-
data: Object.assign(
|
|
4194
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4195
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4196
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4200
4197
|
}) : current;
|
|
4201
4198
|
return merged;
|
|
4202
4199
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4242,7 +4239,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4242
4239
|
var state = {
|
|
4243
4240
|
placement: 'bottom',
|
|
4244
4241
|
orderedModifiers: [],
|
|
4245
|
-
options: Object.assign(
|
|
4242
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4246
4243
|
modifiersData: {},
|
|
4247
4244
|
elements: {
|
|
4248
4245
|
reference: reference,
|
|
@@ -4257,7 +4254,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4257
4254
|
state: state,
|
|
4258
4255
|
setOptions: function setOptions(options) {
|
|
4259
4256
|
cleanupModifierEffects();
|
|
4260
|
-
state.options = Object.assign(
|
|
4257
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4261
4258
|
state.scrollParents = {
|
|
4262
4259
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4263
4260
|
popper: listScrollParents(popper)
|
|
@@ -4289,7 +4286,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4289
4286
|
}
|
|
4290
4287
|
}
|
|
4291
4288
|
|
|
4292
|
-
var _getComputedStyle = getComputedStyle$
|
|
4289
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4293
4290
|
marginTop = _getComputedStyle.marginTop,
|
|
4294
4291
|
marginRight = _getComputedStyle.marginRight,
|
|
4295
4292
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4536,7 +4533,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4536
4533
|
strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,
|
|
4537
4534
|
_ref3$modifiers = _ref3.modifiers,
|
|
4538
4535
|
modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,
|
|
4539
|
-
config = _objectWithoutPropertiesLoose
|
|
4536
|
+
config = _objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
|
|
4540
4537
|
|
|
4541
4538
|
var popperInstanceRef = useRef();
|
|
4542
4539
|
var update = useCallback(function () {
|
|
@@ -4602,7 +4599,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4602
4599
|
return undefined;
|
|
4603
4600
|
}
|
|
4604
4601
|
|
|
4605
|
-
popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends
|
|
4602
|
+
popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {
|
|
4606
4603
|
placement: placement,
|
|
4607
4604
|
strategy: strategy,
|
|
4608
4605
|
modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])
|
|
@@ -4612,7 +4609,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4612
4609
|
popperInstanceRef.current.destroy();
|
|
4613
4610
|
popperInstanceRef.current = undefined;
|
|
4614
4611
|
setState(function (s) {
|
|
4615
|
-
return _extends
|
|
4612
|
+
return _extends({}, s, {
|
|
4616
4613
|
attributes: {},
|
|
4617
4614
|
styles: {
|
|
4618
4615
|
popper: initialPopperStyles(strategy)
|
|
@@ -4629,7 +4626,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4629
4626
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4630
4627
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4631
4628
|
// so we need to check on context instead of a document root element.
|
|
4632
|
-
function contains
|
|
4629
|
+
function contains(context, node) {
|
|
4633
4630
|
if (context.contains) return context.contains(node);
|
|
4634
4631
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4635
4632
|
}
|
|
@@ -4703,13 +4700,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4703
4700
|
return componentOrElement != null ? componentOrElement : null;
|
|
4704
4701
|
}
|
|
4705
4702
|
|
|
4706
|
-
var ownerDocument
|
|
4707
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4703
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4704
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4708
4705
|
});
|
|
4709
4706
|
|
|
4710
4707
|
var escapeKeyCode = 27;
|
|
4711
4708
|
|
|
4712
|
-
var noop$
|
|
4709
|
+
var noop$4 = function noop() {};
|
|
4713
4710
|
|
|
4714
4711
|
function isLeftClickEvent(event) {
|
|
4715
4712
|
return event.button === 0;
|
|
@@ -4742,11 +4739,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4742
4739
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4743
4740
|
|
|
4744
4741
|
var preventMouseRootCloseRef = useRef(false);
|
|
4745
|
-
var onClose = onRootClose || noop$
|
|
4742
|
+
var onClose = onRootClose || noop$4;
|
|
4746
4743
|
var handleMouseCapture = useCallback(function (e) {
|
|
4747
4744
|
var currentTarget = getRefTarget(ref);
|
|
4748
4745
|
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');
|
|
4749
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4746
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4750
4747
|
}, [ref]);
|
|
4751
4748
|
var handleMouse = useEventCallback(function (e) {
|
|
4752
4749
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4763,7 +4760,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4763
4760
|
// https://github.com/facebook/react/issues/20074
|
|
4764
4761
|
|
|
4765
4762
|
var currentEvent = window.event;
|
|
4766
|
-
var doc = ownerDocument
|
|
4763
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4767
4764
|
// avoid false positives in the contains() check below if the target DOM
|
|
4768
4765
|
// element is removed in the React mouse callback.
|
|
4769
4766
|
|
|
@@ -4790,7 +4787,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4790
4787
|
|
|
4791
4788
|
if ('ontouchstart' in doc.documentElement) {
|
|
4792
4789
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4793
|
-
return listen(el, 'mousemove', noop$
|
|
4790
|
+
return listen(el, 'mousemove', noop$4);
|
|
4794
4791
|
});
|
|
4795
4792
|
}
|
|
4796
4793
|
|
|
@@ -4842,37 +4839,37 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4842
4839
|
_ref$popperConfig = _ref.popperConfig,
|
|
4843
4840
|
popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;
|
|
4844
4841
|
var modifiers = toModifierMap(popperConfig.modifiers);
|
|
4845
|
-
return _extends
|
|
4842
|
+
return _extends({}, popperConfig, {
|
|
4846
4843
|
placement: placement,
|
|
4847
4844
|
enabled: enabled,
|
|
4848
|
-
modifiers: toModifierArray(_extends
|
|
4845
|
+
modifiers: toModifierArray(_extends({}, modifiers, {
|
|
4849
4846
|
eventListeners: {
|
|
4850
4847
|
enabled: enableEvents
|
|
4851
4848
|
},
|
|
4852
|
-
preventOverflow: _extends
|
|
4853
|
-
options: containerPadding ? _extends
|
|
4849
|
+
preventOverflow: _extends({}, modifiers.preventOverflow, {
|
|
4850
|
+
options: containerPadding ? _extends({
|
|
4854
4851
|
padding: containerPadding
|
|
4855
4852
|
}, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options
|
|
4856
4853
|
}),
|
|
4857
4854
|
offset: {
|
|
4858
|
-
options: _extends
|
|
4855
|
+
options: _extends({
|
|
4859
4856
|
offset: offset
|
|
4860
4857
|
}, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)
|
|
4861
4858
|
},
|
|
4862
|
-
arrow: _extends
|
|
4859
|
+
arrow: _extends({}, modifiers.arrow, {
|
|
4863
4860
|
enabled: !!arrowElement,
|
|
4864
|
-
options: _extends
|
|
4861
|
+
options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
|
|
4865
4862
|
element: arrowElement
|
|
4866
4863
|
})
|
|
4867
4864
|
}),
|
|
4868
|
-
flip: _extends
|
|
4865
|
+
flip: _extends({
|
|
4869
4866
|
enabled: !!flip
|
|
4870
4867
|
}, modifiers.flip)
|
|
4871
4868
|
}))
|
|
4872
4869
|
});
|
|
4873
4870
|
}
|
|
4874
4871
|
|
|
4875
|
-
var noop$
|
|
4872
|
+
var noop$3 = function noop() {};
|
|
4876
4873
|
/**
|
|
4877
4874
|
* @memberOf Dropdown
|
|
4878
4875
|
* @param {object} options
|
|
@@ -4936,11 +4933,11 @@ function useDropdownMenu(options) {
|
|
|
4936
4933
|
})),
|
|
4937
4934
|
styles = _usePopper.styles,
|
|
4938
4935
|
attributes = _usePopper.attributes,
|
|
4939
|
-
popper = _objectWithoutPropertiesLoose
|
|
4936
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
4940
4937
|
|
|
4941
4938
|
var menu;
|
|
4942
4939
|
var menuProps = {
|
|
4943
|
-
ref: setMenu || noop$
|
|
4940
|
+
ref: setMenu || noop$3,
|
|
4944
4941
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4945
4942
|
};
|
|
4946
4943
|
var childArgs = {
|
|
@@ -4951,15 +4948,15 @@ function useDropdownMenu(options) {
|
|
|
4951
4948
|
};
|
|
4952
4949
|
|
|
4953
4950
|
if (!shouldUsePopper) {
|
|
4954
|
-
menu = _extends
|
|
4951
|
+
menu = _extends({}, childArgs, {
|
|
4955
4952
|
props: menuProps
|
|
4956
4953
|
});
|
|
4957
4954
|
} else {
|
|
4958
|
-
menu = _extends
|
|
4959
|
-
props: _extends
|
|
4955
|
+
menu = _extends({}, popper, childArgs, {
|
|
4956
|
+
props: _extends({}, menuProps, attributes.popper, {
|
|
4960
4957
|
style: styles.popper
|
|
4961
4958
|
}),
|
|
4962
|
-
arrowProps: _extends
|
|
4959
|
+
arrowProps: _extends({
|
|
4963
4960
|
ref: attachArrowRef
|
|
4964
4961
|
}, attributes.arrow, {
|
|
4965
4962
|
style: styles.arrow
|
|
@@ -4973,7 +4970,7 @@ function useDropdownMenu(options) {
|
|
|
4973
4970
|
});
|
|
4974
4971
|
return menu;
|
|
4975
4972
|
}
|
|
4976
|
-
var propTypes$
|
|
4973
|
+
var propTypes$8 = {
|
|
4977
4974
|
/**
|
|
4978
4975
|
* A render prop that returns a Menu element. The `props`
|
|
4979
4976
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5030,7 +5027,7 @@ var propTypes$2 = {
|
|
|
5030
5027
|
*/
|
|
5031
5028
|
rootCloseEvent: PropTypes.string
|
|
5032
5029
|
};
|
|
5033
|
-
var defaultProps$
|
|
5030
|
+
var defaultProps$r = {
|
|
5034
5031
|
usePopper: true
|
|
5035
5032
|
};
|
|
5036
5033
|
|
|
@@ -5040,19 +5037,19 @@ var defaultProps$d = {
|
|
|
5040
5037
|
* @displayName DropdownMenu
|
|
5041
5038
|
* @memberOf Dropdown
|
|
5042
5039
|
*/
|
|
5043
|
-
function DropdownMenu(_ref2) {
|
|
5040
|
+
function DropdownMenu$1(_ref2) {
|
|
5044
5041
|
var children = _ref2.children,
|
|
5045
|
-
options = _objectWithoutPropertiesLoose
|
|
5042
|
+
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5046
5043
|
|
|
5047
5044
|
var args = useDropdownMenu(options);
|
|
5048
|
-
return /*#__PURE__*/
|
|
5045
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
5049
5046
|
}
|
|
5050
5047
|
|
|
5051
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
5052
|
-
DropdownMenu.propTypes = propTypes$
|
|
5053
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5048
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
5049
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
5050
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
5054
5051
|
|
|
5055
|
-
var noop$
|
|
5052
|
+
var noop$2 = function noop() {};
|
|
5056
5053
|
/**
|
|
5057
5054
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5058
5055
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5066,11 +5063,11 @@ function useDropdownToggle() {
|
|
|
5066
5063
|
_ref$show = _ref.show,
|
|
5067
5064
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5068
5065
|
_ref$toggle = _ref.toggle,
|
|
5069
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
5066
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
5070
5067
|
setToggle = _ref.setToggle;
|
|
5071
5068
|
|
|
5072
5069
|
return [{
|
|
5073
|
-
ref: setToggle || noop$
|
|
5070
|
+
ref: setToggle || noop$2,
|
|
5074
5071
|
'aria-haspopup': true,
|
|
5075
5072
|
'aria-expanded': !!show
|
|
5076
5073
|
}, {
|
|
@@ -5078,7 +5075,7 @@ function useDropdownToggle() {
|
|
|
5078
5075
|
toggle: toggle
|
|
5079
5076
|
}];
|
|
5080
5077
|
}
|
|
5081
|
-
var propTypes$
|
|
5078
|
+
var propTypes$7 = {
|
|
5082
5079
|
/**
|
|
5083
5080
|
* A render prop that returns a Toggle element. The `props`
|
|
5084
5081
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5103,7 +5100,7 @@ var propTypes$3 = {
|
|
|
5103
5100
|
* @displayName DropdownToggle
|
|
5104
5101
|
* @memberOf Dropdown
|
|
5105
5102
|
*/
|
|
5106
|
-
function DropdownToggle(_ref2) {
|
|
5103
|
+
function DropdownToggle$1(_ref2) {
|
|
5107
5104
|
var children = _ref2.children;
|
|
5108
5105
|
|
|
5109
5106
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5112,17 +5109,17 @@ function DropdownToggle(_ref2) {
|
|
|
5112
5109
|
show = _useDropdownToggle$.show,
|
|
5113
5110
|
toggle = _useDropdownToggle$.toggle;
|
|
5114
5111
|
|
|
5115
|
-
return /*#__PURE__*/
|
|
5112
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5116
5113
|
show: show,
|
|
5117
5114
|
toggle: toggle,
|
|
5118
5115
|
props: props
|
|
5119
5116
|
}));
|
|
5120
5117
|
}
|
|
5121
5118
|
|
|
5122
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5123
|
-
DropdownToggle.propTypes = propTypes$
|
|
5119
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5120
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
5124
5121
|
|
|
5125
|
-
var propTypes$
|
|
5122
|
+
var propTypes$6 = {
|
|
5126
5123
|
/**
|
|
5127
5124
|
* A render prop that returns the root dropdown element. The `props`
|
|
5128
5125
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5194,7 +5191,7 @@ var propTypes$4 = {
|
|
|
5194
5191
|
/**
|
|
5195
5192
|
* @displayName Dropdown
|
|
5196
5193
|
*/
|
|
5197
|
-
function Dropdown(_ref) {
|
|
5194
|
+
function Dropdown$1(_ref) {
|
|
5198
5195
|
var drop = _ref.drop,
|
|
5199
5196
|
alignEnd = _ref.alignEnd,
|
|
5200
5197
|
defaultShow = _ref.defaultShow,
|
|
@@ -5327,7 +5324,7 @@ function Dropdown(_ref) {
|
|
|
5327
5324
|
}
|
|
5328
5325
|
};
|
|
5329
5326
|
|
|
5330
|
-
return /*#__PURE__*/
|
|
5327
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5331
5328
|
value: context
|
|
5332
5329
|
}, children({
|
|
5333
5330
|
props: {
|
|
@@ -5336,19 +5333,19 @@ function Dropdown(_ref) {
|
|
|
5336
5333
|
}));
|
|
5337
5334
|
}
|
|
5338
5335
|
|
|
5339
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5340
|
-
Dropdown.propTypes = propTypes$
|
|
5341
|
-
Dropdown.Menu = DropdownMenu;
|
|
5342
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5336
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5337
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5338
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5339
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5343
5340
|
|
|
5344
|
-
var NavContext =
|
|
5341
|
+
var NavContext = React.createContext(null);
|
|
5345
5342
|
NavContext.displayName = 'NavContext';
|
|
5346
5343
|
|
|
5347
|
-
var defaultProps$
|
|
5344
|
+
var defaultProps$q = {
|
|
5348
5345
|
as: SafeAnchor,
|
|
5349
5346
|
disabled: false
|
|
5350
5347
|
};
|
|
5351
|
-
var DropdownItem =
|
|
5348
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5352
5349
|
var bsPrefix = _ref.bsPrefix,
|
|
5353
5350
|
className = _ref.className,
|
|
5354
5351
|
children = _ref.children,
|
|
@@ -5383,7 +5380,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5383
5380
|
/*#__PURE__*/
|
|
5384
5381
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5385
5382
|
// @ts-ignore
|
|
5386
|
-
|
|
5383
|
+
React.createElement(Component, _extends({}, props, {
|
|
5387
5384
|
ref: ref,
|
|
5388
5385
|
href: href,
|
|
5389
5386
|
disabled: disabled,
|
|
@@ -5393,7 +5390,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5393
5390
|
);
|
|
5394
5391
|
});
|
|
5395
5392
|
DropdownItem.displayName = 'DropdownItem';
|
|
5396
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5393
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5397
5394
|
|
|
5398
5395
|
var toFnRef = function toFnRef(ref) {
|
|
5399
5396
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5432,8 +5429,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5432
5429
|
}, [refA, refB]);
|
|
5433
5430
|
}
|
|
5434
5431
|
|
|
5435
|
-
var context
|
|
5436
|
-
context
|
|
5432
|
+
var context = React.createContext(null);
|
|
5433
|
+
context.displayName = 'NavbarContext';
|
|
5437
5434
|
|
|
5438
5435
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5439
5436
|
// @ts-ignore
|
|
@@ -5554,13 +5551,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5554
5551
|
}), PropTypes.shape({
|
|
5555
5552
|
xl: alignDirection
|
|
5556
5553
|
})]);
|
|
5557
|
-
var defaultProps$
|
|
5554
|
+
var defaultProps$p = {
|
|
5558
5555
|
align: 'left',
|
|
5559
5556
|
alignRight: false,
|
|
5560
5557
|
flip: true
|
|
5561
5558
|
}; // TODO: remove this hack
|
|
5562
5559
|
|
|
5563
|
-
var DropdownMenu
|
|
5560
|
+
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
5564
5561
|
var bsPrefix = _ref.bsPrefix,
|
|
5565
5562
|
className = _ref.className,
|
|
5566
5563
|
align = _ref.align,
|
|
@@ -5574,7 +5571,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5574
5571
|
popperConfig = _ref.popperConfig,
|
|
5575
5572
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5576
5573
|
|
|
5577
|
-
var isNavbar = useContext(context
|
|
5574
|
+
var isNavbar = useContext(context);
|
|
5578
5575
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5579
5576
|
|
|
5580
5577
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5635,12 +5632,12 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5635
5632
|
props['x-placement'] = placement;
|
|
5636
5633
|
}
|
|
5637
5634
|
|
|
5638
|
-
return /*#__PURE__*/
|
|
5635
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5639
5636
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5640
5637
|
}));
|
|
5641
5638
|
});
|
|
5642
|
-
DropdownMenu
|
|
5643
|
-
DropdownMenu
|
|
5639
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5640
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5644
5641
|
|
|
5645
5642
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5646
5643
|
|
|
@@ -5669,7 +5666,7 @@ module.exports = exports['default'];
|
|
|
5669
5666
|
|
|
5670
5667
|
unwrapExports(isRequiredForA11y_1);
|
|
5671
5668
|
|
|
5672
|
-
var DropdownToggle
|
|
5669
|
+
var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
5673
5670
|
var bsPrefix = _ref.bsPrefix,
|
|
5674
5671
|
split = _ref.split,
|
|
5675
5672
|
className = _ref.className,
|
|
@@ -5691,12 +5688,12 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5691
5688
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5692
5689
|
// underlying component, to allow it to render size and style variants.
|
|
5693
5690
|
|
|
5694
|
-
return /*#__PURE__*/
|
|
5691
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5695
5692
|
onClick: toggle,
|
|
5696
5693
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5697
5694
|
}, toggleProps, props));
|
|
5698
5695
|
});
|
|
5699
|
-
DropdownToggle
|
|
5696
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5700
5697
|
|
|
5701
5698
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5702
5699
|
defaultProps: {
|
|
@@ -5711,10 +5708,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5711
5708
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5712
5709
|
Component: 'span'
|
|
5713
5710
|
});
|
|
5714
|
-
var defaultProps$
|
|
5711
|
+
var defaultProps$o = {
|
|
5715
5712
|
navbar: false
|
|
5716
5713
|
};
|
|
5717
|
-
var Dropdown
|
|
5714
|
+
var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
5718
5715
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5719
5716
|
show: 'onToggle'
|
|
5720
5717
|
}),
|
|
@@ -5727,9 +5724,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5727
5724
|
onToggle = _useUncontrolled.onToggle,
|
|
5728
5725
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5729
5726
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5730
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5731
|
-
|
|
5732
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5727
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5728
|
+
_useUncontrolled.navbar;
|
|
5729
|
+
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5733
5730
|
|
|
5734
5731
|
var onSelectCtx = useContext(SelectableContext);
|
|
5735
5732
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5751,9 +5748,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5751
5748
|
if (onSelect) onSelect(key, event);
|
|
5752
5749
|
handleToggle(false, event, 'select');
|
|
5753
5750
|
});
|
|
5754
|
-
return /*#__PURE__*/
|
|
5751
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5755
5752
|
value: handleSelect
|
|
5756
|
-
}, /*#__PURE__*/
|
|
5753
|
+
}, /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
5757
5754
|
drop: drop,
|
|
5758
5755
|
show: show,
|
|
5759
5756
|
alignEnd: alignRight,
|
|
@@ -5762,20 +5759,20 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5762
5759
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5763
5760
|
}, function (_ref) {
|
|
5764
5761
|
var dropdownProps = _ref.props;
|
|
5765
|
-
return /*#__PURE__*/
|
|
5762
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5766
5763
|
ref: ref,
|
|
5767
5764
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5768
5765
|
}));
|
|
5769
5766
|
}));
|
|
5770
5767
|
});
|
|
5771
|
-
Dropdown
|
|
5772
|
-
Dropdown
|
|
5773
|
-
Dropdown
|
|
5774
|
-
Dropdown
|
|
5775
|
-
Dropdown
|
|
5776
|
-
Dropdown
|
|
5777
|
-
Dropdown
|
|
5778
|
-
Dropdown
|
|
5768
|
+
Dropdown.displayName = 'Dropdown';
|
|
5769
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5770
|
+
Dropdown.Divider = DropdownDivider;
|
|
5771
|
+
Dropdown.Header = DropdownHeader;
|
|
5772
|
+
Dropdown.Item = DropdownItem;
|
|
5773
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5774
|
+
Dropdown.Menu = DropdownMenu;
|
|
5775
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5779
5776
|
|
|
5780
5777
|
var propTypes$5 = {
|
|
5781
5778
|
/**
|
|
@@ -5837,7 +5834,7 @@ var propTypes$5 = {
|
|
|
5837
5834
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5838
5835
|
*/
|
|
5839
5836
|
|
|
5840
|
-
var DropdownButton =
|
|
5837
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5841
5838
|
var title = _ref.title,
|
|
5842
5839
|
children = _ref.children,
|
|
5843
5840
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5852,16 +5849,16 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5852
5849
|
id = _ref.id,
|
|
5853
5850
|
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5854
5851
|
|
|
5855
|
-
return /*#__PURE__*/
|
|
5852
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
5856
5853
|
ref: ref
|
|
5857
|
-
}, props), /*#__PURE__*/
|
|
5854
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
5858
5855
|
id: id,
|
|
5859
5856
|
href: href,
|
|
5860
5857
|
size: size,
|
|
5861
5858
|
variant: variant,
|
|
5862
5859
|
disabled: disabled,
|
|
5863
5860
|
childBsPrefix: bsPrefix
|
|
5864
|
-
}, title), /*#__PURE__*/
|
|
5861
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
5865
5862
|
align: menuAlign,
|
|
5866
5863
|
role: menuRole,
|
|
5867
5864
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5964,7 +5961,7 @@ module.exports = exports['default'];
|
|
|
5964
5961
|
|
|
5965
5962
|
unwrapExports(all_1);
|
|
5966
5963
|
|
|
5967
|
-
var propTypes$
|
|
5964
|
+
var propTypes$4 = {
|
|
5968
5965
|
/**
|
|
5969
5966
|
* Specify whether the feedback is for valid or invalid fields
|
|
5970
5967
|
*
|
|
@@ -5976,7 +5973,7 @@ var propTypes$6 = {
|
|
|
5976
5973
|
tooltip: PropTypes.bool,
|
|
5977
5974
|
as: PropTypes.elementType
|
|
5978
5975
|
};
|
|
5979
|
-
var Feedback =
|
|
5976
|
+
var Feedback = 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
|
|
5980
5977
|
function (_ref, ref) {
|
|
5981
5978
|
var _ref$as = _ref.as,
|
|
5982
5979
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5987,19 +5984,19 @@ function (_ref, ref) {
|
|
|
5987
5984
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5988
5985
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5989
5986
|
|
|
5990
|
-
return /*#__PURE__*/
|
|
5987
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5991
5988
|
ref: ref,
|
|
5992
5989
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5993
5990
|
}));
|
|
5994
5991
|
});
|
|
5995
5992
|
Feedback.displayName = 'Feedback';
|
|
5996
|
-
Feedback.propTypes = propTypes$
|
|
5993
|
+
Feedback.propTypes = propTypes$4;
|
|
5997
5994
|
|
|
5998
|
-
var FormContext =
|
|
5995
|
+
var FormContext = React.createContext({
|
|
5999
5996
|
controlId: undefined
|
|
6000
5997
|
});
|
|
6001
5998
|
|
|
6002
|
-
var FormCheckInput =
|
|
5999
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
6003
6000
|
var id = _ref.id,
|
|
6004
6001
|
bsPrefix = _ref.bsPrefix,
|
|
6005
6002
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6024,7 +6021,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6024
6021
|
defaultPrefix = _ref2[1];
|
|
6025
6022
|
|
|
6026
6023
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6027
|
-
return /*#__PURE__*/
|
|
6024
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6028
6025
|
ref: ref,
|
|
6029
6026
|
type: type,
|
|
6030
6027
|
id: id || controlId,
|
|
@@ -6033,7 +6030,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6033
6030
|
});
|
|
6034
6031
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
6035
6032
|
|
|
6036
|
-
var FormCheckLabel =
|
|
6033
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
6037
6034
|
var bsPrefix = _ref.bsPrefix,
|
|
6038
6035
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6039
6036
|
className = _ref.className,
|
|
@@ -6049,7 +6046,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6049
6046
|
defaultPrefix = _ref2[1];
|
|
6050
6047
|
|
|
6051
6048
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6052
|
-
return /*#__PURE__*/
|
|
6049
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6053
6050
|
ref: ref,
|
|
6054
6051
|
htmlFor: htmlFor || controlId,
|
|
6055
6052
|
className: classnames(className, bsPrefix)
|
|
@@ -6057,7 +6054,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6057
6054
|
});
|
|
6058
6055
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
6059
6056
|
|
|
6060
|
-
var FormCheck =
|
|
6057
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
6061
6058
|
var id = _ref.id,
|
|
6062
6059
|
bsPrefix = _ref.bsPrefix,
|
|
6063
6060
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6103,7 +6100,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6103
6100
|
};
|
|
6104
6101
|
}, [controlId, custom, id]);
|
|
6105
6102
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6106
|
-
var input = /*#__PURE__*/
|
|
6103
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6107
6104
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6108
6105
|
ref: ref,
|
|
6109
6106
|
isValid: isValid,
|
|
@@ -6112,14 +6109,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6112
6109
|
disabled: disabled,
|
|
6113
6110
|
as: as
|
|
6114
6111
|
}));
|
|
6115
|
-
return /*#__PURE__*/
|
|
6112
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6116
6113
|
value: innerFormContext
|
|
6117
|
-
}, /*#__PURE__*/
|
|
6114
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6118
6115
|
style: style,
|
|
6119
6116
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6120
|
-
}, children || /*#__PURE__*/
|
|
6117
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6121
6118
|
title: title
|
|
6122
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6119
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6123
6120
|
type: isValid ? 'valid' : 'invalid',
|
|
6124
6121
|
tooltip: feedbackTooltip
|
|
6125
6122
|
}, feedback))));
|
|
@@ -6128,7 +6125,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6128
6125
|
FormCheck.Input = FormCheckInput;
|
|
6129
6126
|
FormCheck.Label = FormCheckLabel;
|
|
6130
6127
|
|
|
6131
|
-
var FormFileInput =
|
|
6128
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6132
6129
|
var id = _ref.id,
|
|
6133
6130
|
bsPrefix = _ref.bsPrefix,
|
|
6134
6131
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6151,7 +6148,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6151
6148
|
defaultPrefix = _ref2[1];
|
|
6152
6149
|
|
|
6153
6150
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6154
|
-
return /*#__PURE__*/
|
|
6151
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6155
6152
|
ref: ref,
|
|
6156
6153
|
id: id || controlId,
|
|
6157
6154
|
type: type,
|
|
@@ -6161,7 +6158,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6161
6158
|
});
|
|
6162
6159
|
FormFileInput.displayName = 'FormFileInput';
|
|
6163
6160
|
|
|
6164
|
-
var FormFileLabel =
|
|
6161
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6165
6162
|
var bsPrefix = _ref.bsPrefix,
|
|
6166
6163
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6167
6164
|
className = _ref.className,
|
|
@@ -6177,7 +6174,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6177
6174
|
defaultPrefix = _ref2[1];
|
|
6178
6175
|
|
|
6179
6176
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6180
|
-
return /*#__PURE__*/
|
|
6177
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6181
6178
|
ref: ref,
|
|
6182
6179
|
htmlFor: htmlFor || controlId,
|
|
6183
6180
|
className: classnames(className, bsPrefix),
|
|
@@ -6186,7 +6183,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6186
6183
|
});
|
|
6187
6184
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6188
6185
|
|
|
6189
|
-
var FormFile =
|
|
6186
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6190
6187
|
var id = _ref.id,
|
|
6191
6188
|
bsPrefix = _ref.bsPrefix,
|
|
6192
6189
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6229,7 +6226,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6229
6226
|
};
|
|
6230
6227
|
}, [controlId, custom, id]);
|
|
6231
6228
|
var hasLabel = label != null && label !== false && !children;
|
|
6232
|
-
var input = /*#__PURE__*/
|
|
6229
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6233
6230
|
ref: ref,
|
|
6234
6231
|
isValid: isValid,
|
|
6235
6232
|
isInvalid: isInvalid,
|
|
@@ -6237,14 +6234,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6237
6234
|
as: inputAs,
|
|
6238
6235
|
lang: lang
|
|
6239
6236
|
}));
|
|
6240
|
-
return /*#__PURE__*/
|
|
6237
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6241
6238
|
value: innerFormContext
|
|
6242
|
-
}, /*#__PURE__*/
|
|
6239
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6243
6240
|
style: style,
|
|
6244
6241
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6245
|
-
}, children || /*#__PURE__*/
|
|
6242
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6246
6243
|
"data-browse": dataBrowse
|
|
6247
|
-
}, label)) : /*#__PURE__*/
|
|
6244
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6248
6245
|
type: isValid ? 'valid' : 'invalid',
|
|
6249
6246
|
tooltip: feedbackTooltip
|
|
6250
6247
|
}, feedback))));
|
|
@@ -6253,7 +6250,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6253
6250
|
FormFile.Input = FormFileInput;
|
|
6254
6251
|
FormFile.Label = FormFileLabel;
|
|
6255
6252
|
|
|
6256
|
-
var FormControl =
|
|
6253
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6257
6254
|
var bsPrefix = _ref.bsPrefix,
|
|
6258
6255
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6259
6256
|
type = _ref.type,
|
|
@@ -6305,7 +6302,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6305
6302
|
}
|
|
6306
6303
|
|
|
6307
6304
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6308
|
-
return /*#__PURE__*/
|
|
6305
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6309
6306
|
type: type,
|
|
6310
6307
|
size: htmlSize,
|
|
6311
6308
|
ref: ref,
|
|
@@ -6319,7 +6316,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6319
6316
|
Feedback: Feedback
|
|
6320
6317
|
});
|
|
6321
6318
|
|
|
6322
|
-
var FormGroup =
|
|
6319
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6323
6320
|
var bsPrefix = _ref.bsPrefix,
|
|
6324
6321
|
className = _ref.className,
|
|
6325
6322
|
children = _ref.children,
|
|
@@ -6334,20 +6331,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6334
6331
|
controlId: controlId
|
|
6335
6332
|
};
|
|
6336
6333
|
}, [controlId]);
|
|
6337
|
-
return /*#__PURE__*/
|
|
6334
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6338
6335
|
value: context
|
|
6339
|
-
}, /*#__PURE__*/
|
|
6336
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6340
6337
|
ref: ref,
|
|
6341
6338
|
className: classnames(className, bsPrefix)
|
|
6342
6339
|
}), children));
|
|
6343
6340
|
});
|
|
6344
6341
|
FormGroup.displayName = 'FormGroup';
|
|
6345
6342
|
|
|
6346
|
-
var defaultProps$
|
|
6343
|
+
var defaultProps$n = {
|
|
6347
6344
|
column: false,
|
|
6348
6345
|
srOnly: false
|
|
6349
6346
|
};
|
|
6350
|
-
var FormLabel =
|
|
6347
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6351
6348
|
var _ref$as = _ref.as,
|
|
6352
6349
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6353
6350
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6366,7 +6363,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6366
6363
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6367
6364
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6368
6365
|
htmlFor = htmlFor || controlId;
|
|
6369
|
-
if (column) return /*#__PURE__*/
|
|
6366
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6370
6367
|
as: "label",
|
|
6371
6368
|
className: classes,
|
|
6372
6369
|
htmlFor: htmlFor
|
|
@@ -6374,7 +6371,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6374
6371
|
return (
|
|
6375
6372
|
/*#__PURE__*/
|
|
6376
6373
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6377
|
-
|
|
6374
|
+
React.createElement(Component, _extends({
|
|
6378
6375
|
ref: ref,
|
|
6379
6376
|
className: classes,
|
|
6380
6377
|
htmlFor: htmlFor
|
|
@@ -6382,9 +6379,9 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6382
6379
|
);
|
|
6383
6380
|
});
|
|
6384
6381
|
FormLabel.displayName = 'FormLabel';
|
|
6385
|
-
FormLabel.defaultProps = defaultProps$
|
|
6382
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6386
6383
|
|
|
6387
|
-
var FormText =
|
|
6384
|
+
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
|
|
6388
6385
|
function (_ref, ref) {
|
|
6389
6386
|
var bsPrefix = _ref.bsPrefix,
|
|
6390
6387
|
className = _ref.className,
|
|
@@ -6394,15 +6391,15 @@ function (_ref, ref) {
|
|
|
6394
6391
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6395
6392
|
|
|
6396
6393
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6397
|
-
return /*#__PURE__*/
|
|
6394
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6398
6395
|
ref: ref,
|
|
6399
6396
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6400
6397
|
}));
|
|
6401
6398
|
});
|
|
6402
6399
|
FormText.displayName = 'FormText';
|
|
6403
6400
|
|
|
6404
|
-
var Switch =
|
|
6405
|
-
return /*#__PURE__*/
|
|
6401
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6402
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6406
6403
|
ref: ref,
|
|
6407
6404
|
type: "switch"
|
|
6408
6405
|
}));
|
|
@@ -6412,10 +6409,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6412
6409
|
Switch.Label = FormCheck.Label;
|
|
6413
6410
|
|
|
6414
6411
|
var FormRow = createWithBsPrefix('form-row');
|
|
6415
|
-
var defaultProps$
|
|
6412
|
+
var defaultProps$m = {
|
|
6416
6413
|
inline: false
|
|
6417
6414
|
};
|
|
6418
|
-
var FormImpl =
|
|
6415
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6419
6416
|
var bsPrefix = _ref.bsPrefix,
|
|
6420
6417
|
inline = _ref.inline,
|
|
6421
6418
|
className = _ref.className,
|
|
@@ -6425,13 +6422,13 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6425
6422
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6426
6423
|
|
|
6427
6424
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6428
|
-
return /*#__PURE__*/
|
|
6425
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6429
6426
|
ref: ref,
|
|
6430
6427
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6431
6428
|
}));
|
|
6432
6429
|
});
|
|
6433
6430
|
FormImpl.displayName = 'Form';
|
|
6434
|
-
FormImpl.defaultProps = defaultProps$
|
|
6431
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6435
6432
|
FormImpl.Row = FormRow;
|
|
6436
6433
|
FormImpl.Group = FormGroup;
|
|
6437
6434
|
FormImpl.Control = FormControl$1;
|
|
@@ -6441,10 +6438,10 @@ FormImpl.Switch = Switch;
|
|
|
6441
6438
|
FormImpl.Label = FormLabel;
|
|
6442
6439
|
FormImpl.Text = FormText;
|
|
6443
6440
|
|
|
6444
|
-
var defaultProps$
|
|
6441
|
+
var defaultProps$l = {
|
|
6445
6442
|
fluid: false
|
|
6446
6443
|
};
|
|
6447
|
-
var Container =
|
|
6444
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6448
6445
|
var bsPrefix = _ref.bsPrefix,
|
|
6449
6446
|
fluid = _ref.fluid,
|
|
6450
6447
|
_ref$as = _ref.as,
|
|
@@ -6454,16 +6451,16 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6454
6451
|
|
|
6455
6452
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6456
6453
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6457
|
-
return /*#__PURE__*/
|
|
6454
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6458
6455
|
ref: ref
|
|
6459
6456
|
}, props, {
|
|
6460
6457
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6461
6458
|
}));
|
|
6462
6459
|
});
|
|
6463
6460
|
Container.displayName = 'Container';
|
|
6464
|
-
Container.defaultProps = defaultProps$
|
|
6461
|
+
Container.defaultProps = defaultProps$l;
|
|
6465
6462
|
|
|
6466
|
-
var propTypes$
|
|
6463
|
+
var propTypes$3 = {
|
|
6467
6464
|
/**
|
|
6468
6465
|
* @default 'img'
|
|
6469
6466
|
*/
|
|
@@ -6495,7 +6492,7 @@ var defaultProps$k = {
|
|
|
6495
6492
|
roundedCircle: false,
|
|
6496
6493
|
thumbnail: false
|
|
6497
6494
|
};
|
|
6498
|
-
var Image =
|
|
6495
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6499
6496
|
var bsPrefix = _ref.bsPrefix,
|
|
6500
6497
|
className = _ref.className,
|
|
6501
6498
|
fluid = _ref.fluid,
|
|
@@ -6506,7 +6503,7 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6506
6503
|
|
|
6507
6504
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6508
6505
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6509
|
-
return /*#__PURE__*/
|
|
6506
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6510
6507
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6511
6508
|
ref: ref
|
|
6512
6509
|
}, props, {
|
|
@@ -6516,22 +6513,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6516
6513
|
Image.displayName = 'Image';
|
|
6517
6514
|
Image.defaultProps = defaultProps$k;
|
|
6518
6515
|
|
|
6519
|
-
var defaultProps$
|
|
6516
|
+
var defaultProps$j = {
|
|
6520
6517
|
fluid: true
|
|
6521
6518
|
};
|
|
6522
|
-
var FigureImage =
|
|
6519
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6523
6520
|
var className = _ref.className,
|
|
6524
6521
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6525
6522
|
|
|
6526
|
-
return /*#__PURE__*/
|
|
6523
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6527
6524
|
ref: ref
|
|
6528
6525
|
}, props, {
|
|
6529
6526
|
className: classnames(className, 'figure-img')
|
|
6530
6527
|
}));
|
|
6531
6528
|
});
|
|
6532
6529
|
FigureImage.displayName = 'FigureImage';
|
|
6533
|
-
FigureImage.propTypes = propTypes$
|
|
6534
|
-
FigureImage.defaultProps = defaultProps$
|
|
6530
|
+
FigureImage.propTypes = propTypes$3;
|
|
6531
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6535
6532
|
|
|
6536
6533
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6537
6534
|
Component: 'figcaption'
|
|
@@ -6550,13 +6547,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6550
6547
|
});
|
|
6551
6548
|
|
|
6552
6549
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6553
|
-
return /*#__PURE__*/
|
|
6550
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6554
6551
|
type: "checkbox"
|
|
6555
6552
|
}, props)));
|
|
6556
6553
|
};
|
|
6557
6554
|
|
|
6558
6555
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6559
|
-
return /*#__PURE__*/
|
|
6556
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6560
6557
|
type: "radio"
|
|
6561
6558
|
}, props)));
|
|
6562
6559
|
};
|
|
@@ -6569,7 +6566,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6569
6566
|
* @property {InputGroupRadio} Radio
|
|
6570
6567
|
* @property {InputGroupCheckbox} Checkbox
|
|
6571
6568
|
*/
|
|
6572
|
-
var InputGroup =
|
|
6569
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6573
6570
|
var bsPrefix = _ref.bsPrefix,
|
|
6574
6571
|
size = _ref.size,
|
|
6575
6572
|
className = _ref.className,
|
|
@@ -6578,7 +6575,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6578
6575
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6579
6576
|
|
|
6580
6577
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6581
|
-
return /*#__PURE__*/
|
|
6578
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6582
6579
|
ref: ref
|
|
6583
6580
|
}, props, {
|
|
6584
6581
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6586,7 +6583,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6586
6583
|
});
|
|
6587
6584
|
InputGroup.displayName = 'InputGroup';
|
|
6588
6585
|
|
|
6589
|
-
|
|
6586
|
+
_extends({}, InputGroup, {
|
|
6590
6587
|
Text: InputGroupText,
|
|
6591
6588
|
Radio: InputGroupRadio,
|
|
6592
6589
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6594,10 +6591,10 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6594
6591
|
Prepend: InputGroupPrepend
|
|
6595
6592
|
});
|
|
6596
6593
|
|
|
6597
|
-
var defaultProps$
|
|
6594
|
+
var defaultProps$i = {
|
|
6598
6595
|
fluid: false
|
|
6599
6596
|
};
|
|
6600
|
-
var Jumbotron =
|
|
6597
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6601
6598
|
var _classes;
|
|
6602
6599
|
|
|
6603
6600
|
var _ref$as = _ref.as,
|
|
@@ -6609,21 +6606,21 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6609
6606
|
|
|
6610
6607
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6611
6608
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6612
|
-
return /*#__PURE__*/
|
|
6609
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6613
6610
|
ref: ref
|
|
6614
6611
|
}, props, {
|
|
6615
6612
|
className: classnames(className, classes)
|
|
6616
6613
|
}));
|
|
6617
6614
|
});
|
|
6618
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6615
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6619
6616
|
Jumbotron.displayName = 'Jumbotron';
|
|
6620
6617
|
|
|
6621
|
-
var TabContext =
|
|
6618
|
+
var TabContext = React.createContext(null);
|
|
6622
6619
|
|
|
6623
6620
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6624
|
-
var noop$
|
|
6621
|
+
var noop$1 = function noop() {};
|
|
6625
6622
|
|
|
6626
|
-
var AbstractNav =
|
|
6623
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6627
6624
|
var _ref$as = _ref.as,
|
|
6628
6625
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6629
6626
|
onSelect = _ref.onSelect,
|
|
@@ -6704,27 +6701,27 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6704
6701
|
needsRefocusRef.current = false;
|
|
6705
6702
|
});
|
|
6706
6703
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6707
|
-
return /*#__PURE__*/
|
|
6704
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6708
6705
|
value: handleSelect
|
|
6709
|
-
}, /*#__PURE__*/
|
|
6706
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6710
6707
|
value: {
|
|
6711
6708
|
role: role,
|
|
6712
6709
|
// used by NavLink to determine it's role
|
|
6713
6710
|
activeKey: makeEventKey(activeKey),
|
|
6714
|
-
getControlledId: getControlledId || noop$
|
|
6715
|
-
getControllerId: getControllerId || noop$
|
|
6711
|
+
getControlledId: getControlledId || noop$1,
|
|
6712
|
+
getControllerId: getControllerId || noop$1
|
|
6716
6713
|
}
|
|
6717
|
-
}, /*#__PURE__*/
|
|
6714
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6718
6715
|
onKeyDown: handleKeyDown,
|
|
6719
6716
|
ref: mergedRef,
|
|
6720
6717
|
role: role
|
|
6721
6718
|
}))));
|
|
6722
6719
|
});
|
|
6723
6720
|
|
|
6724
|
-
var defaultProps$
|
|
6721
|
+
var defaultProps$h = {
|
|
6725
6722
|
disabled: false
|
|
6726
6723
|
};
|
|
6727
|
-
var AbstractNavItem =
|
|
6724
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6728
6725
|
var active = _ref.active,
|
|
6729
6726
|
className = _ref.className,
|
|
6730
6727
|
eventKey = _ref.eventKey,
|
|
@@ -6761,20 +6758,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6761
6758
|
if (onSelect) onSelect(navKey, e);
|
|
6762
6759
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6763
6760
|
});
|
|
6764
|
-
return /*#__PURE__*/
|
|
6761
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6765
6762
|
ref: ref,
|
|
6766
6763
|
onClick: handleOnclick,
|
|
6767
6764
|
className: classnames(className, isActive && 'active')
|
|
6768
6765
|
}));
|
|
6769
6766
|
});
|
|
6770
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6767
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6771
6768
|
|
|
6772
|
-
var defaultProps$
|
|
6769
|
+
var defaultProps$g = {
|
|
6773
6770
|
variant: undefined,
|
|
6774
6771
|
active: false,
|
|
6775
6772
|
disabled: false
|
|
6776
6773
|
};
|
|
6777
|
-
var ListGroupItem =
|
|
6774
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6778
6775
|
var bsPrefix = _ref.bsPrefix,
|
|
6779
6776
|
active = _ref.active,
|
|
6780
6777
|
disabled = _ref.disabled,
|
|
@@ -6796,7 +6793,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6796
6793
|
|
|
6797
6794
|
if (onClick) onClick(event);
|
|
6798
6795
|
}, [disabled, onClick]);
|
|
6799
|
-
return /*#__PURE__*/
|
|
6796
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6800
6797
|
ref: ref
|
|
6801
6798
|
}, props, {
|
|
6802
6799
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6807,14 +6804,14 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6807
6804
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6808
6805
|
}));
|
|
6809
6806
|
});
|
|
6810
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6807
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6811
6808
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6812
6809
|
|
|
6813
|
-
var defaultProps$
|
|
6810
|
+
var defaultProps$f = {
|
|
6814
6811
|
variant: undefined,
|
|
6815
6812
|
horizontal: undefined
|
|
6816
6813
|
};
|
|
6817
|
-
var ListGroup =
|
|
6814
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6818
6815
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6819
6816
|
activeKey: 'onSelect'
|
|
6820
6817
|
}),
|
|
@@ -6836,19 +6833,19 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6836
6833
|
}
|
|
6837
6834
|
|
|
6838
6835
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6839
|
-
return /*#__PURE__*/
|
|
6836
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6840
6837
|
ref: ref
|
|
6841
6838
|
}, controlledProps, {
|
|
6842
6839
|
as: as,
|
|
6843
6840
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6844
6841
|
}));
|
|
6845
6842
|
});
|
|
6846
|
-
ListGroup.defaultProps = defaultProps$
|
|
6843
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6847
6844
|
ListGroup.displayName = 'ListGroup';
|
|
6848
6845
|
ListGroup.Item = ListGroupItem;
|
|
6849
6846
|
|
|
6850
6847
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6851
|
-
var Media =
|
|
6848
|
+
var Media = 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
|
|
6852
6849
|
function (_ref, ref) {
|
|
6853
6850
|
var bsPrefix = _ref.bsPrefix,
|
|
6854
6851
|
className = _ref.className,
|
|
@@ -6857,7 +6854,7 @@ function (_ref, ref) {
|
|
|
6857
6854
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6858
6855
|
|
|
6859
6856
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6860
|
-
return /*#__PURE__*/
|
|
6857
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6861
6858
|
ref: ref,
|
|
6862
6859
|
className: classnames(className, prefix)
|
|
6863
6860
|
}));
|
|
@@ -6892,7 +6889,7 @@ function scrollbarSize(recalc) {
|
|
|
6892
6889
|
|
|
6893
6890
|
function activeElement(doc) {
|
|
6894
6891
|
if (doc === void 0) {
|
|
6895
|
-
doc = ownerDocument();
|
|
6892
|
+
doc = ownerDocument$1();
|
|
6896
6893
|
}
|
|
6897
6894
|
|
|
6898
6895
|
// Support: IE 9 only
|
|
@@ -6942,7 +6939,7 @@ function isBody(node) {
|
|
|
6942
6939
|
}
|
|
6943
6940
|
|
|
6944
6941
|
function bodyIsOverflowing(node) {
|
|
6945
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6942
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6946
6943
|
var win = isWindow(node) || doc.defaultView;
|
|
6947
6944
|
return doc.body.clientWidth < win.innerWidth;
|
|
6948
6945
|
}
|
|
@@ -7154,7 +7151,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7154
7151
|
var _ref;
|
|
7155
7152
|
|
|
7156
7153
|
if (typeof document === 'undefined') return null;
|
|
7157
|
-
if (ref == null) return ownerDocument().body;
|
|
7154
|
+
if (ref == null) return ownerDocument$1().body;
|
|
7158
7155
|
if (typeof ref === 'function') ref = ref();
|
|
7159
7156
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7160
7157
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7187,11 +7184,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7187
7184
|
return resolvedRef;
|
|
7188
7185
|
}
|
|
7189
7186
|
|
|
7190
|
-
var manager;
|
|
7187
|
+
var manager$1;
|
|
7191
7188
|
|
|
7192
7189
|
function getManager() {
|
|
7193
|
-
if (!manager) manager = new ModalManager();
|
|
7194
|
-
return manager;
|
|
7190
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7191
|
+
return manager$1;
|
|
7195
7192
|
}
|
|
7196
7193
|
|
|
7197
7194
|
function useModalManager(provided) {
|
|
@@ -7219,7 +7216,7 @@ function useModalManager(provided) {
|
|
|
7219
7216
|
});
|
|
7220
7217
|
}
|
|
7221
7218
|
|
|
7222
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7219
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7223
7220
|
var _ref$show = _ref.show,
|
|
7224
7221
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7225
7222
|
_ref$role = _ref.role,
|
|
@@ -7245,7 +7242,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7245
7242
|
renderDialog = _ref.renderDialog,
|
|
7246
7243
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7247
7244
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7248
|
-
return /*#__PURE__*/
|
|
7245
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7249
7246
|
} : _ref$renderBackdrop,
|
|
7250
7247
|
providedManager = _ref.manager,
|
|
7251
7248
|
containerRef = _ref.container,
|
|
@@ -7259,7 +7256,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7259
7256
|
onEnter = _ref.onEnter,
|
|
7260
7257
|
onEntering = _ref.onEntering,
|
|
7261
7258
|
onEntered = _ref.onEntered,
|
|
7262
|
-
rest = _objectWithoutPropertiesLoose
|
|
7259
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
|
|
7263
7260
|
|
|
7264
7261
|
var container = useWaitForDOMRef(containerRef);
|
|
7265
7262
|
var modal = useModalManager(providedManager);
|
|
@@ -7303,7 +7300,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7303
7300
|
if (autoFocus) {
|
|
7304
7301
|
var currentActiveElement = activeElement(document);
|
|
7305
7302
|
|
|
7306
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7303
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7307
7304
|
lastFocusRef.current = currentActiveElement;
|
|
7308
7305
|
modal.dialog.focus();
|
|
7309
7306
|
}
|
|
@@ -7349,7 +7346,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7349
7346
|
|
|
7350
7347
|
var currentActiveElement = activeElement();
|
|
7351
7348
|
|
|
7352
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7349
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7353
7350
|
modal.dialog.focus();
|
|
7354
7351
|
}
|
|
7355
7352
|
});
|
|
@@ -7392,7 +7389,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7392
7389
|
return null;
|
|
7393
7390
|
}
|
|
7394
7391
|
|
|
7395
|
-
var dialogProps = _extends
|
|
7392
|
+
var dialogProps = _extends({
|
|
7396
7393
|
role: role,
|
|
7397
7394
|
ref: modal.setDialogRef,
|
|
7398
7395
|
// apparently only works on the dialog role element
|
|
@@ -7403,12 +7400,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7403
7400
|
tabIndex: -1
|
|
7404
7401
|
});
|
|
7405
7402
|
|
|
7406
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7403
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7407
7404
|
role: 'document'
|
|
7408
7405
|
}));
|
|
7409
7406
|
|
|
7410
7407
|
if (Transition) {
|
|
7411
|
-
dialog = /*#__PURE__*/
|
|
7408
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7412
7409
|
appear: true,
|
|
7413
7410
|
unmountOnExit: true,
|
|
7414
7411
|
"in": !!show,
|
|
@@ -7431,16 +7428,16 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7431
7428
|
});
|
|
7432
7429
|
|
|
7433
7430
|
if (BackdropTransition) {
|
|
7434
|
-
backdropElement = /*#__PURE__*/
|
|
7431
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7435
7432
|
appear: true,
|
|
7436
7433
|
"in": !!show
|
|
7437
7434
|
}, backdropElement);
|
|
7438
7435
|
}
|
|
7439
7436
|
}
|
|
7440
7437
|
|
|
7441
|
-
return /*#__PURE__*/
|
|
7438
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7442
7439
|
});
|
|
7443
|
-
var propTypes$
|
|
7440
|
+
var propTypes$2 = {
|
|
7444
7441
|
/**
|
|
7445
7442
|
* Set the visibility of the Modal
|
|
7446
7443
|
*/
|
|
@@ -7596,9 +7593,9 @@ var propTypes$8 = {
|
|
|
7596
7593
|
*/
|
|
7597
7594
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7598
7595
|
};
|
|
7599
|
-
Modal.displayName = 'Modal';
|
|
7600
|
-
Modal.propTypes = propTypes$
|
|
7601
|
-
var BaseModal = Object.assign(Modal, {
|
|
7596
|
+
Modal$1.displayName = 'Modal';
|
|
7597
|
+
Modal$1.propTypes = propTypes$2;
|
|
7598
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7602
7599
|
Manager: ModalManager
|
|
7603
7600
|
});
|
|
7604
7601
|
|
|
@@ -7677,12 +7674,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7677
7674
|
|
|
7678
7675
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7679
7676
|
|
|
7680
|
-
var ModalContext =
|
|
7677
|
+
var ModalContext = React.createContext({
|
|
7681
7678
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7682
7679
|
onHide: function onHide() {}
|
|
7683
7680
|
});
|
|
7684
7681
|
|
|
7685
|
-
var ModalDialog =
|
|
7682
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7686
7683
|
var bsPrefix = _ref.bsPrefix,
|
|
7687
7684
|
className = _ref.className,
|
|
7688
7685
|
contentClassName = _ref.contentClassName,
|
|
@@ -7694,10 +7691,10 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7694
7691
|
|
|
7695
7692
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7696
7693
|
var dialogClass = bsPrefix + "-dialog";
|
|
7697
|
-
return /*#__PURE__*/
|
|
7694
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7698
7695
|
ref: ref,
|
|
7699
7696
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7700
|
-
}), /*#__PURE__*/
|
|
7697
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7701
7698
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7702
7699
|
}, children));
|
|
7703
7700
|
});
|
|
@@ -7705,11 +7702,11 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7705
7702
|
|
|
7706
7703
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7707
7704
|
|
|
7708
|
-
var defaultProps$
|
|
7705
|
+
var defaultProps$e = {
|
|
7709
7706
|
closeLabel: 'Close',
|
|
7710
7707
|
closeButton: false
|
|
7711
7708
|
};
|
|
7712
|
-
var ModalHeader =
|
|
7709
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7713
7710
|
var bsPrefix = _ref.bsPrefix,
|
|
7714
7711
|
closeLabel = _ref.closeLabel,
|
|
7715
7712
|
closeButton = _ref.closeButton,
|
|
@@ -7724,25 +7721,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7724
7721
|
if (context) context.onHide();
|
|
7725
7722
|
if (onHide) onHide();
|
|
7726
7723
|
});
|
|
7727
|
-
return /*#__PURE__*/
|
|
7724
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7728
7725
|
ref: ref
|
|
7729
7726
|
}, props, {
|
|
7730
7727
|
className: classnames(className, bsPrefix)
|
|
7731
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7728
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7732
7729
|
label: closeLabel,
|
|
7733
7730
|
onClick: handleClick
|
|
7734
7731
|
}));
|
|
7735
7732
|
});
|
|
7736
7733
|
ModalHeader.displayName = 'ModalHeader';
|
|
7737
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7734
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7738
7735
|
|
|
7739
|
-
var DivStyledAsH4
|
|
7736
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7740
7737
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7741
|
-
Component: DivStyledAsH4
|
|
7738
|
+
Component: DivStyledAsH4
|
|
7742
7739
|
});
|
|
7743
7740
|
|
|
7744
|
-
var manager
|
|
7745
|
-
var defaultProps$
|
|
7741
|
+
var manager;
|
|
7742
|
+
var defaultProps$d = {
|
|
7746
7743
|
show: false,
|
|
7747
7744
|
backdrop: true,
|
|
7748
7745
|
keyboard: true,
|
|
@@ -7755,16 +7752,16 @@ var defaultProps$r = {
|
|
|
7755
7752
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7756
7753
|
|
|
7757
7754
|
function DialogTransition(props) {
|
|
7758
|
-
return /*#__PURE__*/
|
|
7755
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7759
7756
|
}
|
|
7760
7757
|
|
|
7761
7758
|
function BackdropTransition(props) {
|
|
7762
|
-
return /*#__PURE__*/
|
|
7759
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7763
7760
|
}
|
|
7764
7761
|
/* eslint-enable no-use-before-define */
|
|
7765
7762
|
|
|
7766
7763
|
|
|
7767
|
-
var Modal
|
|
7764
|
+
var Modal = React.forwardRef(function (_ref, ref) {
|
|
7768
7765
|
var bsPrefix = _ref.bsPrefix,
|
|
7769
7766
|
className = _ref.className,
|
|
7770
7767
|
style = _ref.style,
|
|
@@ -7830,14 +7827,14 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7830
7827
|
|
|
7831
7828
|
function getModalManager() {
|
|
7832
7829
|
if (propsManager) return propsManager;
|
|
7833
|
-
if (!manager
|
|
7834
|
-
return manager
|
|
7830
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7831
|
+
return manager;
|
|
7835
7832
|
}
|
|
7836
7833
|
|
|
7837
7834
|
function updateDialogStyle(node) {
|
|
7838
7835
|
if (!canUseDOM) return;
|
|
7839
7836
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7840
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7837
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7841
7838
|
setStyle({
|
|
7842
7839
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7843
7840
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7959,7 +7956,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7959
7956
|
};
|
|
7960
7957
|
|
|
7961
7958
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7962
|
-
return /*#__PURE__*/
|
|
7959
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7963
7960
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7964
7961
|
}));
|
|
7965
7962
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7972,7 +7969,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7972
7969
|
}
|
|
7973
7970
|
|
|
7974
7971
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7975
|
-
return /*#__PURE__*/
|
|
7972
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7976
7973
|
role: "dialog"
|
|
7977
7974
|
}, dialogProps, {
|
|
7978
7975
|
style: baseModalStyle,
|
|
@@ -7980,7 +7977,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7980
7977
|
onClick: backdrop ? handleClick : undefined,
|
|
7981
7978
|
onMouseUp: handleMouseUp,
|
|
7982
7979
|
"aria-labelledby": ariaLabelledby
|
|
7983
|
-
}), /*#__PURE__*/
|
|
7980
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7984
7981
|
role: "document",
|
|
7985
7982
|
onMouseDown: handleDialogMouseDown,
|
|
7986
7983
|
className: dialogClassName,
|
|
@@ -7988,9 +7985,9 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7988
7985
|
}), children));
|
|
7989
7986
|
};
|
|
7990
7987
|
|
|
7991
|
-
return /*#__PURE__*/
|
|
7988
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7992
7989
|
value: modalContext
|
|
7993
|
-
}, /*#__PURE__*/
|
|
7990
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7994
7991
|
show: show,
|
|
7995
7992
|
ref: setModalRef,
|
|
7996
7993
|
backdrop: backdrop,
|
|
@@ -8018,17 +8015,17 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
8018
8015
|
renderDialog: renderDialog
|
|
8019
8016
|
}));
|
|
8020
8017
|
});
|
|
8021
|
-
Modal
|
|
8022
|
-
Modal
|
|
8023
|
-
Modal
|
|
8024
|
-
Modal
|
|
8025
|
-
Modal
|
|
8026
|
-
Modal
|
|
8027
|
-
Modal
|
|
8028
|
-
Modal
|
|
8029
|
-
Modal
|
|
8030
|
-
|
|
8031
|
-
var NavItem =
|
|
8018
|
+
Modal.displayName = 'Modal';
|
|
8019
|
+
Modal.defaultProps = defaultProps$d;
|
|
8020
|
+
Modal.Body = ModalBody;
|
|
8021
|
+
Modal.Header = ModalHeader;
|
|
8022
|
+
Modal.Title = ModalTitle;
|
|
8023
|
+
Modal.Footer = ModalFooter;
|
|
8024
|
+
Modal.Dialog = ModalDialog;
|
|
8025
|
+
Modal.TRANSITION_DURATION = 300;
|
|
8026
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8027
|
+
|
|
8028
|
+
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
|
|
8032
8029
|
function (_ref, ref) {
|
|
8033
8030
|
var bsPrefix = _ref.bsPrefix,
|
|
8034
8031
|
className = _ref.className,
|
|
@@ -8038,18 +8035,18 @@ function (_ref, ref) {
|
|
|
8038
8035
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8039
8036
|
|
|
8040
8037
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8041
|
-
return /*#__PURE__*/
|
|
8038
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8042
8039
|
ref: ref,
|
|
8043
8040
|
className: classnames(className, bsPrefix)
|
|
8044
8041
|
}), children);
|
|
8045
8042
|
});
|
|
8046
8043
|
NavItem.displayName = 'NavItem';
|
|
8047
8044
|
|
|
8048
|
-
var defaultProps$
|
|
8045
|
+
var defaultProps$c = {
|
|
8049
8046
|
disabled: false,
|
|
8050
8047
|
as: SafeAnchor
|
|
8051
8048
|
};
|
|
8052
|
-
var NavLink =
|
|
8049
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
8053
8050
|
var bsPrefix = _ref.bsPrefix,
|
|
8054
8051
|
disabled = _ref.disabled,
|
|
8055
8052
|
className = _ref.className,
|
|
@@ -8060,7 +8057,7 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8060
8057
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8061
8058
|
|
|
8062
8059
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8063
|
-
return /*#__PURE__*/
|
|
8060
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
8064
8061
|
href: href,
|
|
8065
8062
|
ref: ref,
|
|
8066
8063
|
eventKey: eventKey,
|
|
@@ -8071,13 +8068,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8071
8068
|
}));
|
|
8072
8069
|
});
|
|
8073
8070
|
NavLink.displayName = 'NavLink';
|
|
8074
|
-
NavLink.defaultProps = defaultProps$
|
|
8071
|
+
NavLink.defaultProps = defaultProps$c;
|
|
8075
8072
|
|
|
8076
|
-
var defaultProps$
|
|
8073
|
+
var defaultProps$b = {
|
|
8077
8074
|
justify: false,
|
|
8078
8075
|
fill: false
|
|
8079
8076
|
};
|
|
8080
|
-
var Nav =
|
|
8077
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8081
8078
|
var _classNames;
|
|
8082
8079
|
|
|
8083
8080
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8099,7 +8096,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8099
8096
|
var navbarBsPrefix;
|
|
8100
8097
|
var cardHeaderBsPrefix;
|
|
8101
8098
|
var isNavbar = false;
|
|
8102
|
-
var navbarContext = useContext(context
|
|
8099
|
+
var navbarContext = useContext(context);
|
|
8103
8100
|
var cardContext = useContext(context$1);
|
|
8104
8101
|
|
|
8105
8102
|
if (navbarContext) {
|
|
@@ -8109,7 +8106,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8109
8106
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8110
8107
|
}
|
|
8111
8108
|
|
|
8112
|
-
return /*#__PURE__*/
|
|
8109
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8113
8110
|
as: as,
|
|
8114
8111
|
ref: ref,
|
|
8115
8112
|
activeKey: activeKey,
|
|
@@ -8117,11 +8114,11 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8117
8114
|
}, props), children);
|
|
8118
8115
|
});
|
|
8119
8116
|
Nav.displayName = 'Nav';
|
|
8120
|
-
Nav.defaultProps = defaultProps$
|
|
8117
|
+
Nav.defaultProps = defaultProps$b;
|
|
8121
8118
|
Nav.Item = NavItem;
|
|
8122
8119
|
Nav.Link = NavLink;
|
|
8123
8120
|
|
|
8124
|
-
var NavbarBrand =
|
|
8121
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8125
8122
|
var bsPrefix = _ref.bsPrefix,
|
|
8126
8123
|
className = _ref.className,
|
|
8127
8124
|
as = _ref.as,
|
|
@@ -8129,23 +8126,23 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8129
8126
|
|
|
8130
8127
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8131
8128
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8132
|
-
return /*#__PURE__*/
|
|
8129
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8133
8130
|
ref: ref,
|
|
8134
8131
|
className: classnames(className, bsPrefix)
|
|
8135
8132
|
}));
|
|
8136
8133
|
});
|
|
8137
8134
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8138
8135
|
|
|
8139
|
-
var NavbarCollapse =
|
|
8136
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8140
8137
|
var children = _ref.children,
|
|
8141
8138
|
bsPrefix = _ref.bsPrefix,
|
|
8142
8139
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8143
8140
|
|
|
8144
8141
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8145
|
-
return /*#__PURE__*/
|
|
8146
|
-
return /*#__PURE__*/
|
|
8142
|
+
return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
|
|
8143
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8147
8144
|
in: !!(context && context.expanded)
|
|
8148
|
-
}, props), /*#__PURE__*/
|
|
8145
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8149
8146
|
ref: ref,
|
|
8150
8147
|
className: bsPrefix
|
|
8151
8148
|
}, children));
|
|
@@ -8153,10 +8150,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8153
8150
|
});
|
|
8154
8151
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8155
8152
|
|
|
8156
|
-
var defaultProps$
|
|
8153
|
+
var defaultProps$a = {
|
|
8157
8154
|
label: 'Toggle navigation'
|
|
8158
8155
|
};
|
|
8159
|
-
var NavbarToggle =
|
|
8156
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8160
8157
|
var bsPrefix = _ref.bsPrefix,
|
|
8161
8158
|
className = _ref.className,
|
|
8162
8159
|
children = _ref.children,
|
|
@@ -8168,7 +8165,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8168
8165
|
|
|
8169
8166
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8170
8167
|
|
|
8171
|
-
var _ref2 = useContext(context
|
|
8168
|
+
var _ref2 = useContext(context) || {},
|
|
8172
8169
|
onToggle = _ref2.onToggle,
|
|
8173
8170
|
expanded = _ref2.expanded;
|
|
8174
8171
|
|
|
@@ -8181,27 +8178,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8181
8178
|
props.type = 'button';
|
|
8182
8179
|
}
|
|
8183
8180
|
|
|
8184
|
-
return /*#__PURE__*/
|
|
8181
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8185
8182
|
ref: ref,
|
|
8186
8183
|
onClick: handleClick,
|
|
8187
8184
|
"aria-label": label,
|
|
8188
8185
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8189
|
-
}), children || /*#__PURE__*/
|
|
8186
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8190
8187
|
className: bsPrefix + "-icon"
|
|
8191
8188
|
}));
|
|
8192
8189
|
});
|
|
8193
8190
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8194
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8191
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
8195
8192
|
|
|
8196
8193
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8197
8194
|
Component: 'span'
|
|
8198
8195
|
});
|
|
8199
|
-
var defaultProps$
|
|
8196
|
+
var defaultProps$9 = {
|
|
8200
8197
|
expand: true,
|
|
8201
8198
|
variant: 'light',
|
|
8202
8199
|
collapseOnSelect: false
|
|
8203
8200
|
};
|
|
8204
|
-
var Navbar =
|
|
8201
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8205
8202
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8206
8203
|
expanded: 'onToggle'
|
|
8207
8204
|
}),
|
|
@@ -8249,24 +8246,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8249
8246
|
expanded: !!expanded
|
|
8250
8247
|
};
|
|
8251
8248
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8252
|
-
return /*#__PURE__*/
|
|
8249
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
8253
8250
|
value: navbarContext
|
|
8254
|
-
}, /*#__PURE__*/
|
|
8251
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8255
8252
|
value: handleCollapse
|
|
8256
|
-
}, /*#__PURE__*/
|
|
8253
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8257
8254
|
ref: ref
|
|
8258
8255
|
}, controlledProps, {
|
|
8259
8256
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8260
8257
|
}), children)));
|
|
8261
8258
|
});
|
|
8262
|
-
Navbar.defaultProps = defaultProps$
|
|
8259
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8263
8260
|
Navbar.displayName = 'Navbar';
|
|
8264
8261
|
Navbar.Brand = NavbarBrand;
|
|
8265
8262
|
Navbar.Toggle = NavbarToggle;
|
|
8266
8263
|
Navbar.Collapse = NavbarCollapse;
|
|
8267
8264
|
Navbar.Text = NavbarText;
|
|
8268
8265
|
|
|
8269
|
-
var propTypes$
|
|
8266
|
+
var propTypes$1 = {
|
|
8270
8267
|
/**
|
|
8271
8268
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8272
8269
|
* @type {string|number}
|
|
@@ -8302,7 +8299,7 @@ var propTypes$9 = {
|
|
|
8302
8299
|
/** @ignore */
|
|
8303
8300
|
bsPrefix: PropTypes.string
|
|
8304
8301
|
};
|
|
8305
|
-
var NavDropdown =
|
|
8302
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8306
8303
|
var id = _ref.id,
|
|
8307
8304
|
title = _ref.title,
|
|
8308
8305
|
children = _ref.children,
|
|
@@ -8314,35 +8311,35 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8314
8311
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8315
8312
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8316
8313
|
|
|
8317
|
-
return /*#__PURE__*/
|
|
8314
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8318
8315
|
ref: ref
|
|
8319
8316
|
}, props, {
|
|
8320
8317
|
as: NavItem
|
|
8321
|
-
}), /*#__PURE__*/
|
|
8318
|
+
}), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8322
8319
|
id: id,
|
|
8323
8320
|
eventKey: null,
|
|
8324
8321
|
active: active,
|
|
8325
8322
|
disabled: disabled,
|
|
8326
8323
|
childBsPrefix: bsPrefix,
|
|
8327
8324
|
as: NavLink
|
|
8328
|
-
}, title), /*#__PURE__*/
|
|
8325
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8329
8326
|
role: menuRole,
|
|
8330
8327
|
renderOnMount: renderMenuOnMount,
|
|
8331
8328
|
rootCloseEvent: rootCloseEvent
|
|
8332
8329
|
}, children));
|
|
8333
8330
|
});
|
|
8334
8331
|
NavDropdown.displayName = 'NavDropdown';
|
|
8335
|
-
NavDropdown.propTypes = propTypes$
|
|
8336
|
-
NavDropdown.Item = Dropdown
|
|
8337
|
-
NavDropdown.ItemText = Dropdown
|
|
8338
|
-
NavDropdown.Divider = Dropdown
|
|
8339
|
-
NavDropdown.Header = Dropdown
|
|
8332
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8333
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8334
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8335
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8336
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8340
8337
|
|
|
8341
8338
|
/**
|
|
8342
8339
|
* Built on top of `Popper.js`, the overlay component is
|
|
8343
8340
|
* great for custom tooltip overlays.
|
|
8344
8341
|
*/
|
|
8345
|
-
var Overlay = /*#__PURE__*/
|
|
8342
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8346
8343
|
var flip = props.flip,
|
|
8347
8344
|
offset = props.offset,
|
|
8348
8345
|
placement = props.placement,
|
|
@@ -8379,7 +8376,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8379
8376
|
})),
|
|
8380
8377
|
styles = _usePopper.styles,
|
|
8381
8378
|
attributes = _usePopper.attributes,
|
|
8382
|
-
popper = _objectWithoutPropertiesLoose
|
|
8379
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
8383
8380
|
|
|
8384
8381
|
if (props.show) {
|
|
8385
8382
|
if (exited) setExited(false);
|
|
@@ -8407,13 +8404,13 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8407
8404
|
return null;
|
|
8408
8405
|
}
|
|
8409
8406
|
|
|
8410
|
-
var child = props.children(_extends
|
|
8407
|
+
var child = props.children(_extends({}, popper, {
|
|
8411
8408
|
show: !!props.show,
|
|
8412
|
-
props: _extends
|
|
8409
|
+
props: _extends({}, attributes.popper, {
|
|
8413
8410
|
style: styles.popper,
|
|
8414
8411
|
ref: mergedRef
|
|
8415
8412
|
}),
|
|
8416
|
-
arrowProps: _extends
|
|
8413
|
+
arrowProps: _extends({}, attributes.arrow, {
|
|
8417
8414
|
style: styles.arrow,
|
|
8418
8415
|
ref: attachArrowRef
|
|
8419
8416
|
})
|
|
@@ -8425,7 +8422,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8425
8422
|
onEnter = props.onEnter,
|
|
8426
8423
|
onEntering = props.onEntering,
|
|
8427
8424
|
onEntered = props.onEntered;
|
|
8428
|
-
child = /*#__PURE__*/
|
|
8425
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8429
8426
|
"in": props.show,
|
|
8430
8427
|
appear: true,
|
|
8431
8428
|
onExit: onExit,
|
|
@@ -8577,7 +8574,7 @@ Overlay.propTypes = {
|
|
|
8577
8574
|
onExited: PropTypes.func
|
|
8578
8575
|
};
|
|
8579
8576
|
|
|
8580
|
-
|
|
8577
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8581
8578
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8582
8579
|
|
|
8583
8580
|
function RefHolder() {
|
|
@@ -8591,14 +8588,14 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8591
8588
|
};
|
|
8592
8589
|
|
|
8593
8590
|
return RefHolder;
|
|
8594
|
-
}(
|
|
8591
|
+
})(React.Component);
|
|
8595
8592
|
|
|
8596
|
-
var defaultProps$
|
|
8593
|
+
var defaultProps$8 = {
|
|
8597
8594
|
active: false,
|
|
8598
8595
|
disabled: false,
|
|
8599
8596
|
activeLabel: '(current)'
|
|
8600
8597
|
};
|
|
8601
|
-
var PageItem =
|
|
8598
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8602
8599
|
var active = _ref.active,
|
|
8603
8600
|
disabled = _ref.disabled,
|
|
8604
8601
|
className = _ref.className,
|
|
@@ -8608,21 +8605,21 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8608
8605
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8609
8606
|
|
|
8610
8607
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8611
|
-
return /*#__PURE__*/
|
|
8608
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8612
8609
|
ref: ref,
|
|
8613
8610
|
style: style,
|
|
8614
8611
|
className: classnames(className, 'page-item', {
|
|
8615
8612
|
active: active,
|
|
8616
8613
|
disabled: disabled
|
|
8617
8614
|
})
|
|
8618
|
-
}, /*#__PURE__*/
|
|
8615
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8619
8616
|
className: "page-link",
|
|
8620
8617
|
disabled: disabled
|
|
8621
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8618
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8622
8619
|
className: "sr-only"
|
|
8623
8620
|
}, activeLabel)));
|
|
8624
8621
|
});
|
|
8625
|
-
PageItem.defaultProps = defaultProps$
|
|
8622
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8626
8623
|
PageItem.displayName = 'PageItem';
|
|
8627
8624
|
|
|
8628
8625
|
function createButton(name, defaultValue, label) {
|
|
@@ -8634,9 +8631,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8634
8631
|
var children = _ref2.children,
|
|
8635
8632
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8636
8633
|
|
|
8637
|
-
return /*#__PURE__*/
|
|
8634
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8638
8635
|
"aria-hidden": "true"
|
|
8639
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8636
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8640
8637
|
className: "sr-only"
|
|
8641
8638
|
}, label));
|
|
8642
8639
|
}
|
|
@@ -8659,7 +8656,7 @@ var Last = createButton('Last', '»');
|
|
|
8659
8656
|
* @property {PageItem} Next
|
|
8660
8657
|
* @property {PageItem} Last
|
|
8661
8658
|
*/
|
|
8662
|
-
var Pagination =
|
|
8659
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8663
8660
|
var bsPrefix = _ref.bsPrefix,
|
|
8664
8661
|
className = _ref.className,
|
|
8665
8662
|
children = _ref.children,
|
|
@@ -8667,7 +8664,7 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8667
8664
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8668
8665
|
|
|
8669
8666
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8670
|
-
return /*#__PURE__*/
|
|
8667
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8671
8668
|
ref: ref
|
|
8672
8669
|
}, props, {
|
|
8673
8670
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8680,7 +8677,7 @@ Pagination.Item = PageItem;
|
|
|
8680
8677
|
Pagination.Next = Next;
|
|
8681
8678
|
Pagination.Last = Last;
|
|
8682
8679
|
|
|
8683
|
-
var PopoverTitle =
|
|
8680
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8684
8681
|
var _ref$as = _ref.as,
|
|
8685
8682
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8686
8683
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8689,14 +8686,14 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8689
8686
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8690
8687
|
|
|
8691
8688
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8692
|
-
return /*#__PURE__*/
|
|
8689
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8693
8690
|
ref: ref
|
|
8694
8691
|
}, props, {
|
|
8695
8692
|
className: classnames(bsPrefix, className)
|
|
8696
8693
|
}), children);
|
|
8697
8694
|
});
|
|
8698
8695
|
|
|
8699
|
-
var PopoverContent =
|
|
8696
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8700
8697
|
var _ref$as = _ref.as,
|
|
8701
8698
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8702
8699
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8705,50 +8702,50 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8705
8702
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8706
8703
|
|
|
8707
8704
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8708
|
-
return /*#__PURE__*/
|
|
8705
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8709
8706
|
ref: ref
|
|
8710
8707
|
}, props, {
|
|
8711
8708
|
className: classnames(className, bsPrefix)
|
|
8712
8709
|
}), children);
|
|
8713
8710
|
});
|
|
8714
8711
|
|
|
8715
|
-
var defaultProps$
|
|
8712
|
+
var defaultProps$7 = {
|
|
8716
8713
|
placement: 'right'
|
|
8717
8714
|
};
|
|
8718
|
-
var Popover =
|
|
8715
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8719
8716
|
var bsPrefix = _ref.bsPrefix,
|
|
8720
8717
|
placement = _ref.placement,
|
|
8721
8718
|
className = _ref.className,
|
|
8722
8719
|
style = _ref.style,
|
|
8723
8720
|
children = _ref.children,
|
|
8724
8721
|
content = _ref.content,
|
|
8725
|
-
arrowProps = _ref.arrowProps
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8722
|
+
arrowProps = _ref.arrowProps;
|
|
8723
|
+
_ref.popper;
|
|
8724
|
+
_ref.show;
|
|
8725
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8729
8726
|
|
|
8730
8727
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8731
8728
|
|
|
8732
8729
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8733
8730
|
primaryPlacement = _ref2[0];
|
|
8734
8731
|
|
|
8735
|
-
return /*#__PURE__*/
|
|
8732
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8736
8733
|
ref: ref,
|
|
8737
8734
|
role: "tooltip",
|
|
8738
8735
|
style: style,
|
|
8739
8736
|
"x-placement": primaryPlacement,
|
|
8740
8737
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8741
|
-
}, props), /*#__PURE__*/
|
|
8738
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8742
8739
|
className: "arrow"
|
|
8743
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8740
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8744
8741
|
});
|
|
8745
|
-
Popover.defaultProps = defaultProps$
|
|
8742
|
+
Popover.defaultProps = defaultProps$7;
|
|
8746
8743
|
Popover.Title = PopoverTitle;
|
|
8747
8744
|
Popover.Content = PopoverContent;
|
|
8748
8745
|
|
|
8749
8746
|
var ROUND_PRECISION = 1000;
|
|
8750
8747
|
|
|
8751
|
-
var defaultProps$
|
|
8748
|
+
var defaultProps$6 = {
|
|
8752
8749
|
min: 0,
|
|
8753
8750
|
max: 100,
|
|
8754
8751
|
animated: false,
|
|
@@ -8778,7 +8775,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8778
8775
|
bsPrefix = _ref.bsPrefix,
|
|
8779
8776
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8780
8777
|
|
|
8781
|
-
return /*#__PURE__*/
|
|
8778
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8782
8779
|
ref: ref
|
|
8783
8780
|
}, props, {
|
|
8784
8781
|
role: "progressbar",
|
|
@@ -8789,12 +8786,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8789
8786
|
"aria-valuenow": now,
|
|
8790
8787
|
"aria-valuemin": min,
|
|
8791
8788
|
"aria-valuemax": max
|
|
8792
|
-
}), srOnly ? /*#__PURE__*/
|
|
8789
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8793
8790
|
className: "sr-only"
|
|
8794
8791
|
}, label) : label);
|
|
8795
8792
|
}
|
|
8796
8793
|
|
|
8797
|
-
var ProgressBar =
|
|
8794
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8798
8795
|
var isChild = _ref2.isChild,
|
|
8799
8796
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8800
8797
|
|
|
@@ -8817,7 +8814,7 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8817
8814
|
children = props.children,
|
|
8818
8815
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8819
8816
|
|
|
8820
|
-
return /*#__PURE__*/
|
|
8817
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8821
8818
|
ref: ref
|
|
8822
8819
|
}, wrapperProps, {
|
|
8823
8820
|
className: classnames(className, bsPrefix)
|
|
@@ -8838,12 +8835,12 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8838
8835
|
}, ref));
|
|
8839
8836
|
});
|
|
8840
8837
|
ProgressBar.displayName = 'ProgressBar';
|
|
8841
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8838
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8842
8839
|
|
|
8843
|
-
var defaultProps$
|
|
8840
|
+
var defaultProps$5 = {
|
|
8844
8841
|
aspectRatio: '1by1'
|
|
8845
8842
|
};
|
|
8846
|
-
var ResponsiveEmbed =
|
|
8843
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8847
8844
|
var bsPrefix = _ref.bsPrefix,
|
|
8848
8845
|
className = _ref.className,
|
|
8849
8846
|
children = _ref.children,
|
|
@@ -8851,22 +8848,22 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8851
8848
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8852
8849
|
|
|
8853
8850
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8854
|
-
var child =
|
|
8855
|
-
return /*#__PURE__*/
|
|
8851
|
+
var child = React.Children.only(children);
|
|
8852
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8856
8853
|
ref: ref
|
|
8857
8854
|
}, props, {
|
|
8858
8855
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8859
|
-
}),
|
|
8856
|
+
}), React.cloneElement(child, {
|
|
8860
8857
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8861
8858
|
}));
|
|
8862
8859
|
});
|
|
8863
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8860
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8864
8861
|
|
|
8865
|
-
var DEVICE_SIZES
|
|
8866
|
-
var defaultProps$
|
|
8862
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8863
|
+
var defaultProps$4 = {
|
|
8867
8864
|
noGutters: false
|
|
8868
8865
|
};
|
|
8869
|
-
var Row =
|
|
8866
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8870
8867
|
var bsPrefix = _ref.bsPrefix,
|
|
8871
8868
|
className = _ref.className,
|
|
8872
8869
|
noGutters = _ref.noGutters,
|
|
@@ -8877,7 +8874,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8877
8874
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8878
8875
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8879
8876
|
var classes = [];
|
|
8880
|
-
DEVICE_SIZES
|
|
8877
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8881
8878
|
var propValue = props[brkPoint];
|
|
8882
8879
|
delete props[brkPoint];
|
|
8883
8880
|
var cols;
|
|
@@ -8891,16 +8888,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8891
8888
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8892
8889
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8893
8890
|
});
|
|
8894
|
-
return /*#__PURE__*/
|
|
8891
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8895
8892
|
ref: ref
|
|
8896
8893
|
}, props, {
|
|
8897
8894
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8898
8895
|
}));
|
|
8899
8896
|
});
|
|
8900
8897
|
Row.displayName = 'Row';
|
|
8901
|
-
Row.defaultProps = defaultProps$
|
|
8898
|
+
Row.defaultProps = defaultProps$4;
|
|
8902
8899
|
|
|
8903
|
-
var Spinner =
|
|
8900
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8904
8901
|
var bsPrefix = _ref.bsPrefix,
|
|
8905
8902
|
variant = _ref.variant,
|
|
8906
8903
|
animation = _ref.animation,
|
|
@@ -8913,7 +8910,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8913
8910
|
|
|
8914
8911
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8915
8912
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8916
|
-
return /*#__PURE__*/
|
|
8913
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8917
8914
|
ref: ref
|
|
8918
8915
|
}, props, {
|
|
8919
8916
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8921,7 +8918,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8921
8918
|
});
|
|
8922
8919
|
Spinner.displayName = 'Spinner';
|
|
8923
8920
|
|
|
8924
|
-
var propTypes
|
|
8921
|
+
var propTypes = {
|
|
8925
8922
|
/**
|
|
8926
8923
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8927
8924
|
* @type {string|number}
|
|
@@ -8983,11 +8980,11 @@ var propTypes$a = {
|
|
|
8983
8980
|
/** @ignore */
|
|
8984
8981
|
size: PropTypes.string
|
|
8985
8982
|
};
|
|
8986
|
-
var defaultProps$
|
|
8983
|
+
var defaultProps$3 = {
|
|
8987
8984
|
toggleLabel: 'Toggle dropdown',
|
|
8988
8985
|
type: 'button'
|
|
8989
8986
|
};
|
|
8990
|
-
var SplitButton =
|
|
8987
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8991
8988
|
var id = _ref.id,
|
|
8992
8989
|
bsPrefix = _ref.bsPrefix,
|
|
8993
8990
|
size = _ref.size,
|
|
@@ -9005,11 +9002,11 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9005
9002
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9006
9003
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9007
9004
|
|
|
9008
|
-
return /*#__PURE__*/
|
|
9005
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
9009
9006
|
ref: ref
|
|
9010
9007
|
}, props, {
|
|
9011
9008
|
as: ButtonGroup
|
|
9012
|
-
}), /*#__PURE__*/
|
|
9009
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
9013
9010
|
size: size,
|
|
9014
9011
|
variant: variant,
|
|
9015
9012
|
disabled: props.disabled,
|
|
@@ -9018,24 +9015,24 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9018
9015
|
target: target,
|
|
9019
9016
|
onClick: onClick,
|
|
9020
9017
|
type: type
|
|
9021
|
-
}, title), /*#__PURE__*/
|
|
9018
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
9022
9019
|
split: true,
|
|
9023
9020
|
id: id ? id.toString() : undefined,
|
|
9024
9021
|
size: size,
|
|
9025
9022
|
variant: variant,
|
|
9026
9023
|
disabled: props.disabled,
|
|
9027
9024
|
childBsPrefix: bsPrefix
|
|
9028
|
-
}, /*#__PURE__*/
|
|
9025
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
9029
9026
|
className: "sr-only"
|
|
9030
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
9027
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
9031
9028
|
align: menuAlign,
|
|
9032
9029
|
role: menuRole,
|
|
9033
9030
|
renderOnMount: renderMenuOnMount,
|
|
9034
9031
|
rootCloseEvent: rootCloseEvent
|
|
9035
9032
|
}, children));
|
|
9036
9033
|
});
|
|
9037
|
-
SplitButton.propTypes = propTypes
|
|
9038
|
-
SplitButton.defaultProps = defaultProps$
|
|
9034
|
+
SplitButton.propTypes = propTypes;
|
|
9035
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
9039
9036
|
SplitButton.displayName = 'SplitButton';
|
|
9040
9037
|
|
|
9041
9038
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9071,14 +9068,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
9071
9068
|
}
|
|
9072
9069
|
};
|
|
9073
9070
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
9074
|
-
return /*#__PURE__*/
|
|
9071
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9075
9072
|
value: tabContext
|
|
9076
|
-
}, /*#__PURE__*/
|
|
9073
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9077
9074
|
value: onSelect || null
|
|
9078
9075
|
}, children));
|
|
9079
9076
|
};
|
|
9080
9077
|
|
|
9081
|
-
var TabContent =
|
|
9078
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9082
9079
|
var bsPrefix = _ref.bsPrefix,
|
|
9083
9080
|
_ref$as = _ref.as,
|
|
9084
9081
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -9086,7 +9083,7 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9086
9083
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9087
9084
|
|
|
9088
9085
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9089
|
-
return /*#__PURE__*/
|
|
9086
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9090
9087
|
ref: ref
|
|
9091
9088
|
}, props, {
|
|
9092
9089
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9114,7 +9111,7 @@ function useTabContext(props) {
|
|
|
9114
9111
|
});
|
|
9115
9112
|
}
|
|
9116
9113
|
|
|
9117
|
-
var TabPane =
|
|
9114
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9118
9115
|
var _useTabContext = useTabContext(props),
|
|
9119
9116
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9120
9117
|
className = _useTabContext.className,
|
|
@@ -9129,13 +9126,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9129
9126
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9130
9127
|
Transition = _useTabContext.transition,
|
|
9131
9128
|
_useTabContext$as = _useTabContext.as,
|
|
9132
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9133
|
-
|
|
9134
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9129
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9130
|
+
_useTabContext.eventKey;
|
|
9131
|
+
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9135
9132
|
|
|
9136
9133
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9137
9134
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9138
|
-
var pane = /*#__PURE__*/
|
|
9135
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9139
9136
|
ref: ref,
|
|
9140
9137
|
role: "tabpanel",
|
|
9141
9138
|
"aria-hidden": !active,
|
|
@@ -9143,7 +9140,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9143
9140
|
active: active
|
|
9144
9141
|
})
|
|
9145
9142
|
}));
|
|
9146
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9143
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9147
9144
|
in: active,
|
|
9148
9145
|
onEnter: onEnter,
|
|
9149
9146
|
onEntering: onEntering,
|
|
@@ -9156,9 +9153,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9156
9153
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9157
9154
|
// conflict with the top level one.
|
|
9158
9155
|
|
|
9159
|
-
return /*#__PURE__*/
|
|
9156
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9160
9157
|
value: null
|
|
9161
|
-
}, /*#__PURE__*/
|
|
9158
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9162
9159
|
value: null
|
|
9163
9160
|
}, pane));
|
|
9164
9161
|
});
|
|
@@ -9179,13 +9176,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9179
9176
|
};
|
|
9180
9177
|
|
|
9181
9178
|
return Tab;
|
|
9182
|
-
}(
|
|
9179
|
+
}(React.Component);
|
|
9183
9180
|
|
|
9184
9181
|
Tab.Container = TabContainer;
|
|
9185
9182
|
Tab.Content = TabContent;
|
|
9186
9183
|
Tab.Pane = TabPane;
|
|
9187
9184
|
|
|
9188
|
-
|
|
9185
|
+
React.forwardRef(function (_ref, ref) {
|
|
9189
9186
|
var bsPrefix = _ref.bsPrefix,
|
|
9190
9187
|
className = _ref.className,
|
|
9191
9188
|
striped = _ref.striped,
|
|
@@ -9199,7 +9196,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9199
9196
|
|
|
9200
9197
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9201
9198
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9202
|
-
var table = /*#__PURE__*/
|
|
9199
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9203
9200
|
className: classes,
|
|
9204
9201
|
ref: ref
|
|
9205
9202
|
}));
|
|
@@ -9211,7 +9208,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9211
9208
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9212
9209
|
}
|
|
9213
9210
|
|
|
9214
|
-
return /*#__PURE__*/
|
|
9211
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9215
9212
|
className: responsiveClass
|
|
9216
9213
|
}, table);
|
|
9217
9214
|
}
|
|
@@ -9219,16 +9216,16 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9219
9216
|
return table;
|
|
9220
9217
|
});
|
|
9221
9218
|
|
|
9222
|
-
var ToastContext =
|
|
9219
|
+
var ToastContext = React.createContext({
|
|
9223
9220
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9224
9221
|
onClose: function onClose() {}
|
|
9225
9222
|
});
|
|
9226
9223
|
|
|
9227
|
-
var defaultProps$
|
|
9224
|
+
var defaultProps$2 = {
|
|
9228
9225
|
closeLabel: 'Close',
|
|
9229
9226
|
closeButton: true
|
|
9230
9227
|
};
|
|
9231
|
-
var ToastHeader =
|
|
9228
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9232
9229
|
var bsPrefix = _ref.bsPrefix,
|
|
9233
9230
|
closeLabel = _ref.closeLabel,
|
|
9234
9231
|
closeButton = _ref.closeButton,
|
|
@@ -9243,11 +9240,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9243
9240
|
context.onClose(e);
|
|
9244
9241
|
}
|
|
9245
9242
|
});
|
|
9246
|
-
return /*#__PURE__*/
|
|
9243
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9247
9244
|
ref: ref
|
|
9248
9245
|
}, props, {
|
|
9249
9246
|
className: classnames(bsPrefix, className)
|
|
9250
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9247
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9251
9248
|
label: closeLabel,
|
|
9252
9249
|
onClick: handleClick,
|
|
9253
9250
|
className: "ml-2 mb-1",
|
|
@@ -9255,11 +9252,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9255
9252
|
}));
|
|
9256
9253
|
});
|
|
9257
9254
|
ToastHeader.displayName = 'ToastHeader';
|
|
9258
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9255
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9259
9256
|
|
|
9260
9257
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9261
9258
|
|
|
9262
|
-
var Toast =
|
|
9259
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9263
9260
|
var bsPrefix = _ref.bsPrefix,
|
|
9264
9261
|
className = _ref.className,
|
|
9265
9262
|
children = _ref.children,
|
|
@@ -9302,16 +9299,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9302
9299
|
};
|
|
9303
9300
|
}, [onClose]);
|
|
9304
9301
|
var hasAnimation = !!(Transition && animation);
|
|
9305
|
-
var toast = /*#__PURE__*/
|
|
9302
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9306
9303
|
ref: ref,
|
|
9307
9304
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9308
9305
|
role: "alert",
|
|
9309
9306
|
"aria-live": "assertive",
|
|
9310
9307
|
"aria-atomic": "true"
|
|
9311
9308
|
}), children);
|
|
9312
|
-
return /*#__PURE__*/
|
|
9309
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9313
9310
|
value: toastContext
|
|
9314
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9311
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9315
9312
|
in: show,
|
|
9316
9313
|
unmountOnExit: true
|
|
9317
9314
|
}, toast) : toast);
|
|
@@ -9322,11 +9319,11 @@ Object.assign(Toast, {
|
|
|
9322
9319
|
Header: ToastHeader
|
|
9323
9320
|
});
|
|
9324
9321
|
|
|
9325
|
-
var noop
|
|
9322
|
+
var noop = function noop() {
|
|
9326
9323
|
return undefined;
|
|
9327
9324
|
};
|
|
9328
9325
|
|
|
9329
|
-
var ToggleButton =
|
|
9326
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9330
9327
|
var children = _ref.children,
|
|
9331
9328
|
name = _ref.name,
|
|
9332
9329
|
className = _ref.className,
|
|
@@ -9348,13 +9345,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9348
9345
|
var handleBlur = useCallback(function (e) {
|
|
9349
9346
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9350
9347
|
}, []);
|
|
9351
|
-
return /*#__PURE__*/
|
|
9348
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9352
9349
|
ref: ref,
|
|
9353
9350
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9354
9351
|
type: undefined,
|
|
9355
9352
|
active: !!checked,
|
|
9356
9353
|
as: "label"
|
|
9357
|
-
}), /*#__PURE__*/
|
|
9354
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9358
9355
|
name: name,
|
|
9359
9356
|
type: type,
|
|
9360
9357
|
value: value,
|
|
@@ -9364,16 +9361,16 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9364
9361
|
disabled: !!disabled,
|
|
9365
9362
|
onFocus: handleFocus,
|
|
9366
9363
|
onBlur: handleBlur,
|
|
9367
|
-
onChange: onChange || noop
|
|
9364
|
+
onChange: onChange || noop
|
|
9368
9365
|
}), children);
|
|
9369
9366
|
});
|
|
9370
9367
|
ToggleButton.displayName = 'ToggleButton';
|
|
9371
9368
|
|
|
9372
|
-
var defaultProps$
|
|
9369
|
+
var defaultProps$1 = {
|
|
9373
9370
|
type: 'radio',
|
|
9374
9371
|
vertical: false
|
|
9375
9372
|
};
|
|
9376
|
-
var ToggleButtonGroup =
|
|
9373
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9377
9374
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9378
9375
|
value: 'onChange'
|
|
9379
9376
|
}),
|
|
@@ -9411,7 +9408,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9411
9408
|
};
|
|
9412
9409
|
|
|
9413
9410
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9414
|
-
return /*#__PURE__*/
|
|
9411
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9415
9412
|
ref: ref,
|
|
9416
9413
|
toggle: true
|
|
9417
9414
|
}), map(children, function (child) {
|
|
@@ -9424,7 +9421,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9424
9421
|
return handleToggle(childVal, e);
|
|
9425
9422
|
};
|
|
9426
9423
|
|
|
9427
|
-
return
|
|
9424
|
+
return React.cloneElement(child, {
|
|
9428
9425
|
type: type,
|
|
9429
9426
|
name: child.name || name,
|
|
9430
9427
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9432,44 +9429,44 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9432
9429
|
});
|
|
9433
9430
|
}));
|
|
9434
9431
|
});
|
|
9435
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9432
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9436
9433
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9437
9434
|
|
|
9438
|
-
var defaultProps
|
|
9435
|
+
var defaultProps = {
|
|
9439
9436
|
placement: 'right'
|
|
9440
9437
|
};
|
|
9441
|
-
var Tooltip =
|
|
9438
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9442
9439
|
var bsPrefix = _ref.bsPrefix,
|
|
9443
9440
|
placement = _ref.placement,
|
|
9444
9441
|
className = _ref.className,
|
|
9445
9442
|
style = _ref.style,
|
|
9446
9443
|
children = _ref.children,
|
|
9447
|
-
arrowProps = _ref.arrowProps
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9444
|
+
arrowProps = _ref.arrowProps;
|
|
9445
|
+
_ref.popper;
|
|
9446
|
+
_ref.show;
|
|
9447
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9451
9448
|
|
|
9452
9449
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9453
9450
|
|
|
9454
9451
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9455
9452
|
primaryPlacement = _ref2[0];
|
|
9456
9453
|
|
|
9457
|
-
return /*#__PURE__*/
|
|
9454
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9458
9455
|
ref: ref,
|
|
9459
9456
|
style: style,
|
|
9460
9457
|
role: "tooltip",
|
|
9461
9458
|
"x-placement": primaryPlacement,
|
|
9462
9459
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9463
|
-
}, props), /*#__PURE__*/
|
|
9460
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9464
9461
|
className: "arrow"
|
|
9465
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9462
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9466
9463
|
className: bsPrefix + "-inner"
|
|
9467
9464
|
}, children));
|
|
9468
9465
|
});
|
|
9469
|
-
Tooltip.defaultProps = defaultProps
|
|
9466
|
+
Tooltip.defaultProps = defaultProps;
|
|
9470
9467
|
Tooltip.displayName = 'Tooltip';
|
|
9471
9468
|
|
|
9472
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9469
|
+
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";
|
|
9473
9470
|
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" };
|
|
9474
9471
|
styleInject(css);
|
|
9475
9472
|
|
|
@@ -9481,54 +9478,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9481
9478
|
|
|
9482
9479
|
var builder = imageUrlBuilder(client);
|
|
9483
9480
|
|
|
9484
|
-
return
|
|
9481
|
+
return React.createElement(
|
|
9485
9482
|
'div',
|
|
9486
9483
|
{ className: styles.article },
|
|
9487
|
-
|
|
9484
|
+
React.createElement(
|
|
9488
9485
|
'a',
|
|
9489
9486
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9490
|
-
|
|
9487
|
+
React.createElement(
|
|
9491
9488
|
'div',
|
|
9492
9489
|
{ className: styles.thumb },
|
|
9493
|
-
|
|
9490
|
+
React.createElement(
|
|
9494
9491
|
'figure',
|
|
9495
9492
|
null,
|
|
9496
|
-
|
|
9493
|
+
React.createElement(
|
|
9497
9494
|
LazyLoad,
|
|
9498
9495
|
null,
|
|
9499
|
-
|
|
9496
|
+
React.createElement('img', {
|
|
9500
9497
|
src: data.thumbnail && data.thumbnail.asset ? builder.image(data.thumbnail).url() : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9501
9498
|
})
|
|
9502
9499
|
)
|
|
9503
9500
|
)
|
|
9504
9501
|
),
|
|
9505
|
-
|
|
9502
|
+
React.createElement(
|
|
9506
9503
|
'div',
|
|
9507
9504
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9508
|
-
|
|
9505
|
+
React.createElement(
|
|
9509
9506
|
'div',
|
|
9510
9507
|
{ className: styles.name },
|
|
9511
9508
|
data.name
|
|
9512
9509
|
),
|
|
9513
|
-
data.published &&
|
|
9510
|
+
data.published && React.createElement(
|
|
9514
9511
|
'p',
|
|
9515
9512
|
{ className: styles.published },
|
|
9516
9513
|
moment(data.published).format('MMMM Do YYYY')
|
|
9517
9514
|
),
|
|
9518
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9515
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9519
9516
|
'p',
|
|
9520
9517
|
{ className: styles.author },
|
|
9521
9518
|
'By ',
|
|
9522
|
-
|
|
9519
|
+
React.createElement(
|
|
9523
9520
|
'span',
|
|
9524
9521
|
null,
|
|
9525
9522
|
data.authorMapping.displayName
|
|
9526
9523
|
)
|
|
9527
9524
|
),
|
|
9528
|
-
data.description &&
|
|
9525
|
+
data.description && React.createElement(
|
|
9529
9526
|
'div',
|
|
9530
9527
|
{ className: 'media-series-desc' },
|
|
9531
|
-
|
|
9528
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9532
9529
|
)
|
|
9533
9530
|
)
|
|
9534
9531
|
)
|
|
@@ -9557,11 +9554,11 @@ var Filter = function Filter(_ref) {
|
|
|
9557
9554
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9558
9555
|
grandChildData = _useState6[0],
|
|
9559
9556
|
setGrandChildData = _useState6[1];
|
|
9560
|
-
/*
|
|
9561
|
-
{parent: showAll,
|
|
9562
|
-
chidlren: show selected from parent,
|
|
9563
|
-
grandchildren: show selected from children
|
|
9564
|
-
}
|
|
9557
|
+
/*
|
|
9558
|
+
{parent: showAll,
|
|
9559
|
+
chidlren: show selected from parent,
|
|
9560
|
+
grandchildren: show selected from children
|
|
9561
|
+
}
|
|
9565
9562
|
*/
|
|
9566
9563
|
|
|
9567
9564
|
|
|
@@ -9576,7 +9573,7 @@ var Filter = function Filter(_ref) {
|
|
|
9576
9573
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9577
9574
|
if (type === 'parent') {
|
|
9578
9575
|
setParentData(function (prevState) {
|
|
9579
|
-
return _extends$
|
|
9576
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9580
9577
|
});
|
|
9581
9578
|
if (group && group.children && group.children.length > 0) {
|
|
9582
9579
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9590,7 +9587,7 @@ var Filter = function Filter(_ref) {
|
|
|
9590
9587
|
}
|
|
9591
9588
|
if (type === 'child') {
|
|
9592
9589
|
setChildData(function (prevState) {
|
|
9593
|
-
return _extends$
|
|
9590
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9594
9591
|
});
|
|
9595
9592
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9596
9593
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9609,7 +9606,7 @@ var Filter = function Filter(_ref) {
|
|
|
9609
9606
|
}
|
|
9610
9607
|
if (type === 'grandchild') {
|
|
9611
9608
|
setGrandChildData(function (prevState) {
|
|
9612
|
-
return _extends$
|
|
9609
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9613
9610
|
});
|
|
9614
9611
|
//handle filter
|
|
9615
9612
|
if (!group._id) {
|
|
@@ -9625,14 +9622,14 @@ var Filter = function Filter(_ref) {
|
|
|
9625
9622
|
}
|
|
9626
9623
|
};
|
|
9627
9624
|
|
|
9628
|
-
return
|
|
9625
|
+
return React.createElement(
|
|
9629
9626
|
'div',
|
|
9630
9627
|
{ className: 'flex-container' },
|
|
9631
|
-
parentData &&
|
|
9628
|
+
parentData && React.createElement(
|
|
9632
9629
|
DropdownButton,
|
|
9633
9630
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9634
|
-
|
|
9635
|
-
Dropdown
|
|
9631
|
+
React.createElement(
|
|
9632
|
+
Dropdown.Item,
|
|
9636
9633
|
{ onSelect: function onSelect() {
|
|
9637
9634
|
return handleFilterSelect({}, 'parent');
|
|
9638
9635
|
} },
|
|
@@ -9640,8 +9637,8 @@ var Filter = function Filter(_ref) {
|
|
|
9640
9637
|
),
|
|
9641
9638
|
parentData.data.map(function (docGroup) {
|
|
9642
9639
|
if (!docGroup._id) return null;
|
|
9643
|
-
return
|
|
9644
|
-
Dropdown
|
|
9640
|
+
return React.createElement(
|
|
9641
|
+
Dropdown.Item,
|
|
9645
9642
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9646
9643
|
return handleFilterSelect(docGroup, 'parent');
|
|
9647
9644
|
} },
|
|
@@ -9649,11 +9646,11 @@ var Filter = function Filter(_ref) {
|
|
|
9649
9646
|
);
|
|
9650
9647
|
})
|
|
9651
9648
|
),
|
|
9652
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9649
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9653
9650
|
DropdownButton,
|
|
9654
9651
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9655
|
-
|
|
9656
|
-
Dropdown
|
|
9652
|
+
React.createElement(
|
|
9653
|
+
Dropdown.Item,
|
|
9657
9654
|
{ onSelect: function onSelect() {
|
|
9658
9655
|
return handleFilterSelect({}, 'child');
|
|
9659
9656
|
} },
|
|
@@ -9661,8 +9658,8 @@ var Filter = function Filter(_ref) {
|
|
|
9661
9658
|
),
|
|
9662
9659
|
childData.data.map(function (docGroup) {
|
|
9663
9660
|
if (!docGroup._id) return null;
|
|
9664
|
-
return
|
|
9665
|
-
Dropdown
|
|
9661
|
+
return React.createElement(
|
|
9662
|
+
Dropdown.Item,
|
|
9666
9663
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9667
9664
|
return handleFilterSelect(docGroup, 'child');
|
|
9668
9665
|
} },
|
|
@@ -9670,11 +9667,11 @@ var Filter = function Filter(_ref) {
|
|
|
9670
9667
|
);
|
|
9671
9668
|
})
|
|
9672
9669
|
),
|
|
9673
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9670
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9674
9671
|
DropdownButton,
|
|
9675
9672
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9676
|
-
|
|
9677
|
-
Dropdown
|
|
9673
|
+
React.createElement(
|
|
9674
|
+
Dropdown.Item,
|
|
9678
9675
|
{ onSelect: function onSelect() {
|
|
9679
9676
|
return handleFilterSelect({}, 'grandchild');
|
|
9680
9677
|
} },
|
|
@@ -9682,8 +9679,8 @@ var Filter = function Filter(_ref) {
|
|
|
9682
9679
|
),
|
|
9683
9680
|
grandChildData.data.map(function (docGroup) {
|
|
9684
9681
|
if (!docGroup._id) return null;
|
|
9685
|
-
return
|
|
9686
|
-
Dropdown
|
|
9682
|
+
return React.createElement(
|
|
9683
|
+
Dropdown.Item,
|
|
9687
9684
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9688
9685
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9689
9686
|
} },
|
|
@@ -9691,7 +9688,7 @@ var Filter = function Filter(_ref) {
|
|
|
9691
9688
|
);
|
|
9692
9689
|
})
|
|
9693
9690
|
),
|
|
9694
|
-
|
|
9691
|
+
React.createElement(
|
|
9695
9692
|
'style',
|
|
9696
9693
|
{ jsx: 'true' },
|
|
9697
9694
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9739,7 +9736,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9739
9736
|
while (1) {
|
|
9740
9737
|
switch (_context.prev = _context.next) {
|
|
9741
9738
|
case 0:
|
|
9742
|
-
newParams = _extends$
|
|
9739
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9743
9740
|
filterQuery = void 0;
|
|
9744
9741
|
|
|
9745
9742
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9781,27 +9778,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9781
9778
|
}();
|
|
9782
9779
|
|
|
9783
9780
|
if (props.statusCode === 404) {
|
|
9784
|
-
return
|
|
9781
|
+
return React.createElement(
|
|
9785
9782
|
'div',
|
|
9786
9783
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9787
|
-
|
|
9784
|
+
React.createElement(
|
|
9788
9785
|
'h3',
|
|
9789
9786
|
null,
|
|
9790
9787
|
'404: Resource not found'
|
|
9791
9788
|
),
|
|
9792
|
-
|
|
9789
|
+
React.createElement(
|
|
9793
9790
|
'p',
|
|
9794
9791
|
null,
|
|
9795
9792
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9796
9793
|
),
|
|
9797
|
-
|
|
9794
|
+
React.createElement(
|
|
9798
9795
|
'p',
|
|
9799
9796
|
null,
|
|
9800
9797
|
'Click here to',
|
|
9801
|
-
|
|
9798
|
+
React.createElement(
|
|
9802
9799
|
Link,
|
|
9803
9800
|
{ href: '/' },
|
|
9804
|
-
|
|
9801
|
+
React.createElement(
|
|
9805
9802
|
'a',
|
|
9806
9803
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9807
9804
|
' return to homepage.'
|
|
@@ -9811,16 +9808,16 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9811
9808
|
);
|
|
9812
9809
|
}
|
|
9813
9810
|
|
|
9814
|
-
return
|
|
9811
|
+
return React.createElement(
|
|
9815
9812
|
'div',
|
|
9816
9813
|
{ className: 'mb-5' },
|
|
9817
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9814
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9818
9815
|
'div',
|
|
9819
9816
|
{ className: '' },
|
|
9820
|
-
|
|
9821
|
-
|
|
9817
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9818
|
+
React.createElement('hr', null)
|
|
9822
9819
|
),
|
|
9823
|
-
seriesData &&
|
|
9820
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9824
9821
|
deck: MediaSeriesCard,
|
|
9825
9822
|
variant: 'left',
|
|
9826
9823
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9838,12 +9835,12 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9838
9835
|
|
|
9839
9836
|
MediaSeriesLanding.getInitialData = function () {
|
|
9840
9837
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9841
|
-
var urlQuery, pathname,
|
|
9838
|
+
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9842
9839
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9843
9840
|
while (1) {
|
|
9844
9841
|
switch (_context2.prev = _context2.next) {
|
|
9845
9842
|
case 0:
|
|
9846
|
-
urlQuery = ctx.query, pathname = ctx.pathname,
|
|
9843
|
+
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9847
9844
|
identifier = pathname.replace('/', '');
|
|
9848
9845
|
itemsPerPage = 10;
|
|
9849
9846
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|