@mjhls/mjh-framework 1.0.109-8.rlTest → 1.0.109

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 +5 -1
  2. package/dist/index.es.js +20606 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/index.js +20644 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +26 -55
  7. package/dist/cjs/AD.js +0 -32
  8. package/dist/cjs/AD300x250.js +0 -95
  9. package/dist/cjs/AD300x250x600.js +0 -112
  10. package/dist/cjs/AD728x90.js +0 -109
  11. package/dist/cjs/ADFloatingFooter.js +0 -151
  12. package/dist/cjs/ADFooter.js +0 -53
  13. package/dist/cjs/ADGutter.js +0 -123
  14. package/dist/cjs/ADInfeed-7c075eda.js +0 -75
  15. package/dist/cjs/ADSkyscraper.js +0 -125
  16. package/dist/cjs/ADSponsoredResources.js +0 -122
  17. package/dist/cjs/ADWebcast.js +0 -127
  18. package/dist/cjs/ADWelcome.js +0 -166
  19. package/dist/cjs/ADlgInfeed-d4f556bd.js +0 -69
  20. package/dist/cjs/AccordionPanel.js +0 -94
  21. package/dist/cjs/AdSlot.js +0 -283
  22. package/dist/cjs/AdSlotsProvider.js +0 -184
  23. package/dist/cjs/AlgoliaSearch.js +0 -15221
  24. package/dist/cjs/AlphabeticList.js +0 -134
  25. package/dist/cjs/ArticleCarousel.js +0 -45
  26. package/dist/cjs/ArticleProgramLandingPage.js +0 -186
  27. package/dist/cjs/ArticleSeriesLandingPage.js +0 -162
  28. package/dist/cjs/ArticleSeriesListing.js +0 -314
  29. package/dist/cjs/AuthWrapper.js +0 -1526
  30. package/dist/cjs/AuthorComponent-7d00f6d5.js +0 -96
  31. package/dist/cjs/Beam.js +0 -405
  32. package/dist/cjs/BlockContent-96b44364.js +0 -916
  33. package/dist/cjs/Breadcrumbs.js +0 -107
  34. package/dist/cjs/CEDeckSupabase.js +0 -444
  35. package/dist/cjs/CMEDeck.js +0 -444
  36. package/dist/cjs/Column1.js +0 -36
  37. package/dist/cjs/Column2.js +0 -73
  38. package/dist/cjs/Column3.js +0 -140
  39. package/dist/cjs/ConferenceArticleCard.js +0 -94
  40. package/dist/cjs/ConferenceBanner-213003ce.js +0 -24
  41. package/dist/cjs/ContentCardPaginated.js +0 -416
  42. package/dist/cjs/DeckContent.js +0 -507
  43. package/dist/cjs/DeckQueue.js +0 -402
  44. package/dist/cjs/DeckQueuePaginated.js +0 -347
  45. package/dist/cjs/Dfp-67646058.js +0 -103
  46. package/dist/cjs/EventsDeck.js +0 -856
  47. package/dist/cjs/ExternalResources.js +0 -220
  48. package/dist/cjs/Feature.js +0 -132
  49. package/dist/cjs/ForbesHero.js +0 -138
  50. package/dist/cjs/GridContent.js +0 -828
  51. package/dist/cjs/GridContentPaginated.js +0 -703
  52. package/dist/cjs/GridHero.js +0 -148
  53. package/dist/cjs/GroupDeck.js +0 -314
  54. package/dist/cjs/HamMagazine.js +0 -664
  55. package/dist/cjs/Header.js +0 -65
  56. package/dist/cjs/HealthCareProfessionalModal.js +0 -78
  57. package/dist/cjs/Hero.js +0 -49
  58. package/dist/cjs/HighlightenVideo.js +0 -69
  59. package/dist/cjs/HorizontalArticleListing.js +0 -167
  60. package/dist/cjs/HorizontalHero.js +0 -112
  61. package/dist/cjs/ImageSlider-7c995858.js +0 -2808
  62. package/dist/cjs/IssueContentDeck.js +0 -242
  63. package/dist/cjs/IssueDeck.js +0 -267
  64. package/dist/cjs/IssueLanding.js +0 -176
  65. package/dist/cjs/KMTracker.js +0 -27
  66. package/dist/cjs/LeftNav.js +0 -153
  67. package/dist/cjs/MasterDeck.js +0 -555
  68. package/dist/cjs/MasterDeckPaginated.js +0 -468
  69. package/dist/cjs/MediaSeriesCard.js +0 -134
  70. package/dist/cjs/MediaSeriesLanding.js +0 -507
  71. package/dist/cjs/MediaSeriesLandingPaginated.js +0 -532
  72. package/dist/cjs/NavDvm.js +0 -278
  73. package/dist/cjs/NavFooter-b7b16d48.js +0 -72
  74. package/dist/cjs/NavMagazine.js +0 -615
  75. package/dist/cjs/NavNative.js +0 -880
  76. package/dist/cjs/OncliveHero.js +0 -80
  77. package/dist/cjs/OncliveLargeHero.js +0 -242
  78. package/dist/cjs/PageFilter.js +0 -72
  79. package/dist/cjs/Pagination-6359861a.js +0 -97
  80. package/dist/cjs/PartnerDetailListing.js +0 -374
  81. package/dist/cjs/PartnerDetailListingPaginated.js +0 -365
  82. package/dist/cjs/PdfDownload.js +0 -28
  83. package/dist/cjs/PixelTracking.js +0 -191
  84. package/dist/cjs/PodcastsLanding.js +0 -234
  85. package/dist/cjs/PopUpModal.js +0 -58
  86. package/dist/cjs/PtceDeck.js +0 -150
  87. package/dist/cjs/PubSection.js +0 -120
  88. package/dist/cjs/PubToc.js +0 -88
  89. package/dist/cjs/PublicationDeck.js +0 -184
  90. package/dist/cjs/PublicationFeature-4b68e0db.js +0 -130
  91. package/dist/cjs/PublicationLanding.js +0 -826
  92. package/dist/cjs/QueueDeckExpanded.js +0 -1540
  93. package/dist/cjs/QueueDeckExpandedPaginated.js +0 -1387
  94. package/dist/cjs/RecentNews.js +0 -91
  95. package/dist/cjs/RelatedContent.js +0 -115
  96. package/dist/cjs/RelatedTopicsDropdown.js +0 -90
  97. package/dist/cjs/RolesDeck.js +0 -94
  98. package/dist/cjs/Schema.js +0 -102
  99. package/dist/cjs/Search.js +0 -66
  100. package/dist/cjs/Segment.js +0 -458
  101. package/dist/cjs/SeriesListingDeck.js +0 -247
  102. package/dist/cjs/SeriesSlider-086a8319.js +0 -332
  103. package/dist/cjs/SetCookie.js +0 -10
  104. package/dist/cjs/SideFooter.js +0 -152
  105. package/dist/cjs/SocialIcons.js +0 -103
  106. package/dist/cjs/SocialSearchComponent-d7e5d3a6.js +0 -213
  107. package/dist/cjs/SocialShare.js +0 -74
  108. package/dist/cjs/TaxonomyCard.js +0 -256
  109. package/dist/cjs/TaxonomyDescription.js +0 -208
  110. package/dist/cjs/TemplateNormal.js +0 -204
  111. package/dist/cjs/ThumbnailCard.js +0 -60
  112. package/dist/cjs/Tooltip-b8516cbf.js +0 -9541
  113. package/dist/cjs/Ustream.js +0 -157
  114. package/dist/cjs/VerticalHero.js +0 -75
  115. package/dist/cjs/VideoProgramLandingPage.js +0 -262
  116. package/dist/cjs/VideoSeriesCard.js +0 -88
  117. package/dist/cjs/VideoSeriesFilter.js +0 -129
  118. package/dist/cjs/VideoSeriesLandingPage.js +0 -178
  119. package/dist/cjs/VideoSeriesListing.js +0 -421
  120. package/dist/cjs/View.js +0 -2835
  121. package/dist/cjs/YahooHero.js +0 -127
  122. package/dist/cjs/YoutubeGroup.js +0 -372
  123. package/dist/cjs/_commonjsHelpers-06173234.js +0 -25
  124. package/dist/cjs/_is-array-54228b29.js +0 -74
  125. package/dist/cjs/_iter-detect-b1df62f0.js +0 -52
  126. package/dist/cjs/_library-dd23b178.js +0 -5
  127. package/dist/cjs/_object-sap-d1978572.js +0 -16
  128. package/dist/cjs/_object-to-array-9337ba83.js +0 -25
  129. package/dist/cjs/_set-species-0c7864a2.js +0 -55
  130. package/dist/cjs/asyncToGenerator-65df6bf8.js +0 -1347
  131. package/dist/cjs/brightcove-react-player-loader.es-35faab67.js +0 -2232
  132. package/dist/cjs/checkSisterSite-c3a4ac98.js +0 -19
  133. package/dist/cjs/core.get-iterator-method-5643aa10.js +0 -584
  134. package/dist/cjs/debounce-d4a2369b.js +0 -216
  135. package/dist/cjs/define-property-e8404b64.js +0 -20
  136. package/dist/cjs/defineProperty-19580e93.js +0 -71
  137. package/dist/cjs/defineProperty-9673846a.js +0 -34
  138. package/dist/cjs/entities-df1aed86.js +0 -510
  139. package/dist/cjs/eq-5fc26c07.js +0 -79
  140. package/dist/cjs/extends-be0d85bc.js +0 -100
  141. package/dist/cjs/faundadb.js +0 -765
  142. package/dist/cjs/get-5839e5b5.js +0 -920
  143. package/dist/cjs/getContentCategory-f38a4c00.js +0 -11
  144. package/dist/cjs/getKeywords.js +0 -46
  145. package/dist/cjs/getPtceActivities.js +0 -90
  146. package/dist/cjs/getQuery.js +0 -27
  147. package/dist/cjs/getRelatedArticle.js +0 -766
  148. package/dist/cjs/getRootDocGroup.js +0 -63
  149. package/dist/cjs/getSerializers.js +0 -66
  150. package/dist/cjs/getSeriesDetail.js +0 -40
  151. package/dist/cjs/getTIData.js +0 -93
  152. package/dist/cjs/getTargeting-7ce7037b.js +0 -166
  153. package/dist/cjs/getTargeting.js +0 -12
  154. package/dist/cjs/iconBase-be4097c0.js +0 -104
  155. package/dist/cjs/index-187c967e.js +0 -54
  156. package/dist/cjs/index-3177f564.js +0 -1573
  157. package/dist/cjs/index-65621b6c.js +0 -613
  158. package/dist/cjs/index-7435b964.js +0 -1683
  159. package/dist/cjs/index-a26637a3.js +0 -11764
  160. package/dist/cjs/index-d48b231c.js +0 -556
  161. package/dist/cjs/index-ff83a88b.js +0 -104
  162. package/dist/cjs/index.es-1ab8dda7.js +0 -445
  163. package/dist/cjs/index.esm-2ea9e9ff.js +0 -98
  164. package/dist/cjs/index.esm-c1e16606.js +0 -13
  165. package/dist/cjs/index.esm-d51c9ac6.js +0 -25
  166. package/dist/cjs/index.esm-d81454e7.js +0 -19
  167. package/dist/cjs/index.js +0 -638
  168. package/dist/cjs/inherits-e47b5342.js +0 -188
  169. package/dist/cjs/isSymbol-03abbdf0.js +0 -209
  170. package/dist/cjs/js.cookie-a511c430.js +0 -160
  171. package/dist/cjs/keys-e982b3fa.js +0 -25
  172. package/dist/cjs/lodash-f0783643.js +0 -17195
  173. package/dist/cjs/main-ae8472f3.js +0 -969
  174. package/dist/cjs/moment-f730814d.js +0 -5684
  175. package/dist/cjs/react-social-icons-2c5c389a.js +0 -616
  176. package/dist/cjs/slicedToArray-067dd3bc.js +0 -95
  177. package/dist/cjs/smoothscroll-99df7f93.js +0 -438
  178. package/dist/cjs/stringify-f7a37a8d.js +0 -17
  179. package/dist/cjs/style-inject.es-dcee06b6.js +0 -30
  180. package/dist/cjs/timeDifferenceCalc.js +0 -39
  181. package/dist/cjs/toConsumableArray-d7797c2b.js +0 -74
  182. package/dist/cjs/toNumber-5e1fac58.js +0 -104
  183. package/dist/cjs/typeof-220bbf73.js +0 -382
  184. package/dist/cjs/urlFor.js +0 -66
  185. package/dist/cjs/urlForFile-5084fc48.js +0 -29
  186. package/dist/cjs/ustream-api-3819e4aa.js +0 -106
  187. package/dist/cjs/visibility-sensor-56020df6.js +0 -597
  188. package/dist/cjs/web.dom.iterable-d98303e0.js +0 -50
  189. package/dist/esm/AD.js +0 -26
  190. package/dist/esm/AD300x250.js +0 -89
  191. package/dist/esm/AD300x250x600.js +0 -106
  192. package/dist/esm/AD728x90.js +0 -103
  193. package/dist/esm/ADFloatingFooter.js +0 -145
  194. package/dist/esm/ADFooter.js +0 -47
  195. package/dist/esm/ADGutter.js +0 -117
  196. package/dist/esm/ADInfeed-3442c999.js +0 -68
  197. package/dist/esm/ADSkyscraper.js +0 -119
  198. package/dist/esm/ADSponsoredResources.js +0 -116
  199. package/dist/esm/ADWebcast.js +0 -121
  200. package/dist/esm/ADWelcome.js +0 -160
  201. package/dist/esm/ADlgInfeed-30649360.js +0 -63
  202. package/dist/esm/AccordionPanel.js +0 -87
  203. package/dist/esm/AdSlot.js +0 -276
  204. package/dist/esm/AdSlotsProvider.js +0 -177
  205. package/dist/esm/AlgoliaSearch.js +0 -15214
  206. package/dist/esm/AlphabeticList.js +0 -128
  207. package/dist/esm/ArticleCarousel.js +0 -39
  208. package/dist/esm/ArticleProgramLandingPage.js +0 -180
  209. package/dist/esm/ArticleSeriesLandingPage.js +0 -156
  210. package/dist/esm/ArticleSeriesListing.js +0 -307
  211. package/dist/esm/AuthWrapper.js +0 -1520
  212. package/dist/esm/AuthorComponent-d9653ae5.js +0 -90
  213. package/dist/esm/Beam.js +0 -403
  214. package/dist/esm/BlockContent-1e73bd2c.js +0 -909
  215. package/dist/esm/Breadcrumbs.js +0 -100
  216. package/dist/esm/CEDeckSupabase.js +0 -438
  217. package/dist/esm/CMEDeck.js +0 -438
  218. package/dist/esm/Column1.js +0 -28
  219. package/dist/esm/Column2.js +0 -65
  220. package/dist/esm/Column3.js +0 -132
  221. package/dist/esm/ConferenceArticleCard.js +0 -88
  222. package/dist/esm/ConferenceBanner-8792ebd2.js +0 -18
  223. package/dist/esm/ContentCardPaginated.js +0 -405
  224. package/dist/esm/DeckContent.js +0 -497
  225. package/dist/esm/DeckQueue.js +0 -392
  226. package/dist/esm/DeckQueuePaginated.js +0 -336
  227. package/dist/esm/Dfp-3b6eb620.js +0 -96
  228. package/dist/esm/EventsDeck.js +0 -843
  229. package/dist/esm/ExternalResources.js +0 -213
  230. package/dist/esm/Feature.js +0 -125
  231. package/dist/esm/ForbesHero.js +0 -132
  232. package/dist/esm/GridContent.js +0 -818
  233. package/dist/esm/GridContentPaginated.js +0 -692
  234. package/dist/esm/GridHero.js +0 -142
  235. package/dist/esm/GroupDeck.js +0 -308
  236. package/dist/esm/HamMagazine.js +0 -651
  237. package/dist/esm/Header.js +0 -54
  238. package/dist/esm/HealthCareProfessionalModal.js +0 -70
  239. package/dist/esm/Hero.js +0 -43
  240. package/dist/esm/HighlightenVideo.js +0 -63
  241. package/dist/esm/HorizontalArticleListing.js +0 -161
  242. package/dist/esm/HorizontalHero.js +0 -106
  243. package/dist/esm/ImageSlider-75f7b81a.js +0 -2799
  244. package/dist/esm/IssueContentDeck.js +0 -232
  245. package/dist/esm/IssueDeck.js +0 -257
  246. package/dist/esm/IssueLanding.js +0 -170
  247. package/dist/esm/KMTracker.js +0 -25
  248. package/dist/esm/LeftNav.js +0 -143
  249. package/dist/esm/MasterDeck.js +0 -548
  250. package/dist/esm/MasterDeckPaginated.js +0 -460
  251. package/dist/esm/MediaSeriesCard.js +0 -128
  252. package/dist/esm/MediaSeriesLanding.js +0 -500
  253. package/dist/esm/MediaSeriesLandingPaginated.js +0 -525
  254. package/dist/esm/NavDvm.js +0 -265
  255. package/dist/esm/NavFooter-4bcffccb.js +0 -66
  256. package/dist/esm/NavMagazine.js +0 -602
  257. package/dist/esm/NavNative.js +0 -864
  258. package/dist/esm/OncliveHero.js +0 -74
  259. package/dist/esm/OncliveLargeHero.js +0 -236
  260. package/dist/esm/PageFilter.js +0 -66
  261. package/dist/esm/Pagination-9fe9f61d.js +0 -90
  262. package/dist/esm/PartnerDetailListing.js +0 -368
  263. package/dist/esm/PartnerDetailListingPaginated.js +0 -359
  264. package/dist/esm/PdfDownload.js +0 -22
  265. package/dist/esm/PixelTracking.js +0 -182
  266. package/dist/esm/PodcastsLanding.js +0 -227
  267. package/dist/esm/PopUpModal.js +0 -51
  268. package/dist/esm/PtceDeck.js +0 -144
  269. package/dist/esm/PubSection.js +0 -114
  270. package/dist/esm/PubToc.js +0 -82
  271. package/dist/esm/PublicationDeck.js +0 -174
  272. package/dist/esm/PublicationFeature-6c334891.js +0 -121
  273. package/dist/esm/PublicationLanding.js +0 -816
  274. package/dist/esm/QueueDeckExpanded.js +0 -1534
  275. package/dist/esm/QueueDeckExpandedPaginated.js +0 -1381
  276. package/dist/esm/RecentNews.js +0 -85
  277. package/dist/esm/RelatedContent.js +0 -109
  278. package/dist/esm/RelatedTopicsDropdown.js +0 -82
  279. package/dist/esm/RolesDeck.js +0 -84
  280. package/dist/esm/Schema.js +0 -96
  281. package/dist/esm/Search.js +0 -57
  282. package/dist/esm/Segment.js +0 -456
  283. package/dist/esm/SeriesListingDeck.js +0 -241
  284. package/dist/esm/SeriesSlider-acbdf4c9.js +0 -326
  285. package/dist/esm/SetCookie.js +0 -8
  286. package/dist/esm/SideFooter.js +0 -146
  287. package/dist/esm/SocialIcons.js +0 -97
  288. package/dist/esm/SocialSearchComponent-9e65c8d6.js +0 -204
  289. package/dist/esm/SocialShare.js +0 -67
  290. package/dist/esm/TaxonomyCard.js +0 -246
  291. package/dist/esm/TaxonomyDescription.js +0 -201
  292. package/dist/esm/TemplateNormal.js +0 -197
  293. package/dist/esm/ThumbnailCard.js +0 -53
  294. package/dist/esm/Tooltip-fe0ed92d.js +0 -9532
  295. package/dist/esm/Ustream.js +0 -151
  296. package/dist/esm/VerticalHero.js +0 -69
  297. package/dist/esm/VideoProgramLandingPage.js +0 -253
  298. package/dist/esm/VideoSeriesCard.js +0 -82
  299. package/dist/esm/VideoSeriesFilter.js +0 -123
  300. package/dist/esm/VideoSeriesLandingPage.js +0 -172
  301. package/dist/esm/VideoSeriesListing.js +0 -414
  302. package/dist/esm/View.js +0 -2825
  303. package/dist/esm/YahooHero.js +0 -121
  304. package/dist/esm/YoutubeGroup.js +0 -366
  305. package/dist/esm/_commonjsHelpers-0c4b6f40.js +0 -19
  306. package/dist/esm/_is-array-68c79b29.js +0 -71
  307. package/dist/esm/_iter-detect-2f89237f.js +0 -48
  308. package/dist/esm/_library-528f1934.js +0 -3
  309. package/dist/esm/_object-sap-14bd8e96.js +0 -14
  310. package/dist/esm/_object-to-array-9dfdfb29.js +0 -23
  311. package/dist/esm/_set-species-7d3317b7.js +0 -50
  312. package/dist/esm/asyncToGenerator-1ebeb135.js +0 -1343
  313. package/dist/esm/brightcove-react-player-loader.es-a2422c4b.js +0 -2226
  314. package/dist/esm/checkSisterSite-a7218fda.js +0 -17
  315. package/dist/esm/core.get-iterator-method-95db387d.js +0 -547
  316. package/dist/esm/debounce-533d9748.js +0 -214
  317. package/dist/esm/define-property-433c51d3.js +0 -18
  318. package/dist/esm/defineProperty-e5afb9eb.js +0 -32
  319. package/dist/esm/defineProperty-e8022d1e.js +0 -66
  320. package/dist/esm/entities-6d9154b4.js +0 -507
  321. package/dist/esm/eq-bdcbf886.js +0 -76
  322. package/dist/esm/extends-2f4448b8.js +0 -94
  323. package/dist/esm/faundadb.js +0 -754
  324. package/dist/esm/get-3c308da4.js +0 -918
  325. package/dist/esm/getContentCategory-15dcc413.js +0 -9
  326. package/dist/esm/getKeywords.js +0 -44
  327. package/dist/esm/getPtceActivities.js +0 -88
  328. package/dist/esm/getQuery.js +0 -25
  329. package/dist/esm/getRelatedArticle.js +0 -764
  330. package/dist/esm/getRootDocGroup.js +0 -61
  331. package/dist/esm/getSerializers.js +0 -60
  332. package/dist/esm/getSeriesDetail.js +0 -38
  333. package/dist/esm/getTIData.js +0 -91
  334. package/dist/esm/getTargeting-301942ae.js +0 -163
  335. package/dist/esm/getTargeting.js +0 -6
  336. package/dist/esm/iconBase-ccc56b97.js +0 -81
  337. package/dist/esm/index-3f5c03b2.js +0 -553
  338. package/dist/esm/index-4550ef23.js +0 -1571
  339. package/dist/esm/index-5cc7b406.js +0 -1674
  340. package/dist/esm/index-755f2cc2.js +0 -605
  341. package/dist/esm/index-a68bfe70.js +0 -11743
  342. package/dist/esm/index-c7e2ac95.js +0 -52
  343. package/dist/esm/index-c8d5e72b.js +0 -99
  344. package/dist/esm/index.es-a6137319.js +0 -439
  345. package/dist/esm/index.esm-1bd8a0a8.js +0 -18
  346. package/dist/esm/index.esm-9508070a.js +0 -91
  347. package/dist/esm/index.esm-9b042655.js +0 -10
  348. package/dist/esm/index.esm-eb1e8e80.js +0 -14
  349. package/dist/esm/index.js +0 -531
  350. package/dist/esm/inherits-96c84cbd.js +0 -179
  351. package/dist/esm/isSymbol-a7e9aafe.js +0 -203
  352. package/dist/esm/js.cookie-6874175c.js +0 -158
  353. package/dist/esm/keys-185288f4.js +0 -23
  354. package/dist/esm/lodash-f97fd99a.js +0 -17193
  355. package/dist/esm/main-754d4992.js +0 -956
  356. package/dist/esm/moment-48faeb9c.js +0 -5682
  357. package/dist/esm/react-social-icons-9be47857.js +0 -609
  358. package/dist/esm/slicedToArray-72ed566b.js +0 -92
  359. package/dist/esm/smoothscroll-fa4e3f8c.js +0 -436
  360. package/dist/esm/stringify-1e2a5946.js +0 -15
  361. package/dist/esm/style-inject.es-1f59c1d0.js +0 -28
  362. package/dist/esm/timeDifferenceCalc.js +0 -37
  363. package/dist/esm/toConsumableArray-e6f28e5c.js +0 -71
  364. package/dist/esm/toNumber-5aeba6e7.js +0 -102
  365. package/dist/esm/typeof-3ab7d3b6.js +0 -378
  366. package/dist/esm/urlFor.js +0 -64
  367. package/dist/esm/urlForFile-2e523b67.js +0 -27
  368. package/dist/esm/ustream-api-63a164b3.js +0 -104
  369. package/dist/esm/visibility-sensor-72fd8f8b.js +0 -590
  370. package/dist/esm/web.dom.iterable-3fffc027.js +0 -48
@@ -1,766 +0,0 @@
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;