@mjhls/mjh-framework 1.0.876-beta.0 → 1.0.876
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-c628363f.js → ADInfeed-b9e5ff3f.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-a827d389.js → ADlgInfeed-3cdefebd.js} +11 -10
- package/dist/cjs/AccordionPanel.js +29 -27
- package/dist/cjs/AdSlot.js +34 -33
- package/dist/cjs/AdSlotsProvider.js +18 -909
- package/dist/cjs/AlgoliaSearch.js +1392 -1274
- 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 -40
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +309 -267
- 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-36e54d77.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 -87
- 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 +143 -138
- 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 +28 -27
- package/dist/cjs/IssueContentDeck.js +76 -71
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +94 -91
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +79 -78
- package/dist/cjs/MediaSeriesLanding.js +1118 -1127
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +150 -145
- 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 +116 -3914
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -38
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +70 -65
- package/dist/cjs/PublicationLanding.js +137 -133
- package/dist/cjs/QueueDeckExpanded.js +1172 -1052
- package/dist/cjs/RecentNews.js +22 -21
- 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-ce3261cb.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-5ec44406.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 +28 -27
- 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 -49
- package/dist/cjs/VideoSeriesListing.js +77 -76
- package/dist/cjs/View.js +268 -265
- 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/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -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 +18 -18
- 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/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-cdacba23.js → index-6a2a3e03.js} +1089 -1063
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-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-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +170 -164
- 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-025fdc78.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-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-6f784d85.js} +1 -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 +7 -7
- package/dist/esm/AD300x250.js +25 -25
- package/dist/esm/AD300x250x600.js +25 -25
- package/dist/esm/AD728x90.js +28 -28
- package/dist/esm/ADFloatingFooter.js +27 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +27 -27
- package/dist/esm/{ADInfeed-35a2a91f.js → ADInfeed-6c6093ae.js} +11 -11
- package/dist/esm/ADSkyscraper.js +27 -27
- package/dist/esm/ADSponsoredResources.js +27 -27
- package/dist/esm/ADWebcast.js +27 -27
- package/dist/esm/ADWelcome.js +28 -28
- package/dist/esm/{ADlgInfeed-fd34a881.js → ADlgInfeed-5d7386e8.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +25 -25
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +820 -703
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +659 -1487
- package/dist/esm/AuthWrapper.js +306 -265
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-46a745ba.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-52cf21c5.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -77
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +28 -28
- package/dist/esm/Column3.js +54 -54
- package/dist/esm/ConferenceArticleCard.js +38 -38
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +96 -96
- package/dist/esm/DeckQueue.js +82 -82
- package/dist/esm/{Dfp-f867d061.js → Dfp-4ca12f2e.js} +20 -20
- package/dist/esm/EventsDeck.js +127 -127
- package/dist/esm/ExternalResources.js +72 -72
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +199 -199
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -68
- package/dist/esm/HorizontalHero.js +25 -25
- package/dist/esm/IssueContentDeck.js +59 -59
- package/dist/esm/IssueDeck.js +63 -63
- package/dist/esm/IssueLanding.js +90 -88
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +75 -75
- package/dist/esm/MediaSeriesLanding.js +839 -851
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +114 -114
- package/dist/esm/OncliveHero.js +19 -20
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/PartnerDetailListing.js +112 -3910
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +37 -35
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +56 -56
- package/dist/esm/PublicationLanding.js +120 -120
- package/dist/esm/QueueDeckExpanded.js +1165 -1045
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +51 -51
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +30 -30
- package/dist/esm/{SeriesSlider-d555a1d2.js → SeriesSlider-485f514e.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-d240935c.js → SocialSearchComponent-a5b11613.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -56
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +68 -68
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +65 -65
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +40 -40
- package/dist/esm/VideoSeriesListing.js +72 -72
- package/dist/esm/View.js +246 -247
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +52 -52
- package/dist/esm/{_is-array-4df618a6.js → _is-array-893ab020.js} +6 -6
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-f089461c.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-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-50a6b9a3.js} +2 -2
- package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-b4dfe691.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-e903ff31.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-6d26cb48.js → define-property-99e66838.js} +6 -6
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8fa0bc8d.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-5b1796d4.js → extends-dc6a71fd.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 +12 -12
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-ff2c9409.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-604589b2.js → index-5bbd1562.js} +1037 -1021
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +140 -137
- package/dist/esm/{inherits-2409637d.js → inherits-8a801a18.js} +18 -18
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-69989821.js → keys-425c8ab0.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-b5c5aac1.js +961 -0
- package/dist/esm/{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-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-ca2c8b8d.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-c21932b3.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-7b1c0e23.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-c05a82ba.js → typeof-83d9eb10.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-fdf034f5.js} +2 -2
- package/package.json +111 -112
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-70b72959.js +0 -15
|
@@ -1,71 +1,71 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-8fa0bc8d.js';
|
|
2
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
3
|
+
import { _ as _typeof } from './typeof-83d9eb10.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-dc6a71fd.js';
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
6
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
|
+
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-67e1773f.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import ReactDOM from 'react-dom';
|
|
1
10
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import '
|
|
11
|
+
import Link from 'next/link';
|
|
12
|
+
import MasterDeck from './MasterDeck.js';
|
|
13
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
15
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
16
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
18
|
+
import { g as getSerializers } from './index-5bbd1562.js';
|
|
19
|
+
import './define-property-99e66838.js';
|
|
20
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
21
|
+
import './web.dom.iterable-fdf034f5.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-f089461c.js';
|
|
24
|
+
import './_is-array-893ab020.js';
|
|
25
|
+
import './_object-pie-133f504a.js';
|
|
26
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
27
|
+
import './inherits-8a801a18.js';
|
|
28
|
+
import './_object-sap-169d6272.js';
|
|
29
|
+
import './index-2446af28.js';
|
|
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
|
|
29
|
-
import './visibility-sensor-
|
|
30
|
-
import
|
|
31
|
-
import './
|
|
32
|
-
import urlFor from './urlFor.js';
|
|
33
|
-
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
34
|
-
import './main-e4a934b2.js';
|
|
35
|
-
import './entities-7cc3bf45.js';
|
|
36
|
-
import './stringify-70b72959.js';
|
|
37
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
38
|
-
import './Segment.js';
|
|
39
|
-
import './Beam.js';
|
|
36
|
+
import './lodash-f97fd99a.js';
|
|
37
|
+
import './debounce-533d9748.js';
|
|
38
|
+
import './isSymbol-a7e9aafe.js';
|
|
39
|
+
import './toNumber-5aeba6e7.js';
|
|
40
|
+
import './index.es-c6222053.js';
|
|
41
|
+
import './visibility-sensor-f40c2564.js';
|
|
42
|
+
import './index-0dbff1d1.js';
|
|
43
|
+
import './ADlgInfeed-5d7386e8.js';
|
|
40
44
|
import './AdSlot.js';
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import '
|
|
45
|
-
import
|
|
45
|
+
import './Beam.js';
|
|
46
|
+
import './stringify-c21932b3.js';
|
|
47
|
+
import './Segment.js';
|
|
48
|
+
import './main-b5c5aac1.js';
|
|
49
|
+
import './ADInfeed-6c6093ae.js';
|
|
50
|
+
import 'react-bootstrap';
|
|
46
51
|
import './index-c7e2ac95.js';
|
|
47
|
-
import './
|
|
52
|
+
import './util-3ab476bf.js';
|
|
53
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
48
54
|
import './GroupDeck.js';
|
|
49
|
-
import '
|
|
50
|
-
import './
|
|
51
|
-
import './index.esm-29e48d38.js';
|
|
52
|
-
import { g as getSerializers } from './index-604589b2.js';
|
|
53
|
-
import './util-7700fc59.js';
|
|
54
|
-
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
55
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
56
|
+
import './SocialShare.js';
|
|
55
57
|
import 'next/head';
|
|
56
58
|
import 'react-share';
|
|
57
|
-
import './
|
|
58
|
-
import './_object-to-array-c54dd835.js';
|
|
59
|
+
import './_object-to-array-50a6b9a3.js';
|
|
59
60
|
import 'react-bootstrap/Pagination';
|
|
61
|
+
import 'react-bootstrap/Button';
|
|
62
|
+
import './entities-932b50cf.js';
|
|
63
|
+
import './index.esm-3fdda599.js';
|
|
64
|
+
import './iconBase-602d52fe.js';
|
|
60
65
|
import 'react-bootstrap/Figure';
|
|
61
66
|
import 'react-bootstrap/OverlayTrigger';
|
|
62
67
|
import 'react-bootstrap/Tooltip';
|
|
63
68
|
import 'react-bootstrap/Popover';
|
|
64
|
-
import MasterDeck from './MasterDeck.js';
|
|
65
|
-
import { _ as _defineProperty } from './defineProperty-d7d9b577.js';
|
|
66
|
-
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
67
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
68
|
-
import Link from 'next/link';
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -160,7 +160,7 @@ function useUncontrolled(props, config) {
|
|
|
160
160
|
var _ref = result,
|
|
161
161
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
162
162
|
propsValue = _ref[fieldName],
|
|
163
|
-
rest = _objectWithoutPropertiesLoose
|
|
163
|
+
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
164
164
|
|
|
165
165
|
var handlerName = config[fieldName];
|
|
166
166
|
|
|
@@ -168,26 +168,26 @@ function useUncontrolled(props, config) {
|
|
|
168
168
|
value = _useUncontrolledProp[0],
|
|
169
169
|
handler = _useUncontrolledProp[1];
|
|
170
170
|
|
|
171
|
-
return _extends
|
|
171
|
+
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
172
172
|
}, props);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
function _inheritsLoose(subClass, superClass) {
|
|
176
176
|
subClass.prototype = Object.create(superClass.prototype);
|
|
177
177
|
subClass.prototype.constructor = subClass;
|
|
178
|
-
subClass
|
|
178
|
+
_setPrototypeOf(subClass, superClass);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
var ThemeContext =
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
var ThemeContext = React.createContext({});
|
|
182
|
+
ThemeContext.Consumer;
|
|
183
|
+
ThemeContext.Provider;
|
|
184
184
|
|
|
185
185
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
186
186
|
var prefixes = useContext(ThemeContext);
|
|
187
187
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
var SelectableContext =
|
|
190
|
+
var SelectableContext = React.createContext(null);
|
|
191
191
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
192
192
|
if (href === void 0) {
|
|
193
193
|
href = null;
|
|
@@ -197,11 +197,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
197
197
|
return href || null;
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
var context =
|
|
201
|
-
context.displayName = 'AccordionContext';
|
|
200
|
+
var context$2 = React.createContext(null);
|
|
201
|
+
context$2.displayName = 'AccordionContext';
|
|
202
202
|
|
|
203
203
|
function useAccordionToggle(eventKey, onClick) {
|
|
204
|
-
var contextEventKey = useContext(context);
|
|
204
|
+
var contextEventKey = useContext(context$2);
|
|
205
205
|
var onSelect = useContext(SelectableContext);
|
|
206
206
|
return function (e) {
|
|
207
207
|
/*
|
|
@@ -213,13 +213,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
213
213
|
if (onClick) onClick(e);
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
var AccordionToggle =
|
|
216
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
217
217
|
var _ref$as = _ref.as,
|
|
218
218
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
219
219
|
children = _ref.children,
|
|
220
220
|
eventKey = _ref.eventKey,
|
|
221
221
|
onClick = _ref.onClick,
|
|
222
|
-
props = _objectWithoutPropertiesLoose
|
|
222
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
223
223
|
|
|
224
224
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
225
225
|
|
|
@@ -227,22 +227,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
227
227
|
props.type = 'button';
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
return /*#__PURE__*/
|
|
230
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
231
231
|
ref: ref,
|
|
232
232
|
onClick: accordionOnClick
|
|
233
233
|
}, props), children);
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
function ownerDocument(node) {
|
|
236
|
+
function ownerDocument$1(node) {
|
|
237
237
|
return node && node.ownerDocument || document;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
function ownerWindow(node) {
|
|
241
|
-
var doc = ownerDocument(node);
|
|
241
|
+
var doc = ownerDocument$1(node);
|
|
242
242
|
return doc && doc.defaultView || window;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
function getComputedStyle$
|
|
245
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
246
246
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
247
247
|
}
|
|
248
248
|
|
|
@@ -271,7 +271,7 @@ function style(node, property) {
|
|
|
271
271
|
var transforms = '';
|
|
272
272
|
|
|
273
273
|
if (typeof property === 'string') {
|
|
274
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
274
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
Object.keys(property).forEach(function (key) {
|
|
@@ -411,7 +411,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
411
411
|
exit: PropTypes.number,
|
|
412
412
|
appear: PropTypes.number
|
|
413
413
|
}).isRequired]) : null;
|
|
414
|
-
|
|
414
|
+
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
415
415
|
enter: PropTypes.string,
|
|
416
416
|
exit: PropTypes.string,
|
|
417
417
|
active: PropTypes.string
|
|
@@ -424,7 +424,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
424
424
|
exitActive: PropTypes.string
|
|
425
425
|
})]) : null;
|
|
426
426
|
|
|
427
|
-
var TransitionGroupContext =
|
|
427
|
+
var TransitionGroupContext = React.createContext(null);
|
|
428
428
|
|
|
429
429
|
var UNMOUNTED = 'unmounted';
|
|
430
430
|
var EXITED = 'exited';
|
|
@@ -793,35 +793,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
var _this$props = this.props,
|
|
796
|
-
children = _this$props.children
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
childProps = _objectWithoutPropertiesLoose
|
|
796
|
+
children = _this$props.children;
|
|
797
|
+
_this$props.in;
|
|
798
|
+
_this$props.mountOnEnter;
|
|
799
|
+
_this$props.unmountOnExit;
|
|
800
|
+
_this$props.appear;
|
|
801
|
+
_this$props.enter;
|
|
802
|
+
_this$props.exit;
|
|
803
|
+
_this$props.timeout;
|
|
804
|
+
_this$props.addEndListener;
|
|
805
|
+
_this$props.onEnter;
|
|
806
|
+
_this$props.onEntering;
|
|
807
|
+
_this$props.onEntered;
|
|
808
|
+
_this$props.onExit;
|
|
809
|
+
_this$props.onExiting;
|
|
810
|
+
_this$props.onExited;
|
|
811
|
+
_this$props.nodeRef;
|
|
812
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
813
813
|
|
|
814
814
|
return (
|
|
815
815
|
/*#__PURE__*/
|
|
816
816
|
// allows for nested Transitions
|
|
817
|
-
|
|
817
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
818
818
|
value: null
|
|
819
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
819
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
820
820
|
);
|
|
821
821
|
};
|
|
822
822
|
|
|
823
823
|
return Transition;
|
|
824
|
-
}(
|
|
824
|
+
}(React.Component);
|
|
825
825
|
|
|
826
826
|
Transition.contextType = TransitionGroupContext;
|
|
827
827
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1009,7 +1009,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1009
1009
|
onExited: PropTypes.func
|
|
1010
1010
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1011
1011
|
|
|
1012
|
-
function noop() {}
|
|
1012
|
+
function noop$5() {}
|
|
1013
1013
|
|
|
1014
1014
|
Transition.defaultProps = {
|
|
1015
1015
|
in: false,
|
|
@@ -1018,12 +1018,12 @@ Transition.defaultProps = {
|
|
|
1018
1018
|
appear: false,
|
|
1019
1019
|
enter: true,
|
|
1020
1020
|
exit: true,
|
|
1021
|
-
onEnter: noop,
|
|
1022
|
-
onEntering: noop,
|
|
1023
|
-
onEntered: noop,
|
|
1024
|
-
onExit: noop,
|
|
1025
|
-
onExiting: noop,
|
|
1026
|
-
onExited: noop
|
|
1021
|
+
onEnter: noop$5,
|
|
1022
|
+
onEntering: noop$5,
|
|
1023
|
+
onEntered: noop$5,
|
|
1024
|
+
onExit: noop$5,
|
|
1025
|
+
onExiting: noop$5,
|
|
1026
|
+
onExited: noop$5
|
|
1027
1027
|
};
|
|
1028
1028
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1029
1029
|
Transition.EXITED = EXITED;
|
|
@@ -1089,7 +1089,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
1091
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1092
|
-
var defaultProps = {
|
|
1092
|
+
var defaultProps$E = {
|
|
1093
1093
|
in: false,
|
|
1094
1094
|
timeout: 300,
|
|
1095
1095
|
mountOnEnter: false,
|
|
@@ -1097,7 +1097,7 @@ var defaultProps = {
|
|
|
1097
1097
|
appear: false,
|
|
1098
1098
|
getDimensionValue: getDefaultDimensionValue
|
|
1099
1099
|
};
|
|
1100
|
-
var Collapse =
|
|
1100
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1101
1101
|
var onEnter = _ref.onEnter,
|
|
1102
1102
|
onEntering = _ref.onEntering,
|
|
1103
1103
|
onEntered = _ref.onEntered,
|
|
@@ -1109,7 +1109,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1109
1109
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1110
1110
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1111
1111
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1112
|
-
props = _objectWithoutPropertiesLoose
|
|
1112
|
+
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1113
1113
|
|
|
1114
1114
|
/* Compute dimension */
|
|
1115
1115
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1144,8 +1144,8 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1144
1144
|
elem.style[computedDimension] = null;
|
|
1145
1145
|
}, onExiting);
|
|
1146
1146
|
}, [computedDimension, onExiting]);
|
|
1147
|
-
return /*#__PURE__*/
|
|
1148
|
-
, _extends
|
|
1147
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1148
|
+
, _extends({
|
|
1149
1149
|
ref: ref,
|
|
1150
1150
|
addEndListener: transitionEnd
|
|
1151
1151
|
}, props, {
|
|
@@ -1156,33 +1156,33 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1156
1156
|
onExit: handleExit,
|
|
1157
1157
|
onExiting: handleExiting
|
|
1158
1158
|
}), function (state, innerProps) {
|
|
1159
|
-
return
|
|
1159
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1160
1160
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1161
1161
|
}));
|
|
1162
1162
|
});
|
|
1163
1163
|
}); // @ts-ignore
|
|
1164
1164
|
|
|
1165
1165
|
// @ts-ignore
|
|
1166
|
-
Collapse.defaultProps = defaultProps;
|
|
1166
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1167
1167
|
|
|
1168
|
-
var AccordionCollapse =
|
|
1168
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1169
1169
|
var children = _ref.children,
|
|
1170
1170
|
eventKey = _ref.eventKey,
|
|
1171
|
-
props = _objectWithoutPropertiesLoose
|
|
1171
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1172
1172
|
|
|
1173
|
-
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1173
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1174
1174
|
// from collapsing the accordion when clicked.
|
|
1175
1175
|
|
|
1176
|
-
return /*#__PURE__*/
|
|
1176
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1177
1177
|
value: null
|
|
1178
|
-
}, /*#__PURE__*/
|
|
1178
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1179
1179
|
ref: ref,
|
|
1180
1180
|
in: contextEventKey === eventKey
|
|
1181
|
-
}, props), /*#__PURE__*/
|
|
1181
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1182
1182
|
});
|
|
1183
1183
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1184
1184
|
|
|
1185
|
-
var Accordion =
|
|
1185
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1186
1186
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1187
1187
|
activeKey: 'onSelect'
|
|
1188
1188
|
}),
|
|
@@ -1193,14 +1193,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1193
1193
|
children = _useUncontrolled.children,
|
|
1194
1194
|
className = _useUncontrolled.className,
|
|
1195
1195
|
onSelect = _useUncontrolled.onSelect,
|
|
1196
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
1196
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1197
1197
|
|
|
1198
1198
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1199
|
-
return /*#__PURE__*/
|
|
1199
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
1200
1200
|
value: activeKey || null
|
|
1201
|
-
}, /*#__PURE__*/
|
|
1201
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1202
1202
|
value: onSelect || null
|
|
1203
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1204
1204
|
ref: ref
|
|
1205
1205
|
}, controlledProps, {
|
|
1206
1206
|
className: finalClassName
|
|
@@ -1236,7 +1236,7 @@ function useEventCallback(fn) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
1238
|
var _fadeStyles;
|
|
1239
|
-
var defaultProps$
|
|
1239
|
+
var defaultProps$D = {
|
|
1240
1240
|
in: false,
|
|
1241
1241
|
timeout: 300,
|
|
1242
1242
|
mountOnEnter: false,
|
|
@@ -1244,60 +1244,60 @@ var defaultProps$1 = {
|
|
|
1244
1244
|
appear: false
|
|
1245
1245
|
};
|
|
1246
1246
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1247
|
-
var Fade =
|
|
1247
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1248
1248
|
var className = _ref.className,
|
|
1249
1249
|
children = _ref.children,
|
|
1250
|
-
props = _objectWithoutPropertiesLoose
|
|
1250
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1251
1251
|
|
|
1252
1252
|
var handleEnter = useCallback(function (node) {
|
|
1253
1253
|
triggerBrowserReflow(node);
|
|
1254
1254
|
if (props.onEnter) props.onEnter(node);
|
|
1255
1255
|
}, [props]);
|
|
1256
|
-
return /*#__PURE__*/
|
|
1256
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1257
1257
|
ref: ref,
|
|
1258
1258
|
addEndListener: transitionEnd
|
|
1259
1259
|
}, props, {
|
|
1260
1260
|
onEnter: handleEnter
|
|
1261
1261
|
}), function (status, innerProps) {
|
|
1262
|
-
return
|
|
1262
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1263
1263
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1264
1264
|
}));
|
|
1265
1265
|
});
|
|
1266
1266
|
});
|
|
1267
|
-
Fade.defaultProps = defaultProps$
|
|
1267
|
+
Fade.defaultProps = defaultProps$D;
|
|
1268
1268
|
Fade.displayName = 'Fade';
|
|
1269
1269
|
|
|
1270
|
-
var propTypes = {
|
|
1270
|
+
var propTypes$a = {
|
|
1271
1271
|
label: PropTypes.string.isRequired,
|
|
1272
1272
|
onClick: PropTypes.func
|
|
1273
1273
|
};
|
|
1274
|
-
var defaultProps$
|
|
1274
|
+
var defaultProps$C = {
|
|
1275
1275
|
label: 'Close'
|
|
1276
1276
|
};
|
|
1277
|
-
var CloseButton =
|
|
1277
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1278
1278
|
var label = _ref.label,
|
|
1279
1279
|
onClick = _ref.onClick,
|
|
1280
1280
|
className = _ref.className,
|
|
1281
|
-
props = _objectWithoutPropertiesLoose
|
|
1281
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1282
1282
|
|
|
1283
|
-
return /*#__PURE__*/
|
|
1283
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1284
1284
|
ref: ref,
|
|
1285
1285
|
type: "button",
|
|
1286
1286
|
className: classnames('close', className),
|
|
1287
1287
|
onClick: onClick
|
|
1288
|
-
}, props), /*#__PURE__*/
|
|
1288
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1289
1289
|
"aria-hidden": "true"
|
|
1290
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1290
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1291
1291
|
className: "sr-only"
|
|
1292
1292
|
}, label));
|
|
1293
1293
|
});
|
|
1294
1294
|
CloseButton.displayName = 'CloseButton';
|
|
1295
|
-
CloseButton.propTypes = propTypes;
|
|
1296
|
-
CloseButton.defaultProps = defaultProps$
|
|
1295
|
+
CloseButton.propTypes = propTypes$a;
|
|
1296
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1297
1297
|
|
|
1298
1298
|
var divWithClassName = (function (className) {
|
|
1299
|
-
return
|
|
1300
|
-
return /*#__PURE__*/
|
|
1299
|
+
return React.forwardRef(function (p, ref) {
|
|
1300
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1301
1301
|
ref: ref,
|
|
1302
1302
|
className: classnames(p.className, className)
|
|
1303
1303
|
}));
|
|
@@ -1323,15 +1323,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1323
1323
|
Component = _ref.Component,
|
|
1324
1324
|
defaultProps = _ref.defaultProps;
|
|
1325
1325
|
|
|
1326
|
-
var BsComponent =
|
|
1326
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1327
1327
|
var className = _ref2.className,
|
|
1328
1328
|
bsPrefix = _ref2.bsPrefix,
|
|
1329
1329
|
_ref2$as = _ref2.as,
|
|
1330
1330
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1331
|
-
props = _objectWithoutPropertiesLoose
|
|
1331
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1332
1332
|
|
|
1333
1333
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1334
|
-
return /*#__PURE__*/
|
|
1334
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1335
1335
|
ref: ref,
|
|
1336
1336
|
className: classnames(className, resolvedPrefix)
|
|
1337
1337
|
}, props));
|
|
@@ -1353,12 +1353,12 @@ function isTrivialHref(href) {
|
|
|
1353
1353
|
*/
|
|
1354
1354
|
|
|
1355
1355
|
|
|
1356
|
-
var SafeAnchor =
|
|
1356
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1357
1357
|
var _ref$as = _ref.as,
|
|
1358
1358
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1359
1359
|
disabled = _ref.disabled,
|
|
1360
1360
|
onKeyDown = _ref.onKeyDown,
|
|
1361
|
-
props = _objectWithoutPropertiesLoose
|
|
1361
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1362
1362
|
|
|
1363
1363
|
var handleClick = function handleClick(event) {
|
|
1364
1364
|
var href = props.href,
|
|
@@ -1397,7 +1397,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1397
1397
|
props['aria-disabled'] = true;
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
|
-
return /*#__PURE__*/
|
|
1400
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1401
1401
|
ref: ref
|
|
1402
1402
|
}, props, {
|
|
1403
1403
|
onClick: handleClick,
|
|
@@ -1406,20 +1406,20 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1406
1406
|
});
|
|
1407
1407
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1408
1408
|
|
|
1409
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1410
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1409
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1410
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1411
1411
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1412
|
-
Component: DivStyledAsH4
|
|
1412
|
+
Component: DivStyledAsH4$1
|
|
1413
1413
|
});
|
|
1414
1414
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1415
1415
|
Component: SafeAnchor
|
|
1416
1416
|
});
|
|
1417
|
-
var defaultProps$
|
|
1417
|
+
var defaultProps$B = {
|
|
1418
1418
|
show: true,
|
|
1419
1419
|
transition: Fade,
|
|
1420
1420
|
closeLabel: 'Close alert'
|
|
1421
1421
|
};
|
|
1422
|
-
var Alert =
|
|
1422
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1423
1423
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1424
1424
|
show: 'onClose'
|
|
1425
1425
|
}),
|
|
@@ -1432,7 +1432,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1432
1432
|
onClose = _useUncontrolled.onClose,
|
|
1433
1433
|
dismissible = _useUncontrolled.dismissible,
|
|
1434
1434
|
transition = _useUncontrolled.transition,
|
|
1435
|
-
props = _objectWithoutPropertiesLoose
|
|
1435
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1436
1436
|
|
|
1437
1437
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1438
1438
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1441,17 +1441,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
});
|
|
1443
1443
|
var Transition = transition === true ? Fade : transition;
|
|
1444
|
-
var alert = /*#__PURE__*/
|
|
1444
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1445
1445
|
role: "alert"
|
|
1446
1446
|
}, Transition ? props : undefined, {
|
|
1447
1447
|
ref: ref,
|
|
1448
1448
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1449
|
-
}), dismissible && /*#__PURE__*/
|
|
1449
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1450
1450
|
onClick: handleClose,
|
|
1451
1451
|
label: closeLabel
|
|
1452
1452
|
}), children);
|
|
1453
1453
|
if (!Transition) return show ? alert : null;
|
|
1454
|
-
return /*#__PURE__*/
|
|
1454
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1455
1455
|
unmountOnExit: true
|
|
1456
1456
|
}, props, {
|
|
1457
1457
|
ref: undefined,
|
|
@@ -1459,37 +1459,37 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1459
1459
|
}), alert);
|
|
1460
1460
|
});
|
|
1461
1461
|
Alert.displayName = 'Alert';
|
|
1462
|
-
Alert.defaultProps = defaultProps$
|
|
1462
|
+
Alert.defaultProps = defaultProps$B;
|
|
1463
1463
|
Alert.Link = AlertLink;
|
|
1464
1464
|
Alert.Heading = AlertHeading;
|
|
1465
1465
|
|
|
1466
|
-
var defaultProps$
|
|
1466
|
+
var defaultProps$A = {
|
|
1467
1467
|
pill: false
|
|
1468
1468
|
};
|
|
1469
|
-
var Badge =
|
|
1469
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1470
1470
|
var bsPrefix = _ref.bsPrefix,
|
|
1471
1471
|
variant = _ref.variant,
|
|
1472
1472
|
pill = _ref.pill,
|
|
1473
1473
|
className = _ref.className,
|
|
1474
1474
|
_ref$as = _ref.as,
|
|
1475
1475
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1476
|
-
props = _objectWithoutPropertiesLoose
|
|
1476
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1477
1477
|
|
|
1478
1478
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1479
|
-
return /*#__PURE__*/
|
|
1479
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1480
1480
|
ref: ref
|
|
1481
1481
|
}, props, {
|
|
1482
1482
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1483
1483
|
}));
|
|
1484
1484
|
});
|
|
1485
1485
|
Badge.displayName = 'Badge';
|
|
1486
|
-
Badge.defaultProps = defaultProps$
|
|
1486
|
+
Badge.defaultProps = defaultProps$A;
|
|
1487
1487
|
|
|
1488
|
-
var defaultProps$
|
|
1488
|
+
var defaultProps$z = {
|
|
1489
1489
|
active: false,
|
|
1490
1490
|
linkProps: {}
|
|
1491
1491
|
};
|
|
1492
|
-
var BreadcrumbItem =
|
|
1492
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1493
1493
|
var bsPrefix = _ref.bsPrefix,
|
|
1494
1494
|
active = _ref.active,
|
|
1495
1495
|
children = _ref.children,
|
|
@@ -1502,30 +1502,30 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1502
1502
|
href = _ref.href,
|
|
1503
1503
|
title = _ref.title,
|
|
1504
1504
|
target = _ref.target,
|
|
1505
|
-
props = _objectWithoutPropertiesLoose
|
|
1505
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1506
1506
|
|
|
1507
1507
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1508
|
-
return /*#__PURE__*/
|
|
1508
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1509
1509
|
ref: ref
|
|
1510
1510
|
}, props, {
|
|
1511
1511
|
className: classnames(prefix, className, {
|
|
1512
1512
|
active: active
|
|
1513
1513
|
}),
|
|
1514
1514
|
"aria-current": active ? 'page' : undefined
|
|
1515
|
-
}), active ? children : /*#__PURE__*/
|
|
1515
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1516
1516
|
href: href,
|
|
1517
1517
|
title: title,
|
|
1518
1518
|
target: target
|
|
1519
1519
|
}), children));
|
|
1520
1520
|
});
|
|
1521
1521
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1522
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1522
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1523
1523
|
|
|
1524
|
-
var defaultProps$
|
|
1524
|
+
var defaultProps$y = {
|
|
1525
1525
|
label: 'breadcrumb',
|
|
1526
1526
|
listProps: {}
|
|
1527
1527
|
};
|
|
1528
|
-
var Breadcrumb =
|
|
1528
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1529
1529
|
var bsPrefix = _ref.bsPrefix,
|
|
1530
1530
|
className = _ref.className,
|
|
1531
1531
|
listProps = _ref.listProps,
|
|
@@ -1533,27 +1533,27 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1533
1533
|
label = _ref.label,
|
|
1534
1534
|
_ref$as = _ref.as,
|
|
1535
1535
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1536
|
-
props = _objectWithoutPropertiesLoose
|
|
1536
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1537
1537
|
|
|
1538
1538
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1539
|
-
return /*#__PURE__*/
|
|
1539
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1540
1540
|
"aria-label": label,
|
|
1541
1541
|
className: className,
|
|
1542
1542
|
ref: ref
|
|
1543
|
-
}, props), /*#__PURE__*/
|
|
1543
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1544
1544
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1545
1545
|
}), children));
|
|
1546
1546
|
});
|
|
1547
1547
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1548
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1548
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1549
1549
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1550
1550
|
|
|
1551
|
-
var defaultProps$
|
|
1551
|
+
var defaultProps$x = {
|
|
1552
1552
|
variant: 'primary',
|
|
1553
1553
|
active: false,
|
|
1554
1554
|
disabled: false
|
|
1555
1555
|
};
|
|
1556
|
-
var Button =
|
|
1556
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1557
1557
|
var bsPrefix = _ref.bsPrefix,
|
|
1558
1558
|
variant = _ref.variant,
|
|
1559
1559
|
size = _ref.size,
|
|
@@ -1562,13 +1562,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1562
1562
|
block = _ref.block,
|
|
1563
1563
|
type = _ref.type,
|
|
1564
1564
|
as = _ref.as,
|
|
1565
|
-
props = _objectWithoutPropertiesLoose
|
|
1565
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1566
1566
|
|
|
1567
1567
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1568
1568
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1569
1569
|
|
|
1570
1570
|
if (props.href) {
|
|
1571
|
-
return /*#__PURE__*/
|
|
1571
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1572
1572
|
as: as,
|
|
1573
1573
|
ref: ref,
|
|
1574
1574
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1586,19 +1586,19 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
1588
|
var Component = as || 'button';
|
|
1589
|
-
return /*#__PURE__*/
|
|
1589
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1590
1590
|
className: classes
|
|
1591
1591
|
}));
|
|
1592
1592
|
});
|
|
1593
1593
|
Button.displayName = 'Button';
|
|
1594
|
-
Button.defaultProps = defaultProps$
|
|
1594
|
+
Button.defaultProps = defaultProps$x;
|
|
1595
1595
|
|
|
1596
|
-
var defaultProps$
|
|
1596
|
+
var defaultProps$w = {
|
|
1597
1597
|
vertical: false,
|
|
1598
1598
|
toggle: false,
|
|
1599
1599
|
role: 'group'
|
|
1600
1600
|
};
|
|
1601
|
-
var ButtonGroup =
|
|
1601
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1602
1602
|
var bsPrefix = _ref.bsPrefix,
|
|
1603
1603
|
size = _ref.size,
|
|
1604
1604
|
toggle = _ref.toggle,
|
|
@@ -1606,59 +1606,59 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1606
1606
|
className = _ref.className,
|
|
1607
1607
|
_ref$as = _ref.as,
|
|
1608
1608
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1609
|
-
rest = _objectWithoutPropertiesLoose
|
|
1609
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1610
1610
|
|
|
1611
1611
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1612
1612
|
var baseClass = prefix;
|
|
1613
1613
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1614
|
-
return /*#__PURE__*/
|
|
1614
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1615
1615
|
ref: ref,
|
|
1616
1616
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1617
1617
|
}));
|
|
1618
1618
|
});
|
|
1619
1619
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1620
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1620
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1621
1621
|
|
|
1622
|
-
var defaultProps$
|
|
1622
|
+
var defaultProps$v = {
|
|
1623
1623
|
role: 'toolbar'
|
|
1624
1624
|
};
|
|
1625
|
-
var ButtonToolbar =
|
|
1625
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1626
1626
|
var bsPrefix = _ref.bsPrefix,
|
|
1627
1627
|
className = _ref.className,
|
|
1628
|
-
props = _objectWithoutPropertiesLoose
|
|
1628
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1629
1629
|
|
|
1630
1630
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1631
|
-
return /*#__PURE__*/
|
|
1631
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1632
1632
|
ref: ref,
|
|
1633
1633
|
className: classnames(className, prefix)
|
|
1634
1634
|
}));
|
|
1635
1635
|
});
|
|
1636
1636
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1637
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1637
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1638
1638
|
|
|
1639
|
-
var context$1 =
|
|
1639
|
+
var context$1 = React.createContext(null);
|
|
1640
1640
|
context$1.displayName = 'CardContext';
|
|
1641
1641
|
|
|
1642
|
-
var defaultProps$
|
|
1642
|
+
var defaultProps$u = {
|
|
1643
1643
|
variant: null
|
|
1644
1644
|
};
|
|
1645
|
-
var CardImg =
|
|
1645
|
+
var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1646
1646
|
function (_ref, ref) {
|
|
1647
1647
|
var bsPrefix = _ref.bsPrefix,
|
|
1648
1648
|
className = _ref.className,
|
|
1649
1649
|
variant = _ref.variant,
|
|
1650
1650
|
_ref$as = _ref.as,
|
|
1651
1651
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1652
|
-
props = _objectWithoutPropertiesLoose
|
|
1652
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1653
1653
|
|
|
1654
1654
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1655
|
-
return /*#__PURE__*/
|
|
1655
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1656
1656
|
ref: ref,
|
|
1657
1657
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1658
1658
|
}, props));
|
|
1659
1659
|
});
|
|
1660
1660
|
CardImg.displayName = 'CardImg';
|
|
1661
|
-
CardImg.defaultProps = defaultProps$
|
|
1661
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1662
1662
|
|
|
1663
1663
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1664
1664
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1678,10 +1678,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1678
1678
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1679
1679
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1680
1680
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1681
|
-
var defaultProps$
|
|
1681
|
+
var defaultProps$t = {
|
|
1682
1682
|
body: false
|
|
1683
1683
|
};
|
|
1684
|
-
var Card =
|
|
1684
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1685
1685
|
var bsPrefix = _ref.bsPrefix,
|
|
1686
1686
|
className = _ref.className,
|
|
1687
1687
|
bg = _ref.bg,
|
|
@@ -1691,7 +1691,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1691
1691
|
children = _ref.children,
|
|
1692
1692
|
_ref$as = _ref.as,
|
|
1693
1693
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1694
|
-
props = _objectWithoutPropertiesLoose
|
|
1694
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1695
1695
|
|
|
1696
1696
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1697
1697
|
var cardContext = useMemo(function () {
|
|
@@ -1699,19 +1699,19 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1699
1699
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1700
1700
|
};
|
|
1701
1701
|
}, [prefix]);
|
|
1702
|
-
return /*#__PURE__*/
|
|
1702
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1703
1703
|
value: cardContext
|
|
1704
|
-
}, /*#__PURE__*/
|
|
1704
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1705
1705
|
ref: ref
|
|
1706
1706
|
}, props, {
|
|
1707
1707
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1708
1708
|
}), body ?
|
|
1709
1709
|
/*#__PURE__*/
|
|
1710
1710
|
// @ts-ignore
|
|
1711
|
-
|
|
1711
|
+
React.createElement(CardBody, null, children) : children));
|
|
1712
1712
|
});
|
|
1713
1713
|
Card.displayName = 'Card';
|
|
1714
|
-
Card.defaultProps = defaultProps$
|
|
1714
|
+
Card.defaultProps = defaultProps$t;
|
|
1715
1715
|
Card.Img = CardImg;
|
|
1716
1716
|
Card.Title = CardTitle;
|
|
1717
1717
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1898,16 +1898,16 @@ function useTimeout() {
|
|
|
1898
1898
|
|
|
1899
1899
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1900
1900
|
|
|
1901
|
-
var CarouselItem =
|
|
1901
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1902
1902
|
var _ref$as = _ref.as,
|
|
1903
1903
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1904
1904
|
bsPrefix = _ref.bsPrefix,
|
|
1905
1905
|
children = _ref.children,
|
|
1906
1906
|
className = _ref.className,
|
|
1907
|
-
props = _objectWithoutPropertiesLoose
|
|
1907
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1908
1908
|
|
|
1909
1909
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1910
|
-
return /*#__PURE__*/
|
|
1910
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1911
1911
|
ref: ref
|
|
1912
1912
|
}, props, {
|
|
1913
1913
|
className: finalClassName
|
|
@@ -1926,8 +1926,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1926
1926
|
|
|
1927
1927
|
function map(children, func) {
|
|
1928
1928
|
var index = 0;
|
|
1929
|
-
return
|
|
1930
|
-
return
|
|
1929
|
+
return React.Children.map(children, function (child) {
|
|
1930
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1931
1931
|
});
|
|
1932
1932
|
}
|
|
1933
1933
|
/**
|
|
@@ -1940,13 +1940,13 @@ function map(children, func) {
|
|
|
1940
1940
|
|
|
1941
1941
|
function forEach(children, func) {
|
|
1942
1942
|
var index = 0;
|
|
1943
|
-
|
|
1944
|
-
if (
|
|
1943
|
+
React.Children.forEach(children, function (child) {
|
|
1944
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
1947
|
|
|
1948
1948
|
var SWIPE_THRESHOLD = 40;
|
|
1949
|
-
var propTypes$
|
|
1949
|
+
var propTypes$9 = {
|
|
1950
1950
|
/**
|
|
1951
1951
|
* @default 'carousel'
|
|
1952
1952
|
*/
|
|
@@ -2048,7 +2048,7 @@ var propTypes$1 = {
|
|
|
2048
2048
|
*/
|
|
2049
2049
|
nextLabel: PropTypes.string
|
|
2050
2050
|
};
|
|
2051
|
-
var defaultProps$
|
|
2051
|
+
var defaultProps$s = {
|
|
2052
2052
|
slide: true,
|
|
2053
2053
|
fade: false,
|
|
2054
2054
|
controls: true,
|
|
@@ -2059,12 +2059,12 @@ var defaultProps$c = {
|
|
|
2059
2059
|
pause: 'hover',
|
|
2060
2060
|
wrap: true,
|
|
2061
2061
|
touch: true,
|
|
2062
|
-
prevIcon: /*#__PURE__*/
|
|
2062
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2063
2063
|
"aria-hidden": "true",
|
|
2064
2064
|
className: "carousel-control-prev-icon"
|
|
2065
2065
|
}),
|
|
2066
2066
|
prevLabel: 'Previous',
|
|
2067
|
-
nextIcon: /*#__PURE__*/
|
|
2067
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2068
2068
|
"aria-hidden": "true",
|
|
2069
2069
|
className: "carousel-control-next-icon"
|
|
2070
2070
|
}),
|
|
@@ -2112,7 +2112,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2112
2112
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2113
2113
|
className = _useUncontrolled.className,
|
|
2114
2114
|
children = _useUncontrolled.children,
|
|
2115
|
-
props = _objectWithoutPropertiesLoose
|
|
2115
|
+
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"]);
|
|
2116
2116
|
|
|
2117
2117
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2118
2118
|
var nextDirectionRef = useRef(null);
|
|
@@ -2369,7 +2369,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2369
2369
|
};
|
|
2370
2370
|
});
|
|
2371
2371
|
}, [indicators, numChildren, onSelect]);
|
|
2372
|
-
return /*#__PURE__*/
|
|
2372
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2373
2373
|
ref: elementRef
|
|
2374
2374
|
}, props, {
|
|
2375
2375
|
onKeyDown: handleKeyDown,
|
|
@@ -2379,63 +2379,63 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2379
2379
|
onTouchMove: handleTouchMove,
|
|
2380
2380
|
onTouchEnd: handleTouchEnd,
|
|
2381
2381
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2382
|
-
}), indicators && /*#__PURE__*/
|
|
2382
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2383
2383
|
className: prefix + "-indicators"
|
|
2384
2384
|
}, map(children, function (_child, index) {
|
|
2385
|
-
return /*#__PURE__*/
|
|
2385
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2386
2386
|
key: index,
|
|
2387
2387
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2388
2388
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2389
2389
|
});
|
|
2390
|
-
})), /*#__PURE__*/
|
|
2390
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2391
2391
|
className: prefix + "-inner"
|
|
2392
2392
|
}, map(children, function (child, index) {
|
|
2393
2393
|
var isActive = index === renderedActiveIndex;
|
|
2394
|
-
return slide ? /*#__PURE__*/
|
|
2394
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2395
2395
|
in: isActive,
|
|
2396
2396
|
onEnter: isActive ? handleEnter : undefined,
|
|
2397
2397
|
onEntered: isActive ? handleEntered : undefined,
|
|
2398
2398
|
addEndListener: transitionEnd
|
|
2399
2399
|
}, function (status) {
|
|
2400
|
-
return
|
|
2400
|
+
return React.cloneElement(child, {
|
|
2401
2401
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2402
2402
|
});
|
|
2403
|
-
}) :
|
|
2403
|
+
}) : React.cloneElement(child, {
|
|
2404
2404
|
className: classnames(child.props.className, isActive && 'active')
|
|
2405
2405
|
});
|
|
2406
|
-
})), controls && /*#__PURE__*/
|
|
2406
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2407
2407
|
className: prefix + "-control-prev",
|
|
2408
2408
|
onClick: prev
|
|
2409
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2409
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2410
2410
|
className: "sr-only"
|
|
2411
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2411
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2412
2412
|
className: prefix + "-control-next",
|
|
2413
2413
|
onClick: next
|
|
2414
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2414
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2415
2415
|
className: "sr-only"
|
|
2416
2416
|
}, nextLabel))));
|
|
2417
2417
|
}
|
|
2418
2418
|
|
|
2419
|
-
var Carousel =
|
|
2419
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2420
2420
|
Carousel.displayName = 'Carousel';
|
|
2421
|
-
Carousel.propTypes = propTypes$
|
|
2422
|
-
Carousel.defaultProps = defaultProps$
|
|
2421
|
+
Carousel.propTypes = propTypes$9;
|
|
2422
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2423
2423
|
Carousel.Caption = CarouselCaption;
|
|
2424
2424
|
Carousel.Item = CarouselItem;
|
|
2425
2425
|
|
|
2426
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2427
|
-
var Col =
|
|
2426
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2427
|
+
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2428
2428
|
function (_ref, ref) {
|
|
2429
2429
|
var bsPrefix = _ref.bsPrefix,
|
|
2430
2430
|
className = _ref.className,
|
|
2431
2431
|
_ref$as = _ref.as,
|
|
2432
2432
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2433
|
-
props = _objectWithoutPropertiesLoose
|
|
2433
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2434
2434
|
|
|
2435
2435
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2436
2436
|
var spans = [];
|
|
2437
2437
|
var classes = [];
|
|
2438
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2438
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2439
2439
|
var propValue = props[brkPoint];
|
|
2440
2440
|
delete props[brkPoint];
|
|
2441
2441
|
var span;
|
|
@@ -2461,7 +2461,7 @@ function (_ref, ref) {
|
|
|
2461
2461
|
spans.push(prefix); // plain 'col'
|
|
2462
2462
|
}
|
|
2463
2463
|
|
|
2464
|
-
return /*#__PURE__*/
|
|
2464
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2465
2465
|
ref: ref,
|
|
2466
2466
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2467
2467
|
}));
|
|
@@ -2570,40 +2570,7 @@ function useForceUpdate() {
|
|
|
2570
2570
|
return dispatch;
|
|
2571
2571
|
}
|
|
2572
2572
|
|
|
2573
|
-
var DropdownContext = /*#__PURE__*/
|
|
2574
|
-
|
|
2575
|
-
function _extends() {
|
|
2576
|
-
_extends = Object.assign || function (target) {
|
|
2577
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2578
|
-
var source = arguments[i];
|
|
2579
|
-
|
|
2580
|
-
for (var key in source) {
|
|
2581
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
-
target[key] = source[key];
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
return target;
|
|
2588
|
-
};
|
|
2589
|
-
|
|
2590
|
-
return _extends.apply(this, arguments);
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2594
|
-
if (source == null) return {};
|
|
2595
|
-
var target = {};
|
|
2596
|
-
var sourceKeys = Object.keys(source);
|
|
2597
|
-
var key, i;
|
|
2598
|
-
|
|
2599
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
2600
|
-
key = sourceKeys[i];
|
|
2601
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
2602
|
-
target[key] = source[key];
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
return target;
|
|
2606
|
-
}
|
|
2573
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2607
2574
|
|
|
2608
2575
|
function useSafeState(state) {
|
|
2609
2576
|
var isMounted = useMounted();
|
|
@@ -2649,21 +2616,50 @@ function getBasePlacement(placement) {
|
|
|
2649
2616
|
return placement.split('-')[0];
|
|
2650
2617
|
}
|
|
2651
2618
|
|
|
2652
|
-
|
|
2619
|
+
function getBoundingClientRect(element) {
|
|
2620
|
+
var rect = element.getBoundingClientRect();
|
|
2621
|
+
return {
|
|
2622
|
+
width: rect.width,
|
|
2623
|
+
height: rect.height,
|
|
2624
|
+
top: rect.top,
|
|
2625
|
+
right: rect.right,
|
|
2626
|
+
bottom: rect.bottom,
|
|
2627
|
+
left: rect.left,
|
|
2628
|
+
x: rect.left,
|
|
2629
|
+
y: rect.top
|
|
2630
|
+
};
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2653
2633
|
// means it doesn't take into account transforms.
|
|
2634
|
+
|
|
2654
2635
|
function getLayoutRect(element) {
|
|
2636
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2637
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2638
|
+
|
|
2639
|
+
var width = element.offsetWidth;
|
|
2640
|
+
var height = element.offsetHeight;
|
|
2641
|
+
|
|
2642
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2643
|
+
width = clientRect.width;
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2647
|
+
height = clientRect.height;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2655
2650
|
return {
|
|
2656
2651
|
x: element.offsetLeft,
|
|
2657
2652
|
y: element.offsetTop,
|
|
2658
|
-
width:
|
|
2659
|
-
height:
|
|
2653
|
+
width: width,
|
|
2654
|
+
height: height
|
|
2660
2655
|
};
|
|
2661
2656
|
}
|
|
2662
2657
|
|
|
2663
|
-
/*:: import type { Window } from '../types'; */
|
|
2664
|
-
|
|
2665
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2666
2658
|
function getWindow(node) {
|
|
2659
|
+
if (node == null) {
|
|
2660
|
+
return window;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2667
2663
|
if (node.toString() !== '[object Window]') {
|
|
2668
2664
|
var ownerDocument = node.ownerDocument;
|
|
2669
2665
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2672,31 +2668,27 @@ function getWindow(node) {
|
|
|
2672
2668
|
return node;
|
|
2673
2669
|
}
|
|
2674
2670
|
|
|
2675
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2676
|
-
Element); */
|
|
2677
|
-
|
|
2678
2671
|
function isElement(node) {
|
|
2679
2672
|
var OwnElement = getWindow(node).Element;
|
|
2680
2673
|
return node instanceof OwnElement || node instanceof Element;
|
|
2681
2674
|
}
|
|
2682
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2683
|
-
HTMLElement); */
|
|
2684
|
-
|
|
2685
2675
|
|
|
2686
2676
|
function isHTMLElement(node) {
|
|
2687
2677
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2688
2678
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2689
2679
|
}
|
|
2690
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2691
|
-
ShadowRoot); */
|
|
2692
|
-
|
|
2693
2680
|
|
|
2694
2681
|
function isShadowRoot(node) {
|
|
2682
|
+
// IE 11 has no ShadowRoot
|
|
2683
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2684
|
+
return false;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2695
2687
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2696
2688
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2697
2689
|
}
|
|
2698
2690
|
|
|
2699
|
-
function contains(parent, child) {
|
|
2691
|
+
function contains$1(parent, child) {
|
|
2700
2692
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2701
2693
|
|
|
2702
2694
|
if (parent.contains(child)) {
|
|
@@ -2723,7 +2715,7 @@ function getNodeName(element) {
|
|
|
2723
2715
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2724
2716
|
}
|
|
2725
2717
|
|
|
2726
|
-
function getComputedStyle$
|
|
2718
|
+
function getComputedStyle$1(element) {
|
|
2727
2719
|
return getWindow(element).getComputedStyle(element);
|
|
2728
2720
|
}
|
|
2729
2721
|
|
|
@@ -2746,9 +2738,8 @@ function getParentNode(element) {
|
|
|
2746
2738
|
// $FlowFixMe[incompatible-return]
|
|
2747
2739
|
// $FlowFixMe[prop-missing]
|
|
2748
2740
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2749
|
-
element.parentNode || // DOM Element detected
|
|
2750
|
-
|
|
2751
|
-
element.host || // ShadowRoot detected
|
|
2741
|
+
element.parentNode || ( // DOM Element detected
|
|
2742
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2752
2743
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2753
2744
|
getDocumentElement(element) // fallback
|
|
2754
2745
|
|
|
@@ -2757,33 +2748,25 @@ function getParentNode(element) {
|
|
|
2757
2748
|
|
|
2758
2749
|
function getTrueOffsetParent(element) {
|
|
2759
2750
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2760
|
-
getComputedStyle$
|
|
2751
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2761
2752
|
return null;
|
|
2762
2753
|
}
|
|
2763
2754
|
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
if (offsetParent) {
|
|
2767
|
-
var html = getDocumentElement(offsetParent);
|
|
2768
|
-
|
|
2769
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2770
|
-
return html;
|
|
2771
|
-
}
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
return offsetParent;
|
|
2755
|
+
return element.offsetParent;
|
|
2775
2756
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2776
2757
|
// return the containing block
|
|
2777
2758
|
|
|
2778
2759
|
|
|
2779
2760
|
function getContainingBlock(element) {
|
|
2761
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2780
2762
|
var currentNode = getParentNode(element);
|
|
2781
2763
|
|
|
2782
2764
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2783
|
-
var css = getComputedStyle$
|
|
2765
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2784
2766
|
// create a containing block.
|
|
2767
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2785
2768
|
|
|
2786
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2769
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2787
2770
|
return currentNode;
|
|
2788
2771
|
} else {
|
|
2789
2772
|
currentNode = currentNode.parentNode;
|
|
@@ -2799,11 +2782,11 @@ function getOffsetParent(element) {
|
|
|
2799
2782
|
var window = getWindow(element);
|
|
2800
2783
|
var offsetParent = getTrueOffsetParent(element);
|
|
2801
2784
|
|
|
2802
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2785
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2803
2786
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2804
2787
|
}
|
|
2805
2788
|
|
|
2806
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2789
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2807
2790
|
return window;
|
|
2808
2791
|
}
|
|
2809
2792
|
|
|
@@ -2814,8 +2797,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2814
2797
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2815
2798
|
}
|
|
2816
2799
|
|
|
2817
|
-
|
|
2818
|
-
|
|
2800
|
+
var max = Math.max;
|
|
2801
|
+
var min = Math.min;
|
|
2802
|
+
var round = Math.round;
|
|
2803
|
+
|
|
2804
|
+
function within(min$1, value, max$1) {
|
|
2805
|
+
return max(min$1, min(value, max$1));
|
|
2819
2806
|
}
|
|
2820
2807
|
|
|
2821
2808
|
function getFreshSideObject() {
|
|
@@ -2828,7 +2815,7 @@ function getFreshSideObject() {
|
|
|
2828
2815
|
}
|
|
2829
2816
|
|
|
2830
2817
|
function mergePaddingObject(paddingObject) {
|
|
2831
|
-
return Object.assign(
|
|
2818
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2832
2819
|
}
|
|
2833
2820
|
|
|
2834
2821
|
function expandToHashMap(value, keys) {
|
|
@@ -2838,11 +2825,19 @@ function expandToHashMap(value, keys) {
|
|
|
2838
2825
|
}, {});
|
|
2839
2826
|
}
|
|
2840
2827
|
|
|
2828
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2829
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2830
|
+
placement: state.placement
|
|
2831
|
+
})) : padding;
|
|
2832
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2841
2835
|
function arrow(_ref) {
|
|
2842
2836
|
var _state$modifiersData$;
|
|
2843
2837
|
|
|
2844
2838
|
var state = _ref.state,
|
|
2845
|
-
name = _ref.name
|
|
2839
|
+
name = _ref.name,
|
|
2840
|
+
options = _ref.options;
|
|
2846
2841
|
var arrowElement = state.elements.arrow;
|
|
2847
2842
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2848
2843
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2854,7 +2849,7 @@ function arrow(_ref) {
|
|
|
2854
2849
|
return;
|
|
2855
2850
|
}
|
|
2856
2851
|
|
|
2857
|
-
var paddingObject =
|
|
2852
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2858
2853
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2859
2854
|
var minProp = axis === 'y' ? top : left;
|
|
2860
2855
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2874,14 +2869,11 @@ function arrow(_ref) {
|
|
|
2874
2869
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2875
2870
|
}
|
|
2876
2871
|
|
|
2877
|
-
function effect(_ref2) {
|
|
2872
|
+
function effect$1(_ref2) {
|
|
2878
2873
|
var state = _ref2.state,
|
|
2879
|
-
options = _ref2.options
|
|
2880
|
-
name = _ref2.name;
|
|
2874
|
+
options = _ref2.options;
|
|
2881
2875
|
var _options$element = options.element,
|
|
2882
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2883
|
-
_options$padding = options.padding,
|
|
2884
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2876
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2885
2877
|
|
|
2886
2878
|
if (arrowElement == null) {
|
|
2887
2879
|
return;
|
|
@@ -2902,7 +2894,7 @@ function effect(_ref2) {
|
|
|
2902
2894
|
}
|
|
2903
2895
|
}
|
|
2904
2896
|
|
|
2905
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2897
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2906
2898
|
if (process.env.NODE_ENV !== "production") {
|
|
2907
2899
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2908
2900
|
}
|
|
@@ -2911,9 +2903,6 @@ function effect(_ref2) {
|
|
|
2911
2903
|
}
|
|
2912
2904
|
|
|
2913
2905
|
state.elements.arrow = arrowElement;
|
|
2914
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2915
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2916
|
-
};
|
|
2917
2906
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2918
2907
|
|
|
2919
2908
|
|
|
@@ -2922,7 +2911,7 @@ var arrow$1 = {
|
|
|
2922
2911
|
enabled: true,
|
|
2923
2912
|
phase: 'main',
|
|
2924
2913
|
fn: arrow,
|
|
2925
|
-
effect: effect,
|
|
2914
|
+
effect: effect$1,
|
|
2926
2915
|
requires: ['popperOffsets'],
|
|
2927
2916
|
requiresIfExists: ['preventOverflow']
|
|
2928
2917
|
};
|
|
@@ -2942,8 +2931,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2942
2931
|
var win = window;
|
|
2943
2932
|
var dpr = win.devicePixelRatio || 1;
|
|
2944
2933
|
return {
|
|
2945
|
-
x:
|
|
2946
|
-
y:
|
|
2934
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
2935
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2947
2936
|
};
|
|
2948
2937
|
}
|
|
2949
2938
|
|
|
@@ -2959,7 +2948,7 @@ function mapToStyles(_ref2) {
|
|
|
2959
2948
|
adaptive = _ref2.adaptive,
|
|
2960
2949
|
roundOffsets = _ref2.roundOffsets;
|
|
2961
2950
|
|
|
2962
|
-
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2951
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2963
2952
|
_ref3$x = _ref3.x,
|
|
2964
2953
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2965
2954
|
_ref3$y = _ref3.y,
|
|
@@ -2973,23 +2962,32 @@ function mapToStyles(_ref2) {
|
|
|
2973
2962
|
|
|
2974
2963
|
if (adaptive) {
|
|
2975
2964
|
var offsetParent = getOffsetParent(popper);
|
|
2965
|
+
var heightProp = 'clientHeight';
|
|
2966
|
+
var widthProp = 'clientWidth';
|
|
2976
2967
|
|
|
2977
2968
|
if (offsetParent === getWindow(popper)) {
|
|
2978
2969
|
offsetParent = getDocumentElement(popper);
|
|
2970
|
+
|
|
2971
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
2972
|
+
heightProp = 'scrollHeight';
|
|
2973
|
+
widthProp = 'scrollWidth';
|
|
2974
|
+
}
|
|
2979
2975
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2980
2976
|
|
|
2981
|
-
/*:: offsetParent = (offsetParent: Element); */
|
|
2982
2977
|
|
|
2978
|
+
offsetParent = offsetParent;
|
|
2983
2979
|
|
|
2984
2980
|
if (placement === top) {
|
|
2985
|
-
sideY = bottom;
|
|
2986
|
-
|
|
2981
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
2982
|
+
|
|
2983
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2987
2984
|
y *= gpuAcceleration ? 1 : -1;
|
|
2988
2985
|
}
|
|
2989
2986
|
|
|
2990
2987
|
if (placement === left) {
|
|
2991
|
-
sideX = right;
|
|
2992
|
-
|
|
2988
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
2989
|
+
|
|
2990
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2993
2991
|
x *= gpuAcceleration ? 1 : -1;
|
|
2994
2992
|
}
|
|
2995
2993
|
}
|
|
@@ -3001,10 +2999,10 @@ function mapToStyles(_ref2) {
|
|
|
3001
2999
|
if (gpuAcceleration) {
|
|
3002
3000
|
var _Object$assign;
|
|
3003
3001
|
|
|
3004
|
-
return Object.assign(
|
|
3002
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3005
3003
|
}
|
|
3006
3004
|
|
|
3007
|
-
return Object.assign(
|
|
3005
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3008
3006
|
}
|
|
3009
3007
|
|
|
3010
3008
|
function computeStyles(_ref4) {
|
|
@@ -3018,7 +3016,7 @@ function computeStyles(_ref4) {
|
|
|
3018
3016
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3019
3017
|
|
|
3020
3018
|
if (process.env.NODE_ENV !== "production") {
|
|
3021
|
-
var transitionProperty = getComputedStyle$
|
|
3019
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
3022
3020
|
|
|
3023
3021
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3024
3022
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3035,7 +3033,7 @@ function computeStyles(_ref4) {
|
|
|
3035
3033
|
};
|
|
3036
3034
|
|
|
3037
3035
|
if (state.modifiersData.popperOffsets != null) {
|
|
3038
|
-
state.styles.popper = Object.assign(
|
|
3036
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3039
3037
|
offsets: state.modifiersData.popperOffsets,
|
|
3040
3038
|
position: state.options.strategy,
|
|
3041
3039
|
adaptive: adaptive,
|
|
@@ -3044,7 +3042,7 @@ function computeStyles(_ref4) {
|
|
|
3044
3042
|
}
|
|
3045
3043
|
|
|
3046
3044
|
if (state.modifiersData.arrow != null) {
|
|
3047
|
-
state.styles.arrow = Object.assign(
|
|
3045
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3048
3046
|
offsets: state.modifiersData.arrow,
|
|
3049
3047
|
position: 'absolute',
|
|
3050
3048
|
adaptive: false,
|
|
@@ -3052,7 +3050,7 @@ function computeStyles(_ref4) {
|
|
|
3052
3050
|
})));
|
|
3053
3051
|
}
|
|
3054
3052
|
|
|
3055
|
-
state.attributes.popper = Object.assign(
|
|
3053
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3056
3054
|
'data-popper-placement': state.placement
|
|
3057
3055
|
});
|
|
3058
3056
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3070,7 +3068,7 @@ var passive = {
|
|
|
3070
3068
|
passive: true
|
|
3071
3069
|
};
|
|
3072
3070
|
|
|
3073
|
-
function effect
|
|
3071
|
+
function effect(_ref) {
|
|
3074
3072
|
var state = _ref.state,
|
|
3075
3073
|
instance = _ref.instance,
|
|
3076
3074
|
options = _ref.options;
|
|
@@ -3110,11 +3108,11 @@ var eventListeners = {
|
|
|
3110
3108
|
enabled: true,
|
|
3111
3109
|
phase: 'write',
|
|
3112
3110
|
fn: function fn() {},
|
|
3113
|
-
effect: effect
|
|
3111
|
+
effect: effect,
|
|
3114
3112
|
data: {}
|
|
3115
3113
|
};
|
|
3116
3114
|
|
|
3117
|
-
var hash = {
|
|
3115
|
+
var hash$1 = {
|
|
3118
3116
|
left: 'right',
|
|
3119
3117
|
right: 'left',
|
|
3120
3118
|
bottom: 'top',
|
|
@@ -3122,34 +3120,20 @@ var hash = {
|
|
|
3122
3120
|
};
|
|
3123
3121
|
function getOppositePlacement(placement) {
|
|
3124
3122
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3125
|
-
return hash[matched];
|
|
3123
|
+
return hash$1[matched];
|
|
3126
3124
|
});
|
|
3127
3125
|
}
|
|
3128
3126
|
|
|
3129
|
-
var hash
|
|
3127
|
+
var hash = {
|
|
3130
3128
|
start: 'end',
|
|
3131
3129
|
end: 'start'
|
|
3132
3130
|
};
|
|
3133
3131
|
function getOppositeVariationPlacement(placement) {
|
|
3134
3132
|
return placement.replace(/start|end/g, function (matched) {
|
|
3135
|
-
return hash
|
|
3133
|
+
return hash[matched];
|
|
3136
3134
|
});
|
|
3137
3135
|
}
|
|
3138
3136
|
|
|
3139
|
-
function getBoundingClientRect(element) {
|
|
3140
|
-
var rect = element.getBoundingClientRect();
|
|
3141
|
-
return {
|
|
3142
|
-
width: rect.width,
|
|
3143
|
-
height: rect.height,
|
|
3144
|
-
top: rect.top,
|
|
3145
|
-
right: rect.right,
|
|
3146
|
-
bottom: rect.bottom,
|
|
3147
|
-
left: rect.left,
|
|
3148
|
-
x: rect.left,
|
|
3149
|
-
y: rect.top
|
|
3150
|
-
};
|
|
3151
|
-
}
|
|
3152
|
-
|
|
3153
3137
|
function getWindowScroll(node) {
|
|
3154
3138
|
var win = getWindow(node);
|
|
3155
3139
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3212,16 +3196,18 @@ function getViewportRect(element) {
|
|
|
3212
3196
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3213
3197
|
|
|
3214
3198
|
function getDocumentRect(element) {
|
|
3199
|
+
var _element$ownerDocumen;
|
|
3200
|
+
|
|
3215
3201
|
var html = getDocumentElement(element);
|
|
3216
3202
|
var winScroll = getWindowScroll(element);
|
|
3217
|
-
var body = element.ownerDocument.body;
|
|
3218
|
-
var width =
|
|
3219
|
-
var height =
|
|
3203
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3204
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3205
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3220
3206
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3221
3207
|
var y = -winScroll.scrollTop;
|
|
3222
3208
|
|
|
3223
|
-
if (getComputedStyle$
|
|
3224
|
-
x +=
|
|
3209
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3210
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3225
3211
|
}
|
|
3226
3212
|
|
|
3227
3213
|
return {
|
|
@@ -3234,7 +3220,7 @@ function getDocumentRect(element) {
|
|
|
3234
3220
|
|
|
3235
3221
|
function isScrollParent(element) {
|
|
3236
3222
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3237
|
-
var _getComputedStyle = getComputedStyle$
|
|
3223
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3238
3224
|
overflow = _getComputedStyle.overflow,
|
|
3239
3225
|
overflowX = _getComputedStyle.overflowX,
|
|
3240
3226
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3263,12 +3249,14 @@ reference element's position.
|
|
|
3263
3249
|
*/
|
|
3264
3250
|
|
|
3265
3251
|
function listScrollParents(element, list) {
|
|
3252
|
+
var _element$ownerDocumen;
|
|
3253
|
+
|
|
3266
3254
|
if (list === void 0) {
|
|
3267
3255
|
list = [];
|
|
3268
3256
|
}
|
|
3269
3257
|
|
|
3270
3258
|
var scrollParent = getScrollParent(element);
|
|
3271
|
-
var isBody =
|
|
3259
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3272
3260
|
var win = getWindow(scrollParent);
|
|
3273
3261
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3274
3262
|
var updatedList = list.concat(target);
|
|
@@ -3277,7 +3265,7 @@ function listScrollParents(element, list) {
|
|
|
3277
3265
|
}
|
|
3278
3266
|
|
|
3279
3267
|
function rectToClientRect(rect) {
|
|
3280
|
-
return Object.assign(
|
|
3268
|
+
return Object.assign({}, rect, {
|
|
3281
3269
|
left: rect.x,
|
|
3282
3270
|
top: rect.y,
|
|
3283
3271
|
right: rect.x + rect.width,
|
|
@@ -3307,7 +3295,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3307
3295
|
|
|
3308
3296
|
function getClippingParents(element) {
|
|
3309
3297
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3310
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3298
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3311
3299
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3312
3300
|
|
|
3313
3301
|
if (!isElement(clipperElement)) {
|
|
@@ -3316,7 +3304,7 @@ function getClippingParents(element) {
|
|
|
3316
3304
|
|
|
3317
3305
|
|
|
3318
3306
|
return clippingParents.filter(function (clippingParent) {
|
|
3319
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3307
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3320
3308
|
});
|
|
3321
3309
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3322
3310
|
// clipping parents
|
|
@@ -3328,10 +3316,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3328
3316
|
var firstClippingParent = clippingParents[0];
|
|
3329
3317
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3330
3318
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3331
|
-
accRect.top =
|
|
3332
|
-
accRect.right =
|
|
3333
|
-
accRect.bottom =
|
|
3334
|
-
accRect.left =
|
|
3319
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3320
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3321
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3322
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3335
3323
|
return accRect;
|
|
3336
3324
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3337
3325
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3441,7 +3429,7 @@ function detectOverflow(state, options) {
|
|
|
3441
3429
|
strategy: 'absolute',
|
|
3442
3430
|
placement: placement
|
|
3443
3431
|
});
|
|
3444
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3432
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3445
3433
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3446
3434
|
// 0 or negative = within the clipping rect
|
|
3447
3435
|
|
|
@@ -3465,9 +3453,6 @@ function detectOverflow(state, options) {
|
|
|
3465
3453
|
return overflowOffsets;
|
|
3466
3454
|
}
|
|
3467
3455
|
|
|
3468
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3469
|
-
|
|
3470
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3471
3456
|
function computeAutoPlacement(state, options) {
|
|
3472
3457
|
if (options === void 0) {
|
|
3473
3458
|
options = {};
|
|
@@ -3696,7 +3681,7 @@ function hide(_ref) {
|
|
|
3696
3681
|
isReferenceHidden: isReferenceHidden,
|
|
3697
3682
|
hasPopperEscaped: hasPopperEscaped
|
|
3698
3683
|
};
|
|
3699
|
-
state.attributes.popper = Object.assign(
|
|
3684
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3700
3685
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3701
3686
|
'data-popper-escaped': hasPopperEscaped
|
|
3702
3687
|
});
|
|
@@ -3715,7 +3700,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3715
3700
|
var basePlacement = getBasePlacement(placement);
|
|
3716
3701
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3717
3702
|
|
|
3718
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3703
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3719
3704
|
placement: placement
|
|
3720
3705
|
})) : offset,
|
|
3721
3706
|
skidding = _ref[0],
|
|
@@ -3821,7 +3806,7 @@ function preventOverflow(_ref) {
|
|
|
3821
3806
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3822
3807
|
var referenceRect = state.rects.reference;
|
|
3823
3808
|
var popperRect = state.rects.popper;
|
|
3824
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3809
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3825
3810
|
placement: state.placement
|
|
3826
3811
|
})) : tetherOffset;
|
|
3827
3812
|
var data = {
|
|
@@ -3833,13 +3818,13 @@ function preventOverflow(_ref) {
|
|
|
3833
3818
|
return;
|
|
3834
3819
|
}
|
|
3835
3820
|
|
|
3836
|
-
if (checkMainAxis) {
|
|
3821
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3837
3822
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3838
3823
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3839
3824
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3840
3825
|
var offset = popperOffsets[mainAxis];
|
|
3841
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3842
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3826
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3827
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3843
3828
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3844
3829
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3845
3830
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3866,26 +3851,29 @@ function preventOverflow(_ref) {
|
|
|
3866
3851
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3867
3852
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3868
3853
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3869
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3870
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3871
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3872
|
-
}
|
|
3873
3854
|
|
|
3874
|
-
|
|
3875
|
-
|
|
3855
|
+
if (checkMainAxis) {
|
|
3856
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3857
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3858
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3859
|
+
}
|
|
3876
3860
|
|
|
3877
|
-
|
|
3861
|
+
if (checkAltAxis) {
|
|
3862
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3863
|
+
|
|
3864
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3878
3865
|
|
|
3879
|
-
|
|
3866
|
+
var _offset = popperOffsets[altAxis];
|
|
3880
3867
|
|
|
3881
|
-
|
|
3868
|
+
var _min = _offset + overflow[_mainSide];
|
|
3882
3869
|
|
|
3883
|
-
|
|
3870
|
+
var _max = _offset - overflow[_altSide];
|
|
3884
3871
|
|
|
3885
|
-
|
|
3872
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3886
3873
|
|
|
3887
|
-
|
|
3888
|
-
|
|
3874
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3875
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3876
|
+
}
|
|
3889
3877
|
}
|
|
3890
3878
|
|
|
3891
3879
|
state.modifiersData[name] = data;
|
|
@@ -4116,9 +4104,9 @@ function uniqueBy(arr, fn) {
|
|
|
4116
4104
|
function mergeByName(modifiers) {
|
|
4117
4105
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4118
4106
|
var existing = merged[current.name];
|
|
4119
|
-
merged[current.name] = existing ? Object.assign(
|
|
4120
|
-
options: Object.assign(
|
|
4121
|
-
data: Object.assign(
|
|
4107
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4108
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4109
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4122
4110
|
}) : current;
|
|
4123
4111
|
return merged;
|
|
4124
4112
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4164,7 +4152,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4164
4152
|
var state = {
|
|
4165
4153
|
placement: 'bottom',
|
|
4166
4154
|
orderedModifiers: [],
|
|
4167
|
-
options: Object.assign(
|
|
4155
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4168
4156
|
modifiersData: {},
|
|
4169
4157
|
elements: {
|
|
4170
4158
|
reference: reference,
|
|
@@ -4179,7 +4167,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4179
4167
|
state: state,
|
|
4180
4168
|
setOptions: function setOptions(options) {
|
|
4181
4169
|
cleanupModifierEffects();
|
|
4182
|
-
state.options = Object.assign(
|
|
4170
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4183
4171
|
state.scrollParents = {
|
|
4184
4172
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4185
4173
|
popper: listScrollParents(popper)
|
|
@@ -4211,7 +4199,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4211
4199
|
}
|
|
4212
4200
|
}
|
|
4213
4201
|
|
|
4214
|
-
var _getComputedStyle = getComputedStyle$
|
|
4202
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4215
4203
|
marginTop = _getComputedStyle.marginTop,
|
|
4216
4204
|
marginRight = _getComputedStyle.marginRight,
|
|
4217
4205
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4551,7 +4539,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4551
4539
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4552
4540
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4553
4541
|
// so we need to check on context instead of a document root element.
|
|
4554
|
-
function contains
|
|
4542
|
+
function contains(context, node) {
|
|
4555
4543
|
if (context.contains) return context.contains(node);
|
|
4556
4544
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4557
4545
|
}
|
|
@@ -4625,13 +4613,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4625
4613
|
return componentOrElement != null ? componentOrElement : null;
|
|
4626
4614
|
}
|
|
4627
4615
|
|
|
4628
|
-
var ownerDocument
|
|
4629
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4616
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4617
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4630
4618
|
});
|
|
4631
4619
|
|
|
4632
4620
|
var escapeKeyCode = 27;
|
|
4633
4621
|
|
|
4634
|
-
var noop$
|
|
4622
|
+
var noop$4 = function noop() {};
|
|
4635
4623
|
|
|
4636
4624
|
function isLeftClickEvent(event) {
|
|
4637
4625
|
return event.button === 0;
|
|
@@ -4664,11 +4652,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4664
4652
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4665
4653
|
|
|
4666
4654
|
var preventMouseRootCloseRef = useRef(false);
|
|
4667
|
-
var onClose = onRootClose || noop$
|
|
4655
|
+
var onClose = onRootClose || noop$4;
|
|
4668
4656
|
var handleMouseCapture = useCallback(function (e) {
|
|
4669
4657
|
var currentTarget = getRefTarget(ref);
|
|
4670
4658
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4671
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4659
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4672
4660
|
}, [ref]);
|
|
4673
4661
|
var handleMouse = useEventCallback(function (e) {
|
|
4674
4662
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4685,7 +4673,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4685
4673
|
// https://github.com/facebook/react/issues/20074
|
|
4686
4674
|
|
|
4687
4675
|
var currentEvent = window.event;
|
|
4688
|
-
var doc = ownerDocument
|
|
4676
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4689
4677
|
// avoid false positives in the contains() check below if the target DOM
|
|
4690
4678
|
// element is removed in the React mouse callback.
|
|
4691
4679
|
|
|
@@ -4712,7 +4700,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4712
4700
|
|
|
4713
4701
|
if ('ontouchstart' in doc.documentElement) {
|
|
4714
4702
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4715
|
-
return listen(el, 'mousemove', noop$
|
|
4703
|
+
return listen(el, 'mousemove', noop$4);
|
|
4716
4704
|
});
|
|
4717
4705
|
}
|
|
4718
4706
|
|
|
@@ -4794,7 +4782,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4794
4782
|
});
|
|
4795
4783
|
}
|
|
4796
4784
|
|
|
4797
|
-
var noop$
|
|
4785
|
+
var noop$3 = function noop() {};
|
|
4798
4786
|
/**
|
|
4799
4787
|
* @memberOf Dropdown
|
|
4800
4788
|
* @param {object} options
|
|
@@ -4862,7 +4850,7 @@ function useDropdownMenu(options) {
|
|
|
4862
4850
|
|
|
4863
4851
|
var menu;
|
|
4864
4852
|
var menuProps = {
|
|
4865
|
-
ref: setMenu || noop$
|
|
4853
|
+
ref: setMenu || noop$3,
|
|
4866
4854
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4867
4855
|
};
|
|
4868
4856
|
var childArgs = {
|
|
@@ -4895,7 +4883,7 @@ function useDropdownMenu(options) {
|
|
|
4895
4883
|
});
|
|
4896
4884
|
return menu;
|
|
4897
4885
|
}
|
|
4898
|
-
var propTypes$
|
|
4886
|
+
var propTypes$8 = {
|
|
4899
4887
|
/**
|
|
4900
4888
|
* A render prop that returns a Menu element. The `props`
|
|
4901
4889
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4952,7 +4940,7 @@ var propTypes$2 = {
|
|
|
4952
4940
|
*/
|
|
4953
4941
|
rootCloseEvent: PropTypes.string
|
|
4954
4942
|
};
|
|
4955
|
-
var defaultProps$
|
|
4943
|
+
var defaultProps$r = {
|
|
4956
4944
|
usePopper: true
|
|
4957
4945
|
};
|
|
4958
4946
|
|
|
@@ -4962,19 +4950,19 @@ var defaultProps$d = {
|
|
|
4962
4950
|
* @displayName DropdownMenu
|
|
4963
4951
|
* @memberOf Dropdown
|
|
4964
4952
|
*/
|
|
4965
|
-
function DropdownMenu(_ref2) {
|
|
4953
|
+
function DropdownMenu$1(_ref2) {
|
|
4966
4954
|
var children = _ref2.children,
|
|
4967
4955
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4968
4956
|
|
|
4969
4957
|
var args = useDropdownMenu(options);
|
|
4970
|
-
return /*#__PURE__*/
|
|
4958
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4971
4959
|
}
|
|
4972
4960
|
|
|
4973
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4974
|
-
DropdownMenu.propTypes = propTypes$
|
|
4975
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
4961
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
4962
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
4963
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
4976
4964
|
|
|
4977
|
-
var noop$
|
|
4965
|
+
var noop$2 = function noop() {};
|
|
4978
4966
|
/**
|
|
4979
4967
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4980
4968
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4988,11 +4976,11 @@ function useDropdownToggle() {
|
|
|
4988
4976
|
_ref$show = _ref.show,
|
|
4989
4977
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4990
4978
|
_ref$toggle = _ref.toggle,
|
|
4991
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4979
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
4992
4980
|
setToggle = _ref.setToggle;
|
|
4993
4981
|
|
|
4994
4982
|
return [{
|
|
4995
|
-
ref: setToggle || noop$
|
|
4983
|
+
ref: setToggle || noop$2,
|
|
4996
4984
|
'aria-haspopup': true,
|
|
4997
4985
|
'aria-expanded': !!show
|
|
4998
4986
|
}, {
|
|
@@ -5000,7 +4988,7 @@ function useDropdownToggle() {
|
|
|
5000
4988
|
toggle: toggle
|
|
5001
4989
|
}];
|
|
5002
4990
|
}
|
|
5003
|
-
var propTypes$
|
|
4991
|
+
var propTypes$7 = {
|
|
5004
4992
|
/**
|
|
5005
4993
|
* A render prop that returns a Toggle element. The `props`
|
|
5006
4994
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5025,7 +5013,7 @@ var propTypes$3 = {
|
|
|
5025
5013
|
* @displayName DropdownToggle
|
|
5026
5014
|
* @memberOf Dropdown
|
|
5027
5015
|
*/
|
|
5028
|
-
function DropdownToggle(_ref2) {
|
|
5016
|
+
function DropdownToggle$1(_ref2) {
|
|
5029
5017
|
var children = _ref2.children;
|
|
5030
5018
|
|
|
5031
5019
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5034,17 +5022,17 @@ function DropdownToggle(_ref2) {
|
|
|
5034
5022
|
show = _useDropdownToggle$.show,
|
|
5035
5023
|
toggle = _useDropdownToggle$.toggle;
|
|
5036
5024
|
|
|
5037
|
-
return /*#__PURE__*/
|
|
5025
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5038
5026
|
show: show,
|
|
5039
5027
|
toggle: toggle,
|
|
5040
5028
|
props: props
|
|
5041
5029
|
}));
|
|
5042
5030
|
}
|
|
5043
5031
|
|
|
5044
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5045
|
-
DropdownToggle.propTypes = propTypes$
|
|
5032
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5033
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
5046
5034
|
|
|
5047
|
-
var propTypes$
|
|
5035
|
+
var propTypes$6 = {
|
|
5048
5036
|
/**
|
|
5049
5037
|
* A render prop that returns the root dropdown element. The `props`
|
|
5050
5038
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5116,7 +5104,7 @@ var propTypes$4 = {
|
|
|
5116
5104
|
/**
|
|
5117
5105
|
* @displayName Dropdown
|
|
5118
5106
|
*/
|
|
5119
|
-
function Dropdown(_ref) {
|
|
5107
|
+
function Dropdown$1(_ref) {
|
|
5120
5108
|
var drop = _ref.drop,
|
|
5121
5109
|
alignEnd = _ref.alignEnd,
|
|
5122
5110
|
defaultShow = _ref.defaultShow,
|
|
@@ -5249,7 +5237,7 @@ function Dropdown(_ref) {
|
|
|
5249
5237
|
}
|
|
5250
5238
|
};
|
|
5251
5239
|
|
|
5252
|
-
return /*#__PURE__*/
|
|
5240
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5253
5241
|
value: context
|
|
5254
5242
|
}, children({
|
|
5255
5243
|
props: {
|
|
@@ -5258,19 +5246,19 @@ function Dropdown(_ref) {
|
|
|
5258
5246
|
}));
|
|
5259
5247
|
}
|
|
5260
5248
|
|
|
5261
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5262
|
-
Dropdown.propTypes = propTypes$
|
|
5263
|
-
Dropdown.Menu = DropdownMenu;
|
|
5264
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5249
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5250
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5251
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5252
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5265
5253
|
|
|
5266
|
-
var NavContext =
|
|
5254
|
+
var NavContext = React.createContext(null);
|
|
5267
5255
|
NavContext.displayName = 'NavContext';
|
|
5268
5256
|
|
|
5269
|
-
var defaultProps$
|
|
5257
|
+
var defaultProps$q = {
|
|
5270
5258
|
as: SafeAnchor,
|
|
5271
5259
|
disabled: false
|
|
5272
5260
|
};
|
|
5273
|
-
var DropdownItem =
|
|
5261
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5274
5262
|
var bsPrefix = _ref.bsPrefix,
|
|
5275
5263
|
className = _ref.className,
|
|
5276
5264
|
children = _ref.children,
|
|
@@ -5281,7 +5269,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5281
5269
|
onSelect = _ref.onSelect,
|
|
5282
5270
|
propActive = _ref.active,
|
|
5283
5271
|
Component = _ref.as,
|
|
5284
|
-
props = _objectWithoutPropertiesLoose
|
|
5272
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5285
5273
|
|
|
5286
5274
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5287
5275
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5305,7 +5293,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5305
5293
|
/*#__PURE__*/
|
|
5306
5294
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5307
5295
|
// @ts-ignore
|
|
5308
|
-
|
|
5296
|
+
React.createElement(Component, _extends({}, props, {
|
|
5309
5297
|
ref: ref,
|
|
5310
5298
|
href: href,
|
|
5311
5299
|
disabled: disabled,
|
|
@@ -5315,7 +5303,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5315
5303
|
);
|
|
5316
5304
|
});
|
|
5317
5305
|
DropdownItem.displayName = 'DropdownItem';
|
|
5318
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5306
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5319
5307
|
|
|
5320
5308
|
var toFnRef = function toFnRef(ref) {
|
|
5321
5309
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5354,8 +5342,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5354
5342
|
}, [refA, refB]);
|
|
5355
5343
|
}
|
|
5356
5344
|
|
|
5357
|
-
var context
|
|
5358
|
-
context
|
|
5345
|
+
var context = React.createContext(null);
|
|
5346
|
+
context.displayName = 'NavbarContext';
|
|
5359
5347
|
|
|
5360
5348
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5361
5349
|
// @ts-ignore
|
|
@@ -5476,13 +5464,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5476
5464
|
}), PropTypes.shape({
|
|
5477
5465
|
xl: alignDirection
|
|
5478
5466
|
})]);
|
|
5479
|
-
var defaultProps$
|
|
5467
|
+
var defaultProps$p = {
|
|
5480
5468
|
align: 'left',
|
|
5481
5469
|
alignRight: false,
|
|
5482
5470
|
flip: true
|
|
5483
5471
|
}; // TODO: remove this hack
|
|
5484
5472
|
|
|
5485
|
-
var DropdownMenu
|
|
5473
|
+
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
5486
5474
|
var bsPrefix = _ref.bsPrefix,
|
|
5487
5475
|
className = _ref.className,
|
|
5488
5476
|
align = _ref.align,
|
|
@@ -5494,9 +5482,9 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5494
5482
|
_ref$as = _ref.as,
|
|
5495
5483
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5496
5484
|
popperConfig = _ref.popperConfig,
|
|
5497
|
-
props = _objectWithoutPropertiesLoose
|
|
5485
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5498
5486
|
|
|
5499
|
-
var isNavbar = useContext(context
|
|
5487
|
+
var isNavbar = useContext(context);
|
|
5500
5488
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5501
5489
|
|
|
5502
5490
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5530,7 +5518,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5530
5518
|
show: showProps,
|
|
5531
5519
|
alignEnd: alignRight,
|
|
5532
5520
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5533
|
-
popperConfig: _extends
|
|
5521
|
+
popperConfig: _extends({}, popperConfig, {
|
|
5534
5522
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5535
5523
|
})
|
|
5536
5524
|
}),
|
|
@@ -5553,16 +5541,16 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5553
5541
|
if (placement) {
|
|
5554
5542
|
// we don't need the default popper style,
|
|
5555
5543
|
// menus are display: none when not shown.
|
|
5556
|
-
props.style = _extends
|
|
5544
|
+
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5557
5545
|
props['x-placement'] = placement;
|
|
5558
5546
|
}
|
|
5559
5547
|
|
|
5560
|
-
return /*#__PURE__*/
|
|
5548
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5561
5549
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5562
5550
|
}));
|
|
5563
5551
|
});
|
|
5564
|
-
DropdownMenu
|
|
5565
|
-
DropdownMenu
|
|
5552
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5553
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5566
5554
|
|
|
5567
5555
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5568
5556
|
|
|
@@ -5591,14 +5579,14 @@ module.exports = exports['default'];
|
|
|
5591
5579
|
|
|
5592
5580
|
unwrapExports(isRequiredForA11y_1);
|
|
5593
5581
|
|
|
5594
|
-
var DropdownToggle
|
|
5582
|
+
var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
5595
5583
|
var bsPrefix = _ref.bsPrefix,
|
|
5596
5584
|
split = _ref.split,
|
|
5597
5585
|
className = _ref.className,
|
|
5598
5586
|
childBsPrefix = _ref.childBsPrefix,
|
|
5599
5587
|
_ref$as = _ref.as,
|
|
5600
5588
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5601
|
-
props = _objectWithoutPropertiesLoose
|
|
5589
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5602
5590
|
|
|
5603
5591
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5604
5592
|
|
|
@@ -5613,12 +5601,12 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5613
5601
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5614
5602
|
// underlying component, to allow it to render size and style variants.
|
|
5615
5603
|
|
|
5616
|
-
return /*#__PURE__*/
|
|
5604
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5617
5605
|
onClick: toggle,
|
|
5618
5606
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5619
5607
|
}, toggleProps, props));
|
|
5620
5608
|
});
|
|
5621
|
-
DropdownToggle
|
|
5609
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5622
5610
|
|
|
5623
5611
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5624
5612
|
defaultProps: {
|
|
@@ -5633,10 +5621,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5633
5621
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5634
5622
|
Component: 'span'
|
|
5635
5623
|
});
|
|
5636
|
-
var defaultProps$
|
|
5624
|
+
var defaultProps$o = {
|
|
5637
5625
|
navbar: false
|
|
5638
5626
|
};
|
|
5639
|
-
var Dropdown
|
|
5627
|
+
var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
5640
5628
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5641
5629
|
show: 'onToggle'
|
|
5642
5630
|
}),
|
|
@@ -5649,9 +5637,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5649
5637
|
onToggle = _useUncontrolled.onToggle,
|
|
5650
5638
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5651
5639
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5652
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5653
|
-
|
|
5654
|
-
props = _objectWithoutPropertiesLoose
|
|
5640
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5641
|
+
_useUncontrolled.navbar;
|
|
5642
|
+
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5655
5643
|
|
|
5656
5644
|
var onSelectCtx = useContext(SelectableContext);
|
|
5657
5645
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5673,9 +5661,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5673
5661
|
if (onSelect) onSelect(key, event);
|
|
5674
5662
|
handleToggle(false, event, 'select');
|
|
5675
5663
|
});
|
|
5676
|
-
return /*#__PURE__*/
|
|
5664
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5677
5665
|
value: handleSelect
|
|
5678
|
-
}, /*#__PURE__*/
|
|
5666
|
+
}, /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
5679
5667
|
drop: drop,
|
|
5680
5668
|
show: show,
|
|
5681
5669
|
alignEnd: alignRight,
|
|
@@ -5684,20 +5672,20 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5684
5672
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5685
5673
|
}, function (_ref) {
|
|
5686
5674
|
var dropdownProps = _ref.props;
|
|
5687
|
-
return /*#__PURE__*/
|
|
5675
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5688
5676
|
ref: ref,
|
|
5689
5677
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5690
5678
|
}));
|
|
5691
5679
|
}));
|
|
5692
5680
|
});
|
|
5693
|
-
Dropdown
|
|
5694
|
-
Dropdown
|
|
5695
|
-
Dropdown
|
|
5696
|
-
Dropdown
|
|
5697
|
-
Dropdown
|
|
5698
|
-
Dropdown
|
|
5699
|
-
Dropdown
|
|
5700
|
-
Dropdown
|
|
5681
|
+
Dropdown.displayName = 'Dropdown';
|
|
5682
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5683
|
+
Dropdown.Divider = DropdownDivider;
|
|
5684
|
+
Dropdown.Header = DropdownHeader;
|
|
5685
|
+
Dropdown.Item = DropdownItem;
|
|
5686
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5687
|
+
Dropdown.Menu = DropdownMenu;
|
|
5688
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5701
5689
|
|
|
5702
5690
|
var propTypes$5 = {
|
|
5703
5691
|
/**
|
|
@@ -5759,7 +5747,7 @@ var propTypes$5 = {
|
|
|
5759
5747
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5760
5748
|
*/
|
|
5761
5749
|
|
|
5762
|
-
var DropdownButton =
|
|
5750
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5763
5751
|
var title = _ref.title,
|
|
5764
5752
|
children = _ref.children,
|
|
5765
5753
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5772,18 +5760,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5772
5760
|
disabled = _ref.disabled,
|
|
5773
5761
|
href = _ref.href,
|
|
5774
5762
|
id = _ref.id,
|
|
5775
|
-
props = _objectWithoutPropertiesLoose
|
|
5763
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5776
5764
|
|
|
5777
|
-
return /*#__PURE__*/
|
|
5765
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
5778
5766
|
ref: ref
|
|
5779
|
-
}, props), /*#__PURE__*/
|
|
5767
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
5780
5768
|
id: id,
|
|
5781
5769
|
href: href,
|
|
5782
5770
|
size: size,
|
|
5783
5771
|
variant: variant,
|
|
5784
5772
|
disabled: disabled,
|
|
5785
5773
|
childBsPrefix: bsPrefix
|
|
5786
|
-
}, title), /*#__PURE__*/
|
|
5774
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
5787
5775
|
align: menuAlign,
|
|
5788
5776
|
role: menuRole,
|
|
5789
5777
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5886,7 +5874,7 @@ module.exports = exports['default'];
|
|
|
5886
5874
|
|
|
5887
5875
|
unwrapExports(all_1);
|
|
5888
5876
|
|
|
5889
|
-
var propTypes$
|
|
5877
|
+
var propTypes$4 = {
|
|
5890
5878
|
/**
|
|
5891
5879
|
* Specify whether the feedback is for valid or invalid fields
|
|
5892
5880
|
*
|
|
@@ -5898,7 +5886,7 @@ var propTypes$6 = {
|
|
|
5898
5886
|
tooltip: PropTypes.bool,
|
|
5899
5887
|
as: PropTypes.elementType
|
|
5900
5888
|
};
|
|
5901
|
-
var Feedback =
|
|
5889
|
+
var Feedback = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5902
5890
|
function (_ref, ref) {
|
|
5903
5891
|
var _ref$as = _ref.as,
|
|
5904
5892
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5907,21 +5895,21 @@ function (_ref, ref) {
|
|
|
5907
5895
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5908
5896
|
_ref$tooltip = _ref.tooltip,
|
|
5909
5897
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5910
|
-
props = _objectWithoutPropertiesLoose
|
|
5898
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5911
5899
|
|
|
5912
|
-
return /*#__PURE__*/
|
|
5900
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5913
5901
|
ref: ref,
|
|
5914
5902
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5915
5903
|
}));
|
|
5916
5904
|
});
|
|
5917
5905
|
Feedback.displayName = 'Feedback';
|
|
5918
|
-
Feedback.propTypes = propTypes$
|
|
5906
|
+
Feedback.propTypes = propTypes$4;
|
|
5919
5907
|
|
|
5920
|
-
var FormContext =
|
|
5908
|
+
var FormContext = React.createContext({
|
|
5921
5909
|
controlId: undefined
|
|
5922
5910
|
});
|
|
5923
5911
|
|
|
5924
|
-
var FormCheckInput =
|
|
5912
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5925
5913
|
var id = _ref.id,
|
|
5926
5914
|
bsPrefix = _ref.bsPrefix,
|
|
5927
5915
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5935,7 +5923,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5935
5923
|
isStatic = _ref.isStatic,
|
|
5936
5924
|
_ref$as = _ref.as,
|
|
5937
5925
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5938
|
-
props = _objectWithoutPropertiesLoose
|
|
5926
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5939
5927
|
|
|
5940
5928
|
var _useContext = useContext(FormContext),
|
|
5941
5929
|
controlId = _useContext.controlId,
|
|
@@ -5946,7 +5934,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5946
5934
|
defaultPrefix = _ref2[1];
|
|
5947
5935
|
|
|
5948
5936
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5949
|
-
return /*#__PURE__*/
|
|
5937
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5950
5938
|
ref: ref,
|
|
5951
5939
|
type: type,
|
|
5952
5940
|
id: id || controlId,
|
|
@@ -5955,12 +5943,12 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5955
5943
|
});
|
|
5956
5944
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5957
5945
|
|
|
5958
|
-
var FormCheckLabel =
|
|
5946
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5959
5947
|
var bsPrefix = _ref.bsPrefix,
|
|
5960
5948
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5961
5949
|
className = _ref.className,
|
|
5962
5950
|
htmlFor = _ref.htmlFor,
|
|
5963
|
-
props = _objectWithoutPropertiesLoose
|
|
5951
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5964
5952
|
|
|
5965
5953
|
var _useContext = useContext(FormContext),
|
|
5966
5954
|
controlId = _useContext.controlId,
|
|
@@ -5971,7 +5959,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5971
5959
|
defaultPrefix = _ref2[1];
|
|
5972
5960
|
|
|
5973
5961
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5974
|
-
return /*#__PURE__*/
|
|
5962
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
5975
5963
|
ref: ref,
|
|
5976
5964
|
htmlFor: htmlFor || controlId,
|
|
5977
5965
|
className: classnames(className, bsPrefix)
|
|
@@ -5979,7 +5967,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5979
5967
|
});
|
|
5980
5968
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5981
5969
|
|
|
5982
|
-
var FormCheck =
|
|
5970
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
5983
5971
|
var id = _ref.id,
|
|
5984
5972
|
bsPrefix = _ref.bsPrefix,
|
|
5985
5973
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6005,7 +5993,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6005
5993
|
propCustom = _ref.custom,
|
|
6006
5994
|
_ref$as = _ref.as,
|
|
6007
5995
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6008
|
-
props = _objectWithoutPropertiesLoose
|
|
5996
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6009
5997
|
|
|
6010
5998
|
var custom = type === 'switch' ? true : propCustom;
|
|
6011
5999
|
|
|
@@ -6025,7 +6013,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6025
6013
|
};
|
|
6026
6014
|
}, [controlId, custom, id]);
|
|
6027
6015
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6028
|
-
var input = /*#__PURE__*/
|
|
6016
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6029
6017
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6030
6018
|
ref: ref,
|
|
6031
6019
|
isValid: isValid,
|
|
@@ -6034,14 +6022,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6034
6022
|
disabled: disabled,
|
|
6035
6023
|
as: as
|
|
6036
6024
|
}));
|
|
6037
|
-
return /*#__PURE__*/
|
|
6025
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6038
6026
|
value: innerFormContext
|
|
6039
|
-
}, /*#__PURE__*/
|
|
6027
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6040
6028
|
style: style,
|
|
6041
6029
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6042
|
-
}, children || /*#__PURE__*/
|
|
6030
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6043
6031
|
title: title
|
|
6044
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6032
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6045
6033
|
type: isValid ? 'valid' : 'invalid',
|
|
6046
6034
|
tooltip: feedbackTooltip
|
|
6047
6035
|
}, feedback))));
|
|
@@ -6050,7 +6038,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6050
6038
|
FormCheck.Input = FormCheckInput;
|
|
6051
6039
|
FormCheck.Label = FormCheckLabel;
|
|
6052
6040
|
|
|
6053
|
-
var FormFileInput =
|
|
6041
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6054
6042
|
var id = _ref.id,
|
|
6055
6043
|
bsPrefix = _ref.bsPrefix,
|
|
6056
6044
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6060,7 +6048,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6060
6048
|
lang = _ref.lang,
|
|
6061
6049
|
_ref$as = _ref.as,
|
|
6062
6050
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6063
|
-
props = _objectWithoutPropertiesLoose
|
|
6051
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6064
6052
|
|
|
6065
6053
|
var _useContext = useContext(FormContext),
|
|
6066
6054
|
controlId = _useContext.controlId,
|
|
@@ -6073,7 +6061,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6073
6061
|
defaultPrefix = _ref2[1];
|
|
6074
6062
|
|
|
6075
6063
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6076
|
-
return /*#__PURE__*/
|
|
6064
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6077
6065
|
ref: ref,
|
|
6078
6066
|
id: id || controlId,
|
|
6079
6067
|
type: type,
|
|
@@ -6083,12 +6071,12 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6083
6071
|
});
|
|
6084
6072
|
FormFileInput.displayName = 'FormFileInput';
|
|
6085
6073
|
|
|
6086
|
-
var FormFileLabel =
|
|
6074
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6087
6075
|
var bsPrefix = _ref.bsPrefix,
|
|
6088
6076
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6089
6077
|
className = _ref.className,
|
|
6090
6078
|
htmlFor = _ref.htmlFor,
|
|
6091
|
-
props = _objectWithoutPropertiesLoose
|
|
6079
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6092
6080
|
|
|
6093
6081
|
var _useContext = useContext(FormContext),
|
|
6094
6082
|
controlId = _useContext.controlId,
|
|
@@ -6099,7 +6087,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6099
6087
|
defaultPrefix = _ref2[1];
|
|
6100
6088
|
|
|
6101
6089
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6102
|
-
return /*#__PURE__*/
|
|
6090
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6103
6091
|
ref: ref,
|
|
6104
6092
|
htmlFor: htmlFor || controlId,
|
|
6105
6093
|
className: classnames(className, bsPrefix),
|
|
@@ -6108,7 +6096,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6108
6096
|
});
|
|
6109
6097
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6110
6098
|
|
|
6111
|
-
var FormFile =
|
|
6099
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6112
6100
|
var id = _ref.id,
|
|
6113
6101
|
bsPrefix = _ref.bsPrefix,
|
|
6114
6102
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6132,7 +6120,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6132
6120
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6133
6121
|
_ref$inputAs = _ref.inputAs,
|
|
6134
6122
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6135
|
-
props = _objectWithoutPropertiesLoose
|
|
6123
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6136
6124
|
|
|
6137
6125
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6138
6126
|
prefix = _ref2[0],
|
|
@@ -6151,7 +6139,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6151
6139
|
};
|
|
6152
6140
|
}, [controlId, custom, id]);
|
|
6153
6141
|
var hasLabel = label != null && label !== false && !children;
|
|
6154
|
-
var input = /*#__PURE__*/
|
|
6142
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6155
6143
|
ref: ref,
|
|
6156
6144
|
isValid: isValid,
|
|
6157
6145
|
isInvalid: isInvalid,
|
|
@@ -6159,14 +6147,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6159
6147
|
as: inputAs,
|
|
6160
6148
|
lang: lang
|
|
6161
6149
|
}));
|
|
6162
|
-
return /*#__PURE__*/
|
|
6150
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6163
6151
|
value: innerFormContext
|
|
6164
|
-
}, /*#__PURE__*/
|
|
6152
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6165
6153
|
style: style,
|
|
6166
6154
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6167
|
-
}, children || /*#__PURE__*/
|
|
6155
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6168
6156
|
"data-browse": dataBrowse
|
|
6169
|
-
}, label)) : /*#__PURE__*/
|
|
6157
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6170
6158
|
type: isValid ? 'valid' : 'invalid',
|
|
6171
6159
|
tooltip: feedbackTooltip
|
|
6172
6160
|
}, feedback))));
|
|
@@ -6175,7 +6163,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6175
6163
|
FormFile.Input = FormFileInput;
|
|
6176
6164
|
FormFile.Label = FormFileLabel;
|
|
6177
6165
|
|
|
6178
|
-
var FormControl =
|
|
6166
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6179
6167
|
var bsPrefix = _ref.bsPrefix,
|
|
6180
6168
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6181
6169
|
type = _ref.type,
|
|
@@ -6192,7 +6180,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6192
6180
|
custom = _ref.custom,
|
|
6193
6181
|
_ref$as = _ref.as,
|
|
6194
6182
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6195
|
-
props = _objectWithoutPropertiesLoose
|
|
6183
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6196
6184
|
|
|
6197
6185
|
var _useContext = useContext(FormContext),
|
|
6198
6186
|
controlId = _useContext.controlId;
|
|
@@ -6227,7 +6215,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6227
6215
|
}
|
|
6228
6216
|
|
|
6229
6217
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6230
|
-
return /*#__PURE__*/
|
|
6218
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6231
6219
|
type: type,
|
|
6232
6220
|
size: htmlSize,
|
|
6233
6221
|
ref: ref,
|
|
@@ -6241,14 +6229,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6241
6229
|
Feedback: Feedback
|
|
6242
6230
|
});
|
|
6243
6231
|
|
|
6244
|
-
var FormGroup =
|
|
6232
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6245
6233
|
var bsPrefix = _ref.bsPrefix,
|
|
6246
6234
|
className = _ref.className,
|
|
6247
6235
|
children = _ref.children,
|
|
6248
6236
|
controlId = _ref.controlId,
|
|
6249
6237
|
_ref$as = _ref.as,
|
|
6250
6238
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6251
|
-
props = _objectWithoutPropertiesLoose
|
|
6239
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6252
6240
|
|
|
6253
6241
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6254
6242
|
var context = useMemo(function () {
|
|
@@ -6256,20 +6244,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6256
6244
|
controlId: controlId
|
|
6257
6245
|
};
|
|
6258
6246
|
}, [controlId]);
|
|
6259
|
-
return /*#__PURE__*/
|
|
6247
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6260
6248
|
value: context
|
|
6261
|
-
}, /*#__PURE__*/
|
|
6249
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6262
6250
|
ref: ref,
|
|
6263
6251
|
className: classnames(className, bsPrefix)
|
|
6264
6252
|
}), children));
|
|
6265
6253
|
});
|
|
6266
6254
|
FormGroup.displayName = 'FormGroup';
|
|
6267
6255
|
|
|
6268
|
-
var defaultProps$
|
|
6256
|
+
var defaultProps$n = {
|
|
6269
6257
|
column: false,
|
|
6270
6258
|
srOnly: false
|
|
6271
6259
|
};
|
|
6272
|
-
var FormLabel =
|
|
6260
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6273
6261
|
var _ref$as = _ref.as,
|
|
6274
6262
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6275
6263
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6277,7 +6265,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6277
6265
|
srOnly = _ref.srOnly,
|
|
6278
6266
|
className = _ref.className,
|
|
6279
6267
|
htmlFor = _ref.htmlFor,
|
|
6280
|
-
props = _objectWithoutPropertiesLoose
|
|
6268
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6281
6269
|
|
|
6282
6270
|
var _useContext = useContext(FormContext),
|
|
6283
6271
|
controlId = _useContext.controlId;
|
|
@@ -6288,7 +6276,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6288
6276
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6289
6277
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6290
6278
|
htmlFor = htmlFor || controlId;
|
|
6291
|
-
if (column) return /*#__PURE__*/
|
|
6279
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6292
6280
|
as: "label",
|
|
6293
6281
|
className: classes,
|
|
6294
6282
|
htmlFor: htmlFor
|
|
@@ -6296,7 +6284,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6296
6284
|
return (
|
|
6297
6285
|
/*#__PURE__*/
|
|
6298
6286
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6299
|
-
|
|
6287
|
+
React.createElement(Component, _extends({
|
|
6300
6288
|
ref: ref,
|
|
6301
6289
|
className: classes,
|
|
6302
6290
|
htmlFor: htmlFor
|
|
@@ -6304,27 +6292,27 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6304
6292
|
);
|
|
6305
6293
|
});
|
|
6306
6294
|
FormLabel.displayName = 'FormLabel';
|
|
6307
|
-
FormLabel.defaultProps = defaultProps$
|
|
6295
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6308
6296
|
|
|
6309
|
-
var FormText =
|
|
6297
|
+
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6310
6298
|
function (_ref, ref) {
|
|
6311
6299
|
var bsPrefix = _ref.bsPrefix,
|
|
6312
6300
|
className = _ref.className,
|
|
6313
6301
|
_ref$as = _ref.as,
|
|
6314
6302
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6315
6303
|
muted = _ref.muted,
|
|
6316
|
-
props = _objectWithoutPropertiesLoose
|
|
6304
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6317
6305
|
|
|
6318
6306
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6319
|
-
return /*#__PURE__*/
|
|
6307
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6320
6308
|
ref: ref,
|
|
6321
6309
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6322
6310
|
}));
|
|
6323
6311
|
});
|
|
6324
6312
|
FormText.displayName = 'FormText';
|
|
6325
6313
|
|
|
6326
|
-
var Switch =
|
|
6327
|
-
return /*#__PURE__*/
|
|
6314
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6315
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6328
6316
|
ref: ref,
|
|
6329
6317
|
type: "switch"
|
|
6330
6318
|
}));
|
|
@@ -6334,26 +6322,26 @@ Switch.Input = FormCheck.Input;
|
|
|
6334
6322
|
Switch.Label = FormCheck.Label;
|
|
6335
6323
|
|
|
6336
6324
|
var FormRow = createWithBsPrefix('form-row');
|
|
6337
|
-
var defaultProps$
|
|
6325
|
+
var defaultProps$m = {
|
|
6338
6326
|
inline: false
|
|
6339
6327
|
};
|
|
6340
|
-
var FormImpl =
|
|
6328
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6341
6329
|
var bsPrefix = _ref.bsPrefix,
|
|
6342
6330
|
inline = _ref.inline,
|
|
6343
6331
|
className = _ref.className,
|
|
6344
6332
|
validated = _ref.validated,
|
|
6345
6333
|
_ref$as = _ref.as,
|
|
6346
6334
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6347
|
-
props = _objectWithoutPropertiesLoose
|
|
6335
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6348
6336
|
|
|
6349
6337
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6350
|
-
return /*#__PURE__*/
|
|
6338
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6351
6339
|
ref: ref,
|
|
6352
6340
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6353
6341
|
}));
|
|
6354
6342
|
});
|
|
6355
6343
|
FormImpl.displayName = 'Form';
|
|
6356
|
-
FormImpl.defaultProps = defaultProps$
|
|
6344
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6357
6345
|
FormImpl.Row = FormRow;
|
|
6358
6346
|
FormImpl.Group = FormGroup;
|
|
6359
6347
|
FormImpl.Control = FormControl$1;
|
|
@@ -6363,29 +6351,29 @@ FormImpl.Switch = Switch;
|
|
|
6363
6351
|
FormImpl.Label = FormLabel;
|
|
6364
6352
|
FormImpl.Text = FormText;
|
|
6365
6353
|
|
|
6366
|
-
var defaultProps$
|
|
6354
|
+
var defaultProps$l = {
|
|
6367
6355
|
fluid: false
|
|
6368
6356
|
};
|
|
6369
|
-
var Container =
|
|
6357
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6370
6358
|
var bsPrefix = _ref.bsPrefix,
|
|
6371
6359
|
fluid = _ref.fluid,
|
|
6372
6360
|
_ref$as = _ref.as,
|
|
6373
6361
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6374
6362
|
className = _ref.className,
|
|
6375
|
-
props = _objectWithoutPropertiesLoose
|
|
6363
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6376
6364
|
|
|
6377
6365
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6378
6366
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6379
|
-
return /*#__PURE__*/
|
|
6367
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6380
6368
|
ref: ref
|
|
6381
6369
|
}, props, {
|
|
6382
6370
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6383
6371
|
}));
|
|
6384
6372
|
});
|
|
6385
6373
|
Container.displayName = 'Container';
|
|
6386
|
-
Container.defaultProps = defaultProps$
|
|
6374
|
+
Container.defaultProps = defaultProps$l;
|
|
6387
6375
|
|
|
6388
|
-
var propTypes$
|
|
6376
|
+
var propTypes$3 = {
|
|
6389
6377
|
/**
|
|
6390
6378
|
* @default 'img'
|
|
6391
6379
|
*/
|
|
@@ -6417,18 +6405,18 @@ var defaultProps$k = {
|
|
|
6417
6405
|
roundedCircle: false,
|
|
6418
6406
|
thumbnail: false
|
|
6419
6407
|
};
|
|
6420
|
-
var Image =
|
|
6408
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6421
6409
|
var bsPrefix = _ref.bsPrefix,
|
|
6422
6410
|
className = _ref.className,
|
|
6423
6411
|
fluid = _ref.fluid,
|
|
6424
6412
|
rounded = _ref.rounded,
|
|
6425
6413
|
roundedCircle = _ref.roundedCircle,
|
|
6426
6414
|
thumbnail = _ref.thumbnail,
|
|
6427
|
-
props = _objectWithoutPropertiesLoose
|
|
6415
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6428
6416
|
|
|
6429
6417
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6430
6418
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6431
|
-
return /*#__PURE__*/
|
|
6419
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6432
6420
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6433
6421
|
ref: ref
|
|
6434
6422
|
}, props, {
|
|
@@ -6438,22 +6426,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6438
6426
|
Image.displayName = 'Image';
|
|
6439
6427
|
Image.defaultProps = defaultProps$k;
|
|
6440
6428
|
|
|
6441
|
-
var defaultProps$
|
|
6429
|
+
var defaultProps$j = {
|
|
6442
6430
|
fluid: true
|
|
6443
6431
|
};
|
|
6444
|
-
var FigureImage =
|
|
6432
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6445
6433
|
var className = _ref.className,
|
|
6446
|
-
props = _objectWithoutPropertiesLoose
|
|
6434
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6447
6435
|
|
|
6448
|
-
return /*#__PURE__*/
|
|
6436
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6449
6437
|
ref: ref
|
|
6450
6438
|
}, props, {
|
|
6451
6439
|
className: classnames(className, 'figure-img')
|
|
6452
6440
|
}));
|
|
6453
6441
|
});
|
|
6454
6442
|
FigureImage.displayName = 'FigureImage';
|
|
6455
|
-
FigureImage.propTypes = propTypes$
|
|
6456
|
-
FigureImage.defaultProps = defaultProps$
|
|
6443
|
+
FigureImage.propTypes = propTypes$3;
|
|
6444
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6457
6445
|
|
|
6458
6446
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6459
6447
|
Component: 'figcaption'
|
|
@@ -6472,13 +6460,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6472
6460
|
});
|
|
6473
6461
|
|
|
6474
6462
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6475
|
-
return /*#__PURE__*/
|
|
6463
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6476
6464
|
type: "checkbox"
|
|
6477
6465
|
}, props)));
|
|
6478
6466
|
};
|
|
6479
6467
|
|
|
6480
6468
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6481
|
-
return /*#__PURE__*/
|
|
6469
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6482
6470
|
type: "radio"
|
|
6483
6471
|
}, props)));
|
|
6484
6472
|
};
|
|
@@ -6491,16 +6479,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6491
6479
|
* @property {InputGroupRadio} Radio
|
|
6492
6480
|
* @property {InputGroupCheckbox} Checkbox
|
|
6493
6481
|
*/
|
|
6494
|
-
var InputGroup =
|
|
6482
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6495
6483
|
var bsPrefix = _ref.bsPrefix,
|
|
6496
6484
|
size = _ref.size,
|
|
6497
6485
|
className = _ref.className,
|
|
6498
6486
|
_ref$as = _ref.as,
|
|
6499
6487
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6500
|
-
props = _objectWithoutPropertiesLoose
|
|
6488
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6501
6489
|
|
|
6502
6490
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6503
|
-
return /*#__PURE__*/
|
|
6491
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6504
6492
|
ref: ref
|
|
6505
6493
|
}, props, {
|
|
6506
6494
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6508,7 +6496,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6508
6496
|
});
|
|
6509
6497
|
InputGroup.displayName = 'InputGroup';
|
|
6510
6498
|
|
|
6511
|
-
|
|
6499
|
+
_extends({}, InputGroup, {
|
|
6512
6500
|
Text: InputGroupText,
|
|
6513
6501
|
Radio: InputGroupRadio,
|
|
6514
6502
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6516,10 +6504,10 @@ var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
|
6516
6504
|
Prepend: InputGroupPrepend
|
|
6517
6505
|
});
|
|
6518
6506
|
|
|
6519
|
-
var defaultProps$
|
|
6507
|
+
var defaultProps$i = {
|
|
6520
6508
|
fluid: false
|
|
6521
6509
|
};
|
|
6522
|
-
var Jumbotron =
|
|
6510
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6523
6511
|
var _classes;
|
|
6524
6512
|
|
|
6525
6513
|
var _ref$as = _ref.as,
|
|
@@ -6527,32 +6515,32 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6527
6515
|
className = _ref.className,
|
|
6528
6516
|
fluid = _ref.fluid,
|
|
6529
6517
|
bsPrefix = _ref.bsPrefix,
|
|
6530
|
-
props = _objectWithoutPropertiesLoose
|
|
6518
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6531
6519
|
|
|
6532
6520
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6533
6521
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6534
|
-
return /*#__PURE__*/
|
|
6522
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6535
6523
|
ref: ref
|
|
6536
6524
|
}, props, {
|
|
6537
6525
|
className: classnames(className, classes)
|
|
6538
6526
|
}));
|
|
6539
6527
|
});
|
|
6540
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6528
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6541
6529
|
Jumbotron.displayName = 'Jumbotron';
|
|
6542
6530
|
|
|
6543
|
-
var TabContext =
|
|
6531
|
+
var TabContext = React.createContext(null);
|
|
6544
6532
|
|
|
6545
6533
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6546
|
-
var noop$
|
|
6534
|
+
var noop$1 = function noop() {};
|
|
6547
6535
|
|
|
6548
|
-
var AbstractNav =
|
|
6536
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6549
6537
|
var _ref$as = _ref.as,
|
|
6550
6538
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6551
6539
|
onSelect = _ref.onSelect,
|
|
6552
6540
|
activeKey = _ref.activeKey,
|
|
6553
6541
|
role = _ref.role,
|
|
6554
6542
|
onKeyDown = _ref.onKeyDown,
|
|
6555
|
-
props = _objectWithoutPropertiesLoose
|
|
6543
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6556
6544
|
|
|
6557
6545
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6558
6546
|
// and don't want to reset the set in the effect
|
|
@@ -6626,34 +6614,34 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6626
6614
|
needsRefocusRef.current = false;
|
|
6627
6615
|
});
|
|
6628
6616
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6629
|
-
return /*#__PURE__*/
|
|
6617
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6630
6618
|
value: handleSelect
|
|
6631
|
-
}, /*#__PURE__*/
|
|
6619
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6632
6620
|
value: {
|
|
6633
6621
|
role: role,
|
|
6634
6622
|
// used by NavLink to determine it's role
|
|
6635
6623
|
activeKey: makeEventKey(activeKey),
|
|
6636
|
-
getControlledId: getControlledId || noop$
|
|
6637
|
-
getControllerId: getControllerId || noop$
|
|
6624
|
+
getControlledId: getControlledId || noop$1,
|
|
6625
|
+
getControllerId: getControllerId || noop$1
|
|
6638
6626
|
}
|
|
6639
|
-
}, /*#__PURE__*/
|
|
6627
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6640
6628
|
onKeyDown: handleKeyDown,
|
|
6641
6629
|
ref: mergedRef,
|
|
6642
6630
|
role: role
|
|
6643
6631
|
}))));
|
|
6644
6632
|
});
|
|
6645
6633
|
|
|
6646
|
-
var defaultProps$
|
|
6634
|
+
var defaultProps$h = {
|
|
6647
6635
|
disabled: false
|
|
6648
6636
|
};
|
|
6649
|
-
var AbstractNavItem =
|
|
6637
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6650
6638
|
var active = _ref.active,
|
|
6651
6639
|
className = _ref.className,
|
|
6652
6640
|
eventKey = _ref.eventKey,
|
|
6653
6641
|
onSelect = _ref.onSelect,
|
|
6654
6642
|
onClick = _ref.onClick,
|
|
6655
6643
|
Component = _ref.as,
|
|
6656
|
-
props = _objectWithoutPropertiesLoose
|
|
6644
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6657
6645
|
|
|
6658
6646
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6659
6647
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6683,20 +6671,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6683
6671
|
if (onSelect) onSelect(navKey, e);
|
|
6684
6672
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6685
6673
|
});
|
|
6686
|
-
return /*#__PURE__*/
|
|
6674
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6687
6675
|
ref: ref,
|
|
6688
6676
|
onClick: handleOnclick,
|
|
6689
6677
|
className: classnames(className, isActive && 'active')
|
|
6690
6678
|
}));
|
|
6691
6679
|
});
|
|
6692
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6680
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6693
6681
|
|
|
6694
|
-
var defaultProps$
|
|
6682
|
+
var defaultProps$g = {
|
|
6695
6683
|
variant: undefined,
|
|
6696
6684
|
active: false,
|
|
6697
6685
|
disabled: false
|
|
6698
6686
|
};
|
|
6699
|
-
var ListGroupItem =
|
|
6687
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6700
6688
|
var bsPrefix = _ref.bsPrefix,
|
|
6701
6689
|
active = _ref.active,
|
|
6702
6690
|
disabled = _ref.disabled,
|
|
@@ -6706,7 +6694,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6706
6694
|
as = _ref.as,
|
|
6707
6695
|
eventKey = _ref.eventKey,
|
|
6708
6696
|
onClick = _ref.onClick,
|
|
6709
|
-
props = _objectWithoutPropertiesLoose
|
|
6697
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6710
6698
|
|
|
6711
6699
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6712
6700
|
var handleClick = useCallback(function (event) {
|
|
@@ -6718,7 +6706,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6718
6706
|
|
|
6719
6707
|
if (onClick) onClick(event);
|
|
6720
6708
|
}, [disabled, onClick]);
|
|
6721
|
-
return /*#__PURE__*/
|
|
6709
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6722
6710
|
ref: ref
|
|
6723
6711
|
}, props, {
|
|
6724
6712
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6729,14 +6717,14 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6729
6717
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6730
6718
|
}));
|
|
6731
6719
|
});
|
|
6732
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6720
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6733
6721
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6734
6722
|
|
|
6735
|
-
var defaultProps$
|
|
6723
|
+
var defaultProps$f = {
|
|
6736
6724
|
variant: undefined,
|
|
6737
6725
|
horizontal: undefined
|
|
6738
6726
|
};
|
|
6739
|
-
var ListGroup =
|
|
6727
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6740
6728
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6741
6729
|
activeKey: 'onSelect'
|
|
6742
6730
|
}),
|
|
@@ -6746,7 +6734,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6746
6734
|
horizontal = _useUncontrolled.horizontal,
|
|
6747
6735
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6748
6736
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6749
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
6737
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6750
6738
|
|
|
6751
6739
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6752
6740
|
var horizontalVariant;
|
|
@@ -6758,28 +6746,28 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6758
6746
|
}
|
|
6759
6747
|
|
|
6760
6748
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6761
|
-
return /*#__PURE__*/
|
|
6749
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6762
6750
|
ref: ref
|
|
6763
6751
|
}, controlledProps, {
|
|
6764
6752
|
as: as,
|
|
6765
6753
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6766
6754
|
}));
|
|
6767
6755
|
});
|
|
6768
|
-
ListGroup.defaultProps = defaultProps$
|
|
6756
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6769
6757
|
ListGroup.displayName = 'ListGroup';
|
|
6770
6758
|
ListGroup.Item = ListGroupItem;
|
|
6771
6759
|
|
|
6772
6760
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6773
|
-
var Media =
|
|
6761
|
+
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6774
6762
|
function (_ref, ref) {
|
|
6775
6763
|
var bsPrefix = _ref.bsPrefix,
|
|
6776
6764
|
className = _ref.className,
|
|
6777
6765
|
_ref$as = _ref.as,
|
|
6778
6766
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6779
|
-
props = _objectWithoutPropertiesLoose
|
|
6767
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6780
6768
|
|
|
6781
6769
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6782
|
-
return /*#__PURE__*/
|
|
6770
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6783
6771
|
ref: ref,
|
|
6784
6772
|
className: classnames(className, prefix)
|
|
6785
6773
|
}));
|
|
@@ -6814,7 +6802,7 @@ function scrollbarSize(recalc) {
|
|
|
6814
6802
|
|
|
6815
6803
|
function activeElement(doc) {
|
|
6816
6804
|
if (doc === void 0) {
|
|
6817
|
-
doc = ownerDocument();
|
|
6805
|
+
doc = ownerDocument$1();
|
|
6818
6806
|
}
|
|
6819
6807
|
|
|
6820
6808
|
// Support: IE 9 only
|
|
@@ -6864,7 +6852,7 @@ function isBody(node) {
|
|
|
6864
6852
|
}
|
|
6865
6853
|
|
|
6866
6854
|
function bodyIsOverflowing(node) {
|
|
6867
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6855
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6868
6856
|
var win = isWindow(node) || doc.defaultView;
|
|
6869
6857
|
return doc.body.clientWidth < win.innerWidth;
|
|
6870
6858
|
}
|
|
@@ -7076,7 +7064,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7076
7064
|
var _ref;
|
|
7077
7065
|
|
|
7078
7066
|
if (typeof document === 'undefined') return null;
|
|
7079
|
-
if (ref == null) return ownerDocument().body;
|
|
7067
|
+
if (ref == null) return ownerDocument$1().body;
|
|
7080
7068
|
if (typeof ref === 'function') ref = ref();
|
|
7081
7069
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7082
7070
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7109,11 +7097,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7109
7097
|
return resolvedRef;
|
|
7110
7098
|
}
|
|
7111
7099
|
|
|
7112
|
-
var manager;
|
|
7100
|
+
var manager$1;
|
|
7113
7101
|
|
|
7114
7102
|
function getManager() {
|
|
7115
|
-
if (!manager) manager = new ModalManager();
|
|
7116
|
-
return manager;
|
|
7103
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7104
|
+
return manager$1;
|
|
7117
7105
|
}
|
|
7118
7106
|
|
|
7119
7107
|
function useModalManager(provided) {
|
|
@@ -7141,7 +7129,7 @@ function useModalManager(provided) {
|
|
|
7141
7129
|
});
|
|
7142
7130
|
}
|
|
7143
7131
|
|
|
7144
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7132
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7145
7133
|
var _ref$show = _ref.show,
|
|
7146
7134
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7147
7135
|
_ref$role = _ref.role,
|
|
@@ -7167,7 +7155,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7167
7155
|
renderDialog = _ref.renderDialog,
|
|
7168
7156
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7169
7157
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7170
|
-
return /*#__PURE__*/
|
|
7158
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7171
7159
|
} : _ref$renderBackdrop,
|
|
7172
7160
|
providedManager = _ref.manager,
|
|
7173
7161
|
containerRef = _ref.container,
|
|
@@ -7225,7 +7213,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7225
7213
|
if (autoFocus) {
|
|
7226
7214
|
var currentActiveElement = activeElement(document);
|
|
7227
7215
|
|
|
7228
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7216
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7229
7217
|
lastFocusRef.current = currentActiveElement;
|
|
7230
7218
|
modal.dialog.focus();
|
|
7231
7219
|
}
|
|
@@ -7271,7 +7259,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7271
7259
|
|
|
7272
7260
|
var currentActiveElement = activeElement();
|
|
7273
7261
|
|
|
7274
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7262
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7275
7263
|
modal.dialog.focus();
|
|
7276
7264
|
}
|
|
7277
7265
|
});
|
|
@@ -7325,12 +7313,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7325
7313
|
tabIndex: -1
|
|
7326
7314
|
});
|
|
7327
7315
|
|
|
7328
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7316
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7329
7317
|
role: 'document'
|
|
7330
7318
|
}));
|
|
7331
7319
|
|
|
7332
7320
|
if (Transition) {
|
|
7333
|
-
dialog = /*#__PURE__*/
|
|
7321
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7334
7322
|
appear: true,
|
|
7335
7323
|
unmountOnExit: true,
|
|
7336
7324
|
"in": !!show,
|
|
@@ -7353,16 +7341,16 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7353
7341
|
});
|
|
7354
7342
|
|
|
7355
7343
|
if (BackdropTransition) {
|
|
7356
|
-
backdropElement = /*#__PURE__*/
|
|
7344
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7357
7345
|
appear: true,
|
|
7358
7346
|
"in": !!show
|
|
7359
7347
|
}, backdropElement);
|
|
7360
7348
|
}
|
|
7361
7349
|
}
|
|
7362
7350
|
|
|
7363
|
-
return /*#__PURE__*/
|
|
7351
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7364
7352
|
});
|
|
7365
|
-
var propTypes$
|
|
7353
|
+
var propTypes$2 = {
|
|
7366
7354
|
/**
|
|
7367
7355
|
* Set the visibility of the Modal
|
|
7368
7356
|
*/
|
|
@@ -7518,9 +7506,9 @@ var propTypes$8 = {
|
|
|
7518
7506
|
*/
|
|
7519
7507
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7520
7508
|
};
|
|
7521
|
-
Modal.displayName = 'Modal';
|
|
7522
|
-
Modal.propTypes = propTypes$
|
|
7523
|
-
var BaseModal = Object.assign(Modal, {
|
|
7509
|
+
Modal$1.displayName = 'Modal';
|
|
7510
|
+
Modal$1.propTypes = propTypes$2;
|
|
7511
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7524
7512
|
Manager: ModalManager
|
|
7525
7513
|
});
|
|
7526
7514
|
|
|
@@ -7599,12 +7587,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7599
7587
|
|
|
7600
7588
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7601
7589
|
|
|
7602
|
-
var ModalContext =
|
|
7590
|
+
var ModalContext = React.createContext({
|
|
7603
7591
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7604
7592
|
onHide: function onHide() {}
|
|
7605
7593
|
});
|
|
7606
7594
|
|
|
7607
|
-
var ModalDialog =
|
|
7595
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7608
7596
|
var bsPrefix = _ref.bsPrefix,
|
|
7609
7597
|
className = _ref.className,
|
|
7610
7598
|
contentClassName = _ref.contentClassName,
|
|
@@ -7612,14 +7600,14 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7612
7600
|
size = _ref.size,
|
|
7613
7601
|
children = _ref.children,
|
|
7614
7602
|
scrollable = _ref.scrollable,
|
|
7615
|
-
props = _objectWithoutPropertiesLoose
|
|
7603
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7616
7604
|
|
|
7617
7605
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7618
7606
|
var dialogClass = bsPrefix + "-dialog";
|
|
7619
|
-
return /*#__PURE__*/
|
|
7607
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7620
7608
|
ref: ref,
|
|
7621
7609
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7622
|
-
}), /*#__PURE__*/
|
|
7610
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7623
7611
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7624
7612
|
}, children));
|
|
7625
7613
|
});
|
|
@@ -7627,18 +7615,18 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7627
7615
|
|
|
7628
7616
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7629
7617
|
|
|
7630
|
-
var defaultProps$
|
|
7618
|
+
var defaultProps$e = {
|
|
7631
7619
|
closeLabel: 'Close',
|
|
7632
7620
|
closeButton: false
|
|
7633
7621
|
};
|
|
7634
|
-
var ModalHeader =
|
|
7622
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7635
7623
|
var bsPrefix = _ref.bsPrefix,
|
|
7636
7624
|
closeLabel = _ref.closeLabel,
|
|
7637
7625
|
closeButton = _ref.closeButton,
|
|
7638
7626
|
onHide = _ref.onHide,
|
|
7639
7627
|
className = _ref.className,
|
|
7640
7628
|
children = _ref.children,
|
|
7641
|
-
props = _objectWithoutPropertiesLoose
|
|
7629
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7642
7630
|
|
|
7643
7631
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7644
7632
|
var context = useContext(ModalContext);
|
|
@@ -7646,25 +7634,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7646
7634
|
if (context) context.onHide();
|
|
7647
7635
|
if (onHide) onHide();
|
|
7648
7636
|
});
|
|
7649
|
-
return /*#__PURE__*/
|
|
7637
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7650
7638
|
ref: ref
|
|
7651
7639
|
}, props, {
|
|
7652
7640
|
className: classnames(className, bsPrefix)
|
|
7653
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7641
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7654
7642
|
label: closeLabel,
|
|
7655
7643
|
onClick: handleClick
|
|
7656
7644
|
}));
|
|
7657
7645
|
});
|
|
7658
7646
|
ModalHeader.displayName = 'ModalHeader';
|
|
7659
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7647
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7660
7648
|
|
|
7661
|
-
var DivStyledAsH4
|
|
7649
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7662
7650
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7663
|
-
Component: DivStyledAsH4
|
|
7651
|
+
Component: DivStyledAsH4
|
|
7664
7652
|
});
|
|
7665
7653
|
|
|
7666
|
-
var manager
|
|
7667
|
-
var defaultProps$
|
|
7654
|
+
var manager;
|
|
7655
|
+
var defaultProps$d = {
|
|
7668
7656
|
show: false,
|
|
7669
7657
|
backdrop: true,
|
|
7670
7658
|
keyboard: true,
|
|
@@ -7677,16 +7665,16 @@ var defaultProps$r = {
|
|
|
7677
7665
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7678
7666
|
|
|
7679
7667
|
function DialogTransition(props) {
|
|
7680
|
-
return /*#__PURE__*/
|
|
7668
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7681
7669
|
}
|
|
7682
7670
|
|
|
7683
7671
|
function BackdropTransition(props) {
|
|
7684
|
-
return /*#__PURE__*/
|
|
7672
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7685
7673
|
}
|
|
7686
7674
|
/* eslint-enable no-use-before-define */
|
|
7687
7675
|
|
|
7688
7676
|
|
|
7689
|
-
var Modal
|
|
7677
|
+
var Modal = React.forwardRef(function (_ref, ref) {
|
|
7690
7678
|
var bsPrefix = _ref.bsPrefix,
|
|
7691
7679
|
className = _ref.className,
|
|
7692
7680
|
style = _ref.style,
|
|
@@ -7715,7 +7703,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7715
7703
|
onExited = _ref.onExited,
|
|
7716
7704
|
backdropClassName = _ref.backdropClassName,
|
|
7717
7705
|
propsManager = _ref.manager,
|
|
7718
|
-
props = _objectWithoutPropertiesLoose
|
|
7706
|
+
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"]);
|
|
7719
7707
|
|
|
7720
7708
|
var _useState = useState({}),
|
|
7721
7709
|
modalStyle = _useState[0],
|
|
@@ -7752,14 +7740,14 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7752
7740
|
|
|
7753
7741
|
function getModalManager() {
|
|
7754
7742
|
if (propsManager) return propsManager;
|
|
7755
|
-
if (!manager
|
|
7756
|
-
return manager
|
|
7743
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7744
|
+
return manager;
|
|
7757
7745
|
}
|
|
7758
7746
|
|
|
7759
7747
|
function updateDialogStyle(node) {
|
|
7760
7748
|
if (!canUseDOM) return;
|
|
7761
7749
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7762
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7750
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7763
7751
|
setStyle({
|
|
7764
7752
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7765
7753
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7881,12 +7869,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7881
7869
|
};
|
|
7882
7870
|
|
|
7883
7871
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7884
|
-
return /*#__PURE__*/
|
|
7872
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7885
7873
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7886
7874
|
}));
|
|
7887
7875
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7888
7876
|
|
|
7889
|
-
var baseModalStyle = _extends
|
|
7877
|
+
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7890
7878
|
|
|
7891
7879
|
|
|
7892
7880
|
if (!animation) {
|
|
@@ -7894,7 +7882,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7894
7882
|
}
|
|
7895
7883
|
|
|
7896
7884
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7897
|
-
return /*#__PURE__*/
|
|
7885
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7898
7886
|
role: "dialog"
|
|
7899
7887
|
}, dialogProps, {
|
|
7900
7888
|
style: baseModalStyle,
|
|
@@ -7902,7 +7890,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7902
7890
|
onClick: backdrop ? handleClick : undefined,
|
|
7903
7891
|
onMouseUp: handleMouseUp,
|
|
7904
7892
|
"aria-labelledby": ariaLabelledby
|
|
7905
|
-
}), /*#__PURE__*/
|
|
7893
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7906
7894
|
role: "document",
|
|
7907
7895
|
onMouseDown: handleDialogMouseDown,
|
|
7908
7896
|
className: dialogClassName,
|
|
@@ -7910,9 +7898,9 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7910
7898
|
}), children));
|
|
7911
7899
|
};
|
|
7912
7900
|
|
|
7913
|
-
return /*#__PURE__*/
|
|
7901
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7914
7902
|
value: modalContext
|
|
7915
|
-
}, /*#__PURE__*/
|
|
7903
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7916
7904
|
show: show,
|
|
7917
7905
|
ref: setModalRef,
|
|
7918
7906
|
backdrop: backdrop,
|
|
@@ -7940,38 +7928,38 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7940
7928
|
renderDialog: renderDialog
|
|
7941
7929
|
}));
|
|
7942
7930
|
});
|
|
7943
|
-
Modal
|
|
7944
|
-
Modal
|
|
7945
|
-
Modal
|
|
7946
|
-
Modal
|
|
7947
|
-
Modal
|
|
7948
|
-
Modal
|
|
7949
|
-
Modal
|
|
7950
|
-
Modal
|
|
7951
|
-
Modal
|
|
7952
|
-
|
|
7953
|
-
var NavItem =
|
|
7931
|
+
Modal.displayName = 'Modal';
|
|
7932
|
+
Modal.defaultProps = defaultProps$d;
|
|
7933
|
+
Modal.Body = ModalBody;
|
|
7934
|
+
Modal.Header = ModalHeader;
|
|
7935
|
+
Modal.Title = ModalTitle;
|
|
7936
|
+
Modal.Footer = ModalFooter;
|
|
7937
|
+
Modal.Dialog = ModalDialog;
|
|
7938
|
+
Modal.TRANSITION_DURATION = 300;
|
|
7939
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7940
|
+
|
|
7941
|
+
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7954
7942
|
function (_ref, ref) {
|
|
7955
7943
|
var bsPrefix = _ref.bsPrefix,
|
|
7956
7944
|
className = _ref.className,
|
|
7957
7945
|
children = _ref.children,
|
|
7958
7946
|
_ref$as = _ref.as,
|
|
7959
7947
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7960
|
-
props = _objectWithoutPropertiesLoose
|
|
7948
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7961
7949
|
|
|
7962
7950
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7963
|
-
return /*#__PURE__*/
|
|
7951
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
7964
7952
|
ref: ref,
|
|
7965
7953
|
className: classnames(className, bsPrefix)
|
|
7966
7954
|
}), children);
|
|
7967
7955
|
});
|
|
7968
7956
|
NavItem.displayName = 'NavItem';
|
|
7969
7957
|
|
|
7970
|
-
var defaultProps$
|
|
7958
|
+
var defaultProps$c = {
|
|
7971
7959
|
disabled: false,
|
|
7972
7960
|
as: SafeAnchor
|
|
7973
7961
|
};
|
|
7974
|
-
var NavLink =
|
|
7962
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
7975
7963
|
var bsPrefix = _ref.bsPrefix,
|
|
7976
7964
|
disabled = _ref.disabled,
|
|
7977
7965
|
className = _ref.className,
|
|
@@ -7979,10 +7967,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7979
7967
|
eventKey = _ref.eventKey,
|
|
7980
7968
|
onSelect = _ref.onSelect,
|
|
7981
7969
|
as = _ref.as,
|
|
7982
|
-
props = _objectWithoutPropertiesLoose
|
|
7970
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7983
7971
|
|
|
7984
7972
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7985
|
-
return /*#__PURE__*/
|
|
7973
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
7986
7974
|
href: href,
|
|
7987
7975
|
ref: ref,
|
|
7988
7976
|
eventKey: eventKey,
|
|
@@ -7993,13 +7981,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7993
7981
|
}));
|
|
7994
7982
|
});
|
|
7995
7983
|
NavLink.displayName = 'NavLink';
|
|
7996
|
-
NavLink.defaultProps = defaultProps$
|
|
7984
|
+
NavLink.defaultProps = defaultProps$c;
|
|
7997
7985
|
|
|
7998
|
-
var defaultProps$
|
|
7986
|
+
var defaultProps$b = {
|
|
7999
7987
|
justify: false,
|
|
8000
7988
|
fill: false
|
|
8001
7989
|
};
|
|
8002
|
-
var Nav =
|
|
7990
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8003
7991
|
var _classNames;
|
|
8004
7992
|
|
|
8005
7993
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8015,13 +8003,13 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8015
8003
|
className = _useUncontrolled.className,
|
|
8016
8004
|
children = _useUncontrolled.children,
|
|
8017
8005
|
activeKey = _useUncontrolled.activeKey,
|
|
8018
|
-
props = _objectWithoutPropertiesLoose
|
|
8006
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8019
8007
|
|
|
8020
8008
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8021
8009
|
var navbarBsPrefix;
|
|
8022
8010
|
var cardHeaderBsPrefix;
|
|
8023
8011
|
var isNavbar = false;
|
|
8024
|
-
var navbarContext = useContext(context
|
|
8012
|
+
var navbarContext = useContext(context);
|
|
8025
8013
|
var cardContext = useContext(context$1);
|
|
8026
8014
|
|
|
8027
8015
|
if (navbarContext) {
|
|
@@ -8031,7 +8019,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8031
8019
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8032
8020
|
}
|
|
8033
8021
|
|
|
8034
|
-
return /*#__PURE__*/
|
|
8022
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8035
8023
|
as: as,
|
|
8036
8024
|
ref: ref,
|
|
8037
8025
|
activeKey: activeKey,
|
|
@@ -8039,35 +8027,35 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8039
8027
|
}, props), children);
|
|
8040
8028
|
});
|
|
8041
8029
|
Nav.displayName = 'Nav';
|
|
8042
|
-
Nav.defaultProps = defaultProps$
|
|
8030
|
+
Nav.defaultProps = defaultProps$b;
|
|
8043
8031
|
Nav.Item = NavItem;
|
|
8044
8032
|
Nav.Link = NavLink;
|
|
8045
8033
|
|
|
8046
|
-
var NavbarBrand =
|
|
8034
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8047
8035
|
var bsPrefix = _ref.bsPrefix,
|
|
8048
8036
|
className = _ref.className,
|
|
8049
8037
|
as = _ref.as,
|
|
8050
|
-
props = _objectWithoutPropertiesLoose
|
|
8038
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8051
8039
|
|
|
8052
8040
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8053
8041
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8054
|
-
return /*#__PURE__*/
|
|
8042
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8055
8043
|
ref: ref,
|
|
8056
8044
|
className: classnames(className, bsPrefix)
|
|
8057
8045
|
}));
|
|
8058
8046
|
});
|
|
8059
8047
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8060
8048
|
|
|
8061
|
-
var NavbarCollapse =
|
|
8049
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8062
8050
|
var children = _ref.children,
|
|
8063
8051
|
bsPrefix = _ref.bsPrefix,
|
|
8064
|
-
props = _objectWithoutPropertiesLoose
|
|
8052
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8065
8053
|
|
|
8066
8054
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8067
|
-
return /*#__PURE__*/
|
|
8068
|
-
return /*#__PURE__*/
|
|
8055
|
+
return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
|
|
8056
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8069
8057
|
in: !!(context && context.expanded)
|
|
8070
|
-
}, props), /*#__PURE__*/
|
|
8058
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8071
8059
|
ref: ref,
|
|
8072
8060
|
className: bsPrefix
|
|
8073
8061
|
}, children));
|
|
@@ -8075,10 +8063,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8075
8063
|
});
|
|
8076
8064
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8077
8065
|
|
|
8078
|
-
var defaultProps$
|
|
8066
|
+
var defaultProps$a = {
|
|
8079
8067
|
label: 'Toggle navigation'
|
|
8080
8068
|
};
|
|
8081
|
-
var NavbarToggle =
|
|
8069
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8082
8070
|
var bsPrefix = _ref.bsPrefix,
|
|
8083
8071
|
className = _ref.className,
|
|
8084
8072
|
children = _ref.children,
|
|
@@ -8086,11 +8074,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8086
8074
|
_ref$as = _ref.as,
|
|
8087
8075
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8088
8076
|
onClick = _ref.onClick,
|
|
8089
|
-
props = _objectWithoutPropertiesLoose
|
|
8077
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8090
8078
|
|
|
8091
8079
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8092
8080
|
|
|
8093
|
-
var _ref2 = useContext(context
|
|
8081
|
+
var _ref2 = useContext(context) || {},
|
|
8094
8082
|
onToggle = _ref2.onToggle,
|
|
8095
8083
|
expanded = _ref2.expanded;
|
|
8096
8084
|
|
|
@@ -8103,27 +8091,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8103
8091
|
props.type = 'button';
|
|
8104
8092
|
}
|
|
8105
8093
|
|
|
8106
|
-
return /*#__PURE__*/
|
|
8094
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8107
8095
|
ref: ref,
|
|
8108
8096
|
onClick: handleClick,
|
|
8109
8097
|
"aria-label": label,
|
|
8110
8098
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8111
|
-
}), children || /*#__PURE__*/
|
|
8099
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8112
8100
|
className: bsPrefix + "-icon"
|
|
8113
8101
|
}));
|
|
8114
8102
|
});
|
|
8115
8103
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8116
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8104
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
8117
8105
|
|
|
8118
8106
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8119
8107
|
Component: 'span'
|
|
8120
8108
|
});
|
|
8121
|
-
var defaultProps$
|
|
8109
|
+
var defaultProps$9 = {
|
|
8122
8110
|
expand: true,
|
|
8123
8111
|
variant: 'light',
|
|
8124
8112
|
collapseOnSelect: false
|
|
8125
8113
|
};
|
|
8126
|
-
var Navbar =
|
|
8114
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8127
8115
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8128
8116
|
expanded: 'onToggle'
|
|
8129
8117
|
}),
|
|
@@ -8141,7 +8129,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8141
8129
|
_onToggle = _useUncontrolled.onToggle,
|
|
8142
8130
|
onSelect = _useUncontrolled.onSelect,
|
|
8143
8131
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8144
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
8132
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8145
8133
|
|
|
8146
8134
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8147
8135
|
var handleCollapse = useCallback(function () {
|
|
@@ -8171,24 +8159,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8171
8159
|
expanded: !!expanded
|
|
8172
8160
|
};
|
|
8173
8161
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8174
|
-
return /*#__PURE__*/
|
|
8162
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
8175
8163
|
value: navbarContext
|
|
8176
|
-
}, /*#__PURE__*/
|
|
8164
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8177
8165
|
value: handleCollapse
|
|
8178
|
-
}, /*#__PURE__*/
|
|
8166
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8179
8167
|
ref: ref
|
|
8180
8168
|
}, controlledProps, {
|
|
8181
8169
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8182
8170
|
}), children)));
|
|
8183
8171
|
});
|
|
8184
|
-
Navbar.defaultProps = defaultProps$
|
|
8172
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8185
8173
|
Navbar.displayName = 'Navbar';
|
|
8186
8174
|
Navbar.Brand = NavbarBrand;
|
|
8187
8175
|
Navbar.Toggle = NavbarToggle;
|
|
8188
8176
|
Navbar.Collapse = NavbarCollapse;
|
|
8189
8177
|
Navbar.Text = NavbarText;
|
|
8190
8178
|
|
|
8191
|
-
var propTypes$
|
|
8179
|
+
var propTypes$1 = {
|
|
8192
8180
|
/**
|
|
8193
8181
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8194
8182
|
* @type {string|number}
|
|
@@ -8224,7 +8212,7 @@ var propTypes$9 = {
|
|
|
8224
8212
|
/** @ignore */
|
|
8225
8213
|
bsPrefix: PropTypes.string
|
|
8226
8214
|
};
|
|
8227
|
-
var NavDropdown =
|
|
8215
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8228
8216
|
var id = _ref.id,
|
|
8229
8217
|
title = _ref.title,
|
|
8230
8218
|
children = _ref.children,
|
|
@@ -8234,37 +8222,37 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8234
8222
|
disabled = _ref.disabled,
|
|
8235
8223
|
active = _ref.active,
|
|
8236
8224
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8237
|
-
props = _objectWithoutPropertiesLoose
|
|
8225
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8238
8226
|
|
|
8239
|
-
return /*#__PURE__*/
|
|
8227
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8240
8228
|
ref: ref
|
|
8241
8229
|
}, props, {
|
|
8242
8230
|
as: NavItem
|
|
8243
|
-
}), /*#__PURE__*/
|
|
8231
|
+
}), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8244
8232
|
id: id,
|
|
8245
8233
|
eventKey: null,
|
|
8246
8234
|
active: active,
|
|
8247
8235
|
disabled: disabled,
|
|
8248
8236
|
childBsPrefix: bsPrefix,
|
|
8249
8237
|
as: NavLink
|
|
8250
|
-
}, title), /*#__PURE__*/
|
|
8238
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8251
8239
|
role: menuRole,
|
|
8252
8240
|
renderOnMount: renderMenuOnMount,
|
|
8253
8241
|
rootCloseEvent: rootCloseEvent
|
|
8254
8242
|
}, children));
|
|
8255
8243
|
});
|
|
8256
8244
|
NavDropdown.displayName = 'NavDropdown';
|
|
8257
|
-
NavDropdown.propTypes = propTypes$
|
|
8258
|
-
NavDropdown.Item = Dropdown
|
|
8259
|
-
NavDropdown.ItemText = Dropdown
|
|
8260
|
-
NavDropdown.Divider = Dropdown
|
|
8261
|
-
NavDropdown.Header = Dropdown
|
|
8245
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8246
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8247
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8248
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8249
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8262
8250
|
|
|
8263
8251
|
/**
|
|
8264
8252
|
* Built on top of `Popper.js`, the overlay component is
|
|
8265
8253
|
* great for custom tooltip overlays.
|
|
8266
8254
|
*/
|
|
8267
|
-
var Overlay = /*#__PURE__*/
|
|
8255
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8268
8256
|
var flip = props.flip,
|
|
8269
8257
|
offset = props.offset,
|
|
8270
8258
|
placement = props.placement,
|
|
@@ -8347,7 +8335,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8347
8335
|
onEnter = props.onEnter,
|
|
8348
8336
|
onEntering = props.onEntering,
|
|
8349
8337
|
onEntered = props.onEntered;
|
|
8350
|
-
child = /*#__PURE__*/
|
|
8338
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8351
8339
|
"in": props.show,
|
|
8352
8340
|
appear: true,
|
|
8353
8341
|
onExit: onExit,
|
|
@@ -8499,7 +8487,7 @@ Overlay.propTypes = {
|
|
|
8499
8487
|
onExited: PropTypes.func
|
|
8500
8488
|
};
|
|
8501
8489
|
|
|
8502
|
-
|
|
8490
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8503
8491
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8504
8492
|
|
|
8505
8493
|
function RefHolder() {
|
|
@@ -8513,38 +8501,38 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8513
8501
|
};
|
|
8514
8502
|
|
|
8515
8503
|
return RefHolder;
|
|
8516
|
-
}(
|
|
8504
|
+
})(React.Component);
|
|
8517
8505
|
|
|
8518
|
-
var defaultProps$
|
|
8506
|
+
var defaultProps$8 = {
|
|
8519
8507
|
active: false,
|
|
8520
8508
|
disabled: false,
|
|
8521
8509
|
activeLabel: '(current)'
|
|
8522
8510
|
};
|
|
8523
|
-
var PageItem =
|
|
8511
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8524
8512
|
var active = _ref.active,
|
|
8525
8513
|
disabled = _ref.disabled,
|
|
8526
8514
|
className = _ref.className,
|
|
8527
8515
|
style = _ref.style,
|
|
8528
8516
|
activeLabel = _ref.activeLabel,
|
|
8529
8517
|
children = _ref.children,
|
|
8530
|
-
props = _objectWithoutPropertiesLoose
|
|
8518
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8531
8519
|
|
|
8532
8520
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8533
|
-
return /*#__PURE__*/
|
|
8521
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8534
8522
|
ref: ref,
|
|
8535
8523
|
style: style,
|
|
8536
8524
|
className: classnames(className, 'page-item', {
|
|
8537
8525
|
active: active,
|
|
8538
8526
|
disabled: disabled
|
|
8539
8527
|
})
|
|
8540
|
-
}, /*#__PURE__*/
|
|
8528
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8541
8529
|
className: "page-link",
|
|
8542
8530
|
disabled: disabled
|
|
8543
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8531
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8544
8532
|
className: "sr-only"
|
|
8545
8533
|
}, activeLabel)));
|
|
8546
8534
|
});
|
|
8547
|
-
PageItem.defaultProps = defaultProps$
|
|
8535
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8548
8536
|
PageItem.displayName = 'PageItem';
|
|
8549
8537
|
|
|
8550
8538
|
function createButton(name, defaultValue, label) {
|
|
@@ -8554,11 +8542,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8554
8542
|
|
|
8555
8543
|
function Button(_ref2) {
|
|
8556
8544
|
var children = _ref2.children,
|
|
8557
|
-
props = _objectWithoutPropertiesLoose
|
|
8545
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8558
8546
|
|
|
8559
|
-
return /*#__PURE__*/
|
|
8547
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8560
8548
|
"aria-hidden": "true"
|
|
8561
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8549
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8562
8550
|
className: "sr-only"
|
|
8563
8551
|
}, label));
|
|
8564
8552
|
}
|
|
@@ -8581,15 +8569,15 @@ var Last = createButton('Last', '»');
|
|
|
8581
8569
|
* @property {PageItem} Next
|
|
8582
8570
|
* @property {PageItem} Last
|
|
8583
8571
|
*/
|
|
8584
|
-
var Pagination =
|
|
8572
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8585
8573
|
var bsPrefix = _ref.bsPrefix,
|
|
8586
8574
|
className = _ref.className,
|
|
8587
8575
|
children = _ref.children,
|
|
8588
8576
|
size = _ref.size,
|
|
8589
|
-
props = _objectWithoutPropertiesLoose
|
|
8577
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8590
8578
|
|
|
8591
8579
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8592
|
-
return /*#__PURE__*/
|
|
8580
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8593
8581
|
ref: ref
|
|
8594
8582
|
}, props, {
|
|
8595
8583
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8602,75 +8590,75 @@ Pagination.Item = PageItem;
|
|
|
8602
8590
|
Pagination.Next = Next;
|
|
8603
8591
|
Pagination.Last = Last;
|
|
8604
8592
|
|
|
8605
|
-
var PopoverTitle =
|
|
8593
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8606
8594
|
var _ref$as = _ref.as,
|
|
8607
8595
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8608
8596
|
bsPrefix = _ref.bsPrefix,
|
|
8609
8597
|
className = _ref.className,
|
|
8610
8598
|
children = _ref.children,
|
|
8611
|
-
props = _objectWithoutPropertiesLoose
|
|
8599
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8612
8600
|
|
|
8613
8601
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8614
|
-
return /*#__PURE__*/
|
|
8602
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8615
8603
|
ref: ref
|
|
8616
8604
|
}, props, {
|
|
8617
8605
|
className: classnames(bsPrefix, className)
|
|
8618
8606
|
}), children);
|
|
8619
8607
|
});
|
|
8620
8608
|
|
|
8621
|
-
var PopoverContent =
|
|
8609
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8622
8610
|
var _ref$as = _ref.as,
|
|
8623
8611
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8624
8612
|
bsPrefix = _ref.bsPrefix,
|
|
8625
8613
|
className = _ref.className,
|
|
8626
8614
|
children = _ref.children,
|
|
8627
|
-
props = _objectWithoutPropertiesLoose
|
|
8615
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8628
8616
|
|
|
8629
8617
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8630
|
-
return /*#__PURE__*/
|
|
8618
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8631
8619
|
ref: ref
|
|
8632
8620
|
}, props, {
|
|
8633
8621
|
className: classnames(className, bsPrefix)
|
|
8634
8622
|
}), children);
|
|
8635
8623
|
});
|
|
8636
8624
|
|
|
8637
|
-
var defaultProps$
|
|
8625
|
+
var defaultProps$7 = {
|
|
8638
8626
|
placement: 'right'
|
|
8639
8627
|
};
|
|
8640
|
-
var Popover =
|
|
8628
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8641
8629
|
var bsPrefix = _ref.bsPrefix,
|
|
8642
8630
|
placement = _ref.placement,
|
|
8643
8631
|
className = _ref.className,
|
|
8644
8632
|
style = _ref.style,
|
|
8645
8633
|
children = _ref.children,
|
|
8646
8634
|
content = _ref.content,
|
|
8647
|
-
arrowProps = _ref.arrowProps
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
props = _objectWithoutPropertiesLoose
|
|
8635
|
+
arrowProps = _ref.arrowProps;
|
|
8636
|
+
_ref.popper;
|
|
8637
|
+
_ref.show;
|
|
8638
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8651
8639
|
|
|
8652
8640
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8653
8641
|
|
|
8654
8642
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8655
8643
|
primaryPlacement = _ref2[0];
|
|
8656
8644
|
|
|
8657
|
-
return /*#__PURE__*/
|
|
8645
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8658
8646
|
ref: ref,
|
|
8659
8647
|
role: "tooltip",
|
|
8660
8648
|
style: style,
|
|
8661
8649
|
"x-placement": primaryPlacement,
|
|
8662
8650
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8663
|
-
}, props), /*#__PURE__*/
|
|
8651
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8664
8652
|
className: "arrow"
|
|
8665
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8653
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8666
8654
|
});
|
|
8667
|
-
Popover.defaultProps = defaultProps$
|
|
8655
|
+
Popover.defaultProps = defaultProps$7;
|
|
8668
8656
|
Popover.Title = PopoverTitle;
|
|
8669
8657
|
Popover.Content = PopoverContent;
|
|
8670
8658
|
|
|
8671
8659
|
var ROUND_PRECISION = 1000;
|
|
8672
8660
|
|
|
8673
|
-
var defaultProps$
|
|
8661
|
+
var defaultProps$6 = {
|
|
8674
8662
|
min: 0,
|
|
8675
8663
|
max: 100,
|
|
8676
8664
|
animated: false,
|
|
@@ -8698,27 +8686,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8698
8686
|
style = _ref.style,
|
|
8699
8687
|
variant = _ref.variant,
|
|
8700
8688
|
bsPrefix = _ref.bsPrefix,
|
|
8701
|
-
props = _objectWithoutPropertiesLoose
|
|
8689
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8702
8690
|
|
|
8703
|
-
return /*#__PURE__*/
|
|
8691
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8704
8692
|
ref: ref
|
|
8705
8693
|
}, props, {
|
|
8706
8694
|
role: "progressbar",
|
|
8707
8695
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8708
|
-
style: _extends
|
|
8696
|
+
style: _extends({
|
|
8709
8697
|
width: getPercentage(now, min, max) + "%"
|
|
8710
8698
|
}, style),
|
|
8711
8699
|
"aria-valuenow": now,
|
|
8712
8700
|
"aria-valuemin": min,
|
|
8713
8701
|
"aria-valuemax": max
|
|
8714
|
-
}), srOnly ? /*#__PURE__*/
|
|
8702
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8715
8703
|
className: "sr-only"
|
|
8716
8704
|
}, label) : label);
|
|
8717
8705
|
}
|
|
8718
8706
|
|
|
8719
|
-
var ProgressBar =
|
|
8707
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8720
8708
|
var isChild = _ref2.isChild,
|
|
8721
|
-
props = _objectWithoutPropertiesLoose
|
|
8709
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8722
8710
|
|
|
8723
8711
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8724
8712
|
|
|
@@ -8737,9 +8725,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8737
8725
|
variant = props.variant,
|
|
8738
8726
|
className = props.className,
|
|
8739
8727
|
children = props.children,
|
|
8740
|
-
wrapperProps = _objectWithoutPropertiesLoose
|
|
8728
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8741
8729
|
|
|
8742
|
-
return /*#__PURE__*/
|
|
8730
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8743
8731
|
ref: ref
|
|
8744
8732
|
}, wrapperProps, {
|
|
8745
8733
|
className: classnames(className, bsPrefix)
|
|
@@ -8760,46 +8748,46 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8760
8748
|
}, ref));
|
|
8761
8749
|
});
|
|
8762
8750
|
ProgressBar.displayName = 'ProgressBar';
|
|
8763
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8751
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8764
8752
|
|
|
8765
|
-
var defaultProps$
|
|
8753
|
+
var defaultProps$5 = {
|
|
8766
8754
|
aspectRatio: '1by1'
|
|
8767
8755
|
};
|
|
8768
|
-
var ResponsiveEmbed =
|
|
8756
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8769
8757
|
var bsPrefix = _ref.bsPrefix,
|
|
8770
8758
|
className = _ref.className,
|
|
8771
8759
|
children = _ref.children,
|
|
8772
8760
|
aspectRatio = _ref.aspectRatio,
|
|
8773
|
-
props = _objectWithoutPropertiesLoose
|
|
8761
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8774
8762
|
|
|
8775
8763
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8776
|
-
var child =
|
|
8777
|
-
return /*#__PURE__*/
|
|
8764
|
+
var child = React.Children.only(children);
|
|
8765
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8778
8766
|
ref: ref
|
|
8779
8767
|
}, props, {
|
|
8780
8768
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8781
|
-
}),
|
|
8769
|
+
}), React.cloneElement(child, {
|
|
8782
8770
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8783
8771
|
}));
|
|
8784
8772
|
});
|
|
8785
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8773
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8786
8774
|
|
|
8787
|
-
var DEVICE_SIZES
|
|
8788
|
-
var defaultProps$
|
|
8775
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8776
|
+
var defaultProps$4 = {
|
|
8789
8777
|
noGutters: false
|
|
8790
8778
|
};
|
|
8791
|
-
var Row =
|
|
8779
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8792
8780
|
var bsPrefix = _ref.bsPrefix,
|
|
8793
8781
|
className = _ref.className,
|
|
8794
8782
|
noGutters = _ref.noGutters,
|
|
8795
8783
|
_ref$as = _ref.as,
|
|
8796
8784
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8797
|
-
props = _objectWithoutPropertiesLoose
|
|
8785
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8798
8786
|
|
|
8799
8787
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8800
8788
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8801
8789
|
var classes = [];
|
|
8802
|
-
DEVICE_SIZES
|
|
8790
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8803
8791
|
var propValue = props[brkPoint];
|
|
8804
8792
|
delete props[brkPoint];
|
|
8805
8793
|
var cols;
|
|
@@ -8813,16 +8801,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8813
8801
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8814
8802
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8815
8803
|
});
|
|
8816
|
-
return /*#__PURE__*/
|
|
8804
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8817
8805
|
ref: ref
|
|
8818
8806
|
}, props, {
|
|
8819
8807
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8820
8808
|
}));
|
|
8821
8809
|
});
|
|
8822
8810
|
Row.displayName = 'Row';
|
|
8823
|
-
Row.defaultProps = defaultProps$
|
|
8811
|
+
Row.defaultProps = defaultProps$4;
|
|
8824
8812
|
|
|
8825
|
-
var Spinner =
|
|
8813
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8826
8814
|
var bsPrefix = _ref.bsPrefix,
|
|
8827
8815
|
variant = _ref.variant,
|
|
8828
8816
|
animation = _ref.animation,
|
|
@@ -8831,11 +8819,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8831
8819
|
_ref$as = _ref.as,
|
|
8832
8820
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8833
8821
|
className = _ref.className,
|
|
8834
|
-
props = _objectWithoutPropertiesLoose
|
|
8822
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8835
8823
|
|
|
8836
8824
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8837
8825
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8838
|
-
return /*#__PURE__*/
|
|
8826
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8839
8827
|
ref: ref
|
|
8840
8828
|
}, props, {
|
|
8841
8829
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8843,7 +8831,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8843
8831
|
});
|
|
8844
8832
|
Spinner.displayName = 'Spinner';
|
|
8845
8833
|
|
|
8846
|
-
var propTypes
|
|
8834
|
+
var propTypes = {
|
|
8847
8835
|
/**
|
|
8848
8836
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8849
8837
|
* @type {string|number}
|
|
@@ -8905,11 +8893,11 @@ var propTypes$a = {
|
|
|
8905
8893
|
/** @ignore */
|
|
8906
8894
|
size: PropTypes.string
|
|
8907
8895
|
};
|
|
8908
|
-
var defaultProps$
|
|
8896
|
+
var defaultProps$3 = {
|
|
8909
8897
|
toggleLabel: 'Toggle dropdown',
|
|
8910
8898
|
type: 'button'
|
|
8911
8899
|
};
|
|
8912
|
-
var SplitButton =
|
|
8900
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8913
8901
|
var id = _ref.id,
|
|
8914
8902
|
bsPrefix = _ref.bsPrefix,
|
|
8915
8903
|
size = _ref.size,
|
|
@@ -8925,13 +8913,13 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8925
8913
|
menuRole = _ref.menuRole,
|
|
8926
8914
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8927
8915
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8928
|
-
props = _objectWithoutPropertiesLoose
|
|
8916
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8929
8917
|
|
|
8930
|
-
return /*#__PURE__*/
|
|
8918
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8931
8919
|
ref: ref
|
|
8932
8920
|
}, props, {
|
|
8933
8921
|
as: ButtonGroup
|
|
8934
|
-
}), /*#__PURE__*/
|
|
8922
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8935
8923
|
size: size,
|
|
8936
8924
|
variant: variant,
|
|
8937
8925
|
disabled: props.disabled,
|
|
@@ -8940,24 +8928,24 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8940
8928
|
target: target,
|
|
8941
8929
|
onClick: onClick,
|
|
8942
8930
|
type: type
|
|
8943
|
-
}, title), /*#__PURE__*/
|
|
8931
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8944
8932
|
split: true,
|
|
8945
8933
|
id: id ? id.toString() : undefined,
|
|
8946
8934
|
size: size,
|
|
8947
8935
|
variant: variant,
|
|
8948
8936
|
disabled: props.disabled,
|
|
8949
8937
|
childBsPrefix: bsPrefix
|
|
8950
|
-
}, /*#__PURE__*/
|
|
8938
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8951
8939
|
className: "sr-only"
|
|
8952
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8940
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8953
8941
|
align: menuAlign,
|
|
8954
8942
|
role: menuRole,
|
|
8955
8943
|
renderOnMount: renderMenuOnMount,
|
|
8956
8944
|
rootCloseEvent: rootCloseEvent
|
|
8957
8945
|
}, children));
|
|
8958
8946
|
});
|
|
8959
|
-
SplitButton.propTypes = propTypes
|
|
8960
|
-
SplitButton.defaultProps = defaultProps$
|
|
8947
|
+
SplitButton.propTypes = propTypes;
|
|
8948
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
8961
8949
|
SplitButton.displayName = 'SplitButton';
|
|
8962
8950
|
|
|
8963
8951
|
var TabContainer = function TabContainer(props) {
|
|
@@ -8993,22 +8981,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8993
8981
|
}
|
|
8994
8982
|
};
|
|
8995
8983
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8996
|
-
return /*#__PURE__*/
|
|
8984
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
8997
8985
|
value: tabContext
|
|
8998
|
-
}, /*#__PURE__*/
|
|
8986
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8999
8987
|
value: onSelect || null
|
|
9000
8988
|
}, children));
|
|
9001
8989
|
};
|
|
9002
8990
|
|
|
9003
|
-
var TabContent =
|
|
8991
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9004
8992
|
var bsPrefix = _ref.bsPrefix,
|
|
9005
8993
|
_ref$as = _ref.as,
|
|
9006
8994
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9007
8995
|
className = _ref.className,
|
|
9008
|
-
props = _objectWithoutPropertiesLoose
|
|
8996
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9009
8997
|
|
|
9010
8998
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9011
|
-
return /*#__PURE__*/
|
|
8999
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9012
9000
|
ref: ref
|
|
9013
9001
|
}, props, {
|
|
9014
9002
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9022,11 +9010,11 @@ function useTabContext(props) {
|
|
|
9022
9010
|
var activeKey = context.activeKey,
|
|
9023
9011
|
getControlledId = context.getControlledId,
|
|
9024
9012
|
getControllerId = context.getControllerId,
|
|
9025
|
-
rest = _objectWithoutPropertiesLoose
|
|
9013
|
+
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9026
9014
|
|
|
9027
9015
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9028
9016
|
var key = makeEventKey(props.eventKey);
|
|
9029
|
-
return _extends
|
|
9017
|
+
return _extends({}, props, {
|
|
9030
9018
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9031
9019
|
id: getControlledId(props.eventKey),
|
|
9032
9020
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9036,7 +9024,7 @@ function useTabContext(props) {
|
|
|
9036
9024
|
});
|
|
9037
9025
|
}
|
|
9038
9026
|
|
|
9039
|
-
var TabPane =
|
|
9027
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9040
9028
|
var _useTabContext = useTabContext(props),
|
|
9041
9029
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9042
9030
|
className = _useTabContext.className,
|
|
@@ -9051,13 +9039,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9051
9039
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9052
9040
|
Transition = _useTabContext.transition,
|
|
9053
9041
|
_useTabContext$as = _useTabContext.as,
|
|
9054
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9055
|
-
|
|
9056
|
-
rest = _objectWithoutPropertiesLoose
|
|
9042
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9043
|
+
_useTabContext.eventKey;
|
|
9044
|
+
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9057
9045
|
|
|
9058
9046
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9059
9047
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9060
|
-
var pane = /*#__PURE__*/
|
|
9048
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9061
9049
|
ref: ref,
|
|
9062
9050
|
role: "tabpanel",
|
|
9063
9051
|
"aria-hidden": !active,
|
|
@@ -9065,7 +9053,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9065
9053
|
active: active
|
|
9066
9054
|
})
|
|
9067
9055
|
}));
|
|
9068
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9056
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9069
9057
|
in: active,
|
|
9070
9058
|
onEnter: onEnter,
|
|
9071
9059
|
onEntering: onEntering,
|
|
@@ -9078,9 +9066,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9078
9066
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9079
9067
|
// conflict with the top level one.
|
|
9080
9068
|
|
|
9081
|
-
return /*#__PURE__*/
|
|
9069
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9082
9070
|
value: null
|
|
9083
|
-
}, /*#__PURE__*/
|
|
9071
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9084
9072
|
value: null
|
|
9085
9073
|
}, pane));
|
|
9086
9074
|
});
|
|
@@ -9101,13 +9089,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9101
9089
|
};
|
|
9102
9090
|
|
|
9103
9091
|
return Tab;
|
|
9104
|
-
}(
|
|
9092
|
+
}(React.Component);
|
|
9105
9093
|
|
|
9106
9094
|
Tab.Container = TabContainer;
|
|
9107
9095
|
Tab.Content = TabContent;
|
|
9108
9096
|
Tab.Pane = TabPane;
|
|
9109
9097
|
|
|
9110
|
-
|
|
9098
|
+
React.forwardRef(function (_ref, ref) {
|
|
9111
9099
|
var bsPrefix = _ref.bsPrefix,
|
|
9112
9100
|
className = _ref.className,
|
|
9113
9101
|
striped = _ref.striped,
|
|
@@ -9117,11 +9105,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9117
9105
|
size = _ref.size,
|
|
9118
9106
|
variant = _ref.variant,
|
|
9119
9107
|
responsive = _ref.responsive,
|
|
9120
|
-
props = _objectWithoutPropertiesLoose
|
|
9108
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9121
9109
|
|
|
9122
9110
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9123
9111
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9124
|
-
var table = /*#__PURE__*/
|
|
9112
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9125
9113
|
className: classes,
|
|
9126
9114
|
ref: ref
|
|
9127
9115
|
}));
|
|
@@ -9133,7 +9121,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9133
9121
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9134
9122
|
}
|
|
9135
9123
|
|
|
9136
|
-
return /*#__PURE__*/
|
|
9124
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9137
9125
|
className: responsiveClass
|
|
9138
9126
|
}, table);
|
|
9139
9127
|
}
|
|
@@ -9141,22 +9129,22 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9141
9129
|
return table;
|
|
9142
9130
|
});
|
|
9143
9131
|
|
|
9144
|
-
var ToastContext =
|
|
9132
|
+
var ToastContext = React.createContext({
|
|
9145
9133
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9146
9134
|
onClose: function onClose() {}
|
|
9147
9135
|
});
|
|
9148
9136
|
|
|
9149
|
-
var defaultProps$
|
|
9137
|
+
var defaultProps$2 = {
|
|
9150
9138
|
closeLabel: 'Close',
|
|
9151
9139
|
closeButton: true
|
|
9152
9140
|
};
|
|
9153
|
-
var ToastHeader =
|
|
9141
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9154
9142
|
var bsPrefix = _ref.bsPrefix,
|
|
9155
9143
|
closeLabel = _ref.closeLabel,
|
|
9156
9144
|
closeButton = _ref.closeButton,
|
|
9157
9145
|
className = _ref.className,
|
|
9158
9146
|
children = _ref.children,
|
|
9159
|
-
props = _objectWithoutPropertiesLoose
|
|
9147
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9160
9148
|
|
|
9161
9149
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9162
9150
|
var context = useContext(ToastContext);
|
|
@@ -9165,11 +9153,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9165
9153
|
context.onClose(e);
|
|
9166
9154
|
}
|
|
9167
9155
|
});
|
|
9168
|
-
return /*#__PURE__*/
|
|
9156
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9169
9157
|
ref: ref
|
|
9170
9158
|
}, props, {
|
|
9171
9159
|
className: classnames(bsPrefix, className)
|
|
9172
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9160
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9173
9161
|
label: closeLabel,
|
|
9174
9162
|
onClick: handleClick,
|
|
9175
9163
|
className: "ml-2 mb-1",
|
|
@@ -9177,11 +9165,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9177
9165
|
}));
|
|
9178
9166
|
});
|
|
9179
9167
|
ToastHeader.displayName = 'ToastHeader';
|
|
9180
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9168
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9181
9169
|
|
|
9182
9170
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9183
9171
|
|
|
9184
|
-
var Toast =
|
|
9172
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9185
9173
|
var bsPrefix = _ref.bsPrefix,
|
|
9186
9174
|
className = _ref.className,
|
|
9187
9175
|
children = _ref.children,
|
|
@@ -9196,7 +9184,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9196
9184
|
_ref$autohide = _ref.autohide,
|
|
9197
9185
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9198
9186
|
onClose = _ref.onClose,
|
|
9199
|
-
props = _objectWithoutPropertiesLoose
|
|
9187
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9200
9188
|
|
|
9201
9189
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9202
9190
|
// timer in case these values change.
|
|
@@ -9224,16 +9212,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9224
9212
|
};
|
|
9225
9213
|
}, [onClose]);
|
|
9226
9214
|
var hasAnimation = !!(Transition && animation);
|
|
9227
|
-
var toast = /*#__PURE__*/
|
|
9215
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9228
9216
|
ref: ref,
|
|
9229
9217
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9230
9218
|
role: "alert",
|
|
9231
9219
|
"aria-live": "assertive",
|
|
9232
9220
|
"aria-atomic": "true"
|
|
9233
9221
|
}), children);
|
|
9234
|
-
return /*#__PURE__*/
|
|
9222
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9235
9223
|
value: toastContext
|
|
9236
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9224
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9237
9225
|
in: show,
|
|
9238
9226
|
unmountOnExit: true
|
|
9239
9227
|
}, toast) : toast);
|
|
@@ -9244,11 +9232,11 @@ Object.assign(Toast, {
|
|
|
9244
9232
|
Header: ToastHeader
|
|
9245
9233
|
});
|
|
9246
9234
|
|
|
9247
|
-
var noop
|
|
9235
|
+
var noop = function noop() {
|
|
9248
9236
|
return undefined;
|
|
9249
9237
|
};
|
|
9250
9238
|
|
|
9251
|
-
var ToggleButton =
|
|
9239
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9252
9240
|
var children = _ref.children,
|
|
9253
9241
|
name = _ref.name,
|
|
9254
9242
|
className = _ref.className,
|
|
@@ -9258,7 +9246,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9258
9246
|
value = _ref.value,
|
|
9259
9247
|
disabled = _ref.disabled,
|
|
9260
9248
|
inputRef = _ref.inputRef,
|
|
9261
|
-
props = _objectWithoutPropertiesLoose
|
|
9249
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9262
9250
|
|
|
9263
9251
|
var _useState = useState(false),
|
|
9264
9252
|
focused = _useState[0],
|
|
@@ -9270,13 +9258,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9270
9258
|
var handleBlur = useCallback(function (e) {
|
|
9271
9259
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9272
9260
|
}, []);
|
|
9273
|
-
return /*#__PURE__*/
|
|
9261
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9274
9262
|
ref: ref,
|
|
9275
9263
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9276
9264
|
type: undefined,
|
|
9277
9265
|
active: !!checked,
|
|
9278
9266
|
as: "label"
|
|
9279
|
-
}), /*#__PURE__*/
|
|
9267
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9280
9268
|
name: name,
|
|
9281
9269
|
type: type,
|
|
9282
9270
|
value: value,
|
|
@@ -9286,16 +9274,16 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9286
9274
|
disabled: !!disabled,
|
|
9287
9275
|
onFocus: handleFocus,
|
|
9288
9276
|
onBlur: handleBlur,
|
|
9289
|
-
onChange: onChange || noop
|
|
9277
|
+
onChange: onChange || noop
|
|
9290
9278
|
}), children);
|
|
9291
9279
|
});
|
|
9292
9280
|
ToggleButton.displayName = 'ToggleButton';
|
|
9293
9281
|
|
|
9294
|
-
var defaultProps$
|
|
9282
|
+
var defaultProps$1 = {
|
|
9295
9283
|
type: 'radio',
|
|
9296
9284
|
vertical: false
|
|
9297
9285
|
};
|
|
9298
|
-
var ToggleButtonGroup =
|
|
9286
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9299
9287
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9300
9288
|
value: 'onChange'
|
|
9301
9289
|
}),
|
|
@@ -9304,7 +9292,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9304
9292
|
name = _useUncontrolled.name,
|
|
9305
9293
|
value = _useUncontrolled.value,
|
|
9306
9294
|
onChange = _useUncontrolled.onChange,
|
|
9307
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
9295
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9308
9296
|
|
|
9309
9297
|
var getValues = function getValues() {
|
|
9310
9298
|
return value == null ? [] : [].concat(value);
|
|
@@ -9333,7 +9321,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9333
9321
|
};
|
|
9334
9322
|
|
|
9335
9323
|
!(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;
|
|
9336
|
-
return /*#__PURE__*/
|
|
9324
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9337
9325
|
ref: ref,
|
|
9338
9326
|
toggle: true
|
|
9339
9327
|
}), map(children, function (child) {
|
|
@@ -9346,7 +9334,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9346
9334
|
return handleToggle(childVal, e);
|
|
9347
9335
|
};
|
|
9348
9336
|
|
|
9349
|
-
return
|
|
9337
|
+
return React.cloneElement(child, {
|
|
9350
9338
|
type: type,
|
|
9351
9339
|
name: child.name || name,
|
|
9352
9340
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9354,44 +9342,44 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9354
9342
|
});
|
|
9355
9343
|
}));
|
|
9356
9344
|
});
|
|
9357
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9345
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9358
9346
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9359
9347
|
|
|
9360
|
-
var defaultProps
|
|
9348
|
+
var defaultProps = {
|
|
9361
9349
|
placement: 'right'
|
|
9362
9350
|
};
|
|
9363
|
-
var Tooltip =
|
|
9351
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9364
9352
|
var bsPrefix = _ref.bsPrefix,
|
|
9365
9353
|
placement = _ref.placement,
|
|
9366
9354
|
className = _ref.className,
|
|
9367
9355
|
style = _ref.style,
|
|
9368
9356
|
children = _ref.children,
|
|
9369
|
-
arrowProps = _ref.arrowProps
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
props = _objectWithoutPropertiesLoose
|
|
9357
|
+
arrowProps = _ref.arrowProps;
|
|
9358
|
+
_ref.popper;
|
|
9359
|
+
_ref.show;
|
|
9360
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9373
9361
|
|
|
9374
9362
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9375
9363
|
|
|
9376
9364
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9377
9365
|
primaryPlacement = _ref2[0];
|
|
9378
9366
|
|
|
9379
|
-
return /*#__PURE__*/
|
|
9367
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9380
9368
|
ref: ref,
|
|
9381
9369
|
style: style,
|
|
9382
9370
|
role: "tooltip",
|
|
9383
9371
|
"x-placement": primaryPlacement,
|
|
9384
9372
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9385
|
-
}, props), /*#__PURE__*/
|
|
9373
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9386
9374
|
className: "arrow"
|
|
9387
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9375
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9388
9376
|
className: bsPrefix + "-inner"
|
|
9389
9377
|
}, children));
|
|
9390
9378
|
});
|
|
9391
|
-
Tooltip.defaultProps = defaultProps
|
|
9379
|
+
Tooltip.defaultProps = defaultProps;
|
|
9392
9380
|
Tooltip.displayName = 'Tooltip';
|
|
9393
9381
|
|
|
9394
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9382
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9395
9383
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9396
9384
|
styleInject(css);
|
|
9397
9385
|
|
|
@@ -9402,54 +9390,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9402
9390
|
client = props.client;
|
|
9403
9391
|
|
|
9404
9392
|
|
|
9405
|
-
return
|
|
9393
|
+
return React.createElement(
|
|
9406
9394
|
'div',
|
|
9407
9395
|
{ className: styles.article },
|
|
9408
|
-
|
|
9396
|
+
React.createElement(
|
|
9409
9397
|
'a',
|
|
9410
9398
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9411
|
-
|
|
9399
|
+
React.createElement(
|
|
9412
9400
|
'div',
|
|
9413
9401
|
{ className: styles.thumb },
|
|
9414
|
-
|
|
9402
|
+
React.createElement(
|
|
9415
9403
|
'figure',
|
|
9416
9404
|
null,
|
|
9417
|
-
|
|
9405
|
+
React.createElement(
|
|
9418
9406
|
LazyLoad,
|
|
9419
9407
|
null,
|
|
9420
|
-
|
|
9408
|
+
React.createElement('img', {
|
|
9421
9409
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9422
9410
|
})
|
|
9423
9411
|
)
|
|
9424
9412
|
)
|
|
9425
9413
|
),
|
|
9426
|
-
|
|
9414
|
+
React.createElement(
|
|
9427
9415
|
'div',
|
|
9428
9416
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9429
|
-
|
|
9417
|
+
React.createElement(
|
|
9430
9418
|
'div',
|
|
9431
9419
|
{ className: styles.name },
|
|
9432
9420
|
data.name
|
|
9433
9421
|
),
|
|
9434
|
-
data.published &&
|
|
9422
|
+
data.published && React.createElement(
|
|
9435
9423
|
'p',
|
|
9436
9424
|
{ className: styles.published },
|
|
9437
9425
|
moment(data.published).format('MMMM Do YYYY')
|
|
9438
9426
|
),
|
|
9439
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9427
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9440
9428
|
'p',
|
|
9441
9429
|
{ className: styles.author },
|
|
9442
9430
|
'By ',
|
|
9443
|
-
|
|
9431
|
+
React.createElement(
|
|
9444
9432
|
'span',
|
|
9445
9433
|
null,
|
|
9446
9434
|
data.authorMapping.displayName
|
|
9447
9435
|
)
|
|
9448
9436
|
),
|
|
9449
|
-
data.description &&
|
|
9437
|
+
data.description && React.createElement(
|
|
9450
9438
|
'div',
|
|
9451
9439
|
{ className: 'media-series-desc' },
|
|
9452
|
-
|
|
9440
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9453
9441
|
)
|
|
9454
9442
|
)
|
|
9455
9443
|
)
|
|
@@ -9478,11 +9466,11 @@ var Filter = function Filter(_ref) {
|
|
|
9478
9466
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9479
9467
|
grandChildData = _useState6[0],
|
|
9480
9468
|
setGrandChildData = _useState6[1];
|
|
9481
|
-
/*
|
|
9482
|
-
{parent: showAll,
|
|
9483
|
-
chidlren: show selected from parent,
|
|
9484
|
-
grandchildren: show selected from children
|
|
9485
|
-
}
|
|
9469
|
+
/*
|
|
9470
|
+
{parent: showAll,
|
|
9471
|
+
chidlren: show selected from parent,
|
|
9472
|
+
grandchildren: show selected from children
|
|
9473
|
+
}
|
|
9486
9474
|
*/
|
|
9487
9475
|
|
|
9488
9476
|
|
|
@@ -9497,7 +9485,7 @@ var Filter = function Filter(_ref) {
|
|
|
9497
9485
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9498
9486
|
if (type === 'parent') {
|
|
9499
9487
|
setParentData(function (prevState) {
|
|
9500
|
-
return _extends$
|
|
9488
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9501
9489
|
});
|
|
9502
9490
|
if (group && group.children && group.children.length > 0) {
|
|
9503
9491
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9511,7 +9499,7 @@ var Filter = function Filter(_ref) {
|
|
|
9511
9499
|
}
|
|
9512
9500
|
if (type === 'child') {
|
|
9513
9501
|
setChildData(function (prevState) {
|
|
9514
|
-
return _extends$
|
|
9502
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9515
9503
|
});
|
|
9516
9504
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9517
9505
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9530,7 +9518,7 @@ var Filter = function Filter(_ref) {
|
|
|
9530
9518
|
}
|
|
9531
9519
|
if (type === 'grandchild') {
|
|
9532
9520
|
setGrandChildData(function (prevState) {
|
|
9533
|
-
return _extends$
|
|
9521
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9534
9522
|
});
|
|
9535
9523
|
//handle filter
|
|
9536
9524
|
if (!group._id) {
|
|
@@ -9546,14 +9534,14 @@ var Filter = function Filter(_ref) {
|
|
|
9546
9534
|
}
|
|
9547
9535
|
};
|
|
9548
9536
|
|
|
9549
|
-
return
|
|
9537
|
+
return React.createElement(
|
|
9550
9538
|
'div',
|
|
9551
9539
|
{ className: 'flex-container' },
|
|
9552
|
-
parentData &&
|
|
9540
|
+
parentData && React.createElement(
|
|
9553
9541
|
DropdownButton,
|
|
9554
9542
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9555
|
-
|
|
9556
|
-
Dropdown
|
|
9543
|
+
React.createElement(
|
|
9544
|
+
Dropdown.Item,
|
|
9557
9545
|
{ onSelect: function onSelect() {
|
|
9558
9546
|
return handleFilterSelect({}, 'parent');
|
|
9559
9547
|
} },
|
|
@@ -9561,8 +9549,8 @@ var Filter = function Filter(_ref) {
|
|
|
9561
9549
|
),
|
|
9562
9550
|
parentData.data.map(function (docGroup) {
|
|
9563
9551
|
if (!docGroup._id) return null;
|
|
9564
|
-
return
|
|
9565
|
-
Dropdown
|
|
9552
|
+
return React.createElement(
|
|
9553
|
+
Dropdown.Item,
|
|
9566
9554
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9567
9555
|
return handleFilterSelect(docGroup, 'parent');
|
|
9568
9556
|
} },
|
|
@@ -9570,11 +9558,11 @@ var Filter = function Filter(_ref) {
|
|
|
9570
9558
|
);
|
|
9571
9559
|
})
|
|
9572
9560
|
),
|
|
9573
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9561
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9574
9562
|
DropdownButton,
|
|
9575
9563
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9576
|
-
|
|
9577
|
-
Dropdown
|
|
9564
|
+
React.createElement(
|
|
9565
|
+
Dropdown.Item,
|
|
9578
9566
|
{ onSelect: function onSelect() {
|
|
9579
9567
|
return handleFilterSelect({}, 'child');
|
|
9580
9568
|
} },
|
|
@@ -9582,8 +9570,8 @@ var Filter = function Filter(_ref) {
|
|
|
9582
9570
|
),
|
|
9583
9571
|
childData.data.map(function (docGroup) {
|
|
9584
9572
|
if (!docGroup._id) return null;
|
|
9585
|
-
return
|
|
9586
|
-
Dropdown
|
|
9573
|
+
return React.createElement(
|
|
9574
|
+
Dropdown.Item,
|
|
9587
9575
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9588
9576
|
return handleFilterSelect(docGroup, 'child');
|
|
9589
9577
|
} },
|
|
@@ -9591,11 +9579,11 @@ var Filter = function Filter(_ref) {
|
|
|
9591
9579
|
);
|
|
9592
9580
|
})
|
|
9593
9581
|
),
|
|
9594
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9582
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9595
9583
|
DropdownButton,
|
|
9596
9584
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9597
|
-
|
|
9598
|
-
Dropdown
|
|
9585
|
+
React.createElement(
|
|
9586
|
+
Dropdown.Item,
|
|
9599
9587
|
{ onSelect: function onSelect() {
|
|
9600
9588
|
return handleFilterSelect({}, 'grandchild');
|
|
9601
9589
|
} },
|
|
@@ -9603,8 +9591,8 @@ var Filter = function Filter(_ref) {
|
|
|
9603
9591
|
),
|
|
9604
9592
|
grandChildData.data.map(function (docGroup) {
|
|
9605
9593
|
if (!docGroup._id) return null;
|
|
9606
|
-
return
|
|
9607
|
-
Dropdown
|
|
9594
|
+
return React.createElement(
|
|
9595
|
+
Dropdown.Item,
|
|
9608
9596
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9609
9597
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9610
9598
|
} },
|
|
@@ -9612,7 +9600,7 @@ var Filter = function Filter(_ref) {
|
|
|
9612
9600
|
);
|
|
9613
9601
|
})
|
|
9614
9602
|
),
|
|
9615
|
-
|
|
9603
|
+
React.createElement(
|
|
9616
9604
|
'style',
|
|
9617
9605
|
{ jsx: 'true' },
|
|
9618
9606
|
'\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 '
|
|
@@ -9660,7 +9648,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9660
9648
|
while (1) {
|
|
9661
9649
|
switch (_context.prev = _context.next) {
|
|
9662
9650
|
case 0:
|
|
9663
|
-
newParams = _extends$
|
|
9651
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9664
9652
|
filterQuery = void 0;
|
|
9665
9653
|
|
|
9666
9654
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9702,27 +9690,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9702
9690
|
}();
|
|
9703
9691
|
|
|
9704
9692
|
if (props.statusCode === 404) {
|
|
9705
|
-
return
|
|
9693
|
+
return React.createElement(
|
|
9706
9694
|
'div',
|
|
9707
9695
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9708
|
-
|
|
9696
|
+
React.createElement(
|
|
9709
9697
|
'h3',
|
|
9710
9698
|
null,
|
|
9711
9699
|
'404: Resource not found'
|
|
9712
9700
|
),
|
|
9713
|
-
|
|
9701
|
+
React.createElement(
|
|
9714
9702
|
'p',
|
|
9715
9703
|
null,
|
|
9716
9704
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9717
9705
|
),
|
|
9718
|
-
|
|
9706
|
+
React.createElement(
|
|
9719
9707
|
'p',
|
|
9720
9708
|
null,
|
|
9721
9709
|
'Click here to',
|
|
9722
|
-
|
|
9710
|
+
React.createElement(
|
|
9723
9711
|
Link,
|
|
9724
9712
|
{ href: '/' },
|
|
9725
|
-
|
|
9713
|
+
React.createElement(
|
|
9726
9714
|
'a',
|
|
9727
9715
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9728
9716
|
' return to homepage.'
|
|
@@ -9732,17 +9720,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9732
9720
|
);
|
|
9733
9721
|
}
|
|
9734
9722
|
|
|
9735
|
-
return
|
|
9723
|
+
return React.createElement(
|
|
9736
9724
|
'div',
|
|
9737
9725
|
{ className: 'mb-5' },
|
|
9738
|
-
props.docGroup && props.docGroup.description &&
|
|
9739
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9726
|
+
props.docGroup && props.docGroup.description && React.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9727
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9740
9728
|
'div',
|
|
9741
9729
|
{ className: '' },
|
|
9742
|
-
|
|
9743
|
-
|
|
9730
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9731
|
+
React.createElement('hr', null)
|
|
9744
9732
|
),
|
|
9745
|
-
seriesData &&
|
|
9733
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9746
9734
|
deck: MediaSeriesCard,
|
|
9747
9735
|
variant: 'left',
|
|
9748
9736
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9762,12 +9750,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9762
9750
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9763
9751
|
var _ref4;
|
|
9764
9752
|
|
|
9765
|
-
var urlQuery, pathname,
|
|
9753
|
+
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9766
9754
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9767
9755
|
while (1) {
|
|
9768
9756
|
switch (_context2.prev = _context2.next) {
|
|
9769
9757
|
case 0:
|
|
9770
|
-
urlQuery = ctx.query, pathname = ctx.pathname,
|
|
9758
|
+
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9771
9759
|
identifier = pathname.replace('/', '');
|
|
9772
9760
|
itemsPerPage = 10;
|
|
9773
9761
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|