@mjhls/mjh-framework 1.0.786-beta.1 → 1.0.787

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 (290) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +10 -9
  3. package/dist/cjs/AD300x250.js +27 -26
  4. package/dist/cjs/AD300x250x600.js +27 -26
  5. package/dist/cjs/AD728x90.js +30 -29
  6. package/dist/cjs/ADFloatingFooter.js +29 -28
  7. package/dist/cjs/ADFooter.js +15 -14
  8. package/dist/cjs/ADGutter.js +29 -28
  9. package/dist/cjs/{ADInfeed-bb09e44c.js → ADInfeed-1e53d7db.js} +15 -13
  10. package/dist/cjs/ADSkyscraper.js +29 -28
  11. package/dist/cjs/ADSponsoredResources.js +29 -28
  12. package/dist/cjs/ADWebcast.js +29 -28
  13. package/dist/cjs/ADWelcome.js +30 -29
  14. package/dist/cjs/{ADlgInfeed-fa91dbda.js → ADlgInfeed-2494fd17.js} +11 -10
  15. package/dist/cjs/AccordionPanel.js +31 -29
  16. package/dist/cjs/AdSlot.js +32 -31
  17. package/dist/cjs/AdSlotsProvider.js +16 -15
  18. package/dist/cjs/AlphabeticList.js +25 -24
  19. package/dist/cjs/ArticleCarousel.js +24 -23
  20. package/dist/cjs/ArticleProgramLandingPage.js +57 -54
  21. package/dist/cjs/ArticleSeriesLandingPage.js +38 -37
  22. package/dist/cjs/ArticleSeriesListing.js +61 -60
  23. package/dist/cjs/Auth.js +4231 -0
  24. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
  25. package/dist/cjs/Beam.js +8 -8
  26. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-eca358e4.js} +25 -24
  27. package/dist/cjs/Breadcrumbs.js +29 -27
  28. package/dist/cjs/CMEDeck.js +82 -82
  29. package/dist/cjs/Column1.js +14 -11
  30. package/dist/cjs/Column2.js +35 -32
  31. package/dist/cjs/Column3.js +57 -54
  32. package/dist/cjs/ConferenceArticleCard.js +24 -23
  33. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  34. package/dist/cjs/DeckContent.js +97 -93
  35. package/dist/cjs/DeckQueue.js +91 -87
  36. package/dist/cjs/{Dfp-b807d8fa.js → Dfp-a17e00fa.js} +32 -31
  37. package/dist/cjs/EventsDeck.js +138 -131
  38. package/dist/cjs/ExternalResources.js +80 -77
  39. package/dist/cjs/Feature.js +27 -25
  40. package/dist/cjs/ForbesHero.js +41 -40
  41. package/dist/cjs/GridContent.js +181 -177
  42. package/dist/cjs/GridHero.js +43 -42
  43. package/dist/cjs/GroupDeck.js +59 -58
  44. package/dist/cjs/HamMagazine.js +135 -130
  45. package/dist/cjs/Header.js +14 -12
  46. package/dist/cjs/Hero.js +13 -12
  47. package/dist/cjs/HighlightenVideo.js +18 -17
  48. package/dist/cjs/HorizontalArticleListing.js +71 -68
  49. package/dist/cjs/HorizontalHero.js +26 -25
  50. package/dist/cjs/IssueContentDeck.js +77 -72
  51. package/dist/cjs/IssueDeck.js +75 -70
  52. package/dist/cjs/IssueLanding.js +40 -39
  53. package/dist/cjs/LeftNav.js +37 -35
  54. package/dist/cjs/MasterDeck.js +70 -69
  55. package/dist/cjs/MediaSeriesLanding.js +40 -38
  56. package/dist/cjs/NavDvm.js +79 -74
  57. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  58. package/dist/cjs/NavMagazine.js +142 -137
  59. package/dist/cjs/NavNative.js +134 -126
  60. package/dist/cjs/NavNormal.js +52 -47
  61. package/dist/cjs/OncliveHero.js +20 -20
  62. package/dist/cjs/OncliveLargeHero.js +67 -66
  63. package/dist/cjs/PageFilter.js +15 -14
  64. package/dist/cjs/PartnerDetailListing.js +112 -99
  65. package/dist/cjs/PdfDownload.js +9 -8
  66. package/dist/cjs/PopUpModal.js +21 -19
  67. package/dist/cjs/PubSection.js +39 -38
  68. package/dist/cjs/PubToc.js +16 -15
  69. package/dist/cjs/PublicationDeck.js +66 -61
  70. package/dist/cjs/PublicationLanding.js +83 -79
  71. package/dist/cjs/QueueDeckExpanded.js +291 -291
  72. package/dist/cjs/RecentNews.js +24 -23
  73. package/dist/cjs/RelatedContent.js +25 -24
  74. package/dist/cjs/RelatedTopicsDropdown.js +22 -19
  75. package/dist/cjs/RolesDeck.js +32 -27
  76. package/dist/cjs/Search.js +22 -18
  77. package/dist/cjs/Segment.js +6 -6
  78. package/dist/cjs/SeriesListingDeck.js +37 -37
  79. package/dist/cjs/{SeriesSlider-f662f1f5.js → SeriesSlider-193a2958.js} +38 -37
  80. package/dist/cjs/SetCookie.js +1 -1
  81. package/dist/cjs/SideFooter.js +35 -34
  82. package/dist/cjs/SocialIcons.js +10 -9
  83. package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
  84. package/dist/cjs/SocialShare.js +31 -29
  85. package/dist/cjs/TaxonomyCard.js +62 -57
  86. package/dist/cjs/TaxonomyDescription.js +54 -51
  87. package/dist/cjs/TemplateNormal.js +73 -72
  88. package/dist/cjs/ThumbnailCard.js +22 -20
  89. package/dist/cjs/Ustream.js +27 -26
  90. package/dist/cjs/VerticalHero.js +18 -17
  91. package/dist/cjs/VideoProgramLandingPage.js +76 -70
  92. package/dist/cjs/VideoSeriesCard.js +32 -31
  93. package/dist/cjs/VideoSeriesFilter.js +18 -18
  94. package/dist/cjs/VideoSeriesLandingPage.js +46 -45
  95. package/dist/cjs/VideoSeriesListing.js +78 -77
  96. package/dist/cjs/View.js +261 -255
  97. package/dist/cjs/YahooHero.js +40 -39
  98. package/dist/cjs/YoutubeGroup.js +63 -62
  99. package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
  100. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
  101. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
  102. package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
  103. package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
  104. package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-b6a175bf.js} +7 -7
  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-0a918631.js → extends-1e24fc8d.js} +1 -2
  112. package/dist/cjs/getRelatedArticle.js +443 -28
  113. package/dist/cjs/getRootDocGroup.js +6 -6
  114. package/dist/cjs/getSerializers.js +44 -42
  115. package/dist/cjs/{getTargeting-67f12cd7.js → getTargeting-497b581d.js} +3 -3
  116. package/dist/cjs/getTargeting.js +7 -7
  117. package/dist/cjs/iconBase-68959171.js +0 -3
  118. package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
  119. package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
  120. package/dist/cjs/{index-57d0264f.js → index-4f6e2a09.js} +948 -1747
  121. package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
  122. package/dist/cjs/index-bd6c9f56.js +211 -0
  123. package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
  124. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  125. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  126. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  127. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  128. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  129. package/dist/cjs/index.js +166 -154
  130. package/dist/cjs/{inherits-452ff02c.js → inherits-2eb23889.js} +5 -8
  131. package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
  132. package/dist/cjs/{lodash-fc2922d0.js → lodash-4ef21f0f.js} +72 -23
  133. package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
  134. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  135. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  136. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
  137. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  138. package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
  139. package/dist/cjs/timeDifferenceCalc.js +1 -1
  140. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
  141. package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
  142. package/dist/cjs/urlFor.js +2 -2
  143. package/dist/cjs/util-6f784d85.js +576 -0
  144. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  145. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
  146. package/dist/esm/AD.js +7 -7
  147. package/dist/esm/AD300x250.js +23 -23
  148. package/dist/esm/AD300x250x600.js +23 -23
  149. package/dist/esm/AD728x90.js +26 -26
  150. package/dist/esm/ADFloatingFooter.js +25 -25
  151. package/dist/esm/ADFooter.js +11 -11
  152. package/dist/esm/ADGutter.js +25 -25
  153. package/dist/esm/{ADInfeed-0b552b0a.js → ADInfeed-94817c40.js} +9 -9
  154. package/dist/esm/ADSkyscraper.js +25 -25
  155. package/dist/esm/ADSponsoredResources.js +25 -25
  156. package/dist/esm/ADWebcast.js +25 -25
  157. package/dist/esm/ADWelcome.js +26 -26
  158. package/dist/esm/{ADlgInfeed-49f41f83.js → ADlgInfeed-6124ee3c.js} +8 -8
  159. package/dist/esm/AccordionPanel.js +24 -24
  160. package/dist/esm/AdSlot.js +22 -22
  161. package/dist/esm/AdSlotsProvider.js +12 -12
  162. package/dist/esm/AlphabeticList.js +21 -21
  163. package/dist/esm/ArticleCarousel.js +20 -20
  164. package/dist/esm/ArticleProgramLandingPage.js +53 -51
  165. package/dist/esm/ArticleSeriesLandingPage.js +34 -34
  166. package/dist/esm/ArticleSeriesListing.js +55 -55
  167. package/dist/esm/Auth.js +4211 -0
  168. package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
  169. package/dist/esm/Beam.js +8 -8
  170. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d8cd739c.js} +4 -4
  171. package/dist/esm/Breadcrumbs.js +17 -17
  172. package/dist/esm/CMEDeck.js +78 -78
  173. package/dist/esm/Column1.js +5 -5
  174. package/dist/esm/Column2.js +26 -26
  175. package/dist/esm/Column3.js +47 -47
  176. package/dist/esm/ConferenceArticleCard.js +19 -19
  177. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  178. package/dist/esm/DeckContent.js +75 -75
  179. package/dist/esm/DeckQueue.js +65 -65
  180. package/dist/esm/{Dfp-ebc4b22f.js → Dfp-988dbcaa.js} +21 -21
  181. package/dist/esm/EventsDeck.js +84 -84
  182. package/dist/esm/ExternalResources.js +72 -70
  183. package/dist/esm/Feature.js +18 -18
  184. package/dist/esm/ForbesHero.js +34 -34
  185. package/dist/esm/GridContent.js +139 -139
  186. package/dist/esm/GridHero.js +36 -36
  187. package/dist/esm/GroupDeck.js +46 -46
  188. package/dist/esm/HamMagazine.js +104 -104
  189. package/dist/esm/Header.js +8 -8
  190. package/dist/esm/Hero.js +9 -9
  191. package/dist/esm/HighlightenVideo.js +14 -14
  192. package/dist/esm/HorizontalArticleListing.js +67 -65
  193. package/dist/esm/HorizontalHero.js +21 -21
  194. package/dist/esm/IssueContentDeck.js +49 -49
  195. package/dist/esm/IssueDeck.js +46 -46
  196. package/dist/esm/IssueLanding.js +36 -36
  197. package/dist/esm/LeftNav.js +31 -31
  198. package/dist/esm/MasterDeck.js +63 -63
  199. package/dist/esm/MediaSeriesLanding.js +31 -31
  200. package/dist/esm/NavDvm.js +56 -56
  201. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  202. package/dist/esm/NavMagazine.js +113 -113
  203. package/dist/esm/NavNative.js +99 -99
  204. package/dist/esm/NavNormal.js +35 -35
  205. package/dist/esm/OncliveHero.js +16 -17
  206. package/dist/esm/OncliveLargeHero.js +59 -59
  207. package/dist/esm/PageFilter.js +12 -12
  208. package/dist/esm/PartnerDetailListing.js +107 -95
  209. package/dist/esm/PdfDownload.js +6 -6
  210. package/dist/esm/PopUpModal.js +14 -14
  211. package/dist/esm/PubSection.js +35 -35
  212. package/dist/esm/PubToc.js +12 -12
  213. package/dist/esm/PublicationDeck.js +38 -38
  214. package/dist/esm/PublicationLanding.js +54 -54
  215. package/dist/esm/QueueDeckExpanded.js +271 -271
  216. package/dist/esm/RecentNews.js +20 -20
  217. package/dist/esm/RelatedContent.js +19 -19
  218. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  219. package/dist/esm/RolesDeck.js +13 -13
  220. package/dist/esm/Search.js +12 -12
  221. package/dist/esm/Segment.js +6 -6
  222. package/dist/esm/SeriesListingDeck.js +31 -31
  223. package/dist/esm/{SeriesSlider-9245785f.js → SeriesSlider-6a1081ff.js} +27 -27
  224. package/dist/esm/SetCookie.js +1 -1
  225. package/dist/esm/SideFooter.js +30 -30
  226. package/dist/esm/SocialIcons.js +7 -7
  227. package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
  228. package/dist/esm/SocialShare.js +25 -25
  229. package/dist/esm/TaxonomyCard.js +41 -41
  230. package/dist/esm/TaxonomyDescription.js +48 -46
  231. package/dist/esm/TemplateNormal.js +66 -66
  232. package/dist/esm/ThumbnailCard.js +13 -13
  233. package/dist/esm/Ustream.js +23 -23
  234. package/dist/esm/VerticalHero.js +13 -13
  235. package/dist/esm/VideoProgramLandingPage.js +62 -60
  236. package/dist/esm/VideoSeriesCard.js +24 -24
  237. package/dist/esm/VideoSeriesFilter.js +15 -15
  238. package/dist/esm/VideoSeriesLandingPage.js +38 -38
  239. package/dist/esm/VideoSeriesListing.js +71 -71
  240. package/dist/esm/View.js +241 -239
  241. package/dist/esm/YahooHero.js +34 -34
  242. package/dist/esm/YoutubeGroup.js +46 -46
  243. package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
  244. package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
  245. package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
  246. package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
  247. package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
  248. package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-585841c0.js} +7 -7
  249. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  250. package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
  251. package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
  252. package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
  253. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  254. package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
  255. package/dist/esm/{extends-6f2fcc99.js → extends-31d65aba.js} +2 -2
  256. package/dist/esm/getRelatedArticle.js +443 -28
  257. package/dist/esm/getRootDocGroup.js +6 -6
  258. package/dist/esm/getSerializers.js +44 -42
  259. package/dist/esm/{getTargeting-ed6ebf43.js → getTargeting-2d402d66.js} +2 -2
  260. package/dist/esm/getTargeting.js +7 -7
  261. package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
  262. package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
  263. package/dist/esm/{index-0141b5a9.js → index-761f5e47.js} +874 -1681
  264. package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
  265. package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
  266. package/dist/esm/index-db3bb315.js +207 -0
  267. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  268. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  269. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  270. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  271. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  272. package/dist/esm/index.js +132 -124
  273. package/dist/esm/{inherits-cf8dde54.js → inherits-5906fbea.js} +6 -6
  274. package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
  275. package/dist/esm/{lodash-17fdfebb.js → lodash-ad27652f.js} +72 -23
  276. package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
  277. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  278. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  279. package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
  280. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  281. package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
  282. package/dist/esm/timeDifferenceCalc.js +1 -1
  283. package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
  284. package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
  285. package/dist/esm/urlFor.js +1 -1
  286. package/dist/esm/util-3ab476bf.js +574 -0
  287. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  288. package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
  289. package/package.json +1 -1
  290. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
@@ -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, ...)
@@ -84,4 +84,3 @@ var _extends$1 = _commonjsHelpers.unwrapExports(_extends);
84
84
 
85
85
  exports._Object$assign = _Object$assign;
86
86
  exports._extends = _extends$1;
87
- exports._extends$1 = _extends;
@@ -1,25 +1,438 @@
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-140e5f89.js');
3
+ var asyncToGenerator = require('./asyncToGenerator-b6a175bf.js');
4
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
5
+ var index = require('./index-bd6c9f56.js');
11
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('./_iter-detect-2613ffa1.js');
13
+
14
+ var defaultParseOptions = {
15
+ decodeValues: true,
16
+ map: false,
17
+ silent: false,
18
+ };
19
+
20
+ function isNonEmptyString(str) {
21
+ return typeof str === "string" && !!str.trim();
22
+ }
23
+
24
+ function parseString(setCookieValue, options) {
25
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
26
+ var nameValue = parts.shift().split("=");
27
+ var name = nameValue.shift();
28
+ var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
29
+
30
+ options = options
31
+ ? Object.assign({}, defaultParseOptions, options)
32
+ : defaultParseOptions;
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 '${value}'. Set options.decodeValues to false to disable this feature.`,
39
+ e
40
+ );
41
+ }
42
+
43
+ var cookie = {
44
+ name: name, // grab everything before the first =
45
+ value: value,
46
+ };
47
+
48
+ parts.forEach(function (part) {
49
+ var sides = part.split("=");
50
+ var key = sides.shift().trimLeft().toLowerCase();
51
+ var value = sides.join("=");
52
+ if (key === "expires") {
53
+ cookie.expires = new Date(value);
54
+ } else if (key === "max-age") {
55
+ cookie.maxAge = parseInt(value, 10);
56
+ } else if (key === "secure") {
57
+ cookie.secure = true;
58
+ } else if (key === "httponly") {
59
+ cookie.httpOnly = true;
60
+ } else if (key === "samesite") {
61
+ cookie.sameSite = value;
62
+ } else {
63
+ cookie[key] = value;
64
+ }
65
+ });
66
+
67
+ return cookie;
68
+ }
69
+
70
+ function parse(input, options) {
71
+ options = options
72
+ ? Object.assign({}, defaultParseOptions, options)
73
+ : defaultParseOptions;
74
+
75
+ if (!input) {
76
+ if (!options.map) {
77
+ return [];
78
+ } else {
79
+ return {};
80
+ }
81
+ }
82
+
83
+ if (input.headers && input.headers["set-cookie"]) {
84
+ // fast-path for node.js (which automatically normalizes header names to lower-case
85
+ input = input.headers["set-cookie"];
86
+ } else if (input.headers) {
87
+ // slow-path for other environments - see #25
88
+ var sch =
89
+ input.headers[
90
+ Object.keys(input.headers).find(function (key) {
91
+ return key.toLowerCase() === "set-cookie";
92
+ })
93
+ ];
94
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
95
+ if (!sch && input.headers.cookie && !options.silent) {
96
+ console.warn(
97
+ "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
98
+ );
99
+ }
100
+ input = sch;
101
+ }
102
+ if (!Array.isArray(input)) {
103
+ input = [input];
104
+ }
105
+
106
+ options = options
107
+ ? Object.assign({}, defaultParseOptions, options)
108
+ : defaultParseOptions;
109
+
110
+ if (!options.map) {
111
+ return input.filter(isNonEmptyString).map(function (str) {
112
+ return parseString(str, options);
113
+ });
114
+ } else {
115
+ var cookies = {};
116
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
117
+ var cookie = parseString(str, options);
118
+ cookies[cookie.name] = cookie;
119
+ return cookies;
120
+ }, cookies);
121
+ }
122
+ }
123
+
124
+ /*
125
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
126
+ that are within a single set-cookie field-value, such as in the Expires portion.
127
+
128
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
129
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
130
+ React Native's fetch does this for *every* header, including set-cookie.
131
+
132
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
133
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
134
+ */
135
+ function splitCookiesString(cookiesString) {
136
+ if (Array.isArray(cookiesString)) {
137
+ return cookiesString;
138
+ }
139
+ if (typeof cookiesString !== "string") {
140
+ return [];
141
+ }
142
+
143
+ var cookiesStrings = [];
144
+ var pos = 0;
145
+ var start;
146
+ var ch;
147
+ var lastComma;
148
+ var nextStart;
149
+ var cookiesSeparatorFound;
150
+
151
+ function skipWhitespace() {
152
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
153
+ pos += 1;
154
+ }
155
+ return pos < cookiesString.length;
156
+ }
157
+
158
+ function notSpecialChar() {
159
+ ch = cookiesString.charAt(pos);
160
+
161
+ return ch !== "=" && ch !== ";" && ch !== ",";
162
+ }
163
+
164
+ while (pos < cookiesString.length) {
165
+ start = pos;
166
+ cookiesSeparatorFound = false;
167
+
168
+ while (skipWhitespace()) {
169
+ ch = cookiesString.charAt(pos);
170
+ if (ch === ",") {
171
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
172
+ lastComma = pos;
173
+ pos += 1;
174
+
175
+ skipWhitespace();
176
+ nextStart = pos;
177
+
178
+ while (pos < cookiesString.length && notSpecialChar()) {
179
+ pos += 1;
180
+ }
181
+
182
+ // currently special character
183
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
184
+ // we found cookies separator
185
+ cookiesSeparatorFound = true;
186
+ // pos is inside the next cookie, so back up and return it.
187
+ pos = nextStart;
188
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
189
+ start = pos;
190
+ } else {
191
+ // in param ',' or param separator ';',
192
+ // we continue from that comma
193
+ pos = lastComma + 1;
194
+ }
195
+ } else {
196
+ pos += 1;
197
+ }
198
+ }
199
+
200
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
201
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
202
+ }
203
+ }
204
+
205
+ return cookiesStrings;
206
+ }
207
+
208
+ var setCookie = parse;
209
+ var parse_1 = parse;
210
+ var parseString_1 = parseString;
211
+ var splitCookiesString_1 = splitCookiesString;
212
+ setCookie.parse = parse_1;
213
+ setCookie.parseString = parseString_1;
214
+ setCookie.splitCookiesString = splitCookiesString_1;
215
+
216
+ var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
217
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
218
+ __assign = Object.assign || function(t) {
219
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
220
+ s = arguments[i];
221
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
222
+ t[p] = s[p];
223
+ }
224
+ return t;
225
+ };
226
+ return __assign.apply(this, arguments);
227
+ };
228
+ Object.defineProperty(exports, "__esModule", { value: true });
229
+ exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
230
+ /**
231
+ * Tells whether we are in a browser or server.
232
+ */
233
+ function isBrowser() {
234
+ return typeof window !== 'undefined';
235
+ }
236
+ exports.isBrowser = isBrowser;
237
+ /**
238
+ * Create an instance of the Cookie interface
239
+ */
240
+ function createCookie(name, value, options) {
241
+ var sameSite = options.sameSite;
242
+ if (sameSite === true) {
243
+ sameSite = 'strict';
244
+ }
245
+ if (sameSite === undefined || sameSite === false) {
246
+ sameSite = 'lax';
247
+ }
248
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
249
+ delete cookieToSet.encode;
250
+ return __assign({ name: name, value: value }, cookieToSet);
251
+ }
252
+ exports.createCookie = createCookie;
253
+ /**
254
+ * Tells whether given objects have the same properties.
255
+ */
256
+ function hasSameProperties(a, b) {
257
+ var aProps = Object.getOwnPropertyNames(a);
258
+ var bProps = Object.getOwnPropertyNames(b);
259
+ if (aProps.length !== bProps.length) {
260
+ return false;
261
+ }
262
+ for (var i = 0; i < aProps.length; i++) {
263
+ var propName = aProps[i];
264
+ if (a[propName] !== b[propName]) {
265
+ return false;
266
+ }
267
+ }
268
+ return true;
269
+ }
270
+ exports.hasSameProperties = hasSameProperties;
271
+ /**
272
+ * Compare the cookie and return true if the cookies have equivalent
273
+ * options and the cookies would be overwritten in the browser storage.
274
+ *
275
+ * @param a first Cookie for comparison
276
+ * @param b second Cookie for comparison
277
+ */
278
+ function areCookiesEqual(a, b) {
279
+ var sameSiteSame = a.sameSite === b.sameSite;
280
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
281
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
282
+ }
283
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
284
+ }
285
+ exports.areCookiesEqual = areCookiesEqual;
286
+ /* Functions */
287
+
288
+ });
289
+
290
+ _commonjsHelpers.unwrapExports(utils);
291
+ utils.areCookiesEqual;
292
+ utils.hasSameProperties;
293
+ utils.createCookie;
294
+ utils.isBrowser;
295
+
296
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
297
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
298
+ __assign = Object.assign || function(t) {
299
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
300
+ s = arguments[i];
301
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
302
+ t[p] = s[p];
303
+ }
304
+ return t;
305
+ };
306
+ return __assign.apply(this, arguments);
307
+ };
308
+ Object.defineProperty(exports, "__esModule", { value: true });
309
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
310
+
311
+
312
+
313
+ /**
314
+ * Parses cookies.
315
+ *
316
+ * @param ctx NextJS page or API context, express context, null or undefined.
317
+ * @param options Options that we pass down to `cookie` library.
318
+ */
319
+ function parseCookies(ctx, options) {
320
+ var _a, _b;
321
+ if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
322
+ return index.cookie.parse(ctx.req.headers.cookie, options);
323
+ }
324
+ if (utils.isBrowser()) {
325
+ return index.cookie.parse(document.cookie, options);
326
+ }
327
+ return {};
328
+ }
329
+ exports.parseCookies = parseCookies;
330
+ /**
331
+ * Sets a cookie.
332
+ *
333
+ * @param ctx NextJS page or API context, express context, null or undefined.
334
+ * @param name The name of your cookie.
335
+ * @param value The value of your cookie.
336
+ * @param options Options that we pass down to `cookie` library.
337
+ */
338
+ function setCookie$1(ctx, name, value, options) {
339
+ var _a, _b;
340
+ if (options === void 0) { options = {}; }
341
+ // SSR
342
+ if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
343
+ // Check if response has finished and warn about it.
344
+ if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
345
+ console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
346
+ console.warn("You should set cookie before res.send()");
347
+ return {};
348
+ }
349
+ /**
350
+ * Load existing cookies from the header and parse them.
351
+ */
352
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
353
+ if (typeof cookies === 'string')
354
+ cookies = [cookies];
355
+ if (typeof cookies === 'number')
356
+ cookies = [];
357
+ /**
358
+ * Parse cookies but ignore values - we've already encoded
359
+ * them in the previous call.
360
+ */
361
+ var parsedCookies = setCookie.parse(cookies, {
362
+ decodeValues: false,
363
+ });
364
+ /**
365
+ * We create the new cookie and make sure that none of
366
+ * the existing cookies match it.
367
+ */
368
+ var newCookie_1 = utils.createCookie(name, value, options);
369
+ var cookiesToSet_1 = [];
370
+ parsedCookies.forEach(function (parsedCookie) {
371
+ if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
372
+ /**
373
+ * We serialize the cookie back to the original format
374
+ * if it isn't the same as the new one.
375
+ */
376
+ var serializedCookie = index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
377
+ // we prevent reencoding by default, but you might override it
378
+ encode: function (val) { return val; } }, parsedCookie));
379
+ cookiesToSet_1.push(serializedCookie);
380
+ }
381
+ });
382
+ cookiesToSet_1.push(index.cookie.serialize(name, value, options));
383
+ // Update the header.
384
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
385
+ }
386
+ // Browser
387
+ if (utils.isBrowser()) {
388
+ if (options && options.httpOnly) {
389
+ throw new Error('Can not set a httpOnly cookie in the browser.');
390
+ }
391
+ document.cookie = index.cookie.serialize(name, value, options);
392
+ }
393
+ return {};
394
+ }
395
+ exports.setCookie = setCookie$1;
396
+ /**
397
+ * Destroys a cookie with a particular name.
398
+ *
399
+ * @param ctx NextJS page or API context, express context, null or undefined.
400
+ * @param name Cookie name.
401
+ * @param options Options that we pass down to `cookie` library.
402
+ */
403
+ function destroyCookie(ctx, name, options) {
404
+ /**
405
+ * We forward the request destroy to setCookie function
406
+ * as it is the same function with modified maxAge value.
407
+ */
408
+ return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
409
+ }
410
+ exports.destroyCookie = destroyCookie;
411
+ /* Utility Exports */
412
+ exports.default = {
413
+ set: setCookie$1,
414
+ get: parseCookies,
415
+ destroy: destroyCookie,
416
+ };
417
+
418
+ });
419
+
420
+ _commonjsHelpers.unwrapExports(dist);
421
+ dist.destroyCookie;
422
+ var dist_2 = dist.setCookie;
423
+ var dist_3 = dist.parseCookies;
12
424
 
13
425
  var _this = undefined;
14
426
 
15
427
  var getRelatedArticle = function () {
16
428
  var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
429
+ var ctx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
17
430
  var client = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
18
431
  var article = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
19
432
  var prevUrl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
20
433
  var articleCount = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
21
434
 
22
- var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters, query;
435
+ var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters, cookies, prevSlugs, query;
23
436
 
24
437
  return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
25
438
  while (1) {
@@ -77,46 +490,48 @@ var getRelatedArticle = function () {
77
490
  articles = null;
78
491
 
79
492
  if (!(references && references.length > 0)) {
80
- _context.next = 23;
493
+ _context.next = 24;
81
494
  break;
82
495
  }
83
496
 
84
497
  filters = '&& references("' + references.join('","') + '") ';
85
498
 
86
- // if (ctx && url) {
87
- // const cookies = parseCookies(ctx)
88
- // let prevSlugs = cookies['prevSlugs']
89
- // if (!!prevSlugs) {
90
- // if (!prevSlugs.includes(url)) setCookie(ctx, 'prevSlugs', `${prevSlugs},"${url}"`, {})
91
- // filters = `${filters} && !(url.current in [${prevSlugs}])`
92
- // } else setCookie(ctx, 'prevSlugs', `"${url}"`, {})
93
- // }
499
+
500
+ if (ctx && url) {
501
+ cookies = dist_3(ctx);
502
+ prevSlugs = cookies['prevSlugs'];
503
+
504
+ if (!!prevSlugs) {
505
+ if (!prevSlugs.includes(url)) dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
506
+ filters = filters + ' && !(url.current in [' + prevSlugs + '])';
507
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
508
+ }
94
509
 
95
510
  query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
96
- _context.prev = 14;
97
- _context.next = 17;
511
+ _context.prev = 15;
512
+ _context.next = 18;
98
513
  return client.fetch(query, params);
99
514
 
100
- case 17:
515
+ case 18:
101
516
  articles = _context.sent;
102
- _context.next = 23;
517
+ _context.next = 24;
103
518
  break;
104
519
 
105
- case 20:
106
- _context.prev = 20;
107
- _context.t0 = _context['catch'](14);
520
+ case 21:
521
+ _context.prev = 21;
522
+ _context.t0 = _context['catch'](15);
108
523
 
109
524
  console.error(_context.t0);
110
525
 
111
- case 23:
526
+ case 24:
112
527
  return _context.abrupt('return', articles);
113
528
 
114
- case 24:
529
+ case 25:
115
530
  case 'end':
116
531
  return _context.stop();
117
532
  }
118
533
  }
119
- }, _callee, _this, [[14, 20]]);
534
+ }, _callee, _this, [[15, 21]]);
120
535
  }));
121
536
 
122
537
  return function getRelatedArticle() {
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
+ var asyncToGenerator = require('./asyncToGenerator-b6a175bf.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-140e5f89.js');
9
+ require('./core.get-iterator-method-b4615fd3.js');
10
+ require('./_iter-detect-2613ffa1.js');
11
11
 
12
12
  var _this = undefined;
13
13