@mjhls/mjh-framework 1.0.383 → 1.0.385

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 (69) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{ADInfeed-9f564bd2.js → ADInfeed-f544f2a5.js} +1 -1
  3. package/dist/cjs/{AdSlot-b5f0c396.js → AdSlot-1e40a214.js} +4 -4
  4. package/dist/cjs/AuthorComponent-37deda17.js +99 -0
  5. package/dist/cjs/DeckContent.js +13 -10
  6. package/dist/cjs/DeckQueue.js +10 -7
  7. package/dist/cjs/{Dfp-e77be4e4.js → Dfp-27b922b0.js} +3 -3
  8. package/dist/cjs/{Figure-04b8dbbe.js → Figure-c49ee0f8.js} +2 -2
  9. package/dist/cjs/{GridContent-a0c81f9f.js → GridContent-1871749e.js} +29 -68
  10. package/dist/cjs/GridContent.js +16 -12
  11. package/dist/cjs/GroupDeck.js +28 -4
  12. package/dist/cjs/MasterDeck.js +10 -7
  13. package/dist/cjs/{Normal-6b148627.js → Normal-a747507b.js} +4 -4
  14. package/dist/cjs/QueueDeckExpanded.js +31 -68
  15. package/dist/cjs/{TaxonomyCard-b51062ec.js → TaxonomyCard-cf264332.js} +1 -1
  16. package/dist/cjs/TaxonomyCard.js +3 -2
  17. package/dist/cjs/TemplateNormal.js +9 -8
  18. package/dist/cjs/{Ustream-f5f53782.js → Ustream-c7baf022.js} +1 -1
  19. package/dist/cjs/Ustream.js +3 -3
  20. package/dist/cjs/VideoSeriesListing.js +9 -5
  21. package/dist/cjs/YoutubeGroup.js +25 -4
  22. package/dist/cjs/_library-dd23b178.js +5 -0
  23. package/dist/cjs/_object-pie-68c5bcbc.js +16 -0
  24. package/dist/cjs/{debounce-528ad412.js → debounce-b088070c.js} +0 -3
  25. package/dist/cjs/{extends-4c2285ff.js → extends-60837c34.js} +3 -16
  26. package/dist/cjs/{get-3b23d857.js → get-5aa7468c.js} +1 -1
  27. package/dist/cjs/index.js +544 -18
  28. package/dist/cjs/inherits-2a0fa98c.js +210 -0
  29. package/dist/cjs/{main-987c23c6.js → main-2020ba94.js} +1 -1
  30. package/dist/cjs/{promise-3b44b2a3.js → promise-d5136080.js} +8 -4
  31. package/dist/cjs/{slicedToArray-879ab2fb.js → slicedToArray-419d467a.js} +1 -1
  32. package/dist/cjs/{toConsumableArray-34b5e9a7.js → toConsumableArray-3cf1df2c.js} +2 -2
  33. package/dist/cjs/{inherits-7548e3e8.js → typeof-2747c582.js} +20 -218
  34. package/dist/cjs/{web.dom.iterable-8b02d65e.js → web.dom.iterable-5c889cf1.js} +2 -0
  35. package/dist/esm/{ADInfeed-c65835b9.js → ADInfeed-88c335d9.js} +1 -1
  36. package/dist/esm/{AdSlot-1cc6bdb0.js → AdSlot-971ce41c.js} +5 -5
  37. package/dist/esm/AuthorComponent-beb2ad16.js +94 -0
  38. package/dist/esm/DeckContent.js +14 -11
  39. package/dist/esm/DeckQueue.js +11 -8
  40. package/dist/esm/{Dfp-7c317aa4.js → Dfp-3b3273ee.js} +4 -4
  41. package/dist/esm/{Figure-aa16a017.js → Figure-7ba30e53.js} +3 -3
  42. package/dist/esm/{GridContent-6aafc29f.js → GridContent-3229be76.js} +29 -68
  43. package/dist/esm/GridContent.js +17 -13
  44. package/dist/esm/GroupDeck.js +29 -5
  45. package/dist/esm/MasterDeck.js +11 -8
  46. package/dist/esm/{Normal-308179a5.js → Normal-508d09f1.js} +4 -4
  47. package/dist/esm/QueueDeckExpanded.js +32 -69
  48. package/dist/esm/{TaxonomyCard-f1f072ab.js → TaxonomyCard-12f0a90a.js} +1 -1
  49. package/dist/esm/TaxonomyCard.js +4 -3
  50. package/dist/esm/TemplateNormal.js +10 -9
  51. package/dist/esm/{Ustream-d8cc3cbd.js → Ustream-ee7aeeef.js} +1 -1
  52. package/dist/esm/Ustream.js +4 -4
  53. package/dist/esm/VideoSeriesListing.js +10 -6
  54. package/dist/esm/YoutubeGroup.js +26 -5
  55. package/dist/esm/_library-528f1934.js +3 -0
  56. package/dist/esm/_object-pie-33c40e79.js +13 -0
  57. package/dist/esm/{_to-object-b9b796ec.js → _to-object-1b1f7766.js} +1 -1
  58. package/dist/esm/{debounce-702eb224.js → debounce-df468b0e.js} +1 -3
  59. package/dist/esm/{extends-26d3b609.js → extends-92072fff.js} +3 -14
  60. package/dist/esm/{get-36d03764.js → get-53653403.js} +1 -1
  61. package/dist/esm/index.js +549 -24
  62. package/dist/esm/inherits-cacd91d8.js +203 -0
  63. package/dist/esm/{main-cb86f95d.js → main-25bb2c75.js} +2 -2
  64. package/dist/esm/{promise-86cb8313.js → promise-5d7cd78a.js} +5 -5
  65. package/dist/esm/{slicedToArray-a47a84a4.js → slicedToArray-04e02710.js} +2 -2
  66. package/dist/esm/{toConsumableArray-2718dc16.js → toConsumableArray-d7054876.js} +3 -3
  67. package/dist/esm/{inherits-4b85034c.js → typeof-e4b50250.js} +8 -205
  68. package/dist/esm/{web.dom.iterable-7e9bebf9.js → web.dom.iterable-e6bf2bf6.js} +2 -2
  69. package/package.json +1 -1
@@ -0,0 +1,94 @@
1
+ import React__default, { useEffect, useState, useRef } from 'react';
2
+ import { _ as _slicedToArray } from './slicedToArray-04e02710.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,12 +1,15 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
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';
2
+ import './_to-object-1b1f7766.js';
3
+ import './web.dom.iterable-e6bf2bf6.js';
4
+ import './_library-528f1934.js';
5
+ import { m as main_39 } from './main-25bb2c75.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-d7054876.js';
7
+ import './_object-pie-33c40e79.js';
8
+ import { _ as _extends } from './extends-92072fff.js';
9
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cacd91d8.js';
10
+ import './typeof-e4b50250.js';
9
11
  import React__default from 'react';
12
+ import { d as debounce_1, l as lib_3 } from './debounce-df468b0e.js';
10
13
  import 'prop-types';
11
14
  import Container from 'react-bootstrap/Container';
12
15
  import Row from 'react-bootstrap/Row';
@@ -19,10 +22,10 @@ import 'react-dom';
19
22
  import { i as imageUrlBuilder } from './index-51a80699.js';
20
23
  import { L as LazyLoad } from './index-5f9f807a.js';
21
24
  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';
25
+ import './slicedToArray-04e02710.js';
26
+ import './AdSlot-971ce41c.js';
27
+ import './promise-5d7cd78a.js';
28
+ import { A as ADInfeed } from './ADInfeed-88c335d9.js';
26
29
 
27
30
  var DeckContent = function (_React$Component) {
28
31
  _inherits(DeckContent, _React$Component);
@@ -1,12 +1,15 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
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';
2
+ import './_to-object-1b1f7766.js';
3
+ import './web.dom.iterable-e6bf2bf6.js';
4
+ import './_library-528f1934.js';
5
+ import { m as main_39 } from './main-25bb2c75.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-d7054876.js';
7
+ import './_object-pie-33c40e79.js';
8
+ import { _ as _extends } from './extends-92072fff.js';
9
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cacd91d8.js';
10
+ import './typeof-e4b50250.js';
9
11
  import React__default from 'react';
12
+ import { d as debounce_1, l as lib_3 } from './debounce-df468b0e.js';
10
13
  import 'prop-types';
11
14
  import Container from 'react-bootstrap/Container';
12
15
  import Row from 'react-bootstrap/Row';
@@ -19,7 +22,7 @@ import 'react-dom';
19
22
  import { i as imageUrlBuilder } from './index-51a80699.js';
20
23
  import { L as LazyLoad } from './index-5f9f807a.js';
21
24
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
22
- import { g as get_1 } from './get-36d03764.js';
25
+ import { g as get_1 } from './get-53653403.js';
23
26
 
24
27
  var DeckQueue = function (_React$Component) {
25
28
  _inherits(DeckQueue, _React$Component);
@@ -1,12 +1,12 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
4
- import { d as debounce_1, a as lib_1, e as lib_2 } from './debounce-702eb224.js';
2
+ import './_to-object-1b1f7766.js';
3
+ import './web.dom.iterable-e6bf2bf6.js';
5
4
  import React__default, { useState } from 'react';
5
+ import { d as debounce_1, a as lib_1, e as lib_2 } from './debounce-df468b0e.js';
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-04e02710.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-1b1f7766.js';
3
+ import './web.dom.iterable-e6bf2bf6.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-04e02710.js';
7
7
  import { Figure as Figure$1 } from 'react-bootstrap';
8
8
 
9
9
  var urlFor = function urlFor(source, client) {
@@ -1,9 +1,9 @@
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';
1
+ import { m as main_39 } from './main-25bb2c75.js';
2
+ import { _ as _toConsumableArray } from './toConsumableArray-d7054876.js';
3
+ import { _ as _extends } from './extends-92072fff.js';
4
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cacd91d8.js';
6
5
  import React__default, { Suspense } from 'react';
6
+ import { d as debounce_1, l as lib_3 } from './debounce-df468b0e.js';
7
7
  import Container from 'react-bootstrap/Container';
8
8
  import Row from 'react-bootstrap/Row';
9
9
  import Col from 'react-bootstrap/Col';
@@ -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';
18
- import { g as get_1 } from './get-36d03764.js';
17
+ import { A as ADInfeed } from './ADInfeed-88c335d9.js';
18
+ import { g as get_1 } from './get-53653403.js';
19
+ import { A as AuthorComponent } from './AuthorComponent-beb2ad16.js';
19
20
 
20
21
  var Dfp = React__default.lazy(function () {
21
- return import('./Dfp-7c317aa4.js');
22
+ return import('./Dfp-3b3273ee.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,12 +1,15 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
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';
2
+ import './_to-object-1b1f7766.js';
3
+ import './web.dom.iterable-e6bf2bf6.js';
4
+ import './_library-528f1934.js';
5
+ import './main-25bb2c75.js';
6
+ import './toConsumableArray-d7054876.js';
7
+ import './_object-pie-33c40e79.js';
8
+ import './extends-92072fff.js';
9
+ import './inherits-cacd91d8.js';
10
+ import './typeof-e4b50250.js';
9
11
  import 'react';
12
+ import './debounce-df468b0e.js';
10
13
  import 'prop-types';
11
14
  import 'react-bootstrap/Container';
12
15
  import 'react-bootstrap/Row';
@@ -19,9 +22,10 @@ import 'react-dom';
19
22
  import './index-51a80699.js';
20
23
  import './index-5f9f807a.js';
21
24
  import './entities-7cc3bf45.js';
22
- import './slicedToArray-a47a84a4.js';
23
- import './AdSlot-1cc6bdb0.js';
24
- import './promise-86cb8313.js';
25
- import './ADInfeed-c65835b9.js';
26
- import './get-36d03764.js';
27
- export { G as default } from './GridContent-6aafc29f.js';
25
+ import './slicedToArray-04e02710.js';
26
+ import './AdSlot-971ce41c.js';
27
+ import './promise-5d7cd78a.js';
28
+ import './ADInfeed-88c335d9.js';
29
+ import './get-53653403.js';
30
+ export { G as default } from './GridContent-3229be76.js';
31
+ import './AuthorComponent-beb2ad16.js';
@@ -1,8 +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-1b1f7766.js';
3
+ import './web.dom.iterable-e6bf2bf6.js';
4
+ import './_library-528f1934.js';
5
+ import './_object-pie-33c40e79.js';
6
+ import { b as _typeof } from './typeof-e4b50250.js';
4
7
  import React__default, { useRef, useState, useEffect } from 'react';
5
- import { _ as _slicedToArray } from './slicedToArray-a47a84a4.js';
8
+ import { i as imageUrlBuilder } from './index-51a80699.js';
9
+ import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
6
10
  import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
7
11
 
8
12
  /*
@@ -22,6 +26,11 @@ var GroupDeck = function GroupDeck(props) {
22
26
  tileSize = _useState2[0],
23
27
  setTileSize = _useState2[1];
24
28
 
29
+ var urlFor = function urlFor(source, client) {
30
+ var builder = imageUrlBuilder(client);
31
+ return builder.image(source).auto('format');
32
+ };
33
+
25
34
  useEffect(function () {
26
35
  //IE11 Polyfill
27
36
  smoothscroll.polyfill();
@@ -134,7 +143,15 @@ var GroupDeck = function GroupDeck(props) {
134
143
  // If there is a current prop, means this will overlay a currently playing video
135
144
  if (current !== '') {
136
145
  var url = video.url;
137
- var thumbnail = video.thumbnail || 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
146
+ var thumbnail = void 0;
147
+
148
+ if (video.thumbnail && video.thumbnail.asset) {
149
+ thumbnail = urlFor(video.thumbnail, props.client);
150
+ } else if (_typeof(video.thumbnail == 'string')) {
151
+ thumbnail = video.thumbnail;
152
+ } else {
153
+ thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
154
+ }
138
155
 
139
156
  return React__default.createElement(
140
157
  'div',
@@ -177,7 +194,14 @@ var GroupDeck = function GroupDeck(props) {
177
194
  } else {
178
195
  // slider by itself
179
196
  var _url = '' + video.link;
180
- var _thumbnail = video.thumbnail || 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
197
+ var _thumbnail = void 0;
198
+ if (video.thumbnail && video.thumbnail.asset) {
199
+ _thumbnail = urlFor(video.thumbnail, props.client);
200
+ } else if (_typeof(video.thumbnail == 'string')) {
201
+ _thumbnail = video.thumbnail;
202
+ } else {
203
+ _thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
204
+ }
181
205
  return React__default.createElement(
182
206
  'div',
183
207
  { ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
@@ -1,12 +1,15 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
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';
2
+ import './_to-object-1b1f7766.js';
3
+ import './web.dom.iterable-e6bf2bf6.js';
4
+ import './_library-528f1934.js';
5
+ import { m as main_39 } from './main-25bb2c75.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-d7054876.js';
7
+ import './_object-pie-33c40e79.js';
8
+ import { _ as _extends } from './extends-92072fff.js';
9
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cacd91d8.js';
10
+ import './typeof-e4b50250.js';
9
11
  import React__default from 'react';
12
+ import { d as debounce_1, l as lib_3 } from './debounce-df468b0e.js';
10
13
  import 'prop-types';
11
14
  import Container from 'react-bootstrap/Container';
12
15
  import 'react-bootstrap/Row';
@@ -17,7 +20,7 @@ import { withRouter } from 'next/router';
17
20
  import { V as VisibilitySensor, I as InfiniteScroll } from './visibility-sensor-49d5805d.js';
18
21
  import 'react-dom';
19
22
  import './index-51a80699.js';
20
- import { _ as _Promise } from './promise-86cb8313.js';
23
+ import { d as _Promise } from './promise-5d7cd78a.js';
21
24
 
22
25
  var MasterDeck = function (_React$Component) {
23
26
  _inherits(MasterDeck, _React$Component);
@@ -1,11 +1,11 @@
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-25bb2c75.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';
8
- import { g as get_1 } from './get-36d03764.js';
6
+ import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
7
+ import { D as DFPAdSlot } from './AdSlot-971ce41c.js';
8
+ import { g as get_1 } from './get-53653403.js';
9
9
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
10
10
  import { Dropdown } from 'react-bootstrap';
11
11
  import { G as GenIcon, b as IoMdLogIn, c as IoIosHome } from './index.esm-536609db.js';
@@ -1,11 +1,13 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-b9b796ec.js';
3
- import './web.dom.iterable-7e9bebf9.js';
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';
2
+ import './_to-object-1b1f7766.js';
3
+ import './web.dom.iterable-e6bf2bf6.js';
4
+ import './_library-528f1934.js';
5
+ import { m as main_39 } from './main-25bb2c75.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-d7054876.js';
7
+ import './_object-pie-33c40e79.js';
8
+ import { _ as _extends } from './extends-92072fff.js';
8
9
  import React__default, { useState, useEffect, useRef } from 'react';
10
+ import { l as lib_3 } from './debounce-df468b0e.js';
9
11
  import 'prop-types';
10
12
  import 'react-bootstrap/Card';
11
13
  import { m as moment } from './moment-12415288.js';
@@ -15,10 +17,11 @@ import 'react-dom';
15
17
  import { i as imageUrlBuilder } from './index-51a80699.js';
16
18
  import { L as LazyLoad } from './index-5f9f807a.js';
17
19
  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';
20
+ import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
21
+ import './AdSlot-971ce41c.js';
22
+ import './promise-5d7cd78a.js';
23
+ import { A as ADInfeed } from './ADInfeed-88c335d9.js';
24
+ import { A as AuthorComponent } from './AuthorComponent-beb2ad16.js';
22
25
  import { Container, Media } from 'react-bootstrap';
23
26
 
24
27
  var urlFor = function urlFor(source, builder) {
@@ -123,56 +126,6 @@ var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pagevi
123
126
  }
124
127
  };
125
128
 
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
129
  var checkExternalUrl = function checkExternalUrl(url) {
177
130
  return new RegExp(['http', 'https'].join('|')).test(url);
178
131
  };
@@ -257,9 +210,11 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
257
210
  { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
258
211
  moment(article.published).format('MMMM DD, YYYY')
259
212
  ),
260
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
261
- return renderAuthor(authorDetail, index, article.authorMapping.length);
262
- }),
213
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
214
+ LazyLoad,
215
+ { height: 50 },
216
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
217
+ ),
263
218
  article.source && React__default.createElement(
264
219
  'p',
265
220
  { className: 'p-0 mb-1' },
@@ -332,9 +287,11 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
332
287
  { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
333
288
  moment(article.published).format('MMMM DD, YYYY')
334
289
  ),
335
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
336
- return renderAuthor(authorDetail, index, article.authorMapping.length);
337
- }),
290
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
291
+ LazyLoad,
292
+ { height: 50 },
293
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
294
+ ),
338
295
  article.source && React__default.createElement(
339
296
  'p',
340
297
  { className: 'p-0 mb-1' },
@@ -408,9 +365,15 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
408
365
  { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
409
366
  moment(article.published).format('MMMM DD, YYYY')
410
367
  ),
411
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
412
- return renderAuthor(authorDetail, index, article.authorMapping.length);
413
- }),
368
+ React__default.createElement(
369
+ 'div',
370
+ { className: 'author-sec', style: { lineHeight: 1.5 } },
371
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
372
+ LazyLoad,
373
+ { height: 50 },
374
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
375
+ )
376
+ ),
414
377
  article.source && React__default.createElement(
415
378
  'p',
416
379
  { className: 'p-0 mb-1' },
@@ -1,4 +1,4 @@
1
- import { _ as _extends } from './extends-26d3b609.js';
1
+ import { _ as _extends } from './extends-92072fff.js';
2
2
  import React__default from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import Container from 'react-bootstrap/Container';