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

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 +172 -168
  2. package/dist/index.es.js +12800 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/index.js +12835 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +84 -115
  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 -143
  12. package/dist/cjs/ADFooter.js +0 -53
  13. package/dist/cjs/ADGutter.js +0 -115
  14. package/dist/cjs/ADInfeed-cf54cb8a.js +0 -66
  15. package/dist/cjs/ADSkyscraper.js +0 -117
  16. package/dist/cjs/ADSponsoredResources.js +0 -114
  17. package/dist/cjs/ADWebcast.js +0 -119
  18. package/dist/cjs/ADWelcome.js +0 -166
  19. package/dist/cjs/ADlgInfeed-d06624d8.js +0 -60
  20. package/dist/cjs/AccordionPanel.js +0 -94
  21. package/dist/cjs/AdSlot.js +0 -251
  22. package/dist/cjs/AdSlotsProvider.js +0 -183
  23. package/dist/cjs/AlgoliaSearch.js +0 -195
  24. package/dist/cjs/AlphabeticList.js +0 -135
  25. package/dist/cjs/ArticleCarousel.js +0 -46
  26. package/dist/cjs/ArticleProgramLandingPage.js +0 -184
  27. package/dist/cjs/ArticleSeriesLandingPage.js +0 -162
  28. package/dist/cjs/ArticleSeriesListing.js +0 -315
  29. package/dist/cjs/AuthWrapper.js +0 -720
  30. package/dist/cjs/AuthorComponent-39b37d84.js +0 -96
  31. package/dist/cjs/Beam.js +0 -350
  32. package/dist/cjs/BlockContent-36e54d77.js +0 -916
  33. package/dist/cjs/Breadcrumbs.js +0 -107
  34. package/dist/cjs/CMEDeck.js +0 -443
  35. package/dist/cjs/Column1.js +0 -39
  36. package/dist/cjs/Column2.js +0 -75
  37. package/dist/cjs/Column3.js +0 -144
  38. package/dist/cjs/ConferenceArticleCard.js +0 -93
  39. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  40. package/dist/cjs/ContentCardPaginated.js +0 -417
  41. package/dist/cjs/DeckContent.js +0 -507
  42. package/dist/cjs/DeckQueue.js +0 -403
  43. package/dist/cjs/DeckQueuePaginated.js +0 -348
  44. package/dist/cjs/Dfp-94f8ccdf.js +0 -103
  45. package/dist/cjs/EventsDeck.js +0 -857
  46. package/dist/cjs/ExternalResources.js +0 -217
  47. package/dist/cjs/Feature.js +0 -129
  48. package/dist/cjs/ForbesHero.js +0 -137
  49. package/dist/cjs/GridContent.js +0 -828
  50. package/dist/cjs/GridContentPaginated.js +0 -704
  51. package/dist/cjs/GridHero.js +0 -147
  52. package/dist/cjs/GroupDeck.js +0 -314
  53. package/dist/cjs/HamMagazine.js +0 -602
  54. package/dist/cjs/Header.js +0 -39
  55. package/dist/cjs/HealthCareProfessionalModal.js +0 -78
  56. package/dist/cjs/Hero.js +0 -48
  57. package/dist/cjs/HighlightenVideo.js +0 -69
  58. package/dist/cjs/HorizontalArticleListing.js +0 -165
  59. package/dist/cjs/HorizontalHero.js +0 -111
  60. package/dist/cjs/ImageSlider-a7fb6218.js +0 -182
  61. package/dist/cjs/IssueContentDeck.js +0 -241
  62. package/dist/cjs/IssueDeck.js +0 -268
  63. package/dist/cjs/IssueLanding.js +0 -172
  64. package/dist/cjs/KMTracker.js +0 -27
  65. package/dist/cjs/LeftNav.js +0 -145
  66. package/dist/cjs/MasterDeck.js +0 -555
  67. package/dist/cjs/MasterDeckPaginated.js +0 -469
  68. package/dist/cjs/MediaSeriesCard-36eab8b7.js +0 -9502
  69. package/dist/cjs/MediaSeriesLanding.js +0 -503
  70. package/dist/cjs/MediaSeriesLandingPaginated.js +0 -529
  71. package/dist/cjs/NavDvm.js +0 -245
  72. package/dist/cjs/NavFooter-3dcd99a8.js +0 -66
  73. package/dist/cjs/NavMagazine.js +0 -595
  74. package/dist/cjs/NavNative.js +0 -861
  75. package/dist/cjs/OncliveHero.js +0 -79
  76. package/dist/cjs/OncliveLargeHero.js +0 -241
  77. package/dist/cjs/PageFilter.js +0 -72
  78. package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
  79. package/dist/cjs/PartnerDetailListing.js +0 -326
  80. package/dist/cjs/PartnerDetailListingPaginated.js +0 -318
  81. package/dist/cjs/PdfDownload.js +0 -28
  82. package/dist/cjs/PixelTracking.js +0 -165
  83. package/dist/cjs/PopUpModal.js +0 -58
  84. package/dist/cjs/PtceDeck.js +0 -149
  85. package/dist/cjs/PubSection.js +0 -120
  86. package/dist/cjs/PubToc.js +0 -87
  87. package/dist/cjs/PublicationDeck.js +0 -183
  88. package/dist/cjs/PublicationFeature-be5f3503.js +0 -130
  89. package/dist/cjs/PublicationLanding.js +0 -853
  90. package/dist/cjs/QueueDeckExpanded.js +0 -1540
  91. package/dist/cjs/QueueDeckExpandedPaginated.js +0 -1388
  92. package/dist/cjs/RecentNews.js +0 -91
  93. package/dist/cjs/RelatedContent.js +0 -114
  94. package/dist/cjs/RelatedTopicsDropdown.js +0 -90
  95. package/dist/cjs/RolesDeck.js +0 -94
  96. package/dist/cjs/Schema.js +0 -101
  97. package/dist/cjs/Search.js +0 -66
  98. package/dist/cjs/Segment.js +0 -403
  99. package/dist/cjs/SeriesListingDeck.js +0 -248
  100. package/dist/cjs/SeriesSlider-b94f1dd5.js +0 -332
  101. package/dist/cjs/SetCookie.js +0 -10
  102. package/dist/cjs/SideFooter.js +0 -151
  103. package/dist/cjs/SocialIcons.js +0 -103
  104. package/dist/cjs/SocialSearchComponent-b7faaedc.js +0 -213
  105. package/dist/cjs/SocialShare.js +0 -74
  106. package/dist/cjs/TaxonomyCard.js +0 -253
  107. package/dist/cjs/TaxonomyDescription.js +0 -205
  108. package/dist/cjs/TemplateNormal.js +0 -204
  109. package/dist/cjs/ThumbnailCard.js +0 -59
  110. package/dist/cjs/Ustream.js +0 -156
  111. package/dist/cjs/VerticalHero.js +0 -74
  112. package/dist/cjs/VideoProgramLandingPage.js +0 -260
  113. package/dist/cjs/VideoSeriesCard.js +0 -88
  114. package/dist/cjs/VideoSeriesFilter.js +0 -128
  115. package/dist/cjs/VideoSeriesLandingPage.js +0 -178
  116. package/dist/cjs/VideoSeriesListing.js +0 -422
  117. package/dist/cjs/View.js +0 -2601
  118. package/dist/cjs/YahooHero.js +0 -126
  119. package/dist/cjs/YoutubeGroup.js +0 -371
  120. package/dist/cjs/_commonjsHelpers-06173234.js +0 -25
  121. package/dist/cjs/_is-array-54228b29.js +0 -74
  122. package/dist/cjs/_iter-detect-b1df62f0.js +0 -52
  123. package/dist/cjs/_library-dd23b178.js +0 -5
  124. package/dist/cjs/_object-pie-083f2dd6.js +0 -16
  125. package/dist/cjs/_object-sap-d1978572.js +0 -16
  126. package/dist/cjs/_object-to-array-ce86cae7.js +0 -25
  127. package/dist/cjs/asyncToGenerator-77821af0.js +0 -1395
  128. package/dist/cjs/brightcove-react-player-loader.es-a195642e.js +0 -2232
  129. package/dist/cjs/core.get-iterator-method-5643aa10.js +0 -584
  130. package/dist/cjs/debounce-d4a2369b.js +0 -216
  131. package/dist/cjs/define-property-e8404b64.js +0 -20
  132. package/dist/cjs/defineProperty-9673846a.js +0 -34
  133. package/dist/cjs/entities-3f9d0f2f.js +0 -506
  134. package/dist/cjs/eq-5fc26c07.js +0 -79
  135. package/dist/cjs/extends-7c86182f.js +0 -87
  136. package/dist/cjs/faundadb.js +0 -644
  137. package/dist/cjs/get-5839e5b5.js +0 -920
  138. package/dist/cjs/getContentCategory-f38a4c00.js +0 -11
  139. package/dist/cjs/getKeywords.js +0 -46
  140. package/dist/cjs/getPtceActivities.js +0 -89
  141. package/dist/cjs/getQuery.js +0 -28
  142. package/dist/cjs/getRelatedArticle.js +0 -747
  143. package/dist/cjs/getRootDocGroup.js +0 -62
  144. package/dist/cjs/getSerializers.js +0 -64
  145. package/dist/cjs/getSeriesDetail.js +0 -40
  146. package/dist/cjs/getTargeting-4439c99d.js +0 -164
  147. package/dist/cjs/getTargeting.js +0 -13
  148. package/dist/cjs/iconBase-be4097c0.js +0 -106
  149. package/dist/cjs/index-0e4427c8.js +0 -1683
  150. package/dist/cjs/index-187c967e.js +0 -54
  151. package/dist/cjs/index-7361fa72.js +0 -11305
  152. package/dist/cjs/index-eadd5035.js +0 -613
  153. package/dist/cjs/index-efca863c.js +0 -556
  154. package/dist/cjs/index-f86bb269.js +0 -1571
  155. package/dist/cjs/index.es-f3e47207.js +0 -445
  156. package/dist/cjs/index.esm-2bb721c8.js +0 -96
  157. package/dist/cjs/index.esm-c1e16606.js +0 -13
  158. package/dist/cjs/index.esm-d51c9ac6.js +0 -25
  159. package/dist/cjs/index.esm-d81454e7.js +0 -19
  160. package/dist/cjs/index.js +0 -635
  161. package/dist/cjs/inherits-de66ea16.js +0 -188
  162. package/dist/cjs/isSymbol-03abbdf0.js +0 -209
  163. package/dist/cjs/js.cookie-a511c430.js +0 -160
  164. package/dist/cjs/keys-e982b3fa.js +0 -25
  165. package/dist/cjs/lodash-f0783643.js +0 -17195
  166. package/dist/cjs/main-f1c77adb.js +0 -973
  167. package/dist/cjs/moment-aca40de1.js +0 -5669
  168. package/dist/cjs/react-social-icons-af932527.js +0 -616
  169. package/dist/cjs/slicedToArray-067dd3bc.js +0 -95
  170. package/dist/cjs/smoothscroll-99df7f93.js +0 -438
  171. package/dist/cjs/stringify-f7a37a8d.js +0 -17
  172. package/dist/cjs/style-inject.es-dcee06b6.js +0 -30
  173. package/dist/cjs/timeDifferenceCalc.js +0 -39
  174. package/dist/cjs/toConsumableArray-d7797c2b.js +0 -74
  175. package/dist/cjs/toNumber-5e1fac58.js +0 -104
  176. package/dist/cjs/typeof-567e31ff.js +0 -382
  177. package/dist/cjs/urlFor.js +0 -65
  178. package/dist/cjs/urlForFile-29d3815a.js +0 -24
  179. package/dist/cjs/ustream-api-3819e4aa.js +0 -106
  180. package/dist/cjs/visibility-sensor-eb2c5b69.js +0 -597
  181. package/dist/cjs/web.dom.iterable-d98303e0.js +0 -50
  182. package/dist/esm/AD.js +0 -26
  183. package/dist/esm/AD300x250.js +0 -89
  184. package/dist/esm/AD300x250x600.js +0 -106
  185. package/dist/esm/AD728x90.js +0 -103
  186. package/dist/esm/ADFloatingFooter.js +0 -137
  187. package/dist/esm/ADFooter.js +0 -47
  188. package/dist/esm/ADGutter.js +0 -109
  189. package/dist/esm/ADInfeed-f684cac9.js +0 -59
  190. package/dist/esm/ADSkyscraper.js +0 -111
  191. package/dist/esm/ADSponsoredResources.js +0 -108
  192. package/dist/esm/ADWebcast.js +0 -113
  193. package/dist/esm/ADWelcome.js +0 -160
  194. package/dist/esm/ADlgInfeed-8c438cee.js +0 -54
  195. package/dist/esm/AccordionPanel.js +0 -87
  196. package/dist/esm/AdSlot.js +0 -244
  197. package/dist/esm/AdSlotsProvider.js +0 -176
  198. package/dist/esm/AlgoliaSearch.js +0 -188
  199. package/dist/esm/AlphabeticList.js +0 -129
  200. package/dist/esm/ArticleCarousel.js +0 -40
  201. package/dist/esm/ArticleProgramLandingPage.js +0 -178
  202. package/dist/esm/ArticleSeriesLandingPage.js +0 -156
  203. package/dist/esm/ArticleSeriesListing.js +0 -308
  204. package/dist/esm/AuthWrapper.js +0 -714
  205. package/dist/esm/AuthorComponent-defe68b6.js +0 -90
  206. package/dist/esm/Beam.js +0 -348
  207. package/dist/esm/BlockContent-c99c9a8d.js +0 -909
  208. package/dist/esm/Breadcrumbs.js +0 -100
  209. package/dist/esm/CMEDeck.js +0 -437
  210. package/dist/esm/Column1.js +0 -29
  211. package/dist/esm/Column2.js +0 -65
  212. package/dist/esm/Column3.js +0 -134
  213. package/dist/esm/ConferenceArticleCard.js +0 -87
  214. package/dist/esm/ConferenceBanner-8792ebd2.js +0 -18
  215. package/dist/esm/ContentCardPaginated.js +0 -406
  216. package/dist/esm/DeckContent.js +0 -497
  217. package/dist/esm/DeckQueue.js +0 -393
  218. package/dist/esm/DeckQueuePaginated.js +0 -337
  219. package/dist/esm/Dfp-4b99f79d.js +0 -96
  220. package/dist/esm/EventsDeck.js +0 -844
  221. package/dist/esm/ExternalResources.js +0 -210
  222. package/dist/esm/Feature.js +0 -122
  223. package/dist/esm/ForbesHero.js +0 -131
  224. package/dist/esm/GridContent.js +0 -818
  225. package/dist/esm/GridContentPaginated.js +0 -693
  226. package/dist/esm/GridHero.js +0 -141
  227. package/dist/esm/GroupDeck.js +0 -308
  228. package/dist/esm/HamMagazine.js +0 -590
  229. package/dist/esm/Header.js +0 -30
  230. package/dist/esm/HealthCareProfessionalModal.js +0 -70
  231. package/dist/esm/Hero.js +0 -42
  232. package/dist/esm/HighlightenVideo.js +0 -63
  233. package/dist/esm/HorizontalArticleListing.js +0 -159
  234. package/dist/esm/HorizontalHero.js +0 -105
  235. package/dist/esm/ImageSlider-eab2fe41.js +0 -176
  236. package/dist/esm/IssueContentDeck.js +0 -231
  237. package/dist/esm/IssueDeck.js +0 -258
  238. package/dist/esm/IssueLanding.js +0 -166
  239. package/dist/esm/KMTracker.js +0 -25
  240. package/dist/esm/LeftNav.js +0 -136
  241. package/dist/esm/MasterDeck.js +0 -548
  242. package/dist/esm/MasterDeckPaginated.js +0 -461
  243. package/dist/esm/MediaSeriesCard-99048e65.js +0 -9492
  244. package/dist/esm/MediaSeriesLanding.js +0 -496
  245. package/dist/esm/MediaSeriesLandingPaginated.js +0 -522
  246. package/dist/esm/NavDvm.js +0 -233
  247. package/dist/esm/NavFooter-e27bd93b.js +0 -60
  248. package/dist/esm/NavMagazine.js +0 -583
  249. package/dist/esm/NavNative.js +0 -846
  250. package/dist/esm/OncliveHero.js +0 -73
  251. package/dist/esm/OncliveLargeHero.js +0 -235
  252. package/dist/esm/PageFilter.js +0 -66
  253. package/dist/esm/Pagination-cd21f8c2.js +0 -82
  254. package/dist/esm/PartnerDetailListing.js +0 -320
  255. package/dist/esm/PartnerDetailListingPaginated.js +0 -312
  256. package/dist/esm/PdfDownload.js +0 -22
  257. package/dist/esm/PixelTracking.js +0 -156
  258. package/dist/esm/PopUpModal.js +0 -51
  259. package/dist/esm/PtceDeck.js +0 -143
  260. package/dist/esm/PubSection.js +0 -114
  261. package/dist/esm/PubToc.js +0 -81
  262. package/dist/esm/PublicationDeck.js +0 -173
  263. package/dist/esm/PublicationFeature-03500094.js +0 -121
  264. package/dist/esm/PublicationLanding.js +0 -843
  265. package/dist/esm/QueueDeckExpanded.js +0 -1534
  266. package/dist/esm/QueueDeckExpandedPaginated.js +0 -1382
  267. package/dist/esm/RecentNews.js +0 -85
  268. package/dist/esm/RelatedContent.js +0 -108
  269. package/dist/esm/RelatedTopicsDropdown.js +0 -82
  270. package/dist/esm/RolesDeck.js +0 -84
  271. package/dist/esm/Schema.js +0 -95
  272. package/dist/esm/Search.js +0 -57
  273. package/dist/esm/Segment.js +0 -401
  274. package/dist/esm/SeriesListingDeck.js +0 -242
  275. package/dist/esm/SeriesSlider-609f9d94.js +0 -326
  276. package/dist/esm/SetCookie.js +0 -8
  277. package/dist/esm/SideFooter.js +0 -145
  278. package/dist/esm/SocialIcons.js +0 -97
  279. package/dist/esm/SocialSearchComponent-1d8a9f59.js +0 -204
  280. package/dist/esm/SocialShare.js +0 -67
  281. package/dist/esm/TaxonomyCard.js +0 -243
  282. package/dist/esm/TaxonomyDescription.js +0 -198
  283. package/dist/esm/TemplateNormal.js +0 -197
  284. package/dist/esm/ThumbnailCard.js +0 -52
  285. package/dist/esm/Ustream.js +0 -150
  286. package/dist/esm/VerticalHero.js +0 -68
  287. package/dist/esm/VideoProgramLandingPage.js +0 -251
  288. package/dist/esm/VideoSeriesCard.js +0 -82
  289. package/dist/esm/VideoSeriesFilter.js +0 -122
  290. package/dist/esm/VideoSeriesLandingPage.js +0 -172
  291. package/dist/esm/VideoSeriesListing.js +0 -415
  292. package/dist/esm/View.js +0 -2590
  293. package/dist/esm/YahooHero.js +0 -120
  294. package/dist/esm/YoutubeGroup.js +0 -365
  295. package/dist/esm/_commonjsHelpers-0c4b6f40.js +0 -19
  296. package/dist/esm/_is-array-893ab020.js +0 -71
  297. package/dist/esm/_iter-detect-f089461c.js +0 -48
  298. package/dist/esm/_library-528f1934.js +0 -3
  299. package/dist/esm/_object-pie-133f504a.js +0 -13
  300. package/dist/esm/_object-sap-169d6272.js +0 -14
  301. package/dist/esm/_object-to-array-50a6b9a3.js +0 -23
  302. package/dist/esm/asyncToGenerator-9716ae8d.js +0 -1387
  303. package/dist/esm/brightcove-react-player-loader.es-57a70a56.js +0 -2226
  304. package/dist/esm/core.get-iterator-method-e903ff31.js +0 -547
  305. package/dist/esm/debounce-533d9748.js +0 -214
  306. package/dist/esm/define-property-99e66838.js +0 -18
  307. package/dist/esm/defineProperty-8fa0bc8d.js +0 -32
  308. package/dist/esm/entities-932b50cf.js +0 -503
  309. package/dist/esm/eq-bdcbf886.js +0 -76
  310. package/dist/esm/extends-dc6a71fd.js +0 -83
  311. package/dist/esm/faundadb.js +0 -636
  312. package/dist/esm/get-3c308da4.js +0 -918
  313. package/dist/esm/getContentCategory-15dcc413.js +0 -9
  314. package/dist/esm/getKeywords.js +0 -44
  315. package/dist/esm/getPtceActivities.js +0 -87
  316. package/dist/esm/getQuery.js +0 -26
  317. package/dist/esm/getRelatedArticle.js +0 -745
  318. package/dist/esm/getRootDocGroup.js +0 -60
  319. package/dist/esm/getSerializers.js +0 -58
  320. package/dist/esm/getSeriesDetail.js +0 -38
  321. package/dist/esm/getTargeting-db566006.js +0 -161
  322. package/dist/esm/getTargeting.js +0 -7
  323. package/dist/esm/iconBase-ccc56b97.js +0 -81
  324. package/dist/esm/index-0dbff1d1.js +0 -553
  325. package/dist/esm/index-5cc7b406.js +0 -1674
  326. package/dist/esm/index-755f2cc2.js +0 -605
  327. package/dist/esm/index-79cfd25c.js +0 -1569
  328. package/dist/esm/index-c60f3bb6.js +0 -11284
  329. package/dist/esm/index-c7e2ac95.js +0 -52
  330. package/dist/esm/index.es-a6137319.js +0 -439
  331. package/dist/esm/index.esm-1bd8a0a8.js +0 -18
  332. package/dist/esm/index.esm-37268dca.js +0 -89
  333. package/dist/esm/index.esm-9b042655.js +0 -10
  334. package/dist/esm/index.esm-eb1e8e80.js +0 -14
  335. package/dist/esm/index.js +0 -529
  336. package/dist/esm/inherits-8a801a18.js +0 -179
  337. package/dist/esm/isSymbol-a7e9aafe.js +0 -203
  338. package/dist/esm/js.cookie-6874175c.js +0 -158
  339. package/dist/esm/keys-425c8ab0.js +0 -23
  340. package/dist/esm/lodash-f97fd99a.js +0 -17193
  341. package/dist/esm/main-1894c974.js +0 -961
  342. package/dist/esm/moment-bc12cb97.js +0 -5667
  343. package/dist/esm/react-social-icons-9be47857.js +0 -609
  344. package/dist/esm/slicedToArray-ca2c8b8d.js +0 -92
  345. package/dist/esm/smoothscroll-fa4e3f8c.js +0 -436
  346. package/dist/esm/stringify-c21932b3.js +0 -15
  347. package/dist/esm/style-inject.es-1f59c1d0.js +0 -28
  348. package/dist/esm/timeDifferenceCalc.js +0 -37
  349. package/dist/esm/toConsumableArray-7b1c0e23.js +0 -71
  350. package/dist/esm/toNumber-5aeba6e7.js +0 -102
  351. package/dist/esm/typeof-83d9eb10.js +0 -378
  352. package/dist/esm/urlFor.js +0 -63
  353. package/dist/esm/urlForFile-413f5ddb.js +0 -22
  354. package/dist/esm/ustream-api-41166338.js +0 -104
  355. package/dist/esm/visibility-sensor-72fd8f8b.js +0 -590
  356. package/dist/esm/web.dom.iterable-fdf034f5.js +0 -48
@@ -1,251 +0,0 @@
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;
@@ -1,82 +0,0 @@
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;
@@ -1,122 +0,0 @@
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;
@@ -1,172 +0,0 @@
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;