@mjhls/mjh-framework 1.0.850-affiliatefix-v1 → 1.0.850-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -31
- package/dist/cjs/AD300x250x600.js +30 -31
- package/dist/cjs/AD728x90.js +33 -34
- package/dist/cjs/ADFloatingFooter.js +32 -33
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -33
- package/dist/cjs/{ADInfeed-859820d9.js → ADInfeed-98c71bcd.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -33
- package/dist/cjs/ADSponsoredResources.js +32 -33
- package/dist/cjs/ADWebcast.js +32 -33
- package/dist/cjs/ADWelcome.js +33 -34
- package/dist/cjs/{ADlgInfeed-da3a36a6.js → ADlgInfeed-9de32585.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +101 -34
- package/dist/cjs/AdSlotsProvider.js +925 -24
- package/dist/cjs/AlgoliaSearch.js +1276 -1371
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +59 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +61 -62
- package/dist/cjs/Auth.js +462 -686
- package/dist/cjs/AuthWrapper.js +423 -1739
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -62
- package/dist/cjs/ConferenceArticleCard.js +37 -38
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +103 -107
- package/dist/cjs/DeckQueue.js +90 -94
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
- package/dist/cjs/EventsDeck.js +152 -159
- package/dist/cjs/ExternalResources.js +80 -81
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +42 -43
- package/dist/cjs/GridContent.js +304 -190
- package/dist/cjs/GridHero.js +44 -45
- package/dist/cjs/GroupDeck.js +59 -60
- package/dist/cjs/HamMagazine.js +141 -146
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +72 -73
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +73 -78
- package/dist/cjs/IssueDeck.js +72 -77
- package/dist/cjs/IssueLanding.js +93 -96
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +80 -81
- package/dist/cjs/MediaSeriesLanding.js +1137 -1228
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +148 -153
- package/dist/cjs/NavNative.js +145 -153
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +72 -73
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +1205 -115
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +40 -43
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +62 -67
- package/dist/cjs/PublicationLanding.js +135 -139
- package/dist/cjs/QueueDeckExpanded.js +1150 -1131
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +54 -55
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +368 -343
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-34c6cc2b.js → SeriesSlider-8bbc989f.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +59 -64
- package/dist/cjs/TaxonomyDescription.js +55 -56
- package/dist/cjs/TemplateNormal.js +74 -75
- package/dist/cjs/ThumbnailCard.js +21 -23
- package/dist/cjs/Ustream.js +30 -31
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +82 -81
- package/dist/cjs/View.js +342 -264
- package/dist/cjs/YahooHero.js +41 -42
- package/dist/cjs/YoutubeGroup.js +66 -67
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-f1821260.js} +26 -17
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-060c5d65.js → index-bc88f898.js} +1039 -1005
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +164 -169
- package/dist/cjs/{inherits-c2065b95.js → inherits-452ff02c.js} +19 -19
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-4bf3b2f9.js → ADInfeed-bbdd5398.js} +6 -6
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +20 -20
- package/dist/esm/{ADlgInfeed-a3377c4a.js → ADlgInfeed-4473ee3b.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +92 -24
- package/dist/esm/AdSlotsProvider.js +922 -20
- package/dist/esm/AlgoliaSearch.js +505 -599
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +50 -50
- package/dist/esm/ArticleSeriesLandingPage.js +32 -32
- package/dist/esm/ArticleSeriesListing.js +34 -34
- package/dist/esm/Auth.js +375 -595
- package/dist/esm/AuthWrapper.js +396 -1711
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +21 -21
- package/dist/esm/Column3.js +39 -39
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +57 -57
- package/dist/esm/DeckQueue.js +50 -50
- package/dist/esm/{Dfp-2c43d2a0.js → Dfp-b7236041.js} +15 -15
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +48 -48
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +200 -82
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +39 -39
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +47 -47
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +27 -27
- package/dist/esm/IssueDeck.js +37 -37
- package/dist/esm/IssueLanding.js +82 -84
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +22 -22
- package/dist/esm/MasterDeck.js +45 -45
- package/dist/esm/MediaSeriesLanding.js +663 -751
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +44 -44
- package/dist/esm/NavNative.js +49 -49
- package/dist/esm/OncliveHero.js +5 -4
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1155 -65
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +32 -34
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +24 -24
- package/dist/esm/PublicationLanding.js +76 -76
- package/dist/esm/QueueDeckExpanded.js +1103 -1084
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +35 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +368 -343
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-5d5c08f4.js → SeriesSlider-a866bb21.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
- package/dist/esm/TaxonomyCard.js +25 -25
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +50 -50
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +54 -54
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +39 -37
- package/dist/esm/View.js +174 -92
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +26 -26
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-4877b617.js} +33 -33
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-bd800589.js} +25 -16
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index-01d53c17.js → index-f2a0d400.js} +688 -647
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -124
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +111 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
-
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
-
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
|
-
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-98ca9cec.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
import ReactDOM from 'react-dom';
|
|
10
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
14
|
-
import urlFor from './urlFor.js';
|
|
15
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
16
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
-
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
18
|
-
import { g as getSerializers } from './index-01d53c17.js';
|
|
19
|
-
import './define-property-fe54dc9f.js';
|
|
20
|
-
import './_to-object-b50e61c3.js';
|
|
21
|
-
import './es6.string.iterator-bc33758b.js';
|
|
22
|
-
import './web.dom.iterable-4109ff68.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
23
4
|
import './_library-528f1934.js';
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import './_object-pie-
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
31
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
+
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends$2 } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-cf8dde54.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
32
17
|
import './events-6c3a7a63.js';
|
|
18
|
+
import './index-41a678ea.js';
|
|
19
|
+
import PropTypes from 'prop-types';
|
|
33
20
|
import 'react-bootstrap/Container';
|
|
34
21
|
import 'react-bootstrap/Row';
|
|
35
22
|
import 'react-bootstrap/Col';
|
|
36
23
|
import 'react-bootstrap/Card';
|
|
24
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
37
25
|
import 'next/router';
|
|
38
|
-
import './
|
|
39
|
-
import './debounce-
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
42
|
-
import '
|
|
26
|
+
import './isSymbol-1981418f.js';
|
|
27
|
+
import './debounce-9207d8ee.js';
|
|
28
|
+
import './toNumber-2f7a84cd.js';
|
|
29
|
+
import './index.es-29c1cef5.js';
|
|
30
|
+
import ReactDOM from 'react-dom';
|
|
43
31
|
import './visibility-sensor-72fd8f8b.js';
|
|
44
|
-
import './index-
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
48
|
-
import './
|
|
32
|
+
import './index-73819142.js';
|
|
33
|
+
import urlFor from './urlFor.js';
|
|
34
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
35
|
+
import './main-e4a934b2.js';
|
|
36
|
+
import './entities-7cc3bf45.js';
|
|
37
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
38
|
+
import './stringify-4330ccdc.js';
|
|
39
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-4877b617.js';
|
|
49
40
|
import './Segment.js';
|
|
50
|
-
import './
|
|
51
|
-
import './
|
|
52
|
-
import '
|
|
41
|
+
import './Beam.js';
|
|
42
|
+
import './AdSlot.js';
|
|
43
|
+
import './ADInfeed-bbdd5398.js';
|
|
44
|
+
import './lodash-17fdfebb.js';
|
|
45
|
+
import './ADlgInfeed-4473ee3b.js';
|
|
46
|
+
import 'react-bootstrap/Button';
|
|
47
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
53
48
|
import './index-c7e2ac95.js';
|
|
54
|
-
import './
|
|
55
|
-
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
49
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
56
50
|
import './GroupDeck.js';
|
|
57
|
-
import '
|
|
58
|
-
import './
|
|
51
|
+
import 'react-bootstrap';
|
|
52
|
+
import './iconBase-602d52fe.js';
|
|
53
|
+
import './index.esm-29e48d38.js';
|
|
54
|
+
import { g as getSerializers } from './index-f2a0d400.js';
|
|
55
|
+
import './util-7700fc59.js';
|
|
56
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
59
57
|
import 'next/head';
|
|
60
58
|
import 'react-share';
|
|
61
|
-
import './
|
|
59
|
+
import './SocialShare.js';
|
|
60
|
+
import './_object-to-array-7e804fce.js';
|
|
62
61
|
import 'react-bootstrap/Pagination';
|
|
63
|
-
import 'react-bootstrap/Button';
|
|
64
|
-
import './entities-932b50cf.js';
|
|
65
|
-
import './index.esm-f6156a57.js';
|
|
66
|
-
import './iconBase-ccc56b97.js';
|
|
67
62
|
import 'react-bootstrap/Figure';
|
|
63
|
+
import MasterDeck from './MasterDeck.js';
|
|
64
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
65
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
66
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
67
|
+
import Link from 'next/link';
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -159,7 +159,7 @@ function useUncontrolled(props, config) {
|
|
|
159
159
|
var _ref = result,
|
|
160
160
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
161
161
|
propsValue = _ref[fieldName],
|
|
162
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
162
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
163
163
|
|
|
164
164
|
var handlerName = config[fieldName];
|
|
165
165
|
|
|
@@ -167,19 +167,19 @@ function useUncontrolled(props, config) {
|
|
|
167
167
|
value = _useUncontrolledProp[0],
|
|
168
168
|
handler = _useUncontrolledProp[1];
|
|
169
169
|
|
|
170
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
170
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
171
171
|
}, props);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
function _inheritsLoose(subClass, superClass) {
|
|
175
175
|
subClass.prototype = Object.create(superClass.prototype);
|
|
176
176
|
subClass.prototype.constructor = subClass;
|
|
177
|
-
|
|
177
|
+
subClass.__proto__ = superClass;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
var ThemeContext = React__default.createContext({});
|
|
181
|
-
ThemeContext.Consumer
|
|
182
|
-
ThemeContext.Provider;
|
|
181
|
+
var Consumer = ThemeContext.Consumer,
|
|
182
|
+
Provider = ThemeContext.Provider;
|
|
183
183
|
|
|
184
184
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
185
185
|
var prefixes = useContext(ThemeContext);
|
|
@@ -196,11 +196,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
196
196
|
return href || null;
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
var context
|
|
200
|
-
context
|
|
199
|
+
var context = React__default.createContext(null);
|
|
200
|
+
context.displayName = 'AccordionContext';
|
|
201
201
|
|
|
202
202
|
function useAccordionToggle(eventKey, onClick) {
|
|
203
|
-
var contextEventKey = useContext(context
|
|
203
|
+
var contextEventKey = useContext(context);
|
|
204
204
|
var onSelect = useContext(SelectableContext);
|
|
205
205
|
return function (e) {
|
|
206
206
|
/*
|
|
@@ -218,7 +218,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
218
218
|
children = _ref.children,
|
|
219
219
|
eventKey = _ref.eventKey,
|
|
220
220
|
onClick = _ref.onClick,
|
|
221
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
221
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
222
222
|
|
|
223
223
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
224
224
|
|
|
@@ -226,40 +226,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
226
226
|
props.type = 'button';
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
229
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
230
230
|
ref: ref,
|
|
231
231
|
onClick: accordionOnClick
|
|
232
232
|
}, props), children);
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
|
|
236
|
-
* Returns the owner document of a given element.
|
|
237
|
-
*
|
|
238
|
-
* @param node the element
|
|
239
|
-
*/
|
|
240
|
-
function ownerDocument$1(node) {
|
|
235
|
+
function ownerDocument(node) {
|
|
241
236
|
return node && node.ownerDocument || document;
|
|
242
237
|
}
|
|
243
238
|
|
|
244
|
-
/**
|
|
245
|
-
* Returns the owner window of a given element.
|
|
246
|
-
*
|
|
247
|
-
* @param node the element
|
|
248
|
-
*/
|
|
249
|
-
|
|
250
239
|
function ownerWindow(node) {
|
|
251
|
-
var doc = ownerDocument
|
|
240
|
+
var doc = ownerDocument(node);
|
|
252
241
|
return doc && doc.defaultView || window;
|
|
253
242
|
}
|
|
254
243
|
|
|
255
|
-
|
|
256
|
-
* Returns one or all computed style properties of an element.
|
|
257
|
-
*
|
|
258
|
-
* @param node the element
|
|
259
|
-
* @param psuedoElement the style property
|
|
260
|
-
*/
|
|
261
|
-
|
|
262
|
-
function getComputedStyle$2(node, psuedoElement) {
|
|
244
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
263
245
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
264
246
|
}
|
|
265
247
|
|
|
@@ -288,7 +270,7 @@ function style(node, property) {
|
|
|
288
270
|
var transforms = '';
|
|
289
271
|
|
|
290
272
|
if (typeof property === 'string') {
|
|
291
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
273
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
292
274
|
}
|
|
293
275
|
|
|
294
276
|
Object.keys(property).forEach(function (key) {
|
|
@@ -339,11 +321,6 @@ try {
|
|
|
339
321
|
|
|
340
322
|
/**
|
|
341
323
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
342
|
-
*
|
|
343
|
-
* @param node the element
|
|
344
|
-
* @param eventName the event name
|
|
345
|
-
* @param handle the handler
|
|
346
|
-
* @param options event options
|
|
347
324
|
*/
|
|
348
325
|
function addEventListener(node, eventName, handler, options) {
|
|
349
326
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -366,14 +343,6 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
366
343
|
node.addEventListener(eventName, handler, options);
|
|
367
344
|
}
|
|
368
345
|
|
|
369
|
-
/**
|
|
370
|
-
* A `removeEventListener` ponyfill
|
|
371
|
-
*
|
|
372
|
-
* @param node the element
|
|
373
|
-
* @param eventName the event name
|
|
374
|
-
* @param handle the handler
|
|
375
|
-
* @param options event options
|
|
376
|
-
*/
|
|
377
346
|
function removeEventListener(node, eventName, handler, options) {
|
|
378
347
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
379
348
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -390,36 +359,18 @@ function listen(node, eventName, handler, options) {
|
|
|
390
359
|
};
|
|
391
360
|
}
|
|
392
361
|
|
|
393
|
-
/**
|
|
394
|
-
* Triggers an event on a given element.
|
|
395
|
-
*
|
|
396
|
-
* @param node the element
|
|
397
|
-
* @param eventName the event name to trigger
|
|
398
|
-
* @param bubbles whether the event should bubble up
|
|
399
|
-
* @param cancelable whether the event should be cancelable
|
|
400
|
-
*/
|
|
401
|
-
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
402
|
-
if (bubbles === void 0) {
|
|
403
|
-
bubbles = false;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
if (cancelable === void 0) {
|
|
407
|
-
cancelable = true;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
if (node) {
|
|
411
|
-
var event = document.createEvent('HTMLEvents');
|
|
412
|
-
event.initEvent(eventName, bubbles, cancelable);
|
|
413
|
-
node.dispatchEvent(event);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
362
|
function parseDuration(node) {
|
|
418
363
|
var str = style(node, 'transitionDuration') || '';
|
|
419
364
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
420
365
|
return parseFloat(str) * mult;
|
|
421
366
|
}
|
|
422
367
|
|
|
368
|
+
function triggerTransitionEnd(element) {
|
|
369
|
+
var evt = document.createEvent('HTMLEvents');
|
|
370
|
+
evt.initEvent('transitionend', true, true);
|
|
371
|
+
element.dispatchEvent(evt);
|
|
372
|
+
}
|
|
373
|
+
|
|
423
374
|
function emulateTransitionEnd(element, duration, padding) {
|
|
424
375
|
if (padding === void 0) {
|
|
425
376
|
padding = 5;
|
|
@@ -427,7 +378,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
427
378
|
|
|
428
379
|
var called = false;
|
|
429
380
|
var handle = setTimeout(function () {
|
|
430
|
-
if (!called)
|
|
381
|
+
if (!called) triggerTransitionEnd(element);
|
|
431
382
|
}, duration + padding);
|
|
432
383
|
var remove = listen(element, 'transitionend', function () {
|
|
433
384
|
called = true;
|
|
@@ -459,7 +410,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
459
410
|
exit: PropTypes.number,
|
|
460
411
|
appear: PropTypes.number
|
|
461
412
|
}).isRequired]) : null;
|
|
462
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
413
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
463
414
|
enter: PropTypes.string,
|
|
464
415
|
exit: PropTypes.string,
|
|
465
416
|
active: PropTypes.string
|
|
@@ -841,23 +792,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
841
792
|
}
|
|
842
793
|
|
|
843
794
|
var _this$props = this.props,
|
|
844
|
-
children = _this$props.children
|
|
845
|
-
_this$props.in
|
|
846
|
-
_this$props.mountOnEnter
|
|
847
|
-
_this$props.unmountOnExit
|
|
848
|
-
_this$props.appear
|
|
849
|
-
_this$props.enter
|
|
850
|
-
_this$props.exit
|
|
851
|
-
_this$props.timeout
|
|
852
|
-
_this$props.addEndListener
|
|
853
|
-
_this$props.onEnter
|
|
854
|
-
_this$props.onEntering
|
|
855
|
-
_this$props.onEntered
|
|
856
|
-
_this$props.onExit
|
|
857
|
-
_this$props.onExiting
|
|
858
|
-
_this$props.onExited
|
|
859
|
-
_this$props.nodeRef
|
|
860
|
-
|
|
795
|
+
children = _this$props.children,
|
|
796
|
+
_in = _this$props.in,
|
|
797
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
798
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
799
|
+
_appear = _this$props.appear,
|
|
800
|
+
_enter = _this$props.enter,
|
|
801
|
+
_exit = _this$props.exit,
|
|
802
|
+
_timeout = _this$props.timeout,
|
|
803
|
+
_addEndListener = _this$props.addEndListener,
|
|
804
|
+
_onEnter = _this$props.onEnter,
|
|
805
|
+
_onEntering = _this$props.onEntering,
|
|
806
|
+
_onEntered = _this$props.onEntered,
|
|
807
|
+
_onExit = _this$props.onExit,
|
|
808
|
+
_onExiting = _this$props.onExiting,
|
|
809
|
+
_onExited = _this$props.onExited,
|
|
810
|
+
_nodeRef = _this$props.nodeRef,
|
|
811
|
+
childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
861
812
|
|
|
862
813
|
return (
|
|
863
814
|
/*#__PURE__*/
|
|
@@ -1057,7 +1008,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1057
1008
|
onExited: PropTypes.func
|
|
1058
1009
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1059
1010
|
|
|
1060
|
-
function noop
|
|
1011
|
+
function noop() {}
|
|
1061
1012
|
|
|
1062
1013
|
Transition.defaultProps = {
|
|
1063
1014
|
in: false,
|
|
@@ -1066,12 +1017,12 @@ Transition.defaultProps = {
|
|
|
1066
1017
|
appear: false,
|
|
1067
1018
|
enter: true,
|
|
1068
1019
|
exit: true,
|
|
1069
|
-
onEnter: noop
|
|
1070
|
-
onEntering: noop
|
|
1071
|
-
onEntered: noop
|
|
1072
|
-
onExit: noop
|
|
1073
|
-
onExiting: noop
|
|
1074
|
-
onExited: noop
|
|
1020
|
+
onEnter: noop,
|
|
1021
|
+
onEntering: noop,
|
|
1022
|
+
onEntered: noop,
|
|
1023
|
+
onExit: noop,
|
|
1024
|
+
onExiting: noop,
|
|
1025
|
+
onExited: noop
|
|
1075
1026
|
};
|
|
1076
1027
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1077
1028
|
Transition.EXITED = EXITED;
|
|
@@ -1137,7 +1088,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1137
1088
|
}
|
|
1138
1089
|
|
|
1139
1090
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1140
|
-
var defaultProps
|
|
1091
|
+
var defaultProps = {
|
|
1141
1092
|
in: false,
|
|
1142
1093
|
timeout: 300,
|
|
1143
1094
|
mountOnEnter: false,
|
|
@@ -1157,7 +1108,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1157
1108
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1158
1109
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1159
1110
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1160
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1111
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1161
1112
|
|
|
1162
1113
|
/* Compute dimension */
|
|
1163
1114
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1193,7 +1144,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1193
1144
|
}, onExiting);
|
|
1194
1145
|
}, [computedDimension, onExiting]);
|
|
1195
1146
|
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1196
|
-
, _extends({
|
|
1147
|
+
, _extends$1({
|
|
1197
1148
|
ref: ref,
|
|
1198
1149
|
addEndListener: transitionEnd
|
|
1199
1150
|
}, props, {
|
|
@@ -1204,26 +1155,26 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1204
1155
|
onExit: handleExit,
|
|
1205
1156
|
onExiting: handleExiting
|
|
1206
1157
|
}), function (state, innerProps) {
|
|
1207
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1158
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1208
1159
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1209
1160
|
}));
|
|
1210
1161
|
});
|
|
1211
1162
|
}); // @ts-ignore
|
|
1212
1163
|
|
|
1213
1164
|
// @ts-ignore
|
|
1214
|
-
Collapse.defaultProps = defaultProps
|
|
1165
|
+
Collapse.defaultProps = defaultProps;
|
|
1215
1166
|
|
|
1216
1167
|
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1217
1168
|
var children = _ref.children,
|
|
1218
1169
|
eventKey = _ref.eventKey,
|
|
1219
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1170
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1220
1171
|
|
|
1221
|
-
var contextEventKey = useContext(context
|
|
1172
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1222
1173
|
// from collapsing the accordion when clicked.
|
|
1223
1174
|
|
|
1224
1175
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1225
1176
|
value: null
|
|
1226
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1177
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1227
1178
|
ref: ref,
|
|
1228
1179
|
in: contextEventKey === eventKey
|
|
1229
1180
|
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
@@ -1241,14 +1192,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1241
1192
|
children = _useUncontrolled.children,
|
|
1242
1193
|
className = _useUncontrolled.className,
|
|
1243
1194
|
onSelect = _useUncontrolled.onSelect,
|
|
1244
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1195
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1245
1196
|
|
|
1246
1197
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1247
|
-
return /*#__PURE__*/React__default.createElement(context
|
|
1198
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1248
1199
|
value: activeKey || null
|
|
1249
1200
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1250
1201
|
value: onSelect || null
|
|
1251
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1202
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1252
1203
|
ref: ref
|
|
1253
1204
|
}, controlledProps, {
|
|
1254
1205
|
className: finalClassName
|
|
@@ -1284,7 +1235,7 @@ function useEventCallback(fn) {
|
|
|
1284
1235
|
}
|
|
1285
1236
|
|
|
1286
1237
|
var _fadeStyles;
|
|
1287
|
-
var defaultProps$
|
|
1238
|
+
var defaultProps$1 = {
|
|
1288
1239
|
in: false,
|
|
1289
1240
|
timeout: 300,
|
|
1290
1241
|
mountOnEnter: false,
|
|
@@ -1295,40 +1246,40 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1295
1246
|
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1296
1247
|
var className = _ref.className,
|
|
1297
1248
|
children = _ref.children,
|
|
1298
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1249
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1299
1250
|
|
|
1300
1251
|
var handleEnter = useCallback(function (node) {
|
|
1301
1252
|
triggerBrowserReflow(node);
|
|
1302
1253
|
if (props.onEnter) props.onEnter(node);
|
|
1303
1254
|
}, [props]);
|
|
1304
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1255
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1305
1256
|
ref: ref,
|
|
1306
1257
|
addEndListener: transitionEnd
|
|
1307
1258
|
}, props, {
|
|
1308
1259
|
onEnter: handleEnter
|
|
1309
1260
|
}), function (status, innerProps) {
|
|
1310
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1261
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1311
1262
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1312
1263
|
}));
|
|
1313
1264
|
});
|
|
1314
1265
|
});
|
|
1315
|
-
Fade.defaultProps = defaultProps$
|
|
1266
|
+
Fade.defaultProps = defaultProps$1;
|
|
1316
1267
|
Fade.displayName = 'Fade';
|
|
1317
1268
|
|
|
1318
|
-
var propTypes
|
|
1269
|
+
var propTypes = {
|
|
1319
1270
|
label: PropTypes.string.isRequired,
|
|
1320
1271
|
onClick: PropTypes.func
|
|
1321
1272
|
};
|
|
1322
|
-
var defaultProps$
|
|
1273
|
+
var defaultProps$2 = {
|
|
1323
1274
|
label: 'Close'
|
|
1324
1275
|
};
|
|
1325
1276
|
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1326
1277
|
var label = _ref.label,
|
|
1327
1278
|
onClick = _ref.onClick,
|
|
1328
1279
|
className = _ref.className,
|
|
1329
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1280
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1330
1281
|
|
|
1331
|
-
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1282
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1332
1283
|
ref: ref,
|
|
1333
1284
|
type: "button",
|
|
1334
1285
|
className: classnames('close', className),
|
|
@@ -1340,12 +1291,12 @@ var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
1340
1291
|
}, label));
|
|
1341
1292
|
});
|
|
1342
1293
|
CloseButton.displayName = 'CloseButton';
|
|
1343
|
-
CloseButton.propTypes = propTypes
|
|
1344
|
-
CloseButton.defaultProps = defaultProps$
|
|
1294
|
+
CloseButton.propTypes = propTypes;
|
|
1295
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1345
1296
|
|
|
1346
1297
|
var divWithClassName = (function (className) {
|
|
1347
1298
|
return React__default.forwardRef(function (p, ref) {
|
|
1348
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1299
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1349
1300
|
ref: ref,
|
|
1350
1301
|
className: classnames(p.className, className)
|
|
1351
1302
|
}));
|
|
@@ -1376,10 +1327,10 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1376
1327
|
bsPrefix = _ref2.bsPrefix,
|
|
1377
1328
|
_ref2$as = _ref2.as,
|
|
1378
1329
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1379
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1330
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1380
1331
|
|
|
1381
1332
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1382
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1333
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1383
1334
|
ref: ref,
|
|
1384
1335
|
className: classnames(className, resolvedPrefix)
|
|
1385
1336
|
}, props));
|
|
@@ -1406,7 +1357,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1406
1357
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1407
1358
|
disabled = _ref.disabled,
|
|
1408
1359
|
onKeyDown = _ref.onKeyDown,
|
|
1409
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1360
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1410
1361
|
|
|
1411
1362
|
var handleClick = function handleClick(event) {
|
|
1412
1363
|
var href = props.href,
|
|
@@ -1445,7 +1396,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1445
1396
|
props['aria-disabled'] = true;
|
|
1446
1397
|
}
|
|
1447
1398
|
|
|
1448
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1399
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1449
1400
|
ref: ref
|
|
1450
1401
|
}, props, {
|
|
1451
1402
|
onClick: handleClick,
|
|
@@ -1454,15 +1405,15 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1454
1405
|
});
|
|
1455
1406
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1456
1407
|
|
|
1457
|
-
var DivStyledAsH4
|
|
1458
|
-
DivStyledAsH4
|
|
1408
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1409
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1459
1410
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1460
|
-
Component: DivStyledAsH4
|
|
1411
|
+
Component: DivStyledAsH4
|
|
1461
1412
|
});
|
|
1462
1413
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1463
1414
|
Component: SafeAnchor
|
|
1464
1415
|
});
|
|
1465
|
-
var defaultProps$
|
|
1416
|
+
var defaultProps$3 = {
|
|
1466
1417
|
show: true,
|
|
1467
1418
|
transition: Fade,
|
|
1468
1419
|
closeLabel: 'Close alert'
|
|
@@ -1480,7 +1431,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1480
1431
|
onClose = _useUncontrolled.onClose,
|
|
1481
1432
|
dismissible = _useUncontrolled.dismissible,
|
|
1482
1433
|
transition = _useUncontrolled.transition,
|
|
1483
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1434
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1484
1435
|
|
|
1485
1436
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1486
1437
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1489,7 +1440,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1489
1440
|
}
|
|
1490
1441
|
});
|
|
1491
1442
|
var Transition = transition === true ? Fade : transition;
|
|
1492
|
-
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1443
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1493
1444
|
role: "alert"
|
|
1494
1445
|
}, Transition ? props : undefined, {
|
|
1495
1446
|
ref: ref,
|
|
@@ -1499,7 +1450,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1499
1450
|
label: closeLabel
|
|
1500
1451
|
}), children);
|
|
1501
1452
|
if (!Transition) return show ? alert : null;
|
|
1502
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1453
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1503
1454
|
unmountOnExit: true
|
|
1504
1455
|
}, props, {
|
|
1505
1456
|
ref: undefined,
|
|
@@ -1507,11 +1458,11 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1507
1458
|
}), alert);
|
|
1508
1459
|
});
|
|
1509
1460
|
Alert.displayName = 'Alert';
|
|
1510
|
-
Alert.defaultProps = defaultProps$
|
|
1461
|
+
Alert.defaultProps = defaultProps$3;
|
|
1511
1462
|
Alert.Link = AlertLink;
|
|
1512
1463
|
Alert.Heading = AlertHeading;
|
|
1513
1464
|
|
|
1514
|
-
var defaultProps$
|
|
1465
|
+
var defaultProps$4 = {
|
|
1515
1466
|
pill: false
|
|
1516
1467
|
};
|
|
1517
1468
|
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1521,19 +1472,19 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1521
1472
|
className = _ref.className,
|
|
1522
1473
|
_ref$as = _ref.as,
|
|
1523
1474
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1524
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1475
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1525
1476
|
|
|
1526
1477
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1527
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1478
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1528
1479
|
ref: ref
|
|
1529
1480
|
}, props, {
|
|
1530
1481
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1531
1482
|
}));
|
|
1532
1483
|
});
|
|
1533
1484
|
Badge.displayName = 'Badge';
|
|
1534
|
-
Badge.defaultProps = defaultProps$
|
|
1485
|
+
Badge.defaultProps = defaultProps$4;
|
|
1535
1486
|
|
|
1536
|
-
var defaultProps$
|
|
1487
|
+
var defaultProps$5 = {
|
|
1537
1488
|
active: false,
|
|
1538
1489
|
linkProps: {}
|
|
1539
1490
|
};
|
|
@@ -1550,26 +1501,26 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1550
1501
|
href = _ref.href,
|
|
1551
1502
|
title = _ref.title,
|
|
1552
1503
|
target = _ref.target,
|
|
1553
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1504
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1554
1505
|
|
|
1555
1506
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1556
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1507
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1557
1508
|
ref: ref
|
|
1558
1509
|
}, props, {
|
|
1559
1510
|
className: classnames(prefix, className, {
|
|
1560
1511
|
active: active
|
|
1561
1512
|
}),
|
|
1562
1513
|
"aria-current": active ? 'page' : undefined
|
|
1563
|
-
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1514
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1564
1515
|
href: href,
|
|
1565
1516
|
title: title,
|
|
1566
1517
|
target: target
|
|
1567
1518
|
}), children));
|
|
1568
1519
|
});
|
|
1569
1520
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1570
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1521
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1571
1522
|
|
|
1572
|
-
var defaultProps$
|
|
1523
|
+
var defaultProps$6 = {
|
|
1573
1524
|
label: 'breadcrumb',
|
|
1574
1525
|
listProps: {}
|
|
1575
1526
|
};
|
|
@@ -1581,22 +1532,22 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1581
1532
|
label = _ref.label,
|
|
1582
1533
|
_ref$as = _ref.as,
|
|
1583
1534
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1584
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1535
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1585
1536
|
|
|
1586
1537
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1587
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1538
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1588
1539
|
"aria-label": label,
|
|
1589
1540
|
className: className,
|
|
1590
1541
|
ref: ref
|
|
1591
|
-
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1542
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1592
1543
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1593
1544
|
}), children));
|
|
1594
1545
|
});
|
|
1595
1546
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1596
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1547
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1597
1548
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1598
1549
|
|
|
1599
|
-
var defaultProps$
|
|
1550
|
+
var defaultProps$7 = {
|
|
1600
1551
|
variant: 'primary',
|
|
1601
1552
|
active: false,
|
|
1602
1553
|
disabled: false
|
|
@@ -1610,13 +1561,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1610
1561
|
block = _ref.block,
|
|
1611
1562
|
type = _ref.type,
|
|
1612
1563
|
as = _ref.as,
|
|
1613
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1564
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1614
1565
|
|
|
1615
1566
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1616
1567
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1617
1568
|
|
|
1618
1569
|
if (props.href) {
|
|
1619
|
-
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1570
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1620
1571
|
as: as,
|
|
1621
1572
|
ref: ref,
|
|
1622
1573
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1634,14 +1585,14 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1634
1585
|
}
|
|
1635
1586
|
|
|
1636
1587
|
var Component = as || 'button';
|
|
1637
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1588
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1638
1589
|
className: classes
|
|
1639
1590
|
}));
|
|
1640
1591
|
});
|
|
1641
1592
|
Button.displayName = 'Button';
|
|
1642
|
-
Button.defaultProps = defaultProps$
|
|
1593
|
+
Button.defaultProps = defaultProps$7;
|
|
1643
1594
|
|
|
1644
|
-
var defaultProps$
|
|
1595
|
+
var defaultProps$8 = {
|
|
1645
1596
|
vertical: false,
|
|
1646
1597
|
toggle: false,
|
|
1647
1598
|
role: 'group'
|
|
@@ -1654,40 +1605,40 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1654
1605
|
className = _ref.className,
|
|
1655
1606
|
_ref$as = _ref.as,
|
|
1656
1607
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1657
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1608
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1658
1609
|
|
|
1659
1610
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1660
1611
|
var baseClass = prefix;
|
|
1661
1612
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1662
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1613
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1663
1614
|
ref: ref,
|
|
1664
1615
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1665
1616
|
}));
|
|
1666
1617
|
});
|
|
1667
1618
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1668
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1619
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1669
1620
|
|
|
1670
|
-
var defaultProps$
|
|
1621
|
+
var defaultProps$9 = {
|
|
1671
1622
|
role: 'toolbar'
|
|
1672
1623
|
};
|
|
1673
1624
|
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1674
1625
|
var bsPrefix = _ref.bsPrefix,
|
|
1675
1626
|
className = _ref.className,
|
|
1676
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1627
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1677
1628
|
|
|
1678
1629
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1679
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1630
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1680
1631
|
ref: ref,
|
|
1681
1632
|
className: classnames(className, prefix)
|
|
1682
1633
|
}));
|
|
1683
1634
|
});
|
|
1684
1635
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1685
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1636
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1686
1637
|
|
|
1687
1638
|
var context$1 = React__default.createContext(null);
|
|
1688
1639
|
context$1.displayName = 'CardContext';
|
|
1689
1640
|
|
|
1690
|
-
var defaultProps$
|
|
1641
|
+
var defaultProps$a = {
|
|
1691
1642
|
variant: null
|
|
1692
1643
|
};
|
|
1693
1644
|
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -1697,16 +1648,16 @@ function (_ref, ref) {
|
|
|
1697
1648
|
variant = _ref.variant,
|
|
1698
1649
|
_ref$as = _ref.as,
|
|
1699
1650
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1700
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1651
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1701
1652
|
|
|
1702
1653
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1703
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1654
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1704
1655
|
ref: ref,
|
|
1705
1656
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1706
1657
|
}, props));
|
|
1707
1658
|
});
|
|
1708
1659
|
CardImg.displayName = 'CardImg';
|
|
1709
|
-
CardImg.defaultProps = defaultProps$
|
|
1660
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1710
1661
|
|
|
1711
1662
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1712
1663
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1726,7 +1677,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1726
1677
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1727
1678
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1728
1679
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1729
|
-
var defaultProps$
|
|
1680
|
+
var defaultProps$b = {
|
|
1730
1681
|
body: false
|
|
1731
1682
|
};
|
|
1732
1683
|
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1739,7 +1690,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1739
1690
|
children = _ref.children,
|
|
1740
1691
|
_ref$as = _ref.as,
|
|
1741
1692
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1742
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1693
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1743
1694
|
|
|
1744
1695
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1745
1696
|
var cardContext = useMemo(function () {
|
|
@@ -1749,7 +1700,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1749
1700
|
}, [prefix]);
|
|
1750
1701
|
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1751
1702
|
value: cardContext
|
|
1752
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1703
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1753
1704
|
ref: ref
|
|
1754
1705
|
}, props, {
|
|
1755
1706
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
@@ -1759,7 +1710,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1759
1710
|
React__default.createElement(CardBody, null, children) : children));
|
|
1760
1711
|
});
|
|
1761
1712
|
Card.displayName = 'Card';
|
|
1762
|
-
Card.defaultProps = defaultProps$
|
|
1713
|
+
Card.defaultProps = defaultProps$b;
|
|
1763
1714
|
Card.Img = CardImg;
|
|
1764
1715
|
Card.Title = CardTitle;
|
|
1765
1716
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1952,10 +1903,10 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1952
1903
|
bsPrefix = _ref.bsPrefix,
|
|
1953
1904
|
children = _ref.children,
|
|
1954
1905
|
className = _ref.className,
|
|
1955
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1906
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1956
1907
|
|
|
1957
1908
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1958
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1909
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1959
1910
|
ref: ref
|
|
1960
1911
|
}, props, {
|
|
1961
1912
|
className: finalClassName
|
|
@@ -1994,7 +1945,7 @@ function forEach(children, func) {
|
|
|
1994
1945
|
}
|
|
1995
1946
|
|
|
1996
1947
|
var SWIPE_THRESHOLD = 40;
|
|
1997
|
-
var propTypes$
|
|
1948
|
+
var propTypes$1 = {
|
|
1998
1949
|
/**
|
|
1999
1950
|
* @default 'carousel'
|
|
2000
1951
|
*/
|
|
@@ -2096,7 +2047,7 @@ var propTypes$9 = {
|
|
|
2096
2047
|
*/
|
|
2097
2048
|
nextLabel: PropTypes.string
|
|
2098
2049
|
};
|
|
2099
|
-
var defaultProps$
|
|
2050
|
+
var defaultProps$c = {
|
|
2100
2051
|
slide: true,
|
|
2101
2052
|
fade: false,
|
|
2102
2053
|
controls: true,
|
|
@@ -2160,7 +2111,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2160
2111
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2161
2112
|
className = _useUncontrolled.className,
|
|
2162
2113
|
children = _useUncontrolled.children,
|
|
2163
|
-
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"]);
|
|
2114
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2164
2115
|
|
|
2165
2116
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2166
2117
|
var nextDirectionRef = useRef(null);
|
|
@@ -2417,7 +2368,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2417
2368
|
};
|
|
2418
2369
|
});
|
|
2419
2370
|
}, [indicators, numChildren, onSelect]);
|
|
2420
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2371
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2421
2372
|
ref: elementRef
|
|
2422
2373
|
}, props, {
|
|
2423
2374
|
onKeyDown: handleKeyDown,
|
|
@@ -2466,24 +2417,24 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2466
2417
|
|
|
2467
2418
|
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2468
2419
|
Carousel.displayName = 'Carousel';
|
|
2469
|
-
Carousel.propTypes = propTypes$
|
|
2470
|
-
Carousel.defaultProps = defaultProps$
|
|
2420
|
+
Carousel.propTypes = propTypes$1;
|
|
2421
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2471
2422
|
Carousel.Caption = CarouselCaption;
|
|
2472
2423
|
Carousel.Item = CarouselItem;
|
|
2473
2424
|
|
|
2474
|
-
var DEVICE_SIZES
|
|
2425
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2475
2426
|
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2476
2427
|
function (_ref, ref) {
|
|
2477
2428
|
var bsPrefix = _ref.bsPrefix,
|
|
2478
2429
|
className = _ref.className,
|
|
2479
2430
|
_ref$as = _ref.as,
|
|
2480
2431
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2481
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2432
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2482
2433
|
|
|
2483
2434
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2484
2435
|
var spans = [];
|
|
2485
2436
|
var classes = [];
|
|
2486
|
-
DEVICE_SIZES
|
|
2437
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2487
2438
|
var propValue = props[brkPoint];
|
|
2488
2439
|
delete props[brkPoint];
|
|
2489
2440
|
var span;
|
|
@@ -2509,7 +2460,7 @@ function (_ref, ref) {
|
|
|
2509
2460
|
spans.push(prefix); // plain 'col'
|
|
2510
2461
|
}
|
|
2511
2462
|
|
|
2512
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2463
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2513
2464
|
ref: ref,
|
|
2514
2465
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2515
2466
|
}));
|
|
@@ -2517,13 +2468,6 @@ function (_ref, ref) {
|
|
|
2517
2468
|
Col.displayName = 'Col';
|
|
2518
2469
|
|
|
2519
2470
|
var matchesImpl;
|
|
2520
|
-
/**
|
|
2521
|
-
* Checks if a given element matches a selector.
|
|
2522
|
-
*
|
|
2523
|
-
* @param node the element
|
|
2524
|
-
* @param selector the selector
|
|
2525
|
-
*/
|
|
2526
|
-
|
|
2527
2471
|
function matches(node, selector) {
|
|
2528
2472
|
if (!matchesImpl) {
|
|
2529
2473
|
var body = document.body;
|
|
@@ -2538,13 +2482,6 @@ function matches(node, selector) {
|
|
|
2538
2482
|
}
|
|
2539
2483
|
|
|
2540
2484
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2541
|
-
/**
|
|
2542
|
-
* Runs `querySelectorAll` on a given element.
|
|
2543
|
-
*
|
|
2544
|
-
* @param element the element
|
|
2545
|
-
* @param selector the selector
|
|
2546
|
-
*/
|
|
2547
|
-
|
|
2548
2485
|
function qsa(element, selector) {
|
|
2549
2486
|
return toArray(element.querySelectorAll(selector));
|
|
2550
2487
|
}
|
|
@@ -2634,6 +2571,39 @@ function useForceUpdate() {
|
|
|
2634
2571
|
|
|
2635
2572
|
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2636
2573
|
|
|
2574
|
+
function _extends() {
|
|
2575
|
+
_extends = Object.assign || function (target) {
|
|
2576
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2577
|
+
var source = arguments[i];
|
|
2578
|
+
|
|
2579
|
+
for (var key in source) {
|
|
2580
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2581
|
+
target[key] = source[key];
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
return target;
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
return _extends.apply(this, arguments);
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2593
|
+
if (source == null) return {};
|
|
2594
|
+
var target = {};
|
|
2595
|
+
var sourceKeys = Object.keys(source);
|
|
2596
|
+
var key, i;
|
|
2597
|
+
|
|
2598
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2599
|
+
key = sourceKeys[i];
|
|
2600
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2601
|
+
target[key] = source[key];
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
return target;
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2637
2607
|
function useSafeState(state) {
|
|
2638
2608
|
var isMounted = useMounted();
|
|
2639
2609
|
return [state[0], useCallback(function (nextState) {
|
|
@@ -2678,50 +2648,21 @@ function getBasePlacement(placement) {
|
|
|
2678
2648
|
return placement.split('-')[0];
|
|
2679
2649
|
}
|
|
2680
2650
|
|
|
2681
|
-
|
|
2682
|
-
var rect = element.getBoundingClientRect();
|
|
2683
|
-
return {
|
|
2684
|
-
width: rect.width,
|
|
2685
|
-
height: rect.height,
|
|
2686
|
-
top: rect.top,
|
|
2687
|
-
right: rect.right,
|
|
2688
|
-
bottom: rect.bottom,
|
|
2689
|
-
left: rect.left,
|
|
2690
|
-
x: rect.left,
|
|
2691
|
-
y: rect.top
|
|
2692
|
-
};
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2651
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2695
2652
|
// means it doesn't take into account transforms.
|
|
2696
|
-
|
|
2697
2653
|
function getLayoutRect(element) {
|
|
2698
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2699
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2700
|
-
|
|
2701
|
-
var width = element.offsetWidth;
|
|
2702
|
-
var height = element.offsetHeight;
|
|
2703
|
-
|
|
2704
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2705
|
-
width = clientRect.width;
|
|
2706
|
-
}
|
|
2707
|
-
|
|
2708
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2709
|
-
height = clientRect.height;
|
|
2710
|
-
}
|
|
2711
|
-
|
|
2712
2654
|
return {
|
|
2713
2655
|
x: element.offsetLeft,
|
|
2714
2656
|
y: element.offsetTop,
|
|
2715
|
-
width:
|
|
2716
|
-
height:
|
|
2657
|
+
width: element.offsetWidth,
|
|
2658
|
+
height: element.offsetHeight
|
|
2717
2659
|
};
|
|
2718
2660
|
}
|
|
2719
2661
|
|
|
2720
|
-
|
|
2721
|
-
if (node == null) {
|
|
2722
|
-
return window;
|
|
2723
|
-
}
|
|
2662
|
+
/*:: import type { Window } from '../types'; */
|
|
2724
2663
|
|
|
2664
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2665
|
+
function getWindow(node) {
|
|
2725
2666
|
if (node.toString() !== '[object Window]') {
|
|
2726
2667
|
var ownerDocument = node.ownerDocument;
|
|
2727
2668
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2730,27 +2671,31 @@ function getWindow(node) {
|
|
|
2730
2671
|
return node;
|
|
2731
2672
|
}
|
|
2732
2673
|
|
|
2674
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2675
|
+
Element); */
|
|
2676
|
+
|
|
2733
2677
|
function isElement(node) {
|
|
2734
2678
|
var OwnElement = getWindow(node).Element;
|
|
2735
2679
|
return node instanceof OwnElement || node instanceof Element;
|
|
2736
2680
|
}
|
|
2681
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2682
|
+
HTMLElement); */
|
|
2683
|
+
|
|
2737
2684
|
|
|
2738
2685
|
function isHTMLElement(node) {
|
|
2739
2686
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2740
2687
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2741
2688
|
}
|
|
2689
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2690
|
+
ShadowRoot); */
|
|
2742
2691
|
|
|
2743
|
-
function isShadowRoot(node) {
|
|
2744
|
-
// IE 11 has no ShadowRoot
|
|
2745
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2746
|
-
return false;
|
|
2747
|
-
}
|
|
2748
2692
|
|
|
2693
|
+
function isShadowRoot(node) {
|
|
2749
2694
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2750
2695
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2751
2696
|
}
|
|
2752
2697
|
|
|
2753
|
-
function contains
|
|
2698
|
+
function contains(parent, child) {
|
|
2754
2699
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2755
2700
|
|
|
2756
2701
|
if (parent.contains(child)) {
|
|
@@ -2777,7 +2722,7 @@ function getNodeName(element) {
|
|
|
2777
2722
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2778
2723
|
}
|
|
2779
2724
|
|
|
2780
|
-
function getComputedStyle$
|
|
2725
|
+
function getComputedStyle$2(element) {
|
|
2781
2726
|
return getWindow(element).getComputedStyle(element);
|
|
2782
2727
|
}
|
|
2783
2728
|
|
|
@@ -2800,8 +2745,9 @@ function getParentNode(element) {
|
|
|
2800
2745
|
// $FlowFixMe[incompatible-return]
|
|
2801
2746
|
// $FlowFixMe[prop-missing]
|
|
2802
2747
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2803
|
-
element.parentNode ||
|
|
2804
|
-
|
|
2748
|
+
element.parentNode || // DOM Element detected
|
|
2749
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2750
|
+
element.host || // ShadowRoot detected
|
|
2805
2751
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2806
2752
|
getDocumentElement(element) // fallback
|
|
2807
2753
|
|
|
@@ -2810,36 +2756,33 @@ function getParentNode(element) {
|
|
|
2810
2756
|
|
|
2811
2757
|
function getTrueOffsetParent(element) {
|
|
2812
2758
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2813
|
-
getComputedStyle$
|
|
2759
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2814
2760
|
return null;
|
|
2815
2761
|
}
|
|
2816
2762
|
|
|
2817
|
-
|
|
2818
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2819
|
-
// return the containing block
|
|
2820
|
-
|
|
2763
|
+
var offsetParent = element.offsetParent;
|
|
2821
2764
|
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2765
|
+
if (offsetParent) {
|
|
2766
|
+
var html = getDocumentElement(offsetParent);
|
|
2825
2767
|
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
var elementCss = getComputedStyle$1(element);
|
|
2829
|
-
|
|
2830
|
-
if (elementCss.position === 'fixed') {
|
|
2831
|
-
return null;
|
|
2768
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2769
|
+
return html;
|
|
2832
2770
|
}
|
|
2833
2771
|
}
|
|
2834
2772
|
|
|
2773
|
+
return offsetParent;
|
|
2774
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2775
|
+
// return the containing block
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
function getContainingBlock(element) {
|
|
2835
2779
|
var currentNode = getParentNode(element);
|
|
2836
2780
|
|
|
2837
2781
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2838
|
-
var css = getComputedStyle$
|
|
2782
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2839
2783
|
// create a containing block.
|
|
2840
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2841
2784
|
|
|
2842
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2785
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2843
2786
|
return currentNode;
|
|
2844
2787
|
} else {
|
|
2845
2788
|
currentNode = currentNode.parentNode;
|
|
@@ -2855,11 +2798,11 @@ function getOffsetParent(element) {
|
|
|
2855
2798
|
var window = getWindow(element);
|
|
2856
2799
|
var offsetParent = getTrueOffsetParent(element);
|
|
2857
2800
|
|
|
2858
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2801
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2859
2802
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2860
2803
|
}
|
|
2861
2804
|
|
|
2862
|
-
if (offsetParent &&
|
|
2805
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2863
2806
|
return window;
|
|
2864
2807
|
}
|
|
2865
2808
|
|
|
@@ -2870,12 +2813,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2870
2813
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2871
2814
|
}
|
|
2872
2815
|
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
var round = Math.round;
|
|
2876
|
-
|
|
2877
|
-
function within(min$1, value, max$1) {
|
|
2878
|
-
return max(min$1, min(value, max$1));
|
|
2816
|
+
function within(min, value, max) {
|
|
2817
|
+
return Math.max(min, Math.min(value, max));
|
|
2879
2818
|
}
|
|
2880
2819
|
|
|
2881
2820
|
function getFreshSideObject() {
|
|
@@ -2888,7 +2827,7 @@ function getFreshSideObject() {
|
|
|
2888
2827
|
}
|
|
2889
2828
|
|
|
2890
2829
|
function mergePaddingObject(paddingObject) {
|
|
2891
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2830
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2892
2831
|
}
|
|
2893
2832
|
|
|
2894
2833
|
function expandToHashMap(value, keys) {
|
|
@@ -2898,19 +2837,11 @@ function expandToHashMap(value, keys) {
|
|
|
2898
2837
|
}, {});
|
|
2899
2838
|
}
|
|
2900
2839
|
|
|
2901
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2902
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2903
|
-
placement: state.placement
|
|
2904
|
-
})) : padding;
|
|
2905
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2906
|
-
};
|
|
2907
|
-
|
|
2908
2840
|
function arrow(_ref) {
|
|
2909
2841
|
var _state$modifiersData$;
|
|
2910
2842
|
|
|
2911
2843
|
var state = _ref.state,
|
|
2912
|
-
name = _ref.name
|
|
2913
|
-
options = _ref.options;
|
|
2844
|
+
name = _ref.name;
|
|
2914
2845
|
var arrowElement = state.elements.arrow;
|
|
2915
2846
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2916
2847
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2922,7 +2853,7 @@ function arrow(_ref) {
|
|
|
2922
2853
|
return;
|
|
2923
2854
|
}
|
|
2924
2855
|
|
|
2925
|
-
var paddingObject =
|
|
2856
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2926
2857
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2927
2858
|
var minProp = axis === 'y' ? top : left;
|
|
2928
2859
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2942,11 +2873,14 @@ function arrow(_ref) {
|
|
|
2942
2873
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2943
2874
|
}
|
|
2944
2875
|
|
|
2945
|
-
function effect
|
|
2876
|
+
function effect(_ref2) {
|
|
2946
2877
|
var state = _ref2.state,
|
|
2947
|
-
options = _ref2.options
|
|
2878
|
+
options = _ref2.options,
|
|
2879
|
+
name = _ref2.name;
|
|
2948
2880
|
var _options$element = options.element,
|
|
2949
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2881
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2882
|
+
_options$padding = options.padding,
|
|
2883
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2950
2884
|
|
|
2951
2885
|
if (arrowElement == null) {
|
|
2952
2886
|
return;
|
|
@@ -2967,7 +2901,7 @@ function effect$1(_ref2) {
|
|
|
2967
2901
|
}
|
|
2968
2902
|
}
|
|
2969
2903
|
|
|
2970
|
-
if (!contains
|
|
2904
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2971
2905
|
if (process.env.NODE_ENV !== "production") {
|
|
2972
2906
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2973
2907
|
}
|
|
@@ -2976,6 +2910,9 @@ function effect$1(_ref2) {
|
|
|
2976
2910
|
}
|
|
2977
2911
|
|
|
2978
2912
|
state.elements.arrow = arrowElement;
|
|
2913
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2914
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2915
|
+
};
|
|
2979
2916
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2980
2917
|
|
|
2981
2918
|
|
|
@@ -2984,7 +2921,7 @@ var arrow$1 = {
|
|
|
2984
2921
|
enabled: true,
|
|
2985
2922
|
phase: 'main',
|
|
2986
2923
|
fn: arrow,
|
|
2987
|
-
effect: effect
|
|
2924
|
+
effect: effect,
|
|
2988
2925
|
requires: ['popperOffsets'],
|
|
2989
2926
|
requiresIfExists: ['preventOverflow']
|
|
2990
2927
|
};
|
|
@@ -3004,8 +2941,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
3004
2941
|
var win = window;
|
|
3005
2942
|
var dpr = win.devicePixelRatio || 1;
|
|
3006
2943
|
return {
|
|
3007
|
-
x: round(
|
|
3008
|
-
y: round(
|
|
2944
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2945
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
3009
2946
|
};
|
|
3010
2947
|
}
|
|
3011
2948
|
|
|
@@ -3021,7 +2958,7 @@ function mapToStyles(_ref2) {
|
|
|
3021
2958
|
adaptive = _ref2.adaptive,
|
|
3022
2959
|
roundOffsets = _ref2.roundOffsets;
|
|
3023
2960
|
|
|
3024
|
-
var _ref3 = roundOffsets
|
|
2961
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
3025
2962
|
_ref3$x = _ref3.x,
|
|
3026
2963
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
3027
2964
|
_ref3$y = _ref3.y,
|
|
@@ -3035,32 +2972,23 @@ function mapToStyles(_ref2) {
|
|
|
3035
2972
|
|
|
3036
2973
|
if (adaptive) {
|
|
3037
2974
|
var offsetParent = getOffsetParent(popper);
|
|
3038
|
-
var heightProp = 'clientHeight';
|
|
3039
|
-
var widthProp = 'clientWidth';
|
|
3040
2975
|
|
|
3041
2976
|
if (offsetParent === getWindow(popper)) {
|
|
3042
2977
|
offsetParent = getDocumentElement(popper);
|
|
3043
|
-
|
|
3044
|
-
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3045
|
-
heightProp = 'scrollHeight';
|
|
3046
|
-
widthProp = 'scrollWidth';
|
|
3047
|
-
}
|
|
3048
2978
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3049
2979
|
|
|
2980
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3050
2981
|
|
|
3051
|
-
offsetParent = offsetParent;
|
|
3052
2982
|
|
|
3053
2983
|
if (placement === top) {
|
|
3054
|
-
sideY = bottom;
|
|
3055
|
-
|
|
3056
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2984
|
+
sideY = bottom;
|
|
2985
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3057
2986
|
y *= gpuAcceleration ? 1 : -1;
|
|
3058
2987
|
}
|
|
3059
2988
|
|
|
3060
2989
|
if (placement === left) {
|
|
3061
|
-
sideX = right;
|
|
3062
|
-
|
|
3063
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2990
|
+
sideX = right;
|
|
2991
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3064
2992
|
x *= gpuAcceleration ? 1 : -1;
|
|
3065
2993
|
}
|
|
3066
2994
|
}
|
|
@@ -3072,10 +3000,10 @@ function mapToStyles(_ref2) {
|
|
|
3072
3000
|
if (gpuAcceleration) {
|
|
3073
3001
|
var _Object$assign;
|
|
3074
3002
|
|
|
3075
|
-
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));
|
|
3003
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3076
3004
|
}
|
|
3077
3005
|
|
|
3078
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3006
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3079
3007
|
}
|
|
3080
3008
|
|
|
3081
3009
|
function computeStyles(_ref4) {
|
|
@@ -3089,7 +3017,7 @@ function computeStyles(_ref4) {
|
|
|
3089
3017
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3090
3018
|
|
|
3091
3019
|
if (process.env.NODE_ENV !== "production") {
|
|
3092
|
-
var transitionProperty = getComputedStyle$
|
|
3020
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3093
3021
|
|
|
3094
3022
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3095
3023
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3106,7 +3034,7 @@ function computeStyles(_ref4) {
|
|
|
3106
3034
|
};
|
|
3107
3035
|
|
|
3108
3036
|
if (state.modifiersData.popperOffsets != null) {
|
|
3109
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3037
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3110
3038
|
offsets: state.modifiersData.popperOffsets,
|
|
3111
3039
|
position: state.options.strategy,
|
|
3112
3040
|
adaptive: adaptive,
|
|
@@ -3115,7 +3043,7 @@ function computeStyles(_ref4) {
|
|
|
3115
3043
|
}
|
|
3116
3044
|
|
|
3117
3045
|
if (state.modifiersData.arrow != null) {
|
|
3118
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3046
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3119
3047
|
offsets: state.modifiersData.arrow,
|
|
3120
3048
|
position: 'absolute',
|
|
3121
3049
|
adaptive: false,
|
|
@@ -3123,7 +3051,7 @@ function computeStyles(_ref4) {
|
|
|
3123
3051
|
})));
|
|
3124
3052
|
}
|
|
3125
3053
|
|
|
3126
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3054
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3127
3055
|
'data-popper-placement': state.placement
|
|
3128
3056
|
});
|
|
3129
3057
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3141,7 +3069,7 @@ var passive = {
|
|
|
3141
3069
|
passive: true
|
|
3142
3070
|
};
|
|
3143
3071
|
|
|
3144
|
-
function effect(_ref) {
|
|
3072
|
+
function effect$1(_ref) {
|
|
3145
3073
|
var state = _ref.state,
|
|
3146
3074
|
instance = _ref.instance,
|
|
3147
3075
|
options = _ref.options;
|
|
@@ -3181,11 +3109,11 @@ var eventListeners = {
|
|
|
3181
3109
|
enabled: true,
|
|
3182
3110
|
phase: 'write',
|
|
3183
3111
|
fn: function fn() {},
|
|
3184
|
-
effect: effect,
|
|
3112
|
+
effect: effect$1,
|
|
3185
3113
|
data: {}
|
|
3186
3114
|
};
|
|
3187
3115
|
|
|
3188
|
-
var hash
|
|
3116
|
+
var hash = {
|
|
3189
3117
|
left: 'right',
|
|
3190
3118
|
right: 'left',
|
|
3191
3119
|
bottom: 'top',
|
|
@@ -3193,20 +3121,34 @@ var hash$1 = {
|
|
|
3193
3121
|
};
|
|
3194
3122
|
function getOppositePlacement(placement) {
|
|
3195
3123
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3196
|
-
return hash
|
|
3124
|
+
return hash[matched];
|
|
3197
3125
|
});
|
|
3198
3126
|
}
|
|
3199
3127
|
|
|
3200
|
-
var hash = {
|
|
3128
|
+
var hash$1 = {
|
|
3201
3129
|
start: 'end',
|
|
3202
3130
|
end: 'start'
|
|
3203
3131
|
};
|
|
3204
3132
|
function getOppositeVariationPlacement(placement) {
|
|
3205
3133
|
return placement.replace(/start|end/g, function (matched) {
|
|
3206
|
-
return hash[matched];
|
|
3134
|
+
return hash$1[matched];
|
|
3207
3135
|
});
|
|
3208
3136
|
}
|
|
3209
3137
|
|
|
3138
|
+
function getBoundingClientRect(element) {
|
|
3139
|
+
var rect = element.getBoundingClientRect();
|
|
3140
|
+
return {
|
|
3141
|
+
width: rect.width,
|
|
3142
|
+
height: rect.height,
|
|
3143
|
+
top: rect.top,
|
|
3144
|
+
right: rect.right,
|
|
3145
|
+
bottom: rect.bottom,
|
|
3146
|
+
left: rect.left,
|
|
3147
|
+
x: rect.left,
|
|
3148
|
+
y: rect.top
|
|
3149
|
+
};
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3210
3152
|
function getWindowScroll(node) {
|
|
3211
3153
|
var win = getWindow(node);
|
|
3212
3154
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3269,18 +3211,16 @@ function getViewportRect(element) {
|
|
|
3269
3211
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3270
3212
|
|
|
3271
3213
|
function getDocumentRect(element) {
|
|
3272
|
-
var _element$ownerDocumen;
|
|
3273
|
-
|
|
3274
3214
|
var html = getDocumentElement(element);
|
|
3275
3215
|
var winScroll = getWindowScroll(element);
|
|
3276
|
-
var body =
|
|
3277
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3278
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3216
|
+
var body = element.ownerDocument.body;
|
|
3217
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3218
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3279
3219
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3280
3220
|
var y = -winScroll.scrollTop;
|
|
3281
3221
|
|
|
3282
|
-
if (getComputedStyle$
|
|
3283
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3222
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3223
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3284
3224
|
}
|
|
3285
3225
|
|
|
3286
3226
|
return {
|
|
@@ -3293,7 +3233,7 @@ function getDocumentRect(element) {
|
|
|
3293
3233
|
|
|
3294
3234
|
function isScrollParent(element) {
|
|
3295
3235
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3296
|
-
var _getComputedStyle = getComputedStyle$
|
|
3236
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3297
3237
|
overflow = _getComputedStyle.overflow,
|
|
3298
3238
|
overflowX = _getComputedStyle.overflowX,
|
|
3299
3239
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3322,14 +3262,12 @@ reference element's position.
|
|
|
3322
3262
|
*/
|
|
3323
3263
|
|
|
3324
3264
|
function listScrollParents(element, list) {
|
|
3325
|
-
var _element$ownerDocumen;
|
|
3326
|
-
|
|
3327
3265
|
if (list === void 0) {
|
|
3328
3266
|
list = [];
|
|
3329
3267
|
}
|
|
3330
3268
|
|
|
3331
3269
|
var scrollParent = getScrollParent(element);
|
|
3332
|
-
var isBody = scrollParent ===
|
|
3270
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3333
3271
|
var win = getWindow(scrollParent);
|
|
3334
3272
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3335
3273
|
var updatedList = list.concat(target);
|
|
@@ -3338,7 +3276,7 @@ function listScrollParents(element, list) {
|
|
|
3338
3276
|
}
|
|
3339
3277
|
|
|
3340
3278
|
function rectToClientRect(rect) {
|
|
3341
|
-
return Object.assign({}, rect, {
|
|
3279
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3342
3280
|
left: rect.x,
|
|
3343
3281
|
top: rect.y,
|
|
3344
3282
|
right: rect.x + rect.width,
|
|
@@ -3368,7 +3306,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3368
3306
|
|
|
3369
3307
|
function getClippingParents(element) {
|
|
3370
3308
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3371
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3309
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3372
3310
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3373
3311
|
|
|
3374
3312
|
if (!isElement(clipperElement)) {
|
|
@@ -3377,7 +3315,7 @@ function getClippingParents(element) {
|
|
|
3377
3315
|
|
|
3378
3316
|
|
|
3379
3317
|
return clippingParents.filter(function (clippingParent) {
|
|
3380
|
-
return isElement(clippingParent) && contains
|
|
3318
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3381
3319
|
});
|
|
3382
3320
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3383
3321
|
// clipping parents
|
|
@@ -3389,10 +3327,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3389
3327
|
var firstClippingParent = clippingParents[0];
|
|
3390
3328
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3391
3329
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3392
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3393
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3394
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3395
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3330
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3331
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3332
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3333
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3396
3334
|
return accRect;
|
|
3397
3335
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3398
3336
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3502,7 +3440,7 @@ function detectOverflow(state, options) {
|
|
|
3502
3440
|
strategy: 'absolute',
|
|
3503
3441
|
placement: placement
|
|
3504
3442
|
});
|
|
3505
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3443
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3506
3444
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3507
3445
|
// 0 or negative = within the clipping rect
|
|
3508
3446
|
|
|
@@ -3526,6 +3464,9 @@ function detectOverflow(state, options) {
|
|
|
3526
3464
|
return overflowOffsets;
|
|
3527
3465
|
}
|
|
3528
3466
|
|
|
3467
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3468
|
+
|
|
3469
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3529
3470
|
function computeAutoPlacement(state, options) {
|
|
3530
3471
|
if (options === void 0) {
|
|
3531
3472
|
options = {};
|
|
@@ -3754,7 +3695,7 @@ function hide(_ref) {
|
|
|
3754
3695
|
isReferenceHidden: isReferenceHidden,
|
|
3755
3696
|
hasPopperEscaped: hasPopperEscaped
|
|
3756
3697
|
};
|
|
3757
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3698
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3758
3699
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3759
3700
|
'data-popper-escaped': hasPopperEscaped
|
|
3760
3701
|
});
|
|
@@ -3773,7 +3714,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3773
3714
|
var basePlacement = getBasePlacement(placement);
|
|
3774
3715
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3775
3716
|
|
|
3776
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3717
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3777
3718
|
placement: placement
|
|
3778
3719
|
})) : offset,
|
|
3779
3720
|
skidding = _ref[0],
|
|
@@ -3879,7 +3820,7 @@ function preventOverflow(_ref) {
|
|
|
3879
3820
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3880
3821
|
var referenceRect = state.rects.reference;
|
|
3881
3822
|
var popperRect = state.rects.popper;
|
|
3882
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3823
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3883
3824
|
placement: state.placement
|
|
3884
3825
|
})) : tetherOffset;
|
|
3885
3826
|
var data = {
|
|
@@ -3891,13 +3832,13 @@ function preventOverflow(_ref) {
|
|
|
3891
3832
|
return;
|
|
3892
3833
|
}
|
|
3893
3834
|
|
|
3894
|
-
if (checkMainAxis
|
|
3835
|
+
if (checkMainAxis) {
|
|
3895
3836
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3896
3837
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3897
3838
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3898
3839
|
var offset = popperOffsets[mainAxis];
|
|
3899
|
-
var min
|
|
3900
|
-
var max
|
|
3840
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3841
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3901
3842
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3902
3843
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3903
3844
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3924,29 +3865,26 @@ function preventOverflow(_ref) {
|
|
|
3924
3865
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3925
3866
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3926
3867
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3868
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3869
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3870
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3871
|
+
}
|
|
3927
3872
|
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3931
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3932
|
-
}
|
|
3933
|
-
|
|
3934
|
-
if (checkAltAxis) {
|
|
3935
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3873
|
+
if (checkAltAxis) {
|
|
3874
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3936
3875
|
|
|
3937
|
-
|
|
3876
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3938
3877
|
|
|
3939
|
-
|
|
3878
|
+
var _offset = popperOffsets[altAxis];
|
|
3940
3879
|
|
|
3941
|
-
|
|
3880
|
+
var _min = _offset + overflow[_mainSide];
|
|
3942
3881
|
|
|
3943
|
-
|
|
3882
|
+
var _max = _offset - overflow[_altSide];
|
|
3944
3883
|
|
|
3945
|
-
|
|
3884
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3946
3885
|
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
}
|
|
3886
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3887
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3950
3888
|
}
|
|
3951
3889
|
|
|
3952
3890
|
state.modifiersData[name] = data;
|
|
@@ -4177,9 +4115,9 @@ function uniqueBy(arr, fn) {
|
|
|
4177
4115
|
function mergeByName(modifiers) {
|
|
4178
4116
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4179
4117
|
var existing = merged[current.name];
|
|
4180
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4181
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4182
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4118
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4119
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4120
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4183
4121
|
}) : current;
|
|
4184
4122
|
return merged;
|
|
4185
4123
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4225,7 +4163,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4225
4163
|
var state = {
|
|
4226
4164
|
placement: 'bottom',
|
|
4227
4165
|
orderedModifiers: [],
|
|
4228
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4166
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4229
4167
|
modifiersData: {},
|
|
4230
4168
|
elements: {
|
|
4231
4169
|
reference: reference,
|
|
@@ -4240,7 +4178,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4240
4178
|
state: state,
|
|
4241
4179
|
setOptions: function setOptions(options) {
|
|
4242
4180
|
cleanupModifierEffects();
|
|
4243
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4181
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4244
4182
|
state.scrollParents = {
|
|
4245
4183
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4246
4184
|
popper: listScrollParents(popper)
|
|
@@ -4272,7 +4210,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4272
4210
|
}
|
|
4273
4211
|
}
|
|
4274
4212
|
|
|
4275
|
-
var _getComputedStyle = getComputedStyle$
|
|
4213
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4276
4214
|
marginTop = _getComputedStyle.marginTop,
|
|
4277
4215
|
marginRight = _getComputedStyle.marginRight,
|
|
4278
4216
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4610,16 +4548,9 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4610
4548
|
}
|
|
4611
4549
|
|
|
4612
4550
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
*
|
|
4617
|
-
* @param context the context element
|
|
4618
|
-
* @param node the element to check
|
|
4619
|
-
*/
|
|
4620
|
-
function contains(context, node) {
|
|
4621
|
-
// HTML DOM and SVG DOM may have different support levels,
|
|
4622
|
-
// so we need to check on context instead of a document root element.
|
|
4551
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4552
|
+
// so we need to check on context instead of a document root element.
|
|
4553
|
+
function contains$1(context, node) {
|
|
4623
4554
|
if (context.contains) return context.contains(node);
|
|
4624
4555
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4625
4556
|
}
|
|
@@ -4693,13 +4624,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4693
4624
|
return componentOrElement != null ? componentOrElement : null;
|
|
4694
4625
|
}
|
|
4695
4626
|
|
|
4696
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4697
|
-
return ownerDocument
|
|
4627
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4628
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4698
4629
|
});
|
|
4699
4630
|
|
|
4700
4631
|
var escapeKeyCode = 27;
|
|
4701
4632
|
|
|
4702
|
-
var noop$
|
|
4633
|
+
var noop$1 = function noop() {};
|
|
4703
4634
|
|
|
4704
4635
|
function isLeftClickEvent(event) {
|
|
4705
4636
|
return event.button === 0;
|
|
@@ -4732,11 +4663,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4732
4663
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4733
4664
|
|
|
4734
4665
|
var preventMouseRootCloseRef = useRef(false);
|
|
4735
|
-
var onClose = onRootClose || noop$
|
|
4666
|
+
var onClose = onRootClose || noop$1;
|
|
4736
4667
|
var handleMouseCapture = useCallback(function (e) {
|
|
4737
4668
|
var currentTarget = getRefTarget(ref);
|
|
4738
4669
|
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');
|
|
4739
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4670
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4740
4671
|
}, [ref]);
|
|
4741
4672
|
var handleMouse = useEventCallback(function (e) {
|
|
4742
4673
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4753,7 +4684,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4753
4684
|
// https://github.com/facebook/react/issues/20074
|
|
4754
4685
|
|
|
4755
4686
|
var currentEvent = window.event;
|
|
4756
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4687
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4757
4688
|
// avoid false positives in the contains() check below if the target DOM
|
|
4758
4689
|
// element is removed in the React mouse callback.
|
|
4759
4690
|
|
|
@@ -4780,7 +4711,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4780
4711
|
|
|
4781
4712
|
if ('ontouchstart' in doc.documentElement) {
|
|
4782
4713
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4783
|
-
return listen(el, 'mousemove', noop$
|
|
4714
|
+
return listen(el, 'mousemove', noop$1);
|
|
4784
4715
|
});
|
|
4785
4716
|
}
|
|
4786
4717
|
|
|
@@ -4862,7 +4793,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4862
4793
|
});
|
|
4863
4794
|
}
|
|
4864
4795
|
|
|
4865
|
-
var noop$
|
|
4796
|
+
var noop$2 = function noop() {};
|
|
4866
4797
|
/**
|
|
4867
4798
|
* @memberOf Dropdown
|
|
4868
4799
|
* @param {object} options
|
|
@@ -4930,7 +4861,7 @@ function useDropdownMenu(options) {
|
|
|
4930
4861
|
|
|
4931
4862
|
var menu;
|
|
4932
4863
|
var menuProps = {
|
|
4933
|
-
ref: setMenu || noop$
|
|
4864
|
+
ref: setMenu || noop$2,
|
|
4934
4865
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4935
4866
|
};
|
|
4936
4867
|
var childArgs = {
|
|
@@ -4963,7 +4894,7 @@ function useDropdownMenu(options) {
|
|
|
4963
4894
|
});
|
|
4964
4895
|
return menu;
|
|
4965
4896
|
}
|
|
4966
|
-
var propTypes$
|
|
4897
|
+
var propTypes$2 = {
|
|
4967
4898
|
/**
|
|
4968
4899
|
* A render prop that returns a Menu element. The `props`
|
|
4969
4900
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5020,7 +4951,7 @@ var propTypes$8 = {
|
|
|
5020
4951
|
*/
|
|
5021
4952
|
rootCloseEvent: PropTypes.string
|
|
5022
4953
|
};
|
|
5023
|
-
var defaultProps$
|
|
4954
|
+
var defaultProps$d = {
|
|
5024
4955
|
usePopper: true
|
|
5025
4956
|
};
|
|
5026
4957
|
|
|
@@ -5030,7 +4961,7 @@ var defaultProps$r = {
|
|
|
5030
4961
|
* @displayName DropdownMenu
|
|
5031
4962
|
* @memberOf Dropdown
|
|
5032
4963
|
*/
|
|
5033
|
-
function DropdownMenu
|
|
4964
|
+
function DropdownMenu(_ref2) {
|
|
5034
4965
|
var children = _ref2.children,
|
|
5035
4966
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5036
4967
|
|
|
@@ -5038,11 +4969,11 @@ function DropdownMenu$1(_ref2) {
|
|
|
5038
4969
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
5039
4970
|
}
|
|
5040
4971
|
|
|
5041
|
-
DropdownMenu
|
|
5042
|
-
DropdownMenu
|
|
5043
|
-
DropdownMenu
|
|
4972
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4973
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4974
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5044
4975
|
|
|
5045
|
-
var noop$
|
|
4976
|
+
var noop$3 = function noop() {};
|
|
5046
4977
|
/**
|
|
5047
4978
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5048
4979
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5056,11 +4987,11 @@ function useDropdownToggle() {
|
|
|
5056
4987
|
_ref$show = _ref.show,
|
|
5057
4988
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5058
4989
|
_ref$toggle = _ref.toggle,
|
|
5059
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4990
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5060
4991
|
setToggle = _ref.setToggle;
|
|
5061
4992
|
|
|
5062
4993
|
return [{
|
|
5063
|
-
ref: setToggle || noop$
|
|
4994
|
+
ref: setToggle || noop$3,
|
|
5064
4995
|
'aria-haspopup': true,
|
|
5065
4996
|
'aria-expanded': !!show
|
|
5066
4997
|
}, {
|
|
@@ -5068,7 +4999,7 @@ function useDropdownToggle() {
|
|
|
5068
4999
|
toggle: toggle
|
|
5069
5000
|
}];
|
|
5070
5001
|
}
|
|
5071
|
-
var propTypes$
|
|
5002
|
+
var propTypes$3 = {
|
|
5072
5003
|
/**
|
|
5073
5004
|
* A render prop that returns a Toggle element. The `props`
|
|
5074
5005
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5093,7 +5024,7 @@ var propTypes$7 = {
|
|
|
5093
5024
|
* @displayName DropdownToggle
|
|
5094
5025
|
* @memberOf Dropdown
|
|
5095
5026
|
*/
|
|
5096
|
-
function DropdownToggle
|
|
5027
|
+
function DropdownToggle(_ref2) {
|
|
5097
5028
|
var children = _ref2.children;
|
|
5098
5029
|
|
|
5099
5030
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5109,10 +5040,10 @@ function DropdownToggle$1(_ref2) {
|
|
|
5109
5040
|
}));
|
|
5110
5041
|
}
|
|
5111
5042
|
|
|
5112
|
-
DropdownToggle
|
|
5113
|
-
DropdownToggle
|
|
5043
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5044
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5114
5045
|
|
|
5115
|
-
var propTypes$
|
|
5046
|
+
var propTypes$4 = {
|
|
5116
5047
|
/**
|
|
5117
5048
|
* A render prop that returns the root dropdown element. The `props`
|
|
5118
5049
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5184,7 +5115,7 @@ var propTypes$6 = {
|
|
|
5184
5115
|
/**
|
|
5185
5116
|
* @displayName Dropdown
|
|
5186
5117
|
*/
|
|
5187
|
-
function Dropdown
|
|
5118
|
+
function Dropdown(_ref) {
|
|
5188
5119
|
var drop = _ref.drop,
|
|
5189
5120
|
alignEnd = _ref.alignEnd,
|
|
5190
5121
|
defaultShow = _ref.defaultShow,
|
|
@@ -5326,15 +5257,15 @@ function Dropdown$1(_ref) {
|
|
|
5326
5257
|
}));
|
|
5327
5258
|
}
|
|
5328
5259
|
|
|
5329
|
-
Dropdown
|
|
5330
|
-
Dropdown
|
|
5331
|
-
Dropdown
|
|
5332
|
-
Dropdown
|
|
5260
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5261
|
+
Dropdown.propTypes = propTypes$4;
|
|
5262
|
+
Dropdown.Menu = DropdownMenu;
|
|
5263
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5333
5264
|
|
|
5334
5265
|
var NavContext = React__default.createContext(null);
|
|
5335
5266
|
NavContext.displayName = 'NavContext';
|
|
5336
5267
|
|
|
5337
|
-
var defaultProps$
|
|
5268
|
+
var defaultProps$e = {
|
|
5338
5269
|
as: SafeAnchor,
|
|
5339
5270
|
disabled: false
|
|
5340
5271
|
};
|
|
@@ -5349,7 +5280,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5349
5280
|
onSelect = _ref.onSelect,
|
|
5350
5281
|
propActive = _ref.active,
|
|
5351
5282
|
Component = _ref.as,
|
|
5352
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5283
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5353
5284
|
|
|
5354
5285
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5355
5286
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5373,7 +5304,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5373
5304
|
/*#__PURE__*/
|
|
5374
5305
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5375
5306
|
// @ts-ignore
|
|
5376
|
-
React__default.createElement(Component, _extends({}, props, {
|
|
5307
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5377
5308
|
ref: ref,
|
|
5378
5309
|
href: href,
|
|
5379
5310
|
disabled: disabled,
|
|
@@ -5383,7 +5314,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5383
5314
|
);
|
|
5384
5315
|
});
|
|
5385
5316
|
DropdownItem.displayName = 'DropdownItem';
|
|
5386
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5317
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5387
5318
|
|
|
5388
5319
|
var toFnRef = function toFnRef(ref) {
|
|
5389
5320
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5422,8 +5353,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5422
5353
|
}, [refA, refB]);
|
|
5423
5354
|
}
|
|
5424
5355
|
|
|
5425
|
-
var context = React__default.createContext(null);
|
|
5426
|
-
context.displayName = 'NavbarContext';
|
|
5356
|
+
var context$2 = React__default.createContext(null);
|
|
5357
|
+
context$2.displayName = 'NavbarContext';
|
|
5427
5358
|
|
|
5428
5359
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5429
5360
|
// @ts-ignore
|
|
@@ -5436,12 +5367,6 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5436
5367
|
return useMergedRefs(warningRef, ref);
|
|
5437
5368
|
}
|
|
5438
5369
|
|
|
5439
|
-
/**
|
|
5440
|
-
* Checks if a given element has a CSS class.
|
|
5441
|
-
*
|
|
5442
|
-
* @param element the element
|
|
5443
|
-
* @param className the CSS class name
|
|
5444
|
-
*/
|
|
5445
5370
|
function hasClass(element, className) {
|
|
5446
5371
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5447
5372
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5550,13 +5475,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5550
5475
|
}), PropTypes.shape({
|
|
5551
5476
|
xl: alignDirection
|
|
5552
5477
|
})]);
|
|
5553
|
-
var defaultProps$
|
|
5478
|
+
var defaultProps$f = {
|
|
5554
5479
|
align: 'left',
|
|
5555
5480
|
alignRight: false,
|
|
5556
5481
|
flip: true
|
|
5557
5482
|
}; // TODO: remove this hack
|
|
5558
5483
|
|
|
5559
|
-
var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
5484
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5560
5485
|
var bsPrefix = _ref.bsPrefix,
|
|
5561
5486
|
className = _ref.className,
|
|
5562
5487
|
align = _ref.align,
|
|
@@ -5568,9 +5493,9 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5568
5493
|
_ref$as = _ref.as,
|
|
5569
5494
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5570
5495
|
popperConfig = _ref.popperConfig,
|
|
5571
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5496
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5572
5497
|
|
|
5573
|
-
var isNavbar = useContext(context);
|
|
5498
|
+
var isNavbar = useContext(context$2);
|
|
5574
5499
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5575
5500
|
|
|
5576
5501
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5604,7 +5529,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5604
5529
|
show: showProps,
|
|
5605
5530
|
alignEnd: alignRight,
|
|
5606
5531
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5607
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5532
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5608
5533
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5609
5534
|
})
|
|
5610
5535
|
}),
|
|
@@ -5627,16 +5552,16 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5627
5552
|
if (placement) {
|
|
5628
5553
|
// we don't need the default popper style,
|
|
5629
5554
|
// menus are display: none when not shown.
|
|
5630
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5555
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5631
5556
|
props['x-placement'] = placement;
|
|
5632
5557
|
}
|
|
5633
5558
|
|
|
5634
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5559
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5635
5560
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5636
5561
|
}));
|
|
5637
5562
|
});
|
|
5638
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5639
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5563
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5564
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5640
5565
|
|
|
5641
5566
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5642
5567
|
|
|
@@ -5665,14 +5590,14 @@ module.exports = exports['default'];
|
|
|
5665
5590
|
|
|
5666
5591
|
unwrapExports(isRequiredForA11y_1);
|
|
5667
5592
|
|
|
5668
|
-
var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
5593
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5669
5594
|
var bsPrefix = _ref.bsPrefix,
|
|
5670
5595
|
split = _ref.split,
|
|
5671
5596
|
className = _ref.className,
|
|
5672
5597
|
childBsPrefix = _ref.childBsPrefix,
|
|
5673
5598
|
_ref$as = _ref.as,
|
|
5674
5599
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5675
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5600
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5676
5601
|
|
|
5677
5602
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5678
5603
|
|
|
@@ -5687,12 +5612,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5687
5612
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5688
5613
|
// underlying component, to allow it to render size and style variants.
|
|
5689
5614
|
|
|
5690
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5615
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5691
5616
|
onClick: toggle,
|
|
5692
5617
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5693
5618
|
}, toggleProps, props));
|
|
5694
5619
|
});
|
|
5695
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5620
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5696
5621
|
|
|
5697
5622
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5698
5623
|
defaultProps: {
|
|
@@ -5707,10 +5632,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5707
5632
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5708
5633
|
Component: 'span'
|
|
5709
5634
|
});
|
|
5710
|
-
var defaultProps$
|
|
5635
|
+
var defaultProps$g = {
|
|
5711
5636
|
navbar: false
|
|
5712
5637
|
};
|
|
5713
|
-
var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
5638
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5714
5639
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5715
5640
|
show: 'onToggle'
|
|
5716
5641
|
}),
|
|
@@ -5723,9 +5648,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5723
5648
|
onToggle = _useUncontrolled.onToggle,
|
|
5724
5649
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5725
5650
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5726
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5727
|
-
_useUncontrolled.navbar
|
|
5728
|
-
|
|
5651
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5652
|
+
_4 = _useUncontrolled.navbar,
|
|
5653
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5729
5654
|
|
|
5730
5655
|
var onSelectCtx = useContext(SelectableContext);
|
|
5731
5656
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5749,7 +5674,7 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5749
5674
|
});
|
|
5750
5675
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5751
5676
|
value: handleSelect
|
|
5752
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown
|
|
5677
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5753
5678
|
drop: drop,
|
|
5754
5679
|
show: show,
|
|
5755
5680
|
alignEnd: alignRight,
|
|
@@ -5758,20 +5683,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5758
5683
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5759
5684
|
}, function (_ref) {
|
|
5760
5685
|
var dropdownProps = _ref.props;
|
|
5761
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5686
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5762
5687
|
ref: ref,
|
|
5763
5688
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5764
5689
|
}));
|
|
5765
5690
|
}));
|
|
5766
5691
|
});
|
|
5767
|
-
Dropdown.displayName = 'Dropdown';
|
|
5768
|
-
Dropdown.defaultProps = defaultProps$
|
|
5769
|
-
Dropdown.Divider = DropdownDivider;
|
|
5770
|
-
Dropdown.Header = DropdownHeader;
|
|
5771
|
-
Dropdown.Item = DropdownItem;
|
|
5772
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5773
|
-
Dropdown.Menu = DropdownMenu;
|
|
5774
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5692
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5693
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5694
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5695
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5696
|
+
Dropdown$1.Item = DropdownItem;
|
|
5697
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5698
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5699
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5775
5700
|
|
|
5776
5701
|
var propTypes$5 = {
|
|
5777
5702
|
/**
|
|
@@ -5846,18 +5771,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5846
5771
|
disabled = _ref.disabled,
|
|
5847
5772
|
href = _ref.href,
|
|
5848
5773
|
id = _ref.id,
|
|
5849
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5774
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5850
5775
|
|
|
5851
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5776
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
5852
5777
|
ref: ref
|
|
5853
|
-
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5778
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5854
5779
|
id: id,
|
|
5855
5780
|
href: href,
|
|
5856
5781
|
size: size,
|
|
5857
5782
|
variant: variant,
|
|
5858
5783
|
disabled: disabled,
|
|
5859
5784
|
childBsPrefix: bsPrefix
|
|
5860
|
-
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
5785
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5861
5786
|
align: menuAlign,
|
|
5862
5787
|
role: menuRole,
|
|
5863
5788
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5960,7 +5885,7 @@ module.exports = exports['default'];
|
|
|
5960
5885
|
|
|
5961
5886
|
unwrapExports(all_1);
|
|
5962
5887
|
|
|
5963
|
-
var propTypes$
|
|
5888
|
+
var propTypes$6 = {
|
|
5964
5889
|
/**
|
|
5965
5890
|
* Specify whether the feedback is for valid or invalid fields
|
|
5966
5891
|
*
|
|
@@ -5981,15 +5906,15 @@ function (_ref, ref) {
|
|
|
5981
5906
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5982
5907
|
_ref$tooltip = _ref.tooltip,
|
|
5983
5908
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5984
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5909
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
5985
5910
|
|
|
5986
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5911
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5987
5912
|
ref: ref,
|
|
5988
5913
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5989
5914
|
}));
|
|
5990
5915
|
});
|
|
5991
5916
|
Feedback.displayName = 'Feedback';
|
|
5992
|
-
Feedback.propTypes = propTypes$
|
|
5917
|
+
Feedback.propTypes = propTypes$6;
|
|
5993
5918
|
|
|
5994
5919
|
var FormContext = React__default.createContext({
|
|
5995
5920
|
controlId: undefined
|
|
@@ -6009,7 +5934,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6009
5934
|
isStatic = _ref.isStatic,
|
|
6010
5935
|
_ref$as = _ref.as,
|
|
6011
5936
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6012
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5937
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
6013
5938
|
|
|
6014
5939
|
var _useContext = useContext(FormContext),
|
|
6015
5940
|
controlId = _useContext.controlId,
|
|
@@ -6020,7 +5945,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6020
5945
|
defaultPrefix = _ref2[1];
|
|
6021
5946
|
|
|
6022
5947
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6023
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5948
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6024
5949
|
ref: ref,
|
|
6025
5950
|
type: type,
|
|
6026
5951
|
id: id || controlId,
|
|
@@ -6034,7 +5959,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6034
5959
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6035
5960
|
className = _ref.className,
|
|
6036
5961
|
htmlFor = _ref.htmlFor,
|
|
6037
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5962
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6038
5963
|
|
|
6039
5964
|
var _useContext = useContext(FormContext),
|
|
6040
5965
|
controlId = _useContext.controlId,
|
|
@@ -6045,7 +5970,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6045
5970
|
defaultPrefix = _ref2[1];
|
|
6046
5971
|
|
|
6047
5972
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6048
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5973
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6049
5974
|
ref: ref,
|
|
6050
5975
|
htmlFor: htmlFor || controlId,
|
|
6051
5976
|
className: classnames(className, bsPrefix)
|
|
@@ -6079,7 +6004,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6079
6004
|
propCustom = _ref.custom,
|
|
6080
6005
|
_ref$as = _ref.as,
|
|
6081
6006
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6082
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6007
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6083
6008
|
|
|
6084
6009
|
var custom = type === 'switch' ? true : propCustom;
|
|
6085
6010
|
|
|
@@ -6099,7 +6024,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6099
6024
|
};
|
|
6100
6025
|
}, [controlId, custom, id]);
|
|
6101
6026
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6102
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
6027
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
6103
6028
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6104
6029
|
ref: ref,
|
|
6105
6030
|
isValid: isValid,
|
|
@@ -6134,7 +6059,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6134
6059
|
lang = _ref.lang,
|
|
6135
6060
|
_ref$as = _ref.as,
|
|
6136
6061
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6137
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6062
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6138
6063
|
|
|
6139
6064
|
var _useContext = useContext(FormContext),
|
|
6140
6065
|
controlId = _useContext.controlId,
|
|
@@ -6147,7 +6072,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6147
6072
|
defaultPrefix = _ref2[1];
|
|
6148
6073
|
|
|
6149
6074
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6150
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6075
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6151
6076
|
ref: ref,
|
|
6152
6077
|
id: id || controlId,
|
|
6153
6078
|
type: type,
|
|
@@ -6162,7 +6087,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6162
6087
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6163
6088
|
className = _ref.className,
|
|
6164
6089
|
htmlFor = _ref.htmlFor,
|
|
6165
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6090
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6166
6091
|
|
|
6167
6092
|
var _useContext = useContext(FormContext),
|
|
6168
6093
|
controlId = _useContext.controlId,
|
|
@@ -6173,7 +6098,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6173
6098
|
defaultPrefix = _ref2[1];
|
|
6174
6099
|
|
|
6175
6100
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6176
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6101
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6177
6102
|
ref: ref,
|
|
6178
6103
|
htmlFor: htmlFor || controlId,
|
|
6179
6104
|
className: classnames(className, bsPrefix),
|
|
@@ -6206,7 +6131,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6206
6131
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6207
6132
|
_ref$inputAs = _ref.inputAs,
|
|
6208
6133
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6209
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6134
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6210
6135
|
|
|
6211
6136
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6212
6137
|
prefix = _ref2[0],
|
|
@@ -6225,7 +6150,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6225
6150
|
};
|
|
6226
6151
|
}, [controlId, custom, id]);
|
|
6227
6152
|
var hasLabel = label != null && label !== false && !children;
|
|
6228
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6153
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6229
6154
|
ref: ref,
|
|
6230
6155
|
isValid: isValid,
|
|
6231
6156
|
isInvalid: isInvalid,
|
|
@@ -6266,7 +6191,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6266
6191
|
custom = _ref.custom,
|
|
6267
6192
|
_ref$as = _ref.as,
|
|
6268
6193
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6269
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6194
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6270
6195
|
|
|
6271
6196
|
var _useContext = useContext(FormContext),
|
|
6272
6197
|
controlId = _useContext.controlId;
|
|
@@ -6301,7 +6226,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6301
6226
|
}
|
|
6302
6227
|
|
|
6303
6228
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6304
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6229
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6305
6230
|
type: type,
|
|
6306
6231
|
size: htmlSize,
|
|
6307
6232
|
ref: ref,
|
|
@@ -6322,7 +6247,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6322
6247
|
controlId = _ref.controlId,
|
|
6323
6248
|
_ref$as = _ref.as,
|
|
6324
6249
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6325
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6250
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6326
6251
|
|
|
6327
6252
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6328
6253
|
var context = useMemo(function () {
|
|
@@ -6332,14 +6257,14 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6332
6257
|
}, [controlId]);
|
|
6333
6258
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6334
6259
|
value: context
|
|
6335
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6260
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6336
6261
|
ref: ref,
|
|
6337
6262
|
className: classnames(className, bsPrefix)
|
|
6338
6263
|
}), children));
|
|
6339
6264
|
});
|
|
6340
6265
|
FormGroup.displayName = 'FormGroup';
|
|
6341
6266
|
|
|
6342
|
-
var defaultProps$
|
|
6267
|
+
var defaultProps$h = {
|
|
6343
6268
|
column: false,
|
|
6344
6269
|
srOnly: false
|
|
6345
6270
|
};
|
|
@@ -6351,7 +6276,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6351
6276
|
srOnly = _ref.srOnly,
|
|
6352
6277
|
className = _ref.className,
|
|
6353
6278
|
htmlFor = _ref.htmlFor,
|
|
6354
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6279
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6355
6280
|
|
|
6356
6281
|
var _useContext = useContext(FormContext),
|
|
6357
6282
|
controlId = _useContext.controlId;
|
|
@@ -6362,7 +6287,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6362
6287
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6363
6288
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6364
6289
|
htmlFor = htmlFor || controlId;
|
|
6365
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6290
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6366
6291
|
as: "label",
|
|
6367
6292
|
className: classes,
|
|
6368
6293
|
htmlFor: htmlFor
|
|
@@ -6370,7 +6295,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6370
6295
|
return (
|
|
6371
6296
|
/*#__PURE__*/
|
|
6372
6297
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6373
|
-
React__default.createElement(Component, _extends({
|
|
6298
|
+
React__default.createElement(Component, _extends$1({
|
|
6374
6299
|
ref: ref,
|
|
6375
6300
|
className: classes,
|
|
6376
6301
|
htmlFor: htmlFor
|
|
@@ -6378,7 +6303,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6378
6303
|
);
|
|
6379
6304
|
});
|
|
6380
6305
|
FormLabel.displayName = 'FormLabel';
|
|
6381
|
-
FormLabel.defaultProps = defaultProps$
|
|
6306
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6382
6307
|
|
|
6383
6308
|
var FormText = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6384
6309
|
function (_ref, ref) {
|
|
@@ -6387,10 +6312,10 @@ function (_ref, ref) {
|
|
|
6387
6312
|
_ref$as = _ref.as,
|
|
6388
6313
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6389
6314
|
muted = _ref.muted,
|
|
6390
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6315
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6391
6316
|
|
|
6392
6317
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6393
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6318
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6394
6319
|
ref: ref,
|
|
6395
6320
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6396
6321
|
}));
|
|
@@ -6398,7 +6323,7 @@ function (_ref, ref) {
|
|
|
6398
6323
|
FormText.displayName = 'FormText';
|
|
6399
6324
|
|
|
6400
6325
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6401
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6326
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6402
6327
|
ref: ref,
|
|
6403
6328
|
type: "switch"
|
|
6404
6329
|
}));
|
|
@@ -6408,7 +6333,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6408
6333
|
Switch.Label = FormCheck.Label;
|
|
6409
6334
|
|
|
6410
6335
|
var FormRow = createWithBsPrefix('form-row');
|
|
6411
|
-
var defaultProps$
|
|
6336
|
+
var defaultProps$i = {
|
|
6412
6337
|
inline: false
|
|
6413
6338
|
};
|
|
6414
6339
|
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6418,16 +6343,16 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6418
6343
|
validated = _ref.validated,
|
|
6419
6344
|
_ref$as = _ref.as,
|
|
6420
6345
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6421
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6346
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6422
6347
|
|
|
6423
6348
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6424
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6349
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6425
6350
|
ref: ref,
|
|
6426
6351
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6427
6352
|
}));
|
|
6428
6353
|
});
|
|
6429
6354
|
FormImpl.displayName = 'Form';
|
|
6430
|
-
FormImpl.defaultProps = defaultProps$
|
|
6355
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6431
6356
|
FormImpl.Row = FormRow;
|
|
6432
6357
|
FormImpl.Group = FormGroup;
|
|
6433
6358
|
FormImpl.Control = FormControl$1;
|
|
@@ -6437,7 +6362,7 @@ FormImpl.Switch = Switch;
|
|
|
6437
6362
|
FormImpl.Label = FormLabel;
|
|
6438
6363
|
FormImpl.Text = FormText;
|
|
6439
6364
|
|
|
6440
|
-
var defaultProps$
|
|
6365
|
+
var defaultProps$j = {
|
|
6441
6366
|
fluid: false
|
|
6442
6367
|
};
|
|
6443
6368
|
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6446,20 +6371,20 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6446
6371
|
_ref$as = _ref.as,
|
|
6447
6372
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6448
6373
|
className = _ref.className,
|
|
6449
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6374
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6450
6375
|
|
|
6451
6376
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6452
6377
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6453
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6378
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6454
6379
|
ref: ref
|
|
6455
6380
|
}, props, {
|
|
6456
6381
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6457
6382
|
}));
|
|
6458
6383
|
});
|
|
6459
6384
|
Container.displayName = 'Container';
|
|
6460
|
-
Container.defaultProps = defaultProps$
|
|
6385
|
+
Container.defaultProps = defaultProps$j;
|
|
6461
6386
|
|
|
6462
|
-
var propTypes$
|
|
6387
|
+
var propTypes$7 = {
|
|
6463
6388
|
/**
|
|
6464
6389
|
* @default 'img'
|
|
6465
6390
|
*/
|
|
@@ -6498,11 +6423,11 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6498
6423
|
rounded = _ref.rounded,
|
|
6499
6424
|
roundedCircle = _ref.roundedCircle,
|
|
6500
6425
|
thumbnail = _ref.thumbnail,
|
|
6501
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6426
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6502
6427
|
|
|
6503
6428
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6504
6429
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6505
|
-
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6430
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6506
6431
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6507
6432
|
ref: ref
|
|
6508
6433
|
}, props, {
|
|
@@ -6512,22 +6437,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6512
6437
|
Image.displayName = 'Image';
|
|
6513
6438
|
Image.defaultProps = defaultProps$k;
|
|
6514
6439
|
|
|
6515
|
-
var defaultProps$
|
|
6440
|
+
var defaultProps$l = {
|
|
6516
6441
|
fluid: true
|
|
6517
6442
|
};
|
|
6518
6443
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6519
6444
|
var className = _ref.className,
|
|
6520
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6445
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6521
6446
|
|
|
6522
|
-
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6447
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6523
6448
|
ref: ref
|
|
6524
6449
|
}, props, {
|
|
6525
6450
|
className: classnames(className, 'figure-img')
|
|
6526
6451
|
}));
|
|
6527
6452
|
});
|
|
6528
6453
|
FigureImage.displayName = 'FigureImage';
|
|
6529
|
-
FigureImage.propTypes = propTypes$
|
|
6530
|
-
FigureImage.defaultProps = defaultProps$
|
|
6454
|
+
FigureImage.propTypes = propTypes$7;
|
|
6455
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6531
6456
|
|
|
6532
6457
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6533
6458
|
Component: 'figcaption'
|
|
@@ -6546,13 +6471,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6546
6471
|
});
|
|
6547
6472
|
|
|
6548
6473
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6549
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6474
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6550
6475
|
type: "checkbox"
|
|
6551
6476
|
}, props)));
|
|
6552
6477
|
};
|
|
6553
6478
|
|
|
6554
6479
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6555
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6480
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6556
6481
|
type: "radio"
|
|
6557
6482
|
}, props)));
|
|
6558
6483
|
};
|
|
@@ -6571,10 +6496,10 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6571
6496
|
className = _ref.className,
|
|
6572
6497
|
_ref$as = _ref.as,
|
|
6573
6498
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6574
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6499
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6575
6500
|
|
|
6576
6501
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6577
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6502
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6578
6503
|
ref: ref
|
|
6579
6504
|
}, props, {
|
|
6580
6505
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6582,7 +6507,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6582
6507
|
});
|
|
6583
6508
|
InputGroup.displayName = 'InputGroup';
|
|
6584
6509
|
|
|
6585
|
-
_extends({}, InputGroup, {
|
|
6510
|
+
var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
6586
6511
|
Text: InputGroupText,
|
|
6587
6512
|
Radio: InputGroupRadio,
|
|
6588
6513
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6590,7 +6515,7 @@ _extends({}, InputGroup, {
|
|
|
6590
6515
|
Prepend: InputGroupPrepend
|
|
6591
6516
|
});
|
|
6592
6517
|
|
|
6593
|
-
var defaultProps$
|
|
6518
|
+
var defaultProps$m = {
|
|
6594
6519
|
fluid: false
|
|
6595
6520
|
};
|
|
6596
6521
|
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6601,23 +6526,23 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6601
6526
|
className = _ref.className,
|
|
6602
6527
|
fluid = _ref.fluid,
|
|
6603
6528
|
bsPrefix = _ref.bsPrefix,
|
|
6604
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6529
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6605
6530
|
|
|
6606
6531
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6607
6532
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6608
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6533
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6609
6534
|
ref: ref
|
|
6610
6535
|
}, props, {
|
|
6611
6536
|
className: classnames(className, classes)
|
|
6612
6537
|
}));
|
|
6613
6538
|
});
|
|
6614
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6539
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6615
6540
|
Jumbotron.displayName = 'Jumbotron';
|
|
6616
6541
|
|
|
6617
6542
|
var TabContext = React__default.createContext(null);
|
|
6618
6543
|
|
|
6619
6544
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6620
|
-
var noop$
|
|
6545
|
+
var noop$4 = function noop() {};
|
|
6621
6546
|
|
|
6622
6547
|
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6623
6548
|
var _ref$as = _ref.as,
|
|
@@ -6626,7 +6551,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6626
6551
|
activeKey = _ref.activeKey,
|
|
6627
6552
|
role = _ref.role,
|
|
6628
6553
|
onKeyDown = _ref.onKeyDown,
|
|
6629
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6554
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6630
6555
|
|
|
6631
6556
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6632
6557
|
// and don't want to reset the set in the effect
|
|
@@ -6707,17 +6632,17 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6707
6632
|
role: role,
|
|
6708
6633
|
// used by NavLink to determine it's role
|
|
6709
6634
|
activeKey: makeEventKey(activeKey),
|
|
6710
|
-
getControlledId: getControlledId || noop$
|
|
6711
|
-
getControllerId: getControllerId || noop$
|
|
6635
|
+
getControlledId: getControlledId || noop$4,
|
|
6636
|
+
getControllerId: getControllerId || noop$4
|
|
6712
6637
|
}
|
|
6713
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6638
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6714
6639
|
onKeyDown: handleKeyDown,
|
|
6715
6640
|
ref: mergedRef,
|
|
6716
6641
|
role: role
|
|
6717
6642
|
}))));
|
|
6718
6643
|
});
|
|
6719
6644
|
|
|
6720
|
-
var defaultProps$
|
|
6645
|
+
var defaultProps$n = {
|
|
6721
6646
|
disabled: false
|
|
6722
6647
|
};
|
|
6723
6648
|
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6727,7 +6652,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6727
6652
|
onSelect = _ref.onSelect,
|
|
6728
6653
|
onClick = _ref.onClick,
|
|
6729
6654
|
Component = _ref.as,
|
|
6730
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6655
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6731
6656
|
|
|
6732
6657
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6733
6658
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6757,15 +6682,15 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6757
6682
|
if (onSelect) onSelect(navKey, e);
|
|
6758
6683
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6759
6684
|
});
|
|
6760
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6685
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6761
6686
|
ref: ref,
|
|
6762
6687
|
onClick: handleOnclick,
|
|
6763
6688
|
className: classnames(className, isActive && 'active')
|
|
6764
6689
|
}));
|
|
6765
6690
|
});
|
|
6766
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6691
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6767
6692
|
|
|
6768
|
-
var defaultProps$
|
|
6693
|
+
var defaultProps$o = {
|
|
6769
6694
|
variant: undefined,
|
|
6770
6695
|
active: false,
|
|
6771
6696
|
disabled: false
|
|
@@ -6780,7 +6705,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6780
6705
|
as = _ref.as,
|
|
6781
6706
|
eventKey = _ref.eventKey,
|
|
6782
6707
|
onClick = _ref.onClick,
|
|
6783
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6708
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6784
6709
|
|
|
6785
6710
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6786
6711
|
var handleClick = useCallback(function (event) {
|
|
@@ -6792,7 +6717,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6792
6717
|
|
|
6793
6718
|
if (onClick) onClick(event);
|
|
6794
6719
|
}, [disabled, onClick]);
|
|
6795
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6720
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6796
6721
|
ref: ref
|
|
6797
6722
|
}, props, {
|
|
6798
6723
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6803,10 +6728,10 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6803
6728
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6804
6729
|
}));
|
|
6805
6730
|
});
|
|
6806
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6731
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6807
6732
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6808
6733
|
|
|
6809
|
-
var defaultProps$
|
|
6734
|
+
var defaultProps$p = {
|
|
6810
6735
|
variant: undefined,
|
|
6811
6736
|
horizontal: undefined
|
|
6812
6737
|
};
|
|
@@ -6820,7 +6745,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6820
6745
|
horizontal = _useUncontrolled.horizontal,
|
|
6821
6746
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6822
6747
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6823
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6748
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6824
6749
|
|
|
6825
6750
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6826
6751
|
var horizontalVariant;
|
|
@@ -6832,14 +6757,14 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6832
6757
|
}
|
|
6833
6758
|
|
|
6834
6759
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6835
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6760
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6836
6761
|
ref: ref
|
|
6837
6762
|
}, controlledProps, {
|
|
6838
6763
|
as: as,
|
|
6839
6764
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6840
6765
|
}));
|
|
6841
6766
|
});
|
|
6842
|
-
ListGroup.defaultProps = defaultProps$
|
|
6767
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6843
6768
|
ListGroup.displayName = 'ListGroup';
|
|
6844
6769
|
ListGroup.Item = ListGroupItem;
|
|
6845
6770
|
|
|
@@ -6850,10 +6775,10 @@ function (_ref, ref) {
|
|
|
6850
6775
|
className = _ref.className,
|
|
6851
6776
|
_ref$as = _ref.as,
|
|
6852
6777
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6853
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6778
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6854
6779
|
|
|
6855
6780
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6856
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6781
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6857
6782
|
ref: ref,
|
|
6858
6783
|
className: classnames(className, prefix)
|
|
6859
6784
|
}));
|
|
@@ -6881,14 +6806,14 @@ function scrollbarSize(recalc) {
|
|
|
6881
6806
|
}
|
|
6882
6807
|
|
|
6883
6808
|
/**
|
|
6884
|
-
*
|
|
6809
|
+
* Return the actively focused element safely.
|
|
6885
6810
|
*
|
|
6886
|
-
* @param doc the document to
|
|
6811
|
+
* @param doc the document to checl
|
|
6887
6812
|
*/
|
|
6888
6813
|
|
|
6889
6814
|
function activeElement(doc) {
|
|
6890
6815
|
if (doc === void 0) {
|
|
6891
|
-
doc = ownerDocument
|
|
6816
|
+
doc = ownerDocument();
|
|
6892
6817
|
}
|
|
6893
6818
|
|
|
6894
6819
|
// Support: IE 9 only
|
|
@@ -6905,13 +6830,6 @@ function activeElement(doc) {
|
|
|
6905
6830
|
}
|
|
6906
6831
|
}
|
|
6907
6832
|
|
|
6908
|
-
/**
|
|
6909
|
-
* Adds a CSS class to a given element.
|
|
6910
|
-
*
|
|
6911
|
-
* @param element the element
|
|
6912
|
-
* @param className the CSS class name
|
|
6913
|
-
*/
|
|
6914
|
-
|
|
6915
6833
|
function addClass(element, className) {
|
|
6916
6834
|
if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
|
|
6917
6835
|
}
|
|
@@ -6919,13 +6837,6 @@ function addClass(element, className) {
|
|
|
6919
6837
|
function replaceClassName(origClass, classToRemove) {
|
|
6920
6838
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6921
6839
|
}
|
|
6922
|
-
/**
|
|
6923
|
-
* Removes a CSS class from a given element.
|
|
6924
|
-
*
|
|
6925
|
-
* @param element the element
|
|
6926
|
-
* @param className the CSS class name
|
|
6927
|
-
*/
|
|
6928
|
-
|
|
6929
6840
|
|
|
6930
6841
|
function removeClass(element, className) {
|
|
6931
6842
|
if (element.classList) {
|
|
@@ -6952,7 +6863,7 @@ function isBody(node) {
|
|
|
6952
6863
|
}
|
|
6953
6864
|
|
|
6954
6865
|
function bodyIsOverflowing(node) {
|
|
6955
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6866
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6956
6867
|
var win = isWindow(node) || doc.defaultView;
|
|
6957
6868
|
return doc.body.clientWidth < win.innerWidth;
|
|
6958
6869
|
}
|
|
@@ -7164,7 +7075,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7164
7075
|
var _ref;
|
|
7165
7076
|
|
|
7166
7077
|
if (typeof document === 'undefined') return null;
|
|
7167
|
-
if (ref == null) return ownerDocument
|
|
7078
|
+
if (ref == null) return ownerDocument().body;
|
|
7168
7079
|
if (typeof ref === 'function') ref = ref();
|
|
7169
7080
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7170
7081
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7197,11 +7108,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7197
7108
|
return resolvedRef;
|
|
7198
7109
|
}
|
|
7199
7110
|
|
|
7200
|
-
var manager
|
|
7111
|
+
var manager;
|
|
7201
7112
|
|
|
7202
7113
|
function getManager() {
|
|
7203
|
-
if (!manager
|
|
7204
|
-
return manager
|
|
7114
|
+
if (!manager) manager = new ModalManager();
|
|
7115
|
+
return manager;
|
|
7205
7116
|
}
|
|
7206
7117
|
|
|
7207
7118
|
function useModalManager(provided) {
|
|
@@ -7229,7 +7140,7 @@ function useModalManager(provided) {
|
|
|
7229
7140
|
});
|
|
7230
7141
|
}
|
|
7231
7142
|
|
|
7232
|
-
var Modal
|
|
7143
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7233
7144
|
var _ref$show = _ref.show,
|
|
7234
7145
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7235
7146
|
_ref$role = _ref.role,
|
|
@@ -7313,7 +7224,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7313
7224
|
if (autoFocus) {
|
|
7314
7225
|
var currentActiveElement = activeElement(document);
|
|
7315
7226
|
|
|
7316
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7227
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7317
7228
|
lastFocusRef.current = currentActiveElement;
|
|
7318
7229
|
modal.dialog.focus();
|
|
7319
7230
|
}
|
|
@@ -7359,7 +7270,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7359
7270
|
|
|
7360
7271
|
var currentActiveElement = activeElement();
|
|
7361
7272
|
|
|
7362
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7273
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7363
7274
|
modal.dialog.focus();
|
|
7364
7275
|
}
|
|
7365
7276
|
});
|
|
@@ -7450,7 +7361,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7450
7361
|
|
|
7451
7362
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7452
7363
|
});
|
|
7453
|
-
var propTypes$
|
|
7364
|
+
var propTypes$8 = {
|
|
7454
7365
|
/**
|
|
7455
7366
|
* Set the visibility of the Modal
|
|
7456
7367
|
*/
|
|
@@ -7606,9 +7517,9 @@ var propTypes$2 = {
|
|
|
7606
7517
|
*/
|
|
7607
7518
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7608
7519
|
};
|
|
7609
|
-
Modal
|
|
7610
|
-
Modal
|
|
7611
|
-
var BaseModal = Object.assign(Modal
|
|
7520
|
+
Modal.displayName = 'Modal';
|
|
7521
|
+
Modal.propTypes = propTypes$8;
|
|
7522
|
+
var BaseModal = Object.assign(Modal, {
|
|
7612
7523
|
Manager: ModalManager
|
|
7613
7524
|
});
|
|
7614
7525
|
|
|
@@ -7700,11 +7611,11 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7700
7611
|
size = _ref.size,
|
|
7701
7612
|
children = _ref.children,
|
|
7702
7613
|
scrollable = _ref.scrollable,
|
|
7703
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7614
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7704
7615
|
|
|
7705
7616
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7706
7617
|
var dialogClass = bsPrefix + "-dialog";
|
|
7707
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7618
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7708
7619
|
ref: ref,
|
|
7709
7620
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7710
7621
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7715,7 +7626,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7715
7626
|
|
|
7716
7627
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7717
7628
|
|
|
7718
|
-
var defaultProps$
|
|
7629
|
+
var defaultProps$q = {
|
|
7719
7630
|
closeLabel: 'Close',
|
|
7720
7631
|
closeButton: false
|
|
7721
7632
|
};
|
|
@@ -7726,7 +7637,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7726
7637
|
onHide = _ref.onHide,
|
|
7727
7638
|
className = _ref.className,
|
|
7728
7639
|
children = _ref.children,
|
|
7729
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7640
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7730
7641
|
|
|
7731
7642
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7732
7643
|
var context = useContext(ModalContext);
|
|
@@ -7734,7 +7645,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7734
7645
|
if (context) context.onHide();
|
|
7735
7646
|
if (onHide) onHide();
|
|
7736
7647
|
});
|
|
7737
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7648
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7738
7649
|
ref: ref
|
|
7739
7650
|
}, props, {
|
|
7740
7651
|
className: classnames(className, bsPrefix)
|
|
@@ -7744,15 +7655,15 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7744
7655
|
}));
|
|
7745
7656
|
});
|
|
7746
7657
|
ModalHeader.displayName = 'ModalHeader';
|
|
7747
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7658
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7748
7659
|
|
|
7749
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7660
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7750
7661
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7751
|
-
Component: DivStyledAsH4
|
|
7662
|
+
Component: DivStyledAsH4$1
|
|
7752
7663
|
});
|
|
7753
7664
|
|
|
7754
|
-
var manager;
|
|
7755
|
-
var defaultProps$
|
|
7665
|
+
var manager$1;
|
|
7666
|
+
var defaultProps$r = {
|
|
7756
7667
|
show: false,
|
|
7757
7668
|
backdrop: true,
|
|
7758
7669
|
keyboard: true,
|
|
@@ -7774,7 +7685,7 @@ function BackdropTransition(props) {
|
|
|
7774
7685
|
/* eslint-enable no-use-before-define */
|
|
7775
7686
|
|
|
7776
7687
|
|
|
7777
|
-
var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
7688
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7778
7689
|
var bsPrefix = _ref.bsPrefix,
|
|
7779
7690
|
className = _ref.className,
|
|
7780
7691
|
style = _ref.style,
|
|
@@ -7803,7 +7714,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7803
7714
|
onExited = _ref.onExited,
|
|
7804
7715
|
backdropClassName = _ref.backdropClassName,
|
|
7805
7716
|
propsManager = _ref.manager,
|
|
7806
|
-
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"]);
|
|
7717
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7807
7718
|
|
|
7808
7719
|
var _useState = useState({}),
|
|
7809
7720
|
modalStyle = _useState[0],
|
|
@@ -7840,14 +7751,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7840
7751
|
|
|
7841
7752
|
function getModalManager() {
|
|
7842
7753
|
if (propsManager) return propsManager;
|
|
7843
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7844
|
-
return manager;
|
|
7754
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7755
|
+
return manager$1;
|
|
7845
7756
|
}
|
|
7846
7757
|
|
|
7847
7758
|
function updateDialogStyle(node) {
|
|
7848
7759
|
if (!canUseDOM) return;
|
|
7849
7760
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7850
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7761
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7851
7762
|
setStyle({
|
|
7852
7763
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7853
7764
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7969,12 +7880,12 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7969
7880
|
};
|
|
7970
7881
|
|
|
7971
7882
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7972
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
7883
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7973
7884
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7974
7885
|
}));
|
|
7975
7886
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7976
7887
|
|
|
7977
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7888
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7978
7889
|
|
|
7979
7890
|
|
|
7980
7891
|
if (!animation) {
|
|
@@ -7982,7 +7893,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7982
7893
|
}
|
|
7983
7894
|
|
|
7984
7895
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7985
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7896
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7986
7897
|
role: "dialog"
|
|
7987
7898
|
}, dialogProps, {
|
|
7988
7899
|
style: baseModalStyle,
|
|
@@ -7990,7 +7901,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7990
7901
|
onClick: backdrop ? handleClick : undefined,
|
|
7991
7902
|
onMouseUp: handleMouseUp,
|
|
7992
7903
|
"aria-labelledby": ariaLabelledby
|
|
7993
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
7904
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7994
7905
|
role: "document",
|
|
7995
7906
|
onMouseDown: handleDialogMouseDown,
|
|
7996
7907
|
className: dialogClassName,
|
|
@@ -8028,15 +7939,15 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8028
7939
|
renderDialog: renderDialog
|
|
8029
7940
|
}));
|
|
8030
7941
|
});
|
|
8031
|
-
Modal.displayName = 'Modal';
|
|
8032
|
-
Modal.defaultProps = defaultProps$
|
|
8033
|
-
Modal.Body = ModalBody;
|
|
8034
|
-
Modal.Header = ModalHeader;
|
|
8035
|
-
Modal.Title = ModalTitle;
|
|
8036
|
-
Modal.Footer = ModalFooter;
|
|
8037
|
-
Modal.Dialog = ModalDialog;
|
|
8038
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8039
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7942
|
+
Modal$1.displayName = 'Modal';
|
|
7943
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7944
|
+
Modal$1.Body = ModalBody;
|
|
7945
|
+
Modal$1.Header = ModalHeader;
|
|
7946
|
+
Modal$1.Title = ModalTitle;
|
|
7947
|
+
Modal$1.Footer = ModalFooter;
|
|
7948
|
+
Modal$1.Dialog = ModalDialog;
|
|
7949
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7950
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
8040
7951
|
|
|
8041
7952
|
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8042
7953
|
function (_ref, ref) {
|
|
@@ -8045,17 +7956,17 @@ function (_ref, ref) {
|
|
|
8045
7956
|
children = _ref.children,
|
|
8046
7957
|
_ref$as = _ref.as,
|
|
8047
7958
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8048
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7959
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8049
7960
|
|
|
8050
7961
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8051
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7962
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8052
7963
|
ref: ref,
|
|
8053
7964
|
className: classnames(className, bsPrefix)
|
|
8054
7965
|
}), children);
|
|
8055
7966
|
});
|
|
8056
7967
|
NavItem.displayName = 'NavItem';
|
|
8057
7968
|
|
|
8058
|
-
var defaultProps$
|
|
7969
|
+
var defaultProps$s = {
|
|
8059
7970
|
disabled: false,
|
|
8060
7971
|
as: SafeAnchor
|
|
8061
7972
|
};
|
|
@@ -8067,10 +7978,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8067
7978
|
eventKey = _ref.eventKey,
|
|
8068
7979
|
onSelect = _ref.onSelect,
|
|
8069
7980
|
as = _ref.as,
|
|
8070
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7981
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8071
7982
|
|
|
8072
7983
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8073
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
7984
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
8074
7985
|
href: href,
|
|
8075
7986
|
ref: ref,
|
|
8076
7987
|
eventKey: eventKey,
|
|
@@ -8081,9 +7992,9 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8081
7992
|
}));
|
|
8082
7993
|
});
|
|
8083
7994
|
NavLink.displayName = 'NavLink';
|
|
8084
|
-
NavLink.defaultProps = defaultProps$
|
|
7995
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8085
7996
|
|
|
8086
|
-
var defaultProps$
|
|
7997
|
+
var defaultProps$t = {
|
|
8087
7998
|
justify: false,
|
|
8088
7999
|
fill: false
|
|
8089
8000
|
};
|
|
@@ -8103,13 +8014,13 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8103
8014
|
className = _useUncontrolled.className,
|
|
8104
8015
|
children = _useUncontrolled.children,
|
|
8105
8016
|
activeKey = _useUncontrolled.activeKey,
|
|
8106
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8017
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8107
8018
|
|
|
8108
8019
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8109
8020
|
var navbarBsPrefix;
|
|
8110
8021
|
var cardHeaderBsPrefix;
|
|
8111
8022
|
var isNavbar = false;
|
|
8112
|
-
var navbarContext = useContext(context);
|
|
8023
|
+
var navbarContext = useContext(context$2);
|
|
8113
8024
|
var cardContext = useContext(context$1);
|
|
8114
8025
|
|
|
8115
8026
|
if (navbarContext) {
|
|
@@ -8119,7 +8030,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8119
8030
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8120
8031
|
}
|
|
8121
8032
|
|
|
8122
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
8033
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
8123
8034
|
as: as,
|
|
8124
8035
|
ref: ref,
|
|
8125
8036
|
activeKey: activeKey,
|
|
@@ -8127,7 +8038,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8127
8038
|
}, props), children);
|
|
8128
8039
|
});
|
|
8129
8040
|
Nav.displayName = 'Nav';
|
|
8130
|
-
Nav.defaultProps = defaultProps$
|
|
8041
|
+
Nav.defaultProps = defaultProps$t;
|
|
8131
8042
|
Nav.Item = NavItem;
|
|
8132
8043
|
Nav.Link = NavLink;
|
|
8133
8044
|
|
|
@@ -8135,11 +8046,11 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8135
8046
|
var bsPrefix = _ref.bsPrefix,
|
|
8136
8047
|
className = _ref.className,
|
|
8137
8048
|
as = _ref.as,
|
|
8138
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8049
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
8139
8050
|
|
|
8140
8051
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8141
8052
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8142
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8053
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8143
8054
|
ref: ref,
|
|
8144
8055
|
className: classnames(className, bsPrefix)
|
|
8145
8056
|
}));
|
|
@@ -8149,11 +8060,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8149
8060
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8150
8061
|
var children = _ref.children,
|
|
8151
8062
|
bsPrefix = _ref.bsPrefix,
|
|
8152
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8063
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8153
8064
|
|
|
8154
8065
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8155
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8156
|
-
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
8066
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8067
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8157
8068
|
in: !!(context && context.expanded)
|
|
8158
8069
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8159
8070
|
ref: ref,
|
|
@@ -8163,7 +8074,7 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8163
8074
|
});
|
|
8164
8075
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8165
8076
|
|
|
8166
|
-
var defaultProps$
|
|
8077
|
+
var defaultProps$u = {
|
|
8167
8078
|
label: 'Toggle navigation'
|
|
8168
8079
|
};
|
|
8169
8080
|
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8174,11 +8085,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8174
8085
|
_ref$as = _ref.as,
|
|
8175
8086
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8176
8087
|
onClick = _ref.onClick,
|
|
8177
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8088
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8178
8089
|
|
|
8179
8090
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8180
8091
|
|
|
8181
|
-
var _ref2 = useContext(context) || {},
|
|
8092
|
+
var _ref2 = useContext(context$2) || {},
|
|
8182
8093
|
onToggle = _ref2.onToggle,
|
|
8183
8094
|
expanded = _ref2.expanded;
|
|
8184
8095
|
|
|
@@ -8191,7 +8102,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8191
8102
|
props.type = 'button';
|
|
8192
8103
|
}
|
|
8193
8104
|
|
|
8194
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8105
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8195
8106
|
ref: ref,
|
|
8196
8107
|
onClick: handleClick,
|
|
8197
8108
|
"aria-label": label,
|
|
@@ -8201,12 +8112,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8201
8112
|
}));
|
|
8202
8113
|
});
|
|
8203
8114
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8204
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8115
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8205
8116
|
|
|
8206
8117
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8207
8118
|
Component: 'span'
|
|
8208
8119
|
});
|
|
8209
|
-
var defaultProps$
|
|
8120
|
+
var defaultProps$v = {
|
|
8210
8121
|
expand: true,
|
|
8211
8122
|
variant: 'light',
|
|
8212
8123
|
collapseOnSelect: false
|
|
@@ -8229,7 +8140,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8229
8140
|
_onToggle = _useUncontrolled.onToggle,
|
|
8230
8141
|
onSelect = _useUncontrolled.onSelect,
|
|
8231
8142
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8232
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8143
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8233
8144
|
|
|
8234
8145
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8235
8146
|
var handleCollapse = useCallback(function () {
|
|
@@ -8259,24 +8170,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8259
8170
|
expanded: !!expanded
|
|
8260
8171
|
};
|
|
8261
8172
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8262
|
-
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
8173
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8263
8174
|
value: navbarContext
|
|
8264
8175
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8265
8176
|
value: handleCollapse
|
|
8266
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8177
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8267
8178
|
ref: ref
|
|
8268
8179
|
}, controlledProps, {
|
|
8269
8180
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8270
8181
|
}), children)));
|
|
8271
8182
|
});
|
|
8272
|
-
Navbar.defaultProps = defaultProps$
|
|
8183
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8273
8184
|
Navbar.displayName = 'Navbar';
|
|
8274
8185
|
Navbar.Brand = NavbarBrand;
|
|
8275
8186
|
Navbar.Toggle = NavbarToggle;
|
|
8276
8187
|
Navbar.Collapse = NavbarCollapse;
|
|
8277
8188
|
Navbar.Text = NavbarText;
|
|
8278
8189
|
|
|
8279
|
-
var propTypes$
|
|
8190
|
+
var propTypes$9 = {
|
|
8280
8191
|
/**
|
|
8281
8192
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8282
8193
|
* @type {string|number}
|
|
@@ -8322,31 +8233,31 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8322
8233
|
disabled = _ref.disabled,
|
|
8323
8234
|
active = _ref.active,
|
|
8324
8235
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8325
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8236
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8326
8237
|
|
|
8327
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8238
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8328
8239
|
ref: ref
|
|
8329
8240
|
}, props, {
|
|
8330
8241
|
as: NavItem
|
|
8331
|
-
}), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8242
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8332
8243
|
id: id,
|
|
8333
8244
|
eventKey: null,
|
|
8334
8245
|
active: active,
|
|
8335
8246
|
disabled: disabled,
|
|
8336
8247
|
childBsPrefix: bsPrefix,
|
|
8337
8248
|
as: NavLink
|
|
8338
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8249
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8339
8250
|
role: menuRole,
|
|
8340
8251
|
renderOnMount: renderMenuOnMount,
|
|
8341
8252
|
rootCloseEvent: rootCloseEvent
|
|
8342
8253
|
}, children));
|
|
8343
8254
|
});
|
|
8344
8255
|
NavDropdown.displayName = 'NavDropdown';
|
|
8345
|
-
NavDropdown.propTypes = propTypes$
|
|
8346
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8347
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8348
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8349
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8256
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8257
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8258
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8259
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8260
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8350
8261
|
|
|
8351
8262
|
/**
|
|
8352
8263
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8587,7 +8498,7 @@ Overlay.propTypes = {
|
|
|
8587
8498
|
onExited: PropTypes.func
|
|
8588
8499
|
};
|
|
8589
8500
|
|
|
8590
|
-
/*#__PURE__*/
|
|
8501
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8591
8502
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8592
8503
|
|
|
8593
8504
|
function RefHolder() {
|
|
@@ -8601,9 +8512,9 @@ Overlay.propTypes = {
|
|
|
8601
8512
|
};
|
|
8602
8513
|
|
|
8603
8514
|
return RefHolder;
|
|
8604
|
-
}
|
|
8515
|
+
}(React__default.Component);
|
|
8605
8516
|
|
|
8606
|
-
var defaultProps$
|
|
8517
|
+
var defaultProps$w = {
|
|
8607
8518
|
active: false,
|
|
8608
8519
|
disabled: false,
|
|
8609
8520
|
activeLabel: '(current)'
|
|
@@ -8615,7 +8526,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8615
8526
|
style = _ref.style,
|
|
8616
8527
|
activeLabel = _ref.activeLabel,
|
|
8617
8528
|
children = _ref.children,
|
|
8618
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8529
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8619
8530
|
|
|
8620
8531
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8621
8532
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -8625,14 +8536,14 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8625
8536
|
active: active,
|
|
8626
8537
|
disabled: disabled
|
|
8627
8538
|
})
|
|
8628
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8539
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8629
8540
|
className: "page-link",
|
|
8630
8541
|
disabled: disabled
|
|
8631
8542
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8632
8543
|
className: "sr-only"
|
|
8633
8544
|
}, activeLabel)));
|
|
8634
8545
|
});
|
|
8635
|
-
PageItem.defaultProps = defaultProps$
|
|
8546
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8636
8547
|
PageItem.displayName = 'PageItem';
|
|
8637
8548
|
|
|
8638
8549
|
function createButton(name, defaultValue, label) {
|
|
@@ -8642,7 +8553,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8642
8553
|
|
|
8643
8554
|
function Button(_ref2) {
|
|
8644
8555
|
var children = _ref2.children,
|
|
8645
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8556
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8646
8557
|
|
|
8647
8558
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8648
8559
|
"aria-hidden": "true"
|
|
@@ -8674,10 +8585,10 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8674
8585
|
className = _ref.className,
|
|
8675
8586
|
children = _ref.children,
|
|
8676
8587
|
size = _ref.size,
|
|
8677
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8588
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8678
8589
|
|
|
8679
8590
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8680
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8591
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8681
8592
|
ref: ref
|
|
8682
8593
|
}, props, {
|
|
8683
8594
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8696,10 +8607,10 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8696
8607
|
bsPrefix = _ref.bsPrefix,
|
|
8697
8608
|
className = _ref.className,
|
|
8698
8609
|
children = _ref.children,
|
|
8699
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8610
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8700
8611
|
|
|
8701
8612
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8702
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8613
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8703
8614
|
ref: ref
|
|
8704
8615
|
}, props, {
|
|
8705
8616
|
className: classnames(bsPrefix, className)
|
|
@@ -8712,17 +8623,17 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8712
8623
|
bsPrefix = _ref.bsPrefix,
|
|
8713
8624
|
className = _ref.className,
|
|
8714
8625
|
children = _ref.children,
|
|
8715
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8626
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8716
8627
|
|
|
8717
8628
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8718
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8629
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8719
8630
|
ref: ref
|
|
8720
8631
|
}, props, {
|
|
8721
8632
|
className: classnames(className, bsPrefix)
|
|
8722
8633
|
}), children);
|
|
8723
8634
|
});
|
|
8724
8635
|
|
|
8725
|
-
var defaultProps$
|
|
8636
|
+
var defaultProps$x = {
|
|
8726
8637
|
placement: 'right'
|
|
8727
8638
|
};
|
|
8728
8639
|
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8732,33 +8643,33 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8732
8643
|
style = _ref.style,
|
|
8733
8644
|
children = _ref.children,
|
|
8734
8645
|
content = _ref.content,
|
|
8735
|
-
arrowProps = _ref.arrowProps
|
|
8736
|
-
_ref.popper
|
|
8737
|
-
_ref.show
|
|
8738
|
-
|
|
8646
|
+
arrowProps = _ref.arrowProps,
|
|
8647
|
+
_ = _ref.popper,
|
|
8648
|
+
_1 = _ref.show,
|
|
8649
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8739
8650
|
|
|
8740
8651
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8741
8652
|
|
|
8742
8653
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8743
8654
|
primaryPlacement = _ref2[0];
|
|
8744
8655
|
|
|
8745
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8656
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8746
8657
|
ref: ref,
|
|
8747
8658
|
role: "tooltip",
|
|
8748
8659
|
style: style,
|
|
8749
8660
|
"x-placement": primaryPlacement,
|
|
8750
8661
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8751
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8662
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8752
8663
|
className: "arrow"
|
|
8753
8664
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8754
8665
|
});
|
|
8755
|
-
Popover.defaultProps = defaultProps$
|
|
8666
|
+
Popover.defaultProps = defaultProps$x;
|
|
8756
8667
|
Popover.Title = PopoverTitle;
|
|
8757
8668
|
Popover.Content = PopoverContent;
|
|
8758
8669
|
|
|
8759
8670
|
var ROUND_PRECISION = 1000;
|
|
8760
8671
|
|
|
8761
|
-
var defaultProps$
|
|
8672
|
+
var defaultProps$y = {
|
|
8762
8673
|
min: 0,
|
|
8763
8674
|
max: 100,
|
|
8764
8675
|
animated: false,
|
|
@@ -8786,14 +8697,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8786
8697
|
style = _ref.style,
|
|
8787
8698
|
variant = _ref.variant,
|
|
8788
8699
|
bsPrefix = _ref.bsPrefix,
|
|
8789
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8700
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8790
8701
|
|
|
8791
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8702
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8792
8703
|
ref: ref
|
|
8793
8704
|
}, props, {
|
|
8794
8705
|
role: "progressbar",
|
|
8795
8706
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8796
|
-
style: _extends({
|
|
8707
|
+
style: _extends$1({
|
|
8797
8708
|
width: getPercentage(now, min, max) + "%"
|
|
8798
8709
|
}, style),
|
|
8799
8710
|
"aria-valuenow": now,
|
|
@@ -8806,7 +8717,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8806
8717
|
|
|
8807
8718
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8808
8719
|
var isChild = _ref2.isChild,
|
|
8809
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8720
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8810
8721
|
|
|
8811
8722
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8812
8723
|
|
|
@@ -8825,9 +8736,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8825
8736
|
variant = props.variant,
|
|
8826
8737
|
className = props.className,
|
|
8827
8738
|
children = props.children,
|
|
8828
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8739
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8829
8740
|
|
|
8830
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8741
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8831
8742
|
ref: ref
|
|
8832
8743
|
}, wrapperProps, {
|
|
8833
8744
|
className: classnames(className, bsPrefix)
|
|
@@ -8848,9 +8759,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8848
8759
|
}, ref));
|
|
8849
8760
|
});
|
|
8850
8761
|
ProgressBar.displayName = 'ProgressBar';
|
|
8851
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8762
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8852
8763
|
|
|
8853
|
-
var defaultProps$
|
|
8764
|
+
var defaultProps$z = {
|
|
8854
8765
|
aspectRatio: '1by1'
|
|
8855
8766
|
};
|
|
8856
8767
|
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8858,11 +8769,11 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8858
8769
|
className = _ref.className,
|
|
8859
8770
|
children = _ref.children,
|
|
8860
8771
|
aspectRatio = _ref.aspectRatio,
|
|
8861
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8772
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8862
8773
|
|
|
8863
8774
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8864
8775
|
var child = React__default.Children.only(children);
|
|
8865
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8776
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8866
8777
|
ref: ref
|
|
8867
8778
|
}, props, {
|
|
8868
8779
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
@@ -8870,10 +8781,10 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8870
8781
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8871
8782
|
}));
|
|
8872
8783
|
});
|
|
8873
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8784
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8874
8785
|
|
|
8875
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8876
|
-
var defaultProps$
|
|
8786
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8787
|
+
var defaultProps$A = {
|
|
8877
8788
|
noGutters: false
|
|
8878
8789
|
};
|
|
8879
8790
|
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8882,12 +8793,12 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8882
8793
|
noGutters = _ref.noGutters,
|
|
8883
8794
|
_ref$as = _ref.as,
|
|
8884
8795
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8885
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8796
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8886
8797
|
|
|
8887
8798
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8888
8799
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8889
8800
|
var classes = [];
|
|
8890
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8801
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8891
8802
|
var propValue = props[brkPoint];
|
|
8892
8803
|
delete props[brkPoint];
|
|
8893
8804
|
var cols;
|
|
@@ -8901,14 +8812,14 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8901
8812
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8902
8813
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8903
8814
|
});
|
|
8904
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8815
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8905
8816
|
ref: ref
|
|
8906
8817
|
}, props, {
|
|
8907
8818
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8908
8819
|
}));
|
|
8909
8820
|
});
|
|
8910
8821
|
Row.displayName = 'Row';
|
|
8911
|
-
Row.defaultProps = defaultProps$
|
|
8822
|
+
Row.defaultProps = defaultProps$A;
|
|
8912
8823
|
|
|
8913
8824
|
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8914
8825
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8919,11 +8830,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8919
8830
|
_ref$as = _ref.as,
|
|
8920
8831
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8921
8832
|
className = _ref.className,
|
|
8922
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8833
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8923
8834
|
|
|
8924
8835
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8925
8836
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8926
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8837
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8927
8838
|
ref: ref
|
|
8928
8839
|
}, props, {
|
|
8929
8840
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8931,7 +8842,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8931
8842
|
});
|
|
8932
8843
|
Spinner.displayName = 'Spinner';
|
|
8933
8844
|
|
|
8934
|
-
var propTypes = {
|
|
8845
|
+
var propTypes$a = {
|
|
8935
8846
|
/**
|
|
8936
8847
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8937
8848
|
* @type {string|number}
|
|
@@ -8993,7 +8904,7 @@ var propTypes = {
|
|
|
8993
8904
|
/** @ignore */
|
|
8994
8905
|
size: PropTypes.string
|
|
8995
8906
|
};
|
|
8996
|
-
var defaultProps$
|
|
8907
|
+
var defaultProps$B = {
|
|
8997
8908
|
toggleLabel: 'Toggle dropdown',
|
|
8998
8909
|
type: 'button'
|
|
8999
8910
|
};
|
|
@@ -9013,9 +8924,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9013
8924
|
menuRole = _ref.menuRole,
|
|
9014
8925
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
9015
8926
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9016
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8927
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9017
8928
|
|
|
9018
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8929
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
9019
8930
|
ref: ref
|
|
9020
8931
|
}, props, {
|
|
9021
8932
|
as: ButtonGroup
|
|
@@ -9028,7 +8939,7 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9028
8939
|
target: target,
|
|
9029
8940
|
onClick: onClick,
|
|
9030
8941
|
type: type
|
|
9031
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8942
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
9032
8943
|
split: true,
|
|
9033
8944
|
id: id ? id.toString() : undefined,
|
|
9034
8945
|
size: size,
|
|
@@ -9037,15 +8948,15 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9037
8948
|
childBsPrefix: bsPrefix
|
|
9038
8949
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
9039
8950
|
className: "sr-only"
|
|
9040
|
-
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8951
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
9041
8952
|
align: menuAlign,
|
|
9042
8953
|
role: menuRole,
|
|
9043
8954
|
renderOnMount: renderMenuOnMount,
|
|
9044
8955
|
rootCloseEvent: rootCloseEvent
|
|
9045
8956
|
}, children));
|
|
9046
8957
|
});
|
|
9047
|
-
SplitButton.propTypes = propTypes;
|
|
9048
|
-
SplitButton.defaultProps = defaultProps$
|
|
8958
|
+
SplitButton.propTypes = propTypes$a;
|
|
8959
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9049
8960
|
SplitButton.displayName = 'SplitButton';
|
|
9050
8961
|
|
|
9051
8962
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9093,10 +9004,10 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9093
9004
|
_ref$as = _ref.as,
|
|
9094
9005
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9095
9006
|
className = _ref.className,
|
|
9096
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9007
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
9097
9008
|
|
|
9098
9009
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9099
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9010
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
9100
9011
|
ref: ref
|
|
9101
9012
|
}, props, {
|
|
9102
9013
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9110,11 +9021,11 @@ function useTabContext(props) {
|
|
|
9110
9021
|
var activeKey = context.activeKey,
|
|
9111
9022
|
getControlledId = context.getControlledId,
|
|
9112
9023
|
getControllerId = context.getControllerId,
|
|
9113
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9024
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9114
9025
|
|
|
9115
9026
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9116
9027
|
var key = makeEventKey(props.eventKey);
|
|
9117
|
-
return _extends({}, props, {
|
|
9028
|
+
return _extends$1({}, props, {
|
|
9118
9029
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9119
9030
|
id: getControlledId(props.eventKey),
|
|
9120
9031
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9139,13 +9050,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9139
9050
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9140
9051
|
Transition = _useTabContext.transition,
|
|
9141
9052
|
_useTabContext$as = _useTabContext.as,
|
|
9142
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9143
|
-
_useTabContext.eventKey
|
|
9144
|
-
|
|
9053
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9054
|
+
_ = _useTabContext.eventKey,
|
|
9055
|
+
rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9145
9056
|
|
|
9146
9057
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9147
9058
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9148
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
9059
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9149
9060
|
ref: ref,
|
|
9150
9061
|
role: "tabpanel",
|
|
9151
9062
|
"aria-hidden": !active,
|
|
@@ -9195,7 +9106,7 @@ Tab.Container = TabContainer;
|
|
|
9195
9106
|
Tab.Content = TabContent;
|
|
9196
9107
|
Tab.Pane = TabPane;
|
|
9197
9108
|
|
|
9198
|
-
React__default.forwardRef(function (_ref, ref) {
|
|
9109
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9199
9110
|
var bsPrefix = _ref.bsPrefix,
|
|
9200
9111
|
className = _ref.className,
|
|
9201
9112
|
striped = _ref.striped,
|
|
@@ -9205,11 +9116,11 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9205
9116
|
size = _ref.size,
|
|
9206
9117
|
variant = _ref.variant,
|
|
9207
9118
|
responsive = _ref.responsive,
|
|
9208
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9119
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9209
9120
|
|
|
9210
9121
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9211
9122
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9212
|
-
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9123
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9213
9124
|
className: classes,
|
|
9214
9125
|
ref: ref
|
|
9215
9126
|
}));
|
|
@@ -9234,7 +9145,7 @@ var ToastContext = React__default.createContext({
|
|
|
9234
9145
|
onClose: function onClose() {}
|
|
9235
9146
|
});
|
|
9236
9147
|
|
|
9237
|
-
var defaultProps$
|
|
9148
|
+
var defaultProps$C = {
|
|
9238
9149
|
closeLabel: 'Close',
|
|
9239
9150
|
closeButton: true
|
|
9240
9151
|
};
|
|
@@ -9244,7 +9155,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9244
9155
|
closeButton = _ref.closeButton,
|
|
9245
9156
|
className = _ref.className,
|
|
9246
9157
|
children = _ref.children,
|
|
9247
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9158
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9248
9159
|
|
|
9249
9160
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9250
9161
|
var context = useContext(ToastContext);
|
|
@@ -9253,7 +9164,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9253
9164
|
context.onClose(e);
|
|
9254
9165
|
}
|
|
9255
9166
|
});
|
|
9256
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9167
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9257
9168
|
ref: ref
|
|
9258
9169
|
}, props, {
|
|
9259
9170
|
className: classnames(bsPrefix, className)
|
|
@@ -9265,7 +9176,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9265
9176
|
}));
|
|
9266
9177
|
});
|
|
9267
9178
|
ToastHeader.displayName = 'ToastHeader';
|
|
9268
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9179
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9269
9180
|
|
|
9270
9181
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9271
9182
|
|
|
@@ -9284,7 +9195,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9284
9195
|
_ref$autohide = _ref.autohide,
|
|
9285
9196
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9286
9197
|
onClose = _ref.onClose,
|
|
9287
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9198
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9288
9199
|
|
|
9289
9200
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9290
9201
|
// timer in case these values change.
|
|
@@ -9312,7 +9223,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9312
9223
|
};
|
|
9313
9224
|
}, [onClose]);
|
|
9314
9225
|
var hasAnimation = !!(Transition && animation);
|
|
9315
|
-
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9226
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9316
9227
|
ref: ref,
|
|
9317
9228
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9318
9229
|
role: "alert",
|
|
@@ -9332,7 +9243,7 @@ Object.assign(Toast, {
|
|
|
9332
9243
|
Header: ToastHeader
|
|
9333
9244
|
});
|
|
9334
9245
|
|
|
9335
|
-
var noop = function noop() {
|
|
9246
|
+
var noop$5 = function noop() {
|
|
9336
9247
|
return undefined;
|
|
9337
9248
|
};
|
|
9338
9249
|
|
|
@@ -9346,7 +9257,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9346
9257
|
value = _ref.value,
|
|
9347
9258
|
disabled = _ref.disabled,
|
|
9348
9259
|
inputRef = _ref.inputRef,
|
|
9349
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9260
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9350
9261
|
|
|
9351
9262
|
var _useState = useState(false),
|
|
9352
9263
|
focused = _useState[0],
|
|
@@ -9358,7 +9269,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9358
9269
|
var handleBlur = useCallback(function (e) {
|
|
9359
9270
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9360
9271
|
}, []);
|
|
9361
|
-
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9272
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9362
9273
|
ref: ref,
|
|
9363
9274
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9364
9275
|
type: undefined,
|
|
@@ -9374,12 +9285,12 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9374
9285
|
disabled: !!disabled,
|
|
9375
9286
|
onFocus: handleFocus,
|
|
9376
9287
|
onBlur: handleBlur,
|
|
9377
|
-
onChange: onChange || noop
|
|
9288
|
+
onChange: onChange || noop$5
|
|
9378
9289
|
}), children);
|
|
9379
9290
|
});
|
|
9380
9291
|
ToggleButton.displayName = 'ToggleButton';
|
|
9381
9292
|
|
|
9382
|
-
var defaultProps$
|
|
9293
|
+
var defaultProps$D = {
|
|
9383
9294
|
type: 'radio',
|
|
9384
9295
|
vertical: false
|
|
9385
9296
|
};
|
|
@@ -9392,7 +9303,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9392
9303
|
name = _useUncontrolled.name,
|
|
9393
9304
|
value = _useUncontrolled.value,
|
|
9394
9305
|
onChange = _useUncontrolled.onChange,
|
|
9395
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9306
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9396
9307
|
|
|
9397
9308
|
var getValues = function getValues() {
|
|
9398
9309
|
return value == null ? [] : [].concat(value);
|
|
@@ -9421,7 +9332,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9421
9332
|
};
|
|
9422
9333
|
|
|
9423
9334
|
!(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;
|
|
9424
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9335
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9425
9336
|
ref: ref,
|
|
9426
9337
|
toggle: true
|
|
9427
9338
|
}), map(children, function (child) {
|
|
@@ -9442,10 +9353,10 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9442
9353
|
});
|
|
9443
9354
|
}));
|
|
9444
9355
|
});
|
|
9445
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9356
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9446
9357
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9447
9358
|
|
|
9448
|
-
var defaultProps = {
|
|
9359
|
+
var defaultProps$E = {
|
|
9449
9360
|
placement: 'right'
|
|
9450
9361
|
};
|
|
9451
9362
|
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -9454,32 +9365,32 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9454
9365
|
className = _ref.className,
|
|
9455
9366
|
style = _ref.style,
|
|
9456
9367
|
children = _ref.children,
|
|
9457
|
-
arrowProps = _ref.arrowProps
|
|
9458
|
-
_ref.popper
|
|
9459
|
-
_ref.show
|
|
9460
|
-
|
|
9368
|
+
arrowProps = _ref.arrowProps,
|
|
9369
|
+
_ = _ref.popper,
|
|
9370
|
+
_2 = _ref.show,
|
|
9371
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9461
9372
|
|
|
9462
9373
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9463
9374
|
|
|
9464
9375
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9465
9376
|
primaryPlacement = _ref2[0];
|
|
9466
9377
|
|
|
9467
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9378
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9468
9379
|
ref: ref,
|
|
9469
9380
|
style: style,
|
|
9470
9381
|
role: "tooltip",
|
|
9471
9382
|
"x-placement": primaryPlacement,
|
|
9472
9383
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9473
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9384
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9474
9385
|
className: "arrow"
|
|
9475
9386
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9476
9387
|
className: bsPrefix + "-inner"
|
|
9477
9388
|
}, children));
|
|
9478
9389
|
});
|
|
9479
|
-
Tooltip.defaultProps = defaultProps;
|
|
9390
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9480
9391
|
Tooltip.displayName = 'Tooltip';
|
|
9481
9392
|
|
|
9482
|
-
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";
|
|
9393
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9483
9394
|
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" };
|
|
9484
9395
|
styleInject(css);
|
|
9485
9396
|
|
|
@@ -9566,11 +9477,11 @@ var Filter = function Filter(_ref) {
|
|
|
9566
9477
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9567
9478
|
grandChildData = _useState6[0],
|
|
9568
9479
|
setGrandChildData = _useState6[1];
|
|
9569
|
-
/*
|
|
9570
|
-
{parent: showAll,
|
|
9571
|
-
chidlren: show selected from parent,
|
|
9572
|
-
grandchildren: show selected from children
|
|
9573
|
-
}
|
|
9480
|
+
/*
|
|
9481
|
+
{parent: showAll,
|
|
9482
|
+
chidlren: show selected from parent,
|
|
9483
|
+
grandchildren: show selected from children
|
|
9484
|
+
}
|
|
9574
9485
|
*/
|
|
9575
9486
|
|
|
9576
9487
|
|
|
@@ -9585,7 +9496,7 @@ var Filter = function Filter(_ref) {
|
|
|
9585
9496
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9586
9497
|
if (type === 'parent') {
|
|
9587
9498
|
setParentData(function (prevState) {
|
|
9588
|
-
return _extends$
|
|
9499
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null });
|
|
9589
9500
|
});
|
|
9590
9501
|
if (group && group.children && group.children.length > 0) {
|
|
9591
9502
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9599,7 +9510,7 @@ var Filter = function Filter(_ref) {
|
|
|
9599
9510
|
}
|
|
9600
9511
|
if (type === 'child') {
|
|
9601
9512
|
setChildData(function (prevState) {
|
|
9602
|
-
return _extends$
|
|
9513
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9603
9514
|
});
|
|
9604
9515
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9605
9516
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9618,7 +9529,7 @@ var Filter = function Filter(_ref) {
|
|
|
9618
9529
|
}
|
|
9619
9530
|
if (type === 'grandchild') {
|
|
9620
9531
|
setGrandChildData(function (prevState) {
|
|
9621
|
-
return _extends$
|
|
9532
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9622
9533
|
});
|
|
9623
9534
|
//handle filter
|
|
9624
9535
|
if (!group._id) {
|
|
@@ -9641,7 +9552,7 @@ var Filter = function Filter(_ref) {
|
|
|
9641
9552
|
DropdownButton,
|
|
9642
9553
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9643
9554
|
React__default.createElement(
|
|
9644
|
-
Dropdown.Item,
|
|
9555
|
+
Dropdown$1.Item,
|
|
9645
9556
|
{ onSelect: function onSelect() {
|
|
9646
9557
|
return handleFilterSelect({}, 'parent');
|
|
9647
9558
|
} },
|
|
@@ -9650,7 +9561,7 @@ var Filter = function Filter(_ref) {
|
|
|
9650
9561
|
parentData.data.map(function (docGroup) {
|
|
9651
9562
|
if (!docGroup._id) return null;
|
|
9652
9563
|
return React__default.createElement(
|
|
9653
|
-
Dropdown.Item,
|
|
9564
|
+
Dropdown$1.Item,
|
|
9654
9565
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9655
9566
|
return handleFilterSelect(docGroup, 'parent');
|
|
9656
9567
|
} },
|
|
@@ -9662,7 +9573,7 @@ var Filter = function Filter(_ref) {
|
|
|
9662
9573
|
DropdownButton,
|
|
9663
9574
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9664
9575
|
React__default.createElement(
|
|
9665
|
-
Dropdown.Item,
|
|
9576
|
+
Dropdown$1.Item,
|
|
9666
9577
|
{ onSelect: function onSelect() {
|
|
9667
9578
|
return handleFilterSelect({}, 'child');
|
|
9668
9579
|
} },
|
|
@@ -9671,7 +9582,7 @@ var Filter = function Filter(_ref) {
|
|
|
9671
9582
|
childData.data.map(function (docGroup) {
|
|
9672
9583
|
if (!docGroup._id) return null;
|
|
9673
9584
|
return React__default.createElement(
|
|
9674
|
-
Dropdown.Item,
|
|
9585
|
+
Dropdown$1.Item,
|
|
9675
9586
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9676
9587
|
return handleFilterSelect(docGroup, 'child');
|
|
9677
9588
|
} },
|
|
@@ -9683,7 +9594,7 @@ var Filter = function Filter(_ref) {
|
|
|
9683
9594
|
DropdownButton,
|
|
9684
9595
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9685
9596
|
React__default.createElement(
|
|
9686
|
-
Dropdown.Item,
|
|
9597
|
+
Dropdown$1.Item,
|
|
9687
9598
|
{ onSelect: function onSelect() {
|
|
9688
9599
|
return handleFilterSelect({}, 'grandchild');
|
|
9689
9600
|
} },
|
|
@@ -9692,7 +9603,7 @@ var Filter = function Filter(_ref) {
|
|
|
9692
9603
|
grandChildData.data.map(function (docGroup) {
|
|
9693
9604
|
if (!docGroup._id) return null;
|
|
9694
9605
|
return React__default.createElement(
|
|
9695
|
-
Dropdown.Item,
|
|
9606
|
+
Dropdown$1.Item,
|
|
9696
9607
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9697
9608
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9698
9609
|
} },
|
|
@@ -9748,7 +9659,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9748
9659
|
while (1) {
|
|
9749
9660
|
switch (_context.prev = _context.next) {
|
|
9750
9661
|
case 0:
|
|
9751
|
-
newParams = _extends$
|
|
9662
|
+
newParams = _extends$2({}, params, { from: 0, to: 10 });
|
|
9752
9663
|
filterQuery = void 0;
|
|
9753
9664
|
|
|
9754
9665
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9823,6 +9734,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9823
9734
|
return React__default.createElement(
|
|
9824
9735
|
'div',
|
|
9825
9736
|
{ className: 'mb-5' },
|
|
9737
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9826
9738
|
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9827
9739
|
'div',
|
|
9828
9740
|
{ className: '' },
|
|
@@ -9849,12 +9761,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9849
9761
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9850
9762
|
var _ref4;
|
|
9851
9763
|
|
|
9852
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9764
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9853
9765
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9854
9766
|
while (1) {
|
|
9855
9767
|
switch (_context2.prev = _context2.next) {
|
|
9856
9768
|
case 0:
|
|
9857
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9769
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9858
9770
|
identifier = pathname.replace('/', '');
|
|
9859
9771
|
itemsPerPage = 10;
|
|
9860
9772
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
@@ -9867,7 +9779,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9867
9779
|
url: pathname
|
|
9868
9780
|
};
|
|
9869
9781
|
_context2.next = 9;
|
|
9870
|
-
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name\n }');
|
|
9782
|
+
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name,\n description\n }');
|
|
9871
9783
|
|
|
9872
9784
|
case 9:
|
|
9873
9785
|
docGroupID = _context2.sent;
|