@mjhls/mjh-framework 1.0.1049 → 1.0.1050-lightbox-v1
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 +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -2
- package/dist/cjs/AD300x250x600.js +3 -2
- package/dist/cjs/AD728x90.js +3 -2
- package/dist/cjs/ADFloatingFooter.js +3 -2
- package/dist/cjs/ADGutter.js +3 -2
- package/dist/cjs/{ADInfeed-0519664d.js → ADInfeed-89f63b7d.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +3 -2
- package/dist/cjs/ADSponsoredResources.js +3 -2
- package/dist/cjs/ADWebcast.js +3 -2
- package/dist/cjs/ADWelcome.js +3 -2
- package/dist/cjs/{ADlgInfeed-e544ac1c.js → ADlgInfeed-a536168e.js} +1 -1
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +3 -2
- package/dist/cjs/AlgoliaSearch.js +72 -399
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +3 -2
- package/dist/cjs/Auth.js +1492 -10
- package/dist/cjs/AuthWrapper.js +1565 -293
- package/dist/cjs/CEDeckSupabase.js +3 -2
- package/dist/cjs/CMEDeck.js +3 -2
- package/dist/cjs/Column3.js +3 -2
- package/dist/cjs/ContentCardPaginated.js +5 -4
- package/dist/cjs/DeckContent.js +5 -4
- package/dist/cjs/DeckQueue.js +4 -3
- package/dist/cjs/DeckQueuePaginated.js +4 -3
- package/dist/cjs/{Dfp-67646058.js → Dfp-c313a700.js} +2 -1
- package/dist/cjs/EventsDeck.js +1 -1
- package/dist/cjs/ExternalResources.js +5 -4
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +6 -5
- package/dist/cjs/GridContentPaginated.js +6 -5
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/HamMagazine.js +2 -2
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +5 -4
- package/dist/cjs/{ImageSlider-62a43659.js → ImageSlider-d65bc9c8.js} +106 -123
- package/dist/cjs/IssueLanding.js +7 -6
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +5 -4
- package/dist/cjs/MasterDeckPaginated.js +5 -4
- package/dist/cjs/{MediaSeriesCard-3ee52557.js → MediaSeriesCard-41d76fe4.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +10 -9
- package/dist/cjs/MediaSeriesLandingPaginated.js +10 -9
- package/dist/cjs/NavMagazine.js +2 -2
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +8 -7
- package/dist/cjs/PartnerDetailListingPaginated.js +8 -7
- package/dist/cjs/PodcastsLanding.js +8 -7
- package/dist/cjs/PubSection.js +6 -5
- package/dist/cjs/QueueDeckExpanded.js +6 -5
- package/dist/cjs/QueueDeckExpandedPaginated.js +6 -5
- package/dist/cjs/SeriesListingDeck.js +4 -3
- package/dist/cjs/{SeriesSlider-edcb8e4b.js → SeriesSlider-c7ed509b.js} +1 -1
- package/dist/cjs/{SocialSearchComponent-e9ec9c63.js → SocialSearchComponent-d7e5d3a6.js} +1 -1
- package/dist/cjs/TaxonomyDescription.js +5 -4
- package/dist/cjs/TemplateNormal.js +4 -3
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/{Tooltip-980a1d1a.js → Tooltip-02a841b5.js} +348 -140
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +5 -4
- package/dist/cjs/VideoSeriesLandingPage.js +5 -4
- package/dist/cjs/VideoSeriesListing.js +3 -2
- package/dist/cjs/View.js +6 -5
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-df1aed86.js} +4 -0
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +5 -4
- package/dist/cjs/{index-8041a4eb.js → index-9ec837cc.js} +0 -10
- package/dist/cjs/{index-7435b964.js → index-d2a6ef75.js} +2 -467
- package/dist/cjs/{index-46b63e4b.js → index-f582e937.js} +15 -24
- package/dist/cjs/index.js +11 -11
- package/dist/cjs/{main-47be4f9f.js → main-ae8472f3.js} +4 -9
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -2
- package/dist/esm/AD300x250x600.js +3 -2
- package/dist/esm/AD728x90.js +3 -2
- package/dist/esm/ADFloatingFooter.js +3 -2
- package/dist/esm/ADGutter.js +3 -2
- package/dist/esm/{ADInfeed-c3f5613e.js → ADInfeed-c14e043c.js} +1 -1
- package/dist/esm/ADSkyscraper.js +3 -2
- package/dist/esm/ADSponsoredResources.js +3 -2
- package/dist/esm/ADWebcast.js +3 -2
- package/dist/esm/ADWelcome.js +3 -2
- package/dist/esm/{ADlgInfeed-2b148f3f.js → ADlgInfeed-2892de3c.js} +1 -1
- package/dist/esm/AdSlot.js +3 -2
- package/dist/esm/AdSlotsProvider.js +3 -2
- package/dist/esm/AlgoliaSearch.js +71 -398
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +5 -4
- package/dist/esm/ArticleSeriesLandingPage.js +5 -4
- package/dist/esm/ArticleSeriesListing.js +3 -2
- package/dist/esm/Auth.js +1492 -9
- package/dist/esm/AuthWrapper.js +1559 -287
- package/dist/esm/CEDeckSupabase.js +3 -2
- package/dist/esm/CMEDeck.js +3 -2
- package/dist/esm/Column3.js +3 -2
- package/dist/esm/ContentCardPaginated.js +5 -4
- package/dist/esm/DeckContent.js +5 -4
- package/dist/esm/DeckQueue.js +4 -3
- package/dist/esm/DeckQueuePaginated.js +4 -3
- package/dist/esm/{Dfp-cf85d203.js → Dfp-102f0beb.js} +2 -1
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +5 -4
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +6 -5
- package/dist/esm/GridContentPaginated.js +6 -5
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +5 -4
- package/dist/esm/{ImageSlider-aea3a615.js → ImageSlider-da225417.js} +107 -124
- package/dist/esm/IssueLanding.js +7 -6
- package/dist/esm/LeftNav.js +3 -2
- package/dist/esm/MasterDeck.js +5 -4
- package/dist/esm/MasterDeckPaginated.js +5 -4
- package/dist/esm/{MediaSeriesCard-0f3cb954.js → MediaSeriesCard-43858b3f.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +10 -9
- package/dist/esm/MediaSeriesLandingPaginated.js +10 -9
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +8 -7
- package/dist/esm/PartnerDetailListingPaginated.js +8 -7
- package/dist/esm/PodcastsLanding.js +8 -7
- package/dist/esm/PubSection.js +6 -5
- package/dist/esm/QueueDeckExpanded.js +6 -5
- package/dist/esm/QueueDeckExpandedPaginated.js +6 -5
- package/dist/esm/SeriesListingDeck.js +4 -3
- package/dist/esm/{SeriesSlider-2e83e861.js → SeriesSlider-b467f00c.js} +1 -1
- package/dist/esm/{SocialSearchComponent-020f9e81.js → SocialSearchComponent-6065bff2.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +5 -4
- package/dist/esm/TemplateNormal.js +4 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/{Tooltip-51957f7c.js → Tooltip-7a093cd4.js} +506 -298
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +5 -4
- package/dist/esm/VideoSeriesLandingPage.js +5 -4
- package/dist/esm/VideoSeriesListing.js +3 -2
- package/dist/esm/View.js +6 -5
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-6d9154b4.js} +4 -0
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getSerializers.js +5 -4
- package/dist/esm/{index-67e1773f.js → index-0ce54f8a.js} +1 -10
- package/dist/esm/{index-be57519b.js → index-acb44b58.js} +15 -24
- package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
- package/dist/esm/index.js +11 -11
- package/dist/esm/{main-f97773b2.js → main-754d4992.js} +4 -9
- package/package.json +115 -115
|
@@ -2,7 +2,7 @@ import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallba
|
|
|
2
2
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
|
|
4
4
|
import urlFor from './urlFor.js';
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
5
|
+
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
6
6
|
import Router, { useRouter } from 'next/router';
|
|
7
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -10,7 +10,7 @@ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelper
|
|
|
10
10
|
import { u as util } from './util-8ed16d48.js';
|
|
11
11
|
import './Beam.js';
|
|
12
12
|
import Segment from './Segment.js';
|
|
13
|
-
import { f as main_18, b as main_42, m as main_43 } from './main-
|
|
13
|
+
import { f as main_18, b as main_42, m as main_43 } from './main-754d4992.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
15
|
import { _ as _extends, b as _extends$1 } from './extends-1559c147.js';
|
|
16
16
|
import { u as urlForFile } from './urlForFile-f6485737.js';
|
|
@@ -31,7 +31,7 @@ import { m as moment } from './moment-bc12cb97.js';
|
|
|
31
31
|
import SocialShare from './SocialShare.js';
|
|
32
32
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
33
33
|
import Pagination from 'react-bootstrap/Pagination';
|
|
34
|
-
import { h as html_decode_1 } from './entities-
|
|
34
|
+
import { h as html_decode_1 } from './entities-6d9154b4.js';
|
|
35
35
|
import DFPAdSlot from './AdSlot.js';
|
|
36
36
|
import Row$1 from 'react-bootstrap/Row';
|
|
37
37
|
import Col$1 from 'react-bootstrap/Col';
|
|
@@ -1629,13 +1629,11 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1629
1629
|
|
|
1630
1630
|
function filterResetOptions(opts) {
|
|
1631
1631
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1632
|
-
|
|
1633
|
-
width: 0,
|
|
1634
|
-
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1632
|
+
playerVars: _objectSpread({
|
|
1635
1633
|
autoplay: 0,
|
|
1636
1634
|
start: 0,
|
|
1637
1635
|
end: 0
|
|
1638
|
-
})
|
|
1636
|
+
}, opts.playerVars)
|
|
1639
1637
|
});
|
|
1640
1638
|
}
|
|
1641
1639
|
/**
|
|
@@ -1650,7 +1648,7 @@ function filterResetOptions(opts) {
|
|
|
1650
1648
|
|
|
1651
1649
|
|
|
1652
1650
|
function shouldResetPlayer(prevProps, props) {
|
|
1653
|
-
return
|
|
1651
|
+
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1654
1652
|
}
|
|
1655
1653
|
/**
|
|
1656
1654
|
* Check whether a props change should result in an id or className update.
|
|
@@ -1661,7 +1659,7 @@ function shouldResetPlayer(prevProps, props) {
|
|
|
1661
1659
|
|
|
1662
1660
|
|
|
1663
1661
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1664
|
-
return prevProps.id !== props.id || prevProps.className !== props.className
|
|
1662
|
+
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1665
1663
|
}
|
|
1666
1664
|
|
|
1667
1665
|
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
@@ -1748,9 +1746,6 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1748
1746
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1749
1747
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1750
1748
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1751
|
-
if (_this.props.opts && _this.props.opts.width) iframe.setAttribute('width', _this.props.opts.width);else iframe.removeAttribute('width');
|
|
1752
|
-
if (_this.props.opts && _this.props.opts.height) iframe.setAttribute('height', _this.props.opts.height);else iframe.removeAttribute('height');
|
|
1753
|
-
if (typeof _this.props.title === 'string') iframe.setAttribute('title', _this.props.title);else iframe.setAttribute('title', 'YouTube video player');
|
|
1754
1749
|
});
|
|
1755
1750
|
});
|
|
1756
1751
|
|
|
@@ -1849,8 +1844,7 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1849
1844
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1850
1845
|
id: this.props.id,
|
|
1851
1846
|
className: this.props.className,
|
|
1852
|
-
ref: this.refContainer
|
|
1853
|
-
loading: this.props.loading
|
|
1847
|
+
ref: this.refContainer
|
|
1854
1848
|
}));
|
|
1855
1849
|
}
|
|
1856
1850
|
}]);
|
|
@@ -1875,10 +1869,6 @@ YouTube.propTypes = {
|
|
|
1875
1869
|
className: PropTypes.string,
|
|
1876
1870
|
// custom class name for player container element
|
|
1877
1871
|
containerClassName: PropTypes.string,
|
|
1878
|
-
// custom title for the iFrame, see https://www.w3.org/TR/WCAG20-TECHS/H64.html
|
|
1879
|
-
title: PropTypes.string,
|
|
1880
|
-
// custom loading for player element
|
|
1881
|
-
loading: PropTypes.oneOf(['lazy', 'eager', 'auto']),
|
|
1882
1872
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1883
1873
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1884
1874
|
// event subscriptions
|
|
@@ -1895,7 +1885,6 @@ YouTube.defaultProps = {
|
|
|
1895
1885
|
videoId: null,
|
|
1896
1886
|
id: null,
|
|
1897
1887
|
className: null,
|
|
1898
|
-
loading: null,
|
|
1899
1888
|
opts: {},
|
|
1900
1889
|
containerClassName: '',
|
|
1901
1890
|
onReady: function onReady() {},
|
|
@@ -1905,8 +1894,7 @@ YouTube.defaultProps = {
|
|
|
1905
1894
|
onEnd: function onEnd() {},
|
|
1906
1895
|
onStateChange: function onStateChange() {},
|
|
1907
1896
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
|
-
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
|
-
title: null
|
|
1897
|
+
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1910
1898
|
};
|
|
1911
1899
|
|
|
1912
1900
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
@@ -9462,8 +9450,10 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9462
9450
|
var LightBox = function LightBox(_ref) {
|
|
9463
9451
|
var showLightbox = _ref.showLightbox,
|
|
9464
9452
|
lightboxImgSrc = _ref.lightboxImgSrc,
|
|
9465
|
-
closeLightbox = _ref.closeLightbox
|
|
9453
|
+
closeLightbox = _ref.closeLightbox,
|
|
9454
|
+
disableLightBox = _ref.disableLightBox;
|
|
9466
9455
|
|
|
9456
|
+
console.log("light house", disableLightBox);
|
|
9467
9457
|
var lightboxImage = useRef(null);
|
|
9468
9458
|
var lightboxContainer = useRef(null);
|
|
9469
9459
|
|
|
@@ -9482,7 +9472,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
9482
9472
|
|
|
9483
9473
|
return React__default.createElement(
|
|
9484
9474
|
'div',
|
|
9485
|
-
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
9475
|
+
{ ref: lightboxContainer, className: 'lightbox-target ' + (disableLightBox && showLightbox ? 'open' : 'close') },
|
|
9486
9476
|
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
9487
9477
|
React__default.createElement(
|
|
9488
9478
|
'style',
|
|
@@ -9536,6 +9526,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9536
9526
|
lightboxImgSrc = _useState4[0],
|
|
9537
9527
|
setLightboxImgSrc = _useState4[1];
|
|
9538
9528
|
|
|
9529
|
+
console.log("props", props);
|
|
9539
9530
|
if (typeof window === 'undefined') return null;
|
|
9540
9531
|
|
|
9541
9532
|
var node = props.node,
|
|
@@ -10423,7 +10414,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
10423
10414
|
React__default.createElement(
|
|
10424
10415
|
'style',
|
|
10425
10416
|
{ jsx: true },
|
|
10426
|
-
'\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0
|
|
10417
|
+
'\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
10427
10418
|
)
|
|
10428
10419
|
);
|
|
10429
10420
|
};
|
|
@@ -1,473 +1,8 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { E as EventEmitter } from './events-6c3a7a63.js';
|
|
2
3
|
import React__default from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
|
|
5
|
-
var domain;
|
|
6
|
-
|
|
7
|
-
// This constructor is used to store event handlers. Instantiating this is
|
|
8
|
-
// faster than explicitly calling `Object.create(null)` to get a "clean" empty
|
|
9
|
-
// object (tested with v8 v4.9).
|
|
10
|
-
function EventHandlers() {}
|
|
11
|
-
EventHandlers.prototype = Object.create(null);
|
|
12
|
-
|
|
13
|
-
function EventEmitter() {
|
|
14
|
-
EventEmitter.init.call(this);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// nodejs oddity
|
|
18
|
-
// require('events') === require('events').EventEmitter
|
|
19
|
-
EventEmitter.EventEmitter = EventEmitter;
|
|
20
|
-
|
|
21
|
-
EventEmitter.usingDomains = false;
|
|
22
|
-
|
|
23
|
-
EventEmitter.prototype.domain = undefined;
|
|
24
|
-
EventEmitter.prototype._events = undefined;
|
|
25
|
-
EventEmitter.prototype._maxListeners = undefined;
|
|
26
|
-
|
|
27
|
-
// By default EventEmitters will print a warning if more than 10 listeners are
|
|
28
|
-
// added to it. This is a useful default which helps finding memory leaks.
|
|
29
|
-
EventEmitter.defaultMaxListeners = 10;
|
|
30
|
-
|
|
31
|
-
EventEmitter.init = function() {
|
|
32
|
-
this.domain = null;
|
|
33
|
-
if (EventEmitter.usingDomains) {
|
|
34
|
-
// if there is an active domain, then attach to it.
|
|
35
|
-
if (domain.active ) ;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (!this._events || this._events === Object.getPrototypeOf(this)._events) {
|
|
39
|
-
this._events = new EventHandlers();
|
|
40
|
-
this._eventsCount = 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
this._maxListeners = this._maxListeners || undefined;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
// Obviously not all Emitters should be limited to 10. This function allows
|
|
47
|
-
// that to be increased. Set to zero for unlimited.
|
|
48
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
49
|
-
if (typeof n !== 'number' || n < 0 || isNaN(n))
|
|
50
|
-
throw new TypeError('"n" argument must be a positive number');
|
|
51
|
-
this._maxListeners = n;
|
|
52
|
-
return this;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
function $getMaxListeners(that) {
|
|
56
|
-
if (that._maxListeners === undefined)
|
|
57
|
-
return EventEmitter.defaultMaxListeners;
|
|
58
|
-
return that._maxListeners;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
62
|
-
return $getMaxListeners(this);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// These standalone emit* functions are used to optimize calling of event
|
|
66
|
-
// handlers for fast cases because emit() itself often has a variable number of
|
|
67
|
-
// arguments and can be deoptimized because of that. These functions always have
|
|
68
|
-
// the same number of arguments and thus do not get deoptimized, so the code
|
|
69
|
-
// inside them can execute faster.
|
|
70
|
-
function emitNone(handler, isFn, self) {
|
|
71
|
-
if (isFn)
|
|
72
|
-
handler.call(self);
|
|
73
|
-
else {
|
|
74
|
-
var len = handler.length;
|
|
75
|
-
var listeners = arrayClone(handler, len);
|
|
76
|
-
for (var i = 0; i < len; ++i)
|
|
77
|
-
listeners[i].call(self);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function emitOne(handler, isFn, self, arg1) {
|
|
81
|
-
if (isFn)
|
|
82
|
-
handler.call(self, arg1);
|
|
83
|
-
else {
|
|
84
|
-
var len = handler.length;
|
|
85
|
-
var listeners = arrayClone(handler, len);
|
|
86
|
-
for (var i = 0; i < len; ++i)
|
|
87
|
-
listeners[i].call(self, arg1);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
function emitTwo(handler, isFn, self, arg1, arg2) {
|
|
91
|
-
if (isFn)
|
|
92
|
-
handler.call(self, arg1, arg2);
|
|
93
|
-
else {
|
|
94
|
-
var len = handler.length;
|
|
95
|
-
var listeners = arrayClone(handler, len);
|
|
96
|
-
for (var i = 0; i < len; ++i)
|
|
97
|
-
listeners[i].call(self, arg1, arg2);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function emitThree(handler, isFn, self, arg1, arg2, arg3) {
|
|
101
|
-
if (isFn)
|
|
102
|
-
handler.call(self, arg1, arg2, arg3);
|
|
103
|
-
else {
|
|
104
|
-
var len = handler.length;
|
|
105
|
-
var listeners = arrayClone(handler, len);
|
|
106
|
-
for (var i = 0; i < len; ++i)
|
|
107
|
-
listeners[i].call(self, arg1, arg2, arg3);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function emitMany(handler, isFn, self, args) {
|
|
112
|
-
if (isFn)
|
|
113
|
-
handler.apply(self, args);
|
|
114
|
-
else {
|
|
115
|
-
var len = handler.length;
|
|
116
|
-
var listeners = arrayClone(handler, len);
|
|
117
|
-
for (var i = 0; i < len; ++i)
|
|
118
|
-
listeners[i].apply(self, args);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
EventEmitter.prototype.emit = function emit(type) {
|
|
123
|
-
var er, handler, len, args, i, events, domain;
|
|
124
|
-
var doError = (type === 'error');
|
|
125
|
-
|
|
126
|
-
events = this._events;
|
|
127
|
-
if (events)
|
|
128
|
-
doError = (doError && events.error == null);
|
|
129
|
-
else if (!doError)
|
|
130
|
-
return false;
|
|
131
|
-
|
|
132
|
-
domain = this.domain;
|
|
133
|
-
|
|
134
|
-
// If there is no 'error' event listener then throw.
|
|
135
|
-
if (doError) {
|
|
136
|
-
er = arguments[1];
|
|
137
|
-
if (domain) {
|
|
138
|
-
if (!er)
|
|
139
|
-
er = new Error('Uncaught, unspecified "error" event');
|
|
140
|
-
er.domainEmitter = this;
|
|
141
|
-
er.domain = domain;
|
|
142
|
-
er.domainThrown = false;
|
|
143
|
-
domain.emit('error', er);
|
|
144
|
-
} else if (er instanceof Error) {
|
|
145
|
-
throw er; // Unhandled 'error' event
|
|
146
|
-
} else {
|
|
147
|
-
// At least give some kind of context to the user
|
|
148
|
-
var err = new Error('Uncaught, unspecified "error" event. (' + er + ')');
|
|
149
|
-
err.context = er;
|
|
150
|
-
throw err;
|
|
151
|
-
}
|
|
152
|
-
return false;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
handler = events[type];
|
|
156
|
-
|
|
157
|
-
if (!handler)
|
|
158
|
-
return false;
|
|
159
|
-
|
|
160
|
-
var isFn = typeof handler === 'function';
|
|
161
|
-
len = arguments.length;
|
|
162
|
-
switch (len) {
|
|
163
|
-
// fast cases
|
|
164
|
-
case 1:
|
|
165
|
-
emitNone(handler, isFn, this);
|
|
166
|
-
break;
|
|
167
|
-
case 2:
|
|
168
|
-
emitOne(handler, isFn, this, arguments[1]);
|
|
169
|
-
break;
|
|
170
|
-
case 3:
|
|
171
|
-
emitTwo(handler, isFn, this, arguments[1], arguments[2]);
|
|
172
|
-
break;
|
|
173
|
-
case 4:
|
|
174
|
-
emitThree(handler, isFn, this, arguments[1], arguments[2], arguments[3]);
|
|
175
|
-
break;
|
|
176
|
-
// slower
|
|
177
|
-
default:
|
|
178
|
-
args = new Array(len - 1);
|
|
179
|
-
for (i = 1; i < len; i++)
|
|
180
|
-
args[i - 1] = arguments[i];
|
|
181
|
-
emitMany(handler, isFn, this, args);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return true;
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
function _addListener(target, type, listener, prepend) {
|
|
188
|
-
var m;
|
|
189
|
-
var events;
|
|
190
|
-
var existing;
|
|
191
|
-
|
|
192
|
-
if (typeof listener !== 'function')
|
|
193
|
-
throw new TypeError('"listener" argument must be a function');
|
|
194
|
-
|
|
195
|
-
events = target._events;
|
|
196
|
-
if (!events) {
|
|
197
|
-
events = target._events = new EventHandlers();
|
|
198
|
-
target._eventsCount = 0;
|
|
199
|
-
} else {
|
|
200
|
-
// To avoid recursion in the case that type === "newListener"! Before
|
|
201
|
-
// adding it to the listeners, first emit "newListener".
|
|
202
|
-
if (events.newListener) {
|
|
203
|
-
target.emit('newListener', type,
|
|
204
|
-
listener.listener ? listener.listener : listener);
|
|
205
|
-
|
|
206
|
-
// Re-assign `events` because a newListener handler could have caused the
|
|
207
|
-
// this._events to be assigned to a new object
|
|
208
|
-
events = target._events;
|
|
209
|
-
}
|
|
210
|
-
existing = events[type];
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
if (!existing) {
|
|
214
|
-
// Optimize the case of one listener. Don't need the extra array object.
|
|
215
|
-
existing = events[type] = listener;
|
|
216
|
-
++target._eventsCount;
|
|
217
|
-
} else {
|
|
218
|
-
if (typeof existing === 'function') {
|
|
219
|
-
// Adding the second element, need to change to array.
|
|
220
|
-
existing = events[type] = prepend ? [listener, existing] :
|
|
221
|
-
[existing, listener];
|
|
222
|
-
} else {
|
|
223
|
-
// If we've already got an array, just append.
|
|
224
|
-
if (prepend) {
|
|
225
|
-
existing.unshift(listener);
|
|
226
|
-
} else {
|
|
227
|
-
existing.push(listener);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// Check for listener leak
|
|
232
|
-
if (!existing.warned) {
|
|
233
|
-
m = $getMaxListeners(target);
|
|
234
|
-
if (m && m > 0 && existing.length > m) {
|
|
235
|
-
existing.warned = true;
|
|
236
|
-
var w = new Error('Possible EventEmitter memory leak detected. ' +
|
|
237
|
-
existing.length + ' ' + type + ' listeners added. ' +
|
|
238
|
-
'Use emitter.setMaxListeners() to increase limit');
|
|
239
|
-
w.name = 'MaxListenersExceededWarning';
|
|
240
|
-
w.emitter = target;
|
|
241
|
-
w.type = type;
|
|
242
|
-
w.count = existing.length;
|
|
243
|
-
emitWarning(w);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
return target;
|
|
249
|
-
}
|
|
250
|
-
function emitWarning(e) {
|
|
251
|
-
typeof console.warn === 'function' ? console.warn(e) : console.log(e);
|
|
252
|
-
}
|
|
253
|
-
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
|
254
|
-
return _addListener(this, type, listener, false);
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
258
|
-
|
|
259
|
-
EventEmitter.prototype.prependListener =
|
|
260
|
-
function prependListener(type, listener) {
|
|
261
|
-
return _addListener(this, type, listener, true);
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
function _onceWrap(target, type, listener) {
|
|
265
|
-
var fired = false;
|
|
266
|
-
function g() {
|
|
267
|
-
target.removeListener(type, g);
|
|
268
|
-
if (!fired) {
|
|
269
|
-
fired = true;
|
|
270
|
-
listener.apply(target, arguments);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
g.listener = listener;
|
|
274
|
-
return g;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
EventEmitter.prototype.once = function once(type, listener) {
|
|
278
|
-
if (typeof listener !== 'function')
|
|
279
|
-
throw new TypeError('"listener" argument must be a function');
|
|
280
|
-
this.on(type, _onceWrap(this, type, listener));
|
|
281
|
-
return this;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
EventEmitter.prototype.prependOnceListener =
|
|
285
|
-
function prependOnceListener(type, listener) {
|
|
286
|
-
if (typeof listener !== 'function')
|
|
287
|
-
throw new TypeError('"listener" argument must be a function');
|
|
288
|
-
this.prependListener(type, _onceWrap(this, type, listener));
|
|
289
|
-
return this;
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
// emits a 'removeListener' event iff the listener was removed
|
|
293
|
-
EventEmitter.prototype.removeListener =
|
|
294
|
-
function removeListener(type, listener) {
|
|
295
|
-
var list, events, position, i, originalListener;
|
|
296
|
-
|
|
297
|
-
if (typeof listener !== 'function')
|
|
298
|
-
throw new TypeError('"listener" argument must be a function');
|
|
299
|
-
|
|
300
|
-
events = this._events;
|
|
301
|
-
if (!events)
|
|
302
|
-
return this;
|
|
303
|
-
|
|
304
|
-
list = events[type];
|
|
305
|
-
if (!list)
|
|
306
|
-
return this;
|
|
307
|
-
|
|
308
|
-
if (list === listener || (list.listener && list.listener === listener)) {
|
|
309
|
-
if (--this._eventsCount === 0)
|
|
310
|
-
this._events = new EventHandlers();
|
|
311
|
-
else {
|
|
312
|
-
delete events[type];
|
|
313
|
-
if (events.removeListener)
|
|
314
|
-
this.emit('removeListener', type, list.listener || listener);
|
|
315
|
-
}
|
|
316
|
-
} else if (typeof list !== 'function') {
|
|
317
|
-
position = -1;
|
|
318
|
-
|
|
319
|
-
for (i = list.length; i-- > 0;) {
|
|
320
|
-
if (list[i] === listener ||
|
|
321
|
-
(list[i].listener && list[i].listener === listener)) {
|
|
322
|
-
originalListener = list[i].listener;
|
|
323
|
-
position = i;
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
if (position < 0)
|
|
329
|
-
return this;
|
|
330
|
-
|
|
331
|
-
if (list.length === 1) {
|
|
332
|
-
list[0] = undefined;
|
|
333
|
-
if (--this._eventsCount === 0) {
|
|
334
|
-
this._events = new EventHandlers();
|
|
335
|
-
return this;
|
|
336
|
-
} else {
|
|
337
|
-
delete events[type];
|
|
338
|
-
}
|
|
339
|
-
} else {
|
|
340
|
-
spliceOne(list, position);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
if (events.removeListener)
|
|
344
|
-
this.emit('removeListener', type, originalListener || listener);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
return this;
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
EventEmitter.prototype.removeAllListeners =
|
|
351
|
-
function removeAllListeners(type) {
|
|
352
|
-
var listeners, events;
|
|
353
|
-
|
|
354
|
-
events = this._events;
|
|
355
|
-
if (!events)
|
|
356
|
-
return this;
|
|
357
|
-
|
|
358
|
-
// not listening for removeListener, no need to emit
|
|
359
|
-
if (!events.removeListener) {
|
|
360
|
-
if (arguments.length === 0) {
|
|
361
|
-
this._events = new EventHandlers();
|
|
362
|
-
this._eventsCount = 0;
|
|
363
|
-
} else if (events[type]) {
|
|
364
|
-
if (--this._eventsCount === 0)
|
|
365
|
-
this._events = new EventHandlers();
|
|
366
|
-
else
|
|
367
|
-
delete events[type];
|
|
368
|
-
}
|
|
369
|
-
return this;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
// emit removeListener for all listeners on all events
|
|
373
|
-
if (arguments.length === 0) {
|
|
374
|
-
var keys = Object.keys(events);
|
|
375
|
-
for (var i = 0, key; i < keys.length; ++i) {
|
|
376
|
-
key = keys[i];
|
|
377
|
-
if (key === 'removeListener') continue;
|
|
378
|
-
this.removeAllListeners(key);
|
|
379
|
-
}
|
|
380
|
-
this.removeAllListeners('removeListener');
|
|
381
|
-
this._events = new EventHandlers();
|
|
382
|
-
this._eventsCount = 0;
|
|
383
|
-
return this;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
listeners = events[type];
|
|
387
|
-
|
|
388
|
-
if (typeof listeners === 'function') {
|
|
389
|
-
this.removeListener(type, listeners);
|
|
390
|
-
} else if (listeners) {
|
|
391
|
-
// LIFO order
|
|
392
|
-
do {
|
|
393
|
-
this.removeListener(type, listeners[listeners.length - 1]);
|
|
394
|
-
} while (listeners[0]);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
return this;
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
EventEmitter.prototype.listeners = function listeners(type) {
|
|
401
|
-
var evlistener;
|
|
402
|
-
var ret;
|
|
403
|
-
var events = this._events;
|
|
404
|
-
|
|
405
|
-
if (!events)
|
|
406
|
-
ret = [];
|
|
407
|
-
else {
|
|
408
|
-
evlistener = events[type];
|
|
409
|
-
if (!evlistener)
|
|
410
|
-
ret = [];
|
|
411
|
-
else if (typeof evlistener === 'function')
|
|
412
|
-
ret = [evlistener.listener || evlistener];
|
|
413
|
-
else
|
|
414
|
-
ret = unwrapListeners(evlistener);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
return ret;
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
EventEmitter.listenerCount = function(emitter, type) {
|
|
421
|
-
if (typeof emitter.listenerCount === 'function') {
|
|
422
|
-
return emitter.listenerCount(type);
|
|
423
|
-
} else {
|
|
424
|
-
return listenerCount.call(emitter, type);
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
EventEmitter.prototype.listenerCount = listenerCount;
|
|
429
|
-
function listenerCount(type) {
|
|
430
|
-
var events = this._events;
|
|
431
|
-
|
|
432
|
-
if (events) {
|
|
433
|
-
var evlistener = events[type];
|
|
434
|
-
|
|
435
|
-
if (typeof evlistener === 'function') {
|
|
436
|
-
return 1;
|
|
437
|
-
} else if (evlistener) {
|
|
438
|
-
return evlistener.length;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
return 0;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
446
|
-
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
// About 1.5x faster than the two-arg version of Array#splice().
|
|
450
|
-
function spliceOne(list, index) {
|
|
451
|
-
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1)
|
|
452
|
-
list[i] = list[k];
|
|
453
|
-
list.pop();
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
function arrayClone(arr, i) {
|
|
457
|
-
var copy = new Array(i);
|
|
458
|
-
while (i--)
|
|
459
|
-
copy[i] = arr[i];
|
|
460
|
-
return copy;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
function unwrapListeners(arr) {
|
|
464
|
-
var ret = new Array(arr.length);
|
|
465
|
-
for (var i = 0; i < ret.length; ++i) {
|
|
466
|
-
ret[i] = arr[i].listener || arr[i];
|
|
467
|
-
}
|
|
468
|
-
return ret;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
6
|
var utils = createCommonjsModule(function (module, exports) {
|
|
472
7
|
|
|
473
8
|
Object.defineProperty(exports, "__esModule", {
|
package/dist/esm/index.js
CHANGED
|
@@ -87,7 +87,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
87
87
|
export { default as YahooHero } from './YahooHero.js';
|
|
88
88
|
export { default as GridHero } from './GridHero.js';
|
|
89
89
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
90
|
-
export { g as getSerializers } from './index-
|
|
90
|
+
export { g as getSerializers } from './index-acb44b58.js';
|
|
91
91
|
export { default as Beam } from './Beam.js';
|
|
92
92
|
export { default as Segment } from './Segment.js';
|
|
93
93
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -116,7 +116,8 @@ import './typeof-657f25da.js';
|
|
|
116
116
|
import './web.dom.iterable-ab4dea5c.js';
|
|
117
117
|
import './_is-array-8d21b9e3.js';
|
|
118
118
|
import './_library-528f1934.js';
|
|
119
|
-
import './index-
|
|
119
|
+
import './index-f0fc23eb.js';
|
|
120
|
+
import './events-6c3a7a63.js';
|
|
120
121
|
import 'react-bootstrap/Container';
|
|
121
122
|
import 'react-bootstrap/Card';
|
|
122
123
|
import './moment-bc12cb97.js';
|
|
@@ -127,11 +128,11 @@ import './toNumber-5aeba6e7.js';
|
|
|
127
128
|
import './index.es-a6137319.js';
|
|
128
129
|
import './visibility-sensor-72fd8f8b.js';
|
|
129
130
|
import 'react-dom';
|
|
130
|
-
import './main-
|
|
131
|
-
import './entities-
|
|
132
|
-
import './ADInfeed-
|
|
131
|
+
import './main-754d4992.js';
|
|
132
|
+
import './entities-6d9154b4.js';
|
|
133
|
+
import './ADInfeed-c14e043c.js';
|
|
133
134
|
import './lodash-f97fd99a.js';
|
|
134
|
-
import './ADlgInfeed-
|
|
135
|
+
import './ADlgInfeed-2892de3c.js';
|
|
135
136
|
import './getContentCategory-15dcc413.js';
|
|
136
137
|
import './get-3c308da4.js';
|
|
137
138
|
import './eq-bdcbf886.js';
|
|
@@ -154,7 +155,7 @@ import './_object-to-array-b61d5965.js';
|
|
|
154
155
|
import 'react-bootstrap/Spinner';
|
|
155
156
|
import 'react-bootstrap/Form';
|
|
156
157
|
import './js.cookie-6874175c.js';
|
|
157
|
-
import './index-
|
|
158
|
+
import './index-0ce54f8a.js';
|
|
158
159
|
import './ConferenceBanner-8792ebd2.js';
|
|
159
160
|
import 'next/head';
|
|
160
161
|
import '@mjhls/mjh-framework/dist/cjs/urlFor';
|
|
@@ -168,7 +169,7 @@ import 'react-bootstrap/NavDropdown';
|
|
|
168
169
|
import './index.esm-9b042655.js';
|
|
169
170
|
import './NavFooter-1546a102.js';
|
|
170
171
|
import './index.esm-35a42e7d.js';
|
|
171
|
-
import './SocialSearchComponent-
|
|
172
|
+
import './SocialSearchComponent-6065bff2.js';
|
|
172
173
|
import 'react-bootstrap/FormControl';
|
|
173
174
|
import 'react-ga';
|
|
174
175
|
import 'react-bootstrap/Carousel';
|
|
@@ -191,13 +192,12 @@ import './index-db3bb315.js';
|
|
|
191
192
|
import 'swr';
|
|
192
193
|
import 'passport-local';
|
|
193
194
|
import 'mysql';
|
|
194
|
-
import 'util.promisify';
|
|
195
195
|
import './md5-4e42248e.js';
|
|
196
|
-
import './SeriesSlider-
|
|
196
|
+
import './SeriesSlider-b467f00c.js';
|
|
197
197
|
import './style-inject.es-1f59c1d0.js';
|
|
198
198
|
import 'disqus-react';
|
|
199
199
|
import 'react-twitter-embed';
|
|
200
|
-
import './ImageSlider-
|
|
200
|
+
import './ImageSlider-da225417.js';
|
|
201
201
|
import './VideoSeriesCard.js';
|
|
202
202
|
|
|
203
203
|
//Feature query to be used
|