@mjhls/mjh-framework 1.0.835 → 1.0.836-beta.0

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 (313) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +30 -30
  4. package/dist/cjs/AD300x250x600.js +30 -30
  5. package/dist/cjs/AD728x90.js +33 -33
  6. package/dist/cjs/ADFloatingFooter.js +32 -32
  7. package/dist/cjs/ADFooter.js +14 -15
  8. package/dist/cjs/ADGutter.js +32 -32
  9. package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-8d621d3c.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +32 -32
  11. package/dist/cjs/ADSponsoredResources.js +32 -32
  12. package/dist/cjs/ADWebcast.js +32 -32
  13. package/dist/cjs/ADWelcome.js +33 -33
  14. package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-0e26bccb.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +29 -31
  16. package/dist/cjs/AdSlot.js +35 -35
  17. package/dist/cjs/AdSlotsProvider.js +912 -20
  18. package/dist/cjs/AlgoliaSearch.js +14022 -59
  19. package/dist/cjs/AlphabeticList.js +25 -26
  20. package/dist/cjs/ArticleCarousel.js +23 -24
  21. package/dist/cjs/ArticleProgramLandingPage.js +62 -62
  22. package/dist/cjs/ArticleSeriesLandingPage.js +43 -43
  23. package/dist/cjs/ArticleSeriesListing.js +62 -62
  24. package/dist/cjs/Auth.js +462 -686
  25. package/dist/cjs/AuthWrapper.js +268 -310
  26. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
  27. package/dist/cjs/Beam.js +8 -8
  28. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
  29. package/dist/cjs/Breadcrumbs.js +27 -29
  30. package/dist/cjs/CMEDeck.js +84 -83
  31. package/dist/cjs/Column1.js +11 -14
  32. package/dist/cjs/Column2.js +33 -36
  33. package/dist/cjs/Column3.js +59 -61
  34. package/dist/cjs/ConferenceArticleCard.js +22 -23
  35. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  36. package/dist/cjs/DeckContent.js +96 -99
  37. package/dist/cjs/DeckQueue.js +89 -92
  38. package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-26baccf1.js} +34 -34
  39. package/dist/cjs/EventsDeck.js +135 -142
  40. package/dist/cjs/ExternalResources.js +80 -80
  41. package/dist/cjs/Feature.js +24 -26
  42. package/dist/cjs/ForbesHero.js +42 -43
  43. package/dist/cjs/GridContent.js +305 -190
  44. package/dist/cjs/GridHero.js +44 -45
  45. package/dist/cjs/GroupDeck.js +59 -60
  46. package/dist/cjs/HamMagazine.js +132 -137
  47. package/dist/cjs/Header.js +12 -14
  48. package/dist/cjs/Hero.js +12 -13
  49. package/dist/cjs/HighlightenVideo.js +17 -18
  50. package/dist/cjs/HorizontalArticleListing.js +72 -72
  51. package/dist/cjs/HorizontalHero.js +25 -26
  52. package/dist/cjs/IssueContentDeck.js +73 -78
  53. package/dist/cjs/IssueDeck.js +72 -77
  54. package/dist/cjs/IssueLanding.js +67 -67
  55. package/dist/cjs/LeftNav.js +39 -40
  56. package/dist/cjs/MasterDeck.js +72 -72
  57. package/dist/cjs/MediaSeriesLanding.js +1094 -1185
  58. package/dist/cjs/NavDvm.js +74 -79
  59. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  60. package/dist/cjs/NavMagazine.js +138 -143
  61. package/dist/cjs/NavNative.js +130 -138
  62. package/dist/cjs/OncliveHero.js +19 -19
  63. package/dist/cjs/OncliveLargeHero.js +72 -73
  64. package/dist/cjs/PageFilter.js +14 -15
  65. package/dist/cjs/PartnerDetailListing.js +3940 -114
  66. package/dist/cjs/PdfDownload.js +9 -10
  67. package/dist/cjs/PopUpModal.js +19 -21
  68. package/dist/cjs/PubSection.js +43 -43
  69. package/dist/cjs/PubToc.js +15 -16
  70. package/dist/cjs/PublicationDeck.js +62 -67
  71. package/dist/cjs/PublicationLanding.js +108 -112
  72. package/dist/cjs/QueueDeckExpanded.js +311 -310
  73. package/dist/cjs/RecentNews.js +22 -23
  74. package/dist/cjs/RelatedContent.js +26 -27
  75. package/dist/cjs/RelatedTopicsDropdown.js +19 -22
  76. package/dist/cjs/RolesDeck.js +27 -32
  77. package/dist/cjs/Search.js +18 -22
  78. package/dist/cjs/Segment.js +6 -6
  79. package/dist/cjs/SeriesListingDeck.js +39 -38
  80. package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-8bbc989f.js} +35 -36
  81. package/dist/cjs/SetCookie.js +1 -1
  82. package/dist/cjs/SideFooter.js +36 -37
  83. package/dist/cjs/SocialIcons.js +9 -10
  84. package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
  85. package/dist/cjs/SocialShare.js +29 -31
  86. package/dist/cjs/TaxonomyCard.js +59 -64
  87. package/dist/cjs/TaxonomyDescription.js +55 -55
  88. package/dist/cjs/TemplateNormal.js +74 -74
  89. package/dist/cjs/ThumbnailCard.js +21 -23
  90. package/dist/cjs/Ustream.js +30 -31
  91. package/dist/cjs/VerticalHero.js +16 -17
  92. package/dist/cjs/VideoProgramLandingPage.js +76 -79
  93. package/dist/cjs/VideoSeriesCard.js +31 -32
  94. package/dist/cjs/VideoSeriesFilter.js +18 -18
  95. package/dist/cjs/VideoSeriesLandingPage.js +52 -52
  96. package/dist/cjs/VideoSeriesListing.js +79 -79
  97. package/dist/cjs/View.js +260 -262
  98. package/dist/cjs/YahooHero.js +41 -42
  99. package/dist/cjs/YoutubeGroup.js +62 -63
  100. package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
  101. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
  102. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  103. package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
  104. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
  105. package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
  106. package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
  107. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  108. package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
  109. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  110. package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
  111. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
  112. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  113. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  114. package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
  115. package/dist/cjs/events-1b438fe7.js +469 -0
  116. package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
  117. package/dist/cjs/faundadb.js +21 -21
  118. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  119. package/dist/cjs/getRelatedArticle.js +20 -20
  120. package/dist/cjs/getRootDocGroup.js +8 -8
  121. package/dist/cjs/getSerializers.js +46 -45
  122. package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-021d644c.js} +3 -3
  123. package/dist/cjs/getTargeting.js +8 -8
  124. package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
  125. package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
  126. package/dist/cjs/{index-4e883ea0.js → index-4cedf2c1.js} +961 -984
  127. package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
  128. package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
  129. package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
  130. package/dist/cjs/index-e2e62963.js +89 -0
  131. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  132. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
  133. package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
  134. package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
  135. package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
  136. package/dist/cjs/index.js +164 -167
  137. package/dist/cjs/{inherits-c2065b95.js → inherits-1f5a1c72.js} +20 -20
  138. package/dist/cjs/inherits-8d29278d.js +110 -0
  139. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  140. package/dist/cjs/keys-a586b7a0.js +25 -0
  141. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  142. package/dist/cjs/main-02daeefe.js +862 -0
  143. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  144. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  145. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  146. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
  147. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  148. package/dist/cjs/stringify-7c5aff47.js +17 -0
  149. package/dist/cjs/timeDifferenceCalc.js +1 -1
  150. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
  151. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  152. package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
  153. package/dist/cjs/urlFor.js +3 -3
  154. package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
  155. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  156. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  157. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
  158. package/dist/esm/AD.js +1 -1
  159. package/dist/esm/AD300x250.js +24 -23
  160. package/dist/esm/AD300x250x600.js +24 -23
  161. package/dist/esm/AD728x90.js +27 -26
  162. package/dist/esm/ADFloatingFooter.js +23 -22
  163. package/dist/esm/ADFooter.js +6 -6
  164. package/dist/esm/ADGutter.js +23 -22
  165. package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-b566ce41.js} +6 -6
  166. package/dist/esm/ADSkyscraper.js +23 -22
  167. package/dist/esm/ADSponsoredResources.js +23 -22
  168. package/dist/esm/ADWebcast.js +23 -22
  169. package/dist/esm/ADWelcome.js +20 -19
  170. package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-5eb7281d.js} +4 -4
  171. package/dist/esm/AccordionPanel.js +8 -8
  172. package/dist/esm/AdSlot.js +24 -23
  173. package/dist/esm/AdSlotsProvider.js +909 -16
  174. package/dist/esm/AlgoliaSearch.js +13993 -29
  175. package/dist/esm/AlphabeticList.js +10 -10
  176. package/dist/esm/ArticleCarousel.js +17 -17
  177. package/dist/esm/ArticleProgramLandingPage.js +50 -49
  178. package/dist/esm/ArticleSeriesLandingPage.js +33 -32
  179. package/dist/esm/ArticleSeriesListing.js +35 -34
  180. package/dist/esm/Auth.js +375 -595
  181. package/dist/esm/AuthWrapper.js +246 -287
  182. package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
  183. package/dist/esm/Beam.js +8 -8
  184. package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
  185. package/dist/esm/Breadcrumbs.js +7 -7
  186. package/dist/esm/CMEDeck.js +25 -24
  187. package/dist/esm/Column1.js +4 -4
  188. package/dist/esm/Column2.js +21 -21
  189. package/dist/esm/Column3.js +39 -38
  190. package/dist/esm/ConferenceArticleCard.js +7 -7
  191. package/dist/esm/DeckContent.js +50 -49
  192. package/dist/esm/DeckQueue.js +49 -48
  193. package/dist/esm/{Dfp-be030f2a.js → Dfp-b7236041.js} +15 -14
  194. package/dist/esm/EventsDeck.js +50 -50
  195. package/dist/esm/ExternalResources.js +48 -47
  196. package/dist/esm/Feature.js +4 -4
  197. package/dist/esm/ForbesHero.js +12 -12
  198. package/dist/esm/GridContent.js +201 -82
  199. package/dist/esm/GridHero.js +13 -13
  200. package/dist/esm/GroupDeck.js +14 -14
  201. package/dist/esm/HamMagazine.js +30 -30
  202. package/dist/esm/Hero.js +4 -4
  203. package/dist/esm/HighlightenVideo.js +2 -2
  204. package/dist/esm/HorizontalArticleListing.js +47 -46
  205. package/dist/esm/HorizontalHero.js +5 -5
  206. package/dist/esm/IssueContentDeck.js +27 -27
  207. package/dist/esm/IssueDeck.js +37 -37
  208. package/dist/esm/IssueLanding.js +56 -55
  209. package/dist/esm/LeftNav.js +22 -21
  210. package/dist/esm/MasterDeck.js +37 -36
  211. package/dist/esm/MediaSeriesLanding.js +645 -733
  212. package/dist/esm/NavDvm.js +16 -16
  213. package/dist/esm/NavMagazine.js +34 -34
  214. package/dist/esm/NavNative.js +34 -34
  215. package/dist/esm/OncliveHero.js +5 -4
  216. package/dist/esm/OncliveLargeHero.js +13 -13
  217. package/dist/esm/PageFilter.js +6 -6
  218. package/dist/esm/PartnerDetailListing.js +3888 -62
  219. package/dist/esm/PdfDownload.js +2 -2
  220. package/dist/esm/PopUpModal.js +6 -6
  221. package/dist/esm/PubSection.js +35 -34
  222. package/dist/esm/PubToc.js +8 -8
  223. package/dist/esm/PublicationDeck.js +24 -24
  224. package/dist/esm/PublicationLanding.js +49 -49
  225. package/dist/esm/QueueDeckExpanded.js +39 -38
  226. package/dist/esm/RecentNews.js +4 -4
  227. package/dist/esm/RelatedContent.js +7 -7
  228. package/dist/esm/RolesDeck.js +12 -12
  229. package/dist/esm/Search.js +8 -8
  230. package/dist/esm/Segment.js +6 -6
  231. package/dist/esm/SeriesListingDeck.js +21 -20
  232. package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-a866bb21.js} +10 -10
  233. package/dist/esm/SetCookie.js +1 -1
  234. package/dist/esm/SideFooter.js +15 -15
  235. package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
  236. package/dist/esm/TaxonomyCard.js +25 -25
  237. package/dist/esm/TaxonomyDescription.js +46 -45
  238. package/dist/esm/TemplateNormal.js +50 -49
  239. package/dist/esm/ThumbnailCard.js +7 -7
  240. package/dist/esm/Ustream.js +14 -14
  241. package/dist/esm/VerticalHero.js +3 -3
  242. package/dist/esm/VideoProgramLandingPage.js +54 -53
  243. package/dist/esm/VideoSeriesCard.js +13 -13
  244. package/dist/esm/VideoSeriesFilter.js +9 -9
  245. package/dist/esm/VideoSeriesLandingPage.js +39 -38
  246. package/dist/esm/VideoSeriesListing.js +36 -35
  247. package/dist/esm/View.js +91 -89
  248. package/dist/esm/YahooHero.js +15 -15
  249. package/dist/esm/YoutubeGroup.js +22 -22
  250. package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
  251. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
  252. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  253. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
  254. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
  255. package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
  256. package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
  257. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
  258. package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
  259. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  260. package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
  261. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
  262. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  263. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  264. package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
  265. package/dist/esm/events-6c3a7a63.js +467 -0
  266. package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
  267. package/dist/esm/faundadb.js +7 -7
  268. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  269. package/dist/esm/getRelatedArticle.js +14 -14
  270. package/dist/esm/getRootDocGroup.js +6 -6
  271. package/dist/esm/getSerializers.js +46 -45
  272. package/dist/esm/{getTargeting-05c216d6.js → getTargeting-82e86707.js} +2 -2
  273. package/dist/esm/getTargeting.js +8 -8
  274. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  275. package/dist/esm/{index-5cc7b406.js → index-41a678ea.js} +4 -469
  276. package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
  277. package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
  278. package/dist/esm/{index-b909354c.js → index-a20d9ee5.js} +605 -621
  279. package/dist/esm/index-aaa2dae0.js +85 -0
  280. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  281. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  282. package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
  283. package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
  284. package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
  285. package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
  286. package/dist/esm/index.js +122 -122
  287. package/dist/esm/inherits-77d5e4fc.js +101 -0
  288. package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
  289. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  290. package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
  291. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  292. package/dist/esm/main-e4a934b2.js +851 -0
  293. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  294. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  295. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
  296. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
  297. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  298. package/dist/esm/stringify-4330ccdc.js +15 -0
  299. package/dist/esm/timeDifferenceCalc.js +1 -1
  300. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
  301. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  302. package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
  303. package/dist/esm/urlFor.js +1 -1
  304. package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
  305. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  306. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
  307. package/package.json +2 -1
  308. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  309. package/dist/cjs/keys-7f2c2108.js +0 -25
  310. package/dist/cjs/main-f1c77adb.js +0 -973
  311. package/dist/cjs/stringify-c9ac1214.js +0 -17
  312. package/dist/esm/main-d4165069.js +0 -961
  313. package/dist/esm/stringify-59c8f690.js +0 -15
@@ -1,37 +1,37 @@
1
+ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
+ import { _ as _export, a as _core } from './_to-object-a4107da3.js';
3
+ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
4
+ import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
5
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-cf8dde54.js';
6
+ import { _ as _typeof } from './typeof-6435ba1c.js';
1
7
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
2
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
3
- import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
4
- import urlFor from './urlFor.js';
5
- import { l as lib_3 } from './index-5cc7b406.js';
6
- import Router, { useRouter } from 'next/router';
7
- import { g as getYoutubeId } from './index-c7e2ac95.js';
8
+ import { l as lib_3 } from './index-41a678ea.js';
8
9
  import PropTypes from 'prop-types';
9
- import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
10
- import { u as util } from './util-3ab476bf.js';
11
- import Beam from './Beam.js';
12
- import Segment from './Segment.js';
13
- import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
14
- import { B as BlockContent } from './BlockContent-c99c9a8d.js';
15
- import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
16
- import { L as LazyLoad } from './index-755f2cc2.js';
17
- import { _ as _typeof$1 } from './typeof-a286cf0c.js';
18
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
19
- import GroupDeck from './GroupDeck.js';
20
- import { m as moment } from './moment-bc12cb97.js';
21
- import SocialShare from './SocialShare.js';
22
- import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
23
- import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
24
- import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
25
- import Pagination from 'react-bootstrap/Pagination';
26
- import Button$1 from 'react-bootstrap/Button';
27
- import { h as html_decode_1 } from './entities-932b50cf.js';
28
- import DFPAdSlot from './AdSlot.js';
29
10
  import Row$1 from 'react-bootstrap/Row';
30
11
  import Col$1 from 'react-bootstrap/Col';
12
+ import { m as moment } from './moment-e2f9b20c.js';
13
+ import Router, { useRouter } from 'next/router';
14
+ import urlFor from './urlFor.js';
15
+ import { L as LazyLoad } from './index-5f7e79e7.js';
16
+ import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
17
+ import { h as html_decode_1 } from './entities-7cc3bf45.js';
18
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
19
+ import Segment from './Segment.js';
20
+ import Beam from './Beam.js';
21
+ import DFPAdSlot from './AdSlot.js';
22
+ import Button$1 from 'react-bootstrap/Button';
23
+ import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
24
+ import { g as getYoutubeId } from './index-c7e2ac95.js';
25
+ import GroupDeck from './GroupDeck.js';
26
+ import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
27
+ import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
28
+ import { u as util } from './util-7700fc59.js';
29
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
31
30
  import Head from 'next/head';
32
- import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
33
- import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
34
- import Figure$2 from 'react-bootstrap/Figure';
31
+ import SocialShare from './SocialShare.js';
32
+ import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
33
+ import Pagination$1 from 'react-bootstrap/Pagination';
34
+ import Figure$1$1 from 'react-bootstrap/Figure';
35
35
 
36
36
  var onChangeSlide = function onChangeSlide(selectedIndex, router) {
37
37
  var pageNumber = selectedIndex + 1;
@@ -39,7 +39,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
39
39
  Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
40
40
  };
41
41
 
42
- var Slideshow$1 = function Slideshow(_ref) {
42
+ var Slideshow = function Slideshow(_ref) {
43
43
  var slides = _ref.slides,
44
44
  client = _ref.client,
45
45
  pageview = _ref.pageview;
@@ -90,18 +90,21 @@ var Slideshow$1 = function Slideshow(_ref) {
90
90
  );
91
91
  };
92
92
 
93
- // do not edit .js files directly - edit src/index.jst
94
-
95
-
93
+ var isArray = Array.isArray;
94
+ var keyList = Object.keys;
95
+ var hasProp = Object.prototype.hasOwnProperty;
96
96
 
97
97
  var fastDeepEqual = function equal(a, b) {
98
98
  if (a === b) return true;
99
99
 
100
100
  if (a && b && typeof a == 'object' && typeof b == 'object') {
101
- if (a.constructor !== b.constructor) return false;
101
+ var arrA = isArray(a)
102
+ , arrB = isArray(b)
103
+ , i
104
+ , length
105
+ , key;
102
106
 
103
- var length, i, keys;
104
- if (Array.isArray(a)) {
107
+ if (arrA && arrB) {
105
108
  length = a.length;
106
109
  if (length != b.length) return false;
107
110
  for (i = length; i-- !== 0;)
@@ -109,29 +112,35 @@ var fastDeepEqual = function equal(a, b) {
109
112
  return true;
110
113
  }
111
114
 
115
+ if (arrA != arrB) return false;
112
116
 
117
+ var dateA = a instanceof Date
118
+ , dateB = b instanceof Date;
119
+ if (dateA != dateB) return false;
120
+ if (dateA && dateB) return a.getTime() == b.getTime();
113
121
 
114
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
115
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
116
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
122
+ var regexpA = a instanceof RegExp
123
+ , regexpB = b instanceof RegExp;
124
+ if (regexpA != regexpB) return false;
125
+ if (regexpA && regexpB) return a.toString() == b.toString();
117
126
 
118
- keys = Object.keys(a);
127
+ var keys = keyList(a);
119
128
  length = keys.length;
120
- if (length !== Object.keys(b).length) return false;
129
+
130
+ if (length !== keyList(b).length)
131
+ return false;
121
132
 
122
133
  for (i = length; i-- !== 0;)
123
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
134
+ if (!hasProp.call(b, keys[i])) return false;
124
135
 
125
136
  for (i = length; i-- !== 0;) {
126
- var key = keys[i];
127
-
137
+ key = keys[i];
128
138
  if (!equal(a[key], b[key])) return false;
129
139
  }
130
140
 
131
141
  return true;
132
142
  }
133
143
 
134
- // true if both NaN, false otherwise
135
144
  return a!==a && b!==b;
136
145
  };
137
146
 
@@ -669,14 +678,14 @@ function coerce(val) {
669
678
  return val;
670
679
  }
671
680
  });
672
- debug.coerce;
673
- debug.disable;
674
- debug.enable;
675
- debug.enabled;
676
- debug.humanize;
677
- debug.names;
678
- debug.skips;
679
- debug.formatters;
681
+ var debug_1 = debug.coerce;
682
+ var debug_2 = debug.disable;
683
+ var debug_3 = debug.enable;
684
+ var debug_4 = debug.enabled;
685
+ var debug_5 = debug.humanize;
686
+ var debug_6 = debug.names;
687
+ var debug_7 = debug.skips;
688
+ var debug_8 = debug.formatters;
680
689
 
681
690
  var browser = createCommonjsModule(function (module, exports) {
682
691
  /**
@@ -865,13 +874,13 @@ function localstorage() {
865
874
  } catch (e) {}
866
875
  }
867
876
  });
868
- browser.log;
869
- browser.formatArgs;
870
- browser.save;
871
- browser.load;
872
- browser.useColors;
873
- browser.storage;
874
- browser.colors;
877
+ var browser_1 = browser.log;
878
+ var browser_2 = browser.formatArgs;
879
+ var browser_3 = browser.save;
880
+ var browser_4 = browser.load;
881
+ var browser_5 = browser.useColors;
882
+ var browser_6 = browser.storage;
883
+ var browser_7 = browser.colors;
875
884
 
876
885
  // MIT lisence
877
886
  // from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
@@ -1146,14 +1155,14 @@ function init (debug) {
1146
1155
 
1147
1156
  exports.enable(load());
1148
1157
  });
1149
- node.init;
1150
- node.log;
1151
- node.formatArgs;
1152
- node.save;
1153
- node.load;
1154
- node.useColors;
1155
- node.colors;
1156
- node.inspectOpts;
1158
+ var node_1 = node.init;
1159
+ var node_2 = node.log;
1160
+ var node_3 = node.formatArgs;
1161
+ var node_4 = node.save;
1162
+ var node_5 = node.load;
1163
+ var node_6 = node.useColors;
1164
+ var node_7 = node.colors;
1165
+ var node_8 = node.inspectOpts;
1157
1166
 
1158
1167
  var src = createCommonjsModule(function (module) {
1159
1168
  /**
@@ -1554,239 +1563,199 @@ module.exports = exports['default'];
1554
1563
 
1555
1564
  var youTubePlayer = unwrapExports(dist);
1556
1565
 
1557
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1558
-
1559
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1560
-
1561
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1562
-
1563
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1564
-
1565
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
1566
-
1567
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1568
-
1569
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
1570
-
1571
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1566
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
1572
1567
 
1573
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1568
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
1574
1569
 
1575
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1570
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1576
1571
 
1577
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1572
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
1578
1573
 
1579
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1574
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
1580
1575
 
1581
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1582
-
1583
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1584
- /**
1585
- * Check whether a `props` change should result in the video being updated.
1586
- *
1587
- * @param {Object} prevProps
1588
- * @param {Object} props
1576
+ /**
1577
+ * Check whether a `props` change should result in the video being updated.
1578
+ *
1579
+ * @param {Object} prevProps
1580
+ * @param {Object} props
1589
1581
  */
1590
-
1591
1582
  function shouldUpdateVideo(prevProps, props) {
1592
1583
  // A changing video should always trigger an update
1593
1584
  if (prevProps.videoId !== props.videoId) {
1594
1585
  return true;
1595
- } // Otherwise, a change in the start/end time playerVars also requires a player
1596
- // update.
1597
-
1586
+ }
1598
1587
 
1588
+ // Otherwise, a change in the start/end time playerVars also requires a player
1589
+ // update.
1599
1590
  var prevVars = prevProps.opts.playerVars || {};
1600
1591
  var vars = props.opts.playerVars || {};
1592
+
1601
1593
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1602
1594
  }
1603
- /**
1604
- * Neutralize API options that only require a video update, leaving only options
1605
- * that require a player reset. The results can then be compared to see if a
1606
- * player reset is necessary.
1607
- *
1608
- * @param {Object} opts
1609
- */
1610
-
1611
1595
 
1596
+ /**
1597
+ * Neutralise API options that only require a video update, leaving only options
1598
+ * that require a player reset. The results can then be compared to see if a
1599
+ * player reset is necessary.
1600
+ *
1601
+ * @param {Object} opts
1602
+ */
1612
1603
  function filterResetOptions(opts) {
1613
- return _objectSpread(_objectSpread({}, opts), {}, {
1614
- playerVars: _objectSpread({
1604
+ return _extends({}, opts, {
1605
+ playerVars: _extends({}, opts.playerVars, {
1615
1606
  autoplay: 0,
1616
1607
  start: 0,
1617
1608
  end: 0
1618
- }, opts.playerVars)
1609
+ })
1619
1610
  });
1620
1611
  }
1621
- /**
1622
- * Check whether a `props` change should result in the player being reset.
1623
- * The player is reset when the `props.opts` change, except if the only change
1624
- * is in the `start` and `end` playerVars, because a video update can deal with
1625
- * those.
1626
- *
1627
- * @param {Object} prevProps
1628
- * @param {Object} props
1629
- */
1630
-
1631
1612
 
1613
+ /**
1614
+ * Check whether a `props` change should result in the player being reset.
1615
+ * The player is reset when the `props.opts` change, except if the only change
1616
+ * is in the `start` and `end` playerVars, because a video update can deal with
1617
+ * those.
1618
+ *
1619
+ * @param {Object} prevProps
1620
+ * @param {Object} props
1621
+ */
1632
1622
  function shouldResetPlayer(prevProps, props) {
1633
1623
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1634
1624
  }
1635
- /**
1636
- * Check whether a props change should result in an id or className update.
1637
- *
1638
- * @param {Object} prevProps
1639
- * @param {Object} props
1640
- */
1641
-
1642
1625
 
1626
+ /**
1627
+ * Check whether a props change should result in an id or className update.
1628
+ *
1629
+ * @param {Object} prevProps
1630
+ * @param {Object} props
1631
+ */
1643
1632
  function shouldUpdatePlayer(prevProps, props) {
1644
1633
  return prevProps.id !== props.id || prevProps.className !== props.className;
1645
1634
  }
1646
1635
 
1647
- var YouTube = /*#__PURE__*/function (_React$Component) {
1636
+ var YouTube = function (_React$Component) {
1648
1637
  _inherits(YouTube, _React$Component);
1649
1638
 
1650
- var _super = _createSuper(YouTube);
1651
-
1652
- /**
1653
- * Expose PlayerState constants for convenience. These constants can also be
1654
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1655
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1656
- */
1657
1639
  function YouTube(props) {
1658
- var _this;
1659
-
1660
1640
  _classCallCheck(this, YouTube);
1661
1641
 
1662
- _this = _super.call(this, props);
1642
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1663
1643
 
1664
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1644
+ _this.onPlayerReady = function (event) {
1665
1645
  return _this.props.onReady(event);
1666
- });
1646
+ };
1667
1647
 
1668
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1648
+ _this.onPlayerError = function (event) {
1669
1649
  return _this.props.onError(event);
1670
- });
1650
+ };
1671
1651
 
1672
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1652
+ _this.onPlayerStateChange = function (event) {
1673
1653
  _this.props.onStateChange(event);
1674
-
1675
1654
  switch (event.data) {
1655
+
1676
1656
  case YouTube.PlayerState.ENDED:
1677
1657
  _this.props.onEnd(event);
1678
-
1679
1658
  break;
1680
1659
 
1681
1660
  case YouTube.PlayerState.PLAYING:
1682
1661
  _this.props.onPlay(event);
1683
-
1684
1662
  break;
1685
1663
 
1686
1664
  case YouTube.PlayerState.PAUSED:
1687
1665
  _this.props.onPause(event);
1688
-
1689
1666
  break;
1690
1667
  }
1691
- });
1668
+ };
1692
1669
 
1693
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1670
+ _this.onPlayerPlaybackRateChange = function (event) {
1694
1671
  return _this.props.onPlaybackRateChange(event);
1695
- });
1672
+ };
1696
1673
 
1697
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1674
+ _this.onPlayerPlaybackQualityChange = function (event) {
1698
1675
  return _this.props.onPlaybackQualityChange(event);
1699
- });
1676
+ };
1700
1677
 
1701
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1678
+ _this.createPlayer = function () {
1702
1679
  // do not attempt to create a player server-side, it won't work
1703
- if (typeof document === 'undefined') return; // create player
1704
-
1705
- var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
1680
+ if (typeof document === 'undefined') return;
1681
+ // create player
1682
+ var playerOpts = _extends({}, _this.props.opts, {
1706
1683
  // preload the `videoId` video if one is already given
1707
1684
  videoId: _this.props.videoId
1708
1685
  });
1709
-
1710
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1711
-
1686
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1687
+ // attach event handlers
1712
1688
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1713
-
1714
1689
  _this.internalPlayer.on('error', _this.onPlayerError);
1715
-
1716
1690
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1717
-
1718
1691
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1719
-
1720
1692
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1721
- });
1693
+ };
1722
1694
 
1723
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1695
+ _this.resetPlayer = function () {
1724
1696
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1725
- });
1697
+ };
1726
1698
 
1727
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1699
+ _this.updatePlayer = function () {
1728
1700
  _this.internalPlayer.getIframe().then(function (iframe) {
1729
1701
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1730
1702
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1731
1703
  });
1732
- });
1733
-
1734
- _defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
1735
- return _this.internalPlayer;
1736
- });
1704
+ };
1737
1705
 
1738
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1706
+ _this.updateVideo = function () {
1739
1707
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1740
1708
  _this.internalPlayer.stopVideo();
1741
-
1742
1709
  return;
1743
- } // set queueing options
1744
-
1710
+ }
1745
1711
 
1712
+ // set queueing options
1746
1713
  var autoplay = false;
1747
1714
  var opts = {
1748
1715
  videoId: _this.props.videoId
1749
1716
  };
1750
-
1751
1717
  if ('playerVars' in _this.props.opts) {
1752
1718
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1753
-
1754
1719
  if ('start' in _this.props.opts.playerVars) {
1755
1720
  opts.startSeconds = _this.props.opts.playerVars.start;
1756
1721
  }
1757
-
1758
1722
  if ('end' in _this.props.opts.playerVars) {
1759
1723
  opts.endSeconds = _this.props.opts.playerVars.end;
1760
1724
  }
1761
- } // if autoplay is enabled loadVideoById
1762
-
1725
+ }
1763
1726
 
1727
+ // if autoplay is enabled loadVideoById
1764
1728
  if (autoplay) {
1765
1729
  _this.internalPlayer.loadVideoById(opts);
1766
-
1767
1730
  return;
1768
- } // default behaviour just cues the video
1769
-
1770
-
1731
+ }
1732
+ // default behaviour just cues the video
1771
1733
  _this.internalPlayer.cueVideoById(opts);
1772
- });
1734
+ };
1773
1735
 
1774
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1736
+ _this.refContainer = function (container) {
1775
1737
  _this.container = container;
1776
- });
1738
+ };
1777
1739
 
1778
1740
  _this.container = null;
1779
1741
  _this.internalPlayer = null;
1780
1742
  return _this;
1781
1743
  }
1782
1744
 
1745
+ /**
1746
+ * Expose PlayerState constants for convenience. These constants can also be
1747
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1748
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1749
+ */
1750
+
1751
+
1783
1752
  _createClass(YouTube, [{
1784
- key: "componentDidMount",
1753
+ key: 'componentDidMount',
1785
1754
  value: function componentDidMount() {
1786
1755
  this.createPlayer();
1787
1756
  }
1788
1757
  }, {
1789
- key: "componentDidUpdate",
1758
+ key: 'componentDidUpdate',
1790
1759
  value: function componentDidUpdate(prevProps) {
1791
1760
  if (shouldUpdatePlayer(prevProps, this.props)) {
1792
1761
  this.updatePlayer();
@@ -1801,58 +1770,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1801
1770
  }
1802
1771
  }
1803
1772
  }, {
1804
- key: "componentWillUnmount",
1773
+ key: 'componentWillUnmount',
1805
1774
  value: function componentWillUnmount() {
1806
- /**
1807
- * Note: The `youtube-player` package that is used promisifies all YouTube
1808
- * Player API calls, which introduces a delay of a tick before it actually
1809
- * gets destroyed. Since React attempts to remove the element instantly
1810
- * this method isn't quick enough to reset the container element.
1775
+ /**
1776
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1777
+ * Player API calls, which introduces a delay of a tick before it actually
1778
+ * gets destroyed. Since React attempts to remove the element instantly
1779
+ * this method isn't quick enough to reset the container element.
1811
1780
  */
1812
1781
  this.internalPlayer.destroy();
1813
1782
  }
1814
- /**
1815
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1816
- *
1817
- * @param {Object} event
1818
- * @param {Object} target - player object
1783
+
1784
+ /**
1785
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1786
+ *
1787
+ * @param {Object} event
1788
+ * @param {Object} target - player object
1789
+ */
1790
+
1791
+
1792
+ /**
1793
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1794
+ *
1795
+ * @param {Object} event
1796
+ * @param {Integer} data - error type
1797
+ * @param {Object} target - player object
1798
+ */
1799
+
1800
+
1801
+ /**
1802
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1803
+ *
1804
+ * @param {Object} event
1805
+ * @param {Integer} data - status change type
1806
+ * @param {Object} target - actual YT player
1807
+ */
1808
+
1809
+
1810
+ /**
1811
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1812
+ *
1813
+ * @param {Object} event
1814
+ * @param {Float} data - playback rate
1815
+ * @param {Object} target - actual YT player
1816
+ */
1817
+
1818
+
1819
+ /**
1820
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1821
+ *
1822
+ * @param {Object} event
1823
+ * @param {String} data - playback quality
1824
+ * @param {Object} target - actual YT player
1825
+ */
1826
+
1827
+
1828
+ /**
1829
+ * Initialize the Youtube Player API on the container and attach event handlers
1830
+ */
1831
+
1832
+
1833
+ /**
1834
+ * Shorthand for destroying and then re-creating the Youtube Player
1835
+ */
1836
+
1837
+
1838
+ /**
1839
+ * Method to update the id and class of the Youtube Player iframe.
1840
+ * React should update this automatically but since the Youtube Player API
1841
+ * replaced the DIV that is mounted by React we need to do this manually.
1842
+ */
1843
+
1844
+
1845
+ /**
1846
+ * Call Youtube Player API methods to update the currently playing video.
1847
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1848
+ * Youtube Player API methods to update the video.
1819
1849
  */
1820
1850
 
1821
1851
  }, {
1822
- key: "render",
1852
+ key: 'render',
1823
1853
  value: function render() {
1824
- return /*#__PURE__*/React__default.createElement("div", {
1825
- className: this.props.containerClassName
1826
- }, /*#__PURE__*/React__default.createElement("div", {
1827
- id: this.props.id,
1828
- className: this.props.className,
1829
- ref: this.refContainer
1830
- }));
1854
+ return React__default.createElement(
1855
+ 'div',
1856
+ { className: this.props.containerClassName },
1857
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1858
+ );
1831
1859
  }
1832
1860
  }]);
1833
1861
 
1834
1862
  return YouTube;
1835
1863
  }(React__default.Component);
1836
1864
 
1837
- _defineProperty(YouTube, "PlayerState", {
1838
- UNSTARTED: -1,
1839
- ENDED: 0,
1840
- PLAYING: 1,
1841
- PAUSED: 2,
1842
- BUFFERING: 3,
1843
- CUED: 5
1844
- });
1845
-
1846
1865
  YouTube.propTypes = {
1847
1866
  videoId: PropTypes.string,
1867
+
1848
1868
  // custom ID for player element
1849
1869
  id: PropTypes.string,
1870
+
1850
1871
  // custom class name for player element
1851
1872
  className: PropTypes.string,
1852
1873
  // custom class name for player container element
1853
1874
  containerClassName: PropTypes.string,
1875
+
1854
1876
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1855
1877
  opts: PropTypes.objectOf(PropTypes.any),
1878
+
1856
1879
  // event subscriptions
1857
1880
  onReady: PropTypes.func,
1858
1881
  onError: PropTypes.func,
@@ -1864,7 +1887,6 @@ YouTube.propTypes = {
1864
1887
  onPlaybackQualityChange: PropTypes.func
1865
1888
  };
1866
1889
  YouTube.defaultProps = {
1867
- videoId: null,
1868
1890
  id: null,
1869
1891
  className: null,
1870
1892
  opts: {},
@@ -1878,6 +1900,14 @@ YouTube.defaultProps = {
1878
1900
  onPlaybackRateChange: function onPlaybackRateChange() {},
1879
1901
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1880
1902
  };
1903
+ YouTube.PlayerState = {
1904
+ UNSTARTED: -1,
1905
+ ENDED: 0,
1906
+ PLAYING: 1,
1907
+ PAUSED: 2,
1908
+ BUFFERING: 3,
1909
+ CUED: 5
1910
+ };
1881
1911
 
1882
1912
  var YouTubePlayer = function YouTubePlayer(_ref) {
1883
1913
  var url = _ref.url,
@@ -1916,8 +1946,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1916
1946
  var duration = player.getDuration();
1917
1947
  var queue = Math.floor(duration / 10);
1918
1948
  var segment = Math.floor(current / queue);
1919
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
1920
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
1949
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
1950
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
1921
1951
  };
1922
1952
 
1923
1953
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1927,8 +1957,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1927
1957
  var segment = Math.floor(current / queue);
1928
1958
 
1929
1959
  if (!queueProgress.includes(segment)) {
1930
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
1931
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
1960
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
1961
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
1932
1962
  queueProgress.push(segment);
1933
1963
  }
1934
1964
  };
@@ -1941,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1941
1971
  var queue = Math.floor(duration / 10);
1942
1972
  var segment = Math.floor(current / queue);
1943
1973
 
1944
- Beam.report_beam_video('Play', main_18, duration, current, segment);
1945
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
1974
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
1975
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
1946
1976
 
1947
1977
  if (!playReported) {
1948
1978
  setPlayReported(true);
@@ -1961,8 +1991,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1961
1991
  var queue = Math.floor(duration / 10);
1962
1992
  var segment = Math.floor(current / queue);
1963
1993
 
1964
- Beam.report_beam_video('End', main_18, duration, current, segment);
1965
- Segment.report_video_event('Video End', main_18, duration, current, segment);
1994
+ Beam.report_beam_video('End', main_16, duration, current, segment);
1995
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
1966
1996
  setEndReported(true);
1967
1997
  clearInterval(intervalID);
1968
1998
  }
@@ -1975,8 +2005,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1975
2005
  var queue = Math.floor(duration / 10);
1976
2006
  var segment = Math.floor(current / queue);
1977
2007
 
1978
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
1979
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
2008
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
2009
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
1980
2010
  };
1981
2011
 
1982
2012
  return React__default.createElement(
@@ -2138,7 +2168,7 @@ var Media = function Media(_ref) {
2138
2168
  React__default.createElement(
2139
2169
  LazyLoad,
2140
2170
  { once: true },
2141
- React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2171
+ React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2142
2172
  ),
2143
2173
  caption && React__default.createElement(
2144
2174
  Figure$1.Caption,
@@ -2150,7 +2180,7 @@ var Media = function Media(_ref) {
2150
2180
  } else if (caption && caption !== '') {
2151
2181
  return React__default.createElement(
2152
2182
  'a',
2153
- _extends({}, uploadDoc.downloadMedia ? {
2183
+ _extends$1({}, uploadDoc.downloadMedia ? {
2154
2184
  href: uploadDoc.asset.url + '?dl='
2155
2185
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2156
2186
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2205,8 +2235,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2205
2235
  var duration = player.duration;
2206
2236
  var queue = Math.floor(duration / 10);
2207
2237
  var segment = Math.floor(current / queue);
2208
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
2209
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
2238
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
2239
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
2210
2240
  };
2211
2241
 
2212
2242
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -2215,8 +2245,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2215
2245
  var queue = Math.floor(duration / 10);
2216
2246
  var segment = Math.floor(current / queue);
2217
2247
  if (!queueProgress.includes(segment)) {
2218
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
2219
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
2248
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
2249
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
2220
2250
  queueProgress.push(segment);
2221
2251
  }
2222
2252
  };
@@ -2228,8 +2258,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2228
2258
  var duration = player.duration;
2229
2259
  var queue = Math.floor(duration / 10);
2230
2260
  var segment = Math.floor(current / queue);
2231
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
2232
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
2261
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
2262
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
2233
2263
 
2234
2264
  if (!playReported) {
2235
2265
  event.persist();
@@ -2249,8 +2279,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2249
2279
  var queue = Math.floor(duration / 10);
2250
2280
  var segment = Math.floor(current / queue);
2251
2281
 
2252
- Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
2253
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
2282
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
2283
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
2254
2284
  setEndReported(true);
2255
2285
  clearInterval(intervalID);
2256
2286
  }
@@ -2262,8 +2292,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2262
2292
  var duration = player.duration - current;
2263
2293
  var queue = Math.floor(duration / 10);
2264
2294
  var segment = Math.floor(current / queue);
2265
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
2266
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
2295
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
2296
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
2267
2297
  };
2268
2298
 
2269
2299
  return React__default.createElement(
@@ -2324,7 +2354,7 @@ var Video = function Video(_ref) {
2324
2354
  var onVideoSuccess = function onVideoSuccess(success) {
2325
2355
  //console.log('success:', success.ref)
2326
2356
  var player = success.ref;
2327
- if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2357
+ if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2328
2358
  player.ima3.settings.debug = true;
2329
2359
  if (targeting.content_placement && targeting.document_url) {
2330
2360
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2352,8 +2382,8 @@ var Video = function Video(_ref) {
2352
2382
  player.pause();
2353
2383
  }
2354
2384
 
2355
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2356
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2385
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2386
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2357
2387
  });
2358
2388
 
2359
2389
  // play
@@ -2362,8 +2392,8 @@ var Video = function Video(_ref) {
2362
2392
  var current = player.currentTime();
2363
2393
  var queue = Math.floor(duration / 10);
2364
2394
  var segment = Math.floor(current / queue);
2365
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2366
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2395
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2396
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2367
2397
  });
2368
2398
 
2369
2399
  // pause
@@ -2372,8 +2402,8 @@ var Video = function Video(_ref) {
2372
2402
  var current = player.currentTime();
2373
2403
  var queue = Math.floor(duration / 10);
2374
2404
  var segment = Math.floor(current / queue);
2375
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2376
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2405
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2406
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2377
2407
  });
2378
2408
 
2379
2409
  // end
@@ -2382,8 +2412,8 @@ var Video = function Video(_ref) {
2382
2412
  var current = player.currentTime();
2383
2413
  var queue = Math.floor(duration / 10);
2384
2414
  var segment = Math.floor(current / queue);
2385
- Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2386
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2415
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2416
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2387
2417
  autoplayNextVideo(evt);
2388
2418
  });
2389
2419
 
@@ -2394,8 +2424,8 @@ var Video = function Video(_ref) {
2394
2424
  var queue = Math.floor(duration / 10);
2395
2425
  var segment = Math.floor(current / queue);
2396
2426
  if (!queueProgress.includes(segment)) {
2397
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2398
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2427
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2428
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2399
2429
  queueProgress.push(segment);
2400
2430
  }
2401
2431
  });
@@ -2406,8 +2436,8 @@ var Video = function Video(_ref) {
2406
2436
  var id = player.ads.ad.id;
2407
2437
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2408
2438
 
2409
- Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
2410
- Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2439
+ Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
2440
+ Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2411
2441
  });
2412
2442
 
2413
2443
  // ad ended
@@ -2415,8 +2445,8 @@ var Video = function Video(_ref) {
2415
2445
  var duration = player.ads.ad.duration;
2416
2446
  var id = player.ads.ad.id;
2417
2447
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2418
- Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
2419
- Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2448
+ Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
2449
+ Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2420
2450
  });
2421
2451
  };
2422
2452
 
@@ -2679,9 +2709,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
2679
2709
  });
2680
2710
 
2681
2711
  unwrapExports(props);
2682
- props.DEPRECATED_CONFIG_PROPS;
2683
- props.defaultProps;
2684
- props.propTypes;
2712
+ var props_1 = props.DEPRECATED_CONFIG_PROPS;
2713
+ var props_2 = props.defaultProps;
2714
+ var props_3 = props.propTypes;
2685
2715
 
2686
2716
  var isMergeableObject = function isMergeableObject(value) {
2687
2717
  return isNonNullObject(value)
@@ -2846,17 +2876,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2846
2876
 
2847
2877
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2848
2878
 
2849
- function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2879
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2850
2880
 
2851
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2881
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2852
2882
 
2853
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2854
-
2855
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2856
-
2857
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2858
-
2859
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
2883
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
2860
2884
 
2861
2885
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2862
2886
 
@@ -2986,12 +3010,12 @@ function getSDK(url, sdkGlobal) {
2986
3010
 
2987
3011
  function getConfig(props$1, defaultProps, showWarning) {
2988
3012
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
2989
-
2990
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
2991
- _step;
3013
+ var _iteratorNormalCompletion = true;
3014
+ var _didIteratorError = false;
3015
+ var _iteratorError = undefined;
2992
3016
 
2993
3017
  try {
2994
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3018
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2995
3019
  var p = _step.value;
2996
3020
 
2997
3021
  if (props$1[p]) {
@@ -3006,9 +3030,18 @@ function getConfig(props$1, defaultProps, showWarning) {
3006
3030
  }
3007
3031
  }
3008
3032
  } catch (err) {
3009
- _iterator.e(err);
3033
+ _didIteratorError = true;
3034
+ _iteratorError = err;
3010
3035
  } finally {
3011
- _iterator.f();
3036
+ try {
3037
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
3038
+ _iterator["return"]();
3039
+ }
3040
+ } finally {
3041
+ if (_didIteratorError) {
3042
+ throw _iteratorError;
3043
+ }
3044
+ }
3012
3045
  }
3013
3046
 
3014
3047
  return config;
@@ -3116,17 +3149,17 @@ function isMediaStream(url) {
3116
3149
  });
3117
3150
 
3118
3151
  unwrapExports(utils);
3119
- utils.parseStartTime;
3120
- utils.parseEndTime;
3121
- utils.randomString;
3122
- utils.queryString;
3123
- utils.getSDK;
3124
- utils.getConfig;
3125
- utils.omit;
3126
- utils.callPlayer;
3127
- utils.isObject;
3128
- utils.isEqual;
3129
- utils.isMediaStream;
3152
+ var utils_1 = utils.parseStartTime;
3153
+ var utils_2 = utils.parseEndTime;
3154
+ var utils_3 = utils.randomString;
3155
+ var utils_4 = utils.queryString;
3156
+ var utils_5 = utils.getSDK;
3157
+ var utils_6 = utils.getConfig;
3158
+ var utils_7 = utils.omit;
3159
+ var utils_8 = utils.callPlayer;
3160
+ var utils_9 = utils.isObject;
3161
+ var utils_10 = utils.isEqual;
3162
+ var utils_11 = utils.isMediaStream;
3130
3163
 
3131
3164
  var Player_1 = createCommonjsModule(function (module, exports) {
3132
3165
 
@@ -3155,16 +3188,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3155
3188
 
3156
3189
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3157
3190
 
3158
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3159
-
3160
3191
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3161
3192
 
3162
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3163
-
3164
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
3165
-
3166
3193
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3167
3194
 
3195
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3196
+
3168
3197
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3169
3198
 
3170
3199
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3173,12 +3202,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3173
3202
 
3174
3203
  var SEEK_ON_PLAY_EXPIRY = 5000;
3175
3204
 
3176
- var Player = /*#__PURE__*/function (_Component) {
3205
+ var Player =
3206
+ /*#__PURE__*/
3207
+ function (_Component) {
3177
3208
  _inherits(Player, _Component);
3178
3209
 
3179
- var _super = _createSuper(Player);
3180
-
3181
3210
  function Player() {
3211
+ var _getPrototypeOf2;
3212
+
3182
3213
  var _this;
3183
3214
 
3184
3215
  _classCallCheck(this, Player);
@@ -3187,7 +3218,7 @@ var Player = /*#__PURE__*/function (_Component) {
3187
3218
  _args[_key] = arguments[_key];
3188
3219
  }
3189
3220
 
3190
- _this = _super.call.apply(_super, [this].concat(_args));
3221
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3191
3222
 
3192
3223
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3193
3224
 
@@ -3512,7 +3543,7 @@ var Player = /*#__PURE__*/function (_Component) {
3512
3543
  return null;
3513
3544
  }
3514
3545
 
3515
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3546
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3516
3547
  ref: this.ref,
3517
3548
  onReady: this.handleReady,
3518
3549
  onPlay: this.handlePlay,
@@ -3573,16 +3604,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3573
3604
 
3574
3605
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3575
3606
 
3576
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3577
-
3578
3607
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3579
3608
 
3580
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3581
-
3582
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
3583
-
3584
3609
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3585
3610
 
3611
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3612
+
3586
3613
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3587
3614
 
3588
3615
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3594,12 +3621,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3594
3621
  function createSinglePlayer(activePlayer) {
3595
3622
  var _class, _temp;
3596
3623
 
3597
- return _temp = _class = /*#__PURE__*/function (_Component) {
3624
+ return _temp = _class =
3625
+ /*#__PURE__*/
3626
+ function (_Component) {
3598
3627
  _inherits(SinglePlayer, _Component);
3599
3628
 
3600
- var _super = _createSuper(SinglePlayer);
3601
-
3602
3629
  function SinglePlayer() {
3630
+ var _getPrototypeOf2;
3631
+
3603
3632
  var _this;
3604
3633
 
3605
3634
  _classCallCheck(this, SinglePlayer);
@@ -3608,7 +3637,7 @@ function createSinglePlayer(activePlayer) {
3608
3637
  args[_key] = arguments[_key];
3609
3638
  }
3610
3639
 
3611
- _this = _super.call.apply(_super, [this].concat(args));
3640
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3612
3641
 
3613
3642
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3614
3643
 
@@ -3676,12 +3705,12 @@ function createSinglePlayer(activePlayer) {
3676
3705
  height = _this$props.height,
3677
3706
  Wrapper = _this$props.wrapper;
3678
3707
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3679
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3708
+ return _react["default"].createElement(Wrapper, _extends({
3680
3709
  style: _objectSpread({}, style, {
3681
3710
  width: width,
3682
3711
  height: height
3683
3712
  })
3684
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3713
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3685
3714
  ref: this.ref,
3686
3715
  activePlayer: activePlayer,
3687
3716
  config: this.config
@@ -3727,31 +3756,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3727
3756
 
3728
3757
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3729
3758
 
3730
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3731
-
3732
3759
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3733
3760
 
3734
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3735
-
3736
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
3737
-
3738
3761
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3739
3762
 
3763
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3764
+
3740
3765
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3741
3766
 
3742
3767
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3743
3768
 
3744
3769
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3745
3770
 
3746
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3747
-
3748
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3749
-
3750
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3771
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3751
3772
 
3752
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
3773
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3753
3774
 
3754
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
3775
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
3755
3776
 
3756
3777
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3757
3778
 
@@ -3776,12 +3797,14 @@ function parsePlaylist(url) {
3776
3797
  return {};
3777
3798
  }
3778
3799
 
3779
- var YouTube = /*#__PURE__*/function (_Component) {
3800
+ var YouTube =
3801
+ /*#__PURE__*/
3802
+ function (_Component) {
3780
3803
  _inherits(YouTube, _Component);
3781
3804
 
3782
- var _super = _createSuper(YouTube);
3783
-
3784
3805
  function YouTube() {
3806
+ var _getPrototypeOf2;
3807
+
3785
3808
  var _this;
3786
3809
 
3787
3810
  _classCallCheck(this, YouTube);
@@ -3790,7 +3813,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3790
3813
  args[_key] = arguments[_key];
3791
3814
  }
3792
3815
 
3793
- _this = _super.call.apply(_super, [this].concat(args));
3816
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3794
3817
 
3795
3818
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3796
3819
 
@@ -3978,9 +4001,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
3978
4001
  height: '100%',
3979
4002
  display: display
3980
4003
  };
3981
- return /*#__PURE__*/_react["default"].createElement("div", {
4004
+ return _react["default"].createElement("div", {
3982
4005
  style: style
3983
- }, /*#__PURE__*/_react["default"].createElement("div", {
4006
+ }, _react["default"].createElement("div", {
3984
4007
  ref: this.ref
3985
4008
  }));
3986
4009
  }
@@ -4003,7 +4026,7 @@ exports["default"] = _default;
4003
4026
  });
4004
4027
 
4005
4028
  unwrapExports(YouTube_1);
4006
- YouTube_1.YouTube;
4029
+ var YouTube_2 = YouTube_1.YouTube;
4007
4030
 
4008
4031
  var SoundCloud_1 = createCommonjsModule(function (module, exports) {
4009
4032
 
@@ -4036,16 +4059,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4036
4059
 
4037
4060
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4038
4061
 
4039
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4040
-
4041
4062
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4042
4063
 
4043
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4044
-
4045
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4046
-
4047
4064
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4048
4065
 
4066
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4067
+
4049
4068
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4050
4069
 
4051
4070
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4054,14 +4073,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4054
4073
 
4055
4074
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
4056
4075
  var SDK_GLOBAL = 'SC';
4057
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
4076
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
4058
4077
 
4059
- var SoundCloud = /*#__PURE__*/function (_Component) {
4078
+ var SoundCloud =
4079
+ /*#__PURE__*/
4080
+ function (_Component) {
4060
4081
  _inherits(SoundCloud, _Component);
4061
4082
 
4062
- var _super = _createSuper(SoundCloud);
4063
-
4064
4083
  function SoundCloud() {
4084
+ var _getPrototypeOf2;
4085
+
4065
4086
  var _this;
4066
4087
 
4067
4088
  _classCallCheck(this, SoundCloud);
@@ -4070,7 +4091,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4070
4091
  args[_key] = arguments[_key];
4071
4092
  }
4072
4093
 
4073
- _this = _super.call.apply(_super, [this].concat(args));
4094
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
4074
4095
 
4075
4096
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4076
4097
 
@@ -4191,7 +4212,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4191
4212
  height: '100%',
4192
4213
  display: display
4193
4214
  };
4194
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4215
+ return _react["default"].createElement("iframe", {
4195
4216
  ref: this.ref,
4196
4217
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4197
4218
  style: style,
@@ -4220,7 +4241,7 @@ exports["default"] = _default;
4220
4241
  });
4221
4242
 
4222
4243
  unwrapExports(SoundCloud_1);
4223
- SoundCloud_1.SoundCloud;
4244
+ var SoundCloud_2 = SoundCloud_1.SoundCloud;
4224
4245
 
4225
4246
  var Vimeo_1 = createCommonjsModule(function (module, exports) {
4226
4247
 
@@ -4253,16 +4274,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4253
4274
 
4254
4275
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4255
4276
 
4256
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4257
-
4258
4277
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4259
4278
 
4260
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4261
-
4262
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4263
-
4264
4279
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4265
4280
 
4281
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4282
+
4266
4283
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4267
4284
 
4268
4285
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4274,12 +4291,14 @@ var SDK_GLOBAL = 'Vimeo';
4274
4291
  var MATCH_URL = /vimeo\.com\/.+/;
4275
4292
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4276
4293
 
4277
- var Vimeo = /*#__PURE__*/function (_Component) {
4294
+ var Vimeo =
4295
+ /*#__PURE__*/
4296
+ function (_Component) {
4278
4297
  _inherits(Vimeo, _Component);
4279
4298
 
4280
- var _super = _createSuper(Vimeo);
4281
-
4282
4299
  function Vimeo() {
4300
+ var _getPrototypeOf2;
4301
+
4283
4302
  var _this;
4284
4303
 
4285
4304
  _classCallCheck(this, Vimeo);
@@ -4288,7 +4307,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4288
4307
  args[_key] = arguments[_key];
4289
4308
  }
4290
4309
 
4291
- _this = _super.call.apply(_super, [this].concat(args));
4310
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4292
4311
 
4293
4312
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4294
4313
 
@@ -4445,7 +4464,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4445
4464
  overflow: 'hidden',
4446
4465
  display: display
4447
4466
  };
4448
- return /*#__PURE__*/_react["default"].createElement("div", {
4467
+ return _react["default"].createElement("div", {
4449
4468
  key: this.props.url,
4450
4469
  ref: this.ref,
4451
4470
  style: style
@@ -4476,7 +4495,7 @@ exports["default"] = _default;
4476
4495
  });
4477
4496
 
4478
4497
  unwrapExports(Vimeo_1);
4479
- Vimeo_1.Vimeo;
4498
+ var Vimeo_2 = Vimeo_1.Vimeo;
4480
4499
 
4481
4500
  var Facebook_1 = createCommonjsModule(function (module, exports) {
4482
4501
 
@@ -4505,16 +4524,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4505
4524
 
4506
4525
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4507
4526
 
4508
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4509
-
4510
4527
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4511
4528
 
4512
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4513
-
4514
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4515
-
4516
4529
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4517
4530
 
4531
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4532
+
4518
4533
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4519
4534
 
4520
4535
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4527,12 +4542,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4527
4542
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4528
4543
  var PLAYER_ID_PREFIX = 'facebook-player-';
4529
4544
 
4530
- var Facebook = /*#__PURE__*/function (_Component) {
4545
+ var Facebook =
4546
+ /*#__PURE__*/
4547
+ function (_Component) {
4531
4548
  _inherits(Facebook, _Component);
4532
4549
 
4533
- var _super = _createSuper(Facebook);
4534
-
4535
4550
  function Facebook() {
4551
+ var _getPrototypeOf2;
4552
+
4536
4553
  var _this;
4537
4554
 
4538
4555
  _classCallCheck(this, Facebook);
@@ -4541,7 +4558,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4541
4558
  args[_key] = arguments[_key];
4542
4559
  }
4543
4560
 
4544
- _this = _super.call.apply(_super, [this].concat(args));
4561
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4545
4562
 
4546
4563
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4547
4564
 
@@ -4657,7 +4674,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4657
4674
  width: '100%',
4658
4675
  height: '100%'
4659
4676
  };
4660
- return /*#__PURE__*/_react["default"].createElement("div", {
4677
+ return _react["default"].createElement("div", {
4661
4678
  style: style,
4662
4679
  id: this.playerID,
4663
4680
  className: "fb-video",
@@ -4688,7 +4705,7 @@ exports["default"] = _default;
4688
4705
  });
4689
4706
 
4690
4707
  unwrapExports(Facebook_1);
4691
- Facebook_1.Facebook;
4708
+ var Facebook_2 = Facebook_1.Facebook;
4692
4709
 
4693
4710
  var Streamable_1 = createCommonjsModule(function (module, exports) {
4694
4711
 
@@ -4717,16 +4734,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4717
4734
 
4718
4735
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4719
4736
 
4720
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4721
-
4722
4737
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4723
4738
 
4724
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4725
-
4726
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4727
-
4728
4739
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4729
4740
 
4741
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4742
+
4730
4743
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4731
4744
 
4732
4745
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4737,12 +4750,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4737
4750
  var SDK_GLOBAL = 'playerjs';
4738
4751
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4739
4752
 
4740
- var Streamable = /*#__PURE__*/function (_Component) {
4753
+ var Streamable =
4754
+ /*#__PURE__*/
4755
+ function (_Component) {
4741
4756
  _inherits(Streamable, _Component);
4742
4757
 
4743
- var _super = _createSuper(Streamable);
4744
-
4745
4758
  function Streamable() {
4759
+ var _getPrototypeOf2;
4760
+
4746
4761
  var _this;
4747
4762
 
4748
4763
  _classCallCheck(this, Streamable);
@@ -4751,7 +4766,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4751
4766
  args[_key] = arguments[_key];
4752
4767
  }
4753
4768
 
4754
- _this = _super.call.apply(_super, [this].concat(args));
4769
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4755
4770
 
4756
4771
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4757
4772
 
@@ -4871,7 +4886,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4871
4886
  width: '100%',
4872
4887
  height: '100%'
4873
4888
  };
4874
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4889
+ return _react["default"].createElement("iframe", {
4875
4890
  ref: this.ref,
4876
4891
  src: "https://streamable.com/o/".concat(id),
4877
4892
  frameBorder: "0",
@@ -4899,7 +4914,7 @@ exports["default"] = _default;
4899
4914
  });
4900
4915
 
4901
4916
  unwrapExports(Streamable_1);
4902
- Streamable_1.Streamable;
4917
+ var Streamable_2 = Streamable_1.Streamable;
4903
4918
 
4904
4919
  var Wistia_1 = createCommonjsModule(function (module, exports) {
4905
4920
 
@@ -4932,16 +4947,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4932
4947
 
4933
4948
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4934
4949
 
4935
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4936
-
4937
4950
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4938
4951
 
4939
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4940
-
4941
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4942
-
4943
4952
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4944
4953
 
4954
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4955
+
4945
4956
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4946
4957
 
4947
4958
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4952,48 +4963,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4952
4963
  var SDK_GLOBAL = 'Wistia';
4953
4964
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4954
4965
 
4955
- var Wistia = /*#__PURE__*/function (_Component) {
4966
+ var Wistia =
4967
+ /*#__PURE__*/
4968
+ function (_Component) {
4956
4969
  _inherits(Wistia, _Component);
4957
4970
 
4958
- var _super = _createSuper(Wistia);
4959
-
4960
4971
  function Wistia() {
4972
+ var _getPrototypeOf2;
4973
+
4961
4974
  var _this;
4962
4975
 
4963
4976
  _classCallCheck(this, Wistia);
4964
4977
 
4965
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
4966
- _args[_key] = arguments[_key];
4978
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4979
+ args[_key] = arguments[_key];
4967
4980
  }
4968
4981
 
4969
- _this = _super.call.apply(_super, [this].concat(_args));
4982
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
4970
4983
 
4971
4984
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4972
4985
 
4973
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
4974
- var _this$props;
4975
-
4976
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
4977
- });
4978
-
4979
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
4980
- var _this$props2;
4981
-
4982
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
4983
- });
4984
-
4985
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
4986
- var _this$props3;
4987
-
4988
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
4989
- });
4990
-
4991
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
4992
- var _this$props4;
4993
-
4994
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
4995
- });
4996
-
4997
4986
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
4998
4987
  _this.callPlayer('mute');
4999
4988
  });
@@ -5015,13 +5004,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
5015
5004
  value: function load(url) {
5016
5005
  var _this2 = this;
5017
5006
 
5018
- var _this$props5 = this.props,
5019
- playing = _this$props5.playing,
5020
- muted = _this$props5.muted,
5021
- controls = _this$props5.controls,
5022
- _onReady = _this$props5.onReady,
5023
- config = _this$props5.config,
5024
- onError = _this$props5.onError;
5007
+ var _this$props = this.props,
5008
+ playing = _this$props.playing,
5009
+ muted = _this$props.muted,
5010
+ controls = _this$props.controls,
5011
+ _onReady = _this$props.onReady,
5012
+ onPlay = _this$props.onPlay,
5013
+ onPause = _this$props.onPause,
5014
+ onSeek = _this$props.onSeek,
5015
+ onEnded = _this$props.onEnded,
5016
+ config = _this$props.config,
5017
+ onError = _this$props.onError;
5025
5018
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
5026
5019
  window._wq = window._wq || [];
5027
5020
 
@@ -5038,28 +5031,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5038
5031
 
5039
5032
  _this2.unbind();
5040
5033
 
5041
- _this2.player.bind('play', _this2.onPlay);
5034
+ _this2.player.bind('play', onPlay);
5042
5035
 
5043
- _this2.player.bind('pause', _this2.onPause);
5036
+ _this2.player.bind('pause', onPause);
5044
5037
 
5045
- _this2.player.bind('seek', _this2.onSeek);
5038
+ _this2.player.bind('seek', onSeek);
5046
5039
 
5047
- _this2.player.bind('end', _this2.onEnded);
5040
+ _this2.player.bind('end', onEnded);
5048
5041
 
5049
5042
  _onReady();
5050
5043
  }
5051
5044
  });
5052
5045
  }, onError);
5053
5046
  }
5054
- }, {
5055
- key: "unbind",
5056
- value: function unbind() {
5057
- this.player.unbind('play', this.onPlay);
5058
- this.player.unbind('pause', this.onPause);
5059
- this.player.unbind('seek', this.onSeek);
5060
- this.player.unbind('end', this.onEnded);
5061
- } // Proxy methods to prevent listener leaks
5062
-
5063
5047
  }, {
5064
5048
  key: "play",
5065
5049
  value: function play() {
@@ -5070,6 +5054,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5070
5054
  value: function pause() {
5071
5055
  this.callPlayer('pause');
5072
5056
  }
5057
+ }, {
5058
+ key: "unbind",
5059
+ value: function unbind() {
5060
+ var _this$props2 = this.props,
5061
+ onPlay = _this$props2.onPlay,
5062
+ onPause = _this$props2.onPause,
5063
+ onSeek = _this$props2.onSeek,
5064
+ onEnded = _this$props2.onEnded;
5065
+ this.player.unbind('play', onPlay);
5066
+ this.player.unbind('pause', onPause);
5067
+ this.player.unbind('seek', onSeek);
5068
+ this.player.unbind('end', onEnded);
5069
+ }
5073
5070
  }, {
5074
5071
  key: "stop",
5075
5072
  value: function stop() {
@@ -5115,7 +5112,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
5115
5112
  width: '100%',
5116
5113
  height: '100%'
5117
5114
  };
5118
- return /*#__PURE__*/_react["default"].createElement("div", {
5115
+ return _react["default"].createElement("div", {
5119
5116
  key: id,
5120
5117
  className: className,
5121
5118
  style: style
@@ -5142,7 +5139,7 @@ exports["default"] = _default;
5142
5139
  });
5143
5140
 
5144
5141
  unwrapExports(Wistia_1);
5145
- Wistia_1.Wistia;
5142
+ var Wistia_2 = Wistia_1.Wistia;
5146
5143
 
5147
5144
  var Twitch_1 = createCommonjsModule(function (module, exports) {
5148
5145
 
@@ -5175,16 +5172,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5175
5172
 
5176
5173
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5177
5174
 
5178
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5179
-
5180
5175
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5181
5176
 
5182
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5183
-
5184
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5185
-
5186
5177
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5187
5178
 
5179
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5180
+
5188
5181
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5189
5182
 
5190
5183
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5197,12 +5190,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5197
5190
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5198
5191
  var PLAYER_ID_PREFIX = 'twitch-player-';
5199
5192
 
5200
- var Twitch = /*#__PURE__*/function (_Component) {
5193
+ var Twitch =
5194
+ /*#__PURE__*/
5195
+ function (_Component) {
5201
5196
  _inherits(Twitch, _Component);
5202
5197
 
5203
- var _super = _createSuper(Twitch);
5204
-
5205
5198
  function Twitch() {
5199
+ var _getPrototypeOf2;
5200
+
5206
5201
  var _this;
5207
5202
 
5208
5203
  _classCallCheck(this, Twitch);
@@ -5211,7 +5206,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5211
5206
  args[_key] = arguments[_key];
5212
5207
  }
5213
5208
 
5214
- _this = _super.call.apply(_super, [this].concat(args));
5209
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5215
5210
 
5216
5211
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5217
5212
 
@@ -5332,7 +5327,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5332
5327
  width: '100%',
5333
5328
  height: '100%'
5334
5329
  };
5335
- return /*#__PURE__*/_react["default"].createElement("div", {
5330
+ return _react["default"].createElement("div", {
5336
5331
  style: style,
5337
5332
  id: this.playerID
5338
5333
  });
@@ -5358,7 +5353,7 @@ exports["default"] = _default;
5358
5353
  });
5359
5354
 
5360
5355
  unwrapExports(Twitch_1);
5361
- Twitch_1.Twitch;
5356
+ var Twitch_2 = Twitch_1.Twitch;
5362
5357
 
5363
5358
  var DailyMotion_1 = createCommonjsModule(function (module, exports) {
5364
5359
 
@@ -5385,15 +5380,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5385
5380
 
5386
5381
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5387
5382
 
5388
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5389
-
5390
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5383
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5391
5384
 
5392
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5385
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5393
5386
 
5394
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5395
-
5396
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
5387
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
5397
5388
 
5398
5389
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5399
5390
 
@@ -5403,16 +5394,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5403
5394
 
5404
5395
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5405
5396
 
5406
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5407
-
5408
5397
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5409
5398
 
5410
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5411
-
5412
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5413
-
5414
5399
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5415
5400
 
5401
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5402
+
5416
5403
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5417
5404
 
5418
5405
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5424,12 +5411,14 @@ var SDK_GLOBAL = 'DM';
5424
5411
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5425
5412
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5426
5413
 
5427
- var DailyMotion = /*#__PURE__*/function (_Component) {
5414
+ var DailyMotion =
5415
+ /*#__PURE__*/
5416
+ function (_Component) {
5428
5417
  _inherits(DailyMotion, _Component);
5429
5418
 
5430
- var _super = _createSuper(DailyMotion);
5431
-
5432
5419
  function DailyMotion() {
5420
+ var _getPrototypeOf2;
5421
+
5433
5422
  var _this;
5434
5423
 
5435
5424
  _classCallCheck(this, DailyMotion);
@@ -5438,7 +5427,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5438
5427
  args[_key] = arguments[_key];
5439
5428
  }
5440
5429
 
5441
- _this = _super.call.apply(_super, [this].concat(args));
5430
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5442
5431
 
5443
5432
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5444
5433
 
@@ -5567,9 +5556,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5567
5556
  height: '100%',
5568
5557
  display: display
5569
5558
  };
5570
- return /*#__PURE__*/_react["default"].createElement("div", {
5559
+ return _react["default"].createElement("div", {
5571
5560
  style: style
5572
- }, /*#__PURE__*/_react["default"].createElement("div", {
5561
+ }, _react["default"].createElement("div", {
5573
5562
  ref: this.ref
5574
5563
  }));
5575
5564
  }
@@ -5594,7 +5583,7 @@ exports["default"] = _default;
5594
5583
  });
5595
5584
 
5596
5585
  unwrapExports(DailyMotion_1);
5597
- DailyMotion_1.DailyMotion;
5586
+ var DailyMotion_2 = DailyMotion_1.DailyMotion;
5598
5587
 
5599
5588
  var Mixcloud_1 = createCommonjsModule(function (module, exports) {
5600
5589
 
@@ -5627,16 +5616,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5627
5616
 
5628
5617
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5629
5618
 
5630
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5631
-
5632
5619
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5633
5620
 
5634
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5635
-
5636
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5637
-
5638
5621
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5639
5622
 
5623
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5624
+
5640
5625
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5641
5626
 
5642
5627
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5647,12 +5632,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5647
5632
  var SDK_GLOBAL = 'Mixcloud';
5648
5633
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5649
5634
 
5650
- var Mixcloud = /*#__PURE__*/function (_Component) {
5635
+ var Mixcloud =
5636
+ /*#__PURE__*/
5637
+ function (_Component) {
5651
5638
  _inherits(Mixcloud, _Component);
5652
5639
 
5653
- var _super = _createSuper(Mixcloud);
5654
-
5655
5640
  function Mixcloud() {
5641
+ var _getPrototypeOf2;
5642
+
5656
5643
  var _this;
5657
5644
 
5658
5645
  _classCallCheck(this, Mixcloud);
@@ -5661,7 +5648,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5661
5648
  args[_key] = arguments[_key];
5662
5649
  }
5663
5650
 
5664
- _this = _super.call.apply(_super, [this].concat(args));
5651
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5665
5652
 
5666
5653
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5667
5654
 
@@ -5764,7 +5751,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5764
5751
  })); // We have to give the iframe a key here to prevent a
5765
5752
  // weird dialog appearing when loading a new track
5766
5753
 
5767
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5754
+ return _react["default"].createElement("iframe", {
5768
5755
  key: id,
5769
5756
  ref: this.ref,
5770
5757
  style: style,
@@ -5793,7 +5780,7 @@ exports["default"] = _default;
5793
5780
  });
5794
5781
 
5795
5782
  unwrapExports(Mixcloud_1);
5796
- Mixcloud_1.Mixcloud;
5783
+ var Mixcloud_2 = Mixcloud_1.Mixcloud;
5797
5784
 
5798
5785
  var FilePlayer_1 = createCommonjsModule(function (module, exports) {
5799
5786
 
@@ -5824,33 +5811,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5824
5811
 
5825
5812
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5826
5813
 
5827
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5828
-
5829
5814
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5830
5815
 
5831
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5832
-
5833
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5834
-
5835
5816
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5836
5817
 
5818
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5819
+
5837
5820
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5838
5821
 
5839
5822
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5840
5823
 
5841
5824
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5842
5825
 
5843
- function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
5844
-
5845
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5846
-
5847
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5848
-
5849
5826
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5850
5827
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5851
5828
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5852
5829
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5853
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5830
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5854
5831
  var HLS_GLOBAL = 'Hls';
5855
5832
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5856
5833
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5859,11 +5836,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5859
5836
 
5860
5837
  function canPlay(url) {
5861
5838
  if (url instanceof Array) {
5862
- var _iterator = _createForOfIteratorHelper(url),
5863
- _step;
5839
+ var _iteratorNormalCompletion = true;
5840
+ var _didIteratorError = false;
5841
+ var _iteratorError = undefined;
5864
5842
 
5865
5843
  try {
5866
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5844
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5867
5845
  var item = _step.value;
5868
5846
 
5869
5847
  if (typeof item === 'string' && canPlay(item)) {
@@ -5875,9 +5853,18 @@ function canPlay(url) {
5875
5853
  }
5876
5854
  }
5877
5855
  } catch (err) {
5878
- _iterator.e(err);
5856
+ _didIteratorError = true;
5857
+ _iteratorError = err;
5879
5858
  } finally {
5880
- _iterator.f();
5859
+ try {
5860
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5861
+ _iterator["return"]();
5862
+ }
5863
+ } finally {
5864
+ if (_didIteratorError) {
5865
+ throw _iteratorError;
5866
+ }
5867
+ }
5881
5868
  }
5882
5869
 
5883
5870
  return false;
@@ -5901,12 +5888,14 @@ function canEnablePIP(url) {
5901
5888
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5902
5889
  }
5903
5890
 
5904
- var FilePlayer = /*#__PURE__*/function (_Component) {
5891
+ var FilePlayer =
5892
+ /*#__PURE__*/
5893
+ function (_Component) {
5905
5894
  _inherits(FilePlayer, _Component);
5906
5895
 
5907
- var _super = _createSuper(FilePlayer);
5908
-
5909
5896
  function FilePlayer() {
5897
+ var _getPrototypeOf2;
5898
+
5910
5899
  var _this;
5911
5900
 
5912
5901
  _classCallCheck(this, FilePlayer);
@@ -5915,7 +5904,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5915
5904
  _args[_key] = arguments[_key];
5916
5905
  }
5917
5906
 
5918
- _this = _super.call.apply(_super, [this].concat(_args));
5907
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5919
5908
 
5920
5909
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5921
5910
  var _this$props;
@@ -6002,19 +5991,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6002
5991
 
6003
5992
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
6004
5993
  if (typeof source === 'string') {
6005
- return /*#__PURE__*/_react["default"].createElement("source", {
5994
+ return _react["default"].createElement("source", {
6006
5995
  key: index,
6007
5996
  src: source
6008
5997
  });
6009
5998
  }
6010
5999
 
6011
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
6000
+ return _react["default"].createElement("source", _extends({
6012
6001
  key: index
6013
6002
  }, source));
6014
6003
  });
6015
6004
 
6016
6005
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
6017
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
6006
+ return _react["default"].createElement("track", _extends({
6018
6007
  key: index
6019
6008
  }, track));
6020
6009
  });
@@ -6052,10 +6041,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6052
6041
  key: "componentWillUnmount",
6053
6042
  value: function componentWillUnmount() {
6054
6043
  this.removeListeners(this.player);
6055
-
6056
- if (this.hls) {
6057
- this.hls.destroy();
6058
- }
6059
6044
  }
6060
6045
  }, {
6061
6046
  key: "addListeners",
@@ -6186,6 +6171,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6186
6171
  value: function stop() {
6187
6172
  this.player.removeAttribute('src');
6188
6173
 
6174
+ if (this.hls) {
6175
+ this.hls.destroy();
6176
+ }
6177
+
6189
6178
  if (this.dash) {
6190
6179
  this.dash.reset();
6191
6180
  }
@@ -6297,7 +6286,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6297
6286
  width: width === 'auto' ? width : '100%',
6298
6287
  height: height === 'auto' ? height : '100%'
6299
6288
  };
6300
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6289
+ return _react["default"].createElement(Element, _extends({
6301
6290
  ref: this.ref,
6302
6291
  src: this.getSource(url),
6303
6292
  style: style,
@@ -6327,7 +6316,7 @@ exports["default"] = _default;
6327
6316
  });
6328
6317
 
6329
6318
  unwrapExports(FilePlayer_1);
6330
- FilePlayer_1.FilePlayer;
6319
+ var FilePlayer_2 = FilePlayer_1.FilePlayer;
6331
6320
 
6332
6321
  var players = createCommonjsModule(function (module, exports) {
6333
6322
 
@@ -6387,16 +6376,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6387
6376
 
6388
6377
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6389
6378
 
6390
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6391
-
6392
6379
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6393
6380
 
6394
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6395
-
6396
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
6397
-
6398
6381
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6399
6382
 
6383
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6384
+
6400
6385
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
6401
6386
 
6402
6387
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6405,12 +6390,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6405
6390
 
6406
6391
  var ICON_SIZE = '64px';
6407
6392
 
6408
- var Preview = /*#__PURE__*/function (_Component) {
6393
+ var Preview =
6394
+ /*#__PURE__*/
6395
+ function (_Component) {
6409
6396
  _inherits(Preview, _Component);
6410
6397
 
6411
- var _super = _createSuper(Preview);
6412
-
6413
6398
  function Preview() {
6399
+ var _getPrototypeOf2;
6400
+
6414
6401
  var _this;
6415
6402
 
6416
6403
  _classCallCheck(this, Preview);
@@ -6419,7 +6406,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6419
6406
  args[_key] = arguments[_key];
6420
6407
  }
6421
6408
 
6422
- _this = _super.call.apply(_super, [this].concat(args));
6409
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6423
6410
 
6424
6411
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6425
6412
 
@@ -6517,15 +6504,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6517
6504
  }
6518
6505
  };
6519
6506
 
6520
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6507
+ var defaultPlayIcon = _react["default"].createElement("div", {
6521
6508
  style: styles.shadow,
6522
6509
  className: "react-player__shadow"
6523
- }, /*#__PURE__*/_react["default"].createElement("div", {
6510
+ }, _react["default"].createElement("div", {
6524
6511
  style: styles.playIcon,
6525
6512
  className: "react-player__play-icon"
6526
6513
  }));
6527
6514
 
6528
- return /*#__PURE__*/_react["default"].createElement("div", {
6515
+ return _react["default"].createElement("div", {
6529
6516
  style: styles.preview,
6530
6517
  className: "react-player__preview",
6531
6518
  onClick: onClick
@@ -6562,12 +6549,6 @@ var _Player = _interopRequireDefault(Player_1);
6562
6549
 
6563
6550
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6564
6551
 
6565
- function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
6566
-
6567
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6568
-
6569
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6570
-
6571
6552
  var PRELOAD_PLAYERS = [{
6572
6553
  Player: YouTube_1.YouTube,
6573
6554
  configKey: 'youtube',
@@ -6588,16 +6569,16 @@ var PRELOAD_PLAYERS = [{
6588
6569
 
6589
6570
  function renderPreloadPlayers(url, controls, config) {
6590
6571
  var players = [];
6591
-
6592
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6593
- _step;
6572
+ var _iteratorNormalCompletion = true;
6573
+ var _didIteratorError = false;
6574
+ var _iteratorError = undefined;
6594
6575
 
6595
6576
  try {
6596
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6577
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6597
6578
  var player = _step.value;
6598
6579
 
6599
6580
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6600
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6581
+ players.push(_react["default"].createElement(_Player["default"], {
6601
6582
  key: player.Player.displayName,
6602
6583
  activePlayer: player.Player,
6603
6584
  url: player.url,
@@ -6609,9 +6590,18 @@ function renderPreloadPlayers(url, controls, config) {
6609
6590
  }
6610
6591
  }
6611
6592
  } catch (err) {
6612
- _iterator.e(err);
6593
+ _didIteratorError = true;
6594
+ _iteratorError = err;
6613
6595
  } finally {
6614
- _iterator.f();
6596
+ try {
6597
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6598
+ _iterator["return"]();
6599
+ }
6600
+ } finally {
6601
+ if (_didIteratorError) {
6602
+ throw _iteratorError;
6603
+ }
6604
+ }
6615
6605
  }
6616
6606
 
6617
6607
  return players;
@@ -6735,17 +6725,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6735
6725
 
6736
6726
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6737
6727
 
6738
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6739
-
6740
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6741
-
6742
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6728
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6743
6729
 
6744
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6730
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6745
6731
 
6746
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6732
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6747
6733
 
6748
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6734
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
6749
6735
 
6750
6736
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6751
6737
 
@@ -6753,16 +6739,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6753
6739
 
6754
6740
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6755
6741
 
6756
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6757
-
6758
6742
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6759
6743
 
6760
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6761
-
6762
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
6763
-
6764
6744
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6765
6745
 
6746
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6747
+
6766
6748
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
6767
6749
 
6768
6750
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6772,12 +6754,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6772
6754
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6773
6755
  var customPlayers = [];
6774
6756
 
6775
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6757
+ var ReactPlayer =
6758
+ /*#__PURE__*/
6759
+ function (_Component) {
6776
6760
  _inherits(ReactPlayer, _Component);
6777
6761
 
6778
- var _super = _createSuper(ReactPlayer);
6779
-
6780
6762
  function ReactPlayer() {
6763
+ var _getPrototypeOf2;
6764
+
6781
6765
  var _this;
6782
6766
 
6783
6767
  _classCallCheck(this, ReactPlayer);
@@ -6786,7 +6770,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6786
6770
  args[_key] = arguments[_key];
6787
6771
  }
6788
6772
 
6789
- _this = _super.call.apply(_super, [this].concat(args));
6773
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6790
6774
 
6791
6775
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6792
6776
 
@@ -6897,7 +6881,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6897
6881
  key: "renderActivePlayer",
6898
6882
  value: function renderActivePlayer(url, activePlayer) {
6899
6883
  if (!url) return null;
6900
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6884
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6901
6885
  key: activePlayer.displayName,
6902
6886
  ref: this.activePlayerRef,
6903
6887
  config: this.config,
@@ -6934,14 +6918,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6934
6918
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6935
6919
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6936
6920
 
6937
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6921
+ var preview = _react["default"].createElement(_Preview["default"], {
6938
6922
  url: url,
6939
6923
  light: light,
6940
6924
  playIcon: playIcon,
6941
6925
  onClick: this.handleClickPreview
6942
6926
  });
6943
6927
 
6944
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6928
+ return _react["default"].createElement(Wrapper, _extends({
6945
6929
  ref: this.wrapperRef,
6946
6930
  style: _objectSpread({}, style, {
6947
6931
  width: width,
@@ -7263,8 +7247,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7263
7247
  var duration = player.getDuration();
7264
7248
  var queue = Math.floor(duration / 10);
7265
7249
  var segment = Math.floor(current / queue);
7266
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
7267
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
7250
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
7251
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
7268
7252
  //autoplay
7269
7253
 
7270
7254
  //Small pause before starting next video
@@ -7284,8 +7268,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7284
7268
  var queue = Math.floor(duration / 10);
7285
7269
  var segment = Math.floor(current / queue);
7286
7270
 
7287
- Beam.report_beam_video('End', main_18, duration, current, segment);
7288
- Segment.report_video_event('Video End', main_18, duration, current, segment);
7271
+ Beam.report_beam_video('End', main_16, duration, current, segment);
7272
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
7289
7273
  setEndReported(true);
7290
7274
  clearInterval(intervalID);
7291
7275
  }
@@ -7335,8 +7319,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7335
7319
  var queue = Math.floor(duration / 10);
7336
7320
  var segment = Math.floor(current / queue);
7337
7321
  if (!queueProgress.includes(segment)) {
7338
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
7339
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
7322
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
7323
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
7340
7324
  queueProgress.push(segment);
7341
7325
  }
7342
7326
  };
@@ -7349,8 +7333,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7349
7333
  var queue = Math.floor(duration / 10);
7350
7334
  var segment = Math.floor(current / queue);
7351
7335
 
7352
- Beam.report_beam_video('Play', main_18, duration, current, segment);
7353
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
7336
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
7337
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
7354
7338
 
7355
7339
  if (!playReported) {
7356
7340
  setPlayReported(true);
@@ -7368,8 +7352,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7368
7352
  var queue = Math.floor(duration / 10);
7369
7353
  var segment = Math.floor(current / queue);
7370
7354
 
7371
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
7372
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
7355
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
7356
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
7373
7357
  };
7374
7358
 
7375
7359
  // Youtube Options
@@ -7487,7 +7471,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7487
7471
  React__default.createElement(
7488
7472
  'div',
7489
7473
  { className: 'vid-text' },
7490
- Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7474
+ Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7491
7475
  ),
7492
7476
  React__default.createElement(
7493
7477
  'style',
@@ -7497,14 +7481,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7497
7481
  );
7498
7482
  };
7499
7483
 
7500
- var Poll$1 = function Poll(_ref) {
7501
- var node = _ref.node;
7502
- _ref.client;
7503
- _ref.pageview;
7504
- _ref.videoAccountIDs;
7505
- var onVote = _ref.onVote;
7506
- _ref.showVotes;
7507
- var getSerializers = _ref.getSerializers;
7484
+ var Poll = function Poll(_ref) {
7485
+ var node = _ref.node,
7486
+ client = _ref.client,
7487
+ pageview = _ref.pageview,
7488
+ videoAccountIDs = _ref.videoAccountIDs,
7489
+ onVote = _ref.onVote,
7490
+ _ref$showVotes = _ref.showVotes,
7491
+ getSerializers = _ref.getSerializers;
7508
7492
 
7509
7493
  var _useState = useState(null),
7510
7494
  _useState2 = _slicedToArray(_useState, 2),
@@ -7638,22 +7622,22 @@ _export(_export.S, 'Object', {
7638
7622
  }
7639
7623
  });
7640
7624
 
7641
- var values$1 = _core.Object.values;
7625
+ var values = _core.Object.values;
7642
7626
 
7643
- var values = createCommonjsModule(function (module) {
7644
- module.exports = { "default": values$1, __esModule: true };
7627
+ var values$1 = createCommonjsModule(function (module) {
7628
+ module.exports = { "default": values, __esModule: true };
7645
7629
  });
7646
7630
 
7647
- var _Object$values = unwrapExports(values);
7631
+ var _Object$values = unwrapExports(values$1);
7648
7632
 
7649
- var Poll = function Poll(_ref) {
7650
- var node = _ref.node;
7651
- _ref.client;
7652
- _ref.pageview;
7653
- _ref.videoAccountIDs;
7654
- var onVote = _ref.onVote;
7655
- _ref.showVotes;
7656
- var getSerializers = _ref.getSerializers;
7633
+ var Poll$1 = function Poll(_ref) {
7634
+ var node = _ref.node,
7635
+ client = _ref.client,
7636
+ pageview = _ref.pageview,
7637
+ videoAccountIDs = _ref.videoAccountIDs,
7638
+ onVote = _ref.onVote,
7639
+ _ref$showVotes = _ref.showVotes,
7640
+ getSerializers = _ref.getSerializers;
7657
7641
 
7658
7642
  var _useState = useState(null),
7659
7643
  _useState2 = _slicedToArray(_useState, 2),
@@ -7805,7 +7789,7 @@ var Poll = function Poll(_ref) {
7805
7789
  );
7806
7790
  };
7807
7791
 
7808
- var numberOfPaginations = main_42 ? 4 : 10;
7792
+ var numberOfPaginations = main_35 ? 4 : 10;
7809
7793
 
7810
7794
  var Quiz = function Quiz(_ref) {
7811
7795
  var quizzes = _ref.quizzes,
@@ -7924,33 +7908,33 @@ var Quiz = function Quiz(_ref) {
7924
7908
 
7925
7909
  var renderPagination = function renderPagination() {
7926
7910
  return React__default.createElement(
7927
- Pagination,
7928
- { className: 'p-0 m-0', size: main_42 && 'sm' },
7929
- React__default.createElement(Pagination.First, { onClick: function onClick() {
7911
+ Pagination$1,
7912
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7913
+ React__default.createElement(Pagination$1.First, { onClick: function onClick() {
7930
7914
  return changePage('first');
7931
7915
  }, disabled: currentPage === 1 }),
7932
- React__default.createElement(Pagination.Prev, { onClick: function onClick() {
7916
+ React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
7933
7917
  return changePage('prev');
7934
7918
  }, disabled: currentPage === 1 }),
7935
- React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
7919
+ React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
7936
7920
  return renderNewPages('prev');
7937
7921
  }, disabled: !validateIndex(startIndex - numberOfPaginations) }),
7938
7922
  pages.map(function (page) {
7939
7923
  return React__default.createElement(
7940
- Pagination.Item,
7924
+ Pagination$1.Item,
7941
7925
  { key: page, active: page === currentPage, onClick: function onClick() {
7942
7926
  return changePage(page);
7943
7927
  } },
7944
7928
  page
7945
7929
  );
7946
7930
  }),
7947
- React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
7931
+ React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
7948
7932
  return renderNewPages('next');
7949
7933
  }, disabled: !validateIndex(startIndex + numberOfPaginations) }),
7950
- React__default.createElement(Pagination.Next, { onClick: function onClick() {
7934
+ React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
7951
7935
  return changePage('next');
7952
7936
  }, disabled: currentPage === pageCount }),
7953
- React__default.createElement(Pagination.Last, { onClick: function onClick() {
7937
+ React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
7954
7938
  return changePage('last');
7955
7939
  }, disabled: currentPage === pageCount })
7956
7940
  );
@@ -8095,7 +8079,7 @@ var Leads = function Leads(_ref) {
8095
8079
  );
8096
8080
  };
8097
8081
 
8098
- var Slideshow = function Slideshow(_ref) {
8082
+ var Slideshow$1 = function Slideshow(_ref) {
8099
8083
  var slides = _ref.node.slides,
8100
8084
  client = _ref.client,
8101
8085
  pageview = _ref.pageview,
@@ -8107,8 +8091,8 @@ var Slideshow = function Slideshow(_ref) {
8107
8091
 
8108
8092
  var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
8109
8093
  _useState2 = _slicedToArray(_useState, 2),
8110
- carouselIndex = _useState2[0];
8111
- _useState2[1];
8094
+ carouselIndex = _useState2[0],
8095
+ setCarouselIndex = _useState2[1];
8112
8096
 
8113
8097
  // useEffect(() => {
8114
8098
  // let itemArr = router.asPath.split('?page=')
@@ -8238,7 +8222,7 @@ var MultiMedia = function MultiMedia(props) {
8238
8222
  { xs: 12, md: 12 / medias.length, key: media._key },
8239
8223
  React__default.createElement(
8240
8224
  'a',
8241
- _extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8225
+ _extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8242
8226
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8243
8227
  React__default.createElement(
8244
8228
  'div',
@@ -8526,7 +8510,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8526
8510
 
8527
8511
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8528
8512
  if (biography) {
8529
- return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8513
+ return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
8530
8514
  }
8531
8515
  };
8532
8516
 
@@ -8612,7 +8596,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8612
8596
  //console.log('useLayoutEffect')
8613
8597
  if (!firstLoad) {
8614
8598
  setUpArrowClicked(false);
8615
- if (main_43) {
8599
+ if (main_36) {
8616
8600
  grabLoadedAds();
8617
8601
  } else {
8618
8602
  scrollToArticle();
@@ -8636,7 +8620,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8636
8620
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8637
8621
  if (pageview) pageview(path);
8638
8622
 
8639
- if (!main_43) {
8623
+ if (!main_36) {
8640
8624
  lib_3.getGoogletag().then(function (googletag) {
8641
8625
  if (window.googletag && googletag.pubadsReady) {
8642
8626
  lib_3.refresh();
@@ -8644,7 +8628,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8644
8628
  });
8645
8629
  }
8646
8630
  //Refresh leaderboard ad on mobile
8647
- if (main_43) {
8631
+ if (main_36) {
8648
8632
  var leaderboardSlotId = '';
8649
8633
  lib_3.getGoogletag().then(function (googletag) {
8650
8634
  if (window.googletag && googletag.pubadsReady) {
@@ -8713,7 +8697,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8713
8697
  React__default.createElement(
8714
8698
  'div',
8715
8699
  { className: 'ad-box', style: { textAlign: 'center' } },
8716
- main_43 && Ads.map(function (ad, index) {
8700
+ main_36 && Ads.map(function (ad, index) {
8717
8701
  if (index === 0) {
8718
8702
  return React__default.createElement(
8719
8703
  'div',
@@ -8804,7 +8788,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8804
8788
  React__default.createElement(
8805
8789
  'div',
8806
8790
  { className: 'mt-2 mb-2' },
8807
- React__default.createElement(BlockContent, _extends({
8791
+ React__default.createElement(BlockContent, _extends$1({
8808
8792
  serializers: getSerializers,
8809
8793
  videoAccountIDs: accountIDs,
8810
8794
  blocks: article.text,
@@ -8835,7 +8819,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8835
8819
  React__default.createElement(
8836
8820
  'div',
8837
8821
  { className: 'ad-box', style: { textAlign: 'center' } },
8838
- main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8822
+ main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8839
8823
  if (innerIndex === 0) {
8840
8824
  return React__default.createElement(
8841
8825
  'div',
@@ -8922,7 +8906,7 @@ var FigureImage = React__default.memo(function (_ref2) {
8922
8906
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8923
8907
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8924
8908
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
8925
- React__default.createElement('img', _extends({
8909
+ React__default.createElement('img', _extends$1({
8926
8910
  style: figureImageStyle,
8927
8911
  className: 'figure-image',
8928
8912
  src: urlFor({ source: node, client: client }),
@@ -9037,7 +9021,7 @@ var FigureComponent = function FigureComponent(props) {
9037
9021
  React__default.Fragment,
9038
9022
  null,
9039
9023
  React__default.createElement(
9040
- Figure$2,
9024
+ Figure$1$1,
9041
9025
  { className: '' + class_name, style: figureStyle },
9042
9026
  link ? React__default.createElement(
9043
9027
  'a',
@@ -9131,7 +9115,7 @@ var MultiFigure = function MultiFigure(props) {
9131
9115
  { xs: 12, md: 12 / images.length, key: index },
9132
9116
  image.link ? React__default.createElement(
9133
9117
  'a',
9134
- _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9118
+ _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9135
9119
  React__default.createElement(
9136
9120
  'div',
9137
9121
  { className: 'multi-figure-image-container' },
@@ -9223,7 +9207,7 @@ exports.__esModule = true;
9223
9207
 
9224
9208
 
9225
9209
 
9226
- var _extends3 = _interopRequireDefault(_extends$1);
9210
+ var _extends3 = _interopRequireDefault(_extends$2);
9227
9211
 
9228
9212
 
9229
9213
 
@@ -9392,9 +9376,9 @@ var ScriptTag = function (_Component) {
9392
9376
 
9393
9377
  // The 'isHydrating' prop must NOT be passed to the script tag
9394
9378
  // eslint-disable-next-line no-unused-vars
9395
- var _props3 = this.props;
9396
- _props3.isHydrating;
9397
- var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
9379
+ var _props3 = this.props,
9380
+ isHydrating = _props3.isHydrating,
9381
+ tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
9398
9382
 
9399
9383
  return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
9400
9384
  return _this2.domRef = tag;
@@ -9536,7 +9520,7 @@ var BlockTable = function BlockTable(props) {
9536
9520
  return React__default.createElement(
9537
9521
  'div',
9538
9522
  { className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
9539
- React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9523
+ React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
9540
9524
  );
9541
9525
  })
9542
9526
  );
@@ -9664,7 +9648,7 @@ var getSerializers = function getSerializers() {
9664
9648
  var node = _ref6.node;
9665
9649
  var slides = node.slides;
9666
9650
 
9667
- return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
9651
+ return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
9668
9652
  },
9669
9653
  sidebar: function sidebar(_ref7) {
9670
9654
  var node = _ref7.node;
@@ -9702,12 +9686,12 @@ var getSerializers = function getSerializers() {
9702
9686
  poll: function poll(_ref13) {
9703
9687
  var node = _ref13.node;
9704
9688
 
9705
- return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
9689
+ return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
9706
9690
  },
9707
9691
  pollMultiChoice: function pollMultiChoice(_ref14) {
9708
9692
  var node = _ref14.node;
9709
9693
 
9710
- return React__default.createElement(Poll, {
9694
+ return React__default.createElement(Poll$1, {
9711
9695
  node: node,
9712
9696
  client: client,
9713
9697
  pageview: pageview,
@@ -9733,7 +9717,7 @@ var getSerializers = function getSerializers() {
9733
9717
  slideshows: function slideshows(_ref17) {
9734
9718
  var node = _ref17.node;
9735
9719
 
9736
- return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
9720
+ return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
9737
9721
  },
9738
9722
  nativeAd: function nativeAd(_ref18) {
9739
9723
  var node = _ref18.node;