@mjhls/mjh-framework 1.0.883-mwn-test-v4 → 1.0.884-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -29
- package/dist/cjs/AD300x250x600.js +28 -29
- package/dist/cjs/AD728x90.js +31 -32
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-bce0ba07.js → ADInfeed-2e48af77.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-950b414b.js → ADlgInfeed-c39c7131.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +909 -18
- package/dist/cjs/AlgoliaSearch.js +1306 -1490
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +60 -61
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +419 -1637
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -60
- package/dist/cjs/ConferenceArticleCard.js +40 -41
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +101 -105
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
- package/dist/cjs/EventsDeck.js +150 -157
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +27 -29
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +231 -236
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +139 -144
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +28 -29
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +93 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +78 -79
- package/dist/cjs/MediaSeriesLanding.js +1138 -1233
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +146 -151
- package/dist/cjs/NavNative.js +137 -145
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/PartnerDetailListing.js +1463 -289
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +40 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/PublicationLanding.js +133 -141
- package/dist/cjs/QueueDeckExpanded.js +308 -308
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +57 -58
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Schema.js +100 -0
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-49b81b0b.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +79 -71
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +264 -347
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +67 -68
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/getSeriesDetail.js +3 -0
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-8874437b.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-af49d679.js → index-396089c0.js} +1044 -1070
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-90433435.js} +18 -6
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-88593816.js → index.esm-ff47db6f.js} +15 -8
- package/dist/cjs/index.js +166 -171
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -22
- package/dist/esm/AD300x250x600.js +22 -22
- package/dist/esm/AD728x90.js +25 -25
- package/dist/esm/ADFloatingFooter.js +21 -21
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -21
- package/dist/esm/{ADInfeed-0a55cd2d.js → ADInfeed-8a038df9.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -21
- package/dist/esm/ADSponsoredResources.js +21 -21
- package/dist/esm/ADWebcast.js +21 -21
- package/dist/esm/ADWelcome.js +18 -18
- package/dist/esm/{ADlgInfeed-013e1f4a.js → ADlgInfeed-cee95aa2.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +906 -14
- package/dist/esm/AlgoliaSearch.js +534 -717
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -13
- package/dist/esm/ArticleProgramLandingPage.js +48 -48
- package/dist/esm/ArticleSeriesLandingPage.js +30 -30
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +1419 -591
- package/dist/esm/AuthWrapper.js +392 -1609
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +22 -22
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +37 -37
- package/dist/esm/ConferenceArticleCard.js +25 -25
- package/dist/esm/DeckContent.js +55 -55
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-102f0beb.js → Dfp-f867d061.js} +13 -13
- package/dist/esm/EventsDeck.js +65 -65
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +88 -88
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +37 -37
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -46
- package/dist/esm/HorizontalHero.js +8 -8
- package/dist/esm/IssueContentDeck.js +25 -25
- package/dist/esm/IssueDeck.js +35 -35
- package/dist/esm/IssueLanding.js +82 -82
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +43 -43
- package/dist/esm/MediaSeriesLanding.js +660 -752
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +42 -42
- package/dist/esm/NavNative.js +41 -41
- package/dist/esm/OncliveHero.js +8 -7
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/PartnerDetailListing.js +1371 -196
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +27 -27
- package/dist/esm/PublicationLanding.js +74 -78
- package/dist/esm/QueueDeckExpanded.js +36 -36
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +38 -38
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Schema.js +95 -0
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-ce19fa25.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-b5be0e6c.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -48
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +72 -63
- package/dist/esm/VerticalHero.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +52 -52
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -36
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +91 -170
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-7bf8bc4d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -11
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/getSeriesDetail.js +3 -0
- package/dist/esm/{getTargeting-4061f839.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-d7489d39.js → index-0e04b7d7.js} +618 -634
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-29e48d38.js} +18 -7
- package/dist/esm/{index.esm-28aafed6.js → index.esm-cf08bf18.js} +15 -8
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +123 -126
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-c0612122.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +111 -111
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-8c30428f.js';
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
|
|
3
|
-
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
4
|
-
import { _ as _extends$1 } from './extends-6d8e3924.js';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
6
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
|
-
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-98ca9cec.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
import ReactDOM from 'react-dom';
|
|
10
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import
|
|
12
|
-
import MasterDeck from './MasterDeck.js';
|
|
13
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
14
|
-
import urlFor from './urlFor.js';
|
|
15
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
16
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
-
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
18
|
-
import { g as getSerializers } from './index-d7489d39.js';
|
|
19
|
-
import './define-property-5f1bda73.js';
|
|
20
|
-
import './core.get-iterator-method-ea258bb1.js';
|
|
21
|
-
import './web.dom.iterable-ab4dea5c.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
22
3
|
import './_library-528f1934.js';
|
|
23
|
-
import './_iter-detect-
|
|
24
|
-
import './
|
|
25
|
-
import './_object-pie-
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './toConsumableArray-32282905.js';
|
|
6
|
+
import './_object-pie-33c40e79.js';
|
|
7
|
+
import { _ as _extends$2 } from './extends-5b1796d4.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
14
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
30
15
|
import './events-6c3a7a63.js';
|
|
16
|
+
import './index-41a678ea.js';
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
31
18
|
import 'react-bootstrap/Container';
|
|
32
19
|
import 'react-bootstrap/Row';
|
|
33
20
|
import 'react-bootstrap/Col';
|
|
34
21
|
import 'react-bootstrap/Card';
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
35
23
|
import 'next/router';
|
|
36
|
-
import './
|
|
37
|
-
import './debounce-
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
40
|
-
import '
|
|
24
|
+
import './isSymbol-1981418f.js';
|
|
25
|
+
import './debounce-9207d8ee.js';
|
|
26
|
+
import './toNumber-2f7a84cd.js';
|
|
27
|
+
import './index.es-29c1cef5.js';
|
|
28
|
+
import ReactDOM from 'react-dom';
|
|
41
29
|
import './visibility-sensor-72fd8f8b.js';
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
30
|
+
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
31
|
+
import './index-73819142.js';
|
|
32
|
+
import urlFor from './urlFor.js';
|
|
33
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
34
|
+
import './main-c0612122.js';
|
|
35
|
+
import './entities-7cc3bf45.js';
|
|
36
|
+
import './stringify-70b72959.js';
|
|
37
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
47
38
|
import './Segment.js';
|
|
48
|
-
import './
|
|
49
|
-
import './
|
|
50
|
-
import '
|
|
39
|
+
import './Beam.js';
|
|
40
|
+
import './AdSlot.js';
|
|
41
|
+
import './ADInfeed-8a038df9.js';
|
|
42
|
+
import './lodash-17fdfebb.js';
|
|
43
|
+
import './ADlgInfeed-cee95aa2.js';
|
|
44
|
+
import 'react-bootstrap/Button';
|
|
45
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
51
46
|
import './index-c7e2ac95.js';
|
|
52
|
-
import './
|
|
53
|
-
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
47
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
54
48
|
import './GroupDeck.js';
|
|
55
|
-
import '
|
|
56
|
-
import './
|
|
49
|
+
import 'react-bootstrap';
|
|
50
|
+
import './iconBase-602d52fe.js';
|
|
51
|
+
import './index.esm-29e48d38.js';
|
|
52
|
+
import { g as getSerializers } from './index-0e04b7d7.js';
|
|
53
|
+
import './util-7700fc59.js';
|
|
54
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
57
55
|
import 'next/head';
|
|
58
56
|
import 'react-share';
|
|
59
|
-
import './
|
|
57
|
+
import './SocialShare.js';
|
|
58
|
+
import './_object-to-array-c54dd835.js';
|
|
60
59
|
import 'react-bootstrap/Pagination';
|
|
61
|
-
import 'react-bootstrap/Button';
|
|
62
|
-
import './entities-6d9154b4.js';
|
|
63
|
-
import './index.esm-eb1e8e80.js';
|
|
64
|
-
import './iconBase-ccc56b97.js';
|
|
65
60
|
import 'react-bootstrap/Figure';
|
|
66
61
|
import 'react-bootstrap/OverlayTrigger';
|
|
67
62
|
import 'react-bootstrap/Tooltip';
|
|
68
63
|
import 'react-bootstrap/Popover';
|
|
64
|
+
import MasterDeck from './MasterDeck.js';
|
|
65
|
+
import { _ as _defineProperty } from './defineProperty-d7d9b577.js';
|
|
66
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
67
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
68
|
+
import Link from 'next/link';
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -160,7 +160,7 @@ function useUncontrolled(props, config) {
|
|
|
160
160
|
var _ref = result,
|
|
161
161
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
162
162
|
propsValue = _ref[fieldName],
|
|
163
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
163
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
164
164
|
|
|
165
165
|
var handlerName = config[fieldName];
|
|
166
166
|
|
|
@@ -168,19 +168,19 @@ function useUncontrolled(props, config) {
|
|
|
168
168
|
value = _useUncontrolledProp[0],
|
|
169
169
|
handler = _useUncontrolledProp[1];
|
|
170
170
|
|
|
171
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
171
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
172
172
|
}, props);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
function _inheritsLoose(subClass, superClass) {
|
|
176
176
|
subClass.prototype = Object.create(superClass.prototype);
|
|
177
177
|
subClass.prototype.constructor = subClass;
|
|
178
|
-
|
|
178
|
+
subClass.__proto__ = superClass;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
var ThemeContext = React__default.createContext({});
|
|
182
|
-
ThemeContext.Consumer
|
|
183
|
-
ThemeContext.Provider;
|
|
182
|
+
var Consumer = ThemeContext.Consumer,
|
|
183
|
+
Provider = ThemeContext.Provider;
|
|
184
184
|
|
|
185
185
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
186
186
|
var prefixes = useContext(ThemeContext);
|
|
@@ -197,11 +197,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
197
197
|
return href || null;
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
var context
|
|
201
|
-
context
|
|
200
|
+
var context = React__default.createContext(null);
|
|
201
|
+
context.displayName = 'AccordionContext';
|
|
202
202
|
|
|
203
203
|
function useAccordionToggle(eventKey, onClick) {
|
|
204
|
-
var contextEventKey = useContext(context
|
|
204
|
+
var contextEventKey = useContext(context);
|
|
205
205
|
var onSelect = useContext(SelectableContext);
|
|
206
206
|
return function (e) {
|
|
207
207
|
/*
|
|
@@ -219,7 +219,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
219
219
|
children = _ref.children,
|
|
220
220
|
eventKey = _ref.eventKey,
|
|
221
221
|
onClick = _ref.onClick,
|
|
222
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
222
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
223
223
|
|
|
224
224
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
225
225
|
|
|
@@ -227,40 +227,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
227
227
|
props.type = 'button';
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
230
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
231
231
|
ref: ref,
|
|
232
232
|
onClick: accordionOnClick
|
|
233
233
|
}, props), children);
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
|
|
237
|
-
* Returns the owner document of a given element.
|
|
238
|
-
*
|
|
239
|
-
* @param node the element
|
|
240
|
-
*/
|
|
241
|
-
function ownerDocument$1(node) {
|
|
236
|
+
function ownerDocument(node) {
|
|
242
237
|
return node && node.ownerDocument || document;
|
|
243
238
|
}
|
|
244
239
|
|
|
245
|
-
/**
|
|
246
|
-
* Returns the owner window of a given element.
|
|
247
|
-
*
|
|
248
|
-
* @param node the element
|
|
249
|
-
*/
|
|
250
|
-
|
|
251
240
|
function ownerWindow(node) {
|
|
252
|
-
var doc = ownerDocument
|
|
241
|
+
var doc = ownerDocument(node);
|
|
253
242
|
return doc && doc.defaultView || window;
|
|
254
243
|
}
|
|
255
244
|
|
|
256
|
-
|
|
257
|
-
* Returns one or all computed style properties of an element.
|
|
258
|
-
*
|
|
259
|
-
* @param node the element
|
|
260
|
-
* @param psuedoElement the style property
|
|
261
|
-
*/
|
|
262
|
-
|
|
263
|
-
function getComputedStyle$2(node, psuedoElement) {
|
|
245
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
264
246
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
265
247
|
}
|
|
266
248
|
|
|
@@ -289,7 +271,7 @@ function style(node, property) {
|
|
|
289
271
|
var transforms = '';
|
|
290
272
|
|
|
291
273
|
if (typeof property === 'string') {
|
|
292
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
274
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
293
275
|
}
|
|
294
276
|
|
|
295
277
|
Object.keys(property).forEach(function (key) {
|
|
@@ -340,11 +322,6 @@ try {
|
|
|
340
322
|
|
|
341
323
|
/**
|
|
342
324
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
343
|
-
*
|
|
344
|
-
* @param node the element
|
|
345
|
-
* @param eventName the event name
|
|
346
|
-
* @param handle the handler
|
|
347
|
-
* @param options event options
|
|
348
325
|
*/
|
|
349
326
|
function addEventListener(node, eventName, handler, options) {
|
|
350
327
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -367,14 +344,6 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
367
344
|
node.addEventListener(eventName, handler, options);
|
|
368
345
|
}
|
|
369
346
|
|
|
370
|
-
/**
|
|
371
|
-
* A `removeEventListener` ponyfill
|
|
372
|
-
*
|
|
373
|
-
* @param node the element
|
|
374
|
-
* @param eventName the event name
|
|
375
|
-
* @param handle the handler
|
|
376
|
-
* @param options event options
|
|
377
|
-
*/
|
|
378
347
|
function removeEventListener(node, eventName, handler, options) {
|
|
379
348
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
380
349
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -391,36 +360,18 @@ function listen(node, eventName, handler, options) {
|
|
|
391
360
|
};
|
|
392
361
|
}
|
|
393
362
|
|
|
394
|
-
/**
|
|
395
|
-
* Triggers an event on a given element.
|
|
396
|
-
*
|
|
397
|
-
* @param node the element
|
|
398
|
-
* @param eventName the event name to trigger
|
|
399
|
-
* @param bubbles whether the event should bubble up
|
|
400
|
-
* @param cancelable whether the event should be cancelable
|
|
401
|
-
*/
|
|
402
|
-
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
403
|
-
if (bubbles === void 0) {
|
|
404
|
-
bubbles = false;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
if (cancelable === void 0) {
|
|
408
|
-
cancelable = true;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
if (node) {
|
|
412
|
-
var event = document.createEvent('HTMLEvents');
|
|
413
|
-
event.initEvent(eventName, bubbles, cancelable);
|
|
414
|
-
node.dispatchEvent(event);
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
363
|
function parseDuration(node) {
|
|
419
364
|
var str = style(node, 'transitionDuration') || '';
|
|
420
365
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
421
366
|
return parseFloat(str) * mult;
|
|
422
367
|
}
|
|
423
368
|
|
|
369
|
+
function triggerTransitionEnd(element) {
|
|
370
|
+
var evt = document.createEvent('HTMLEvents');
|
|
371
|
+
evt.initEvent('transitionend', true, true);
|
|
372
|
+
element.dispatchEvent(evt);
|
|
373
|
+
}
|
|
374
|
+
|
|
424
375
|
function emulateTransitionEnd(element, duration, padding) {
|
|
425
376
|
if (padding === void 0) {
|
|
426
377
|
padding = 5;
|
|
@@ -428,7 +379,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
428
379
|
|
|
429
380
|
var called = false;
|
|
430
381
|
var handle = setTimeout(function () {
|
|
431
|
-
if (!called)
|
|
382
|
+
if (!called) triggerTransitionEnd(element);
|
|
432
383
|
}, duration + padding);
|
|
433
384
|
var remove = listen(element, 'transitionend', function () {
|
|
434
385
|
called = true;
|
|
@@ -460,7 +411,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
460
411
|
exit: PropTypes.number,
|
|
461
412
|
appear: PropTypes.number
|
|
462
413
|
}).isRequired]) : null;
|
|
463
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
414
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
464
415
|
enter: PropTypes.string,
|
|
465
416
|
exit: PropTypes.string,
|
|
466
417
|
active: PropTypes.string
|
|
@@ -842,23 +793,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
842
793
|
}
|
|
843
794
|
|
|
844
795
|
var _this$props = this.props,
|
|
845
|
-
children = _this$props.children
|
|
846
|
-
_this$props.in
|
|
847
|
-
_this$props.mountOnEnter
|
|
848
|
-
_this$props.unmountOnExit
|
|
849
|
-
_this$props.appear
|
|
850
|
-
_this$props.enter
|
|
851
|
-
_this$props.exit
|
|
852
|
-
_this$props.timeout
|
|
853
|
-
_this$props.addEndListener
|
|
854
|
-
_this$props.onEnter
|
|
855
|
-
_this$props.onEntering
|
|
856
|
-
_this$props.onEntered
|
|
857
|
-
_this$props.onExit
|
|
858
|
-
_this$props.onExiting
|
|
859
|
-
_this$props.onExited
|
|
860
|
-
_this$props.nodeRef
|
|
861
|
-
|
|
796
|
+
children = _this$props.children,
|
|
797
|
+
_in = _this$props.in,
|
|
798
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
799
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
800
|
+
_appear = _this$props.appear,
|
|
801
|
+
_enter = _this$props.enter,
|
|
802
|
+
_exit = _this$props.exit,
|
|
803
|
+
_timeout = _this$props.timeout,
|
|
804
|
+
_addEndListener = _this$props.addEndListener,
|
|
805
|
+
_onEnter = _this$props.onEnter,
|
|
806
|
+
_onEntering = _this$props.onEntering,
|
|
807
|
+
_onEntered = _this$props.onEntered,
|
|
808
|
+
_onExit = _this$props.onExit,
|
|
809
|
+
_onExiting = _this$props.onExiting,
|
|
810
|
+
_onExited = _this$props.onExited,
|
|
811
|
+
_nodeRef = _this$props.nodeRef,
|
|
812
|
+
childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
862
813
|
|
|
863
814
|
return (
|
|
864
815
|
/*#__PURE__*/
|
|
@@ -886,10 +837,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
886
837
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
887
838
|
*/
|
|
888
839
|
nodeRef: PropTypes.shape({
|
|
889
|
-
current: typeof Element === 'undefined' ? PropTypes.any :
|
|
890
|
-
var value = propValue[key];
|
|
891
|
-
return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
892
|
-
}
|
|
840
|
+
current: typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element)
|
|
893
841
|
}),
|
|
894
842
|
|
|
895
843
|
/**
|
|
@@ -1061,7 +1009,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1061
1009
|
onExited: PropTypes.func
|
|
1062
1010
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1063
1011
|
|
|
1064
|
-
function noop
|
|
1012
|
+
function noop() {}
|
|
1065
1013
|
|
|
1066
1014
|
Transition.defaultProps = {
|
|
1067
1015
|
in: false,
|
|
@@ -1070,12 +1018,12 @@ Transition.defaultProps = {
|
|
|
1070
1018
|
appear: false,
|
|
1071
1019
|
enter: true,
|
|
1072
1020
|
exit: true,
|
|
1073
|
-
onEnter: noop
|
|
1074
|
-
onEntering: noop
|
|
1075
|
-
onEntered: noop
|
|
1076
|
-
onExit: noop
|
|
1077
|
-
onExiting: noop
|
|
1078
|
-
onExited: noop
|
|
1021
|
+
onEnter: noop,
|
|
1022
|
+
onEntering: noop,
|
|
1023
|
+
onEntered: noop,
|
|
1024
|
+
onExit: noop,
|
|
1025
|
+
onExiting: noop,
|
|
1026
|
+
onExited: noop
|
|
1079
1027
|
};
|
|
1080
1028
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1081
1029
|
Transition.EXITED = EXITED;
|
|
@@ -1141,7 +1089,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1141
1089
|
}
|
|
1142
1090
|
|
|
1143
1091
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1144
|
-
var defaultProps
|
|
1092
|
+
var defaultProps = {
|
|
1145
1093
|
in: false,
|
|
1146
1094
|
timeout: 300,
|
|
1147
1095
|
mountOnEnter: false,
|
|
@@ -1161,7 +1109,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1161
1109
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1162
1110
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1163
1111
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1164
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1112
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1165
1113
|
|
|
1166
1114
|
/* Compute dimension */
|
|
1167
1115
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1197,7 +1145,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1197
1145
|
}, onExiting);
|
|
1198
1146
|
}, [computedDimension, onExiting]);
|
|
1199
1147
|
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1200
|
-
, _extends({
|
|
1148
|
+
, _extends$1({
|
|
1201
1149
|
ref: ref,
|
|
1202
1150
|
addEndListener: transitionEnd
|
|
1203
1151
|
}, props, {
|
|
@@ -1208,26 +1156,26 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1208
1156
|
onExit: handleExit,
|
|
1209
1157
|
onExiting: handleExiting
|
|
1210
1158
|
}), function (state, innerProps) {
|
|
1211
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1159
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1212
1160
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1213
1161
|
}));
|
|
1214
1162
|
});
|
|
1215
1163
|
}); // @ts-ignore
|
|
1216
1164
|
|
|
1217
1165
|
// @ts-ignore
|
|
1218
|
-
Collapse.defaultProps = defaultProps
|
|
1166
|
+
Collapse.defaultProps = defaultProps;
|
|
1219
1167
|
|
|
1220
1168
|
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1221
1169
|
var children = _ref.children,
|
|
1222
1170
|
eventKey = _ref.eventKey,
|
|
1223
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1171
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1224
1172
|
|
|
1225
|
-
var contextEventKey = useContext(context
|
|
1173
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1226
1174
|
// from collapsing the accordion when clicked.
|
|
1227
1175
|
|
|
1228
1176
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1229
1177
|
value: null
|
|
1230
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1178
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1231
1179
|
ref: ref,
|
|
1232
1180
|
in: contextEventKey === eventKey
|
|
1233
1181
|
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
@@ -1245,14 +1193,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1245
1193
|
children = _useUncontrolled.children,
|
|
1246
1194
|
className = _useUncontrolled.className,
|
|
1247
1195
|
onSelect = _useUncontrolled.onSelect,
|
|
1248
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1196
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1249
1197
|
|
|
1250
1198
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1251
|
-
return /*#__PURE__*/React__default.createElement(context
|
|
1199
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1252
1200
|
value: activeKey || null
|
|
1253
1201
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1254
1202
|
value: onSelect || null
|
|
1255
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1203
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1256
1204
|
ref: ref
|
|
1257
1205
|
}, controlledProps, {
|
|
1258
1206
|
className: finalClassName
|
|
@@ -1288,7 +1236,7 @@ function useEventCallback(fn) {
|
|
|
1288
1236
|
}
|
|
1289
1237
|
|
|
1290
1238
|
var _fadeStyles;
|
|
1291
|
-
var defaultProps$
|
|
1239
|
+
var defaultProps$1 = {
|
|
1292
1240
|
in: false,
|
|
1293
1241
|
timeout: 300,
|
|
1294
1242
|
mountOnEnter: false,
|
|
@@ -1299,40 +1247,40 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1299
1247
|
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1300
1248
|
var className = _ref.className,
|
|
1301
1249
|
children = _ref.children,
|
|
1302
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1250
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1303
1251
|
|
|
1304
1252
|
var handleEnter = useCallback(function (node) {
|
|
1305
1253
|
triggerBrowserReflow(node);
|
|
1306
1254
|
if (props.onEnter) props.onEnter(node);
|
|
1307
1255
|
}, [props]);
|
|
1308
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1256
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1309
1257
|
ref: ref,
|
|
1310
1258
|
addEndListener: transitionEnd
|
|
1311
1259
|
}, props, {
|
|
1312
1260
|
onEnter: handleEnter
|
|
1313
1261
|
}), function (status, innerProps) {
|
|
1314
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1262
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1315
1263
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1316
1264
|
}));
|
|
1317
1265
|
});
|
|
1318
1266
|
});
|
|
1319
|
-
Fade.defaultProps = defaultProps$
|
|
1267
|
+
Fade.defaultProps = defaultProps$1;
|
|
1320
1268
|
Fade.displayName = 'Fade';
|
|
1321
1269
|
|
|
1322
|
-
var propTypes
|
|
1270
|
+
var propTypes = {
|
|
1323
1271
|
label: PropTypes.string.isRequired,
|
|
1324
1272
|
onClick: PropTypes.func
|
|
1325
1273
|
};
|
|
1326
|
-
var defaultProps$
|
|
1274
|
+
var defaultProps$2 = {
|
|
1327
1275
|
label: 'Close'
|
|
1328
1276
|
};
|
|
1329
1277
|
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1330
1278
|
var label = _ref.label,
|
|
1331
1279
|
onClick = _ref.onClick,
|
|
1332
1280
|
className = _ref.className,
|
|
1333
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1281
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1334
1282
|
|
|
1335
|
-
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1283
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1336
1284
|
ref: ref,
|
|
1337
1285
|
type: "button",
|
|
1338
1286
|
className: classnames('close', className),
|
|
@@ -1344,12 +1292,12 @@ var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
1344
1292
|
}, label));
|
|
1345
1293
|
});
|
|
1346
1294
|
CloseButton.displayName = 'CloseButton';
|
|
1347
|
-
CloseButton.propTypes = propTypes
|
|
1348
|
-
CloseButton.defaultProps = defaultProps$
|
|
1295
|
+
CloseButton.propTypes = propTypes;
|
|
1296
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1349
1297
|
|
|
1350
1298
|
var divWithClassName = (function (className) {
|
|
1351
1299
|
return React__default.forwardRef(function (p, ref) {
|
|
1352
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1300
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1353
1301
|
ref: ref,
|
|
1354
1302
|
className: classnames(p.className, className)
|
|
1355
1303
|
}));
|
|
@@ -1380,10 +1328,10 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1380
1328
|
bsPrefix = _ref2.bsPrefix,
|
|
1381
1329
|
_ref2$as = _ref2.as,
|
|
1382
1330
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1383
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1331
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1384
1332
|
|
|
1385
1333
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1386
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1334
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1387
1335
|
ref: ref,
|
|
1388
1336
|
className: classnames(className, resolvedPrefix)
|
|
1389
1337
|
}, props));
|
|
@@ -1410,7 +1358,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1410
1358
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1411
1359
|
disabled = _ref.disabled,
|
|
1412
1360
|
onKeyDown = _ref.onKeyDown,
|
|
1413
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1361
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1414
1362
|
|
|
1415
1363
|
var handleClick = function handleClick(event) {
|
|
1416
1364
|
var href = props.href,
|
|
@@ -1449,7 +1397,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1449
1397
|
props['aria-disabled'] = true;
|
|
1450
1398
|
}
|
|
1451
1399
|
|
|
1452
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1400
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1453
1401
|
ref: ref
|
|
1454
1402
|
}, props, {
|
|
1455
1403
|
onClick: handleClick,
|
|
@@ -1458,15 +1406,15 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1458
1406
|
});
|
|
1459
1407
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1460
1408
|
|
|
1461
|
-
var DivStyledAsH4
|
|
1462
|
-
DivStyledAsH4
|
|
1409
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1410
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1463
1411
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1464
|
-
Component: DivStyledAsH4
|
|
1412
|
+
Component: DivStyledAsH4
|
|
1465
1413
|
});
|
|
1466
1414
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1467
1415
|
Component: SafeAnchor
|
|
1468
1416
|
});
|
|
1469
|
-
var defaultProps$
|
|
1417
|
+
var defaultProps$3 = {
|
|
1470
1418
|
show: true,
|
|
1471
1419
|
transition: Fade,
|
|
1472
1420
|
closeLabel: 'Close alert'
|
|
@@ -1484,7 +1432,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1484
1432
|
onClose = _useUncontrolled.onClose,
|
|
1485
1433
|
dismissible = _useUncontrolled.dismissible,
|
|
1486
1434
|
transition = _useUncontrolled.transition,
|
|
1487
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1435
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1488
1436
|
|
|
1489
1437
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1490
1438
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1493,7 +1441,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1493
1441
|
}
|
|
1494
1442
|
});
|
|
1495
1443
|
var Transition = transition === true ? Fade : transition;
|
|
1496
|
-
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1444
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1497
1445
|
role: "alert"
|
|
1498
1446
|
}, Transition ? props : undefined, {
|
|
1499
1447
|
ref: ref,
|
|
@@ -1503,7 +1451,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1503
1451
|
label: closeLabel
|
|
1504
1452
|
}), children);
|
|
1505
1453
|
if (!Transition) return show ? alert : null;
|
|
1506
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1454
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1507
1455
|
unmountOnExit: true
|
|
1508
1456
|
}, props, {
|
|
1509
1457
|
ref: undefined,
|
|
@@ -1511,11 +1459,11 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1511
1459
|
}), alert);
|
|
1512
1460
|
});
|
|
1513
1461
|
Alert.displayName = 'Alert';
|
|
1514
|
-
Alert.defaultProps = defaultProps$
|
|
1462
|
+
Alert.defaultProps = defaultProps$3;
|
|
1515
1463
|
Alert.Link = AlertLink;
|
|
1516
1464
|
Alert.Heading = AlertHeading;
|
|
1517
1465
|
|
|
1518
|
-
var defaultProps$
|
|
1466
|
+
var defaultProps$4 = {
|
|
1519
1467
|
pill: false
|
|
1520
1468
|
};
|
|
1521
1469
|
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1525,19 +1473,19 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1525
1473
|
className = _ref.className,
|
|
1526
1474
|
_ref$as = _ref.as,
|
|
1527
1475
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1528
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1476
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1529
1477
|
|
|
1530
1478
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1531
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1479
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1532
1480
|
ref: ref
|
|
1533
1481
|
}, props, {
|
|
1534
1482
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1535
1483
|
}));
|
|
1536
1484
|
});
|
|
1537
1485
|
Badge.displayName = 'Badge';
|
|
1538
|
-
Badge.defaultProps = defaultProps$
|
|
1486
|
+
Badge.defaultProps = defaultProps$4;
|
|
1539
1487
|
|
|
1540
|
-
var defaultProps$
|
|
1488
|
+
var defaultProps$5 = {
|
|
1541
1489
|
active: false,
|
|
1542
1490
|
linkProps: {}
|
|
1543
1491
|
};
|
|
@@ -1554,26 +1502,26 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1554
1502
|
href = _ref.href,
|
|
1555
1503
|
title = _ref.title,
|
|
1556
1504
|
target = _ref.target,
|
|
1557
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1505
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1558
1506
|
|
|
1559
1507
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1560
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1508
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1561
1509
|
ref: ref
|
|
1562
1510
|
}, props, {
|
|
1563
1511
|
className: classnames(prefix, className, {
|
|
1564
1512
|
active: active
|
|
1565
1513
|
}),
|
|
1566
1514
|
"aria-current": active ? 'page' : undefined
|
|
1567
|
-
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1515
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1568
1516
|
href: href,
|
|
1569
1517
|
title: title,
|
|
1570
1518
|
target: target
|
|
1571
1519
|
}), children));
|
|
1572
1520
|
});
|
|
1573
1521
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1574
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1522
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1575
1523
|
|
|
1576
|
-
var defaultProps$
|
|
1524
|
+
var defaultProps$6 = {
|
|
1577
1525
|
label: 'breadcrumb',
|
|
1578
1526
|
listProps: {}
|
|
1579
1527
|
};
|
|
@@ -1585,22 +1533,22 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1585
1533
|
label = _ref.label,
|
|
1586
1534
|
_ref$as = _ref.as,
|
|
1587
1535
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1588
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1536
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1589
1537
|
|
|
1590
1538
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1591
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1539
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1592
1540
|
"aria-label": label,
|
|
1593
1541
|
className: className,
|
|
1594
1542
|
ref: ref
|
|
1595
|
-
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1543
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1596
1544
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1597
1545
|
}), children));
|
|
1598
1546
|
});
|
|
1599
1547
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1600
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1548
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1601
1549
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1602
1550
|
|
|
1603
|
-
var defaultProps$
|
|
1551
|
+
var defaultProps$7 = {
|
|
1604
1552
|
variant: 'primary',
|
|
1605
1553
|
active: false,
|
|
1606
1554
|
disabled: false
|
|
@@ -1614,13 +1562,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1614
1562
|
block = _ref.block,
|
|
1615
1563
|
type = _ref.type,
|
|
1616
1564
|
as = _ref.as,
|
|
1617
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1565
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1618
1566
|
|
|
1619
1567
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1620
1568
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1621
1569
|
|
|
1622
1570
|
if (props.href) {
|
|
1623
|
-
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1571
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1624
1572
|
as: as,
|
|
1625
1573
|
ref: ref,
|
|
1626
1574
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1638,14 +1586,14 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1638
1586
|
}
|
|
1639
1587
|
|
|
1640
1588
|
var Component = as || 'button';
|
|
1641
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1589
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1642
1590
|
className: classes
|
|
1643
1591
|
}));
|
|
1644
1592
|
});
|
|
1645
1593
|
Button.displayName = 'Button';
|
|
1646
|
-
Button.defaultProps = defaultProps$
|
|
1594
|
+
Button.defaultProps = defaultProps$7;
|
|
1647
1595
|
|
|
1648
|
-
var defaultProps$
|
|
1596
|
+
var defaultProps$8 = {
|
|
1649
1597
|
vertical: false,
|
|
1650
1598
|
toggle: false,
|
|
1651
1599
|
role: 'group'
|
|
@@ -1658,40 +1606,40 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1658
1606
|
className = _ref.className,
|
|
1659
1607
|
_ref$as = _ref.as,
|
|
1660
1608
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1661
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1609
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1662
1610
|
|
|
1663
1611
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1664
1612
|
var baseClass = prefix;
|
|
1665
1613
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1666
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1614
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1667
1615
|
ref: ref,
|
|
1668
1616
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1669
1617
|
}));
|
|
1670
1618
|
});
|
|
1671
1619
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1672
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1620
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1673
1621
|
|
|
1674
|
-
var defaultProps$
|
|
1622
|
+
var defaultProps$9 = {
|
|
1675
1623
|
role: 'toolbar'
|
|
1676
1624
|
};
|
|
1677
1625
|
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1678
1626
|
var bsPrefix = _ref.bsPrefix,
|
|
1679
1627
|
className = _ref.className,
|
|
1680
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1628
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1681
1629
|
|
|
1682
1630
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1683
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1631
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1684
1632
|
ref: ref,
|
|
1685
1633
|
className: classnames(className, prefix)
|
|
1686
1634
|
}));
|
|
1687
1635
|
});
|
|
1688
1636
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1689
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1637
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1690
1638
|
|
|
1691
1639
|
var context$1 = React__default.createContext(null);
|
|
1692
1640
|
context$1.displayName = 'CardContext';
|
|
1693
1641
|
|
|
1694
|
-
var defaultProps$
|
|
1642
|
+
var defaultProps$a = {
|
|
1695
1643
|
variant: null
|
|
1696
1644
|
};
|
|
1697
1645
|
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -1701,16 +1649,16 @@ function (_ref, ref) {
|
|
|
1701
1649
|
variant = _ref.variant,
|
|
1702
1650
|
_ref$as = _ref.as,
|
|
1703
1651
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1704
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1652
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1705
1653
|
|
|
1706
1654
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1707
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1655
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1708
1656
|
ref: ref,
|
|
1709
1657
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1710
1658
|
}, props));
|
|
1711
1659
|
});
|
|
1712
1660
|
CardImg.displayName = 'CardImg';
|
|
1713
|
-
CardImg.defaultProps = defaultProps$
|
|
1661
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1714
1662
|
|
|
1715
1663
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1716
1664
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1730,7 +1678,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1730
1678
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1731
1679
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1732
1680
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1733
|
-
var defaultProps$
|
|
1681
|
+
var defaultProps$b = {
|
|
1734
1682
|
body: false
|
|
1735
1683
|
};
|
|
1736
1684
|
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1743,7 +1691,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1743
1691
|
children = _ref.children,
|
|
1744
1692
|
_ref$as = _ref.as,
|
|
1745
1693
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1746
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1694
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1747
1695
|
|
|
1748
1696
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1749
1697
|
var cardContext = useMemo(function () {
|
|
@@ -1753,7 +1701,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1753
1701
|
}, [prefix]);
|
|
1754
1702
|
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1755
1703
|
value: cardContext
|
|
1756
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1704
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1757
1705
|
ref: ref
|
|
1758
1706
|
}, props, {
|
|
1759
1707
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
@@ -1763,7 +1711,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1763
1711
|
React__default.createElement(CardBody, null, children) : children));
|
|
1764
1712
|
});
|
|
1765
1713
|
Card.displayName = 'Card';
|
|
1766
|
-
Card.defaultProps = defaultProps$
|
|
1714
|
+
Card.defaultProps = defaultProps$b;
|
|
1767
1715
|
Card.Img = CardImg;
|
|
1768
1716
|
Card.Title = CardTitle;
|
|
1769
1717
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1956,10 +1904,10 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1956
1904
|
bsPrefix = _ref.bsPrefix,
|
|
1957
1905
|
children = _ref.children,
|
|
1958
1906
|
className = _ref.className,
|
|
1959
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1907
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1960
1908
|
|
|
1961
1909
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1962
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1910
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1963
1911
|
ref: ref
|
|
1964
1912
|
}, props, {
|
|
1965
1913
|
className: finalClassName
|
|
@@ -1998,7 +1946,7 @@ function forEach(children, func) {
|
|
|
1998
1946
|
}
|
|
1999
1947
|
|
|
2000
1948
|
var SWIPE_THRESHOLD = 40;
|
|
2001
|
-
var propTypes$
|
|
1949
|
+
var propTypes$1 = {
|
|
2002
1950
|
/**
|
|
2003
1951
|
* @default 'carousel'
|
|
2004
1952
|
*/
|
|
@@ -2100,7 +2048,7 @@ var propTypes$9 = {
|
|
|
2100
2048
|
*/
|
|
2101
2049
|
nextLabel: PropTypes.string
|
|
2102
2050
|
};
|
|
2103
|
-
var defaultProps$
|
|
2051
|
+
var defaultProps$c = {
|
|
2104
2052
|
slide: true,
|
|
2105
2053
|
fade: false,
|
|
2106
2054
|
controls: true,
|
|
@@ -2164,7 +2112,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2164
2112
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2165
2113
|
className = _useUncontrolled.className,
|
|
2166
2114
|
children = _useUncontrolled.children,
|
|
2167
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2115
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2168
2116
|
|
|
2169
2117
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2170
2118
|
var nextDirectionRef = useRef(null);
|
|
@@ -2421,7 +2369,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2421
2369
|
};
|
|
2422
2370
|
});
|
|
2423
2371
|
}, [indicators, numChildren, onSelect]);
|
|
2424
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2372
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2425
2373
|
ref: elementRef
|
|
2426
2374
|
}, props, {
|
|
2427
2375
|
onKeyDown: handleKeyDown,
|
|
@@ -2470,24 +2418,24 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2470
2418
|
|
|
2471
2419
|
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2472
2420
|
Carousel.displayName = 'Carousel';
|
|
2473
|
-
Carousel.propTypes = propTypes$
|
|
2474
|
-
Carousel.defaultProps = defaultProps$
|
|
2421
|
+
Carousel.propTypes = propTypes$1;
|
|
2422
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2475
2423
|
Carousel.Caption = CarouselCaption;
|
|
2476
2424
|
Carousel.Item = CarouselItem;
|
|
2477
2425
|
|
|
2478
|
-
var DEVICE_SIZES
|
|
2426
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2479
2427
|
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2480
2428
|
function (_ref, ref) {
|
|
2481
2429
|
var bsPrefix = _ref.bsPrefix,
|
|
2482
2430
|
className = _ref.className,
|
|
2483
2431
|
_ref$as = _ref.as,
|
|
2484
2432
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2485
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2433
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2486
2434
|
|
|
2487
2435
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2488
2436
|
var spans = [];
|
|
2489
2437
|
var classes = [];
|
|
2490
|
-
DEVICE_SIZES
|
|
2438
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2491
2439
|
var propValue = props[brkPoint];
|
|
2492
2440
|
delete props[brkPoint];
|
|
2493
2441
|
var span;
|
|
@@ -2513,7 +2461,7 @@ function (_ref, ref) {
|
|
|
2513
2461
|
spans.push(prefix); // plain 'col'
|
|
2514
2462
|
}
|
|
2515
2463
|
|
|
2516
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2464
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2517
2465
|
ref: ref,
|
|
2518
2466
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2519
2467
|
}));
|
|
@@ -2521,13 +2469,6 @@ function (_ref, ref) {
|
|
|
2521
2469
|
Col.displayName = 'Col';
|
|
2522
2470
|
|
|
2523
2471
|
var matchesImpl;
|
|
2524
|
-
/**
|
|
2525
|
-
* Checks if a given element matches a selector.
|
|
2526
|
-
*
|
|
2527
|
-
* @param node the element
|
|
2528
|
-
* @param selector the selector
|
|
2529
|
-
*/
|
|
2530
|
-
|
|
2531
2472
|
function matches(node, selector) {
|
|
2532
2473
|
if (!matchesImpl) {
|
|
2533
2474
|
var body = document.body;
|
|
@@ -2542,13 +2483,6 @@ function matches(node, selector) {
|
|
|
2542
2483
|
}
|
|
2543
2484
|
|
|
2544
2485
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2545
|
-
/**
|
|
2546
|
-
* Runs `querySelectorAll` on a given element.
|
|
2547
|
-
*
|
|
2548
|
-
* @param element the element
|
|
2549
|
-
* @param selector the selector
|
|
2550
|
-
*/
|
|
2551
|
-
|
|
2552
2486
|
function qsa(element, selector) {
|
|
2553
2487
|
return toArray(element.querySelectorAll(selector));
|
|
2554
2488
|
}
|
|
@@ -2638,6 +2572,39 @@ function useForceUpdate() {
|
|
|
2638
2572
|
|
|
2639
2573
|
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2640
2574
|
|
|
2575
|
+
function _extends() {
|
|
2576
|
+
_extends = Object.assign || function (target) {
|
|
2577
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2578
|
+
var source = arguments[i];
|
|
2579
|
+
|
|
2580
|
+
for (var key in source) {
|
|
2581
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
+
target[key] = source[key];
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
return target;
|
|
2588
|
+
};
|
|
2589
|
+
|
|
2590
|
+
return _extends.apply(this, arguments);
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2594
|
+
if (source == null) return {};
|
|
2595
|
+
var target = {};
|
|
2596
|
+
var sourceKeys = Object.keys(source);
|
|
2597
|
+
var key, i;
|
|
2598
|
+
|
|
2599
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2600
|
+
key = sourceKeys[i];
|
|
2601
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2602
|
+
target[key] = source[key];
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
return target;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2641
2608
|
function useSafeState(state) {
|
|
2642
2609
|
var isMounted = useMounted();
|
|
2643
2610
|
return [state[0], useCallback(function (nextState) {
|
|
@@ -2682,50 +2649,21 @@ function getBasePlacement(placement) {
|
|
|
2682
2649
|
return placement.split('-')[0];
|
|
2683
2650
|
}
|
|
2684
2651
|
|
|
2685
|
-
|
|
2686
|
-
var rect = element.getBoundingClientRect();
|
|
2687
|
-
return {
|
|
2688
|
-
width: rect.width,
|
|
2689
|
-
height: rect.height,
|
|
2690
|
-
top: rect.top,
|
|
2691
|
-
right: rect.right,
|
|
2692
|
-
bottom: rect.bottom,
|
|
2693
|
-
left: rect.left,
|
|
2694
|
-
x: rect.left,
|
|
2695
|
-
y: rect.top
|
|
2696
|
-
};
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2652
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2699
2653
|
// means it doesn't take into account transforms.
|
|
2700
|
-
|
|
2701
2654
|
function getLayoutRect(element) {
|
|
2702
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2703
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2704
|
-
|
|
2705
|
-
var width = element.offsetWidth;
|
|
2706
|
-
var height = element.offsetHeight;
|
|
2707
|
-
|
|
2708
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2709
|
-
width = clientRect.width;
|
|
2710
|
-
}
|
|
2711
|
-
|
|
2712
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2713
|
-
height = clientRect.height;
|
|
2714
|
-
}
|
|
2715
|
-
|
|
2716
2655
|
return {
|
|
2717
2656
|
x: element.offsetLeft,
|
|
2718
2657
|
y: element.offsetTop,
|
|
2719
|
-
width:
|
|
2720
|
-
height:
|
|
2658
|
+
width: element.offsetWidth,
|
|
2659
|
+
height: element.offsetHeight
|
|
2721
2660
|
};
|
|
2722
2661
|
}
|
|
2723
2662
|
|
|
2724
|
-
|
|
2725
|
-
if (node == null) {
|
|
2726
|
-
return window;
|
|
2727
|
-
}
|
|
2663
|
+
/*:: import type { Window } from '../types'; */
|
|
2728
2664
|
|
|
2665
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2666
|
+
function getWindow(node) {
|
|
2729
2667
|
if (node.toString() !== '[object Window]') {
|
|
2730
2668
|
var ownerDocument = node.ownerDocument;
|
|
2731
2669
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2734,27 +2672,31 @@ function getWindow(node) {
|
|
|
2734
2672
|
return node;
|
|
2735
2673
|
}
|
|
2736
2674
|
|
|
2675
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2676
|
+
Element); */
|
|
2677
|
+
|
|
2737
2678
|
function isElement(node) {
|
|
2738
2679
|
var OwnElement = getWindow(node).Element;
|
|
2739
2680
|
return node instanceof OwnElement || node instanceof Element;
|
|
2740
2681
|
}
|
|
2682
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2683
|
+
HTMLElement); */
|
|
2684
|
+
|
|
2741
2685
|
|
|
2742
2686
|
function isHTMLElement(node) {
|
|
2743
2687
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2744
2688
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2745
2689
|
}
|
|
2690
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2691
|
+
ShadowRoot); */
|
|
2746
2692
|
|
|
2747
|
-
function isShadowRoot(node) {
|
|
2748
|
-
// IE 11 has no ShadowRoot
|
|
2749
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2750
|
-
return false;
|
|
2751
|
-
}
|
|
2752
2693
|
|
|
2694
|
+
function isShadowRoot(node) {
|
|
2753
2695
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2754
2696
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2755
2697
|
}
|
|
2756
2698
|
|
|
2757
|
-
function contains
|
|
2699
|
+
function contains(parent, child) {
|
|
2758
2700
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2759
2701
|
|
|
2760
2702
|
if (parent.contains(child)) {
|
|
@@ -2781,7 +2723,7 @@ function getNodeName(element) {
|
|
|
2781
2723
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2782
2724
|
}
|
|
2783
2725
|
|
|
2784
|
-
function getComputedStyle$
|
|
2726
|
+
function getComputedStyle$2(element) {
|
|
2785
2727
|
return getWindow(element).getComputedStyle(element);
|
|
2786
2728
|
}
|
|
2787
2729
|
|
|
@@ -2804,8 +2746,9 @@ function getParentNode(element) {
|
|
|
2804
2746
|
// $FlowFixMe[incompatible-return]
|
|
2805
2747
|
// $FlowFixMe[prop-missing]
|
|
2806
2748
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2807
|
-
element.parentNode ||
|
|
2808
|
-
|
|
2749
|
+
element.parentNode || // DOM Element detected
|
|
2750
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2751
|
+
element.host || // ShadowRoot detected
|
|
2809
2752
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2810
2753
|
getDocumentElement(element) // fallback
|
|
2811
2754
|
|
|
@@ -2814,36 +2757,33 @@ function getParentNode(element) {
|
|
|
2814
2757
|
|
|
2815
2758
|
function getTrueOffsetParent(element) {
|
|
2816
2759
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2817
|
-
getComputedStyle$
|
|
2760
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2818
2761
|
return null;
|
|
2819
2762
|
}
|
|
2820
2763
|
|
|
2821
|
-
|
|
2822
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2823
|
-
// return the containing block
|
|
2824
|
-
|
|
2764
|
+
var offsetParent = element.offsetParent;
|
|
2825
2765
|
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2766
|
+
if (offsetParent) {
|
|
2767
|
+
var html = getDocumentElement(offsetParent);
|
|
2829
2768
|
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
var elementCss = getComputedStyle$1(element);
|
|
2833
|
-
|
|
2834
|
-
if (elementCss.position === 'fixed') {
|
|
2835
|
-
return null;
|
|
2769
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2770
|
+
return html;
|
|
2836
2771
|
}
|
|
2837
2772
|
}
|
|
2838
2773
|
|
|
2774
|
+
return offsetParent;
|
|
2775
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2776
|
+
// return the containing block
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
function getContainingBlock(element) {
|
|
2839
2780
|
var currentNode = getParentNode(element);
|
|
2840
2781
|
|
|
2841
2782
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2842
|
-
var css = getComputedStyle$
|
|
2783
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2843
2784
|
// create a containing block.
|
|
2844
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2845
2785
|
|
|
2846
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2786
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2847
2787
|
return currentNode;
|
|
2848
2788
|
} else {
|
|
2849
2789
|
currentNode = currentNode.parentNode;
|
|
@@ -2859,11 +2799,11 @@ function getOffsetParent(element) {
|
|
|
2859
2799
|
var window = getWindow(element);
|
|
2860
2800
|
var offsetParent = getTrueOffsetParent(element);
|
|
2861
2801
|
|
|
2862
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2802
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2863
2803
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2864
2804
|
}
|
|
2865
2805
|
|
|
2866
|
-
if (offsetParent &&
|
|
2806
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2867
2807
|
return window;
|
|
2868
2808
|
}
|
|
2869
2809
|
|
|
@@ -2874,12 +2814,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2874
2814
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2875
2815
|
}
|
|
2876
2816
|
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
var round = Math.round;
|
|
2880
|
-
|
|
2881
|
-
function within(min$1, value, max$1) {
|
|
2882
|
-
return max(min$1, min(value, max$1));
|
|
2817
|
+
function within(min, value, max) {
|
|
2818
|
+
return Math.max(min, Math.min(value, max));
|
|
2883
2819
|
}
|
|
2884
2820
|
|
|
2885
2821
|
function getFreshSideObject() {
|
|
@@ -2892,7 +2828,7 @@ function getFreshSideObject() {
|
|
|
2892
2828
|
}
|
|
2893
2829
|
|
|
2894
2830
|
function mergePaddingObject(paddingObject) {
|
|
2895
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2831
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2896
2832
|
}
|
|
2897
2833
|
|
|
2898
2834
|
function expandToHashMap(value, keys) {
|
|
@@ -2902,19 +2838,11 @@ function expandToHashMap(value, keys) {
|
|
|
2902
2838
|
}, {});
|
|
2903
2839
|
}
|
|
2904
2840
|
|
|
2905
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2906
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2907
|
-
placement: state.placement
|
|
2908
|
-
})) : padding;
|
|
2909
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2910
|
-
};
|
|
2911
|
-
|
|
2912
2841
|
function arrow(_ref) {
|
|
2913
2842
|
var _state$modifiersData$;
|
|
2914
2843
|
|
|
2915
2844
|
var state = _ref.state,
|
|
2916
|
-
name = _ref.name
|
|
2917
|
-
options = _ref.options;
|
|
2845
|
+
name = _ref.name;
|
|
2918
2846
|
var arrowElement = state.elements.arrow;
|
|
2919
2847
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2920
2848
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2926,7 +2854,7 @@ function arrow(_ref) {
|
|
|
2926
2854
|
return;
|
|
2927
2855
|
}
|
|
2928
2856
|
|
|
2929
|
-
var paddingObject =
|
|
2857
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2930
2858
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2931
2859
|
var minProp = axis === 'y' ? top : left;
|
|
2932
2860
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2946,11 +2874,14 @@ function arrow(_ref) {
|
|
|
2946
2874
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2947
2875
|
}
|
|
2948
2876
|
|
|
2949
|
-
function effect
|
|
2877
|
+
function effect(_ref2) {
|
|
2950
2878
|
var state = _ref2.state,
|
|
2951
|
-
options = _ref2.options
|
|
2879
|
+
options = _ref2.options,
|
|
2880
|
+
name = _ref2.name;
|
|
2952
2881
|
var _options$element = options.element,
|
|
2953
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2882
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2883
|
+
_options$padding = options.padding,
|
|
2884
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2954
2885
|
|
|
2955
2886
|
if (arrowElement == null) {
|
|
2956
2887
|
return;
|
|
@@ -2971,7 +2902,7 @@ function effect$1(_ref2) {
|
|
|
2971
2902
|
}
|
|
2972
2903
|
}
|
|
2973
2904
|
|
|
2974
|
-
if (!contains
|
|
2905
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2975
2906
|
if (process.env.NODE_ENV !== "production") {
|
|
2976
2907
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2977
2908
|
}
|
|
@@ -2980,6 +2911,9 @@ function effect$1(_ref2) {
|
|
|
2980
2911
|
}
|
|
2981
2912
|
|
|
2982
2913
|
state.elements.arrow = arrowElement;
|
|
2914
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2915
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2916
|
+
};
|
|
2983
2917
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2984
2918
|
|
|
2985
2919
|
|
|
@@ -2988,7 +2922,7 @@ var arrow$1 = {
|
|
|
2988
2922
|
enabled: true,
|
|
2989
2923
|
phase: 'main',
|
|
2990
2924
|
fn: arrow,
|
|
2991
|
-
effect: effect
|
|
2925
|
+
effect: effect,
|
|
2992
2926
|
requires: ['popperOffsets'],
|
|
2993
2927
|
requiresIfExists: ['preventOverflow']
|
|
2994
2928
|
};
|
|
@@ -3008,8 +2942,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
3008
2942
|
var win = window;
|
|
3009
2943
|
var dpr = win.devicePixelRatio || 1;
|
|
3010
2944
|
return {
|
|
3011
|
-
x: round(
|
|
3012
|
-
y: round(
|
|
2945
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2946
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
3013
2947
|
};
|
|
3014
2948
|
}
|
|
3015
2949
|
|
|
@@ -3025,7 +2959,7 @@ function mapToStyles(_ref2) {
|
|
|
3025
2959
|
adaptive = _ref2.adaptive,
|
|
3026
2960
|
roundOffsets = _ref2.roundOffsets;
|
|
3027
2961
|
|
|
3028
|
-
var _ref3 = roundOffsets
|
|
2962
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
3029
2963
|
_ref3$x = _ref3.x,
|
|
3030
2964
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
3031
2965
|
_ref3$y = _ref3.y,
|
|
@@ -3039,32 +2973,23 @@ function mapToStyles(_ref2) {
|
|
|
3039
2973
|
|
|
3040
2974
|
if (adaptive) {
|
|
3041
2975
|
var offsetParent = getOffsetParent(popper);
|
|
3042
|
-
var heightProp = 'clientHeight';
|
|
3043
|
-
var widthProp = 'clientWidth';
|
|
3044
2976
|
|
|
3045
2977
|
if (offsetParent === getWindow(popper)) {
|
|
3046
2978
|
offsetParent = getDocumentElement(popper);
|
|
3047
|
-
|
|
3048
|
-
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3049
|
-
heightProp = 'scrollHeight';
|
|
3050
|
-
widthProp = 'scrollWidth';
|
|
3051
|
-
}
|
|
3052
2979
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3053
2980
|
|
|
2981
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3054
2982
|
|
|
3055
|
-
offsetParent = offsetParent;
|
|
3056
2983
|
|
|
3057
2984
|
if (placement === top) {
|
|
3058
|
-
sideY = bottom;
|
|
3059
|
-
|
|
3060
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2985
|
+
sideY = bottom;
|
|
2986
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3061
2987
|
y *= gpuAcceleration ? 1 : -1;
|
|
3062
2988
|
}
|
|
3063
2989
|
|
|
3064
2990
|
if (placement === left) {
|
|
3065
|
-
sideX = right;
|
|
3066
|
-
|
|
3067
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2991
|
+
sideX = right;
|
|
2992
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3068
2993
|
x *= gpuAcceleration ? 1 : -1;
|
|
3069
2994
|
}
|
|
3070
2995
|
}
|
|
@@ -3076,10 +3001,10 @@ function mapToStyles(_ref2) {
|
|
|
3076
3001
|
if (gpuAcceleration) {
|
|
3077
3002
|
var _Object$assign;
|
|
3078
3003
|
|
|
3079
|
-
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));
|
|
3004
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3080
3005
|
}
|
|
3081
3006
|
|
|
3082
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3007
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3083
3008
|
}
|
|
3084
3009
|
|
|
3085
3010
|
function computeStyles(_ref4) {
|
|
@@ -3093,7 +3018,7 @@ function computeStyles(_ref4) {
|
|
|
3093
3018
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3094
3019
|
|
|
3095
3020
|
if (process.env.NODE_ENV !== "production") {
|
|
3096
|
-
var transitionProperty = getComputedStyle$
|
|
3021
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3097
3022
|
|
|
3098
3023
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3099
3024
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3110,7 +3035,7 @@ function computeStyles(_ref4) {
|
|
|
3110
3035
|
};
|
|
3111
3036
|
|
|
3112
3037
|
if (state.modifiersData.popperOffsets != null) {
|
|
3113
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3038
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3114
3039
|
offsets: state.modifiersData.popperOffsets,
|
|
3115
3040
|
position: state.options.strategy,
|
|
3116
3041
|
adaptive: adaptive,
|
|
@@ -3119,7 +3044,7 @@ function computeStyles(_ref4) {
|
|
|
3119
3044
|
}
|
|
3120
3045
|
|
|
3121
3046
|
if (state.modifiersData.arrow != null) {
|
|
3122
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3047
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3123
3048
|
offsets: state.modifiersData.arrow,
|
|
3124
3049
|
position: 'absolute',
|
|
3125
3050
|
adaptive: false,
|
|
@@ -3127,7 +3052,7 @@ function computeStyles(_ref4) {
|
|
|
3127
3052
|
})));
|
|
3128
3053
|
}
|
|
3129
3054
|
|
|
3130
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3055
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3131
3056
|
'data-popper-placement': state.placement
|
|
3132
3057
|
});
|
|
3133
3058
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3145,7 +3070,7 @@ var passive = {
|
|
|
3145
3070
|
passive: true
|
|
3146
3071
|
};
|
|
3147
3072
|
|
|
3148
|
-
function effect(_ref) {
|
|
3073
|
+
function effect$1(_ref) {
|
|
3149
3074
|
var state = _ref.state,
|
|
3150
3075
|
instance = _ref.instance,
|
|
3151
3076
|
options = _ref.options;
|
|
@@ -3185,11 +3110,11 @@ var eventListeners = {
|
|
|
3185
3110
|
enabled: true,
|
|
3186
3111
|
phase: 'write',
|
|
3187
3112
|
fn: function fn() {},
|
|
3188
|
-
effect: effect,
|
|
3113
|
+
effect: effect$1,
|
|
3189
3114
|
data: {}
|
|
3190
3115
|
};
|
|
3191
3116
|
|
|
3192
|
-
var hash
|
|
3117
|
+
var hash = {
|
|
3193
3118
|
left: 'right',
|
|
3194
3119
|
right: 'left',
|
|
3195
3120
|
bottom: 'top',
|
|
@@ -3197,20 +3122,34 @@ var hash$1 = {
|
|
|
3197
3122
|
};
|
|
3198
3123
|
function getOppositePlacement(placement) {
|
|
3199
3124
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3200
|
-
return hash
|
|
3125
|
+
return hash[matched];
|
|
3201
3126
|
});
|
|
3202
3127
|
}
|
|
3203
3128
|
|
|
3204
|
-
var hash = {
|
|
3129
|
+
var hash$1 = {
|
|
3205
3130
|
start: 'end',
|
|
3206
3131
|
end: 'start'
|
|
3207
3132
|
};
|
|
3208
3133
|
function getOppositeVariationPlacement(placement) {
|
|
3209
3134
|
return placement.replace(/start|end/g, function (matched) {
|
|
3210
|
-
return hash[matched];
|
|
3135
|
+
return hash$1[matched];
|
|
3211
3136
|
});
|
|
3212
3137
|
}
|
|
3213
3138
|
|
|
3139
|
+
function getBoundingClientRect(element) {
|
|
3140
|
+
var rect = element.getBoundingClientRect();
|
|
3141
|
+
return {
|
|
3142
|
+
width: rect.width,
|
|
3143
|
+
height: rect.height,
|
|
3144
|
+
top: rect.top,
|
|
3145
|
+
right: rect.right,
|
|
3146
|
+
bottom: rect.bottom,
|
|
3147
|
+
left: rect.left,
|
|
3148
|
+
x: rect.left,
|
|
3149
|
+
y: rect.top
|
|
3150
|
+
};
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3214
3153
|
function getWindowScroll(node) {
|
|
3215
3154
|
var win = getWindow(node);
|
|
3216
3155
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3273,18 +3212,16 @@ function getViewportRect(element) {
|
|
|
3273
3212
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3274
3213
|
|
|
3275
3214
|
function getDocumentRect(element) {
|
|
3276
|
-
var _element$ownerDocumen;
|
|
3277
|
-
|
|
3278
3215
|
var html = getDocumentElement(element);
|
|
3279
3216
|
var winScroll = getWindowScroll(element);
|
|
3280
|
-
var body =
|
|
3281
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3282
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3217
|
+
var body = element.ownerDocument.body;
|
|
3218
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3219
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3283
3220
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3284
3221
|
var y = -winScroll.scrollTop;
|
|
3285
3222
|
|
|
3286
|
-
if (getComputedStyle$
|
|
3287
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3223
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3224
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3288
3225
|
}
|
|
3289
3226
|
|
|
3290
3227
|
return {
|
|
@@ -3297,7 +3234,7 @@ function getDocumentRect(element) {
|
|
|
3297
3234
|
|
|
3298
3235
|
function isScrollParent(element) {
|
|
3299
3236
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3300
|
-
var _getComputedStyle = getComputedStyle$
|
|
3237
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3301
3238
|
overflow = _getComputedStyle.overflow,
|
|
3302
3239
|
overflowX = _getComputedStyle.overflowX,
|
|
3303
3240
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3326,14 +3263,12 @@ reference element's position.
|
|
|
3326
3263
|
*/
|
|
3327
3264
|
|
|
3328
3265
|
function listScrollParents(element, list) {
|
|
3329
|
-
var _element$ownerDocumen;
|
|
3330
|
-
|
|
3331
3266
|
if (list === void 0) {
|
|
3332
3267
|
list = [];
|
|
3333
3268
|
}
|
|
3334
3269
|
|
|
3335
3270
|
var scrollParent = getScrollParent(element);
|
|
3336
|
-
var isBody = scrollParent ===
|
|
3271
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3337
3272
|
var win = getWindow(scrollParent);
|
|
3338
3273
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3339
3274
|
var updatedList = list.concat(target);
|
|
@@ -3342,7 +3277,7 @@ function listScrollParents(element, list) {
|
|
|
3342
3277
|
}
|
|
3343
3278
|
|
|
3344
3279
|
function rectToClientRect(rect) {
|
|
3345
|
-
return Object.assign({}, rect, {
|
|
3280
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3346
3281
|
left: rect.x,
|
|
3347
3282
|
top: rect.y,
|
|
3348
3283
|
right: rect.x + rect.width,
|
|
@@ -3372,7 +3307,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3372
3307
|
|
|
3373
3308
|
function getClippingParents(element) {
|
|
3374
3309
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3375
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3310
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3376
3311
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3377
3312
|
|
|
3378
3313
|
if (!isElement(clipperElement)) {
|
|
@@ -3381,7 +3316,7 @@ function getClippingParents(element) {
|
|
|
3381
3316
|
|
|
3382
3317
|
|
|
3383
3318
|
return clippingParents.filter(function (clippingParent) {
|
|
3384
|
-
return isElement(clippingParent) && contains
|
|
3319
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3385
3320
|
});
|
|
3386
3321
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3387
3322
|
// clipping parents
|
|
@@ -3393,10 +3328,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3393
3328
|
var firstClippingParent = clippingParents[0];
|
|
3394
3329
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3395
3330
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3396
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3397
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3398
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3399
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3331
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3332
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3333
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3334
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3400
3335
|
return accRect;
|
|
3401
3336
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3402
3337
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3506,7 +3441,7 @@ function detectOverflow(state, options) {
|
|
|
3506
3441
|
strategy: 'absolute',
|
|
3507
3442
|
placement: placement
|
|
3508
3443
|
});
|
|
3509
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3444
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3510
3445
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3511
3446
|
// 0 or negative = within the clipping rect
|
|
3512
3447
|
|
|
@@ -3530,6 +3465,9 @@ function detectOverflow(state, options) {
|
|
|
3530
3465
|
return overflowOffsets;
|
|
3531
3466
|
}
|
|
3532
3467
|
|
|
3468
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3469
|
+
|
|
3470
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3533
3471
|
function computeAutoPlacement(state, options) {
|
|
3534
3472
|
if (options === void 0) {
|
|
3535
3473
|
options = {};
|
|
@@ -3758,7 +3696,7 @@ function hide(_ref) {
|
|
|
3758
3696
|
isReferenceHidden: isReferenceHidden,
|
|
3759
3697
|
hasPopperEscaped: hasPopperEscaped
|
|
3760
3698
|
};
|
|
3761
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3699
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3762
3700
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3763
3701
|
'data-popper-escaped': hasPopperEscaped
|
|
3764
3702
|
});
|
|
@@ -3777,7 +3715,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3777
3715
|
var basePlacement = getBasePlacement(placement);
|
|
3778
3716
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3779
3717
|
|
|
3780
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3718
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3781
3719
|
placement: placement
|
|
3782
3720
|
})) : offset,
|
|
3783
3721
|
skidding = _ref[0],
|
|
@@ -3883,7 +3821,7 @@ function preventOverflow(_ref) {
|
|
|
3883
3821
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3884
3822
|
var referenceRect = state.rects.reference;
|
|
3885
3823
|
var popperRect = state.rects.popper;
|
|
3886
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3824
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3887
3825
|
placement: state.placement
|
|
3888
3826
|
})) : tetherOffset;
|
|
3889
3827
|
var data = {
|
|
@@ -3895,13 +3833,13 @@ function preventOverflow(_ref) {
|
|
|
3895
3833
|
return;
|
|
3896
3834
|
}
|
|
3897
3835
|
|
|
3898
|
-
if (checkMainAxis
|
|
3836
|
+
if (checkMainAxis) {
|
|
3899
3837
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3900
3838
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3901
3839
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3902
3840
|
var offset = popperOffsets[mainAxis];
|
|
3903
|
-
var min
|
|
3904
|
-
var max
|
|
3841
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3842
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3905
3843
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3906
3844
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3907
3845
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3928,29 +3866,26 @@ function preventOverflow(_ref) {
|
|
|
3928
3866
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3929
3867
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3930
3868
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3869
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3870
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3871
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3872
|
+
}
|
|
3931
3873
|
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3935
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3936
|
-
}
|
|
3937
|
-
|
|
3938
|
-
if (checkAltAxis) {
|
|
3939
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3874
|
+
if (checkAltAxis) {
|
|
3875
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3940
3876
|
|
|
3941
|
-
|
|
3877
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3942
3878
|
|
|
3943
|
-
|
|
3879
|
+
var _offset = popperOffsets[altAxis];
|
|
3944
3880
|
|
|
3945
|
-
|
|
3881
|
+
var _min = _offset + overflow[_mainSide];
|
|
3946
3882
|
|
|
3947
|
-
|
|
3883
|
+
var _max = _offset - overflow[_altSide];
|
|
3948
3884
|
|
|
3949
|
-
|
|
3885
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3950
3886
|
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
}
|
|
3887
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3888
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3954
3889
|
}
|
|
3955
3890
|
|
|
3956
3891
|
state.modifiersData[name] = data;
|
|
@@ -4181,9 +4116,9 @@ function uniqueBy(arr, fn) {
|
|
|
4181
4116
|
function mergeByName(modifiers) {
|
|
4182
4117
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4183
4118
|
var existing = merged[current.name];
|
|
4184
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4185
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4186
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4119
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4120
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4121
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4187
4122
|
}) : current;
|
|
4188
4123
|
return merged;
|
|
4189
4124
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4229,7 +4164,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4229
4164
|
var state = {
|
|
4230
4165
|
placement: 'bottom',
|
|
4231
4166
|
orderedModifiers: [],
|
|
4232
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4167
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4233
4168
|
modifiersData: {},
|
|
4234
4169
|
elements: {
|
|
4235
4170
|
reference: reference,
|
|
@@ -4244,7 +4179,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4244
4179
|
state: state,
|
|
4245
4180
|
setOptions: function setOptions(options) {
|
|
4246
4181
|
cleanupModifierEffects();
|
|
4247
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4182
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4248
4183
|
state.scrollParents = {
|
|
4249
4184
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4250
4185
|
popper: listScrollParents(popper)
|
|
@@ -4276,7 +4211,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4276
4211
|
}
|
|
4277
4212
|
}
|
|
4278
4213
|
|
|
4279
|
-
var _getComputedStyle = getComputedStyle$
|
|
4214
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4280
4215
|
marginTop = _getComputedStyle.marginTop,
|
|
4281
4216
|
marginRight = _getComputedStyle.marginRight,
|
|
4282
4217
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4614,16 +4549,9 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4614
4549
|
}
|
|
4615
4550
|
|
|
4616
4551
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
*
|
|
4621
|
-
* @param context the context element
|
|
4622
|
-
* @param node the element to check
|
|
4623
|
-
*/
|
|
4624
|
-
function contains(context, node) {
|
|
4625
|
-
// HTML DOM and SVG DOM may have different support levels,
|
|
4626
|
-
// so we need to check on context instead of a document root element.
|
|
4552
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4553
|
+
// so we need to check on context instead of a document root element.
|
|
4554
|
+
function contains$1(context, node) {
|
|
4627
4555
|
if (context.contains) return context.contains(node);
|
|
4628
4556
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4629
4557
|
}
|
|
@@ -4697,13 +4625,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4697
4625
|
return componentOrElement != null ? componentOrElement : null;
|
|
4698
4626
|
}
|
|
4699
4627
|
|
|
4700
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4701
|
-
return ownerDocument
|
|
4628
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4629
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4702
4630
|
});
|
|
4703
4631
|
|
|
4704
4632
|
var escapeKeyCode = 27;
|
|
4705
4633
|
|
|
4706
|
-
var noop$
|
|
4634
|
+
var noop$1 = function noop() {};
|
|
4707
4635
|
|
|
4708
4636
|
function isLeftClickEvent(event) {
|
|
4709
4637
|
return event.button === 0;
|
|
@@ -4736,11 +4664,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4736
4664
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4737
4665
|
|
|
4738
4666
|
var preventMouseRootCloseRef = useRef(false);
|
|
4739
|
-
var onClose = onRootClose || noop$
|
|
4667
|
+
var onClose = onRootClose || noop$1;
|
|
4740
4668
|
var handleMouseCapture = useCallback(function (e) {
|
|
4741
4669
|
var currentTarget = getRefTarget(ref);
|
|
4742
4670
|
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');
|
|
4743
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4671
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4744
4672
|
}, [ref]);
|
|
4745
4673
|
var handleMouse = useEventCallback(function (e) {
|
|
4746
4674
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4757,7 +4685,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4757
4685
|
// https://github.com/facebook/react/issues/20074
|
|
4758
4686
|
|
|
4759
4687
|
var currentEvent = window.event;
|
|
4760
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4688
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4761
4689
|
// avoid false positives in the contains() check below if the target DOM
|
|
4762
4690
|
// element is removed in the React mouse callback.
|
|
4763
4691
|
|
|
@@ -4784,7 +4712,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4784
4712
|
|
|
4785
4713
|
if ('ontouchstart' in doc.documentElement) {
|
|
4786
4714
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4787
|
-
return listen(el, 'mousemove', noop$
|
|
4715
|
+
return listen(el, 'mousemove', noop$1);
|
|
4788
4716
|
});
|
|
4789
4717
|
}
|
|
4790
4718
|
|
|
@@ -4866,7 +4794,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4866
4794
|
});
|
|
4867
4795
|
}
|
|
4868
4796
|
|
|
4869
|
-
var noop$
|
|
4797
|
+
var noop$2 = function noop() {};
|
|
4870
4798
|
/**
|
|
4871
4799
|
* @memberOf Dropdown
|
|
4872
4800
|
* @param {object} options
|
|
@@ -4934,7 +4862,7 @@ function useDropdownMenu(options) {
|
|
|
4934
4862
|
|
|
4935
4863
|
var menu;
|
|
4936
4864
|
var menuProps = {
|
|
4937
|
-
ref: setMenu || noop$
|
|
4865
|
+
ref: setMenu || noop$2,
|
|
4938
4866
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4939
4867
|
};
|
|
4940
4868
|
var childArgs = {
|
|
@@ -4967,7 +4895,7 @@ function useDropdownMenu(options) {
|
|
|
4967
4895
|
});
|
|
4968
4896
|
return menu;
|
|
4969
4897
|
}
|
|
4970
|
-
var propTypes$
|
|
4898
|
+
var propTypes$2 = {
|
|
4971
4899
|
/**
|
|
4972
4900
|
* A render prop that returns a Menu element. The `props`
|
|
4973
4901
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5024,7 +4952,7 @@ var propTypes$8 = {
|
|
|
5024
4952
|
*/
|
|
5025
4953
|
rootCloseEvent: PropTypes.string
|
|
5026
4954
|
};
|
|
5027
|
-
var defaultProps$
|
|
4955
|
+
var defaultProps$d = {
|
|
5028
4956
|
usePopper: true
|
|
5029
4957
|
};
|
|
5030
4958
|
|
|
@@ -5034,7 +4962,7 @@ var defaultProps$r = {
|
|
|
5034
4962
|
* @displayName DropdownMenu
|
|
5035
4963
|
* @memberOf Dropdown
|
|
5036
4964
|
*/
|
|
5037
|
-
function DropdownMenu
|
|
4965
|
+
function DropdownMenu(_ref2) {
|
|
5038
4966
|
var children = _ref2.children,
|
|
5039
4967
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5040
4968
|
|
|
@@ -5042,11 +4970,11 @@ function DropdownMenu$1(_ref2) {
|
|
|
5042
4970
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
5043
4971
|
}
|
|
5044
4972
|
|
|
5045
|
-
DropdownMenu
|
|
5046
|
-
DropdownMenu
|
|
5047
|
-
DropdownMenu
|
|
4973
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4974
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4975
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5048
4976
|
|
|
5049
|
-
var noop$
|
|
4977
|
+
var noop$3 = function noop() {};
|
|
5050
4978
|
/**
|
|
5051
4979
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5052
4980
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5060,11 +4988,11 @@ function useDropdownToggle() {
|
|
|
5060
4988
|
_ref$show = _ref.show,
|
|
5061
4989
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5062
4990
|
_ref$toggle = _ref.toggle,
|
|
5063
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4991
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5064
4992
|
setToggle = _ref.setToggle;
|
|
5065
4993
|
|
|
5066
4994
|
return [{
|
|
5067
|
-
ref: setToggle || noop$
|
|
4995
|
+
ref: setToggle || noop$3,
|
|
5068
4996
|
'aria-haspopup': true,
|
|
5069
4997
|
'aria-expanded': !!show
|
|
5070
4998
|
}, {
|
|
@@ -5072,7 +5000,7 @@ function useDropdownToggle() {
|
|
|
5072
5000
|
toggle: toggle
|
|
5073
5001
|
}];
|
|
5074
5002
|
}
|
|
5075
|
-
var propTypes$
|
|
5003
|
+
var propTypes$3 = {
|
|
5076
5004
|
/**
|
|
5077
5005
|
* A render prop that returns a Toggle element. The `props`
|
|
5078
5006
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5097,7 +5025,7 @@ var propTypes$7 = {
|
|
|
5097
5025
|
* @displayName DropdownToggle
|
|
5098
5026
|
* @memberOf Dropdown
|
|
5099
5027
|
*/
|
|
5100
|
-
function DropdownToggle
|
|
5028
|
+
function DropdownToggle(_ref2) {
|
|
5101
5029
|
var children = _ref2.children;
|
|
5102
5030
|
|
|
5103
5031
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5113,10 +5041,10 @@ function DropdownToggle$1(_ref2) {
|
|
|
5113
5041
|
}));
|
|
5114
5042
|
}
|
|
5115
5043
|
|
|
5116
|
-
DropdownToggle
|
|
5117
|
-
DropdownToggle
|
|
5044
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5045
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5118
5046
|
|
|
5119
|
-
var propTypes$
|
|
5047
|
+
var propTypes$4 = {
|
|
5120
5048
|
/**
|
|
5121
5049
|
* A render prop that returns the root dropdown element. The `props`
|
|
5122
5050
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5188,7 +5116,7 @@ var propTypes$6 = {
|
|
|
5188
5116
|
/**
|
|
5189
5117
|
* @displayName Dropdown
|
|
5190
5118
|
*/
|
|
5191
|
-
function Dropdown
|
|
5119
|
+
function Dropdown(_ref) {
|
|
5192
5120
|
var drop = _ref.drop,
|
|
5193
5121
|
alignEnd = _ref.alignEnd,
|
|
5194
5122
|
defaultShow = _ref.defaultShow,
|
|
@@ -5330,15 +5258,15 @@ function Dropdown$1(_ref) {
|
|
|
5330
5258
|
}));
|
|
5331
5259
|
}
|
|
5332
5260
|
|
|
5333
|
-
Dropdown
|
|
5334
|
-
Dropdown
|
|
5335
|
-
Dropdown
|
|
5336
|
-
Dropdown
|
|
5261
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5262
|
+
Dropdown.propTypes = propTypes$4;
|
|
5263
|
+
Dropdown.Menu = DropdownMenu;
|
|
5264
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5337
5265
|
|
|
5338
5266
|
var NavContext = React__default.createContext(null);
|
|
5339
5267
|
NavContext.displayName = 'NavContext';
|
|
5340
5268
|
|
|
5341
|
-
var defaultProps$
|
|
5269
|
+
var defaultProps$e = {
|
|
5342
5270
|
as: SafeAnchor,
|
|
5343
5271
|
disabled: false
|
|
5344
5272
|
};
|
|
@@ -5353,7 +5281,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5353
5281
|
onSelect = _ref.onSelect,
|
|
5354
5282
|
propActive = _ref.active,
|
|
5355
5283
|
Component = _ref.as,
|
|
5356
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5284
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5357
5285
|
|
|
5358
5286
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5359
5287
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5377,7 +5305,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5377
5305
|
/*#__PURE__*/
|
|
5378
5306
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5379
5307
|
// @ts-ignore
|
|
5380
|
-
React__default.createElement(Component, _extends({}, props, {
|
|
5308
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5381
5309
|
ref: ref,
|
|
5382
5310
|
href: href,
|
|
5383
5311
|
disabled: disabled,
|
|
@@ -5387,7 +5315,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5387
5315
|
);
|
|
5388
5316
|
});
|
|
5389
5317
|
DropdownItem.displayName = 'DropdownItem';
|
|
5390
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5318
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5391
5319
|
|
|
5392
5320
|
var toFnRef = function toFnRef(ref) {
|
|
5393
5321
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5426,8 +5354,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5426
5354
|
}, [refA, refB]);
|
|
5427
5355
|
}
|
|
5428
5356
|
|
|
5429
|
-
var context = React__default.createContext(null);
|
|
5430
|
-
context.displayName = 'NavbarContext';
|
|
5357
|
+
var context$2 = React__default.createContext(null);
|
|
5358
|
+
context$2.displayName = 'NavbarContext';
|
|
5431
5359
|
|
|
5432
5360
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5433
5361
|
// @ts-ignore
|
|
@@ -5440,12 +5368,6 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5440
5368
|
return useMergedRefs(warningRef, ref);
|
|
5441
5369
|
}
|
|
5442
5370
|
|
|
5443
|
-
/**
|
|
5444
|
-
* Checks if a given element has a CSS class.
|
|
5445
|
-
*
|
|
5446
|
-
* @param element the element
|
|
5447
|
-
* @param className the CSS class name
|
|
5448
|
-
*/
|
|
5449
5371
|
function hasClass(element, className) {
|
|
5450
5372
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5451
5373
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5554,13 +5476,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5554
5476
|
}), PropTypes.shape({
|
|
5555
5477
|
xl: alignDirection
|
|
5556
5478
|
})]);
|
|
5557
|
-
var defaultProps$
|
|
5479
|
+
var defaultProps$f = {
|
|
5558
5480
|
align: 'left',
|
|
5559
5481
|
alignRight: false,
|
|
5560
5482
|
flip: true
|
|
5561
5483
|
}; // TODO: remove this hack
|
|
5562
5484
|
|
|
5563
|
-
var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
5485
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5564
5486
|
var bsPrefix = _ref.bsPrefix,
|
|
5565
5487
|
className = _ref.className,
|
|
5566
5488
|
align = _ref.align,
|
|
@@ -5572,9 +5494,9 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5572
5494
|
_ref$as = _ref.as,
|
|
5573
5495
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5574
5496
|
popperConfig = _ref.popperConfig,
|
|
5575
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5497
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5576
5498
|
|
|
5577
|
-
var isNavbar = useContext(context);
|
|
5499
|
+
var isNavbar = useContext(context$2);
|
|
5578
5500
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5579
5501
|
|
|
5580
5502
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5608,7 +5530,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5608
5530
|
show: showProps,
|
|
5609
5531
|
alignEnd: alignRight,
|
|
5610
5532
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5611
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5533
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5612
5534
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5613
5535
|
})
|
|
5614
5536
|
}),
|
|
@@ -5631,16 +5553,16 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5631
5553
|
if (placement) {
|
|
5632
5554
|
// we don't need the default popper style,
|
|
5633
5555
|
// menus are display: none when not shown.
|
|
5634
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5556
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5635
5557
|
props['x-placement'] = placement;
|
|
5636
5558
|
}
|
|
5637
5559
|
|
|
5638
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5560
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5639
5561
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5640
5562
|
}));
|
|
5641
5563
|
});
|
|
5642
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5643
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5564
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5565
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5644
5566
|
|
|
5645
5567
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5646
5568
|
|
|
@@ -5669,14 +5591,14 @@ module.exports = exports['default'];
|
|
|
5669
5591
|
|
|
5670
5592
|
unwrapExports(isRequiredForA11y_1);
|
|
5671
5593
|
|
|
5672
|
-
var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
5594
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5673
5595
|
var bsPrefix = _ref.bsPrefix,
|
|
5674
5596
|
split = _ref.split,
|
|
5675
5597
|
className = _ref.className,
|
|
5676
5598
|
childBsPrefix = _ref.childBsPrefix,
|
|
5677
5599
|
_ref$as = _ref.as,
|
|
5678
5600
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5679
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5601
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5680
5602
|
|
|
5681
5603
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5682
5604
|
|
|
@@ -5691,12 +5613,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5691
5613
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5692
5614
|
// underlying component, to allow it to render size and style variants.
|
|
5693
5615
|
|
|
5694
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5616
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5695
5617
|
onClick: toggle,
|
|
5696
5618
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5697
5619
|
}, toggleProps, props));
|
|
5698
5620
|
});
|
|
5699
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5621
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5700
5622
|
|
|
5701
5623
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5702
5624
|
defaultProps: {
|
|
@@ -5711,10 +5633,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5711
5633
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5712
5634
|
Component: 'span'
|
|
5713
5635
|
});
|
|
5714
|
-
var defaultProps$
|
|
5636
|
+
var defaultProps$g = {
|
|
5715
5637
|
navbar: false
|
|
5716
5638
|
};
|
|
5717
|
-
var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
5639
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5718
5640
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5719
5641
|
show: 'onToggle'
|
|
5720
5642
|
}),
|
|
@@ -5727,9 +5649,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5727
5649
|
onToggle = _useUncontrolled.onToggle,
|
|
5728
5650
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5729
5651
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5730
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5731
|
-
_useUncontrolled.navbar
|
|
5732
|
-
|
|
5652
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5653
|
+
_4 = _useUncontrolled.navbar,
|
|
5654
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5733
5655
|
|
|
5734
5656
|
var onSelectCtx = useContext(SelectableContext);
|
|
5735
5657
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5753,7 +5675,7 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5753
5675
|
});
|
|
5754
5676
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5755
5677
|
value: handleSelect
|
|
5756
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown
|
|
5678
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5757
5679
|
drop: drop,
|
|
5758
5680
|
show: show,
|
|
5759
5681
|
alignEnd: alignRight,
|
|
@@ -5762,20 +5684,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5762
5684
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5763
5685
|
}, function (_ref) {
|
|
5764
5686
|
var dropdownProps = _ref.props;
|
|
5765
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5687
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5766
5688
|
ref: ref,
|
|
5767
5689
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5768
5690
|
}));
|
|
5769
5691
|
}));
|
|
5770
5692
|
});
|
|
5771
|
-
Dropdown.displayName = 'Dropdown';
|
|
5772
|
-
Dropdown.defaultProps = defaultProps$
|
|
5773
|
-
Dropdown.Divider = DropdownDivider;
|
|
5774
|
-
Dropdown.Header = DropdownHeader;
|
|
5775
|
-
Dropdown.Item = DropdownItem;
|
|
5776
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5777
|
-
Dropdown.Menu = DropdownMenu;
|
|
5778
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5693
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5694
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5695
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5696
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5697
|
+
Dropdown$1.Item = DropdownItem;
|
|
5698
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5699
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5700
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5779
5701
|
|
|
5780
5702
|
var propTypes$5 = {
|
|
5781
5703
|
/**
|
|
@@ -5850,18 +5772,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5850
5772
|
disabled = _ref.disabled,
|
|
5851
5773
|
href = _ref.href,
|
|
5852
5774
|
id = _ref.id,
|
|
5853
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5775
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5854
5776
|
|
|
5855
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5777
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
5856
5778
|
ref: ref
|
|
5857
|
-
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5779
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5858
5780
|
id: id,
|
|
5859
5781
|
href: href,
|
|
5860
5782
|
size: size,
|
|
5861
5783
|
variant: variant,
|
|
5862
5784
|
disabled: disabled,
|
|
5863
5785
|
childBsPrefix: bsPrefix
|
|
5864
|
-
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
5786
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5865
5787
|
align: menuAlign,
|
|
5866
5788
|
role: menuRole,
|
|
5867
5789
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5964,7 +5886,7 @@ module.exports = exports['default'];
|
|
|
5964
5886
|
|
|
5965
5887
|
unwrapExports(all_1);
|
|
5966
5888
|
|
|
5967
|
-
var propTypes$
|
|
5889
|
+
var propTypes$6 = {
|
|
5968
5890
|
/**
|
|
5969
5891
|
* Specify whether the feedback is for valid or invalid fields
|
|
5970
5892
|
*
|
|
@@ -5985,15 +5907,15 @@ function (_ref, ref) {
|
|
|
5985
5907
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5986
5908
|
_ref$tooltip = _ref.tooltip,
|
|
5987
5909
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5988
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5910
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
5989
5911
|
|
|
5990
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5912
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5991
5913
|
ref: ref,
|
|
5992
5914
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5993
5915
|
}));
|
|
5994
5916
|
});
|
|
5995
5917
|
Feedback.displayName = 'Feedback';
|
|
5996
|
-
Feedback.propTypes = propTypes$
|
|
5918
|
+
Feedback.propTypes = propTypes$6;
|
|
5997
5919
|
|
|
5998
5920
|
var FormContext = React__default.createContext({
|
|
5999
5921
|
controlId: undefined
|
|
@@ -6013,7 +5935,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6013
5935
|
isStatic = _ref.isStatic,
|
|
6014
5936
|
_ref$as = _ref.as,
|
|
6015
5937
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6016
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5938
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
6017
5939
|
|
|
6018
5940
|
var _useContext = useContext(FormContext),
|
|
6019
5941
|
controlId = _useContext.controlId,
|
|
@@ -6024,7 +5946,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6024
5946
|
defaultPrefix = _ref2[1];
|
|
6025
5947
|
|
|
6026
5948
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6027
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5949
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6028
5950
|
ref: ref,
|
|
6029
5951
|
type: type,
|
|
6030
5952
|
id: id || controlId,
|
|
@@ -6038,7 +5960,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6038
5960
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6039
5961
|
className = _ref.className,
|
|
6040
5962
|
htmlFor = _ref.htmlFor,
|
|
6041
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5963
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6042
5964
|
|
|
6043
5965
|
var _useContext = useContext(FormContext),
|
|
6044
5966
|
controlId = _useContext.controlId,
|
|
@@ -6049,7 +5971,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6049
5971
|
defaultPrefix = _ref2[1];
|
|
6050
5972
|
|
|
6051
5973
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6052
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5974
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6053
5975
|
ref: ref,
|
|
6054
5976
|
htmlFor: htmlFor || controlId,
|
|
6055
5977
|
className: classnames(className, bsPrefix)
|
|
@@ -6083,7 +6005,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6083
6005
|
propCustom = _ref.custom,
|
|
6084
6006
|
_ref$as = _ref.as,
|
|
6085
6007
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6086
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6008
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6087
6009
|
|
|
6088
6010
|
var custom = type === 'switch' ? true : propCustom;
|
|
6089
6011
|
|
|
@@ -6103,7 +6025,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6103
6025
|
};
|
|
6104
6026
|
}, [controlId, custom, id]);
|
|
6105
6027
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6106
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
6028
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
6107
6029
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6108
6030
|
ref: ref,
|
|
6109
6031
|
isValid: isValid,
|
|
@@ -6138,7 +6060,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6138
6060
|
lang = _ref.lang,
|
|
6139
6061
|
_ref$as = _ref.as,
|
|
6140
6062
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6141
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6063
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6142
6064
|
|
|
6143
6065
|
var _useContext = useContext(FormContext),
|
|
6144
6066
|
controlId = _useContext.controlId,
|
|
@@ -6151,7 +6073,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6151
6073
|
defaultPrefix = _ref2[1];
|
|
6152
6074
|
|
|
6153
6075
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6154
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6076
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6155
6077
|
ref: ref,
|
|
6156
6078
|
id: id || controlId,
|
|
6157
6079
|
type: type,
|
|
@@ -6166,7 +6088,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6166
6088
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6167
6089
|
className = _ref.className,
|
|
6168
6090
|
htmlFor = _ref.htmlFor,
|
|
6169
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6091
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6170
6092
|
|
|
6171
6093
|
var _useContext = useContext(FormContext),
|
|
6172
6094
|
controlId = _useContext.controlId,
|
|
@@ -6177,7 +6099,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6177
6099
|
defaultPrefix = _ref2[1];
|
|
6178
6100
|
|
|
6179
6101
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6180
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6102
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6181
6103
|
ref: ref,
|
|
6182
6104
|
htmlFor: htmlFor || controlId,
|
|
6183
6105
|
className: classnames(className, bsPrefix),
|
|
@@ -6210,7 +6132,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6210
6132
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6211
6133
|
_ref$inputAs = _ref.inputAs,
|
|
6212
6134
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6213
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6135
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6214
6136
|
|
|
6215
6137
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6216
6138
|
prefix = _ref2[0],
|
|
@@ -6229,7 +6151,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6229
6151
|
};
|
|
6230
6152
|
}, [controlId, custom, id]);
|
|
6231
6153
|
var hasLabel = label != null && label !== false && !children;
|
|
6232
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6154
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6233
6155
|
ref: ref,
|
|
6234
6156
|
isValid: isValid,
|
|
6235
6157
|
isInvalid: isInvalid,
|
|
@@ -6270,7 +6192,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6270
6192
|
custom = _ref.custom,
|
|
6271
6193
|
_ref$as = _ref.as,
|
|
6272
6194
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6273
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6195
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6274
6196
|
|
|
6275
6197
|
var _useContext = useContext(FormContext),
|
|
6276
6198
|
controlId = _useContext.controlId;
|
|
@@ -6305,7 +6227,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6305
6227
|
}
|
|
6306
6228
|
|
|
6307
6229
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6308
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6230
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6309
6231
|
type: type,
|
|
6310
6232
|
size: htmlSize,
|
|
6311
6233
|
ref: ref,
|
|
@@ -6326,7 +6248,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6326
6248
|
controlId = _ref.controlId,
|
|
6327
6249
|
_ref$as = _ref.as,
|
|
6328
6250
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6329
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6251
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6330
6252
|
|
|
6331
6253
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6332
6254
|
var context = useMemo(function () {
|
|
@@ -6336,14 +6258,14 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6336
6258
|
}, [controlId]);
|
|
6337
6259
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6338
6260
|
value: context
|
|
6339
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6261
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6340
6262
|
ref: ref,
|
|
6341
6263
|
className: classnames(className, bsPrefix)
|
|
6342
6264
|
}), children));
|
|
6343
6265
|
});
|
|
6344
6266
|
FormGroup.displayName = 'FormGroup';
|
|
6345
6267
|
|
|
6346
|
-
var defaultProps$
|
|
6268
|
+
var defaultProps$h = {
|
|
6347
6269
|
column: false,
|
|
6348
6270
|
srOnly: false
|
|
6349
6271
|
};
|
|
@@ -6355,7 +6277,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6355
6277
|
srOnly = _ref.srOnly,
|
|
6356
6278
|
className = _ref.className,
|
|
6357
6279
|
htmlFor = _ref.htmlFor,
|
|
6358
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6280
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6359
6281
|
|
|
6360
6282
|
var _useContext = useContext(FormContext),
|
|
6361
6283
|
controlId = _useContext.controlId;
|
|
@@ -6366,7 +6288,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6366
6288
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6367
6289
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6368
6290
|
htmlFor = htmlFor || controlId;
|
|
6369
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6291
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6370
6292
|
as: "label",
|
|
6371
6293
|
className: classes,
|
|
6372
6294
|
htmlFor: htmlFor
|
|
@@ -6374,7 +6296,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6374
6296
|
return (
|
|
6375
6297
|
/*#__PURE__*/
|
|
6376
6298
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6377
|
-
React__default.createElement(Component, _extends({
|
|
6299
|
+
React__default.createElement(Component, _extends$1({
|
|
6378
6300
|
ref: ref,
|
|
6379
6301
|
className: classes,
|
|
6380
6302
|
htmlFor: htmlFor
|
|
@@ -6382,7 +6304,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6382
6304
|
);
|
|
6383
6305
|
});
|
|
6384
6306
|
FormLabel.displayName = 'FormLabel';
|
|
6385
|
-
FormLabel.defaultProps = defaultProps$
|
|
6307
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6386
6308
|
|
|
6387
6309
|
var FormText = React__default.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
6310
|
function (_ref, ref) {
|
|
@@ -6391,10 +6313,10 @@ function (_ref, ref) {
|
|
|
6391
6313
|
_ref$as = _ref.as,
|
|
6392
6314
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6393
6315
|
muted = _ref.muted,
|
|
6394
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6316
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6395
6317
|
|
|
6396
6318
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6397
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6319
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6398
6320
|
ref: ref,
|
|
6399
6321
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6400
6322
|
}));
|
|
@@ -6402,7 +6324,7 @@ function (_ref, ref) {
|
|
|
6402
6324
|
FormText.displayName = 'FormText';
|
|
6403
6325
|
|
|
6404
6326
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6405
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6327
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6406
6328
|
ref: ref,
|
|
6407
6329
|
type: "switch"
|
|
6408
6330
|
}));
|
|
@@ -6412,7 +6334,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6412
6334
|
Switch.Label = FormCheck.Label;
|
|
6413
6335
|
|
|
6414
6336
|
var FormRow = createWithBsPrefix('form-row');
|
|
6415
|
-
var defaultProps$
|
|
6337
|
+
var defaultProps$i = {
|
|
6416
6338
|
inline: false
|
|
6417
6339
|
};
|
|
6418
6340
|
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6422,16 +6344,16 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6422
6344
|
validated = _ref.validated,
|
|
6423
6345
|
_ref$as = _ref.as,
|
|
6424
6346
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6425
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6347
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6426
6348
|
|
|
6427
6349
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6428
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6350
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6429
6351
|
ref: ref,
|
|
6430
6352
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6431
6353
|
}));
|
|
6432
6354
|
});
|
|
6433
6355
|
FormImpl.displayName = 'Form';
|
|
6434
|
-
FormImpl.defaultProps = defaultProps$
|
|
6356
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6435
6357
|
FormImpl.Row = FormRow;
|
|
6436
6358
|
FormImpl.Group = FormGroup;
|
|
6437
6359
|
FormImpl.Control = FormControl$1;
|
|
@@ -6441,7 +6363,7 @@ FormImpl.Switch = Switch;
|
|
|
6441
6363
|
FormImpl.Label = FormLabel;
|
|
6442
6364
|
FormImpl.Text = FormText;
|
|
6443
6365
|
|
|
6444
|
-
var defaultProps$
|
|
6366
|
+
var defaultProps$j = {
|
|
6445
6367
|
fluid: false
|
|
6446
6368
|
};
|
|
6447
6369
|
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6450,20 +6372,20 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6450
6372
|
_ref$as = _ref.as,
|
|
6451
6373
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6452
6374
|
className = _ref.className,
|
|
6453
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6375
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6454
6376
|
|
|
6455
6377
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6456
6378
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6457
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6379
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6458
6380
|
ref: ref
|
|
6459
6381
|
}, props, {
|
|
6460
6382
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6461
6383
|
}));
|
|
6462
6384
|
});
|
|
6463
6385
|
Container.displayName = 'Container';
|
|
6464
|
-
Container.defaultProps = defaultProps$
|
|
6386
|
+
Container.defaultProps = defaultProps$j;
|
|
6465
6387
|
|
|
6466
|
-
var propTypes$
|
|
6388
|
+
var propTypes$7 = {
|
|
6467
6389
|
/**
|
|
6468
6390
|
* @default 'img'
|
|
6469
6391
|
*/
|
|
@@ -6502,11 +6424,11 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6502
6424
|
rounded = _ref.rounded,
|
|
6503
6425
|
roundedCircle = _ref.roundedCircle,
|
|
6504
6426
|
thumbnail = _ref.thumbnail,
|
|
6505
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6427
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6506
6428
|
|
|
6507
6429
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6508
6430
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6509
|
-
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6431
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6510
6432
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6511
6433
|
ref: ref
|
|
6512
6434
|
}, props, {
|
|
@@ -6516,22 +6438,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6516
6438
|
Image.displayName = 'Image';
|
|
6517
6439
|
Image.defaultProps = defaultProps$k;
|
|
6518
6440
|
|
|
6519
|
-
var defaultProps$
|
|
6441
|
+
var defaultProps$l = {
|
|
6520
6442
|
fluid: true
|
|
6521
6443
|
};
|
|
6522
6444
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6523
6445
|
var className = _ref.className,
|
|
6524
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6446
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6525
6447
|
|
|
6526
|
-
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6448
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6527
6449
|
ref: ref
|
|
6528
6450
|
}, props, {
|
|
6529
6451
|
className: classnames(className, 'figure-img')
|
|
6530
6452
|
}));
|
|
6531
6453
|
});
|
|
6532
6454
|
FigureImage.displayName = 'FigureImage';
|
|
6533
|
-
FigureImage.propTypes = propTypes$
|
|
6534
|
-
FigureImage.defaultProps = defaultProps$
|
|
6455
|
+
FigureImage.propTypes = propTypes$7;
|
|
6456
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6535
6457
|
|
|
6536
6458
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6537
6459
|
Component: 'figcaption'
|
|
@@ -6550,13 +6472,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6550
6472
|
});
|
|
6551
6473
|
|
|
6552
6474
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6553
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6475
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6554
6476
|
type: "checkbox"
|
|
6555
6477
|
}, props)));
|
|
6556
6478
|
};
|
|
6557
6479
|
|
|
6558
6480
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6559
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6481
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6560
6482
|
type: "radio"
|
|
6561
6483
|
}, props)));
|
|
6562
6484
|
};
|
|
@@ -6575,10 +6497,10 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6575
6497
|
className = _ref.className,
|
|
6576
6498
|
_ref$as = _ref.as,
|
|
6577
6499
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6578
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6500
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6579
6501
|
|
|
6580
6502
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6581
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6503
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6582
6504
|
ref: ref
|
|
6583
6505
|
}, props, {
|
|
6584
6506
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6586,7 +6508,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6586
6508
|
});
|
|
6587
6509
|
InputGroup.displayName = 'InputGroup';
|
|
6588
6510
|
|
|
6589
|
-
_extends({}, InputGroup, {
|
|
6511
|
+
var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
6590
6512
|
Text: InputGroupText,
|
|
6591
6513
|
Radio: InputGroupRadio,
|
|
6592
6514
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6594,7 +6516,7 @@ _extends({}, InputGroup, {
|
|
|
6594
6516
|
Prepend: InputGroupPrepend
|
|
6595
6517
|
});
|
|
6596
6518
|
|
|
6597
|
-
var defaultProps$
|
|
6519
|
+
var defaultProps$m = {
|
|
6598
6520
|
fluid: false
|
|
6599
6521
|
};
|
|
6600
6522
|
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6605,23 +6527,23 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6605
6527
|
className = _ref.className,
|
|
6606
6528
|
fluid = _ref.fluid,
|
|
6607
6529
|
bsPrefix = _ref.bsPrefix,
|
|
6608
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6530
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6609
6531
|
|
|
6610
6532
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6611
6533
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6612
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6534
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6613
6535
|
ref: ref
|
|
6614
6536
|
}, props, {
|
|
6615
6537
|
className: classnames(className, classes)
|
|
6616
6538
|
}));
|
|
6617
6539
|
});
|
|
6618
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6540
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6619
6541
|
Jumbotron.displayName = 'Jumbotron';
|
|
6620
6542
|
|
|
6621
6543
|
var TabContext = React__default.createContext(null);
|
|
6622
6544
|
|
|
6623
6545
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6624
|
-
var noop$
|
|
6546
|
+
var noop$4 = function noop() {};
|
|
6625
6547
|
|
|
6626
6548
|
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6627
6549
|
var _ref$as = _ref.as,
|
|
@@ -6630,7 +6552,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6630
6552
|
activeKey = _ref.activeKey,
|
|
6631
6553
|
role = _ref.role,
|
|
6632
6554
|
onKeyDown = _ref.onKeyDown,
|
|
6633
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6555
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6634
6556
|
|
|
6635
6557
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6636
6558
|
// and don't want to reset the set in the effect
|
|
@@ -6711,17 +6633,17 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6711
6633
|
role: role,
|
|
6712
6634
|
// used by NavLink to determine it's role
|
|
6713
6635
|
activeKey: makeEventKey(activeKey),
|
|
6714
|
-
getControlledId: getControlledId || noop$
|
|
6715
|
-
getControllerId: getControllerId || noop$
|
|
6636
|
+
getControlledId: getControlledId || noop$4,
|
|
6637
|
+
getControllerId: getControllerId || noop$4
|
|
6716
6638
|
}
|
|
6717
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6639
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6718
6640
|
onKeyDown: handleKeyDown,
|
|
6719
6641
|
ref: mergedRef,
|
|
6720
6642
|
role: role
|
|
6721
6643
|
}))));
|
|
6722
6644
|
});
|
|
6723
6645
|
|
|
6724
|
-
var defaultProps$
|
|
6646
|
+
var defaultProps$n = {
|
|
6725
6647
|
disabled: false
|
|
6726
6648
|
};
|
|
6727
6649
|
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6731,7 +6653,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6731
6653
|
onSelect = _ref.onSelect,
|
|
6732
6654
|
onClick = _ref.onClick,
|
|
6733
6655
|
Component = _ref.as,
|
|
6734
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6656
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6735
6657
|
|
|
6736
6658
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6737
6659
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6761,15 +6683,15 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6761
6683
|
if (onSelect) onSelect(navKey, e);
|
|
6762
6684
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6763
6685
|
});
|
|
6764
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6686
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6765
6687
|
ref: ref,
|
|
6766
6688
|
onClick: handleOnclick,
|
|
6767
6689
|
className: classnames(className, isActive && 'active')
|
|
6768
6690
|
}));
|
|
6769
6691
|
});
|
|
6770
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6692
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6771
6693
|
|
|
6772
|
-
var defaultProps$
|
|
6694
|
+
var defaultProps$o = {
|
|
6773
6695
|
variant: undefined,
|
|
6774
6696
|
active: false,
|
|
6775
6697
|
disabled: false
|
|
@@ -6784,7 +6706,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6784
6706
|
as = _ref.as,
|
|
6785
6707
|
eventKey = _ref.eventKey,
|
|
6786
6708
|
onClick = _ref.onClick,
|
|
6787
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6709
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6788
6710
|
|
|
6789
6711
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6790
6712
|
var handleClick = useCallback(function (event) {
|
|
@@ -6796,7 +6718,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6796
6718
|
|
|
6797
6719
|
if (onClick) onClick(event);
|
|
6798
6720
|
}, [disabled, onClick]);
|
|
6799
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6721
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6800
6722
|
ref: ref
|
|
6801
6723
|
}, props, {
|
|
6802
6724
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6807,10 +6729,10 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6807
6729
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6808
6730
|
}));
|
|
6809
6731
|
});
|
|
6810
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6732
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6811
6733
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6812
6734
|
|
|
6813
|
-
var defaultProps$
|
|
6735
|
+
var defaultProps$p = {
|
|
6814
6736
|
variant: undefined,
|
|
6815
6737
|
horizontal: undefined
|
|
6816
6738
|
};
|
|
@@ -6824,7 +6746,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6824
6746
|
horizontal = _useUncontrolled.horizontal,
|
|
6825
6747
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6826
6748
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6827
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6749
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6828
6750
|
|
|
6829
6751
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6830
6752
|
var horizontalVariant;
|
|
@@ -6836,14 +6758,14 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6836
6758
|
}
|
|
6837
6759
|
|
|
6838
6760
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6839
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6761
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6840
6762
|
ref: ref
|
|
6841
6763
|
}, controlledProps, {
|
|
6842
6764
|
as: as,
|
|
6843
6765
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6844
6766
|
}));
|
|
6845
6767
|
});
|
|
6846
|
-
ListGroup.defaultProps = defaultProps$
|
|
6768
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6847
6769
|
ListGroup.displayName = 'ListGroup';
|
|
6848
6770
|
ListGroup.Item = ListGroupItem;
|
|
6849
6771
|
|
|
@@ -6854,10 +6776,10 @@ function (_ref, ref) {
|
|
|
6854
6776
|
className = _ref.className,
|
|
6855
6777
|
_ref$as = _ref.as,
|
|
6856
6778
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6857
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6779
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6858
6780
|
|
|
6859
6781
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6860
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6782
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6861
6783
|
ref: ref,
|
|
6862
6784
|
className: classnames(className, prefix)
|
|
6863
6785
|
}));
|
|
@@ -6885,14 +6807,14 @@ function scrollbarSize(recalc) {
|
|
|
6885
6807
|
}
|
|
6886
6808
|
|
|
6887
6809
|
/**
|
|
6888
|
-
*
|
|
6810
|
+
* Return the actively focused element safely.
|
|
6889
6811
|
*
|
|
6890
|
-
* @param doc the document to
|
|
6812
|
+
* @param doc the document to checl
|
|
6891
6813
|
*/
|
|
6892
6814
|
|
|
6893
6815
|
function activeElement(doc) {
|
|
6894
6816
|
if (doc === void 0) {
|
|
6895
|
-
doc = ownerDocument
|
|
6817
|
+
doc = ownerDocument();
|
|
6896
6818
|
}
|
|
6897
6819
|
|
|
6898
6820
|
// Support: IE 9 only
|
|
@@ -6909,13 +6831,6 @@ function activeElement(doc) {
|
|
|
6909
6831
|
}
|
|
6910
6832
|
}
|
|
6911
6833
|
|
|
6912
|
-
/**
|
|
6913
|
-
* Adds a CSS class to a given element.
|
|
6914
|
-
*
|
|
6915
|
-
* @param element the element
|
|
6916
|
-
* @param className the CSS class name
|
|
6917
|
-
*/
|
|
6918
|
-
|
|
6919
6834
|
function addClass(element, className) {
|
|
6920
6835
|
if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
|
|
6921
6836
|
}
|
|
@@ -6923,13 +6838,6 @@ function addClass(element, className) {
|
|
|
6923
6838
|
function replaceClassName(origClass, classToRemove) {
|
|
6924
6839
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6925
6840
|
}
|
|
6926
|
-
/**
|
|
6927
|
-
* Removes a CSS class from a given element.
|
|
6928
|
-
*
|
|
6929
|
-
* @param element the element
|
|
6930
|
-
* @param className the CSS class name
|
|
6931
|
-
*/
|
|
6932
|
-
|
|
6933
6841
|
|
|
6934
6842
|
function removeClass(element, className) {
|
|
6935
6843
|
if (element.classList) {
|
|
@@ -6956,7 +6864,7 @@ function isBody(node) {
|
|
|
6956
6864
|
}
|
|
6957
6865
|
|
|
6958
6866
|
function bodyIsOverflowing(node) {
|
|
6959
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6867
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6960
6868
|
var win = isWindow(node) || doc.defaultView;
|
|
6961
6869
|
return doc.body.clientWidth < win.innerWidth;
|
|
6962
6870
|
}
|
|
@@ -7168,7 +7076,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7168
7076
|
var _ref;
|
|
7169
7077
|
|
|
7170
7078
|
if (typeof document === 'undefined') return null;
|
|
7171
|
-
if (ref == null) return ownerDocument
|
|
7079
|
+
if (ref == null) return ownerDocument().body;
|
|
7172
7080
|
if (typeof ref === 'function') ref = ref();
|
|
7173
7081
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7174
7082
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7201,11 +7109,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7201
7109
|
return resolvedRef;
|
|
7202
7110
|
}
|
|
7203
7111
|
|
|
7204
|
-
var manager
|
|
7112
|
+
var manager;
|
|
7205
7113
|
|
|
7206
7114
|
function getManager() {
|
|
7207
|
-
if (!manager
|
|
7208
|
-
return manager
|
|
7115
|
+
if (!manager) manager = new ModalManager();
|
|
7116
|
+
return manager;
|
|
7209
7117
|
}
|
|
7210
7118
|
|
|
7211
7119
|
function useModalManager(provided) {
|
|
@@ -7233,7 +7141,7 @@ function useModalManager(provided) {
|
|
|
7233
7141
|
});
|
|
7234
7142
|
}
|
|
7235
7143
|
|
|
7236
|
-
var Modal
|
|
7144
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7237
7145
|
var _ref$show = _ref.show,
|
|
7238
7146
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7239
7147
|
_ref$role = _ref.role,
|
|
@@ -7317,7 +7225,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7317
7225
|
if (autoFocus) {
|
|
7318
7226
|
var currentActiveElement = activeElement(document);
|
|
7319
7227
|
|
|
7320
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7228
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7321
7229
|
lastFocusRef.current = currentActiveElement;
|
|
7322
7230
|
modal.dialog.focus();
|
|
7323
7231
|
}
|
|
@@ -7363,7 +7271,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7363
7271
|
|
|
7364
7272
|
var currentActiveElement = activeElement();
|
|
7365
7273
|
|
|
7366
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7274
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7367
7275
|
modal.dialog.focus();
|
|
7368
7276
|
}
|
|
7369
7277
|
});
|
|
@@ -7454,7 +7362,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7454
7362
|
|
|
7455
7363
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7456
7364
|
});
|
|
7457
|
-
var propTypes$
|
|
7365
|
+
var propTypes$8 = {
|
|
7458
7366
|
/**
|
|
7459
7367
|
* Set the visibility of the Modal
|
|
7460
7368
|
*/
|
|
@@ -7610,9 +7518,9 @@ var propTypes$2 = {
|
|
|
7610
7518
|
*/
|
|
7611
7519
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7612
7520
|
};
|
|
7613
|
-
Modal
|
|
7614
|
-
Modal
|
|
7615
|
-
var BaseModal = Object.assign(Modal
|
|
7521
|
+
Modal.displayName = 'Modal';
|
|
7522
|
+
Modal.propTypes = propTypes$8;
|
|
7523
|
+
var BaseModal = Object.assign(Modal, {
|
|
7616
7524
|
Manager: ModalManager
|
|
7617
7525
|
});
|
|
7618
7526
|
|
|
@@ -7704,11 +7612,11 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7704
7612
|
size = _ref.size,
|
|
7705
7613
|
children = _ref.children,
|
|
7706
7614
|
scrollable = _ref.scrollable,
|
|
7707
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7615
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7708
7616
|
|
|
7709
7617
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7710
7618
|
var dialogClass = bsPrefix + "-dialog";
|
|
7711
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7619
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7712
7620
|
ref: ref,
|
|
7713
7621
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7714
7622
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7719,7 +7627,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7719
7627
|
|
|
7720
7628
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7721
7629
|
|
|
7722
|
-
var defaultProps$
|
|
7630
|
+
var defaultProps$q = {
|
|
7723
7631
|
closeLabel: 'Close',
|
|
7724
7632
|
closeButton: false
|
|
7725
7633
|
};
|
|
@@ -7730,7 +7638,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7730
7638
|
onHide = _ref.onHide,
|
|
7731
7639
|
className = _ref.className,
|
|
7732
7640
|
children = _ref.children,
|
|
7733
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7641
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7734
7642
|
|
|
7735
7643
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7736
7644
|
var context = useContext(ModalContext);
|
|
@@ -7738,7 +7646,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7738
7646
|
if (context) context.onHide();
|
|
7739
7647
|
if (onHide) onHide();
|
|
7740
7648
|
});
|
|
7741
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7649
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7742
7650
|
ref: ref
|
|
7743
7651
|
}, props, {
|
|
7744
7652
|
className: classnames(className, bsPrefix)
|
|
@@ -7748,15 +7656,15 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7748
7656
|
}));
|
|
7749
7657
|
});
|
|
7750
7658
|
ModalHeader.displayName = 'ModalHeader';
|
|
7751
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7659
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7752
7660
|
|
|
7753
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7661
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7754
7662
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7755
|
-
Component: DivStyledAsH4
|
|
7663
|
+
Component: DivStyledAsH4$1
|
|
7756
7664
|
});
|
|
7757
7665
|
|
|
7758
|
-
var manager;
|
|
7759
|
-
var defaultProps$
|
|
7666
|
+
var manager$1;
|
|
7667
|
+
var defaultProps$r = {
|
|
7760
7668
|
show: false,
|
|
7761
7669
|
backdrop: true,
|
|
7762
7670
|
keyboard: true,
|
|
@@ -7778,7 +7686,7 @@ function BackdropTransition(props) {
|
|
|
7778
7686
|
/* eslint-enable no-use-before-define */
|
|
7779
7687
|
|
|
7780
7688
|
|
|
7781
|
-
var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
7689
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7782
7690
|
var bsPrefix = _ref.bsPrefix,
|
|
7783
7691
|
className = _ref.className,
|
|
7784
7692
|
style = _ref.style,
|
|
@@ -7807,7 +7715,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7807
7715
|
onExited = _ref.onExited,
|
|
7808
7716
|
backdropClassName = _ref.backdropClassName,
|
|
7809
7717
|
propsManager = _ref.manager,
|
|
7810
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7718
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7811
7719
|
|
|
7812
7720
|
var _useState = useState({}),
|
|
7813
7721
|
modalStyle = _useState[0],
|
|
@@ -7844,14 +7752,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7844
7752
|
|
|
7845
7753
|
function getModalManager() {
|
|
7846
7754
|
if (propsManager) return propsManager;
|
|
7847
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7848
|
-
return manager;
|
|
7755
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7756
|
+
return manager$1;
|
|
7849
7757
|
}
|
|
7850
7758
|
|
|
7851
7759
|
function updateDialogStyle(node) {
|
|
7852
7760
|
if (!canUseDOM) return;
|
|
7853
7761
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7854
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7762
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7855
7763
|
setStyle({
|
|
7856
7764
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7857
7765
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7973,12 +7881,12 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7973
7881
|
};
|
|
7974
7882
|
|
|
7975
7883
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7976
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
7884
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7977
7885
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7978
7886
|
}));
|
|
7979
7887
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7980
7888
|
|
|
7981
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7889
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7982
7890
|
|
|
7983
7891
|
|
|
7984
7892
|
if (!animation) {
|
|
@@ -7986,7 +7894,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7986
7894
|
}
|
|
7987
7895
|
|
|
7988
7896
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7989
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7897
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7990
7898
|
role: "dialog"
|
|
7991
7899
|
}, dialogProps, {
|
|
7992
7900
|
style: baseModalStyle,
|
|
@@ -7994,7 +7902,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7994
7902
|
onClick: backdrop ? handleClick : undefined,
|
|
7995
7903
|
onMouseUp: handleMouseUp,
|
|
7996
7904
|
"aria-labelledby": ariaLabelledby
|
|
7997
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
7905
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7998
7906
|
role: "document",
|
|
7999
7907
|
onMouseDown: handleDialogMouseDown,
|
|
8000
7908
|
className: dialogClassName,
|
|
@@ -8032,15 +7940,15 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8032
7940
|
renderDialog: renderDialog
|
|
8033
7941
|
}));
|
|
8034
7942
|
});
|
|
8035
|
-
Modal.displayName = 'Modal';
|
|
8036
|
-
Modal.defaultProps = defaultProps$
|
|
8037
|
-
Modal.Body = ModalBody;
|
|
8038
|
-
Modal.Header = ModalHeader;
|
|
8039
|
-
Modal.Title = ModalTitle;
|
|
8040
|
-
Modal.Footer = ModalFooter;
|
|
8041
|
-
Modal.Dialog = ModalDialog;
|
|
8042
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8043
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7943
|
+
Modal$1.displayName = 'Modal';
|
|
7944
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7945
|
+
Modal$1.Body = ModalBody;
|
|
7946
|
+
Modal$1.Header = ModalHeader;
|
|
7947
|
+
Modal$1.Title = ModalTitle;
|
|
7948
|
+
Modal$1.Footer = ModalFooter;
|
|
7949
|
+
Modal$1.Dialog = ModalDialog;
|
|
7950
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7951
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
8044
7952
|
|
|
8045
7953
|
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8046
7954
|
function (_ref, ref) {
|
|
@@ -8049,17 +7957,17 @@ function (_ref, ref) {
|
|
|
8049
7957
|
children = _ref.children,
|
|
8050
7958
|
_ref$as = _ref.as,
|
|
8051
7959
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8052
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7960
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8053
7961
|
|
|
8054
7962
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8055
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7963
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8056
7964
|
ref: ref,
|
|
8057
7965
|
className: classnames(className, bsPrefix)
|
|
8058
7966
|
}), children);
|
|
8059
7967
|
});
|
|
8060
7968
|
NavItem.displayName = 'NavItem';
|
|
8061
7969
|
|
|
8062
|
-
var defaultProps$
|
|
7970
|
+
var defaultProps$s = {
|
|
8063
7971
|
disabled: false,
|
|
8064
7972
|
as: SafeAnchor
|
|
8065
7973
|
};
|
|
@@ -8071,10 +7979,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8071
7979
|
eventKey = _ref.eventKey,
|
|
8072
7980
|
onSelect = _ref.onSelect,
|
|
8073
7981
|
as = _ref.as,
|
|
8074
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7982
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8075
7983
|
|
|
8076
7984
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8077
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
7985
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
8078
7986
|
href: href,
|
|
8079
7987
|
ref: ref,
|
|
8080
7988
|
eventKey: eventKey,
|
|
@@ -8085,9 +7993,9 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8085
7993
|
}));
|
|
8086
7994
|
});
|
|
8087
7995
|
NavLink.displayName = 'NavLink';
|
|
8088
|
-
NavLink.defaultProps = defaultProps$
|
|
7996
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8089
7997
|
|
|
8090
|
-
var defaultProps$
|
|
7998
|
+
var defaultProps$t = {
|
|
8091
7999
|
justify: false,
|
|
8092
8000
|
fill: false
|
|
8093
8001
|
};
|
|
@@ -8107,13 +8015,13 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8107
8015
|
className = _useUncontrolled.className,
|
|
8108
8016
|
children = _useUncontrolled.children,
|
|
8109
8017
|
activeKey = _useUncontrolled.activeKey,
|
|
8110
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8018
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8111
8019
|
|
|
8112
8020
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8113
8021
|
var navbarBsPrefix;
|
|
8114
8022
|
var cardHeaderBsPrefix;
|
|
8115
8023
|
var isNavbar = false;
|
|
8116
|
-
var navbarContext = useContext(context);
|
|
8024
|
+
var navbarContext = useContext(context$2);
|
|
8117
8025
|
var cardContext = useContext(context$1);
|
|
8118
8026
|
|
|
8119
8027
|
if (navbarContext) {
|
|
@@ -8123,7 +8031,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8123
8031
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8124
8032
|
}
|
|
8125
8033
|
|
|
8126
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
8034
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
8127
8035
|
as: as,
|
|
8128
8036
|
ref: ref,
|
|
8129
8037
|
activeKey: activeKey,
|
|
@@ -8131,7 +8039,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8131
8039
|
}, props), children);
|
|
8132
8040
|
});
|
|
8133
8041
|
Nav.displayName = 'Nav';
|
|
8134
|
-
Nav.defaultProps = defaultProps$
|
|
8042
|
+
Nav.defaultProps = defaultProps$t;
|
|
8135
8043
|
Nav.Item = NavItem;
|
|
8136
8044
|
Nav.Link = NavLink;
|
|
8137
8045
|
|
|
@@ -8139,11 +8047,11 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8139
8047
|
var bsPrefix = _ref.bsPrefix,
|
|
8140
8048
|
className = _ref.className,
|
|
8141
8049
|
as = _ref.as,
|
|
8142
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8050
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
8143
8051
|
|
|
8144
8052
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8145
8053
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8146
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8054
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8147
8055
|
ref: ref,
|
|
8148
8056
|
className: classnames(className, bsPrefix)
|
|
8149
8057
|
}));
|
|
@@ -8153,11 +8061,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8153
8061
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8154
8062
|
var children = _ref.children,
|
|
8155
8063
|
bsPrefix = _ref.bsPrefix,
|
|
8156
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8064
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8157
8065
|
|
|
8158
8066
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8159
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8160
|
-
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
8067
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8068
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8161
8069
|
in: !!(context && context.expanded)
|
|
8162
8070
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8163
8071
|
ref: ref,
|
|
@@ -8167,7 +8075,7 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8167
8075
|
});
|
|
8168
8076
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8169
8077
|
|
|
8170
|
-
var defaultProps$
|
|
8078
|
+
var defaultProps$u = {
|
|
8171
8079
|
label: 'Toggle navigation'
|
|
8172
8080
|
};
|
|
8173
8081
|
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8178,11 +8086,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8178
8086
|
_ref$as = _ref.as,
|
|
8179
8087
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8180
8088
|
onClick = _ref.onClick,
|
|
8181
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8089
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8182
8090
|
|
|
8183
8091
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8184
8092
|
|
|
8185
|
-
var _ref2 = useContext(context) || {},
|
|
8093
|
+
var _ref2 = useContext(context$2) || {},
|
|
8186
8094
|
onToggle = _ref2.onToggle,
|
|
8187
8095
|
expanded = _ref2.expanded;
|
|
8188
8096
|
|
|
@@ -8195,7 +8103,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8195
8103
|
props.type = 'button';
|
|
8196
8104
|
}
|
|
8197
8105
|
|
|
8198
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8106
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8199
8107
|
ref: ref,
|
|
8200
8108
|
onClick: handleClick,
|
|
8201
8109
|
"aria-label": label,
|
|
@@ -8205,12 +8113,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8205
8113
|
}));
|
|
8206
8114
|
});
|
|
8207
8115
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8208
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8116
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8209
8117
|
|
|
8210
8118
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8211
8119
|
Component: 'span'
|
|
8212
8120
|
});
|
|
8213
|
-
var defaultProps$
|
|
8121
|
+
var defaultProps$v = {
|
|
8214
8122
|
expand: true,
|
|
8215
8123
|
variant: 'light',
|
|
8216
8124
|
collapseOnSelect: false
|
|
@@ -8233,7 +8141,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8233
8141
|
_onToggle = _useUncontrolled.onToggle,
|
|
8234
8142
|
onSelect = _useUncontrolled.onSelect,
|
|
8235
8143
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8236
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8144
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8237
8145
|
|
|
8238
8146
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8239
8147
|
var handleCollapse = useCallback(function () {
|
|
@@ -8263,24 +8171,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8263
8171
|
expanded: !!expanded
|
|
8264
8172
|
};
|
|
8265
8173
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8266
|
-
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
8174
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8267
8175
|
value: navbarContext
|
|
8268
8176
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8269
8177
|
value: handleCollapse
|
|
8270
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8178
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8271
8179
|
ref: ref
|
|
8272
8180
|
}, controlledProps, {
|
|
8273
8181
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8274
8182
|
}), children)));
|
|
8275
8183
|
});
|
|
8276
|
-
Navbar.defaultProps = defaultProps$
|
|
8184
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8277
8185
|
Navbar.displayName = 'Navbar';
|
|
8278
8186
|
Navbar.Brand = NavbarBrand;
|
|
8279
8187
|
Navbar.Toggle = NavbarToggle;
|
|
8280
8188
|
Navbar.Collapse = NavbarCollapse;
|
|
8281
8189
|
Navbar.Text = NavbarText;
|
|
8282
8190
|
|
|
8283
|
-
var propTypes$
|
|
8191
|
+
var propTypes$9 = {
|
|
8284
8192
|
/**
|
|
8285
8193
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8286
8194
|
* @type {string|number}
|
|
@@ -8326,31 +8234,31 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8326
8234
|
disabled = _ref.disabled,
|
|
8327
8235
|
active = _ref.active,
|
|
8328
8236
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8329
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8237
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8330
8238
|
|
|
8331
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8239
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8332
8240
|
ref: ref
|
|
8333
8241
|
}, props, {
|
|
8334
8242
|
as: NavItem
|
|
8335
|
-
}), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8243
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8336
8244
|
id: id,
|
|
8337
8245
|
eventKey: null,
|
|
8338
8246
|
active: active,
|
|
8339
8247
|
disabled: disabled,
|
|
8340
8248
|
childBsPrefix: bsPrefix,
|
|
8341
8249
|
as: NavLink
|
|
8342
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8250
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8343
8251
|
role: menuRole,
|
|
8344
8252
|
renderOnMount: renderMenuOnMount,
|
|
8345
8253
|
rootCloseEvent: rootCloseEvent
|
|
8346
8254
|
}, children));
|
|
8347
8255
|
});
|
|
8348
8256
|
NavDropdown.displayName = 'NavDropdown';
|
|
8349
|
-
NavDropdown.propTypes = propTypes$
|
|
8350
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8351
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8352
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8353
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8257
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8258
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8259
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8260
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8261
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8354
8262
|
|
|
8355
8263
|
/**
|
|
8356
8264
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8591,7 +8499,7 @@ Overlay.propTypes = {
|
|
|
8591
8499
|
onExited: PropTypes.func
|
|
8592
8500
|
};
|
|
8593
8501
|
|
|
8594
|
-
/*#__PURE__*/
|
|
8502
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8595
8503
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8596
8504
|
|
|
8597
8505
|
function RefHolder() {
|
|
@@ -8605,9 +8513,9 @@ Overlay.propTypes = {
|
|
|
8605
8513
|
};
|
|
8606
8514
|
|
|
8607
8515
|
return RefHolder;
|
|
8608
|
-
}
|
|
8516
|
+
}(React__default.Component);
|
|
8609
8517
|
|
|
8610
|
-
var defaultProps$
|
|
8518
|
+
var defaultProps$w = {
|
|
8611
8519
|
active: false,
|
|
8612
8520
|
disabled: false,
|
|
8613
8521
|
activeLabel: '(current)'
|
|
@@ -8619,7 +8527,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8619
8527
|
style = _ref.style,
|
|
8620
8528
|
activeLabel = _ref.activeLabel,
|
|
8621
8529
|
children = _ref.children,
|
|
8622
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8530
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8623
8531
|
|
|
8624
8532
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8625
8533
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -8629,14 +8537,14 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8629
8537
|
active: active,
|
|
8630
8538
|
disabled: disabled
|
|
8631
8539
|
})
|
|
8632
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8540
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8633
8541
|
className: "page-link",
|
|
8634
8542
|
disabled: disabled
|
|
8635
8543
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8636
8544
|
className: "sr-only"
|
|
8637
8545
|
}, activeLabel)));
|
|
8638
8546
|
});
|
|
8639
|
-
PageItem.defaultProps = defaultProps$
|
|
8547
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8640
8548
|
PageItem.displayName = 'PageItem';
|
|
8641
8549
|
|
|
8642
8550
|
function createButton(name, defaultValue, label) {
|
|
@@ -8646,7 +8554,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8646
8554
|
|
|
8647
8555
|
function Button(_ref2) {
|
|
8648
8556
|
var children = _ref2.children,
|
|
8649
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8557
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8650
8558
|
|
|
8651
8559
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8652
8560
|
"aria-hidden": "true"
|
|
@@ -8678,10 +8586,10 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8678
8586
|
className = _ref.className,
|
|
8679
8587
|
children = _ref.children,
|
|
8680
8588
|
size = _ref.size,
|
|
8681
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8589
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8682
8590
|
|
|
8683
8591
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8684
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8592
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8685
8593
|
ref: ref
|
|
8686
8594
|
}, props, {
|
|
8687
8595
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8700,10 +8608,10 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8700
8608
|
bsPrefix = _ref.bsPrefix,
|
|
8701
8609
|
className = _ref.className,
|
|
8702
8610
|
children = _ref.children,
|
|
8703
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8611
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8704
8612
|
|
|
8705
8613
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8706
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8614
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8707
8615
|
ref: ref
|
|
8708
8616
|
}, props, {
|
|
8709
8617
|
className: classnames(bsPrefix, className)
|
|
@@ -8716,17 +8624,17 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8716
8624
|
bsPrefix = _ref.bsPrefix,
|
|
8717
8625
|
className = _ref.className,
|
|
8718
8626
|
children = _ref.children,
|
|
8719
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8627
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8720
8628
|
|
|
8721
8629
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8722
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8630
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8723
8631
|
ref: ref
|
|
8724
8632
|
}, props, {
|
|
8725
8633
|
className: classnames(className, bsPrefix)
|
|
8726
8634
|
}), children);
|
|
8727
8635
|
});
|
|
8728
8636
|
|
|
8729
|
-
var defaultProps$
|
|
8637
|
+
var defaultProps$x = {
|
|
8730
8638
|
placement: 'right'
|
|
8731
8639
|
};
|
|
8732
8640
|
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8736,33 +8644,33 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8736
8644
|
style = _ref.style,
|
|
8737
8645
|
children = _ref.children,
|
|
8738
8646
|
content = _ref.content,
|
|
8739
|
-
arrowProps = _ref.arrowProps
|
|
8740
|
-
_ref.popper
|
|
8741
|
-
_ref.show
|
|
8742
|
-
|
|
8647
|
+
arrowProps = _ref.arrowProps,
|
|
8648
|
+
_ = _ref.popper,
|
|
8649
|
+
_1 = _ref.show,
|
|
8650
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8743
8651
|
|
|
8744
8652
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8745
8653
|
|
|
8746
8654
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8747
8655
|
primaryPlacement = _ref2[0];
|
|
8748
8656
|
|
|
8749
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8657
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8750
8658
|
ref: ref,
|
|
8751
8659
|
role: "tooltip",
|
|
8752
8660
|
style: style,
|
|
8753
8661
|
"x-placement": primaryPlacement,
|
|
8754
8662
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8755
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8663
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8756
8664
|
className: "arrow"
|
|
8757
8665
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8758
8666
|
});
|
|
8759
|
-
Popover.defaultProps = defaultProps$
|
|
8667
|
+
Popover.defaultProps = defaultProps$x;
|
|
8760
8668
|
Popover.Title = PopoverTitle;
|
|
8761
8669
|
Popover.Content = PopoverContent;
|
|
8762
8670
|
|
|
8763
8671
|
var ROUND_PRECISION = 1000;
|
|
8764
8672
|
|
|
8765
|
-
var defaultProps$
|
|
8673
|
+
var defaultProps$y = {
|
|
8766
8674
|
min: 0,
|
|
8767
8675
|
max: 100,
|
|
8768
8676
|
animated: false,
|
|
@@ -8790,14 +8698,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8790
8698
|
style = _ref.style,
|
|
8791
8699
|
variant = _ref.variant,
|
|
8792
8700
|
bsPrefix = _ref.bsPrefix,
|
|
8793
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8701
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8794
8702
|
|
|
8795
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8703
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8796
8704
|
ref: ref
|
|
8797
8705
|
}, props, {
|
|
8798
8706
|
role: "progressbar",
|
|
8799
8707
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8800
|
-
style: _extends({
|
|
8708
|
+
style: _extends$1({
|
|
8801
8709
|
width: getPercentage(now, min, max) + "%"
|
|
8802
8710
|
}, style),
|
|
8803
8711
|
"aria-valuenow": now,
|
|
@@ -8810,7 +8718,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8810
8718
|
|
|
8811
8719
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8812
8720
|
var isChild = _ref2.isChild,
|
|
8813
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8721
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8814
8722
|
|
|
8815
8723
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8816
8724
|
|
|
@@ -8829,9 +8737,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8829
8737
|
variant = props.variant,
|
|
8830
8738
|
className = props.className,
|
|
8831
8739
|
children = props.children,
|
|
8832
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8740
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8833
8741
|
|
|
8834
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8742
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8835
8743
|
ref: ref
|
|
8836
8744
|
}, wrapperProps, {
|
|
8837
8745
|
className: classnames(className, bsPrefix)
|
|
@@ -8852,9 +8760,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8852
8760
|
}, ref));
|
|
8853
8761
|
});
|
|
8854
8762
|
ProgressBar.displayName = 'ProgressBar';
|
|
8855
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8763
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8856
8764
|
|
|
8857
|
-
var defaultProps$
|
|
8765
|
+
var defaultProps$z = {
|
|
8858
8766
|
aspectRatio: '1by1'
|
|
8859
8767
|
};
|
|
8860
8768
|
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8862,11 +8770,11 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8862
8770
|
className = _ref.className,
|
|
8863
8771
|
children = _ref.children,
|
|
8864
8772
|
aspectRatio = _ref.aspectRatio,
|
|
8865
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8773
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8866
8774
|
|
|
8867
8775
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8868
8776
|
var child = React__default.Children.only(children);
|
|
8869
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8777
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8870
8778
|
ref: ref
|
|
8871
8779
|
}, props, {
|
|
8872
8780
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
@@ -8874,10 +8782,10 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8874
8782
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8875
8783
|
}));
|
|
8876
8784
|
});
|
|
8877
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8785
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8878
8786
|
|
|
8879
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8880
|
-
var defaultProps$
|
|
8787
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8788
|
+
var defaultProps$A = {
|
|
8881
8789
|
noGutters: false
|
|
8882
8790
|
};
|
|
8883
8791
|
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8886,12 +8794,12 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8886
8794
|
noGutters = _ref.noGutters,
|
|
8887
8795
|
_ref$as = _ref.as,
|
|
8888
8796
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8889
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8797
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8890
8798
|
|
|
8891
8799
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8892
8800
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8893
8801
|
var classes = [];
|
|
8894
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8802
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8895
8803
|
var propValue = props[brkPoint];
|
|
8896
8804
|
delete props[brkPoint];
|
|
8897
8805
|
var cols;
|
|
@@ -8905,14 +8813,14 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8905
8813
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8906
8814
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8907
8815
|
});
|
|
8908
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8816
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8909
8817
|
ref: ref
|
|
8910
8818
|
}, props, {
|
|
8911
8819
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8912
8820
|
}));
|
|
8913
8821
|
});
|
|
8914
8822
|
Row.displayName = 'Row';
|
|
8915
|
-
Row.defaultProps = defaultProps$
|
|
8823
|
+
Row.defaultProps = defaultProps$A;
|
|
8916
8824
|
|
|
8917
8825
|
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8918
8826
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8923,11 +8831,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8923
8831
|
_ref$as = _ref.as,
|
|
8924
8832
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8925
8833
|
className = _ref.className,
|
|
8926
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8834
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8927
8835
|
|
|
8928
8836
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8929
8837
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8930
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8838
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8931
8839
|
ref: ref
|
|
8932
8840
|
}, props, {
|
|
8933
8841
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8935,7 +8843,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8935
8843
|
});
|
|
8936
8844
|
Spinner.displayName = 'Spinner';
|
|
8937
8845
|
|
|
8938
|
-
var propTypes = {
|
|
8846
|
+
var propTypes$a = {
|
|
8939
8847
|
/**
|
|
8940
8848
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8941
8849
|
* @type {string|number}
|
|
@@ -8997,7 +8905,7 @@ var propTypes = {
|
|
|
8997
8905
|
/** @ignore */
|
|
8998
8906
|
size: PropTypes.string
|
|
8999
8907
|
};
|
|
9000
|
-
var defaultProps$
|
|
8908
|
+
var defaultProps$B = {
|
|
9001
8909
|
toggleLabel: 'Toggle dropdown',
|
|
9002
8910
|
type: 'button'
|
|
9003
8911
|
};
|
|
@@ -9017,9 +8925,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9017
8925
|
menuRole = _ref.menuRole,
|
|
9018
8926
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
9019
8927
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9020
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8928
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9021
8929
|
|
|
9022
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8930
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
9023
8931
|
ref: ref
|
|
9024
8932
|
}, props, {
|
|
9025
8933
|
as: ButtonGroup
|
|
@@ -9032,7 +8940,7 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9032
8940
|
target: target,
|
|
9033
8941
|
onClick: onClick,
|
|
9034
8942
|
type: type
|
|
9035
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8943
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
9036
8944
|
split: true,
|
|
9037
8945
|
id: id ? id.toString() : undefined,
|
|
9038
8946
|
size: size,
|
|
@@ -9041,15 +8949,15 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9041
8949
|
childBsPrefix: bsPrefix
|
|
9042
8950
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
9043
8951
|
className: "sr-only"
|
|
9044
|
-
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8952
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
9045
8953
|
align: menuAlign,
|
|
9046
8954
|
role: menuRole,
|
|
9047
8955
|
renderOnMount: renderMenuOnMount,
|
|
9048
8956
|
rootCloseEvent: rootCloseEvent
|
|
9049
8957
|
}, children));
|
|
9050
8958
|
});
|
|
9051
|
-
SplitButton.propTypes = propTypes;
|
|
9052
|
-
SplitButton.defaultProps = defaultProps$
|
|
8959
|
+
SplitButton.propTypes = propTypes$a;
|
|
8960
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9053
8961
|
SplitButton.displayName = 'SplitButton';
|
|
9054
8962
|
|
|
9055
8963
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9097,10 +9005,10 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9097
9005
|
_ref$as = _ref.as,
|
|
9098
9006
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9099
9007
|
className = _ref.className,
|
|
9100
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9008
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
9101
9009
|
|
|
9102
9010
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9103
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9011
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
9104
9012
|
ref: ref
|
|
9105
9013
|
}, props, {
|
|
9106
9014
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9114,11 +9022,11 @@ function useTabContext(props) {
|
|
|
9114
9022
|
var activeKey = context.activeKey,
|
|
9115
9023
|
getControlledId = context.getControlledId,
|
|
9116
9024
|
getControllerId = context.getControllerId,
|
|
9117
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9025
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9118
9026
|
|
|
9119
9027
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9120
9028
|
var key = makeEventKey(props.eventKey);
|
|
9121
|
-
return _extends({}, props, {
|
|
9029
|
+
return _extends$1({}, props, {
|
|
9122
9030
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9123
9031
|
id: getControlledId(props.eventKey),
|
|
9124
9032
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9143,13 +9051,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9143
9051
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9144
9052
|
Transition = _useTabContext.transition,
|
|
9145
9053
|
_useTabContext$as = _useTabContext.as,
|
|
9146
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9147
|
-
_useTabContext.eventKey
|
|
9148
|
-
|
|
9054
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9055
|
+
_ = _useTabContext.eventKey,
|
|
9056
|
+
rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9149
9057
|
|
|
9150
9058
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9151
9059
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9152
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
9060
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9153
9061
|
ref: ref,
|
|
9154
9062
|
role: "tabpanel",
|
|
9155
9063
|
"aria-hidden": !active,
|
|
@@ -9199,7 +9107,7 @@ Tab.Container = TabContainer;
|
|
|
9199
9107
|
Tab.Content = TabContent;
|
|
9200
9108
|
Tab.Pane = TabPane;
|
|
9201
9109
|
|
|
9202
|
-
React__default.forwardRef(function (_ref, ref) {
|
|
9110
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9203
9111
|
var bsPrefix = _ref.bsPrefix,
|
|
9204
9112
|
className = _ref.className,
|
|
9205
9113
|
striped = _ref.striped,
|
|
@@ -9209,11 +9117,11 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9209
9117
|
size = _ref.size,
|
|
9210
9118
|
variant = _ref.variant,
|
|
9211
9119
|
responsive = _ref.responsive,
|
|
9212
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9120
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9213
9121
|
|
|
9214
9122
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9215
9123
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9216
|
-
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9124
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9217
9125
|
className: classes,
|
|
9218
9126
|
ref: ref
|
|
9219
9127
|
}));
|
|
@@ -9238,7 +9146,7 @@ var ToastContext = React__default.createContext({
|
|
|
9238
9146
|
onClose: function onClose() {}
|
|
9239
9147
|
});
|
|
9240
9148
|
|
|
9241
|
-
var defaultProps$
|
|
9149
|
+
var defaultProps$C = {
|
|
9242
9150
|
closeLabel: 'Close',
|
|
9243
9151
|
closeButton: true
|
|
9244
9152
|
};
|
|
@@ -9248,7 +9156,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9248
9156
|
closeButton = _ref.closeButton,
|
|
9249
9157
|
className = _ref.className,
|
|
9250
9158
|
children = _ref.children,
|
|
9251
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9159
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9252
9160
|
|
|
9253
9161
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9254
9162
|
var context = useContext(ToastContext);
|
|
@@ -9257,7 +9165,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9257
9165
|
context.onClose(e);
|
|
9258
9166
|
}
|
|
9259
9167
|
});
|
|
9260
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9168
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9261
9169
|
ref: ref
|
|
9262
9170
|
}, props, {
|
|
9263
9171
|
className: classnames(bsPrefix, className)
|
|
@@ -9269,7 +9177,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9269
9177
|
}));
|
|
9270
9178
|
});
|
|
9271
9179
|
ToastHeader.displayName = 'ToastHeader';
|
|
9272
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9180
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9273
9181
|
|
|
9274
9182
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9275
9183
|
|
|
@@ -9288,7 +9196,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9288
9196
|
_ref$autohide = _ref.autohide,
|
|
9289
9197
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9290
9198
|
onClose = _ref.onClose,
|
|
9291
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9199
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9292
9200
|
|
|
9293
9201
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9294
9202
|
// timer in case these values change.
|
|
@@ -9316,7 +9224,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9316
9224
|
};
|
|
9317
9225
|
}, [onClose]);
|
|
9318
9226
|
var hasAnimation = !!(Transition && animation);
|
|
9319
|
-
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9227
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9320
9228
|
ref: ref,
|
|
9321
9229
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9322
9230
|
role: "alert",
|
|
@@ -9336,7 +9244,7 @@ Object.assign(Toast, {
|
|
|
9336
9244
|
Header: ToastHeader
|
|
9337
9245
|
});
|
|
9338
9246
|
|
|
9339
|
-
var noop = function noop() {
|
|
9247
|
+
var noop$5 = function noop() {
|
|
9340
9248
|
return undefined;
|
|
9341
9249
|
};
|
|
9342
9250
|
|
|
@@ -9350,7 +9258,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9350
9258
|
value = _ref.value,
|
|
9351
9259
|
disabled = _ref.disabled,
|
|
9352
9260
|
inputRef = _ref.inputRef,
|
|
9353
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9261
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9354
9262
|
|
|
9355
9263
|
var _useState = useState(false),
|
|
9356
9264
|
focused = _useState[0],
|
|
@@ -9362,7 +9270,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9362
9270
|
var handleBlur = useCallback(function (e) {
|
|
9363
9271
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9364
9272
|
}, []);
|
|
9365
|
-
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9273
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9366
9274
|
ref: ref,
|
|
9367
9275
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9368
9276
|
type: undefined,
|
|
@@ -9378,12 +9286,12 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9378
9286
|
disabled: !!disabled,
|
|
9379
9287
|
onFocus: handleFocus,
|
|
9380
9288
|
onBlur: handleBlur,
|
|
9381
|
-
onChange: onChange || noop
|
|
9289
|
+
onChange: onChange || noop$5
|
|
9382
9290
|
}), children);
|
|
9383
9291
|
});
|
|
9384
9292
|
ToggleButton.displayName = 'ToggleButton';
|
|
9385
9293
|
|
|
9386
|
-
var defaultProps$
|
|
9294
|
+
var defaultProps$D = {
|
|
9387
9295
|
type: 'radio',
|
|
9388
9296
|
vertical: false
|
|
9389
9297
|
};
|
|
@@ -9396,7 +9304,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9396
9304
|
name = _useUncontrolled.name,
|
|
9397
9305
|
value = _useUncontrolled.value,
|
|
9398
9306
|
onChange = _useUncontrolled.onChange,
|
|
9399
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9307
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9400
9308
|
|
|
9401
9309
|
var getValues = function getValues() {
|
|
9402
9310
|
return value == null ? [] : [].concat(value);
|
|
@@ -9425,7 +9333,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9425
9333
|
};
|
|
9426
9334
|
|
|
9427
9335
|
!(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;
|
|
9428
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9336
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9429
9337
|
ref: ref,
|
|
9430
9338
|
toggle: true
|
|
9431
9339
|
}), map(children, function (child) {
|
|
@@ -9446,10 +9354,10 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9446
9354
|
});
|
|
9447
9355
|
}));
|
|
9448
9356
|
});
|
|
9449
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9357
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9450
9358
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9451
9359
|
|
|
9452
|
-
var defaultProps = {
|
|
9360
|
+
var defaultProps$E = {
|
|
9453
9361
|
placement: 'right'
|
|
9454
9362
|
};
|
|
9455
9363
|
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -9458,32 +9366,32 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9458
9366
|
className = _ref.className,
|
|
9459
9367
|
style = _ref.style,
|
|
9460
9368
|
children = _ref.children,
|
|
9461
|
-
arrowProps = _ref.arrowProps
|
|
9462
|
-
_ref.popper
|
|
9463
|
-
_ref.show
|
|
9464
|
-
|
|
9369
|
+
arrowProps = _ref.arrowProps,
|
|
9370
|
+
_ = _ref.popper,
|
|
9371
|
+
_2 = _ref.show,
|
|
9372
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9465
9373
|
|
|
9466
9374
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9467
9375
|
|
|
9468
9376
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9469
9377
|
primaryPlacement = _ref2[0];
|
|
9470
9378
|
|
|
9471
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9379
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9472
9380
|
ref: ref,
|
|
9473
9381
|
style: style,
|
|
9474
9382
|
role: "tooltip",
|
|
9475
9383
|
"x-placement": primaryPlacement,
|
|
9476
9384
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9477
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9385
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9478
9386
|
className: "arrow"
|
|
9479
9387
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9480
9388
|
className: bsPrefix + "-inner"
|
|
9481
9389
|
}, children));
|
|
9482
9390
|
});
|
|
9483
|
-
Tooltip.defaultProps = defaultProps;
|
|
9391
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9484
9392
|
Tooltip.displayName = 'Tooltip';
|
|
9485
9393
|
|
|
9486
|
-
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";
|
|
9394
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9487
9395
|
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" };
|
|
9488
9396
|
styleInject(css);
|
|
9489
9397
|
|
|
@@ -9570,11 +9478,11 @@ var Filter = function Filter(_ref) {
|
|
|
9570
9478
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9571
9479
|
grandChildData = _useState6[0],
|
|
9572
9480
|
setGrandChildData = _useState6[1];
|
|
9573
|
-
/*
|
|
9574
|
-
{parent: showAll,
|
|
9575
|
-
chidlren: show selected from parent,
|
|
9576
|
-
grandchildren: show selected from children
|
|
9577
|
-
}
|
|
9481
|
+
/*
|
|
9482
|
+
{parent: showAll,
|
|
9483
|
+
chidlren: show selected from parent,
|
|
9484
|
+
grandchildren: show selected from children
|
|
9485
|
+
}
|
|
9578
9486
|
*/
|
|
9579
9487
|
|
|
9580
9488
|
|
|
@@ -9589,7 +9497,7 @@ var Filter = function Filter(_ref) {
|
|
|
9589
9497
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9590
9498
|
if (type === 'parent') {
|
|
9591
9499
|
setParentData(function (prevState) {
|
|
9592
|
-
return _extends$
|
|
9500
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null });
|
|
9593
9501
|
});
|
|
9594
9502
|
if (group && group.children && group.children.length > 0) {
|
|
9595
9503
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9603,7 +9511,7 @@ var Filter = function Filter(_ref) {
|
|
|
9603
9511
|
}
|
|
9604
9512
|
if (type === 'child') {
|
|
9605
9513
|
setChildData(function (prevState) {
|
|
9606
|
-
return _extends$
|
|
9514
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9607
9515
|
});
|
|
9608
9516
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9609
9517
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9622,7 +9530,7 @@ var Filter = function Filter(_ref) {
|
|
|
9622
9530
|
}
|
|
9623
9531
|
if (type === 'grandchild') {
|
|
9624
9532
|
setGrandChildData(function (prevState) {
|
|
9625
|
-
return _extends$
|
|
9533
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9626
9534
|
});
|
|
9627
9535
|
//handle filter
|
|
9628
9536
|
if (!group._id) {
|
|
@@ -9645,7 +9553,7 @@ var Filter = function Filter(_ref) {
|
|
|
9645
9553
|
DropdownButton,
|
|
9646
9554
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9647
9555
|
React__default.createElement(
|
|
9648
|
-
Dropdown.Item,
|
|
9556
|
+
Dropdown$1.Item,
|
|
9649
9557
|
{ onSelect: function onSelect() {
|
|
9650
9558
|
return handleFilterSelect({}, 'parent');
|
|
9651
9559
|
} },
|
|
@@ -9654,7 +9562,7 @@ var Filter = function Filter(_ref) {
|
|
|
9654
9562
|
parentData.data.map(function (docGroup) {
|
|
9655
9563
|
if (!docGroup._id) return null;
|
|
9656
9564
|
return React__default.createElement(
|
|
9657
|
-
Dropdown.Item,
|
|
9565
|
+
Dropdown$1.Item,
|
|
9658
9566
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9659
9567
|
return handleFilterSelect(docGroup, 'parent');
|
|
9660
9568
|
} },
|
|
@@ -9666,7 +9574,7 @@ var Filter = function Filter(_ref) {
|
|
|
9666
9574
|
DropdownButton,
|
|
9667
9575
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9668
9576
|
React__default.createElement(
|
|
9669
|
-
Dropdown.Item,
|
|
9577
|
+
Dropdown$1.Item,
|
|
9670
9578
|
{ onSelect: function onSelect() {
|
|
9671
9579
|
return handleFilterSelect({}, 'child');
|
|
9672
9580
|
} },
|
|
@@ -9675,7 +9583,7 @@ var Filter = function Filter(_ref) {
|
|
|
9675
9583
|
childData.data.map(function (docGroup) {
|
|
9676
9584
|
if (!docGroup._id) return null;
|
|
9677
9585
|
return React__default.createElement(
|
|
9678
|
-
Dropdown.Item,
|
|
9586
|
+
Dropdown$1.Item,
|
|
9679
9587
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9680
9588
|
return handleFilterSelect(docGroup, 'child');
|
|
9681
9589
|
} },
|
|
@@ -9687,7 +9595,7 @@ var Filter = function Filter(_ref) {
|
|
|
9687
9595
|
DropdownButton,
|
|
9688
9596
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9689
9597
|
React__default.createElement(
|
|
9690
|
-
Dropdown.Item,
|
|
9598
|
+
Dropdown$1.Item,
|
|
9691
9599
|
{ onSelect: function onSelect() {
|
|
9692
9600
|
return handleFilterSelect({}, 'grandchild');
|
|
9693
9601
|
} },
|
|
@@ -9696,7 +9604,7 @@ var Filter = function Filter(_ref) {
|
|
|
9696
9604
|
grandChildData.data.map(function (docGroup) {
|
|
9697
9605
|
if (!docGroup._id) return null;
|
|
9698
9606
|
return React__default.createElement(
|
|
9699
|
-
Dropdown.Item,
|
|
9607
|
+
Dropdown$1.Item,
|
|
9700
9608
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9701
9609
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9702
9610
|
} },
|
|
@@ -9752,7 +9660,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9752
9660
|
while (1) {
|
|
9753
9661
|
switch (_context.prev = _context.next) {
|
|
9754
9662
|
case 0:
|
|
9755
|
-
newParams = _extends$
|
|
9663
|
+
newParams = _extends$2({}, params, { from: 0, to: 10 });
|
|
9756
9664
|
filterQuery = void 0;
|
|
9757
9665
|
|
|
9758
9666
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9854,12 +9762,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9854
9762
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9855
9763
|
var _ref4;
|
|
9856
9764
|
|
|
9857
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9765
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9858
9766
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9859
9767
|
while (1) {
|
|
9860
9768
|
switch (_context2.prev = _context2.next) {
|
|
9861
9769
|
case 0:
|
|
9862
|
-
urlQuery = ctx.query, pathname = ctx.pathname;
|
|
9770
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9863
9771
|
identifier = pathname.replace('/', '');
|
|
9864
9772
|
itemsPerPage = 10;
|
|
9865
9773
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|