@mjhls/mjh-framework 1.0.866-youtube-group-v1 → 1.0.867

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 (293) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +22 -24
  4. package/dist/cjs/AD300x250x600.js +22 -24
  5. package/dist/cjs/AD728x90.js +25 -27
  6. package/dist/cjs/ADFloatingFooter.js +21 -23
  7. package/dist/cjs/ADFooter.js +4 -6
  8. package/dist/cjs/ADGutter.js +21 -23
  9. package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-7d13830e.js} +4 -4
  10. package/dist/cjs/ADSkyscraper.js +21 -23
  11. package/dist/cjs/ADSponsoredResources.js +21 -23
  12. package/dist/cjs/ADWebcast.js +21 -23
  13. package/dist/cjs/ADWelcome.js +18 -20
  14. package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-d9dbfadc.js} +4 -4
  15. package/dist/cjs/AccordionPanel.js +6 -8
  16. package/dist/cjs/AdSlot.js +22 -24
  17. package/dist/cjs/AdSlotsProvider.js +11 -13
  18. package/dist/cjs/AlgoliaSearch.js +508 -500
  19. package/dist/cjs/AlphabeticList.js +8 -10
  20. package/dist/cjs/ArticleCarousel.js +13 -15
  21. package/dist/cjs/ArticleProgramLandingPage.js +48 -50
  22. package/dist/cjs/ArticleSeriesLandingPage.js +29 -31
  23. package/dist/cjs/ArticleSeriesListing.js +31 -33
  24. package/dist/cjs/Auth.js +482 -348
  25. package/dist/cjs/AuthWrapper.js +199 -240
  26. package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-39b37d84.js} +1 -1
  27. package/dist/cjs/Beam.js +6 -8
  28. package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
  29. package/dist/cjs/Breadcrumbs.js +6 -8
  30. package/dist/cjs/CMEDeck.js +22 -24
  31. package/dist/cjs/Column2.js +14 -16
  32. package/dist/cjs/Column3.js +31 -33
  33. package/dist/cjs/ConferenceArticleCard.js +25 -22
  34. package/dist/cjs/DeckContent.js +40 -42
  35. package/dist/cjs/DeckQueue.js +30 -31
  36. package/dist/cjs/{Dfp-391fd124.js → Dfp-9be904d5.js} +13 -15
  37. package/dist/cjs/EventsDeck.js +44 -46
  38. package/dist/cjs/ExternalResources.js +45 -47
  39. package/dist/cjs/Feature.js +7 -4
  40. package/dist/cjs/ForbesHero.js +10 -12
  41. package/dist/cjs/GridContent.js +45 -47
  42. package/dist/cjs/GridHero.js +11 -13
  43. package/dist/cjs/GroupDeck.js +12 -14
  44. package/dist/cjs/HamMagazine.js +34 -36
  45. package/dist/cjs/Hero.js +7 -4
  46. package/dist/cjs/HighlightenVideo.js +2 -2
  47. package/dist/cjs/HorizontalArticleListing.js +46 -48
  48. package/dist/cjs/HorizontalHero.js +7 -4
  49. package/dist/cjs/IssueContentDeck.js +11 -13
  50. package/dist/cjs/IssueDeck.js +14 -16
  51. package/dist/cjs/IssueLanding.js +82 -84
  52. package/dist/cjs/KMTracker.js +15 -15
  53. package/dist/cjs/LeftNav.js +20 -22
  54. package/dist/cjs/MasterDeck.js +39 -41
  55. package/dist/cjs/MediaSeriesLanding.js +507 -465
  56. package/dist/cjs/NavDvm.js +11 -13
  57. package/dist/cjs/NavMagazine.js +38 -40
  58. package/dist/cjs/NavNative.js +39 -41
  59. package/dist/cjs/OncliveHero.js +7 -4
  60. package/dist/cjs/OncliveLargeHero.js +11 -13
  61. package/dist/cjs/PageFilter.js +4 -6
  62. package/dist/cjs/PartnerDetailListing.js +64 -2770
  63. package/dist/cjs/PdfDownload.js +1 -1
  64. package/dist/cjs/PopUpModal.js +4 -6
  65. package/dist/cjs/PubSection.js +32 -34
  66. package/dist/cjs/PubToc.js +6 -8
  67. package/dist/cjs/PublicationDeck.js +11 -8
  68. package/dist/cjs/PublicationLanding.js +76 -78
  69. package/dist/cjs/QueueDeckExpanded.js +36 -38
  70. package/dist/cjs/RecentNews.js +3 -3
  71. package/dist/cjs/RelatedContent.js +38 -35
  72. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  73. package/dist/cjs/Search.js +6 -8
  74. package/dist/cjs/Segment.js +4 -6
  75. package/dist/cjs/SeriesListingDeck.js +18 -20
  76. package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-ce3261cb.js} +14 -14
  77. package/dist/cjs/SetCookie.js +1 -1
  78. package/dist/cjs/SideFooter.js +15 -17
  79. package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-a4ae7b88.js} +10 -10
  80. package/dist/cjs/TaxonomyCard.js +12 -10
  81. package/dist/cjs/TaxonomyDescription.js +44 -46
  82. package/dist/cjs/TemplateNormal.js +45 -47
  83. package/dist/cjs/ThumbnailCard.js +10 -7
  84. package/dist/cjs/Ustream.js +11 -13
  85. package/dist/cjs/VerticalHero.js +6 -3
  86. package/dist/cjs/VideoProgramLandingPage.js +50 -52
  87. package/dist/cjs/VideoSeriesCard.js +14 -14
  88. package/dist/cjs/VideoSeriesFilter.js +7 -9
  89. package/dist/cjs/VideoSeriesLandingPage.js +35 -37
  90. package/dist/cjs/VideoSeriesListing.js +31 -33
  91. package/dist/cjs/View.js +89 -92
  92. package/dist/cjs/YahooHero.js +13 -15
  93. package/dist/cjs/YoutubeGroup.js +25 -46
  94. package/dist/cjs/{_is-array-754e012d.js → _is-array-54228b29.js} +14 -14
  95. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-b1df62f0.js} +9 -10
  96. package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
  97. package/dist/cjs/_object-sap-d1978572.js +16 -0
  98. package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-ce86cae7.js} +5 -5
  99. package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-77821af0.js} +82 -84
  100. package/dist/cjs/{_to-object-329a650b.js → core.get-iterator-method-5643aa10.js} +256 -20
  101. package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
  102. package/dist/cjs/define-property-e8404b64.js +20 -0
  103. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-9673846a.js} +1 -1
  104. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  105. package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
  106. package/dist/cjs/{extends-0a918631.js → extends-7c86182f.js} +13 -13
  107. package/dist/cjs/faundadb.js +5 -7
  108. package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
  109. package/dist/cjs/getQuery.js +2 -2
  110. package/dist/cjs/getRelatedArticle.js +133 -71
  111. package/dist/cjs/getRootDocGroup.js +4 -6
  112. package/dist/cjs/getSerializers.js +43 -45
  113. package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-9d509319.js} +11 -11
  114. package/dist/cjs/getTargeting.js +6 -8
  115. package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
  116. package/dist/cjs/{index-f83a102a.js → index-ad4e6a69.js} +202 -181
  117. package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
  118. package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
  119. package/dist/cjs/{index-6367b7bf.js → index-f86bb269.js} +35 -35
  120. package/dist/cjs/{index-2cf30c83.js → index-fc2f1ca2.js} +4 -4
  121. package/dist/cjs/{index.esm-3ffa049c.js → index.esm-8123cf40.js} +1 -1
  122. package/dist/cjs/index.js +139 -140
  123. package/dist/cjs/{inherits-0c7830c5.js → inherits-de66ea16.js} +25 -26
  124. package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
  125. package/dist/cjs/keys-e982b3fa.js +25 -0
  126. package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
  127. package/dist/cjs/{main-7b5e57b0.js → main-025fdc78.js} +234 -159
  128. package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
  129. package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
  130. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-067dd3bc.js} +17 -19
  131. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  132. package/dist/cjs/stringify-f7a37a8d.js +17 -0
  133. package/dist/cjs/timeDifferenceCalc.js +1 -1
  134. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-d7797c2b.js} +12 -14
  135. package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
  136. package/dist/cjs/{typeof-9d7f610f.js → typeof-567e31ff.js} +97 -98
  137. package/dist/cjs/urlFor.js +19 -2
  138. package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-3819e4aa.js} +4 -4
  139. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  140. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-d98303e0.js} +8 -9
  141. package/dist/esm/AD.js +1 -1
  142. package/dist/esm/AD300x250.js +22 -24
  143. package/dist/esm/AD300x250x600.js +22 -24
  144. package/dist/esm/AD728x90.js +25 -27
  145. package/dist/esm/ADFloatingFooter.js +21 -23
  146. package/dist/esm/ADFooter.js +4 -6
  147. package/dist/esm/ADGutter.js +21 -23
  148. package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-0cbd7bed.js} +4 -4
  149. package/dist/esm/ADSkyscraper.js +21 -23
  150. package/dist/esm/ADSponsoredResources.js +21 -23
  151. package/dist/esm/ADWebcast.js +21 -23
  152. package/dist/esm/ADWelcome.js +18 -20
  153. package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-2d1a52d9.js} +4 -4
  154. package/dist/esm/AccordionPanel.js +6 -8
  155. package/dist/esm/AdSlot.js +22 -24
  156. package/dist/esm/AdSlotsProvider.js +11 -13
  157. package/dist/esm/AlgoliaSearch.js +507 -499
  158. package/dist/esm/AlphabeticList.js +8 -10
  159. package/dist/esm/ArticleCarousel.js +13 -15
  160. package/dist/esm/ArticleProgramLandingPage.js +48 -50
  161. package/dist/esm/ArticleSeriesLandingPage.js +29 -31
  162. package/dist/esm/ArticleSeriesListing.js +31 -33
  163. package/dist/esm/Auth.js +482 -348
  164. package/dist/esm/AuthWrapper.js +199 -240
  165. package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-46a745ba.js} +1 -1
  166. package/dist/esm/Beam.js +6 -8
  167. package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-52cf21c5.js} +34 -34
  168. package/dist/esm/Breadcrumbs.js +5 -7
  169. package/dist/esm/CMEDeck.js +22 -24
  170. package/dist/esm/Column2.js +14 -16
  171. package/dist/esm/Column3.js +31 -33
  172. package/dist/esm/ConferenceArticleCard.js +25 -22
  173. package/dist/esm/DeckContent.js +40 -42
  174. package/dist/esm/DeckQueue.js +30 -31
  175. package/dist/esm/{Dfp-2f9796e1.js → Dfp-4ca12f2e.js} +13 -15
  176. package/dist/esm/EventsDeck.js +41 -43
  177. package/dist/esm/ExternalResources.js +45 -47
  178. package/dist/esm/Feature.js +7 -4
  179. package/dist/esm/ForbesHero.js +10 -12
  180. package/dist/esm/GridContent.js +45 -47
  181. package/dist/esm/GridHero.js +11 -13
  182. package/dist/esm/GroupDeck.js +12 -14
  183. package/dist/esm/HamMagazine.js +34 -36
  184. package/dist/esm/Hero.js +7 -4
  185. package/dist/esm/HighlightenVideo.js +2 -2
  186. package/dist/esm/HorizontalArticleListing.js +46 -48
  187. package/dist/esm/HorizontalHero.js +7 -4
  188. package/dist/esm/IssueContentDeck.js +11 -13
  189. package/dist/esm/IssueDeck.js +13 -15
  190. package/dist/esm/IssueLanding.js +82 -84
  191. package/dist/esm/KMTracker.js +15 -15
  192. package/dist/esm/LeftNav.js +20 -22
  193. package/dist/esm/MasterDeck.js +39 -41
  194. package/dist/esm/MediaSeriesLanding.js +507 -465
  195. package/dist/esm/NavDvm.js +11 -13
  196. package/dist/esm/NavMagazine.js +38 -40
  197. package/dist/esm/NavNative.js +37 -39
  198. package/dist/esm/OncliveHero.js +7 -4
  199. package/dist/esm/OncliveLargeHero.js +11 -13
  200. package/dist/esm/PageFilter.js +4 -6
  201. package/dist/esm/PartnerDetailListing.js +62 -2767
  202. package/dist/esm/PdfDownload.js +1 -1
  203. package/dist/esm/PopUpModal.js +4 -6
  204. package/dist/esm/PubSection.js +32 -34
  205. package/dist/esm/PubToc.js +6 -8
  206. package/dist/esm/PublicationDeck.js +10 -7
  207. package/dist/esm/PublicationLanding.js +52 -54
  208. package/dist/esm/QueueDeckExpanded.js +36 -38
  209. package/dist/esm/RecentNews.js +3 -3
  210. package/dist/esm/RelatedContent.js +38 -35
  211. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  212. package/dist/esm/Search.js +5 -7
  213. package/dist/esm/Segment.js +4 -6
  214. package/dist/esm/SeriesListingDeck.js +18 -20
  215. package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-485f514e.js} +14 -14
  216. package/dist/esm/SetCookie.js +1 -1
  217. package/dist/esm/SideFooter.js +15 -17
  218. package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-41b6b480.js} +9 -9
  219. package/dist/esm/TaxonomyCard.js +12 -10
  220. package/dist/esm/TaxonomyDescription.js +44 -46
  221. package/dist/esm/TemplateNormal.js +45 -47
  222. package/dist/esm/ThumbnailCard.js +10 -7
  223. package/dist/esm/Ustream.js +11 -13
  224. package/dist/esm/VerticalHero.js +6 -3
  225. package/dist/esm/VideoProgramLandingPage.js +49 -51
  226. package/dist/esm/VideoSeriesCard.js +14 -14
  227. package/dist/esm/VideoSeriesFilter.js +7 -9
  228. package/dist/esm/VideoSeriesLandingPage.js +35 -37
  229. package/dist/esm/VideoSeriesListing.js +31 -33
  230. package/dist/esm/View.js +88 -91
  231. package/dist/esm/YahooHero.js +13 -15
  232. package/dist/esm/YoutubeGroup.js +25 -46
  233. package/dist/esm/{_is-array-58e95429.js → _is-array-893ab020.js} +6 -6
  234. package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-f089461c.js} +7 -8
  235. package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
  236. package/dist/esm/{_object-sap-964b6feb.js → _object-sap-169d6272.js} +1 -1
  237. package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-50a6b9a3.js} +2 -2
  238. package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-b4dfe691.js} +30 -32
  239. package/dist/esm/{_to-object-a4107da3.js → core.get-iterator-method-e903ff31.js} +247 -18
  240. package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
  241. package/dist/esm/define-property-99e66838.js +18 -0
  242. package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-8fa0bc8d.js} +1 -1
  243. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  244. package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
  245. package/dist/esm/{extends-6f2fcc99.js → extends-dc6a71fd.js} +7 -7
  246. package/dist/esm/faundadb.js +5 -7
  247. package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
  248. package/dist/esm/getQuery.js +2 -2
  249. package/dist/esm/getRelatedArticle.js +133 -71
  250. package/dist/esm/getRootDocGroup.js +4 -6
  251. package/dist/esm/getSerializers.js +43 -45
  252. package/dist/esm/{getTargeting-bd800589.js → getTargeting-ff2c9409.js} +11 -11
  253. package/dist/esm/getTargeting.js +6 -8
  254. package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
  255. package/dist/esm/{index-f7fb1e25.js → index-2446af28.js} +4 -4
  256. package/dist/esm/{index-6c12bdd5.js → index-35bdcc81.js} +6 -6
  257. package/dist/esm/{index-82fea143.js → index-61397130.js} +198 -177
  258. package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
  259. package/dist/esm/{index-c00b0bbb.js → index-79cfd25c.js} +35 -35
  260. package/dist/esm/{index.esm-8ee5ff72.js → index.esm-8016b507.js} +1 -1
  261. package/dist/esm/index.js +120 -121
  262. package/dist/esm/{inherits-75d45541.js → inherits-8a801a18.js} +18 -19
  263. package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
  264. package/dist/esm/keys-425c8ab0.js +23 -0
  265. package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
  266. package/dist/esm/{main-747e7d25.js → main-b5c5aac1.js} +228 -153
  267. package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
  268. package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-91f9716f.js} +16 -16
  269. package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-ca2c8b8d.js} +12 -14
  270. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  271. package/dist/esm/stringify-c21932b3.js +15 -0
  272. package/dist/esm/timeDifferenceCalc.js +1 -1
  273. package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-7b1c0e23.js} +7 -9
  274. package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
  275. package/dist/esm/{typeof-af9c50d8.js → typeof-83d9eb10.js} +34 -35
  276. package/dist/esm/urlFor.js +19 -2
  277. package/dist/esm/{ustream-api-9a50644d.js → ustream-api-41166338.js} +4 -4
  278. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  279. package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-fdf034f5.js} +2 -3
  280. package/package.json +111 -111
  281. package/dist/cjs/_object-sap-5e74ba08.js +0 -16
  282. package/dist/cjs/core.get-iterator-method-f62321d4.js +0 -39
  283. package/dist/cjs/define-property-f4d12f4e.js +0 -20
  284. package/dist/cjs/es6.string.iterator-cc0bbaa4.js +0 -210
  285. package/dist/cjs/keys-a586b7a0.js +0 -25
  286. package/dist/cjs/stringify-7c5aff47.js +0 -17
  287. package/dist/esm/core.get-iterator-method-e1de7503.js +0 -36
  288. package/dist/esm/define-property-8af5f002.js +0 -18
  289. package/dist/esm/es6.string.iterator-c990c18c.js +0 -201
  290. package/dist/esm/keys-8eda7a5c.js +0 -23
  291. package/dist/esm/stringify-4330ccdc.js +0 -15
  292. package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
  293. package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-b43c695a.js} +1 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var isSymbol = require('./isSymbol-04666465.js');
4
- var eq = require('./eq-bb2843ed.js');
3
+ var isSymbol = require('./isSymbol-03abbdf0.js');
4
+ var eq = require('./eq-5fc26c07.js');
5
5
 
6
6
  /**
7
7
  * Checks if `value` is classified as an `Array` object.
@@ -82,10 +82,10 @@ function isMasked(func) {
82
82
  var _isMasked = isMasked;
83
83
 
84
84
  /** Used for built-in method references. */
85
- var funcProto = Function.prototype;
85
+ var funcProto$1 = Function.prototype;
86
86
 
87
87
  /** Used to resolve the decompiled source of functions. */
88
- var funcToString = funcProto.toString;
88
+ var funcToString$1 = funcProto$1.toString;
89
89
 
90
90
  /**
91
91
  * Converts `func` to its source code.
@@ -97,7 +97,7 @@ var funcToString = funcProto.toString;
97
97
  function toSource(func) {
98
98
  if (func != null) {
99
99
  try {
100
- return funcToString.call(func);
100
+ return funcToString$1.call(func);
101
101
  } catch (e) {}
102
102
  try {
103
103
  return (func + '');
@@ -118,18 +118,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
118
118
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
119
119
 
120
120
  /** Used for built-in method references. */
121
- var funcProto$1 = Function.prototype,
122
- objectProto = Object.prototype;
121
+ var funcProto = Function.prototype,
122
+ objectProto$2 = Object.prototype;
123
123
 
124
124
  /** Used to resolve the decompiled source of functions. */
125
- var funcToString$1 = funcProto$1.toString;
125
+ var funcToString = funcProto.toString;
126
126
 
127
127
  /** Used to check objects for own properties. */
128
- var hasOwnProperty = objectProto.hasOwnProperty;
128
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
129
129
 
130
130
  /** Used to detect if a method is native. */
131
131
  var reIsNative = RegExp('^' +
132
- funcToString$1.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
132
+ funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
133
133
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
134
134
  );
135
135
 
@@ -218,7 +218,7 @@ function hashDelete(key) {
218
218
  var _hashDelete = hashDelete;
219
219
 
220
220
  /** Used to stand-in for `undefined` hash values. */
221
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
221
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
222
222
 
223
223
  /** Used for built-in method references. */
224
224
  var objectProto$1 = Object.prototype;
@@ -239,7 +239,7 @@ function hashGet(key) {
239
239
  var data = this.__data__;
240
240
  if (_nativeCreate) {
241
241
  var result = data[key];
242
- return result === HASH_UNDEFINED ? undefined : result;
242
+ return result === HASH_UNDEFINED$1 ? undefined : result;
243
243
  }
244
244
  return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
245
245
  }
@@ -247,10 +247,10 @@ function hashGet(key) {
247
247
  var _hashGet = hashGet;
248
248
 
249
249
  /** Used for built-in method references. */
250
- var objectProto$2 = Object.prototype;
250
+ var objectProto = Object.prototype;
251
251
 
252
252
  /** Used to check objects for own properties. */
253
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
253
+ var hasOwnProperty = objectProto.hasOwnProperty;
254
254
 
255
255
  /**
256
256
  * Checks if a hash value for `key` exists.
@@ -263,13 +263,13 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
263
263
  */
264
264
  function hashHas(key) {
265
265
  var data = this.__data__;
266
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
266
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
267
267
  }
268
268
 
269
269
  var _hashHas = hashHas;
270
270
 
271
271
  /** Used to stand-in for `undefined` hash values. */
272
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
272
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
273
273
 
274
274
  /**
275
275
  * Sets the hash `key` to `value`.
@@ -284,7 +284,7 @@ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
284
284
  function hashSet(key, value) {
285
285
  var data = this.__data__;
286
286
  this.size += this.has(key) ? 0 : 1;
287
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
287
+ data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
288
288
  return this;
289
289
  }
290
290
 
@@ -767,7 +767,7 @@ function arrayMap(array, iteratee) {
767
767
  var _arrayMap = arrayMap;
768
768
 
769
769
  /** Used as references for various `Number` constants. */
770
- var INFINITY = 1 / 0;
770
+ var INFINITY$1 = 1 / 0;
771
771
 
772
772
  /** Used to convert symbols to primitives and strings. */
773
773
  var symbolProto = isSymbol._Symbol ? isSymbol._Symbol.prototype : undefined,
@@ -794,7 +794,7 @@ function baseToString(value) {
794
794
  return symbolToString ? symbolToString.call(value) : '';
795
795
  }
796
796
  var result = (value + '');
797
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
797
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
798
798
  }
799
799
 
800
800
  var _baseToString = baseToString;
@@ -844,7 +844,7 @@ function castPath(value, object) {
844
844
  var _castPath = castPath;
845
845
 
846
846
  /** Used as references for various `Number` constants. */
847
- var INFINITY$1 = 1 / 0;
847
+ var INFINITY = 1 / 0;
848
848
 
849
849
  /**
850
850
  * Converts `value` to a string key if it's not a string or symbol.
@@ -858,7 +858,7 @@ function toKey(value) {
858
858
  return value;
859
859
  }
860
860
  var result = (value + '');
861
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
861
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
862
862
  }
863
863
 
864
864
  var _toKey = toKey;
@@ -10,9 +10,9 @@ var getQuery = function getQuery(type) {
10
10
 
11
11
  switch (type) {
12
12
  case 'related':
13
- return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n slides[]{\n ...,\n slideshowImage{\n ...,\n "width": asset->.metadata.dimensions.width,\n "height": asset->.metadata.dimensions.height,\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
13
+ return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
14
14
  case 'article':
15
- return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n slides[]{\n ...,\n slideshowImage{\n ...,\n "width": asset->.metadata.dimensions.width,\n "height": asset->.metadata.dimensions.height,\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
15
+ return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
16
16
  case 'publication':
17
17
  return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
18
18
  case 'issue':
@@ -1,15 +1,13 @@
1
1
  'use strict';
2
2
 
3
+ var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
3
4
  var _commonjsHelpers = 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-140e5f89.js');
11
5
  var index = require('./index-bd6c9f56.js');
12
6
  var getQuery = require('./getQuery.js');
7
+ require('./core.get-iterator-method-5643aa10.js');
8
+ require('./web.dom.iterable-d98303e0.js');
9
+ require('./_library-dd23b178.js');
10
+ require('./_iter-detect-b1df62f0.js');
13
11
 
14
12
  var defaultParseOptions = {
15
13
  decodeValues: true,
@@ -31,9 +29,20 @@ function parseString(setCookieValue, options) {
31
29
  ? Object.assign({}, defaultParseOptions, options)
32
30
  : defaultParseOptions;
33
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
+
34
43
  var cookie = {
35
44
  name: name, // grab everything before the first =
36
- value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
45
+ value: value,
37
46
  };
38
47
 
39
48
  parts.forEach(function (part) {
@@ -204,7 +213,7 @@ setCookie.parse = parse_1;
204
213
  setCookie.parseString = parseString_1;
205
214
  setCookie.splitCookiesString = splitCookiesString_1;
206
215
 
207
- var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
216
+ var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
208
217
  var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
209
218
  __assign = Object.assign || function(t) {
210
219
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -217,10 +226,33 @@ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlob
217
226
  return __assign.apply(this, arguments);
218
227
  };
219
228
  Object.defineProperty(exports, "__esModule", { value: true });
220
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
221
-
222
-
223
- var isBrowser = function () { return typeof window !== 'undefined'; };
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
+ */
224
256
  function hasSameProperties(a, b) {
225
257
  var aProps = Object.getOwnPropertyNames(a);
226
258
  var bProps = Object.getOwnPropertyNames(b);
@@ -235,8 +267,9 @@ function hasSameProperties(a, b) {
235
267
  }
236
268
  return true;
237
269
  }
270
+ exports.hasSameProperties = hasSameProperties;
238
271
  /**
239
- * Compare the cookie and return true if the cookies has equivalent
272
+ * Compare the cookie and return true if the cookies have equivalent
240
273
  * options and the cookies would be overwritten in the browser storage.
241
274
  *
242
275
  * @param a first Cookie for comparison
@@ -249,71 +282,109 @@ function areCookiesEqual(a, b) {
249
282
  }
250
283
  return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
251
284
  }
285
+ exports.areCookiesEqual = areCookiesEqual;
286
+ /* Functions */
287
+ //# sourceMappingURL=utils.js.map
288
+ });
289
+
290
+ _commonjsHelpers.unwrapExports(utils);
291
+ utils.areCookiesEqual;
292
+ utils.hasSameProperties;
293
+ utils.createCookie;
294
+ utils.isBrowser;
295
+
296
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
297
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.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
+
252
313
  /**
253
- * Create an instance of the Cookie interface
254
- *
255
- * @param name name of the Cookie
256
- * @param value value of the Cookie
257
- * @param options Cookie options
258
- */
259
- function createCookie(name, value, options) {
260
- var sameSite = options.sameSite;
261
- if (sameSite === true) {
262
- sameSite = 'strict';
263
- }
264
- if (sameSite === undefined || sameSite === false) {
265
- sameSite = 'lax';
266
- }
267
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
268
- delete cookieToSet.encode;
269
- return __assign({ name: name, value: value }, cookieToSet);
270
- }
271
- /**
272
- *
273
314
  * Parses cookies.
274
315
  *
275
- * @param ctx
276
- * @param options
316
+ * @param ctx NextJS page or API context, express context, null or undefined.
317
+ * @param options Options that we pass down to `cookie` library.
277
318
  */
278
319
  function parseCookies(ctx, options) {
279
- if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
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) {
280
322
  return index.cookie.parse(ctx.req.headers.cookie, options);
281
323
  }
282
- if (isBrowser()) {
324
+ if (utils.isBrowser()) {
283
325
  return index.cookie.parse(document.cookie, options);
284
326
  }
285
327
  return {};
286
328
  }
287
329
  exports.parseCookies = parseCookies;
288
330
  /**
289
- *
290
331
  * Sets a cookie.
291
332
  *
292
- * @param ctx
293
- * @param name
294
- * @param value
295
- * @param options
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.
296
337
  */
297
338
  function setCookie$1(ctx, name, value, options) {
298
- if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
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
+ */
299
352
  var cookies = ctx.res.getHeader('Set-Cookie') || [];
300
353
  if (typeof cookies === 'string')
301
354
  cookies = [cookies];
302
355
  if (typeof cookies === 'number')
303
356
  cookies = [];
304
- var parsedCookies = setCookie.parse(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);
305
369
  var cookiesToSet_1 = [];
306
370
  parsedCookies.forEach(function (parsedCookie) {
307
- if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
308
- cookiesToSet_1.push(index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, 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 = index.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);
309
380
  }
310
381
  });
311
382
  cookiesToSet_1.push(index.cookie.serialize(name, value, options));
312
- if (!ctx.res.finished) {
313
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
314
- }
383
+ // Update the header.
384
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
315
385
  }
316
- if (isBrowser()) {
386
+ // Browser
387
+ if (utils.isBrowser()) {
317
388
  if (options && options.httpOnly) {
318
389
  throw new Error('Can not set a httpOnly cookie in the browser.');
319
390
  }
@@ -323,40 +394,31 @@ function setCookie$1(ctx, name, value, options) {
323
394
  }
324
395
  exports.setCookie = setCookie$1;
325
396
  /**
326
- *
327
397
  * Destroys a cookie with a particular name.
328
398
  *
329
- * @param ctx
330
- * @param name
331
- * @param options
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.
332
402
  */
333
403
  function destroyCookie(ctx, name, options) {
334
- var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
335
- if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
336
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
337
- if (typeof cookies === 'string')
338
- cookies = [cookies];
339
- if (typeof cookies === 'number')
340
- cookies = [];
341
- cookies.push(index.cookie.serialize(name, '', opts));
342
- ctx.res.setHeader('Set-Cookie', cookies);
343
- }
344
- if (isBrowser()) {
345
- document.cookie = index.cookie.serialize(name, '', opts);
346
- }
347
- return {};
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 }));
348
409
  }
349
410
  exports.destroyCookie = destroyCookie;
411
+ /* Utility Exports */
350
412
  exports.default = {
351
413
  set: setCookie$1,
352
414
  get: parseCookies,
353
415
  destroy: destroyCookie,
354
416
  };
355
-
417
+ //# sourceMappingURL=index.js.map
356
418
  });
357
419
 
358
420
  _commonjsHelpers.unwrapExports(dist);
359
- var dist_1 = dist.destroyCookie;
421
+ dist.destroyCookie;
360
422
  var dist_2 = dist.setCookie;
361
423
  var dist_3 = dist.parseCookies;
362
424
 
@@ -1,13 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
3
4
  require('./_commonjsHelpers-06173234.js');
4
- require('./_to-object-329a650b.js');
5
- require('./es6.string.iterator-cc0bbaa4.js');
5
+ require('./core.get-iterator-method-5643aa10.js');
6
+ require('./web.dom.iterable-d98303e0.js');
6
7
  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-140e5f89.js');
8
+ require('./_iter-detect-b1df62f0.js');
11
9
 
12
10
  var _this = undefined;
13
11
 
@@ -1,59 +1,57 @@
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-0a918631.js');
12
- require('./_object-sap-5e74ba08.js');
13
- require('./inherits-0c7830c5.js');
14
- require('./define-property-f4d12f4e.js');
15
- require('./web.dom.iterable-a0e279c1.js');
16
- require('./typeof-9d7f610f.js');
17
- require('./_is-array-754e012d.js');
3
+ require('./extends-7c86182f.js');
18
4
  require('react');
5
+ var getSerializers = require('./index-ad4e6a69.js');
6
+ require('./BlockContent-36e54d77.js');
7
+ require('./entities-3f9d0f2f.js');
8
+ require('./_commonjsHelpers-06173234.js');
9
+ require('./core.get-iterator-method-5643aa10.js');
10
+ require('./_object-pie-083f2dd6.js');
11
+ require('./slicedToArray-067dd3bc.js');
12
+ require('./web.dom.iterable-d98303e0.js');
13
+ require('react-bootstrap');
14
+ require('./urlFor.js');
15
+ require('./index-efca863c.js');
16
+ require('./index-fc2f1ca2.js');
19
17
  require('./events-1b438fe7.js');
20
- require('./index-2cf30c83.js');
21
18
  require('prop-types');
22
- require('react-bootstrap/Row');
23
- require('react-bootstrap/Col');
24
- require('./moment-ca3bd9fb.js');
25
19
  require('next/router');
26
- require('./isSymbol-04666465.js');
27
- require('./debounce-529c8d06.js');
28
- require('./toNumber-36d1e7e5.js');
29
- require('react-dom');
30
- require('./index-b5eb3ff8.js');
31
- require('./urlFor.js');
32
- require('./index-9d365128.js');
33
- require('./main-7b5e57b0.js');
34
- require('./entities-310b46ee.js');
35
- require('./slicedToArray-8f385299.js');
36
- require('./stringify-7c5aff47.js');
37
- require('./asyncToGenerator-140e5f89.js');
38
- require('./Segment.js');
39
- require('./Beam.js');
40
- require('./AdSlot.js');
41
- require('react-bootstrap/Button');
42
- require('./BlockContent-8b494587.js');
43
20
  require('./index-187c967e.js');
44
- require('./smoothscroll-5054361f.js');
21
+ require('./util-6f784d85.js');
22
+ require('./Beam.js');
23
+ require('./stringify-f7a37a8d.js');
24
+ require('./asyncToGenerator-77821af0.js');
25
+ require('./_library-dd23b178.js');
26
+ require('./_iter-detect-b1df62f0.js');
27
+ require('./Segment.js');
28
+ require('./main-025fdc78.js');
29
+ require('./index-eadd5035.js');
30
+ require('react-dom');
31
+ require('./typeof-567e31ff.js');
32
+ require('./_is-array-54228b29.js');
33
+ require('./brightcove-react-player-loader.es-a195642e.js');
45
34
  require('./GroupDeck.js');
46
- require('react-bootstrap');
47
- require('./iconBase-68959171.js');
48
- require('./index.esm-974f47d9.js');
49
- var getSerializers = require('./index-f83a102a.js');
50
- require('./util-f2c1b65b.js');
51
- require('./brightcove-react-player-loader.es-5c98aec7.js');
35
+ require('./smoothscroll-99df7f93.js');
36
+ require('./moment-aca40de1.js');
37
+ require('./SocialShare.js');
52
38
  require('next/head');
53
39
  require('react-share');
54
- require('./SocialShare.js');
55
- require('./_object-to-array-5762f850.js');
40
+ require('./_object-to-array-ce86cae7.js');
41
+ require('./toConsumableArray-d7797c2b.js');
56
42
  require('react-bootstrap/Pagination');
43
+ require('react-bootstrap/Button');
44
+ require('./AdSlot.js');
45
+ require('./debounce-d4a2369b.js');
46
+ require('./isSymbol-03abbdf0.js');
47
+ require('./toNumber-5e1fac58.js');
48
+ require('react-bootstrap/Row');
49
+ require('react-bootstrap/Col');
50
+ require('./inherits-de66ea16.js');
51
+ require('./_object-sap-d1978572.js');
52
+ require('./define-property-e8404b64.js');
53
+ require('./index.esm-974f47d9.js');
54
+ require('./iconBase-68959171.js');
57
55
  require('react-bootstrap/Figure');
58
56
  require('react-bootstrap/OverlayTrigger');
59
57
  require('react-bootstrap/Tooltip');
@@ -1,21 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
4
- var _extends = require('./extends-0a918631.js');
3
+ var _extends = require('./extends-7c86182f.js');
4
+ var toConsumableArray = require('./toConsumableArray-d7797c2b.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.adTargetingURL ? adTargetingURL : cp.path);
16
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
17
17
 
18
- return cp_url;
18
+ return cp_url;
19
19
  };
20
20
 
21
21
  var getTargeting = function getTargeting(props) {