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