@mjhls/mjh-framework 1.0.842 → 1.0.844-beta.0

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 (280) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +13 -13
  4. package/dist/cjs/AD300x250x600.js +13 -13
  5. package/dist/cjs/AD728x90.js +14 -14
  6. package/dist/cjs/ADFloatingFooter.js +12 -12
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +12 -12
  9. package/dist/cjs/{ADInfeed-da3ed24f.js → ADInfeed-9b50464b.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +12 -12
  11. package/dist/cjs/ADSponsoredResources.js +12 -12
  12. package/dist/cjs/ADWebcast.js +12 -12
  13. package/dist/cjs/ADWelcome.js +12 -12
  14. package/dist/cjs/{ADlgInfeed-d3751164.js → ADlgInfeed-65e48ce7.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +6 -6
  16. package/dist/cjs/AdSlot.js +15 -15
  17. package/dist/cjs/AdSlotsProvider.js +905 -12
  18. package/dist/cjs/AlgoliaSearch.js +264 -391
  19. package/dist/cjs/AlphabeticList.js +8 -8
  20. package/dist/cjs/ArticleCarousel.js +10 -10
  21. package/dist/cjs/ArticleProgramLandingPage.js +27 -27
  22. package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
  23. package/dist/cjs/ArticleSeriesListing.js +18 -18
  24. package/dist/cjs/Auth.js +451 -471
  25. package/dist/cjs/AuthWrapper.js +242 -283
  26. package/dist/cjs/{AuthorComponent-0c464248.js → AuthorComponent-bb831b74.js} +1 -1
  27. package/dist/cjs/Beam.js +7 -7
  28. package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
  29. package/dist/cjs/Breadcrumbs.js +5 -5
  30. package/dist/cjs/CMEDeck.js +14 -14
  31. package/dist/cjs/Column2.js +8 -8
  32. package/dist/cjs/Column3.js +16 -16
  33. package/dist/cjs/ConferenceArticleCard.js +17 -17
  34. package/dist/cjs/DeckContent.js +31 -31
  35. package/dist/cjs/DeckQueue.js +19 -19
  36. package/dist/cjs/{Dfp-ac0c1cc6.js → Dfp-26baccf1.js} +7 -7
  37. package/dist/cjs/EventsDeck.js +33 -33
  38. package/dist/cjs/ExternalResources.js +26 -26
  39. package/dist/cjs/Feature.js +3 -3
  40. package/dist/cjs/ForbesHero.js +8 -8
  41. package/dist/cjs/GridContent.js +28 -28
  42. package/dist/cjs/GridHero.js +8 -8
  43. package/dist/cjs/GroupDeck.js +8 -8
  44. package/dist/cjs/HamMagazine.js +25 -25
  45. package/dist/cjs/Hero.js +1 -1
  46. package/dist/cjs/HighlightenVideo.js +1 -1
  47. package/dist/cjs/HorizontalArticleListing.js +25 -25
  48. package/dist/cjs/HorizontalHero.js +3 -3
  49. package/dist/cjs/IssueContentDeck.js +8 -8
  50. package/dist/cjs/IssueDeck.js +10 -10
  51. package/dist/cjs/IssueLanding.js +59 -59
  52. package/dist/cjs/KMTracker.js +15 -15
  53. package/dist/cjs/LeftNav.js +12 -12
  54. package/dist/cjs/MasterDeck.js +32 -32
  55. package/dist/cjs/MediaSeriesLanding.js +209 -208
  56. package/dist/cjs/NavDvm.js +7 -7
  57. package/dist/cjs/NavMagazine.js +24 -24
  58. package/dist/cjs/NavNative.js +21 -21
  59. package/dist/cjs/OncliveHero.js +3 -2
  60. package/dist/cjs/OncliveLargeHero.js +8 -8
  61. package/dist/cjs/PageFilter.js +5 -5
  62. package/dist/cjs/PartnerDetailListing.js +1133 -35
  63. package/dist/cjs/PdfDownload.js +1 -1
  64. package/dist/cjs/PopUpModal.js +5 -5
  65. package/dist/cjs/PubSection.js +20 -20
  66. package/dist/cjs/PubToc.js +7 -7
  67. package/dist/cjs/PublicationDeck.js +2 -2
  68. package/dist/cjs/PublicationLanding.js +36 -36
  69. package/dist/cjs/QueueDeckExpanded.js +22 -22
  70. package/dist/cjs/RecentNews.js +1 -1
  71. package/dist/cjs/RelatedContent.js +30 -30
  72. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  73. package/dist/cjs/Search.js +5 -5
  74. package/dist/cjs/Segment.js +6 -6
  75. package/dist/cjs/SeriesListingDeck.js +15 -15
  76. package/dist/cjs/{SeriesSlider-dad08884.js → SeriesSlider-8bbc989f.js} +11 -11
  77. package/dist/cjs/SideFooter.js +10 -10
  78. package/dist/cjs/{SocialSearchComponent-ad15dd61.js → SocialSearchComponent-cea213aa.js} +7 -7
  79. package/dist/cjs/TaxonomyCard.js +4 -4
  80. package/dist/cjs/TaxonomyDescription.js +25 -25
  81. package/dist/cjs/TemplateNormal.js +18 -18
  82. package/dist/cjs/ThumbnailCard.js +1 -1
  83. package/dist/cjs/Ustream.js +12 -12
  84. package/dist/cjs/VerticalHero.js +2 -2
  85. package/dist/cjs/VideoProgramLandingPage.js +27 -27
  86. package/dist/cjs/VideoSeriesCard.js +9 -9
  87. package/dist/cjs/VideoSeriesFilter.js +7 -7
  88. package/dist/cjs/VideoSeriesLandingPage.js +25 -25
  89. package/dist/cjs/VideoSeriesListing.js +18 -18
  90. package/dist/cjs/View.js +63 -63
  91. package/dist/cjs/YahooHero.js +8 -8
  92. package/dist/cjs/YoutubeGroup.js +18 -18
  93. package/dist/cjs/{_is-array-39ff55dd.js → _is-array-754e012d.js} +1 -1
  94. package/dist/cjs/{_iter-detect-ef35661e.js → _iter-detect-60b2f026.js} +2 -2
  95. package/dist/cjs/{_object-sap-b231f928.js → _object-sap-5e74ba08.js} +1 -1
  96. package/dist/cjs/{_object-to-array-c3aeb51d.js → _object-to-array-5762f850.js} +1 -1
  97. package/dist/cjs/{_to-object-7a3ce269.js → _to-object-329a650b.js} +2 -2
  98. package/dist/cjs/{asyncToGenerator-8ae2191c.js → asyncToGenerator-140e5f89.js} +5 -5
  99. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  100. package/dist/cjs/{core.get-iterator-method-6cd7682d.js → core.get-iterator-method-f62321d4.js} +2 -2
  101. package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
  102. package/dist/cjs/{define-property-fc002cec.js → define-property-f4d12f4e.js} +1 -1
  103. package/dist/cjs/{defineProperty-03c4c82e.js → defineProperty-55548b25.js} +1 -1
  104. package/dist/cjs/{es6.string.iterator-ab94a594.js → es6.string.iterator-cc0bbaa4.js} +1 -1
  105. package/dist/cjs/{extends-acc1318d.js → extends-0a918631.js} +1 -1
  106. package/dist/cjs/faundadb.js +7 -7
  107. package/dist/cjs/getQuery.js +2 -2
  108. package/dist/cjs/getRelatedArticle.js +11 -424
  109. package/dist/cjs/getRootDocGroup.js +6 -6
  110. package/dist/cjs/getSerializers.js +25 -25
  111. package/dist/cjs/{getTargeting-98ab97f7.js → getTargeting-021d644c.js} +12 -12
  112. package/dist/cjs/getTargeting.js +7 -7
  113. package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
  114. package/dist/cjs/{index-80802a98.js → index-45f8b70b.js} +540 -531
  115. package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
  116. package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
  117. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  118. package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
  119. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  120. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  121. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  122. package/dist/cjs/index.js +45 -46
  123. package/dist/cjs/{inherits-bfdb22af.js → inherits-452ff02c.js} +8 -8
  124. package/dist/cjs/inherits-8d29278d.js +110 -0
  125. package/dist/cjs/{keys-62e097ca.js → keys-a586b7a0.js} +2 -2
  126. package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
  127. package/dist/cjs/main-02daeefe.js +862 -0
  128. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  129. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  130. package/dist/cjs/{slicedToArray-41819145.js → slicedToArray-8f385299.js} +4 -4
  131. package/dist/cjs/{stringify-7ccc8524.js → stringify-7c5aff47.js} +1 -1
  132. package/dist/cjs/timeDifferenceCalc.js +1 -1
  133. package/dist/cjs/{toConsumableArray-4fdb72e2.js → toConsumableArray-9a3476fe.js} +4 -4
  134. package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
  135. package/dist/cjs/{typeof-e83d4a26.js → typeof-725500bc.js} +4 -4
  136. package/dist/cjs/urlFor.js +1 -1
  137. package/dist/cjs/{ustream-api-c30d203c.js → ustream-api-d092dc31.js} +4 -4
  138. package/dist/cjs/{web.dom.iterable-68e3aaf2.js → web.dom.iterable-a0e279c1.js} +2 -2
  139. package/dist/esm/AD.js +1 -1
  140. package/dist/esm/AD300x250.js +13 -13
  141. package/dist/esm/AD300x250x600.js +13 -13
  142. package/dist/esm/AD728x90.js +14 -14
  143. package/dist/esm/ADFloatingFooter.js +12 -12
  144. package/dist/esm/ADFooter.js +5 -5
  145. package/dist/esm/ADGutter.js +12 -12
  146. package/dist/esm/{ADInfeed-152d34aa.js → ADInfeed-99535410.js} +1 -1
  147. package/dist/esm/ADSkyscraper.js +12 -12
  148. package/dist/esm/ADSponsoredResources.js +12 -12
  149. package/dist/esm/ADWebcast.js +12 -12
  150. package/dist/esm/ADWelcome.js +12 -12
  151. package/dist/esm/{ADlgInfeed-6520a55d.js → ADlgInfeed-0d359144.js} +1 -1
  152. package/dist/esm/AccordionPanel.js +6 -6
  153. package/dist/esm/AdSlot.js +15 -15
  154. package/dist/esm/AdSlotsProvider.js +907 -15
  155. package/dist/esm/AlgoliaSearch.js +32 -159
  156. package/dist/esm/AlphabeticList.js +8 -8
  157. package/dist/esm/ArticleCarousel.js +10 -10
  158. package/dist/esm/ArticleProgramLandingPage.js +26 -26
  159. package/dist/esm/ArticleSeriesLandingPage.js +24 -24
  160. package/dist/esm/ArticleSeriesListing.js +18 -18
  161. package/dist/esm/Auth.js +445 -465
  162. package/dist/esm/AuthWrapper.js +242 -283
  163. package/dist/esm/{AuthorComponent-5cab1f6b.js → AuthorComponent-34b16174.js} +1 -1
  164. package/dist/esm/Beam.js +7 -7
  165. package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
  166. package/dist/esm/Breadcrumbs.js +5 -5
  167. package/dist/esm/CMEDeck.js +14 -14
  168. package/dist/esm/Column2.js +8 -8
  169. package/dist/esm/Column3.js +16 -16
  170. package/dist/esm/ConferenceArticleCard.js +17 -17
  171. package/dist/esm/DeckContent.js +31 -31
  172. package/dist/esm/DeckQueue.js +19 -19
  173. package/dist/esm/{Dfp-4b94fbd4.js → Dfp-b7236041.js} +7 -7
  174. package/dist/esm/EventsDeck.js +33 -33
  175. package/dist/esm/ExternalResources.js +26 -26
  176. package/dist/esm/Feature.js +3 -3
  177. package/dist/esm/ForbesHero.js +8 -8
  178. package/dist/esm/GridContent.js +28 -28
  179. package/dist/esm/GridHero.js +8 -8
  180. package/dist/esm/GroupDeck.js +8 -8
  181. package/dist/esm/HamMagazine.js +25 -25
  182. package/dist/esm/Hero.js +1 -1
  183. package/dist/esm/HighlightenVideo.js +1 -1
  184. package/dist/esm/HorizontalArticleListing.js +25 -25
  185. package/dist/esm/HorizontalHero.js +3 -3
  186. package/dist/esm/IssueContentDeck.js +8 -8
  187. package/dist/esm/IssueDeck.js +10 -10
  188. package/dist/esm/IssueLanding.js +59 -59
  189. package/dist/esm/KMTracker.js +15 -15
  190. package/dist/esm/LeftNav.js +12 -12
  191. package/dist/esm/MasterDeck.js +32 -32
  192. package/dist/esm/MediaSeriesLanding.js +365 -364
  193. package/dist/esm/NavDvm.js +7 -7
  194. package/dist/esm/NavMagazine.js +24 -24
  195. package/dist/esm/NavNative.js +21 -21
  196. package/dist/esm/OncliveHero.js +3 -2
  197. package/dist/esm/OncliveLargeHero.js +8 -8
  198. package/dist/esm/PageFilter.js +5 -5
  199. package/dist/esm/PartnerDetailListing.js +1131 -34
  200. package/dist/esm/PdfDownload.js +1 -1
  201. package/dist/esm/PopUpModal.js +5 -5
  202. package/dist/esm/PubSection.js +20 -20
  203. package/dist/esm/PubToc.js +7 -7
  204. package/dist/esm/PublicationDeck.js +2 -2
  205. package/dist/esm/PublicationLanding.js +36 -36
  206. package/dist/esm/QueueDeckExpanded.js +22 -22
  207. package/dist/esm/RecentNews.js +1 -1
  208. package/dist/esm/RelatedContent.js +30 -30
  209. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  210. package/dist/esm/Search.js +5 -5
  211. package/dist/esm/Segment.js +6 -6
  212. package/dist/esm/SeriesListingDeck.js +12 -12
  213. package/dist/esm/{SeriesSlider-5ba2e521.js → SeriesSlider-a866bb21.js} +11 -11
  214. package/dist/esm/SideFooter.js +10 -10
  215. package/dist/esm/{SocialSearchComponent-9cc36413.js → SocialSearchComponent-03c3e869.js} +7 -7
  216. package/dist/esm/TaxonomyCard.js +4 -4
  217. package/dist/esm/TaxonomyDescription.js +25 -25
  218. package/dist/esm/TemplateNormal.js +18 -18
  219. package/dist/esm/ThumbnailCard.js +1 -1
  220. package/dist/esm/Ustream.js +12 -12
  221. package/dist/esm/VerticalHero.js +2 -2
  222. package/dist/esm/VideoProgramLandingPage.js +26 -26
  223. package/dist/esm/VideoSeriesCard.js +8 -8
  224. package/dist/esm/VideoSeriesFilter.js +7 -7
  225. package/dist/esm/VideoSeriesLandingPage.js +24 -24
  226. package/dist/esm/VideoSeriesListing.js +18 -18
  227. package/dist/esm/View.js +39 -39
  228. package/dist/esm/YahooHero.js +8 -8
  229. package/dist/esm/YoutubeGroup.js +18 -18
  230. package/dist/esm/{_is-array-328b85b7.js → _is-array-58e95429.js} +1 -1
  231. package/dist/esm/{_iter-detect-0fa1c752.js → _iter-detect-5d49a330.js} +2 -2
  232. package/dist/esm/{_object-sap-1b84e2bf.js → _object-sap-964b6feb.js} +1 -1
  233. package/dist/esm/{_object-to-array-c8f72bf1.js → _object-to-array-7e804fce.js} +1 -1
  234. package/dist/esm/{_to-object-cedb5b78.js → _to-object-a4107da3.js} +2 -2
  235. package/dist/esm/{asyncToGenerator-e1a2f43a.js → asyncToGenerator-fc1c2e29.js} +5 -5
  236. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  237. package/dist/esm/{core.get-iterator-method-227107e6.js → core.get-iterator-method-e1de7503.js} +2 -2
  238. package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
  239. package/dist/esm/{define-property-2f35af22.js → define-property-8af5f002.js} +1 -1
  240. package/dist/esm/{defineProperty-eb9699c0.js → defineProperty-94fd8bfc.js} +1 -1
  241. package/dist/esm/{es6.string.iterator-1577cb76.js → es6.string.iterator-c990c18c.js} +1 -1
  242. package/dist/esm/{extends-be71a29a.js → extends-6f2fcc99.js} +1 -1
  243. package/dist/esm/faundadb.js +7 -7
  244. package/dist/esm/getQuery.js +2 -2
  245. package/dist/esm/getRelatedArticle.js +11 -424
  246. package/dist/esm/getRootDocGroup.js +6 -6
  247. package/dist/esm/getSerializers.js +25 -25
  248. package/dist/esm/{getTargeting-93bb872d.js → getTargeting-82e86707.js} +11 -11
  249. package/dist/esm/getTargeting.js +7 -7
  250. package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
  251. package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
  252. package/dist/esm/{index-37848dc4.js → index-ea86ff20.js} +540 -531
  253. package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
  254. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  255. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  256. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  257. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  258. package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
  259. package/dist/esm/index.js +44 -45
  260. package/dist/esm/inherits-77d5e4fc.js +101 -0
  261. package/dist/esm/{inherits-2cf82c38.js → inherits-cf8dde54.js} +5 -5
  262. package/dist/esm/{keys-526daf0a.js → keys-8eda7a5c.js} +2 -2
  263. package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
  264. package/dist/esm/main-e4a934b2.js +851 -0
  265. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  266. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  267. package/dist/esm/{slicedToArray-f0edf3d6.js → slicedToArray-641f241f.js} +4 -4
  268. package/dist/esm/{stringify-d1b9276a.js → stringify-4330ccdc.js} +1 -1
  269. package/dist/esm/timeDifferenceCalc.js +1 -1
  270. package/dist/esm/{toConsumableArray-81605212.js → toConsumableArray-43aa614d.js} +4 -4
  271. package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
  272. package/dist/esm/{typeof-ad2c7a21.js → typeof-6435ba1c.js} +4 -4
  273. package/dist/esm/urlFor.js +1 -1
  274. package/dist/esm/{ustream-api-cf90f7e6.js → ustream-api-9a50644d.js} +4 -4
  275. package/dist/esm/{web.dom.iterable-ace8ed30.js → web.dom.iterable-4439f05a.js} +2 -2
  276. package/package.json +110 -110
  277. package/dist/cjs/index-bd6c9f56.js +0 -211
  278. package/dist/cjs/main-bc7d4bf8.js +0 -972
  279. package/dist/esm/index-db3bb315.js +0 -207
  280. package/dist/esm/main-ae902629.js +0 -961
@@ -1,427 +1,14 @@
1
- import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-cedb5b78.js';
3
- import './es6.string.iterator-1577cb76.js';
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import './_to-object-a4107da3.js';
3
+ import './es6.string.iterator-c990c18c.js';
4
4
  import './_library-528f1934.js';
5
- import './_iter-detect-0fa1c752.js';
6
- import './core.get-iterator-method-227107e6.js';
7
- import './web.dom.iterable-ace8ed30.js';
8
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-e1a2f43a.js';
9
- import { c as cookie } from './index-db3bb315.js';
5
+ import './_iter-detect-5d49a330.js';
6
+ import './core.get-iterator-method-e1de7503.js';
7
+ import './web.dom.iterable-4439f05a.js';
8
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
9
+ import { parseCookies, setCookie } from 'nookies';
10
10
  import getQuery from './getQuery.js';
11
11
 
12
- var defaultParseOptions = {
13
- decodeValues: true,
14
- map: false,
15
- silent: false,
16
- };
17
-
18
- function isNonEmptyString(str) {
19
- return typeof str === "string" && !!str.trim();
20
- }
21
-
22
- function parseString(setCookieValue, options) {
23
- var parts = setCookieValue.split(";").filter(isNonEmptyString);
24
- var nameValue = parts.shift().split("=");
25
- var name = nameValue.shift();
26
- var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
27
-
28
- options = options
29
- ? Object.assign({}, defaultParseOptions, options)
30
- : defaultParseOptions;
31
-
32
- try {
33
- value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
34
- } catch (e) {
35
- console.error(
36
- "set-cookie-parser encountered an error while decoding a cookie with value '" +
37
- value +
38
- "'. Set options.decodeValues to false to disable this feature.",
39
- e
40
- );
41
- }
42
-
43
- var cookie = {
44
- name: name, // grab everything before the first =
45
- value: value,
46
- };
47
-
48
- parts.forEach(function (part) {
49
- var sides = part.split("=");
50
- var key = sides.shift().trimLeft().toLowerCase();
51
- var value = sides.join("=");
52
- if (key === "expires") {
53
- cookie.expires = new Date(value);
54
- } else if (key === "max-age") {
55
- cookie.maxAge = parseInt(value, 10);
56
- } else if (key === "secure") {
57
- cookie.secure = true;
58
- } else if (key === "httponly") {
59
- cookie.httpOnly = true;
60
- } else if (key === "samesite") {
61
- cookie.sameSite = value;
62
- } else {
63
- cookie[key] = value;
64
- }
65
- });
66
-
67
- return cookie;
68
- }
69
-
70
- function parse(input, options) {
71
- options = options
72
- ? Object.assign({}, defaultParseOptions, options)
73
- : defaultParseOptions;
74
-
75
- if (!input) {
76
- if (!options.map) {
77
- return [];
78
- } else {
79
- return {};
80
- }
81
- }
82
-
83
- if (input.headers && input.headers["set-cookie"]) {
84
- // fast-path for node.js (which automatically normalizes header names to lower-case
85
- input = input.headers["set-cookie"];
86
- } else if (input.headers) {
87
- // slow-path for other environments - see #25
88
- var sch =
89
- input.headers[
90
- Object.keys(input.headers).find(function (key) {
91
- return key.toLowerCase() === "set-cookie";
92
- })
93
- ];
94
- // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
95
- if (!sch && input.headers.cookie && !options.silent) {
96
- console.warn(
97
- "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."
98
- );
99
- }
100
- input = sch;
101
- }
102
- if (!Array.isArray(input)) {
103
- input = [input];
104
- }
105
-
106
- options = options
107
- ? Object.assign({}, defaultParseOptions, options)
108
- : defaultParseOptions;
109
-
110
- if (!options.map) {
111
- return input.filter(isNonEmptyString).map(function (str) {
112
- return parseString(str, options);
113
- });
114
- } else {
115
- var cookies = {};
116
- return input.filter(isNonEmptyString).reduce(function (cookies, str) {
117
- var cookie = parseString(str, options);
118
- cookies[cookie.name] = cookie;
119
- return cookies;
120
- }, cookies);
121
- }
122
- }
123
-
124
- /*
125
- Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
126
- that are within a single set-cookie field-value, such as in the Expires portion.
127
-
128
- This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
129
- Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
130
- React Native's fetch does this for *every* header, including set-cookie.
131
-
132
- Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
133
- Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
134
- */
135
- function splitCookiesString(cookiesString) {
136
- if (Array.isArray(cookiesString)) {
137
- return cookiesString;
138
- }
139
- if (typeof cookiesString !== "string") {
140
- return [];
141
- }
142
-
143
- var cookiesStrings = [];
144
- var pos = 0;
145
- var start;
146
- var ch;
147
- var lastComma;
148
- var nextStart;
149
- var cookiesSeparatorFound;
150
-
151
- function skipWhitespace() {
152
- while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
153
- pos += 1;
154
- }
155
- return pos < cookiesString.length;
156
- }
157
-
158
- function notSpecialChar() {
159
- ch = cookiesString.charAt(pos);
160
-
161
- return ch !== "=" && ch !== ";" && ch !== ",";
162
- }
163
-
164
- while (pos < cookiesString.length) {
165
- start = pos;
166
- cookiesSeparatorFound = false;
167
-
168
- while (skipWhitespace()) {
169
- ch = cookiesString.charAt(pos);
170
- if (ch === ",") {
171
- // ',' is a cookie separator if we have later first '=', not ';' or ','
172
- lastComma = pos;
173
- pos += 1;
174
-
175
- skipWhitespace();
176
- nextStart = pos;
177
-
178
- while (pos < cookiesString.length && notSpecialChar()) {
179
- pos += 1;
180
- }
181
-
182
- // currently special character
183
- if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
184
- // we found cookies separator
185
- cookiesSeparatorFound = true;
186
- // pos is inside the next cookie, so back up and return it.
187
- pos = nextStart;
188
- cookiesStrings.push(cookiesString.substring(start, lastComma));
189
- start = pos;
190
- } else {
191
- // in param ',' or param separator ';',
192
- // we continue from that comma
193
- pos = lastComma + 1;
194
- }
195
- } else {
196
- pos += 1;
197
- }
198
- }
199
-
200
- if (!cookiesSeparatorFound || pos >= cookiesString.length) {
201
- cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
202
- }
203
- }
204
-
205
- return cookiesStrings;
206
- }
207
-
208
- var setCookie = parse;
209
- var parse_1 = parse;
210
- var parseString_1 = parseString;
211
- var splitCookiesString_1 = splitCookiesString;
212
- setCookie.parse = parse_1;
213
- setCookie.parseString = parseString_1;
214
- setCookie.splitCookiesString = splitCookiesString_1;
215
-
216
- var utils = createCommonjsModule(function (module, exports) {
217
- var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
218
- __assign = Object.assign || function(t) {
219
- for (var s, i = 1, n = arguments.length; i < n; i++) {
220
- s = arguments[i];
221
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
222
- t[p] = s[p];
223
- }
224
- return t;
225
- };
226
- return __assign.apply(this, arguments);
227
- };
228
- Object.defineProperty(exports, "__esModule", { value: true });
229
- exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
230
- /**
231
- * Tells whether we are in a browser or server.
232
- */
233
- function isBrowser() {
234
- return typeof window !== 'undefined';
235
- }
236
- exports.isBrowser = isBrowser;
237
- /**
238
- * Create an instance of the Cookie interface
239
- */
240
- function createCookie(name, value, options) {
241
- var sameSite = options.sameSite;
242
- if (sameSite === true) {
243
- sameSite = 'strict';
244
- }
245
- if (sameSite === undefined || sameSite === false) {
246
- sameSite = 'lax';
247
- }
248
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
249
- delete cookieToSet.encode;
250
- return __assign({ name: name, value: value }, cookieToSet);
251
- }
252
- exports.createCookie = createCookie;
253
- /**
254
- * Tells whether given objects have the same properties.
255
- */
256
- function hasSameProperties(a, b) {
257
- var aProps = Object.getOwnPropertyNames(a);
258
- var bProps = Object.getOwnPropertyNames(b);
259
- if (aProps.length !== bProps.length) {
260
- return false;
261
- }
262
- for (var i = 0; i < aProps.length; i++) {
263
- var propName = aProps[i];
264
- if (a[propName] !== b[propName]) {
265
- return false;
266
- }
267
- }
268
- return true;
269
- }
270
- exports.hasSameProperties = hasSameProperties;
271
- /**
272
- * Compare the cookie and return true if the cookies have equivalent
273
- * options and the cookies would be overwritten in the browser storage.
274
- *
275
- * @param a first Cookie for comparison
276
- * @param b second Cookie for comparison
277
- */
278
- function areCookiesEqual(a, b) {
279
- var sameSiteSame = a.sameSite === b.sameSite;
280
- if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
281
- sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
282
- }
283
- return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
284
- }
285
- exports.areCookiesEqual = areCookiesEqual;
286
- /* Functions */
287
-
288
- });
289
-
290
- unwrapExports(utils);
291
- var utils_1 = utils.areCookiesEqual;
292
- var utils_2 = utils.hasSameProperties;
293
- var utils_3 = utils.createCookie;
294
- var utils_4 = utils.isBrowser;
295
-
296
- var dist = createCommonjsModule(function (module, exports) {
297
- var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
298
- __assign = Object.assign || function(t) {
299
- for (var s, i = 1, n = arguments.length; i < n; i++) {
300
- s = arguments[i];
301
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
302
- t[p] = s[p];
303
- }
304
- return t;
305
- };
306
- return __assign.apply(this, arguments);
307
- };
308
- Object.defineProperty(exports, "__esModule", { value: true });
309
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
310
-
311
-
312
-
313
- /**
314
- * Parses cookies.
315
- *
316
- * @param ctx NextJS page or API context, express context, null or undefined.
317
- * @param options Options that we pass down to `cookie` library.
318
- */
319
- function parseCookies(ctx, options) {
320
- var _a, _b;
321
- if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
322
- return cookie.parse(ctx.req.headers.cookie, options);
323
- }
324
- if (utils.isBrowser()) {
325
- return cookie.parse(document.cookie, options);
326
- }
327
- return {};
328
- }
329
- exports.parseCookies = parseCookies;
330
- /**
331
- * Sets a cookie.
332
- *
333
- * @param ctx NextJS page or API context, express context, null or undefined.
334
- * @param name The name of your cookie.
335
- * @param value The value of your cookie.
336
- * @param options Options that we pass down to `cookie` library.
337
- */
338
- function setCookie$1(ctx, name, value, options) {
339
- var _a, _b;
340
- if (options === void 0) { options = {}; }
341
- // SSR
342
- if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
343
- // Check if response has finished and warn about it.
344
- if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
345
- console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
346
- console.warn("You should set cookie before res.send()");
347
- return {};
348
- }
349
- /**
350
- * Load existing cookies from the header and parse them.
351
- */
352
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
353
- if (typeof cookies === 'string')
354
- cookies = [cookies];
355
- if (typeof cookies === 'number')
356
- cookies = [];
357
- /**
358
- * Parse cookies but ignore values - we've already encoded
359
- * them in the previous call.
360
- */
361
- var parsedCookies = setCookie.parse(cookies, {
362
- decodeValues: false,
363
- });
364
- /**
365
- * We create the new cookie and make sure that none of
366
- * the existing cookies match it.
367
- */
368
- var newCookie_1 = utils.createCookie(name, value, options);
369
- var cookiesToSet_1 = [];
370
- parsedCookies.forEach(function (parsedCookie) {
371
- if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
372
- /**
373
- * We serialize the cookie back to the original format
374
- * if it isn't the same as the new one.
375
- */
376
- var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
377
- // we prevent reencoding by default, but you might override it
378
- encode: function (val) { return val; } }, parsedCookie));
379
- cookiesToSet_1.push(serializedCookie);
380
- }
381
- });
382
- cookiesToSet_1.push(cookie.serialize(name, value, options));
383
- // Update the header.
384
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
385
- }
386
- // Browser
387
- if (utils.isBrowser()) {
388
- if (options && options.httpOnly) {
389
- throw new Error('Can not set a httpOnly cookie in the browser.');
390
- }
391
- document.cookie = cookie.serialize(name, value, options);
392
- }
393
- return {};
394
- }
395
- exports.setCookie = setCookie$1;
396
- /**
397
- * Destroys a cookie with a particular name.
398
- *
399
- * @param ctx NextJS page or API context, express context, null or undefined.
400
- * @param name Cookie name.
401
- * @param options Options that we pass down to `cookie` library.
402
- */
403
- function destroyCookie(ctx, name, options) {
404
- /**
405
- * We forward the request destroy to setCookie function
406
- * as it is the same function with modified maxAge value.
407
- */
408
- return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
409
- }
410
- exports.destroyCookie = destroyCookie;
411
- /* Utility Exports */
412
- exports.default = {
413
- set: setCookie$1,
414
- get: parseCookies,
415
- destroy: destroyCookie,
416
- };
417
-
418
- });
419
-
420
- unwrapExports(dist);
421
- var dist_1 = dist.destroyCookie;
422
- var dist_2 = dist.setCookie;
423
- var dist_3 = dist.parseCookies;
424
-
425
12
  var _this = undefined;
426
13
 
427
14
  var getRelatedArticle = function () {
@@ -498,13 +85,13 @@ var getRelatedArticle = function () {
498
85
 
499
86
 
500
87
  if (ctx && url) {
501
- cookies = dist_3(ctx);
88
+ cookies = parseCookies(ctx);
502
89
  prevSlugs = cookies['prevSlugs'];
503
90
 
504
91
  if (!!prevSlugs) {
505
- if (!prevSlugs.includes(url)) dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
92
+ if (!prevSlugs.includes(url)) setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
506
93
  filters = filters + ' && !(url.current in [' + prevSlugs + '])';
507
- } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
94
+ } else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
508
95
  }
509
96
 
510
97
  query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
@@ -1,11 +1,11 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-cedb5b78.js';
3
- import './es6.string.iterator-1577cb76.js';
2
+ import './_to-object-a4107da3.js';
3
+ import './es6.string.iterator-c990c18c.js';
4
4
  import './_library-528f1934.js';
5
- import './_iter-detect-0fa1c752.js';
6
- import './core.get-iterator-method-227107e6.js';
7
- import './web.dom.iterable-ace8ed30.js';
8
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-e1a2f43a.js';
5
+ import './_iter-detect-5d49a330.js';
6
+ import './core.get-iterator-method-e1de7503.js';
7
+ import './web.dom.iterable-4439f05a.js';
8
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
9
9
 
10
10
  var _this = undefined;
11
11
 
@@ -1,55 +1,55 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-cedb5b78.js';
3
- import './es6.string.iterator-1577cb76.js';
2
+ import './_to-object-a4107da3.js';
3
+ import './es6.string.iterator-c990c18c.js';
4
4
  import './_library-528f1934.js';
5
- import './_iter-detect-0fa1c752.js';
6
- import './toConsumableArray-81605212.js';
7
- import './core.get-iterator-method-227107e6.js';
5
+ import './_iter-detect-5d49a330.js';
6
+ import './toConsumableArray-43aa614d.js';
7
+ import './core.get-iterator-method-e1de7503.js';
8
8
  import './_object-pie-33c40e79.js';
9
- import './extends-be71a29a.js';
10
- import './_object-sap-1b84e2bf.js';
11
- import './inherits-2cf82c38.js';
12
- import './define-property-2f35af22.js';
13
- import './web.dom.iterable-ace8ed30.js';
14
- import './typeof-ad2c7a21.js';
15
- import './_is-array-328b85b7.js';
9
+ import './extends-6f2fcc99.js';
10
+ import './_object-sap-964b6feb.js';
11
+ import './inherits-cf8dde54.js';
12
+ import './define-property-8af5f002.js';
13
+ import './web.dom.iterable-4439f05a.js';
14
+ import './typeof-6435ba1c.js';
15
+ import './_is-array-58e95429.js';
16
16
  import 'react';
17
17
  import './events-6c3a7a63.js';
18
18
  import './index-41a678ea.js';
19
19
  import 'prop-types';
20
20
  import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
- import './moment-b6f49411.js';
22
+ import './moment-e2f9b20c.js';
23
23
  import 'next/router';
24
24
  import './isSymbol-1981418f.js';
25
- import './debounce-89969f66.js';
26
- import './toNumber-e3dcad26.js';
25
+ import './debounce-9207d8ee.js';
26
+ import './toNumber-2f7a84cd.js';
27
27
  import 'react-dom';
28
- import './index-f7fdcc91.js';
28
+ import './index-73819142.js';
29
29
  import './urlFor.js';
30
30
  import './index-5f7e79e7.js';
31
- import './main-ae902629.js';
31
+ import './main-e4a934b2.js';
32
32
  import './entities-7cc3bf45.js';
33
- import './slicedToArray-f0edf3d6.js';
34
- import './stringify-d1b9276a.js';
35
- import './asyncToGenerator-e1a2f43a.js';
33
+ import './slicedToArray-641f241f.js';
34
+ import './stringify-4330ccdc.js';
35
+ import './asyncToGenerator-fc1c2e29.js';
36
36
  import './Segment.js';
37
37
  import './Beam.js';
38
38
  import './AdSlot.js';
39
39
  import 'react-bootstrap/Button';
40
- import './BlockContent-ea93e8f7.js';
40
+ import './BlockContent-e9b4ddcf.js';
41
41
  import './index-c7e2ac95.js';
42
42
  import './smoothscroll-0cd4c7a6.js';
43
43
  import './GroupDeck.js';
44
44
  import 'react-bootstrap';
45
45
  import './iconBase-602d52fe.js';
46
- import './index.esm-3fdda599.js';
47
- export { g as default } from './index-37848dc4.js';
46
+ import './index.esm-29e48d38.js';
47
+ export { g as default } from './index-ea86ff20.js';
48
48
  import './util-7700fc59.js';
49
- import './brightcove-react-player-loader.es-e761d404.js';
49
+ import './brightcove-react-player-loader.es-83f53e4e.js';
50
50
  import 'next/head';
51
51
  import 'react-share';
52
52
  import './SocialShare.js';
53
- import './_object-to-array-c8f72bf1.js';
53
+ import './_object-to-array-7e804fce.js';
54
54
  import 'react-bootstrap/Pagination';
55
55
  import 'react-bootstrap/Figure';
@@ -1,19 +1,19 @@
1
- import { _ as _toConsumableArray } from './toConsumableArray-81605212.js';
2
- import { _ as _extends } from './extends-be71a29a.js';
1
+ import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
2
+ import { _ as _extends } from './extends-6f2fcc99.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
- var cp_url = '';
6
- if (cp.ancestor && typeof cp.ancestor == 'string') {
7
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
- }
5
+ var cp_url = '';
6
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
7
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
+ }
9
9
 
10
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
- }
10
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
+ }
13
13
 
14
- cp_url += (cp_url === '' ? '' : '/') + cp.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
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-cedb5b78.js';
3
- import './es6.string.iterator-1577cb76.js';
4
- import './_iter-detect-0fa1c752.js';
5
- import './toConsumableArray-81605212.js';
6
- import './core.get-iterator-method-227107e6.js';
2
+ import './_to-object-a4107da3.js';
3
+ import './es6.string.iterator-c990c18c.js';
4
+ import './_iter-detect-5d49a330.js';
5
+ import './toConsumableArray-43aa614d.js';
6
+ import './core.get-iterator-method-e1de7503.js';
7
7
  import './_object-pie-33c40e79.js';
8
- import './extends-be71a29a.js';
9
- export { g as default } from './getTargeting-93bb872d.js';
8
+ import './extends-6f2fcc99.js';
9
+ export { g as default } from './getTargeting-82e86707.js';