@mjhls/mjh-framework 1.0.651 → 1.0.652

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 (156) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -3
  4. package/dist/cjs/AD300x250x600.js +3 -3
  5. package/dist/cjs/AD728x90.js +4 -4
  6. package/dist/cjs/ADFloatingFooter.js +5 -5
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleSeriesListing.js +4 -4
  15. package/dist/cjs/Auth.js +507 -256
  16. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-88f69acd.js} +1 -1
  17. package/dist/cjs/CMEDeck.js +5 -5
  18. package/dist/cjs/Column3.js +4 -4
  19. package/dist/cjs/ConferenceArticleCard.js +17 -17
  20. package/dist/cjs/DeckContent.js +15 -15
  21. package/dist/cjs/DeckQueue.js +6 -6
  22. package/dist/cjs/{Dfp-390337bf.js → Dfp-b2bc3b97.js} +1 -1
  23. package/dist/cjs/EventsDeck.js +22 -22
  24. package/dist/cjs/ExternalResources.js +7 -7
  25. package/dist/cjs/Feature.js +3 -3
  26. package/dist/cjs/ForbesHero.js +2 -2
  27. package/dist/cjs/GridContent.js +18 -16
  28. package/dist/cjs/GridHero.js +2 -2
  29. package/dist/cjs/GroupDeck.js +1 -1
  30. package/dist/cjs/HamMagazine.js +13 -13
  31. package/dist/cjs/Hero.js +1 -1
  32. package/dist/cjs/HorizontalHero.js +2 -2
  33. package/dist/cjs/IssueContentDeck.js +2 -2
  34. package/dist/cjs/IssueDeck.js +2 -2
  35. package/dist/cjs/IssueLanding.js +39 -37
  36. package/dist/cjs/KMTracker.js +15 -15
  37. package/dist/cjs/LeftNav.js +2 -2
  38. package/dist/cjs/MasterDeck.js +16 -16
  39. package/dist/cjs/NavMagazine.js +14 -14
  40. package/dist/cjs/NavNative.js +11 -11
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +16 -1212
  44. package/dist/cjs/PublicationDeck.js +1 -1
  45. package/dist/cjs/PublicationLanding.js +33 -33
  46. package/dist/cjs/QueueDeckExpanded.js +22 -19
  47. package/dist/cjs/RecentNews.js +2 -2
  48. package/dist/cjs/RelatedContent.js +30 -30
  49. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  50. package/dist/cjs/SideFooter.js +2 -2
  51. package/dist/cjs/{SocialSearchComponent-81a50f81.js → SocialSearchComponent-962b1344.js} +5 -5
  52. package/dist/cjs/TaxonomyCard.js +2 -2
  53. package/dist/cjs/TemplateNormal.js +3 -3
  54. package/dist/cjs/ThumbnailCard.js +1 -1
  55. package/dist/cjs/Ustream.js +2 -2
  56. package/dist/cjs/VerticalHero.js +2 -2
  57. package/dist/cjs/VideoSeriesCard.js +3 -3
  58. package/dist/cjs/VideoSeriesListing.js +3 -3
  59. package/dist/cjs/View.js +43 -43
  60. package/dist/cjs/YahooHero.js +2 -2
  61. package/dist/cjs/YoutubeGroup.js +5 -5
  62. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  63. package/dist/cjs/getRelatedArticle.js +5 -354
  64. package/dist/cjs/getSerializers.js +6 -6
  65. package/dist/cjs/{getTargeting-bf55f61b.js → getTargeting-fee8c429.js} +11 -11
  66. package/dist/cjs/getTargeting.js +1 -1
  67. package/dist/cjs/{index-099d45ae.js → index-2d0a4911.js} +4 -6
  68. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  69. package/dist/cjs/{index-6268b081.js → index-94418bc4.js} +462 -450
  70. package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
  71. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  72. package/dist/cjs/index.js +17 -15
  73. package/dist/cjs/{main-a4cb15bb.js → main-b6c96c8d.js} +67 -36
  74. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
  75. package/dist/cjs/urlFor.js +1 -1
  76. package/dist/esm/AD.js +1 -1
  77. package/dist/esm/AD300x250.js +3 -3
  78. package/dist/esm/AD300x250x600.js +3 -3
  79. package/dist/esm/AD728x90.js +4 -4
  80. package/dist/esm/ADFloatingFooter.js +5 -5
  81. package/dist/esm/ADGutter.js +2 -2
  82. package/dist/esm/ADSkyscraper.js +2 -2
  83. package/dist/esm/ADSponsoredResources.js +2 -2
  84. package/dist/esm/ADWebcast.js +2 -2
  85. package/dist/esm/ADWelcome.js +2 -2
  86. package/dist/esm/AdSlot.js +2 -2
  87. package/dist/esm/AdSlotsProvider.js +1 -1
  88. package/dist/esm/ArticleSeriesListing.js +4 -4
  89. package/dist/esm/Auth.js +499 -248
  90. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
  91. package/dist/esm/CMEDeck.js +5 -5
  92. package/dist/esm/Column3.js +4 -4
  93. package/dist/esm/ConferenceArticleCard.js +17 -17
  94. package/dist/esm/DeckContent.js +15 -15
  95. package/dist/esm/DeckQueue.js +6 -6
  96. package/dist/esm/{Dfp-741c01be.js → Dfp-8a8fca18.js} +1 -1
  97. package/dist/esm/EventsDeck.js +22 -22
  98. package/dist/esm/ExternalResources.js +7 -7
  99. package/dist/esm/Feature.js +3 -3
  100. package/dist/esm/ForbesHero.js +2 -2
  101. package/dist/esm/GridContent.js +18 -16
  102. package/dist/esm/GridHero.js +2 -2
  103. package/dist/esm/GroupDeck.js +1 -1
  104. package/dist/esm/HamMagazine.js +13 -13
  105. package/dist/esm/Hero.js +1 -1
  106. package/dist/esm/HorizontalHero.js +2 -2
  107. package/dist/esm/IssueContentDeck.js +2 -2
  108. package/dist/esm/IssueDeck.js +2 -2
  109. package/dist/esm/IssueLanding.js +39 -37
  110. package/dist/esm/KMTracker.js +15 -15
  111. package/dist/esm/LeftNav.js +2 -2
  112. package/dist/esm/MasterDeck.js +16 -16
  113. package/dist/esm/NavMagazine.js +14 -14
  114. package/dist/esm/NavNative.js +11 -11
  115. package/dist/esm/OncliveHero.js +2 -2
  116. package/dist/esm/OncliveLargeHero.js +2 -2
  117. package/dist/esm/PartnerDetailListing.js +14 -1209
  118. package/dist/esm/PublicationDeck.js +1 -1
  119. package/dist/esm/PublicationLanding.js +33 -33
  120. package/dist/esm/QueueDeckExpanded.js +22 -19
  121. package/dist/esm/RecentNews.js +2 -2
  122. package/dist/esm/RelatedContent.js +30 -30
  123. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  124. package/dist/esm/SideFooter.js +2 -2
  125. package/dist/esm/{SocialSearchComponent-55960ec4.js → SocialSearchComponent-75527dfe.js} +5 -5
  126. package/dist/esm/TaxonomyCard.js +2 -2
  127. package/dist/esm/TemplateNormal.js +3 -3
  128. package/dist/esm/ThumbnailCard.js +1 -1
  129. package/dist/esm/Ustream.js +2 -2
  130. package/dist/esm/VerticalHero.js +2 -2
  131. package/dist/esm/VideoSeriesCard.js +3 -3
  132. package/dist/esm/VideoSeriesListing.js +3 -3
  133. package/dist/esm/View.js +17 -17
  134. package/dist/esm/YahooHero.js +2 -2
  135. package/dist/esm/YoutubeGroup.js +5 -5
  136. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  137. package/dist/esm/getRelatedArticle.js +5 -354
  138. package/dist/esm/getSerializers.js +6 -6
  139. package/dist/esm/{getTargeting-d965e979.js → getTargeting-2acdec91.js} +9 -9
  140. package/dist/esm/getTargeting.js +1 -1
  141. package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
  142. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  143. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  144. package/dist/esm/{index-d40ad8fd.js → index-d493a594.js} +462 -450
  145. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  146. package/dist/esm/index.js +16 -14
  147. package/dist/esm/{main-5d1e4bd3.js → main-0465b2a0.js} +65 -34
  148. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  149. package/dist/esm/urlFor.js +1 -1
  150. package/package.json +107 -107
  151. package/dist/cjs/index-bd6c9f56.js +0 -211
  152. package/dist/esm/index-db3bb315.js +0 -207
  153. /package/dist/cjs/{ADInfeed-f886da72.js → ADInfeed-eaa6c661.js} +0 -0
  154. /package/dist/cjs/{ADlgInfeed-7aa459cc.js → ADlgInfeed-f25eb4f7.js} +0 -0
  155. /package/dist/esm/{ADInfeed-67097b02.js → ADInfeed-c27997a3.js} +0 -0
  156. /package/dist/esm/{ADlgInfeed-0bd34fef.js → ADlgInfeed-41c3909c.js} +0 -0
package/dist/esm/View.js CHANGED
@@ -14,19 +14,19 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import { _ as _typeof } from './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import React__default, { useState, useEffect } from 'react';
17
- import { l as lib_3 } from './index-3f4dd6f2.js';
17
+ import { l as lib_3 } from './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
- import { m as moment } from './moment-e2f9b20c.js';
21
+ import { m as moment } from './moment-12415288.js';
22
22
  import { useRouter } from 'next/router';
23
23
  import './isSymbol-807e927e.js';
24
24
  import './debounce-1a993acf.js';
25
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
25
+ import { I as InfiniteScroll } from './index.es-938a3a58.js';
26
26
  import 'react-dom';
27
- import './index-73819142.js';
27
+ import './index-51a80699.js';
28
28
  import './index-5f9f807a.js';
29
- import { m as main_36 } from './main-5d1e4bd3.js';
29
+ import { m as main_39 } from './main-0465b2a0.js';
30
30
  import './entities-7cc3bf45.js';
31
31
  import { _ as _JSON$stringify } from './stringify-008c8802.js';
32
32
  import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-7021e5df.js';
@@ -34,14 +34,14 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c6
34
34
  import './_set-species-cede29f8.js';
35
35
  import './beam-681a9749.js';
36
36
  import DFPAdSlot from './AdSlot.js';
37
- import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
37
+ import { B as BlockContent } from './BlockContent-a614acdf.js';
38
38
  import './smoothscroll-4b699764.js';
39
39
  import './GroupDeck.js';
40
40
  import 'react-bootstrap';
41
41
  import Button from 'react-bootstrap/Button';
42
42
  import { _ as _defineProperty } from './defineProperty-b798470d.js';
43
43
  import Form from 'react-bootstrap/Form';
44
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-d40ad8fd.js';
44
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-d493a594.js';
45
45
  import './util-7700fc59.js';
46
46
  import './brightcove-react-player-loader.es-83f53e4e.js';
47
47
  import 'react-bootstrap/Pagination';
@@ -52,10 +52,10 @@ import FormControl from 'react-bootstrap/FormControl';
52
52
  import { _ as _Object$keys } from './keys-fc2d4c34.js';
53
53
  import 'react-bootstrap/Dropdown';
54
54
  import getSeriesDetail from './getSeriesDetail.js';
55
- import './index-db3bb315.js';
56
- import getRelatedArticle from './getRelatedArticle.js';
55
+ import 'nookies';
57
56
  import getQuery from './getQuery.js';
58
- import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-d965e979.js';
57
+ import getRelatedArticle from './getRelatedArticle.js';
58
+ import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2acdec91.js';
59
59
  import getKeywords from './getKeywords.js';
60
60
  import urlFor from './urlFor.js';
61
61
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
@@ -135,9 +135,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
135
135
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
136
136
  thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
137
137
  !thumbnailUrl && React__default.createElement('p', {
138
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_36 ? 'left' : 'right', marginTop: '.25rem' },
138
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
139
139
  dangerouslySetInnerHTML: { __html: name } }),
140
- main_36 && !thumbnailUrl && React__default.createElement(
140
+ main_39 && !thumbnailUrl && React__default.createElement(
141
141
  'style',
142
142
  { jsx: 'true' },
143
143
  '\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
@@ -182,7 +182,7 @@ var findIndex = function findIndex(arr) {
182
182
  return indexes;
183
183
  };
184
184
 
185
- 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_mediaCard__3wQbn {\n width: 100%;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 img {\n width: 100%;\n height: auto;\n\n max-height: 175px;\n object-fit: contain;\n margin-bottom: 1rem;\n }\n}\n";
185
+ 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_mediaCard__3wQbn {\r\n width: 100%;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n width: 100%;\r\n height: auto;\r\n\r\n max-height: 175px;\r\n object-fit: contain;\r\n margin-bottom: 1rem;\r\n }\r\n}\r\n";
186
186
  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" };
187
187
  styleInject(css);
188
188
 
@@ -864,7 +864,7 @@ var Article = function Article(props) {
864
864
  React__default.createElement(
865
865
  'div',
866
866
  { className: 'ad-box', style: { textAlign: 'center' } },
867
- main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
867
+ main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
868
868
  if (index === 0) {
869
869
  return React__default.createElement(
870
870
  'div',
@@ -931,7 +931,7 @@ var Article = function Article(props) {
931
931
  renderIsiContent(props.article)
932
932
  )
933
933
  ),
934
- main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
934
+ main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
935
935
  if (index > 0) {
936
936
  return React__default.createElement(
937
937
  'div',
@@ -1004,7 +1004,7 @@ var ArticleQueue = function ArticleQueue(props) {
1004
1004
  });
1005
1005
  var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
1006
1006
 
1007
- if (!main_36) {
1007
+ if (!main_39) {
1008
1008
  lib_3.getGoogletag().then(function (googletag) {
1009
1009
  if (window.googletag && googletag.pubadsReady) {
1010
1010
  var slots = googletag.pubads().getSlots();
@@ -1022,7 +1022,7 @@ var ArticleQueue = function ArticleQueue(props) {
1022
1022
  });
1023
1023
  }
1024
1024
  //Refresh leaderboard ad on mobile
1025
- if (main_36) {
1025
+ if (main_39) {
1026
1026
  var leaderboardSlotId = '';
1027
1027
  lib_3.getGoogletag().then(function (googletag) {
1028
1028
  if (window.googletag && googletag.pubadsReady) {
@@ -5,9 +5,9 @@ import './core.get-iterator-method-54d2e411.js';
5
5
  import './web.dom.iterable-8956f9a5.js';
6
6
  import React__default from 'react';
7
7
  import 'prop-types';
8
- import { m as moment } from './moment-e2f9b20c.js';
8
+ import { m as moment } from './moment-12415288.js';
9
9
  import 'react-dom';
10
- import { i as imageUrlBuilder } from './index-73819142.js';
10
+ import { i as imageUrlBuilder } from './index-51a80699.js';
11
11
  import { L as LazyLoad } from './index-5f9f807a.js';
12
12
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
13
13
  import './slicedToArray-7021e5df.js';
@@ -10,15 +10,15 @@ import './_is-array-49698029.js';
10
10
  import React__default, { useRef, useState, useEffect } from 'react';
11
11
  import 'prop-types';
12
12
  import 'react-dom';
13
- import { i as imageUrlBuilder } from './index-73819142.js';
13
+ import { i as imageUrlBuilder } from './index-51a80699.js';
14
14
  import { L as LazyLoad } from './index-5f9f807a.js';
15
15
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
16
16
  import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
17
17
 
18
- /*
19
- GROQ query -
20
- accepts an array of title, URL
21
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
18
+ /*
19
+ GROQ query -
20
+ accepts an array of title, URL
21
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
22
22
  */
23
23
 
24
24
  var YoutubeGroup = function YoutubeGroup(props) {
@@ -0,0 +1,9 @@
1
+ var getContentCategory = function getContentCategory(name, contentCategoryMapping) {
2
+ if (!contentCategoryMapping.includes(name)) {
3
+ return name.slice(0, name.length - 1);
4
+ } else {
5
+ return name;
6
+ }
7
+ };
8
+
9
+ export { getContentCategory as g };
@@ -1,4 +1,4 @@
1
- import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-ded78eb9.js';
3
3
  import './es6.string.iterator-9b2af4a5.js';
4
4
  import './_library-528f1934.js';
@@ -7,358 +7,9 @@ import './core.get-iterator-method-54d2e411.js';
7
7
  import './web.dom.iterable-8956f9a5.js';
8
8
  import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
9
9
  import './_set-species-cede29f8.js';
10
- import { c as cookie } from './index-db3bb315.js';
10
+ import { parseCookies, setCookie } from 'nookies';
11
11
  import getQuery from './getQuery.js';
12
12
 
13
- var defaultParseOptions = {
14
- decodeValues: true,
15
- map: false,
16
- silent: false,
17
- };
18
-
19
- function isNonEmptyString(str) {
20
- return typeof str === "string" && !!str.trim();
21
- }
22
-
23
- function parseString(setCookieValue, options) {
24
- var parts = setCookieValue.split(";").filter(isNonEmptyString);
25
- var nameValue = parts.shift().split("=");
26
- var name = nameValue.shift();
27
- var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
28
-
29
- options = options
30
- ? Object.assign({}, defaultParseOptions, options)
31
- : defaultParseOptions;
32
-
33
- var cookie = {
34
- name: name, // grab everything before the first =
35
- value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
36
- };
37
-
38
- parts.forEach(function (part) {
39
- var sides = part.split("=");
40
- var key = sides.shift().trimLeft().toLowerCase();
41
- var value = sides.join("=");
42
- if (key === "expires") {
43
- cookie.expires = new Date(value);
44
- } else if (key === "max-age") {
45
- cookie.maxAge = parseInt(value, 10);
46
- } else if (key === "secure") {
47
- cookie.secure = true;
48
- } else if (key === "httponly") {
49
- cookie.httpOnly = true;
50
- } else if (key === "samesite") {
51
- cookie.sameSite = value;
52
- } else {
53
- cookie[key] = value;
54
- }
55
- });
56
-
57
- return cookie;
58
- }
59
-
60
- function parse(input, options) {
61
- options = options
62
- ? Object.assign({}, defaultParseOptions, options)
63
- : defaultParseOptions;
64
-
65
- if (!input) {
66
- if (!options.map) {
67
- return [];
68
- } else {
69
- return {};
70
- }
71
- }
72
-
73
- if (input.headers && input.headers["set-cookie"]) {
74
- // fast-path for node.js (which automatically normalizes header names to lower-case
75
- input = input.headers["set-cookie"];
76
- } else if (input.headers) {
77
- // slow-path for other environments - see #25
78
- var sch =
79
- input.headers[
80
- Object.keys(input.headers).find(function (key) {
81
- return key.toLowerCase() === "set-cookie";
82
- })
83
- ];
84
- // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
85
- if (!sch && input.headers.cookie && !options.silent) {
86
- console.warn(
87
- "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
88
- );
89
- }
90
- input = sch;
91
- }
92
- if (!Array.isArray(input)) {
93
- input = [input];
94
- }
95
-
96
- options = options
97
- ? Object.assign({}, defaultParseOptions, options)
98
- : defaultParseOptions;
99
-
100
- if (!options.map) {
101
- return input.filter(isNonEmptyString).map(function (str) {
102
- return parseString(str, options);
103
- });
104
- } else {
105
- var cookies = {};
106
- return input.filter(isNonEmptyString).reduce(function (cookies, str) {
107
- var cookie = parseString(str, options);
108
- cookies[cookie.name] = cookie;
109
- return cookies;
110
- }, cookies);
111
- }
112
- }
113
-
114
- /*
115
- Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
116
- that are within a single set-cookie field-value, such as in the Expires portion.
117
-
118
- This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
119
- Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
120
- React Native's fetch does this for *every* header, including set-cookie.
121
-
122
- Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
123
- Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
124
- */
125
- function splitCookiesString(cookiesString) {
126
- if (Array.isArray(cookiesString)) {
127
- return cookiesString;
128
- }
129
- if (typeof cookiesString !== "string") {
130
- return [];
131
- }
132
-
133
- var cookiesStrings = [];
134
- var pos = 0;
135
- var start;
136
- var ch;
137
- var lastComma;
138
- var nextStart;
139
- var cookiesSeparatorFound;
140
-
141
- function skipWhitespace() {
142
- while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
143
- pos += 1;
144
- }
145
- return pos < cookiesString.length;
146
- }
147
-
148
- function notSpecialChar() {
149
- ch = cookiesString.charAt(pos);
150
-
151
- return ch !== "=" && ch !== ";" && ch !== ",";
152
- }
153
-
154
- while (pos < cookiesString.length) {
155
- start = pos;
156
- cookiesSeparatorFound = false;
157
-
158
- while (skipWhitespace()) {
159
- ch = cookiesString.charAt(pos);
160
- if (ch === ",") {
161
- // ',' is a cookie separator if we have later first '=', not ';' or ','
162
- lastComma = pos;
163
- pos += 1;
164
-
165
- skipWhitespace();
166
- nextStart = pos;
167
-
168
- while (pos < cookiesString.length && notSpecialChar()) {
169
- pos += 1;
170
- }
171
-
172
- // currently special character
173
- if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
174
- // we found cookies separator
175
- cookiesSeparatorFound = true;
176
- // pos is inside the next cookie, so back up and return it.
177
- pos = nextStart;
178
- cookiesStrings.push(cookiesString.substring(start, lastComma));
179
- start = pos;
180
- } else {
181
- // in param ',' or param separator ';',
182
- // we continue from that comma
183
- pos = lastComma + 1;
184
- }
185
- } else {
186
- pos += 1;
187
- }
188
- }
189
-
190
- if (!cookiesSeparatorFound || pos >= cookiesString.length) {
191
- cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
192
- }
193
- }
194
-
195
- return cookiesStrings;
196
- }
197
-
198
- var setCookie = parse;
199
- var parse_1 = parse;
200
- var parseString_1 = parseString;
201
- var splitCookiesString_1 = splitCookiesString;
202
- setCookie.parse = parse_1;
203
- setCookie.parseString = parseString_1;
204
- setCookie.splitCookiesString = splitCookiesString_1;
205
-
206
- var dist = createCommonjsModule(function (module, exports) {
207
- var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
208
- __assign = Object.assign || function(t) {
209
- for (var s, i = 1, n = arguments.length; i < n; i++) {
210
- s = arguments[i];
211
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
212
- t[p] = s[p];
213
- }
214
- return t;
215
- };
216
- return __assign.apply(this, arguments);
217
- };
218
- Object.defineProperty(exports, "__esModule", { value: true });
219
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
220
-
221
-
222
- var isBrowser = function () { return typeof window !== 'undefined'; };
223
- function hasSameProperties(a, b) {
224
- var aProps = Object.getOwnPropertyNames(a);
225
- var bProps = Object.getOwnPropertyNames(b);
226
- if (aProps.length !== bProps.length) {
227
- return false;
228
- }
229
- for (var i = 0; i < aProps.length; i++) {
230
- var propName = aProps[i];
231
- if (a[propName] !== b[propName]) {
232
- return false;
233
- }
234
- }
235
- return true;
236
- }
237
- /**
238
- * Compare the cookie and return true if the cookies has equivalent
239
- * options and the cookies would be overwritten in the browser storage.
240
- *
241
- * @param a first Cookie for comparison
242
- * @param b second Cookie for comparison
243
- */
244
- function areCookiesEqual(a, b) {
245
- var sameSiteSame = a.sameSite === b.sameSite;
246
- if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
247
- sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
248
- }
249
- return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
250
- }
251
- /**
252
- * Create an instance of the Cookie interface
253
- *
254
- * @param name name of the Cookie
255
- * @param value value of the Cookie
256
- * @param options Cookie options
257
- */
258
- function createCookie(name, value, options) {
259
- var sameSite = options.sameSite;
260
- if (sameSite === true) {
261
- sameSite = 'strict';
262
- }
263
- if (sameSite === undefined || sameSite === false) {
264
- sameSite = 'lax';
265
- }
266
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
267
- delete cookieToSet.encode;
268
- return __assign({ name: name, value: value }, cookieToSet);
269
- }
270
- /**
271
- *
272
- * Parses cookies.
273
- *
274
- * @param ctx
275
- * @param options
276
- */
277
- function parseCookies(ctx, options) {
278
- if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
279
- return cookie.parse(ctx.req.headers.cookie, options);
280
- }
281
- if (isBrowser()) {
282
- return cookie.parse(document.cookie, options);
283
- }
284
- return {};
285
- }
286
- exports.parseCookies = parseCookies;
287
- /**
288
- *
289
- * Sets a cookie.
290
- *
291
- * @param ctx
292
- * @param name
293
- * @param value
294
- * @param options
295
- */
296
- function setCookie$1(ctx, name, value, options) {
297
- if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
298
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
299
- if (typeof cookies === 'string')
300
- cookies = [cookies];
301
- if (typeof cookies === 'number')
302
- cookies = [];
303
- var parsedCookies = setCookie.parse(cookies);
304
- var cookiesToSet_1 = [];
305
- parsedCookies.forEach(function (parsedCookie) {
306
- if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
307
- cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
308
- }
309
- });
310
- cookiesToSet_1.push(cookie.serialize(name, value, options));
311
- if (!ctx.res.finished) {
312
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
313
- }
314
- }
315
- if (isBrowser()) {
316
- if (options && options.httpOnly) {
317
- throw new Error('Can not set a httpOnly cookie in the browser.');
318
- }
319
- document.cookie = cookie.serialize(name, value, options);
320
- }
321
- return {};
322
- }
323
- exports.setCookie = setCookie$1;
324
- /**
325
- *
326
- * Destroys a cookie with a particular name.
327
- *
328
- * @param ctx
329
- * @param name
330
- * @param options
331
- */
332
- function destroyCookie(ctx, name, options) {
333
- var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
334
- if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
335
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
336
- if (typeof cookies === 'string')
337
- cookies = [cookies];
338
- if (typeof cookies === 'number')
339
- cookies = [];
340
- cookies.push(cookie.serialize(name, '', opts));
341
- ctx.res.setHeader('Set-Cookie', cookies);
342
- }
343
- if (isBrowser()) {
344
- document.cookie = cookie.serialize(name, '', opts);
345
- }
346
- return {};
347
- }
348
- exports.destroyCookie = destroyCookie;
349
- exports.default = {
350
- set: setCookie$1,
351
- get: parseCookies,
352
- destroy: destroyCookie,
353
- };
354
-
355
- });
356
-
357
- unwrapExports(dist);
358
- var dist_1 = dist.destroyCookie;
359
- var dist_2 = dist.setCookie;
360
- var dist_3 = dist.parseCookies;
361
-
362
13
  var _this = undefined;
363
14
 
364
15
  var getRelatedArticle = function () {
@@ -411,13 +62,13 @@ var getRelatedArticle = function () {
411
62
  conditions = '';
412
63
 
413
64
  if (ctx && url) {
414
- cookies = dist_3(ctx);
65
+ cookies = parseCookies(ctx);
415
66
  prevSlugs = cookies['prevSlugs'];
416
67
 
417
68
  if (!!prevSlugs) {
418
- dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
69
+ setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
419
70
  conditions = '&& !(url.current in [' + prevSlugs + '])';
420
- } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
71
+ } else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
421
72
  }
422
73
  relatedArticleQuery = getQuery('related', conditions, '', articleCount);
423
74
  _context.next = 12;
@@ -14,18 +14,18 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import 'react';
17
- import './index-3f4dd6f2.js';
17
+ import './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
- import './moment-e2f9b20c.js';
21
+ import './moment-12415288.js';
22
22
  import 'next/router';
23
23
  import './isSymbol-807e927e.js';
24
24
  import './debounce-1a993acf.js';
25
25
  import 'react-dom';
26
- import './index-73819142.js';
26
+ import './index-51a80699.js';
27
27
  import './index-5f9f807a.js';
28
- import './main-5d1e4bd3.js';
28
+ import './main-0465b2a0.js';
29
29
  import './entities-7cc3bf45.js';
30
30
  import './stringify-008c8802.js';
31
31
  import './slicedToArray-7021e5df.js';
@@ -33,12 +33,12 @@ import './asyncToGenerator-7c654f36.js';
33
33
  import './_set-species-cede29f8.js';
34
34
  import './beam-681a9749.js';
35
35
  import './AdSlot.js';
36
- import './BlockContent-e9b4ddcf.js';
36
+ import './BlockContent-a614acdf.js';
37
37
  import './smoothscroll-4b699764.js';
38
38
  import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import 'react-bootstrap/Button';
41
- export { g as default } from './index-d40ad8fd.js';
41
+ export { g as default } from './index-d493a594.js';
42
42
  import './util-7700fc59.js';
43
43
  import './brightcove-react-player-loader.es-83f53e4e.js';
44
44
  import 'react-bootstrap/Pagination';
@@ -2,18 +2,18 @@ import { _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
2
2
  import { _ as _extends } from './extends-cc5da797.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.path;
14
+ cp_url += (cp_url === '' ? '' : '/') + 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-725434a0.js';
6
6
  import './core.get-iterator-method-54d2e411.js';
7
7
  import './_object-pie-71ac75a4.js';
8
8
  import './extends-cc5da797.js';
9
- export { g as default } from './getTargeting-d965e979.js';
9
+ export { g as default } from './getTargeting-2acdec91.js';