@mjhls/mjh-framework 1.0.866-d4d665.2 → 1.0.866-youtube-group-v1

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 (162) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD300x250.js +2 -2
  3. package/dist/cjs/AD300x250x600.js +2 -2
  4. package/dist/cjs/AD728x90.js +3 -3
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/ADSkyscraper.js +1 -1
  8. package/dist/cjs/ADSponsoredResources.js +1 -1
  9. package/dist/cjs/ADWebcast.js +1 -1
  10. package/dist/cjs/ADWelcome.js +1 -1
  11. package/dist/cjs/AdSlot.js +1 -1
  12. package/dist/cjs/AdSlotsProvider.js +2 -2
  13. package/dist/cjs/AlgoliaSearch.js +18 -36
  14. package/dist/cjs/ArticleCarousel.js +1 -1
  15. package/dist/cjs/ArticleProgramLandingPage.js +5 -5
  16. package/dist/cjs/ArticleSeriesLandingPage.js +5 -5
  17. package/dist/cjs/ArticleSeriesListing.js +3 -3
  18. package/dist/cjs/Auth.js +41 -6
  19. package/dist/cjs/AuthWrapper.js +228 -189
  20. package/dist/cjs/CMEDeck.js +3 -3
  21. package/dist/cjs/Column3.js +3 -3
  22. package/dist/cjs/ConferenceArticleCard.js +16 -16
  23. package/dist/cjs/DeckContent.js +13 -13
  24. package/dist/cjs/DeckQueue.js +4 -4
  25. package/dist/cjs/EventsDeck.js +21 -21
  26. package/dist/cjs/ExternalResources.js +5 -5
  27. package/dist/cjs/Feature.js +2 -2
  28. package/dist/cjs/ForbesHero.js +1 -1
  29. package/dist/cjs/GridContent.js +8 -8
  30. package/dist/cjs/GridHero.js +1 -1
  31. package/dist/cjs/HamMagazine.js +15 -15
  32. package/dist/cjs/HighlightenVideo.js +1 -1
  33. package/dist/cjs/HorizontalArticleListing.js +4 -4
  34. package/dist/cjs/HorizontalHero.js +1 -1
  35. package/dist/cjs/IssueContentDeck.js +1 -1
  36. package/dist/cjs/IssueDeck.js +1 -1
  37. package/dist/cjs/IssueLanding.js +36 -36
  38. package/dist/cjs/KMTracker.js +15 -15
  39. package/dist/cjs/LeftNav.js +1 -1
  40. package/dist/cjs/MasterDeck.js +13 -13
  41. package/dist/cjs/MediaSeriesLanding.js +149 -193
  42. package/dist/cjs/NavMagazine.js +14 -14
  43. package/dist/cjs/NavNative.js +12 -12
  44. package/dist/cjs/OncliveHero.js +1 -1
  45. package/dist/cjs/OncliveLargeHero.js +1 -1
  46. package/dist/cjs/PartnerDetailListing.js +114 -138
  47. package/dist/cjs/PubSection.js +5 -5
  48. package/dist/cjs/PublicationLanding.js +26 -26
  49. package/dist/cjs/QueueDeckExpanded.js +9 -9
  50. package/dist/cjs/RelatedContent.js +29 -29
  51. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  52. package/dist/cjs/SeriesListingDeck.js +3 -3
  53. package/dist/cjs/{SeriesSlider-d38767ae.js → SeriesSlider-0d3bf265.js} +10 -10
  54. package/dist/cjs/SideFooter.js +2 -2
  55. package/dist/cjs/{SocialSearchComponent-9a9d6f8c.js → SocialSearchComponent-19548e2a.js} +3 -3
  56. package/dist/cjs/TaxonomyDescription.js +4 -4
  57. package/dist/cjs/TemplateNormal.js +2 -2
  58. package/dist/cjs/Ustream.js +2 -2
  59. package/dist/cjs/VerticalHero.js +1 -1
  60. package/dist/cjs/VideoProgramLandingPage.js +5 -5
  61. package/dist/cjs/VideoSeriesCard.js +2 -2
  62. package/dist/cjs/VideoSeriesLandingPage.js +5 -5
  63. package/dist/cjs/VideoSeriesListing.js +3 -3
  64. package/dist/cjs/View.js +14 -14
  65. package/dist/cjs/YahooHero.js +1 -1
  66. package/dist/cjs/YoutubeGroup.js +33 -14
  67. package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-5c98aec7.js} +4 -3
  68. package/dist/cjs/getRelatedArticle.js +62 -126
  69. package/dist/cjs/getSerializers.js +4 -4
  70. package/dist/cjs/{getTargeting-21103688.js → getTargeting-a9a871f0.js} +9 -9
  71. package/dist/cjs/getTargeting.js +1 -1
  72. package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
  73. package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
  74. package/dist/cjs/{index-4990e6c9.js → index-f83a102a.js} +22 -22
  75. package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
  76. package/dist/cjs/index.js +12 -12
  77. package/dist/cjs/{main-11ec04d2.js → main-7b5e57b0.js} +32 -28
  78. package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
  79. package/dist/cjs/timeDifferenceCalc.js +1 -1
  80. package/dist/esm/AD300x250.js +2 -2
  81. package/dist/esm/AD300x250x600.js +2 -2
  82. package/dist/esm/AD728x90.js +3 -3
  83. package/dist/esm/ADFloatingFooter.js +1 -1
  84. package/dist/esm/ADGutter.js +1 -1
  85. package/dist/esm/ADSkyscraper.js +1 -1
  86. package/dist/esm/ADSponsoredResources.js +1 -1
  87. package/dist/esm/ADWebcast.js +1 -1
  88. package/dist/esm/ADWelcome.js +1 -1
  89. package/dist/esm/AdSlot.js +1 -1
  90. package/dist/esm/AdSlotsProvider.js +2 -2
  91. package/dist/esm/AlgoliaSearch.js +17 -35
  92. package/dist/esm/ArticleCarousel.js +1 -1
  93. package/dist/esm/ArticleProgramLandingPage.js +5 -5
  94. package/dist/esm/ArticleSeriesLandingPage.js +5 -5
  95. package/dist/esm/ArticleSeriesListing.js +3 -3
  96. package/dist/esm/Auth.js +42 -7
  97. package/dist/esm/AuthWrapper.js +228 -189
  98. package/dist/esm/CMEDeck.js +3 -3
  99. package/dist/esm/Column3.js +3 -3
  100. package/dist/esm/ConferenceArticleCard.js +16 -16
  101. package/dist/esm/DeckContent.js +13 -13
  102. package/dist/esm/DeckQueue.js +4 -4
  103. package/dist/esm/EventsDeck.js +21 -21
  104. package/dist/esm/ExternalResources.js +5 -5
  105. package/dist/esm/Feature.js +2 -2
  106. package/dist/esm/ForbesHero.js +1 -1
  107. package/dist/esm/GridContent.js +8 -8
  108. package/dist/esm/GridHero.js +1 -1
  109. package/dist/esm/HamMagazine.js +15 -15
  110. package/dist/esm/HighlightenVideo.js +1 -1
  111. package/dist/esm/HorizontalArticleListing.js +4 -4
  112. package/dist/esm/HorizontalHero.js +1 -1
  113. package/dist/esm/IssueContentDeck.js +1 -1
  114. package/dist/esm/IssueDeck.js +1 -1
  115. package/dist/esm/IssueLanding.js +36 -36
  116. package/dist/esm/KMTracker.js +15 -15
  117. package/dist/esm/LeftNav.js +1 -1
  118. package/dist/esm/MasterDeck.js +13 -13
  119. package/dist/esm/MediaSeriesLanding.js +149 -193
  120. package/dist/esm/NavMagazine.js +14 -14
  121. package/dist/esm/NavNative.js +12 -12
  122. package/dist/esm/OncliveHero.js +1 -1
  123. package/dist/esm/OncliveLargeHero.js +1 -1
  124. package/dist/esm/PartnerDetailListing.js +115 -139
  125. package/dist/esm/PubSection.js +5 -5
  126. package/dist/esm/PublicationLanding.js +26 -26
  127. package/dist/esm/QueueDeckExpanded.js +9 -9
  128. package/dist/esm/RelatedContent.js +29 -29
  129. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  130. package/dist/esm/SeriesListingDeck.js +3 -3
  131. package/dist/esm/{SeriesSlider-b8cc1baa.js → SeriesSlider-7d89f4d9.js} +10 -10
  132. package/dist/esm/SideFooter.js +2 -2
  133. package/dist/esm/{SocialSearchComponent-c54d43cb.js → SocialSearchComponent-47815365.js} +3 -3
  134. package/dist/esm/TaxonomyDescription.js +4 -4
  135. package/dist/esm/TemplateNormal.js +2 -2
  136. package/dist/esm/Ustream.js +2 -2
  137. package/dist/esm/VerticalHero.js +1 -1
  138. package/dist/esm/VideoProgramLandingPage.js +5 -5
  139. package/dist/esm/VideoSeriesCard.js +2 -2
  140. package/dist/esm/VideoSeriesLandingPage.js +5 -5
  141. package/dist/esm/VideoSeriesListing.js +3 -3
  142. package/dist/esm/View.js +14 -14
  143. package/dist/esm/YahooHero.js +1 -1
  144. package/dist/esm/YoutubeGroup.js +33 -14
  145. package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-4abff0b1.js} +4 -3
  146. package/dist/esm/getRelatedArticle.js +62 -126
  147. package/dist/esm/getSerializers.js +4 -4
  148. package/dist/esm/{getTargeting-88d69971.js → getTargeting-bd800589.js} +9 -9
  149. package/dist/esm/getTargeting.js +1 -1
  150. package/dist/esm/{index-bec35c6c.js → index-82fea143.js} +22 -22
  151. package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
  152. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  153. package/dist/esm/{index.es-7dda2f0a.js → index.es-c6222053.js} +20 -4
  154. package/dist/esm/index.js +12 -12
  155. package/dist/esm/{main-aef58dbc.js → main-747e7d25.js} +32 -28
  156. package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
  157. package/dist/esm/timeDifferenceCalc.js +1 -1
  158. package/package.json +111 -111
  159. /package/dist/cjs/{ADInfeed-799275aa.js → ADInfeed-25d48cc2.js} +0 -0
  160. /package/dist/cjs/{ADlgInfeed-591d014e.js → ADlgInfeed-a535a768.js} +0 -0
  161. /package/dist/esm/{ADInfeed-4b8902ae.js → ADInfeed-56a3db8b.js} +0 -0
  162. /package/dist/esm/{ADlgInfeed-5193b48f.js → ADlgInfeed-53edb995.js} +0 -0
package/dist/esm/View.js CHANGED
@@ -19,18 +19,18 @@ import { l as lib_3 } from './index-f7fb1e25.js';
19
19
  import 'prop-types';
20
20
  import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
- import { m as moment } from './moment-12415288.js';
22
+ import { m as moment } from './moment-b6f49411.js';
23
23
  import { useRouter } from 'next/router';
24
24
  import './isSymbol-1981418f.js';
25
25
  import './debounce-9207d8ee.js';
26
26
  import './toNumber-2f7a84cd.js';
27
- import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
27
+ import { I as InfiniteScroll } from './index.es-c6222053.js';
28
28
  import 'react-dom';
29
29
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
30
30
  import './index-51a80699.js';
31
31
  import urlFor from './urlFor.js';
32
32
  import './index-6c12bdd5.js';
33
- import { m as main_39 } from './main-aef58dbc.js';
33
+ import { m as main_40 } from './main-747e7d25.js';
34
34
  import './entities-7cc3bf45.js';
35
35
  import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
36
36
  import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
@@ -46,9 +46,9 @@ import './GroupDeck.js';
46
46
  import 'react-bootstrap';
47
47
  import './iconBase-602d52fe.js';
48
48
  import './index.esm-3fdda599.js';
49
- import { r as renderAuthor, g as getSerializers } from './index-bec35c6c.js';
49
+ import { r as renderAuthor, g as getSerializers } from './index-82fea143.js';
50
50
  import './util-7700fc59.js';
51
- import './brightcove-react-player-loader.es-e1c6b0f2.js';
51
+ import './brightcove-react-player-loader.es-4abff0b1.js';
52
52
  import Head from 'next/head';
53
53
  import 'react-share';
54
54
  import SocialShare from './SocialShare.js';
@@ -67,8 +67,8 @@ import getSeriesDetail from './getSeriesDetail.js';
67
67
  import './index-db3bb315.js';
68
68
  import getRelatedArticle from './getRelatedArticle.js';
69
69
  import getQuery from './getQuery.js';
70
- import { S as SeriesSlider } from './SeriesSlider-b8cc1baa.js';
71
- import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-88d69971.js';
70
+ import { S as SeriesSlider } from './SeriesSlider-7d89f4d9.js';
71
+ import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-bd800589.js';
72
72
  import getKeywords from './getKeywords.js';
73
73
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
74
74
  import { DiscussionEmbed } from 'disqus-react';
@@ -157,9 +157,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
157
157
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
158
158
  thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
159
159
  !thumbnailUrl && React.createElement('p', {
160
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
160
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_40 ? 'left' : 'right', marginTop: '.25rem' },
161
161
  dangerouslySetInnerHTML: { __html: name } }),
162
- main_39 && !thumbnailUrl && React.createElement(
162
+ main_40 && !thumbnailUrl && React.createElement(
163
163
  'style',
164
164
  { jsx: 'true' },
165
165
  '\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
@@ -338,7 +338,7 @@ var ISI = function ISI(props) {
338
338
  );
339
339
  };
340
340
 
341
- var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
341
+ var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\n";
342
342
  var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
343
343
  styleInject(css);
344
344
 
@@ -1261,7 +1261,7 @@ var Article = forwardRef(function (props, ref) {
1261
1261
  React.createElement(
1262
1262
  'div',
1263
1263
  { className: 'ad-box', style: { textAlign: 'center' } },
1264
- main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
1264
+ main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
1265
1265
  if (index === 0) {
1266
1266
  return React.createElement(
1267
1267
  'div',
@@ -1345,7 +1345,7 @@ var Article = forwardRef(function (props, ref) {
1345
1345
  blocks: isi
1346
1346
  })
1347
1347
  ),
1348
- main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
1348
+ main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
1349
1349
  if (index > 0) {
1350
1350
  return React.createElement(
1351
1351
  'div',
@@ -1444,7 +1444,7 @@ var ArticleQueue = function ArticleQueue(props) {
1444
1444
  return item.url.current === path;
1445
1445
  });
1446
1446
  var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
1447
- if (!main_39) {
1447
+ if (!main_40) {
1448
1448
  lib_3.getGoogletag().then(function (googletag) {
1449
1449
  if (window.googletag && googletag.pubadsReady) {
1450
1450
  var slots = googletag.pubads().getSlots();
@@ -1461,7 +1461,7 @@ var ArticleQueue = function ArticleQueue(props) {
1461
1461
  });
1462
1462
  }
1463
1463
  //Refresh leaderboard ad on mobile
1464
- if (main_39) {
1464
+ if (main_40) {
1465
1465
  var leaderboardSlotId = '';
1466
1466
  lib_3.getGoogletag().then(function (googletag) {
1467
1467
  if (window.googletag && googletag.pubadsReady) {
@@ -5,7 +5,7 @@ import './core.get-iterator-method-e1de7503.js';
5
5
  import './web.dom.iterable-4439f05a.js';
6
6
  import React from 'react';
7
7
  import 'prop-types';
8
- import { m as moment } from './moment-12415288.js';
8
+ import { m as moment } from './moment-b6f49411.js';
9
9
  import 'react-dom';
10
10
  import './index-51a80699.js';
11
11
  import urlFor from './urlFor.js';
@@ -9,15 +9,15 @@ import 'react-dom';
9
9
  import './index-51a80699.js';
10
10
  import urlFor from './urlFor.js';
11
11
  import { L as LazyLoad } from './index-6c12bdd5.js';
12
- import { m as main_39, a as main_44, b as main_38 } from './main-aef58dbc.js';
12
+ import { m as main_40, a as main_45, b as main_39 } from './main-747e7d25.js';
13
13
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
14
14
  import { g as getYoutubeId } from './index-c7e2ac95.js';
15
15
  import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
16
16
 
17
- /*
18
- GROQ query -
19
- accepts an array of title, URL
20
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
17
+ /*
18
+ GROQ query -
19
+ accepts an array of title, URL
20
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
21
21
  */
22
22
 
23
23
  var YoutubeGroup = function YoutubeGroup(props) {
@@ -27,7 +27,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
27
27
  var viewableWindow = useRef(null);
28
28
  var viewableArea = useRef(null);
29
29
 
30
- var _useState = useState(0),
30
+ var _useState = useState(200),
31
31
  _useState2 = _slicedToArray(_useState, 2),
32
32
  tileSize = _useState2[0],
33
33
  setTileSize = _useState2[1];
@@ -97,13 +97,13 @@ var YoutubeGroup = function YoutubeGroup(props) {
97
97
  }
98
98
  }
99
99
 
100
- if (main_39) {
100
+ if (main_40) {
101
101
  thumbSize = Math.floor((viewableArea.current.clientWidth - tileDividerWidth) / 2);
102
102
  if (props.dataset.length > 2) {
103
103
  scrollerVisible = true;
104
104
  }
105
105
  }
106
- if (main_44) {
106
+ if (main_45) {
107
107
  thumbSize = Math.floor((viewableArea.current.clientWidth - tileDividerWidth * 2) / 3);
108
108
  if (props.dataset.length > 3) {
109
109
  scrollerVisible = true;
@@ -166,10 +166,10 @@ var YoutubeGroup = function YoutubeGroup(props) {
166
166
  if (viewableWindow.current.offsetWidth < 604) {
167
167
  scrollDirection = innerSliderScrollWidth - numberOfSlidesToScroll * 2;
168
168
  }
169
- if (main_44) {
169
+ if (main_45) {
170
170
  scrollDirection = innerSliderScrollWidth - numberOfSlidesToScroll * 2;
171
171
  }
172
- if (main_39) {
172
+ if (main_40) {
173
173
  scrollDirection = innerSliderScrollWidth - numberOfSlidesToScroll * 1;
174
174
  }
175
175
  }
@@ -262,11 +262,16 @@ var YoutubeGroup = function YoutubeGroup(props) {
262
262
  } },
263
263
  React.createElement(
264
264
  'div',
265
- { className: 'tile__media', style: { width: tileSize + 'px', height: tileHeight + 'px' } },
265
+ { className: 'tile__media', style: { width: tileSize + 'px', height: '' + (tileHeight !== 0 ? tileHeight + 'px' : '100px') } },
266
266
  React.createElement(
267
267
  LazyLoad,
268
268
  null,
269
- React.createElement('img', { className: 'tile__img', style: { width: tileSize + 'px', height: tileHeight + 'px' }, src: thumbnail, alt: '' })
269
+ React.createElement('img', { className: 'tile__img', style: { width: tileSize + 'px', height: '' + (tileHeight !== 0 ? tileHeight + 'px' : '100px') }, src: thumbnail, alt: '' })
270
+ ),
271
+ React.createElement(
272
+ 'noscript',
273
+ null,
274
+ React.createElement('img', { className: 'tile__img', src: thumbnail, style: { width: tileSize + 'px', height: '' + (tileHeight !== 0 ? tileHeight + 'px' : '100%') }, alt: '' })
270
275
  )
271
276
  ),
272
277
  React.createElement(
@@ -307,11 +312,16 @@ var YoutubeGroup = function YoutubeGroup(props) {
307
312
  { href: _url },
308
313
  React.createElement(
309
314
  'div',
310
- { className: 'tile__media', style: { width: tileSize + 'px', height: tileHeight + 'px' } },
315
+ { className: 'tile__media', style: { width: tileSize + 'px', height: '' + (tileHeight !== 0 ? tileHeight + 'px' : '100%') } },
311
316
  React.createElement(
312
317
  LazyLoad,
313
318
  null,
314
319
  React.createElement('img', { className: 'tile__img', src: _thumbnail, style: { width: tileSize + 'px', height: tileHeight + 'px' }, alt: '' })
320
+ ),
321
+ React.createElement(
322
+ 'noscript',
323
+ null,
324
+ React.createElement('img', { className: 'tile__img', src: _thumbnail, style: { width: tileSize + 'px', height: '' + (tileHeight !== 0 ? tileHeight + 'px' : '100%') }, alt: '' })
315
325
  )
316
326
  ),
317
327
  React.createElement(
@@ -337,10 +347,19 @@ var YoutubeGroup = function YoutubeGroup(props) {
337
347
  })
338
348
  )
339
349
  ),
350
+ React.createElement(
351
+ 'noscript',
352
+ null,
353
+ React.createElement(
354
+ 'style',
355
+ { jsx: 'true' },
356
+ '\n #vid-slider .row__inner {\n flex-wrap: wrap;\n flex-basis: 100%;\n }\n '
357
+ )
358
+ ),
340
359
  React.createElement(
341
360
  'style',
342
361
  { jsx: 'true' },
343
- '\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 2.5rem;\n margin-bottom: 2rem;\n }\n #vid-slider.col {\n padding: 0 2.5rem;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n flex-wrap: nowrap;\n overflow-x: hidden;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n width: 100%;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: normal;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n display: flex;\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin-top: 1.5rem !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n height: 100%;\n margin-right: 0.5rem;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile:first-child {\n margin-left: 0;\n }\n #vid-slider .tile__img {\n height: auto;\n\n -o-object-fit: cover;\n object-fit: cover;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n\n .tile__media {\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n }\n\n #vid-slider .tile__title {\n white-space: normal !important;\n max-width: ' + tileSize + 'px;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: ' + (main_38 ? '0.75rem' : '0.9rem') + ';\n font-weight: normal;\n transition: opacity 0.25s;\n -webkit-font-smoothing: antialiased;\n }\n\n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: black;\n background: var(--primary);\n border: none;\n position: absolute;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: 1rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n padding-right: 0 1.2rem;\n }\n\n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n }\n #vid-slider .tile__img {\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n #vid-slider .tile__img {\n }\n }\n\n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n\n #vid-slider .tile__img {\n }\n #vid-slider .row__inner {\n margin-top: 1.5rem !important;\n }\n }\n\n @media screen and (max-width: 590px) {\n #vid-slider .tile__img {\n }\n }\n '
362
+ '\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 2.5rem;\n margin-bottom: 2rem;\n }\n #vid-slider.col {\n padding: 0 2.5rem;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n flex-wrap: nowrap;\n overflow-x: hidden;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n width: 100%;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: normal;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n display: flex;\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin-top: 1.5rem !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n height: 100%;\n margin-right: 0.5rem;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile:first-child {\n margin-left: 0;\n }\n #vid-slider .tile__img {\n height: auto;\n\n -o-object-fit: cover;\n object-fit: cover;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n\n .tile__media {\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n }\n\n #vid-slider .tile__title {\n white-space: normal !important;\n max-width: ' + tileSize + 'px;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: ' + (main_39 ? '0.75rem' : '0.9rem') + ';\n font-weight: normal;\n transition: opacity 0.25s;\n -webkit-font-smoothing: antialiased;\n }\n\n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: black;\n background: var(--primary);\n border: none;\n position: absolute;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: 1rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n padding-right: 0 1.2rem;\n }\n\n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n }\n #vid-slider .tile__img {\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n #vid-slider .tile__img {\n }\n }\n\n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n\n #vid-slider .tile__img {\n }\n #vid-slider .row__inner {\n margin-top: 1.5rem !important;\n }\n }\n\n @media screen and (max-width: 590px) {\n #vid-slider .tile__img {\n }\n }\n '
344
363
  )
345
364
  );
346
365
  };
@@ -625,7 +625,7 @@ if (typeof window !== "undefined") {
625
625
 
626
626
  var window_1 = win;
627
627
 
628
- /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
628
+ /*! @name @brightcove/react-player-loader @version 1.4.1 @license Apache-2.0 */
629
629
 
630
630
  function _extends() {
631
631
  _extends = Object.assign || function (target) {
@@ -659,7 +659,7 @@ function _assertThisInitialized(self) {
659
659
  return self;
660
660
  }
661
661
 
662
- /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
662
+ /*! @name @brightcove/player-loader @version 1.8.0 @license Apache-2.0 */
663
663
 
664
664
  function _extends$1() {
665
665
  _extends$1 = Object.assign || function (target) {
@@ -679,7 +679,7 @@ function _extends$1() {
679
679
  return _extends$1.apply(this, arguments);
680
680
  }
681
681
 
682
- var version = "1.7.1";
682
+ var version = "1.8.0";
683
683
 
684
684
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
685
685
  var version$1 = "1.2.0";
@@ -996,6 +996,7 @@ var createInPageEmbed = function createInPageEmbed(params) {
996
996
  deliveryConfigId: 'data-delivery-config-id',
997
997
  playlistId: 'data-playlist-id',
998
998
  playlistVideoId: 'data-playlist-video-id',
999
+ poster: 'poster',
999
1000
  videoId: 'data-video-id'
1000
1001
  };
1001
1002
  var tagName = embedOptions && embedOptions.tagName || EMBED_TAG_NAME_VIDEOJS;
@@ -29,20 +29,9 @@ function parseString(setCookieValue, options) {
29
29
  ? Object.assign({}, defaultParseOptions, options)
30
30
  : defaultParseOptions;
31
31
 
32
- try {
33
- value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
34
- } catch (e) {
35
- console.error(
36
- "set-cookie-parser encountered an error while decoding a cookie with value '" +
37
- value +
38
- "'. Set options.decodeValues to false to disable this feature.",
39
- e
40
- );
41
- }
42
-
43
32
  var cookie = {
44
33
  name: name, // grab everything before the first =
45
- value: value,
34
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
46
35
  };
47
36
 
48
37
  parts.forEach(function (part) {
@@ -213,7 +202,7 @@ setCookie.parse = parse_1;
213
202
  setCookie.parseString = parseString_1;
214
203
  setCookie.splitCookiesString = splitCookiesString_1;
215
204
 
216
- var utils = createCommonjsModule(function (module, exports) {
205
+ var dist = createCommonjsModule(function (module, exports) {
217
206
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
218
207
  __assign = Object.assign || function(t) {
219
208
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -226,33 +215,10 @@ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
226
215
  return __assign.apply(this, arguments);
227
216
  };
228
217
  Object.defineProperty(exports, "__esModule", { value: true });
229
- exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
230
- /**
231
- * Tells whether we are in a browser or server.
232
- */
233
- function isBrowser() {
234
- return typeof window !== 'undefined';
235
- }
236
- exports.isBrowser = isBrowser;
237
- /**
238
- * Create an instance of the Cookie interface
239
- */
240
- function createCookie(name, value, options) {
241
- var sameSite = options.sameSite;
242
- if (sameSite === true) {
243
- sameSite = 'strict';
244
- }
245
- if (sameSite === undefined || sameSite === false) {
246
- sameSite = 'lax';
247
- }
248
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
249
- delete cookieToSet.encode;
250
- return __assign({ name: name, value: value }, cookieToSet);
251
- }
252
- exports.createCookie = createCookie;
253
- /**
254
- * Tells whether given objects have the same properties.
255
- */
218
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
219
+
220
+
221
+ var isBrowser = function () { return typeof window !== 'undefined'; };
256
222
  function hasSameProperties(a, b) {
257
223
  var aProps = Object.getOwnPropertyNames(a);
258
224
  var bProps = Object.getOwnPropertyNames(b);
@@ -267,9 +233,8 @@ function hasSameProperties(a, b) {
267
233
  }
268
234
  return true;
269
235
  }
270
- exports.hasSameProperties = hasSameProperties;
271
236
  /**
272
- * Compare the cookie and return true if the cookies have equivalent
237
+ * Compare the cookie and return true if the cookies has equivalent
273
238
  * options and the cookies would be overwritten in the browser storage.
274
239
  *
275
240
  * @param a first Cookie for comparison
@@ -282,109 +247,71 @@ function areCookiesEqual(a, b) {
282
247
  }
283
248
  return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
284
249
  }
285
- exports.areCookiesEqual = areCookiesEqual;
286
- /* Functions */
287
-
288
- });
289
-
290
- unwrapExports(utils);
291
- var utils_1 = utils.areCookiesEqual;
292
- var utils_2 = utils.hasSameProperties;
293
- var utils_3 = utils.createCookie;
294
- var utils_4 = utils.isBrowser;
295
-
296
- var dist = createCommonjsModule(function (module, exports) {
297
- var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
298
- __assign = Object.assign || function(t) {
299
- for (var s, i = 1, n = arguments.length; i < n; i++) {
300
- s = arguments[i];
301
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
302
- t[p] = s[p];
303
- }
304
- return t;
305
- };
306
- return __assign.apply(this, arguments);
307
- };
308
- Object.defineProperty(exports, "__esModule", { value: true });
309
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
310
-
311
-
312
-
313
250
  /**
251
+ * Create an instance of the Cookie interface
252
+ *
253
+ * @param name name of the Cookie
254
+ * @param value value of the Cookie
255
+ * @param options Cookie options
256
+ */
257
+ function createCookie(name, value, options) {
258
+ var sameSite = options.sameSite;
259
+ if (sameSite === true) {
260
+ sameSite = 'strict';
261
+ }
262
+ if (sameSite === undefined || sameSite === false) {
263
+ sameSite = 'lax';
264
+ }
265
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
266
+ delete cookieToSet.encode;
267
+ return __assign({ name: name, value: value }, cookieToSet);
268
+ }
269
+ /**
270
+ *
314
271
  * Parses cookies.
315
272
  *
316
- * @param ctx NextJS page or API context, express context, null or undefined.
317
- * @param options Options that we pass down to `cookie` library.
273
+ * @param ctx
274
+ * @param options
318
275
  */
319
276
  function parseCookies(ctx, options) {
320
- var _a, _b;
321
- if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
277
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
322
278
  return cookie.parse(ctx.req.headers.cookie, options);
323
279
  }
324
- if (utils.isBrowser()) {
280
+ if (isBrowser()) {
325
281
  return cookie.parse(document.cookie, options);
326
282
  }
327
283
  return {};
328
284
  }
329
285
  exports.parseCookies = parseCookies;
330
286
  /**
287
+ *
331
288
  * Sets a cookie.
332
289
  *
333
- * @param ctx NextJS page or API context, express context, null or undefined.
334
- * @param name The name of your cookie.
335
- * @param value The value of your cookie.
336
- * @param options Options that we pass down to `cookie` library.
290
+ * @param ctx
291
+ * @param name
292
+ * @param value
293
+ * @param options
337
294
  */
338
295
  function setCookie$1(ctx, name, value, options) {
339
- var _a, _b;
340
- if (options === void 0) { options = {}; }
341
- // SSR
342
- if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
343
- // Check if response has finished and warn about it.
344
- if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
345
- console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
346
- console.warn("You should set cookie before res.send()");
347
- return {};
348
- }
349
- /**
350
- * Load existing cookies from the header and parse them.
351
- */
296
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
352
297
  var cookies = ctx.res.getHeader('Set-Cookie') || [];
353
298
  if (typeof cookies === 'string')
354
299
  cookies = [cookies];
355
300
  if (typeof cookies === 'number')
356
301
  cookies = [];
357
- /**
358
- * Parse cookies but ignore values - we've already encoded
359
- * them in the previous call.
360
- */
361
- var parsedCookies = setCookie.parse(cookies, {
362
- decodeValues: false,
363
- });
364
- /**
365
- * We create the new cookie and make sure that none of
366
- * the existing cookies match it.
367
- */
368
- var newCookie_1 = utils.createCookie(name, value, options);
302
+ var parsedCookies = setCookie.parse(cookies);
369
303
  var cookiesToSet_1 = [];
370
304
  parsedCookies.forEach(function (parsedCookie) {
371
- if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
372
- /**
373
- * We serialize the cookie back to the original format
374
- * if it isn't the same as the new one.
375
- */
376
- var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
377
- // we prevent reencoding by default, but you might override it
378
- encode: function (val) { return val; } }, parsedCookie));
379
- cookiesToSet_1.push(serializedCookie);
305
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
306
+ cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
380
307
  }
381
308
  });
382
309
  cookiesToSet_1.push(cookie.serialize(name, value, options));
383
- // Update the header.
384
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
310
+ if (!ctx.res.finished) {
311
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
312
+ }
385
313
  }
386
- // Browser
387
- if (utils.isBrowser()) {
314
+ if (isBrowser()) {
388
315
  if (options && options.httpOnly) {
389
316
  throw new Error('Can not set a httpOnly cookie in the browser.');
390
317
  }
@@ -394,21 +321,30 @@ function setCookie$1(ctx, name, value, options) {
394
321
  }
395
322
  exports.setCookie = setCookie$1;
396
323
  /**
324
+ *
397
325
  * Destroys a cookie with a particular name.
398
326
  *
399
- * @param ctx NextJS page or API context, express context, null or undefined.
400
- * @param name Cookie name.
401
- * @param options Options that we pass down to `cookie` library.
327
+ * @param ctx
328
+ * @param name
329
+ * @param options
402
330
  */
403
331
  function destroyCookie(ctx, name, options) {
404
- /**
405
- * We forward the request destroy to setCookie function
406
- * as it is the same function with modified maxAge value.
407
- */
408
- return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
332
+ var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
333
+ if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
334
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
335
+ if (typeof cookies === 'string')
336
+ cookies = [cookies];
337
+ if (typeof cookies === 'number')
338
+ cookies = [];
339
+ cookies.push(cookie.serialize(name, '', opts));
340
+ ctx.res.setHeader('Set-Cookie', cookies);
341
+ }
342
+ if (isBrowser()) {
343
+ document.cookie = cookie.serialize(name, '', opts);
344
+ }
345
+ return {};
409
346
  }
410
347
  exports.destroyCookie = destroyCookie;
411
- /* Utility Exports */
412
348
  exports.default = {
413
349
  set: setCookie$1,
414
350
  get: parseCookies,
@@ -19,7 +19,7 @@ import './index-f7fb1e25.js';
19
19
  import 'prop-types';
20
20
  import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
- import './moment-12415288.js';
22
+ import './moment-b6f49411.js';
23
23
  import 'next/router';
24
24
  import './isSymbol-1981418f.js';
25
25
  import './debounce-9207d8ee.js';
@@ -28,7 +28,7 @@ import 'react-dom';
28
28
  import './index-51a80699.js';
29
29
  import './urlFor.js';
30
30
  import './index-6c12bdd5.js';
31
- import './main-aef58dbc.js';
31
+ import './main-747e7d25.js';
32
32
  import './entities-7cc3bf45.js';
33
33
  import './slicedToArray-641f241f.js';
34
34
  import './stringify-4330ccdc.js';
@@ -44,9 +44,9 @@ import './GroupDeck.js';
44
44
  import 'react-bootstrap';
45
45
  import './iconBase-602d52fe.js';
46
46
  import './index.esm-3fdda599.js';
47
- export { g as default } from './index-bec35c6c.js';
47
+ export { g as default } from './index-82fea143.js';
48
48
  import './util-7700fc59.js';
49
- import './brightcove-react-player-loader.es-e1c6b0f2.js';
49
+ import './brightcove-react-player-loader.es-4abff0b1.js';
50
50
  import 'next/head';
51
51
  import 'react-share';
52
52
  import './SocialShare.js';
@@ -2,18 +2,18 @@ import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
2
2
  import { _ as _extends } from './extends-6f2fcc99.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
- var cp_url = '';
6
- if (cp.ancestor && typeof cp.ancestor == 'string') {
7
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
- }
5
+ var cp_url = '';
6
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
7
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
+ }
9
9
 
10
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
- }
10
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
+ }
13
13
 
14
- cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
14
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
15
15
 
16
- return cp_url;
16
+ return cp_url;
17
17
  };
18
18
 
19
19
  var getTargeting = function getTargeting(props) {
@@ -6,4 +6,4 @@ import './toConsumableArray-43aa614d.js';
6
6
  import './core.get-iterator-method-e1de7503.js';
7
7
  import './_object-pie-33c40e79.js';
8
8
  import './extends-6f2fcc99.js';
9
- export { g as default } from './getTargeting-88d69971.js';
9
+ export { g as default } from './getTargeting-bd800589.js';