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