@mjhls/mjh-framework 1.0.875 → 1.0.876-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 (272) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +11 -11
  4. package/dist/cjs/AD300x250x600.js +11 -11
  5. package/dist/cjs/AD728x90.js +12 -12
  6. package/dist/cjs/ADFloatingFooter.js +10 -10
  7. package/dist/cjs/ADFooter.js +3 -3
  8. package/dist/cjs/ADGutter.js +10 -10
  9. package/dist/cjs/{ADInfeed-326c6278.js → ADInfeed-c628363f.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +10 -10
  11. package/dist/cjs/ADSponsoredResources.js +10 -10
  12. package/dist/cjs/ADWebcast.js +10 -10
  13. package/dist/cjs/ADWelcome.js +10 -10
  14. package/dist/cjs/{ADlgInfeed-a14f79ce.js → ADlgInfeed-a827d389.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +4 -4
  16. package/dist/cjs/AdSlot.js +12 -12
  17. package/dist/cjs/AdSlotsProvider.js +903 -10
  18. package/dist/cjs/AlgoliaSearch.js +264 -391
  19. package/dist/cjs/AlphabeticList.js +6 -6
  20. package/dist/cjs/ArticleCarousel.js +6 -6
  21. package/dist/cjs/ArticleProgramLandingPage.js +28 -28
  22. package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
  23. package/dist/cjs/ArticleSeriesListing.js +16 -16
  24. package/dist/cjs/Auth.js +1298 -470
  25. package/dist/cjs/AuthWrapper.js +240 -281
  26. package/dist/cjs/{AuthorComponent-421d5ec1.js → AuthorComponent-02e827ae.js} +1 -1
  27. package/dist/cjs/Beam.js +5 -5
  28. package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
  29. package/dist/cjs/Breadcrumbs.js +3 -3
  30. package/dist/cjs/CMEDeck.js +12 -12
  31. package/dist/cjs/Column2.js +6 -6
  32. package/dist/cjs/Column3.js +14 -14
  33. package/dist/cjs/ConferenceArticleCard.js +20 -20
  34. package/dist/cjs/DeckContent.js +29 -29
  35. package/dist/cjs/DeckQueue.js +18 -18
  36. package/dist/cjs/{Dfp-57cecb43.js → Dfp-14d2455c.js} +5 -5
  37. package/dist/cjs/EventsDeck.js +31 -31
  38. package/dist/cjs/ExternalResources.js +24 -24
  39. package/dist/cjs/Feature.js +6 -6
  40. package/dist/cjs/ForbesHero.js +6 -6
  41. package/dist/cjs/GridContent.js +26 -26
  42. package/dist/cjs/GridHero.js +6 -6
  43. package/dist/cjs/GroupDeck.js +6 -6
  44. package/dist/cjs/HamMagazine.js +23 -23
  45. package/dist/cjs/Hero.js +4 -4
  46. package/dist/cjs/HighlightenVideo.js +1 -1
  47. package/dist/cjs/HorizontalArticleListing.js +23 -23
  48. package/dist/cjs/HorizontalHero.js +6 -6
  49. package/dist/cjs/IssueContentDeck.js +6 -6
  50. package/dist/cjs/IssueDeck.js +8 -8
  51. package/dist/cjs/IssueLanding.js +56 -58
  52. package/dist/cjs/KMTracker.js +15 -15
  53. package/dist/cjs/LeftNav.js +10 -10
  54. package/dist/cjs/MasterDeck.js +30 -30
  55. package/dist/cjs/MediaSeriesLanding.js +211 -210
  56. package/dist/cjs/NavDvm.js +5 -5
  57. package/dist/cjs/NavMagazine.js +22 -22
  58. package/dist/cjs/NavNative.js +19 -19
  59. package/dist/cjs/OncliveHero.js +6 -5
  60. package/dist/cjs/OncliveLargeHero.js +6 -6
  61. package/dist/cjs/PageFilter.js +3 -3
  62. package/dist/cjs/PartnerDetailListing.js +3839 -40
  63. package/dist/cjs/PdfDownload.js +1 -1
  64. package/dist/cjs/PopUpModal.js +3 -3
  65. package/dist/cjs/PubSection.js +17 -19
  66. package/dist/cjs/PubToc.js +5 -5
  67. package/dist/cjs/PublicationDeck.js +5 -5
  68. package/dist/cjs/PublicationLanding.js +34 -34
  69. package/dist/cjs/QueueDeckExpanded.js +981 -1101
  70. package/dist/cjs/RecentNews.js +1 -1
  71. package/dist/cjs/RelatedContent.js +33 -33
  72. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  73. package/dist/cjs/Search.js +3 -3
  74. package/dist/cjs/Segment.js +4 -4
  75. package/dist/cjs/SeriesListingDeck.js +13 -13
  76. package/dist/cjs/{SeriesSlider-372e418f.js → SeriesSlider-49b81b0b.js} +11 -11
  77. package/dist/cjs/SideFooter.js +8 -8
  78. package/dist/cjs/{SocialSearchComponent-80a2130a.js → SocialSearchComponent-e8477ca3.js} +7 -7
  79. package/dist/cjs/TaxonomyCard.js +6 -6
  80. package/dist/cjs/TaxonomyDescription.js +23 -23
  81. package/dist/cjs/TemplateNormal.js +16 -16
  82. package/dist/cjs/ThumbnailCard.js +4 -4
  83. package/dist/cjs/Ustream.js +10 -10
  84. package/dist/cjs/VerticalHero.js +5 -5
  85. package/dist/cjs/VideoProgramLandingPage.js +27 -27
  86. package/dist/cjs/VideoSeriesCard.js +9 -9
  87. package/dist/cjs/VideoSeriesFilter.js +5 -5
  88. package/dist/cjs/VideoSeriesLandingPage.js +25 -25
  89. package/dist/cjs/VideoSeriesListing.js +16 -16
  90. package/dist/cjs/View.js +104 -100
  91. package/dist/cjs/YahooHero.js +6 -6
  92. package/dist/cjs/YoutubeGroup.js +14 -14
  93. package/dist/cjs/{_is-array-bd978497.js → _is-array-aa52fa1e.js} +1 -1
  94. package/dist/cjs/{_iter-detect-ee3d4802.js → _iter-detect-05795553.js} +1 -1
  95. package/dist/cjs/{_object-sap-fee50a62.js → _object-sap-171b9ea5.js} +1 -1
  96. package/dist/cjs/{_object-to-array-18379aba.js → _object-to-array-9bac8737.js} +1 -1
  97. package/dist/cjs/{asyncToGenerator-15014394.js → asyncToGenerator-df19209d.js} +3 -3
  98. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  99. package/dist/cjs/{core.get-iterator-method-5cb3af28.js → core.get-iterator-method-f3c44602.js} +2 -2
  100. package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
  101. package/dist/cjs/{define-property-530a5e9e.js → define-property-21887c62.js} +1 -1
  102. package/dist/cjs/{defineProperty-5ca424cd.js → defineProperty-77a37684.js} +1 -1
  103. package/dist/cjs/{extends-1d905ddb.js → extends-eed4f016.js} +1 -1
  104. package/dist/cjs/faundadb.js +19 -19
  105. package/dist/cjs/getRelatedArticle.js +4 -4
  106. package/dist/cjs/getRootDocGroup.js +6 -6
  107. package/dist/cjs/getSerializers.js +23 -23
  108. package/dist/cjs/{getTargeting-9d63325d.js → getTargeting-8874437b.js} +12 -12
  109. package/dist/cjs/getTargeting.js +5 -5
  110. package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
  111. package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
  112. package/dist/cjs/{index-75e4415e.js → index-cdacba23.js} +518 -534
  113. package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
  114. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  115. package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
  116. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  117. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  118. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  119. package/dist/cjs/index.js +40 -43
  120. package/dist/cjs/inherits-8d29278d.js +110 -0
  121. package/dist/cjs/{inherits-1dcf1280.js → inherits-cba9c846.js} +8 -8
  122. package/dist/cjs/{keys-91f31941.js → keys-d207942e.js} +2 -2
  123. package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
  124. package/dist/cjs/main-02daeefe.js +862 -0
  125. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  126. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  127. package/dist/cjs/{slicedToArray-0a78cdf3.js → slicedToArray-f6d4eaa8.js} +2 -2
  128. package/dist/cjs/{stringify-13405ce2.js → stringify-bbc68047.js} +1 -1
  129. package/dist/cjs/timeDifferenceCalc.js +1 -1
  130. package/dist/cjs/{toConsumableArray-39fd0757.js → toConsumableArray-c9b8a0d0.js} +2 -2
  131. package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
  132. package/dist/cjs/{typeof-3dd6d3df.js → typeof-5f52cf64.js} +3 -3
  133. package/dist/cjs/urlFor.js +4 -4
  134. package/dist/cjs/{ustream-api-5619c1fa.js → ustream-api-9ebe112f.js} +4 -4
  135. package/dist/cjs/{web.dom.iterable-a9359910.js → web.dom.iterable-e34bf324.js} +1 -1
  136. package/dist/esm/AD.js +1 -1
  137. package/dist/esm/AD300x250.js +11 -11
  138. package/dist/esm/AD300x250x600.js +11 -11
  139. package/dist/esm/AD728x90.js +12 -12
  140. package/dist/esm/ADFloatingFooter.js +10 -10
  141. package/dist/esm/ADFooter.js +3 -3
  142. package/dist/esm/ADGutter.js +10 -10
  143. package/dist/esm/{ADInfeed-dbdb0513.js → ADInfeed-35a2a91f.js} +1 -1
  144. package/dist/esm/ADSkyscraper.js +10 -10
  145. package/dist/esm/ADSponsoredResources.js +10 -10
  146. package/dist/esm/ADWebcast.js +10 -10
  147. package/dist/esm/ADWelcome.js +10 -10
  148. package/dist/esm/{ADlgInfeed-f1c2c5cd.js → ADlgInfeed-fd34a881.js} +1 -1
  149. package/dist/esm/AccordionPanel.js +4 -4
  150. package/dist/esm/AdSlot.js +12 -12
  151. package/dist/esm/AdSlotsProvider.js +905 -13
  152. package/dist/esm/AlgoliaSearch.js +32 -159
  153. package/dist/esm/AlphabeticList.js +6 -6
  154. package/dist/esm/ArticleCarousel.js +6 -6
  155. package/dist/esm/ArticleProgramLandingPage.js +24 -24
  156. package/dist/esm/ArticleSeriesLandingPage.js +22 -22
  157. package/dist/esm/ArticleSeriesListing.js +16 -16
  158. package/dist/esm/Auth.js +1298 -470
  159. package/dist/esm/AuthWrapper.js +240 -281
  160. package/dist/esm/{AuthorComponent-2277b67c.js → AuthorComponent-e6f95c2f.js} +1 -1
  161. package/dist/esm/Beam.js +5 -5
  162. package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
  163. package/dist/esm/Breadcrumbs.js +3 -3
  164. package/dist/esm/CMEDeck.js +12 -12
  165. package/dist/esm/Column2.js +6 -6
  166. package/dist/esm/Column3.js +14 -14
  167. package/dist/esm/ConferenceArticleCard.js +20 -20
  168. package/dist/esm/DeckContent.js +29 -29
  169. package/dist/esm/DeckQueue.js +18 -18
  170. package/dist/esm/{Dfp-d6a5629f.js → Dfp-f867d061.js} +5 -5
  171. package/dist/esm/EventsDeck.js +31 -31
  172. package/dist/esm/ExternalResources.js +24 -24
  173. package/dist/esm/Feature.js +6 -6
  174. package/dist/esm/ForbesHero.js +6 -6
  175. package/dist/esm/GridContent.js +26 -26
  176. package/dist/esm/GridHero.js +6 -6
  177. package/dist/esm/GroupDeck.js +6 -6
  178. package/dist/esm/HamMagazine.js +23 -23
  179. package/dist/esm/Hero.js +4 -4
  180. package/dist/esm/HighlightenVideo.js +1 -1
  181. package/dist/esm/HorizontalArticleListing.js +23 -23
  182. package/dist/esm/HorizontalHero.js +6 -6
  183. package/dist/esm/IssueContentDeck.js +6 -6
  184. package/dist/esm/IssueDeck.js +8 -8
  185. package/dist/esm/IssueLanding.js +56 -58
  186. package/dist/esm/KMTracker.js +15 -15
  187. package/dist/esm/LeftNav.js +10 -10
  188. package/dist/esm/MasterDeck.js +30 -30
  189. package/dist/esm/MediaSeriesLanding.js +363 -362
  190. package/dist/esm/NavDvm.js +5 -5
  191. package/dist/esm/NavMagazine.js +22 -22
  192. package/dist/esm/NavNative.js +19 -19
  193. package/dist/esm/OncliveHero.js +6 -5
  194. package/dist/esm/OncliveLargeHero.js +6 -6
  195. package/dist/esm/PageFilter.js +3 -3
  196. package/dist/esm/PartnerDetailListing.js +3835 -37
  197. package/dist/esm/PdfDownload.js +1 -1
  198. package/dist/esm/PopUpModal.js +3 -3
  199. package/dist/esm/PubSection.js +17 -19
  200. package/dist/esm/PubToc.js +5 -5
  201. package/dist/esm/PublicationDeck.js +5 -5
  202. package/dist/esm/PublicationLanding.js +34 -34
  203. package/dist/esm/QueueDeckExpanded.js +983 -1103
  204. package/dist/esm/RecentNews.js +1 -1
  205. package/dist/esm/RelatedContent.js +33 -33
  206. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  207. package/dist/esm/Search.js +3 -3
  208. package/dist/esm/Segment.js +4 -4
  209. package/dist/esm/SeriesListingDeck.js +10 -10
  210. package/dist/esm/{SeriesSlider-ae692d40.js → SeriesSlider-d555a1d2.js} +11 -11
  211. package/dist/esm/SideFooter.js +8 -8
  212. package/dist/esm/{SocialSearchComponent-998cb92d.js → SocialSearchComponent-d240935c.js} +7 -7
  213. package/dist/esm/TaxonomyCard.js +6 -6
  214. package/dist/esm/TaxonomyDescription.js +23 -23
  215. package/dist/esm/TemplateNormal.js +16 -16
  216. package/dist/esm/ThumbnailCard.js +4 -4
  217. package/dist/esm/Ustream.js +10 -10
  218. package/dist/esm/VerticalHero.js +5 -5
  219. package/dist/esm/VideoProgramLandingPage.js +24 -24
  220. package/dist/esm/VideoSeriesCard.js +8 -8
  221. package/dist/esm/VideoSeriesFilter.js +5 -5
  222. package/dist/esm/VideoSeriesLandingPage.js +22 -22
  223. package/dist/esm/VideoSeriesListing.js +16 -16
  224. package/dist/esm/View.js +77 -73
  225. package/dist/esm/YahooHero.js +6 -6
  226. package/dist/esm/YoutubeGroup.js +14 -14
  227. package/dist/esm/{_is-array-8914b83f.js → _is-array-4df618a6.js} +1 -1
  228. package/dist/esm/{_iter-detect-13e31915.js → _iter-detect-130ee549.js} +1 -1
  229. package/dist/esm/{_object-sap-fc9da7e8.js → _object-sap-8b8ea5a9.js} +1 -1
  230. package/dist/esm/{_object-to-array-ee8f6d98.js → _object-to-array-c54dd835.js} +1 -1
  231. package/dist/esm/{asyncToGenerator-40371743.js → asyncToGenerator-64812e90.js} +4 -4
  232. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  233. package/dist/esm/{core.get-iterator-method-0fb60d94.js → core.get-iterator-method-86d4db69.js} +2 -2
  234. package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
  235. package/dist/esm/{define-property-73034847.js → define-property-6d26cb48.js} +1 -1
  236. package/dist/esm/{defineProperty-e66a2c7c.js → defineProperty-d7d9b577.js} +1 -1
  237. package/dist/esm/{extends-9a61581c.js → extends-5b1796d4.js} +1 -1
  238. package/dist/esm/faundadb.js +5 -5
  239. package/dist/esm/getRelatedArticle.js +4 -4
  240. package/dist/esm/getRootDocGroup.js +4 -4
  241. package/dist/esm/getSerializers.js +23 -23
  242. package/dist/esm/{getTargeting-e6820763.js → getTargeting-277c801e.js} +11 -11
  243. package/dist/esm/getTargeting.js +5 -5
  244. package/dist/esm/{index-fd89ce38.js → index-604589b2.js} +518 -534
  245. package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
  246. package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
  247. package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
  248. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  249. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  250. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  251. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  252. package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
  253. package/dist/esm/index.js +40 -43
  254. package/dist/esm/{inherits-eeaf6740.js → inherits-2409637d.js} +4 -4
  255. package/dist/esm/inherits-77d5e4fc.js +101 -0
  256. package/dist/esm/{keys-a5ffafe7.js → keys-69989821.js} +2 -2
  257. package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
  258. package/dist/esm/main-e4a934b2.js +851 -0
  259. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  260. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  261. package/dist/esm/{slicedToArray-9c3bb613.js → slicedToArray-67a08c9c.js} +2 -2
  262. package/dist/esm/{stringify-ebc16384.js → stringify-70b72959.js} +1 -1
  263. package/dist/esm/timeDifferenceCalc.js +1 -1
  264. package/dist/esm/{toConsumableArray-e333293f.js → toConsumableArray-32282905.js} +2 -2
  265. package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
  266. package/dist/esm/{typeof-938ae770.js → typeof-c05a82ba.js} +3 -3
  267. package/dist/esm/urlFor.js +4 -4
  268. package/dist/esm/{ustream-api-d325d196.js → ustream-api-4c4fe0ba.js} +4 -4
  269. package/dist/esm/{web.dom.iterable-6b037ff9.js → web.dom.iterable-f8f967cd.js} +1 -1
  270. package/package.json +112 -111
  271. package/dist/cjs/main-bc7d4bf8.js +0 -972
  272. 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 core_getIteratorMethod = require('./core.get-iterator-method-5cb3af28.js');
7
- var toConsumableArray = require('./toConsumableArray-39fd0757.js');
8
- var _extends = require('./extends-1d905ddb.js');
9
- var inherits$1 = require('./inherits-1dcf1280.js');
10
- var _typeof$2 = require('./typeof-3dd6d3df.js');
6
+ var core_getIteratorMethod = require('./core.get-iterator-method-f3c44602.js');
7
+ var toConsumableArray = require('./toConsumableArray-c9b8a0d0.js');
8
+ var _extends$1 = require('./extends-eed4f016.js');
9
+ var inherits$1 = require('./inherits-cba9c846.js');
10
+ var _typeof = require('./typeof-5f52cf64.js');
11
11
  var React = require('react');
12
12
  var React__default = _interopDefault(React);
13
13
  var index = require('./index-98e01cb9.js');
@@ -15,28 +15,28 @@ 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
- var slicedToArray = require('./slicedToArray-0a78cdf3.js');
21
+ var slicedToArray = require('./slicedToArray-f6d4eaa8.js');
22
22
  var urlFor = require('./urlFor.js');
23
23
  var index$2 = require('./index-96b3db50.js');
24
- var main = require('./main-bc7d4bf8.js');
24
+ var main = require('./main-02daeefe.js');
25
25
  var entities = require('./entities-310b46ee.js');
26
26
  var Segment = require('./Segment.js');
27
27
  var Beam = require('./Beam.js');
28
28
  var AdSlot = require('./AdSlot.js');
29
29
  var Button = _interopDefault(require('react-bootstrap/Button'));
30
- var BlockContent = require('./BlockContent-bac780ac.js');
30
+ var BlockContent = require('./BlockContent-091a991f.js');
31
31
  var index$3 = require('./index-187c967e.js');
32
32
  var GroupDeck = require('./GroupDeck.js');
33
33
  var reactBootstrap = require('react-bootstrap');
34
- var index_esm = require('./index.esm-974f47d9.js');
34
+ var index_esm = require('./index.esm-90433435.js');
35
35
  var util = require('./util-f2c1b65b.js');
36
- var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-05029198.js');
36
+ var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
37
37
  var Head = _interopDefault(require('next/head'));
38
38
  var SocialShare = require('./SocialShare.js');
39
- var _objectToArray = require('./_object-to-array-18379aba.js');
39
+ var _objectToArray = require('./_object-to-array-9bac8737.js');
40
40
  var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
41
41
  var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
42
42
  var OverlayTrigger = _interopDefault(require('react-bootstrap/OverlayTrigger'));
@@ -107,18 +107,21 @@ var Slideshow = function Slideshow(_ref) {
107
107
  );
108
108
  };
109
109
 
110
- // do not edit .js files directly - edit src/index.jst
111
-
112
-
110
+ var isArray = Array.isArray;
111
+ var keyList = Object.keys;
112
+ var hasProp = Object.prototype.hasOwnProperty;
113
113
 
114
114
  var fastDeepEqual = function equal(a, b) {
115
115
  if (a === b) return true;
116
116
 
117
117
  if (a && b && typeof a == 'object' && typeof b == 'object') {
118
- if (a.constructor !== b.constructor) return false;
118
+ var arrA = isArray(a)
119
+ , arrB = isArray(b)
120
+ , i
121
+ , length
122
+ , key;
119
123
 
120
- var length, i, keys;
121
- if (Array.isArray(a)) {
124
+ if (arrA && arrB) {
122
125
  length = a.length;
123
126
  if (length != b.length) return false;
124
127
  for (i = length; i-- !== 0;)
@@ -126,29 +129,35 @@ var fastDeepEqual = function equal(a, b) {
126
129
  return true;
127
130
  }
128
131
 
132
+ if (arrA != arrB) return false;
129
133
 
134
+ var dateA = a instanceof Date
135
+ , dateB = b instanceof Date;
136
+ if (dateA != dateB) return false;
137
+ if (dateA && dateB) return a.getTime() == b.getTime();
130
138
 
131
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
132
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
133
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
139
+ var regexpA = a instanceof RegExp
140
+ , regexpB = b instanceof RegExp;
141
+ if (regexpA != regexpB) return false;
142
+ if (regexpA && regexpB) return a.toString() == b.toString();
134
143
 
135
- keys = Object.keys(a);
144
+ var keys = keyList(a);
136
145
  length = keys.length;
137
- if (length !== Object.keys(b).length) return false;
146
+
147
+ if (length !== keyList(b).length)
148
+ return false;
138
149
 
139
150
  for (i = length; i-- !== 0;)
140
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
151
+ if (!hasProp.call(b, keys[i])) return false;
141
152
 
142
153
  for (i = length; i-- !== 0;) {
143
- var key = keys[i];
144
-
154
+ key = keys[i];
145
155
  if (!equal(a[key], b[key])) return false;
146
156
  }
147
157
 
148
158
  return true;
149
159
  }
150
160
 
151
- // true if both NaN, false otherwise
152
161
  return a!==a && b!==b;
153
162
  };
154
163
 
@@ -1571,239 +1580,199 @@ module.exports = exports['default'];
1571
1580
 
1572
1581
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
1573
1582
 
1574
- 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); }
1575
-
1576
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1577
-
1578
- 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); } }
1579
-
1580
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1581
-
1582
- 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); }
1583
-
1584
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1585
-
1586
- 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); }; }
1587
-
1588
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1589
-
1590
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1583
+ 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; }; }();
1591
1584
 
1592
- 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; } }
1585
+ 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; };
1593
1586
 
1594
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1587
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1595
1588
 
1596
- 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; }
1589
+ 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; }
1597
1590
 
1598
- 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; }
1591
+ 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; }
1599
1592
 
1600
- 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; }
1601
- /**
1602
- * Check whether a `props` change should result in the video being updated.
1603
- *
1604
- * @param {Object} prevProps
1605
- * @param {Object} props
1593
+ /**
1594
+ * Check whether a `props` change should result in the video being updated.
1595
+ *
1596
+ * @param {Object} prevProps
1597
+ * @param {Object} props
1606
1598
  */
1607
-
1608
1599
  function shouldUpdateVideo(prevProps, props) {
1609
1600
  // A changing video should always trigger an update
1610
1601
  if (prevProps.videoId !== props.videoId) {
1611
1602
  return true;
1612
- } // Otherwise, a change in the start/end time playerVars also requires a player
1613
- // update.
1614
-
1603
+ }
1615
1604
 
1605
+ // Otherwise, a change in the start/end time playerVars also requires a player
1606
+ // update.
1616
1607
  var prevVars = prevProps.opts.playerVars || {};
1617
1608
  var vars = props.opts.playerVars || {};
1609
+
1618
1610
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1619
1611
  }
1620
- /**
1621
- * Neutralize API options that only require a video update, leaving only options
1622
- * that require a player reset. The results can then be compared to see if a
1623
- * player reset is necessary.
1624
- *
1625
- * @param {Object} opts
1626
- */
1627
-
1628
1612
 
1613
+ /**
1614
+ * Neutralise API options that only require a video update, leaving only options
1615
+ * that require a player reset. The results can then be compared to see if a
1616
+ * player reset is necessary.
1617
+ *
1618
+ * @param {Object} opts
1619
+ */
1629
1620
  function filterResetOptions(opts) {
1630
- return _objectSpread(_objectSpread({}, opts), {}, {
1631
- playerVars: _objectSpread({
1621
+ return _extends({}, opts, {
1622
+ playerVars: _extends({}, opts.playerVars, {
1632
1623
  autoplay: 0,
1633
1624
  start: 0,
1634
1625
  end: 0
1635
- }, opts.playerVars)
1626
+ })
1636
1627
  });
1637
1628
  }
1638
- /**
1639
- * Check whether a `props` change should result in the player being reset.
1640
- * The player is reset when the `props.opts` change, except if the only change
1641
- * is in the `start` and `end` playerVars, because a video update can deal with
1642
- * those.
1643
- *
1644
- * @param {Object} prevProps
1645
- * @param {Object} props
1646
- */
1647
-
1648
1629
 
1630
+ /**
1631
+ * Check whether a `props` change should result in the player being reset.
1632
+ * The player is reset when the `props.opts` change, except if the only change
1633
+ * is in the `start` and `end` playerVars, because a video update can deal with
1634
+ * those.
1635
+ *
1636
+ * @param {Object} prevProps
1637
+ * @param {Object} props
1638
+ */
1649
1639
  function shouldResetPlayer(prevProps, props) {
1650
1640
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1651
1641
  }
1652
- /**
1653
- * Check whether a props change should result in an id or className update.
1654
- *
1655
- * @param {Object} prevProps
1656
- * @param {Object} props
1657
- */
1658
-
1659
1642
 
1643
+ /**
1644
+ * Check whether a props change should result in an id or className update.
1645
+ *
1646
+ * @param {Object} prevProps
1647
+ * @param {Object} props
1648
+ */
1660
1649
  function shouldUpdatePlayer(prevProps, props) {
1661
1650
  return prevProps.id !== props.id || prevProps.className !== props.className;
1662
1651
  }
1663
1652
 
1664
- var YouTube = /*#__PURE__*/function (_React$Component) {
1653
+ var YouTube = function (_React$Component) {
1665
1654
  _inherits(YouTube, _React$Component);
1666
1655
 
1667
- var _super = _createSuper(YouTube);
1668
-
1669
- /**
1670
- * Expose PlayerState constants for convenience. These constants can also be
1671
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1672
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1673
- */
1674
1656
  function YouTube(props) {
1675
- var _this;
1676
-
1677
1657
  _classCallCheck(this, YouTube);
1678
1658
 
1679
- _this = _super.call(this, props);
1659
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1680
1660
 
1681
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1661
+ _this.onPlayerReady = function (event) {
1682
1662
  return _this.props.onReady(event);
1683
- });
1663
+ };
1684
1664
 
1685
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1665
+ _this.onPlayerError = function (event) {
1686
1666
  return _this.props.onError(event);
1687
- });
1667
+ };
1688
1668
 
1689
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1669
+ _this.onPlayerStateChange = function (event) {
1690
1670
  _this.props.onStateChange(event);
1691
-
1692
1671
  switch (event.data) {
1672
+
1693
1673
  case YouTube.PlayerState.ENDED:
1694
1674
  _this.props.onEnd(event);
1695
-
1696
1675
  break;
1697
1676
 
1698
1677
  case YouTube.PlayerState.PLAYING:
1699
1678
  _this.props.onPlay(event);
1700
-
1701
1679
  break;
1702
1680
 
1703
1681
  case YouTube.PlayerState.PAUSED:
1704
1682
  _this.props.onPause(event);
1705
-
1706
1683
  break;
1707
1684
  }
1708
- });
1685
+ };
1709
1686
 
1710
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1687
+ _this.onPlayerPlaybackRateChange = function (event) {
1711
1688
  return _this.props.onPlaybackRateChange(event);
1712
- });
1689
+ };
1713
1690
 
1714
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1691
+ _this.onPlayerPlaybackQualityChange = function (event) {
1715
1692
  return _this.props.onPlaybackQualityChange(event);
1716
- });
1693
+ };
1717
1694
 
1718
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1695
+ _this.createPlayer = function () {
1719
1696
  // do not attempt to create a player server-side, it won't work
1720
- if (typeof document === 'undefined') return; // create player
1721
-
1722
- var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
1697
+ if (typeof document === 'undefined') return;
1698
+ // create player
1699
+ var playerOpts = _extends({}, _this.props.opts, {
1723
1700
  // preload the `videoId` video if one is already given
1724
1701
  videoId: _this.props.videoId
1725
1702
  });
1726
-
1727
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1728
-
1703
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1704
+ // attach event handlers
1729
1705
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1730
-
1731
1706
  _this.internalPlayer.on('error', _this.onPlayerError);
1732
-
1733
1707
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1734
-
1735
1708
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1736
-
1737
1709
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1738
- });
1710
+ };
1739
1711
 
1740
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1712
+ _this.resetPlayer = function () {
1741
1713
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1742
- });
1714
+ };
1743
1715
 
1744
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1716
+ _this.updatePlayer = function () {
1745
1717
  _this.internalPlayer.getIframe().then(function (iframe) {
1746
1718
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1747
1719
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1748
1720
  });
1749
- });
1750
-
1751
- _defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
1752
- return _this.internalPlayer;
1753
- });
1721
+ };
1754
1722
 
1755
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1723
+ _this.updateVideo = function () {
1756
1724
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1757
1725
  _this.internalPlayer.stopVideo();
1758
-
1759
1726
  return;
1760
- } // set queueing options
1761
-
1727
+ }
1762
1728
 
1729
+ // set queueing options
1763
1730
  var autoplay = false;
1764
1731
  var opts = {
1765
1732
  videoId: _this.props.videoId
1766
1733
  };
1767
-
1768
1734
  if ('playerVars' in _this.props.opts) {
1769
1735
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1770
-
1771
1736
  if ('start' in _this.props.opts.playerVars) {
1772
1737
  opts.startSeconds = _this.props.opts.playerVars.start;
1773
1738
  }
1774
-
1775
1739
  if ('end' in _this.props.opts.playerVars) {
1776
1740
  opts.endSeconds = _this.props.opts.playerVars.end;
1777
1741
  }
1778
- } // if autoplay is enabled loadVideoById
1779
-
1742
+ }
1780
1743
 
1744
+ // if autoplay is enabled loadVideoById
1781
1745
  if (autoplay) {
1782
1746
  _this.internalPlayer.loadVideoById(opts);
1783
-
1784
1747
  return;
1785
- } // default behaviour just cues the video
1786
-
1787
-
1748
+ }
1749
+ // default behaviour just cues the video
1788
1750
  _this.internalPlayer.cueVideoById(opts);
1789
- });
1751
+ };
1790
1752
 
1791
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1753
+ _this.refContainer = function (container) {
1792
1754
  _this.container = container;
1793
- });
1755
+ };
1794
1756
 
1795
1757
  _this.container = null;
1796
1758
  _this.internalPlayer = null;
1797
1759
  return _this;
1798
1760
  }
1799
1761
 
1762
+ /**
1763
+ * Expose PlayerState constants for convenience. These constants can also be
1764
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1765
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1766
+ */
1767
+
1768
+
1800
1769
  _createClass(YouTube, [{
1801
- key: "componentDidMount",
1770
+ key: 'componentDidMount',
1802
1771
  value: function componentDidMount() {
1803
1772
  this.createPlayer();
1804
1773
  }
1805
1774
  }, {
1806
- key: "componentDidUpdate",
1775
+ key: 'componentDidUpdate',
1807
1776
  value: function componentDidUpdate(prevProps) {
1808
1777
  if (shouldUpdatePlayer(prevProps, this.props)) {
1809
1778
  this.updatePlayer();
@@ -1818,58 +1787,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1818
1787
  }
1819
1788
  }
1820
1789
  }, {
1821
- key: "componentWillUnmount",
1790
+ key: 'componentWillUnmount',
1822
1791
  value: function componentWillUnmount() {
1823
- /**
1824
- * Note: The `youtube-player` package that is used promisifies all YouTube
1825
- * Player API calls, which introduces a delay of a tick before it actually
1826
- * gets destroyed. Since React attempts to remove the element instantly
1827
- * this method isn't quick enough to reset the container element.
1792
+ /**
1793
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1794
+ * Player API calls, which introduces a delay of a tick before it actually
1795
+ * gets destroyed. Since React attempts to remove the element instantly
1796
+ * this method isn't quick enough to reset the container element.
1828
1797
  */
1829
1798
  this.internalPlayer.destroy();
1830
1799
  }
1831
- /**
1832
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1833
- *
1834
- * @param {Object} event
1835
- * @param {Object} target - player object
1800
+
1801
+ /**
1802
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1803
+ *
1804
+ * @param {Object} event
1805
+ * @param {Object} target - player object
1806
+ */
1807
+
1808
+
1809
+ /**
1810
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1811
+ *
1812
+ * @param {Object} event
1813
+ * @param {Integer} data - error type
1814
+ * @param {Object} target - player object
1815
+ */
1816
+
1817
+
1818
+ /**
1819
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1820
+ *
1821
+ * @param {Object} event
1822
+ * @param {Integer} data - status change type
1823
+ * @param {Object} target - actual YT player
1824
+ */
1825
+
1826
+
1827
+ /**
1828
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1829
+ *
1830
+ * @param {Object} event
1831
+ * @param {Float} data - playback rate
1832
+ * @param {Object} target - actual YT player
1833
+ */
1834
+
1835
+
1836
+ /**
1837
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1838
+ *
1839
+ * @param {Object} event
1840
+ * @param {String} data - playback quality
1841
+ * @param {Object} target - actual YT player
1842
+ */
1843
+
1844
+
1845
+ /**
1846
+ * Initialize the Youtube Player API on the container and attach event handlers
1847
+ */
1848
+
1849
+
1850
+ /**
1851
+ * Shorthand for destroying and then re-creating the Youtube Player
1852
+ */
1853
+
1854
+
1855
+ /**
1856
+ * Method to update the id and class of the Youtube Player iframe.
1857
+ * React should update this automatically but since the Youtube Player API
1858
+ * replaced the DIV that is mounted by React we need to do this manually.
1859
+ */
1860
+
1861
+
1862
+ /**
1863
+ * Call Youtube Player API methods to update the currently playing video.
1864
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1865
+ * Youtube Player API methods to update the video.
1836
1866
  */
1837
1867
 
1838
1868
  }, {
1839
- key: "render",
1869
+ key: 'render',
1840
1870
  value: function render() {
1841
- return /*#__PURE__*/React__default.createElement("div", {
1842
- className: this.props.containerClassName
1843
- }, /*#__PURE__*/React__default.createElement("div", {
1844
- id: this.props.id,
1845
- className: this.props.className,
1846
- ref: this.refContainer
1847
- }));
1871
+ return React__default.createElement(
1872
+ 'div',
1873
+ { className: this.props.containerClassName },
1874
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1875
+ );
1848
1876
  }
1849
1877
  }]);
1850
1878
 
1851
1879
  return YouTube;
1852
1880
  }(React__default.Component);
1853
1881
 
1854
- _defineProperty(YouTube, "PlayerState", {
1855
- UNSTARTED: -1,
1856
- ENDED: 0,
1857
- PLAYING: 1,
1858
- PAUSED: 2,
1859
- BUFFERING: 3,
1860
- CUED: 5
1861
- });
1862
-
1863
1882
  YouTube.propTypes = {
1864
1883
  videoId: PropTypes__default.string,
1884
+
1865
1885
  // custom ID for player element
1866
1886
  id: PropTypes__default.string,
1887
+
1867
1888
  // custom class name for player element
1868
1889
  className: PropTypes__default.string,
1869
1890
  // custom class name for player container element
1870
1891
  containerClassName: PropTypes__default.string,
1892
+
1871
1893
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1872
1894
  opts: PropTypes__default.objectOf(PropTypes__default.any),
1895
+
1873
1896
  // event subscriptions
1874
1897
  onReady: PropTypes__default.func,
1875
1898
  onError: PropTypes__default.func,
@@ -1881,7 +1904,6 @@ YouTube.propTypes = {
1881
1904
  onPlaybackQualityChange: PropTypes__default.func
1882
1905
  };
1883
1906
  YouTube.defaultProps = {
1884
- videoId: null,
1885
1907
  id: null,
1886
1908
  className: null,
1887
1909
  opts: {},
@@ -1895,6 +1917,14 @@ YouTube.defaultProps = {
1895
1917
  onPlaybackRateChange: function onPlaybackRateChange() {},
1896
1918
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1897
1919
  };
1920
+ YouTube.PlayerState = {
1921
+ UNSTARTED: -1,
1922
+ ENDED: 0,
1923
+ PLAYING: 1,
1924
+ PAUSED: 2,
1925
+ BUFFERING: 3,
1926
+ CUED: 5
1927
+ };
1898
1928
 
1899
1929
  var YouTubePlayer = function YouTubePlayer(_ref) {
1900
1930
  var url = _ref.url,
@@ -1933,8 +1963,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1933
1963
  var duration = player.getDuration();
1934
1964
  var queue = Math.floor(duration / 10);
1935
1965
  var segment = Math.floor(current / queue);
1936
- Beam.report_beam_video('Ready', main.main_18, duration, current, segment);
1937
- Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
1966
+ Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
1967
+ Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
1938
1968
  };
1939
1969
 
1940
1970
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1944,8 +1974,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1944
1974
  var segment = Math.floor(current / queue);
1945
1975
 
1946
1976
  if (!queueProgress.includes(segment)) {
1947
- Beam.report_beam_video('Segment', main.main_18, duration, current, segment);
1948
- Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
1977
+ Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
1978
+ Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
1949
1979
  queueProgress.push(segment);
1950
1980
  }
1951
1981
  };
@@ -1958,8 +1988,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1958
1988
  var queue = Math.floor(duration / 10);
1959
1989
  var segment = Math.floor(current / queue);
1960
1990
 
1961
- Beam.report_beam_video('Play', main.main_18, duration, current, segment);
1962
- Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
1991
+ Beam.report_beam_video('Play', main.main_16, duration, current, segment);
1992
+ Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
1963
1993
 
1964
1994
  if (!playReported) {
1965
1995
  setPlayReported(true);
@@ -1978,8 +2008,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1978
2008
  var queue = Math.floor(duration / 10);
1979
2009
  var segment = Math.floor(current / queue);
1980
2010
 
1981
- Beam.report_beam_video('End', main.main_18, duration, current, segment);
1982
- Segment.report_video_event('Video End', main.main_18, duration, current, segment);
2011
+ Beam.report_beam_video('End', main.main_16, duration, current, segment);
2012
+ Segment.report_video_event('Video End', main.main_16, duration, current, segment);
1983
2013
  setEndReported(true);
1984
2014
  clearInterval(intervalID);
1985
2015
  }
@@ -1992,8 +2022,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1992
2022
  var queue = Math.floor(duration / 10);
1993
2023
  var segment = Math.floor(current / queue);
1994
2024
 
1995
- Beam.report_beam_video('Pause', main.main_18, duration, current, segment);
1996
- Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
2025
+ Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
2026
+ Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
1997
2027
  };
1998
2028
 
1999
2029
  return React__default.createElement(
@@ -2182,7 +2212,7 @@ var Media = function Media(_ref) {
2182
2212
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2183
2213
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2184
2214
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2185
- React__default.createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2215
+ React__default.createElement('img', _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2186
2216
  )
2187
2217
  ),
2188
2218
  caption && React__default.createElement(
@@ -2195,7 +2225,7 @@ var Media = function Media(_ref) {
2195
2225
  } else if (caption && caption !== '') {
2196
2226
  return React__default.createElement(
2197
2227
  'a',
2198
- _extends._extends({}, uploadDoc.downloadMedia ? {
2228
+ _extends$1._extends({}, uploadDoc.downloadMedia ? {
2199
2229
  href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
2200
2230
  } : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2201
2231
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2250,8 +2280,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2250
2280
  var duration = player.duration;
2251
2281
  var queue = Math.floor(duration / 10);
2252
2282
  var segment = Math.floor(current / queue);
2253
- Beam.report_beam_video('Ready', main.main_18, duration, current, segment, 'MP4');
2254
- Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'MP4');
2283
+ Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'MP4');
2284
+ Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
2255
2285
  };
2256
2286
 
2257
2287
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -2260,8 +2290,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2260
2290
  var queue = Math.floor(duration / 10);
2261
2291
  var segment = Math.floor(current / queue);
2262
2292
  if (!queueProgress.includes(segment)) {
2263
- Beam.report_beam_video('Segment', main.main_18, duration, current, segment, 'MP4');
2264
- Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'MP4');
2293
+ Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'MP4');
2294
+ Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
2265
2295
  queueProgress.push(segment);
2266
2296
  }
2267
2297
  };
@@ -2273,8 +2303,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2273
2303
  var duration = player.duration;
2274
2304
  var queue = Math.floor(duration / 10);
2275
2305
  var segment = Math.floor(current / queue);
2276
- Beam.report_beam_video('Play', main.main_18, duration, current, segment, 'MP4');
2277
- Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'MP4');
2306
+ Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'MP4');
2307
+ Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
2278
2308
 
2279
2309
  if (!playReported) {
2280
2310
  event.persist();
@@ -2294,8 +2324,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2294
2324
  var queue = Math.floor(duration / 10);
2295
2325
  var segment = Math.floor(current / queue);
2296
2326
 
2297
- Beam.report_beam_video('End', main.main_18, duration, current, segment, 'MP4');
2298
- Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'MP4');
2327
+ Beam.report_beam_video('End', main.main_16, duration, current, segment, 'MP4');
2328
+ Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
2299
2329
  setEndReported(true);
2300
2330
  clearInterval(intervalID);
2301
2331
  }
@@ -2307,8 +2337,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2307
2337
  var duration = player.duration - current;
2308
2338
  var queue = Math.floor(duration / 10);
2309
2339
  var segment = Math.floor(current / queue);
2310
- Beam.report_beam_video('Pause', main.main_18, duration, current, segment, 'MP4');
2311
- Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'MP4');
2340
+ Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'MP4');
2341
+ Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
2312
2342
  };
2313
2343
 
2314
2344
  return React__default.createElement(
@@ -2369,7 +2399,7 @@ var Video = function Video(_ref) {
2369
2399
  var onVideoSuccess = function onVideoSuccess(success) {
2370
2400
  //console.log('success:', success.ref)
2371
2401
  var player = success.ref;
2372
- if (_typeof$2._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2402
+ if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2373
2403
  player.ima3.settings.debug = true;
2374
2404
  if (targeting.content_placement && targeting.document_url) {
2375
2405
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2397,8 +2427,8 @@ var Video = function Video(_ref) {
2397
2427
  player.pause();
2398
2428
  }
2399
2429
 
2400
- Beam.report_beam_video('Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2401
- Segment.report_video_event('Video Ready', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2430
+ Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2431
+ Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2402
2432
  });
2403
2433
 
2404
2434
  // play
@@ -2407,8 +2437,8 @@ var Video = function Video(_ref) {
2407
2437
  var current = player.currentTime();
2408
2438
  var queue = Math.floor(duration / 10);
2409
2439
  var segment = Math.floor(current / queue);
2410
- Beam.report_beam_video('Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2411
- Segment.report_video_event('Video Play', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2440
+ Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2441
+ Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2412
2442
  });
2413
2443
 
2414
2444
  // pause
@@ -2417,8 +2447,8 @@ var Video = function Video(_ref) {
2417
2447
  var current = player.currentTime();
2418
2448
  var queue = Math.floor(duration / 10);
2419
2449
  var segment = Math.floor(current / queue);
2420
- Beam.report_beam_video('Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2421
- Segment.report_video_event('Video Pause', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2450
+ Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2451
+ Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2422
2452
  });
2423
2453
 
2424
2454
  // end
@@ -2427,8 +2457,8 @@ var Video = function Video(_ref) {
2427
2457
  var current = player.currentTime();
2428
2458
  var queue = Math.floor(duration / 10);
2429
2459
  var segment = Math.floor(current / queue);
2430
- Beam.report_beam_video('End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2431
- Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2460
+ Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2461
+ Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2432
2462
  autoplayNextVideo(evt);
2433
2463
  });
2434
2464
 
@@ -2439,8 +2469,8 @@ var Video = function Video(_ref) {
2439
2469
  var queue = Math.floor(duration / 10);
2440
2470
  var segment = Math.floor(current / queue);
2441
2471
  if (!queueProgress.includes(segment)) {
2442
- Beam.report_beam_video('Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2443
- Segment.report_video_event('Video Segment', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2472
+ Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2473
+ Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2444
2474
  queueProgress.push(segment);
2445
2475
  }
2446
2476
  });
@@ -2451,8 +2481,8 @@ var Video = function Video(_ref) {
2451
2481
  var id = player.ads.ad.id;
2452
2482
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2453
2483
 
2454
- Beam.report_beam_ad('AD Started', main.main_18, '', '', '', '', '', adType, duration, id);
2455
- Segment.report_ad_event('Video Ad Started', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2484
+ Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
2485
+ Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2456
2486
  });
2457
2487
 
2458
2488
  // ad ended
@@ -2460,8 +2490,8 @@ var Video = function Video(_ref) {
2460
2490
  var duration = player.ads.ad.duration;
2461
2491
  var id = player.ads.ad.id;
2462
2492
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2463
- Beam.report_beam_ad('AD Ended', main.main_18, '', '', '', '', '', adType, duration, id);
2464
- Segment.report_ad_event('Video Ad Ended', main.main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2493
+ Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
2494
+ Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2465
2495
  });
2466
2496
  };
2467
2497
 
@@ -2891,17 +2921,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2891
2921
 
2892
2922
  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; }
2893
2923
 
2894
- 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; } } }; }
2924
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2895
2925
 
2896
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2926
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2897
2927
 
2898
- 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."); }
2899
-
2900
- 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); }
2901
-
2902
- 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; }
2903
-
2904
- 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; }
2928
+ 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; }
2905
2929
 
2906
2930
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2907
2931
 
@@ -3031,12 +3055,12 @@ function getSDK(url, sdkGlobal) {
3031
3055
 
3032
3056
  function getConfig(props$1, defaultProps, showWarning) {
3033
3057
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
3034
-
3035
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
3036
- _step;
3058
+ var _iteratorNormalCompletion = true;
3059
+ var _didIteratorError = false;
3060
+ var _iteratorError = undefined;
3037
3061
 
3038
3062
  try {
3039
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3063
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3040
3064
  var p = _step.value;
3041
3065
 
3042
3066
  if (props$1[p]) {
@@ -3051,9 +3075,18 @@ function getConfig(props$1, defaultProps, showWarning) {
3051
3075
  }
3052
3076
  }
3053
3077
  } catch (err) {
3054
- _iterator.e(err);
3078
+ _didIteratorError = true;
3079
+ _iteratorError = err;
3055
3080
  } finally {
3056
- _iterator.f();
3081
+ try {
3082
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
3083
+ _iterator["return"]();
3084
+ }
3085
+ } finally {
3086
+ if (_didIteratorError) {
3087
+ throw _iteratorError;
3088
+ }
3089
+ }
3057
3090
  }
3058
3091
 
3059
3092
  return config;
@@ -3200,16 +3233,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3200
3233
 
3201
3234
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3202
3235
 
3203
- 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); }; }
3204
-
3205
3236
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3206
3237
 
3207
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3208
-
3209
- 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; } }
3210
-
3211
3238
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3212
3239
 
3240
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3241
+
3213
3242
  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); }
3214
3243
 
3215
3244
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3218,12 +3247,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3218
3247
 
3219
3248
  var SEEK_ON_PLAY_EXPIRY = 5000;
3220
3249
 
3221
- var Player = /*#__PURE__*/function (_Component) {
3250
+ var Player =
3251
+ /*#__PURE__*/
3252
+ function (_Component) {
3222
3253
  _inherits(Player, _Component);
3223
3254
 
3224
- var _super = _createSuper(Player);
3225
-
3226
3255
  function Player() {
3256
+ var _getPrototypeOf2;
3257
+
3227
3258
  var _this;
3228
3259
 
3229
3260
  _classCallCheck(this, Player);
@@ -3232,7 +3263,7 @@ var Player = /*#__PURE__*/function (_Component) {
3232
3263
  _args[_key] = arguments[_key];
3233
3264
  }
3234
3265
 
3235
- _this = _super.call.apply(_super, [this].concat(_args));
3266
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3236
3267
 
3237
3268
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3238
3269
 
@@ -3557,7 +3588,7 @@ var Player = /*#__PURE__*/function (_Component) {
3557
3588
  return null;
3558
3589
  }
3559
3590
 
3560
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3591
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3561
3592
  ref: this.ref,
3562
3593
  onReady: this.handleReady,
3563
3594
  onPlay: this.handlePlay,
@@ -3618,16 +3649,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3618
3649
 
3619
3650
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3620
3651
 
3621
- 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); }; }
3622
-
3623
3652
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3624
3653
 
3625
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3626
-
3627
- 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; } }
3628
-
3629
3654
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3630
3655
 
3656
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3657
+
3631
3658
  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); }
3632
3659
 
3633
3660
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3639,12 +3666,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3639
3666
  function createSinglePlayer(activePlayer) {
3640
3667
  var _class, _temp;
3641
3668
 
3642
- return _temp = _class = /*#__PURE__*/function (_Component) {
3669
+ return _temp = _class =
3670
+ /*#__PURE__*/
3671
+ function (_Component) {
3643
3672
  _inherits(SinglePlayer, _Component);
3644
3673
 
3645
- var _super = _createSuper(SinglePlayer);
3646
-
3647
3674
  function SinglePlayer() {
3675
+ var _getPrototypeOf2;
3676
+
3648
3677
  var _this;
3649
3678
 
3650
3679
  _classCallCheck(this, SinglePlayer);
@@ -3653,7 +3682,7 @@ function createSinglePlayer(activePlayer) {
3653
3682
  args[_key] = arguments[_key];
3654
3683
  }
3655
3684
 
3656
- _this = _super.call.apply(_super, [this].concat(args));
3685
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3657
3686
 
3658
3687
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3659
3688
 
@@ -3721,12 +3750,12 @@ function createSinglePlayer(activePlayer) {
3721
3750
  height = _this$props.height,
3722
3751
  Wrapper = _this$props.wrapper;
3723
3752
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3724
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3753
+ return _react["default"].createElement(Wrapper, _extends({
3725
3754
  style: _objectSpread({}, style, {
3726
3755
  width: width,
3727
3756
  height: height
3728
3757
  })
3729
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3758
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3730
3759
  ref: this.ref,
3731
3760
  activePlayer: activePlayer,
3732
3761
  config: this.config
@@ -3772,31 +3801,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3772
3801
 
3773
3802
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3774
3803
 
3775
- 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); }; }
3776
-
3777
3804
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3778
3805
 
3779
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3780
-
3781
- 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; } }
3782
-
3783
3806
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3784
3807
 
3808
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3809
+
3785
3810
  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); }
3786
3811
 
3787
3812
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3788
3813
 
3789
3814
  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; }
3790
3815
 
3791
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3816
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3792
3817
 
3793
- 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."); }
3818
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3794
3819
 
3795
- 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); }
3796
-
3797
- 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; }
3798
-
3799
- 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; }
3820
+ 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; }
3800
3821
 
3801
3822
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3802
3823
 
@@ -3821,12 +3842,14 @@ function parsePlaylist(url) {
3821
3842
  return {};
3822
3843
  }
3823
3844
 
3824
- var YouTube = /*#__PURE__*/function (_Component) {
3845
+ var YouTube =
3846
+ /*#__PURE__*/
3847
+ function (_Component) {
3825
3848
  _inherits(YouTube, _Component);
3826
3849
 
3827
- var _super = _createSuper(YouTube);
3828
-
3829
3850
  function YouTube() {
3851
+ var _getPrototypeOf2;
3852
+
3830
3853
  var _this;
3831
3854
 
3832
3855
  _classCallCheck(this, YouTube);
@@ -3835,7 +3858,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3835
3858
  args[_key] = arguments[_key];
3836
3859
  }
3837
3860
 
3838
- _this = _super.call.apply(_super, [this].concat(args));
3861
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3839
3862
 
3840
3863
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3841
3864
 
@@ -4023,9 +4046,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
4023
4046
  height: '100%',
4024
4047
  display: display
4025
4048
  };
4026
- return /*#__PURE__*/_react["default"].createElement("div", {
4049
+ return _react["default"].createElement("div", {
4027
4050
  style: style
4028
- }, /*#__PURE__*/_react["default"].createElement("div", {
4051
+ }, _react["default"].createElement("div", {
4029
4052
  ref: this.ref
4030
4053
  }));
4031
4054
  }
@@ -4081,16 +4104,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4081
4104
 
4082
4105
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4083
4106
 
4084
- 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); }; }
4085
-
4086
4107
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4087
4108
 
4088
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4089
-
4090
- 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; } }
4091
-
4092
4109
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4093
4110
 
4111
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4112
+
4094
4113
  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); }
4095
4114
 
4096
4115
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4099,14 +4118,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4099
4118
 
4100
4119
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
4101
4120
  var SDK_GLOBAL = 'SC';
4102
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
4121
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
4103
4122
 
4104
- var SoundCloud = /*#__PURE__*/function (_Component) {
4123
+ var SoundCloud =
4124
+ /*#__PURE__*/
4125
+ function (_Component) {
4105
4126
  _inherits(SoundCloud, _Component);
4106
4127
 
4107
- var _super = _createSuper(SoundCloud);
4108
-
4109
4128
  function SoundCloud() {
4129
+ var _getPrototypeOf2;
4130
+
4110
4131
  var _this;
4111
4132
 
4112
4133
  _classCallCheck(this, SoundCloud);
@@ -4115,7 +4136,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4115
4136
  args[_key] = arguments[_key];
4116
4137
  }
4117
4138
 
4118
- _this = _super.call.apply(_super, [this].concat(args));
4139
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
4119
4140
 
4120
4141
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4121
4142
 
@@ -4236,7 +4257,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4236
4257
  height: '100%',
4237
4258
  display: display
4238
4259
  };
4239
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4260
+ return _react["default"].createElement("iframe", {
4240
4261
  ref: this.ref,
4241
4262
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4242
4263
  style: style,
@@ -4298,16 +4319,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4298
4319
 
4299
4320
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4300
4321
 
4301
- 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); }; }
4302
-
4303
4322
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4304
4323
 
4305
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4306
-
4307
- 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; } }
4308
-
4309
4324
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4310
4325
 
4326
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4327
+
4311
4328
  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); }
4312
4329
 
4313
4330
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4319,12 +4336,14 @@ var SDK_GLOBAL = 'Vimeo';
4319
4336
  var MATCH_URL = /vimeo\.com\/.+/;
4320
4337
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4321
4338
 
4322
- var Vimeo = /*#__PURE__*/function (_Component) {
4339
+ var Vimeo =
4340
+ /*#__PURE__*/
4341
+ function (_Component) {
4323
4342
  _inherits(Vimeo, _Component);
4324
4343
 
4325
- var _super = _createSuper(Vimeo);
4326
-
4327
4344
  function Vimeo() {
4345
+ var _getPrototypeOf2;
4346
+
4328
4347
  var _this;
4329
4348
 
4330
4349
  _classCallCheck(this, Vimeo);
@@ -4333,7 +4352,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4333
4352
  args[_key] = arguments[_key];
4334
4353
  }
4335
4354
 
4336
- _this = _super.call.apply(_super, [this].concat(args));
4355
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4337
4356
 
4338
4357
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4339
4358
 
@@ -4490,7 +4509,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4490
4509
  overflow: 'hidden',
4491
4510
  display: display
4492
4511
  };
4493
- return /*#__PURE__*/_react["default"].createElement("div", {
4512
+ return _react["default"].createElement("div", {
4494
4513
  key: this.props.url,
4495
4514
  ref: this.ref,
4496
4515
  style: style
@@ -4550,16 +4569,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4550
4569
 
4551
4570
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4552
4571
 
4553
- 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); }; }
4554
-
4555
4572
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4556
4573
 
4557
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4558
-
4559
- 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; } }
4560
-
4561
4574
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4562
4575
 
4576
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4577
+
4563
4578
  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); }
4564
4579
 
4565
4580
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4572,12 +4587,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4572
4587
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4573
4588
  var PLAYER_ID_PREFIX = 'facebook-player-';
4574
4589
 
4575
- var Facebook = /*#__PURE__*/function (_Component) {
4590
+ var Facebook =
4591
+ /*#__PURE__*/
4592
+ function (_Component) {
4576
4593
  _inherits(Facebook, _Component);
4577
4594
 
4578
- var _super = _createSuper(Facebook);
4579
-
4580
4595
  function Facebook() {
4596
+ var _getPrototypeOf2;
4597
+
4581
4598
  var _this;
4582
4599
 
4583
4600
  _classCallCheck(this, Facebook);
@@ -4586,7 +4603,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4586
4603
  args[_key] = arguments[_key];
4587
4604
  }
4588
4605
 
4589
- _this = _super.call.apply(_super, [this].concat(args));
4606
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4590
4607
 
4591
4608
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4592
4609
 
@@ -4702,7 +4719,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4702
4719
  width: '100%',
4703
4720
  height: '100%'
4704
4721
  };
4705
- return /*#__PURE__*/_react["default"].createElement("div", {
4722
+ return _react["default"].createElement("div", {
4706
4723
  style: style,
4707
4724
  id: this.playerID,
4708
4725
  className: "fb-video",
@@ -4762,16 +4779,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4762
4779
 
4763
4780
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4764
4781
 
4765
- 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); }; }
4766
-
4767
4782
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4768
4783
 
4769
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4770
-
4771
- 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; } }
4772
-
4773
4784
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4774
4785
 
4786
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4787
+
4775
4788
  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); }
4776
4789
 
4777
4790
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4782,12 +4795,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4782
4795
  var SDK_GLOBAL = 'playerjs';
4783
4796
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4784
4797
 
4785
- var Streamable = /*#__PURE__*/function (_Component) {
4798
+ var Streamable =
4799
+ /*#__PURE__*/
4800
+ function (_Component) {
4786
4801
  _inherits(Streamable, _Component);
4787
4802
 
4788
- var _super = _createSuper(Streamable);
4789
-
4790
4803
  function Streamable() {
4804
+ var _getPrototypeOf2;
4805
+
4791
4806
  var _this;
4792
4807
 
4793
4808
  _classCallCheck(this, Streamable);
@@ -4796,7 +4811,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4796
4811
  args[_key] = arguments[_key];
4797
4812
  }
4798
4813
 
4799
- _this = _super.call.apply(_super, [this].concat(args));
4814
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4800
4815
 
4801
4816
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4802
4817
 
@@ -4916,7 +4931,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4916
4931
  width: '100%',
4917
4932
  height: '100%'
4918
4933
  };
4919
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4934
+ return _react["default"].createElement("iframe", {
4920
4935
  ref: this.ref,
4921
4936
  src: "https://streamable.com/o/".concat(id),
4922
4937
  frameBorder: "0",
@@ -4977,16 +4992,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4977
4992
 
4978
4993
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4979
4994
 
4980
- 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); }; }
4981
-
4982
4995
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4983
4996
 
4984
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4985
-
4986
- 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; } }
4987
-
4988
4997
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4989
4998
 
4999
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5000
+
4990
5001
  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); }
4991
5002
 
4992
5003
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4997,48 +5008,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4997
5008
  var SDK_GLOBAL = 'Wistia';
4998
5009
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4999
5010
 
5000
- var Wistia = /*#__PURE__*/function (_Component) {
5011
+ var Wistia =
5012
+ /*#__PURE__*/
5013
+ function (_Component) {
5001
5014
  _inherits(Wistia, _Component);
5002
5015
 
5003
- var _super = _createSuper(Wistia);
5004
-
5005
5016
  function Wistia() {
5017
+ var _getPrototypeOf2;
5018
+
5006
5019
  var _this;
5007
5020
 
5008
5021
  _classCallCheck(this, Wistia);
5009
5022
 
5010
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
5011
- _args[_key] = arguments[_key];
5023
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5024
+ args[_key] = arguments[_key];
5012
5025
  }
5013
5026
 
5014
- _this = _super.call.apply(_super, [this].concat(_args));
5027
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
5015
5028
 
5016
5029
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5017
5030
 
5018
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
5019
- var _this$props;
5020
-
5021
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
5022
- });
5023
-
5024
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
5025
- var _this$props2;
5026
-
5027
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
5028
- });
5029
-
5030
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
5031
- var _this$props3;
5032
-
5033
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
5034
- });
5035
-
5036
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
5037
- var _this$props4;
5038
-
5039
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
5040
- });
5041
-
5042
5031
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
5043
5032
  _this.callPlayer('mute');
5044
5033
  });
@@ -5060,13 +5049,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
5060
5049
  value: function load(url) {
5061
5050
  var _this2 = this;
5062
5051
 
5063
- var _this$props5 = this.props,
5064
- playing = _this$props5.playing,
5065
- muted = _this$props5.muted,
5066
- controls = _this$props5.controls,
5067
- _onReady = _this$props5.onReady,
5068
- config = _this$props5.config,
5069
- onError = _this$props5.onError;
5052
+ var _this$props = this.props,
5053
+ playing = _this$props.playing,
5054
+ muted = _this$props.muted,
5055
+ controls = _this$props.controls,
5056
+ _onReady = _this$props.onReady,
5057
+ onPlay = _this$props.onPlay,
5058
+ onPause = _this$props.onPause,
5059
+ onSeek = _this$props.onSeek,
5060
+ onEnded = _this$props.onEnded,
5061
+ config = _this$props.config,
5062
+ onError = _this$props.onError;
5070
5063
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
5071
5064
  window._wq = window._wq || [];
5072
5065
 
@@ -5083,28 +5076,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5083
5076
 
5084
5077
  _this2.unbind();
5085
5078
 
5086
- _this2.player.bind('play', _this2.onPlay);
5079
+ _this2.player.bind('play', onPlay);
5087
5080
 
5088
- _this2.player.bind('pause', _this2.onPause);
5081
+ _this2.player.bind('pause', onPause);
5089
5082
 
5090
- _this2.player.bind('seek', _this2.onSeek);
5083
+ _this2.player.bind('seek', onSeek);
5091
5084
 
5092
- _this2.player.bind('end', _this2.onEnded);
5085
+ _this2.player.bind('end', onEnded);
5093
5086
 
5094
5087
  _onReady();
5095
5088
  }
5096
5089
  });
5097
5090
  }, onError);
5098
5091
  }
5099
- }, {
5100
- key: "unbind",
5101
- value: function unbind() {
5102
- this.player.unbind('play', this.onPlay);
5103
- this.player.unbind('pause', this.onPause);
5104
- this.player.unbind('seek', this.onSeek);
5105
- this.player.unbind('end', this.onEnded);
5106
- } // Proxy methods to prevent listener leaks
5107
-
5108
5092
  }, {
5109
5093
  key: "play",
5110
5094
  value: function play() {
@@ -5115,6 +5099,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5115
5099
  value: function pause() {
5116
5100
  this.callPlayer('pause');
5117
5101
  }
5102
+ }, {
5103
+ key: "unbind",
5104
+ value: function unbind() {
5105
+ var _this$props2 = this.props,
5106
+ onPlay = _this$props2.onPlay,
5107
+ onPause = _this$props2.onPause,
5108
+ onSeek = _this$props2.onSeek,
5109
+ onEnded = _this$props2.onEnded;
5110
+ this.player.unbind('play', onPlay);
5111
+ this.player.unbind('pause', onPause);
5112
+ this.player.unbind('seek', onSeek);
5113
+ this.player.unbind('end', onEnded);
5114
+ }
5118
5115
  }, {
5119
5116
  key: "stop",
5120
5117
  value: function stop() {
@@ -5160,7 +5157,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
5160
5157
  width: '100%',
5161
5158
  height: '100%'
5162
5159
  };
5163
- return /*#__PURE__*/_react["default"].createElement("div", {
5160
+ return _react["default"].createElement("div", {
5164
5161
  key: id,
5165
5162
  className: className,
5166
5163
  style: style
@@ -5220,16 +5217,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5220
5217
 
5221
5218
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5222
5219
 
5223
- 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); }; }
5224
-
5225
5220
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5226
5221
 
5227
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5228
-
5229
- 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; } }
5230
-
5231
5222
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5232
5223
 
5224
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5225
+
5233
5226
  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); }
5234
5227
 
5235
5228
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5242,12 +5235,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5242
5235
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5243
5236
  var PLAYER_ID_PREFIX = 'twitch-player-';
5244
5237
 
5245
- var Twitch = /*#__PURE__*/function (_Component) {
5238
+ var Twitch =
5239
+ /*#__PURE__*/
5240
+ function (_Component) {
5246
5241
  _inherits(Twitch, _Component);
5247
5242
 
5248
- var _super = _createSuper(Twitch);
5249
-
5250
5243
  function Twitch() {
5244
+ var _getPrototypeOf2;
5245
+
5251
5246
  var _this;
5252
5247
 
5253
5248
  _classCallCheck(this, Twitch);
@@ -5256,7 +5251,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5256
5251
  args[_key] = arguments[_key];
5257
5252
  }
5258
5253
 
5259
- _this = _super.call.apply(_super, [this].concat(args));
5254
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5260
5255
 
5261
5256
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5262
5257
 
@@ -5377,7 +5372,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5377
5372
  width: '100%',
5378
5373
  height: '100%'
5379
5374
  };
5380
- return /*#__PURE__*/_react["default"].createElement("div", {
5375
+ return _react["default"].createElement("div", {
5381
5376
  style: style,
5382
5377
  id: this.playerID
5383
5378
  });
@@ -5430,15 +5425,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5430
5425
 
5431
5426
  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; }
5432
5427
 
5433
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5434
-
5435
- 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."); }
5428
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5436
5429
 
5437
- 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); }
5430
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5438
5431
 
5439
- 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; }
5440
-
5441
- 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; }
5432
+ 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; }
5442
5433
 
5443
5434
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5444
5435
 
@@ -5448,16 +5439,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5448
5439
 
5449
5440
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5450
5441
 
5451
- 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); }; }
5452
-
5453
5442
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5454
5443
 
5455
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5456
-
5457
- 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; } }
5458
-
5459
5444
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5460
5445
 
5446
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5447
+
5461
5448
  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); }
5462
5449
 
5463
5450
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5469,12 +5456,14 @@ var SDK_GLOBAL = 'DM';
5469
5456
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5470
5457
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5471
5458
 
5472
- var DailyMotion = /*#__PURE__*/function (_Component) {
5459
+ var DailyMotion =
5460
+ /*#__PURE__*/
5461
+ function (_Component) {
5473
5462
  _inherits(DailyMotion, _Component);
5474
5463
 
5475
- var _super = _createSuper(DailyMotion);
5476
-
5477
5464
  function DailyMotion() {
5465
+ var _getPrototypeOf2;
5466
+
5478
5467
  var _this;
5479
5468
 
5480
5469
  _classCallCheck(this, DailyMotion);
@@ -5483,7 +5472,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5483
5472
  args[_key] = arguments[_key];
5484
5473
  }
5485
5474
 
5486
- _this = _super.call.apply(_super, [this].concat(args));
5475
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5487
5476
 
5488
5477
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5489
5478
 
@@ -5612,9 +5601,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5612
5601
  height: '100%',
5613
5602
  display: display
5614
5603
  };
5615
- return /*#__PURE__*/_react["default"].createElement("div", {
5604
+ return _react["default"].createElement("div", {
5616
5605
  style: style
5617
- }, /*#__PURE__*/_react["default"].createElement("div", {
5606
+ }, _react["default"].createElement("div", {
5618
5607
  ref: this.ref
5619
5608
  }));
5620
5609
  }
@@ -5672,16 +5661,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5672
5661
 
5673
5662
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5674
5663
 
5675
- 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); }; }
5676
-
5677
5664
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5678
5665
 
5679
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5680
-
5681
- 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; } }
5682
-
5683
5666
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5684
5667
 
5668
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5669
+
5685
5670
  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); }
5686
5671
 
5687
5672
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5692,12 +5677,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5692
5677
  var SDK_GLOBAL = 'Mixcloud';
5693
5678
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5694
5679
 
5695
- var Mixcloud = /*#__PURE__*/function (_Component) {
5680
+ var Mixcloud =
5681
+ /*#__PURE__*/
5682
+ function (_Component) {
5696
5683
  _inherits(Mixcloud, _Component);
5697
5684
 
5698
- var _super = _createSuper(Mixcloud);
5699
-
5700
5685
  function Mixcloud() {
5686
+ var _getPrototypeOf2;
5687
+
5701
5688
  var _this;
5702
5689
 
5703
5690
  _classCallCheck(this, Mixcloud);
@@ -5706,7 +5693,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5706
5693
  args[_key] = arguments[_key];
5707
5694
  }
5708
5695
 
5709
- _this = _super.call.apply(_super, [this].concat(args));
5696
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5710
5697
 
5711
5698
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5712
5699
 
@@ -5809,7 +5796,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5809
5796
  })); // We have to give the iframe a key here to prevent a
5810
5797
  // weird dialog appearing when loading a new track
5811
5798
 
5812
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5799
+ return _react["default"].createElement("iframe", {
5813
5800
  key: id,
5814
5801
  ref: this.ref,
5815
5802
  style: style,
@@ -5869,33 +5856,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5869
5856
 
5870
5857
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5871
5858
 
5872
- 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); }; }
5873
-
5874
5859
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5875
5860
 
5876
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5877
-
5878
- 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; } }
5879
-
5880
5861
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5881
5862
 
5863
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5864
+
5882
5865
  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); }
5883
5866
 
5884
5867
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5885
5868
 
5886
5869
  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; }
5887
5870
 
5888
- 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; } } }; }
5889
-
5890
- 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); }
5891
-
5892
- 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; }
5893
-
5894
5871
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5895
5872
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5896
5873
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5897
5874
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5898
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5875
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5899
5876
  var HLS_GLOBAL = 'Hls';
5900
5877
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5901
5878
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5904,11 +5881,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5904
5881
 
5905
5882
  function canPlay(url) {
5906
5883
  if (url instanceof Array) {
5907
- var _iterator = _createForOfIteratorHelper(url),
5908
- _step;
5884
+ var _iteratorNormalCompletion = true;
5885
+ var _didIteratorError = false;
5886
+ var _iteratorError = undefined;
5909
5887
 
5910
5888
  try {
5911
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5889
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5912
5890
  var item = _step.value;
5913
5891
 
5914
5892
  if (typeof item === 'string' && canPlay(item)) {
@@ -5920,9 +5898,18 @@ function canPlay(url) {
5920
5898
  }
5921
5899
  }
5922
5900
  } catch (err) {
5923
- _iterator.e(err);
5901
+ _didIteratorError = true;
5902
+ _iteratorError = err;
5924
5903
  } finally {
5925
- _iterator.f();
5904
+ try {
5905
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5906
+ _iterator["return"]();
5907
+ }
5908
+ } finally {
5909
+ if (_didIteratorError) {
5910
+ throw _iteratorError;
5911
+ }
5912
+ }
5926
5913
  }
5927
5914
 
5928
5915
  return false;
@@ -5946,12 +5933,14 @@ function canEnablePIP(url) {
5946
5933
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5947
5934
  }
5948
5935
 
5949
- var FilePlayer = /*#__PURE__*/function (_Component) {
5936
+ var FilePlayer =
5937
+ /*#__PURE__*/
5938
+ function (_Component) {
5950
5939
  _inherits(FilePlayer, _Component);
5951
5940
 
5952
- var _super = _createSuper(FilePlayer);
5953
-
5954
5941
  function FilePlayer() {
5942
+ var _getPrototypeOf2;
5943
+
5955
5944
  var _this;
5956
5945
 
5957
5946
  _classCallCheck(this, FilePlayer);
@@ -5960,7 +5949,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5960
5949
  _args[_key] = arguments[_key];
5961
5950
  }
5962
5951
 
5963
- _this = _super.call.apply(_super, [this].concat(_args));
5952
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5964
5953
 
5965
5954
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5966
5955
  var _this$props;
@@ -6047,19 +6036,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6047
6036
 
6048
6037
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
6049
6038
  if (typeof source === 'string') {
6050
- return /*#__PURE__*/_react["default"].createElement("source", {
6039
+ return _react["default"].createElement("source", {
6051
6040
  key: index,
6052
6041
  src: source
6053
6042
  });
6054
6043
  }
6055
6044
 
6056
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
6045
+ return _react["default"].createElement("source", _extends({
6057
6046
  key: index
6058
6047
  }, source));
6059
6048
  });
6060
6049
 
6061
6050
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
6062
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
6051
+ return _react["default"].createElement("track", _extends({
6063
6052
  key: index
6064
6053
  }, track));
6065
6054
  });
@@ -6097,10 +6086,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6097
6086
  key: "componentWillUnmount",
6098
6087
  value: function componentWillUnmount() {
6099
6088
  this.removeListeners(this.player);
6100
-
6101
- if (this.hls) {
6102
- this.hls.destroy();
6103
- }
6104
6089
  }
6105
6090
  }, {
6106
6091
  key: "addListeners",
@@ -6231,6 +6216,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6231
6216
  value: function stop() {
6232
6217
  this.player.removeAttribute('src');
6233
6218
 
6219
+ if (this.hls) {
6220
+ this.hls.destroy();
6221
+ }
6222
+
6234
6223
  if (this.dash) {
6235
6224
  this.dash.reset();
6236
6225
  }
@@ -6342,7 +6331,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6342
6331
  width: width === 'auto' ? width : '100%',
6343
6332
  height: height === 'auto' ? height : '100%'
6344
6333
  };
6345
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6334
+ return _react["default"].createElement(Element, _extends({
6346
6335
  ref: this.ref,
6347
6336
  src: this.getSource(url),
6348
6337
  style: style,
@@ -6432,16 +6421,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6432
6421
 
6433
6422
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6434
6423
 
6435
- 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); }; }
6436
-
6437
6424
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6438
6425
 
6439
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6440
-
6441
- 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; } }
6442
-
6443
6426
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6444
6427
 
6428
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6429
+
6445
6430
  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); }
6446
6431
 
6447
6432
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6450,12 +6435,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6450
6435
 
6451
6436
  var ICON_SIZE = '64px';
6452
6437
 
6453
- var Preview = /*#__PURE__*/function (_Component) {
6438
+ var Preview =
6439
+ /*#__PURE__*/
6440
+ function (_Component) {
6454
6441
  _inherits(Preview, _Component);
6455
6442
 
6456
- var _super = _createSuper(Preview);
6457
-
6458
6443
  function Preview() {
6444
+ var _getPrototypeOf2;
6445
+
6459
6446
  var _this;
6460
6447
 
6461
6448
  _classCallCheck(this, Preview);
@@ -6464,7 +6451,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6464
6451
  args[_key] = arguments[_key];
6465
6452
  }
6466
6453
 
6467
- _this = _super.call.apply(_super, [this].concat(args));
6454
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6468
6455
 
6469
6456
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6470
6457
 
@@ -6562,15 +6549,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6562
6549
  }
6563
6550
  };
6564
6551
 
6565
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6552
+ var defaultPlayIcon = _react["default"].createElement("div", {
6566
6553
  style: styles.shadow,
6567
6554
  className: "react-player__shadow"
6568
- }, /*#__PURE__*/_react["default"].createElement("div", {
6555
+ }, _react["default"].createElement("div", {
6569
6556
  style: styles.playIcon,
6570
6557
  className: "react-player__play-icon"
6571
6558
  }));
6572
6559
 
6573
- return /*#__PURE__*/_react["default"].createElement("div", {
6560
+ return _react["default"].createElement("div", {
6574
6561
  style: styles.preview,
6575
6562
  className: "react-player__preview",
6576
6563
  onClick: onClick
@@ -6607,12 +6594,6 @@ var _Player = _interopRequireDefault(Player_1);
6607
6594
 
6608
6595
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6609
6596
 
6610
- 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; } } }; }
6611
-
6612
- 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); }
6613
-
6614
- 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; }
6615
-
6616
6597
  var PRELOAD_PLAYERS = [{
6617
6598
  Player: YouTube_1.YouTube,
6618
6599
  configKey: 'youtube',
@@ -6633,16 +6614,16 @@ var PRELOAD_PLAYERS = [{
6633
6614
 
6634
6615
  function renderPreloadPlayers(url, controls, config) {
6635
6616
  var players = [];
6636
-
6637
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6638
- _step;
6617
+ var _iteratorNormalCompletion = true;
6618
+ var _didIteratorError = false;
6619
+ var _iteratorError = undefined;
6639
6620
 
6640
6621
  try {
6641
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6622
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6642
6623
  var player = _step.value;
6643
6624
 
6644
6625
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6645
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6626
+ players.push(_react["default"].createElement(_Player["default"], {
6646
6627
  key: player.Player.displayName,
6647
6628
  activePlayer: player.Player,
6648
6629
  url: player.url,
@@ -6654,9 +6635,18 @@ function renderPreloadPlayers(url, controls, config) {
6654
6635
  }
6655
6636
  }
6656
6637
  } catch (err) {
6657
- _iterator.e(err);
6638
+ _didIteratorError = true;
6639
+ _iteratorError = err;
6658
6640
  } finally {
6659
- _iterator.f();
6641
+ try {
6642
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6643
+ _iterator["return"]();
6644
+ }
6645
+ } finally {
6646
+ if (_didIteratorError) {
6647
+ throw _iteratorError;
6648
+ }
6649
+ }
6660
6650
  }
6661
6651
 
6662
6652
  return players;
@@ -6780,17 +6770,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6780
6770
 
6781
6771
  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); }
6782
6772
 
6783
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6784
-
6785
- 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."); }
6786
-
6787
- 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); }
6773
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6788
6774
 
6789
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6775
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6790
6776
 
6791
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6777
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6792
6778
 
6793
- 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; }
6779
+ 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; } }
6794
6780
 
6795
6781
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6796
6782
 
@@ -6798,16 +6784,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6798
6784
 
6799
6785
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6800
6786
 
6801
- 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); }; }
6802
-
6803
6787
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6804
6788
 
6805
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6806
-
6807
- 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; } }
6808
-
6809
6789
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6810
6790
 
6791
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6792
+
6811
6793
  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); }
6812
6794
 
6813
6795
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6817,12 +6799,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6817
6799
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6818
6800
  var customPlayers = [];
6819
6801
 
6820
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6802
+ var ReactPlayer =
6803
+ /*#__PURE__*/
6804
+ function (_Component) {
6821
6805
  _inherits(ReactPlayer, _Component);
6822
6806
 
6823
- var _super = _createSuper(ReactPlayer);
6824
-
6825
6807
  function ReactPlayer() {
6808
+ var _getPrototypeOf2;
6809
+
6826
6810
  var _this;
6827
6811
 
6828
6812
  _classCallCheck(this, ReactPlayer);
@@ -6831,7 +6815,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6831
6815
  args[_key] = arguments[_key];
6832
6816
  }
6833
6817
 
6834
- _this = _super.call.apply(_super, [this].concat(args));
6818
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6835
6819
 
6836
6820
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6837
6821
 
@@ -6942,7 +6926,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6942
6926
  key: "renderActivePlayer",
6943
6927
  value: function renderActivePlayer(url, activePlayer) {
6944
6928
  if (!url) return null;
6945
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6929
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6946
6930
  key: activePlayer.displayName,
6947
6931
  ref: this.activePlayerRef,
6948
6932
  config: this.config,
@@ -6979,14 +6963,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6979
6963
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6980
6964
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6981
6965
 
6982
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6966
+ var preview = _react["default"].createElement(_Preview["default"], {
6983
6967
  url: url,
6984
6968
  light: light,
6985
6969
  playIcon: playIcon,
6986
6970
  onClick: this.handleClickPreview
6987
6971
  });
6988
6972
 
6989
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6973
+ return _react["default"].createElement(Wrapper, _extends({
6990
6974
  ref: this.wrapperRef,
6991
6975
  style: _objectSpread({}, style, {
6992
6976
  width: width,
@@ -7309,8 +7293,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7309
7293
  var duration = player.getDuration();
7310
7294
  var queue = Math.floor(duration / 10);
7311
7295
  var segment = Math.floor(current / queue);
7312
- Beam.report_beam_video('Ready', main.main_18, duration, current, segment);
7313
- Segment.report_video_event('Video Ready', main.main_18, duration, current, segment);
7296
+ Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
7297
+ Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
7314
7298
  //autoplay
7315
7299
 
7316
7300
  //Small pause before starting next video
@@ -7330,8 +7314,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7330
7314
  var queue = Math.floor(duration / 10);
7331
7315
  var segment = Math.floor(current / queue);
7332
7316
 
7333
- Beam.report_beam_video('End', main.main_18, duration, current, segment);
7334
- Segment.report_video_event('Video End', main.main_18, duration, current, segment);
7317
+ Beam.report_beam_video('End', main.main_16, duration, current, segment);
7318
+ Segment.report_video_event('Video End', main.main_16, duration, current, segment);
7335
7319
  setEndReported(true);
7336
7320
  clearInterval(intervalID);
7337
7321
  }
@@ -7381,8 +7365,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7381
7365
  var queue = Math.floor(duration / 10);
7382
7366
  var segment = Math.floor(current / queue);
7383
7367
  if (!queueProgress.includes(segment)) {
7384
- Beam.report_beam_video('Segment', main.main_18, duration, current, segment);
7385
- Segment.report_video_event('Video Segment', main.main_18, duration, current, segment);
7368
+ Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
7369
+ Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
7386
7370
  queueProgress.push(segment);
7387
7371
  }
7388
7372
  };
@@ -7395,8 +7379,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7395
7379
  var queue = Math.floor(duration / 10);
7396
7380
  var segment = Math.floor(current / queue);
7397
7381
 
7398
- Beam.report_beam_video('Play', main.main_18, duration, current, segment);
7399
- Segment.report_video_event('Video Play', main.main_18, duration, current, segment);
7382
+ Beam.report_beam_video('Play', main.main_16, duration, current, segment);
7383
+ Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
7400
7384
 
7401
7385
  if (!playReported) {
7402
7386
  setPlayReported(true);
@@ -7414,8 +7398,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7414
7398
  var queue = Math.floor(duration / 10);
7415
7399
  var segment = Math.floor(current / queue);
7416
7400
 
7417
- Beam.report_beam_video('Pause', main.main_18, duration, current, segment);
7418
- Segment.report_video_event('Video Pause', main.main_18, duration, current, segment);
7401
+ Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
7402
+ Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
7419
7403
  };
7420
7404
 
7421
7405
  // Youtube Options
@@ -7533,7 +7517,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7533
7517
  React__default.createElement(
7534
7518
  'div',
7535
7519
  { className: 'vid-text' },
7536
- 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()))
7520
+ 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()))
7537
7521
  ),
7538
7522
  React__default.createElement(
7539
7523
  'style',
@@ -7851,7 +7835,7 @@ var Poll$1 = function Poll(_ref) {
7851
7835
  );
7852
7836
  };
7853
7837
 
7854
- var numberOfPaginations = main.main_42 ? 4 : 10;
7838
+ var numberOfPaginations = main.main_35 ? 4 : 10;
7855
7839
 
7856
7840
  var Quiz = function Quiz(_ref) {
7857
7841
  var quizzes = _ref.quizzes,
@@ -7971,7 +7955,7 @@ var Quiz = function Quiz(_ref) {
7971
7955
  var renderPagination = function renderPagination() {
7972
7956
  return React__default.createElement(
7973
7957
  Pagination,
7974
- { className: 'p-0 m-0', size: main.main_42 && 'sm' },
7958
+ { className: 'p-0 m-0', size: main.main_35 && 'sm' },
7975
7959
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7976
7960
  return changePage('first');
7977
7961
  }, disabled: currentPage === 1 }),
@@ -8297,7 +8281,7 @@ var MultiMedia = function MultiMedia(props) {
8297
8281
  { xs: 12, md: 12 / medias.length, key: media._key },
8298
8282
  React__default.createElement(
8299
8283
  'a',
8300
- _extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
8284
+ _extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
8301
8285
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8302
8286
  React__default.createElement(
8303
8287
  'div',
@@ -8592,7 +8576,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8592
8576
 
8593
8577
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8594
8578
  if (biography) {
8595
- return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8579
+ return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8596
8580
  }
8597
8581
  };
8598
8582
 
@@ -8678,7 +8662,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8678
8662
  //console.log('useLayoutEffect')
8679
8663
  if (!firstLoad) {
8680
8664
  setUpArrowClicked(false);
8681
- if (main.main_43) {
8665
+ if (main.main_36) {
8682
8666
  grabLoadedAds();
8683
8667
  } else {
8684
8668
  scrollToArticle();
@@ -8702,7 +8686,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8702
8686
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8703
8687
  if (pageview) pageview(path);
8704
8688
 
8705
- if (!main.main_43) {
8689
+ if (!main.main_36) {
8706
8690
  index.lib_3.getGoogletag().then(function (googletag) {
8707
8691
  if (window.googletag && googletag.pubadsReady) {
8708
8692
  index.lib_3.refresh();
@@ -8710,7 +8694,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8710
8694
  });
8711
8695
  }
8712
8696
  //Refresh leaderboard ad on mobile
8713
- if (main.main_43) {
8697
+ if (main.main_36) {
8714
8698
  var leaderboardSlotId = '';
8715
8699
  index.lib_3.getGoogletag().then(function (googletag) {
8716
8700
  if (window.googletag && googletag.pubadsReady) {
@@ -8779,7 +8763,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8779
8763
  React__default.createElement(
8780
8764
  'div',
8781
8765
  { className: 'ad-box', style: { textAlign: 'center' } },
8782
- main.main_43 && Ads.map(function (ad, index) {
8766
+ main.main_36 && Ads.map(function (ad, index) {
8783
8767
  if (index === 0) {
8784
8768
  return React__default.createElement(
8785
8769
  'div',
@@ -8870,7 +8854,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8870
8854
  React__default.createElement(
8871
8855
  'div',
8872
8856
  { className: 'mt-2 mb-2' },
8873
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
8857
+ React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
8874
8858
  serializers: getSerializers,
8875
8859
  videoAccountIDs: accountIDs,
8876
8860
  blocks: article.text,
@@ -8901,7 +8885,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8901
8885
  React__default.createElement(
8902
8886
  'div',
8903
8887
  { className: 'ad-box', style: { textAlign: 'center' } },
8904
- main.main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8888
+ main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8905
8889
  if (innerIndex === 0) {
8906
8890
  return React__default.createElement(
8907
8891
  'div',
@@ -8988,7 +8972,7 @@ var FigureImage = React__default.memo(function (_ref2) {
8988
8972
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8989
8973
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8990
8974
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
8991
- React__default.createElement('img', _extends._extends({
8975
+ React__default.createElement('img', _extends$1._extends({
8992
8976
  style: figureImageStyle,
8993
8977
  className: 'figure-image',
8994
8978
  src: urlFor({ source: node, client: client }),
@@ -9056,7 +9040,7 @@ var FigureComponent = function FigureComponent(props) {
9056
9040
  } else {
9057
9041
  return React__default.createElement(
9058
9042
  Tooltip,
9059
- _extends._extends({ id: 'button-tooltip' }, props),
9043
+ _extends$1._extends({ id: 'button-tooltip' }, props),
9060
9044
  React__default.createElement(BlockContent.BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
9061
9045
  );
9062
9046
  }
@@ -9070,32 +9054,32 @@ var FigureComponent = function FigureComponent(props) {
9070
9054
  handleClickFigure = _ref3.handleClickFigure;
9071
9055
 
9072
9056
  var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
9073
- var triggerAction = main.main_42 ? 'click' : 'hover';
9074
- var placementLocation = main.main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9057
+ var triggerAction = main.main_35 ? 'click' : 'hover';
9058
+ var placementLocation = main.main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9075
9059
  return React__default.createElement(
9076
9060
  'picture',
9077
9061
  null,
9078
9062
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9079
9063
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9080
9064
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
9081
- main.main_42 && link ? React__default.createElement('img', _extends._extends({
9065
+ main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
9082
9066
  style: figureImageStyle,
9083
9067
  className: 'figure-image',
9084
9068
  src: urlFor({ source: node, client: client }),
9085
9069
  alt: imgAlt ? imgAlt : 'figure image'
9086
- }, !link && !main.main_42 && {
9070
+ }, !link && !main.main_35 && {
9087
9071
  onClick: function onClick() {
9088
9072
  return handleClickFigure(node, client);
9089
9073
  }
9090
9074
  })) : React__default.createElement(
9091
9075
  OverlayTrigger,
9092
9076
  { trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
9093
- React__default.createElement('img', _extends._extends({
9077
+ React__default.createElement('img', _extends$1._extends({
9094
9078
  style: figureImageStyle,
9095
9079
  className: 'figure-image',
9096
9080
  src: urlFor({ source: node, client: client }),
9097
9081
  alt: imgAlt ? imgAlt : 'figure image'
9098
- }, !link && !main.main_42 && {
9082
+ }, !link && !main.main_35 && {
9099
9083
  onClick: function onClick() {
9100
9084
  return handleClickFigure(node, client);
9101
9085
  }
@@ -9254,7 +9238,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
9254
9238
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9255
9239
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9256
9240
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9257
- React__default.createElement('img', _extends._extends({
9241
+ React__default.createElement('img', _extends$1._extends({
9258
9242
  'images-count': imagesCount,
9259
9243
  className: 'multi-figure-image',
9260
9244
  src: urlFor({ source: image, client: client }),
@@ -9314,32 +9298,32 @@ var MultiFigure = function MultiFigure(props) {
9314
9298
  link = _ref3.link,
9315
9299
  handleClickFigure = _ref3.handleClickFigure;
9316
9300
 
9317
- var triggerAction = main.main_42 ? 'click' : 'hover';
9318
- var placementLocation = main.main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9301
+ var triggerAction = main.main_35 ? 'click' : 'hover';
9302
+ var placementLocation = main.main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9319
9303
  return React__default.createElement(
9320
9304
  'picture',
9321
9305
  null,
9322
9306
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9323
9307
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9324
9308
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9325
- main.main_42 && link ? React__default.createElement('img', _extends._extends({
9309
+ main.main_35 && link ? React__default.createElement('img', _extends$1._extends({
9326
9310
  'images-count': imagesCount,
9327
9311
  className: 'multi-figure-image',
9328
9312
  src: urlFor({ source: image, client: client }),
9329
9313
  alt: imgAlt ? imgAlt : 'multi figure'
9330
- }, !link && !main.main_42 && {
9314
+ }, !link && !main.main_35 && {
9331
9315
  onClick: function onClick() {
9332
9316
  return handleClickFigure(image, client);
9333
9317
  }
9334
9318
  })) : React__default.createElement(
9335
9319
  OverlayTrigger,
9336
9320
  { trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
9337
- React__default.createElement('img', _extends._extends({
9321
+ React__default.createElement('img', _extends$1._extends({
9338
9322
  'images-count': imagesCount,
9339
9323
  className: 'multi-figure-image',
9340
9324
  src: urlFor({ source: image, client: client }),
9341
9325
  alt: imgAlt ? imgAlt : 'multi figure'
9342
- }, !link && !main.main_42 && {
9326
+ }, !link && !main.main_35 && {
9343
9327
  onClick: function onClick() {
9344
9328
  return handleClickFigure(image, client);
9345
9329
  }
@@ -9367,7 +9351,7 @@ var MultiFigure = function MultiFigure(props) {
9367
9351
  } else {
9368
9352
  return React__default.createElement(
9369
9353
  Tooltip,
9370
- _extends._extends({ id: 'button-tooltip' }, props),
9354
+ _extends$1._extends({ id: 'button-tooltip' }, props),
9371
9355
  React__default.createElement(BlockContent.BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
9372
9356
  );
9373
9357
  }
@@ -9387,7 +9371,7 @@ var MultiFigure = function MultiFigure(props) {
9387
9371
  { xs: 12, md: 12 / images.length, key: index },
9388
9372
  image.link ? React__default.createElement(
9389
9373
  'a',
9390
- _extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9374
+ _extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9391
9375
  React__default.createElement(
9392
9376
  'div',
9393
9377
  { className: 'multi-figure-image-container' },
@@ -9415,7 +9399,7 @@ var MultiFigure = function MultiFigure(props) {
9415
9399
  { xs: 12, md: 12 / images.length, key: index },
9416
9400
  image.link ? React__default.createElement(
9417
9401
  'a',
9418
- _extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9402
+ _extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9419
9403
  React__default.createElement(
9420
9404
  'div',
9421
9405
  { className: 'multi-figure-image-container' },
@@ -9544,7 +9528,7 @@ exports.__esModule = true;
9544
9528
 
9545
9529
 
9546
9530
 
9547
- var _extends3 = _interopRequireDefault(_extends._extends$1);
9531
+ var _extends3 = _interopRequireDefault(_extends$1._extends$1);
9548
9532
 
9549
9533
 
9550
9534
 
@@ -9857,7 +9841,7 @@ var BlockTable = function BlockTable(props) {
9857
9841
  return React__default.createElement(
9858
9842
  'div',
9859
9843
  { className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
9860
- React__default.createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9844
+ React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9861
9845
  );
9862
9846
  })
9863
9847
  );
@@ -10129,7 +10113,7 @@ var getSerializers = function getSerializers() {
10129
10113
  var isExernalUrl = checkUrlIsExternal(href);
10130
10114
  return href ? React__default.createElement(
10131
10115
  'a',
10132
- _extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10116
+ _extends$1._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10133
10117
  children
10134
10118
  ) : children;
10135
10119
  },