@mjhls/mjh-framework 1.0.725 → 1.0.726

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 (82) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +7 -52
  4. package/dist/cjs/AD300x250x600.js +7 -52
  5. package/dist/cjs/AD728x90.js +6 -40
  6. package/dist/cjs/ADFloatingFooter.js +8 -37
  7. package/dist/cjs/ADGutter.js +7 -39
  8. package/dist/cjs/{ADInfeed-922ce08c.js → ADInfeed-5fe7fd9d.js} +5 -37
  9. package/dist/cjs/ADSkyscraper.js +7 -40
  10. package/dist/cjs/ADSponsoredResources.js +7 -38
  11. package/dist/cjs/ADWebcast.js +7 -39
  12. package/dist/cjs/ADWelcome.js +9 -38
  13. package/dist/cjs/{ADlgInfeed-4fee6863.js → ADlgInfeed-a62d2f9b.js} +5 -37
  14. package/dist/cjs/AdSlot.js +1 -1
  15. package/dist/cjs/AdSlotsProvider.js +1 -1
  16. package/dist/cjs/ArticleProgramLandingPage.js +2 -2
  17. package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
  18. package/dist/cjs/ArticleSeriesListing.js +1 -1
  19. package/dist/cjs/CMEDeck.js +1 -1
  20. package/dist/cjs/Column3.js +4 -4
  21. package/dist/cjs/DeckContent.js +3 -3
  22. package/dist/cjs/DeckQueue.js +1 -1
  23. package/dist/cjs/{Dfp-a863cf48.js → Dfp-80146e98.js} +1 -1
  24. package/dist/cjs/ExternalResources.js +2 -2
  25. package/dist/cjs/GridContent.js +4 -4
  26. package/dist/cjs/HorizontalArticleListing.js +2 -2
  27. package/dist/cjs/IssueLanding.js +4 -4
  28. package/dist/cjs/LeftNav.js +4 -4
  29. package/dist/cjs/MasterDeck.js +4 -4
  30. package/dist/cjs/PartnerDetailListing.js +5 -5
  31. package/dist/cjs/QueueDeckExpanded.js +4 -4
  32. package/dist/cjs/TaxonomyDescription.js +2 -2
  33. package/dist/cjs/TemplateNormal.js +2 -2
  34. package/dist/cjs/VideoProgramLandingPage.js +2 -2
  35. package/dist/cjs/VideoSeriesLandingPage.js +4 -4
  36. package/dist/cjs/VideoSeriesListing.js +1 -1
  37. package/dist/cjs/View.js +13 -50
  38. package/dist/cjs/getSerializers.js +2 -2
  39. package/dist/cjs/{index-5ad2b070.js → index-0e4427c8.js} +37 -18
  40. package/dist/cjs/{index-58d40052.js → index-5260126b.js} +1 -1
  41. package/dist/cjs/index.js +5 -5
  42. package/dist/esm/AD.js +1 -1
  43. package/dist/esm/AD300x250.js +7 -52
  44. package/dist/esm/AD300x250x600.js +7 -52
  45. package/dist/esm/AD728x90.js +6 -40
  46. package/dist/esm/ADFloatingFooter.js +8 -37
  47. package/dist/esm/ADGutter.js +7 -39
  48. package/dist/esm/{ADInfeed-ed02c6ec.js → ADInfeed-3a9eef39.js} +5 -37
  49. package/dist/esm/ADSkyscraper.js +7 -40
  50. package/dist/esm/ADSponsoredResources.js +7 -38
  51. package/dist/esm/ADWebcast.js +7 -39
  52. package/dist/esm/ADWelcome.js +9 -38
  53. package/dist/esm/{ADlgInfeed-550d351e.js → ADlgInfeed-8d63ff91.js} +5 -37
  54. package/dist/esm/AdSlot.js +1 -1
  55. package/dist/esm/AdSlotsProvider.js +1 -1
  56. package/dist/esm/ArticleProgramLandingPage.js +2 -2
  57. package/dist/esm/ArticleSeriesLandingPage.js +4 -4
  58. package/dist/esm/ArticleSeriesListing.js +1 -1
  59. package/dist/esm/CMEDeck.js +1 -1
  60. package/dist/esm/Column3.js +4 -4
  61. package/dist/esm/DeckContent.js +3 -3
  62. package/dist/esm/DeckQueue.js +1 -1
  63. package/dist/esm/{Dfp-5d779279.js → Dfp-8bfbd310.js} +1 -1
  64. package/dist/esm/ExternalResources.js +2 -2
  65. package/dist/esm/GridContent.js +4 -4
  66. package/dist/esm/HorizontalArticleListing.js +2 -2
  67. package/dist/esm/IssueLanding.js +4 -4
  68. package/dist/esm/LeftNav.js +4 -4
  69. package/dist/esm/MasterDeck.js +4 -4
  70. package/dist/esm/PartnerDetailListing.js +5 -5
  71. package/dist/esm/QueueDeckExpanded.js +4 -4
  72. package/dist/esm/TaxonomyDescription.js +2 -2
  73. package/dist/esm/TemplateNormal.js +2 -2
  74. package/dist/esm/VideoProgramLandingPage.js +2 -2
  75. package/dist/esm/VideoSeriesLandingPage.js +4 -4
  76. package/dist/esm/VideoSeriesListing.js +1 -1
  77. package/dist/esm/View.js +13 -50
  78. package/dist/esm/getSerializers.js +2 -2
  79. package/dist/esm/{index-669ff425.js → index-888f9253.js} +37 -18
  80. package/dist/esm/{index-6eef5e56.js → index-d6ad9248.js} +1 -1
  81. package/dist/esm/index.js +5 -5
  82. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { _ as _JSON$stringify } from './stringify-d4839bab.js';
1
+ import './stringify-d4839bab.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { m as main_40 } from './main-1450d277.js';
@@ -11,7 +11,7 @@ import './core.get-iterator-method-d1d5ed02.js';
11
11
  import './extends-31d65aba.js';
12
12
  import './_object-pie-33c40e79.js';
13
13
  import 'prop-types';
14
- import './index-669ff425.js';
14
+ import './index-888f9253.js';
15
15
  import './debounce-1a993acf.js';
16
16
  import './isSymbol-807e927e.js';
17
17
  import './Beam.js';
@@ -39,9 +39,9 @@ var AD300x250x600 = function AD300x250x600(_ref) {
39
39
  }
40
40
 
41
41
  var _useState = useState(true),
42
- _useState2 = _slicedToArray(_useState, 2),
43
- previewAd = _useState2[0],
44
- setPreviewAd = _useState2[1];
42
+ _useState2 = _slicedToArray(_useState, 2);
43
+ _useState2[0];
44
+ var setPreviewAd = _useState2[1];
45
45
 
46
46
  useEffect(function () {
47
47
  var path = window && window.location && window.location.search;
@@ -79,51 +79,6 @@ var AD300x250x600 = function AD300x250x600(_ref) {
79
79
  sizes: [[300, 100], [300, 250]]
80
80
  }];
81
81
 
82
- // Function to collapse ad
83
- var collapseAd = function collapseAd(slotID) {
84
- var parent = document.getElementById(slotID);
85
- // finding the parent wrapper div
86
- var parentWrapper = parent && parent.closest('.AD300x250');
87
- var mediaWrapper = parent && parent.closest('.media');
88
- // collapsing the parent wrapper div
89
- if (parentWrapper) {
90
- parentWrapper.style.display = 'none';
91
- } else if (mediaWrapper) {
92
- mediaWrapper.style.display = 'none';
93
- }
94
-
95
- parent.style.height = '0%';
96
- parent.style.width = '0%';
97
- parent.style.display = 'none';
98
- };
99
-
100
- // CallBack function to check if ad has got creative or not.
101
- var checkIsAdFound = function checkIsAdFound(isFound, adData) {
102
- if (isFound) {
103
- // Dynamically fetching parent from slotID to display or collapse.
104
- var parent = document.getElementById(adData.slotId);
105
-
106
- var adSizes = [[1, 1]];
107
- // Collapsing ad if the as size is [1,1]
108
- if (adData && adData.event && adData.event.size) {
109
- var checkAdSize = function checkAdSize(size) {
110
- return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
111
- };
112
-
113
- if (adSizes.some(checkAdSize)) {
114
- // passing slotID to collape
115
- collapseAd(adData.slotId);
116
- parent.style.display = 'none';
117
- } else {
118
- parent.style.display = 'block';
119
- }
120
- }
121
- } else {
122
- // collapsing ad if no creative is found
123
- collapseAd(adData.slotId);
124
- }
125
- };
126
-
127
82
  return React.createElement(
128
83
  'div',
129
84
  null,
@@ -138,8 +93,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
138
93
  // setting responsive sizemapping to make the ads responsive.
139
94
  , sizeMapping: sizeMapping
140
95
  /* Passing function to check for ad creative only if it is not in preview. */
141
- , checkIsAdFound: previewAd ? null : checkIsAdFound,
142
- style: { display: 'none' }
96
+ // checkIsAdFound={previewAd ? null : checkIsAdFound}
97
+ // style={{ display: 'none' }}
143
98
  }),
144
99
  React.createElement(
145
100
  'style',
@@ -1,4 +1,4 @@
1
- import { _ as _JSON$stringify } from './stringify-d4839bab.js';
1
+ import './stringify-d4839bab.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { m as main_40 } from './main-1450d277.js';
@@ -11,7 +11,7 @@ import './core.get-iterator-method-d1d5ed02.js';
11
11
  import './extends-31d65aba.js';
12
12
  import './_object-pie-33c40e79.js';
13
13
  import 'prop-types';
14
- import './index-669ff425.js';
14
+ import './index-888f9253.js';
15
15
  import './debounce-1a993acf.js';
16
16
  import './isSymbol-807e927e.js';
17
17
  import './Beam.js';
@@ -39,9 +39,9 @@ var AD728x90 = function AD728x90(_ref) {
39
39
  }
40
40
 
41
41
  var _useState = useState(true),
42
- _useState2 = _slicedToArray(_useState, 2),
43
- previewAd = _useState2[0],
44
- setPreviewAd = _useState2[1];
42
+ _useState2 = _slicedToArray(_useState, 2);
43
+ _useState2[0];
44
+ var setPreviewAd = _useState2[1];
45
45
 
46
46
  useEffect(function () {
47
47
  var path = window && window.location && window.location.search;
@@ -65,40 +65,6 @@ var AD728x90 = function AD728x90(_ref) {
65
65
  var browserSizes = [[728, 90], [970, 90], [320, 50], [300, 50]];
66
66
  var mobileSizes = [[320, 50], [300, 50]];
67
67
 
68
- // Function to collapse ad
69
- var collapseAd = function collapseAd(slotID) {
70
- var parent = document.getElementById(slotID);
71
- parent.style.height = '0%';
72
- parent.style.width = '0%';
73
- parent.style.display = 'none';
74
- };
75
-
76
- // CallBack function to check if ad has got creative or not.
77
- var checkIsAdFound = function checkIsAdFound(isFound, adData) {
78
- if (isFound) {
79
- // Dynamically fetching parent from slotID to display or collapse.
80
- var parent = document.getElementById(adData.slotId);
81
- var adSizes = [[1, 1]];
82
- // Collapsing ad if the as size is [1,1]
83
- if (adData && adData.event && adData.event.size) {
84
- var checkAdSize = function checkAdSize(size) {
85
- return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
86
- };
87
-
88
- if (adSizes.some(checkAdSize)) {
89
- // passing slotID to collape
90
- collapseAd(adData.slotId);
91
- parent.style.display = 'none';
92
- } else {
93
- parent.style.display = 'block';
94
- }
95
- }
96
- } else {
97
- // collapsing ad if no creative is found
98
- collapseAd(adData.slotId);
99
- }
100
- };
101
-
102
68
  return React.createElement(
103
69
  'div',
104
70
  { className: 'leaderboard-ad-wrapper' },
@@ -117,7 +83,7 @@ var AD728x90 = function AD728x90(_ref) {
117
83
  sizes: [[320, 50], [300, 50]]
118
84
  }]
119
85
  /* Passing function to check for ad creative only if it is not in preview. */
120
- , checkIsAdFound: previewAd ? null : checkIsAdFound
86
+ // checkIsAdFound={previewAd ? null : checkIsAdFound}
121
87
  }),
122
88
  React.createElement(
123
89
  'style',
@@ -1,19 +1,19 @@
1
- import { _ as _JSON$stringify } from './stringify-d4839bab.js';
2
1
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
2
  import React, { useState, useEffect } from 'react';
4
3
  import DFPAdSlot from './AdSlot.js';
5
4
  import './_commonjsHelpers-0c4b6f40.js';
6
- import './_to-object-97770c52.js';
7
5
  import './web.dom.iterable-035980f3.js';
8
6
  import './es6.string.iterator-aa6068a3.js';
7
+ import './_to-object-97770c52.js';
9
8
  import './core.get-iterator-method-d1d5ed02.js';
10
9
  import './extends-31d65aba.js';
11
10
  import './_object-pie-33c40e79.js';
12
11
  import 'prop-types';
13
- import './index-669ff425.js';
12
+ import './index-888f9253.js';
14
13
  import './debounce-1a993acf.js';
15
14
  import './isSymbol-807e927e.js';
16
15
  import './Beam.js';
16
+ import './stringify-d4839bab.js';
17
17
  import './asyncToGenerator-2bd4099a.js';
18
18
  import './_library-528f1934.js';
19
19
  import './_set-species-494ed292.js';
@@ -53,9 +53,9 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
53
53
  setWidthFlag = _useState2[1];
54
54
 
55
55
  var _useState3 = useState(true),
56
- _useState4 = _slicedToArray(_useState3, 2),
57
- previewAd = _useState4[0],
58
- setPreviewAd = _useState4[1];
56
+ _useState4 = _slicedToArray(_useState3, 2);
57
+ _useState4[0];
58
+ var setPreviewAd = _useState4[1];
59
59
 
60
60
  useEffect(function () {
61
61
  var path = window && window.location && window.location.search;
@@ -88,41 +88,12 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
88
88
  parent.classList.add('hide-floating');
89
89
  };
90
90
 
91
- var checkIsAdFound = function checkIsAdFound(isFound, adData) {
92
- if (isFound) {
93
- var parent = document.getElementById('floating-ad-wrapper');
94
-
95
- var adSizes = [[1, 1]];
96
- if (adData && adData.event && adData.event.size) {
97
- var checkAdSize = function checkAdSize(size) {
98
- return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
99
- };
100
-
101
- if (adSizes.some(checkAdSize)) {
102
- collapseAd();
103
- parent.classList.add('hide-floating');
104
- parent.classList.remove('display-floating');
105
- } else {
106
- parent.classList.remove('hide-floating');
107
- parent.classList.add('display-floating');
108
- }
109
- // Need to add this CSS in site level magazine.css to make the close button visible for the expanded ad.
110
- /* .w7e-platform-58 {
111
- z-index: 9999999 !important;
112
- }
113
- */
114
- }
115
- } else {
116
- collapseAd();
117
- }
118
- };
119
-
120
91
  return React.createElement(
121
92
  React.Fragment,
122
93
  null,
123
94
  widthFlag && adTargeting.document_url && React.createElement(
124
95
  'div',
125
- { id: 'floating-ad-wrapper', className: 'floating-ad-wrapper hide-floating ' + title },
96
+ { id: 'floating-ad-wrapper', className: 'floating-ad-wrapper display-floating ' + title },
126
97
  React.createElement(DFPAdSlot, {
127
98
  className: className,
128
99
  slotId: slotId,
@@ -132,7 +103,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
132
103
  targeting: adTargeting,
133
104
  refreshFlag: refreshFlag
134
105
  /* Passing function to check for ad creative only if it is not in preview. */
135
- , checkIsAdFound: previewAd ? null : checkIsAdFound
106
+ // checkIsAdFound={previewAd ? null : checkIsAdFound}
136
107
  }),
137
108
  React.createElement(
138
109
  'div',
@@ -1,19 +1,19 @@
1
- import { _ as _JSON$stringify } from './stringify-d4839bab.js';
2
1
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
2
  import React, { useState, useEffect } from 'react';
4
3
  import DFPAdSlot from './AdSlot.js';
5
4
  import './_commonjsHelpers-0c4b6f40.js';
6
- import './_to-object-97770c52.js';
7
5
  import './web.dom.iterable-035980f3.js';
8
6
  import './es6.string.iterator-aa6068a3.js';
7
+ import './_to-object-97770c52.js';
9
8
  import './core.get-iterator-method-d1d5ed02.js';
10
9
  import './extends-31d65aba.js';
11
10
  import './_object-pie-33c40e79.js';
12
11
  import 'prop-types';
13
- import './index-669ff425.js';
12
+ import './index-888f9253.js';
14
13
  import './debounce-1a993acf.js';
15
14
  import './isSymbol-807e927e.js';
16
15
  import './Beam.js';
16
+ import './stringify-d4839bab.js';
17
17
  import './asyncToGenerator-2bd4099a.js';
18
18
  import './_library-528f1934.js';
19
19
  import './_set-species-494ed292.js';
@@ -56,9 +56,9 @@ var ADGutter = function ADGutter(_ref) {
56
56
  setWidthFlag = _useState2[1];
57
57
 
58
58
  var _useState3 = useState(true),
59
- _useState4 = _slicedToArray(_useState3, 2),
60
- previewAd = _useState4[0],
61
- setPreviewAd = _useState4[1];
59
+ _useState4 = _slicedToArray(_useState3, 2);
60
+ _useState4[0];
61
+ var setPreviewAd = _useState4[1];
62
62
 
63
63
  useEffect(function () {
64
64
  var path = window && window.location && window.location.search;
@@ -74,38 +74,6 @@ var ADGutter = function ADGutter(_ref) {
74
74
  }
75
75
  }, [minScreenWidth]);
76
76
 
77
- // Collapsing webcast AD if no creative is found.
78
- var collapseAd = function collapseAd() {
79
- var parent = document.getElementById('webcast-ad-wrapper');
80
- parent.style.height = '0%';
81
- parent.style.width = '0%';
82
- parent.style.display = 'none';
83
- };
84
-
85
- var checkIsAdFound = function checkIsAdFound(isFound, adData) {
86
- // Check for creative ID.
87
- if (isFound) {
88
- var parent = document.getElementById('gutter-ad-wrapper');
89
- var adSizes = [[1, 1]];
90
- // Collapsing ad if the as size is [1,1]
91
- if (adData && adData.event && adData.event.size) {
92
- var checkAdSize = function checkAdSize(size) {
93
- return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
94
- };
95
-
96
- if (adSizes.some(checkAdSize)) {
97
- // collapsing webcast AD.
98
- collapseAd();
99
- parent.style.display = 'none';
100
- } else {
101
- parent.style.display = 'block';
102
- }
103
- }
104
- } else {
105
- collapseAd();
106
- }
107
- };
108
-
109
77
  if (widthFlag) {
110
78
  return React.createElement(
111
79
  React.Fragment,
@@ -126,7 +94,7 @@ var ADGutter = function ADGutter(_ref) {
126
94
  /* Passing refresh flag */
127
95
  , refreshFlag: refreshFlag
128
96
  /* Passing function to check for ad creative only if it is not in preview. */
129
- , checkIsAdFound: previewAd ? null : checkIsAdFound
97
+ // checkIsAdFound={previewAd ? null : checkIsAdFound}
130
98
  })
131
99
  )
132
100
  ),
@@ -1,4 +1,3 @@
1
- import { _ as _JSON$stringify } from './stringify-d4839bab.js';
2
1
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
2
  import React, { useState, useEffect } from 'react';
4
3
  import Card from 'react-bootstrap/Card';
@@ -18,9 +17,9 @@ var ADInfeed = function ADInfeed(_ref) {
18
17
  sizes = infeedAd.sizes;
19
18
 
20
19
  var _useState = useState(true),
21
- _useState2 = _slicedToArray(_useState, 2),
22
- previewAd = _useState2[0],
23
- setPreviewAd = _useState2[1];
20
+ _useState2 = _slicedToArray(_useState, 2);
21
+ _useState2[0];
22
+ var setPreviewAd = _useState2[1];
24
23
 
25
24
  useEffect(function () {
26
25
  var path = window && window.location && window.location.search;
@@ -30,40 +29,9 @@ var ADInfeed = function ADInfeed(_ref) {
30
29
  }));
31
30
  }, []);
32
31
 
33
- var collapseAd = function collapseAd() {
34
- var parent = document.getElementById('brand-insight-wrapper-' + (index + 1));
35
- parent.style.height = '0%';
36
- parent.style.width = '0%';
37
- parent.style.display = 'none';
38
- };
39
-
40
- var checkIsAdFound = function checkIsAdFound(isFound, adData) {
41
- if (isFound) {
42
- var parent = document.getElementById('brand-insight-wrapper-' + (index + 1));
43
-
44
- var adSizes = [[1, 1]];
45
- // Collapsing ad if the as size is [1,1]
46
- if (adData && adData.event && adData.event.size) {
47
- var checkAdSize = function checkAdSize(size) {
48
- return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
49
- };
50
-
51
- if (adSizes.some(checkAdSize)) {
52
- // collapsing infeed AD.
53
- collapseAd();
54
- parent.style.display = 'none';
55
- } else {
56
- parent.style.display = 'flex';
57
- }
58
- }
59
- } else {
60
- collapseAd();
61
- }
62
- };
63
-
64
32
  return React.createElement(
65
33
  'div',
66
- { id: 'brand-insight-wrapper-' + (index + 1), className: 'brand-insight-wrapper', style: { display: 'none', flex: '1 0 auto' } },
34
+ { id: 'brand-insight-wrapper-' + (index + 1), className: 'brand-insight-wrapper', style: { display: 'flex', flex: '1 0 auto' } },
67
35
  React.createElement(
68
36
  Card,
69
37
  { className: 'ad-wrapper', style: { display: 'block !important', flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
@@ -75,7 +43,7 @@ var ADInfeed = function ADInfeed(_ref) {
75
43
  targeting: targeting,
76
44
  sizes: sizes
77
45
  /* Passing function to check for ad creative only if it is not in preview. */
78
- , checkIsAdFound: previewAd ? null : checkIsAdFound
46
+ // checkIsAdFound={previewAd ? null : checkIsAdFound}
79
47
  /* Passing refresh flag */
80
48
  , refreshFlag: refreshFlag
81
49
  })
@@ -1,19 +1,19 @@
1
- import { _ as _JSON$stringify } from './stringify-d4839bab.js';
2
1
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
2
  import React, { useState, useEffect } from 'react';
4
3
  import DFPAdSlot from './AdSlot.js';
5
4
  import './_commonjsHelpers-0c4b6f40.js';
6
- import './_to-object-97770c52.js';
7
5
  import './web.dom.iterable-035980f3.js';
8
6
  import './es6.string.iterator-aa6068a3.js';
7
+ import './_to-object-97770c52.js';
9
8
  import './core.get-iterator-method-d1d5ed02.js';
10
9
  import './extends-31d65aba.js';
11
10
  import './_object-pie-33c40e79.js';
12
11
  import 'prop-types';
13
- import './index-669ff425.js';
12
+ import './index-888f9253.js';
14
13
  import './debounce-1a993acf.js';
15
14
  import './isSymbol-807e927e.js';
16
15
  import './Beam.js';
16
+ import './stringify-d4839bab.js';
17
17
  import './asyncToGenerator-2bd4099a.js';
18
18
  import './_library-528f1934.js';
19
19
  import './_set-species-494ed292.js';
@@ -58,9 +58,9 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
58
58
  setWidthFlag = _useState2[1];
59
59
 
60
60
  var _useState3 = useState(true),
61
- _useState4 = _slicedToArray(_useState3, 2),
62
- previewAd = _useState4[0],
63
- setPreviewAd = _useState4[1];
61
+ _useState4 = _slicedToArray(_useState3, 2);
62
+ _useState4[0];
63
+ var setPreviewAd = _useState4[1];
64
64
 
65
65
  useEffect(function () {
66
66
  var path = window && window.location && window.location.search;
@@ -76,39 +76,6 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
76
76
  setWidthFlag(true);
77
77
  }
78
78
  }, [minScreenWidth]);
79
-
80
- // Function to collapse skyscrapper ad.
81
- var collapseAd = function collapseAd() {
82
- var parent = document.getElementById('skyscraper-ad-wrapper');
83
- parent.style.height = '0%';
84
- parent.style.width = '0%';
85
- parent.style.display = 'none';
86
- };
87
-
88
- // Function to check if the skyscrapper ad is available or not.
89
- var checkIsAdFound = function checkIsAdFound(isFound, adData) {
90
- if (isFound) {
91
- var parent = document.getElementById('skyscraper-ad-wrapper');
92
-
93
- var adSizes = [[1, 1]];
94
- // Collapsing ad if the as size is [1,1]
95
- if (adData && adData.event && adData.event.size) {
96
- var checkAdSize = function checkAdSize(size) {
97
- return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
98
- };
99
-
100
- if (adSizes.some(checkAdSize)) {
101
- // collapsing skyscrapper AD.
102
- collapseAd();
103
- parent.style.display = 'none';
104
- } else {
105
- parent.style.display = 'block';
106
- }
107
- }
108
- } else {
109
- collapseAd();
110
- }
111
- };
112
79
  if (widthFlag) {
113
80
  return React.createElement(
114
81
  React.Fragment,
@@ -129,7 +96,7 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
129
96
  /* Passing refresh flag */
130
97
  , refreshFlag: refreshFlag
131
98
  /* Passing function to check for ad creative only if it is not in preview. */
132
- , checkIsAdFound: previewAd ? null : checkIsAdFound
99
+ // checkIsAdFound={previewAd ? null : checkIsAdFound}
133
100
  })
134
101
  ),
135
102
  React.createElement(
@@ -1,19 +1,19 @@
1
- import { _ as _JSON$stringify } from './stringify-d4839bab.js';
2
1
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
2
  import React, { useState, useEffect } from 'react';
4
3
  import DFPAdSlot from './AdSlot.js';
5
4
  import './_commonjsHelpers-0c4b6f40.js';
6
- import './_to-object-97770c52.js';
7
5
  import './web.dom.iterable-035980f3.js';
8
6
  import './es6.string.iterator-aa6068a3.js';
7
+ import './_to-object-97770c52.js';
9
8
  import './core.get-iterator-method-d1d5ed02.js';
10
9
  import './extends-31d65aba.js';
11
10
  import './_object-pie-33c40e79.js';
12
11
  import 'prop-types';
13
- import './index-669ff425.js';
12
+ import './index-888f9253.js';
14
13
  import './debounce-1a993acf.js';
15
14
  import './isSymbol-807e927e.js';
16
15
  import './Beam.js';
16
+ import './stringify-d4839bab.js';
17
17
  import './asyncToGenerator-2bd4099a.js';
18
18
  import './_library-528f1934.js';
19
19
  import './_set-species-494ed292.js';
@@ -55,9 +55,9 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
55
55
  setWidthFlag = _useState2[1];
56
56
 
57
57
  var _useState3 = useState(true),
58
- _useState4 = _slicedToArray(_useState3, 2),
59
- previewAd = _useState4[0],
60
- setPreviewAd = _useState4[1];
58
+ _useState4 = _slicedToArray(_useState3, 2);
59
+ _useState4[0];
60
+ var setPreviewAd = _useState4[1];
61
61
 
62
62
  useEffect(function () {
63
63
  var path = window && window.location && window.location.search;
@@ -73,37 +73,6 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
73
73
  }
74
74
  }, [minScreenWidth]);
75
75
 
76
- var collapseAd = function collapseAd() {
77
- var parent = document.getElementById('sponsored-ad-wrapper');
78
- parent.style.height = '0%';
79
- parent.style.width = '0%';
80
- parent.style.display = 'none';
81
- };
82
-
83
- var checkIsAdFound = function checkIsAdFound(isFound, adData) {
84
- if (isFound) {
85
- var parent = document.getElementById('sponsored-ad-wrapper');
86
-
87
- var adSizes = [[1, 1]];
88
- // Collapsing ad if the as size is [1,1]
89
- if (adData && adData.event && adData.event.size) {
90
- var checkAdSize = function checkAdSize(size) {
91
- return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
92
- };
93
-
94
- if (adSizes.some(checkAdSize)) {
95
- // collapsing sponsoredResources AD.
96
- collapseAd();
97
- parent.style.display = 'none';
98
- } else {
99
- parent.style.display = 'block';
100
- }
101
- }
102
- } else {
103
- collapseAd();
104
- }
105
- };
106
-
107
76
  if (widthFlag) {
108
77
  return React.createElement(
109
78
  React.Fragment,
@@ -124,7 +93,7 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
124
93
  /* Passing refresh flag */
125
94
  , refreshFlag: refreshFlag
126
95
  /* Passing function to check for ad creative only if it is not in preview. */
127
- , checkIsAdFound: previewAd ? null : checkIsAdFound
96
+ // checkIsAdFound={previewAd ? null : checkIsAdFound}
128
97
  })
129
98
  ),
130
99
  React.createElement(
@@ -1,19 +1,19 @@
1
- import { _ as _JSON$stringify } from './stringify-d4839bab.js';
2
1
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
2
  import React, { useState, useEffect } from 'react';
4
3
  import DFPAdSlot from './AdSlot.js';
5
4
  import './_commonjsHelpers-0c4b6f40.js';
6
- import './_to-object-97770c52.js';
7
5
  import './web.dom.iterable-035980f3.js';
8
6
  import './es6.string.iterator-aa6068a3.js';
7
+ import './_to-object-97770c52.js';
9
8
  import './core.get-iterator-method-d1d5ed02.js';
10
9
  import './extends-31d65aba.js';
11
10
  import './_object-pie-33c40e79.js';
12
11
  import 'prop-types';
13
- import './index-669ff425.js';
12
+ import './index-888f9253.js';
14
13
  import './debounce-1a993acf.js';
15
14
  import './isSymbol-807e927e.js';
16
15
  import './Beam.js';
16
+ import './stringify-d4839bab.js';
17
17
  import './asyncToGenerator-2bd4099a.js';
18
18
  import './_library-528f1934.js';
19
19
  import './_set-species-494ed292.js';
@@ -58,9 +58,9 @@ var ADWebcast = function ADWebcast(_ref) {
58
58
  setWidthFlag = _useState2[1];
59
59
 
60
60
  var _useState3 = useState(true),
61
- _useState4 = _slicedToArray(_useState3, 2),
62
- previewAd = _useState4[0],
63
- setPreviewAd = _useState4[1];
61
+ _useState4 = _slicedToArray(_useState3, 2);
62
+ _useState4[0];
63
+ var setPreviewAd = _useState4[1];
64
64
 
65
65
  useEffect(function () {
66
66
  var path = window && window.location && window.location.search;
@@ -76,38 +76,6 @@ var ADWebcast = function ADWebcast(_ref) {
76
76
  }
77
77
  }, [minScreenWidth]);
78
78
 
79
- // Collapsing webcast AD if no creative is found.
80
- var collapseAd = function collapseAd() {
81
- var parent = document.getElementById('webcast-ad-wrapper');
82
- parent.style.height = '0%';
83
- parent.style.width = '0%';
84
- parent.style.display = 'none';
85
- };
86
-
87
- var checkIsAdFound = function checkIsAdFound(isFound, adData) {
88
- // Check for creative ID.
89
- if (isFound) {
90
- var parent = document.getElementById('webcast-ad-wrapper');
91
- var adSizes = [[1, 1]];
92
- // Collapsing ad if the as size is [1,1]
93
- if (adData && adData.event && adData.event.size) {
94
- var checkAdSize = function checkAdSize(size) {
95
- return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
96
- };
97
-
98
- if (adSizes.some(checkAdSize)) {
99
- // collapsing webcast AD.
100
- collapseAd();
101
- parent.style.display = 'none';
102
- } else {
103
- parent.style.display = 'block';
104
- }
105
- }
106
- } else {
107
- collapseAd();
108
- }
109
- };
110
-
111
79
  if (widthFlag) {
112
80
  return React.createElement(
113
81
  React.Fragment,
@@ -130,7 +98,7 @@ var ADWebcast = function ADWebcast(_ref) {
130
98
  /* Passing refresh flag */
131
99
  , refreshFlag: refreshFlag
132
100
  /* Passing function to check for ad creative only if it is not in preview. */
133
- , checkIsAdFound: previewAd ? null : checkIsAdFound
101
+ // checkIsAdFound={previewAd ? null : checkIsAdFound}
134
102
  })
135
103
  ),
136
104
  React.createElement(