@mjhls/mjh-framework 1.0.108 → 1.0.109-8.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 (370) hide show
  1. package/README.md +1 -5
  2. package/dist/cjs/AD.js +32 -0
  3. package/dist/cjs/AD300x250.js +95 -0
  4. package/dist/cjs/AD300x250x600.js +112 -0
  5. package/dist/cjs/AD728x90.js +109 -0
  6. package/dist/cjs/ADFloatingFooter.js +151 -0
  7. package/dist/cjs/ADFooter.js +53 -0
  8. package/dist/cjs/ADGutter.js +123 -0
  9. package/dist/cjs/ADInfeed-7c075eda.js +75 -0
  10. package/dist/cjs/ADSkyscraper.js +125 -0
  11. package/dist/cjs/ADSponsoredResources.js +122 -0
  12. package/dist/cjs/ADWebcast.js +127 -0
  13. package/dist/cjs/ADWelcome.js +166 -0
  14. package/dist/cjs/ADlgInfeed-d4f556bd.js +69 -0
  15. package/dist/cjs/AccordionPanel.js +94 -0
  16. package/dist/cjs/AdSlot.js +283 -0
  17. package/dist/cjs/AdSlotsProvider.js +184 -0
  18. package/dist/cjs/AlgoliaSearch.js +15221 -0
  19. package/dist/cjs/AlphabeticList.js +134 -0
  20. package/dist/cjs/ArticleCarousel.js +45 -0
  21. package/dist/cjs/ArticleProgramLandingPage.js +186 -0
  22. package/dist/cjs/ArticleSeriesLandingPage.js +162 -0
  23. package/dist/cjs/ArticleSeriesListing.js +314 -0
  24. package/dist/cjs/AuthWrapper.js +1526 -0
  25. package/dist/cjs/AuthorComponent-7d00f6d5.js +96 -0
  26. package/dist/cjs/Beam.js +405 -0
  27. package/dist/cjs/BlockContent-96b44364.js +916 -0
  28. package/dist/cjs/Breadcrumbs.js +107 -0
  29. package/dist/cjs/CEDeckSupabase.js +444 -0
  30. package/dist/cjs/CMEDeck.js +444 -0
  31. package/dist/cjs/Column1.js +36 -0
  32. package/dist/cjs/Column2.js +73 -0
  33. package/dist/cjs/Column3.js +140 -0
  34. package/dist/cjs/ConferenceArticleCard.js +94 -0
  35. package/dist/cjs/ConferenceBanner-213003ce.js +24 -0
  36. package/dist/cjs/ContentCardPaginated.js +416 -0
  37. package/dist/cjs/DeckContent.js +507 -0
  38. package/dist/cjs/DeckQueue.js +402 -0
  39. package/dist/cjs/DeckQueuePaginated.js +347 -0
  40. package/dist/cjs/Dfp-67646058.js +103 -0
  41. package/dist/cjs/EventsDeck.js +856 -0
  42. package/dist/cjs/ExternalResources.js +220 -0
  43. package/dist/cjs/Feature.js +132 -0
  44. package/dist/cjs/ForbesHero.js +138 -0
  45. package/dist/cjs/GridContent.js +828 -0
  46. package/dist/cjs/GridContentPaginated.js +703 -0
  47. package/dist/cjs/GridHero.js +148 -0
  48. package/dist/cjs/GroupDeck.js +314 -0
  49. package/dist/cjs/HamMagazine.js +664 -0
  50. package/dist/cjs/Header.js +65 -0
  51. package/dist/cjs/HealthCareProfessionalModal.js +78 -0
  52. package/dist/cjs/Hero.js +49 -0
  53. package/dist/cjs/HighlightenVideo.js +69 -0
  54. package/dist/cjs/HorizontalArticleListing.js +167 -0
  55. package/dist/cjs/HorizontalHero.js +112 -0
  56. package/dist/cjs/ImageSlider-7c995858.js +2808 -0
  57. package/dist/cjs/IssueContentDeck.js +242 -0
  58. package/dist/cjs/IssueDeck.js +267 -0
  59. package/dist/cjs/IssueLanding.js +176 -0
  60. package/dist/cjs/KMTracker.js +27 -0
  61. package/dist/cjs/LeftNav.js +153 -0
  62. package/dist/cjs/MasterDeck.js +555 -0
  63. package/dist/cjs/MasterDeckPaginated.js +468 -0
  64. package/dist/cjs/MediaSeriesCard.js +134 -0
  65. package/dist/cjs/MediaSeriesLanding.js +507 -0
  66. package/dist/cjs/MediaSeriesLandingPaginated.js +532 -0
  67. package/dist/cjs/NavDvm.js +278 -0
  68. package/dist/cjs/NavFooter-b7b16d48.js +72 -0
  69. package/dist/cjs/NavMagazine.js +615 -0
  70. package/dist/cjs/NavNative.js +880 -0
  71. package/dist/cjs/OncliveHero.js +80 -0
  72. package/dist/cjs/OncliveLargeHero.js +242 -0
  73. package/dist/cjs/PageFilter.js +72 -0
  74. package/dist/cjs/Pagination-6359861a.js +97 -0
  75. package/dist/cjs/PartnerDetailListing.js +374 -0
  76. package/dist/cjs/PartnerDetailListingPaginated.js +365 -0
  77. package/dist/cjs/PdfDownload.js +28 -0
  78. package/dist/cjs/PixelTracking.js +191 -0
  79. package/dist/cjs/PodcastsLanding.js +234 -0
  80. package/dist/cjs/PopUpModal.js +58 -0
  81. package/dist/cjs/PtceDeck.js +150 -0
  82. package/dist/cjs/PubSection.js +120 -0
  83. package/dist/cjs/PubToc.js +88 -0
  84. package/dist/cjs/PublicationDeck.js +184 -0
  85. package/dist/cjs/PublicationFeature-4b68e0db.js +130 -0
  86. package/dist/cjs/PublicationLanding.js +826 -0
  87. package/dist/cjs/QueueDeckExpanded.js +1540 -0
  88. package/dist/cjs/QueueDeckExpandedPaginated.js +1387 -0
  89. package/dist/cjs/RecentNews.js +91 -0
  90. package/dist/cjs/RelatedContent.js +115 -0
  91. package/dist/cjs/RelatedTopicsDropdown.js +90 -0
  92. package/dist/cjs/RolesDeck.js +94 -0
  93. package/dist/cjs/Schema.js +102 -0
  94. package/dist/cjs/Search.js +66 -0
  95. package/dist/cjs/Segment.js +458 -0
  96. package/dist/cjs/SeriesListingDeck.js +247 -0
  97. package/dist/cjs/SeriesSlider-086a8319.js +332 -0
  98. package/dist/cjs/SetCookie.js +10 -0
  99. package/dist/cjs/SideFooter.js +152 -0
  100. package/dist/cjs/SocialIcons.js +103 -0
  101. package/dist/cjs/SocialSearchComponent-d7e5d3a6.js +213 -0
  102. package/dist/cjs/SocialShare.js +74 -0
  103. package/dist/cjs/TaxonomyCard.js +256 -0
  104. package/dist/cjs/TaxonomyDescription.js +208 -0
  105. package/dist/cjs/TemplateNormal.js +204 -0
  106. package/dist/cjs/ThumbnailCard.js +60 -0
  107. package/dist/cjs/Tooltip-b8516cbf.js +9541 -0
  108. package/dist/cjs/Ustream.js +157 -0
  109. package/dist/cjs/VerticalHero.js +75 -0
  110. package/dist/cjs/VideoProgramLandingPage.js +262 -0
  111. package/dist/cjs/VideoSeriesCard.js +88 -0
  112. package/dist/cjs/VideoSeriesFilter.js +129 -0
  113. package/dist/cjs/VideoSeriesLandingPage.js +178 -0
  114. package/dist/cjs/VideoSeriesListing.js +421 -0
  115. package/dist/cjs/View.js +2841 -0
  116. package/dist/cjs/YahooHero.js +127 -0
  117. package/dist/cjs/YoutubeGroup.js +372 -0
  118. package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
  119. package/dist/cjs/_is-array-54228b29.js +74 -0
  120. package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
  121. package/dist/cjs/_library-dd23b178.js +5 -0
  122. package/dist/cjs/_object-sap-d1978572.js +16 -0
  123. package/dist/cjs/_object-to-array-9337ba83.js +25 -0
  124. package/dist/cjs/_set-species-0c7864a2.js +55 -0
  125. package/dist/cjs/asyncToGenerator-65df6bf8.js +1347 -0
  126. package/dist/cjs/brightcove-react-player-loader.es-35faab67.js +2232 -0
  127. package/dist/cjs/checkSisterSite-c3a4ac98.js +19 -0
  128. package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
  129. package/dist/cjs/debounce-d4a2369b.js +216 -0
  130. package/dist/cjs/define-property-e8404b64.js +20 -0
  131. package/dist/cjs/defineProperty-19580e93.js +71 -0
  132. package/dist/cjs/defineProperty-9673846a.js +34 -0
  133. package/dist/cjs/entities-df1aed86.js +510 -0
  134. package/dist/cjs/eq-5fc26c07.js +79 -0
  135. package/dist/cjs/extends-be0d85bc.js +100 -0
  136. package/dist/cjs/faundadb.js +765 -0
  137. package/dist/cjs/get-5839e5b5.js +920 -0
  138. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  139. package/dist/cjs/getKeywords.js +46 -0
  140. package/dist/cjs/getPtceActivities.js +90 -0
  141. package/dist/cjs/getQuery.js +27 -0
  142. package/dist/cjs/getRelatedArticle.js +766 -0
  143. package/dist/cjs/getRootDocGroup.js +63 -0
  144. package/dist/cjs/getSerializers.js +66 -0
  145. package/dist/cjs/getSeriesDetail.js +40 -0
  146. package/dist/cjs/getTIData.js +93 -0
  147. package/dist/cjs/getTargeting-7ce7037b.js +166 -0
  148. package/dist/cjs/getTargeting.js +12 -0
  149. package/dist/cjs/iconBase-be4097c0.js +104 -0
  150. package/dist/cjs/index-187c967e.js +54 -0
  151. package/dist/cjs/index-3177f564.js +1573 -0
  152. package/dist/cjs/index-65621b6c.js +613 -0
  153. package/dist/cjs/index-7435b964.js +1683 -0
  154. package/dist/cjs/index-a26637a3.js +11764 -0
  155. package/dist/cjs/index-d48b231c.js +556 -0
  156. package/dist/cjs/index-ff83a88b.js +104 -0
  157. package/dist/cjs/index.es-1ab8dda7.js +445 -0
  158. package/dist/cjs/index.esm-2ea9e9ff.js +98 -0
  159. package/dist/cjs/index.esm-c1e16606.js +13 -0
  160. package/dist/cjs/index.esm-d51c9ac6.js +25 -0
  161. package/dist/cjs/index.esm-d81454e7.js +19 -0
  162. package/dist/cjs/index.js +638 -0
  163. package/dist/cjs/inherits-e47b5342.js +188 -0
  164. package/dist/cjs/isSymbol-03abbdf0.js +209 -0
  165. package/dist/cjs/js.cookie-a511c430.js +160 -0
  166. package/dist/cjs/keys-e982b3fa.js +25 -0
  167. package/dist/cjs/lodash-f0783643.js +17195 -0
  168. package/dist/cjs/main-ae8472f3.js +969 -0
  169. package/dist/cjs/moment-f730814d.js +5684 -0
  170. package/dist/cjs/react-social-icons-2c5c389a.js +616 -0
  171. package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
  172. package/dist/cjs/smoothscroll-99df7f93.js +438 -0
  173. package/dist/cjs/stringify-f7a37a8d.js +17 -0
  174. package/dist/cjs/style-inject.es-dcee06b6.js +30 -0
  175. package/dist/cjs/timeDifferenceCalc.js +39 -0
  176. package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
  177. package/dist/cjs/toNumber-5e1fac58.js +104 -0
  178. package/dist/cjs/typeof-220bbf73.js +382 -0
  179. package/dist/cjs/urlFor.js +66 -0
  180. package/dist/cjs/urlForFile-5084fc48.js +29 -0
  181. package/dist/cjs/ustream-api-3819e4aa.js +106 -0
  182. package/dist/cjs/visibility-sensor-56020df6.js +597 -0
  183. package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
  184. package/dist/esm/AD.js +26 -0
  185. package/dist/esm/AD300x250.js +89 -0
  186. package/dist/esm/AD300x250x600.js +106 -0
  187. package/dist/esm/AD728x90.js +103 -0
  188. package/dist/esm/ADFloatingFooter.js +145 -0
  189. package/dist/esm/ADFooter.js +47 -0
  190. package/dist/esm/ADGutter.js +117 -0
  191. package/dist/esm/ADInfeed-3442c999.js +68 -0
  192. package/dist/esm/ADSkyscraper.js +119 -0
  193. package/dist/esm/ADSponsoredResources.js +116 -0
  194. package/dist/esm/ADWebcast.js +121 -0
  195. package/dist/esm/ADWelcome.js +160 -0
  196. package/dist/esm/ADlgInfeed-30649360.js +63 -0
  197. package/dist/esm/AccordionPanel.js +87 -0
  198. package/dist/esm/AdSlot.js +276 -0
  199. package/dist/esm/AdSlotsProvider.js +177 -0
  200. package/dist/esm/AlgoliaSearch.js +15214 -0
  201. package/dist/esm/AlphabeticList.js +128 -0
  202. package/dist/esm/ArticleCarousel.js +39 -0
  203. package/dist/esm/ArticleProgramLandingPage.js +180 -0
  204. package/dist/esm/ArticleSeriesLandingPage.js +156 -0
  205. package/dist/esm/ArticleSeriesListing.js +307 -0
  206. package/dist/esm/AuthWrapper.js +1520 -0
  207. package/dist/esm/AuthorComponent-d9653ae5.js +90 -0
  208. package/dist/esm/Beam.js +403 -0
  209. package/dist/esm/BlockContent-1e73bd2c.js +909 -0
  210. package/dist/esm/Breadcrumbs.js +100 -0
  211. package/dist/esm/CEDeckSupabase.js +438 -0
  212. package/dist/esm/CMEDeck.js +438 -0
  213. package/dist/esm/Column1.js +28 -0
  214. package/dist/esm/Column2.js +65 -0
  215. package/dist/esm/Column3.js +132 -0
  216. package/dist/esm/ConferenceArticleCard.js +88 -0
  217. package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
  218. package/dist/esm/ContentCardPaginated.js +405 -0
  219. package/dist/esm/DeckContent.js +497 -0
  220. package/dist/esm/DeckQueue.js +392 -0
  221. package/dist/esm/DeckQueuePaginated.js +336 -0
  222. package/dist/esm/Dfp-3b6eb620.js +96 -0
  223. package/dist/esm/EventsDeck.js +843 -0
  224. package/dist/esm/ExternalResources.js +213 -0
  225. package/dist/esm/Feature.js +125 -0
  226. package/dist/esm/ForbesHero.js +132 -0
  227. package/dist/esm/GridContent.js +818 -0
  228. package/dist/esm/GridContentPaginated.js +692 -0
  229. package/dist/esm/GridHero.js +142 -0
  230. package/dist/esm/GroupDeck.js +308 -0
  231. package/dist/esm/HamMagazine.js +651 -0
  232. package/dist/esm/Header.js +54 -0
  233. package/dist/esm/HealthCareProfessionalModal.js +70 -0
  234. package/dist/esm/Hero.js +43 -0
  235. package/dist/esm/HighlightenVideo.js +63 -0
  236. package/dist/esm/HorizontalArticleListing.js +161 -0
  237. package/dist/esm/HorizontalHero.js +106 -0
  238. package/dist/esm/ImageSlider-75f7b81a.js +2799 -0
  239. package/dist/esm/IssueContentDeck.js +232 -0
  240. package/dist/esm/IssueDeck.js +257 -0
  241. package/dist/esm/IssueLanding.js +170 -0
  242. package/dist/esm/KMTracker.js +25 -0
  243. package/dist/esm/LeftNav.js +143 -0
  244. package/dist/esm/MasterDeck.js +548 -0
  245. package/dist/esm/MasterDeckPaginated.js +460 -0
  246. package/dist/esm/MediaSeriesCard.js +128 -0
  247. package/dist/esm/MediaSeriesLanding.js +500 -0
  248. package/dist/esm/MediaSeriesLandingPaginated.js +525 -0
  249. package/dist/esm/NavDvm.js +265 -0
  250. package/dist/esm/NavFooter-4bcffccb.js +66 -0
  251. package/dist/esm/NavMagazine.js +602 -0
  252. package/dist/esm/NavNative.js +864 -0
  253. package/dist/esm/OncliveHero.js +74 -0
  254. package/dist/esm/OncliveLargeHero.js +236 -0
  255. package/dist/esm/PageFilter.js +66 -0
  256. package/dist/esm/Pagination-9fe9f61d.js +90 -0
  257. package/dist/esm/PartnerDetailListing.js +368 -0
  258. package/dist/esm/PartnerDetailListingPaginated.js +359 -0
  259. package/dist/esm/PdfDownload.js +22 -0
  260. package/dist/esm/PixelTracking.js +182 -0
  261. package/dist/esm/PodcastsLanding.js +227 -0
  262. package/dist/esm/PopUpModal.js +51 -0
  263. package/dist/esm/PtceDeck.js +144 -0
  264. package/dist/esm/PubSection.js +114 -0
  265. package/dist/esm/PubToc.js +82 -0
  266. package/dist/esm/PublicationDeck.js +174 -0
  267. package/dist/esm/PublicationFeature-6c334891.js +121 -0
  268. package/dist/esm/PublicationLanding.js +816 -0
  269. package/dist/esm/QueueDeckExpanded.js +1534 -0
  270. package/dist/esm/QueueDeckExpandedPaginated.js +1381 -0
  271. package/dist/esm/RecentNews.js +85 -0
  272. package/dist/esm/RelatedContent.js +109 -0
  273. package/dist/esm/RelatedTopicsDropdown.js +82 -0
  274. package/dist/esm/RolesDeck.js +84 -0
  275. package/dist/esm/Schema.js +96 -0
  276. package/dist/esm/Search.js +57 -0
  277. package/dist/esm/Segment.js +456 -0
  278. package/dist/esm/SeriesListingDeck.js +241 -0
  279. package/dist/esm/SeriesSlider-acbdf4c9.js +326 -0
  280. package/dist/esm/SetCookie.js +8 -0
  281. package/dist/esm/SideFooter.js +146 -0
  282. package/dist/esm/SocialIcons.js +97 -0
  283. package/dist/esm/SocialSearchComponent-9e65c8d6.js +204 -0
  284. package/dist/esm/SocialShare.js +67 -0
  285. package/dist/esm/TaxonomyCard.js +246 -0
  286. package/dist/esm/TaxonomyDescription.js +201 -0
  287. package/dist/esm/TemplateNormal.js +197 -0
  288. package/dist/esm/ThumbnailCard.js +53 -0
  289. package/dist/esm/Tooltip-fe0ed92d.js +9532 -0
  290. package/dist/esm/Ustream.js +151 -0
  291. package/dist/esm/VerticalHero.js +69 -0
  292. package/dist/esm/VideoProgramLandingPage.js +253 -0
  293. package/dist/esm/VideoSeriesCard.js +82 -0
  294. package/dist/esm/VideoSeriesFilter.js +123 -0
  295. package/dist/esm/VideoSeriesLandingPage.js +172 -0
  296. package/dist/esm/VideoSeriesListing.js +414 -0
  297. package/dist/esm/View.js +2831 -0
  298. package/dist/esm/YahooHero.js +121 -0
  299. package/dist/esm/YoutubeGroup.js +366 -0
  300. package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
  301. package/dist/esm/_is-array-68c79b29.js +71 -0
  302. package/dist/esm/_iter-detect-2f89237f.js +48 -0
  303. package/dist/esm/_library-528f1934.js +3 -0
  304. package/dist/esm/_object-sap-14bd8e96.js +14 -0
  305. package/dist/esm/_object-to-array-9dfdfb29.js +23 -0
  306. package/dist/esm/_set-species-7d3317b7.js +50 -0
  307. package/dist/esm/asyncToGenerator-1ebeb135.js +1343 -0
  308. package/dist/esm/brightcove-react-player-loader.es-a2422c4b.js +2226 -0
  309. package/dist/esm/checkSisterSite-a7218fda.js +17 -0
  310. package/dist/esm/core.get-iterator-method-95db387d.js +547 -0
  311. package/dist/esm/debounce-533d9748.js +214 -0
  312. package/dist/esm/define-property-433c51d3.js +18 -0
  313. package/dist/esm/defineProperty-e5afb9eb.js +32 -0
  314. package/dist/esm/defineProperty-e8022d1e.js +66 -0
  315. package/dist/esm/entities-6d9154b4.js +507 -0
  316. package/dist/esm/eq-bdcbf886.js +76 -0
  317. package/dist/esm/extends-2f4448b8.js +94 -0
  318. package/dist/esm/faundadb.js +754 -0
  319. package/dist/esm/get-3c308da4.js +918 -0
  320. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  321. package/dist/esm/getKeywords.js +44 -0
  322. package/dist/esm/getPtceActivities.js +88 -0
  323. package/dist/esm/getQuery.js +25 -0
  324. package/dist/esm/getRelatedArticle.js +764 -0
  325. package/dist/esm/getRootDocGroup.js +61 -0
  326. package/dist/esm/getSerializers.js +60 -0
  327. package/dist/esm/getSeriesDetail.js +38 -0
  328. package/dist/esm/getTIData.js +91 -0
  329. package/dist/esm/getTargeting-301942ae.js +163 -0
  330. package/dist/esm/getTargeting.js +6 -0
  331. package/dist/esm/iconBase-ccc56b97.js +81 -0
  332. package/dist/esm/index-3f5c03b2.js +553 -0
  333. package/dist/esm/index-4550ef23.js +1571 -0
  334. package/dist/esm/index-5cc7b406.js +1674 -0
  335. package/dist/esm/index-755f2cc2.js +605 -0
  336. package/dist/esm/index-a68bfe70.js +11743 -0
  337. package/dist/esm/index-c7e2ac95.js +52 -0
  338. package/dist/esm/index-c8d5e72b.js +99 -0
  339. package/dist/esm/index.es-a6137319.js +439 -0
  340. package/dist/esm/index.esm-1bd8a0a8.js +18 -0
  341. package/dist/esm/index.esm-9508070a.js +91 -0
  342. package/dist/esm/index.esm-9b042655.js +10 -0
  343. package/dist/esm/index.esm-eb1e8e80.js +14 -0
  344. package/dist/esm/index.js +531 -0
  345. package/dist/esm/inherits-96c84cbd.js +179 -0
  346. package/dist/esm/isSymbol-a7e9aafe.js +203 -0
  347. package/dist/esm/js.cookie-6874175c.js +158 -0
  348. package/dist/esm/keys-185288f4.js +23 -0
  349. package/dist/esm/lodash-f97fd99a.js +17193 -0
  350. package/dist/esm/main-754d4992.js +956 -0
  351. package/dist/esm/moment-48faeb9c.js +5682 -0
  352. package/dist/esm/react-social-icons-9be47857.js +609 -0
  353. package/dist/esm/slicedToArray-72ed566b.js +92 -0
  354. package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
  355. package/dist/esm/stringify-1e2a5946.js +15 -0
  356. package/dist/esm/style-inject.es-1f59c1d0.js +28 -0
  357. package/dist/esm/timeDifferenceCalc.js +37 -0
  358. package/dist/esm/toConsumableArray-e6f28e5c.js +71 -0
  359. package/dist/esm/toNumber-5aeba6e7.js +102 -0
  360. package/dist/esm/typeof-3ab7d3b6.js +378 -0
  361. package/dist/esm/urlFor.js +64 -0
  362. package/dist/esm/urlForFile-2e523b67.js +27 -0
  363. package/dist/esm/ustream-api-63a164b3.js +104 -0
  364. package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
  365. package/dist/esm/web.dom.iterable-3fffc027.js +48 -0
  366. package/package.json +55 -26
  367. package/dist/index.es.js +0 -20497
  368. package/dist/index.es.js.map +0 -1
  369. package/dist/index.js +0 -20535
  370. package/dist/index.js.map +0 -1
@@ -0,0 +1,766 @@
1
+ 'use strict';
2
+
3
+ var asyncToGenerator = require('./asyncToGenerator-65df6bf8.js');
4
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
5
+ var getQuery = require('./getQuery.js');
6
+ require('./core.get-iterator-method-5643aa10.js');
7
+ require('./web.dom.iterable-d98303e0.js');
8
+ require('./_library-dd23b178.js');
9
+ require('./_set-species-0c7864a2.js');
10
+ require('./_iter-detect-b1df62f0.js');
11
+
12
+ /*!
13
+ * cookie
14
+ * Copyright(c) 2012-2014 Roman Shtylman
15
+ * Copyright(c) 2015 Douglas Christopher Wilson
16
+ * MIT Licensed
17
+ */
18
+
19
+ /**
20
+ * Module exports.
21
+ * @public
22
+ */
23
+
24
+ var parse_1$1 = parse$1;
25
+ var serialize_1 = serialize;
26
+
27
+ /**
28
+ * Module variables.
29
+ * @private
30
+ */
31
+
32
+ var decode = decodeURIComponent;
33
+ var encode = encodeURIComponent;
34
+
35
+ /**
36
+ * RegExp to match field-content in RFC 7230 sec 3.2
37
+ *
38
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
39
+ * field-vchar = VCHAR / obs-text
40
+ * obs-text = %x80-FF
41
+ */
42
+
43
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
44
+
45
+ /**
46
+ * Parse a cookie header.
47
+ *
48
+ * Parse the given cookie header string into an object
49
+ * The object has the various cookies as keys(names) => values
50
+ *
51
+ * @param {string} str
52
+ * @param {object} [options]
53
+ * @return {object}
54
+ * @public
55
+ */
56
+
57
+ function parse$1(str, options) {
58
+ if (typeof str !== 'string') {
59
+ throw new TypeError('argument str must be a string');
60
+ }
61
+
62
+ var obj = {};
63
+ var opt = options || {};
64
+ var pairs = str.split(';');
65
+ var dec = opt.decode || decode;
66
+
67
+ for (var i = 0; i < pairs.length; i++) {
68
+ var pair = pairs[i];
69
+ var index = pair.indexOf('=');
70
+
71
+ // skip things that don't look like key=value
72
+ if (index < 0) {
73
+ continue;
74
+ }
75
+
76
+ var key = pair.substring(0, index).trim();
77
+
78
+ // only assign once
79
+ if (undefined == obj[key]) {
80
+ var val = pair.substring(index + 1, pair.length).trim();
81
+
82
+ // quoted values
83
+ if (val[0] === '"') {
84
+ val = val.slice(1, -1);
85
+ }
86
+
87
+ obj[key] = tryDecode(val, dec);
88
+ }
89
+ }
90
+
91
+ return obj;
92
+ }
93
+
94
+ /**
95
+ * Serialize data into a cookie header.
96
+ *
97
+ * Serialize the a name value pair into a cookie string suitable for
98
+ * http headers. An optional options object specified cookie parameters.
99
+ *
100
+ * serialize('foo', 'bar', { httpOnly: true })
101
+ * => "foo=bar; httpOnly"
102
+ *
103
+ * @param {string} name
104
+ * @param {string} val
105
+ * @param {object} [options]
106
+ * @return {string}
107
+ * @public
108
+ */
109
+
110
+ function serialize(name, val, options) {
111
+ var opt = options || {};
112
+ var enc = opt.encode || encode;
113
+
114
+ if (typeof enc !== 'function') {
115
+ throw new TypeError('option encode is invalid');
116
+ }
117
+
118
+ if (!fieldContentRegExp.test(name)) {
119
+ throw new TypeError('argument name is invalid');
120
+ }
121
+
122
+ var value = enc(val);
123
+
124
+ if (value && !fieldContentRegExp.test(value)) {
125
+ throw new TypeError('argument val is invalid');
126
+ }
127
+
128
+ var str = name + '=' + value;
129
+
130
+ if (null != opt.maxAge) {
131
+ var maxAge = opt.maxAge - 0;
132
+
133
+ if (isNaN(maxAge) || !isFinite(maxAge)) {
134
+ throw new TypeError('option maxAge is invalid')
135
+ }
136
+
137
+ str += '; Max-Age=' + Math.floor(maxAge);
138
+ }
139
+
140
+ if (opt.domain) {
141
+ if (!fieldContentRegExp.test(opt.domain)) {
142
+ throw new TypeError('option domain is invalid');
143
+ }
144
+
145
+ str += '; Domain=' + opt.domain;
146
+ }
147
+
148
+ if (opt.path) {
149
+ if (!fieldContentRegExp.test(opt.path)) {
150
+ throw new TypeError('option path is invalid');
151
+ }
152
+
153
+ str += '; Path=' + opt.path;
154
+ }
155
+
156
+ if (opt.expires) {
157
+ if (typeof opt.expires.toUTCString !== 'function') {
158
+ throw new TypeError('option expires is invalid');
159
+ }
160
+
161
+ str += '; Expires=' + opt.expires.toUTCString();
162
+ }
163
+
164
+ if (opt.httpOnly) {
165
+ str += '; HttpOnly';
166
+ }
167
+
168
+ if (opt.secure) {
169
+ str += '; Secure';
170
+ }
171
+
172
+ if (opt.sameSite) {
173
+ var sameSite = typeof opt.sameSite === 'string'
174
+ ? opt.sameSite.toLowerCase() : opt.sameSite;
175
+
176
+ switch (sameSite) {
177
+ case true:
178
+ str += '; SameSite=Strict';
179
+ break;
180
+ case 'lax':
181
+ str += '; SameSite=Lax';
182
+ break;
183
+ case 'strict':
184
+ str += '; SameSite=Strict';
185
+ break;
186
+ case 'none':
187
+ str += '; SameSite=None';
188
+ break;
189
+ default:
190
+ throw new TypeError('option sameSite is invalid');
191
+ }
192
+ }
193
+
194
+ return str;
195
+ }
196
+
197
+ /**
198
+ * Try decoding a string using a decoding function.
199
+ *
200
+ * @param {string} str
201
+ * @param {function} decode
202
+ * @private
203
+ */
204
+
205
+ function tryDecode(str, decode) {
206
+ try {
207
+ return decode(str);
208
+ } catch (e) {
209
+ return str;
210
+ }
211
+ }
212
+
213
+ var cookie = {
214
+ parse: parse_1$1,
215
+ serialize: serialize_1
216
+ };
217
+
218
+ var defaultParseOptions = {
219
+ decodeValues: true,
220
+ map: false,
221
+ silent: false,
222
+ };
223
+
224
+ function isNonEmptyString(str) {
225
+ return typeof str === "string" && !!str.trim();
226
+ }
227
+
228
+ function parseString(setCookieValue, options) {
229
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
230
+
231
+ var nameValuePairStr = parts.shift();
232
+ var parsed = parseNameValuePair(nameValuePairStr);
233
+ var name = parsed.name;
234
+ var value = parsed.value;
235
+
236
+ options = options
237
+ ? Object.assign({}, defaultParseOptions, options)
238
+ : defaultParseOptions;
239
+
240
+ try {
241
+ value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
242
+ } catch (e) {
243
+ console.error(
244
+ "set-cookie-parser encountered an error while decoding a cookie with value '" +
245
+ value +
246
+ "'. Set options.decodeValues to false to disable this feature.",
247
+ e
248
+ );
249
+ }
250
+
251
+ var cookie = {
252
+ name: name,
253
+ value: value,
254
+ };
255
+
256
+ parts.forEach(function (part) {
257
+ var sides = part.split("=");
258
+ var key = sides.shift().trimLeft().toLowerCase();
259
+ var value = sides.join("=");
260
+ if (key === "expires") {
261
+ cookie.expires = new Date(value);
262
+ } else if (key === "max-age") {
263
+ cookie.maxAge = parseInt(value, 10);
264
+ } else if (key === "secure") {
265
+ cookie.secure = true;
266
+ } else if (key === "httponly") {
267
+ cookie.httpOnly = true;
268
+ } else if (key === "samesite") {
269
+ cookie.sameSite = value;
270
+ } else {
271
+ cookie[key] = value;
272
+ }
273
+ });
274
+
275
+ return cookie;
276
+ }
277
+
278
+ function parseNameValuePair(nameValuePairStr) {
279
+ // Parses name-value-pair according to rfc6265bis draft
280
+
281
+ var name = "";
282
+ var value = "";
283
+ var nameValueArr = nameValuePairStr.split("=");
284
+ if (nameValueArr.length > 1) {
285
+ name = nameValueArr.shift();
286
+ value = nameValueArr.join("="); // everything after the first =, joined by a "=" if there was more than one part
287
+ } else {
288
+ value = nameValuePairStr;
289
+ }
290
+
291
+ return { name: name, value: value };
292
+ }
293
+
294
+ function parse(input, options) {
295
+ options = options
296
+ ? Object.assign({}, defaultParseOptions, options)
297
+ : defaultParseOptions;
298
+
299
+ if (!input) {
300
+ if (!options.map) {
301
+ return [];
302
+ } else {
303
+ return {};
304
+ }
305
+ }
306
+
307
+ if (input.headers && input.headers["set-cookie"]) {
308
+ // fast-path for node.js (which automatically normalizes header names to lower-case
309
+ input = input.headers["set-cookie"];
310
+ } else if (input.headers) {
311
+ // slow-path for other environments - see #25
312
+ var sch =
313
+ input.headers[
314
+ Object.keys(input.headers).find(function (key) {
315
+ return key.toLowerCase() === "set-cookie";
316
+ })
317
+ ];
318
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
319
+ if (!sch && input.headers.cookie && !options.silent) {
320
+ console.warn(
321
+ "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."
322
+ );
323
+ }
324
+ input = sch;
325
+ }
326
+ if (!Array.isArray(input)) {
327
+ input = [input];
328
+ }
329
+
330
+ options = options
331
+ ? Object.assign({}, defaultParseOptions, options)
332
+ : defaultParseOptions;
333
+
334
+ if (!options.map) {
335
+ return input.filter(isNonEmptyString).map(function (str) {
336
+ return parseString(str, options);
337
+ });
338
+ } else {
339
+ var cookies = {};
340
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
341
+ var cookie = parseString(str, options);
342
+ cookies[cookie.name] = cookie;
343
+ return cookies;
344
+ }, cookies);
345
+ }
346
+ }
347
+
348
+ /*
349
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
350
+ that are within a single set-cookie field-value, such as in the Expires portion.
351
+
352
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
353
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
354
+ React Native's fetch does this for *every* header, including set-cookie.
355
+
356
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
357
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
358
+ */
359
+ function splitCookiesString(cookiesString) {
360
+ if (Array.isArray(cookiesString)) {
361
+ return cookiesString;
362
+ }
363
+ if (typeof cookiesString !== "string") {
364
+ return [];
365
+ }
366
+
367
+ var cookiesStrings = [];
368
+ var pos = 0;
369
+ var start;
370
+ var ch;
371
+ var lastComma;
372
+ var nextStart;
373
+ var cookiesSeparatorFound;
374
+
375
+ function skipWhitespace() {
376
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
377
+ pos += 1;
378
+ }
379
+ return pos < cookiesString.length;
380
+ }
381
+
382
+ function notSpecialChar() {
383
+ ch = cookiesString.charAt(pos);
384
+
385
+ return ch !== "=" && ch !== ";" && ch !== ",";
386
+ }
387
+
388
+ while (pos < cookiesString.length) {
389
+ start = pos;
390
+ cookiesSeparatorFound = false;
391
+
392
+ while (skipWhitespace()) {
393
+ ch = cookiesString.charAt(pos);
394
+ if (ch === ",") {
395
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
396
+ lastComma = pos;
397
+ pos += 1;
398
+
399
+ skipWhitespace();
400
+ nextStart = pos;
401
+
402
+ while (pos < cookiesString.length && notSpecialChar()) {
403
+ pos += 1;
404
+ }
405
+
406
+ // currently special character
407
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
408
+ // we found cookies separator
409
+ cookiesSeparatorFound = true;
410
+ // pos is inside the next cookie, so back up and return it.
411
+ pos = nextStart;
412
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
413
+ start = pos;
414
+ } else {
415
+ // in param ',' or param separator ';',
416
+ // we continue from that comma
417
+ pos = lastComma + 1;
418
+ }
419
+ } else {
420
+ pos += 1;
421
+ }
422
+ }
423
+
424
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
425
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
426
+ }
427
+ }
428
+
429
+ return cookiesStrings;
430
+ }
431
+
432
+ var setCookie = parse;
433
+ var parse_1 = parse;
434
+ var parseString_1 = parseString;
435
+ var splitCookiesString_1 = splitCookiesString;
436
+ setCookie.parse = parse_1;
437
+ setCookie.parseString = parseString_1;
438
+ setCookie.splitCookiesString = splitCookiesString_1;
439
+
440
+ var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
441
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
442
+ __assign = Object.assign || function(t) {
443
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
444
+ s = arguments[i];
445
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
446
+ t[p] = s[p];
447
+ }
448
+ return t;
449
+ };
450
+ return __assign.apply(this, arguments);
451
+ };
452
+ Object.defineProperty(exports, "__esModule", { value: true });
453
+ exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
454
+ /**
455
+ * Tells whether we are in a browser or server.
456
+ */
457
+ function isBrowser() {
458
+ return typeof window !== 'undefined';
459
+ }
460
+ exports.isBrowser = isBrowser;
461
+ /**
462
+ * Create an instance of the Cookie interface
463
+ */
464
+ function createCookie(name, value, options) {
465
+ var sameSite = options.sameSite;
466
+ if (sameSite === true) {
467
+ sameSite = 'strict';
468
+ }
469
+ if (sameSite === undefined || sameSite === false) {
470
+ sameSite = 'lax';
471
+ }
472
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
473
+ delete cookieToSet.encode;
474
+ return __assign({ name: name, value: value }, cookieToSet);
475
+ }
476
+ exports.createCookie = createCookie;
477
+ /**
478
+ * Tells whether given objects have the same properties.
479
+ */
480
+ function hasSameProperties(a, b) {
481
+ var aProps = Object.getOwnPropertyNames(a);
482
+ var bProps = Object.getOwnPropertyNames(b);
483
+ if (aProps.length !== bProps.length) {
484
+ return false;
485
+ }
486
+ for (var i = 0; i < aProps.length; i++) {
487
+ var propName = aProps[i];
488
+ if (a[propName] !== b[propName]) {
489
+ return false;
490
+ }
491
+ }
492
+ return true;
493
+ }
494
+ exports.hasSameProperties = hasSameProperties;
495
+ /**
496
+ * Compare the cookie and return true if the cookies have equivalent
497
+ * options and the cookies would be overwritten in the browser storage.
498
+ *
499
+ * @param a first Cookie for comparison
500
+ * @param b second Cookie for comparison
501
+ */
502
+ function areCookiesEqual(a, b) {
503
+ var sameSiteSame = a.sameSite === b.sameSite;
504
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
505
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
506
+ }
507
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
508
+ }
509
+ exports.areCookiesEqual = areCookiesEqual;
510
+ /* Functions */
511
+
512
+ });
513
+
514
+ _commonjsHelpers.unwrapExports(utils);
515
+ utils.areCookiesEqual;
516
+ utils.hasSameProperties;
517
+ utils.createCookie;
518
+ utils.isBrowser;
519
+
520
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
521
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
522
+ __assign = Object.assign || function(t) {
523
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
524
+ s = arguments[i];
525
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
526
+ t[p] = s[p];
527
+ }
528
+ return t;
529
+ };
530
+ return __assign.apply(this, arguments);
531
+ };
532
+ Object.defineProperty(exports, "__esModule", { value: true });
533
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
534
+
535
+
536
+
537
+ /**
538
+ * Parses cookies.
539
+ *
540
+ * @param ctx NextJS page or API context, express context, null or undefined.
541
+ * @param options Options that we pass down to `cookie` library.
542
+ */
543
+ function parseCookies(ctx, options) {
544
+ var _a, _b;
545
+ 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) {
546
+ return cookie.parse(ctx.req.headers.cookie, options);
547
+ }
548
+ if (utils.isBrowser()) {
549
+ return cookie.parse(document.cookie, options);
550
+ }
551
+ return {};
552
+ }
553
+ exports.parseCookies = parseCookies;
554
+ /**
555
+ * Sets a cookie.
556
+ *
557
+ * @param ctx NextJS page or API context, express context, null or undefined.
558
+ * @param name The name of your cookie.
559
+ * @param value The value of your cookie.
560
+ * @param options Options that we pass down to `cookie` library.
561
+ */
562
+ function setCookie$1(ctx, name, value, options) {
563
+ var _a, _b;
564
+ if (options === void 0) { options = {}; }
565
+ // SSR
566
+ if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
567
+ // Check if response has finished and warn about it.
568
+ if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
569
+ console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
570
+ console.warn("You should set cookie before res.send()");
571
+ return {};
572
+ }
573
+ /**
574
+ * Load existing cookies from the header and parse them.
575
+ */
576
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
577
+ if (typeof cookies === 'string')
578
+ cookies = [cookies];
579
+ if (typeof cookies === 'number')
580
+ cookies = [];
581
+ /**
582
+ * Parse cookies but ignore values - we've already encoded
583
+ * them in the previous call.
584
+ */
585
+ var parsedCookies = setCookie.parse(cookies, {
586
+ decodeValues: false,
587
+ });
588
+ /**
589
+ * We create the new cookie and make sure that none of
590
+ * the existing cookies match it.
591
+ */
592
+ var newCookie_1 = utils.createCookie(name, value, options);
593
+ var cookiesToSet_1 = [];
594
+ parsedCookies.forEach(function (parsedCookie) {
595
+ if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
596
+ /**
597
+ * We serialize the cookie back to the original format
598
+ * if it isn't the same as the new one.
599
+ */
600
+ var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
601
+ // we prevent reencoding by default, but you might override it
602
+ encode: function (val) { return val; } }, parsedCookie));
603
+ cookiesToSet_1.push(serializedCookie);
604
+ }
605
+ });
606
+ cookiesToSet_1.push(cookie.serialize(name, value, options));
607
+ // Update the header.
608
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
609
+ }
610
+ // Browser
611
+ if (utils.isBrowser()) {
612
+ if (options && options.httpOnly) {
613
+ throw new Error('Can not set a httpOnly cookie in the browser.');
614
+ }
615
+ document.cookie = cookie.serialize(name, value, options);
616
+ }
617
+ return {};
618
+ }
619
+ exports.setCookie = setCookie$1;
620
+ /**
621
+ * Destroys a cookie with a particular name.
622
+ *
623
+ * @param ctx NextJS page or API context, express context, null or undefined.
624
+ * @param name Cookie name.
625
+ * @param options Options that we pass down to `cookie` library.
626
+ */
627
+ function destroyCookie(ctx, name, options) {
628
+ /**
629
+ * We forward the request destroy to setCookie function
630
+ * as it is the same function with modified maxAge value.
631
+ */
632
+ return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
633
+ }
634
+ exports.destroyCookie = destroyCookie;
635
+ /* Utility Exports */
636
+ exports.default = {
637
+ set: setCookie$1,
638
+ get: parseCookies,
639
+ destroy: destroyCookie,
640
+ };
641
+
642
+ });
643
+
644
+ _commonjsHelpers.unwrapExports(dist);
645
+ dist.destroyCookie;
646
+ var dist_2 = dist.setCookie;
647
+ var dist_3 = dist.parseCookies;
648
+
649
+ var _this = undefined;
650
+
651
+ var getRelatedArticle = function () {
652
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
653
+ var ctx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
654
+ var client = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
655
+ var article = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
656
+ var prevUrl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
657
+ var articleCount = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
658
+
659
+ var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters, cookies, prevSlugs, query;
660
+
661
+ return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
662
+ while (1) {
663
+ switch (_context.prev = _context.next) {
664
+ case 0:
665
+ _article$url = article.url;
666
+ _article$url = _article$url === undefined ? {
667
+ current: null
668
+ } : _article$url;
669
+ url = _article$url.current, documentGroupMapping = article.documentGroupMapping, issueGroup = article.issueGroup;
670
+ content_placement = article.content_placement;
671
+ references = [];
672
+
673
+
674
+ content_placement = content_placement && content_placement.length > 0 && content_placement.filter(function (_ref2) {
675
+ var identifier = _ref2.identifier;
676
+ return identifier !== 'news';
677
+ });
678
+ if (content_placement && content_placement.length > 0) {
679
+ content_placement.forEach(function (_ref3) {
680
+ var path = _ref3.path,
681
+ _id = _ref3._id;
682
+
683
+ if (!_id || typeof _id == 'undefined') {
684
+ return null;
685
+ }
686
+ var prev_url_to_check = prevUrl;
687
+ if (prev_url_to_check.includes('?')) {
688
+ prev_url_to_check = prev_url_to_check.split('?')[0];
689
+ }
690
+ if (prev_url_to_check.endsWith(path) && _id) references.push(_id);
691
+ });
692
+ if (references.length === 0) {
693
+ content_placement.forEach(function (_ref4) {
694
+ var _id = _ref4._id;
695
+
696
+ if (_id) references.push(_id);
697
+ });
698
+ }
699
+ }
700
+
701
+ if (documentGroupMapping && documentGroupMapping.length > 0) {
702
+ documentGroupMapping.forEach(function (_ref5) {
703
+ var _id = _ref5._id;
704
+
705
+ if (_id) references.push(_id);
706
+ });
707
+ }
708
+
709
+ if (issueGroup && issueGroup._id) {
710
+ references.push(issueGroup._id);
711
+ }
712
+
713
+ params = { url: url, index: articleCount };
714
+ articles = null;
715
+
716
+ if (!(references && references.length > 0)) {
717
+ _context.next = 24;
718
+ break;
719
+ }
720
+
721
+ filters = '&& references("' + references.join('","') + '") ';
722
+
723
+
724
+ if (ctx && url) {
725
+ cookies = dist_3(ctx);
726
+ prevSlugs = cookies['prevSlugs'];
727
+
728
+ if (!!prevSlugs) {
729
+ if (!prevSlugs.includes(url)) dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
730
+ filters = filters + ' && !(url.current in [' + prevSlugs + '])';
731
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
732
+ }
733
+
734
+ query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
735
+ _context.prev = 15;
736
+ _context.next = 18;
737
+ return client.fetch(query, params);
738
+
739
+ case 18:
740
+ articles = _context.sent;
741
+ _context.next = 24;
742
+ break;
743
+
744
+ case 21:
745
+ _context.prev = 21;
746
+ _context.t0 = _context['catch'](15);
747
+
748
+ console.error(_context.t0);
749
+
750
+ case 24:
751
+ return _context.abrupt('return', articles);
752
+
753
+ case 25:
754
+ case 'end':
755
+ return _context.stop();
756
+ }
757
+ }
758
+ }, _callee, _this, [[15, 21]]);
759
+ }));
760
+
761
+ return function getRelatedArticle() {
762
+ return _ref.apply(this, arguments);
763
+ };
764
+ }();
765
+
766
+ module.exports = getRelatedArticle;