@mjhls/mjh-framework 1.0.689 → 1.0.690

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 (266) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/AD.js +10 -9
  3. package/dist/cjs/AD300x250.js +24 -23
  4. package/dist/cjs/AD300x250x600.js +24 -23
  5. package/dist/cjs/AD728x90.js +27 -26
  6. package/dist/cjs/ADFloatingFooter.js +29 -28
  7. package/dist/cjs/ADFooter.js +15 -14
  8. package/dist/cjs/ADGutter.js +26 -25
  9. package/dist/cjs/{ADInfeed-3410ab3c.js → ADInfeed-ba531ca6.js} +13 -11
  10. package/dist/cjs/ADSkyscraper.js +26 -25
  11. package/dist/cjs/ADSponsoredResources.js +26 -25
  12. package/dist/cjs/ADWebcast.js +26 -25
  13. package/dist/cjs/ADWelcome.js +30 -29
  14. package/dist/cjs/{ADlgInfeed-845aac15.js → ADlgInfeed-b0cc0e88.js} +9 -8
  15. package/dist/cjs/AccordionPanel.js +31 -29
  16. package/dist/cjs/AdSlot.js +30 -29
  17. package/dist/cjs/AdSlotsProvider.js +7 -6
  18. package/dist/cjs/AlphabeticList.js +25 -24
  19. package/dist/cjs/ArticleCarousel.js +22 -21
  20. package/dist/cjs/ArticleSeriesListing.js +58 -57
  21. package/dist/cjs/Auth.js +793 -557
  22. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-98ebefa4.js} +14 -13
  23. package/dist/cjs/Beam.js +9 -9
  24. package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-bbc3be61.js} +25 -24
  25. package/dist/cjs/Breadcrumbs.js +29 -27
  26. package/dist/cjs/BrowseVideosListing.js +28 -27
  27. package/dist/cjs/CMEDeck.js +77 -77
  28. package/dist/cjs/Column1.js +14 -11
  29. package/dist/cjs/Column2.js +35 -32
  30. package/dist/cjs/Column3.js +57 -54
  31. package/dist/cjs/ConferenceArticleCard.js +38 -37
  32. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  33. package/dist/cjs/DeckContent.js +106 -102
  34. package/dist/cjs/DeckQueue.js +90 -86
  35. package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-76acc8c2.js} +31 -30
  36. package/dist/cjs/EventsDeck.js +153 -146
  37. package/dist/cjs/ExternalResources.js +73 -72
  38. package/dist/cjs/Feature.js +27 -25
  39. package/dist/cjs/ForbesHero.js +41 -40
  40. package/dist/cjs/GridContent.js +180 -176
  41. package/dist/cjs/GridHero.js +43 -42
  42. package/dist/cjs/GroupDeck.js +50 -49
  43. package/dist/cjs/HamMagazine.js +144 -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 +77 -72
  49. package/dist/cjs/IssueDeck.js +75 -70
  50. package/dist/cjs/IssueLanding.js +70 -69
  51. package/dist/cjs/KMTracker.js +15 -15
  52. package/dist/cjs/LeftNav.js +37 -35
  53. package/dist/cjs/MasterDeck.js +81 -80
  54. package/dist/cjs/NavDvm.js +80 -75
  55. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  56. package/dist/cjs/NavMagazine.js +153 -148
  57. package/dist/cjs/NavNative.js +128 -120
  58. package/dist/cjs/NavNormal.js +53 -48
  59. package/dist/cjs/OncliveHero.js +20 -20
  60. package/dist/cjs/OncliveLargeHero.js +67 -66
  61. package/dist/cjs/PageFilter.js +15 -14
  62. package/dist/cjs/PartnerDetailListing.js +1302 -104
  63. package/dist/cjs/PdfDownload.js +9 -8
  64. package/dist/cjs/PopUpModal.js +21 -19
  65. package/dist/cjs/PublicationDeck.js +66 -61
  66. package/dist/cjs/PublicationLanding.js +98 -94
  67. package/dist/cjs/QueueDeckExpanded.js +292 -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 +22 -18
  73. package/dist/cjs/Segment.js +7 -7
  74. package/dist/cjs/SetCookie.js +1 -1
  75. package/dist/cjs/SideFooter.js +38 -37
  76. package/dist/cjs/SocialIcons.js +10 -9
  77. package/dist/cjs/{SocialSearchComponent-6b5e5b47.js → SocialSearchComponent-de064e93.js} +38 -34
  78. package/dist/cjs/SocialShare.js +31 -29
  79. package/dist/cjs/TaxonomyCard.js +62 -57
  80. package/dist/cjs/TemplateNormal.js +72 -71
  81. package/dist/cjs/ThumbnailCard.js +22 -20
  82. package/dist/cjs/Ustream.js +27 -26
  83. package/dist/cjs/VerticalHero.js +18 -17
  84. package/dist/cjs/VideoSeriesCard.js +34 -33
  85. package/dist/cjs/VideoSeriesFilter.js +19 -19
  86. package/dist/cjs/VideoSeriesListing.js +72 -71
  87. package/dist/cjs/View.js +238 -235
  88. package/dist/cjs/YahooHero.js +40 -39
  89. package/dist/cjs/YoutubeGroup.js +69 -68
  90. package/dist/cjs/{_is-array-754e012d.js → _is-array-b1090e3d.js} +6 -6
  91. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-8decaf0f.js} +2 -2
  92. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-b69cab35.js} +1 -1
  93. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-5c9fd235.js} +4 -4
  94. package/dist/cjs/{_to-object-329a650b.js → _to-object-e2d5cc9d.js} +3 -3
  95. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-a855b820.js} +6 -6
  96. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  97. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-bf3fde8c.js} +2 -2
  98. package/dist/cjs/{define-property-f4d12f4e.js → define-property-1d75ae0f.js} +1 -1
  99. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-16bd5829.js} +1 -1
  100. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-e3ce14ae.js} +1 -1
  101. package/dist/cjs/{extends-60837c34.js → extends-a9da965c.js} +1 -1
  102. package/dist/cjs/getRelatedArticle.js +424 -13
  103. package/dist/cjs/getSerializers.js +39 -39
  104. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-d8df2f51.js} +11 -11
  105. package/dist/cjs/getTargeting.js +7 -7
  106. package/dist/cjs/iconBase-68959171.js +0 -3
  107. package/dist/cjs/{index-b5eb3ff8.js → index-10185024.js} +3 -3
  108. package/dist/cjs/{index-2d0a4911.js → index-5ad2b070.js} +12 -11
  109. package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
  110. package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
  111. package/dist/cjs/index-bd6c9f56.js +211 -0
  112. package/dist/cjs/{index-44c25825.js → index-e1d6c590.js} +427 -417
  113. package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
  114. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  115. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  116. package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
  117. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  118. package/dist/cjs/index.js +126 -127
  119. package/dist/cjs/{inherits-513d81cd.js → inherits-3affeccb.js} +8 -8
  120. package/dist/cjs/{keys-a586b7a0.js → keys-218a754a.js} +2 -2
  121. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  122. package/dist/cjs/{main-b6c96c8d.js → main-df97bfe9.js} +84 -79
  123. package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
  124. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  125. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5b1b0ed8.js} +4 -4
  126. package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
  127. package/dist/cjs/{stringify-7c5aff47.js → stringify-4f757ee6.js} +1 -1
  128. package/dist/cjs/timeDifferenceCalc.js +1 -1
  129. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-57153848.js} +4 -4
  130. package/dist/cjs/{typeof-725500bc.js → typeof-c69a5548.js} +6 -6
  131. package/dist/cjs/urlFor.js +2 -2
  132. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  133. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-0ffca19f.js} +3 -3
  134. package/dist/esm/AD.js +7 -7
  135. package/dist/esm/AD300x250.js +20 -20
  136. package/dist/esm/AD300x250x600.js +20 -20
  137. package/dist/esm/AD728x90.js +23 -23
  138. package/dist/esm/ADFloatingFooter.js +25 -25
  139. package/dist/esm/ADFooter.js +11 -11
  140. package/dist/esm/ADGutter.js +22 -22
  141. package/dist/esm/{ADInfeed-205cb7a9.js → ADInfeed-45191cf8.js} +7 -7
  142. package/dist/esm/ADSkyscraper.js +22 -22
  143. package/dist/esm/ADSponsoredResources.js +22 -22
  144. package/dist/esm/ADWebcast.js +22 -22
  145. package/dist/esm/ADWelcome.js +26 -26
  146. package/dist/esm/{ADlgInfeed-e538f17a.js → ADlgInfeed-1f8fc733.js} +6 -6
  147. package/dist/esm/AccordionPanel.js +24 -24
  148. package/dist/esm/AdSlot.js +21 -21
  149. package/dist/esm/AdSlotsProvider.js +3 -3
  150. package/dist/esm/AlphabeticList.js +21 -21
  151. package/dist/esm/ArticleCarousel.js +18 -18
  152. package/dist/esm/ArticleSeriesListing.js +52 -52
  153. package/dist/esm/Auth.js +775 -543
  154. package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-30ec92a8.js} +11 -11
  155. package/dist/esm/Beam.js +9 -9
  156. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c5de3044.js} +4 -4
  157. package/dist/esm/Breadcrumbs.js +17 -17
  158. package/dist/esm/BrowseVideosListing.js +24 -24
  159. package/dist/esm/CMEDeck.js +73 -73
  160. package/dist/esm/Column1.js +5 -5
  161. package/dist/esm/Column2.js +26 -26
  162. package/dist/esm/Column3.js +47 -47
  163. package/dist/esm/ConferenceArticleCard.js +33 -33
  164. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  165. package/dist/esm/DeckContent.js +84 -84
  166. package/dist/esm/DeckQueue.js +64 -64
  167. package/dist/esm/{Dfp-8a8fca18.js → Dfp-8b5b19d0.js} +20 -20
  168. package/dist/esm/EventsDeck.js +99 -99
  169. package/dist/esm/ExternalResources.js +66 -66
  170. package/dist/esm/Feature.js +18 -18
  171. package/dist/esm/ForbesHero.js +34 -34
  172. package/dist/esm/GridContent.js +138 -138
  173. package/dist/esm/GridHero.js +36 -36
  174. package/dist/esm/GroupDeck.js +45 -45
  175. package/dist/esm/HamMagazine.js +113 -113
  176. package/dist/esm/Header.js +7 -7
  177. package/dist/esm/Hero.js +9 -9
  178. package/dist/esm/HighlightenVideo.js +14 -14
  179. package/dist/esm/HorizontalHero.js +21 -21
  180. package/dist/esm/IssueContentDeck.js +49 -49
  181. package/dist/esm/IssueDeck.js +46 -46
  182. package/dist/esm/IssueLanding.js +66 -66
  183. package/dist/esm/KMTracker.js +15 -15
  184. package/dist/esm/LeftNav.js +31 -31
  185. package/dist/esm/MasterDeck.js +74 -74
  186. package/dist/esm/NavDvm.js +57 -57
  187. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  188. package/dist/esm/NavMagazine.js +124 -124
  189. package/dist/esm/NavNative.js +98 -98
  190. package/dist/esm/NavNormal.js +36 -36
  191. package/dist/esm/OncliveHero.js +16 -17
  192. package/dist/esm/OncliveLargeHero.js +59 -59
  193. package/dist/esm/PageFilter.js +12 -12
  194. package/dist/esm/PartnerDetailListing.js +1296 -100
  195. package/dist/esm/PdfDownload.js +6 -6
  196. package/dist/esm/PopUpModal.js +14 -14
  197. package/dist/esm/PublicationDeck.js +38 -38
  198. package/dist/esm/PublicationLanding.js +75 -75
  199. package/dist/esm/QueueDeckExpanded.js +272 -272
  200. package/dist/esm/RecentNews.js +20 -20
  201. package/dist/esm/RelatedContent.js +47 -47
  202. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  203. package/dist/esm/RolesDeck.js +13 -13
  204. package/dist/esm/Search.js +12 -12
  205. package/dist/esm/Segment.js +7 -7
  206. package/dist/esm/SetCookie.js +1 -1
  207. package/dist/esm/SideFooter.js +33 -33
  208. package/dist/esm/SocialIcons.js +7 -7
  209. package/dist/esm/{SocialSearchComponent-7f14e0f3.js → SocialSearchComponent-cddc9ce1.js} +26 -26
  210. package/dist/esm/SocialShare.js +25 -25
  211. package/dist/esm/TaxonomyCard.js +41 -41
  212. package/dist/esm/TemplateNormal.js +65 -65
  213. package/dist/esm/ThumbnailCard.js +13 -13
  214. package/dist/esm/Ustream.js +23 -23
  215. package/dist/esm/VerticalHero.js +13 -13
  216. package/dist/esm/VideoSeriesCard.js +25 -25
  217. package/dist/esm/VideoSeriesFilter.js +16 -16
  218. package/dist/esm/VideoSeriesListing.js +65 -65
  219. package/dist/esm/View.js +224 -225
  220. package/dist/esm/YahooHero.js +34 -34
  221. package/dist/esm/YoutubeGroup.js +53 -53
  222. package/dist/esm/{_is-array-49698029.js → _is-array-ffa65b7e.js} +6 -6
  223. package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-256a4d61.js} +2 -2
  224. package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-0cecd031.js} +1 -1
  225. package/dist/esm/{_set-species-cede29f8.js → _set-species-09ba387c.js} +4 -4
  226. package/dist/esm/{_to-object-ded78eb9.js → _to-object-ee10dabb.js} +4 -4
  227. package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-b0af4000.js} +6 -6
  228. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  229. package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-0e6dc181.js} +2 -2
  230. package/dist/esm/{define-property-de3fc946.js → define-property-e013aae3.js} +1 -1
  231. package/dist/esm/{defineProperty-b798470d.js → defineProperty-2385da87.js} +1 -1
  232. package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-c5179428.js} +2 -2
  233. package/dist/esm/{extends-cc5da797.js → extends-03593dc6.js} +1 -1
  234. package/dist/esm/getRelatedArticle.js +424 -13
  235. package/dist/esm/getSerializers.js +39 -39
  236. package/dist/esm/{getTargeting-2acdec91.js → getTargeting-60717d7f.js} +11 -11
  237. package/dist/esm/getTargeting.js +7 -7
  238. package/dist/esm/{index-51a80699.js → index-4de5c15f.js} +3 -3
  239. package/dist/esm/{index-93ec3c59.js → index-669ff425.js} +6 -6
  240. package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
  241. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  242. package/dist/esm/{index-8a757d91.js → index-cbd95715.js} +373 -369
  243. package/dist/esm/index-db3bb315.js +207 -0
  244. package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
  245. package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
  246. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  247. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  248. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  249. package/dist/esm/index.js +104 -105
  250. package/dist/esm/{inherits-7ee3e0c1.js → inherits-d88f5b29.js} +5 -5
  251. package/dist/esm/{keys-fc2d4c34.js → keys-618df59d.js} +2 -2
  252. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  253. package/dist/esm/{main-0465b2a0.js → main-a2443735.js} +84 -80
  254. package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
  255. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  256. package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-648674b3.js} +4 -4
  257. package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
  258. package/dist/esm/{stringify-008c8802.js → stringify-7c97a94d.js} +1 -1
  259. package/dist/esm/timeDifferenceCalc.js +1 -1
  260. package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-aa76a4fe.js} +4 -4
  261. package/dist/esm/{typeof-08f2c380.js → typeof-5c759779.js} +6 -6
  262. package/dist/esm/urlFor.js +1 -1
  263. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  264. package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-de3b4afb.js} +3 -3
  265. package/package.json +107 -107
  266. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
@@ -1,14 +1,425 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-ded78eb9.js';
3
- import './es6.string.iterator-9b2af4a5.js';
4
- import './_library-528f1934.js';
5
- import './_iter-detect-59409a32.js';
6
- import './core.get-iterator-method-54d2e411.js';
7
- import './web.dom.iterable-8956f9a5.js';
8
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
9
- import './_set-species-cede29f8.js';
10
- import { parseCookies, setCookie } from 'nookies';
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b0af4000.js';
2
+ import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
3
+ import { c as cookie } from './index-db3bb315.js';
11
4
  import getQuery from './getQuery.js';
5
+ import './es6.string.iterator-c5179428.js';
6
+ import './_to-object-ee10dabb.js';
7
+ import './web.dom.iterable-de3b4afb.js';
8
+ import './_library-528f1934.js';
9
+ import './core.get-iterator-method-0e6dc181.js';
10
+ import './_set-species-09ba387c.js';
11
+ import './_iter-detect-256a4d61.js';
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
+ try {
34
+ value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
35
+ } catch (e) {
36
+ console.error(
37
+ `set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
38
+ e
39
+ );
40
+ }
41
+
42
+ var cookie = {
43
+ name: name, // grab everything before the first =
44
+ value: value,
45
+ };
46
+
47
+ parts.forEach(function (part) {
48
+ var sides = part.split("=");
49
+ var key = sides.shift().trimLeft().toLowerCase();
50
+ var value = sides.join("=");
51
+ if (key === "expires") {
52
+ cookie.expires = new Date(value);
53
+ } else if (key === "max-age") {
54
+ cookie.maxAge = parseInt(value, 10);
55
+ } else if (key === "secure") {
56
+ cookie.secure = true;
57
+ } else if (key === "httponly") {
58
+ cookie.httpOnly = true;
59
+ } else if (key === "samesite") {
60
+ cookie.sameSite = value;
61
+ } else {
62
+ cookie[key] = value;
63
+ }
64
+ });
65
+
66
+ return cookie;
67
+ }
68
+
69
+ function parse(input, options) {
70
+ options = options
71
+ ? Object.assign({}, defaultParseOptions, options)
72
+ : defaultParseOptions;
73
+
74
+ if (!input) {
75
+ if (!options.map) {
76
+ return [];
77
+ } else {
78
+ return {};
79
+ }
80
+ }
81
+
82
+ if (input.headers && input.headers["set-cookie"]) {
83
+ // fast-path for node.js (which automatically normalizes header names to lower-case
84
+ input = input.headers["set-cookie"];
85
+ } else if (input.headers) {
86
+ // slow-path for other environments - see #25
87
+ var sch =
88
+ input.headers[
89
+ Object.keys(input.headers).find(function (key) {
90
+ return key.toLowerCase() === "set-cookie";
91
+ })
92
+ ];
93
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
94
+ if (!sch && input.headers.cookie && !options.silent) {
95
+ console.warn(
96
+ "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."
97
+ );
98
+ }
99
+ input = sch;
100
+ }
101
+ if (!Array.isArray(input)) {
102
+ input = [input];
103
+ }
104
+
105
+ options = options
106
+ ? Object.assign({}, defaultParseOptions, options)
107
+ : defaultParseOptions;
108
+
109
+ if (!options.map) {
110
+ return input.filter(isNonEmptyString).map(function (str) {
111
+ return parseString(str, options);
112
+ });
113
+ } else {
114
+ var cookies = {};
115
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
116
+ var cookie = parseString(str, options);
117
+ cookies[cookie.name] = cookie;
118
+ return cookies;
119
+ }, cookies);
120
+ }
121
+ }
122
+
123
+ /*
124
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
125
+ that are within a single set-cookie field-value, such as in the Expires portion.
126
+
127
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
128
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
129
+ React Native's fetch does this for *every* header, including set-cookie.
130
+
131
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
132
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
133
+ */
134
+ function splitCookiesString(cookiesString) {
135
+ if (Array.isArray(cookiesString)) {
136
+ return cookiesString;
137
+ }
138
+ if (typeof cookiesString !== "string") {
139
+ return [];
140
+ }
141
+
142
+ var cookiesStrings = [];
143
+ var pos = 0;
144
+ var start;
145
+ var ch;
146
+ var lastComma;
147
+ var nextStart;
148
+ var cookiesSeparatorFound;
149
+
150
+ function skipWhitespace() {
151
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
152
+ pos += 1;
153
+ }
154
+ return pos < cookiesString.length;
155
+ }
156
+
157
+ function notSpecialChar() {
158
+ ch = cookiesString.charAt(pos);
159
+
160
+ return ch !== "=" && ch !== ";" && ch !== ",";
161
+ }
162
+
163
+ while (pos < cookiesString.length) {
164
+ start = pos;
165
+ cookiesSeparatorFound = false;
166
+
167
+ while (skipWhitespace()) {
168
+ ch = cookiesString.charAt(pos);
169
+ if (ch === ",") {
170
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
171
+ lastComma = pos;
172
+ pos += 1;
173
+
174
+ skipWhitespace();
175
+ nextStart = pos;
176
+
177
+ while (pos < cookiesString.length && notSpecialChar()) {
178
+ pos += 1;
179
+ }
180
+
181
+ // currently special character
182
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
183
+ // we found cookies separator
184
+ cookiesSeparatorFound = true;
185
+ // pos is inside the next cookie, so back up and return it.
186
+ pos = nextStart;
187
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
188
+ start = pos;
189
+ } else {
190
+ // in param ',' or param separator ';',
191
+ // we continue from that comma
192
+ pos = lastComma + 1;
193
+ }
194
+ } else {
195
+ pos += 1;
196
+ }
197
+ }
198
+
199
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
200
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
201
+ }
202
+ }
203
+
204
+ return cookiesStrings;
205
+ }
206
+
207
+ var setCookie = parse;
208
+ var parse_1 = parse;
209
+ var parseString_1 = parseString;
210
+ var splitCookiesString_1 = splitCookiesString;
211
+ setCookie.parse = parse_1;
212
+ setCookie.parseString = parseString_1;
213
+ setCookie.splitCookiesString = splitCookiesString_1;
214
+
215
+ var utils = createCommonjsModule(function (module, exports) {
216
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
217
+ __assign = Object.assign || function(t) {
218
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
219
+ s = arguments[i];
220
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
221
+ t[p] = s[p];
222
+ }
223
+ return t;
224
+ };
225
+ return __assign.apply(this, arguments);
226
+ };
227
+ Object.defineProperty(exports, "__esModule", { value: true });
228
+ exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
229
+ /**
230
+ * Tells whether we are in a browser or server.
231
+ */
232
+ function isBrowser() {
233
+ return typeof window !== 'undefined';
234
+ }
235
+ exports.isBrowser = isBrowser;
236
+ /**
237
+ * Create an instance of the Cookie interface
238
+ */
239
+ function createCookie(name, value, options) {
240
+ var sameSite = options.sameSite;
241
+ if (sameSite === true) {
242
+ sameSite = 'strict';
243
+ }
244
+ if (sameSite === undefined || sameSite === false) {
245
+ sameSite = 'lax';
246
+ }
247
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
248
+ delete cookieToSet.encode;
249
+ return __assign({ name: name, value: value }, cookieToSet);
250
+ }
251
+ exports.createCookie = createCookie;
252
+ /**
253
+ * Tells whether given objects have the same properties.
254
+ */
255
+ function hasSameProperties(a, b) {
256
+ var aProps = Object.getOwnPropertyNames(a);
257
+ var bProps = Object.getOwnPropertyNames(b);
258
+ if (aProps.length !== bProps.length) {
259
+ return false;
260
+ }
261
+ for (var i = 0; i < aProps.length; i++) {
262
+ var propName = aProps[i];
263
+ if (a[propName] !== b[propName]) {
264
+ return false;
265
+ }
266
+ }
267
+ return true;
268
+ }
269
+ exports.hasSameProperties = hasSameProperties;
270
+ /**
271
+ * Compare the cookie and return true if the cookies have equivalent
272
+ * options and the cookies would be overwritten in the browser storage.
273
+ *
274
+ * @param a first Cookie for comparison
275
+ * @param b second Cookie for comparison
276
+ */
277
+ function areCookiesEqual(a, b) {
278
+ var sameSiteSame = a.sameSite === b.sameSite;
279
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
280
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
281
+ }
282
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
283
+ }
284
+ exports.areCookiesEqual = areCookiesEqual;
285
+ /* Functions */
286
+
287
+ });
288
+
289
+ unwrapExports(utils);
290
+ utils.areCookiesEqual;
291
+ utils.hasSameProperties;
292
+ utils.createCookie;
293
+ utils.isBrowser;
294
+
295
+ var dist = createCommonjsModule(function (module, exports) {
296
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
297
+ __assign = Object.assign || function(t) {
298
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
299
+ s = arguments[i];
300
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
301
+ t[p] = s[p];
302
+ }
303
+ return t;
304
+ };
305
+ return __assign.apply(this, arguments);
306
+ };
307
+ Object.defineProperty(exports, "__esModule", { value: true });
308
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
309
+
310
+
311
+
312
+ /**
313
+ * Parses cookies.
314
+ *
315
+ * @param ctx NextJS page or API context, express context, null or undefined.
316
+ * @param options Options that we pass down to `cookie` library.
317
+ */
318
+ function parseCookies(ctx, options) {
319
+ var _a, _b;
320
+ 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) {
321
+ return cookie.parse(ctx.req.headers.cookie, options);
322
+ }
323
+ if (utils.isBrowser()) {
324
+ return cookie.parse(document.cookie, options);
325
+ }
326
+ return {};
327
+ }
328
+ exports.parseCookies = parseCookies;
329
+ /**
330
+ * Sets a cookie.
331
+ *
332
+ * @param ctx NextJS page or API context, express context, null or undefined.
333
+ * @param name The name of your cookie.
334
+ * @param value The value of your cookie.
335
+ * @param options Options that we pass down to `cookie` library.
336
+ */
337
+ function setCookie$1(ctx, name, value, options) {
338
+ var _a, _b;
339
+ if (options === void 0) { options = {}; }
340
+ // SSR
341
+ if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
342
+ // Check if response has finished and warn about it.
343
+ if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
344
+ console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
345
+ console.warn("You should set cookie before res.send()");
346
+ return {};
347
+ }
348
+ /**
349
+ * Load existing cookies from the header and parse them.
350
+ */
351
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
352
+ if (typeof cookies === 'string')
353
+ cookies = [cookies];
354
+ if (typeof cookies === 'number')
355
+ cookies = [];
356
+ /**
357
+ * Parse cookies but ignore values - we've already encoded
358
+ * them in the previous call.
359
+ */
360
+ var parsedCookies = setCookie.parse(cookies, {
361
+ decodeValues: false,
362
+ });
363
+ /**
364
+ * We create the new cookie and make sure that none of
365
+ * the existing cookies match it.
366
+ */
367
+ var newCookie_1 = utils.createCookie(name, value, options);
368
+ var cookiesToSet_1 = [];
369
+ parsedCookies.forEach(function (parsedCookie) {
370
+ if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
371
+ /**
372
+ * We serialize the cookie back to the original format
373
+ * if it isn't the same as the new one.
374
+ */
375
+ var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
376
+ // we prevent reencoding by default, but you might override it
377
+ encode: function (val) { return val; } }, parsedCookie));
378
+ cookiesToSet_1.push(serializedCookie);
379
+ }
380
+ });
381
+ cookiesToSet_1.push(cookie.serialize(name, value, options));
382
+ // Update the header.
383
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
384
+ }
385
+ // Browser
386
+ if (utils.isBrowser()) {
387
+ if (options && options.httpOnly) {
388
+ throw new Error('Can not set a httpOnly cookie in the browser.');
389
+ }
390
+ document.cookie = cookie.serialize(name, value, options);
391
+ }
392
+ return {};
393
+ }
394
+ exports.setCookie = setCookie$1;
395
+ /**
396
+ * Destroys a cookie with a particular name.
397
+ *
398
+ * @param ctx NextJS page or API context, express context, null or undefined.
399
+ * @param name Cookie name.
400
+ * @param options Options that we pass down to `cookie` library.
401
+ */
402
+ function destroyCookie(ctx, name, options) {
403
+ /**
404
+ * We forward the request destroy to setCookie function
405
+ * as it is the same function with modified maxAge value.
406
+ */
407
+ return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
408
+ }
409
+ exports.destroyCookie = destroyCookie;
410
+ /* Utility Exports */
411
+ exports.default = {
412
+ set: setCookie$1,
413
+ get: parseCookies,
414
+ destroy: destroyCookie,
415
+ };
416
+
417
+ });
418
+
419
+ unwrapExports(dist);
420
+ dist.destroyCookie;
421
+ var dist_2 = dist.setCookie;
422
+ var dist_3 = dist.parseCookies;
12
423
 
13
424
  var _this = undefined;
14
425
 
@@ -69,13 +480,13 @@ var getRelatedArticle = function () {
69
480
  conditions = '';
70
481
 
71
482
  if (ctx && url) {
72
- cookies = parseCookies(ctx);
483
+ cookies = dist_3(ctx);
73
484
  prevSlugs = cookies['prevSlugs'];
74
485
 
75
486
  if (!!prevSlugs) {
76
- setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
487
+ dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
77
488
  conditions = '&& !(url.current in [' + prevSlugs + '])';
78
- } else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
489
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
79
490
  }
80
491
  relatedArticleQuery = getQuery('related', conditions, '', articleCount);
81
492
  _context.next = 12;
@@ -1,46 +1,46 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-ded78eb9.js';
3
- import './es6.string.iterator-9b2af4a5.js';
4
- import './_library-528f1934.js';
5
- import './_iter-detect-59409a32.js';
6
- import './toConsumableArray-725434a0.js';
7
- import './core.get-iterator-method-54d2e411.js';
8
- import './_object-pie-71ac75a4.js';
9
- import './extends-cc5da797.js';
10
- import './_object-sap-4d59d5bd.js';
11
- import './inherits-7ee3e0c1.js';
12
- import './define-property-de3fc946.js';
13
- import './web.dom.iterable-8956f9a5.js';
14
- import './typeof-08f2c380.js';
15
- import './_is-array-49698029.js';
16
1
  import 'react';
17
- import './index-93ec3c59.js';
2
+ export { g as default } from './index-cbd95715.js';
3
+ import './BlockContent-c5de3044.js';
4
+ import './entities-7cc3bf45.js';
5
+ import './slicedToArray-648674b3.js';
6
+ import './_commonjsHelpers-0c4b6f40.js';
7
+ import './web.dom.iterable-de3b4afb.js';
8
+ import './es6.string.iterator-c5179428.js';
9
+ import './_to-object-ee10dabb.js';
10
+ import './core.get-iterator-method-0e6dc181.js';
11
+ import 'react-bootstrap';
12
+ import './index-4de5c15f.js';
13
+ import './index-669ff425.js';
18
14
  import 'prop-types';
19
- import 'react-bootstrap/Row';
20
- import 'react-bootstrap/Col';
21
- import './moment-12415288.js';
22
15
  import 'next/router';
23
- import './isSymbol-807e927e.js';
24
- import './debounce-1a993acf.js';
25
- import 'react-dom';
26
- import './index-51a80699.js';
27
- import './index-5f9f807a.js';
28
- import './main-0465b2a0.js';
29
- import './entities-7cc3bf45.js';
30
- import './stringify-008c8802.js';
31
- import './slicedToArray-7021e5df.js';
32
- import './asyncToGenerator-7c654f36.js';
33
- import './_set-species-cede29f8.js';
34
- import './Segment.js';
16
+ import './smoothscroll-ab6e0238.js';
17
+ import './util-7700fc59.js';
35
18
  import './Beam.js';
36
- import './AdSlot.js';
37
- import './BlockContent-a614acdf.js';
38
- import './smoothscroll-4b699764.js';
19
+ import './stringify-7c97a94d.js';
20
+ import './asyncToGenerator-b0af4000.js';
21
+ import './_library-528f1934.js';
22
+ import './_set-species-09ba387c.js';
23
+ import './_iter-detect-256a4d61.js';
24
+ import './Segment.js';
25
+ import './main-a2443735.js';
26
+ import './extends-03593dc6.js';
27
+ import './_object-pie-71ac75a4.js';
28
+ import './index-752d1dae.js';
29
+ import 'react-dom';
30
+ import './typeof-5c759779.js';
31
+ import './_is-array-ffa65b7e.js';
32
+ import './brightcove-react-player-loader.es-b43c695a.js';
39
33
  import './GroupDeck.js';
40
- import 'react-bootstrap';
41
- import 'react-bootstrap/Button';
42
- export { g as default } from './index-8a757d91.js';
43
- import './util-7700fc59.js';
44
- import './brightcove-react-player-loader.es-83f53e4e.js';
34
+ import './toConsumableArray-aa76a4fe.js';
45
35
  import 'react-bootstrap/Pagination';
36
+ import 'react-bootstrap/Button';
37
+ import './AdSlot.js';
38
+ import './debounce-1a993acf.js';
39
+ import './isSymbol-807e927e.js';
40
+ import 'react-bootstrap/Row';
41
+ import 'react-bootstrap/Col';
46
42
  import 'next/head';
43
+ import './moment-b6f49411.js';
44
+ import './inherits-d88f5b29.js';
45
+ import './_object-sap-0cecd031.js';
46
+ import './define-property-e013aae3.js';
@@ -1,19 +1,19 @@
1
- import { _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
2
- import { _ as _extends } from './extends-cc5da797.js';
1
+ import { _ as _extends } from './extends-03593dc6.js';
2
+ import { _ as _toConsumableArray } from './toConsumableArray-aa76a4fe.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) {
@@ -1,9 +1,9 @@
1
+ import './extends-03593dc6.js';
2
+ import './toConsumableArray-aa76a4fe.js';
3
+ export { g as default } from './getTargeting-60717d7f.js';
1
4
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-ded78eb9.js';
3
- import './es6.string.iterator-9b2af4a5.js';
4
- import './_iter-detect-59409a32.js';
5
- import './toConsumableArray-725434a0.js';
6
- import './core.get-iterator-method-54d2e411.js';
5
+ import './_to-object-ee10dabb.js';
7
6
  import './_object-pie-71ac75a4.js';
8
- import './extends-cc5da797.js';
9
- export { g as default } from './getTargeting-2acdec91.js';
7
+ import './es6.string.iterator-c5179428.js';
8
+ import './_iter-detect-256a4d61.js';
9
+ import './core.get-iterator-method-0e6dc181.js';
@@ -329,8 +329,8 @@ function fit(source, spec) {
329
329
  });
330
330
 
331
331
  unwrapExports(urlForImage_1);
332
- var urlForImage_2 = urlForImage_1.parseSource;
333
- var urlForImage_3 = urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
332
+ urlForImage_1.parseSource;
333
+ urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
334
334
 
335
335
  var builder = createCommonjsModule(function (module, exports) {
336
336
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
@@ -532,7 +532,7 @@ exports.ImageUrlBuilder = ImageUrlBuilder;
532
532
  });
533
533
 
534
534
  unwrapExports(builder);
535
- var builder_1 = builder.ImageUrlBuilder;
535
+ builder.ImageUrlBuilder;
536
536
 
537
537
  var node = createCommonjsModule(function (module) {
538
538
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import React__default from 'react';
2
+ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
5
  var domain;
@@ -502,7 +502,7 @@ function loadGPTScript() {
502
502
  });
503
503
 
504
504
  unwrapExports(utils);
505
- var utils_1 = utils.loadGPTScript;
505
+ utils.loadGPTScript;
506
506
 
507
507
  var manager = createCommonjsModule(function (module, exports) {
508
508
 
@@ -1027,7 +1027,7 @@ Object.defineProperty(exports, "__esModule", {
1027
1027
  });
1028
1028
  exports.default = exports.Context = void 0;
1029
1029
 
1030
- var _react = _interopRequireDefault(React__default);
1030
+ var _react = _interopRequireDefault(React);
1031
1031
 
1032
1032
  var _propTypes = _interopRequireDefault(PropTypes);
1033
1033
 
@@ -1326,7 +1326,7 @@ if (Context === null) {
1326
1326
  });
1327
1327
 
1328
1328
  unwrapExports(dfpslotsprovider);
1329
- var dfpslotsprovider_1 = dfpslotsprovider.Context;
1329
+ dfpslotsprovider.Context;
1330
1330
 
1331
1331
  var adslot = createCommonjsModule(function (module, exports) {
1332
1332
 
@@ -1335,7 +1335,7 @@ Object.defineProperty(exports, "__esModule", {
1335
1335
  });
1336
1336
  exports.default = exports.AdSlot = void 0;
1337
1337
 
1338
- var _react = _interopRequireDefault(React__default);
1338
+ var _react = _interopRequireDefault(React);
1339
1339
 
1340
1340
  var _propTypes = _interopRequireDefault(PropTypes);
1341
1341
 
@@ -1622,7 +1622,7 @@ exports.default = _default;
1622
1622
  });
1623
1623
 
1624
1624
  unwrapExports(adslot);
1625
- var adslot_1 = adslot.AdSlot;
1625
+ adslot.AdSlot;
1626
1626
 
1627
1627
  var lib = createCommonjsModule(function (module, exports) {
1628
1628