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

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 (292) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +26 -27
  4. package/dist/cjs/AD300x250x600.js +26 -27
  5. package/dist/cjs/AD728x90.js +29 -30
  6. package/dist/cjs/ADFloatingFooter.js +28 -29
  7. package/dist/cjs/ADFooter.js +14 -15
  8. package/dist/cjs/ADGutter.js +28 -29
  9. package/dist/cjs/{ADInfeed-1e53d7db.js → ADInfeed-bb09e44c.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +28 -29
  11. package/dist/cjs/ADSponsoredResources.js +28 -29
  12. package/dist/cjs/ADWebcast.js +28 -29
  13. package/dist/cjs/ADWelcome.js +29 -30
  14. package/dist/cjs/{ADlgInfeed-2494fd17.js → ADlgInfeed-fa91dbda.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +29 -31
  16. package/dist/cjs/AdSlot.js +31 -32
  17. package/dist/cjs/AdSlotsProvider.js +15 -16
  18. package/dist/cjs/AlphabeticList.js +24 -25
  19. package/dist/cjs/ArticleCarousel.js +23 -24
  20. package/dist/cjs/ArticleProgramLandingPage.js +54 -57
  21. package/dist/cjs/ArticleSeriesLandingPage.js +37 -38
  22. package/dist/cjs/ArticleSeriesListing.js +60 -61
  23. package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
  24. package/dist/cjs/Beam.js +8 -8
  25. package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
  26. package/dist/cjs/Breadcrumbs.js +27 -29
  27. package/dist/cjs/CMEDeck.js +82 -82
  28. package/dist/cjs/Column1.js +11 -14
  29. package/dist/cjs/Column2.js +32 -35
  30. package/dist/cjs/Column3.js +54 -57
  31. package/dist/cjs/ConferenceArticleCard.js +23 -24
  32. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  33. package/dist/cjs/DeckContent.js +93 -97
  34. package/dist/cjs/DeckQueue.js +87 -91
  35. package/dist/cjs/{Dfp-a17e00fa.js → Dfp-b807d8fa.js} +31 -32
  36. package/dist/cjs/EventsDeck.js +131 -138
  37. package/dist/cjs/ExternalResources.js +77 -80
  38. package/dist/cjs/Feature.js +25 -27
  39. package/dist/cjs/ForbesHero.js +40 -41
  40. package/dist/cjs/GridContent.js +177 -181
  41. package/dist/cjs/GridHero.js +42 -43
  42. package/dist/cjs/GroupDeck.js +58 -59
  43. package/dist/cjs/HamMagazine.js +130 -135
  44. package/dist/cjs/Header.js +12 -14
  45. package/dist/cjs/Hero.js +12 -13
  46. package/dist/cjs/HighlightenVideo.js +17 -18
  47. package/dist/cjs/HorizontalArticleListing.js +68 -71
  48. package/dist/cjs/HorizontalHero.js +25 -26
  49. package/dist/cjs/IssueContentDeck.js +72 -77
  50. package/dist/cjs/IssueDeck.js +70 -75
  51. package/dist/cjs/IssueLanding.js +39 -40
  52. package/dist/cjs/LeftNav.js +35 -37
  53. package/dist/cjs/MasterDeck.js +69 -70
  54. package/dist/cjs/MediaSeriesLanding.js +38 -40
  55. package/dist/cjs/NavDvm.js +74 -79
  56. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  57. package/dist/cjs/NavMagazine.js +137 -142
  58. package/dist/cjs/NavNative.js +126 -134
  59. package/dist/cjs/NavNormal.js +47 -52
  60. package/dist/cjs/OncliveHero.js +20 -20
  61. package/dist/cjs/OncliveLargeHero.js +66 -67
  62. package/dist/cjs/PageFilter.js +14 -15
  63. package/dist/cjs/PartnerDetailListing.js +99 -112
  64. package/dist/cjs/PdfDownload.js +8 -9
  65. package/dist/cjs/PopUpModal.js +19 -21
  66. package/dist/cjs/PubSection.js +38 -39
  67. package/dist/cjs/PubToc.js +15 -16
  68. package/dist/cjs/PublicationDeck.js +61 -66
  69. package/dist/cjs/PublicationLanding.js +79 -83
  70. package/dist/cjs/QueueDeckExpanded.js +291 -291
  71. package/dist/cjs/RecentNews.js +23 -24
  72. package/dist/cjs/RelatedContent.js +24 -25
  73. package/dist/cjs/RelatedTopicsDropdown.js +19 -22
  74. package/dist/cjs/RolesDeck.js +27 -32
  75. package/dist/cjs/Search.js +18 -22
  76. package/dist/cjs/Segment.js +6 -6
  77. package/dist/cjs/SeriesListingDeck.js +37 -37
  78. package/dist/cjs/{SeriesSlider-193a2958.js → SeriesSlider-f662f1f5.js} +37 -38
  79. package/dist/cjs/SetCookie.js +1 -1
  80. package/dist/cjs/SideFooter.js +34 -35
  81. package/dist/cjs/SocialIcons.js +9 -10
  82. package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
  83. package/dist/cjs/SocialShare.js +29 -31
  84. package/dist/cjs/TaxonomyCard.js +57 -62
  85. package/dist/cjs/TaxonomyDescription.js +51 -54
  86. package/dist/cjs/TemplateNormal.js +72 -73
  87. package/dist/cjs/ThumbnailCard.js +20 -22
  88. package/dist/cjs/Ustream.js +26 -27
  89. package/dist/cjs/VerticalHero.js +17 -18
  90. package/dist/cjs/VideoProgramLandingPage.js +70 -76
  91. package/dist/cjs/VideoSeriesCard.js +31 -32
  92. package/dist/cjs/VideoSeriesFilter.js +18 -18
  93. package/dist/cjs/VideoSeriesLandingPage.js +45 -46
  94. package/dist/cjs/VideoSeriesListing.js +77 -78
  95. package/dist/cjs/View.js +255 -261
  96. package/dist/cjs/YahooHero.js +39 -40
  97. package/dist/cjs/YoutubeGroup.js +62 -63
  98. package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
  99. package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
  100. package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
  101. package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
  102. package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
  103. package/dist/cjs/{asyncToGenerator-b6a175bf.js → asyncToGenerator-140e5f89.js} +7 -7
  104. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  105. package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
  106. package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
  107. package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
  108. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  109. package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
  110. package/dist/cjs/{extends-1e24fc8d.js → extends-0a918631.js} +2 -1
  111. package/dist/cjs/getQuery.js +1 -1
  112. package/dist/cjs/getRelatedArticle.js +28 -443
  113. package/dist/cjs/getRootDocGroup.js +6 -6
  114. package/dist/cjs/getSerializers.js +42 -44
  115. package/dist/cjs/{getTargeting-497b581d.js → getTargeting-67f12cd7.js} +3 -3
  116. package/dist/cjs/getTargeting.js +7 -7
  117. package/dist/cjs/iconBase-68959171.js +3 -0
  118. package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
  119. package/dist/cjs/{index-4f6e2a09.js → index-57d0264f.js} +1747 -948
  120. package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
  121. package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
  122. package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
  123. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  124. package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
  125. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
  126. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  127. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  128. package/dist/cjs/index.js +154 -166
  129. package/dist/cjs/{inherits-2eb23889.js → inherits-452ff02c.js} +8 -5
  130. package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
  131. package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
  132. package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
  133. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  134. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  135. package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
  136. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  137. package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
  138. package/dist/cjs/timeDifferenceCalc.js +1 -1
  139. package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
  140. package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
  141. package/dist/cjs/urlFor.js +2 -2
  142. package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
  143. package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
  144. package/dist/esm/AD.js +7 -7
  145. package/dist/esm/AD300x250.js +23 -23
  146. package/dist/esm/AD300x250x600.js +23 -23
  147. package/dist/esm/AD728x90.js +26 -26
  148. package/dist/esm/ADFloatingFooter.js +25 -25
  149. package/dist/esm/ADFooter.js +11 -11
  150. package/dist/esm/ADGutter.js +25 -25
  151. package/dist/esm/{ADInfeed-94817c40.js → ADInfeed-0b552b0a.js} +9 -9
  152. package/dist/esm/ADSkyscraper.js +25 -25
  153. package/dist/esm/ADSponsoredResources.js +25 -25
  154. package/dist/esm/ADWebcast.js +25 -25
  155. package/dist/esm/ADWelcome.js +26 -26
  156. package/dist/esm/{ADlgInfeed-6124ee3c.js → ADlgInfeed-49f41f83.js} +8 -8
  157. package/dist/esm/AccordionPanel.js +24 -24
  158. package/dist/esm/AdSlot.js +22 -22
  159. package/dist/esm/AdSlotsProvider.js +12 -12
  160. package/dist/esm/AlphabeticList.js +21 -21
  161. package/dist/esm/ArticleCarousel.js +20 -20
  162. package/dist/esm/ArticleProgramLandingPage.js +51 -53
  163. package/dist/esm/ArticleSeriesLandingPage.js +34 -34
  164. package/dist/esm/ArticleSeriesListing.js +55 -55
  165. package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
  166. package/dist/esm/Beam.js +8 -8
  167. package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
  168. package/dist/esm/Breadcrumbs.js +17 -17
  169. package/dist/esm/CMEDeck.js +78 -78
  170. package/dist/esm/Column1.js +5 -5
  171. package/dist/esm/Column2.js +26 -26
  172. package/dist/esm/Column3.js +47 -47
  173. package/dist/esm/ConferenceArticleCard.js +19 -19
  174. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  175. package/dist/esm/DeckContent.js +75 -75
  176. package/dist/esm/DeckQueue.js +65 -65
  177. package/dist/esm/{Dfp-988dbcaa.js → Dfp-ebc4b22f.js} +21 -21
  178. package/dist/esm/EventsDeck.js +84 -84
  179. package/dist/esm/ExternalResources.js +70 -72
  180. package/dist/esm/Feature.js +18 -18
  181. package/dist/esm/ForbesHero.js +34 -34
  182. package/dist/esm/GridContent.js +139 -139
  183. package/dist/esm/GridHero.js +36 -36
  184. package/dist/esm/GroupDeck.js +46 -46
  185. package/dist/esm/HamMagazine.js +104 -104
  186. package/dist/esm/Header.js +8 -8
  187. package/dist/esm/Hero.js +9 -9
  188. package/dist/esm/HighlightenVideo.js +14 -14
  189. package/dist/esm/HorizontalArticleListing.js +65 -67
  190. package/dist/esm/HorizontalHero.js +21 -21
  191. package/dist/esm/IssueContentDeck.js +49 -49
  192. package/dist/esm/IssueDeck.js +46 -46
  193. package/dist/esm/IssueLanding.js +36 -36
  194. package/dist/esm/LeftNav.js +31 -31
  195. package/dist/esm/MasterDeck.js +63 -63
  196. package/dist/esm/MediaSeriesLanding.js +31 -31
  197. package/dist/esm/NavDvm.js +56 -56
  198. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  199. package/dist/esm/NavMagazine.js +113 -113
  200. package/dist/esm/NavNative.js +99 -99
  201. package/dist/esm/NavNormal.js +35 -35
  202. package/dist/esm/OncliveHero.js +17 -16
  203. package/dist/esm/OncliveLargeHero.js +59 -59
  204. package/dist/esm/PageFilter.js +12 -12
  205. package/dist/esm/PartnerDetailListing.js +95 -107
  206. package/dist/esm/PdfDownload.js +6 -6
  207. package/dist/esm/PopUpModal.js +14 -14
  208. package/dist/esm/PubSection.js +35 -35
  209. package/dist/esm/PubToc.js +12 -12
  210. package/dist/esm/PublicationDeck.js +38 -38
  211. package/dist/esm/PublicationLanding.js +54 -54
  212. package/dist/esm/QueueDeckExpanded.js +271 -271
  213. package/dist/esm/RecentNews.js +20 -20
  214. package/dist/esm/RelatedContent.js +19 -19
  215. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  216. package/dist/esm/RolesDeck.js +13 -13
  217. package/dist/esm/Search.js +12 -12
  218. package/dist/esm/Segment.js +6 -6
  219. package/dist/esm/SeriesListingDeck.js +31 -31
  220. package/dist/esm/{SeriesSlider-6a1081ff.js → SeriesSlider-9245785f.js} +27 -27
  221. package/dist/esm/SetCookie.js +1 -1
  222. package/dist/esm/SideFooter.js +30 -30
  223. package/dist/esm/SocialIcons.js +7 -7
  224. package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
  225. package/dist/esm/SocialShare.js +25 -25
  226. package/dist/esm/TaxonomyCard.js +41 -41
  227. package/dist/esm/TaxonomyDescription.js +46 -48
  228. package/dist/esm/TemplateNormal.js +66 -66
  229. package/dist/esm/ThumbnailCard.js +13 -13
  230. package/dist/esm/Ustream.js +23 -23
  231. package/dist/esm/VerticalHero.js +13 -13
  232. package/dist/esm/VideoProgramLandingPage.js +60 -62
  233. package/dist/esm/VideoSeriesCard.js +24 -24
  234. package/dist/esm/VideoSeriesFilter.js +15 -15
  235. package/dist/esm/VideoSeriesLandingPage.js +38 -38
  236. package/dist/esm/VideoSeriesListing.js +71 -71
  237. package/dist/esm/View.js +239 -241
  238. package/dist/esm/YahooHero.js +34 -34
  239. package/dist/esm/YoutubeGroup.js +46 -46
  240. package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
  241. package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
  242. package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
  243. package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
  244. package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
  245. package/dist/esm/{asyncToGenerator-585841c0.js → asyncToGenerator-fc1c2e29.js} +7 -7
  246. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
  247. package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
  248. package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
  249. package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
  250. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  251. package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
  252. package/dist/esm/{extends-31d65aba.js → extends-6f2fcc99.js} +2 -2
  253. package/dist/esm/getQuery.js +1 -1
  254. package/dist/esm/getRelatedArticle.js +28 -443
  255. package/dist/esm/getRootDocGroup.js +6 -6
  256. package/dist/esm/getSerializers.js +42 -44
  257. package/dist/esm/{getTargeting-2d402d66.js → getTargeting-ed6ebf43.js} +2 -2
  258. package/dist/esm/getTargeting.js +7 -7
  259. package/dist/esm/{index-761f5e47.js → index-0141b5a9.js} +1681 -874
  260. package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
  261. package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
  262. package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
  263. package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
  264. package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
  265. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  266. package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
  267. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  268. package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
  269. package/dist/esm/index.js +124 -132
  270. package/dist/esm/{inherits-5906fbea.js → inherits-cf8dde54.js} +6 -6
  271. package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
  272. package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
  273. package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
  274. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  275. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
  276. package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
  277. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  278. package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
  279. package/dist/esm/timeDifferenceCalc.js +1 -1
  280. package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
  281. package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
  282. package/dist/esm/urlFor.js +1 -1
  283. package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
  284. package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
  285. package/package.json +3 -3
  286. package/dist/cjs/Auth.js +0 -4231
  287. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  288. package/dist/cjs/index-bd6c9f56.js +0 -211
  289. package/dist/cjs/util-6f784d85.js +0 -576
  290. package/dist/esm/Auth.js +0 -4211
  291. package/dist/esm/index-db3bb315.js +0 -207
  292. package/dist/esm/util-3ab476bf.js +0 -574
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var _toObject = require('./_to-object-821a2927.js');
4
+ var _toObject = require('./_to-object-329a650b.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-aff11f8a.js');
4
+ var defineProperty$1 = require('./define-property-f4d12f4e.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');
4
3
  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-821a2927.js');
4
+ var _toObject = require('./_to-object-329a650b.js');
5
5
  var _objectPie = require('./_object-pie-68c5bcbc.js');
6
6
 
7
7
  // 19.1.2.1 Object.assign(target, source, ...)
@@ -84,3 +84,4 @@ 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;
@@ -12,7 +12,7 @@ var getQuery = function getQuery(type) {
12
12
  case 'related':
13
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 },\n body[] {\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 },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\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 }';
14
14
  case 'article':
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 }';
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 },\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
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,438 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var asyncToGenerator = require('./asyncToGenerator-b6a175bf.js');
4
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
5
- var index = require('./index-bd6c9f56.js');
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');
3
+ require('./_commonjsHelpers-06173234.js');
4
+ require('./_to-object-329a650b.js');
5
+ require('./es6.string.iterator-cc0bbaa4.js');
10
6
  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;
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
+ var getQuery = require('./getQuery.js');
424
12
 
425
13
  var _this = undefined;
426
14
 
427
15
  var getRelatedArticle = function () {
428
16
  var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
429
- var ctx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
430
17
  var client = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
431
18
  var article = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
432
19
  var prevUrl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
433
20
  var articleCount = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
434
21
 
435
- var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters, cookies, prevSlugs, query;
22
+ var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters, query;
436
23
 
437
24
  return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
438
25
  while (1) {
@@ -490,48 +77,46 @@ var getRelatedArticle = function () {
490
77
  articles = null;
491
78
 
492
79
  if (!(references && references.length > 0)) {
493
- _context.next = 24;
80
+ _context.next = 23;
494
81
  break;
495
82
  }
496
83
 
497
84
  filters = '&& references("' + references.join('","') + '") ';
498
85
 
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
- }
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
+ // }
509
94
 
510
95
  query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
511
- _context.prev = 15;
512
- _context.next = 18;
96
+ _context.prev = 14;
97
+ _context.next = 17;
513
98
  return client.fetch(query, params);
514
99
 
515
- case 18:
100
+ case 17:
516
101
  articles = _context.sent;
517
- _context.next = 24;
102
+ _context.next = 23;
518
103
  break;
519
104
 
520
- case 21:
521
- _context.prev = 21;
522
- _context.t0 = _context['catch'](15);
105
+ case 20:
106
+ _context.prev = 20;
107
+ _context.t0 = _context['catch'](14);
523
108
 
524
109
  console.error(_context.t0);
525
110
 
526
- case 24:
111
+ case 23:
527
112
  return _context.abrupt('return', articles);
528
113
 
529
- case 25:
114
+ case 24:
530
115
  case 'end':
531
116
  return _context.stop();
532
117
  }
533
118
  }
534
- }, _callee, _this, [[15, 21]]);
119
+ }, _callee, _this, [[14, 20]]);
535
120
  }));
536
121
 
537
122
  return function getRelatedArticle() {
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var asyncToGenerator = require('./asyncToGenerator-b6a175bf.js');
4
3
  require('./_commonjsHelpers-06173234.js');
5
- require('./es6.string.iterator-20d42c53.js');
6
- require('./_to-object-821a2927.js');
7
- require('./web.dom.iterable-4480325a.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-b4615fd3.js');
10
- require('./_iter-detect-2613ffa1.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