@mjhls/mjh-framework 1.0.834 → 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 (276) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +13 -13
  4. package/dist/cjs/AD300x250x600.js +13 -13
  5. package/dist/cjs/AD728x90.js +14 -14
  6. package/dist/cjs/ADFloatingFooter.js +12 -12
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +12 -12
  9. package/dist/cjs/{ADInfeed-7b3f64e1.js → ADInfeed-8d621d3c.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +12 -12
  11. package/dist/cjs/ADSponsoredResources.js +12 -12
  12. package/dist/cjs/ADWebcast.js +12 -12
  13. package/dist/cjs/ADWelcome.js +12 -12
  14. package/dist/cjs/{ADlgInfeed-17a6e476.js → ADlgInfeed-0e26bccb.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +6 -6
  16. package/dist/cjs/AdSlot.js +14 -14
  17. package/dist/cjs/AdSlotsProvider.js +905 -12
  18. package/dist/cjs/AlgoliaSearch.js +264 -391
  19. package/dist/cjs/AlphabeticList.js +8 -8
  20. package/dist/cjs/ArticleCarousel.js +10 -10
  21. package/dist/cjs/ArticleProgramLandingPage.js +31 -31
  22. package/dist/cjs/ArticleSeriesLandingPage.js +26 -26
  23. package/dist/cjs/ArticleSeriesListing.js +18 -18
  24. package/dist/cjs/Auth.js +245 -465
  25. package/dist/cjs/AuthWrapper.js +242 -283
  26. package/dist/cjs/{AuthorComponent-0c464248.js → AuthorComponent-bb831b74.js} +1 -1
  27. package/dist/cjs/Beam.js +7 -7
  28. package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
  29. package/dist/cjs/Breadcrumbs.js +5 -5
  30. package/dist/cjs/CMEDeck.js +14 -14
  31. package/dist/cjs/Column2.js +8 -8
  32. package/dist/cjs/Column3.js +16 -16
  33. package/dist/cjs/ConferenceArticleCard.js +17 -17
  34. package/dist/cjs/DeckContent.js +31 -31
  35. package/dist/cjs/DeckQueue.js +19 -19
  36. package/dist/cjs/{Dfp-ac0c1cc6.js → Dfp-26baccf1.js} +7 -7
  37. package/dist/cjs/EventsDeck.js +33 -33
  38. package/dist/cjs/ExternalResources.js +27 -27
  39. package/dist/cjs/Feature.js +3 -3
  40. package/dist/cjs/ForbesHero.js +8 -8
  41. package/dist/cjs/GridContent.js +147 -29
  42. package/dist/cjs/GridHero.js +8 -8
  43. package/dist/cjs/GroupDeck.js +8 -8
  44. package/dist/cjs/HamMagazine.js +26 -26
  45. package/dist/cjs/Hero.js +1 -1
  46. package/dist/cjs/HighlightenVideo.js +1 -1
  47. package/dist/cjs/HorizontalArticleListing.js +26 -26
  48. package/dist/cjs/HorizontalHero.js +3 -3
  49. package/dist/cjs/IssueContentDeck.js +8 -8
  50. package/dist/cjs/IssueDeck.js +10 -10
  51. package/dist/cjs/IssueLanding.js +60 -60
  52. package/dist/cjs/KMTracker.js +15 -15
  53. package/dist/cjs/LeftNav.js +12 -12
  54. package/dist/cjs/MasterDeck.js +32 -32
  55. package/dist/cjs/MediaSeriesLanding.js +214 -213
  56. package/dist/cjs/NavDvm.js +7 -7
  57. package/dist/cjs/NavMagazine.js +25 -25
  58. package/dist/cjs/NavNative.js +22 -22
  59. package/dist/cjs/OncliveHero.js +3 -2
  60. package/dist/cjs/OncliveLargeHero.js +8 -8
  61. package/dist/cjs/PageFilter.js +5 -5
  62. package/dist/cjs/PartnerDetailListing.js +3867 -41
  63. package/dist/cjs/PdfDownload.js +1 -1
  64. package/dist/cjs/PopUpModal.js +5 -5
  65. package/dist/cjs/PubSection.js +20 -20
  66. package/dist/cjs/PubToc.js +7 -7
  67. package/dist/cjs/PublicationDeck.js +2 -2
  68. package/dist/cjs/PublicationLanding.js +36 -36
  69. package/dist/cjs/QueueDeckExpanded.js +22 -22
  70. package/dist/cjs/RecentNews.js +1 -1
  71. package/dist/cjs/RelatedContent.js +30 -30
  72. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  73. package/dist/cjs/Search.js +5 -5
  74. package/dist/cjs/Segment.js +6 -6
  75. package/dist/cjs/SeriesListingDeck.js +15 -15
  76. package/dist/cjs/{SeriesSlider-abd231e9.js → SeriesSlider-8bbc989f.js} +11 -11
  77. package/dist/cjs/SideFooter.js +10 -10
  78. package/dist/cjs/{SocialSearchComponent-bef9a9d8.js → SocialSearchComponent-cea213aa.js} +8 -8
  79. package/dist/cjs/TaxonomyCard.js +4 -4
  80. package/dist/cjs/TaxonomyDescription.js +26 -26
  81. package/dist/cjs/TemplateNormal.js +19 -19
  82. package/dist/cjs/ThumbnailCard.js +1 -1
  83. package/dist/cjs/Ustream.js +12 -12
  84. package/dist/cjs/VerticalHero.js +2 -2
  85. package/dist/cjs/VideoProgramLandingPage.js +30 -30
  86. package/dist/cjs/VideoSeriesCard.js +9 -9
  87. package/dist/cjs/VideoSeriesFilter.js +7 -7
  88. package/dist/cjs/VideoSeriesLandingPage.js +27 -27
  89. package/dist/cjs/VideoSeriesListing.js +18 -18
  90. package/dist/cjs/View.js +62 -62
  91. package/dist/cjs/YahooHero.js +8 -8
  92. package/dist/cjs/YoutubeGroup.js +18 -18
  93. package/dist/cjs/{_is-array-39ff55dd.js → _is-array-754e012d.js} +1 -1
  94. package/dist/cjs/{_iter-detect-ef35661e.js → _iter-detect-60b2f026.js} +2 -2
  95. package/dist/cjs/{_object-sap-b231f928.js → _object-sap-5e74ba08.js} +1 -1
  96. package/dist/cjs/{_object-to-array-c3aeb51d.js → _object-to-array-5762f850.js} +1 -1
  97. package/dist/cjs/{_to-object-7a3ce269.js → _to-object-329a650b.js} +2 -2
  98. package/dist/cjs/{asyncToGenerator-8ae2191c.js → asyncToGenerator-140e5f89.js} +5 -5
  99. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  100. package/dist/cjs/{core.get-iterator-method-6cd7682d.js → core.get-iterator-method-f62321d4.js} +2 -2
  101. package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
  102. package/dist/cjs/{define-property-fc002cec.js → define-property-f4d12f4e.js} +1 -1
  103. package/dist/cjs/{defineProperty-03c4c82e.js → defineProperty-55548b25.js} +1 -1
  104. package/dist/cjs/{es6.string.iterator-ab94a594.js → es6.string.iterator-cc0bbaa4.js} +1 -1
  105. package/dist/cjs/{extends-acc1318d.js → extends-0a918631.js} +1 -1
  106. package/dist/cjs/faundadb.js +21 -21
  107. package/dist/cjs/getRelatedArticle.js +6 -6
  108. package/dist/cjs/getRootDocGroup.js +8 -8
  109. package/dist/cjs/getSerializers.js +26 -26
  110. package/dist/cjs/{getTargeting-98ab97f7.js → getTargeting-021d644c.js} +12 -12
  111. package/dist/cjs/getTargeting.js +7 -7
  112. package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
  113. package/dist/cjs/{index-0f62d00b.js → index-4cedf2c1.js} +502 -518
  114. package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
  115. package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
  116. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  117. package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
  118. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  119. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  120. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  121. package/dist/cjs/index.js +43 -44
  122. package/dist/cjs/{inherits-bfdb22af.js → inherits-1f5a1c72.js} +9 -9
  123. package/dist/cjs/inherits-8d29278d.js +110 -0
  124. package/dist/cjs/{keys-62e097ca.js → keys-a586b7a0.js} +2 -2
  125. package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
  126. package/dist/cjs/main-02daeefe.js +862 -0
  127. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  128. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  129. package/dist/cjs/{slicedToArray-41819145.js → slicedToArray-8f385299.js} +4 -4
  130. package/dist/cjs/{stringify-7ccc8524.js → stringify-7c5aff47.js} +1 -1
  131. package/dist/cjs/timeDifferenceCalc.js +1 -1
  132. package/dist/cjs/{toConsumableArray-4fdb72e2.js → toConsumableArray-9a3476fe.js} +4 -4
  133. package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
  134. package/dist/cjs/{typeof-e83d4a26.js → typeof-725500bc.js} +4 -4
  135. package/dist/cjs/urlFor.js +6 -1
  136. package/dist/cjs/{ustream-api-c30d203c.js → ustream-api-d092dc31.js} +4 -4
  137. package/dist/cjs/{web.dom.iterable-68e3aaf2.js → web.dom.iterable-a0e279c1.js} +2 -2
  138. package/dist/esm/AD.js +1 -1
  139. package/dist/esm/AD300x250.js +13 -13
  140. package/dist/esm/AD300x250x600.js +13 -13
  141. package/dist/esm/AD728x90.js +14 -14
  142. package/dist/esm/ADFloatingFooter.js +12 -12
  143. package/dist/esm/ADFooter.js +5 -5
  144. package/dist/esm/ADGutter.js +12 -12
  145. package/dist/esm/{ADInfeed-77c2092d.js → ADInfeed-b566ce41.js} +1 -1
  146. package/dist/esm/ADSkyscraper.js +12 -12
  147. package/dist/esm/ADSponsoredResources.js +12 -12
  148. package/dist/esm/ADWebcast.js +12 -12
  149. package/dist/esm/ADWelcome.js +12 -12
  150. package/dist/esm/{ADlgInfeed-12d2ac78.js → ADlgInfeed-5eb7281d.js} +1 -1
  151. package/dist/esm/AccordionPanel.js +6 -6
  152. package/dist/esm/AdSlot.js +14 -14
  153. package/dist/esm/AdSlotsProvider.js +907 -15
  154. package/dist/esm/AlgoliaSearch.js +32 -159
  155. package/dist/esm/AlphabeticList.js +8 -8
  156. package/dist/esm/ArticleCarousel.js +10 -10
  157. package/dist/esm/ArticleProgramLandingPage.js +27 -27
  158. package/dist/esm/ArticleSeriesLandingPage.js +24 -24
  159. package/dist/esm/ArticleSeriesListing.js +18 -18
  160. package/dist/esm/Auth.js +244 -464
  161. package/dist/esm/AuthWrapper.js +242 -283
  162. package/dist/esm/{AuthorComponent-5cab1f6b.js → AuthorComponent-34b16174.js} +1 -1
  163. package/dist/esm/Beam.js +7 -7
  164. package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
  165. package/dist/esm/Breadcrumbs.js +5 -5
  166. package/dist/esm/CMEDeck.js +14 -14
  167. package/dist/esm/Column2.js +8 -8
  168. package/dist/esm/Column3.js +16 -16
  169. package/dist/esm/ConferenceArticleCard.js +17 -17
  170. package/dist/esm/DeckContent.js +31 -31
  171. package/dist/esm/DeckQueue.js +19 -19
  172. package/dist/esm/{Dfp-4b94fbd4.js → Dfp-b7236041.js} +7 -7
  173. package/dist/esm/EventsDeck.js +33 -33
  174. package/dist/esm/ExternalResources.js +27 -27
  175. package/dist/esm/Feature.js +3 -3
  176. package/dist/esm/ForbesHero.js +8 -8
  177. package/dist/esm/GridContent.js +147 -29
  178. package/dist/esm/GridHero.js +8 -8
  179. package/dist/esm/GroupDeck.js +8 -8
  180. package/dist/esm/HamMagazine.js +26 -26
  181. package/dist/esm/Hero.js +1 -1
  182. package/dist/esm/HighlightenVideo.js +1 -1
  183. package/dist/esm/HorizontalArticleListing.js +26 -26
  184. package/dist/esm/HorizontalHero.js +3 -3
  185. package/dist/esm/IssueContentDeck.js +8 -8
  186. package/dist/esm/IssueDeck.js +10 -10
  187. package/dist/esm/IssueLanding.js +60 -60
  188. package/dist/esm/KMTracker.js +15 -15
  189. package/dist/esm/LeftNav.js +12 -12
  190. package/dist/esm/MasterDeck.js +32 -32
  191. package/dist/esm/MediaSeriesLanding.js +366 -365
  192. package/dist/esm/NavDvm.js +7 -7
  193. package/dist/esm/NavMagazine.js +25 -25
  194. package/dist/esm/NavNative.js +22 -22
  195. package/dist/esm/OncliveHero.js +3 -2
  196. package/dist/esm/OncliveLargeHero.js +8 -8
  197. package/dist/esm/PageFilter.js +5 -5
  198. package/dist/esm/PartnerDetailListing.js +3863 -38
  199. package/dist/esm/PdfDownload.js +1 -1
  200. package/dist/esm/PopUpModal.js +5 -5
  201. package/dist/esm/PubSection.js +20 -20
  202. package/dist/esm/PubToc.js +7 -7
  203. package/dist/esm/PublicationDeck.js +2 -2
  204. package/dist/esm/PublicationLanding.js +36 -36
  205. package/dist/esm/QueueDeckExpanded.js +22 -22
  206. package/dist/esm/RecentNews.js +1 -1
  207. package/dist/esm/RelatedContent.js +30 -30
  208. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  209. package/dist/esm/Search.js +5 -5
  210. package/dist/esm/Segment.js +6 -6
  211. package/dist/esm/SeriesListingDeck.js +12 -12
  212. package/dist/esm/{SeriesSlider-d9cf4ffb.js → SeriesSlider-a866bb21.js} +11 -11
  213. package/dist/esm/SideFooter.js +10 -10
  214. package/dist/esm/{SocialSearchComponent-4f7d1c5b.js → SocialSearchComponent-03c3e869.js} +8 -8
  215. package/dist/esm/TaxonomyCard.js +4 -4
  216. package/dist/esm/TaxonomyDescription.js +26 -26
  217. package/dist/esm/TemplateNormal.js +19 -19
  218. package/dist/esm/ThumbnailCard.js +1 -1
  219. package/dist/esm/Ustream.js +12 -12
  220. package/dist/esm/VerticalHero.js +2 -2
  221. package/dist/esm/VideoProgramLandingPage.js +27 -27
  222. package/dist/esm/VideoSeriesCard.js +8 -8
  223. package/dist/esm/VideoSeriesFilter.js +7 -7
  224. package/dist/esm/VideoSeriesLandingPage.js +24 -24
  225. package/dist/esm/VideoSeriesListing.js +18 -18
  226. package/dist/esm/View.js +38 -38
  227. package/dist/esm/YahooHero.js +8 -8
  228. package/dist/esm/YoutubeGroup.js +18 -18
  229. package/dist/esm/{_is-array-328b85b7.js → _is-array-58e95429.js} +1 -1
  230. package/dist/esm/{_iter-detect-0fa1c752.js → _iter-detect-5d49a330.js} +2 -2
  231. package/dist/esm/{_object-sap-1b84e2bf.js → _object-sap-964b6feb.js} +1 -1
  232. package/dist/esm/{_object-to-array-c8f72bf1.js → _object-to-array-7e804fce.js} +1 -1
  233. package/dist/esm/{_to-object-cedb5b78.js → _to-object-a4107da3.js} +2 -2
  234. package/dist/esm/{asyncToGenerator-e1a2f43a.js → asyncToGenerator-fc1c2e29.js} +5 -5
  235. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  236. package/dist/esm/{core.get-iterator-method-227107e6.js → core.get-iterator-method-e1de7503.js} +2 -2
  237. package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
  238. package/dist/esm/{define-property-2f35af22.js → define-property-8af5f002.js} +1 -1
  239. package/dist/esm/{defineProperty-eb9699c0.js → defineProperty-94fd8bfc.js} +1 -1
  240. package/dist/esm/{es6.string.iterator-1577cb76.js → es6.string.iterator-c990c18c.js} +1 -1
  241. package/dist/esm/{extends-be71a29a.js → extends-6f2fcc99.js} +1 -1
  242. package/dist/esm/faundadb.js +7 -7
  243. package/dist/esm/getRelatedArticle.js +6 -6
  244. package/dist/esm/getRootDocGroup.js +6 -6
  245. package/dist/esm/getSerializers.js +26 -26
  246. package/dist/esm/{getTargeting-93bb872d.js → getTargeting-82e86707.js} +11 -11
  247. package/dist/esm/getTargeting.js +7 -7
  248. package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
  249. package/dist/esm/{index-eca81448.js → index-a20d9ee5.js} +502 -518
  250. package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
  251. package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
  252. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  253. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  254. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  255. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  256. package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
  257. package/dist/esm/index.js +43 -44
  258. package/dist/esm/inherits-77d5e4fc.js +101 -0
  259. package/dist/esm/{inherits-2cf82c38.js → inherits-cf8dde54.js} +5 -5
  260. package/dist/esm/{keys-526daf0a.js → keys-8eda7a5c.js} +2 -2
  261. package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
  262. package/dist/esm/main-e4a934b2.js +851 -0
  263. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  264. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  265. package/dist/esm/{slicedToArray-f0edf3d6.js → slicedToArray-641f241f.js} +4 -4
  266. package/dist/esm/{stringify-d1b9276a.js → stringify-4330ccdc.js} +1 -1
  267. package/dist/esm/timeDifferenceCalc.js +1 -1
  268. package/dist/esm/{toConsumableArray-81605212.js → toConsumableArray-43aa614d.js} +4 -4
  269. package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
  270. package/dist/esm/{typeof-ad2c7a21.js → typeof-6435ba1c.js} +4 -4
  271. package/dist/esm/urlFor.js +6 -1
  272. package/dist/esm/{ustream-api-cf90f7e6.js → ustream-api-9a50644d.js} +4 -4
  273. package/dist/esm/{web.dom.iterable-ace8ed30.js → web.dom.iterable-4439f05a.js} +2 -2
  274. package/package.json +111 -110
  275. package/dist/cjs/main-bc7d4bf8.js +0 -972
  276. package/dist/esm/main-ae902629.js +0 -961
@@ -3,11 +3,11 @@
3
3
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
4
 
5
5
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
6
- var _toObject = require('./_to-object-7a3ce269.js');
7
- var toConsumableArray = require('./toConsumableArray-4fdb72e2.js');
8
- var _extends = require('./extends-acc1318d.js');
9
- var inherits$1 = require('./inherits-bfdb22af.js');
10
- var _typeof$2 = require('./typeof-e83d4a26.js');
6
+ var _toObject = require('./_to-object-329a650b.js');
7
+ var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
8
+ var _extends$1 = require('./extends-0a918631.js');
9
+ var inherits$1 = require('./inherits-1f5a1c72.js');
10
+ var _typeof = require('./typeof-725500bc.js');
11
11
  var React = require('react');
12
12
  var React__default = _interopDefault(React);
13
13
  var index = require('./index-98e01cb9.js');
@@ -15,29 +15,29 @@ var PropTypes = require('prop-types');
15
15
  var PropTypes__default = _interopDefault(PropTypes);
16
16
  var Row = _interopDefault(require('react-bootstrap/Row'));
17
17
  var Col = _interopDefault(require('react-bootstrap/Col'));
18
- var moment = require('./moment-ca3bd9fb.js');
18
+ var moment = require('./moment-575fe24c.js');
19
19
  var Router = require('next/router');
20
20
  var Router__default = _interopDefault(Router);
21
21
  var urlFor = require('./urlFor.js');
22
22
  var index$2 = require('./index-96b3db50.js');
23
- var main = require('./main-bc7d4bf8.js');
23
+ var main = require('./main-02daeefe.js');
24
24
  var entities = require('./entities-310b46ee.js');
25
- var slicedToArray = require('./slicedToArray-41819145.js');
25
+ var slicedToArray = require('./slicedToArray-8f385299.js');
26
26
  var Segment = require('./Segment.js');
27
27
  var Beam = require('./Beam.js');
28
28
  var AdSlot = require('./AdSlot.js');
29
- var BlockContent = require('./BlockContent-bac780ac.js');
29
+ var Button = _interopDefault(require('react-bootstrap/Button'));
30
+ var BlockContent = require('./BlockContent-091a991f.js');
30
31
  var index$3 = require('./index-187c967e.js');
31
32
  var GroupDeck = require('./GroupDeck.js');
32
33
  var reactBootstrap = require('react-bootstrap');
33
- var index_esm = require('./index.esm-974f47d9.js');
34
+ var index_esm = require('./index.esm-90433435.js');
34
35
  var util = require('./util-f2c1b65b.js');
35
- var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-05029198.js');
36
+ var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
36
37
  var Head = _interopDefault(require('next/head'));
37
38
  var SocialShare = require('./SocialShare.js');
38
- var _objectToArray = require('./_object-to-array-c3aeb51d.js');
39
+ var _objectToArray = require('./_object-to-array-5762f850.js');
39
40
  var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
40
- var Button = _interopDefault(require('react-bootstrap/Button'));
41
41
  var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
42
42
 
43
43
  var onChangeSlide = function onChangeSlide(selectedIndex, router) {
@@ -97,18 +97,21 @@ var Slideshow = function Slideshow(_ref) {
97
97
  );
98
98
  };
99
99
 
100
- // do not edit .js files directly - edit src/index.jst
101
-
102
-
100
+ var isArray = Array.isArray;
101
+ var keyList = Object.keys;
102
+ var hasProp = Object.prototype.hasOwnProperty;
103
103
 
104
104
  var fastDeepEqual = function equal(a, b) {
105
105
  if (a === b) return true;
106
106
 
107
107
  if (a && b && typeof a == 'object' && typeof b == 'object') {
108
- if (a.constructor !== b.constructor) return false;
108
+ var arrA = isArray(a)
109
+ , arrB = isArray(b)
110
+ , i
111
+ , length
112
+ , key;
109
113
 
110
- var length, i, keys;
111
- if (Array.isArray(a)) {
114
+ if (arrA && arrB) {
112
115
  length = a.length;
113
116
  if (length != b.length) return false;
114
117
  for (i = length; i-- !== 0;)
@@ -116,29 +119,35 @@ var fastDeepEqual = function equal(a, b) {
116
119
  return true;
117
120
  }
118
121
 
122
+ if (arrA != arrB) return false;
119
123
 
124
+ var dateA = a instanceof Date
125
+ , dateB = b instanceof Date;
126
+ if (dateA != dateB) return false;
127
+ if (dateA && dateB) return a.getTime() == b.getTime();
120
128
 
121
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
122
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
123
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
129
+ var regexpA = a instanceof RegExp
130
+ , regexpB = b instanceof RegExp;
131
+ if (regexpA != regexpB) return false;
132
+ if (regexpA && regexpB) return a.toString() == b.toString();
124
133
 
125
- keys = Object.keys(a);
134
+ var keys = keyList(a);
126
135
  length = keys.length;
127
- if (length !== Object.keys(b).length) return false;
136
+
137
+ if (length !== keyList(b).length)
138
+ return false;
128
139
 
129
140
  for (i = length; i-- !== 0;)
130
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
141
+ if (!hasProp.call(b, keys[i])) return false;
131
142
 
132
143
  for (i = length; i-- !== 0;) {
133
- var key = keys[i];
134
-
144
+ key = keys[i];
135
145
  if (!equal(a[key], b[key])) return false;
136
146
  }
137
147
 
138
148
  return true;
139
149
  }
140
150
 
141
- // true if both NaN, false otherwise
142
151
  return a!==a && b!==b;
143
152
  };
144
153
 
@@ -1561,239 +1570,199 @@ module.exports = exports['default'];
1561
1570
 
1562
1571
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
1563
1572
 
1564
- 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); }
1565
-
1566
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1567
-
1568
- 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); } }
1569
-
1570
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1571
-
1572
- 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); }
1573
-
1574
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1575
-
1576
- 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); }; }
1577
-
1578
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1579
-
1580
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1573
+ 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; }; }();
1581
1574
 
1582
- 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; } }
1575
+ 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; };
1583
1576
 
1584
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1577
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1585
1578
 
1586
- 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; }
1579
+ 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; }
1587
1580
 
1588
- 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; }
1581
+ 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; }
1589
1582
 
1590
- 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; }
1591
- /**
1592
- * Check whether a `props` change should result in the video being updated.
1593
- *
1594
- * @param {Object} prevProps
1595
- * @param {Object} props
1583
+ /**
1584
+ * Check whether a `props` change should result in the video being updated.
1585
+ *
1586
+ * @param {Object} prevProps
1587
+ * @param {Object} props
1596
1588
  */
1597
-
1598
1589
  function shouldUpdateVideo(prevProps, props) {
1599
1590
  // A changing video should always trigger an update
1600
1591
  if (prevProps.videoId !== props.videoId) {
1601
1592
  return true;
1602
- } // Otherwise, a change in the start/end time playerVars also requires a player
1603
- // update.
1604
-
1593
+ }
1605
1594
 
1595
+ // Otherwise, a change in the start/end time playerVars also requires a player
1596
+ // update.
1606
1597
  var prevVars = prevProps.opts.playerVars || {};
1607
1598
  var vars = props.opts.playerVars || {};
1599
+
1608
1600
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1609
1601
  }
1610
- /**
1611
- * Neutralize API options that only require a video update, leaving only options
1612
- * that require a player reset. The results can then be compared to see if a
1613
- * player reset is necessary.
1614
- *
1615
- * @param {Object} opts
1616
- */
1617
-
1618
1602
 
1603
+ /**
1604
+ * Neutralise 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
+ */
1619
1610
  function filterResetOptions(opts) {
1620
- return _objectSpread(_objectSpread({}, opts), {}, {
1621
- playerVars: _objectSpread({
1611
+ return _extends({}, opts, {
1612
+ playerVars: _extends({}, opts.playerVars, {
1622
1613
  autoplay: 0,
1623
1614
  start: 0,
1624
1615
  end: 0
1625
- }, opts.playerVars)
1616
+ })
1626
1617
  });
1627
1618
  }
1628
- /**
1629
- * Check whether a `props` change should result in the player being reset.
1630
- * The player is reset when the `props.opts` change, except if the only change
1631
- * is in the `start` and `end` playerVars, because a video update can deal with
1632
- * those.
1633
- *
1634
- * @param {Object} prevProps
1635
- * @param {Object} props
1636
- */
1637
-
1638
1619
 
1620
+ /**
1621
+ * Check whether a `props` change should result in the player being reset.
1622
+ * The player is reset when the `props.opts` change, except if the only change
1623
+ * is in the `start` and `end` playerVars, because a video update can deal with
1624
+ * those.
1625
+ *
1626
+ * @param {Object} prevProps
1627
+ * @param {Object} props
1628
+ */
1639
1629
  function shouldResetPlayer(prevProps, props) {
1640
1630
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1641
1631
  }
1642
- /**
1643
- * Check whether a props change should result in an id or className update.
1644
- *
1645
- * @param {Object} prevProps
1646
- * @param {Object} props
1647
- */
1648
-
1649
1632
 
1633
+ /**
1634
+ * Check whether a props change should result in an id or className update.
1635
+ *
1636
+ * @param {Object} prevProps
1637
+ * @param {Object} props
1638
+ */
1650
1639
  function shouldUpdatePlayer(prevProps, props) {
1651
1640
  return prevProps.id !== props.id || prevProps.className !== props.className;
1652
1641
  }
1653
1642
 
1654
- var YouTube = /*#__PURE__*/function (_React$Component) {
1643
+ var YouTube = function (_React$Component) {
1655
1644
  _inherits(YouTube, _React$Component);
1656
1645
 
1657
- var _super = _createSuper(YouTube);
1658
-
1659
- /**
1660
- * Expose PlayerState constants for convenience. These constants can also be
1661
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1662
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1663
- */
1664
1646
  function YouTube(props) {
1665
- var _this;
1666
-
1667
1647
  _classCallCheck(this, YouTube);
1668
1648
 
1669
- _this = _super.call(this, props);
1649
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1670
1650
 
1671
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1651
+ _this.onPlayerReady = function (event) {
1672
1652
  return _this.props.onReady(event);
1673
- });
1653
+ };
1674
1654
 
1675
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1655
+ _this.onPlayerError = function (event) {
1676
1656
  return _this.props.onError(event);
1677
- });
1657
+ };
1678
1658
 
1679
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1659
+ _this.onPlayerStateChange = function (event) {
1680
1660
  _this.props.onStateChange(event);
1681
-
1682
1661
  switch (event.data) {
1662
+
1683
1663
  case YouTube.PlayerState.ENDED:
1684
1664
  _this.props.onEnd(event);
1685
-
1686
1665
  break;
1687
1666
 
1688
1667
  case YouTube.PlayerState.PLAYING:
1689
1668
  _this.props.onPlay(event);
1690
-
1691
1669
  break;
1692
1670
 
1693
1671
  case YouTube.PlayerState.PAUSED:
1694
1672
  _this.props.onPause(event);
1695
-
1696
1673
  break;
1697
1674
  }
1698
- });
1675
+ };
1699
1676
 
1700
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1677
+ _this.onPlayerPlaybackRateChange = function (event) {
1701
1678
  return _this.props.onPlaybackRateChange(event);
1702
- });
1679
+ };
1703
1680
 
1704
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1681
+ _this.onPlayerPlaybackQualityChange = function (event) {
1705
1682
  return _this.props.onPlaybackQualityChange(event);
1706
- });
1683
+ };
1707
1684
 
1708
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1685
+ _this.createPlayer = function () {
1709
1686
  // do not attempt to create a player server-side, it won't work
1710
- if (typeof document === 'undefined') return; // create player
1711
-
1712
- var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
1687
+ if (typeof document === 'undefined') return;
1688
+ // create player
1689
+ var playerOpts = _extends({}, _this.props.opts, {
1713
1690
  // preload the `videoId` video if one is already given
1714
1691
  videoId: _this.props.videoId
1715
1692
  });
1716
-
1717
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1718
-
1693
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1694
+ // attach event handlers
1719
1695
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1720
-
1721
1696
  _this.internalPlayer.on('error', _this.onPlayerError);
1722
-
1723
1697
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1724
-
1725
1698
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1726
-
1727
1699
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1728
- });
1700
+ };
1729
1701
 
1730
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1702
+ _this.resetPlayer = function () {
1731
1703
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1732
- });
1704
+ };
1733
1705
 
1734
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1706
+ _this.updatePlayer = function () {
1735
1707
  _this.internalPlayer.getIframe().then(function (iframe) {
1736
1708
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1737
1709
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1738
1710
  });
1739
- });
1740
-
1741
- _defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
1742
- return _this.internalPlayer;
1743
- });
1711
+ };
1744
1712
 
1745
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1713
+ _this.updateVideo = function () {
1746
1714
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1747
1715
  _this.internalPlayer.stopVideo();
1748
-
1749
1716
  return;
1750
- } // set queueing options
1751
-
1717
+ }
1752
1718
 
1719
+ // set queueing options
1753
1720
  var autoplay = false;
1754
1721
  var opts = {
1755
1722
  videoId: _this.props.videoId
1756
1723
  };
1757
-
1758
1724
  if ('playerVars' in _this.props.opts) {
1759
1725
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1760
-
1761
1726
  if ('start' in _this.props.opts.playerVars) {
1762
1727
  opts.startSeconds = _this.props.opts.playerVars.start;
1763
1728
  }
1764
-
1765
1729
  if ('end' in _this.props.opts.playerVars) {
1766
1730
  opts.endSeconds = _this.props.opts.playerVars.end;
1767
1731
  }
1768
- } // if autoplay is enabled loadVideoById
1769
-
1732
+ }
1770
1733
 
1734
+ // if autoplay is enabled loadVideoById
1771
1735
  if (autoplay) {
1772
1736
  _this.internalPlayer.loadVideoById(opts);
1773
-
1774
1737
  return;
1775
- } // default behaviour just cues the video
1776
-
1777
-
1738
+ }
1739
+ // default behaviour just cues the video
1778
1740
  _this.internalPlayer.cueVideoById(opts);
1779
- });
1741
+ };
1780
1742
 
1781
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1743
+ _this.refContainer = function (container) {
1782
1744
  _this.container = container;
1783
- });
1745
+ };
1784
1746
 
1785
1747
  _this.container = null;
1786
1748
  _this.internalPlayer = null;
1787
1749
  return _this;
1788
1750
  }
1789
1751
 
1752
+ /**
1753
+ * Expose PlayerState constants for convenience. These constants can also be
1754
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1755
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1756
+ */
1757
+
1758
+
1790
1759
  _createClass(YouTube, [{
1791
- key: "componentDidMount",
1760
+ key: 'componentDidMount',
1792
1761
  value: function componentDidMount() {
1793
1762
  this.createPlayer();
1794
1763
  }
1795
1764
  }, {
1796
- key: "componentDidUpdate",
1765
+ key: 'componentDidUpdate',
1797
1766
  value: function componentDidUpdate(prevProps) {
1798
1767
  if (shouldUpdatePlayer(prevProps, this.props)) {
1799
1768
  this.updatePlayer();
@@ -1808,58 +1777,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1808
1777
  }
1809
1778
  }
1810
1779
  }, {
1811
- key: "componentWillUnmount",
1780
+ key: 'componentWillUnmount',
1812
1781
  value: function componentWillUnmount() {
1813
- /**
1814
- * Note: The `youtube-player` package that is used promisifies all YouTube
1815
- * Player API calls, which introduces a delay of a tick before it actually
1816
- * gets destroyed. Since React attempts to remove the element instantly
1817
- * this method isn't quick enough to reset the container element.
1782
+ /**
1783
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1784
+ * Player API calls, which introduces a delay of a tick before it actually
1785
+ * gets destroyed. Since React attempts to remove the element instantly
1786
+ * this method isn't quick enough to reset the container element.
1818
1787
  */
1819
1788
  this.internalPlayer.destroy();
1820
1789
  }
1821
- /**
1822
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1823
- *
1824
- * @param {Object} event
1825
- * @param {Object} target - player object
1790
+
1791
+ /**
1792
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1793
+ *
1794
+ * @param {Object} event
1795
+ * @param {Object} target - player object
1796
+ */
1797
+
1798
+
1799
+ /**
1800
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1801
+ *
1802
+ * @param {Object} event
1803
+ * @param {Integer} data - error type
1804
+ * @param {Object} target - player object
1805
+ */
1806
+
1807
+
1808
+ /**
1809
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1810
+ *
1811
+ * @param {Object} event
1812
+ * @param {Integer} data - status change type
1813
+ * @param {Object} target - actual YT player
1814
+ */
1815
+
1816
+
1817
+ /**
1818
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1819
+ *
1820
+ * @param {Object} event
1821
+ * @param {Float} data - playback rate
1822
+ * @param {Object} target - actual YT player
1823
+ */
1824
+
1825
+
1826
+ /**
1827
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1828
+ *
1829
+ * @param {Object} event
1830
+ * @param {String} data - playback quality
1831
+ * @param {Object} target - actual YT player
1832
+ */
1833
+
1834
+
1835
+ /**
1836
+ * Initialize the Youtube Player API on the container and attach event handlers
1837
+ */
1838
+
1839
+
1840
+ /**
1841
+ * Shorthand for destroying and then re-creating the Youtube Player
1842
+ */
1843
+
1844
+
1845
+ /**
1846
+ * Method to update the id and class of the Youtube Player iframe.
1847
+ * React should update this automatically but since the Youtube Player API
1848
+ * replaced the DIV that is mounted by React we need to do this manually.
1849
+ */
1850
+
1851
+
1852
+ /**
1853
+ * Call Youtube Player API methods to update the currently playing video.
1854
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1855
+ * Youtube Player API methods to update the video.
1826
1856
  */
1827
1857
 
1828
1858
  }, {
1829
- key: "render",
1859
+ key: 'render',
1830
1860
  value: function render() {
1831
- return /*#__PURE__*/React__default.createElement("div", {
1832
- className: this.props.containerClassName
1833
- }, /*#__PURE__*/React__default.createElement("div", {
1834
- id: this.props.id,
1835
- className: this.props.className,
1836
- ref: this.refContainer
1837
- }));
1861
+ return React__default.createElement(
1862
+ 'div',
1863
+ { className: this.props.containerClassName },
1864
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1865
+ );
1838
1866
  }
1839
1867
  }]);
1840
1868
 
1841
1869
  return YouTube;
1842
1870
  }(React__default.Component);
1843
1871
 
1844
- _defineProperty(YouTube, "PlayerState", {
1845
- UNSTARTED: -1,
1846
- ENDED: 0,
1847
- PLAYING: 1,
1848
- PAUSED: 2,
1849
- BUFFERING: 3,
1850
- CUED: 5
1851
- });
1852
-
1853
1872
  YouTube.propTypes = {
1854
1873
  videoId: PropTypes__default.string,
1874
+
1855
1875
  // custom ID for player element
1856
1876
  id: PropTypes__default.string,
1877
+
1857
1878
  // custom class name for player element
1858
1879
  className: PropTypes__default.string,
1859
1880
  // custom class name for player container element
1860
1881
  containerClassName: PropTypes__default.string,
1882
+
1861
1883
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1862
1884
  opts: PropTypes__default.objectOf(PropTypes__default.any),
1885
+
1863
1886
  // event subscriptions
1864
1887
  onReady: PropTypes__default.func,
1865
1888
  onError: PropTypes__default.func,
@@ -1871,7 +1894,6 @@ YouTube.propTypes = {
1871
1894
  onPlaybackQualityChange: PropTypes__default.func
1872
1895
  };
1873
1896
  YouTube.defaultProps = {
1874
- videoId: null,
1875
1897
  id: null,
1876
1898
  className: null,
1877
1899
  opts: {},
@@ -1885,6 +1907,14 @@ YouTube.defaultProps = {
1885
1907
  onPlaybackRateChange: function onPlaybackRateChange() {},
1886
1908
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1887
1909
  };
1910
+ YouTube.PlayerState = {
1911
+ UNSTARTED: -1,
1912
+ ENDED: 0,
1913
+ PLAYING: 1,
1914
+ PAUSED: 2,
1915
+ BUFFERING: 3,
1916
+ CUED: 5
1917
+ };
1888
1918
 
1889
1919
  var YouTubePlayer = function YouTubePlayer(_ref) {
1890
1920
  var url = _ref.url,
@@ -1923,8 +1953,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1923
1953
  var duration = player.getDuration();
1924
1954
  var queue = Math.floor(duration / 10);
1925
1955
  var segment = Math.floor(current / queue);
1926
- Beam.report_beam_video('Ready', main.main_18, duration, current, segment);
1927
- Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
1956
+ Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
1957
+ Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
1928
1958
  };
1929
1959
 
1930
1960
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1934,8 +1964,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1934
1964
  var segment = Math.floor(current / queue);
1935
1965
 
1936
1966
  if (!queueProgress.includes(segment)) {
1937
- Beam.report_beam_video('Segment', main.main_18, duration, current, segment);
1938
- Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
1967
+ Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
1968
+ Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
1939
1969
  queueProgress.push(segment);
1940
1970
  }
1941
1971
  };
@@ -1948,8 +1978,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1948
1978
  var queue = Math.floor(duration / 10);
1949
1979
  var segment = Math.floor(current / queue);
1950
1980
 
1951
- Beam.report_beam_video('Play', main.main_18, duration, current, segment);
1952
- Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
1981
+ Beam.report_beam_video('Play', main.main_16, duration, current, segment);
1982
+ Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
1953
1983
 
1954
1984
  if (!playReported) {
1955
1985
  setPlayReported(true);
@@ -1968,8 +1998,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1968
1998
  var queue = Math.floor(duration / 10);
1969
1999
  var segment = Math.floor(current / queue);
1970
2000
 
1971
- Beam.report_beam_video('End', main.main_18, duration, current, segment);
1972
- Segment.report_video_event('Video End', main.main_18, duration, current, segment);
2001
+ Beam.report_beam_video('End', main.main_16, duration, current, segment);
2002
+ Segment.report_video_event('Video End', main.main_16, duration, current, segment);
1973
2003
  setEndReported(true);
1974
2004
  clearInterval(intervalID);
1975
2005
  }
@@ -1982,8 +2012,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1982
2012
  var queue = Math.floor(duration / 10);
1983
2013
  var segment = Math.floor(current / queue);
1984
2014
 
1985
- Beam.report_beam_video('Pause', main.main_18, duration, current, segment);
1986
- Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
2015
+ Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
2016
+ Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
1987
2017
  };
1988
2018
 
1989
2019
  return React__default.createElement(
@@ -2145,7 +2175,7 @@ var Media = function Media(_ref) {
2145
2175
  React__default.createElement(
2146
2176
  index$2.LazyLoad,
2147
2177
  { once: true },
2148
- React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2178
+ React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2149
2179
  ),
2150
2180
  caption && React__default.createElement(
2151
2181
  reactBootstrap.Figure.Caption,
@@ -2157,7 +2187,7 @@ var Media = function Media(_ref) {
2157
2187
  } else if (caption && caption !== '') {
2158
2188
  return React__default.createElement(
2159
2189
  'a',
2160
- _extends._extends({}, uploadDoc.downloadMedia ? {
2190
+ _extends$1._extends({}, uploadDoc.downloadMedia ? {
2161
2191
  href: uploadDoc.asset.url + '?dl='
2162
2192
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2163
2193
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2212,8 +2242,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2212
2242
  var duration = player.duration;
2213
2243
  var queue = Math.floor(duration / 10);
2214
2244
  var segment = Math.floor(current / queue);
2215
- Beam.report_beam_video('Ready', main.main_18, duration, current, segment, 'MP4');
2216
- Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'MP4');
2245
+ Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'MP4');
2246
+ Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
2217
2247
  };
2218
2248
 
2219
2249
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -2222,8 +2252,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2222
2252
  var queue = Math.floor(duration / 10);
2223
2253
  var segment = Math.floor(current / queue);
2224
2254
  if (!queueProgress.includes(segment)) {
2225
- Beam.report_beam_video('Segment', main.main_18, duration, current, segment, 'MP4');
2226
- Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'MP4');
2255
+ Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'MP4');
2256
+ Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
2227
2257
  queueProgress.push(segment);
2228
2258
  }
2229
2259
  };
@@ -2235,8 +2265,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2235
2265
  var duration = player.duration;
2236
2266
  var queue = Math.floor(duration / 10);
2237
2267
  var segment = Math.floor(current / queue);
2238
- Beam.report_beam_video('Play', main.main_18, duration, current, segment, 'MP4');
2239
- Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'MP4');
2268
+ Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'MP4');
2269
+ Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
2240
2270
 
2241
2271
  if (!playReported) {
2242
2272
  event.persist();
@@ -2256,8 +2286,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2256
2286
  var queue = Math.floor(duration / 10);
2257
2287
  var segment = Math.floor(current / queue);
2258
2288
 
2259
- Beam.report_beam_video('End', main.main_18, duration, current, segment, 'MP4');
2260
- Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'MP4');
2289
+ Beam.report_beam_video('End', main.main_16, duration, current, segment, 'MP4');
2290
+ Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
2261
2291
  setEndReported(true);
2262
2292
  clearInterval(intervalID);
2263
2293
  }
@@ -2269,8 +2299,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2269
2299
  var duration = player.duration - current;
2270
2300
  var queue = Math.floor(duration / 10);
2271
2301
  var segment = Math.floor(current / queue);
2272
- Beam.report_beam_video('Pause', main.main_18, duration, current, segment, 'MP4');
2273
- Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
2302
+ Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'MP4');
2303
+ Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
2274
2304
  };
2275
2305
 
2276
2306
  return React__default.createElement(
@@ -2331,7 +2361,7 @@ var Video = function Video(_ref) {
2331
2361
  var onVideoSuccess = function onVideoSuccess(success) {
2332
2362
  //console.log('success:', success.ref)
2333
2363
  var player = success.ref;
2334
- if (_typeof$2._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2364
+ if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2335
2365
  player.ima3.settings.debug = true;
2336
2366
  if (targeting.content_placement && targeting.document_url) {
2337
2367
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2359,8 +2389,8 @@ var Video = function Video(_ref) {
2359
2389
  player.pause();
2360
2390
  }
2361
2391
 
2362
- Beam.report_beam_video('Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2363
- Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2392
+ Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2393
+ Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2364
2394
  });
2365
2395
 
2366
2396
  // play
@@ -2369,8 +2399,8 @@ var Video = function Video(_ref) {
2369
2399
  var current = player.currentTime();
2370
2400
  var queue = Math.floor(duration / 10);
2371
2401
  var segment = Math.floor(current / queue);
2372
- Beam.report_beam_video('Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2373
- Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2402
+ Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2403
+ Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2374
2404
  });
2375
2405
 
2376
2406
  // pause
@@ -2379,8 +2409,8 @@ var Video = function Video(_ref) {
2379
2409
  var current = player.currentTime();
2380
2410
  var queue = Math.floor(duration / 10);
2381
2411
  var segment = Math.floor(current / queue);
2382
- Beam.report_beam_video('Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2383
- Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2412
+ Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2413
+ Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2384
2414
  });
2385
2415
 
2386
2416
  // end
@@ -2389,8 +2419,8 @@ var Video = function Video(_ref) {
2389
2419
  var current = player.currentTime();
2390
2420
  var queue = Math.floor(duration / 10);
2391
2421
  var segment = Math.floor(current / queue);
2392
- Beam.report_beam_video('End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2393
- Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2422
+ Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2423
+ Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2394
2424
  autoplayNextVideo(evt);
2395
2425
  });
2396
2426
 
@@ -2401,8 +2431,8 @@ var Video = function Video(_ref) {
2401
2431
  var queue = Math.floor(duration / 10);
2402
2432
  var segment = Math.floor(current / queue);
2403
2433
  if (!queueProgress.includes(segment)) {
2404
- Beam.report_beam_video('Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2405
- Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2434
+ Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2435
+ Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2406
2436
  queueProgress.push(segment);
2407
2437
  }
2408
2438
  });
@@ -2413,8 +2443,8 @@ var Video = function Video(_ref) {
2413
2443
  var id = player.ads.ad.id;
2414
2444
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2415
2445
 
2416
- Beam.report_beam_ad('AD Started', main.main_18, '', '', '', '', '', adType, duration, id);
2417
- Segment.report_ad_event('Video Ad Started', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2446
+ Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
2447
+ Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2418
2448
  });
2419
2449
 
2420
2450
  // ad ended
@@ -2422,8 +2452,8 @@ var Video = function Video(_ref) {
2422
2452
  var duration = player.ads.ad.duration;
2423
2453
  var id = player.ads.ad.id;
2424
2454
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2425
- Beam.report_beam_ad('AD Ended', main.main_18, '', '', '', '', '', adType, duration, id);
2426
- Segment.report_ad_event('Video Ad Ended', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2455
+ Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
2456
+ Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2427
2457
  });
2428
2458
  };
2429
2459
 
@@ -2853,17 +2883,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2853
2883
 
2854
2884
  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; }
2855
2885
 
2856
- 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; } } }; }
2857
-
2858
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2859
-
2860
- 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."); }
2886
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2861
2887
 
2862
- 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); }
2888
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2863
2889
 
2864
- 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; }
2865
-
2866
- 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; }
2890
+ 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; }
2867
2891
 
2868
2892
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2869
2893
 
@@ -2993,12 +3017,12 @@ function getSDK(url, sdkGlobal) {
2993
3017
 
2994
3018
  function getConfig(props$1, defaultProps, showWarning) {
2995
3019
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
2996
-
2997
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
2998
- _step;
3020
+ var _iteratorNormalCompletion = true;
3021
+ var _didIteratorError = false;
3022
+ var _iteratorError = undefined;
2999
3023
 
3000
3024
  try {
3001
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3025
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3002
3026
  var p = _step.value;
3003
3027
 
3004
3028
  if (props$1[p]) {
@@ -3013,9 +3037,18 @@ function getConfig(props$1, defaultProps, showWarning) {
3013
3037
  }
3014
3038
  }
3015
3039
  } catch (err) {
3016
- _iterator.e(err);
3040
+ _didIteratorError = true;
3041
+ _iteratorError = err;
3017
3042
  } finally {
3018
- _iterator.f();
3043
+ try {
3044
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
3045
+ _iterator["return"]();
3046
+ }
3047
+ } finally {
3048
+ if (_didIteratorError) {
3049
+ throw _iteratorError;
3050
+ }
3051
+ }
3019
3052
  }
3020
3053
 
3021
3054
  return config;
@@ -3162,16 +3195,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3162
3195
 
3163
3196
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3164
3197
 
3165
- 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); }; }
3166
-
3167
3198
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3168
3199
 
3169
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3170
-
3171
- 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; } }
3172
-
3173
3200
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3174
3201
 
3202
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3203
+
3175
3204
  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); }
3176
3205
 
3177
3206
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3180,12 +3209,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3180
3209
 
3181
3210
  var SEEK_ON_PLAY_EXPIRY = 5000;
3182
3211
 
3183
- var Player = /*#__PURE__*/function (_Component) {
3212
+ var Player =
3213
+ /*#__PURE__*/
3214
+ function (_Component) {
3184
3215
  _inherits(Player, _Component);
3185
3216
 
3186
- var _super = _createSuper(Player);
3187
-
3188
3217
  function Player() {
3218
+ var _getPrototypeOf2;
3219
+
3189
3220
  var _this;
3190
3221
 
3191
3222
  _classCallCheck(this, Player);
@@ -3194,7 +3225,7 @@ var Player = /*#__PURE__*/function (_Component) {
3194
3225
  _args[_key] = arguments[_key];
3195
3226
  }
3196
3227
 
3197
- _this = _super.call.apply(_super, [this].concat(_args));
3228
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3198
3229
 
3199
3230
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3200
3231
 
@@ -3519,7 +3550,7 @@ var Player = /*#__PURE__*/function (_Component) {
3519
3550
  return null;
3520
3551
  }
3521
3552
 
3522
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3553
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3523
3554
  ref: this.ref,
3524
3555
  onReady: this.handleReady,
3525
3556
  onPlay: this.handlePlay,
@@ -3580,16 +3611,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3580
3611
 
3581
3612
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3582
3613
 
3583
- 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); }; }
3584
-
3585
3614
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3586
3615
 
3587
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3588
-
3589
- 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; } }
3590
-
3591
3616
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3592
3617
 
3618
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3619
+
3593
3620
  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); }
3594
3621
 
3595
3622
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3601,12 +3628,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3601
3628
  function createSinglePlayer(activePlayer) {
3602
3629
  var _class, _temp;
3603
3630
 
3604
- return _temp = _class = /*#__PURE__*/function (_Component) {
3631
+ return _temp = _class =
3632
+ /*#__PURE__*/
3633
+ function (_Component) {
3605
3634
  _inherits(SinglePlayer, _Component);
3606
3635
 
3607
- var _super = _createSuper(SinglePlayer);
3608
-
3609
3636
  function SinglePlayer() {
3637
+ var _getPrototypeOf2;
3638
+
3610
3639
  var _this;
3611
3640
 
3612
3641
  _classCallCheck(this, SinglePlayer);
@@ -3615,7 +3644,7 @@ function createSinglePlayer(activePlayer) {
3615
3644
  args[_key] = arguments[_key];
3616
3645
  }
3617
3646
 
3618
- _this = _super.call.apply(_super, [this].concat(args));
3647
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3619
3648
 
3620
3649
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3621
3650
 
@@ -3683,12 +3712,12 @@ function createSinglePlayer(activePlayer) {
3683
3712
  height = _this$props.height,
3684
3713
  Wrapper = _this$props.wrapper;
3685
3714
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3686
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3715
+ return _react["default"].createElement(Wrapper, _extends({
3687
3716
  style: _objectSpread({}, style, {
3688
3717
  width: width,
3689
3718
  height: height
3690
3719
  })
3691
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3720
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3692
3721
  ref: this.ref,
3693
3722
  activePlayer: activePlayer,
3694
3723
  config: this.config
@@ -3734,31 +3763,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3734
3763
 
3735
3764
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3736
3765
 
3737
- 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); }; }
3738
-
3739
3766
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3740
3767
 
3741
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3742
-
3743
- 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; } }
3744
-
3745
3768
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3746
3769
 
3770
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3771
+
3747
3772
  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); }
3748
3773
 
3749
3774
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3750
3775
 
3751
3776
  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; }
3752
3777
 
3753
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3754
-
3755
- 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."); }
3756
-
3757
- 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); }
3778
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3758
3779
 
3759
- 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; }
3780
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3760
3781
 
3761
- 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; }
3782
+ 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; }
3762
3783
 
3763
3784
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3764
3785
 
@@ -3783,12 +3804,14 @@ function parsePlaylist(url) {
3783
3804
  return {};
3784
3805
  }
3785
3806
 
3786
- var YouTube = /*#__PURE__*/function (_Component) {
3807
+ var YouTube =
3808
+ /*#__PURE__*/
3809
+ function (_Component) {
3787
3810
  _inherits(YouTube, _Component);
3788
3811
 
3789
- var _super = _createSuper(YouTube);
3790
-
3791
3812
  function YouTube() {
3813
+ var _getPrototypeOf2;
3814
+
3792
3815
  var _this;
3793
3816
 
3794
3817
  _classCallCheck(this, YouTube);
@@ -3797,7 +3820,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3797
3820
  args[_key] = arguments[_key];
3798
3821
  }
3799
3822
 
3800
- _this = _super.call.apply(_super, [this].concat(args));
3823
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3801
3824
 
3802
3825
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3803
3826
 
@@ -3985,9 +4008,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
3985
4008
  height: '100%',
3986
4009
  display: display
3987
4010
  };
3988
- return /*#__PURE__*/_react["default"].createElement("div", {
4011
+ return _react["default"].createElement("div", {
3989
4012
  style: style
3990
- }, /*#__PURE__*/_react["default"].createElement("div", {
4013
+ }, _react["default"].createElement("div", {
3991
4014
  ref: this.ref
3992
4015
  }));
3993
4016
  }
@@ -4043,16 +4066,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4043
4066
 
4044
4067
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4045
4068
 
4046
- 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); }; }
4047
-
4048
4069
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4049
4070
 
4050
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4051
-
4052
- 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; } }
4053
-
4054
4071
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4055
4072
 
4073
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4074
+
4056
4075
  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); }
4057
4076
 
4058
4077
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4061,14 +4080,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4061
4080
 
4062
4081
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
4063
4082
  var SDK_GLOBAL = 'SC';
4064
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
4083
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
4065
4084
 
4066
- var SoundCloud = /*#__PURE__*/function (_Component) {
4085
+ var SoundCloud =
4086
+ /*#__PURE__*/
4087
+ function (_Component) {
4067
4088
  _inherits(SoundCloud, _Component);
4068
4089
 
4069
- var _super = _createSuper(SoundCloud);
4070
-
4071
4090
  function SoundCloud() {
4091
+ var _getPrototypeOf2;
4092
+
4072
4093
  var _this;
4073
4094
 
4074
4095
  _classCallCheck(this, SoundCloud);
@@ -4077,7 +4098,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4077
4098
  args[_key] = arguments[_key];
4078
4099
  }
4079
4100
 
4080
- _this = _super.call.apply(_super, [this].concat(args));
4101
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
4081
4102
 
4082
4103
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4083
4104
 
@@ -4198,7 +4219,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4198
4219
  height: '100%',
4199
4220
  display: display
4200
4221
  };
4201
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4222
+ return _react["default"].createElement("iframe", {
4202
4223
  ref: this.ref,
4203
4224
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4204
4225
  style: style,
@@ -4260,16 +4281,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4260
4281
 
4261
4282
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4262
4283
 
4263
- 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); }; }
4264
-
4265
4284
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4266
4285
 
4267
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4268
-
4269
- 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; } }
4270
-
4271
4286
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4272
4287
 
4288
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4289
+
4273
4290
  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); }
4274
4291
 
4275
4292
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4281,12 +4298,14 @@ var SDK_GLOBAL = 'Vimeo';
4281
4298
  var MATCH_URL = /vimeo\.com\/.+/;
4282
4299
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4283
4300
 
4284
- var Vimeo = /*#__PURE__*/function (_Component) {
4301
+ var Vimeo =
4302
+ /*#__PURE__*/
4303
+ function (_Component) {
4285
4304
  _inherits(Vimeo, _Component);
4286
4305
 
4287
- var _super = _createSuper(Vimeo);
4288
-
4289
4306
  function Vimeo() {
4307
+ var _getPrototypeOf2;
4308
+
4290
4309
  var _this;
4291
4310
 
4292
4311
  _classCallCheck(this, Vimeo);
@@ -4295,7 +4314,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4295
4314
  args[_key] = arguments[_key];
4296
4315
  }
4297
4316
 
4298
- _this = _super.call.apply(_super, [this].concat(args));
4317
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4299
4318
 
4300
4319
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4301
4320
 
@@ -4452,7 +4471,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4452
4471
  overflow: 'hidden',
4453
4472
  display: display
4454
4473
  };
4455
- return /*#__PURE__*/_react["default"].createElement("div", {
4474
+ return _react["default"].createElement("div", {
4456
4475
  key: this.props.url,
4457
4476
  ref: this.ref,
4458
4477
  style: style
@@ -4512,16 +4531,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4512
4531
 
4513
4532
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4514
4533
 
4515
- 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); }; }
4516
-
4517
4534
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4518
4535
 
4519
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4520
-
4521
- 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; } }
4522
-
4523
4536
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4524
4537
 
4538
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4539
+
4525
4540
  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); }
4526
4541
 
4527
4542
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4534,12 +4549,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4534
4549
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4535
4550
  var PLAYER_ID_PREFIX = 'facebook-player-';
4536
4551
 
4537
- var Facebook = /*#__PURE__*/function (_Component) {
4552
+ var Facebook =
4553
+ /*#__PURE__*/
4554
+ function (_Component) {
4538
4555
  _inherits(Facebook, _Component);
4539
4556
 
4540
- var _super = _createSuper(Facebook);
4541
-
4542
4557
  function Facebook() {
4558
+ var _getPrototypeOf2;
4559
+
4543
4560
  var _this;
4544
4561
 
4545
4562
  _classCallCheck(this, Facebook);
@@ -4548,7 +4565,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4548
4565
  args[_key] = arguments[_key];
4549
4566
  }
4550
4567
 
4551
- _this = _super.call.apply(_super, [this].concat(args));
4568
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4552
4569
 
4553
4570
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4554
4571
 
@@ -4664,7 +4681,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4664
4681
  width: '100%',
4665
4682
  height: '100%'
4666
4683
  };
4667
- return /*#__PURE__*/_react["default"].createElement("div", {
4684
+ return _react["default"].createElement("div", {
4668
4685
  style: style,
4669
4686
  id: this.playerID,
4670
4687
  className: "fb-video",
@@ -4724,16 +4741,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4724
4741
 
4725
4742
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4726
4743
 
4727
- 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); }; }
4728
-
4729
4744
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4730
4745
 
4731
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4732
-
4733
- 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; } }
4734
-
4735
4746
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4736
4747
 
4748
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4749
+
4737
4750
  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); }
4738
4751
 
4739
4752
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4744,12 +4757,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4744
4757
  var SDK_GLOBAL = 'playerjs';
4745
4758
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4746
4759
 
4747
- var Streamable = /*#__PURE__*/function (_Component) {
4760
+ var Streamable =
4761
+ /*#__PURE__*/
4762
+ function (_Component) {
4748
4763
  _inherits(Streamable, _Component);
4749
4764
 
4750
- var _super = _createSuper(Streamable);
4751
-
4752
4765
  function Streamable() {
4766
+ var _getPrototypeOf2;
4767
+
4753
4768
  var _this;
4754
4769
 
4755
4770
  _classCallCheck(this, Streamable);
@@ -4758,7 +4773,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4758
4773
  args[_key] = arguments[_key];
4759
4774
  }
4760
4775
 
4761
- _this = _super.call.apply(_super, [this].concat(args));
4776
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4762
4777
 
4763
4778
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4764
4779
 
@@ -4878,7 +4893,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4878
4893
  width: '100%',
4879
4894
  height: '100%'
4880
4895
  };
4881
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4896
+ return _react["default"].createElement("iframe", {
4882
4897
  ref: this.ref,
4883
4898
  src: "https://streamable.com/o/".concat(id),
4884
4899
  frameBorder: "0",
@@ -4939,16 +4954,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4939
4954
 
4940
4955
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4941
4956
 
4942
- 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); }; }
4943
-
4944
4957
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4945
4958
 
4946
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4947
-
4948
- 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; } }
4949
-
4950
4959
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4951
4960
 
4961
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4962
+
4952
4963
  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); }
4953
4964
 
4954
4965
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4959,48 +4970,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4959
4970
  var SDK_GLOBAL = 'Wistia';
4960
4971
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4961
4972
 
4962
- var Wistia = /*#__PURE__*/function (_Component) {
4973
+ var Wistia =
4974
+ /*#__PURE__*/
4975
+ function (_Component) {
4963
4976
  _inherits(Wistia, _Component);
4964
4977
 
4965
- var _super = _createSuper(Wistia);
4966
-
4967
4978
  function Wistia() {
4979
+ var _getPrototypeOf2;
4980
+
4968
4981
  var _this;
4969
4982
 
4970
4983
  _classCallCheck(this, Wistia);
4971
4984
 
4972
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
4973
- _args[_key] = arguments[_key];
4985
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4986
+ args[_key] = arguments[_key];
4974
4987
  }
4975
4988
 
4976
- _this = _super.call.apply(_super, [this].concat(_args));
4989
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
4977
4990
 
4978
4991
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4979
4992
 
4980
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
4981
- var _this$props;
4982
-
4983
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
4984
- });
4985
-
4986
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
4987
- var _this$props2;
4988
-
4989
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
4990
- });
4991
-
4992
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
4993
- var _this$props3;
4994
-
4995
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
4996
- });
4997
-
4998
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
4999
- var _this$props4;
5000
-
5001
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
5002
- });
5003
-
5004
4993
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
5005
4994
  _this.callPlayer('mute');
5006
4995
  });
@@ -5022,13 +5011,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
5022
5011
  value: function load(url) {
5023
5012
  var _this2 = this;
5024
5013
 
5025
- var _this$props5 = this.props,
5026
- playing = _this$props5.playing,
5027
- muted = _this$props5.muted,
5028
- controls = _this$props5.controls,
5029
- _onReady = _this$props5.onReady,
5030
- config = _this$props5.config,
5031
- onError = _this$props5.onError;
5014
+ var _this$props = this.props,
5015
+ playing = _this$props.playing,
5016
+ muted = _this$props.muted,
5017
+ controls = _this$props.controls,
5018
+ _onReady = _this$props.onReady,
5019
+ onPlay = _this$props.onPlay,
5020
+ onPause = _this$props.onPause,
5021
+ onSeek = _this$props.onSeek,
5022
+ onEnded = _this$props.onEnded,
5023
+ config = _this$props.config,
5024
+ onError = _this$props.onError;
5032
5025
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
5033
5026
  window._wq = window._wq || [];
5034
5027
 
@@ -5045,28 +5038,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5045
5038
 
5046
5039
  _this2.unbind();
5047
5040
 
5048
- _this2.player.bind('play', _this2.onPlay);
5041
+ _this2.player.bind('play', onPlay);
5049
5042
 
5050
- _this2.player.bind('pause', _this2.onPause);
5043
+ _this2.player.bind('pause', onPause);
5051
5044
 
5052
- _this2.player.bind('seek', _this2.onSeek);
5045
+ _this2.player.bind('seek', onSeek);
5053
5046
 
5054
- _this2.player.bind('end', _this2.onEnded);
5047
+ _this2.player.bind('end', onEnded);
5055
5048
 
5056
5049
  _onReady();
5057
5050
  }
5058
5051
  });
5059
5052
  }, onError);
5060
5053
  }
5061
- }, {
5062
- key: "unbind",
5063
- value: function unbind() {
5064
- this.player.unbind('play', this.onPlay);
5065
- this.player.unbind('pause', this.onPause);
5066
- this.player.unbind('seek', this.onSeek);
5067
- this.player.unbind('end', this.onEnded);
5068
- } // Proxy methods to prevent listener leaks
5069
-
5070
5054
  }, {
5071
5055
  key: "play",
5072
5056
  value: function play() {
@@ -5077,6 +5061,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5077
5061
  value: function pause() {
5078
5062
  this.callPlayer('pause');
5079
5063
  }
5064
+ }, {
5065
+ key: "unbind",
5066
+ value: function unbind() {
5067
+ var _this$props2 = this.props,
5068
+ onPlay = _this$props2.onPlay,
5069
+ onPause = _this$props2.onPause,
5070
+ onSeek = _this$props2.onSeek,
5071
+ onEnded = _this$props2.onEnded;
5072
+ this.player.unbind('play', onPlay);
5073
+ this.player.unbind('pause', onPause);
5074
+ this.player.unbind('seek', onSeek);
5075
+ this.player.unbind('end', onEnded);
5076
+ }
5080
5077
  }, {
5081
5078
  key: "stop",
5082
5079
  value: function stop() {
@@ -5122,7 +5119,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
5122
5119
  width: '100%',
5123
5120
  height: '100%'
5124
5121
  };
5125
- return /*#__PURE__*/_react["default"].createElement("div", {
5122
+ return _react["default"].createElement("div", {
5126
5123
  key: id,
5127
5124
  className: className,
5128
5125
  style: style
@@ -5182,16 +5179,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5182
5179
 
5183
5180
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5184
5181
 
5185
- 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); }; }
5186
-
5187
5182
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5188
5183
 
5189
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5190
-
5191
- 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; } }
5192
-
5193
5184
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5194
5185
 
5186
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5187
+
5195
5188
  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); }
5196
5189
 
5197
5190
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5204,12 +5197,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5204
5197
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5205
5198
  var PLAYER_ID_PREFIX = 'twitch-player-';
5206
5199
 
5207
- var Twitch = /*#__PURE__*/function (_Component) {
5200
+ var Twitch =
5201
+ /*#__PURE__*/
5202
+ function (_Component) {
5208
5203
  _inherits(Twitch, _Component);
5209
5204
 
5210
- var _super = _createSuper(Twitch);
5211
-
5212
5205
  function Twitch() {
5206
+ var _getPrototypeOf2;
5207
+
5213
5208
  var _this;
5214
5209
 
5215
5210
  _classCallCheck(this, Twitch);
@@ -5218,7 +5213,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5218
5213
  args[_key] = arguments[_key];
5219
5214
  }
5220
5215
 
5221
- _this = _super.call.apply(_super, [this].concat(args));
5216
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5222
5217
 
5223
5218
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5224
5219
 
@@ -5339,7 +5334,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5339
5334
  width: '100%',
5340
5335
  height: '100%'
5341
5336
  };
5342
- return /*#__PURE__*/_react["default"].createElement("div", {
5337
+ return _react["default"].createElement("div", {
5343
5338
  style: style,
5344
5339
  id: this.playerID
5345
5340
  });
@@ -5392,15 +5387,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5392
5387
 
5393
5388
  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; }
5394
5389
 
5395
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5396
-
5397
- 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."); }
5390
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5398
5391
 
5399
- 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); }
5392
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5400
5393
 
5401
- 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; }
5402
-
5403
- 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; }
5394
+ 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; }
5404
5395
 
5405
5396
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5406
5397
 
@@ -5410,16 +5401,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5410
5401
 
5411
5402
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5412
5403
 
5413
- 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); }; }
5414
-
5415
5404
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5416
5405
 
5417
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5418
-
5419
- 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; } }
5420
-
5421
5406
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5422
5407
 
5408
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5409
+
5423
5410
  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); }
5424
5411
 
5425
5412
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5431,12 +5418,14 @@ var SDK_GLOBAL = 'DM';
5431
5418
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5432
5419
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5433
5420
 
5434
- var DailyMotion = /*#__PURE__*/function (_Component) {
5421
+ var DailyMotion =
5422
+ /*#__PURE__*/
5423
+ function (_Component) {
5435
5424
  _inherits(DailyMotion, _Component);
5436
5425
 
5437
- var _super = _createSuper(DailyMotion);
5438
-
5439
5426
  function DailyMotion() {
5427
+ var _getPrototypeOf2;
5428
+
5440
5429
  var _this;
5441
5430
 
5442
5431
  _classCallCheck(this, DailyMotion);
@@ -5445,7 +5434,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5445
5434
  args[_key] = arguments[_key];
5446
5435
  }
5447
5436
 
5448
- _this = _super.call.apply(_super, [this].concat(args));
5437
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5449
5438
 
5450
5439
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5451
5440
 
@@ -5574,9 +5563,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5574
5563
  height: '100%',
5575
5564
  display: display
5576
5565
  };
5577
- return /*#__PURE__*/_react["default"].createElement("div", {
5566
+ return _react["default"].createElement("div", {
5578
5567
  style: style
5579
- }, /*#__PURE__*/_react["default"].createElement("div", {
5568
+ }, _react["default"].createElement("div", {
5580
5569
  ref: this.ref
5581
5570
  }));
5582
5571
  }
@@ -5634,16 +5623,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5634
5623
 
5635
5624
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5636
5625
 
5637
- 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); }; }
5638
-
5639
5626
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5640
5627
 
5641
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5642
-
5643
- 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; } }
5644
-
5645
5628
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5646
5629
 
5630
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5631
+
5647
5632
  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); }
5648
5633
 
5649
5634
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5654,12 +5639,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5654
5639
  var SDK_GLOBAL = 'Mixcloud';
5655
5640
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5656
5641
 
5657
- var Mixcloud = /*#__PURE__*/function (_Component) {
5642
+ var Mixcloud =
5643
+ /*#__PURE__*/
5644
+ function (_Component) {
5658
5645
  _inherits(Mixcloud, _Component);
5659
5646
 
5660
- var _super = _createSuper(Mixcloud);
5661
-
5662
5647
  function Mixcloud() {
5648
+ var _getPrototypeOf2;
5649
+
5663
5650
  var _this;
5664
5651
 
5665
5652
  _classCallCheck(this, Mixcloud);
@@ -5668,7 +5655,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5668
5655
  args[_key] = arguments[_key];
5669
5656
  }
5670
5657
 
5671
- _this = _super.call.apply(_super, [this].concat(args));
5658
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5672
5659
 
5673
5660
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5674
5661
 
@@ -5771,7 +5758,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5771
5758
  })); // We have to give the iframe a key here to prevent a
5772
5759
  // weird dialog appearing when loading a new track
5773
5760
 
5774
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5761
+ return _react["default"].createElement("iframe", {
5775
5762
  key: id,
5776
5763
  ref: this.ref,
5777
5764
  style: style,
@@ -5831,33 +5818,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5831
5818
 
5832
5819
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5833
5820
 
5834
- 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); }; }
5835
-
5836
5821
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5837
5822
 
5838
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5839
-
5840
- 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; } }
5841
-
5842
5823
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5843
5824
 
5825
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5826
+
5844
5827
  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); }
5845
5828
 
5846
5829
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5847
5830
 
5848
5831
  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; }
5849
5832
 
5850
- 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; } } }; }
5851
-
5852
- 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); }
5853
-
5854
- 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; }
5855
-
5856
5833
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5857
5834
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5858
5835
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5859
5836
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5860
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5837
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5861
5838
  var HLS_GLOBAL = 'Hls';
5862
5839
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5863
5840
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5866,11 +5843,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5866
5843
 
5867
5844
  function canPlay(url) {
5868
5845
  if (url instanceof Array) {
5869
- var _iterator = _createForOfIteratorHelper(url),
5870
- _step;
5846
+ var _iteratorNormalCompletion = true;
5847
+ var _didIteratorError = false;
5848
+ var _iteratorError = undefined;
5871
5849
 
5872
5850
  try {
5873
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5851
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5874
5852
  var item = _step.value;
5875
5853
 
5876
5854
  if (typeof item === 'string' && canPlay(item)) {
@@ -5882,9 +5860,18 @@ function canPlay(url) {
5882
5860
  }
5883
5861
  }
5884
5862
  } catch (err) {
5885
- _iterator.e(err);
5863
+ _didIteratorError = true;
5864
+ _iteratorError = err;
5886
5865
  } finally {
5887
- _iterator.f();
5866
+ try {
5867
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5868
+ _iterator["return"]();
5869
+ }
5870
+ } finally {
5871
+ if (_didIteratorError) {
5872
+ throw _iteratorError;
5873
+ }
5874
+ }
5888
5875
  }
5889
5876
 
5890
5877
  return false;
@@ -5908,12 +5895,14 @@ function canEnablePIP(url) {
5908
5895
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5909
5896
  }
5910
5897
 
5911
- var FilePlayer = /*#__PURE__*/function (_Component) {
5898
+ var FilePlayer =
5899
+ /*#__PURE__*/
5900
+ function (_Component) {
5912
5901
  _inherits(FilePlayer, _Component);
5913
5902
 
5914
- var _super = _createSuper(FilePlayer);
5915
-
5916
5903
  function FilePlayer() {
5904
+ var _getPrototypeOf2;
5905
+
5917
5906
  var _this;
5918
5907
 
5919
5908
  _classCallCheck(this, FilePlayer);
@@ -5922,7 +5911,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5922
5911
  _args[_key] = arguments[_key];
5923
5912
  }
5924
5913
 
5925
- _this = _super.call.apply(_super, [this].concat(_args));
5914
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5926
5915
 
5927
5916
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5928
5917
  var _this$props;
@@ -6009,19 +5998,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6009
5998
 
6010
5999
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
6011
6000
  if (typeof source === 'string') {
6012
- return /*#__PURE__*/_react["default"].createElement("source", {
6001
+ return _react["default"].createElement("source", {
6013
6002
  key: index,
6014
6003
  src: source
6015
6004
  });
6016
6005
  }
6017
6006
 
6018
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
6007
+ return _react["default"].createElement("source", _extends({
6019
6008
  key: index
6020
6009
  }, source));
6021
6010
  });
6022
6011
 
6023
6012
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
6024
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
6013
+ return _react["default"].createElement("track", _extends({
6025
6014
  key: index
6026
6015
  }, track));
6027
6016
  });
@@ -6059,10 +6048,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6059
6048
  key: "componentWillUnmount",
6060
6049
  value: function componentWillUnmount() {
6061
6050
  this.removeListeners(this.player);
6062
-
6063
- if (this.hls) {
6064
- this.hls.destroy();
6065
- }
6066
6051
  }
6067
6052
  }, {
6068
6053
  key: "addListeners",
@@ -6193,6 +6178,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6193
6178
  value: function stop() {
6194
6179
  this.player.removeAttribute('src');
6195
6180
 
6181
+ if (this.hls) {
6182
+ this.hls.destroy();
6183
+ }
6184
+
6196
6185
  if (this.dash) {
6197
6186
  this.dash.reset();
6198
6187
  }
@@ -6304,7 +6293,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6304
6293
  width: width === 'auto' ? width : '100%',
6305
6294
  height: height === 'auto' ? height : '100%'
6306
6295
  };
6307
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6296
+ return _react["default"].createElement(Element, _extends({
6308
6297
  ref: this.ref,
6309
6298
  src: this.getSource(url),
6310
6299
  style: style,
@@ -6394,16 +6383,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6394
6383
 
6395
6384
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6396
6385
 
6397
- 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); }; }
6398
-
6399
6386
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6400
6387
 
6401
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6402
-
6403
- 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; } }
6404
-
6405
6388
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6406
6389
 
6390
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6391
+
6407
6392
  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); }
6408
6393
 
6409
6394
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6412,12 +6397,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6412
6397
 
6413
6398
  var ICON_SIZE = '64px';
6414
6399
 
6415
- var Preview = /*#__PURE__*/function (_Component) {
6400
+ var Preview =
6401
+ /*#__PURE__*/
6402
+ function (_Component) {
6416
6403
  _inherits(Preview, _Component);
6417
6404
 
6418
- var _super = _createSuper(Preview);
6419
-
6420
6405
  function Preview() {
6406
+ var _getPrototypeOf2;
6407
+
6421
6408
  var _this;
6422
6409
 
6423
6410
  _classCallCheck(this, Preview);
@@ -6426,7 +6413,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6426
6413
  args[_key] = arguments[_key];
6427
6414
  }
6428
6415
 
6429
- _this = _super.call.apply(_super, [this].concat(args));
6416
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6430
6417
 
6431
6418
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6432
6419
 
@@ -6524,15 +6511,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6524
6511
  }
6525
6512
  };
6526
6513
 
6527
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6514
+ var defaultPlayIcon = _react["default"].createElement("div", {
6528
6515
  style: styles.shadow,
6529
6516
  className: "react-player__shadow"
6530
- }, /*#__PURE__*/_react["default"].createElement("div", {
6517
+ }, _react["default"].createElement("div", {
6531
6518
  style: styles.playIcon,
6532
6519
  className: "react-player__play-icon"
6533
6520
  }));
6534
6521
 
6535
- return /*#__PURE__*/_react["default"].createElement("div", {
6522
+ return _react["default"].createElement("div", {
6536
6523
  style: styles.preview,
6537
6524
  className: "react-player__preview",
6538
6525
  onClick: onClick
@@ -6569,12 +6556,6 @@ var _Player = _interopRequireDefault(Player_1);
6569
6556
 
6570
6557
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6571
6558
 
6572
- 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; } } }; }
6573
-
6574
- 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); }
6575
-
6576
- 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; }
6577
-
6578
6559
  var PRELOAD_PLAYERS = [{
6579
6560
  Player: YouTube_1.YouTube,
6580
6561
  configKey: 'youtube',
@@ -6595,16 +6576,16 @@ var PRELOAD_PLAYERS = [{
6595
6576
 
6596
6577
  function renderPreloadPlayers(url, controls, config) {
6597
6578
  var players = [];
6598
-
6599
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6600
- _step;
6579
+ var _iteratorNormalCompletion = true;
6580
+ var _didIteratorError = false;
6581
+ var _iteratorError = undefined;
6601
6582
 
6602
6583
  try {
6603
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6584
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6604
6585
  var player = _step.value;
6605
6586
 
6606
6587
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6607
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6588
+ players.push(_react["default"].createElement(_Player["default"], {
6608
6589
  key: player.Player.displayName,
6609
6590
  activePlayer: player.Player,
6610
6591
  url: player.url,
@@ -6616,9 +6597,18 @@ function renderPreloadPlayers(url, controls, config) {
6616
6597
  }
6617
6598
  }
6618
6599
  } catch (err) {
6619
- _iterator.e(err);
6600
+ _didIteratorError = true;
6601
+ _iteratorError = err;
6620
6602
  } finally {
6621
- _iterator.f();
6603
+ try {
6604
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6605
+ _iterator["return"]();
6606
+ }
6607
+ } finally {
6608
+ if (_didIteratorError) {
6609
+ throw _iteratorError;
6610
+ }
6611
+ }
6622
6612
  }
6623
6613
 
6624
6614
  return players;
@@ -6742,17 +6732,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6742
6732
 
6743
6733
  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); }
6744
6734
 
6745
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6746
-
6747
- 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."); }
6748
-
6749
- 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); }
6735
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6750
6736
 
6751
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6737
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6752
6738
 
6753
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6739
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6754
6740
 
6755
- 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; }
6741
+ 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; } }
6756
6742
 
6757
6743
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6758
6744
 
@@ -6760,16 +6746,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6760
6746
 
6761
6747
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6762
6748
 
6763
- 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); }; }
6764
-
6765
6749
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6766
6750
 
6767
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6768
-
6769
- 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; } }
6770
-
6771
6751
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6772
6752
 
6753
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6754
+
6773
6755
  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); }
6774
6756
 
6775
6757
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6779,12 +6761,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6779
6761
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6780
6762
  var customPlayers = [];
6781
6763
 
6782
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6764
+ var ReactPlayer =
6765
+ /*#__PURE__*/
6766
+ function (_Component) {
6783
6767
  _inherits(ReactPlayer, _Component);
6784
6768
 
6785
- var _super = _createSuper(ReactPlayer);
6786
-
6787
6769
  function ReactPlayer() {
6770
+ var _getPrototypeOf2;
6771
+
6788
6772
  var _this;
6789
6773
 
6790
6774
  _classCallCheck(this, ReactPlayer);
@@ -6793,7 +6777,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6793
6777
  args[_key] = arguments[_key];
6794
6778
  }
6795
6779
 
6796
- _this = _super.call.apply(_super, [this].concat(args));
6780
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6797
6781
 
6798
6782
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6799
6783
 
@@ -6904,7 +6888,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6904
6888
  key: "renderActivePlayer",
6905
6889
  value: function renderActivePlayer(url, activePlayer) {
6906
6890
  if (!url) return null;
6907
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6891
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6908
6892
  key: activePlayer.displayName,
6909
6893
  ref: this.activePlayerRef,
6910
6894
  config: this.config,
@@ -6941,14 +6925,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6941
6925
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6942
6926
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6943
6927
 
6944
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6928
+ var preview = _react["default"].createElement(_Preview["default"], {
6945
6929
  url: url,
6946
6930
  light: light,
6947
6931
  playIcon: playIcon,
6948
6932
  onClick: this.handleClickPreview
6949
6933
  });
6950
6934
 
6951
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6935
+ return _react["default"].createElement(Wrapper, _extends({
6952
6936
  ref: this.wrapperRef,
6953
6937
  style: _objectSpread({}, style, {
6954
6938
  width: width,
@@ -7270,8 +7254,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7270
7254
  var duration = player.getDuration();
7271
7255
  var queue = Math.floor(duration / 10);
7272
7256
  var segment = Math.floor(current / queue);
7273
- Beam.report_beam_video('Ready', main.main_18, duration, current, segment);
7274
- Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
7257
+ Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
7258
+ Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
7275
7259
  //autoplay
7276
7260
 
7277
7261
  //Small pause before starting next video
@@ -7291,8 +7275,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7291
7275
  var queue = Math.floor(duration / 10);
7292
7276
  var segment = Math.floor(current / queue);
7293
7277
 
7294
- Beam.report_beam_video('End', main.main_18, duration, current, segment);
7295
- Segment.report_video_event('Video End', main.main_18, duration, current, segment);
7278
+ Beam.report_beam_video('End', main.main_16, duration, current, segment);
7279
+ Segment.report_video_event('Video End', main.main_16, duration, current, segment);
7296
7280
  setEndReported(true);
7297
7281
  clearInterval(intervalID);
7298
7282
  }
@@ -7342,8 +7326,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7342
7326
  var queue = Math.floor(duration / 10);
7343
7327
  var segment = Math.floor(current / queue);
7344
7328
  if (!queueProgress.includes(segment)) {
7345
- Beam.report_beam_video('Segment', main.main_18, duration, current, segment);
7346
- Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
7329
+ Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
7330
+ Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
7347
7331
  queueProgress.push(segment);
7348
7332
  }
7349
7333
  };
@@ -7356,8 +7340,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7356
7340
  var queue = Math.floor(duration / 10);
7357
7341
  var segment = Math.floor(current / queue);
7358
7342
 
7359
- Beam.report_beam_video('Play', main.main_18, duration, current, segment);
7360
- Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
7343
+ Beam.report_beam_video('Play', main.main_16, duration, current, segment);
7344
+ Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
7361
7345
 
7362
7346
  if (!playReported) {
7363
7347
  setPlayReported(true);
@@ -7375,8 +7359,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7375
7359
  var queue = Math.floor(duration / 10);
7376
7360
  var segment = Math.floor(current / queue);
7377
7361
 
7378
- Beam.report_beam_video('Pause', main.main_18, duration, current, segment);
7379
- Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
7362
+ Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
7363
+ Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
7380
7364
  };
7381
7365
 
7382
7366
  // Youtube Options
@@ -7494,7 +7478,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7494
7478
  React__default.createElement(
7495
7479
  'div',
7496
7480
  { className: 'vid-text' },
7497
- Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7481
+ Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7498
7482
  ),
7499
7483
  React__default.createElement(
7500
7484
  'style',
@@ -7812,7 +7796,7 @@ var Poll$1 = function Poll(_ref) {
7812
7796
  );
7813
7797
  };
7814
7798
 
7815
- var numberOfPaginations = main.main_42 ? 4 : 10;
7799
+ var numberOfPaginations = main.main_35 ? 4 : 10;
7816
7800
 
7817
7801
  var Quiz = function Quiz(_ref) {
7818
7802
  var quizzes = _ref.quizzes,
@@ -7932,7 +7916,7 @@ var Quiz = function Quiz(_ref) {
7932
7916
  var renderPagination = function renderPagination() {
7933
7917
  return React__default.createElement(
7934
7918
  Pagination,
7935
- { className: 'p-0 m-0', size: main.main_42 && 'sm' },
7919
+ { className: 'p-0 m-0', size: main.main_35 && 'sm' },
7936
7920
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7937
7921
  return changePage('first');
7938
7922
  }, disabled: currentPage === 1 }),
@@ -8245,7 +8229,7 @@ var MultiMedia = function MultiMedia(props) {
8245
8229
  { xs: 12, md: 12 / medias.length, key: media._key },
8246
8230
  React__default.createElement(
8247
8231
  'a',
8248
- _extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8232
+ _extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8249
8233
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8250
8234
  React__default.createElement(
8251
8235
  'div',
@@ -8533,7 +8517,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8533
8517
 
8534
8518
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8535
8519
  if (biography) {
8536
- return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8520
+ return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8537
8521
  }
8538
8522
  };
8539
8523
 
@@ -8619,7 +8603,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8619
8603
  //console.log('useLayoutEffect')
8620
8604
  if (!firstLoad) {
8621
8605
  setUpArrowClicked(false);
8622
- if (main.main_43) {
8606
+ if (main.main_36) {
8623
8607
  grabLoadedAds();
8624
8608
  } else {
8625
8609
  scrollToArticle();
@@ -8643,7 +8627,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8643
8627
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8644
8628
  if (pageview) pageview(path);
8645
8629
 
8646
- if (!main.main_43) {
8630
+ if (!main.main_36) {
8647
8631
  index.lib_3.getGoogletag().then(function (googletag) {
8648
8632
  if (window.googletag && googletag.pubadsReady) {
8649
8633
  index.lib_3.refresh();
@@ -8651,7 +8635,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8651
8635
  });
8652
8636
  }
8653
8637
  //Refresh leaderboard ad on mobile
8654
- if (main.main_43) {
8638
+ if (main.main_36) {
8655
8639
  var leaderboardSlotId = '';
8656
8640
  index.lib_3.getGoogletag().then(function (googletag) {
8657
8641
  if (window.googletag && googletag.pubadsReady) {
@@ -8720,7 +8704,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8720
8704
  React__default.createElement(
8721
8705
  'div',
8722
8706
  { className: 'ad-box', style: { textAlign: 'center' } },
8723
- main.main_43 && Ads.map(function (ad, index) {
8707
+ main.main_36 && Ads.map(function (ad, index) {
8724
8708
  if (index === 0) {
8725
8709
  return React__default.createElement(
8726
8710
  'div',
@@ -8811,7 +8795,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8811
8795
  React__default.createElement(
8812
8796
  'div',
8813
8797
  { className: 'mt-2 mb-2' },
8814
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
8798
+ React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
8815
8799
  serializers: getSerializers,
8816
8800
  videoAccountIDs: accountIDs,
8817
8801
  blocks: article.text,
@@ -8842,7 +8826,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8842
8826
  React__default.createElement(
8843
8827
  'div',
8844
8828
  { className: 'ad-box', style: { textAlign: 'center' } },
8845
- main.main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8829
+ main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8846
8830
  if (innerIndex === 0) {
8847
8831
  return React__default.createElement(
8848
8832
  'div',
@@ -8929,7 +8913,7 @@ var FigureImage = React__default.memo(function (_ref2) {
8929
8913
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8930
8914
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8931
8915
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
8932
- React__default.createElement('img', _extends._extends({
8916
+ React__default.createElement('img', _extends$1._extends({
8933
8917
  style: figureImageStyle,
8934
8918
  className: 'figure-image',
8935
8919
  src: urlFor({ source: node, client: client }),
@@ -9138,7 +9122,7 @@ var MultiFigure = function MultiFigure(props) {
9138
9122
  { xs: 12, md: 12 / images.length, key: index },
9139
9123
  image.link ? React__default.createElement(
9140
9124
  'a',
9141
- _extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9125
+ _extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9142
9126
  React__default.createElement(
9143
9127
  'div',
9144
9128
  { className: 'multi-figure-image-container' },
@@ -9230,7 +9214,7 @@ exports.__esModule = true;
9230
9214
 
9231
9215
 
9232
9216
 
9233
- var _extends3 = _interopRequireDefault(_extends._extends$1);
9217
+ var _extends3 = _interopRequireDefault(_extends$1._extends$1);
9234
9218
 
9235
9219
 
9236
9220
 
@@ -9543,7 +9527,7 @@ var BlockTable = function BlockTable(props) {
9543
9527
  return React__default.createElement(
9544
9528
  'div',
9545
9529
  { className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
9546
- React__default.createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9530
+ React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9547
9531
  );
9548
9532
  })
9549
9533
  );