@mjhls/mjh-framework 1.0.994-podcastsv2 → 1.0.994
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/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -6
- package/dist/cjs/AD300x250x600.js +5 -6
- package/dist/cjs/AD728x90.js +6 -7
- package/dist/cjs/ADFloatingFooter.js +8 -9
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -9
- package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-ef933a08.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +8 -9
- package/dist/cjs/ADSponsoredResources.js +8 -9
- package/dist/cjs/ADWebcast.js +8 -9
- package/dist/cjs/ADWelcome.js +12 -13
- package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-0e931f24.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -10
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlgoliaSearch.js +1451 -904
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +14 -15
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -12
- package/dist/cjs/ArticleSeriesListing.js +29 -30
- package/dist/cjs/Auth.js +114 -85
- package/dist/cjs/AuthWrapper.js +113 -43
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +61 -62
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +27 -28
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -50
- package/dist/cjs/DeckContent.js +58 -59
- package/dist/cjs/DeckQueue.js +57 -58
- package/dist/cjs/DeckQueuePaginated.js +46 -47
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-67646058.js} +17 -18
- package/dist/cjs/EventsDeck.js +90 -90
- package/dist/cjs/ExternalResources.js +34 -35
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -135
- package/dist/cjs/GridContentPaginated.js +121 -122
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +105 -105
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +17 -17
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +28 -29
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-6c00b878.js → ImageSlider-1ec0408b.js} +212 -172
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +19 -20
- package/dist/cjs/LeftNav.js +17 -18
- package/dist/cjs/MasterDeck.js +39 -40
- package/dist/cjs/MasterDeckPaginated.js +29 -30
- package/dist/cjs/{Tooltip-f075b7ef.js → MediaSeriesCard-2645b00a.js} +777 -621
- package/dist/cjs/MediaSeriesLanding.js +49 -51
- package/dist/cjs/MediaSeriesLandingPaginated.js +47 -49
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-4799de4b.js → NavFooter-880e9d87.js} +11 -11
- package/dist/cjs/NavMagazine.js +106 -106
- package/dist/cjs/NavNative.js +97 -97
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-2a3d0103.js → Pagination-6359861a.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +49 -51
- package/dist/cjs/PartnerDetailListingPaginated.js +45 -47
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -14
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-a989a2b3.js} +29 -29
- package/dist/cjs/PublicationLanding.js +73 -73
- package/dist/cjs/QueueDeckExpanded.js +245 -246
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -223
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +14 -14
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -19
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-18fc6e71.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-d2ab3d62.js → SocialSearchComponent-ca9c0c45.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +11 -12
- package/dist/cjs/TemplateNormal.js +27 -28
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +28 -29
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -12
- package/dist/cjs/VideoSeriesListing.js +46 -47
- package/dist/cjs/View.js +221 -222
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +33 -33
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
- package/dist/cjs/getSerializers.js +6 -7
- package/dist/cjs/iconBase-be4097c0.js +2 -4
- package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
- package/dist/cjs/{index-e9d3f910.js → index-669d70bd.js} +481 -481
- package/dist/cjs/{index-fc2f1ca2.js → index-7435b964.js} +471 -6
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/index-b95410f0.js +54 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
- package/dist/cjs/{index.esm-1461604c.js → index.esm-f59ef5b4.js} +14 -14
- package/dist/cjs/index.js +102 -105
- package/dist/cjs/{main-f1c77adb.js → main-6054981e.js} +17 -22
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -3
- package/dist/esm/AD300x250x600.js +2 -3
- package/dist/esm/AD728x90.js +2 -3
- package/dist/esm/ADFloatingFooter.js +2 -3
- package/dist/esm/ADGutter.js +2 -3
- package/dist/esm/ADSkyscraper.js +2 -3
- package/dist/esm/ADSponsoredResources.js +2 -3
- package/dist/esm/ADWebcast.js +2 -3
- package/dist/esm/ADWelcome.js +2 -3
- package/dist/esm/AdSlot.js +2 -3
- package/dist/esm/AdSlotsProvider.js +2 -3
- package/dist/esm/AlgoliaSearch.js +1065 -518
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +3 -4
- package/dist/esm/ArticleSeriesLandingPage.js +4 -5
- package/dist/esm/ArticleSeriesListing.js +2 -3
- package/dist/esm/Auth.js +40 -11
- package/dist/esm/AuthWrapper.js +86 -16
- package/dist/esm/CMEDeck.js +2 -3
- package/dist/esm/Column3.js +2 -3
- package/dist/esm/ContentCardPaginated.js +4 -5
- package/dist/esm/DeckContent.js +3 -4
- package/dist/esm/DeckQueue.js +2 -3
- package/dist/esm/DeckQueuePaginated.js +3 -4
- package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
- package/dist/esm/EventsDeck.js +2 -2
- package/dist/esm/ExternalResources.js +4 -5
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +4 -5
- package/dist/esm/GridContentPaginated.js +5 -6
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +3 -4
- package/dist/esm/{ImageSlider-f84174cb.js → ImageSlider-83913c4c.js} +157 -117
- package/dist/esm/IssueLanding.js +5 -6
- package/dist/esm/LeftNav.js +2 -3
- package/dist/esm/MasterDeck.js +4 -5
- package/dist/esm/MasterDeckPaginated.js +5 -6
- package/dist/esm/{Tooltip-95655b44.js → MediaSeriesCard-2a9ff7f3.js} +223 -68
- package/dist/esm/MediaSeriesLanding.js +12 -14
- package/dist/esm/MediaSeriesLandingPaginated.js +12 -14
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +6 -8
- package/dist/esm/PartnerDetailListingPaginated.js +7 -9
- package/dist/esm/PubSection.js +4 -5
- package/dist/esm/QueueDeckExpanded.js +4 -5
- package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
- package/dist/esm/SeriesListingDeck.js +3 -4
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-5728e349.js} +1 -1
- package/dist/esm/{SocialSearchComponent-165b4ae7.js → SocialSearchComponent-68d948b9.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +3 -4
- package/dist/esm/TemplateNormal.js +3 -4
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -4
- package/dist/esm/VideoSeriesLandingPage.js +4 -5
- package/dist/esm/VideoSeriesListing.js +2 -3
- package/dist/esm/View.js +4 -5
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getSerializers.js +3 -4
- package/dist/esm/index-174b5baf.js +52 -0
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/{index-9a58ca55.js → index-4d0371dc.js} +2 -2
- package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
- package/dist/esm/index.js +10 -13
- package/dist/esm/{main-1894c974.js → main-9f6806ea.js} +4 -9
- package/package.json +1 -1
- package/dist/cjs/MediaSeriesCard-443d909e.js +0 -81
- package/dist/cjs/PodcastsLanding.js +0 -235
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/MediaSeriesCard-2403a1d3.js +0 -75
- package/dist/esm/PodcastsLanding.js +0 -228
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-f946441a.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-012e6f16.js} +0 -0
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-4d0371dc.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -18,14 +18,13 @@ import './index.es-a6137319.js';
|
|
|
18
18
|
import './moment-bc12cb97.js';
|
|
19
19
|
import './visibility-sensor-72fd8f8b.js';
|
|
20
20
|
import 'react-dom';
|
|
21
|
-
import './index-
|
|
22
|
-
import './events-6c3a7a63.js';
|
|
21
|
+
import './index-5cc7b406.js';
|
|
23
22
|
import 'prop-types';
|
|
24
23
|
import 'next/router';
|
|
25
24
|
import './index-755f2cc2.js';
|
|
26
|
-
import './main-
|
|
25
|
+
import './main-9f6806ea.js';
|
|
27
26
|
import './entities-6d9154b4.js';
|
|
28
|
-
import './ADInfeed-
|
|
27
|
+
import './ADInfeed-f946441a.js';
|
|
29
28
|
import 'react-bootstrap/Card';
|
|
30
29
|
import './AdSlot.js';
|
|
31
30
|
import './debounce-533d9748.js';
|
|
@@ -38,7 +37,7 @@ import './_library-528f1934.js';
|
|
|
38
37
|
import './Segment.js';
|
|
39
38
|
import './AuthorComponent-11adff02.js';
|
|
40
39
|
import './lodash-f97fd99a.js';
|
|
41
|
-
import './ADlgInfeed-
|
|
40
|
+
import './ADlgInfeed-012e6f16.js';
|
|
42
41
|
import './getContentCategory-15dcc413.js';
|
|
43
42
|
import './timeDifferenceCalc.js';
|
|
44
43
|
import 'react-bootstrap/Breadcrumb';
|
package/dist/esm/LeftNav.js
CHANGED
|
@@ -11,8 +11,7 @@ import './AdSlot.js';
|
|
|
11
11
|
import './extends-6d8e3924.js';
|
|
12
12
|
import './_object-pie-133f504a.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import './index-
|
|
15
|
-
import './events-6c3a7a63.js';
|
|
14
|
+
import './index-5cc7b406.js';
|
|
16
15
|
import './debounce-533d9748.js';
|
|
17
16
|
import './isSymbol-a7e9aafe.js';
|
|
18
17
|
import './toNumber-5aeba6e7.js';
|
|
@@ -21,7 +20,7 @@ import './stringify-2b084bee.js';
|
|
|
21
20
|
import './asyncToGenerator-958ef5fc.js';
|
|
22
21
|
import './_library-528f1934.js';
|
|
23
22
|
import './_iter-detect-98db3b07.js';
|
|
24
|
-
import './main-
|
|
23
|
+
import './main-9f6806ea.js';
|
|
25
24
|
|
|
26
25
|
var LeftNav = function LeftNav(props) {
|
|
27
26
|
var leftItems = props.leftItems,
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as _Promise } from './asyncToGenerator-958ef5fc.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a6ba2ec4.js';
|
|
5
5
|
import React__default from 'react';
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
6
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
7
|
import Container from 'react-bootstrap/Container';
|
|
8
8
|
import 'react-bootstrap/Row';
|
|
9
9
|
import 'react-bootstrap/Col';
|
|
@@ -16,9 +16,9 @@ import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
17
|
import './slicedToArray-6ebcbfea.js';
|
|
18
18
|
import './index-3f5c03b2.js';
|
|
19
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
20
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
21
|
-
import './main-
|
|
19
|
+
import { A as ADlgInfeed } from './ADlgInfeed-012e6f16.js';
|
|
20
|
+
import { A as ADInfeed } from './ADInfeed-f946441a.js';
|
|
21
|
+
import './main-9f6806ea.js';
|
|
22
22
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
23
23
|
import './core.get-iterator-method-ea258bb1.js';
|
|
24
24
|
import './_iter-detect-98db3b07.js';
|
|
@@ -29,7 +29,6 @@ import './_object-sap-7cee6f84.js';
|
|
|
29
29
|
import './define-property-5f1bda73.js';
|
|
30
30
|
import './typeof-e9fc0c5d.js';
|
|
31
31
|
import './_is-array-8d21b9e3.js';
|
|
32
|
-
import './events-6c3a7a63.js';
|
|
33
32
|
import 'prop-types';
|
|
34
33
|
import './isSymbol-a7e9aafe.js';
|
|
35
34
|
import './toNumber-5aeba6e7.js';
|
|
@@ -4,15 +4,15 @@ import { _ as _extends } from './extends-6d8e3924.js';
|
|
|
4
4
|
import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
5
5
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a6ba2ec4.js';
|
|
6
6
|
import React__default from 'react';
|
|
7
|
-
import { l as lib_3 } from './index-
|
|
7
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
8
8
|
import Container from 'react-bootstrap/Container';
|
|
9
9
|
import Spinner from 'react-bootstrap/Spinner';
|
|
10
10
|
import { withRouter } from 'next/router';
|
|
11
11
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
12
|
-
import { m as main_43 } from './main-
|
|
13
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
14
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
15
|
-
import { P as Pagination } from './Pagination-
|
|
12
|
+
import { m as main_43 } from './main-9f6806ea.js';
|
|
13
|
+
import { A as ADlgInfeed } from './ADlgInfeed-012e6f16.js';
|
|
14
|
+
import { A as ADInfeed } from './ADInfeed-f946441a.js';
|
|
15
|
+
import { P as Pagination } from './Pagination-9fe9f61d.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
18
18
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -23,7 +23,6 @@ import './_object-sap-7cee6f84.js';
|
|
|
23
23
|
import './define-property-5f1bda73.js';
|
|
24
24
|
import './typeof-e9fc0c5d.js';
|
|
25
25
|
import './_is-array-8d21b9e3.js';
|
|
26
|
-
import './events-6c3a7a63.js';
|
|
27
26
|
import 'prop-types';
|
|
28
27
|
import './slicedToArray-6ebcbfea.js';
|
|
29
28
|
import 'react-bootstrap/Card';
|
|
@@ -1,8 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as classnames } from './index-174b5baf.js';
|
|
2
2
|
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
5
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
7
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
8
|
+
import urlFor from './urlFor.js';
|
|
9
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
|
+
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
+
import { g as getSerializers } from './index-4d0371dc.js';
|
|
13
|
+
|
|
14
|
+
function _extends() {
|
|
15
|
+
_extends = Object.assign || function (target) {
|
|
16
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
17
|
+
var source = arguments[i];
|
|
18
|
+
|
|
19
|
+
for (var key in source) {
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21
|
+
target[key] = source[key];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return target;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
return _extends.apply(this, arguments);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
33
|
+
if (source == null) return {};
|
|
34
|
+
var target = {};
|
|
35
|
+
var sourceKeys = Object.keys(source);
|
|
36
|
+
var key, i;
|
|
37
|
+
|
|
38
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
39
|
+
key = sourceKeys[i];
|
|
40
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
41
|
+
target[key] = source[key];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return target;
|
|
45
|
+
}
|
|
6
46
|
|
|
7
47
|
/**
|
|
8
48
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -109,6 +149,15 @@ function useUncontrolled(props, config) {
|
|
|
109
149
|
}, props);
|
|
110
150
|
}
|
|
111
151
|
|
|
152
|
+
function _setPrototypeOf(o, p) {
|
|
153
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
154
|
+
o.__proto__ = p;
|
|
155
|
+
return o;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
return _setPrototypeOf(o, p);
|
|
159
|
+
}
|
|
160
|
+
|
|
112
161
|
function _inheritsLoose(subClass, superClass) {
|
|
113
162
|
subClass.prototype = Object.create(superClass.prototype);
|
|
114
163
|
subClass.prototype.constructor = subClass;
|
|
@@ -2652,7 +2701,10 @@ function isShadowRoot(node) {
|
|
|
2652
2701
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2653
2702
|
}
|
|
2654
2703
|
|
|
2655
|
-
var
|
|
2704
|
+
var max = Math.max;
|
|
2705
|
+
var min = Math.min;
|
|
2706
|
+
var round = Math.round;
|
|
2707
|
+
|
|
2656
2708
|
function getBoundingClientRect(element, includeScale) {
|
|
2657
2709
|
if (includeScale === void 0) {
|
|
2658
2710
|
includeScale = false;
|
|
@@ -2663,20 +2715,28 @@ function getBoundingClientRect(element, includeScale) {
|
|
|
2663
2715
|
var scaleY = 1;
|
|
2664
2716
|
|
|
2665
2717
|
if (isHTMLElement(element) && includeScale) {
|
|
2718
|
+
var offsetHeight = element.offsetHeight;
|
|
2719
|
+
var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
|
|
2666
2720
|
// Fallback to 1 in case both values are `0`
|
|
2667
|
-
|
|
2668
|
-
|
|
2721
|
+
|
|
2722
|
+
if (offsetWidth > 0) {
|
|
2723
|
+
scaleX = round(rect.width) / offsetWidth || 1;
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
if (offsetHeight > 0) {
|
|
2727
|
+
scaleY = round(rect.height) / offsetHeight || 1;
|
|
2728
|
+
}
|
|
2669
2729
|
}
|
|
2670
2730
|
|
|
2671
2731
|
return {
|
|
2672
|
-
width:
|
|
2673
|
-
height:
|
|
2674
|
-
top:
|
|
2675
|
-
right:
|
|
2676
|
-
bottom:
|
|
2677
|
-
left:
|
|
2678
|
-
x:
|
|
2679
|
-
y:
|
|
2732
|
+
width: rect.width / scaleX,
|
|
2733
|
+
height: rect.height / scaleY,
|
|
2734
|
+
top: rect.top / scaleY,
|
|
2735
|
+
right: rect.right / scaleX,
|
|
2736
|
+
bottom: rect.bottom / scaleY,
|
|
2737
|
+
left: rect.left / scaleX,
|
|
2738
|
+
x: rect.left / scaleX,
|
|
2739
|
+
y: rect.top / scaleY
|
|
2680
2740
|
};
|
|
2681
2741
|
}
|
|
2682
2742
|
|
|
@@ -2825,13 +2885,13 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2825
2885
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2826
2886
|
}
|
|
2827
2887
|
|
|
2828
|
-
var max = Math.max;
|
|
2829
|
-
var min = Math.min;
|
|
2830
|
-
var round = Math.round;
|
|
2831
|
-
|
|
2832
2888
|
function within(min$1, value, max$1) {
|
|
2833
2889
|
return max(min$1, min(value, max$1));
|
|
2834
2890
|
}
|
|
2891
|
+
function withinMaxClamp(min, value, max) {
|
|
2892
|
+
var v = within(min, value, max);
|
|
2893
|
+
return v > max ? max : v;
|
|
2894
|
+
}
|
|
2835
2895
|
|
|
2836
2896
|
function getFreshSideObject() {
|
|
2837
2897
|
return {
|
|
@@ -2944,6 +3004,10 @@ var arrow$1 = {
|
|
|
2944
3004
|
requiresIfExists: ['preventOverflow']
|
|
2945
3005
|
};
|
|
2946
3006
|
|
|
3007
|
+
function getVariation(placement) {
|
|
3008
|
+
return placement.split('-')[1];
|
|
3009
|
+
}
|
|
3010
|
+
|
|
2947
3011
|
var unsetSides = {
|
|
2948
3012
|
top: 'auto',
|
|
2949
3013
|
right: 'auto',
|
|
@@ -2959,8 +3023,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2959
3023
|
var win = window;
|
|
2960
3024
|
var dpr = win.devicePixelRatio || 1;
|
|
2961
3025
|
return {
|
|
2962
|
-
x: round(
|
|
2963
|
-
y: round(
|
|
3026
|
+
x: round(x * dpr) / dpr || 0,
|
|
3027
|
+
y: round(y * dpr) / dpr || 0
|
|
2964
3028
|
};
|
|
2965
3029
|
}
|
|
2966
3030
|
|
|
@@ -2970,11 +3034,13 @@ function mapToStyles(_ref2) {
|
|
|
2970
3034
|
var popper = _ref2.popper,
|
|
2971
3035
|
popperRect = _ref2.popperRect,
|
|
2972
3036
|
placement = _ref2.placement,
|
|
3037
|
+
variation = _ref2.variation,
|
|
2973
3038
|
offsets = _ref2.offsets,
|
|
2974
3039
|
position = _ref2.position,
|
|
2975
3040
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2976
3041
|
adaptive = _ref2.adaptive,
|
|
2977
|
-
roundOffsets = _ref2.roundOffsets
|
|
3042
|
+
roundOffsets = _ref2.roundOffsets,
|
|
3043
|
+
isFixed = _ref2.isFixed;
|
|
2978
3044
|
|
|
2979
3045
|
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2980
3046
|
_ref3$x = _ref3.x,
|
|
@@ -2996,7 +3062,7 @@ function mapToStyles(_ref2) {
|
|
|
2996
3062
|
if (offsetParent === getWindow(popper)) {
|
|
2997
3063
|
offsetParent = getDocumentElement(popper);
|
|
2998
3064
|
|
|
2999
|
-
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3065
|
+
if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
|
|
3000
3066
|
heightProp = 'scrollHeight';
|
|
3001
3067
|
widthProp = 'scrollWidth';
|
|
3002
3068
|
}
|
|
@@ -3005,17 +3071,19 @@ function mapToStyles(_ref2) {
|
|
|
3005
3071
|
|
|
3006
3072
|
offsetParent = offsetParent;
|
|
3007
3073
|
|
|
3008
|
-
if (placement === top) {
|
|
3009
|
-
sideY = bottom;
|
|
3010
|
-
|
|
3011
|
-
|
|
3074
|
+
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
3075
|
+
sideY = bottom;
|
|
3076
|
+
var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
3077
|
+
offsetParent[heightProp];
|
|
3078
|
+
y -= offsetY - popperRect.height;
|
|
3012
3079
|
y *= gpuAcceleration ? 1 : -1;
|
|
3013
3080
|
}
|
|
3014
3081
|
|
|
3015
|
-
if (placement === left) {
|
|
3016
|
-
sideX = right;
|
|
3017
|
-
|
|
3018
|
-
|
|
3082
|
+
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
3083
|
+
sideX = right;
|
|
3084
|
+
var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
3085
|
+
offsetParent[widthProp];
|
|
3086
|
+
x -= offsetX - popperRect.width;
|
|
3019
3087
|
x *= gpuAcceleration ? 1 : -1;
|
|
3020
3088
|
}
|
|
3021
3089
|
}
|
|
@@ -3027,7 +3095,7 @@ function mapToStyles(_ref2) {
|
|
|
3027
3095
|
if (gpuAcceleration) {
|
|
3028
3096
|
var _Object$assign;
|
|
3029
3097
|
|
|
3030
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1)
|
|
3098
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3031
3099
|
}
|
|
3032
3100
|
|
|
3033
3101
|
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
@@ -3055,9 +3123,11 @@ function computeStyles(_ref4) {
|
|
|
3055
3123
|
|
|
3056
3124
|
var commonStyles = {
|
|
3057
3125
|
placement: getBasePlacement(state.placement),
|
|
3126
|
+
variation: getVariation(state.placement),
|
|
3058
3127
|
popper: state.elements.popper,
|
|
3059
3128
|
popperRect: state.rects.popper,
|
|
3060
|
-
gpuAcceleration: gpuAcceleration
|
|
3129
|
+
gpuAcceleration: gpuAcceleration,
|
|
3130
|
+
isFixed: state.options.strategy === 'fixed'
|
|
3061
3131
|
};
|
|
3062
3132
|
|
|
3063
3133
|
if (state.modifiersData.popperOffsets != null) {
|
|
@@ -3315,7 +3385,7 @@ function getInnerBoundingClientRect(element) {
|
|
|
3315
3385
|
}
|
|
3316
3386
|
|
|
3317
3387
|
function getClientRectFromMixedType(element, clippingParent) {
|
|
3318
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) :
|
|
3388
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
3319
3389
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
3320
3390
|
// clipping (or hiding) overflowing elements with a position different from
|
|
3321
3391
|
// `initial`
|
|
@@ -3332,7 +3402,7 @@ function getClippingParents(element) {
|
|
|
3332
3402
|
|
|
3333
3403
|
|
|
3334
3404
|
return clippingParents.filter(function (clippingParent) {
|
|
3335
|
-
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3405
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$1(clippingParent).position !== 'static' : true);
|
|
3336
3406
|
});
|
|
3337
3407
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3338
3408
|
// clipping parents
|
|
@@ -3357,10 +3427,6 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3357
3427
|
return clippingRect;
|
|
3358
3428
|
}
|
|
3359
3429
|
|
|
3360
|
-
function getVariation(placement) {
|
|
3361
|
-
return placement.split('-')[1];
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
3430
|
function computeOffsets(_ref) {
|
|
3365
3431
|
var reference = _ref.reference,
|
|
3366
3432
|
element = _ref.element,
|
|
@@ -3446,11 +3512,10 @@ function detectOverflow(state, options) {
|
|
|
3446
3512
|
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
3447
3513
|
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
3448
3514
|
var altContext = elementContext === popper ? reference : popper;
|
|
3449
|
-
var referenceElement = state.elements.reference;
|
|
3450
3515
|
var popperRect = state.rects.popper;
|
|
3451
3516
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
3452
3517
|
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
3453
|
-
var referenceClientRect = getBoundingClientRect(
|
|
3518
|
+
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
3454
3519
|
var popperOffsets = computeOffsets({
|
|
3455
3520
|
reference: referenceClientRect,
|
|
3456
3521
|
element: popperRect,
|
|
@@ -3837,6 +3902,14 @@ function preventOverflow(_ref) {
|
|
|
3837
3902
|
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3838
3903
|
placement: state.placement
|
|
3839
3904
|
})) : tetherOffset;
|
|
3905
|
+
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
|
3906
|
+
mainAxis: tetherOffsetValue,
|
|
3907
|
+
altAxis: tetherOffsetValue
|
|
3908
|
+
} : Object.assign({
|
|
3909
|
+
mainAxis: 0,
|
|
3910
|
+
altAxis: 0
|
|
3911
|
+
}, tetherOffsetValue);
|
|
3912
|
+
var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
|
|
3840
3913
|
var data = {
|
|
3841
3914
|
x: 0,
|
|
3842
3915
|
y: 0
|
|
@@ -3846,13 +3919,15 @@ function preventOverflow(_ref) {
|
|
|
3846
3919
|
return;
|
|
3847
3920
|
}
|
|
3848
3921
|
|
|
3849
|
-
if (checkMainAxis
|
|
3922
|
+
if (checkMainAxis) {
|
|
3923
|
+
var _offsetModifierState$;
|
|
3924
|
+
|
|
3850
3925
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3851
3926
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3852
3927
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3853
3928
|
var offset = popperOffsets[mainAxis];
|
|
3854
|
-
var min$1 =
|
|
3855
|
-
var max$1 =
|
|
3929
|
+
var min$1 = offset + overflow[mainSide];
|
|
3930
|
+
var max$1 = offset - overflow[altSide];
|
|
3856
3931
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3857
3932
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3858
3933
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3872,36 +3947,45 @@ function preventOverflow(_ref) {
|
|
|
3872
3947
|
// width or height)
|
|
3873
3948
|
|
|
3874
3949
|
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
3875
|
-
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin -
|
|
3876
|
-
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax +
|
|
3950
|
+
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
|
3951
|
+
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
3877
3952
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
3878
3953
|
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
3879
|
-
var offsetModifierValue =
|
|
3880
|
-
var tetherMin =
|
|
3881
|
-
var tetherMax =
|
|
3954
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
3955
|
+
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
3956
|
+
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
3957
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3958
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3959
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3960
|
+
}
|
|
3882
3961
|
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3886
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3887
|
-
}
|
|
3962
|
+
if (checkAltAxis) {
|
|
3963
|
+
var _offsetModifierState$2;
|
|
3888
3964
|
|
|
3889
|
-
|
|
3890
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3965
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3891
3966
|
|
|
3892
|
-
|
|
3967
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3893
3968
|
|
|
3894
|
-
|
|
3969
|
+
var _offset = popperOffsets[altAxis];
|
|
3895
3970
|
|
|
3896
|
-
|
|
3971
|
+
var _len = altAxis === 'y' ? 'height' : 'width';
|
|
3897
3972
|
|
|
3898
|
-
|
|
3973
|
+
var _min = _offset + overflow[_mainSide];
|
|
3899
3974
|
|
|
3900
|
-
|
|
3975
|
+
var _max = _offset - overflow[_altSide];
|
|
3901
3976
|
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3977
|
+
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
3978
|
+
|
|
3979
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
3980
|
+
|
|
3981
|
+
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
3982
|
+
|
|
3983
|
+
var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
|
|
3984
|
+
|
|
3985
|
+
var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
|
|
3986
|
+
|
|
3987
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3988
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3905
3989
|
}
|
|
3906
3990
|
|
|
3907
3991
|
state.modifiersData[name] = data;
|
|
@@ -3933,8 +4017,8 @@ function getNodeScroll(node) {
|
|
|
3933
4017
|
|
|
3934
4018
|
function isElementScaled(element) {
|
|
3935
4019
|
var rect = element.getBoundingClientRect();
|
|
3936
|
-
var scaleX = rect.width / element.offsetWidth || 1;
|
|
3937
|
-
var scaleY = rect.height / element.offsetHeight || 1;
|
|
4020
|
+
var scaleX = round(rect.width) / element.offsetWidth || 1;
|
|
4021
|
+
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
3938
4022
|
return scaleX !== 1 || scaleY !== 1;
|
|
3939
4023
|
} // Returns the composite rect of an element relative to its offsetParent.
|
|
3940
4024
|
// Composite means it takes into account transforms as well as layout.
|
|
@@ -4055,7 +4139,10 @@ var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" mo
|
|
|
4055
4139
|
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
4056
4140
|
function validateModifiers(modifiers) {
|
|
4057
4141
|
modifiers.forEach(function (modifier) {
|
|
4058
|
-
Object.keys(modifier)
|
|
4142
|
+
[].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
|
|
4143
|
+
.filter(function (value, index, self) {
|
|
4144
|
+
return self.indexOf(value) === index;
|
|
4145
|
+
}).forEach(function (key) {
|
|
4059
4146
|
switch (key) {
|
|
4060
4147
|
case 'name':
|
|
4061
4148
|
if (typeof modifier.name !== 'string') {
|
|
@@ -4069,6 +4156,8 @@ function validateModifiers(modifiers) {
|
|
|
4069
4156
|
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
4070
4157
|
}
|
|
4071
4158
|
|
|
4159
|
+
break;
|
|
4160
|
+
|
|
4072
4161
|
case 'phase':
|
|
4073
4162
|
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
4074
4163
|
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
@@ -4084,14 +4173,14 @@ function validateModifiers(modifiers) {
|
|
|
4084
4173
|
break;
|
|
4085
4174
|
|
|
4086
4175
|
case 'effect':
|
|
4087
|
-
if (typeof modifier.effect !== 'function') {
|
|
4176
|
+
if (modifier.effect != null && typeof modifier.effect !== 'function') {
|
|
4088
4177
|
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
4089
4178
|
}
|
|
4090
4179
|
|
|
4091
4180
|
break;
|
|
4092
4181
|
|
|
4093
4182
|
case 'requires':
|
|
4094
|
-
if (!Array.isArray(modifier.requires)) {
|
|
4183
|
+
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
4095
4184
|
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
|
|
4096
4185
|
}
|
|
4097
4186
|
|
|
@@ -4201,7 +4290,8 @@ function popperGenerator(generatorOptions) {
|
|
|
4201
4290
|
var isDestroyed = false;
|
|
4202
4291
|
var instance = {
|
|
4203
4292
|
state: state,
|
|
4204
|
-
setOptions: function setOptions(
|
|
4293
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
4294
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
|
4205
4295
|
cleanupModifierEffects();
|
|
4206
4296
|
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4207
4297
|
state.scrollParents = {
|
|
@@ -9442,4 +9532,69 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9442
9532
|
Tooltip.defaultProps = defaultProps;
|
|
9443
9533
|
Tooltip.displayName = 'Tooltip';
|
|
9444
9534
|
|
|
9445
|
-
|
|
9535
|
+
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";
|
|
9536
|
+
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" };
|
|
9537
|
+
styleInject(css);
|
|
9538
|
+
|
|
9539
|
+
var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
9540
|
+
var data = props.data,
|
|
9541
|
+
variant = props.variant,
|
|
9542
|
+
defaultImage = props.defaultImage,
|
|
9543
|
+
client = props.client;
|
|
9544
|
+
|
|
9545
|
+
|
|
9546
|
+
return React__default.createElement(
|
|
9547
|
+
'div',
|
|
9548
|
+
{ className: 'media-series-article ' + styles.article },
|
|
9549
|
+
React__default.createElement(
|
|
9550
|
+
'a',
|
|
9551
|
+
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9552
|
+
React__default.createElement(
|
|
9553
|
+
'div',
|
|
9554
|
+
{ className: 'media-series-thumbnail ' + styles.thumb },
|
|
9555
|
+
data.thumbnail && data.thumbnail.asset && React__default.createElement(
|
|
9556
|
+
'figure',
|
|
9557
|
+
null,
|
|
9558
|
+
React__default.createElement(
|
|
9559
|
+
LazyLoad,
|
|
9560
|
+
null,
|
|
9561
|
+
React__default.createElement('img', {
|
|
9562
|
+
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9563
|
+
})
|
|
9564
|
+
)
|
|
9565
|
+
)
|
|
9566
|
+
),
|
|
9567
|
+
React__default.createElement(
|
|
9568
|
+
'div',
|
|
9569
|
+
{ className: 'media-series-info ' + styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9570
|
+
React__default.createElement(
|
|
9571
|
+
'div',
|
|
9572
|
+
{ className: 'media-series-name ' + styles.name },
|
|
9573
|
+
data.name
|
|
9574
|
+
),
|
|
9575
|
+
data.published && React__default.createElement(
|
|
9576
|
+
'p',
|
|
9577
|
+
{ className: 'media-series-published ' + styles.published },
|
|
9578
|
+
moment(data.published).format('MMMM Do YYYY')
|
|
9579
|
+
),
|
|
9580
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9581
|
+
'p',
|
|
9582
|
+
{ className: 'media-series-author ' + styles.author },
|
|
9583
|
+
'By ',
|
|
9584
|
+
React__default.createElement(
|
|
9585
|
+
'span',
|
|
9586
|
+
null,
|
|
9587
|
+
data.authorMapping.displayName
|
|
9588
|
+
)
|
|
9589
|
+
),
|
|
9590
|
+
data.description && React__default.createElement(
|
|
9591
|
+
'div',
|
|
9592
|
+
{ className: 'media-series-desc' },
|
|
9593
|
+
React__default.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9594
|
+
)
|
|
9595
|
+
)
|
|
9596
|
+
)
|
|
9597
|
+
);
|
|
9598
|
+
};
|
|
9599
|
+
|
|
9600
|
+
export { DropdownButton as D, MediaSeriesCard as M, Dropdown as a };
|