@mjhls/mjh-framework 1.0.847 → 1.0.849

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 (287) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +23 -24
  4. package/dist/cjs/AD300x250x600.js +23 -24
  5. package/dist/cjs/AD728x90.js +26 -27
  6. package/dist/cjs/ADFloatingFooter.js +22 -23
  7. package/dist/cjs/ADFooter.js +6 -6
  8. package/dist/cjs/ADGutter.js +22 -23
  9. package/dist/cjs/{ADInfeed-9d179b24.js → ADInfeed-86e987a0.js} +4 -4
  10. package/dist/cjs/ADSkyscraper.js +22 -23
  11. package/dist/cjs/ADSponsoredResources.js +22 -23
  12. package/dist/cjs/ADWebcast.js +22 -23
  13. package/dist/cjs/ADWelcome.js +19 -20
  14. package/dist/cjs/{ADlgInfeed-e1ba988c.js → ADlgInfeed-5d6f91d7.js} +4 -4
  15. package/dist/cjs/AccordionPanel.js +8 -8
  16. package/dist/cjs/AdSlot.js +23 -24
  17. package/dist/cjs/AdSlotsProvider.js +13 -14
  18. package/dist/cjs/AlgoliaSearch.js +30 -14111
  19. package/dist/cjs/AlphabeticList.js +10 -10
  20. package/dist/cjs/ArticleCarousel.js +17 -17
  21. package/dist/cjs/ArticleProgramLandingPage.js +50 -50
  22. package/dist/cjs/ArticleSeriesLandingPage.js +31 -32
  23. package/dist/cjs/ArticleSeriesListing.js +32 -33
  24. package/dist/cjs/Auth.js +348 -484
  25. package/dist/cjs/AuthWrapper.js +10 -587
  26. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-ac8972ce.js} +1 -1
  27. package/dist/cjs/Beam.js +8 -8
  28. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-8b494587.js} +34 -34
  29. package/dist/cjs/Breadcrumbs.js +8 -8
  30. package/dist/cjs/CMEDeck.js +24 -25
  31. package/dist/cjs/Column2.js +16 -16
  32. package/dist/cjs/Column3.js +32 -33
  33. package/dist/cjs/ConferenceArticleCard.js +7 -7
  34. package/dist/cjs/DeckContent.js +33 -34
  35. package/dist/cjs/DeckQueue.js +30 -31
  36. package/dist/cjs/{Dfp-93399f8c.js → Dfp-0bf098b5.js} +14 -15
  37. package/dist/cjs/EventsDeck.js +28 -28
  38. package/dist/cjs/ExternalResources.js +47 -47
  39. package/dist/cjs/Feature.js +4 -4
  40. package/dist/cjs/ForbesHero.js +12 -12
  41. package/dist/cjs/GridContent.js +46 -47
  42. package/dist/cjs/GridHero.js +13 -13
  43. package/dist/cjs/GroupDeck.js +14 -14
  44. package/dist/cjs/HamMagazine.js +27 -27
  45. package/dist/cjs/Hero.js +4 -4
  46. package/dist/cjs/HighlightenVideo.js +2 -2
  47. package/dist/cjs/HorizontalArticleListing.js +47 -47
  48. package/dist/cjs/HorizontalHero.js +4 -4
  49. package/dist/cjs/IssueContentDeck.js +13 -13
  50. package/dist/cjs/IssueDeck.js +16 -16
  51. package/dist/cjs/IssueLanding.js +56 -56
  52. package/dist/cjs/LeftNav.js +21 -22
  53. package/dist/cjs/MasterDeck.js +32 -33
  54. package/dist/cjs/MediaSeriesLanding.js +842 -941
  55. package/dist/cjs/NavDvm.js +13 -13
  56. package/dist/cjs/NavMagazine.js +30 -30
  57. package/dist/cjs/NavNative.js +32 -32
  58. package/dist/cjs/OncliveHero.js +4 -4
  59. package/dist/cjs/OncliveLargeHero.js +13 -13
  60. package/dist/cjs/PageFilter.js +6 -6
  61. package/dist/cjs/PartnerDetailListing.js +1257 -60
  62. package/dist/cjs/PdfDownload.js +1 -1
  63. package/dist/cjs/PopUpModal.js +6 -6
  64. package/dist/cjs/PubSection.js +34 -35
  65. package/dist/cjs/PubToc.js +8 -8
  66. package/dist/cjs/PublicationDeck.js +8 -8
  67. package/dist/cjs/PublicationLanding.js +28 -28
  68. package/dist/cjs/QueueDeckExpanded.js +37 -38
  69. package/dist/cjs/RecentNews.js +3 -3
  70. package/dist/cjs/RelatedContent.js +7 -7
  71. package/dist/cjs/Search.js +8 -8
  72. package/dist/cjs/Segment.js +6 -6
  73. package/dist/cjs/SeriesListingDeck.js +19 -20
  74. package/dist/cjs/{SeriesSlider-cbab9f0f.js → SeriesSlider-60fa1342.js} +10 -10
  75. package/dist/cjs/SetCookie.js +1 -1
  76. package/dist/cjs/SideFooter.js +15 -15
  77. package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-19548e2a.js} +10 -10
  78. package/dist/cjs/TaxonomyCard.js +10 -10
  79. package/dist/cjs/TaxonomyDescription.js +46 -46
  80. package/dist/cjs/TemplateNormal.js +46 -47
  81. package/dist/cjs/ThumbnailCard.js +7 -7
  82. package/dist/cjs/Ustream.js +13 -13
  83. package/dist/cjs/VerticalHero.js +3 -3
  84. package/dist/cjs/VideoProgramLandingPage.js +52 -52
  85. package/dist/cjs/VideoSeriesCard.js +13 -13
  86. package/dist/cjs/VideoSeriesFilter.js +9 -9
  87. package/dist/cjs/VideoSeriesLandingPage.js +37 -38
  88. package/dist/cjs/VideoSeriesListing.js +32 -33
  89. package/dist/cjs/View.js +140 -97
  90. package/dist/cjs/YahooHero.js +15 -15
  91. package/dist/cjs/YoutubeGroup.js +22 -22
  92. package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
  93. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
  94. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  95. package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
  96. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
  97. package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
  98. package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
  99. package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
  100. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  101. package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
  102. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
  103. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  104. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  105. package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
  106. package/dist/cjs/{extends-29bdbc6d.js → extends-60837c34.js} +7 -8
  107. package/dist/cjs/faundadb.js +7 -7
  108. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  109. package/dist/cjs/getQuery.js +2 -2
  110. package/dist/cjs/getRelatedArticle.js +71 -135
  111. package/dist/cjs/getRootDocGroup.js +6 -6
  112. package/dist/cjs/getSerializers.js +46 -46
  113. package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-3e45e4d4.js} +17 -8
  114. package/dist/cjs/getTargeting.js +8 -8
  115. package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
  116. package/dist/cjs/{index-572bb6bc.js → index-80e98193.js} +165 -415
  117. package/dist/cjs/{index-f86bb269.js → index-99edf08a.js} +45 -44
  118. package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
  119. package/dist/cjs/{index-efca863c.js → index-b5eb3ff8.js} +11 -16
  120. package/dist/cjs/{index.esm-8123cf40.js → index.esm-3ffa049c.js} +1 -1
  121. package/dist/cjs/index.js +137 -138
  122. package/dist/cjs/{inherits-c2065b95.js → inherits-87492b40.js} +19 -22
  123. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  124. package/dist/cjs/keys-a586b7a0.js +25 -0
  125. package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
  126. package/dist/cjs/{main-025fdc78.js → main-7b5e57b0.js} +159 -234
  127. package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
  128. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
  129. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
  130. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  131. package/dist/cjs/stringify-7c5aff47.js +17 -0
  132. package/dist/cjs/timeDifferenceCalc.js +1 -1
  133. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
  134. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  135. package/dist/cjs/{typeof-88a668c5.js → typeof-9d7f610f.js} +35 -35
  136. package/dist/cjs/urlFor.js +1 -1
  137. package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
  138. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  139. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
  140. package/dist/esm/AD.js +1 -1
  141. package/dist/esm/AD300x250.js +23 -24
  142. package/dist/esm/AD300x250x600.js +23 -24
  143. package/dist/esm/AD728x90.js +26 -27
  144. package/dist/esm/ADFloatingFooter.js +22 -23
  145. package/dist/esm/ADFooter.js +6 -6
  146. package/dist/esm/ADGutter.js +22 -23
  147. package/dist/esm/{ADInfeed-f20eb524.js → ADInfeed-4096aff2.js} +4 -4
  148. package/dist/esm/ADSkyscraper.js +22 -23
  149. package/dist/esm/ADSponsoredResources.js +22 -23
  150. package/dist/esm/ADWebcast.js +22 -23
  151. package/dist/esm/ADWelcome.js +19 -20
  152. package/dist/esm/{ADlgInfeed-c85a91b1.js → ADlgInfeed-8e4fcfbd.js} +4 -4
  153. package/dist/esm/AccordionPanel.js +8 -8
  154. package/dist/esm/AdSlot.js +23 -24
  155. package/dist/esm/AdSlotsProvider.js +13 -14
  156. package/dist/esm/AlgoliaSearch.js +26 -14107
  157. package/dist/esm/AlphabeticList.js +10 -10
  158. package/dist/esm/ArticleCarousel.js +17 -17
  159. package/dist/esm/ArticleProgramLandingPage.js +50 -50
  160. package/dist/esm/ArticleSeriesLandingPage.js +31 -32
  161. package/dist/esm/ArticleSeriesListing.js +32 -33
  162. package/dist/esm/Auth.js +348 -484
  163. package/dist/esm/AuthWrapper.js +9 -587
  164. package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-8ffd4679.js} +1 -1
  165. package/dist/esm/Beam.js +8 -8
  166. package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-d05b5b23.js} +34 -34
  167. package/dist/esm/Breadcrumbs.js +7 -7
  168. package/dist/esm/CMEDeck.js +24 -25
  169. package/dist/esm/Column2.js +16 -16
  170. package/dist/esm/Column3.js +32 -33
  171. package/dist/esm/ConferenceArticleCard.js +7 -7
  172. package/dist/esm/DeckContent.js +33 -34
  173. package/dist/esm/DeckQueue.js +30 -31
  174. package/dist/esm/{Dfp-43f121ff.js → Dfp-85c9513e.js} +14 -15
  175. package/dist/esm/EventsDeck.js +26 -26
  176. package/dist/esm/ExternalResources.js +47 -47
  177. package/dist/esm/Feature.js +4 -4
  178. package/dist/esm/ForbesHero.js +12 -12
  179. package/dist/esm/GridContent.js +46 -47
  180. package/dist/esm/GridHero.js +13 -13
  181. package/dist/esm/GroupDeck.js +14 -14
  182. package/dist/esm/HamMagazine.js +27 -27
  183. package/dist/esm/Hero.js +4 -4
  184. package/dist/esm/HighlightenVideo.js +2 -2
  185. package/dist/esm/HorizontalArticleListing.js +47 -47
  186. package/dist/esm/HorizontalHero.js +4 -4
  187. package/dist/esm/IssueContentDeck.js +13 -13
  188. package/dist/esm/IssueDeck.js +15 -15
  189. package/dist/esm/IssueLanding.js +56 -56
  190. package/dist/esm/LeftNav.js +21 -22
  191. package/dist/esm/MasterDeck.js +32 -33
  192. package/dist/esm/MediaSeriesLanding.js +577 -676
  193. package/dist/esm/NavDvm.js +13 -13
  194. package/dist/esm/NavMagazine.js +30 -30
  195. package/dist/esm/NavNative.js +30 -30
  196. package/dist/esm/OncliveHero.js +4 -4
  197. package/dist/esm/OncliveLargeHero.js +13 -13
  198. package/dist/esm/PageFilter.js +6 -6
  199. package/dist/esm/PartnerDetailListing.js +1255 -59
  200. package/dist/esm/PdfDownload.js +1 -1
  201. package/dist/esm/PopUpModal.js +6 -6
  202. package/dist/esm/PubSection.js +34 -35
  203. package/dist/esm/PubToc.js +8 -8
  204. package/dist/esm/PublicationDeck.js +7 -7
  205. package/dist/esm/PublicationLanding.js +27 -27
  206. package/dist/esm/QueueDeckExpanded.js +37 -38
  207. package/dist/esm/RecentNews.js +3 -3
  208. package/dist/esm/RelatedContent.js +7 -7
  209. package/dist/esm/Search.js +7 -7
  210. package/dist/esm/Segment.js +6 -6
  211. package/dist/esm/SeriesListingDeck.js +19 -20
  212. package/dist/esm/{SeriesSlider-5c62a578.js → SeriesSlider-05ecb544.js} +10 -10
  213. package/dist/esm/SetCookie.js +1 -1
  214. package/dist/esm/SideFooter.js +15 -15
  215. package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-47815365.js} +9 -9
  216. package/dist/esm/TaxonomyCard.js +10 -10
  217. package/dist/esm/TaxonomyDescription.js +46 -46
  218. package/dist/esm/TemplateNormal.js +46 -47
  219. package/dist/esm/ThumbnailCard.js +7 -7
  220. package/dist/esm/Ustream.js +13 -13
  221. package/dist/esm/VerticalHero.js +3 -3
  222. package/dist/esm/VideoProgramLandingPage.js +51 -51
  223. package/dist/esm/VideoSeriesCard.js +13 -13
  224. package/dist/esm/VideoSeriesFilter.js +9 -9
  225. package/dist/esm/VideoSeriesLandingPage.js +37 -38
  226. package/dist/esm/VideoSeriesListing.js +32 -33
  227. package/dist/esm/View.js +139 -96
  228. package/dist/esm/YahooHero.js +15 -15
  229. package/dist/esm/YoutubeGroup.js +22 -22
  230. package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
  231. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
  232. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  233. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
  234. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
  235. package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
  236. package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
  237. package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
  238. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  239. package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
  240. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
  241. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  242. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  243. package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
  244. package/dist/esm/{extends-60e0e1c6.js → extends-eb69e8ac.js} +8 -8
  245. package/dist/esm/faundadb.js +7 -7
  246. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  247. package/dist/esm/getQuery.js +2 -2
  248. package/dist/esm/getRelatedArticle.js +71 -135
  249. package/dist/esm/getRootDocGroup.js +6 -6
  250. package/dist/esm/getSerializers.js +46 -46
  251. package/dist/esm/{getTargeting-68291ce9.js → getTargeting-9cb7e014.js} +17 -8
  252. package/dist/esm/getTargeting.js +8 -8
  253. package/dist/esm/{index-2446af28.js → index-1819118a.js} +487 -41
  254. package/dist/esm/{index-aa0e654d.js → index-295b6942.js} +160 -411
  255. package/dist/esm/{index-0dbff1d1.js → index-51a80699.js} +11 -16
  256. package/dist/esm/{index-35bdcc81.js → index-6c12bdd5.js} +6 -6
  257. package/dist/esm/{index-79cfd25c.js → index-fa2ffe86.js} +45 -44
  258. package/dist/esm/{index.esm-8016b507.js → index.esm-8ee5ff72.js} +1 -1
  259. package/dist/esm/index.js +118 -119
  260. package/dist/esm/{inherits-a41fe93f.js → inherits-0d8cda6e.js} +20 -20
  261. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  262. package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
  263. package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
  264. package/dist/esm/{main-b5c5aac1.js → main-747e7d25.js} +153 -228
  265. package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
  266. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-3822f1ce.js} +16 -16
  267. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
  268. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  269. package/dist/esm/stringify-4330ccdc.js +15 -0
  270. package/dist/esm/timeDifferenceCalc.js +1 -1
  271. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
  272. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  273. package/dist/esm/{typeof-a286cf0c.js → typeof-af9c50d8.js} +35 -35
  274. package/dist/esm/urlFor.js +1 -1
  275. package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
  276. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  277. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
  278. package/package.json +1 -1
  279. package/dist/cjs/events-1b438fe7.js +0 -469
  280. package/dist/cjs/index-8041a4eb.js +0 -99
  281. package/dist/cjs/keys-7f2c2108.js +0 -25
  282. package/dist/cjs/stringify-c9ac1214.js +0 -17
  283. package/dist/esm/events-6c3a7a63.js +0 -467
  284. package/dist/esm/index-67e1773f.js +0 -94
  285. package/dist/esm/stringify-59c8f690.js +0 -15
  286. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
  287. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-4abff0b1.js} +1 -1
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
6
- var md5 = require('./md5-e1ca5797.js');
7
5
  require('./_commonjsHelpers-06173234.js');
8
- require('./es6.string.iterator-c2573ffd.js');
9
- require('./_to-object-6de10e57.js');
10
- require('./web.dom.iterable-46657b5c.js');
6
+ require('./_to-object-329a650b.js');
7
+ require('./es6.string.iterator-cc0bbaa4.js');
11
8
  require('./_library-dd23b178.js');
12
- require('./core.get-iterator-method-f474eacc.js');
13
- require('./_iter-detect-55a5657a.js');
9
+ require('./_iter-detect-60b2f026.js');
10
+ require('./core.get-iterator-method-f62321d4.js');
11
+ require('./web.dom.iterable-a0e279c1.js');
12
+ var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
13
+ var md5 = require('./md5-e1ca5797.js');
14
14
 
15
15
  var encrypt = function () {
16
16
  var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(password) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var isSymbol = require('./isSymbol-03abbdf0.js');
4
- var eq = require('./eq-5fc26c07.js');
3
+ var isSymbol = require('./isSymbol-04666465.js');
4
+ var eq = require('./eq-bb2843ed.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$1 = Function.prototype;
85
+ var funcProto = Function.prototype;
86
86
 
87
87
  /** Used to resolve the decompiled source of functions. */
88
- var funcToString$1 = funcProto$1.toString;
88
+ var funcToString = funcProto.toString;
89
89
 
90
90
  /**
91
91
  * Converts `func` to its source code.
@@ -97,7 +97,7 @@ var funcToString$1 = funcProto$1.toString;
97
97
  function toSource(func) {
98
98
  if (func != null) {
99
99
  try {
100
- return funcToString$1.call(func);
100
+ return funcToString.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 = Function.prototype,
122
- objectProto$2 = Object.prototype;
121
+ var funcProto$1 = Function.prototype,
122
+ objectProto = Object.prototype;
123
123
 
124
124
  /** Used to resolve the decompiled source of functions. */
125
- var funcToString = funcProto.toString;
125
+ var funcToString$1 = funcProto$1.toString;
126
126
 
127
127
  /** Used to check objects for own properties. */
128
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
128
+ var hasOwnProperty = objectProto.hasOwnProperty;
129
129
 
130
130
  /** Used to detect if a method is native. */
131
131
  var reIsNative = RegExp('^' +
132
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
132
+ funcToString$1.call(hasOwnProperty).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$1 = '__lodash_hash_undefined__';
221
+ var HASH_UNDEFINED = '__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$1 ? undefined : result;
242
+ return result === HASH_UNDEFINED ? 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 = Object.prototype;
250
+ var objectProto$2 = Object.prototype;
251
251
 
252
252
  /** Used to check objects for own properties. */
253
- var hasOwnProperty = objectProto.hasOwnProperty;
253
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
254
254
 
255
255
  /**
256
256
  * Checks if a hash value for `key` exists.
@@ -263,13 +263,13 @@ var hasOwnProperty = objectProto.hasOwnProperty;
263
263
  */
264
264
  function hashHas(key) {
265
265
  var data = this.__data__;
266
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
266
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$2.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 = '__lodash_hash_undefined__';
272
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
273
273
 
274
274
  /**
275
275
  * Sets the hash `key` to `value`.
@@ -284,7 +284,7 @@ var HASH_UNDEFINED = '__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 : value;
287
+ data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : 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 = 1 / 0;
770
+ var INFINITY = 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$1) ? '-0' : result;
797
+ return (result == '0' && (1 / value) == -INFINITY) ? '-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 / 0;
847
+ var INFINITY$1 = 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) ? '-0' : result;
861
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-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 },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\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 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 }';
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 },\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 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 }';
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,15 @@
1
1
  'use strict';
2
2
 
3
- var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
4
3
  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');
5
11
  var index = require('./index-bd6c9f56.js');
6
12
  var getQuery = require('./getQuery.js');
7
- require('./es6.string.iterator-c2573ffd.js');
8
- require('./_to-object-6de10e57.js');
9
- require('./web.dom.iterable-46657b5c.js');
10
- require('./_library-dd23b178.js');
11
- require('./core.get-iterator-method-f474eacc.js');
12
- require('./_iter-detect-55a5657a.js');
13
13
 
14
14
  var defaultParseOptions = {
15
15
  decodeValues: true,
@@ -31,20 +31,9 @@ function parseString(setCookieValue, options) {
31
31
  ? Object.assign({}, defaultParseOptions, options)
32
32
  : defaultParseOptions;
33
33
 
34
- try {
35
- value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
36
- } catch (e) {
37
- console.error(
38
- "set-cookie-parser encountered an error while decoding a cookie with value '" +
39
- value +
40
- "'. Set options.decodeValues to false to disable this feature.",
41
- e
42
- );
43
- }
44
-
45
34
  var cookie = {
46
35
  name: name, // grab everything before the first =
47
- value: value,
36
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
48
37
  };
49
38
 
50
39
  parts.forEach(function (part) {
@@ -215,7 +204,7 @@ setCookie.parse = parse_1;
215
204
  setCookie.parseString = parseString_1;
216
205
  setCookie.splitCookiesString = splitCookiesString_1;
217
206
 
218
- var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
207
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
219
208
  var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
220
209
  __assign = Object.assign || function(t) {
221
210
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -228,33 +217,10 @@ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlob
228
217
  return __assign.apply(this, arguments);
229
218
  };
230
219
  Object.defineProperty(exports, "__esModule", { value: true });
231
- exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
232
- /**
233
- * Tells whether we are in a browser or server.
234
- */
235
- function isBrowser() {
236
- return typeof window !== 'undefined';
237
- }
238
- exports.isBrowser = isBrowser;
239
- /**
240
- * Create an instance of the Cookie interface
241
- */
242
- function createCookie(name, value, options) {
243
- var sameSite = options.sameSite;
244
- if (sameSite === true) {
245
- sameSite = 'strict';
246
- }
247
- if (sameSite === undefined || sameSite === false) {
248
- sameSite = 'lax';
249
- }
250
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
251
- delete cookieToSet.encode;
252
- return __assign({ name: name, value: value }, cookieToSet);
253
- }
254
- exports.createCookie = createCookie;
255
- /**
256
- * Tells whether given objects have the same properties.
257
- */
220
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
221
+
222
+
223
+ var isBrowser = function () { return typeof window !== 'undefined'; };
258
224
  function hasSameProperties(a, b) {
259
225
  var aProps = Object.getOwnPropertyNames(a);
260
226
  var bProps = Object.getOwnPropertyNames(b);
@@ -269,9 +235,8 @@ function hasSameProperties(a, b) {
269
235
  }
270
236
  return true;
271
237
  }
272
- exports.hasSameProperties = hasSameProperties;
273
238
  /**
274
- * Compare the cookie and return true if the cookies have equivalent
239
+ * Compare the cookie and return true if the cookies has equivalent
275
240
  * options and the cookies would be overwritten in the browser storage.
276
241
  *
277
242
  * @param a first Cookie for comparison
@@ -284,109 +249,71 @@ function areCookiesEqual(a, b) {
284
249
  }
285
250
  return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
286
251
  }
287
- exports.areCookiesEqual = areCookiesEqual;
288
- /* Functions */
289
- //# sourceMappingURL=utils.js.map
290
- });
291
-
292
- _commonjsHelpers.unwrapExports(utils);
293
- utils.areCookiesEqual;
294
- utils.hasSameProperties;
295
- utils.createCookie;
296
- utils.isBrowser;
297
-
298
- var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
299
- var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
300
- __assign = Object.assign || function(t) {
301
- for (var s, i = 1, n = arguments.length; i < n; i++) {
302
- s = arguments[i];
303
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
304
- t[p] = s[p];
305
- }
306
- return t;
307
- };
308
- return __assign.apply(this, arguments);
309
- };
310
- Object.defineProperty(exports, "__esModule", { value: true });
311
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
312
-
313
-
314
-
315
252
  /**
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
+ *
316
273
  * Parses cookies.
317
274
  *
318
- * @param ctx NextJS page or API context, express context, null or undefined.
319
- * @param options Options that we pass down to `cookie` library.
275
+ * @param ctx
276
+ * @param options
320
277
  */
321
278
  function parseCookies(ctx, options) {
322
- var _a, _b;
323
- if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
279
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
324
280
  return index.cookie.parse(ctx.req.headers.cookie, options);
325
281
  }
326
- if (utils.isBrowser()) {
282
+ if (isBrowser()) {
327
283
  return index.cookie.parse(document.cookie, options);
328
284
  }
329
285
  return {};
330
286
  }
331
287
  exports.parseCookies = parseCookies;
332
288
  /**
289
+ *
333
290
  * Sets a cookie.
334
291
  *
335
- * @param ctx NextJS page or API context, express context, null or undefined.
336
- * @param name The name of your cookie.
337
- * @param value The value of your cookie.
338
- * @param options Options that we pass down to `cookie` library.
292
+ * @param ctx
293
+ * @param name
294
+ * @param value
295
+ * @param options
339
296
  */
340
297
  function setCookie$1(ctx, name, value, options) {
341
- var _a, _b;
342
- if (options === void 0) { options = {}; }
343
- // SSR
344
- if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
345
- // Check if response has finished and warn about it.
346
- if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
347
- console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
348
- console.warn("You should set cookie before res.send()");
349
- return {};
350
- }
351
- /**
352
- * Load existing cookies from the header and parse them.
353
- */
298
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
354
299
  var cookies = ctx.res.getHeader('Set-Cookie') || [];
355
300
  if (typeof cookies === 'string')
356
301
  cookies = [cookies];
357
302
  if (typeof cookies === 'number')
358
303
  cookies = [];
359
- /**
360
- * Parse cookies but ignore values - we've already encoded
361
- * them in the previous call.
362
- */
363
- var parsedCookies = setCookie.parse(cookies, {
364
- decodeValues: false,
365
- });
366
- /**
367
- * We create the new cookie and make sure that none of
368
- * the existing cookies match it.
369
- */
370
- var newCookie_1 = utils.createCookie(name, value, options);
304
+ var parsedCookies = setCookie.parse(cookies);
371
305
  var cookiesToSet_1 = [];
372
306
  parsedCookies.forEach(function (parsedCookie) {
373
- if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
374
- /**
375
- * We serialize the cookie back to the original format
376
- * if it isn't the same as the new one.
377
- */
378
- var serializedCookie = index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
379
- // we prevent reencoding by default, but you might override it
380
- encode: function (val) { return val; } }, parsedCookie));
381
- cookiesToSet_1.push(serializedCookie);
307
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
308
+ cookiesToSet_1.push(index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({}, parsedCookie)));
382
309
  }
383
310
  });
384
311
  cookiesToSet_1.push(index.cookie.serialize(name, value, options));
385
- // Update the header.
386
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
312
+ if (!ctx.res.finished) {
313
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
314
+ }
387
315
  }
388
- // Browser
389
- if (utils.isBrowser()) {
316
+ if (isBrowser()) {
390
317
  if (options && options.httpOnly) {
391
318
  throw new Error('Can not set a httpOnly cookie in the browser.');
392
319
  }
@@ -396,31 +323,40 @@ function setCookie$1(ctx, name, value, options) {
396
323
  }
397
324
  exports.setCookie = setCookie$1;
398
325
  /**
326
+ *
399
327
  * Destroys a cookie with a particular name.
400
328
  *
401
- * @param ctx NextJS page or API context, express context, null or undefined.
402
- * @param name Cookie name.
403
- * @param options Options that we pass down to `cookie` library.
329
+ * @param ctx
330
+ * @param name
331
+ * @param options
404
332
  */
405
333
  function destroyCookie(ctx, name, options) {
406
- /**
407
- * We forward the request destroy to setCookie function
408
- * as it is the same function with modified maxAge value.
409
- */
410
- return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
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 {};
411
348
  }
412
349
  exports.destroyCookie = destroyCookie;
413
- /* Utility Exports */
414
350
  exports.default = {
415
351
  set: setCookie$1,
416
352
  get: parseCookies,
417
353
  destroy: destroyCookie,
418
354
  };
419
- //# sourceMappingURL=index.js.map
355
+
420
356
  });
421
357
 
422
358
  _commonjsHelpers.unwrapExports(dist);
423
- dist.destroyCookie;
359
+ var dist_1 = dist.destroyCookie;
424
360
  var dist_2 = dist.setCookie;
425
361
  var dist_3 = dist.parseCookies;
426
362
 
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
4
3
  require('./_commonjsHelpers-06173234.js');
5
- require('./es6.string.iterator-c2573ffd.js');
6
- require('./_to-object-6de10e57.js');
7
- require('./web.dom.iterable-46657b5c.js');
4
+ require('./_to-object-329a650b.js');
5
+ require('./es6.string.iterator-cc0bbaa4.js');
8
6
  require('./_library-dd23b178.js');
9
- require('./core.get-iterator-method-f474eacc.js');
10
- require('./_iter-detect-55a5657a.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
11
 
12
12
  var _this = undefined;
13
13
 
@@ -1,60 +1,60 @@
1
1
  'use strict';
2
2
 
3
- require('react');
4
- var getSerializers = require('./index-572bb6bc.js');
5
- require('./BlockContent-36e54d77.js');
6
- require('./entities-3f9d0f2f.js');
7
- require('./slicedToArray-5d1bc3b3.js');
8
3
  require('./_commonjsHelpers-06173234.js');
9
- require('./web.dom.iterable-46657b5c.js');
10
- require('./es6.string.iterator-c2573ffd.js');
11
- require('./_to-object-6de10e57.js');
12
- require('./core.get-iterator-method-f474eacc.js');
13
- require('react-bootstrap');
14
- require('./urlFor.js');
15
- require('./index-efca863c.js');
16
- require('./index-fc2f1ca2.js');
17
- require('./events-1b438fe7.js');
4
+ require('./_to-object-329a650b.js');
5
+ require('./es6.string.iterator-cc0bbaa4.js');
6
+ require('./_library-dd23b178.js');
7
+ require('./_iter-detect-60b2f026.js');
8
+ require('./toConsumableArray-9a3476fe.js');
9
+ require('./core.get-iterator-method-f62321d4.js');
10
+ require('./_object-pie-68c5bcbc.js');
11
+ require('./extends-60837c34.js');
12
+ require('./_object-sap-5e74ba08.js');
13
+ require('./inherits-87492b40.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');
18
+ require('react');
19
+ require('./index-44481153.js');
18
20
  require('prop-types');
21
+ require('react-bootstrap/Row');
22
+ require('react-bootstrap/Col');
23
+ require('./moment-ca3bd9fb.js');
19
24
  require('next/router');
20
- require('./index-187c967e.js');
21
- require('./util-6f784d85.js');
22
- require('./Beam.js');
23
- require('./stringify-c9ac1214.js');
24
- require('./asyncToGenerator-58c289d9.js');
25
- require('./_library-dd23b178.js');
26
- require('./_iter-detect-55a5657a.js');
27
- require('./Segment.js');
28
- require('./main-025fdc78.js');
29
- require('./extends-29bdbc6d.js');
30
- require('./_object-pie-083f2dd6.js');
31
- require('./index-eadd5035.js');
25
+ require('./isSymbol-04666465.js');
26
+ require('./debounce-529c8d06.js');
27
+ require('./toNumber-36d1e7e5.js');
32
28
  require('react-dom');
33
- require('./typeof-88a668c5.js');
34
- require('./_is-array-6128bd56.js');
35
- require('./brightcove-react-player-loader.es-a195642e.js');
29
+ require('./index-b5eb3ff8.js');
30
+ require('./urlFor.js');
31
+ require('./index-9d365128.js');
32
+ require('./main-7b5e57b0.js');
33
+ require('./entities-310b46ee.js');
34
+ require('./slicedToArray-8f385299.js');
35
+ require('./stringify-7c5aff47.js');
36
+ require('./asyncToGenerator-140e5f89.js');
37
+ require('./Segment.js');
38
+ require('./Beam.js');
39
+ require('./AdSlot.js');
40
+ require('react-bootstrap/Button');
41
+ require('./BlockContent-8b494587.js');
42
+ require('./index-187c967e.js');
43
+ require('./smoothscroll-5054361f.js');
36
44
  require('./GroupDeck.js');
37
- require('./smoothscroll-99df7f93.js');
38
- require('./moment-aca40de1.js');
39
- require('./SocialShare.js');
45
+ require('react-bootstrap');
46
+ require('./iconBase-68959171.js');
47
+ require('./index.esm-974f47d9.js');
48
+ var getSerializers = require('./index-80e98193.js');
49
+ require('./util-f2c1b65b.js');
50
+ require('./brightcove-react-player-loader.es-5c98aec7.js');
40
51
  require('next/head');
41
52
  require('react-share');
42
- require('./_object-to-array-8fe5a54f.js');
43
- require('./toConsumableArray-ddb70795.js');
53
+ require('./SocialShare.js');
54
+ require('./_object-to-array-5762f850.js');
44
55
  require('react-bootstrap/Pagination');
45
- require('react-bootstrap/Button');
46
- require('./AdSlot.js');
47
- require('./debounce-d4a2369b.js');
48
- require('./isSymbol-03abbdf0.js');
49
- require('./toNumber-5e1fac58.js');
50
- require('react-bootstrap/Row');
51
- require('react-bootstrap/Col');
52
- require('./inherits-c2065b95.js');
53
- require('./_object-sap-a175b4a9.js');
54
- require('./define-property-c88be878.js');
55
- require('./index.esm-974f47d9.js');
56
- require('./iconBase-68959171.js');
57
56
  require('react-bootstrap/Figure');
57
+ require('react-script-tag');
58
58
 
59
59
 
60
60