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