@mjhls/mjh-framework 1.0.372 → 1.0.374

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -20,13 +20,13 @@ 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, h as html_decode_1 } from './entities-7cc3bf45.js';
22
22
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-a47a84a4.js';
23
- import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-8946358f.js';
24
- export { D as AdSlot, B as Beam } from './AdSlot-8946358f.js';
23
+ import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam$1 } from './AdSlot-1cc6bdb0.js';
24
+ export { D as AdSlot, B as Beam } from './AdSlot-1cc6bdb0.js';
25
25
  import './promise-86cb8313.js';
26
- import { A as ADInfeed } from './ADInfeed-ca26fca6.js';
26
+ import { A as ADInfeed } from './ADInfeed-c65835b9.js';
27
27
  export { default as DeckContent } from './DeckContent.js';
28
28
  import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-36d03764.js';
29
- export { A as AD, G as GridContent } from './GridContent-e2b1de22.js';
29
+ export { A as AD, G as GridContent } from './GridContent-6aafc29f.js';
30
30
  export { default as DeckQueue } from './DeckQueue.js';
31
31
  import 'react-bootstrap/Media';
32
32
  export { default as ThumbnailCard } from './ThumbnailCard.js';
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
48
48
  import 'react-bootstrap/Badge';
49
49
  export { default as IssueContentDeck } from './IssueContentDeck.js';
50
50
  import Spinner from 'react-bootstrap/Spinner';
51
- import { M as MdPictureAsPdf } from './Normal-13c85a50.js';
52
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-13c85a50.js';
51
+ import { M as MdPictureAsPdf } from './Normal-308179a5.js';
52
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-308179a5.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -225,7 +225,7 @@ var checkExternalUrl = function checkExternalUrl(url) {
225
225
  return new RegExp(['http', 'https'].join('|')).test(url);
226
226
  };
227
227
 
228
- var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage) {
228
+ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent) {
229
229
  var numberOfItemsBeforeAd = 6;
230
230
 
231
231
  var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
@@ -253,6 +253,8 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
253
253
  }
254
254
  }
255
255
 
256
+ var featureCount = 0;
257
+
256
258
  return React__default.createElement(
257
259
  'div',
258
260
  null,
@@ -262,6 +264,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
262
264
  var contentCategoryName = article.contentCategory ? article.contentCategory.name : 'Articles';
263
265
 
264
266
  if (article._type === 'feature') {
267
+ featureCount++;
265
268
  if (article.blank || checkExternalUrl(article.url.current)) {
266
269
  return React__default.createElement(
267
270
  React__default.Fragment,
@@ -426,82 +429,84 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
426
429
  return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
427
430
  }
428
431
 
429
- return React__default.createElement(
430
- React__default.Fragment,
431
- { key: article._id ? article._id : index },
432
- React__default.createElement(
433
- VisibilitySensor,
434
- {
435
- key: article._id ? article._id : index,
436
- onChange: function onChange(isVisible) {
437
- isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, parseInt(index));
438
- } },
432
+ if (index + 1 > heroContent + featureCount) {
433
+ return React__default.createElement(
434
+ React__default.Fragment,
435
+ { key: article._id ? article._id : index },
439
436
  React__default.createElement(
440
- React__default.Fragment,
441
- null,
437
+ VisibilitySensor,
438
+ {
439
+ key: article._id ? article._id : index,
440
+ onChange: function onChange(isVisible) {
441
+ isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, parseInt(index));
442
+ } },
442
443
  React__default.createElement(
443
- Media$1,
444
- {
445
- key: article._id ? article._id : index,
446
- style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
447
- (article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
448
- 'a',
449
- { href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
450
- React__default.createElement(
451
- LazyLoad,
452
- { height: imageHeight },
453
- article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
454
- )
455
- ),
444
+ React__default.Fragment,
445
+ null,
456
446
  React__default.createElement(
457
- Media$1.Body,
458
- null,
459
- React__default.createElement(
447
+ Media$1,
448
+ {
449
+ key: article._id ? article._id : index,
450
+ style: { flexDirection: 'row', marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
451
+ (article.thumbnail && article.thumbnail.asset || defaultImage) && React__default.createElement(
460
452
  'a',
461
- { href: mapping[contentCategoryName] + '/' + article.url.current },
462
- article.title && React__default.createElement(
463
- 'h4',
464
- { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
465
- article.title
453
+ { href: mapping[contentCategoryName] + '/' + article.url.current, className: 'img-wrapper' },
454
+ React__default.createElement(
455
+ LazyLoad,
456
+ { height: imageHeight },
457
+ article.thumbnail && article.thumbnail.asset ? React__default.createElement('img', { className: 'mr-3 img-fluid', src: renderCardImage(article, builder, imageHeight, imageWidth), alt: article.title }) : article.thumbnail ? React__default.createElement('img', { src: article.thumbnail, className: 'mr-3', alt: article.title }) : React__default.createElement('img', { src: defaultImage, src2: article.thumbnail, className: 'mr-3', width: '240', height: '135', alt: article.title })
466
458
  )
467
459
  ),
468
- showPublished && article.published && React__default.createElement(
469
- 'p',
470
- { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
471
- moment(article.published).format('MMMM DD, YYYY')
472
- ),
473
- showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
474
- return renderAuthor(authorDetail, index, article.authorMapping.length);
475
- }),
476
- article.source && React__default.createElement(
477
- 'p',
478
- { className: 'p-0 mb-1' },
479
- article.source
480
- ),
481
- showCategory && article.contentCategory && React__default.createElement(
482
- 'p',
483
- {
484
- style: {
485
- background: '#3FB618',
486
- color: '#ffffff',
487
- marginBottom: '.25rem',
488
- display: 'inline-block',
489
- padding: '0 .25rem',
490
- fontSize: '.8rem'
491
- } },
492
- article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
493
- ),
494
- article.summary && React__default.createElement(
495
- 'p',
496
- { className: 'pt-2 card-text' },
497
- clean_html_1(article.summary)
460
+ React__default.createElement(
461
+ Media$1.Body,
462
+ null,
463
+ React__default.createElement(
464
+ 'a',
465
+ { href: mapping[contentCategoryName] + '/' + article.url.current },
466
+ article.title && React__default.createElement(
467
+ 'h4',
468
+ { className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
469
+ article.title
470
+ )
471
+ ),
472
+ showPublished && article.published && React__default.createElement(
473
+ 'p',
474
+ { className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
475
+ moment(article.published).format('MMMM DD, YYYY')
476
+ ),
477
+ showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
478
+ return renderAuthor(authorDetail, index, article.authorMapping.length);
479
+ }),
480
+ article.source && React__default.createElement(
481
+ 'p',
482
+ { className: 'p-0 mb-1' },
483
+ article.source
484
+ ),
485
+ showCategory && article.contentCategory && React__default.createElement(
486
+ 'p',
487
+ {
488
+ style: {
489
+ background: '#3FB618',
490
+ color: '#ffffff',
491
+ marginBottom: '.25rem',
492
+ display: 'inline-block',
493
+ padding: '0 .25rem',
494
+ fontSize: '.8rem'
495
+ } },
496
+ article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
497
+ ),
498
+ article.summary && React__default.createElement(
499
+ 'p',
500
+ { className: 'pt-2 card-text' },
501
+ clean_html_1(article.summary)
502
+ )
498
503
  )
499
504
  )
500
505
  )
501
- )
502
- ),
503
- main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
504
- );
506
+ ),
507
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
508
+ );
509
+ } else return null;
505
510
  }) : React__default.createElement(
506
511
  'div',
507
512
  null,
@@ -577,7 +582,9 @@ var InfiniteScrollDeck = function InfiniteScrollDeck(props) {
577
582
  rightItems = props.rightItems,
578
583
  brandInsightAd = props.brandInsightAd,
579
584
  _props$showBI = props.showBI,
580
- showBI = _props$showBI === undefined ? false : _props$showBI;
585
+ showBI = _props$showBI === undefined ? false : _props$showBI,
586
+ _props$heroContent = props.heroContent,
587
+ heroContent = _props$heroContent === undefined ? 0 : _props$heroContent;
581
588
  var initialCurrentPage = props.currentPage,
582
589
  showPublished = props.showPublished;
583
590
 
@@ -652,7 +659,7 @@ var InfiniteScrollDeck = function InfiniteScrollDeck(props) {
652
659
  React__default.createElement(
653
660
  Container,
654
661
  null,
655
- cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage)
662
+ cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent)
656
663
  )
657
664
  ),
658
665
  React__default.createElement(
@@ -666,7 +673,7 @@ var InfiniteScrollDeck = function InfiniteScrollDeck(props) {
666
673
  React__default.createElement(
667
674
  Container,
668
675
  null,
669
- cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage)
676
+ cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent)
670
677
  ),
671
678
  React__default.createElement(
672
679
  'div',
@@ -6289,7 +6296,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6289
6296
  var duration = player.getDuration();
6290
6297
  var queue = Math.floor(duration / 10);
6291
6298
  var segment = Math.floor(current / queue);
6292
- Beam.report_beam_video('Ready', main_16, duration, current, segment);
6299
+ Beam$1.report_beam_video('Ready', main_16, duration, current, segment);
6293
6300
  };
6294
6301
 
6295
6302
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -6299,7 +6306,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6299
6306
  var segment = Math.floor(current / queue);
6300
6307
 
6301
6308
  if (!queueProgress.includes(segment)) {
6302
- Beam.report_beam_video('Segment', main_16, duration, current, segment);
6309
+ Beam$1.report_beam_video('Segment', main_16, duration, current, segment);
6303
6310
  queueProgress.push(segment);
6304
6311
  }
6305
6312
  };
@@ -6312,7 +6319,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6312
6319
  var queue = Math.floor(duration / 10);
6313
6320
  var segment = Math.floor(current / queue);
6314
6321
 
6315
- Beam.report_beam_video('Play', main_16, duration, current, segment);
6322
+ Beam$1.report_beam_video('Play', main_16, duration, current, segment);
6316
6323
 
6317
6324
  if (!playReported) {
6318
6325
  setPlayReported(true);
@@ -6331,7 +6338,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6331
6338
  var queue = Math.floor(duration / 10);
6332
6339
  var segment = Math.floor(current / queue);
6333
6340
 
6334
- Beam.report_beam_video('End', main_16, duration, current, segment);
6341
+ Beam$1.report_beam_video('End', main_16, duration, current, segment);
6335
6342
  setEndReported(true);
6336
6343
  clearInterval(intervalID);
6337
6344
  }
@@ -6344,7 +6351,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6344
6351
  var queue = Math.floor(duration / 10);
6345
6352
  var segment = Math.floor(current / queue);
6346
6353
 
6347
- Beam.report_beam_video('Pause', main_16, duration, current, segment);
6354
+ Beam$1.report_beam_video('Pause', main_16, duration, current, segment);
6348
6355
  };
6349
6356
 
6350
6357
  return React__default.createElement(YouTube, { videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd });
@@ -8906,14 +8913,88 @@ var Video = function Video(_ref) {
8906
8913
  playlistID = node.playlistID,
8907
8914
  experienceID = node.experienceID;
8908
8915
 
8916
+
8917
+ var onVideoSuccess = function onVideoSuccess(success) {
8918
+ //console.log('success:', success.ref)
8919
+ var player = success.ref;
8920
+
8921
+ // this is video ready
8922
+ player.on('loadedmetadata', function (evt) {
8923
+ //console.log('loadedmetadata:', evt)
8924
+ console.log('mediainfo:', player.mediainfo); // get the duration from here
8925
+ var duration = player.mediainfo.duration;
8926
+ var current = player.currentTime();
8927
+ var queue = Math.floor(duration / 10);
8928
+ var segment = Math.floor(current / queue);
8929
+
8930
+ Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8931
+ });
8932
+
8933
+ // play
8934
+ player.on('play', function (evt) {
8935
+ var duration = player.mediainfo.duration;
8936
+ var current = player.currentTime();
8937
+ var queue = Math.floor(duration / 10);
8938
+ var segment = Math.floor(current / queue);
8939
+ Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8940
+ });
8941
+
8942
+ // pause
8943
+ player.on('pause', function (evt) {
8944
+ var duration = player.mediainfo.duration;
8945
+ var current = player.currentTime();
8946
+ var queue = Math.floor(duration / 10);
8947
+ var segment = Math.floor(current / queue);
8948
+ Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8949
+ });
8950
+
8951
+ // end
8952
+ player.on('ended', function (evt) {
8953
+ var duration = player.mediainfo.duration;
8954
+ var current = player.currentTime();
8955
+ var queue = Math.floor(duration / 10);
8956
+ var segment = Math.floor(current / queue);
8957
+ Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8958
+ });
8959
+
8960
+ player.on('timeupdate', function (evt) {
8961
+ var duration = player.mediainfo.duration;
8962
+ var current = player.currentTime();
8963
+ var queue = Math.floor(duration / 10);
8964
+ var segment = Math.floor(current / queue);
8965
+ if (!queueProgress.includes(segment)) {
8966
+ Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8967
+ queueProgress.push(segment);
8968
+ }
8969
+ });
8970
+
8971
+ // ad impression
8972
+ player.on('ads-ad-started', function (evt) {
8973
+ var duration = player.ads.ad.duration;
8974
+ var id = player.ads.ad.id;
8975
+ var adType = 'Bright Cove: ' + player.ads.ad.type;
8976
+
8977
+ Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id);
8978
+ });
8979
+
8980
+ // ad ended
8981
+ player.on('ads-ad-ended', function (evt) {
8982
+ var duration = player.ads.ad.duration;
8983
+ var id = player.ads.ad.id;
8984
+ var adType = 'Bright Cove: ' + player.ads.ad.type;
8985
+ Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id);
8986
+ });
8987
+ };
8988
+
8909
8989
  if (source === 'brightcove' && accountIDs.brightcove) {
8910
8990
  if (videoID) {
8911
- return React__default.createElement(ReactPlayerLoader, { accountId: accountIDs.brightcove.accountId, videoId: videoID, playerId: accountIDs.brightcove.playerId, attrs: { className: 'brightcove' } });
8991
+ return React__default.createElement(ReactPlayerLoader, { onSuccess: onVideoSuccess, accountId: accountIDs.brightcove.accountId, videoId: videoID, playerId: accountIDs.brightcove.playerId, attrs: { className: 'brightcove' } });
8912
8992
  } else if (playlistID) {
8913
8993
  return React__default.createElement(ReactPlayerLoader, {
8914
8994
  accountId: accountIDs.brightcove.accountId,
8915
8995
  playlistId: playlistID,
8916
8996
  playerId: accountIDs.brightcove.playerId,
8997
+ onSuccess: onVideoSuccess,
8917
8998
  attrs: { className: 'brightcove brightcove-playlist' }
8918
8999
  });
8919
9000
  } else if (experienceID) {
@@ -13524,7 +13605,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13524
13605
  var duration = player.duration;
13525
13606
  var queue = Math.floor(duration / 10);
13526
13607
  var segment = Math.floor(current / queue);
13527
- Beam.report_beam_video('Ready', main_16, duration, current, segment);
13608
+ Beam$1.report_beam_video('Ready', main_16, duration, current, segment);
13528
13609
  };
13529
13610
 
13530
13611
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -13533,7 +13614,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13533
13614
  var queue = Math.floor(duration / 10);
13534
13615
  var segment = Math.floor(current / queue);
13535
13616
  if (!queueProgress.includes(segment)) {
13536
- Beam.report_beam_video('Segment', main_16, duration, current, segment);
13617
+ Beam$1.report_beam_video('Segment', main_16, duration, current, segment);
13537
13618
  queueProgress.push(segment);
13538
13619
  }
13539
13620
  };
@@ -13545,7 +13626,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13545
13626
  var duration = player.duration;
13546
13627
  var queue = Math.floor(duration / 10);
13547
13628
  var segment = Math.floor(current / queue);
13548
- Beam.report_beam_video('Play', main_16, duration, current, segment);
13629
+ Beam$1.report_beam_video('Play', main_16, duration, current, segment);
13549
13630
 
13550
13631
  if (!playReported) {
13551
13632
  event.persist();
@@ -13565,7 +13646,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13565
13646
  var queue = Math.floor(duration / 10);
13566
13647
  var segment = Math.floor(current / queue);
13567
13648
 
13568
- Beam.report_beam_video('End', main_16, duration, current, segment);
13649
+ Beam$1.report_beam_video('End', main_16, duration, current, segment);
13569
13650
  setEndReported(true);
13570
13651
  clearInterval(intervalID);
13571
13652
  }
@@ -13577,7 +13658,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13577
13658
  var duration = player.duration - current;
13578
13659
  var queue = Math.floor(duration / 10);
13579
13660
  var segment = Math.floor(current / queue);
13580
- Beam.report_beam_video('Pause', main_16, duration, current, segment);
13661
+ Beam$1.report_beam_video('Pause', main_16, duration, current, segment);
13581
13662
  };
13582
13663
 
13583
13664
  return React__default.createElement(
@@ -13744,7 +13825,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13744
13825
  var duration = player.getDuration();
13745
13826
  var queue = Math.floor(duration / 10);
13746
13827
  var segment = Math.floor(current / queue);
13747
- Beam.report_beam_video('Ready', main_16, duration, current, segment);
13828
+ Beam$1.report_beam_video('Ready', main_16, duration, current, segment);
13748
13829
 
13749
13830
  //autoplay
13750
13831
 
@@ -13765,7 +13846,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13765
13846
  var queue = Math.floor(duration / 10);
13766
13847
  var segment = Math.floor(current / queue);
13767
13848
 
13768
- Beam.report_beam_video('End', main_16, duration, current, segment);
13849
+ Beam$1.report_beam_video('End', main_16, duration, current, segment);
13769
13850
  setEndReported(true);
13770
13851
  clearInterval(intervalID);
13771
13852
  }
@@ -13794,7 +13875,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13794
13875
  var queue = Math.floor(duration / 10);
13795
13876
  var segment = Math.floor(current / queue);
13796
13877
  if (!queueProgress.includes(segment)) {
13797
- Beam.report_beam_video('Segment', main_16, duration, current, segment);
13878
+ Beam$1.report_beam_video('Segment', main_16, duration, current, segment);
13798
13879
  queueProgress.push(segment);
13799
13880
  }
13800
13881
  };
@@ -13807,7 +13888,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13807
13888
  var queue = Math.floor(duration / 10);
13808
13889
  var segment = Math.floor(current / queue);
13809
13890
 
13810
- Beam.report_beam_video('Play', main_16, duration, current, segment);
13891
+ Beam$1.report_beam_video('Play', main_16, duration, current, segment);
13811
13892
 
13812
13893
  if (!playReported) {
13813
13894
  setPlayReported(true);
@@ -13825,7 +13906,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13825
13906
  var queue = Math.floor(duration / 10);
13826
13907
  var segment = Math.floor(current / queue);
13827
13908
 
13828
- Beam.report_beam_video('Pause', main_16, duration, current, segment);
13909
+ Beam$1.report_beam_video('Pause', main_16, duration, current, segment);
13829
13910
  };
13830
13911
 
13831
13912
  // Youtube Options
@@ -14300,7 +14381,7 @@ var NativeAd = function NativeAd(props) {
14300
14381
  };
14301
14382
 
14302
14383
  var Figure = dynamic(function () {
14303
- return import('./Figure-6394d22a.js');
14384
+ return import('./Figure-d0930225.js');
14304
14385
  }, { ssr: false });
14305
14386
 
14306
14387
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -16899,14 +16980,22 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
16899
16980
  'a',
16900
16981
  { href: '/authors/' + authorURL.current, key: index },
16901
16982
  authorName,
16902
- length !== index + 1 && React__default.createElement('br', null)
16983
+ length !== index + 1 && React__default.createElement(
16984
+ 'span',
16985
+ { style: { paddingLeft: 7, paddingRight: 7 } },
16986
+ '|'
16987
+ )
16903
16988
  );
16904
16989
  } else if (authorName) {
16905
16990
  return React__default.createElement(
16906
16991
  'span',
16907
16992
  { key: index },
16908
16993
  authorName,
16909
- length !== index + 1 && React__default.createElement('br', null)
16994
+ length !== index + 1 && React__default.createElement(
16995
+ 'span',
16996
+ { style: { paddingLeft: 7, paddingRight: 7 } },
16997
+ '|'
16998
+ )
16910
16999
  );
16911
17000
  }
16912
17001
  };
@@ -17096,16 +17185,10 @@ var Article = function Article(props) {
17096
17185
  blocks: [].concat(_toConsumableArray(body.slice(0, selectedIndex))),
17097
17186
  imageOptions: { w: 320, h: 240, fit: 'max' }
17098
17187
  }, client.config())),
17099
- React__default.createElement('p', { className: 'clearfix' }),
17100
17188
  React__default.createElement(
17101
17189
  'div',
17102
17190
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
17103
- React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound })),
17104
- React__default.createElement(
17105
- 'style',
17106
- { jsx: 'true' },
17107
- '\n .contextual-native-ad .adunitContainer {\n position: absolute;\n }\n '
17108
- )
17191
+ React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound }))
17109
17192
  ),
17110
17193
  React__default.createElement(BlockContent, _extends$2({
17111
17194
  serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage),
@@ -17198,7 +17281,7 @@ var Article = function Article(props) {
17198
17281
  { className: 'mb-3' },
17199
17282
  authorDetails && authorDetails.map(function (authorDetail, index) {
17200
17283
  return React__default.createElement(
17201
- 'div',
17284
+ 'span',
17202
17285
  { key: index },
17203
17286
  renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length)
17204
17287
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.372",
3
+ "version": "1.0.374",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",