@mjhls/mjh-framework 1.0.279 → 1.0.281

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.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{ADInfeed-f560c2f9.js → ADInfeed-f0bf34d7.js} +1 -1
  3. package/dist/cjs/{AdSlot-f69a31ec.js → AdSlot-9660e9aa.js} +3 -4
  4. package/dist/cjs/DeckContent.js +10 -11
  5. package/dist/cjs/DeckQueue.js +8 -9
  6. package/dist/cjs/{Dfp-7a5533f9.js → Dfp-36d51c84.js} +3 -4
  7. package/dist/cjs/{Figure-fe3e9705.js → Figure-a7cd5161.js} +2 -2
  8. package/dist/cjs/{GridContent-8d5a738c.js → GridContent-4b4bbe7f.js} +13 -14
  9. package/dist/cjs/GridContent.js +7 -8
  10. package/dist/cjs/IssueContentDeck.js +4 -4
  11. package/dist/cjs/IssueDeck.js +5 -5
  12. package/dist/cjs/MasterDeck.js +4 -5
  13. package/dist/cjs/{Normal-7ed9eee9.js → Normal-f3765beb.js} +5 -5
  14. package/dist/cjs/PublicationDeck.js +4 -4
  15. package/dist/cjs/QueueDeckExpanded.js +47 -12
  16. package/dist/cjs/{TaxonomyCard-b5074d6e.js → TaxonomyCard-cf5bbc07.js} +5 -5
  17. package/dist/cjs/TaxonomyCard.js +1 -1
  18. package/dist/cjs/TemplateNormal.js +5 -6
  19. package/dist/cjs/ThumbnailCard.js +4 -4
  20. package/dist/cjs/VideoSeriesListing.js +4 -5
  21. package/dist/cjs/{YoutubeGroup-78e6bcc3.js → YoutubeGroup-1ec66294.js} +3 -3
  22. package/dist/cjs/YoutubeGroup.js +1 -1
  23. package/dist/cjs/{index-fa3cec70.js → debounce-fbfce522.js} +483 -0
  24. package/dist/cjs/{get-1f91592f.js → get-858530c2.js} +1 -1
  25. package/dist/cjs/index.js +36 -37
  26. package/dist/cjs/{inherits-9898af5a.js → inherits-3fbaa008.js} +1 -1
  27. package/dist/cjs/{promise-b96c61f8.js → promise-ea10b9c8.js} +1 -1
  28. package/dist/esm/{ADInfeed-a77b2850.js → ADInfeed-cc019fcb.js} +1 -1
  29. package/dist/esm/{AdSlot-69bf3195.js → AdSlot-1f20130d.js} +2 -3
  30. package/dist/esm/DeckContent.js +5 -6
  31. package/dist/esm/DeckQueue.js +3 -4
  32. package/dist/esm/{Dfp-71879c9d.js → Dfp-85f00c9b.js} +1 -2
  33. package/dist/esm/{GridContent-b8b5f361.js → GridContent-1292ff20.js} +5 -6
  34. package/dist/esm/GridContent.js +7 -8
  35. package/dist/esm/MasterDeck.js +3 -4
  36. package/dist/esm/{Normal-21cfb458.js → Normal-c46eeac5.js} +5 -5
  37. package/dist/esm/QueueDeckExpanded.js +40 -5
  38. package/dist/esm/TemplateNormal.js +5 -6
  39. package/dist/esm/VideoSeriesListing.js +2 -3
  40. package/dist/esm/{index-fa84ea96.js → debounce-d15d4a31.js} +478 -2
  41. package/dist/esm/{get-b2201dc8.js → get-a0244443.js} +1 -1
  42. package/dist/esm/index.js +10 -11
  43. package/dist/esm/{inherits-a75c8a1c.js → inherits-1d7657b5.js} +1 -1
  44. package/dist/esm/{promise-683a9c54.js → promise-eabb7f7e.js} +1 -1
  45. package/package.json +1 -1
  46. package/dist/cjs/debounce-783eb233.js +0 -487
  47. package/dist/esm/debounce-806f886b.js +0 -479
package/dist/cjs/index.js CHANGED
@@ -7,15 +7,14 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
7
7
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
8
8
  var _toObject = require('./_to-object-329a650b.js');
9
9
  require('./web.dom.iterable-0998bdc3.js');
10
- var debounce = require('./debounce-783eb233.js');
10
+ var debounce = require('./debounce-fbfce522.js');
11
11
  var main = require('./main-0ea1b808.js');
12
12
  var toConsumableArray = require('./toConsumableArray-f05a306f.js');
13
13
  require('./core.get-iterator-method-e049ca4a.js');
14
14
  var _extends$2 = require('./extends-e94dbea5.js');
15
- var inherits$2 = require('./inherits-9898af5a.js');
15
+ var inherits$2 = require('./inherits-3fbaa008.js');
16
16
  var React = require('react');
17
17
  var React__default = _interopDefault(React);
18
- var index = require('./index-fa3cec70.js');
19
18
  var PropTypes = _interopDefault(require('prop-types'));
20
19
  var Container = _interopDefault(require('react-bootstrap/Container'));
21
20
  var Row = _interopDefault(require('react-bootstrap/Row'));
@@ -26,22 +25,22 @@ var Link = _interopDefault(require('next/link'));
26
25
  var Router = require('next/router');
27
26
  var Router__default = _interopDefault(Router);
28
27
  require('react-dom');
29
- var index$1 = require('./index-39beccb3.js');
28
+ var index = require('./index-39beccb3.js');
30
29
  require('./index-fa0fb52c.js');
31
30
  var entities = require('./entities-310b46ee.js');
32
31
  var slicedToArray = require('./slicedToArray-e38fb29d.js');
33
- var AdSlot = require('./AdSlot-f69a31ec.js');
34
- require('./promise-b96c61f8.js');
35
- require('./ADInfeed-f560c2f9.js');
32
+ var AdSlot = require('./AdSlot-9660e9aa.js');
33
+ require('./promise-ea10b9c8.js');
34
+ require('./ADInfeed-f0bf34d7.js');
36
35
  var DeckContent = require('./DeckContent.js');
37
- require('./get-1f91592f.js');
38
- var GridContent = require('./GridContent-8d5a738c.js');
36
+ require('./get-858530c2.js');
37
+ var GridContent = require('./GridContent-4b4bbe7f.js');
39
38
  var DeckQueue = require('./DeckQueue.js');
40
39
  require('react-bootstrap/Media');
41
40
  var ThumbnailCard = require('./ThumbnailCard.js');
42
- var TaxonomyCard = require('./TaxonomyCard-b5074d6e.js');
41
+ var TaxonomyCard = require('./TaxonomyCard-cf5bbc07.js');
43
42
  var GroupDeck = require('./GroupDeck.js');
44
- var YoutubeGroup = require('./YoutubeGroup-78e6bcc3.js');
43
+ var YoutubeGroup = require('./YoutubeGroup-1ec66294.js');
45
44
  require('smoothscroll-polyfill');
46
45
  var reactBootstrap = require('react-bootstrap');
47
46
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
@@ -54,7 +53,7 @@ var IssueDeck = require('./IssueDeck.js');
54
53
  require('react-bootstrap/Badge');
55
54
  var IssueContentDeck = require('./IssueContentDeck.js');
56
55
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
57
- var TemplateNormal = require('./Normal-7ed9eee9.js');
56
+ var TemplateNormal = require('./Normal-f3765beb.js');
58
57
  require('react-bootstrap/ListGroup');
59
58
  var Head = _interopDefault(require('next/head'));
60
59
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -1964,7 +1963,7 @@ var EventsDeck = function EventsDeck(_ref) {
1964
1963
  pageNumber = parseInt(pageNumber);
1965
1964
 
1966
1965
  if (pageNumber !== currentPageRef.current) {
1967
- index.lib_3.refresh();
1966
+ debounce.lib_3.refresh();
1968
1967
 
1969
1968
  currentPageRef.current = pageNumber;
1970
1969
  if (path[0] !== '/') {
@@ -2386,7 +2385,7 @@ var CMEDeck = function CMEDeck(_ref) {
2386
2385
  pageNumber = parseInt(pageNumber);
2387
2386
 
2388
2387
  if (currentPageRef.current !== pageNumber) {
2389
- index.lib_3.refresh();
2388
+ debounce.lib_3.refresh();
2390
2389
 
2391
2390
  currentPageRef.current = pageNumber;
2392
2391
  if (path[0] !== '/') {
@@ -2887,7 +2886,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
2887
2886
  singleRequest = _ref$singleRequest === undefined ? true : _ref$singleRequest;
2888
2887
 
2889
2888
  return React__default.createElement(
2890
- index.lib_1,
2889
+ debounce.lib_1,
2891
2890
  {
2892
2891
  dfpNetworkId: networkID,
2893
2892
  targeting: targeting,
@@ -3121,7 +3120,7 @@ var Slideshow = function Slideshow(_ref) {
3121
3120
  carouselIndex = _useState2[0],
3122
3121
  setCarouselIndex = _useState2[1];
3123
3122
 
3124
- var builder = index$1.imageUrlBuilder(client);
3123
+ var builder = index.imageUrlBuilder(client);
3125
3124
 
3126
3125
  React.useEffect(function () {
3127
3126
  var itemArr = router.asPath.split('?page=');
@@ -3134,7 +3133,7 @@ var Slideshow = function Slideshow(_ref) {
3134
3133
  }, [router]);
3135
3134
 
3136
3135
  React.useEffect(function () {
3137
- index.lib_3.refresh();
3136
+ debounce.lib_3.refresh();
3138
3137
  if (pageview) pageview(router.asPath);
3139
3138
  }, [router]);
3140
3139
 
@@ -5840,7 +5839,7 @@ var Media = function Media(_ref) {
5840
5839
  blank = node.blank,
5841
5840
  caption = node.caption;
5842
5841
 
5843
- var builder = index$1.imageUrlBuilder(client);
5842
+ var builder = index.imageUrlBuilder(client);
5844
5843
 
5845
5844
  var urlFor = function urlFor(source) {
5846
5845
  return builder.image(source).auto('format');
@@ -12834,7 +12833,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12834
12833
  client = _ref.client,
12835
12834
  getSerializers = _ref.getSerializers;
12836
12835
 
12837
- var builder = index$1.imageUrlBuilder(client);
12836
+ var builder = index.imageUrlBuilder(client);
12838
12837
  function urlFor(source) {
12839
12838
  return builder.image(source);
12840
12839
  }
@@ -12946,7 +12945,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12946
12945
  setTimeout(function () {
12947
12946
  setVidUrl(url);
12948
12947
  toggleSeries();
12949
- index.lib_3.refresh();
12948
+ debounce.lib_3.refresh();
12950
12949
  var newPath = '/' + get2 + '/' + get3 + ('?seriesVid=' + vidIndex);
12951
12950
  var vidState = { vid_id: vidIndex };
12952
12951
  window.history.pushState(vidState, '', newPath);
@@ -13394,7 +13393,7 @@ var Leads = function Leads(_ref) {
13394
13393
  };
13395
13394
 
13396
13395
  var urlFor$2 = function urlFor(source, client) {
13397
- var builder = index$1.imageUrlBuilder(client);
13396
+ var builder = index.imageUrlBuilder(client);
13398
13397
  return builder.image(source).auto('format');
13399
13398
  };
13400
13399
 
@@ -13423,7 +13422,7 @@ var Slideshow$1 = function Slideshow(_ref) {
13423
13422
  // }, [router])
13424
13423
 
13425
13424
  React.useEffect(function () {
13426
- index.lib_3.refresh();
13425
+ debounce.lib_3.refresh();
13427
13426
  // if (pageview) pageview(router.asPath)
13428
13427
  }, [router]);
13429
13428
 
@@ -13486,7 +13485,7 @@ var NativeAd = function NativeAd(props) {
13486
13485
  };
13487
13486
 
13488
13487
  var Figure = dynamic(function () {
13489
- return new Promise(function (resolve) { resolve(require('./Figure-fe3e9705.js')); });
13488
+ return new Promise(function (resolve) { resolve(require('./Figure-a7cd5161.js')); });
13490
13489
  }, { ssr: false });
13491
13490
 
13492
13491
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -13703,7 +13702,7 @@ var Feature = function Feature(props) {
13703
13702
  var urlFor = function urlFor(source) {
13704
13703
  var client = props.client;
13705
13704
 
13706
- var builder = index$1.imageUrlBuilder(client);
13705
+ var builder = index.imageUrlBuilder(client);
13707
13706
  return builder.image(source).auto('format');
13708
13707
  };
13709
13708
  //image width
@@ -13853,7 +13852,7 @@ var SetCookie = function SetCookie(key, value) {
13853
13852
  };
13854
13853
 
13855
13854
  var urlFor$3 = function urlFor(source, client) {
13856
- var builder = index$1.imageUrlBuilder(client);
13855
+ var builder = index.imageUrlBuilder(client);
13857
13856
  return builder.image(source).auto('format');
13858
13857
  };
13859
13858
 
@@ -14170,7 +14169,7 @@ var fbsHero = function fbsHero(props) {
14170
14169
 
14171
14170
  var client = props.client;
14172
14171
 
14173
- var builder = index$1.imageUrlBuilder(client);
14172
+ var builder = index.imageUrlBuilder(client);
14174
14173
  function urlFor(source) {
14175
14174
  return builder.image(source).auto('format');
14176
14175
  }
@@ -14279,7 +14278,7 @@ var fbsHero = function fbsHero(props) {
14279
14278
  var HorizontalHero = function HorizontalHero(props) {
14280
14279
  var client = props.client;
14281
14280
 
14282
- var builder = index$1.imageUrlBuilder(client);
14281
+ var builder = index.imageUrlBuilder(client);
14283
14282
  function urlFor(source) {
14284
14283
  return builder.image(source).auto('format');
14285
14284
  }
@@ -14374,7 +14373,7 @@ var HorizontalHero = function HorizontalHero(props) {
14374
14373
  var OncliveHero = function OncliveHero(props) {
14375
14374
  var client = props.client;
14376
14375
 
14377
- var builder = index$1.imageUrlBuilder(client);
14376
+ var builder = index.imageUrlBuilder(client);
14378
14377
  function urlFor(source) {
14379
14378
  return builder.image(source).auto('format');
14380
14379
  }
@@ -14442,7 +14441,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
14442
14441
  var subArticles = props.dataRecord.slice(3, props.dataRecord.length);
14443
14442
  var client = props.client;
14444
14443
 
14445
- var builder = index$1.imageUrlBuilder(client);
14444
+ var builder = index.imageUrlBuilder(client);
14446
14445
  function urlFor(source) {
14447
14446
  return builder.image(source).auto('format');
14448
14447
  }
@@ -14638,7 +14637,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
14638
14637
  var VerticalHero = function VerticalHero(props) {
14639
14638
  var client = props.client;
14640
14639
 
14641
- var builder = index$1.imageUrlBuilder(client);
14640
+ var builder = index.imageUrlBuilder(client);
14642
14641
  function urlFor(source) {
14643
14642
  return builder.image(source).auto('format');
14644
14643
  }
@@ -14705,7 +14704,7 @@ var YahooHero = function YahooHero(props) {
14705
14704
  var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
14706
14705
  var client = props.client;
14707
14706
 
14708
- var builder = index$1.imageUrlBuilder(client);
14707
+ var builder = index.imageUrlBuilder(client);
14709
14708
  function urlFor(source) {
14710
14709
  return builder.image(source).auto('format');
14711
14710
  }
@@ -14809,7 +14808,7 @@ var GridHero = function GridHero(props) {
14809
14808
 
14810
14809
  var client = props.client;
14811
14810
 
14812
- var builder = index$1.imageUrlBuilder(client);
14811
+ var builder = index.imageUrlBuilder(client);
14813
14812
  function urlFor(source) {
14814
14813
  return builder.image(source);
14815
14814
  }
@@ -15000,7 +14999,7 @@ var RelatedContent = function RelatedContent(props) {
15000
14999
  _props$defaultImage = props.defaultImage,
15001
15000
  defaultImage = _props$defaultImage === undefined ? '' : _props$defaultImage;
15002
15001
 
15003
- var builder = index$1.imageUrlBuilder(client);
15002
+ var builder = index.imageUrlBuilder(client);
15004
15003
  function urlFor(source) {
15005
15004
  return builder.image(source);
15006
15005
  }
@@ -15079,11 +15078,11 @@ const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(ti
15079
15078
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
15080
15079
  var data = props.data,
15081
15080
  variant = props.variant,
15082
- index = props.index,
15081
+ index$1 = props.index,
15083
15082
  client = props.client;
15084
15083
 
15085
15084
 
15086
- var builder = index$1.imageUrlBuilder(client);
15085
+ var builder = index.imageUrlBuilder(client);
15087
15086
 
15088
15087
  function urlFor(source) {
15089
15088
  return builder.image(source).auto('format');
@@ -15548,7 +15547,7 @@ var _initialiseProps = function _initialiseProps() {
15548
15547
  };
15549
15548
 
15550
15549
  this.urlFor = function (source) {
15551
- return index$1.imageUrlBuilder(_this3.props.client).image(source);
15550
+ return index.imageUrlBuilder(_this3.props.client).image(source);
15552
15551
  };
15553
15552
 
15554
15553
  this.getTargeting = function (article) {
@@ -15693,7 +15692,7 @@ var _initialiseProps = function _initialiseProps() {
15693
15692
  var metaDescription = description ? description : summary ? summary : _this3.getFirstLine(article);
15694
15693
  _this3.setState({ config: config, title: title, summary: metaDescription }, function () {
15695
15694
  if (!main.main_36) {
15696
- index.lib_3.refresh();
15695
+ debounce.lib_3.refresh();
15697
15696
  }
15698
15697
  });
15699
15698
  };
@@ -3,7 +3,7 @@
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
4
  var _toObject = require('./_to-object-329a650b.js');
5
5
  var web_dom_iterable = require('./web.dom.iterable-0998bdc3.js');
6
- var debounce = require('./debounce-783eb233.js');
6
+ var debounce = require('./debounce-fbfce522.js');
7
7
  var _extends$2 = require('./extends-e94dbea5.js');
8
8
 
9
9
  // most Object methods by ES6 should accept primitives
@@ -3,7 +3,7 @@
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
4
  var _toObject = require('./_to-object-329a650b.js');
5
5
  var web_dom_iterable = require('./web.dom.iterable-0998bdc3.js');
6
- var debounce = require('./debounce-783eb233.js');
6
+ var debounce = require('./debounce-fbfce522.js');
7
7
  var main = require('./main-0ea1b808.js');
8
8
  var core_getIteratorMethod = require('./core.get-iterator-method-e049ca4a.js');
9
9
 
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState } from 'react';
2
2
  import Card from 'react-bootstrap/Card';
3
3
  import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
4
- import { D as DFPAdSlot } from './AdSlot-69bf3195.js';
4
+ import { D as DFPAdSlot } from './AdSlot-1f20130d.js';
5
5
 
6
6
  var ADInfeed = function ADInfeed(_ref) {
7
7
  var index = _ref.index,
@@ -1,12 +1,11 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
2
  import { b as _core } from './_to-object-b9b796ec.js';
3
- import { d as debounce_1 } from './debounce-806f886b.js';
3
+ import { d as debounce_1, b as lib_2 } from './debounce-d15d4a31.js';
4
4
  import { a as main_16 } from './main-155ec04f.js';
5
5
  import React__default, { useState } from 'react';
6
- import { b as lib_2 } from './index-fa84ea96.js';
7
6
  import PropTypes from 'prop-types';
8
7
  import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
9
- import { p as promise } from './promise-683a9c54.js';
8
+ import { p as promise } from './promise-eabb7f7e.js';
10
9
 
11
10
  var runtime = createCommonjsModule(function (module) {
12
11
  /**
@@ -1,14 +1,13 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import { d as debounce_1 } from './debounce-806f886b.js';
4
+ import { d as debounce_1, l as lib_3 } from './debounce-d15d4a31.js';
5
5
  import { m as main_36 } from './main-155ec04f.js';
6
6
  import { _ as _toConsumableArray } from './toConsumableArray-eb308ede.js';
7
7
  import './core.get-iterator-method-31c1fb1a.js';
8
8
  import { _ as _extends } from './extends-dbbe308d.js';
9
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-a75c8a1c.js';
9
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-1d7657b5.js';
10
10
  import React__default from 'react';
11
- import { l as lib_3 } from './index-fa84ea96.js';
12
11
  import 'prop-types';
13
12
  import Container from 'react-bootstrap/Container';
14
13
  import Row from 'react-bootstrap/Row';
@@ -22,9 +21,9 @@ import { i as imageUrlBuilder } from './index-3849e3fe.js';
22
21
  import { L as LazyLoad } from './index-5f9f807a.js';
23
22
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
24
23
  import './slicedToArray-d0a9593a.js';
25
- import './AdSlot-69bf3195.js';
26
- import './promise-683a9c54.js';
27
- import { A as ADInfeed } from './ADInfeed-a77b2850.js';
24
+ import './AdSlot-1f20130d.js';
25
+ import './promise-eabb7f7e.js';
26
+ import { A as ADInfeed } from './ADInfeed-cc019fcb.js';
28
27
 
29
28
  var DeckContent = function (_React$Component) {
30
29
  _inherits(DeckContent, _React$Component);
@@ -1,14 +1,13 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import { d as debounce_1 } from './debounce-806f886b.js';
4
+ import { d as debounce_1, l as lib_3 } from './debounce-d15d4a31.js';
5
5
  import { m as main_36 } from './main-155ec04f.js';
6
6
  import { _ as _toConsumableArray } from './toConsumableArray-eb308ede.js';
7
7
  import './core.get-iterator-method-31c1fb1a.js';
8
8
  import { _ as _extends } from './extends-dbbe308d.js';
9
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-a75c8a1c.js';
9
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-1d7657b5.js';
10
10
  import React__default from 'react';
11
- import { l as lib_3 } from './index-fa84ea96.js';
12
11
  import 'prop-types';
13
12
  import Container from 'react-bootstrap/Container';
14
13
  import Row from 'react-bootstrap/Row';
@@ -21,7 +20,7 @@ import 'react-dom';
21
20
  import { i as imageUrlBuilder } from './index-3849e3fe.js';
22
21
  import { L as LazyLoad } from './index-5f9f807a.js';
23
22
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
24
- import { g as get_1 } from './get-b2201dc8.js';
23
+ import { g as get_1 } from './get-a0244443.js';
25
24
 
26
25
  var DeckQueue = function (_React$Component) {
27
26
  _inherits(DeckQueue, _React$Component);
@@ -1,10 +1,9 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import { d as debounce_1 } from './debounce-806f886b.js';
4
+ import { d as debounce_1, a as lib_1, b as lib_2 } from './debounce-d15d4a31.js';
5
5
  import './core.get-iterator-method-31c1fb1a.js';
6
6
  import React__default, { useState } from 'react';
7
- import { a as lib_1, b as lib_2 } from './index-fa84ea96.js';
8
7
  import PropTypes from 'prop-types';
9
8
  import { V as VisibilitySensor } from './visibility-sensor-336093e1.js';
10
9
  import 'react-dom';
@@ -1,10 +1,9 @@
1
- import { d as debounce_1 } from './debounce-806f886b.js';
1
+ import { d as debounce_1, l as lib_3 } from './debounce-d15d4a31.js';
2
2
  import { m as main_36 } from './main-155ec04f.js';
3
3
  import { _ as _toConsumableArray } from './toConsumableArray-eb308ede.js';
4
4
  import { _ as _extends } from './extends-dbbe308d.js';
5
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-a75c8a1c.js';
5
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-1d7657b5.js';
6
6
  import React__default, { Suspense } from 'react';
7
- import { l as lib_3 } from './index-fa84ea96.js';
8
7
  import Container from 'react-bootstrap/Container';
9
8
  import Row from 'react-bootstrap/Row';
10
9
  import Col from 'react-bootstrap/Col';
@@ -15,11 +14,11 @@ import { withRouter } from 'next/router';
15
14
  import { i as imageUrlBuilder } from './index-3849e3fe.js';
16
15
  import { L as LazyLoad } from './index-5f9f807a.js';
17
16
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
18
- import { A as ADInfeed } from './ADInfeed-a77b2850.js';
19
- import { g as get_1 } from './get-b2201dc8.js';
17
+ import { A as ADInfeed } from './ADInfeed-cc019fcb.js';
18
+ import { g as get_1 } from './get-a0244443.js';
20
19
 
21
20
  var Dfp = React__default.lazy(function () {
22
- return import('./Dfp-71879c9d.js');
21
+ return import('./Dfp-85f00c9b.js');
23
22
  });
24
23
 
25
24
  var AD = function AD(props) {
@@ -1,14 +1,13 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import './debounce-806f886b.js';
4
+ import './debounce-d15d4a31.js';
5
5
  import './main-155ec04f.js';
6
6
  import './toConsumableArray-eb308ede.js';
7
7
  import './core.get-iterator-method-31c1fb1a.js';
8
8
  import './extends-dbbe308d.js';
9
- import './inherits-a75c8a1c.js';
9
+ import './inherits-1d7657b5.js';
10
10
  import 'react';
11
- import './index-fa84ea96.js';
12
11
  import 'prop-types';
13
12
  import 'react-bootstrap/Container';
14
13
  import 'react-bootstrap/Row';
@@ -22,8 +21,8 @@ import './index-3849e3fe.js';
22
21
  import './index-5f9f807a.js';
23
22
  import './entities-7cc3bf45.js';
24
23
  import './slicedToArray-d0a9593a.js';
25
- import './AdSlot-69bf3195.js';
26
- import './promise-683a9c54.js';
27
- import './ADInfeed-a77b2850.js';
28
- import './get-b2201dc8.js';
29
- export { G as default } from './GridContent-b8b5f361.js';
24
+ import './AdSlot-1f20130d.js';
25
+ import './promise-eabb7f7e.js';
26
+ import './ADInfeed-cc019fcb.js';
27
+ import './get-a0244443.js';
28
+ export { G as default } from './GridContent-1292ff20.js';
@@ -1,14 +1,13 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import { d as debounce_1 } from './debounce-806f886b.js';
4
+ import { d as debounce_1, l as lib_3 } from './debounce-d15d4a31.js';
5
5
  import { m as main_36 } from './main-155ec04f.js';
6
6
  import { _ as _toConsumableArray } from './toConsumableArray-eb308ede.js';
7
7
  import './core.get-iterator-method-31c1fb1a.js';
8
8
  import { _ as _extends } from './extends-dbbe308d.js';
9
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-a75c8a1c.js';
9
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-1d7657b5.js';
10
10
  import React__default from 'react';
11
- import { l as lib_3 } from './index-fa84ea96.js';
12
11
  import 'prop-types';
13
12
  import Container from 'react-bootstrap/Container';
14
13
  import 'react-bootstrap/Row';
@@ -19,7 +18,7 @@ import 'next/link';
19
18
  import { withRouter } from 'next/router';
20
19
  import 'react-dom';
21
20
  import './index-3849e3fe.js';
22
- import { _ as _Promise } from './promise-683a9c54.js';
21
+ import { _ as _Promise } from './promise-eabb7f7e.js';
23
22
 
24
23
  var MasterDeck = function (_React$Component) {
25
24
  _inherits(MasterDeck, _React$Component);
@@ -8,8 +8,8 @@ import Row from 'react-bootstrap/Row';
8
8
  import Col from 'react-bootstrap/Col';
9
9
  import Link from 'next/link';
10
10
  import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
11
- import { D as DFPAdSlot } from './AdSlot-69bf3195.js';
12
- import { g as get_1 } from './get-b2201dc8.js';
11
+ import { D as DFPAdSlot } from './AdSlot-1f20130d.js';
12
+ import { g as get_1 } from './get-a0244443.js';
13
13
  import { Dropdown } from 'react-bootstrap';
14
14
  import { G as GenIcon, b as IoMdLogIn, c as IoIosHome } from './index.esm-536609db.js';
15
15
  import Button from 'react-bootstrap/Button';
@@ -1299,7 +1299,7 @@ var NavMagazine = function NavMagazine(props) {
1299
1299
  navRef.current.style.position = 'fixed';
1300
1300
  navRef.current.style.top = 0;
1301
1301
  navRef.current.style.width = '100%';
1302
- navRef.current.style.zIndex = '9999';
1302
+ navRef.current.style.zIndex = '99999';
1303
1303
  }
1304
1304
  } else {
1305
1305
  if (navRef.current && navRef.current.style) {
@@ -2071,7 +2071,7 @@ var HamMagazine = function HamMagazine(props) {
2071
2071
  navRef.current.style.position = 'fixed';
2072
2072
  navRef.current.style.top = 0;
2073
2073
  navRef.current.style.width = '100%';
2074
- navRef.current.style.zIndex = '9999';
2074
+ navRef.current.style.zIndex = '99999';
2075
2075
  }
2076
2076
  } else {
2077
2077
  if (navRef.current && navRef.current.style) {
@@ -2114,7 +2114,7 @@ var HamMagazine = function HamMagazine(props) {
2114
2114
 
2115
2115
  return React__default.createElement(
2116
2116
  'header',
2117
- { className: !main_36 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '9999' } },
2117
+ { className: !main_36 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '99999' } },
2118
2118
  React__default.createElement(
2119
2119
  Navbar,
2120
2120
  { expand: 'md' },
@@ -1,13 +1,14 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
+ import { l as lib_3 } from './debounce-d15d4a31.js';
4
5
  import { m as main_36 } from './main-155ec04f.js';
5
6
  import { _ as _toConsumableArray } from './toConsumableArray-eb308ede.js';
6
7
  import './core.get-iterator-method-31c1fb1a.js';
7
8
  import { _ as _extends } from './extends-dbbe308d.js';
8
9
  import React__default, { useState, useEffect, useRef } from 'react';
9
- import { l as lib_3 } from './index-fa84ea96.js';
10
10
  import 'prop-types';
11
+ import 'react-bootstrap/Card';
11
12
  import { I as InfiniteScroll, V as VisibilitySensor, m as moment } from './visibility-sensor-336093e1.js';
12
13
  import 'next/link';
13
14
  import { useRouter } from 'next/router';
@@ -16,6 +17,9 @@ import { i as imageUrlBuilder } from './index-3849e3fe.js';
16
17
  import { L as LazyLoad } from './index-5f9f807a.js';
17
18
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
18
19
  import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
20
+ import './AdSlot-1f20130d.js';
21
+ import './promise-eabb7f7e.js';
22
+ import { A as ADInfeed } from './ADInfeed-cc019fcb.js';
19
23
  import { Container, Media } from 'react-bootstrap';
20
24
 
21
25
  var urlFor = function urlFor(source, builder) {
@@ -166,8 +170,34 @@ var checkExternalUrl = function checkExternalUrl(url) {
166
170
  return new RegExp(['http', 'https'].join('|')).test(url);
167
171
  };
168
172
 
169
- var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems) {
173
+ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI) {
170
174
  var numberOfItemsBeforeAd = 6;
175
+
176
+ var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
177
+ return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
178
+ };
179
+ if (showBI && brandInsightAd) {
180
+ var pos = 0;
181
+ for (var i = 1; pos < data.length; i++) {
182
+ var inFeedAd = {
183
+ adUnit: brandInsightAd.adUnit,
184
+ className: brandInsightAd.className,
185
+ networkID: brandInsightAd.networkID,
186
+ sizes: brandInsightAd.sizes,
187
+ slotId: brandInsightAd.slotId + '_' + i,
188
+ targeting: {
189
+ pos: 'article' + i,
190
+ content_placement: brandInsightAd.targeting.content_placement,
191
+ document_url: brandInsightAd.targeting.document_url
192
+ },
193
+ _type: 'brandInsightAd'
194
+ };
195
+
196
+ data = insertBrandInsightAd(data, pos, inFeedAd);
197
+ pos += brandInsightAd.interval + 1;
198
+ }
199
+ }
200
+
171
201
  return React__default.createElement(
172
202
  'div',
173
203
  null,
@@ -326,6 +356,8 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
326
356
  main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
327
357
  );
328
358
  }
359
+ } else if (article._type === 'brandInsightAd' && article.adUnit) {
360
+ return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
329
361
  }
330
362
 
331
363
  return React__default.createElement(
@@ -471,7 +503,10 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
471
503
  showCategory = props.showCategory,
472
504
  imageHeight = props.imageHeight,
473
505
  imageWidth = props.imageWidth,
474
- rightItems = props.rightItems;
506
+ rightItems = props.rightItems,
507
+ brandInsightAd = props.brandInsightAd,
508
+ _props$showBI = props.showBI,
509
+ showBI = _props$showBI === undefined ? false : _props$showBI;
475
510
  var initialCurrentPage = props.currentPage,
476
511
  showPublished = props.showPublished;
477
512
 
@@ -529,7 +564,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
529
564
  React__default.createElement(
530
565
  Container,
531
566
  null,
532
- cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems)
567
+ cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI)
533
568
  )
534
569
  ),
535
570
  React__default.createElement(
@@ -543,7 +578,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
543
578
  React__default.createElement(
544
579
  Container,
545
580
  null,
546
- cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems)
581
+ cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI)
547
582
  ),
548
583
  React__default.createElement(
549
584
  'div',
@@ -1,25 +1,24 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import './debounce-806f886b.js';
4
+ import './debounce-d15d4a31.js';
5
5
  import './main-155ec04f.js';
6
6
  import './core.get-iterator-method-31c1fb1a.js';
7
7
  import './extends-dbbe308d.js';
8
8
  import 'react';
9
- import './index-fa84ea96.js';
10
9
  import 'prop-types';
11
10
  import 'react-bootstrap/Container';
12
11
  import 'react-bootstrap/Row';
13
12
  import 'react-bootstrap/Col';
14
13
  import 'next/link';
15
14
  import './slicedToArray-d0a9593a.js';
16
- import './AdSlot-69bf3195.js';
17
- import './promise-683a9c54.js';
18
- import './get-b2201dc8.js';
15
+ import './AdSlot-1f20130d.js';
16
+ import './promise-eabb7f7e.js';
17
+ import './get-a0244443.js';
19
18
  import 'react-bootstrap';
20
19
  import './index.esm-536609db.js';
21
20
  import 'react-bootstrap/Button';
22
- export { T as default } from './Normal-21cfb458.js';
21
+ export { T as default } from './Normal-c46eeac5.js';
23
22
  import 'react-bootstrap/ListGroup';
24
23
  import 'next/head';
25
24
  import 'react-bootstrap/Nav';