@mjhls/mjh-framework 1.0.1005-next12-0001 → 1.0.1005-next12-0002

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 (605) hide show
  1. package/dist/cjs/AD-e1bb7536.js +1 -0
  2. package/dist/cjs/AD.js +1 -32
  3. package/dist/cjs/AD300x250-0bcfcd78.js +1 -0
  4. package/dist/cjs/AD300x250.js +1 -95
  5. package/dist/cjs/AD300x250x600-01659df6.js +1 -0
  6. package/dist/cjs/AD300x250x600.js +1 -112
  7. package/dist/cjs/AD728x90-c92f784d.js +1 -0
  8. package/dist/cjs/AD728x90.js +1 -109
  9. package/dist/cjs/ADFloatingFooter-f0650a0e.js +1 -0
  10. package/dist/cjs/ADFloatingFooter.js +1 -143
  11. package/dist/cjs/ADFooter-b3d98c5f.js +1 -0
  12. package/dist/cjs/ADFooter.js +1 -53
  13. package/dist/cjs/ADGutter-8451a0e7.js +1 -0
  14. package/dist/cjs/ADGutter.js +1 -115
  15. package/dist/cjs/ADInfeed-7019b746.js +1 -0
  16. package/dist/cjs/ADSkyscraper-2db48edc.js +1 -0
  17. package/dist/cjs/ADSkyscraper.js +1 -117
  18. package/dist/cjs/ADSponsoredResources-126ab84c.js +1 -0
  19. package/dist/cjs/ADSponsoredResources.js +1 -114
  20. package/dist/cjs/ADWebcast-26543865.js +1 -0
  21. package/dist/cjs/ADWebcast.js +1 -119
  22. package/dist/cjs/ADWelcome-6261c769.js +1 -0
  23. package/dist/cjs/ADWelcome.js +1 -166
  24. package/dist/cjs/ADlgInfeed-42059b30.js +1 -0
  25. package/dist/cjs/AccordionPanel-b018a969.js +1 -0
  26. package/dist/cjs/AccordionPanel.js +1 -94
  27. package/dist/cjs/AdSlot-8a0b4211.js +1 -0
  28. package/dist/cjs/AdSlot.js +1 -251
  29. package/dist/cjs/AdSlotsProvider-e06c4b39.js +1 -0
  30. package/dist/cjs/AdSlotsProvider.js +1 -183
  31. package/dist/cjs/AlgoliaSearch-05bab51c.js +1 -0
  32. package/dist/cjs/AlgoliaSearch.js +1 -195
  33. package/dist/cjs/AlphabeticList-94ed00ad.js +1 -0
  34. package/dist/cjs/AlphabeticList.js +1 -135
  35. package/dist/cjs/ArticleCarousel-6599cb34.js +1 -0
  36. package/dist/cjs/ArticleCarousel.js +1 -46
  37. package/dist/cjs/ArticleProgramLandingPage-2cc43252.js +1 -0
  38. package/dist/cjs/ArticleProgramLandingPage.js +1 -188
  39. package/dist/cjs/ArticleSeriesLandingPage-4af0758a.js +1 -0
  40. package/dist/cjs/ArticleSeriesLandingPage.js +1 -162
  41. package/dist/cjs/ArticleSeriesListing-476cb622.js +1 -0
  42. package/dist/cjs/ArticleSeriesListing.js +1 -315
  43. package/dist/cjs/Auth.js +1 -3514
  44. package/dist/cjs/AuthWrapper.js +1 -143
  45. package/dist/cjs/AuthorComponent-dd3ac7f5.js +1 -0
  46. package/dist/cjs/Beam.js +1 -350
  47. package/dist/cjs/Breadcrumbs-10474e7d.js +1 -0
  48. package/dist/cjs/Breadcrumbs.js +1 -107
  49. package/dist/cjs/CMEDeck-c7276c4c.js +1 -0
  50. package/dist/cjs/CMEDeck.js +1 -443
  51. package/dist/cjs/Column1-9a0e0262.js +1 -0
  52. package/dist/cjs/Column1.js +1 -39
  53. package/dist/cjs/Column2-47fa24ac.js +1 -0
  54. package/dist/cjs/Column2.js +1 -74
  55. package/dist/cjs/Column3-7407a3a2.js +1 -0
  56. package/dist/cjs/Column3.js +1 -143
  57. package/dist/cjs/ConferenceArticleCard-a48a5eb4.js +1 -0
  58. package/dist/cjs/ConferenceArticleCard.js +1 -93
  59. package/dist/cjs/ConferenceBanner-9fb497af.js +1 -0
  60. package/dist/cjs/ContentCard-0543793a.js +1 -0
  61. package/dist/cjs/ContentCardPaginated.js +1 -417
  62. package/dist/cjs/DeckContent.js +1 -507
  63. package/dist/cjs/DeckQueue.js +1 -403
  64. package/dist/cjs/DeckQueuePaginated.js +1 -348
  65. package/dist/cjs/Dfp-eb398ac3.js +1 -0
  66. package/dist/cjs/DropdownButton-3f21ccbf.js +6 -0
  67. package/dist/cjs/Dvm-4aab0fca.js +1 -0
  68. package/dist/cjs/EventsDeck-7614cec4.js +1 -0
  69. package/dist/cjs/EventsDeck.js +1 -884
  70. package/dist/cjs/ExternalResources-c1d4e253.js +1 -0
  71. package/dist/cjs/ExternalResources.js +1 -222
  72. package/dist/cjs/Feature-4254dfe3.js +1 -0
  73. package/dist/cjs/Feature.js +1 -129
  74. package/dist/cjs/ForbesHero-82c18210.js +1 -0
  75. package/dist/cjs/ForbesHero.js +1 -137
  76. package/dist/cjs/GridContent-6c8dd8e5.js +1 -0
  77. package/dist/cjs/GridContent.js +1 -828
  78. package/dist/cjs/GridContentPaginated.js +1 -704
  79. package/dist/cjs/GridHero-c6784d3f.js +1 -0
  80. package/dist/cjs/GridHero.js +1 -147
  81. package/dist/cjs/GroupDeck-6920bcf7.js +1 -0
  82. package/dist/cjs/GroupDeck.js +1 -314
  83. package/dist/cjs/HamMagazine.js +1 -602
  84. package/dist/cjs/HamburgerNav-02a13006.js +1 -0
  85. package/dist/cjs/Header-268a2cda.js +1 -0
  86. package/dist/cjs/Header.js +1 -39
  87. package/dist/cjs/HealthCareProfessionalModal.js +1 -78
  88. package/dist/cjs/Hero-79a1f7a3.js +1 -0
  89. package/dist/cjs/Hero.js +1 -48
  90. package/dist/cjs/HighlightenVideo-20edba55.js +1 -0
  91. package/dist/cjs/HighlightenVideo.js +1 -69
  92. package/dist/cjs/HorizontalArticleListing-4a44f354.js +1 -0
  93. package/dist/cjs/HorizontalArticleListing.js +1 -169
  94. package/dist/cjs/HorizontalHero-c5a3cb7a.js +1 -0
  95. package/dist/cjs/HorizontalHero.js +1 -111
  96. package/dist/cjs/ImageSlider-d1359f16.js +1 -0
  97. package/dist/cjs/IssueContentDeck-48a04696.js +1 -0
  98. package/dist/cjs/IssueContentDeck.js +1 -241
  99. package/dist/cjs/IssueDeck-41ebd17b.js +1 -0
  100. package/dist/cjs/IssueDeck.js +1 -268
  101. package/dist/cjs/IssueLanding-06765ae0.js +1 -0
  102. package/dist/cjs/IssueLanding.js +1 -176
  103. package/dist/cjs/KMTracker-4e1de793.js +1 -0
  104. package/dist/cjs/KMTracker.js +1 -27
  105. package/dist/cjs/LeftNav-c7283941.js +1 -0
  106. package/dist/cjs/LeftNav.js +1 -154
  107. package/dist/cjs/Magazine-0d15b137.js +1 -0
  108. package/dist/cjs/MasterDeck-0e168ac1.js +1 -0
  109. package/dist/cjs/MasterDeck.js +1 -555
  110. package/dist/cjs/MasterDeckPaginated.js +1 -469
  111. package/dist/cjs/MediaSeriesCard-07b6f758.js +1 -0
  112. package/dist/cjs/MediaSeriesLanding.js +1 -508
  113. package/dist/cjs/MediaSeriesLandingPaginated.js +1 -534
  114. package/dist/cjs/Native-ee78edeb.js +1 -0
  115. package/dist/cjs/NavDvm.js +1 -276
  116. package/dist/cjs/NavFooter-f905aca3.js +1 -0
  117. package/dist/cjs/NavMagazine.js +1 -613
  118. package/dist/cjs/NavNative.js +1 -880
  119. package/dist/cjs/Normal-ad14a1b1.js +1 -0
  120. package/dist/cjs/OncliveHero-5c7454fe.js +1 -0
  121. package/dist/cjs/OncliveHero.js +1 -79
  122. package/dist/cjs/OncliveLargeHero-46e0a793.js +1 -0
  123. package/dist/cjs/OncliveLargeHero.js +1 -241
  124. package/dist/cjs/PageFilter-bdffe62b.js +1 -0
  125. package/dist/cjs/PageFilter.js +1 -72
  126. package/dist/cjs/Pagination-825e4903.js +1 -0
  127. package/dist/cjs/PartnerDetailListing-848c514f.js +1 -0
  128. package/dist/cjs/PartnerDetailListing.js +1 -344
  129. package/dist/cjs/PartnerDetailListingPaginated.js +1 -353
  130. package/dist/cjs/PdfDownload-c99142ff.js +1 -0
  131. package/dist/cjs/PdfDownload.js +1 -28
  132. package/dist/cjs/PixelTracking.js +1 -165
  133. package/dist/cjs/PodcastsLanding.js +1 -236
  134. package/dist/cjs/PopUpModal-c1cbf9b6.js +1 -0
  135. package/dist/cjs/PopUpModal.js +1 -58
  136. package/dist/cjs/PtceDeck.js +1 -149
  137. package/dist/cjs/PubSection-08e834ca.js +1 -0
  138. package/dist/cjs/PubSection.js +1 -120
  139. package/dist/cjs/PubToc-6e2a3f50.js +1 -0
  140. package/dist/cjs/PubToc.js +1 -87
  141. package/dist/cjs/PublicationDeck-e242bd17.js +1 -0
  142. package/dist/cjs/PublicationDeck.js +1 -183
  143. package/dist/cjs/PublicationFeature-0e2014fb.js +1 -0
  144. package/dist/cjs/PublicationLanding-d54d80d4.js +1 -0
  145. package/dist/cjs/PublicationLanding.js +1 -853
  146. package/dist/cjs/Queue-8e0e436f.js +1 -0
  147. package/dist/cjs/QueueDeckExpanded-e420bdec.js +1 -0
  148. package/dist/cjs/QueueDeckExpanded.js +1 -1540
  149. package/dist/cjs/QueueDeckExpandedPaginated.js +1 -1388
  150. package/dist/cjs/RecentNews.js +1 -91
  151. package/dist/cjs/RelatedContent-4ac0ceca.js +1 -0
  152. package/dist/cjs/RelatedContent.js +1 -114
  153. package/dist/cjs/RelatedTopicsDropdown-4736b927.js +1 -0
  154. package/dist/cjs/RelatedTopicsDropdown.js +1 -90
  155. package/dist/cjs/RolesDeck-83cbb45e.js +1 -0
  156. package/dist/cjs/RolesDeck.js +1 -94
  157. package/dist/cjs/Schema-8c138aa8.js +1 -0
  158. package/dist/cjs/Schema.js +1 -103
  159. package/dist/cjs/Search.js +1 -66
  160. package/dist/cjs/Segment.js +1 -452
  161. package/dist/cjs/SeriesListingDeck.js +1 -248
  162. package/dist/cjs/SeriesSlider-720871f8.js +1 -0
  163. package/dist/cjs/SetCookie.js +1 -10
  164. package/dist/cjs/SideFooter-17e666a3.js +1 -0
  165. package/dist/cjs/SideFooter.js +1 -150
  166. package/dist/cjs/SocialIcons-425827d3.js +1 -0
  167. package/dist/cjs/SocialIcons.js +1 -103
  168. package/dist/cjs/SocialNavFooter-8f053a08.js +1 -0
  169. package/dist/cjs/SocialSearchComponent-dea3dbc8.js +1 -0
  170. package/dist/cjs/SocialShare-3d7c8abe.js +1 -0
  171. package/dist/cjs/SocialShare.js +1 -74
  172. package/dist/cjs/TaxonomyCard-e881cb43.js +1 -0
  173. package/dist/cjs/TaxonomyCard.js +1 -257
  174. package/dist/cjs/TaxonomyDescription-9a13ded6.js +1 -0
  175. package/dist/cjs/TaxonomyDescription.js +1 -209
  176. package/dist/cjs/TemplateNormal.js +1 -203
  177. package/dist/cjs/ThumbnailCard-101f04b8.js +1 -0
  178. package/dist/cjs/ThumbnailCard.js +1 -59
  179. package/dist/cjs/Ustream-b7692d0a.js +1 -0
  180. package/dist/cjs/Ustream.js +1 -156
  181. package/dist/cjs/VerticalHero-a61b1a2e.js +1 -0
  182. package/dist/cjs/VerticalHero.js +1 -74
  183. package/dist/cjs/VideoProgramLandingPage-5508836c.js +1 -0
  184. package/dist/cjs/VideoProgramLandingPage.js +1 -264
  185. package/dist/cjs/VideoSeriesCard.js +1 -88
  186. package/dist/cjs/VideoSeriesFilter-9650cf01.js +1 -0
  187. package/dist/cjs/VideoSeriesFilter.js +1 -128
  188. package/dist/cjs/VideoSeriesLandingPage-d1fae653.js +1 -0
  189. package/dist/cjs/VideoSeriesLandingPage.js +1 -178
  190. package/dist/cjs/VideoSeriesListing-91f5aa6d.js +1 -0
  191. package/dist/cjs/VideoSeriesListing.js +1 -422
  192. package/dist/cjs/View.js +1 -2680
  193. package/dist/cjs/YahooHero-2df6a408.js +1 -0
  194. package/dist/cjs/YahooHero.js +1 -126
  195. package/dist/cjs/YoutubeGroup-d8a93da0.js +1 -0
  196. package/dist/cjs/YoutubeGroup.js +1 -371
  197. package/dist/cjs/_commonjsHelpers-0a7b82d9.js +1 -0
  198. package/dist/cjs/beam-aaf6fbe9.js +1 -0
  199. package/dist/cjs/checkSisterSite-d2d62375.js +1 -0
  200. package/dist/cjs/defineProperty-ba7cd53d.js +1 -0
  201. package/dist/cjs/entities-8feddf1d.js +1 -0
  202. package/dist/cjs/extends-5ede7877.js +1 -0
  203. package/dist/cjs/faundadb.js +1 -406
  204. package/dist/cjs/getContentCategory-ee6d9fdf.js +1 -0
  205. package/dist/cjs/getKeywords-5341ea76.js +1 -0
  206. package/dist/cjs/getKeywords.js +1 -46
  207. package/dist/cjs/getPrototypeOf-99b1cfd8.js +1 -0
  208. package/dist/cjs/getPtceActivities.js +1 -89
  209. package/dist/cjs/getQuery-154617ad.js +1 -0
  210. package/dist/cjs/getQuery.js +1 -28
  211. package/dist/cjs/getRelatedArticle-dbed93dc.js +1 -0
  212. package/dist/cjs/getRelatedArticle.js +1 -478
  213. package/dist/cjs/getRootDocGroup.js +1 -62
  214. package/dist/cjs/getSerializers.js +1 -68
  215. package/dist/cjs/getSeriesDetail-e2980903.js +1 -0
  216. package/dist/cjs/getSeriesDetail.js +1 -40
  217. package/dist/cjs/getTargeting-a1ecaa0b.js +1 -0
  218. package/dist/cjs/getTargeting.js +1 -13
  219. package/dist/cjs/index-14c8083b.js +1 -0
  220. package/dist/cjs/index-3291d44c.js +1 -0
  221. package/dist/cjs/index-5cca2099.js +1 -0
  222. package/dist/cjs/index-66647f61.js +1 -0
  223. package/dist/cjs/index.js +1 -643
  224. package/dist/cjs/searchForm-bb5e3dbf.js +1 -0
  225. package/dist/cjs/segment-lib-7a16e514.js +1 -0
  226. package/dist/cjs/setCookie-e72f573d.js +1 -0
  227. package/dist/cjs/slicedToArray-c9e22c6a.js +1 -0
  228. package/dist/cjs/style-inject.es-dcee06b6.js +1 -30
  229. package/dist/cjs/timeDifferenceCalc.js +1 -39
  230. package/dist/cjs/toConsumableArray-7afb7984.js +1 -0
  231. package/dist/cjs/typeof-a861d137.js +1 -0
  232. package/dist/cjs/unsupportedIterableToArray-294d47a8.js +1 -0
  233. package/dist/cjs/urlFor-86a2f4db.js +1 -0
  234. package/dist/cjs/urlFor.js +1 -65
  235. package/dist/cjs/urlForFile-52afb8e9.js +1 -0
  236. package/dist/cjs/ustream-api-05a918f3.js +1 -0
  237. package/dist/esm/AD-8a57f623.js +1 -0
  238. package/dist/esm/AD.js +1 -26
  239. package/dist/esm/AD300x250-10ccde99.js +1 -0
  240. package/dist/esm/AD300x250.js +1 -89
  241. package/dist/esm/AD300x250x600-10e29b3d.js +1 -0
  242. package/dist/esm/AD300x250x600.js +1 -106
  243. package/dist/esm/AD728x90-2b0e930d.js +1 -0
  244. package/dist/esm/AD728x90.js +1 -103
  245. package/dist/esm/ADFloatingFooter-f23caacf.js +1 -0
  246. package/dist/esm/ADFloatingFooter.js +1 -137
  247. package/dist/esm/ADFooter-4c20b5fc.js +1 -0
  248. package/dist/esm/ADFooter.js +1 -47
  249. package/dist/esm/ADGutter-59cf52e3.js +1 -0
  250. package/dist/esm/ADGutter.js +1 -109
  251. package/dist/esm/ADInfeed-8ce85d87.js +1 -0
  252. package/dist/esm/ADSkyscraper-bfd33e46.js +1 -0
  253. package/dist/esm/ADSkyscraper.js +1 -111
  254. package/dist/esm/ADSponsoredResources-0410407c.js +1 -0
  255. package/dist/esm/ADSponsoredResources.js +1 -108
  256. package/dist/esm/ADWebcast-6f27e384.js +1 -0
  257. package/dist/esm/ADWebcast.js +1 -113
  258. package/dist/esm/ADWelcome-421d5621.js +1 -0
  259. package/dist/esm/ADWelcome.js +1 -160
  260. package/dist/esm/ADlgInfeed-19d0f057.js +1 -0
  261. package/dist/esm/AccordionPanel-123022f0.js +1 -0
  262. package/dist/esm/AccordionPanel.js +1 -87
  263. package/dist/esm/AdSlot-16696371.js +1 -0
  264. package/dist/esm/AdSlot.js +1 -244
  265. package/dist/esm/AdSlotsProvider-5ead284e.js +1 -0
  266. package/dist/esm/AdSlotsProvider.js +1 -176
  267. package/dist/esm/AlgoliaSearch-1343b721.js +1 -0
  268. package/dist/esm/AlgoliaSearch.js +1 -188
  269. package/dist/esm/AlphabeticList-f1ca5612.js +1 -0
  270. package/dist/esm/AlphabeticList.js +1 -129
  271. package/dist/esm/ArticleCarousel-ba29666c.js +1 -0
  272. package/dist/esm/ArticleCarousel.js +1 -40
  273. package/dist/esm/ArticleProgramLandingPage-d996da8f.js +1 -0
  274. package/dist/esm/ArticleProgramLandingPage.js +1 -182
  275. package/dist/esm/ArticleSeriesLandingPage-67cda955.js +1 -0
  276. package/dist/esm/ArticleSeriesLandingPage.js +1 -156
  277. package/dist/esm/ArticleSeriesListing-22e8f5a6.js +1 -0
  278. package/dist/esm/ArticleSeriesListing.js +1 -308
  279. package/dist/esm/Auth.js +1 -3494
  280. package/dist/esm/AuthWrapper.js +1 -136
  281. package/dist/esm/AuthorComponent-f3e14fdd.js +1 -0
  282. package/dist/esm/Beam.js +1 -348
  283. package/dist/esm/Breadcrumbs-8838701e.js +1 -0
  284. package/dist/esm/Breadcrumbs.js +1 -100
  285. package/dist/esm/CMEDeck-182d8eb7.js +1 -0
  286. package/dist/esm/CMEDeck.js +1 -437
  287. package/dist/esm/Column1-3304e0a7.js +1 -0
  288. package/dist/esm/Column1.js +1 -29
  289. package/dist/esm/Column2-2d42433b.js +1 -0
  290. package/dist/esm/Column2.js +1 -64
  291. package/dist/esm/Column3-94c8661b.js +1 -0
  292. package/dist/esm/Column3.js +1 -133
  293. package/dist/esm/ConferenceArticleCard-c10c5b7f.js +1 -0
  294. package/dist/esm/ConferenceArticleCard.js +1 -87
  295. package/dist/esm/ConferenceBanner-8a6f3ed9.js +1 -0
  296. package/dist/esm/ContentCard-01c2e43a.js +1 -0
  297. package/dist/esm/ContentCardPaginated.js +1 -406
  298. package/dist/esm/DeckContent.js +1 -497
  299. package/dist/esm/DeckQueue.js +1 -393
  300. package/dist/esm/DeckQueuePaginated.js +1 -337
  301. package/dist/esm/Dfp-c3c626b1.js +1 -0
  302. package/dist/esm/DropdownButton-c4621022.js +6 -0
  303. package/dist/esm/Dvm-138f924d.js +1 -0
  304. package/dist/esm/EventsDeck-e5aad41d.js +1 -0
  305. package/dist/esm/EventsDeck.js +1 -871
  306. package/dist/esm/ExternalResources-e9656681.js +1 -0
  307. package/dist/esm/ExternalResources.js +1 -215
  308. package/dist/esm/Feature-69a30cea.js +1 -0
  309. package/dist/esm/Feature.js +1 -122
  310. package/dist/esm/ForbesHero-0b0a5436.js +1 -0
  311. package/dist/esm/ForbesHero.js +1 -131
  312. package/dist/esm/GridContent-d8df59ae.js +1 -0
  313. package/dist/esm/GridContent.js +1 -818
  314. package/dist/esm/GridContentPaginated.js +1 -693
  315. package/dist/esm/GridHero-0d17636c.js +1 -0
  316. package/dist/esm/GridHero.js +1 -141
  317. package/dist/esm/GroupDeck-4c581822.js +1 -0
  318. package/dist/esm/GroupDeck.js +1 -308
  319. package/dist/esm/HamMagazine.js +1 -590
  320. package/dist/esm/HamburgerNav-5fcf79ae.js +1 -0
  321. package/dist/esm/Header-b0624adc.js +1 -0
  322. package/dist/esm/Header.js +1 -30
  323. package/dist/esm/HealthCareProfessionalModal.js +1 -70
  324. package/dist/esm/Hero-1b663f28.js +1 -0
  325. package/dist/esm/Hero.js +1 -42
  326. package/dist/esm/HighlightenVideo-5c3fd0fd.js +1 -0
  327. package/dist/esm/HighlightenVideo.js +1 -63
  328. package/dist/esm/HorizontalArticleListing-cccace2e.js +1 -0
  329. package/dist/esm/HorizontalArticleListing.js +1 -163
  330. package/dist/esm/HorizontalHero-8633a55c.js +1 -0
  331. package/dist/esm/HorizontalHero.js +1 -105
  332. package/dist/esm/ImageSlider-c354db50.js +1 -0
  333. package/dist/esm/IssueContentDeck-915409a7.js +1 -0
  334. package/dist/esm/IssueContentDeck.js +1 -231
  335. package/dist/esm/IssueDeck-61a4a550.js +1 -0
  336. package/dist/esm/IssueDeck.js +1 -258
  337. package/dist/esm/IssueLanding-a59c91ee.js +1 -0
  338. package/dist/esm/IssueLanding.js +1 -170
  339. package/dist/esm/KMTracker-d9e1c288.js +1 -0
  340. package/dist/esm/KMTracker.js +1 -25
  341. package/dist/esm/LeftNav-a3852fbe.js +1 -0
  342. package/dist/esm/LeftNav.js +1 -145
  343. package/dist/esm/Magazine-7d6e5dcd.js +1 -0
  344. package/dist/esm/MasterDeck-41c7cd70.js +1 -0
  345. package/dist/esm/MasterDeck.js +1 -548
  346. package/dist/esm/MasterDeckPaginated.js +1 -461
  347. package/dist/esm/MediaSeriesCard-cf72ce87.js +1 -0
  348. package/dist/esm/MediaSeriesLanding.js +1 -501
  349. package/dist/esm/MediaSeriesLandingPaginated.js +1 -527
  350. package/dist/esm/Native-bf89940a.js +1 -0
  351. package/dist/esm/NavDvm.js +1 -264
  352. package/dist/esm/NavFooter-83d89acd.js +1 -0
  353. package/dist/esm/NavMagazine.js +1 -601
  354. package/dist/esm/NavNative.js +1 -865
  355. package/dist/esm/Normal-06895213.js +1 -0
  356. package/dist/esm/OncliveHero-19794e52.js +1 -0
  357. package/dist/esm/OncliveHero.js +1 -73
  358. package/dist/esm/OncliveLargeHero-01d4c10f.js +1 -0
  359. package/dist/esm/OncliveLargeHero.js +1 -235
  360. package/dist/esm/PageFilter-81144bcb.js +1 -0
  361. package/dist/esm/PageFilter.js +1 -66
  362. package/dist/esm/Pagination-44c3ff7c.js +1 -0
  363. package/dist/esm/PartnerDetailListing-429d60e1.js +1 -0
  364. package/dist/esm/PartnerDetailListing.js +1 -338
  365. package/dist/esm/PartnerDetailListingPaginated.js +1 -347
  366. package/dist/esm/PdfDownload-eff648d3.js +1 -0
  367. package/dist/esm/PdfDownload.js +1 -22
  368. package/dist/esm/PixelTracking.js +1 -156
  369. package/dist/esm/PodcastsLanding.js +1 -229
  370. package/dist/esm/PopUpModal-a2735a23.js +1 -0
  371. package/dist/esm/PopUpModal.js +1 -51
  372. package/dist/esm/PtceDeck.js +1 -143
  373. package/dist/esm/PubSection-3d940b53.js +1 -0
  374. package/dist/esm/PubSection.js +1 -114
  375. package/dist/esm/PubToc-52a85696.js +1 -0
  376. package/dist/esm/PubToc.js +1 -81
  377. package/dist/esm/PublicationDeck-538d397e.js +1 -0
  378. package/dist/esm/PublicationDeck.js +1 -173
  379. package/dist/esm/PublicationFeature-6deea07c.js +1 -0
  380. package/dist/esm/PublicationLanding-48ebce9b.js +1 -0
  381. package/dist/esm/PublicationLanding.js +1 -843
  382. package/dist/esm/Queue-847df47f.js +1 -0
  383. package/dist/esm/QueueDeckExpanded-fdc60f72.js +1 -0
  384. package/dist/esm/QueueDeckExpanded.js +1 -1534
  385. package/dist/esm/QueueDeckExpandedPaginated.js +1 -1382
  386. package/dist/esm/RecentNews.js +1 -85
  387. package/dist/esm/RelatedContent-f3eaad29.js +1 -0
  388. package/dist/esm/RelatedContent.js +1 -108
  389. package/dist/esm/RelatedTopicsDropdown-0cf5829a.js +1 -0
  390. package/dist/esm/RelatedTopicsDropdown.js +1 -82
  391. package/dist/esm/RolesDeck-6146633e.js +1 -0
  392. package/dist/esm/RolesDeck.js +1 -84
  393. package/dist/esm/Schema-c7f42de0.js +1 -0
  394. package/dist/esm/Schema.js +1 -97
  395. package/dist/esm/Search.js +1 -57
  396. package/dist/esm/Segment.js +1 -450
  397. package/dist/esm/SeriesListingDeck.js +1 -242
  398. package/dist/esm/SeriesSlider-a00cd257.js +1 -0
  399. package/dist/esm/SetCookie.js +1 -8
  400. package/dist/esm/SideFooter-7cd5abc0.js +1 -0
  401. package/dist/esm/SideFooter.js +1 -144
  402. package/dist/esm/SocialIcons-c7861c13.js +1 -0
  403. package/dist/esm/SocialIcons.js +1 -97
  404. package/dist/esm/SocialNavFooter-66c6cf3c.js +1 -0
  405. package/dist/esm/SocialSearchComponent-e74e11f8.js +1 -0
  406. package/dist/esm/SocialShare-9cc43665.js +1 -0
  407. package/dist/esm/SocialShare.js +1 -67
  408. package/dist/esm/TaxonomyCard-507f5c95.js +1 -0
  409. package/dist/esm/TaxonomyCard.js +1 -247
  410. package/dist/esm/TaxonomyDescription-ee6ae52e.js +1 -0
  411. package/dist/esm/TaxonomyDescription.js +1 -202
  412. package/dist/esm/TemplateNormal.js +1 -196
  413. package/dist/esm/ThumbnailCard-b7a3af71.js +1 -0
  414. package/dist/esm/ThumbnailCard.js +1 -52
  415. package/dist/esm/Ustream-29dc2277.js +1 -0
  416. package/dist/esm/Ustream.js +1 -150
  417. package/dist/esm/VerticalHero-ffc93a70.js +1 -0
  418. package/dist/esm/VerticalHero.js +1 -68
  419. package/dist/esm/VideoProgramLandingPage-179db5b2.js +1 -0
  420. package/dist/esm/VideoProgramLandingPage.js +1 -255
  421. package/dist/esm/VideoSeriesCard.js +1 -82
  422. package/dist/esm/VideoSeriesFilter-b6bd4c07.js +1 -0
  423. package/dist/esm/VideoSeriesFilter.js +1 -122
  424. package/dist/esm/VideoSeriesLandingPage-180a2469.js +1 -0
  425. package/dist/esm/VideoSeriesLandingPage.js +1 -172
  426. package/dist/esm/VideoSeriesListing-62650a53.js +1 -0
  427. package/dist/esm/VideoSeriesListing.js +1 -415
  428. package/dist/esm/View.js +1 -2669
  429. package/dist/esm/YahooHero-ddfeb2a5.js +1 -0
  430. package/dist/esm/YahooHero.js +1 -120
  431. package/dist/esm/YoutubeGroup-1dd6f1ba.js +1 -0
  432. package/dist/esm/YoutubeGroup.js +1 -365
  433. package/dist/esm/_commonjsHelpers-57e89916.js +1 -0
  434. package/dist/esm/beam-50a5c4d8.js +1 -0
  435. package/dist/esm/checkSisterSite-20e2bf62.js +1 -0
  436. package/dist/esm/defineProperty-18999f8e.js +1 -0
  437. package/dist/esm/entities-8b138943.js +1 -0
  438. package/dist/esm/extends-e61fd370.js +1 -0
  439. package/dist/esm/faundadb.js +1 -396
  440. package/dist/esm/getContentCategory-f99fdf90.js +1 -0
  441. package/dist/esm/getKeywords-2512775a.js +1 -0
  442. package/dist/esm/getKeywords.js +1 -44
  443. package/dist/esm/getPrototypeOf-a8361cb6.js +1 -0
  444. package/dist/esm/getPtceActivities.js +1 -87
  445. package/dist/esm/getQuery-bfc0390c.js +1 -0
  446. package/dist/esm/getQuery.js +1 -26
  447. package/dist/esm/getRelatedArticle-66a08458.js +1 -0
  448. package/dist/esm/getRelatedArticle.js +1 -476
  449. package/dist/esm/getRootDocGroup.js +1 -60
  450. package/dist/esm/getSerializers.js +1 -62
  451. package/dist/esm/getSeriesDetail-aef9680c.js +1 -0
  452. package/dist/esm/getSeriesDetail.js +1 -38
  453. package/dist/esm/getTargeting-eeb7bb6a.js +1 -0
  454. package/dist/esm/getTargeting.js +1 -7
  455. package/dist/esm/index-00bbf2b1.js +1 -0
  456. package/dist/esm/index-24498aa0.js +1 -0
  457. package/dist/esm/index-541d17f5.js +1 -0
  458. package/dist/esm/index-a96a4f73.js +1 -0
  459. package/dist/esm/index.js +1 -536
  460. package/dist/esm/searchForm-8218e558.js +1 -0
  461. package/dist/esm/segment-lib-3a19dbdd.js +1 -0
  462. package/dist/esm/setCookie-0f2ab6df.js +1 -0
  463. package/dist/esm/slicedToArray-f57adb2c.js +1 -0
  464. package/dist/esm/style-inject.es-1f59c1d0.js +1 -28
  465. package/dist/esm/timeDifferenceCalc.js +1 -37
  466. package/dist/esm/toConsumableArray-2f86a0c1.js +1 -0
  467. package/dist/esm/typeof-92b42de1.js +1 -0
  468. package/dist/esm/unsupportedIterableToArray-b359dd50.js +1 -0
  469. package/dist/esm/urlFor-649884fa.js +1 -0
  470. package/dist/esm/urlFor.js +1 -63
  471. package/dist/esm/urlForFile-3b87fb01.js +1 -0
  472. package/dist/esm/ustream-api-7998d140.js +1 -0
  473. package/package.json +21 -20
  474. package/dist/cjs/ADInfeed-08a6ef56.js +0 -66
  475. package/dist/cjs/ADlgInfeed-f46139b2.js +0 -60
  476. package/dist/cjs/AuthorComponent-17e1c62b.js +0 -96
  477. package/dist/cjs/BlockContent-8b494587.js +0 -916
  478. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  479. package/dist/cjs/Dfp-bcaa7e3f.js +0 -103
  480. package/dist/cjs/ImageSlider-10cd194f.js +0 -1383
  481. package/dist/cjs/MediaSeriesCard-a6e3f32e.js +0 -81
  482. package/dist/cjs/NavFooter-4799de4b.js +0 -71
  483. package/dist/cjs/Pagination-7624a3bd.js +0 -90
  484. package/dist/cjs/PublicationFeature-6f89fb97.js +0 -130
  485. package/dist/cjs/SeriesSlider-08699353.js +0 -332
  486. package/dist/cjs/SocialSearchComponent-59192efd.js +0 -213
  487. package/dist/cjs/Tooltip-7be5df78.js +0 -9229
  488. package/dist/cjs/_commonjsHelpers-06173234.js +0 -25
  489. package/dist/cjs/_is-array-aa52fa1e.js +0 -74
  490. package/dist/cjs/_iter-detect-05795553.js +0 -52
  491. package/dist/cjs/_library-dd23b178.js +0 -5
  492. package/dist/cjs/_object-pie-68c5bcbc.js +0 -16
  493. package/dist/cjs/_object-sap-171b9ea5.js +0 -16
  494. package/dist/cjs/_object-to-array-9bac8737.js +0 -25
  495. package/dist/cjs/asyncToGenerator-df19209d.js +0 -1395
  496. package/dist/cjs/brightcove-react-player-loader.es-5c98aec7.js +0 -2232
  497. package/dist/cjs/checkSisterSite-b29833b2.js +0 -19
  498. package/dist/cjs/core.get-iterator-method-f3c44602.js +0 -584
  499. package/dist/cjs/debounce-529c8d06.js +0 -216
  500. package/dist/cjs/define-property-21887c62.js +0 -20
  501. package/dist/cjs/entities-310b46ee.js +0 -506
  502. package/dist/cjs/eq-bb2843ed.js +0 -79
  503. package/dist/cjs/extends-7df78678.js +0 -86
  504. package/dist/cjs/get-adbb11e3.js +0 -920
  505. package/dist/cjs/getContentCategory-f38a4c00.js +0 -11
  506. package/dist/cjs/getTargeting-5eabd6e2.js +0 -164
  507. package/dist/cjs/iconBase-68959171.js +0 -84
  508. package/dist/cjs/index-187c967e.js +0 -54
  509. package/dist/cjs/index-44481153.js +0 -1664
  510. package/dist/cjs/index-99edf08a.js +0 -1572
  511. package/dist/cjs/index-9d365128.js +0 -613
  512. package/dist/cjs/index-b278e08f.js +0 -10526
  513. package/dist/cjs/index-b5eb3ff8.js +0 -551
  514. package/dist/cjs/index-bd6c9f56.js +0 -211
  515. package/dist/cjs/index.es-f3e47207.js +0 -445
  516. package/dist/cjs/index.esm-44f3e2d0.js +0 -13
  517. package/dist/cjs/index.esm-48e0f0d8.js +0 -19
  518. package/dist/cjs/index.esm-f4cf6943.js +0 -97
  519. package/dist/cjs/index.esm-f93506ac.js +0 -25
  520. package/dist/cjs/inherits-420ee86f.js +0 -185
  521. package/dist/cjs/isSymbol-04666465.js +0 -209
  522. package/dist/cjs/js.cookie-a511c430.js +0 -160
  523. package/dist/cjs/keys-d207942e.js +0 -25
  524. package/dist/cjs/lodash-7fd85bcf.js +0 -17147
  525. package/dist/cjs/main-7b5e57b0.js +0 -898
  526. package/dist/cjs/md5-e1ca5797.js +0 -323
  527. package/dist/cjs/moment-ca3bd9fb.js +0 -5669
  528. package/dist/cjs/react-social-icons-07939b41.js +0 -616
  529. package/dist/cjs/slicedToArray-f6d4eaa8.js +0 -95
  530. package/dist/cjs/smoothscroll-5054361f.js +0 -438
  531. package/dist/cjs/stringify-bbc68047.js +0 -17
  532. package/dist/cjs/toConsumableArray-c9b8a0d0.js +0 -74
  533. package/dist/cjs/toNumber-36d1e7e5.js +0 -69
  534. package/dist/cjs/typeof-ec08d471.js +0 -382
  535. package/dist/cjs/urlForFile-ad96158c.js +0 -24
  536. package/dist/cjs/ustream-api-9ebe112f.js +0 -106
  537. package/dist/cjs/util-f2c1b65b.js +0 -576
  538. package/dist/cjs/visibility-sensor-eb2c5b69.js +0 -597
  539. package/dist/cjs/web.dom.iterable-e34bf324.js +0 -50
  540. package/dist/esm/ADInfeed-36973a76.js +0 -59
  541. package/dist/esm/ADlgInfeed-f6e898d5.js +0 -54
  542. package/dist/esm/AuthorComponent-b0a47123.js +0 -90
  543. package/dist/esm/BlockContent-d05b5b23.js +0 -909
  544. package/dist/esm/ConferenceBanner-9162d0ca.js +0 -18
  545. package/dist/esm/Dfp-e151d2de.js +0 -96
  546. package/dist/esm/ImageSlider-5ae6287a.js +0 -1375
  547. package/dist/esm/MediaSeriesCard-66045ffb.js +0 -75
  548. package/dist/esm/NavFooter-da30eae3.js +0 -65
  549. package/dist/esm/Pagination-1e09918f.js +0 -82
  550. package/dist/esm/PublicationFeature-0379cc20.js +0 -121
  551. package/dist/esm/SeriesSlider-b364d074.js +0 -326
  552. package/dist/esm/SocialSearchComponent-09b55779.js +0 -204
  553. package/dist/esm/Tooltip-af3e4ee9.js +0 -9220
  554. package/dist/esm/_commonjsHelpers-0c4b6f40.js +0 -19
  555. package/dist/esm/_is-array-31d40a83.js +0 -71
  556. package/dist/esm/_iter-detect-72edfd60.js +0 -48
  557. package/dist/esm/_library-528f1934.js +0 -3
  558. package/dist/esm/_object-pie-33c40e79.js +0 -13
  559. package/dist/esm/_object-sap-4201ccf6.js +0 -14
  560. package/dist/esm/_object-to-array-fa0feeff.js +0 -23
  561. package/dist/esm/asyncToGenerator-9c835201.js +0 -1387
  562. package/dist/esm/brightcove-react-player-loader.es-4abff0b1.js +0 -2226
  563. package/dist/esm/checkSisterSite-baa4fb6b.js +0 -17
  564. package/dist/esm/core.get-iterator-method-8c71f470.js +0 -547
  565. package/dist/esm/debounce-9207d8ee.js +0 -214
  566. package/dist/esm/define-property-a8a00786.js +0 -18
  567. package/dist/esm/entities-7cc3bf45.js +0 -503
  568. package/dist/esm/eq-b470f743.js +0 -76
  569. package/dist/esm/extends-7fbbe94e.js +0 -83
  570. package/dist/esm/get-1e515072.js +0 -918
  571. package/dist/esm/getContentCategory-15dcc413.js +0 -9
  572. package/dist/esm/getTargeting-eed01f73.js +0 -161
  573. package/dist/esm/iconBase-602d52fe.js +0 -81
  574. package/dist/esm/index-1819118a.js +0 -1655
  575. package/dist/esm/index-3a7c5bbe.js +0 -10504
  576. package/dist/esm/index-51a80699.js +0 -548
  577. package/dist/esm/index-6c12bdd5.js +0 -605
  578. package/dist/esm/index-c7e2ac95.js +0 -52
  579. package/dist/esm/index-db3bb315.js +0 -207
  580. package/dist/esm/index-fa2ffe86.js +0 -1570
  581. package/dist/esm/index.es-c6222053.js +0 -439
  582. package/dist/esm/index.esm-55f22b35.js +0 -14
  583. package/dist/esm/index.esm-9d701385.js +0 -90
  584. package/dist/esm/index.esm-c6715e80.js +0 -10
  585. package/dist/esm/index.esm-d1125763.js +0 -18
  586. package/dist/esm/inherits-d26c739e.js +0 -179
  587. package/dist/esm/isSymbol-1981418f.js +0 -203
  588. package/dist/esm/js.cookie-6874175c.js +0 -158
  589. package/dist/esm/keys-5e9bd229.js +0 -23
  590. package/dist/esm/lodash-ec8c6b48.js +0 -17145
  591. package/dist/esm/main-43ca42fe.js +0 -886
  592. package/dist/esm/md5-4e42248e.js +0 -321
  593. package/dist/esm/moment-b6f49411.js +0 -5667
  594. package/dist/esm/react-social-icons-3822f1ce.js +0 -609
  595. package/dist/esm/slicedToArray-99bcfd93.js +0 -92
  596. package/dist/esm/smoothscroll-0cd4c7a6.js +0 -436
  597. package/dist/esm/stringify-0c65d837.js +0 -15
  598. package/dist/esm/toConsumableArray-47a5394a.js +0 -71
  599. package/dist/esm/toNumber-2f7a84cd.js +0 -67
  600. package/dist/esm/typeof-d92ed6e0.js +0 -378
  601. package/dist/esm/urlForFile-0fc42ed8.js +0 -22
  602. package/dist/esm/ustream-api-cbba615a.js +0 -104
  603. package/dist/esm/util-7700fc59.js +0 -574
  604. package/dist/esm/visibility-sensor-f40c2564.js +0 -590
  605. package/dist/esm/web.dom.iterable-406140e0.js +0 -48
@@ -1,1375 +0,0 @@
1
- import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import React, { Component, useRef, useState, useEffect } from 'react';
3
- import PropTypes from 'prop-types';
4
- import { _ as _slicedToArray } from './slicedToArray-99bcfd93.js';
5
- import urlFor from './urlFor.js';
6
- import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
7
-
8
- function _classCallCheck(instance, Constructor) {
9
- if (!(instance instanceof Constructor)) {
10
- throw new TypeError("Cannot call a class as a function");
11
- }
12
- }
13
-
14
- function _defineProperties(target, props) {
15
- for (var i = 0; i < props.length; i++) {
16
- var descriptor = props[i];
17
- descriptor.enumerable = descriptor.enumerable || false;
18
- descriptor.configurable = true;
19
- if ("value" in descriptor) descriptor.writable = true;
20
- Object.defineProperty(target, descriptor.key, descriptor);
21
- }
22
- }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) {
25
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
26
- if (staticProps) _defineProperties(Constructor, staticProps);
27
- return Constructor;
28
- }
29
-
30
- function _typeof(obj) {
31
- "@babel/helpers - typeof";
32
-
33
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
34
- _typeof = function _typeof(obj) {
35
- return typeof obj;
36
- };
37
- } else {
38
- _typeof = function _typeof(obj) {
39
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
40
- };
41
- }
42
-
43
- return _typeof(obj);
44
- }
45
-
46
- function _assertThisInitialized(self) {
47
- if (self === void 0) {
48
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
49
- }
50
-
51
- return self;
52
- }
53
-
54
- function _possibleConstructorReturn(self, call) {
55
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
56
- return call;
57
- }
58
-
59
- return _assertThisInitialized(self);
60
- }
61
-
62
- function _getPrototypeOf(o) {
63
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
64
- return o.__proto__ || Object.getPrototypeOf(o);
65
- };
66
- return _getPrototypeOf(o);
67
- }
68
-
69
- function _setPrototypeOf(o, p) {
70
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
71
- o.__proto__ = p;
72
- return o;
73
- };
74
-
75
- return _setPrototypeOf(o, p);
76
- }
77
-
78
- function _inherits(subClass, superClass) {
79
- if (typeof superClass !== "function" && superClass !== null) {
80
- throw new TypeError("Super expression must either be null or a function");
81
- }
82
-
83
- subClass.prototype = Object.create(superClass && superClass.prototype, {
84
- constructor: {
85
- value: subClass,
86
- writable: true,
87
- configurable: true
88
- }
89
- });
90
- if (superClass) _setPrototypeOf(subClass, superClass);
91
- }
92
-
93
- function _defineProperty(obj, key, value) {
94
- if (key in obj) {
95
- Object.defineProperty(obj, key, {
96
- value: value,
97
- enumerable: true,
98
- configurable: true,
99
- writable: true
100
- });
101
- } else {
102
- obj[key] = value;
103
- }
104
-
105
- return obj;
106
- }
107
-
108
- var isRequiredIf_1 = createCommonjsModule(function (module, exports) {
109
- Object.defineProperty(exports,'__esModule',{value:!0});var VALIDATOR_ARG_ERROR_MESSAGE='The typeValidator argument must be a function with the signature function(props, propName, componentName).',MESSAGE_ARG_ERROR_MESSAGE='The error message is optional, but must be a string if provided.',propIsRequired=function propIsRequired(a,b,c,d){if('boolean'==typeof a)return a;return 'function'==typeof a?a(b,c,d):!(!0!==!!a)&&!!a},propExists=function propExists(a,b){return Object.hasOwnProperty.call(a,b)},missingPropError=function missingPropError(a,b,c,d){return d?new Error(d):new Error('Required '+a[b]+' `'+b+'`'+(' was not specified in `'+c+'`.'))},guardAgainstInvalidArgTypes=function guardAgainstInvalidArgTypes(a,b){if('function'!=typeof a)throw new TypeError(VALIDATOR_ARG_ERROR_MESSAGE);if(!!b&&'string'!=typeof b)throw new TypeError(MESSAGE_ARG_ERROR_MESSAGE)},isRequiredIf=function isRequiredIf(a,b,c){return guardAgainstInvalidArgTypes(a,c),function(d,e,f){for(var _len=arguments.length,g=Array(3<_len?_len-3:0),_key=3;_key<_len;_key++)g[_key-3]=arguments[_key];return propIsRequired(b,d,e,f)?propExists(d,e)?a.apply(void 0,[d,e,f].concat(g)):missingPropError(d,e,f,c):a.apply(void 0,[d,e,f].concat(g));// Is not required, so just run typeValidator.
110
- }};exports.default=isRequiredIf;
111
-
112
-
113
- });
114
-
115
- var isRequiredIf = unwrapExports(isRequiredIf_1);
116
-
117
- var exenv = createCommonjsModule(function (module) {
118
- /*!
119
- Copyright (c) 2015 Jed Watson.
120
- Based on code that is Copyright 2013-2015, Facebook, Inc.
121
- All rights reserved.
122
- */
123
- /* global define */
124
-
125
- (function () {
126
-
127
- var canUseDOM = !!(
128
- typeof window !== 'undefined' &&
129
- window.document &&
130
- window.document.createElement
131
- );
132
-
133
- var ExecutionEnvironment = {
134
-
135
- canUseDOM: canUseDOM,
136
-
137
- canUseWorkers: typeof Worker !== 'undefined',
138
-
139
- canUseEventListeners:
140
- canUseDOM && !!(window.addEventListener || window.attachEvent),
141
-
142
- canUseViewport: canUseDOM && !!window.screen
143
-
144
- };
145
-
146
- if ( module.exports) {
147
- module.exports = ExecutionEnvironment;
148
- } else {
149
- window.ExecutionEnvironment = ExecutionEnvironment;
150
- }
151
-
152
- }());
153
- });
154
-
155
- var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
156
-
157
- var TwitterTimelineEmbed =
158
- /*#__PURE__*/
159
- function (_Component) {
160
- _inherits(TwitterTimelineEmbed, _Component);
161
-
162
- function TwitterTimelineEmbed(props) {
163
- var _this;
164
-
165
- _classCallCheck(this, TwitterTimelineEmbed);
166
-
167
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
168
- _this.state = {
169
- isLoading: true
170
- };
171
- return _this;
172
- }
173
-
174
- _createClass(TwitterTimelineEmbed, [{
175
- key: "buildChromeOptions",
176
- value: function buildChromeOptions(options) {
177
- options.chrome = '';
178
-
179
- if (this.props.noHeader) {
180
- options.chrome = options.chrome + ' noheader';
181
- }
182
-
183
- if (this.props.noFooter) {
184
- options.chrome = options.chrome + ' nofooter';
185
- }
186
-
187
- if (this.props.noBorders) {
188
- options.chrome = options.chrome + ' noborders';
189
- }
190
-
191
- if (this.props.noScrollbar) {
192
- options.chrome = options.chrome + ' noscrollbar';
193
- }
194
-
195
- if (this.props.transparent) {
196
- options.chrome = options.chrome + ' transparent';
197
- }
198
-
199
- return options;
200
- }
201
- }, {
202
- key: "buildOptions",
203
- value: function buildOptions() {
204
- var options = Object.assign({}, this.props.options);
205
-
206
- if (this.props.autoHeight) {
207
- options.height = this.refs.embedContainer.parentNode.offsetHeight;
208
- }
209
-
210
- options = Object.assign({}, options, {
211
- theme: this.props.theme,
212
- linkColor: this.props.linkColor,
213
- borderColor: this.props.borderColor,
214
- lang: this.props.lang
215
- });
216
- return options;
217
- }
218
- }, {
219
- key: "renderWidget",
220
- value: function renderWidget(options) {
221
- var _this2 = this;
222
-
223
- var onLoad = this.props.onLoad;
224
-
225
- if (!this.isMountCanceled) {
226
- window.twttr.widgets.createTimeline({
227
- sourceType: this.props.sourceType,
228
- screenName: this.props.screenName,
229
- userId: this.props.userId,
230
- ownerScreenName: this.props.ownerScreenName,
231
- slug: this.props.slug,
232
- id: this.props.id || this.props.widgetId,
233
- url: this.props.url
234
- }, this.refs.embedContainer, options).then(function (element) {
235
- _this2.setState({
236
- isLoading: false
237
- });
238
-
239
- if (onLoad) {
240
- onLoad(element);
241
- }
242
- });
243
- }
244
- }
245
- }, {
246
- key: "componentDidMount",
247
- value: function componentDidMount() {
248
- var _this3 = this;
249
-
250
- if (exenv.canUseDOM) {
251
- var script = require('scriptjs');
252
-
253
- script(twitterWidgetJs, 'twitter-embed', function () {
254
- if (!window.twttr) {
255
- console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
256
- return;
257
- }
258
-
259
- var options = _this3.buildOptions();
260
- /** Append chrome options */
261
-
262
-
263
- options = _this3.buildChromeOptions(options);
264
-
265
- _this3.renderWidget(options);
266
- });
267
- }
268
- }
269
- }, {
270
- key: "componentWillUnmount",
271
- value: function componentWillUnmount() {
272
- this.isMountCanceled = true;
273
- }
274
- }, {
275
- key: "render",
276
- value: function render() {
277
- var isLoading = this.state.isLoading;
278
- var placeholder = this.props.placeholder;
279
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
280
- ref: "embedContainer"
281
- }));
282
- }
283
- }]);
284
-
285
- return TwitterTimelineEmbed;
286
- }(Component);
287
-
288
- _defineProperty(TwitterTimelineEmbed, "propTypes", {
289
- /**
290
- * This can be either of profile, likes, list, collection, URL, widget
291
- */
292
- sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
293
-
294
- /**
295
- * username of twitter handle as String
296
- */
297
- screenName: isRequiredIf(PropTypes.string, function (props) {
298
- return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
299
- }),
300
-
301
- /**
302
- * UserId of twitter handle as number
303
- */
304
- userId: isRequiredIf(PropTypes.number, function (props) {
305
- return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
306
- }),
307
-
308
- /**
309
- * To show list, used along with slug
310
- */
311
- ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
312
- return props.sourceType === 'list' && !props.hasOwnProperty('id');
313
- }),
314
-
315
- /**
316
- * To show list, used along with ownerScreenName
317
- */
318
- slug: isRequiredIf(PropTypes.string, function (props) {
319
- return props.sourceType === 'list' && !props.hasOwnProperty('id');
320
- }),
321
-
322
- /**
323
- * To show list, unique list id
324
- * Also used with collections, in that case its valid collection id
325
- */
326
- id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
327
- return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
328
- }),
329
-
330
- /**
331
- * To show twitter content with url.
332
- * Supported content includes profiles, likes, lists, and collections.
333
- */
334
- url: isRequiredIf(PropTypes.string, function (props) {
335
- return props.sourceType === 'url';
336
- }),
337
-
338
- /**
339
- * To show custom widget
340
- */
341
- widgetId: isRequiredIf(PropTypes.string, function (props) {
342
- return props.sourceType === 'widget';
343
- }),
344
-
345
- /**
346
- * Additional options to pass to twitter widget plugin
347
- */
348
- options: PropTypes.object,
349
-
350
- /**
351
- * Automatically fit into parent container height
352
- */
353
- autoHeight: PropTypes.bool,
354
-
355
- /**
356
- * With dark or light theme
357
- */
358
- theme: PropTypes.oneOf(['dark', 'light']),
359
-
360
- /**
361
- * With custom link colors. Note: Only Hex colors are supported.
362
- */
363
- linkColor: PropTypes.string,
364
-
365
- /**
366
- * With custom border colors. Note: Only Hex colors are supported.
367
- */
368
- borderColor: PropTypes.string,
369
-
370
- /**
371
- * Hide the header from timeline
372
- */
373
- noHeader: PropTypes.bool,
374
-
375
- /**
376
- * Hide the footer from timeline
377
- */
378
- noFooter: PropTypes.bool,
379
-
380
- /**
381
- * Hide the border from timeline
382
- */
383
- noBorders: PropTypes.bool,
384
-
385
- /**
386
- * Hide the scrollbars
387
- */
388
- noScrollbar: PropTypes.bool,
389
-
390
- /**
391
- * Enable Transparancy
392
- */
393
- transparent: PropTypes.bool,
394
-
395
- /**
396
- * Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
397
- */
398
- lang: PropTypes.string,
399
-
400
- /**
401
- * Placeholder while tweet is loading
402
- */
403
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
404
-
405
- /**
406
- * Function to execute after load, return html element
407
- */
408
- onLoad: PropTypes.func
409
- });
410
-
411
- var TwitterShareButton =
412
- /*#__PURE__*/
413
- function (_Component) {
414
- _inherits(TwitterShareButton, _Component);
415
-
416
- function TwitterShareButton(props) {
417
- var _this;
418
-
419
- _classCallCheck(this, TwitterShareButton);
420
-
421
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
422
- _this.state = {
423
- isLoading: true
424
- };
425
- return _this;
426
- }
427
-
428
- _createClass(TwitterShareButton, [{
429
- key: "componentDidMount",
430
- value: function componentDidMount() {
431
- var _this2 = this;
432
-
433
- var onLoad = this.props.onLoad;
434
-
435
- if (exenv.canUseDOM) {
436
- var script = require('scriptjs');
437
-
438
- script(twitterWidgetJs, 'twitter-embed', function () {
439
- if (!window.twttr) {
440
- console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
441
- return;
442
- }
443
-
444
- if (!_this2.isMountCanceled) {
445
- window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
446
- _this2.setState({
447
- isLoading: false
448
- });
449
-
450
- if (onLoad) {
451
- onLoad(element);
452
- }
453
- });
454
- }
455
- });
456
- }
457
- }
458
- }, {
459
- key: "componentWillUnmount",
460
- value: function componentWillUnmount() {
461
- this.isMountCanceled = true;
462
- }
463
- }, {
464
- key: "render",
465
- value: function render() {
466
- var isLoading = this.state.isLoading;
467
- var placeholder = this.props.placeholder;
468
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
469
- ref: "embedContainer"
470
- }));
471
- }
472
- }]);
473
-
474
- return TwitterShareButton;
475
- }(Component);
476
-
477
- _defineProperty(TwitterShareButton, "propTypes", {
478
- /**
479
- * Url for sharing
480
- */
481
- url: PropTypes.string.isRequired,
482
-
483
- /**
484
- * Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
485
- */
486
- options: PropTypes.object,
487
-
488
- /**
489
- * Placeholder while tweet is loading
490
- */
491
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
492
-
493
- /**
494
- * Function to execute after load, return html element
495
- */
496
- onLoad: PropTypes.func
497
- });
498
-
499
- var TwitterFollowButton =
500
- /*#__PURE__*/
501
- function (_Component) {
502
- _inherits(TwitterFollowButton, _Component);
503
-
504
- function TwitterFollowButton(props) {
505
- var _this;
506
-
507
- _classCallCheck(this, TwitterFollowButton);
508
-
509
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
510
- _this.state = {
511
- isLoading: true
512
- };
513
- return _this;
514
- }
515
-
516
- _createClass(TwitterFollowButton, [{
517
- key: "componentDidMount",
518
- value: function componentDidMount() {
519
- var _this2 = this;
520
-
521
- var onLoad = this.props.onLoad;
522
-
523
- if (exenv.canUseDOM) {
524
- var script = require('scriptjs');
525
-
526
- script(twitterWidgetJs, 'twitter-embed', function () {
527
- if (!window.twttr) {
528
- console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
529
- return;
530
- }
531
-
532
- if (!_this2.isMountCanceled) {
533
- window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
534
- _this2.setState({
535
- isLoading: false
536
- });
537
-
538
- if (onLoad) {
539
- onLoad(element);
540
- }
541
- });
542
- }
543
- });
544
- }
545
- }
546
- }, {
547
- key: "componentWillUnmount",
548
- value: function componentWillUnmount() {
549
- this.isMountCanceled = true;
550
- }
551
- }, {
552
- key: "render",
553
- value: function render() {
554
- var isLoading = this.state.isLoading;
555
- var placeholder = this.props.placeholder;
556
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
557
- ref: "embedContainer"
558
- }));
559
- }
560
- }]);
561
-
562
- return TwitterFollowButton;
563
- }(Component);
564
-
565
- _defineProperty(TwitterFollowButton, "propTypes", {
566
- /**
567
- * Username of twitter user which will be followed on click
568
- */
569
- screenName: PropTypes.string.isRequired,
570
-
571
- /**
572
- * Additional options to be added to the button
573
- */
574
- options: PropTypes.object,
575
-
576
- /**
577
- * Placeholder while tweet is loading
578
- */
579
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
580
-
581
- /**
582
- * Function to execute after load, return html element
583
- */
584
- onLoad: PropTypes.func
585
- });
586
-
587
- var TwitterHashtagButton =
588
- /*#__PURE__*/
589
- function (_Component) {
590
- _inherits(TwitterHashtagButton, _Component);
591
-
592
- function TwitterHashtagButton(props) {
593
- var _this;
594
-
595
- _classCallCheck(this, TwitterHashtagButton);
596
-
597
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
598
- _this.state = {
599
- isLoading: true
600
- };
601
- return _this;
602
- }
603
-
604
- _createClass(TwitterHashtagButton, [{
605
- key: "componentDidMount",
606
- value: function componentDidMount() {
607
- var _this2 = this;
608
-
609
- var onLoad = this.props.onLoad;
610
-
611
- if (exenv.canUseDOM) {
612
- var script = require('scriptjs');
613
-
614
- script(twitterWidgetJs, 'twitter-embed', function () {
615
- if (!window.twttr) {
616
- console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
617
- return;
618
- }
619
-
620
- if (!_this2.isMountCanceled) {
621
- window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
622
- _this2.setState({
623
- isLoading: false
624
- });
625
-
626
- if (onLoad) {
627
- onLoad(element);
628
- }
629
- });
630
- }
631
- });
632
- }
633
- }
634
- }, {
635
- key: "componentWillUnmount",
636
- value: function componentWillUnmount() {
637
- this.isMountCanceled = true;
638
- }
639
- }, {
640
- key: "render",
641
- value: function render() {
642
- var isLoading = this.state.isLoading;
643
- var placeholder = this.props.placeholder;
644
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
645
- ref: "embedContainer"
646
- }));
647
- }
648
- }]);
649
-
650
- return TwitterHashtagButton;
651
- }(Component);
652
-
653
- _defineProperty(TwitterHashtagButton, "propTypes", {
654
- /**
655
- * Tag name for hashtag button
656
- */
657
- tag: PropTypes.string.isRequired,
658
-
659
- /**
660
- * Additional options to be added to the button
661
- */
662
- options: PropTypes.object,
663
-
664
- /**
665
- * Placeholder while tweet is loading
666
- */
667
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
668
-
669
- /**
670
- * Function to execute after load, return html element
671
- */
672
- onLoad: PropTypes.func
673
- });
674
-
675
- var TwitterMentionButton =
676
- /*#__PURE__*/
677
- function (_Component) {
678
- _inherits(TwitterMentionButton, _Component);
679
-
680
- function TwitterMentionButton(props) {
681
- var _this;
682
-
683
- _classCallCheck(this, TwitterMentionButton);
684
-
685
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
686
- _this.state = {
687
- isLoading: true
688
- };
689
- return _this;
690
- }
691
-
692
- _createClass(TwitterMentionButton, [{
693
- key: "componentDidMount",
694
- value: function componentDidMount() {
695
- var _this2 = this;
696
-
697
- var onLoad = this.props.onLoad;
698
-
699
- if (exenv.canUseDOM) {
700
- var script = require('scriptjs');
701
-
702
- script(twitterWidgetJs, 'twitter-embed', function () {
703
- if (!window.twttr) {
704
- console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
705
- return;
706
- }
707
-
708
- if (!_this2.isMountCanceled) {
709
- window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
710
- _this2.setState({
711
- isLoading: false
712
- });
713
-
714
- if (onLoad) {
715
- onLoad(element);
716
- }
717
- });
718
- }
719
- });
720
- }
721
- }
722
- }, {
723
- key: "componentWillUnmount",
724
- value: function componentWillUnmount() {
725
- this.isMountCanceled = true;
726
- }
727
- }, {
728
- key: "render",
729
- value: function render() {
730
- var isLoading = this.state.isLoading;
731
- var placeholder = this.props.placeholder;
732
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
733
- ref: "embedContainer"
734
- }));
735
- }
736
- }]);
737
-
738
- return TwitterMentionButton;
739
- }(Component);
740
-
741
- _defineProperty(TwitterMentionButton, "propTypes", {
742
- /**
743
- * Username to which you will need to tweet
744
- */
745
- screenName: PropTypes.string.isRequired,
746
-
747
- /**
748
- * Additional options for overriding config.
749
- */
750
- options: PropTypes.object,
751
-
752
- /**
753
- * Placeholder while tweet is loading
754
- */
755
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
756
-
757
- /**
758
- * Function to execute after load, return html element
759
- */
760
- onLoad: PropTypes.func
761
- });
762
-
763
- var TwitterTweetEmbed =
764
- /*#__PURE__*/
765
- function (_Component) {
766
- _inherits(TwitterTweetEmbed, _Component);
767
-
768
- function TwitterTweetEmbed(props) {
769
- var _this;
770
-
771
- _classCallCheck(this, TwitterTweetEmbed);
772
-
773
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
774
- _this.state = {
775
- isLoading: true
776
- };
777
- return _this;
778
- }
779
-
780
- _createClass(TwitterTweetEmbed, [{
781
- key: "renderWidget",
782
- value: function renderWidget() {
783
- var _this2 = this;
784
-
785
- var onLoad = this.props.onLoad;
786
-
787
- if (!window.twttr) {
788
- console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
789
- return;
790
- }
791
-
792
- if (!this.isMountCanceled) {
793
- window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
794
- _this2.setState({
795
- isLoading: false
796
- });
797
-
798
- if (onLoad) {
799
- onLoad(element);
800
- }
801
- });
802
- }
803
- }
804
- }, {
805
- key: "componentDidMount",
806
- value: function componentDidMount() {
807
- var _this3 = this;
808
-
809
- if (exenv.canUseDOM) {
810
- var script = require('scriptjs');
811
-
812
- script(twitterWidgetJs, 'twitter-embed', function () {
813
- _this3.renderWidget();
814
- });
815
- }
816
- }
817
- }, {
818
- key: "componentWillUnmount",
819
- value: function componentWillUnmount() {
820
- this.isMountCanceled = true;
821
- }
822
- }, {
823
- key: "render",
824
- value: function render() {
825
- var isLoading = this.state.isLoading;
826
- var placeholder = this.props.placeholder;
827
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
828
- ref: "embedContainer"
829
- }));
830
- }
831
- }]);
832
-
833
- return TwitterTweetEmbed;
834
- }(Component);
835
-
836
- _defineProperty(TwitterTweetEmbed, "propTypes", {
837
- /**
838
- * Tweet id that needs to be shown
839
- */
840
- tweetId: PropTypes.string.isRequired,
841
-
842
- /**
843
- * Additional options to pass to twitter widget plugin
844
- */
845
- options: PropTypes.object,
846
-
847
- /**
848
- * Placeholder while tweet is loading
849
- */
850
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
851
-
852
- /**
853
- * Function to execute after load, return html element
854
- */
855
- onLoad: PropTypes.func
856
- });
857
-
858
- var TwitterMomentShare =
859
- /*#__PURE__*/
860
- function (_Component) {
861
- _inherits(TwitterMomentShare, _Component);
862
-
863
- function TwitterMomentShare(props) {
864
- var _this;
865
-
866
- _classCallCheck(this, TwitterMomentShare);
867
-
868
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
869
- _this.state = {
870
- isLoading: true
871
- };
872
- return _this;
873
- }
874
-
875
- _createClass(TwitterMomentShare, [{
876
- key: "componentDidMount",
877
- value: function componentDidMount() {
878
- var _this2 = this;
879
-
880
- var onLoad = this.props.onLoad;
881
-
882
- if (exenv.canUseDOM) {
883
- var script = require('scriptjs');
884
-
885
- script(twitterWidgetJs, 'twitter-embed', function () {
886
- if (!window.twttr) {
887
- console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
888
- return;
889
- }
890
-
891
- if (!_this2.isMountCanceled) {
892
- window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
893
- _this2.setState({
894
- isLoading: false
895
- });
896
-
897
- if (onLoad) {
898
- onLoad(element);
899
- }
900
- });
901
- }
902
- });
903
- }
904
- }
905
- }, {
906
- key: "componentWillUnmount",
907
- value: function componentWillUnmount() {
908
- this.isMountCanceled = true;
909
- }
910
- }, {
911
- key: "render",
912
- value: function render() {
913
- var isLoading = this.state.isLoading;
914
- var placeholder = this.props.placeholder;
915
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
916
- ref: "shareMoment"
917
- }));
918
- }
919
- }]);
920
-
921
- return TwitterMomentShare;
922
- }(Component);
923
-
924
- _defineProperty(TwitterMomentShare, "propTypes", {
925
- /**
926
- * id of Twitter moment to show
927
- */
928
- momentId: PropTypes.string.isRequired,
929
-
930
- /**
931
- * Additional options for overriding config.
932
- */
933
- options: PropTypes.object,
934
-
935
- /**
936
- * Placeholder while tweet is loading
937
- */
938
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
939
-
940
- /**
941
- * Function to execute after load, return html element
942
- */
943
- onLoad: PropTypes.func
944
- });
945
-
946
- var TwitterDMButton =
947
- /*#__PURE__*/
948
- function (_Component) {
949
- _inherits(TwitterDMButton, _Component);
950
-
951
- function TwitterDMButton(props) {
952
- var _this;
953
-
954
- _classCallCheck(this, TwitterDMButton);
955
-
956
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
957
- _this.state = {
958
- isLoading: true
959
- };
960
- return _this;
961
- }
962
-
963
- _createClass(TwitterDMButton, [{
964
- key: "componentDidMount",
965
- value: function componentDidMount() {
966
- var _this2 = this;
967
-
968
- var onLoad = this.props.onLoad;
969
-
970
- if (exenv.canUseDOM) {
971
- var script = require('scriptjs');
972
-
973
- script(twitterWidgetJs, 'twitter-embed', function () {
974
- if (!window.twttr) {
975
- console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
976
- return;
977
- }
978
-
979
- if (!_this2.isMountCanceled) {
980
- window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
981
- _this2.setState({
982
- isLoading: false
983
- });
984
-
985
- if (onLoad) {
986
- onLoad(element);
987
- }
988
- });
989
- }
990
- });
991
- }
992
- }
993
- }, {
994
- key: "componentWillUnmount",
995
- value: function componentWillUnmount() {
996
- this.isMountCanceled = true;
997
- }
998
- }, {
999
- key: "render",
1000
- value: function render() {
1001
- var isLoading = this.state.isLoading;
1002
- var placeholder = this.props.placeholder;
1003
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
1004
- ref: "embedContainer"
1005
- }));
1006
- }
1007
- }]);
1008
-
1009
- return TwitterDMButton;
1010
- }(Component);
1011
-
1012
- _defineProperty(TwitterDMButton, "propTypes", {
1013
- /**
1014
- * Twitter user id for DM button
1015
- */
1016
- id: PropTypes.number.isRequired,
1017
-
1018
- /**
1019
- * Additional options to be added to the button
1020
- */
1021
- options: PropTypes.object,
1022
-
1023
- /**
1024
- * Placeholder while tweet is loading
1025
- */
1026
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
1027
-
1028
- /**
1029
- * Function to execute after load, return html element
1030
- */
1031
- onLoad: PropTypes.func
1032
- });
1033
-
1034
- var TwitterVideoEmbed =
1035
- /*#__PURE__*/
1036
- function (_Component) {
1037
- _inherits(TwitterVideoEmbed, _Component);
1038
-
1039
- function TwitterVideoEmbed(props) {
1040
- var _this;
1041
-
1042
- _classCallCheck(this, TwitterVideoEmbed);
1043
-
1044
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
1045
- _this.state = {
1046
- isLoading: true
1047
- };
1048
- return _this;
1049
- }
1050
-
1051
- _createClass(TwitterVideoEmbed, [{
1052
- key: "componentDidMount",
1053
- value: function componentDidMount() {
1054
- var _this2 = this;
1055
-
1056
- var onLoad = this.props.onLoad;
1057
-
1058
- if (exenv.canUseDOM) {
1059
- var script = require('scriptjs');
1060
-
1061
- script(twitterWidgetJs, 'twitter-embed', function () {
1062
- if (!window.twttr) {
1063
- console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
1064
- return;
1065
- }
1066
-
1067
- if (!_this2.isMountCanceled) {
1068
- window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
1069
- _this2.setState({
1070
- isLoading: false
1071
- });
1072
-
1073
- if (onLoad) {
1074
- onLoad(element);
1075
- }
1076
- });
1077
- }
1078
- });
1079
- }
1080
- }
1081
- }, {
1082
- key: "componentWillUnmount",
1083
- value: function componentWillUnmount() {
1084
- this.isMountCanceled = true;
1085
- }
1086
- }, {
1087
- key: "render",
1088
- value: function render() {
1089
- var isLoading = this.state.isLoading;
1090
- var placeholder = this.props.placeholder;
1091
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
1092
- ref: "embedContainer"
1093
- }));
1094
- }
1095
- }]);
1096
-
1097
- return TwitterVideoEmbed;
1098
- }(Component);
1099
-
1100
- _defineProperty(TwitterVideoEmbed, "propTypes", {
1101
- /**
1102
- * Id of video tweet.
1103
- */
1104
- id: PropTypes.string.isRequired,
1105
-
1106
- /**
1107
- * Placeholder while tweet is loading
1108
- */
1109
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
1110
-
1111
- /**
1112
- * Function to execute after load, return html element
1113
- */
1114
- onLoad: PropTypes.func
1115
- });
1116
-
1117
- var TwitterOnAirButton =
1118
- /*#__PURE__*/
1119
- function (_Component) {
1120
- _inherits(TwitterOnAirButton, _Component);
1121
-
1122
- function TwitterOnAirButton(props) {
1123
- var _this;
1124
-
1125
- _classCallCheck(this, TwitterOnAirButton);
1126
-
1127
- _this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
1128
- _this.state = {
1129
- isLoading: true
1130
- };
1131
- return _this;
1132
- }
1133
-
1134
- _createClass(TwitterOnAirButton, [{
1135
- key: "componentDidMount",
1136
- value: function componentDidMount() {
1137
- var _this2 = this;
1138
-
1139
- var onLoad = this.props.onLoad;
1140
-
1141
- if (exenv.canUseDOM) {
1142
- var script = require('scriptjs');
1143
-
1144
- script(twitterWidgetJs, 'twitter-embed', function () {
1145
- if (!window.twttr) {
1146
- console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
1147
- return;
1148
- }
1149
-
1150
- if (!_this2.isMountCanceled) {
1151
- window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
1152
- _this2.setState({
1153
- isLoading: false
1154
- });
1155
-
1156
- if (onLoad) {
1157
- onLoad(element);
1158
- }
1159
- });
1160
- }
1161
- });
1162
- }
1163
- }
1164
- }, {
1165
- key: "componentWillUnmount",
1166
- value: function componentWillUnmount() {
1167
- this.isMountCanceled = true;
1168
- }
1169
- }, {
1170
- key: "render",
1171
- value: function render() {
1172
- var isLoading = this.state.isLoading;
1173
- var placeholder = this.props.placeholder;
1174
- return React.createElement(React.Fragment, null, isLoading && placeholder, React.createElement("div", {
1175
- ref: "embedContainer"
1176
- }));
1177
- }
1178
- }]);
1179
-
1180
- return TwitterOnAirButton;
1181
- }(Component);
1182
-
1183
- _defineProperty(TwitterOnAirButton, "propTypes", {
1184
- /**
1185
- * Username for which you require periscope on air button
1186
- */
1187
- username: PropTypes.string.isRequired,
1188
-
1189
- /**
1190
- * Additional options for overriding config.
1191
- */
1192
- options: PropTypes.object,
1193
-
1194
- /**
1195
- * Placeholder while tweet is loading
1196
- */
1197
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
1198
-
1199
- /**
1200
- * Function to execute after load, return html element
1201
- */
1202
- onLoad: PropTypes.func
1203
- });
1204
-
1205
- var ImageSlider = function ImageSlider(props) {
1206
- var innerSlider = useRef(null);
1207
- var tile = useRef(null);
1208
- var viewableWindow = useRef(null);
1209
-
1210
- var _useState = useState(0),
1211
- _useState2 = _slicedToArray(_useState, 2),
1212
- tileSize = _useState2[0],
1213
- setTileSize = _useState2[1];
1214
-
1215
- var _useState3 = useState(false),
1216
- _useState4 = _slicedToArray(_useState3, 2),
1217
- showScroller = _useState4[0],
1218
- setShowScroller = _useState4[1];
1219
-
1220
- var _useState5 = useState(0),
1221
- _useState6 = _slicedToArray(_useState5, 2),
1222
- scrollPosition = _useState6[0],
1223
- setScrollPosition = _useState6[1];
1224
-
1225
- var client = props.client;
1226
-
1227
-
1228
- function scrollSlider(e, direction) {
1229
- var slide = e.target.parentElement;
1230
- var scrollOffset = scrollPosition;
1231
- var viewableWidth = slide.clientWidth;
1232
- //calculate viewable size / slide
1233
- var numberOfSlidesToScroll = Math.floor(tile.current.clientWidth + 25); //width of the tile plus margin
1234
- var scrollDirection = void 0;
1235
- if (direction === 'next') {
1236
- scrollDirection = scrollOffset + numberOfSlidesToScroll;
1237
- if (scrollOffset + viewableWidth + 25 >= innerSlider.current.offsetWidth) {
1238
- scrollDirection = 0;
1239
- }
1240
- }
1241
- if (direction === 'prev') {
1242
- scrollDirection = scrollOffset - numberOfSlidesToScroll;
1243
- if (scrollOffset === 0) {
1244
- if (window.innerWidth > 1399) {
1245
- scrollDirection = innerSlider.current.offsetWidth - tileSize * 3 - 70;
1246
- }
1247
- if (window.innerWidth < 1399 && window.innerWidth > 592) {
1248
- scrollDirection = innerSlider.current.offsetWidth - tileSize * 2 - 40;
1249
- }
1250
- if (window.innerWidth < 592) {
1251
- scrollDirection = innerSlider.current.offsetWidth - tileSize * 1 - 24;
1252
- }
1253
- }
1254
- }
1255
- slide.scrollTo({
1256
- left: scrollDirection,
1257
- behavior: 'smooth'
1258
- });
1259
- setScrollPosition(scrollDirection);
1260
- }
1261
- var setThumbSize = function setThumbSize() {
1262
- var thumbSize = void 0;
1263
- var scrollerVisible = false;
1264
- if (window.innerWidth > 1399) {
1265
- if (props.data.slides && props.data.slides.length < 3) {
1266
- thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 40);
1267
- } else {
1268
- thumbSize = Math.floor(viewableWindow.current.clientWidth / 3 - 40);
1269
- }
1270
- if (props.data.slides.length > 3) {
1271
- scrollerVisible = true;
1272
- }
1273
- }
1274
- if (window.innerWidth < 1399 && window.innerWidth > 592) {
1275
- thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 48);
1276
- if (props.data.slides.length > 2) {
1277
- scrollerVisible = true;
1278
- }
1279
- }
1280
- if (window.innerWidth < 592) {
1281
- thumbSize = Math.floor(viewableWindow.current.clientWidth / 1 - 64);
1282
- if (props.data.slides.length > 1) {
1283
- scrollerVisible = true;
1284
- }
1285
- }
1286
- if (thumbSize !== tileSize) {
1287
- setTileSize(thumbSize);
1288
- setScrollPosition(0);
1289
- setShowScroller(scrollerVisible);
1290
- var videoRows = document.querySelectorAll('#vid-slider .row');
1291
- for (var i = 0; i < videoRows.length; i++) {
1292
- videoRows[i].scrollTo({
1293
- left: 0,
1294
- behavior: 'smooth'
1295
- });
1296
- }
1297
- }
1298
- };
1299
- useEffect(function () {
1300
- //IE11 Polyfill
1301
- smoothscroll.polyfill();
1302
- setThumbSize();
1303
-
1304
- window.addEventListener('resize', setThumbSize);
1305
-
1306
- return function () {
1307
- return window.removeEventListener('resize', setThumbSize);
1308
- };
1309
- }, []);
1310
-
1311
- var variant = 'black';
1312
- return React.createElement(
1313
- React.Fragment,
1314
- null,
1315
- React.createElement(
1316
- 'div',
1317
- { ref: viewableWindow, id: 'vid-slider', className: 'col' },
1318
- React.createElement(
1319
- 'div',
1320
- { className: 'row' },
1321
- showScroller && React.createElement(
1322
- 'div',
1323
- { onClick: function onClick(e) {
1324
- return scrollSlider(e, 'prev');
1325
- }, className: 'tile__slider-prev', style: { color: variant } },
1326
- React.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
1327
- ),
1328
- showScroller && React.createElement(
1329
- 'div',
1330
- { onClick: function onClick(e) {
1331
- return scrollSlider(e, 'next');
1332
- }, className: 'tile__slider-next', style: { color: variant } },
1333
- React.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
1334
- ),
1335
- React.createElement(
1336
- 'div',
1337
- { ref: innerSlider, className: 'row__inner' },
1338
- props.data.slides.map(function (img, index) {
1339
- var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
1340
- if (!img.slideshowImage.link) {
1341
- return React.createElement(
1342
- 'div',
1343
- { ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
1344
- React.createElement(
1345
- 'div',
1346
- { className: 'tile__media' },
1347
- React.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
1348
- ),
1349
- React.createElement('div', { style: { color: variant }, className: 'tile__info' })
1350
- );
1351
- } else {
1352
- return React.createElement(
1353
- 'a',
1354
- { ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
1355
- React.createElement(
1356
- 'div',
1357
- { className: 'tile__media' },
1358
- React.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px', maxHeight: '160px' } })
1359
- ),
1360
- React.createElement('div', { style: { color: variant }, className: 'tile__info' })
1361
- );
1362
- }
1363
- })
1364
- )
1365
- ),
1366
- React.createElement(
1367
- 'style',
1368
- { jsx: 'true' },
1369
- '\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 1.5rem;\n margin-bottom: 0 !important;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider,\n #vidHolder {\n max-width: 775px;\n margin: 0 auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow-x: scroll;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: bold;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 25px 0 70px !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n margin: 0 12px;\n font-size: 20px;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n \n #vid-slider .tile:first-child {\n margin-left: 15px;\n }\n #vid-slider .tile__img {\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n \n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n \n #vid-slider .tile__title {\n position: absolute;\n bottom: 0;\n padding: 10px;\n max-width: 250px;\n }\n #vid-slider .tile__title_text {\n position: relative;\n left: 0;\n white-space: normal;\n }\n \n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: .5rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: .5rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n }\n \n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (min-width: 1399px) {\n .block-content #vid-slider .tile__img {\n height: auto;\n }\n .block-content #vid-slider .tile {\n height: auto;\n }\n }\n \n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n max-width: 620px;\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n max-width: 580px;\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 60px 0 50px !important;\n }\n }\n \n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n }\n @media screen and (max-width: 568px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 30px 0 70px;\n }\n }\n '
1370
- )
1371
- )
1372
- );
1373
- };
1374
-
1375
- export { ImageSlider as I, TwitterTimelineEmbed as T };