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