@mjhls/mjh-framework 1.0.702-beta-v1 → 1.0.703-testing-module-splitting

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 (276) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/AD.js +10 -9
  3. package/dist/cjs/AD300x250.js +26 -24
  4. package/dist/cjs/AD300x250x600.js +26 -24
  5. package/dist/cjs/AD728x90.js +29 -27
  6. package/dist/cjs/ADFloatingFooter.js +31 -29
  7. package/dist/cjs/ADFooter.js +16 -14
  8. package/dist/cjs/ADGutter.js +28 -26
  9. package/dist/cjs/{ADInfeed-38066a36.js → ADInfeed-d36dc3ca.js} +13 -11
  10. package/dist/cjs/ADSkyscraper.js +28 -26
  11. package/dist/cjs/ADSponsoredResources.js +28 -26
  12. package/dist/cjs/ADWebcast.js +28 -26
  13. package/dist/cjs/ADWelcome.js +32 -30
  14. package/dist/cjs/{ADlgInfeed-d95c9027.js → ADlgInfeed-93205fa0.js} +9 -8
  15. package/dist/cjs/AccordionPanel.js +32 -29
  16. package/dist/cjs/AdSlot.js +33 -31
  17. package/dist/cjs/AdSlotsProvider.js +8 -7
  18. package/dist/cjs/AlphabeticList.js +26 -24
  19. package/dist/cjs/ArticleCarousel.js +23 -21
  20. package/dist/cjs/ArticleSeriesListing.js +59 -57
  21. package/dist/cjs/Auth.js +817 -530
  22. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-482218ce.js} +14 -13
  23. package/dist/cjs/Beam.js +10 -9
  24. package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-eca358e4.js} +25 -24
  25. package/dist/cjs/Breadcrumbs.js +30 -27
  26. package/dist/cjs/BrowseVideosListing.js +41 -39
  27. package/dist/cjs/CMEDeck.js +79 -78
  28. package/dist/cjs/Column1.js +14 -11
  29. package/dist/cjs/Column2.js +36 -32
  30. package/dist/cjs/Column3.js +59 -55
  31. package/dist/cjs/ConferenceArticleCard.js +38 -37
  32. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  33. package/dist/cjs/DeckContent.js +107 -102
  34. package/dist/cjs/DeckQueue.js +91 -86
  35. package/dist/cjs/{Dfp-390337bf.js → Dfp-80c3d853.js} +32 -30
  36. package/dist/cjs/EventsDeck.js +157 -149
  37. package/dist/cjs/ExternalResources.js +76 -74
  38. package/dist/cjs/Feature.js +27 -25
  39. package/dist/cjs/ForbesHero.js +42 -40
  40. package/dist/cjs/GridContent.js +182 -177
  41. package/dist/cjs/GridHero.js +44 -42
  42. package/dist/cjs/GroupDeck.js +51 -49
  43. package/dist/cjs/HamMagazine.js +145 -139
  44. package/dist/cjs/Header.js +13 -11
  45. package/dist/cjs/Hero.js +13 -12
  46. package/dist/cjs/HighlightenVideo.js +18 -17
  47. package/dist/cjs/HorizontalHero.js +26 -25
  48. package/dist/cjs/IssueContentDeck.js +78 -72
  49. package/dist/cjs/IssueDeck.js +76 -70
  50. package/dist/cjs/IssueLanding.js +71 -69
  51. package/dist/cjs/KMTracker.js +15 -15
  52. package/dist/cjs/LeftNav.js +39 -36
  53. package/dist/cjs/MasterDeck.js +81 -79
  54. package/dist/cjs/NavDvm.js +81 -75
  55. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  56. package/dist/cjs/NavMagazine.js +154 -148
  57. package/dist/cjs/NavNative.js +133 -124
  58. package/dist/cjs/NavNormal.js +54 -48
  59. package/dist/cjs/OncliveHero.js +20 -20
  60. package/dist/cjs/OncliveLargeHero.js +68 -66
  61. package/dist/cjs/PageFilter.js +16 -14
  62. package/dist/cjs/PartnerDetailListing.js +107 -1302
  63. package/dist/cjs/PdfDownload.js +9 -8
  64. package/dist/cjs/PopUpModal.js +22 -19
  65. package/dist/cjs/PublicationDeck.js +66 -61
  66. package/dist/cjs/PublicationLanding.js +119 -114
  67. package/dist/cjs/QueueDeckExpanded.js +293 -292
  68. package/dist/cjs/RecentNews.js +24 -23
  69. package/dist/cjs/RelatedContent.js +53 -52
  70. package/dist/cjs/RelatedTopicsDropdown.js +32 -29
  71. package/dist/cjs/RolesDeck.js +32 -27
  72. package/dist/cjs/Search.js +23 -18
  73. package/dist/cjs/Segment.js +8 -7
  74. package/dist/cjs/SetCookie.js +1 -1
  75. package/dist/cjs/SideFooter.js +39 -37
  76. package/dist/cjs/SocialIcons.js +10 -9
  77. package/dist/cjs/{SocialSearchComponent-56d49a1a.js → SocialSearchComponent-a49e8e9d.js} +40 -36
  78. package/dist/cjs/SocialShare.js +31 -29
  79. package/dist/cjs/TaxonomyCard.js +63 -57
  80. package/dist/cjs/TemplateNormal.js +74 -72
  81. package/dist/cjs/ThumbnailCard.js +22 -20
  82. package/dist/cjs/Ustream.js +28 -26
  83. package/dist/cjs/VerticalHero.js +18 -17
  84. package/dist/cjs/VideoSeriesCard.js +35 -33
  85. package/dist/cjs/VideoSeriesFilter.js +20 -19
  86. package/dist/cjs/VideoSeriesListing.js +74 -72
  87. package/dist/cjs/View.js +227 -223
  88. package/dist/cjs/YahooHero.js +41 -39
  89. package/dist/cjs/YoutubeGroup.js +70 -68
  90. package/dist/cjs/{_to-object-329a650b.js → _export-7e018e14.js} +2 -146
  91. package/dist/cjs/{_is-array-754e012d.js → _is-array-4c61cfba.js} +13 -12
  92. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2a826637.js} +4 -4
  93. package/dist/cjs/_object-sap-4ac28868.js +16 -0
  94. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-d088ff6e.js} +10 -9
  95. package/dist/cjs/_to-object-233fc5c9.js +149 -0
  96. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-7ca8f87e.js} +58 -57
  97. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  98. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-14f49e03.js} +4 -3
  99. package/dist/cjs/{define-property-f4d12f4e.js → define-property-fd46a81e.js} +3 -3
  100. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-edc12c5a.js} +1 -1
  101. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  102. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-a390d61f.js} +18 -17
  103. package/dist/cjs/{extends-60837c34.js → extends-0a166456.js} +6 -5
  104. package/dist/cjs/getRelatedArticle.js +425 -13
  105. package/dist/cjs/getSerializers.js +42 -41
  106. package/dist/cjs/getSeriesDetail.js +1 -1
  107. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-57edbc60.js} +11 -11
  108. package/dist/cjs/getTargeting.js +8 -7
  109. package/dist/cjs/iconBase-68959171.js +0 -3
  110. package/dist/cjs/{index-58dae365.js → index-0e3597c2.js} +440 -429
  111. package/dist/cjs/{index-099d45ae.js → index-5ad2b070.js} +16 -17
  112. package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
  113. package/dist/cjs/index-bd6c9f56.js +211 -0
  114. package/dist/cjs/{index-3294d3bc.js → index-cb6ed1fc.js} +17 -18
  115. package/dist/cjs/{index-39beccb3.js → index-d48b231c.js} +29 -24
  116. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  117. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  118. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  119. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  120. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  121. package/dist/cjs/index.js +9 -260
  122. package/dist/cjs/{inherits-513d81cd.js → inherits-a9209207.js} +16 -15
  123. package/dist/cjs/{keys-a586b7a0.js → keys-d2f5bcf0.js} +4 -3
  124. package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
  125. package/dist/cjs/{main-03ffa84c.js → main-eeffe77b.js} +116 -80
  126. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  127. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  128. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-60dafa9c.js} +7 -7
  129. package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
  130. package/dist/cjs/{stringify-7c5aff47.js → stringify-44244c64.js} +2 -2
  131. package/dist/cjs/timeDifferenceCalc.js +1 -1
  132. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-4bb00640.js} +9 -8
  133. package/dist/cjs/{typeof-725500bc.js → typeof-03c3fdc8.js} +50 -49
  134. package/dist/cjs/urlFor.js +2 -2
  135. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  136. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  137. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-2d47ebe6.js} +6 -5
  138. package/dist/esm/AD.js +7 -7
  139. package/dist/esm/AD300x250.js +23 -22
  140. package/dist/esm/AD300x250x600.js +23 -22
  141. package/dist/esm/AD728x90.js +26 -25
  142. package/dist/esm/ADFloatingFooter.js +28 -27
  143. package/dist/esm/ADFooter.js +12 -11
  144. package/dist/esm/ADGutter.js +25 -24
  145. package/dist/esm/{ADInfeed-7b1b2fcb.js → ADInfeed-bf7de12d.js} +7 -7
  146. package/dist/esm/ADSkyscraper.js +25 -24
  147. package/dist/esm/ADSponsoredResources.js +25 -24
  148. package/dist/esm/ADWebcast.js +25 -24
  149. package/dist/esm/ADWelcome.js +29 -28
  150. package/dist/esm/{ADlgInfeed-2afe92e6.js → ADlgInfeed-3ac04591.js} +6 -6
  151. package/dist/esm/AccordionPanel.js +25 -24
  152. package/dist/esm/AdSlot.js +24 -23
  153. package/dist/esm/AdSlotsProvider.js +4 -4
  154. package/dist/esm/AlphabeticList.js +23 -22
  155. package/dist/esm/ArticleCarousel.js +19 -18
  156. package/dist/esm/ArticleSeriesListing.js +53 -52
  157. package/dist/esm/Auth.js +798 -515
  158. package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-22790017.js} +11 -11
  159. package/dist/esm/Beam.js +10 -9
  160. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-d8cd739c.js} +4 -4
  161. package/dist/esm/Breadcrumbs.js +18 -17
  162. package/dist/esm/BrowseVideosListing.js +37 -36
  163. package/dist/esm/CMEDeck.js +76 -75
  164. package/dist/esm/Column1.js +5 -5
  165. package/dist/esm/Column2.js +27 -26
  166. package/dist/esm/Column3.js +50 -49
  167. package/dist/esm/ConferenceArticleCard.js +33 -33
  168. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  169. package/dist/esm/DeckContent.js +85 -84
  170. package/dist/esm/DeckQueue.js +65 -64
  171. package/dist/esm/{Dfp-741c01be.js → Dfp-08279047.js} +21 -20
  172. package/dist/esm/EventsDeck.js +101 -100
  173. package/dist/esm/ExternalResources.js +70 -69
  174. package/dist/esm/Feature.js +18 -18
  175. package/dist/esm/ForbesHero.js +35 -34
  176. package/dist/esm/GridContent.js +140 -139
  177. package/dist/esm/GridHero.js +37 -36
  178. package/dist/esm/GroupDeck.js +46 -45
  179. package/dist/esm/HamMagazine.js +114 -113
  180. package/dist/esm/Header.js +7 -7
  181. package/dist/esm/Hero.js +9 -9
  182. package/dist/esm/HighlightenVideo.js +14 -14
  183. package/dist/esm/HorizontalHero.js +21 -21
  184. package/dist/esm/IssueContentDeck.js +50 -49
  185. package/dist/esm/IssueDeck.js +47 -46
  186. package/dist/esm/IssueLanding.js +68 -67
  187. package/dist/esm/KMTracker.js +15 -15
  188. package/dist/esm/LeftNav.js +34 -33
  189. package/dist/esm/MasterDeck.js +74 -73
  190. package/dist/esm/NavDvm.js +58 -57
  191. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  192. package/dist/esm/NavMagazine.js +125 -124
  193. package/dist/esm/NavNative.js +101 -100
  194. package/dist/esm/NavNormal.js +37 -36
  195. package/dist/esm/OncliveHero.js +16 -17
  196. package/dist/esm/OncliveLargeHero.js +60 -59
  197. package/dist/esm/PageFilter.js +13 -12
  198. package/dist/esm/PartnerDetailListing.js +105 -1300
  199. package/dist/esm/PdfDownload.js +6 -6
  200. package/dist/esm/PopUpModal.js +15 -14
  201. package/dist/esm/PublicationDeck.js +38 -38
  202. package/dist/esm/PublicationLanding.js +76 -75
  203. package/dist/esm/QueueDeckExpanded.js +274 -273
  204. package/dist/esm/RecentNews.js +20 -20
  205. package/dist/esm/RelatedContent.js +47 -47
  206. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  207. package/dist/esm/RolesDeck.js +13 -13
  208. package/dist/esm/Search.js +13 -12
  209. package/dist/esm/Segment.js +8 -7
  210. package/dist/esm/SetCookie.js +1 -1
  211. package/dist/esm/SideFooter.js +34 -33
  212. package/dist/esm/SocialIcons.js +7 -7
  213. package/dist/esm/{SocialSearchComponent-677ed3bd.js → SocialSearchComponent-46ea0f4d.js} +28 -28
  214. package/dist/esm/SocialShare.js +25 -25
  215. package/dist/esm/TaxonomyCard.js +42 -41
  216. package/dist/esm/TemplateNormal.js +68 -67
  217. package/dist/esm/ThumbnailCard.js +13 -13
  218. package/dist/esm/Ustream.js +24 -23
  219. package/dist/esm/VerticalHero.js +13 -13
  220. package/dist/esm/VideoSeriesCard.js +26 -25
  221. package/dist/esm/VideoSeriesFilter.js +17 -16
  222. package/dist/esm/VideoSeriesListing.js +67 -66
  223. package/dist/esm/View.js +215 -215
  224. package/dist/esm/YahooHero.js +35 -34
  225. package/dist/esm/YoutubeGroup.js +54 -53
  226. package/dist/esm/{_to-object-ded78eb9.js → _export-9029ebab.js} +3 -134
  227. package/dist/esm/{_is-array-49698029.js → _is-array-46713c19.js} +7 -6
  228. package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-60cd145f.js} +2 -2
  229. package/dist/esm/{_object-pie-71ac75a4.js → _object-pie-33c40e79.js} +1 -1
  230. package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-108a1939.js} +1 -1
  231. package/dist/esm/{_set-species-cede29f8.js → _set-species-a4b3fe39.js} +6 -5
  232. package/dist/esm/_to-object-62924b74.js +135 -0
  233. package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-7714cea4.js} +10 -9
  234. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  235. package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-6636b3ef.js} +3 -2
  236. package/dist/esm/{define-property-de3fc946.js → define-property-f2d6f244.js} +1 -1
  237. package/dist/esm/{defineProperty-b798470d.js → defineProperty-69f06029.js} +1 -1
  238. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  239. package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-2efae22d.js} +4 -3
  240. package/dist/esm/{extends-cc5da797.js → extends-f866c8d0.js} +3 -2
  241. package/dist/esm/getRelatedArticle.js +425 -13
  242. package/dist/esm/getSerializers.js +42 -41
  243. package/dist/esm/getSeriesDetail.js +1 -1
  244. package/dist/esm/{getTargeting-2acdec91.js → getTargeting-5cdca4e1.js} +11 -11
  245. package/dist/esm/getTargeting.js +9 -8
  246. package/dist/esm/{index-3849e3fe.js → index-3f5c03b2.js} +29 -24
  247. package/dist/esm/{index-7779a6df.js → index-5db919a6.js} +384 -380
  248. package/dist/esm/{index-3f4dd6f2.js → index-669ff425.js} +10 -12
  249. package/dist/esm/{index-ef6d5dcf.js → index-750a7380.js} +17 -18
  250. package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
  251. package/dist/esm/index-db3bb315.js +207 -0
  252. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  253. package/dist/esm/{index.esm-29e48d38.js → index.esm-57f377a5.js} +7 -16
  254. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  255. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  256. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  257. package/dist/esm/index.js +11 -172
  258. package/dist/esm/{inherits-7ee3e0c1.js → inherits-75d6495f.js} +6 -5
  259. package/dist/esm/{keys-fc2d4c34.js → keys-78217618.js} +3 -2
  260. package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
  261. package/dist/esm/{main-35ff7b4f.js → main-decc48f4.js} +113 -78
  262. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  263. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  264. package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-fa9240c4.js} +4 -4
  265. package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
  266. package/dist/esm/{stringify-008c8802.js → stringify-22907f56.js} +1 -1
  267. package/dist/esm/timeDifferenceCalc.js +1 -1
  268. package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-bd01c637.js} +5 -4
  269. package/dist/esm/{typeof-08f2c380.js → typeof-668f30cd.js} +9 -8
  270. package/dist/esm/urlFor.js +1 -1
  271. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  272. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  273. package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-89515070.js} +4 -3
  274. package/package.json +105 -105
  275. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
  276. package/dist/cjs/_object-sap-5e74ba08.js +0 -16
@@ -1,16 +1,428 @@
1
1
  'use strict';
2
2
 
3
- require('./_commonjsHelpers-06173234.js');
4
- require('./_to-object-329a650b.js');
5
- require('./es6.string.iterator-cc0bbaa4.js');
6
- require('./_library-dd23b178.js');
7
- require('./_iter-detect-60b2f026.js');
8
- require('./core.get-iterator-method-f62321d4.js');
9
- require('./web.dom.iterable-a0e279c1.js');
10
- var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
11
- require('./_set-species-f92c67c5.js');
12
- var nookies = require('nookies');
3
+ var asyncToGenerator = require('./asyncToGenerator-7ca8f87e.js');
4
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
5
+ var index = require('./index-bd6c9f56.js');
13
6
  var getQuery = require('./getQuery.js');
7
+ require('./es6.string.iterator-a390d61f.js');
8
+ require('./_to-object-233fc5c9.js');
9
+ require('./_export-7e018e14.js');
10
+ require('./web.dom.iterable-2d47ebe6.js');
11
+ require('./_library-dd23b178.js');
12
+ require('./core.get-iterator-method-14f49e03.js');
13
+ require('./_set-species-d088ff6e.js');
14
+ require('./_iter-detect-2a826637.js');
15
+
16
+ var defaultParseOptions = {
17
+ decodeValues: true,
18
+ map: false,
19
+ silent: false,
20
+ };
21
+
22
+ function isNonEmptyString(str) {
23
+ return typeof str === "string" && !!str.trim();
24
+ }
25
+
26
+ function parseString(setCookieValue, options) {
27
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
28
+ var nameValue = parts.shift().split("=");
29
+ var name = nameValue.shift();
30
+ var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
31
+
32
+ options = options
33
+ ? Object.assign({}, defaultParseOptions, options)
34
+ : defaultParseOptions;
35
+
36
+ try {
37
+ value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
38
+ } catch (e) {
39
+ console.error(
40
+ `set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
41
+ e
42
+ );
43
+ }
44
+
45
+ var cookie = {
46
+ name: name, // grab everything before the first =
47
+ value: value,
48
+ };
49
+
50
+ parts.forEach(function (part) {
51
+ var sides = part.split("=");
52
+ var key = sides.shift().trimLeft().toLowerCase();
53
+ var value = sides.join("=");
54
+ if (key === "expires") {
55
+ cookie.expires = new Date(value);
56
+ } else if (key === "max-age") {
57
+ cookie.maxAge = parseInt(value, 10);
58
+ } else if (key === "secure") {
59
+ cookie.secure = true;
60
+ } else if (key === "httponly") {
61
+ cookie.httpOnly = true;
62
+ } else if (key === "samesite") {
63
+ cookie.sameSite = value;
64
+ } else {
65
+ cookie[key] = value;
66
+ }
67
+ });
68
+
69
+ return cookie;
70
+ }
71
+
72
+ function parse(input, options) {
73
+ options = options
74
+ ? Object.assign({}, defaultParseOptions, options)
75
+ : defaultParseOptions;
76
+
77
+ if (!input) {
78
+ if (!options.map) {
79
+ return [];
80
+ } else {
81
+ return {};
82
+ }
83
+ }
84
+
85
+ if (input.headers && input.headers["set-cookie"]) {
86
+ // fast-path for node.js (which automatically normalizes header names to lower-case
87
+ input = input.headers["set-cookie"];
88
+ } else if (input.headers) {
89
+ // slow-path for other environments - see #25
90
+ var sch =
91
+ input.headers[
92
+ Object.keys(input.headers).find(function (key) {
93
+ return key.toLowerCase() === "set-cookie";
94
+ })
95
+ ];
96
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
97
+ if (!sch && input.headers.cookie && !options.silent) {
98
+ console.warn(
99
+ "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."
100
+ );
101
+ }
102
+ input = sch;
103
+ }
104
+ if (!Array.isArray(input)) {
105
+ input = [input];
106
+ }
107
+
108
+ options = options
109
+ ? Object.assign({}, defaultParseOptions, options)
110
+ : defaultParseOptions;
111
+
112
+ if (!options.map) {
113
+ return input.filter(isNonEmptyString).map(function (str) {
114
+ return parseString(str, options);
115
+ });
116
+ } else {
117
+ var cookies = {};
118
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
119
+ var cookie = parseString(str, options);
120
+ cookies[cookie.name] = cookie;
121
+ return cookies;
122
+ }, cookies);
123
+ }
124
+ }
125
+
126
+ /*
127
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
128
+ that are within a single set-cookie field-value, such as in the Expires portion.
129
+
130
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
131
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
132
+ React Native's fetch does this for *every* header, including set-cookie.
133
+
134
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
135
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
136
+ */
137
+ function splitCookiesString(cookiesString) {
138
+ if (Array.isArray(cookiesString)) {
139
+ return cookiesString;
140
+ }
141
+ if (typeof cookiesString !== "string") {
142
+ return [];
143
+ }
144
+
145
+ var cookiesStrings = [];
146
+ var pos = 0;
147
+ var start;
148
+ var ch;
149
+ var lastComma;
150
+ var nextStart;
151
+ var cookiesSeparatorFound;
152
+
153
+ function skipWhitespace() {
154
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
155
+ pos += 1;
156
+ }
157
+ return pos < cookiesString.length;
158
+ }
159
+
160
+ function notSpecialChar() {
161
+ ch = cookiesString.charAt(pos);
162
+
163
+ return ch !== "=" && ch !== ";" && ch !== ",";
164
+ }
165
+
166
+ while (pos < cookiesString.length) {
167
+ start = pos;
168
+ cookiesSeparatorFound = false;
169
+
170
+ while (skipWhitespace()) {
171
+ ch = cookiesString.charAt(pos);
172
+ if (ch === ",") {
173
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
174
+ lastComma = pos;
175
+ pos += 1;
176
+
177
+ skipWhitespace();
178
+ nextStart = pos;
179
+
180
+ while (pos < cookiesString.length && notSpecialChar()) {
181
+ pos += 1;
182
+ }
183
+
184
+ // currently special character
185
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
186
+ // we found cookies separator
187
+ cookiesSeparatorFound = true;
188
+ // pos is inside the next cookie, so back up and return it.
189
+ pos = nextStart;
190
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
191
+ start = pos;
192
+ } else {
193
+ // in param ',' or param separator ';',
194
+ // we continue from that comma
195
+ pos = lastComma + 1;
196
+ }
197
+ } else {
198
+ pos += 1;
199
+ }
200
+ }
201
+
202
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
203
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
204
+ }
205
+ }
206
+
207
+ return cookiesStrings;
208
+ }
209
+
210
+ var setCookie = parse;
211
+ var parse_1 = parse;
212
+ var parseString_1 = parseString;
213
+ var splitCookiesString_1 = splitCookiesString;
214
+ setCookie.parse = parse_1;
215
+ setCookie.parseString = parseString_1;
216
+ setCookie.splitCookiesString = splitCookiesString_1;
217
+
218
+ var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
219
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
220
+ __assign = Object.assign || function(t) {
221
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
222
+ s = arguments[i];
223
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
224
+ t[p] = s[p];
225
+ }
226
+ return t;
227
+ };
228
+ return __assign.apply(this, arguments);
229
+ };
230
+ Object.defineProperty(exports, "__esModule", { value: true });
231
+ exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
232
+ /**
233
+ * Tells whether we are in a browser or server.
234
+ */
235
+ function isBrowser() {
236
+ return typeof window !== 'undefined';
237
+ }
238
+ exports.isBrowser = isBrowser;
239
+ /**
240
+ * Create an instance of the Cookie interface
241
+ */
242
+ function createCookie(name, value, options) {
243
+ var sameSite = options.sameSite;
244
+ if (sameSite === true) {
245
+ sameSite = 'strict';
246
+ }
247
+ if (sameSite === undefined || sameSite === false) {
248
+ sameSite = 'lax';
249
+ }
250
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
251
+ delete cookieToSet.encode;
252
+ return __assign({ name: name, value: value }, cookieToSet);
253
+ }
254
+ exports.createCookie = createCookie;
255
+ /**
256
+ * Tells whether given objects have the same properties.
257
+ */
258
+ function hasSameProperties(a, b) {
259
+ var aProps = Object.getOwnPropertyNames(a);
260
+ var bProps = Object.getOwnPropertyNames(b);
261
+ if (aProps.length !== bProps.length) {
262
+ return false;
263
+ }
264
+ for (var i = 0; i < aProps.length; i++) {
265
+ var propName = aProps[i];
266
+ if (a[propName] !== b[propName]) {
267
+ return false;
268
+ }
269
+ }
270
+ return true;
271
+ }
272
+ exports.hasSameProperties = hasSameProperties;
273
+ /**
274
+ * Compare the cookie and return true if the cookies have equivalent
275
+ * options and the cookies would be overwritten in the browser storage.
276
+ *
277
+ * @param a first Cookie for comparison
278
+ * @param b second Cookie for comparison
279
+ */
280
+ function areCookiesEqual(a, b) {
281
+ var sameSiteSame = a.sameSite === b.sameSite;
282
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
283
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
284
+ }
285
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
286
+ }
287
+ exports.areCookiesEqual = areCookiesEqual;
288
+ /* Functions */
289
+
290
+ });
291
+
292
+ _commonjsHelpers.unwrapExports(utils);
293
+ utils.areCookiesEqual;
294
+ utils.hasSameProperties;
295
+ utils.createCookie;
296
+ utils.isBrowser;
297
+
298
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
299
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
300
+ __assign = Object.assign || function(t) {
301
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
302
+ s = arguments[i];
303
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
304
+ t[p] = s[p];
305
+ }
306
+ return t;
307
+ };
308
+ return __assign.apply(this, arguments);
309
+ };
310
+ Object.defineProperty(exports, "__esModule", { value: true });
311
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
312
+
313
+
314
+
315
+ /**
316
+ * Parses cookies.
317
+ *
318
+ * @param ctx NextJS page or API context, express context, null or undefined.
319
+ * @param options Options that we pass down to `cookie` library.
320
+ */
321
+ function parseCookies(ctx, options) {
322
+ var _a, _b;
323
+ 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) {
324
+ return index.cookie.parse(ctx.req.headers.cookie, options);
325
+ }
326
+ if (utils.isBrowser()) {
327
+ return index.cookie.parse(document.cookie, options);
328
+ }
329
+ return {};
330
+ }
331
+ exports.parseCookies = parseCookies;
332
+ /**
333
+ * Sets a cookie.
334
+ *
335
+ * @param ctx NextJS page or API context, express context, null or undefined.
336
+ * @param name The name of your cookie.
337
+ * @param value The value of your cookie.
338
+ * @param options Options that we pass down to `cookie` library.
339
+ */
340
+ function setCookie$1(ctx, name, value, options) {
341
+ var _a, _b;
342
+ if (options === void 0) { options = {}; }
343
+ // SSR
344
+ if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
345
+ // Check if response has finished and warn about it.
346
+ if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
347
+ console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
348
+ console.warn("You should set cookie before res.send()");
349
+ return {};
350
+ }
351
+ /**
352
+ * Load existing cookies from the header and parse them.
353
+ */
354
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
355
+ if (typeof cookies === 'string')
356
+ cookies = [cookies];
357
+ if (typeof cookies === 'number')
358
+ cookies = [];
359
+ /**
360
+ * Parse cookies but ignore values - we've already encoded
361
+ * them in the previous call.
362
+ */
363
+ var parsedCookies = setCookie.parse(cookies, {
364
+ decodeValues: false,
365
+ });
366
+ /**
367
+ * We create the new cookie and make sure that none of
368
+ * the existing cookies match it.
369
+ */
370
+ var newCookie_1 = utils.createCookie(name, value, options);
371
+ var cookiesToSet_1 = [];
372
+ parsedCookies.forEach(function (parsedCookie) {
373
+ if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
374
+ /**
375
+ * We serialize the cookie back to the original format
376
+ * if it isn't the same as the new one.
377
+ */
378
+ var serializedCookie = index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
379
+ // we prevent reencoding by default, but you might override it
380
+ encode: function (val) { return val; } }, parsedCookie));
381
+ cookiesToSet_1.push(serializedCookie);
382
+ }
383
+ });
384
+ cookiesToSet_1.push(index.cookie.serialize(name, value, options));
385
+ // Update the header.
386
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
387
+ }
388
+ // Browser
389
+ if (utils.isBrowser()) {
390
+ if (options && options.httpOnly) {
391
+ throw new Error('Can not set a httpOnly cookie in the browser.');
392
+ }
393
+ document.cookie = index.cookie.serialize(name, value, options);
394
+ }
395
+ return {};
396
+ }
397
+ exports.setCookie = setCookie$1;
398
+ /**
399
+ * Destroys a cookie with a particular name.
400
+ *
401
+ * @param ctx NextJS page or API context, express context, null or undefined.
402
+ * @param name Cookie name.
403
+ * @param options Options that we pass down to `cookie` library.
404
+ */
405
+ function destroyCookie(ctx, name, options) {
406
+ /**
407
+ * We forward the request destroy to setCookie function
408
+ * as it is the same function with modified maxAge value.
409
+ */
410
+ return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
411
+ }
412
+ exports.destroyCookie = destroyCookie;
413
+ /* Utility Exports */
414
+ exports.default = {
415
+ set: setCookie$1,
416
+ get: parseCookies,
417
+ destroy: destroyCookie,
418
+ };
419
+
420
+ });
421
+
422
+ _commonjsHelpers.unwrapExports(dist);
423
+ dist.destroyCookie;
424
+ var dist_2 = dist.setCookie;
425
+ var dist_3 = dist.parseCookies;
14
426
 
15
427
  var _this = undefined;
16
428
 
@@ -88,13 +500,13 @@ var getRelatedArticle = function () {
88
500
 
89
501
 
90
502
  if (ctx && url) {
91
- cookies = nookies.parseCookies(ctx);
503
+ cookies = dist_3(ctx);
92
504
  prevSlugs = cookies['prevSlugs'];
93
505
 
94
506
  if (!!prevSlugs) {
95
- nookies.setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
507
+ dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
96
508
  filters = '&& !(url.current in [' + prevSlugs + '])';
97
- } else nookies.setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
509
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
98
510
  }
99
511
 
100
512
  query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
@@ -1,53 +1,54 @@
1
1
  'use strict';
2
2
 
3
- require('./_commonjsHelpers-06173234.js');
4
- require('./_to-object-329a650b.js');
5
- require('./es6.string.iterator-cc0bbaa4.js');
6
- require('./_library-dd23b178.js');
7
- require('./_iter-detect-60b2f026.js');
8
- require('./toConsumableArray-9a3476fe.js');
9
- require('./core.get-iterator-method-f62321d4.js');
10
- require('./_object-pie-68c5bcbc.js');
11
- require('./extends-60837c34.js');
12
- require('./_object-sap-5e74ba08.js');
13
- require('./inherits-513d81cd.js');
14
- require('./define-property-f4d12f4e.js');
15
- require('./web.dom.iterable-a0e279c1.js');
16
- require('./typeof-725500bc.js');
17
- require('./_is-array-754e012d.js');
18
3
  require('react');
19
- require('./index-099d45ae.js');
4
+ var getSerializers = require('./index-0e3597c2.js');
5
+ require('./BlockContent-eca358e4.js');
6
+ require('./entities-3f9d0f2f.js');
7
+ require('./slicedToArray-60dafa9c.js');
8
+ require('./_commonjsHelpers-06173234.js');
9
+ require('./web.dom.iterable-2d47ebe6.js');
10
+ require('./es6.string.iterator-a390d61f.js');
11
+ require('./_to-object-233fc5c9.js');
12
+ require('./_export-7e018e14.js');
13
+ require('./core.get-iterator-method-14f49e03.js');
14
+ require('react-bootstrap');
15
+ require('./index-d48b231c.js');
16
+ require('./index-5ad2b070.js');
20
17
  require('prop-types');
21
- require('react-bootstrap/Row');
22
- require('react-bootstrap/Col');
23
- require('./moment-575fe24c.js');
24
18
  require('next/router');
25
- require('./isSymbol-04666465.js');
26
- require('./debounce-eb287781.js');
27
- require('react-dom');
28
- require('./index-39beccb3.js');
29
- require('./index-da796b8c.js');
30
- require('./main-03ffa84c.js');
31
- require('./entities-310b46ee.js');
32
- require('./stringify-7c5aff47.js');
33
- require('./slicedToArray-8f385299.js');
34
- require('./asyncToGenerator-533d476a.js');
35
- require('./_set-species-f92c67c5.js');
36
- require('./Segment.js');
19
+ require('./smoothscroll-1abb448e.js');
20
+ require('./util-6f784d85.js');
37
21
  require('./Beam.js');
38
- require('./AdSlot.js');
39
- require('./BlockContent-80b15fac.js');
40
- require('./smoothscroll-95231a70.js');
22
+ require('./stringify-44244c64.js');
23
+ require('./asyncToGenerator-7ca8f87e.js');
24
+ require('./_library-dd23b178.js');
25
+ require('./_set-species-d088ff6e.js');
26
+ require('./_iter-detect-2a826637.js');
27
+ require('./Segment.js');
28
+ require('./main-eeffe77b.js');
29
+ require('./extends-0a166456.js');
30
+ require('./_object-pie-68c5bcbc.js');
31
+ require('./index-80f57cff.js');
32
+ require('react-dom');
33
+ require('./typeof-03c3fdc8.js');
34
+ require('./_is-array-4c61cfba.js');
35
+ require('./brightcove-react-player-loader.es-a195642e.js');
41
36
  require('./GroupDeck.js');
42
- require('react-bootstrap');
43
- require('./iconBase-68959171.js');
44
- require('./index.esm-90433435.js');
45
- require('react-bootstrap/Button');
46
- var getSerializers = require('./index-58dae365.js');
47
- require('./util-f2c1b65b.js');
48
- require('./brightcove-react-player-loader.es-156bd4d6.js');
37
+ require('./moment-aca40de1.js');
38
+ require('./toConsumableArray-4bb00640.js');
49
39
  require('react-bootstrap/Pagination');
40
+ require('react-bootstrap/Button');
41
+ require('./AdSlot.js');
42
+ require('./debounce-eb287781.js');
43
+ require('./isSymbol-04666465.js');
44
+ require('react-bootstrap/Row');
45
+ require('react-bootstrap/Col');
50
46
  require('next/head');
47
+ require('./inherits-a9209207.js');
48
+ require('./_object-sap-4ac28868.js');
49
+ require('./define-property-fd46a81e.js');
50
+ require('./index.esm-974f47d9.js');
51
+ require('./iconBase-68959171.js');
51
52
  require('react-bootstrap/Figure');
52
53
 
53
54
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var getSeriesDetail = function getSeriesDetail(article, currentSeries) {
4
4
  //For use in getInitialProps to return series detail to display next/prev links when javascript is disabled
5
- if (!currentSeries) {
5
+ if (!currentSeries || !article || !article.body) {
6
6
  return {
7
7
  seriesUrl: '',
8
8
  currentSeries: false,
@@ -1,21 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
4
- var _extends = require('./extends-60837c34.js');
3
+ var _extends = require('./extends-0a166456.js');
4
+ var toConsumableArray = require('./toConsumableArray-4bb00640.js');
5
5
 
6
6
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
7
- var cp_url = '';
8
- if (cp.ancestor && typeof cp.ancestor == 'string') {
9
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
10
- }
7
+ var cp_url = '';
8
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
9
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
10
+ }
11
11
 
12
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
13
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
14
- }
12
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
13
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
14
+ }
15
15
 
16
- cp_url += (cp_url === '' ? '' : '/') + cp.path;
16
+ cp_url += (cp_url === '' ? '' : '/') + cp.path;
17
17
 
18
- return cp_url;
18
+ return cp_url;
19
19
  };
20
20
 
21
21
  var getTargeting = function getTargeting(props) {
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
+ require('./extends-0a166456.js');
4
+ require('./toConsumableArray-4bb00640.js');
5
+ var getTargeting = require('./getTargeting-57edbc60.js');
3
6
  require('./_commonjsHelpers-06173234.js');
4
- require('./_to-object-329a650b.js');
5
- require('./es6.string.iterator-cc0bbaa4.js');
6
- require('./_iter-detect-60b2f026.js');
7
- require('./toConsumableArray-9a3476fe.js');
8
- require('./core.get-iterator-method-f62321d4.js');
7
+ require('./_export-7e018e14.js');
8
+ require('./_to-object-233fc5c9.js');
9
9
  require('./_object-pie-68c5bcbc.js');
10
- require('./extends-60837c34.js');
11
- var getTargeting = require('./getTargeting-fee8c429.js');
10
+ require('./es6.string.iterator-a390d61f.js');
11
+ require('./_iter-detect-2a826637.js');
12
+ require('./core.get-iterator-method-14f49e03.js');
12
13
 
13
14
 
14
15
 
@@ -1,9 +1,6 @@
1
1
  'use strict';
2
2
 
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
3
  var React = require('react');
6
- var React__default = _interopDefault(React);
7
4
 
8
5
  var DefaultContext = {
9
6
  color: undefined,