@mjhls/mjh-framework 1.0.389 → 1.0.390

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
@@ -6409,170 +6409,6 @@ var TableShow = function TableShow(_ref) {
6409
6409
  );
6410
6410
  };
6411
6411
 
6412
- var download = createCommonjsModule(function (module, exports) {
6413
- //download.js v4.2, by dandavis; 2008-2016. [MIT] see http://danml.com/download.html for tests/usage
6414
- // v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime
6415
- // v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.URL support for larger+faster saves than dataURLs
6416
- // v3 added dataURL and Blob Input, bind-toggle arity, and legacy dataURL fallback was improved with force-download mime and base64 support. 3.1 improved safari handling.
6417
- // v4 adds AMD/UMD, commonJS, and plain browser support
6418
- // v4.1 adds url download capability via solo URL argument (same domain/CORS only)
6419
- // v4.2 adds semantic variable names, long (over 2MB) dataURL support, and hidden by default temp anchors
6420
- // https://github.com/rndme/download
6421
-
6422
- (function (root, factory) {
6423
- {
6424
- // Node. Does not work with strict CommonJS, but
6425
- // only CommonJS-like environments that support module.exports,
6426
- // like Node.
6427
- module.exports = factory();
6428
- }
6429
- }(commonjsGlobal, function () {
6430
-
6431
- return function download(data, strFileName, strMimeType) {
6432
-
6433
- var self = window, // this script is only for browsers anyway...
6434
- defaultMime = "application/octet-stream", // this default mime also triggers iframe downloads
6435
- mimeType = strMimeType || defaultMime,
6436
- payload = data,
6437
- url = !strFileName && !strMimeType && payload,
6438
- anchor = document.createElement("a"),
6439
- toString = function(a){return String(a);},
6440
- myBlob = (self.Blob || self.MozBlob || self.WebKitBlob || toString),
6441
- fileName = strFileName || "download",
6442
- blob,
6443
- reader;
6444
- myBlob= myBlob.call ? myBlob.bind(self) : Blob ;
6445
-
6446
- if(String(this)==="true"){ //reverse arguments, allowing download.bind(true, "text/xml", "export.xml") to act as a callback
6447
- payload=[payload, mimeType];
6448
- mimeType=payload[0];
6449
- payload=payload[1];
6450
- }
6451
-
6452
-
6453
- if(url && url.length< 2048){ // if no filename and no mime, assume a url was passed as the only argument
6454
- fileName = url.split("/").pop().split("?")[0];
6455
- anchor.href = url; // assign href prop to temp anchor
6456
- if(anchor.href.indexOf(url) !== -1){ // if the browser determines that it's a potentially valid url path:
6457
- var ajax=new XMLHttpRequest();
6458
- ajax.open( "GET", url, true);
6459
- ajax.responseType = 'blob';
6460
- ajax.onload= function(e){
6461
- download(e.target.response, fileName, defaultMime);
6462
- };
6463
- setTimeout(function(){ ajax.send();}, 0); // allows setting custom ajax headers using the return:
6464
- return ajax;
6465
- } // end if valid url?
6466
- } // end if url?
6467
-
6468
-
6469
- //go ahead and download dataURLs right away
6470
- if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(payload)){
6471
-
6472
- if(payload.length > (1024*1024*1.999) && myBlob !== toString ){
6473
- payload=dataUrlToBlob(payload);
6474
- mimeType=payload.type || defaultMime;
6475
- }else {
6476
- return navigator.msSaveBlob ? // IE10 can't do a[download], only Blobs:
6477
- navigator.msSaveBlob(dataUrlToBlob(payload), fileName) :
6478
- saver(payload) ; // everyone else can save dataURLs un-processed
6479
- }
6480
-
6481
- }else {//not data url, is it a string with special needs?
6482
- if(/([\x80-\xff])/.test(payload)){
6483
- var i=0, tempUiArr= new Uint8Array(payload.length), mx=tempUiArr.length;
6484
- for(i;i<mx;++i) tempUiArr[i]= payload.charCodeAt(i);
6485
- payload=new myBlob([tempUiArr], {type: mimeType});
6486
- }
6487
- }
6488
- blob = payload instanceof myBlob ?
6489
- payload :
6490
- new myBlob([payload], {type: mimeType}) ;
6491
-
6492
-
6493
- function dataUrlToBlob(strUrl) {
6494
- var parts= strUrl.split(/[:;,]/),
6495
- type= parts[1],
6496
- decoder= parts[2] == "base64" ? atob : decodeURIComponent,
6497
- binData= decoder( parts.pop() ),
6498
- mx= binData.length,
6499
- i= 0,
6500
- uiArr= new Uint8Array(mx);
6501
-
6502
- for(i;i<mx;++i) uiArr[i]= binData.charCodeAt(i);
6503
-
6504
- return new myBlob([uiArr], {type: type});
6505
- }
6506
-
6507
- function saver(url, winMode){
6508
-
6509
- if ('download' in anchor) { //html5 A[download]
6510
- anchor.href = url;
6511
- anchor.setAttribute("download", fileName);
6512
- anchor.className = "download-js-link";
6513
- anchor.innerHTML = "downloading...";
6514
- anchor.style.display = "none";
6515
- document.body.appendChild(anchor);
6516
- setTimeout(function() {
6517
- anchor.click();
6518
- document.body.removeChild(anchor);
6519
- if(winMode===true){setTimeout(function(){ self.URL.revokeObjectURL(anchor.href);}, 250 );}
6520
- }, 66);
6521
- return true;
6522
- }
6523
-
6524
- // handle non-a[download] safari as best we can:
6525
- if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent)) {
6526
- if(/^data:/.test(url)) url="data:"+url.replace(/^data:([\w\/\-\+]+)/, defaultMime);
6527
- if(!window.open(url)){ // popup blocked, offer direct download:
6528
- if(confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")){ location.href=url; }
6529
- }
6530
- return true;
6531
- }
6532
-
6533
- //do iframe dataURL download (old ch+FF):
6534
- var f = document.createElement("iframe");
6535
- document.body.appendChild(f);
6536
-
6537
- if(!winMode && /^data:/.test(url)){ // force a mime that will download:
6538
- url="data:"+url.replace(/^data:([\w\/\-\+]+)/, defaultMime);
6539
- }
6540
- f.src=url;
6541
- setTimeout(function(){ document.body.removeChild(f); }, 333);
6542
-
6543
- }//end saver
6544
-
6545
-
6546
-
6547
-
6548
- if (navigator.msSaveBlob) { // IE10+ : (has Blob, but not a[download] or URL)
6549
- return navigator.msSaveBlob(blob, fileName);
6550
- }
6551
-
6552
- if(self.URL){ // simple fast and modern way using Blob and URL:
6553
- saver(self.URL.createObjectURL(blob), true);
6554
- }else {
6555
- // handle non-Blob()+non-URL browsers:
6556
- if(typeof blob === "string" || blob.constructor===toString ){
6557
- try{
6558
- return saver( "data:" + mimeType + ";base64," + self.btoa(blob) );
6559
- }catch(y){
6560
- return saver( "data:" + mimeType + "," + encodeURIComponent(blob) );
6561
- }
6562
- }
6563
-
6564
- // Blob but not URL support:
6565
- reader=new FileReader();
6566
- reader.onload=function(e){
6567
- saver(this.result);
6568
- };
6569
- reader.readAsDataURL(blob);
6570
- }
6571
- return true;
6572
- }; /* end download() */
6573
- }));
6574
- });
6575
-
6576
6412
  var Media = function Media(_ref) {
6577
6413
  var node = _ref.node,
6578
6414
  client = _ref.client;
@@ -6661,9 +6497,7 @@ var Media = function Media(_ref) {
6661
6497
  return React__default.createElement(
6662
6498
  'a',
6663
6499
  _extends$2({}, uploadDoc.downloadMedia ? {
6664
- onClick: function onClick() {
6665
- download(uploadDoc.asset.url);
6666
- }
6500
+ href: uploadDoc.asset.url + '?dl='
6667
6501
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
6668
6502
  style: { paddingLeft: '4px', paddingRight: '4px' },
6669
6503
  id: 'media-link' }),
@@ -15714,38 +15548,41 @@ var fbsHero = function fbsHero(props) {
15714
15548
  'div',
15715
15549
  { className: 'article-hero' },
15716
15550
  React__default.createElement(
15717
- 'a',
15718
- { href: '/view/' + topArticle.url.current },
15551
+ 'div',
15552
+ { className: 'fbs-top-article' },
15719
15553
  React__default.createElement(
15720
15554
  'div',
15721
- { className: 'fbs-top-article' },
15555
+ { className: 'fbs-top-article--img' },
15722
15556
  React__default.createElement(
15723
- 'div',
15724
- { className: 'fbs-top-article--img' },
15557
+ 'a',
15558
+ { href: '/view/' + topArticle.url.current },
15725
15559
  React__default.createElement('img', { src: topArticleThumbnail, alt: topArticleAltText })
15726
- ),
15560
+ )
15561
+ ),
15562
+ React__default.createElement(
15563
+ 'div',
15564
+ { className: 'fbs-top-article--body' },
15727
15565
  React__default.createElement(
15728
- 'div',
15729
- { className: 'fbs-top-article--body' },
15566
+ 'a',
15567
+ { href: '/view/' + topArticle.url.current },
15730
15568
  React__default.createElement(
15731
15569
  'h1',
15732
15570
  null,
15733
15571
  topArticle.title
15734
- ),
15572
+ )
15573
+ ),
15574
+ React__default.createElement(
15575
+ 'p',
15576
+ null,
15577
+ moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
15578
+ ),
15579
+ topArticle.authorMapping && topArticle.authorMapping.length > 0 && React__default.createElement(
15580
+ 'div',
15581
+ { className: 'author-wrapper' },
15735
15582
  React__default.createElement(
15736
- 'p',
15737
- null,
15738
- moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
15739
- ),
15740
- topArticle.authorMapping && topArticle.authorMapping[0] && React__default.createElement(
15741
- 'p',
15742
- null,
15743
- 'By ',
15744
- React__default.createElement(
15745
- 'b',
15746
- null,
15747
- topArticle.authorMapping[0].displayName
15748
- )
15583
+ LazyLoad,
15584
+ { height: 50 },
15585
+ React__default.createElement(AuthorComponent, { key: topArticle.url.current, index: topArticle.url.current, authors: topArticle.authorMapping })
15749
15586
  )
15750
15587
  )
15751
15588
  )
@@ -15764,31 +15601,34 @@ var fbsHero = function fbsHero(props) {
15764
15601
  }
15765
15602
 
15766
15603
  return React__default.createElement(
15767
- 'a',
15768
- { key: index, href: '/view/' + article.url.current, className: 'fbs-sub-article' },
15769
- React__default.createElement('img', { src: articleThumbnail, alt: articleAltText }),
15604
+ 'div',
15605
+ { key: index, className: 'fbs-sub-article' },
15606
+ React__default.createElement(
15607
+ 'a',
15608
+ { href: '/view/' + article.url.current },
15609
+ React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
15610
+ ),
15770
15611
  React__default.createElement(
15771
15612
  'div',
15772
15613
  null,
15773
15614
  React__default.createElement(
15774
- 'h2',
15775
- { className: 'fbs-sub-article--title' },
15776
- article.title
15615
+ 'a',
15616
+ { href: '/view/' + article.url.current },
15617
+ React__default.createElement(
15618
+ 'h2',
15619
+ { className: 'fbs-sub-article--title' },
15620
+ article.title
15621
+ )
15777
15622
  ),
15778
15623
  React__default.createElement(
15779
15624
  'p',
15780
15625
  null,
15781
15626
  moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
15782
15627
  ),
15783
- article.authorMapping && article.authorMapping[0] && React__default.createElement(
15784
- 'p',
15785
- null,
15786
- 'By ',
15787
- React__default.createElement(
15788
- 'b',
15789
- null,
15790
- article.authorMapping[0].displayName
15791
- )
15628
+ article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
15629
+ LazyLoad,
15630
+ { height: 50 },
15631
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
15792
15632
  )
15793
15633
  )
15794
15634
  );
@@ -15797,7 +15637,7 @@ var fbsHero = function fbsHero(props) {
15797
15637
  React__default.createElement(
15798
15638
  'style',
15799
15639
  { jsx: 'true' },
15800
- '\n .article-hero {\n margin-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n padding-bottom: 0.5rem;\n }\n .fbs-top-article {\n width: 100%;\n margin-bottom: 1rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n }\n .fbs-top-article img {\n width: 100%;\n\n max-height: 300px;\n min-height: 275px;\n object-fit: cover;\n \n }\n\n .fbs-top-article--body {\n }\n .fbs-top-article--body h1 {\n color: #252525 !important;\n font-size: 1.6rem;\n font-weight: bold;\n text-align: center;\n margin-top: 1rem;\n }\n .fbs-top-article--body p {\n text-align: center;\n margin-bottom: 0;\n color: #252525;\n }\n .fbs-top-article--body p:first-of-type {\n font-size: 0.9rem;\n }\n .fbs-sub-article-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n padding-top: 1.75rem;\n margin-left: -1rem;\n margin-rigth: -1rem;\n }\n .fbs-sub-article {\n width: calc(50% - 2rem);\n min-width: 350px;\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n margin: 0 1rem 1.75rem;\n }\n .fbs-sub-article img {\n margin-right: 1rem;\n width: 145px;\n min-width: 145px;\n max-height: 100px;\n object-fit: cover;\n }\n .fbs-sub-article p {\n margin-bottom: 0;\n font-size: 0.8rem;\n color: #252525;\n }\n .fbs-sub-article .fbs-sub-article--title {\n font-weight: bold;\n font-size: 1rem;\n color: #252525;\n }\n '
15640
+ '\n .author-wrapper {\n text-align: center;\n }\n .article-hero {\n margin-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n padding-bottom: 0.5rem;\n }\n .fbs-top-article {\n width: 100%;\n margin-bottom: 1rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n }\n .fbs-top-article img {\n width: 100%;\n\n max-height: 300px;\n min-height: 275px;\n object-fit: cover;\n }\n\n .fbs-top-article--body {\n }\n .fbs-top-article--body h1 {\n color: #252525 !important;\n font-size: 1.6rem;\n font-weight: bold;\n text-align: center;\n margin-top: 1rem;\n }\n .fbs-top-article--body p {\n text-align: center;\n margin-bottom: 0;\n color: #252525;\n }\n .fbs-top-article--body p:first-of-type {\n font-size: 0.9rem;\n }\n .fbs-sub-article-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n padding-top: 1.75rem;\n margin-left: -1rem;\n margin-rigth: -1rem;\n }\n .fbs-sub-article {\n width: calc(50% - 2rem);\n min-width: 350px;\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n margin: 0 1rem 1.75rem;\n }\n .fbs-sub-article img {\n margin-right: 1rem;\n width: 145px;\n min-width: 145px;\n max-height: 100px;\n object-fit: cover;\n }\n .fbs-sub-article p {\n margin-bottom: 0;\n font-size: 0.8rem;\n color: #252525;\n }\n .fbs-sub-article .fbs-sub-article--title {\n font-weight: bold;\n font-size: 1rem;\n color: #252525;\n }\n '
15801
15641
  )
15802
15642
  );
15803
15643
  };
@@ -16029,31 +15869,38 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
16029
15869
  articleThumbnail = props.thumbnail;
16030
15870
  }
16031
15871
  return React__default.createElement(
16032
- 'a',
16033
- { key: index, href: '/view/' + article.url.current, className: 'sub-article' },
15872
+ 'div',
15873
+ { key: index, className: 'sub-article' },
16034
15874
  React__default.createElement(
16035
- 'figure',
16036
- null,
16037
- React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
15875
+ 'a',
15876
+ { href: '/view/' + article.url.current },
15877
+ React__default.createElement(
15878
+ 'figure',
15879
+ null,
15880
+ React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
15881
+ )
16038
15882
  ),
16039
15883
  React__default.createElement(
16040
15884
  'div',
16041
15885
  { className: 'sub-article--body' },
16042
15886
  React__default.createElement(
16043
- 'h2',
16044
- null,
16045
- article.title
15887
+ 'a',
15888
+ { href: '/view/' + article.url.current },
15889
+ React__default.createElement(
15890
+ 'h2',
15891
+ null,
15892
+ article.title
15893
+ )
16046
15894
  ),
16047
15895
  React__default.createElement('div', null),
16048
15896
  moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
16049
- article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
16050
- 'p',
16051
- { className: 'mb-2' },
16052
- 'By ',
15897
+ article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
15898
+ 'div',
15899
+ { className: 'author-wrapper' },
16053
15900
  React__default.createElement(
16054
- 'b',
16055
- null,
16056
- article.authorMapping[0].displayName
15901
+ LazyLoad,
15902
+ { height: 50 },
15903
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
16057
15904
  )
16058
15905
  )
16059
15906
  )
@@ -16077,31 +15924,38 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
16077
15924
  articleThumbnail = props.thumbnail;
16078
15925
  }
16079
15926
  return React__default.createElement(
16080
- 'a',
16081
- { key: index, href: '/view/' + article.url.current, className: 'sub-article' },
15927
+ 'div',
15928
+ { key: index, className: 'sub-article' },
16082
15929
  React__default.createElement(
16083
- 'figure',
16084
- null,
16085
- React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
15930
+ 'a',
15931
+ { href: '/view/' + article.url.current },
15932
+ React__default.createElement(
15933
+ 'figure',
15934
+ null,
15935
+ React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
15936
+ )
16086
15937
  ),
16087
15938
  React__default.createElement(
16088
15939
  'div',
16089
15940
  { className: 'sub-article--body' },
16090
15941
  React__default.createElement(
16091
- 'h2',
16092
- null,
16093
- article.title
15942
+ 'a',
15943
+ { href: '/view/' + article.url.current },
15944
+ React__default.createElement(
15945
+ 'h2',
15946
+ null,
15947
+ article.title
15948
+ )
16094
15949
  ),
16095
15950
  React__default.createElement('div', null),
16096
15951
  moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
16097
- article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
16098
- 'p',
16099
- { className: 'mb-2' },
16100
- 'By ',
15952
+ article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
15953
+ 'div',
15954
+ { className: 'author-wrapper' },
16101
15955
  React__default.createElement(
16102
- 'b',
16103
- null,
16104
- article.authorMapping[0].displayName
15956
+ LazyLoad,
15957
+ { height: 50 },
15958
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
16105
15959
  )
16106
15960
  )
16107
15961
  )
@@ -16121,31 +15975,38 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
16121
15975
  articleThumbnail = props.thumbnail;
16122
15976
  }
16123
15977
  return React__default.createElement(
16124
- 'a',
16125
- { key: index, href: '/view/' + article.url.current, className: 'sub-article' },
15978
+ 'div',
15979
+ { key: index, className: 'sub-article' },
16126
15980
  React__default.createElement(
16127
- 'figure',
16128
- null,
16129
- React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
15981
+ 'a',
15982
+ { href: '/view/' + article.url.current },
15983
+ React__default.createElement(
15984
+ 'figure',
15985
+ null,
15986
+ React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
15987
+ )
16130
15988
  ),
16131
15989
  React__default.createElement(
16132
15990
  'div',
16133
15991
  { className: 'sub-article--body' },
16134
15992
  React__default.createElement(
16135
- 'h2',
16136
- null,
16137
- article.title
15993
+ 'a',
15994
+ { href: '/view/' + article.url.current },
15995
+ React__default.createElement(
15996
+ 'h2',
15997
+ null,
15998
+ article.title
15999
+ )
16138
16000
  ),
16139
16001
  React__default.createElement('div', null),
16140
16002
  moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
16141
- article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
16142
- 'p',
16143
- { className: 'mb-2' },
16144
- 'By ',
16003
+ article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
16004
+ 'div',
16005
+ { className: 'author-wrapper' },
16145
16006
  React__default.createElement(
16146
- 'b',
16147
- null,
16148
- article.authorMapping[0].displayName
16007
+ LazyLoad,
16008
+ { height: 50 },
16009
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
16149
16010
  )
16150
16011
  )
16151
16012
  )
@@ -16156,7 +16017,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
16156
16017
  React__default.createElement(
16157
16018
  'style',
16158
16019
  { jsx: 'true' },
16159
- '\n .article-hero-container {\n margin: 0 -0.8rem;\n }\n @media screen and (min-width: 1400px) {\n .article-hero-container {\n display: flex;\n flex-direction: row;\n margin-bottom: 30px;\n }\n .top-outer {\n width: 50%;\n }\n .sub-outer-container {\n width: 50%;\n }\n }\n .top-article {\n // width: 50%;\n margin: 0 1rem;\n height: 100%;\n display: block;\n }\n .top-article figure {\n width: 100%;\n height: 60%;\n }\n .top-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .top-article--body h1 {\n font-size: 1.4rem;\n color: black !important;\n font-weight: bold;\n }\n // .sub-articles-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n .sub-article {\n margin: 0 1rem 1rem;\n display: flex;\n flex-direction: row;\n }\n .sub-article figure {\n width: 125px;\n }\n .sub-article figure img {\n width: 125px;\n height: auto;\n object-fit: cover;\n }\n .sub-article--body {\n padding-left: 1rem;\n font-size: 0.9rem;\n }\n .sub-article--body h2 {\n font-size: 1rem;\n font-weight: bold;\n }\n @media screen and (max-width: 1368px) {\n .article-hero-container {\n flex-direction: column;\n }\n .top-article {\n // width: unset;\n flex: 1 1 auto;\n }\n .sub-articles-container {\n width: 100%;\n margin-top: 1rem;\n min-width: 280px;\n }\n }\n @media screen and (max-width: 1399px) and (min-width: 992px) {\n .top-article {\n // width: 50%;\n flex: 1 1 auto;\n margin-bottom: 1rem;\n }\n .middle-group {\n display: none;\n }\n .middle-single {\n display: block !important;\n margin-top: 0 !important;\n }\n .top-article figure img {\n max-height: 180px !important;\n }\n .top-article-summary {\n display: none;\n }\n }\n // @media only screen and (min-width) {\n // .sub-outer-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n // }\n .middle-single {\n display: none;\n }\n .top-outer {\n display: flex;\n }\n '
16020
+ '\n .article-hero-container {\n margin: 0 -0.8rem;\n }\n .author-wrapper {\n font-style: normal !important;\n }\n @media screen and (min-width: 1400px) {\n .article-hero-container {\n display: flex;\n flex-direction: row;\n margin-bottom: 30px;\n }\n .top-outer {\n width: 50%;\n }\n .sub-outer-container {\n width: 50%;\n }\n }\n .top-article {\n // width: 50%;\n margin: 0 1rem;\n height: 100%;\n display: block;\n }\n .top-article figure {\n width: 100%;\n height: 60%;\n }\n .top-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .top-article--body h1 {\n font-size: 1.4rem;\n color: black !important;\n font-weight: bold;\n }\n // .sub-articles-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n .sub-article {\n margin: 0 1rem 1rem;\n display: flex;\n flex-direction: row;\n }\n .sub-article figure {\n width: 125px;\n }\n .sub-article figure img {\n width: 125px;\n height: auto;\n object-fit: cover;\n }\n .sub-article--body {\n padding-left: 1rem;\n font-size: 0.9rem;\n }\n .sub-article--body h2 {\n font-size: 1rem;\n font-weight: bold;\n }\n @media screen and (max-width: 1368px) {\n .article-hero-container {\n flex-direction: column;\n }\n .top-article {\n // width: unset;\n flex: 1 1 auto;\n }\n .sub-articles-container {\n width: 100%;\n margin-top: 1rem;\n min-width: 280px;\n }\n }\n @media screen and (max-width: 1399px) and (min-width: 992px) {\n .top-article {\n // width: 50%;\n flex: 1 1 auto;\n margin-bottom: 1rem;\n }\n .middle-group {\n display: none;\n }\n .middle-single {\n display: block !important;\n margin-top: 0 !important;\n }\n .top-article figure img {\n max-height: 180px !important;\n }\n .top-article-summary {\n display: none;\n }\n }\n // @media only screen and (min-width) {\n // .sub-outer-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n // }\n .middle-single {\n display: none;\n }\n .top-outer {\n display: flex;\n }\n '
16160
16021
  )
16161
16022
  );
16162
16023
  };
@@ -16295,28 +16156,31 @@ var YahooHero = function YahooHero(props) {
16295
16156
  }
16296
16157
 
16297
16158
  return React__default.createElement(
16298
- 'a',
16299
- { href: '/view/' + article.url.current, key: index, className: 'yh-sub-article' },
16300
- React__default.createElement('img', { src: articleThumbnail }),
16159
+ 'div',
16160
+ { key: index, className: 'yh-sub-article' },
16301
16161
  React__default.createElement(
16302
- 'h6',
16303
- { className: 'yh-sub-article--title' },
16304
- article.title
16162
+ 'a',
16163
+ { href: '/view/' + article.url.current },
16164
+ React__default.createElement('img', { src: articleThumbnail })
16165
+ ),
16166
+ React__default.createElement(
16167
+ 'a',
16168
+ { href: '/view/' + article.url.current },
16169
+ React__default.createElement(
16170
+ 'h6',
16171
+ { className: 'yh-sub-article--title' },
16172
+ article.title
16173
+ )
16305
16174
  ),
16306
16175
  React__default.createElement(
16307
16176
  'p',
16308
16177
  { className: 'yh-sub-article--info' },
16309
16178
  moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
16310
16179
  ),
16311
- article.authorMapping && article.authorMapping[0] && React__default.createElement(
16312
- 'p',
16313
- null,
16314
- 'By ',
16315
- React__default.createElement(
16316
- 'b',
16317
- null,
16318
- article.authorMapping[0].displayName
16319
- )
16180
+ article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
16181
+ LazyLoad,
16182
+ { height: 50 },
16183
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
16320
16184
  )
16321
16185
  );
16322
16186
  })
@@ -16324,7 +16188,7 @@ var YahooHero = function YahooHero(props) {
16324
16188
  React__default.createElement(
16325
16189
  'style',
16326
16190
  { jsx: 'true' },
16327
- '\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 315px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
16191
+ '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 315px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
16328
16192
  )
16329
16193
  );
16330
16194
  };
@@ -17483,25 +17347,21 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
17483
17347
 
17484
17348
  if (authorName && authorURL) {
17485
17349
  return React__default.createElement(
17486
- 'a',
17487
- { href: '/' + defaultUrl + '/' + authorURL.current, key: index },
17488
- authorName,
17489
- length !== index + 1 && React__default.createElement(
17490
- 'span',
17491
- { style: { paddingLeft: 7, paddingRight: 7 } },
17492
- '|'
17493
- )
17350
+ 'span',
17351
+ null,
17352
+ React__default.createElement(
17353
+ 'a',
17354
+ { href: '/' + defaultUrl + '/' + authorURL.current, key: index },
17355
+ authorName
17356
+ ),
17357
+ length !== index + 1 && ' , '
17494
17358
  );
17495
17359
  } else if (authorName) {
17496
17360
  return React__default.createElement(
17497
17361
  'span',
17498
17362
  { key: index },
17499
17363
  authorName,
17500
- length !== index + 1 && React__default.createElement(
17501
- 'span',
17502
- { style: { paddingLeft: 7, paddingRight: 7 } },
17503
- '|'
17504
- )
17364
+ length !== index + 1 && ' , '
17505
17365
  );
17506
17366
  }
17507
17367
  };
@@ -17649,7 +17509,7 @@ var Article = function Article(props) {
17649
17509
 
17650
17510
  if (ele['_type'] === 'block' && ele.children.some(function (child) {
17651
17511
  return child.text.trim().length > 0;
17652
- }) && ele['listItem'] !== 'bullet' && ele['style'] === 'normal') {
17512
+ }) && ele['listItem'] !== 'bullet' && ele['style'] === 'normal' || ele['_type'] === 'figure') {
17653
17513
  indexes.push(arr.indexOf(ele));
17654
17514
  }
17655
17515
  }
@@ -17671,10 +17531,13 @@ var Article = function Article(props) {
17671
17531
  return indexes;
17672
17532
  };
17673
17533
  var indexes = findIndex(body);
17674
- if (indexes.length >= 2 && body.length > 3 && payload.contextualAD) {
17534
+ if (indexes.length >= 2 && body.length > 3 && payload.contextualAD && payload.contextualVideoAD) {
17675
17535
  payload = _extends$2({}, payload, {
17676
17536
  contextualAD: _extends$2({}, payload.contextualAD, {
17677
17537
  slotId: (payload.contextualAD.slotId || 'native-ad') + '-' + payload._id
17538
+ }),
17539
+ contextualVideoAD: _extends$2({}, payload.contextualVideoAD, {
17540
+ slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
17678
17541
  })
17679
17542
  });
17680
17543
  var selectedIndex = indexes[1] + 1;
@@ -17687,9 +17550,19 @@ var Article = function Article(props) {
17687
17550
  parent.style.display = 'none';
17688
17551
  setContextualADFlag(false);
17689
17552
  } else {
17690
- if (body && body[1] && body[1]._type === 'figure') {
17691
- setContextualADFlag(true);
17692
- }
17553
+ setContextualADFlag(true);
17554
+ }
17555
+ };
17556
+
17557
+ var checkIsVideoAdFound = function checkIsVideoAdFound(isFound) {
17558
+ if (!isFound) {
17559
+ var parent = document.getElementById('contextual-video-ad-' + payload._id);
17560
+ parent.style.height = '0%';
17561
+ parent.style.width = '0%';
17562
+ parent.style.display = 'none';
17563
+ setContextualADFlag(false);
17564
+ } else {
17565
+ setContextualADFlag(true);
17693
17566
  }
17694
17567
  };
17695
17568
 
@@ -17707,12 +17580,100 @@ var Article = function Article(props) {
17707
17580
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
17708
17581
  React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound }))
17709
17582
  ),
17583
+ React__default.createElement('span', { className: 'clearfix' }),
17584
+ React__default.createElement(
17585
+ 'div',
17586
+ { id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
17587
+ React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
17588
+ ),
17710
17589
  React__default.createElement(BlockContent, _extends$2({
17711
17590
  serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
17712
17591
  blocks: [].concat(_toConsumableArray(body.slice(selectedIndex))),
17713
17592
  imageOptions: { w: 320, h: 240, fit: 'max' }
17714
17593
  }, client.config()))
17715
17594
  );
17595
+ } else if (indexes.length >= 2 && body.length > 3 && payload.contextualAD && !payload.contextualVideoAD) {
17596
+ payload = _extends$2({}, payload, {
17597
+ contextualAD: _extends$2({}, payload.contextualAD, {
17598
+ slotId: (payload.contextualAD.slotId || 'native-ad') + '-' + payload._id
17599
+ })
17600
+ });
17601
+ var _selectedIndex = indexes[1] + 1;
17602
+
17603
+ var _checkIsAdFound = function _checkIsAdFound(isFound) {
17604
+ if (!isFound) {
17605
+ var parent = document.getElementById('contextual-native-ad-' + payload._id);
17606
+ parent.style.height = '0%';
17607
+ parent.style.width = '0%';
17608
+ parent.style.display = 'none';
17609
+ setContextualADFlag(false);
17610
+ } else {
17611
+ setContextualADFlag(true);
17612
+ }
17613
+ };
17614
+
17615
+ return React__default.createElement(
17616
+ React__default.Fragment,
17617
+ null,
17618
+ React__default.createElement(BlockContent, _extends$2({
17619
+ serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag),
17620
+ blocks: [].concat(_toConsumableArray(body.slice(0, _selectedIndex))),
17621
+ imageOptions: { w: 320, h: 240, fit: 'max' }
17622
+ }, client.config())),
17623
+ React__default.createElement('span', { className: 'clearfix' }),
17624
+ React__default.createElement(
17625
+ 'div',
17626
+ { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
17627
+ React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
17628
+ ),
17629
+ React__default.createElement(BlockContent, _extends$2({
17630
+ serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
17631
+ blocks: [].concat(_toConsumableArray(body.slice(_selectedIndex))),
17632
+ imageOptions: { w: 320, h: 240, fit: 'max' }
17633
+ }, client.config()))
17634
+ );
17635
+ } else if (indexes.length >= 2 && body.length > 3 && payload.contextualVideoAD && !payload.contextualAD) {
17636
+ payload = _extends$2({}, payload, {
17637
+ contextualVideoAD: _extends$2({}, payload.contextualVideoAD, {
17638
+ slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
17639
+ })
17640
+ });
17641
+ var _selectedIndex2 = indexes[1] + 1;
17642
+
17643
+ var _checkIsAdFound2 = function _checkIsAdFound2(isFound) {
17644
+ if (!isFound) {
17645
+ var parent = document.getElementById('contextual-video-ad-' + payload._id);
17646
+ parent.style.height = '0%';
17647
+ parent.style.width = '0%';
17648
+ parent.style.display = 'none';
17649
+ setContextualADFlag(false);
17650
+ } else {
17651
+ if (body && body[1] && body[1]._type === 'figure') {
17652
+ setContextualADFlag(true);
17653
+ }
17654
+ }
17655
+ };
17656
+
17657
+ return React__default.createElement(
17658
+ React__default.Fragment,
17659
+ null,
17660
+ React__default.createElement(BlockContent, _extends$2({
17661
+ serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag),
17662
+ blocks: [].concat(_toConsumableArray(body.slice(0, _selectedIndex2))),
17663
+ imageOptions: { w: 320, h: 240, fit: 'max' }
17664
+ }, client.config())),
17665
+ React__default.createElement('span', { className: 'clearfix' }),
17666
+ React__default.createElement(
17667
+ 'div',
17668
+ { id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
17669
+ React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
17670
+ ),
17671
+ React__default.createElement(BlockContent, _extends$2({
17672
+ serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
17673
+ blocks: [].concat(_toConsumableArray(body.slice(_selectedIndex2))),
17674
+ imageOptions: { w: 320, h: 240, fit: 'max' }
17675
+ }, client.config()))
17676
+ );
17716
17677
  } else {
17717
17678
  return React__default.createElement(BlockContent, _extends$2({
17718
17679
  serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
@@ -18127,6 +18088,9 @@ var ArticleQueue = function ArticleQueue(props) {
18127
18088
  InfiniteScroll,
18128
18089
  { dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true, style: { overflow: 'hidden' } },
18129
18090
  queueData.map(function (article, index) {
18091
+ if (!checkSponseredArticle(article) && Ads.getVideoContextualAD) {
18092
+ article.contextualVideoAD = Ads.getVideoContextualAD(getTargeting(article, 'in-context_video'));
18093
+ }
18130
18094
  if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
18131
18095
  article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
18132
18096
  }