@mjhls/mjh-framework 1.0.770-beta.0 → 1.0.770

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/dist/cjs/AD.js +10 -9
  2. package/dist/cjs/AD300x250.js +28 -27
  3. package/dist/cjs/AD300x250x600.js +28 -27
  4. package/dist/cjs/AD728x90.js +31 -30
  5. package/dist/cjs/ADFloatingFooter.js +30 -29
  6. package/dist/cjs/ADFooter.js +15 -14
  7. package/dist/cjs/ADGutter.js +30 -29
  8. package/dist/cjs/{ADInfeed-547e399f.js → ADInfeed-32dc37f4.js} +15 -13
  9. package/dist/cjs/ADSkyscraper.js +30 -29
  10. package/dist/cjs/ADSponsoredResources.js +30 -29
  11. package/dist/cjs/ADWebcast.js +30 -29
  12. package/dist/cjs/ADWelcome.js +31 -30
  13. package/dist/cjs/{ADlgInfeed-84cd6750.js → ADlgInfeed-a8dc2b08.js} +11 -10
  14. package/dist/cjs/AccordionPanel.js +31 -29
  15. package/dist/cjs/AdSlot.js +32 -31
  16. package/dist/cjs/AdSlotsProvider.js +17 -16
  17. package/dist/cjs/AlphabeticList.js +25 -24
  18. package/dist/cjs/ArticleCarousel.js +24 -23
  19. package/dist/cjs/ArticleProgramLandingPage.js +56 -55
  20. package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
  21. package/dist/cjs/ArticleSeriesListing.js +60 -59
  22. package/dist/cjs/Auth.js +821 -335
  23. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
  24. package/dist/cjs/Beam.js +9 -9
  25. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-eca358e4.js} +25 -24
  26. package/dist/cjs/Breadcrumbs.js +29 -27
  27. package/dist/cjs/CMEDeck.js +83 -83
  28. package/dist/cjs/Column1.js +14 -11
  29. package/dist/cjs/Column2.js +35 -32
  30. package/dist/cjs/Column3.js +58 -55
  31. package/dist/cjs/ConferenceArticleCard.js +24 -23
  32. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  33. package/dist/cjs/DeckContent.js +98 -94
  34. package/dist/cjs/DeckQueue.js +90 -86
  35. package/dist/cjs/{Dfp-ce7ac168.js → Dfp-80146e98.js} +31 -30
  36. package/dist/cjs/EventsDeck.js +138 -131
  37. package/dist/cjs/ExternalResources.js +78 -77
  38. package/dist/cjs/Feature.js +27 -25
  39. package/dist/cjs/ForbesHero.js +41 -40
  40. package/dist/cjs/GridContent.js +181 -177
  41. package/dist/cjs/GridHero.js +43 -42
  42. package/dist/cjs/GroupDeck.js +59 -58
  43. package/dist/cjs/HamMagazine.js +136 -131
  44. package/dist/cjs/Header.js +13 -11
  45. package/dist/cjs/Hero.js +13 -12
  46. package/dist/cjs/HighlightenVideo.js +18 -17
  47. package/dist/cjs/HorizontalArticleListing.js +70 -69
  48. package/dist/cjs/HorizontalHero.js +26 -25
  49. package/dist/cjs/IssueContentDeck.js +77 -72
  50. package/dist/cjs/IssueDeck.js +75 -70
  51. package/dist/cjs/IssueLanding.js +41 -40
  52. package/dist/cjs/LeftNav.js +38 -36
  53. package/dist/cjs/MasterDeck.js +71 -70
  54. package/dist/cjs/MediaSeriesLanding.js +39 -37
  55. package/dist/cjs/NavDvm.js +80 -75
  56. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  57. package/dist/cjs/NavMagazine.js +143 -138
  58. package/dist/cjs/NavNative.js +123 -115
  59. package/dist/cjs/NavNormal.js +53 -48
  60. package/dist/cjs/OncliveHero.js +20 -20
  61. package/dist/cjs/OncliveLargeHero.js +67 -66
  62. package/dist/cjs/PageFilter.js +15 -14
  63. package/dist/cjs/PartnerDetailListing.js +107 -106
  64. package/dist/cjs/PdfDownload.js +9 -8
  65. package/dist/cjs/PopUpModal.js +21 -19
  66. package/dist/cjs/PubSection.js +40 -39
  67. package/dist/cjs/PubToc.js +17 -16
  68. package/dist/cjs/PublicationDeck.js +66 -61
  69. package/dist/cjs/PublicationLanding.js +83 -83
  70. package/dist/cjs/QueueDeckExpanded.js +292 -292
  71. package/dist/cjs/RecentNews.js +24 -23
  72. package/dist/cjs/RelatedContent.js +25 -24
  73. package/dist/cjs/RelatedTopicsDropdown.js +22 -19
  74. package/dist/cjs/RolesDeck.js +32 -27
  75. package/dist/cjs/Search.js +22 -18
  76. package/dist/cjs/Segment.js +7 -7
  77. package/dist/cjs/SeriesListingDeck.js +39 -38
  78. package/dist/cjs/{SeriesSlider-0a4b30a7.js → SeriesSlider-8b500128.js} +38 -37
  79. package/dist/cjs/SetCookie.js +1 -1
  80. package/dist/cjs/SideFooter.js +36 -35
  81. package/dist/cjs/SocialIcons.js +10 -9
  82. package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
  83. package/dist/cjs/SocialShare.js +31 -29
  84. package/dist/cjs/TaxonomyCard.js +62 -57
  85. package/dist/cjs/TaxonomyDescription.js +53 -52
  86. package/dist/cjs/TemplateNormal.js +73 -72
  87. package/dist/cjs/ThumbnailCard.js +22 -20
  88. package/dist/cjs/Ustream.js +27 -26
  89. package/dist/cjs/VerticalHero.js +18 -17
  90. package/dist/cjs/VideoProgramLandingPage.js +75 -71
  91. package/dist/cjs/VideoSeriesCard.js +32 -31
  92. package/dist/cjs/VideoSeriesFilter.js +19 -19
  93. package/dist/cjs/VideoSeriesLandingPage.js +47 -46
  94. package/dist/cjs/VideoSeriesListing.js +77 -76
  95. package/dist/cjs/View.js +255 -252
  96. package/dist/cjs/YahooHero.js +40 -39
  97. package/dist/cjs/YoutubeGroup.js +63 -62
  98. package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
  99. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
  100. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
  101. package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
  102. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
  103. package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
  104. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
  105. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  106. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
  107. package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
  108. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
  109. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  110. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
  111. package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
  112. package/dist/cjs/getQuery.js +1 -1
  113. package/dist/cjs/getRelatedArticle.js +424 -13
  114. package/dist/cjs/getRootDocGroup.js +7 -7
  115. package/dist/cjs/getSerializers.js +43 -43
  116. package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-497b581d.js} +3 -3
  117. package/dist/cjs/getTargeting.js +7 -7
  118. package/dist/cjs/iconBase-68959171.js +0 -3
  119. package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
  120. package/dist/cjs/{index-4ec63018.js → index-33d0daca.js} +925 -902
  121. package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
  122. package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
  123. package/dist/cjs/index-bd6c9f56.js +211 -0
  124. package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
  125. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  126. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  127. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  128. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  129. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  130. package/dist/cjs/index.js +162 -160
  131. package/dist/cjs/{inherits-c9f99d47.js → inherits-2eb23889.js} +5 -5
  132. package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
  133. package/dist/cjs/{lodash-fc2922d0.js → lodash-4ef21f0f.js} +72 -23
  134. package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
  135. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  136. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  137. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
  138. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  139. package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
  140. package/dist/cjs/timeDifferenceCalc.js +1 -1
  141. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
  142. package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
  143. package/dist/cjs/urlFor.js +2 -2
  144. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  145. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  146. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
  147. package/dist/esm/AD.js +7 -7
  148. package/dist/esm/AD300x250.js +24 -24
  149. package/dist/esm/AD300x250x600.js +24 -24
  150. package/dist/esm/AD728x90.js +27 -27
  151. package/dist/esm/ADFloatingFooter.js +26 -26
  152. package/dist/esm/ADFooter.js +11 -11
  153. package/dist/esm/ADGutter.js +26 -26
  154. package/dist/esm/{ADInfeed-892282a8.js → ADInfeed-6315ccfc.js} +9 -9
  155. package/dist/esm/ADSkyscraper.js +26 -26
  156. package/dist/esm/ADSponsoredResources.js +26 -26
  157. package/dist/esm/ADWebcast.js +26 -26
  158. package/dist/esm/ADWelcome.js +27 -27
  159. package/dist/esm/{ADlgInfeed-4cc9ead9.js → ADlgInfeed-4e05a45c.js} +8 -8
  160. package/dist/esm/AccordionPanel.js +24 -24
  161. package/dist/esm/AdSlot.js +23 -23
  162. package/dist/esm/AdSlotsProvider.js +13 -13
  163. package/dist/esm/AlphabeticList.js +21 -21
  164. package/dist/esm/ArticleCarousel.js +20 -20
  165. package/dist/esm/ArticleProgramLandingPage.js +52 -52
  166. package/dist/esm/ArticleSeriesLandingPage.js +35 -35
  167. package/dist/esm/ArticleSeriesListing.js +54 -54
  168. package/dist/esm/Auth.js +804 -322
  169. package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
  170. package/dist/esm/Beam.js +9 -9
  171. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d8cd739c.js} +4 -4
  172. package/dist/esm/Breadcrumbs.js +17 -17
  173. package/dist/esm/CMEDeck.js +79 -79
  174. package/dist/esm/Column1.js +5 -5
  175. package/dist/esm/Column2.js +26 -26
  176. package/dist/esm/Column3.js +48 -48
  177. package/dist/esm/ConferenceArticleCard.js +19 -19
  178. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  179. package/dist/esm/DeckContent.js +76 -76
  180. package/dist/esm/DeckQueue.js +64 -64
  181. package/dist/esm/{Dfp-e9a07597.js → Dfp-8bfbd310.js} +20 -20
  182. package/dist/esm/EventsDeck.js +84 -84
  183. package/dist/esm/ExternalResources.js +71 -71
  184. package/dist/esm/Feature.js +18 -18
  185. package/dist/esm/ForbesHero.js +34 -34
  186. package/dist/esm/GridContent.js +139 -139
  187. package/dist/esm/GridHero.js +36 -36
  188. package/dist/esm/GroupDeck.js +46 -46
  189. package/dist/esm/HamMagazine.js +105 -105
  190. package/dist/esm/Header.js +7 -7
  191. package/dist/esm/Hero.js +9 -9
  192. package/dist/esm/HighlightenVideo.js +14 -14
  193. package/dist/esm/HorizontalArticleListing.js +66 -66
  194. package/dist/esm/HorizontalHero.js +21 -21
  195. package/dist/esm/IssueContentDeck.js +49 -49
  196. package/dist/esm/IssueDeck.js +46 -46
  197. package/dist/esm/IssueLanding.js +37 -37
  198. package/dist/esm/LeftNav.js +32 -32
  199. package/dist/esm/MasterDeck.js +64 -64
  200. package/dist/esm/MediaSeriesLanding.js +30 -30
  201. package/dist/esm/NavDvm.js +57 -57
  202. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  203. package/dist/esm/NavMagazine.js +114 -114
  204. package/dist/esm/NavNative.js +91 -91
  205. package/dist/esm/NavNormal.js +36 -36
  206. package/dist/esm/OncliveHero.js +16 -17
  207. package/dist/esm/OncliveLargeHero.js +59 -59
  208. package/dist/esm/PageFilter.js +12 -12
  209. package/dist/esm/PartnerDetailListing.js +102 -102
  210. package/dist/esm/PdfDownload.js +6 -6
  211. package/dist/esm/PopUpModal.js +14 -14
  212. package/dist/esm/PubSection.js +36 -36
  213. package/dist/esm/PubToc.js +13 -13
  214. package/dist/esm/PublicationDeck.js +38 -38
  215. package/dist/esm/PublicationLanding.js +55 -59
  216. package/dist/esm/QueueDeckExpanded.js +272 -272
  217. package/dist/esm/RecentNews.js +20 -20
  218. package/dist/esm/RelatedContent.js +19 -19
  219. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  220. package/dist/esm/RolesDeck.js +13 -13
  221. package/dist/esm/Search.js +12 -12
  222. package/dist/esm/Segment.js +7 -7
  223. package/dist/esm/SeriesListingDeck.js +33 -33
  224. package/dist/esm/{SeriesSlider-f629bded.js → SeriesSlider-00ad2992.js} +27 -27
  225. package/dist/esm/SetCookie.js +1 -1
  226. package/dist/esm/SideFooter.js +31 -31
  227. package/dist/esm/SocialIcons.js +7 -7
  228. package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
  229. package/dist/esm/SocialShare.js +25 -25
  230. package/dist/esm/TaxonomyCard.js +41 -41
  231. package/dist/esm/TaxonomyDescription.js +47 -47
  232. package/dist/esm/TemplateNormal.js +66 -66
  233. package/dist/esm/ThumbnailCard.js +13 -13
  234. package/dist/esm/Ustream.js +23 -23
  235. package/dist/esm/VerticalHero.js +13 -13
  236. package/dist/esm/VideoProgramLandingPage.js +61 -61
  237. package/dist/esm/VideoSeriesCard.js +24 -24
  238. package/dist/esm/VideoSeriesFilter.js +16 -16
  239. package/dist/esm/VideoSeriesLandingPage.js +39 -39
  240. package/dist/esm/VideoSeriesListing.js +70 -70
  241. package/dist/esm/View.js +235 -236
  242. package/dist/esm/YahooHero.js +34 -34
  243. package/dist/esm/YoutubeGroup.js +46 -46
  244. package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
  245. package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
  246. package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
  247. package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
  248. package/dist/esm/{_set-species-3f8319f5.js → _set-species-494ed292.js} +4 -4
  249. package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
  250. package/dist/esm/{asyncToGenerator-502f13b4.js → asyncToGenerator-2bd4099a.js} +8 -8
  251. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  252. package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
  253. package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
  254. package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
  255. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  256. package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
  257. package/dist/esm/{extends-eb69e8ac.js → extends-31d65aba.js} +1 -1
  258. package/dist/esm/getQuery.js +1 -1
  259. package/dist/esm/getRelatedArticle.js +424 -13
  260. package/dist/esm/getRootDocGroup.js +7 -7
  261. package/dist/esm/getSerializers.js +43 -43
  262. package/dist/esm/{getTargeting-7211f12c.js → getTargeting-2d402d66.js} +2 -2
  263. package/dist/esm/getTargeting.js +7 -7
  264. package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
  265. package/dist/esm/{index-c6e49ea4.js → index-47730283.js} +860 -844
  266. package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
  267. package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
  268. package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
  269. package/dist/esm/index-db3bb315.js +207 -0
  270. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  271. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  272. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  273. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  274. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  275. package/dist/esm/index.js +128 -129
  276. package/dist/esm/{inherits-fb9b6e8f.js → inherits-5906fbea.js} +5 -5
  277. package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
  278. package/dist/esm/{lodash-17fdfebb.js → lodash-ad27652f.js} +72 -23
  279. package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
  280. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  281. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  282. package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
  283. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  284. package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
  285. package/dist/esm/timeDifferenceCalc.js +1 -1
  286. package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
  287. package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
  288. package/dist/esm/urlFor.js +1 -1
  289. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  290. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  291. package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
  292. package/package.json +1 -1
  293. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
@@ -1,10 +1,11 @@
1
1
  'use strict';
2
2
 
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
6
3
  var React = require('react');
7
- var React__default = _interopDefault(React);
4
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
5
+
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
8
9
 
9
10
  var slice = Array.prototype.slice;
10
11
 
@@ -630,7 +631,7 @@ if (typeof window !== "undefined") {
630
631
 
631
632
  var window_1 = win;
632
633
 
633
- /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
634
+ /*! @name @brightcove/react-player-loader @version 1.4.1 @license Apache-2.0 */
634
635
 
635
636
  function _extends() {
636
637
  _extends = Object.assign || function (target) {
@@ -664,7 +665,7 @@ function _assertThisInitialized(self) {
664
665
  return self;
665
666
  }
666
667
 
667
- /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
668
+ /*! @name @brightcove/player-loader @version 1.8.0 @license Apache-2.0 */
668
669
 
669
670
  function _extends$1() {
670
671
  _extends$1 = Object.assign || function (target) {
@@ -684,7 +685,7 @@ function _extends$1() {
684
685
  return _extends$1.apply(this, arguments);
685
686
  }
686
687
 
687
- var version = "1.7.1";
688
+ var version = "1.8.0";
688
689
 
689
690
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
690
691
  var version$1 = "1.2.0";
@@ -1001,6 +1002,7 @@ var createInPageEmbed = function createInPageEmbed(params) {
1001
1002
  deliveryConfigId: 'data-delivery-config-id',
1002
1003
  playlistId: 'data-playlist-id',
1003
1004
  playlistVideoId: 'data-playlist-video-id',
1005
+ poster: 'poster',
1004
1006
  videoId: 'data-video-id'
1005
1007
  };
1006
1008
  var tagName = embedOptions && embedOptions.tagName || EMBED_TAG_NAME_VIDEOJS;
@@ -2221,10 +2223,10 @@ function (_React$Component) {
2221
2223
  ref: this.setRefNode
2222
2224
  });
2223
2225
 
2224
- return React__default.createElement('div', props);
2226
+ return React__default['default'].createElement('div', props);
2225
2227
  };
2226
2228
 
2227
2229
  return ReactPlayerLoader;
2228
- }(React__default.Component);
2230
+ }(React__default['default'].Component);
2229
2231
 
2230
2232
  exports.ReactPlayerLoader = ReactPlayerLoader;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var _toObject = require('./_to-object-329a650b.js');
4
- var es6_string_iterator = require('./es6.string.iterator-cc0bbaa4.js');
3
+ var _toObject = require('./_to-object-821a2927.js');
4
+ var es6_string_iterator = require('./es6.string.iterator-20d42c53.js');
5
5
 
6
6
  // getting tag from 19.1.3.6 Object.prototype.toString()
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var _toObject = require('./_to-object-329a650b.js');
4
+ var _toObject = require('./_to-object-821a2927.js');
5
5
 
6
6
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
7
7
  _toObject._export(_toObject._export.S + _toObject._export.F * !_toObject._descriptors, 'Object', { defineProperty: _toObject._objectDp.f });
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var defineProperty$1 = require('./define-property-f4d12f4e.js');
4
+ var defineProperty$1 = require('./define-property-aff11f8a.js');
5
5
 
6
6
  var defineProperty = _commonjsHelpers.createCommonjsModule(function (module, exports) {
7
7
 
@@ -222,7 +222,7 @@ var striptags = _commonjsHelpers.createCommonjsModule(function (module) {
222
222
  return match ? match[1].toLowerCase() : null;
223
223
  }
224
224
 
225
- if ( module.exports) {
225
+ if (module.exports) {
226
226
  // Node
227
227
  module.exports = striptags;
228
228
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ var _toObject = require('./_to-object-821a2927.js');
3
4
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var _toObject = require('./_to-object-329a650b.js');
5
5
 
6
6
  // true -> String#at
7
7
  // false -> String#codePointAt
@@ -164,7 +164,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
164
164
  $default = function values() { return $native.call(this); };
165
165
  }
166
166
  // Define iterator
167
- if (( FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
167
+ if ((FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
168
168
  _toObject._hide(proto, ITERATOR, $default);
169
169
  }
170
170
  // Plug for library
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var _toObject = require('./_to-object-329a650b.js');
4
+ var _toObject = require('./_to-object-821a2927.js');
5
5
  var _objectPie = require('./_object-pie-68c5bcbc.js');
6
6
 
7
7
  // 19.1.2.1 Object.assign(target, source, ...)
@@ -14,7 +14,7 @@ var getQuery = function getQuery(type) {
14
14
  case 'article':
15
15
  return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\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 },\n body[] {\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 },\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 },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\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
- 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 \'articlesCount\': count(*[\n _type == \'article\' \n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)\n ][0...1])\n } | order(year desc, month desc)\n }';
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':
19
19
  return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n }\n }\n }\n }';
20
20
  case 'externalResources':
@@ -1,16 +1,427 @@
1
1
  'use strict';
2
2
 
3
- require('./_commonjsHelpers-06173234.js');
4
- require('./_to-object-329a650b.js');
5
- require('./es6.string.iterator-cc0bbaa4.js');
6
- require('./_library-dd23b178.js');
7
- require('./_iter-detect-60b2f026.js');
8
- require('./core.get-iterator-method-f62321d4.js');
9
- require('./web.dom.iterable-a0e279c1.js');
10
- var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
11
- require('./_set-species-f92c67c5.js');
12
- var nookies = require('nookies');
3
+ var asyncToGenerator = require('./asyncToGenerator-2edcb6ad.js');
4
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
5
+ var index = require('./index-bd6c9f56.js');
13
6
  var getQuery = require('./getQuery.js');
7
+ require('./es6.string.iterator-20d42c53.js');
8
+ require('./_to-object-821a2927.js');
9
+ require('./web.dom.iterable-4480325a.js');
10
+ require('./_library-dd23b178.js');
11
+ require('./core.get-iterator-method-b4615fd3.js');
12
+ require('./_set-species-a8cfdb84.js');
13
+ require('./_iter-detect-2613ffa1.js');
14
+
15
+ var defaultParseOptions = {
16
+ decodeValues: true,
17
+ map: false,
18
+ silent: false,
19
+ };
20
+
21
+ function isNonEmptyString(str) {
22
+ return typeof str === "string" && !!str.trim();
23
+ }
24
+
25
+ function parseString(setCookieValue, options) {
26
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
27
+ var nameValue = parts.shift().split("=");
28
+ var name = nameValue.shift();
29
+ var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
30
+
31
+ options = options
32
+ ? Object.assign({}, defaultParseOptions, options)
33
+ : defaultParseOptions;
34
+
35
+ try {
36
+ value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
37
+ } catch (e) {
38
+ console.error(
39
+ `set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
40
+ e
41
+ );
42
+ }
43
+
44
+ var cookie = {
45
+ name: name, // grab everything before the first =
46
+ value: value,
47
+ };
48
+
49
+ parts.forEach(function (part) {
50
+ var sides = part.split("=");
51
+ var key = sides.shift().trimLeft().toLowerCase();
52
+ var value = sides.join("=");
53
+ if (key === "expires") {
54
+ cookie.expires = new Date(value);
55
+ } else if (key === "max-age") {
56
+ cookie.maxAge = parseInt(value, 10);
57
+ } else if (key === "secure") {
58
+ cookie.secure = true;
59
+ } else if (key === "httponly") {
60
+ cookie.httpOnly = true;
61
+ } else if (key === "samesite") {
62
+ cookie.sameSite = value;
63
+ } else {
64
+ cookie[key] = value;
65
+ }
66
+ });
67
+
68
+ return cookie;
69
+ }
70
+
71
+ function parse(input, options) {
72
+ options = options
73
+ ? Object.assign({}, defaultParseOptions, options)
74
+ : defaultParseOptions;
75
+
76
+ if (!input) {
77
+ if (!options.map) {
78
+ return [];
79
+ } else {
80
+ return {};
81
+ }
82
+ }
83
+
84
+ if (input.headers && input.headers["set-cookie"]) {
85
+ // fast-path for node.js (which automatically normalizes header names to lower-case
86
+ input = input.headers["set-cookie"];
87
+ } else if (input.headers) {
88
+ // slow-path for other environments - see #25
89
+ var sch =
90
+ input.headers[
91
+ Object.keys(input.headers).find(function (key) {
92
+ return key.toLowerCase() === "set-cookie";
93
+ })
94
+ ];
95
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
96
+ if (!sch && input.headers.cookie && !options.silent) {
97
+ console.warn(
98
+ "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
99
+ );
100
+ }
101
+ input = sch;
102
+ }
103
+ if (!Array.isArray(input)) {
104
+ input = [input];
105
+ }
106
+
107
+ options = options
108
+ ? Object.assign({}, defaultParseOptions, options)
109
+ : defaultParseOptions;
110
+
111
+ if (!options.map) {
112
+ return input.filter(isNonEmptyString).map(function (str) {
113
+ return parseString(str, options);
114
+ });
115
+ } else {
116
+ var cookies = {};
117
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
118
+ var cookie = parseString(str, options);
119
+ cookies[cookie.name] = cookie;
120
+ return cookies;
121
+ }, cookies);
122
+ }
123
+ }
124
+
125
+ /*
126
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
127
+ that are within a single set-cookie field-value, such as in the Expires portion.
128
+
129
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
130
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
131
+ React Native's fetch does this for *every* header, including set-cookie.
132
+
133
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
134
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
135
+ */
136
+ function splitCookiesString(cookiesString) {
137
+ if (Array.isArray(cookiesString)) {
138
+ return cookiesString;
139
+ }
140
+ if (typeof cookiesString !== "string") {
141
+ return [];
142
+ }
143
+
144
+ var cookiesStrings = [];
145
+ var pos = 0;
146
+ var start;
147
+ var ch;
148
+ var lastComma;
149
+ var nextStart;
150
+ var cookiesSeparatorFound;
151
+
152
+ function skipWhitespace() {
153
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
154
+ pos += 1;
155
+ }
156
+ return pos < cookiesString.length;
157
+ }
158
+
159
+ function notSpecialChar() {
160
+ ch = cookiesString.charAt(pos);
161
+
162
+ return ch !== "=" && ch !== ";" && ch !== ",";
163
+ }
164
+
165
+ while (pos < cookiesString.length) {
166
+ start = pos;
167
+ cookiesSeparatorFound = false;
168
+
169
+ while (skipWhitespace()) {
170
+ ch = cookiesString.charAt(pos);
171
+ if (ch === ",") {
172
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
173
+ lastComma = pos;
174
+ pos += 1;
175
+
176
+ skipWhitespace();
177
+ nextStart = pos;
178
+
179
+ while (pos < cookiesString.length && notSpecialChar()) {
180
+ pos += 1;
181
+ }
182
+
183
+ // currently special character
184
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
185
+ // we found cookies separator
186
+ cookiesSeparatorFound = true;
187
+ // pos is inside the next cookie, so back up and return it.
188
+ pos = nextStart;
189
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
190
+ start = pos;
191
+ } else {
192
+ // in param ',' or param separator ';',
193
+ // we continue from that comma
194
+ pos = lastComma + 1;
195
+ }
196
+ } else {
197
+ pos += 1;
198
+ }
199
+ }
200
+
201
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
202
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
203
+ }
204
+ }
205
+
206
+ return cookiesStrings;
207
+ }
208
+
209
+ var setCookie = parse;
210
+ var parse_1 = parse;
211
+ var parseString_1 = parseString;
212
+ var splitCookiesString_1 = splitCookiesString;
213
+ setCookie.parse = parse_1;
214
+ setCookie.parseString = parseString_1;
215
+ setCookie.splitCookiesString = splitCookiesString_1;
216
+
217
+ var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
218
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
219
+ __assign = Object.assign || function(t) {
220
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
221
+ s = arguments[i];
222
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
223
+ t[p] = s[p];
224
+ }
225
+ return t;
226
+ };
227
+ return __assign.apply(this, arguments);
228
+ };
229
+ Object.defineProperty(exports, "__esModule", { value: true });
230
+ exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
231
+ /**
232
+ * Tells whether we are in a browser or server.
233
+ */
234
+ function isBrowser() {
235
+ return typeof window !== 'undefined';
236
+ }
237
+ exports.isBrowser = isBrowser;
238
+ /**
239
+ * Create an instance of the Cookie interface
240
+ */
241
+ function createCookie(name, value, options) {
242
+ var sameSite = options.sameSite;
243
+ if (sameSite === true) {
244
+ sameSite = 'strict';
245
+ }
246
+ if (sameSite === undefined || sameSite === false) {
247
+ sameSite = 'lax';
248
+ }
249
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
250
+ delete cookieToSet.encode;
251
+ return __assign({ name: name, value: value }, cookieToSet);
252
+ }
253
+ exports.createCookie = createCookie;
254
+ /**
255
+ * Tells whether given objects have the same properties.
256
+ */
257
+ function hasSameProperties(a, b) {
258
+ var aProps = Object.getOwnPropertyNames(a);
259
+ var bProps = Object.getOwnPropertyNames(b);
260
+ if (aProps.length !== bProps.length) {
261
+ return false;
262
+ }
263
+ for (var i = 0; i < aProps.length; i++) {
264
+ var propName = aProps[i];
265
+ if (a[propName] !== b[propName]) {
266
+ return false;
267
+ }
268
+ }
269
+ return true;
270
+ }
271
+ exports.hasSameProperties = hasSameProperties;
272
+ /**
273
+ * Compare the cookie and return true if the cookies have equivalent
274
+ * options and the cookies would be overwritten in the browser storage.
275
+ *
276
+ * @param a first Cookie for comparison
277
+ * @param b second Cookie for comparison
278
+ */
279
+ function areCookiesEqual(a, b) {
280
+ var sameSiteSame = a.sameSite === b.sameSite;
281
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
282
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
283
+ }
284
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
285
+ }
286
+ exports.areCookiesEqual = areCookiesEqual;
287
+ /* Functions */
288
+
289
+ });
290
+
291
+ _commonjsHelpers.unwrapExports(utils);
292
+ utils.areCookiesEqual;
293
+ utils.hasSameProperties;
294
+ utils.createCookie;
295
+ utils.isBrowser;
296
+
297
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
298
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
299
+ __assign = Object.assign || function(t) {
300
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
301
+ s = arguments[i];
302
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
303
+ t[p] = s[p];
304
+ }
305
+ return t;
306
+ };
307
+ return __assign.apply(this, arguments);
308
+ };
309
+ Object.defineProperty(exports, "__esModule", { value: true });
310
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
311
+
312
+
313
+
314
+ /**
315
+ * Parses cookies.
316
+ *
317
+ * @param ctx NextJS page or API context, express context, null or undefined.
318
+ * @param options Options that we pass down to `cookie` library.
319
+ */
320
+ function parseCookies(ctx, options) {
321
+ var _a, _b;
322
+ 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) {
323
+ return index.cookie.parse(ctx.req.headers.cookie, options);
324
+ }
325
+ if (utils.isBrowser()) {
326
+ return index.cookie.parse(document.cookie, options);
327
+ }
328
+ return {};
329
+ }
330
+ exports.parseCookies = parseCookies;
331
+ /**
332
+ * Sets a cookie.
333
+ *
334
+ * @param ctx NextJS page or API context, express context, null or undefined.
335
+ * @param name The name of your cookie.
336
+ * @param value The value of your cookie.
337
+ * @param options Options that we pass down to `cookie` library.
338
+ */
339
+ function setCookie$1(ctx, name, value, options) {
340
+ var _a, _b;
341
+ if (options === void 0) { options = {}; }
342
+ // SSR
343
+ if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
344
+ // Check if response has finished and warn about it.
345
+ if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
346
+ console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
347
+ console.warn("You should set cookie before res.send()");
348
+ return {};
349
+ }
350
+ /**
351
+ * Load existing cookies from the header and parse them.
352
+ */
353
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
354
+ if (typeof cookies === 'string')
355
+ cookies = [cookies];
356
+ if (typeof cookies === 'number')
357
+ cookies = [];
358
+ /**
359
+ * Parse cookies but ignore values - we've already encoded
360
+ * them in the previous call.
361
+ */
362
+ var parsedCookies = setCookie.parse(cookies, {
363
+ decodeValues: false,
364
+ });
365
+ /**
366
+ * We create the new cookie and make sure that none of
367
+ * the existing cookies match it.
368
+ */
369
+ var newCookie_1 = utils.createCookie(name, value, options);
370
+ var cookiesToSet_1 = [];
371
+ parsedCookies.forEach(function (parsedCookie) {
372
+ if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
373
+ /**
374
+ * We serialize the cookie back to the original format
375
+ * if it isn't the same as the new one.
376
+ */
377
+ var serializedCookie = index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
378
+ // we prevent reencoding by default, but you might override it
379
+ encode: function (val) { return val; } }, parsedCookie));
380
+ cookiesToSet_1.push(serializedCookie);
381
+ }
382
+ });
383
+ cookiesToSet_1.push(index.cookie.serialize(name, value, options));
384
+ // Update the header.
385
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
386
+ }
387
+ // Browser
388
+ if (utils.isBrowser()) {
389
+ if (options && options.httpOnly) {
390
+ throw new Error('Can not set a httpOnly cookie in the browser.');
391
+ }
392
+ document.cookie = index.cookie.serialize(name, value, options);
393
+ }
394
+ return {};
395
+ }
396
+ exports.setCookie = setCookie$1;
397
+ /**
398
+ * Destroys a cookie with a particular name.
399
+ *
400
+ * @param ctx NextJS page or API context, express context, null or undefined.
401
+ * @param name Cookie name.
402
+ * @param options Options that we pass down to `cookie` library.
403
+ */
404
+ function destroyCookie(ctx, name, options) {
405
+ /**
406
+ * We forward the request destroy to setCookie function
407
+ * as it is the same function with modified maxAge value.
408
+ */
409
+ return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
410
+ }
411
+ exports.destroyCookie = destroyCookie;
412
+ /* Utility Exports */
413
+ exports.default = {
414
+ set: setCookie$1,
415
+ get: parseCookies,
416
+ destroy: destroyCookie,
417
+ };
418
+
419
+ });
420
+
421
+ _commonjsHelpers.unwrapExports(dist);
422
+ dist.destroyCookie;
423
+ var dist_2 = dist.setCookie;
424
+ var dist_3 = dist.parseCookies;
14
425
 
15
426
  var _this = undefined;
16
427
 
@@ -88,13 +499,13 @@ var getRelatedArticle = function () {
88
499
 
89
500
 
90
501
  if (ctx && url) {
91
- cookies = nookies.parseCookies(ctx);
502
+ cookies = dist_3(ctx);
92
503
  prevSlugs = cookies['prevSlugs'];
93
504
 
94
505
  if (!!prevSlugs) {
95
- if (!prevSlugs.includes(url)) nookies.setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
506
+ if (!prevSlugs.includes(url)) dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
96
507
  filters = filters + ' && !(url.current in [' + prevSlugs + '])';
97
- } else nookies.setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
508
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
98
509
  }
99
510
 
100
511
  query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
+ var asyncToGenerator = require('./asyncToGenerator-2edcb6ad.js');
3
4
  require('./_commonjsHelpers-06173234.js');
4
- require('./_to-object-329a650b.js');
5
- require('./es6.string.iterator-cc0bbaa4.js');
5
+ require('./es6.string.iterator-20d42c53.js');
6
+ require('./_to-object-821a2927.js');
7
+ require('./web.dom.iterable-4480325a.js');
6
8
  require('./_library-dd23b178.js');
7
- require('./_iter-detect-60b2f026.js');
8
- require('./core.get-iterator-method-f62321d4.js');
9
- require('./web.dom.iterable-a0e279c1.js');
10
- var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
11
- require('./_set-species-f92c67c5.js');
9
+ require('./core.get-iterator-method-b4615fd3.js');
10
+ require('./_set-species-a8cfdb84.js');
11
+ require('./_iter-detect-2613ffa1.js');
12
12
 
13
13
  var _this = undefined;
14
14