@mjhls/mjh-framework 1.0.98 → 1.0.99-0.next12

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 (356) hide show
  1. package/README.md +168 -172
  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 +143 -0
  7. package/dist/cjs/ADFooter.js +53 -0
  8. package/dist/cjs/ADGutter.js +115 -0
  9. package/dist/cjs/ADInfeed-cf54cb8a.js +66 -0
  10. package/dist/cjs/ADSkyscraper.js +117 -0
  11. package/dist/cjs/ADSponsoredResources.js +114 -0
  12. package/dist/cjs/ADWebcast.js +119 -0
  13. package/dist/cjs/ADWelcome.js +166 -0
  14. package/dist/cjs/ADlgInfeed-d06624d8.js +60 -0
  15. package/dist/cjs/AccordionPanel.js +94 -0
  16. package/dist/cjs/AdSlot.js +251 -0
  17. package/dist/cjs/AdSlotsProvider.js +183 -0
  18. package/dist/cjs/AlgoliaSearch.js +195 -0
  19. package/dist/cjs/AlphabeticList.js +135 -0
  20. package/dist/cjs/ArticleCarousel.js +46 -0
  21. package/dist/cjs/ArticleProgramLandingPage.js +184 -0
  22. package/dist/cjs/ArticleSeriesLandingPage.js +162 -0
  23. package/dist/cjs/ArticleSeriesListing.js +315 -0
  24. package/dist/cjs/AuthWrapper.js +720 -0
  25. package/dist/cjs/AuthorComponent-39b37d84.js +96 -0
  26. package/dist/cjs/Beam.js +350 -0
  27. package/dist/cjs/BlockContent-36e54d77.js +916 -0
  28. package/dist/cjs/Breadcrumbs.js +107 -0
  29. package/dist/cjs/CMEDeck.js +443 -0
  30. package/dist/cjs/Column1.js +39 -0
  31. package/dist/cjs/Column2.js +75 -0
  32. package/dist/cjs/Column3.js +144 -0
  33. package/dist/cjs/ConferenceArticleCard.js +93 -0
  34. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  35. package/dist/cjs/ContentCardPaginated.js +417 -0
  36. package/dist/cjs/DeckContent.js +507 -0
  37. package/dist/cjs/DeckQueue.js +403 -0
  38. package/dist/cjs/DeckQueuePaginated.js +348 -0
  39. package/dist/cjs/Dfp-94f8ccdf.js +103 -0
  40. package/dist/cjs/EventsDeck.js +857 -0
  41. package/dist/cjs/ExternalResources.js +217 -0
  42. package/dist/cjs/Feature.js +129 -0
  43. package/dist/cjs/ForbesHero.js +137 -0
  44. package/dist/cjs/GridContent.js +828 -0
  45. package/dist/cjs/GridContentPaginated.js +704 -0
  46. package/dist/cjs/GridHero.js +147 -0
  47. package/dist/cjs/GroupDeck.js +314 -0
  48. package/dist/cjs/HamMagazine.js +602 -0
  49. package/dist/cjs/Header.js +39 -0
  50. package/dist/cjs/HealthCareProfessionalModal.js +78 -0
  51. package/dist/cjs/Hero.js +48 -0
  52. package/dist/cjs/HighlightenVideo.js +69 -0
  53. package/dist/cjs/HorizontalArticleListing.js +165 -0
  54. package/dist/cjs/HorizontalHero.js +111 -0
  55. package/dist/cjs/ImageSlider-a7fb6218.js +182 -0
  56. package/dist/cjs/IssueContentDeck.js +241 -0
  57. package/dist/cjs/IssueDeck.js +268 -0
  58. package/dist/cjs/IssueLanding.js +172 -0
  59. package/dist/cjs/KMTracker.js +27 -0
  60. package/dist/cjs/LeftNav.js +145 -0
  61. package/dist/cjs/MasterDeck.js +555 -0
  62. package/dist/cjs/MasterDeckPaginated.js +469 -0
  63. package/dist/cjs/MediaSeriesCard-36eab8b7.js +9502 -0
  64. package/dist/cjs/MediaSeriesLanding.js +503 -0
  65. package/dist/cjs/MediaSeriesLandingPaginated.js +529 -0
  66. package/dist/cjs/NavDvm.js +245 -0
  67. package/dist/cjs/NavFooter-3dcd99a8.js +66 -0
  68. package/dist/cjs/NavMagazine.js +595 -0
  69. package/dist/cjs/NavNative.js +861 -0
  70. package/dist/cjs/OncliveHero.js +79 -0
  71. package/dist/cjs/OncliveLargeHero.js +241 -0
  72. package/dist/cjs/PageFilter.js +72 -0
  73. package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
  74. package/dist/cjs/PartnerDetailListing.js +326 -0
  75. package/dist/cjs/PartnerDetailListingPaginated.js +318 -0
  76. package/dist/cjs/PdfDownload.js +28 -0
  77. package/dist/cjs/PixelTracking.js +165 -0
  78. package/dist/cjs/PopUpModal.js +58 -0
  79. package/dist/cjs/PtceDeck.js +149 -0
  80. package/dist/cjs/PubSection.js +120 -0
  81. package/dist/cjs/PubToc.js +87 -0
  82. package/dist/cjs/PublicationDeck.js +183 -0
  83. package/dist/cjs/PublicationFeature-be5f3503.js +130 -0
  84. package/dist/cjs/PublicationLanding.js +853 -0
  85. package/dist/cjs/QueueDeckExpanded.js +1540 -0
  86. package/dist/cjs/QueueDeckExpandedPaginated.js +1388 -0
  87. package/dist/cjs/RecentNews.js +91 -0
  88. package/dist/cjs/RelatedContent.js +114 -0
  89. package/dist/cjs/RelatedTopicsDropdown.js +90 -0
  90. package/dist/cjs/RolesDeck.js +94 -0
  91. package/dist/cjs/Schema.js +101 -0
  92. package/dist/cjs/Search.js +66 -0
  93. package/dist/cjs/Segment.js +403 -0
  94. package/dist/cjs/SeriesListingDeck.js +248 -0
  95. package/dist/cjs/SeriesSlider-b94f1dd5.js +332 -0
  96. package/dist/cjs/SetCookie.js +10 -0
  97. package/dist/cjs/SideFooter.js +151 -0
  98. package/dist/cjs/SocialIcons.js +103 -0
  99. package/dist/cjs/SocialSearchComponent-b7faaedc.js +213 -0
  100. package/dist/cjs/SocialShare.js +74 -0
  101. package/dist/cjs/TaxonomyCard.js +253 -0
  102. package/dist/cjs/TaxonomyDescription.js +205 -0
  103. package/dist/cjs/TemplateNormal.js +204 -0
  104. package/dist/cjs/ThumbnailCard.js +59 -0
  105. package/dist/cjs/Ustream.js +156 -0
  106. package/dist/cjs/VerticalHero.js +74 -0
  107. package/dist/cjs/VideoProgramLandingPage.js +260 -0
  108. package/dist/cjs/VideoSeriesCard.js +88 -0
  109. package/dist/cjs/VideoSeriesFilter.js +128 -0
  110. package/dist/cjs/VideoSeriesLandingPage.js +178 -0
  111. package/dist/cjs/VideoSeriesListing.js +422 -0
  112. package/dist/cjs/View.js +2601 -0
  113. package/dist/cjs/YahooHero.js +126 -0
  114. package/dist/cjs/YoutubeGroup.js +371 -0
  115. package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
  116. package/dist/cjs/_is-array-54228b29.js +74 -0
  117. package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
  118. package/dist/cjs/_library-dd23b178.js +5 -0
  119. package/dist/cjs/_object-pie-083f2dd6.js +16 -0
  120. package/dist/cjs/_object-sap-d1978572.js +16 -0
  121. package/dist/cjs/_object-to-array-ce86cae7.js +25 -0
  122. package/dist/cjs/asyncToGenerator-77821af0.js +1395 -0
  123. package/dist/cjs/brightcove-react-player-loader.es-a195642e.js +2232 -0
  124. package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
  125. package/dist/cjs/debounce-d4a2369b.js +216 -0
  126. package/dist/cjs/define-property-e8404b64.js +20 -0
  127. package/dist/cjs/defineProperty-9673846a.js +34 -0
  128. package/dist/cjs/entities-3f9d0f2f.js +506 -0
  129. package/dist/cjs/eq-5fc26c07.js +79 -0
  130. package/dist/cjs/extends-7c86182f.js +87 -0
  131. package/dist/cjs/faundadb.js +644 -0
  132. package/dist/cjs/get-5839e5b5.js +920 -0
  133. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  134. package/dist/cjs/getKeywords.js +46 -0
  135. package/dist/cjs/getPtceActivities.js +89 -0
  136. package/dist/cjs/getQuery.js +28 -0
  137. package/dist/cjs/getRelatedArticle.js +747 -0
  138. package/dist/cjs/getRootDocGroup.js +62 -0
  139. package/dist/cjs/getSerializers.js +64 -0
  140. package/dist/cjs/getSeriesDetail.js +40 -0
  141. package/dist/cjs/getTargeting-4439c99d.js +164 -0
  142. package/dist/cjs/getTargeting.js +13 -0
  143. package/dist/cjs/iconBase-be4097c0.js +106 -0
  144. package/dist/cjs/index-0e4427c8.js +1683 -0
  145. package/dist/cjs/index-187c967e.js +54 -0
  146. package/dist/cjs/index-7361fa72.js +11305 -0
  147. package/dist/cjs/index-eadd5035.js +613 -0
  148. package/dist/cjs/index-efca863c.js +556 -0
  149. package/dist/cjs/index-f86bb269.js +1571 -0
  150. package/dist/cjs/index.es-f3e47207.js +445 -0
  151. package/dist/cjs/index.esm-2bb721c8.js +96 -0
  152. package/dist/cjs/index.esm-c1e16606.js +13 -0
  153. package/dist/cjs/index.esm-d51c9ac6.js +25 -0
  154. package/dist/cjs/index.esm-d81454e7.js +19 -0
  155. package/dist/cjs/index.js +635 -0
  156. package/dist/cjs/inherits-de66ea16.js +188 -0
  157. package/dist/cjs/isSymbol-03abbdf0.js +209 -0
  158. package/dist/cjs/js.cookie-a511c430.js +160 -0
  159. package/dist/cjs/keys-e982b3fa.js +25 -0
  160. package/dist/cjs/lodash-f0783643.js +17195 -0
  161. package/dist/cjs/main-f1c77adb.js +973 -0
  162. package/dist/cjs/moment-aca40de1.js +5669 -0
  163. package/dist/cjs/react-social-icons-af932527.js +616 -0
  164. package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
  165. package/dist/cjs/smoothscroll-99df7f93.js +438 -0
  166. package/dist/cjs/stringify-f7a37a8d.js +17 -0
  167. package/dist/cjs/style-inject.es-dcee06b6.js +30 -0
  168. package/dist/cjs/timeDifferenceCalc.js +39 -0
  169. package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
  170. package/dist/cjs/toNumber-5e1fac58.js +104 -0
  171. package/dist/cjs/typeof-567e31ff.js +382 -0
  172. package/dist/cjs/urlFor.js +65 -0
  173. package/dist/cjs/urlForFile-29d3815a.js +24 -0
  174. package/dist/cjs/ustream-api-3819e4aa.js +106 -0
  175. package/dist/cjs/visibility-sensor-eb2c5b69.js +597 -0
  176. package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
  177. package/dist/esm/AD.js +26 -0
  178. package/dist/esm/AD300x250.js +89 -0
  179. package/dist/esm/AD300x250x600.js +106 -0
  180. package/dist/esm/AD728x90.js +103 -0
  181. package/dist/esm/ADFloatingFooter.js +137 -0
  182. package/dist/esm/ADFooter.js +47 -0
  183. package/dist/esm/ADGutter.js +109 -0
  184. package/dist/esm/ADInfeed-f684cac9.js +59 -0
  185. package/dist/esm/ADSkyscraper.js +111 -0
  186. package/dist/esm/ADSponsoredResources.js +108 -0
  187. package/dist/esm/ADWebcast.js +113 -0
  188. package/dist/esm/ADWelcome.js +160 -0
  189. package/dist/esm/ADlgInfeed-8c438cee.js +54 -0
  190. package/dist/esm/AccordionPanel.js +87 -0
  191. package/dist/esm/AdSlot.js +244 -0
  192. package/dist/esm/AdSlotsProvider.js +176 -0
  193. package/dist/esm/AlgoliaSearch.js +188 -0
  194. package/dist/esm/AlphabeticList.js +129 -0
  195. package/dist/esm/ArticleCarousel.js +40 -0
  196. package/dist/esm/ArticleProgramLandingPage.js +178 -0
  197. package/dist/esm/ArticleSeriesLandingPage.js +156 -0
  198. package/dist/esm/ArticleSeriesListing.js +308 -0
  199. package/dist/esm/AuthWrapper.js +714 -0
  200. package/dist/esm/AuthorComponent-defe68b6.js +90 -0
  201. package/dist/esm/Beam.js +348 -0
  202. package/dist/esm/BlockContent-c99c9a8d.js +909 -0
  203. package/dist/esm/Breadcrumbs.js +100 -0
  204. package/dist/esm/CMEDeck.js +437 -0
  205. package/dist/esm/Column1.js +29 -0
  206. package/dist/esm/Column2.js +65 -0
  207. package/dist/esm/Column3.js +134 -0
  208. package/dist/esm/ConferenceArticleCard.js +87 -0
  209. package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
  210. package/dist/esm/ContentCardPaginated.js +406 -0
  211. package/dist/esm/DeckContent.js +497 -0
  212. package/dist/esm/DeckQueue.js +393 -0
  213. package/dist/esm/DeckQueuePaginated.js +337 -0
  214. package/dist/esm/Dfp-4b99f79d.js +96 -0
  215. package/dist/esm/EventsDeck.js +844 -0
  216. package/dist/esm/ExternalResources.js +210 -0
  217. package/dist/esm/Feature.js +122 -0
  218. package/dist/esm/ForbesHero.js +131 -0
  219. package/dist/esm/GridContent.js +818 -0
  220. package/dist/esm/GridContentPaginated.js +693 -0
  221. package/dist/esm/GridHero.js +141 -0
  222. package/dist/esm/GroupDeck.js +308 -0
  223. package/dist/esm/HamMagazine.js +590 -0
  224. package/dist/esm/Header.js +30 -0
  225. package/dist/esm/HealthCareProfessionalModal.js +70 -0
  226. package/dist/esm/Hero.js +42 -0
  227. package/dist/esm/HighlightenVideo.js +63 -0
  228. package/dist/esm/HorizontalArticleListing.js +159 -0
  229. package/dist/esm/HorizontalHero.js +105 -0
  230. package/dist/esm/ImageSlider-eab2fe41.js +176 -0
  231. package/dist/esm/IssueContentDeck.js +231 -0
  232. package/dist/esm/IssueDeck.js +258 -0
  233. package/dist/esm/IssueLanding.js +166 -0
  234. package/dist/esm/KMTracker.js +25 -0
  235. package/dist/esm/LeftNav.js +136 -0
  236. package/dist/esm/MasterDeck.js +548 -0
  237. package/dist/esm/MasterDeckPaginated.js +461 -0
  238. package/dist/esm/MediaSeriesCard-99048e65.js +9492 -0
  239. package/dist/esm/MediaSeriesLanding.js +496 -0
  240. package/dist/esm/MediaSeriesLandingPaginated.js +522 -0
  241. package/dist/esm/NavDvm.js +233 -0
  242. package/dist/esm/NavFooter-e27bd93b.js +60 -0
  243. package/dist/esm/NavMagazine.js +583 -0
  244. package/dist/esm/NavNative.js +846 -0
  245. package/dist/esm/OncliveHero.js +73 -0
  246. package/dist/esm/OncliveLargeHero.js +235 -0
  247. package/dist/esm/PageFilter.js +66 -0
  248. package/dist/esm/Pagination-cd21f8c2.js +82 -0
  249. package/dist/esm/PartnerDetailListing.js +320 -0
  250. package/dist/esm/PartnerDetailListingPaginated.js +312 -0
  251. package/dist/esm/PdfDownload.js +22 -0
  252. package/dist/esm/PixelTracking.js +156 -0
  253. package/dist/esm/PopUpModal.js +51 -0
  254. package/dist/esm/PtceDeck.js +143 -0
  255. package/dist/esm/PubSection.js +114 -0
  256. package/dist/esm/PubToc.js +81 -0
  257. package/dist/esm/PublicationDeck.js +173 -0
  258. package/dist/esm/PublicationFeature-03500094.js +121 -0
  259. package/dist/esm/PublicationLanding.js +843 -0
  260. package/dist/esm/QueueDeckExpanded.js +1534 -0
  261. package/dist/esm/QueueDeckExpandedPaginated.js +1382 -0
  262. package/dist/esm/RecentNews.js +85 -0
  263. package/dist/esm/RelatedContent.js +108 -0
  264. package/dist/esm/RelatedTopicsDropdown.js +82 -0
  265. package/dist/esm/RolesDeck.js +84 -0
  266. package/dist/esm/Schema.js +95 -0
  267. package/dist/esm/Search.js +57 -0
  268. package/dist/esm/Segment.js +401 -0
  269. package/dist/esm/SeriesListingDeck.js +242 -0
  270. package/dist/esm/SeriesSlider-609f9d94.js +326 -0
  271. package/dist/esm/SetCookie.js +8 -0
  272. package/dist/esm/SideFooter.js +145 -0
  273. package/dist/esm/SocialIcons.js +97 -0
  274. package/dist/esm/SocialSearchComponent-1d8a9f59.js +204 -0
  275. package/dist/esm/SocialShare.js +67 -0
  276. package/dist/esm/TaxonomyCard.js +243 -0
  277. package/dist/esm/TaxonomyDescription.js +198 -0
  278. package/dist/esm/TemplateNormal.js +197 -0
  279. package/dist/esm/ThumbnailCard.js +52 -0
  280. package/dist/esm/Ustream.js +150 -0
  281. package/dist/esm/VerticalHero.js +68 -0
  282. package/dist/esm/VideoProgramLandingPage.js +251 -0
  283. package/dist/esm/VideoSeriesCard.js +82 -0
  284. package/dist/esm/VideoSeriesFilter.js +122 -0
  285. package/dist/esm/VideoSeriesLandingPage.js +172 -0
  286. package/dist/esm/VideoSeriesListing.js +415 -0
  287. package/dist/esm/View.js +2590 -0
  288. package/dist/esm/YahooHero.js +120 -0
  289. package/dist/esm/YoutubeGroup.js +365 -0
  290. package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
  291. package/dist/esm/_is-array-893ab020.js +71 -0
  292. package/dist/esm/_iter-detect-f089461c.js +48 -0
  293. package/dist/esm/_library-528f1934.js +3 -0
  294. package/dist/esm/_object-pie-133f504a.js +13 -0
  295. package/dist/esm/_object-sap-169d6272.js +14 -0
  296. package/dist/esm/_object-to-array-50a6b9a3.js +23 -0
  297. package/dist/esm/asyncToGenerator-9716ae8d.js +1387 -0
  298. package/dist/esm/brightcove-react-player-loader.es-57a70a56.js +2226 -0
  299. package/dist/esm/core.get-iterator-method-e903ff31.js +547 -0
  300. package/dist/esm/debounce-533d9748.js +214 -0
  301. package/dist/esm/define-property-99e66838.js +18 -0
  302. package/dist/esm/defineProperty-8fa0bc8d.js +32 -0
  303. package/dist/esm/entities-932b50cf.js +503 -0
  304. package/dist/esm/eq-bdcbf886.js +76 -0
  305. package/dist/esm/extends-dc6a71fd.js +83 -0
  306. package/dist/esm/faundadb.js +636 -0
  307. package/dist/esm/get-3c308da4.js +918 -0
  308. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  309. package/dist/esm/getKeywords.js +44 -0
  310. package/dist/esm/getPtceActivities.js +87 -0
  311. package/dist/esm/getQuery.js +26 -0
  312. package/dist/esm/getRelatedArticle.js +745 -0
  313. package/dist/esm/getRootDocGroup.js +60 -0
  314. package/dist/esm/getSerializers.js +58 -0
  315. package/dist/esm/getSeriesDetail.js +38 -0
  316. package/dist/esm/getTargeting-db566006.js +161 -0
  317. package/dist/esm/getTargeting.js +7 -0
  318. package/dist/esm/iconBase-ccc56b97.js +81 -0
  319. package/dist/esm/index-0dbff1d1.js +553 -0
  320. package/dist/esm/index-5cc7b406.js +1674 -0
  321. package/dist/esm/index-755f2cc2.js +605 -0
  322. package/dist/esm/index-79cfd25c.js +1569 -0
  323. package/dist/esm/index-c60f3bb6.js +11284 -0
  324. package/dist/esm/index-c7e2ac95.js +52 -0
  325. package/dist/esm/index.es-a6137319.js +439 -0
  326. package/dist/esm/index.esm-1bd8a0a8.js +18 -0
  327. package/dist/esm/index.esm-37268dca.js +89 -0
  328. package/dist/esm/index.esm-9b042655.js +10 -0
  329. package/dist/esm/index.esm-eb1e8e80.js +14 -0
  330. package/dist/esm/index.js +529 -0
  331. package/dist/esm/inherits-8a801a18.js +179 -0
  332. package/dist/esm/isSymbol-a7e9aafe.js +203 -0
  333. package/dist/esm/js.cookie-6874175c.js +158 -0
  334. package/dist/esm/keys-425c8ab0.js +23 -0
  335. package/dist/esm/lodash-f97fd99a.js +17193 -0
  336. package/dist/esm/main-1894c974.js +961 -0
  337. package/dist/esm/moment-bc12cb97.js +5667 -0
  338. package/dist/esm/react-social-icons-9be47857.js +609 -0
  339. package/dist/esm/slicedToArray-ca2c8b8d.js +92 -0
  340. package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
  341. package/dist/esm/stringify-c21932b3.js +15 -0
  342. package/dist/esm/style-inject.es-1f59c1d0.js +28 -0
  343. package/dist/esm/timeDifferenceCalc.js +37 -0
  344. package/dist/esm/toConsumableArray-7b1c0e23.js +71 -0
  345. package/dist/esm/toNumber-5aeba6e7.js +102 -0
  346. package/dist/esm/typeof-83d9eb10.js +378 -0
  347. package/dist/esm/urlFor.js +63 -0
  348. package/dist/esm/urlForFile-413f5ddb.js +22 -0
  349. package/dist/esm/ustream-api-41166338.js +104 -0
  350. package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
  351. package/dist/esm/web.dom.iterable-fdf034f5.js +48 -0
  352. package/package.json +115 -83
  353. package/dist/index.es.js +0 -12784
  354. package/dist/index.es.js.map +0 -1
  355. package/dist/index.js +0 -12819
  356. package/dist/index.js.map +0 -1
@@ -0,0 +1,251 @@
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-9716ae8d.js';
2
+ import { _ as _extends } from './extends-dc6a71fd.js';
3
+ import React__default from 'react';
4
+ import { B as BlockContent } from './BlockContent-c99c9a8d.js';
5
+ import Col from 'react-bootstrap/Col';
6
+ import Form from 'react-bootstrap/Form';
7
+ import Button from 'react-bootstrap/Button';
8
+ import { g as getSerializers } from './index-c60f3bb6.js';
9
+ import VideoSeriesListing from './VideoSeriesListing.js';
10
+ import './_commonjsHelpers-0c4b6f40.js';
11
+ import './core.get-iterator-method-e903ff31.js';
12
+ import './web.dom.iterable-fdf034f5.js';
13
+ import './_library-528f1934.js';
14
+ import './_iter-detect-f089461c.js';
15
+ import './_object-pie-133f504a.js';
16
+ import 'prop-types';
17
+ import './index-0dbff1d1.js';
18
+ import './slicedToArray-ca2c8b8d.js';
19
+ import 'react-bootstrap';
20
+ import './urlFor.js';
21
+ import './index-5cc7b406.js';
22
+ import 'next/router';
23
+ import './index-c7e2ac95.js';
24
+ import './Beam.js';
25
+ import './stringify-c21932b3.js';
26
+ import './Segment.js';
27
+ import './main-1894c974.js';
28
+ import './urlForFile-413f5ddb.js';
29
+ import './index-755f2cc2.js';
30
+ import 'react-dom';
31
+ import './typeof-83d9eb10.js';
32
+ import './_is-array-893ab020.js';
33
+ import './brightcove-react-player-loader.es-57a70a56.js';
34
+ import 'react-bootstrap/Modal';
35
+ import 'react-ga';
36
+ import './GroupDeck.js';
37
+ import './smoothscroll-fa4e3f8c.js';
38
+ import './moment-bc12cb97.js';
39
+ import './SocialShare.js';
40
+ import 'next/head';
41
+ import 'react-share';
42
+ import './_object-to-array-50a6b9a3.js';
43
+ import './toConsumableArray-7b1c0e23.js';
44
+ import 'react-bootstrap/Pagination';
45
+ import './entities-932b50cf.js';
46
+ import './AdSlot.js';
47
+ import './debounce-533d9748.js';
48
+ import './isSymbol-a7e9aafe.js';
49
+ import './toNumber-5aeba6e7.js';
50
+ import 'react-bootstrap/Row';
51
+ import './inherits-8a801a18.js';
52
+ import './_object-sap-169d6272.js';
53
+ import './define-property-99e66838.js';
54
+ import './index.esm-eb1e8e80.js';
55
+ import './iconBase-ccc56b97.js';
56
+ import 'react-bootstrap/Figure';
57
+ import 'react-bootstrap/OverlayTrigger';
58
+ import 'react-bootstrap/Tooltip';
59
+ import 'react-bootstrap/Popover';
60
+ import 'react-bootstrap/Container';
61
+ import './visibility-sensor-72fd8f8b.js';
62
+ import './YoutubeGroup.js';
63
+ import './index.es-a6137319.js';
64
+
65
+ var _this = undefined;
66
+
67
+ var cache = { topic_ids: [] };
68
+
69
+ var VideoProgramLandingPage = function VideoProgramLandingPage(props) {
70
+ var client = props.client,
71
+ virtualBlock = props.virtualBlock,
72
+ topics = props.topics,
73
+ posts = props.posts,
74
+ query = props.query,
75
+ params = props.params,
76
+ _props$currentPage = props.currentPage,
77
+ currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
78
+ pageview = props.pageview,
79
+ _props$columns = props.columns,
80
+ columns = _props$columns === undefined ? 'rotate' : _props$columns,
81
+ _props$variant = props.variant,
82
+ variant = _props$variant === undefined ? 'top' : _props$variant,
83
+ _props$page = props.page,
84
+ page = _props$page === undefined ? '' : _props$page,
85
+ _props$autoScroll = props.autoScroll,
86
+ autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll,
87
+ defaultImage = props.defaultImage,
88
+ mapping = props.mapping;
89
+
90
+ return React__default.createElement(
91
+ 'div',
92
+ null,
93
+ virtualBlock && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: virtualBlock.body, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
94
+ React__default.createElement(
95
+ 'div',
96
+ { className: 'peer-exchange-filter-container' },
97
+ React__default.createElement(
98
+ Form,
99
+ { className: 'ml-3', method: 'post' },
100
+ React__default.createElement(
101
+ Form.Row,
102
+ null,
103
+ React__default.createElement(
104
+ Col,
105
+ null,
106
+ React__default.createElement(
107
+ Form.Group,
108
+ { controlId: 'topic' },
109
+ React__default.createElement(
110
+ Form.Control,
111
+ { as: 'select', name: 'topic_id', placeholder: 'Filter by Topic' },
112
+ React__default.createElement(
113
+ 'option',
114
+ { value: '' },
115
+ 'All Topics'
116
+ ),
117
+ topics && topics.map(function (topic) {
118
+ if (props.topic_id === topic._id || topic.name == 'Peer Exchange') {
119
+ return null;
120
+ } else {
121
+ return React__default.createElement(
122
+ 'option',
123
+ { value: topic._id },
124
+ topic.name
125
+ );
126
+ }
127
+ })
128
+ )
129
+ )
130
+ ),
131
+ React__default.createElement(
132
+ Col,
133
+ null,
134
+ React__default.createElement(
135
+ Button,
136
+ { type: 'submit', variant: 'secondary' },
137
+ 'Apply'
138
+ )
139
+ )
140
+ )
141
+ )
142
+ ),
143
+ posts && React__default.createElement(VideoSeriesListing, {
144
+ client: client,
145
+ mapping: mapping,
146
+ dataRecord: posts,
147
+ query: query,
148
+ params: params,
149
+ currentPage: currentPage,
150
+ pageview: pageview,
151
+ columns: columns,
152
+ variant: variant,
153
+ page: page,
154
+ autoScroll: autoScroll,
155
+ defaultImage: defaultImage
156
+ })
157
+ );
158
+ };
159
+
160
+ VideoProgramLandingPage.getInitialData = function () {
161
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(context, client) {
162
+ var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 6;
163
+ var topicId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
164
+ var taxonomyId = arguments[4];
165
+ var pathname, virtualBlock, query, taxonomy_ids_res, taxonomy_ids, i, res, j, topics, urlQuery, currentPage, start, params, posts;
166
+ return regenerator.wrap(function _callee$(_context) {
167
+ while (1) {
168
+ switch (_context.prev = _context.next) {
169
+ case 0:
170
+ // Virtual Block
171
+ pathname = context.pathname;
172
+ _context.next = 3;
173
+ return client.fetch('*[_type == \'virtualBlock\' && identifier == \'' + pathname + '\'][0]');
174
+
175
+ case 3:
176
+ virtualBlock = _context.sent;
177
+
178
+
179
+ // Topics for filtering
180
+ query = '';
181
+
182
+ if (!(cache && cache.topic_ids && cache.topic_ids.length > 0)) {
183
+ _context.next = 8;
184
+ break;
185
+ }
186
+
187
+ _context.next = 15;
188
+ break;
189
+
190
+ case 8:
191
+ query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url)\n && references(\'' + taxonomyId + '\') \n && is_visible == true \n && dateTime(published) <= dateTime(now())\n ]{\n \'taxonomy_id\': taxonomyMapping[]->_id\n }';
192
+ _context.next = 11;
193
+ return client.fetch(query);
194
+
195
+ case 11:
196
+ taxonomy_ids_res = _context.sent;
197
+ taxonomy_ids = [];
198
+
199
+ for (i = 0; i < taxonomy_ids_res.length; i++) {
200
+ res = taxonomy_ids_res[i];
201
+
202
+ for (j = 0; j < res.taxonomy_id.length; j++) {
203
+ if (!taxonomy_ids.includes(res.taxonomy_id[j])) {
204
+ taxonomy_ids.push(res.taxonomy_id[j]);
205
+ }
206
+ }
207
+ }
208
+ cache.topic_ids = taxonomy_ids;
209
+
210
+ case 15:
211
+ query = '*[_type == \'taxonomy\' && _id in $taxonomy_ids] | order(name asc)';
212
+ _context.next = 18;
213
+ return client.fetch(query, { taxonomy_ids: cache.topic_ids });
214
+
215
+ case 18:
216
+ topics = _context.sent;
217
+
218
+
219
+ // Posts
220
+ urlQuery = context.query;
221
+ currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
222
+ start = (currentPage - 1) * itemsPerPage;
223
+ params = {
224
+ from: start,
225
+ to: start + itemsPerPage,
226
+ url: pathname,
227
+ itemsPerPage: itemsPerPage
228
+ };
229
+
230
+ query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail{ ..., asset->},\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
231
+ _context.next = 26;
232
+ return client.fetch(query, params);
233
+
234
+ case 26:
235
+ posts = _context.sent;
236
+ return _context.abrupt('return', { virtualBlock: virtualBlock, topics: topics, posts: posts, query: query, params: params, currentPage: currentPage });
237
+
238
+ case 28:
239
+ case 'end':
240
+ return _context.stop();
241
+ }
242
+ }
243
+ }, _callee, _this);
244
+ }));
245
+
246
+ return function (_x, _x2) {
247
+ return _ref.apply(this, arguments);
248
+ };
249
+ }();
250
+
251
+ export default VideoProgramLandingPage;
@@ -0,0 +1,82 @@
1
+ import { _ as _typeof } from './typeof-83d9eb10.js';
2
+ import React__default from 'react';
3
+ import { L as LazyLoad } from './index-755f2cc2.js';
4
+ import urlFor from './urlFor.js';
5
+ import { m as moment } from './moment-bc12cb97.js';
6
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
+ import 'prop-types';
8
+ import './_commonjsHelpers-0c4b6f40.js';
9
+ import './core.get-iterator-method-e903ff31.js';
10
+ import './web.dom.iterable-fdf034f5.js';
11
+ import './_is-array-893ab020.js';
12
+ import './_object-pie-133f504a.js';
13
+ import './_library-528f1934.js';
14
+ import 'react-dom';
15
+ import './slicedToArray-ca2c8b8d.js';
16
+ import './index-0dbff1d1.js';
17
+
18
+ var css = ".VideoSeriesCard-module_article__Hlc3e {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.VideoSeriesCard-module_article__Hlc3e a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ {\r\n width: 25%;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_published__1fI0q {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_summary__3hWJT {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o {\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o span {\r\n color: #6d6d6d;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .VideoSeriesCard-module_article__Hlc3e {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .VideoSeriesCard-module_article__Hlc3e a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ figure {\r\n margin: 0;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N {\r\n width: 90%;\r\n padding: 1rem !important;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N h2 {\r\n font-size: 1rem;\r\n }\r\n}\r\n";
19
+ var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
20
+ styleInject(css);
21
+
22
+ var VideoSeriesCard = function VideoSeriesCard(props) {
23
+ var data = props.data,
24
+ variant = props.variant,
25
+ defaultImage = props.defaultImage,
26
+ client = props.client,
27
+ index = props.index;
28
+
29
+ var episode = parseInt(index) + 1;
30
+
31
+ return React__default.createElement(
32
+ 'div',
33
+ { className: styles.article },
34
+ React__default.createElement(
35
+ 'a',
36
+ { href: '/view/' + data.url.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
37
+ React__default.createElement(
38
+ 'div',
39
+ { className: styles.thumb },
40
+ React__default.createElement(
41
+ 'figure',
42
+ null,
43
+ React__default.createElement(
44
+ LazyLoad,
45
+ null,
46
+ React__default.createElement('img', {
47
+ src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
48
+ })
49
+ )
50
+ )
51
+ ),
52
+ React__default.createElement(
53
+ 'div',
54
+ { className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
55
+ React__default.createElement(
56
+ 'div',
57
+ { style: { fontSize: '1.3rem', fontWeight: 'bold' } },
58
+ episode && 'EP ' + episode + ': ',
59
+ data.title
60
+ ),
61
+ data.published && React__default.createElement(
62
+ 'p',
63
+ { className: styles.published },
64
+ moment(data.published).format('MMMM Do YYYY')
65
+ ),
66
+ data.authorMapping && data.authorMapping.displayName && React__default.createElement(
67
+ 'p',
68
+ { className: styles.author },
69
+ 'By ',
70
+ React__default.createElement(
71
+ 'span',
72
+ null,
73
+ data.authorMapping.displayName
74
+ )
75
+ ),
76
+ data.intro && React__default.createElement('p', { dangerouslySetInnerHTML: { __html: data.intro }, className: styles.summary })
77
+ )
78
+ )
79
+ );
80
+ };
81
+
82
+ export default VideoSeriesCard;
@@ -0,0 +1,122 @@
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-9716ae8d.js';
2
+ import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
3
+ import React__default, { useState, useEffect } from 'react';
4
+ import { withRouter } from 'next/router';
5
+ import { DropdownButton, Dropdown } from 'react-bootstrap';
6
+ import './_commonjsHelpers-0c4b6f40.js';
7
+ import './core.get-iterator-method-e903ff31.js';
8
+ import './web.dom.iterable-fdf034f5.js';
9
+ import './_library-528f1934.js';
10
+ import './_iter-detect-f089461c.js';
11
+
12
+ var _this = undefined;
13
+
14
+ var VideoSeriesFilter = function VideoSeriesFilter(props) {
15
+ var filterData = props.filterData,
16
+ queryProps = props.queryProps,
17
+ filteredList = props.filteredList,
18
+ loadingStatus = props.loadingStatus,
19
+ _props$exclude = props.exclude,
20
+ exclude = _props$exclude === undefined ? null : _props$exclude,
21
+ router = props.router;
22
+ var taxonomyID = queryProps.taxonomyID,
23
+ currentPage = queryProps.currentPage,
24
+ client = queryProps.client,
25
+ params = queryProps.params;
26
+
27
+ var _useState = useState({ name: 'All Topics', id: '' }),
28
+ _useState2 = _slicedToArray(_useState, 2),
29
+ filter = _useState2[0],
30
+ setFilter = _useState2[1];
31
+
32
+ var filterList = function () {
33
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
34
+ var query;
35
+ return regenerator.wrap(function _callee$(_context) {
36
+ while (1) {
37
+ switch (_context.prev = _context.next) {
38
+ case 0:
39
+ loadingStatus && loadingStatus(true);
40
+ filteredList(null);
41
+ query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail{ ..., asset->},\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \'pageNumber\': ' + currentPage + '\n }';
42
+ _context.next = 5;
43
+ return client.fetch(query, params).then(function (res) {
44
+ filteredList({ posts: res, query: query });
45
+ });
46
+
47
+ case 5:
48
+ loadingStatus && loadingStatus(false);
49
+
50
+ case 6:
51
+ case 'end':
52
+ return _context.stop();
53
+ }
54
+ }
55
+ }, _callee, _this);
56
+ }));
57
+
58
+ return function filterList() {
59
+ return _ref.apply(this, arguments);
60
+ };
61
+ }();
62
+ useEffect(function () {
63
+ if (router && router.query && router.query.filter && filterData && filterData.length > 0) {
64
+ filterData.map(function (filterItem) {
65
+ if (filterItem.name === router.query.filter) {
66
+ setFilter({ name: filterItem.name, id: filterItem._id });
67
+ }
68
+ });
69
+ }
70
+ }, []);
71
+ useEffect(function () {
72
+ filterList();
73
+ var qString = '';
74
+ router.asPath.includes('?') && router.asPath.slice(router.asPath.indexOf('?') + 1).split('&').forEach(function (item) {
75
+ if (item.includes('=') && item.split('=')[0] !== 'filter') {
76
+ if (qString === '') {
77
+ qString += item.split('=')[0] + '=' + item.split('=')[1];
78
+ } else {
79
+ qString += '&' + item.split('=')[0] + '=' + item.split('=')[1];
80
+ }
81
+ }
82
+ });
83
+ if (filter.id !== '') {
84
+ router.push(router.pathname, router.pathname + '?filter=' + filter.name + (qString !== '' ? '&' + qString : ''), {
85
+ shallow: true
86
+ });
87
+ } else {
88
+ router.push(router.pathname, '' + router.pathname + (qString !== '' ? '?' + qString : ''), {
89
+ shallow: true
90
+ });
91
+ }
92
+ }, [filter]);
93
+ return React__default.createElement(
94
+ React__default.Fragment,
95
+ null,
96
+ React__default.createElement(
97
+ DropdownButton,
98
+ { className: 'filter_dropdown', variant: 'primary', title: filter.name },
99
+ React__default.createElement(
100
+ Dropdown.Item,
101
+ { key: 'all', onClick: function onClick() {
102
+ return setFilter({ name: 'All Topics', id: '' });
103
+ } },
104
+ 'All Topics'
105
+ ),
106
+ filterData && filterData.map(function (filterItem) {
107
+ if (filterItem.identifier !== exclude) {
108
+ return React__default.createElement(
109
+ Dropdown.Item,
110
+ { key: filterItem._id, onClick: function onClick() {
111
+ return setFilter({ name: filterItem.name, id: filterItem._id });
112
+ }, value: filterItem._id, selected: true },
113
+ filterItem.name
114
+ );
115
+ }
116
+ })
117
+ )
118
+ );
119
+ };
120
+ var VideoSeriesFilter$1 = withRouter(VideoSeriesFilter);
121
+
122
+ export default VideoSeriesFilter$1;
@@ -0,0 +1,172 @@
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-9716ae8d.js';
2
+ import { _ as _typeof } from './typeof-83d9eb10.js';
3
+ import React__default from 'react';
4
+ import { m as moment } from './moment-bc12cb97.js';
5
+ import { g as getYoutubeId } from './index-c7e2ac95.js';
6
+ import Breadcrumbs from './Breadcrumbs.js';
7
+ import MasterDeck from './MasterDeck.js';
8
+ import VideoSeriesCard from './VideoSeriesCard.js';
9
+ import './_commonjsHelpers-0c4b6f40.js';
10
+ import './core.get-iterator-method-e903ff31.js';
11
+ import './web.dom.iterable-fdf034f5.js';
12
+ import './_library-528f1934.js';
13
+ import './_iter-detect-f089461c.js';
14
+ import './_is-array-893ab020.js';
15
+ import './_object-pie-133f504a.js';
16
+ import './slicedToArray-ca2c8b8d.js';
17
+ import 'react-bootstrap/Breadcrumb';
18
+ import './toConsumableArray-7b1c0e23.js';
19
+ import './extends-dc6a71fd.js';
20
+ import './inherits-8a801a18.js';
21
+ import './_object-sap-169d6272.js';
22
+ import './define-property-99e66838.js';
23
+ import './index-5cc7b406.js';
24
+ import 'prop-types';
25
+ import 'react-bootstrap/Container';
26
+ import 'react-bootstrap/Row';
27
+ import 'react-bootstrap/Col';
28
+ import 'react-bootstrap/Card';
29
+ import 'next/router';
30
+ import './lodash-f97fd99a.js';
31
+ import './debounce-533d9748.js';
32
+ import './isSymbol-a7e9aafe.js';
33
+ import './toNumber-5aeba6e7.js';
34
+ import './index.es-a6137319.js';
35
+ import './visibility-sensor-72fd8f8b.js';
36
+ import 'react-dom';
37
+ import './index-0dbff1d1.js';
38
+ import './ADlgInfeed-8c438cee.js';
39
+ import './AdSlot.js';
40
+ import './Beam.js';
41
+ import './stringify-c21932b3.js';
42
+ import './Segment.js';
43
+ import './main-1894c974.js';
44
+ import './ADInfeed-f684cac9.js';
45
+ import './index-755f2cc2.js';
46
+ import './urlFor.js';
47
+ import './style-inject.es-1f59c1d0.js';
48
+
49
+ var _this = undefined;
50
+
51
+ var VideoSeriesLandingPage = function VideoSeriesLandingPage(props) {
52
+ var summary = props.summary,
53
+ client = props.client,
54
+ posts = props.posts,
55
+ _props$variant = props.variant,
56
+ variant = _props$variant === undefined ? 'left' : _props$variant,
57
+ _props$defaultImage = props.defaultImage,
58
+ defaultImage = _props$defaultImage === undefined ? '/placeholder.jpg' : _props$defaultImage,
59
+ mapping = props.mapping,
60
+ query = props.query,
61
+ params = props.params,
62
+ _props$currentPage = props.currentPage,
63
+ currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
64
+ pageview = props.pageview,
65
+ _props$autoScroll = props.autoScroll,
66
+ autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll,
67
+ rightItems = props.rightItems,
68
+ brandInsightAd = props.brandInsightAd,
69
+ _props$showBI = props.showBI,
70
+ showBI = _props$showBI === undefined ? false : _props$showBI,
71
+ _props$lgInfeedAd = props.lgInfeedAd,
72
+ lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
73
+
74
+ return React__default.createElement(
75
+ 'div',
76
+ null,
77
+ summary && React__default.createElement(
78
+ 'div',
79
+ { style: { fontSize: '1rem' }, className: 'series-summary px-1 my-4' },
80
+ summary
81
+ ),
82
+ React__default.createElement(Breadcrumbs, null),
83
+ posts && React__default.createElement(MasterDeck, {
84
+ deck: VideoSeriesCard,
85
+ variant: variant,
86
+ client: client,
87
+ defaultImage: defaultImage,
88
+ mapping: mapping,
89
+ dataRecord: posts,
90
+ query: query,
91
+ params: params,
92
+ currentPage: currentPage,
93
+ pageview: pageview,
94
+ autoScroll: autoScroll,
95
+ rightItems: rightItems,
96
+ brandInsightAd: brandInsightAd,
97
+ showBI: showBI,
98
+ lgInfeedAd: lgInfeedAd
99
+ })
100
+ );
101
+ };
102
+
103
+ VideoSeriesLandingPage.getInitialData = function () {
104
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(context, client) {
105
+ var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
106
+ var taxonomyId = arguments[3];
107
+ var today, urlQuery, seriesName, currentPage, start, params, query, posts, seriesTitle, summary, url;
108
+ return regenerator.wrap(function _callee$(_context) {
109
+ while (1) {
110
+ switch (_context.prev = _context.next) {
111
+ case 0:
112
+ today = moment().utc().format();
113
+ urlQuery = context.query;
114
+ seriesName = urlQuery.series;
115
+ currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
116
+ start = (currentPage - 1) * itemsPerPage;
117
+ params = {
118
+ from: start,
119
+ to: start + itemsPerPage,
120
+ itemsPerPage: itemsPerPage
121
+ };
122
+ query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && dateTime(published) <= dateTime(now()) \n && references(\'' + taxonomyId + '\') \n && is_visible == true \n && url.current == \'' + seriesName + '\'\n ][$from...$to] | order(published desc) {\n\t\ttitle,\n\t\tsummary,\n\t\tpublished,\n\t\tthumbnail,\n\t\turl,\n\t\ttaxonomy,\n\t\tbody[_type == "youtubeGallery"]\n\t}';
123
+ _context.next = 9;
124
+ return client.fetch(query, params);
125
+
126
+ case 9:
127
+ posts = _context.sent;
128
+ seriesTitle = '';
129
+ summary = '';
130
+
131
+
132
+ if (posts.length > 0 && posts[0].body.length > 0 && posts[0].body[0].videos) {
133
+ url = posts[0].url.current + '?seriesVid=';
134
+
135
+ seriesTitle = posts[0].title;
136
+ summary = posts[0].summary;
137
+ posts = posts[0].body[0].videos.filter(function (video) {
138
+ if ((video.is_visible === true || !video.hasOwnProperty('is_visible')) && (today >= video.published || !video.hasOwnProperty('published'))) {
139
+ return video;
140
+ }
141
+ });
142
+ //start youtube thumbnail fix
143
+ posts.map(function (post, index) {
144
+ if (post.thumbnail && _typeof(post.thumbnail) !== 'object' || !post.thumbnail) {
145
+ var id = getYoutubeId(post.url);
146
+ var imageURL = 'https://img.youtube.com/vi/' + id + '/hqdefault.jpg';
147
+ return post['thumbnail'] = imageURL, post['url'] = {
148
+ current: url + (index + 1)
149
+ };
150
+ }
151
+ return post['url'] = {
152
+ current: url + (index + 1)
153
+ };
154
+ });
155
+ //end
156
+ }
157
+ return _context.abrupt('return', { posts: posts, query: query, params: params, seriesTitle: seriesTitle, summary: summary, seriesName: seriesName });
158
+
159
+ case 14:
160
+ case 'end':
161
+ return _context.stop();
162
+ }
163
+ }
164
+ }, _callee, _this);
165
+ }));
166
+
167
+ return function (_x, _x2) {
168
+ return _ref.apply(this, arguments);
169
+ };
170
+ }();
171
+
172
+ export default VideoSeriesLandingPage;