@mjhls/mjh-framework 1.0.382 → 1.0.384

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 (56) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{ADInfeed-9f564bd2.js → ADInfeed-5949653c.js} +1 -1
  3. package/dist/cjs/{AdSlot-b5f0c396.js → AdSlot-91bc9d77.js} +3 -3
  4. package/dist/cjs/AuthorComponent-37deda17.js +99 -0
  5. package/dist/cjs/DeckContent.js +8 -8
  6. package/dist/cjs/DeckQueue.js +4 -4
  7. package/dist/cjs/{Dfp-e77be4e4.js → Dfp-25e669fe.js} +2 -2
  8. package/dist/cjs/{Figure-04b8dbbe.js → Figure-c49ee0f8.js} +2 -2
  9. package/dist/cjs/{GridContent-a0c81f9f.js → GridContent-1f1041b1.js} +26 -65
  10. package/dist/cjs/GridContent.js +10 -9
  11. package/dist/cjs/GroupDeck.js +2 -2
  12. package/dist/cjs/MasterDeck.js +5 -5
  13. package/dist/cjs/{Normal-6b148627.js → Normal-c96bc60c.js} +3 -3
  14. package/dist/cjs/QueueDeckExpanded.js +27 -66
  15. package/dist/cjs/TemplateNormal.js +6 -6
  16. package/dist/cjs/{Ustream-f5f53782.js → Ustream-c7baf022.js} +1 -1
  17. package/dist/cjs/Ustream.js +3 -3
  18. package/dist/cjs/VideoSeriesListing.js +3 -3
  19. package/dist/cjs/YoutubeGroup.js +2 -2
  20. package/dist/cjs/index.js +540 -15
  21. package/dist/cjs/{inherits-7548e3e8.js → inherits-cfb3a105.js} +3 -1
  22. package/dist/cjs/{main-987c23c6.js → main-2020ba94.js} +1 -1
  23. package/dist/cjs/{promise-3b44b2a3.js → promise-f3635def.js} +6 -2
  24. package/dist/cjs/{slicedToArray-879ab2fb.js → slicedToArray-419d467a.js} +1 -1
  25. package/dist/cjs/{toConsumableArray-34b5e9a7.js → toConsumableArray-3cf1df2c.js} +2 -2
  26. package/dist/cjs/{web.dom.iterable-8b02d65e.js → web.dom.iterable-5c889cf1.js} +2 -0
  27. package/dist/esm/{ADInfeed-c65835b9.js → ADInfeed-cb72a50c.js} +1 -1
  28. package/dist/esm/{AdSlot-1cc6bdb0.js → AdSlot-691d4ea0.js} +4 -4
  29. package/dist/esm/AuthorComponent-2d328934.js +94 -0
  30. package/dist/esm/DeckContent.js +10 -10
  31. package/dist/esm/DeckQueue.js +6 -6
  32. package/dist/esm/{Dfp-7c317aa4.js → Dfp-9f16c743.js} +3 -3
  33. package/dist/esm/{Figure-aa16a017.js → Figure-c3dd2204.js} +3 -3
  34. package/dist/esm/{GridContent-6aafc29f.js → GridContent-2c9483e5.js} +27 -66
  35. package/dist/esm/GridContent.js +12 -11
  36. package/dist/esm/GroupDeck.js +3 -3
  37. package/dist/esm/MasterDeck.js +7 -7
  38. package/dist/esm/{Normal-308179a5.js → Normal-1dbb3ddd.js} +3 -3
  39. package/dist/esm/QueueDeckExpanded.js +29 -68
  40. package/dist/esm/{TaxonomyCard-f1f072ab.js → TaxonomyCard-dace0e7a.js} +1 -1
  41. package/dist/esm/TaxonomyCard.js +3 -3
  42. package/dist/esm/TemplateNormal.js +7 -7
  43. package/dist/esm/{Ustream-d8cc3cbd.js → Ustream-5af5d020.js} +1 -1
  44. package/dist/esm/Ustream.js +4 -4
  45. package/dist/esm/VideoSeriesListing.js +5 -5
  46. package/dist/esm/YoutubeGroup.js +3 -3
  47. package/dist/esm/{_to-object-b9b796ec.js → _to-object-18b775df.js} +1 -1
  48. package/dist/esm/{extends-26d3b609.js → extends-886d1c3d.js} +1 -1
  49. package/dist/esm/index.js +547 -23
  50. package/dist/esm/{inherits-4b85034c.js → inherits-08eb6462.js} +4 -4
  51. package/dist/esm/{main-cb86f95d.js → main-b2628307.js} +2 -2
  52. package/dist/esm/{promise-86cb8313.js → promise-e74ec3c8.js} +4 -4
  53. package/dist/esm/{slicedToArray-a47a84a4.js → slicedToArray-e6f2ff4b.js} +2 -2
  54. package/dist/esm/{toConsumableArray-2718dc16.js → toConsumableArray-6e77ffeb.js} +3 -3
  55. package/dist/esm/{web.dom.iterable-7e9bebf9.js → web.dom.iterable-21cbfc63.js} +2 -2
  56. package/package.json +1 -1
@@ -2,9 +2,9 @@
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
4
  var _toObject = require('./_to-object-329a650b.js');
5
- var web_dom_iterable = require('./web.dom.iterable-8b02d65e.js');
5
+ var web_dom_iterable = require('./web.dom.iterable-5c889cf1.js');
6
6
  var debounce = require('./debounce-528ad412.js');
7
- var main = require('./main-987c23c6.js');
7
+ var main = require('./main-2020ba94.js');
8
8
 
9
9
  var _anInstance = function (it, Constructor, name, forbiddenField) {
10
10
  if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
@@ -580,4 +580,8 @@ module.exports = { "default": promise, __esModule: true };
580
580
  var _Promise = _commonjsHelpers.unwrapExports(promise$1);
581
581
 
582
582
  exports._Promise = _Promise;
583
+ exports._anInstance = _anInstance;
584
+ exports._forOf = _forOf;
585
+ exports._redefineAll = _redefineAll;
586
+ exports._setSpecies = _setSpecies;
583
587
  exports.promise = promise$1;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
4
  var _toObject = require('./_to-object-329a650b.js');
5
- var web_dom_iterable = require('./web.dom.iterable-8b02d65e.js');
5
+ var web_dom_iterable = require('./web.dom.iterable-5c889cf1.js');
6
6
 
7
7
  var ITERATOR = web_dom_iterable._wks('iterator');
8
8
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
4
  var _toObject = require('./_to-object-329a650b.js');
5
- var web_dom_iterable = require('./web.dom.iterable-8b02d65e.js');
6
- var main = require('./main-987c23c6.js');
5
+ var web_dom_iterable = require('./web.dom.iterable-5c889cf1.js');
6
+ var main = require('./main-2020ba94.js');
7
7
 
8
8
  var _createProperty = function (object, index, value) {
9
9
  if (index in object) _toObject._objectDp.f(object, index, _toObject._propertyDesc(0, value));
@@ -279,6 +279,8 @@ for (var i = 0; i < DOMIterables.length; i++) {
279
279
 
280
280
  exports._classof = _classof;
281
281
  exports._html = _html;
282
+ exports._iterDefine = _iterDefine;
283
+ exports._iterStep = _iterStep;
282
284
  exports._iterators = _iterators;
283
285
  exports._objectCreate = _objectCreate;
284
286
  exports._objectGpo = _objectGpo;
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import Card from 'react-bootstrap/Card';
3
- import { D as DFPAdSlot } from './AdSlot-1cc6bdb0.js';
3
+ import { D as DFPAdSlot } from './AdSlot-691d4ea0.js';
4
4
 
5
5
  var ADInfeed = function ADInfeed(_ref) {
6
6
  var index = _ref.index,
@@ -1,11 +1,11 @@
1
1
  import { u as unwrapExports, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
- import { b as _core } from './_to-object-b9b796ec.js';
2
+ import { b as _core } from './_to-object-18b775df.js';
3
3
  import { d as debounce_1, e as lib_2 } from './debounce-702eb224.js';
4
- import { a as main_16 } from './main-cb86f95d.js';
4
+ import { a as main_16 } from './main-b2628307.js';
5
5
  import React__default, { useState } from 'react';
6
6
  import PropTypes from 'prop-types';
7
- import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
8
- import { p as promise } from './promise-86cb8313.js';
7
+ import { _ as _slicedToArray } from './slicedToArray-e6f2ff4b.js';
8
+ import { p as promise } from './promise-e74ec3c8.js';
9
9
 
10
10
  var $JSON = _core.JSON || (_core.JSON = { stringify: JSON.stringify });
11
11
  var stringify = function stringify(it) { // eslint-disable-line no-unused-vars
@@ -0,0 +1,94 @@
1
+ import React__default, { useEffect, useState, useRef } from 'react';
2
+ import { _ as _slicedToArray } from './slicedToArray-e6f2ff4b.js';
3
+
4
+ var AuthorComponent = function AuthorComponent(_ref) {
5
+ var authors = _ref.authors,
6
+ index = _ref.index;
7
+
8
+ var renderAuthor = function renderAuthor(authorDetail, index, length) {
9
+ if (authorDetail) {
10
+ var _id = authorDetail._id,
11
+ displayName = authorDetail.displayName,
12
+ url = authorDetail.url;
13
+
14
+
15
+ if (displayName && url && url.current) {
16
+ return React__default.createElement(
17
+ 'span',
18
+ { key: _id },
19
+ index === 0 && React__default.createElement(
20
+ 'span',
21
+ { className: 'pr-1' },
22
+ 'By'
23
+ ),
24
+ React__default.createElement(
25
+ 'a',
26
+ { href: '/authors/' + url.current, className: 'text-muted' },
27
+ displayName
28
+ ),
29
+ length !== index + 1 && ' , '
30
+ );
31
+ } else if (displayName) {
32
+ return React__default.createElement(
33
+ 'span',
34
+ { key: _id },
35
+ index === 0 && React__default.createElement(
36
+ 'span',
37
+ { className: 'pr-1' },
38
+ 'By'
39
+ ),
40
+ React__default.createElement(
41
+ 'span',
42
+ { className: 'text-muted' },
43
+ displayName,
44
+ length !== index + 1 && React__default.createElement(
45
+ 'span',
46
+ { className: 'author-seperator' },
47
+ ','
48
+ )
49
+ )
50
+ );
51
+ }
52
+ } else return null;
53
+ };
54
+
55
+ var onOverlayClick = function onOverlayClick() {
56
+ if (authorRef && authorRef.current) {
57
+ authorRef.current.classList.remove('hide-content');
58
+ sethideContent(false);
59
+ }
60
+ };
61
+
62
+ useEffect(function () {
63
+ if (authorRef && authorRef.current.clientHeight && authorRef.current.clientHeight > 50) {
64
+ authorRef.current.classList.add('hide-content');
65
+ sethideContent(true);
66
+ }
67
+ }, []);
68
+
69
+ var _useState = useState(''),
70
+ _useState2 = _slicedToArray(_useState, 2),
71
+ hideContent = _useState2[0],
72
+ sethideContent = _useState2[1];
73
+
74
+ var overlayRef = useRef(null);
75
+ var authorRef = useRef(null);
76
+
77
+ return React__default.createElement(
78
+ 'div',
79
+ { id: 'author-sec' + index, ref: authorRef },
80
+ hideContent && React__default.createElement('div', { onClick: function onClick() {
81
+ return onOverlayClick();
82
+ }, ref: overlayRef, id: 'overlay-content' + index }),
83
+ authors.map(function (authorDetail, index) {
84
+ return renderAuthor(authorDetail, index, authors.length);
85
+ }),
86
+ React__default.createElement(
87
+ 'style',
88
+ { jsx: true },
89
+ '\n #author-sec' + index + ' {\n line-height: 25px;\n position: relative;\n height: auto;\n // max-height: 50px;\n }\n .hide-content {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n #overlay-content' + index + ' {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 1000;\n }\n .author-seperator {\n padding-left: 2px;\n padding-right: 2px;\n }\n '
90
+ )
91
+ );
92
+ };
93
+
94
+ export { AuthorComponent as A };
@@ -1,11 +1,11 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
2
+ import './_to-object-18b775df.js';
3
+ import './web.dom.iterable-21cbfc63.js';
4
4
  import { d as debounce_1, l as lib_3 } from './debounce-702eb224.js';
5
- import { m as main_39 } from './main-cb86f95d.js';
6
- import { _ as _toConsumableArray } from './toConsumableArray-2718dc16.js';
7
- import { _ as _extends } from './extends-26d3b609.js';
8
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-4b85034c.js';
5
+ import { m as main_39 } from './main-b2628307.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-6e77ffeb.js';
7
+ import { _ as _extends } from './extends-886d1c3d.js';
8
+ import { c as _inherits, d as _classCallCheck, e as _possibleConstructorReturn, f as _Object$getPrototypeOf, g as _createClass } from './inherits-08eb6462.js';
9
9
  import React__default from 'react';
10
10
  import 'prop-types';
11
11
  import Container from 'react-bootstrap/Container';
@@ -19,10 +19,10 @@ import 'react-dom';
19
19
  import { i as imageUrlBuilder } from './index-51a80699.js';
20
20
  import { L as LazyLoad } from './index-5f9f807a.js';
21
21
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
22
- import './slicedToArray-a47a84a4.js';
23
- import './AdSlot-1cc6bdb0.js';
24
- import './promise-86cb8313.js';
25
- import { A as ADInfeed } from './ADInfeed-c65835b9.js';
22
+ import './slicedToArray-e6f2ff4b.js';
23
+ import './AdSlot-691d4ea0.js';
24
+ import './promise-e74ec3c8.js';
25
+ import { A as ADInfeed } from './ADInfeed-cb72a50c.js';
26
26
 
27
27
  var DeckContent = function (_React$Component) {
28
28
  _inherits(DeckContent, _React$Component);
@@ -1,11 +1,11 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
2
+ import './_to-object-18b775df.js';
3
+ import './web.dom.iterable-21cbfc63.js';
4
4
  import { d as debounce_1, l as lib_3 } from './debounce-702eb224.js';
5
- import { m as main_39 } from './main-cb86f95d.js';
6
- import { _ as _toConsumableArray } from './toConsumableArray-2718dc16.js';
7
- import { _ as _extends } from './extends-26d3b609.js';
8
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-4b85034c.js';
5
+ import { m as main_39 } from './main-b2628307.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-6e77ffeb.js';
7
+ import { _ as _extends } from './extends-886d1c3d.js';
8
+ import { c as _inherits, d as _classCallCheck, e as _possibleConstructorReturn, f as _Object$getPrototypeOf, g as _createClass } from './inherits-08eb6462.js';
9
9
  import React__default from 'react';
10
10
  import 'prop-types';
11
11
  import Container from 'react-bootstrap/Container';
@@ -1,12 +1,12 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
2
+ import './_to-object-18b775df.js';
3
+ import './web.dom.iterable-21cbfc63.js';
4
4
  import { d as debounce_1, a as lib_1, e as lib_2 } from './debounce-702eb224.js';
5
5
  import React__default, { useState } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import { V as VisibilitySensor } from './visibility-sensor-49d5805d.js';
8
8
  import 'react-dom';
9
- import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
9
+ import { _ as _slicedToArray } from './slicedToArray-e6f2ff4b.js';
10
10
 
11
11
  var AD = function AD(_ref) {
12
12
  var networkID = _ref.networkID,
@@ -1,9 +1,9 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
2
+ import './_to-object-18b775df.js';
3
+ import './web.dom.iterable-21cbfc63.js';
4
4
  import React__default, { useState } from 'react';
5
5
  import { i as imageUrlBuilder } from './index-51a80699.js';
6
- import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
6
+ import { _ as _slicedToArray } from './slicedToArray-e6f2ff4b.js';
7
7
  import { Figure as Figure$1 } from 'react-bootstrap';
8
8
 
9
9
  var urlFor = function urlFor(source, client) {
@@ -1,8 +1,8 @@
1
1
  import { d as debounce_1, l as lib_3 } from './debounce-702eb224.js';
2
- import { m as main_39 } from './main-cb86f95d.js';
3
- import { _ as _toConsumableArray } from './toConsumableArray-2718dc16.js';
4
- import { _ as _extends } from './extends-26d3b609.js';
5
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-4b85034c.js';
2
+ import { m as main_39 } from './main-b2628307.js';
3
+ import { _ as _toConsumableArray } from './toConsumableArray-6e77ffeb.js';
4
+ import { _ as _extends } from './extends-886d1c3d.js';
5
+ import { c as _inherits, d as _classCallCheck, e as _possibleConstructorReturn, f as _Object$getPrototypeOf, g as _createClass } from './inherits-08eb6462.js';
6
6
  import React__default, { Suspense } from 'react';
7
7
  import Container from 'react-bootstrap/Container';
8
8
  import Row from 'react-bootstrap/Row';
@@ -14,11 +14,12 @@ import { V as VisibilitySensor, I as InfiniteScroll } from './visibility-sensor-
14
14
  import { i as imageUrlBuilder } from './index-51a80699.js';
15
15
  import { L as LazyLoad } from './index-5f9f807a.js';
16
16
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
17
- import { A as ADInfeed } from './ADInfeed-c65835b9.js';
17
+ import { A as ADInfeed } from './ADInfeed-cb72a50c.js';
18
18
  import { g as get_1 } from './get-36d03764.js';
19
+ import { A as AuthorComponent } from './AuthorComponent-2d328934.js';
19
20
 
20
21
  var Dfp = React__default.lazy(function () {
21
- return import('./Dfp-7c317aa4.js');
22
+ return import('./Dfp-9f16c743.js');
22
23
  });
23
24
 
24
25
  var AD = function AD(props) {
@@ -185,54 +186,6 @@ var GridContent = function (_React$Component) {
185
186
  });
186
187
  }
187
188
  }
188
- }, _this.renderAuthor = function (authorDetail, index, length) {
189
- if (authorDetail) {
190
- var _id = authorDetail._id,
191
- displayName = authorDetail.displayName,
192
- url = authorDetail.url;
193
-
194
- if (displayName && url && url.current) {
195
- return React__default.createElement(
196
- 'span',
197
- { key: _id },
198
- index === 0 && React__default.createElement(
199
- 'span',
200
- { className: 'pr-1' },
201
- 'By'
202
- ),
203
- React__default.createElement(
204
- 'a',
205
- { href: '/authors/' + url.current, className: 'text-muted' },
206
- displayName,
207
- length !== index + 1 && React__default.createElement(
208
- 'span',
209
- { style: { paddingLeft: 7, paddingRight: 7 } },
210
- '|'
211
- )
212
- )
213
- );
214
- } else if (displayName) {
215
- return React__default.createElement(
216
- 'span',
217
- { key: _id },
218
- index === 0 && React__default.createElement(
219
- 'span',
220
- { className: 'pr-1' },
221
- 'By'
222
- ),
223
- React__default.createElement(
224
- 'span',
225
- { className: 'text-muted' },
226
- displayName,
227
- length !== index + 1 && React__default.createElement(
228
- 'span',
229
- { style: { paddingLeft: 7, paddingRight: 7 } },
230
- '|'
231
- )
232
- )
233
- );
234
- }
235
- } else return null;
236
189
  }, _this.checkExternalUrl = function (url) {
237
190
  return new RegExp(['http', 'https'].join('|')).test(url);
238
191
  }, _this.renderMobileAd = function (index, numberOfItemsBeforeAd) {
@@ -321,9 +274,11 @@ var GridContent = function (_React$Component) {
321
274
  { style: { marginTop: 0 } },
322
275
  moment(row.published).format('MMMM DD, YYYY')
323
276
  ),
324
- _this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
325
- return _this2.renderAuthor(authorDetail, index, row.authorMapping.length);
326
- }),
277
+ _this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React__default.createElement(
278
+ LazyLoad,
279
+ { height: 50 },
280
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
281
+ ),
327
282
  React__default.createElement(
328
283
  Card.Text,
329
284
  null,
@@ -435,9 +390,11 @@ var GridContent = function (_React$Component) {
435
390
  { style: { marginTop: 0 } },
436
391
  moment(row.published).format('MMMM DD, YYYY')
437
392
  ),
438
- _this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
439
- return _this2.renderAuthor(authorDetail, index, row.authorMapping.length);
440
- }),
393
+ _this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React__default.createElement(
394
+ LazyLoad,
395
+ { height: 50 },
396
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
397
+ ),
441
398
  React__default.createElement(
442
399
  Card.Text,
443
400
  { className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
@@ -497,9 +454,11 @@ var GridContent = function (_React$Component) {
497
454
  { style: { marginTop: 0 } },
498
455
  moment(row.published).format('MMMM DD, YYYY')
499
456
  ),
500
- _this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
501
- return _this2.renderAuthor(authorDetail, index, row.authorMapping.length);
502
- }),
457
+ _this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React__default.createElement(
458
+ LazyLoad,
459
+ { height: 50 },
460
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
461
+ ),
503
462
  React__default.createElement(
504
463
  Card.Text,
505
464
  { className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
@@ -557,9 +516,11 @@ var GridContent = function (_React$Component) {
557
516
  { style: { marginTop: 0 } },
558
517
  moment(row.published).format('MMMM DD, YYYY')
559
518
  ),
560
- _this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
561
- return _this2.renderAuthor(authorDetail, index, row.authorMapping.length);
562
- }),
519
+ _this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && React__default.createElement(
520
+ LazyLoad,
521
+ { height: 50 },
522
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
523
+ ),
563
524
  React__default.createElement(
564
525
  Card.Text,
565
526
  { className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
@@ -1,11 +1,11 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
2
+ import './_to-object-18b775df.js';
3
+ import './web.dom.iterable-21cbfc63.js';
4
4
  import './debounce-702eb224.js';
5
- import './main-cb86f95d.js';
6
- import './toConsumableArray-2718dc16.js';
7
- import './extends-26d3b609.js';
8
- import './inherits-4b85034c.js';
5
+ import './main-b2628307.js';
6
+ import './toConsumableArray-6e77ffeb.js';
7
+ import './extends-886d1c3d.js';
8
+ import './inherits-08eb6462.js';
9
9
  import 'react';
10
10
  import 'prop-types';
11
11
  import 'react-bootstrap/Container';
@@ -19,9 +19,10 @@ import 'react-dom';
19
19
  import './index-51a80699.js';
20
20
  import './index-5f9f807a.js';
21
21
  import './entities-7cc3bf45.js';
22
- import './slicedToArray-a47a84a4.js';
23
- import './AdSlot-1cc6bdb0.js';
24
- import './promise-86cb8313.js';
25
- import './ADInfeed-c65835b9.js';
22
+ import './slicedToArray-e6f2ff4b.js';
23
+ import './AdSlot-691d4ea0.js';
24
+ import './promise-e74ec3c8.js';
25
+ import './ADInfeed-cb72a50c.js';
26
26
  import './get-36d03764.js';
27
- export { G as default } from './GridContent-6aafc29f.js';
27
+ export { G as default } from './GridContent-2c9483e5.js';
28
+ import './AuthorComponent-2d328934.js';
@@ -1,8 +1,8 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
2
+ import './_to-object-18b775df.js';
3
+ import './web.dom.iterable-21cbfc63.js';
4
4
  import React__default, { useRef, useState, useEffect } from 'react';
5
- import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
5
+ import { _ as _slicedToArray } from './slicedToArray-e6f2ff4b.js';
6
6
  import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
7
7
 
8
8
  /*
@@ -1,11 +1,11 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
2
+ import './_to-object-18b775df.js';
3
+ import './web.dom.iterable-21cbfc63.js';
4
4
  import { d as debounce_1, l as lib_3 } from './debounce-702eb224.js';
5
- import { m as main_39 } from './main-cb86f95d.js';
6
- import { _ as _toConsumableArray } from './toConsumableArray-2718dc16.js';
7
- import { _ as _extends } from './extends-26d3b609.js';
8
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-4b85034c.js';
5
+ import { m as main_39 } from './main-b2628307.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-6e77ffeb.js';
7
+ import { _ as _extends } from './extends-886d1c3d.js';
8
+ import { c as _inherits, d as _classCallCheck, e as _possibleConstructorReturn, f as _Object$getPrototypeOf, g as _createClass } from './inherits-08eb6462.js';
9
9
  import React__default from 'react';
10
10
  import 'prop-types';
11
11
  import Container from 'react-bootstrap/Container';
@@ -17,7 +17,7 @@ import { withRouter } from 'next/router';
17
17
  import { V as VisibilitySensor, I as InfiniteScroll } from './visibility-sensor-49d5805d.js';
18
18
  import 'react-dom';
19
19
  import './index-51a80699.js';
20
- import { _ as _Promise } from './promise-86cb8313.js';
20
+ import { d as _Promise } from './promise-e74ec3c8.js';
21
21
 
22
22
  var MasterDeck = function (_React$Component) {
23
23
  _inherits(MasterDeck, _React$Component);
@@ -1,10 +1,10 @@
1
- import { m as main_39, c as main_40 } from './main-cb86f95d.js';
1
+ import { m as main_39, c as main_40 } from './main-b2628307.js';
2
2
  import React__default, { useState, useEffect, useRef } from 'react';
3
3
  import Container from 'react-bootstrap/Container';
4
4
  import Row from 'react-bootstrap/Row';
5
5
  import Col from 'react-bootstrap/Col';
6
- import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
7
- import { D as DFPAdSlot } from './AdSlot-1cc6bdb0.js';
6
+ import { _ as _slicedToArray } from './slicedToArray-e6f2ff4b.js';
7
+ import { D as DFPAdSlot } from './AdSlot-691d4ea0.js';
8
8
  import { g as get_1 } from './get-36d03764.js';
9
9
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
10
10
  import { Dropdown } from 'react-bootstrap';
@@ -1,10 +1,10 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
2
+ import './_to-object-18b775df.js';
3
+ import './web.dom.iterable-21cbfc63.js';
4
4
  import { l as lib_3 } from './debounce-702eb224.js';
5
- import { m as main_39 } from './main-cb86f95d.js';
6
- import { _ as _toConsumableArray } from './toConsumableArray-2718dc16.js';
7
- import { _ as _extends } from './extends-26d3b609.js';
5
+ import { m as main_39 } from './main-b2628307.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-6e77ffeb.js';
7
+ import { _ as _extends } from './extends-886d1c3d.js';
8
8
  import React__default, { useState, useEffect, useRef } from 'react';
9
9
  import 'prop-types';
10
10
  import 'react-bootstrap/Card';
@@ -15,10 +15,11 @@ import 'react-dom';
15
15
  import { i as imageUrlBuilder } from './index-51a80699.js';
16
16
  import { L as LazyLoad } from './index-5f9f807a.js';
17
17
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
18
- import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
19
- import './AdSlot-1cc6bdb0.js';
20
- import './promise-86cb8313.js';
21
- import { A as ADInfeed } from './ADInfeed-c65835b9.js';
18
+ import { _ as _slicedToArray } from './slicedToArray-e6f2ff4b.js';
19
+ import './AdSlot-691d4ea0.js';
20
+ import './promise-e74ec3c8.js';
21
+ import { A as ADInfeed } from './ADInfeed-cb72a50c.js';
22
+ import { A as AuthorComponent } from './AuthorComponent-2d328934.js';
22
23
  import { Container, Media } from 'react-bootstrap';
23
24
 
24
25
  var urlFor = function urlFor(source, builder) {
@@ -123,56 +124,6 @@ var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pagevi
123
124
  }
124
125
  };
125
126
 
126
- var renderAuthor = function renderAuthor(authorDetail, index, length) {
127
- if (authorDetail) {
128
- var _id = authorDetail._id,
129
- displayName = authorDetail.displayName,
130
- url = authorDetail.url;
131
-
132
- if (displayName && url && url.current) {
133
- return React__default.createElement(
134
- 'span',
135
- { key: _id },
136
- index === 0 && React__default.createElement(
137
- 'span',
138
- { className: 'pr-1' },
139
- 'By'
140
- ),
141
- React__default.createElement(
142
- 'a',
143
- { href: '/authors/' + url.current, className: 'text-muted' },
144
- displayName,
145
- length !== index + 1 && React__default.createElement(
146
- 'span',
147
- { style: { paddingLeft: 7, paddingRight: 7 } },
148
- '|'
149
- )
150
- )
151
- );
152
- } else if (displayName) {
153
- return React__default.createElement(
154
- 'span',
155
- { key: _id },
156
- index === 0 && React__default.createElement(
157
- 'span',
158
- { className: 'pr-1' },
159
- 'By'
160
- ),
161
- React__default.createElement(
162
- 'span',
163
- { className: 'text-muted' },
164
- displayName,
165
- length !== index + 1 && React__default.createElement(
166
- 'span',
167
- { style: { paddingLeft: 7, paddingRight: 7 } },
168
- '|'
169
- )
170
- )
171
- );
172
- }
173
- } else return null;
174
- };
175
-
176
127
  var checkExternalUrl = function checkExternalUrl(url) {
177
128
  return new RegExp(['http', 'https'].join('|')).test(url);
178
129
  };
@@ -257,9 +208,11 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
257
208
  { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
258
209
  moment(article.published).format('MMMM DD, YYYY')
259
210
  ),
260
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
261
- return renderAuthor(authorDetail, index, article.authorMapping.length);
262
- }),
211
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
212
+ LazyLoad,
213
+ { height: 50 },
214
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
215
+ ),
263
216
  article.source && React__default.createElement(
264
217
  'p',
265
218
  { className: 'p-0 mb-1' },
@@ -332,9 +285,11 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
332
285
  { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
333
286
  moment(article.published).format('MMMM DD, YYYY')
334
287
  ),
335
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
336
- return renderAuthor(authorDetail, index, article.authorMapping.length);
337
- }),
288
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
289
+ LazyLoad,
290
+ { height: 50 },
291
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
292
+ ),
338
293
  article.source && React__default.createElement(
339
294
  'p',
340
295
  { className: 'p-0 mb-1' },
@@ -408,9 +363,15 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
408
363
  { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
409
364
  moment(article.published).format('MMMM DD, YYYY')
410
365
  ),
411
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
412
- return renderAuthor(authorDetail, index, article.authorMapping.length);
413
- }),
366
+ React__default.createElement(
367
+ 'div',
368
+ { className: 'author-sec', style: { lineHeight: 1.5 } },
369
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
370
+ LazyLoad,
371
+ { height: 50 },
372
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
373
+ )
374
+ ),
414
375
  article.source && React__default.createElement(
415
376
  'p',
416
377
  { className: 'p-0 mb-1' },
@@ -1,4 +1,4 @@
1
- import { _ as _extends } from './extends-26d3b609.js';
1
+ import { _ as _extends } from './extends-886d1c3d.js';
2
2
  import React__default from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import Container from 'react-bootstrap/Container';