@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
@@ -1,35 +1,35 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { _ as _export, a as _core } from './core.get-iterator-method-0fb60d94.js';
3
- import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-e333293f.js';
4
- import { _ as _extends, b as _extends$1 } from './extends-9a61581c.js';
5
- import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-eeaf6740.js';
6
- import { _ as _typeof$1 } from './typeof-938ae770.js';
2
+ import { _ as _export, a as _core } from './core.get-iterator-method-86d4db69.js';
3
+ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-32282905.js';
4
+ import { _ as _extends$1, b as _extends$2 } from './extends-5b1796d4.js';
5
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-2409637d.js';
6
+ import { _ as _typeof } from './typeof-c05a82ba.js';
7
7
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
8
8
  import { l as lib_3 } from './index-41a678ea.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import Row$1 from 'react-bootstrap/Row';
11
11
  import Col$1 from 'react-bootstrap/Col';
12
- import { m as moment } from './moment-b6f49411.js';
12
+ import { m as moment } from './moment-e2f9b20c.js';
13
13
  import Router, { useRouter } from 'next/router';
14
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-9c3bb613.js';
14
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
15
15
  import urlFor from './urlFor.js';
16
16
  import { L as LazyLoad } from './index-5f7e79e7.js';
17
- import { d as main_18, b as main_42, m as main_43 } from './main-ae902629.js';
17
+ import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
18
18
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
19
19
  import Segment from './Segment.js';
20
20
  import Beam from './Beam.js';
21
21
  import DFPAdSlot from './AdSlot.js';
22
22
  import Button$1 from 'react-bootstrap/Button';
23
- import { B as BlockContent } from './BlockContent-ea93e8f7.js';
23
+ import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
24
24
  import { g as getYoutubeId } from './index-c7e2ac95.js';
25
25
  import GroupDeck from './GroupDeck.js';
26
26
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
27
- import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
27
+ import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
28
28
  import { u as util } from './util-7700fc59.js';
29
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-e761d404.js';
29
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
30
30
  import Head from 'next/head';
31
31
  import SocialShare from './SocialShare.js';
32
- import { _ as _objectToArray } from './_object-to-array-ee8f6d98.js';
32
+ import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
33
33
  import Pagination$1 from 'react-bootstrap/Pagination';
34
34
  import Figure$1$1 from 'react-bootstrap/Figure';
35
35
  import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
@@ -100,18 +100,21 @@ var Slideshow = function Slideshow(_ref) {
100
100
  );
101
101
  };
102
102
 
103
- // do not edit .js files directly - edit src/index.jst
104
-
105
-
103
+ var isArray = Array.isArray;
104
+ var keyList = Object.keys;
105
+ var hasProp = Object.prototype.hasOwnProperty;
106
106
 
107
107
  var fastDeepEqual = function equal(a, b) {
108
108
  if (a === b) return true;
109
109
 
110
110
  if (a && b && typeof a == 'object' && typeof b == 'object') {
111
- if (a.constructor !== b.constructor) return false;
111
+ var arrA = isArray(a)
112
+ , arrB = isArray(b)
113
+ , i
114
+ , length
115
+ , key;
112
116
 
113
- var length, i, keys;
114
- if (Array.isArray(a)) {
117
+ if (arrA && arrB) {
115
118
  length = a.length;
116
119
  if (length != b.length) return false;
117
120
  for (i = length; i-- !== 0;)
@@ -119,29 +122,35 @@ var fastDeepEqual = function equal(a, b) {
119
122
  return true;
120
123
  }
121
124
 
125
+ if (arrA != arrB) return false;
122
126
 
127
+ var dateA = a instanceof Date
128
+ , dateB = b instanceof Date;
129
+ if (dateA != dateB) return false;
130
+ if (dateA && dateB) return a.getTime() == b.getTime();
123
131
 
124
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
125
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
126
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
132
+ var regexpA = a instanceof RegExp
133
+ , regexpB = b instanceof RegExp;
134
+ if (regexpA != regexpB) return false;
135
+ if (regexpA && regexpB) return a.toString() == b.toString();
127
136
 
128
- keys = Object.keys(a);
137
+ var keys = keyList(a);
129
138
  length = keys.length;
130
- if (length !== Object.keys(b).length) return false;
139
+
140
+ if (length !== keyList(b).length)
141
+ return false;
131
142
 
132
143
  for (i = length; i-- !== 0;)
133
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
144
+ if (!hasProp.call(b, keys[i])) return false;
134
145
 
135
146
  for (i = length; i-- !== 0;) {
136
- var key = keys[i];
137
-
147
+ key = keys[i];
138
148
  if (!equal(a[key], b[key])) return false;
139
149
  }
140
150
 
141
151
  return true;
142
152
  }
143
153
 
144
- // true if both NaN, false otherwise
145
154
  return a!==a && b!==b;
146
155
  };
147
156
 
@@ -1564,239 +1573,199 @@ module.exports = exports['default'];
1564
1573
 
1565
1574
  var youTubePlayer = unwrapExports(dist);
1566
1575
 
1567
- 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); }
1568
-
1569
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1570
-
1571
- 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); } }
1572
-
1573
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1574
-
1575
- 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); }
1576
-
1577
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1578
-
1579
- 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); }; }
1580
-
1581
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1582
-
1583
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1576
+ 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; }; }();
1584
1577
 
1585
- 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; } }
1578
+ 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; };
1586
1579
 
1587
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1580
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1588
1581
 
1589
- 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; }
1582
+ 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; }
1590
1583
 
1591
- 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; }
1584
+ 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; }
1592
1585
 
1593
- 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; }
1594
- /**
1595
- * Check whether a `props` change should result in the video being updated.
1596
- *
1597
- * @param {Object} prevProps
1598
- * @param {Object} props
1586
+ /**
1587
+ * Check whether a `props` change should result in the video being updated.
1588
+ *
1589
+ * @param {Object} prevProps
1590
+ * @param {Object} props
1599
1591
  */
1600
-
1601
1592
  function shouldUpdateVideo(prevProps, props) {
1602
1593
  // A changing video should always trigger an update
1603
1594
  if (prevProps.videoId !== props.videoId) {
1604
1595
  return true;
1605
- } // Otherwise, a change in the start/end time playerVars also requires a player
1606
- // update.
1607
-
1596
+ }
1608
1597
 
1598
+ // Otherwise, a change in the start/end time playerVars also requires a player
1599
+ // update.
1609
1600
  var prevVars = prevProps.opts.playerVars || {};
1610
1601
  var vars = props.opts.playerVars || {};
1602
+
1611
1603
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1612
1604
  }
1613
- /**
1614
- * Neutralize 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
- */
1620
-
1621
1605
 
1606
+ /**
1607
+ * Neutralise API options that only require a video update, leaving only options
1608
+ * that require a player reset. The results can then be compared to see if a
1609
+ * player reset is necessary.
1610
+ *
1611
+ * @param {Object} opts
1612
+ */
1622
1613
  function filterResetOptions(opts) {
1623
- return _objectSpread(_objectSpread({}, opts), {}, {
1624
- playerVars: _objectSpread({
1614
+ return _extends({}, opts, {
1615
+ playerVars: _extends({}, opts.playerVars, {
1625
1616
  autoplay: 0,
1626
1617
  start: 0,
1627
1618
  end: 0
1628
- }, opts.playerVars)
1619
+ })
1629
1620
  });
1630
1621
  }
1631
- /**
1632
- * Check whether a `props` change should result in the player being reset.
1633
- * The player is reset when the `props.opts` change, except if the only change
1634
- * is in the `start` and `end` playerVars, because a video update can deal with
1635
- * those.
1636
- *
1637
- * @param {Object} prevProps
1638
- * @param {Object} props
1639
- */
1640
-
1641
1622
 
1623
+ /**
1624
+ * Check whether a `props` change should result in the player being reset.
1625
+ * The player is reset when the `props.opts` change, except if the only change
1626
+ * is in the `start` and `end` playerVars, because a video update can deal with
1627
+ * those.
1628
+ *
1629
+ * @param {Object} prevProps
1630
+ * @param {Object} props
1631
+ */
1642
1632
  function shouldResetPlayer(prevProps, props) {
1643
1633
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1644
1634
  }
1645
- /**
1646
- * Check whether a props change should result in an id or className update.
1647
- *
1648
- * @param {Object} prevProps
1649
- * @param {Object} props
1650
- */
1651
-
1652
1635
 
1636
+ /**
1637
+ * Check whether a props change should result in an id or className update.
1638
+ *
1639
+ * @param {Object} prevProps
1640
+ * @param {Object} props
1641
+ */
1653
1642
  function shouldUpdatePlayer(prevProps, props) {
1654
1643
  return prevProps.id !== props.id || prevProps.className !== props.className;
1655
1644
  }
1656
1645
 
1657
- var YouTube = /*#__PURE__*/function (_React$Component) {
1646
+ var YouTube = function (_React$Component) {
1658
1647
  _inherits(YouTube, _React$Component);
1659
1648
 
1660
- var _super = _createSuper(YouTube);
1661
-
1662
- /**
1663
- * Expose PlayerState constants for convenience. These constants can also be
1664
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1665
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1666
- */
1667
1649
  function YouTube(props) {
1668
- var _this;
1669
-
1670
1650
  _classCallCheck(this, YouTube);
1671
1651
 
1672
- _this = _super.call(this, props);
1652
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1673
1653
 
1674
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1654
+ _this.onPlayerReady = function (event) {
1675
1655
  return _this.props.onReady(event);
1676
- });
1656
+ };
1677
1657
 
1678
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1658
+ _this.onPlayerError = function (event) {
1679
1659
  return _this.props.onError(event);
1680
- });
1660
+ };
1681
1661
 
1682
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1662
+ _this.onPlayerStateChange = function (event) {
1683
1663
  _this.props.onStateChange(event);
1684
-
1685
1664
  switch (event.data) {
1665
+
1686
1666
  case YouTube.PlayerState.ENDED:
1687
1667
  _this.props.onEnd(event);
1688
-
1689
1668
  break;
1690
1669
 
1691
1670
  case YouTube.PlayerState.PLAYING:
1692
1671
  _this.props.onPlay(event);
1693
-
1694
1672
  break;
1695
1673
 
1696
1674
  case YouTube.PlayerState.PAUSED:
1697
1675
  _this.props.onPause(event);
1698
-
1699
1676
  break;
1700
1677
  }
1701
- });
1678
+ };
1702
1679
 
1703
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1680
+ _this.onPlayerPlaybackRateChange = function (event) {
1704
1681
  return _this.props.onPlaybackRateChange(event);
1705
- });
1682
+ };
1706
1683
 
1707
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1684
+ _this.onPlayerPlaybackQualityChange = function (event) {
1708
1685
  return _this.props.onPlaybackQualityChange(event);
1709
- });
1686
+ };
1710
1687
 
1711
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1688
+ _this.createPlayer = function () {
1712
1689
  // do not attempt to create a player server-side, it won't work
1713
- if (typeof document === 'undefined') return; // create player
1714
-
1715
- var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
1690
+ if (typeof document === 'undefined') return;
1691
+ // create player
1692
+ var playerOpts = _extends({}, _this.props.opts, {
1716
1693
  // preload the `videoId` video if one is already given
1717
1694
  videoId: _this.props.videoId
1718
1695
  });
1719
-
1720
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1721
-
1696
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1697
+ // attach event handlers
1722
1698
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1723
-
1724
1699
  _this.internalPlayer.on('error', _this.onPlayerError);
1725
-
1726
1700
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1727
-
1728
1701
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1729
-
1730
1702
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1731
- });
1703
+ };
1732
1704
 
1733
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1705
+ _this.resetPlayer = function () {
1734
1706
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1735
- });
1707
+ };
1736
1708
 
1737
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1709
+ _this.updatePlayer = function () {
1738
1710
  _this.internalPlayer.getIframe().then(function (iframe) {
1739
1711
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1740
1712
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1741
1713
  });
1742
- });
1743
-
1744
- _defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
1745
- return _this.internalPlayer;
1746
- });
1714
+ };
1747
1715
 
1748
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1716
+ _this.updateVideo = function () {
1749
1717
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1750
1718
  _this.internalPlayer.stopVideo();
1751
-
1752
1719
  return;
1753
- } // set queueing options
1754
-
1720
+ }
1755
1721
 
1722
+ // set queueing options
1756
1723
  var autoplay = false;
1757
1724
  var opts = {
1758
1725
  videoId: _this.props.videoId
1759
1726
  };
1760
-
1761
1727
  if ('playerVars' in _this.props.opts) {
1762
1728
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1763
-
1764
1729
  if ('start' in _this.props.opts.playerVars) {
1765
1730
  opts.startSeconds = _this.props.opts.playerVars.start;
1766
1731
  }
1767
-
1768
1732
  if ('end' in _this.props.opts.playerVars) {
1769
1733
  opts.endSeconds = _this.props.opts.playerVars.end;
1770
1734
  }
1771
- } // if autoplay is enabled loadVideoById
1772
-
1735
+ }
1773
1736
 
1737
+ // if autoplay is enabled loadVideoById
1774
1738
  if (autoplay) {
1775
1739
  _this.internalPlayer.loadVideoById(opts);
1776
-
1777
1740
  return;
1778
- } // default behaviour just cues the video
1779
-
1780
-
1741
+ }
1742
+ // default behaviour just cues the video
1781
1743
  _this.internalPlayer.cueVideoById(opts);
1782
- });
1744
+ };
1783
1745
 
1784
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1746
+ _this.refContainer = function (container) {
1785
1747
  _this.container = container;
1786
- });
1748
+ };
1787
1749
 
1788
1750
  _this.container = null;
1789
1751
  _this.internalPlayer = null;
1790
1752
  return _this;
1791
1753
  }
1792
1754
 
1755
+ /**
1756
+ * Expose PlayerState constants for convenience. These constants can also be
1757
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1758
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1759
+ */
1760
+
1761
+
1793
1762
  _createClass(YouTube, [{
1794
- key: "componentDidMount",
1763
+ key: 'componentDidMount',
1795
1764
  value: function componentDidMount() {
1796
1765
  this.createPlayer();
1797
1766
  }
1798
1767
  }, {
1799
- key: "componentDidUpdate",
1768
+ key: 'componentDidUpdate',
1800
1769
  value: function componentDidUpdate(prevProps) {
1801
1770
  if (shouldUpdatePlayer(prevProps, this.props)) {
1802
1771
  this.updatePlayer();
@@ -1811,58 +1780,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1811
1780
  }
1812
1781
  }
1813
1782
  }, {
1814
- key: "componentWillUnmount",
1783
+ key: 'componentWillUnmount',
1815
1784
  value: function componentWillUnmount() {
1816
- /**
1817
- * Note: The `youtube-player` package that is used promisifies all YouTube
1818
- * Player API calls, which introduces a delay of a tick before it actually
1819
- * gets destroyed. Since React attempts to remove the element instantly
1820
- * this method isn't quick enough to reset the container element.
1785
+ /**
1786
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1787
+ * Player API calls, which introduces a delay of a tick before it actually
1788
+ * gets destroyed. Since React attempts to remove the element instantly
1789
+ * this method isn't quick enough to reset the container element.
1821
1790
  */
1822
1791
  this.internalPlayer.destroy();
1823
1792
  }
1824
- /**
1825
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1826
- *
1827
- * @param {Object} event
1828
- * @param {Object} target - player object
1793
+
1794
+ /**
1795
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1796
+ *
1797
+ * @param {Object} event
1798
+ * @param {Object} target - player object
1799
+ */
1800
+
1801
+
1802
+ /**
1803
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1804
+ *
1805
+ * @param {Object} event
1806
+ * @param {Integer} data - error type
1807
+ * @param {Object} target - player object
1808
+ */
1809
+
1810
+
1811
+ /**
1812
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1813
+ *
1814
+ * @param {Object} event
1815
+ * @param {Integer} data - status change type
1816
+ * @param {Object} target - actual YT player
1817
+ */
1818
+
1819
+
1820
+ /**
1821
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1822
+ *
1823
+ * @param {Object} event
1824
+ * @param {Float} data - playback rate
1825
+ * @param {Object} target - actual YT player
1826
+ */
1827
+
1828
+
1829
+ /**
1830
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1831
+ *
1832
+ * @param {Object} event
1833
+ * @param {String} data - playback quality
1834
+ * @param {Object} target - actual YT player
1835
+ */
1836
+
1837
+
1838
+ /**
1839
+ * Initialize the Youtube Player API on the container and attach event handlers
1840
+ */
1841
+
1842
+
1843
+ /**
1844
+ * Shorthand for destroying and then re-creating the Youtube Player
1845
+ */
1846
+
1847
+
1848
+ /**
1849
+ * Method to update the id and class of the Youtube Player iframe.
1850
+ * React should update this automatically but since the Youtube Player API
1851
+ * replaced the DIV that is mounted by React we need to do this manually.
1852
+ */
1853
+
1854
+
1855
+ /**
1856
+ * Call Youtube Player API methods to update the currently playing video.
1857
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1858
+ * Youtube Player API methods to update the video.
1829
1859
  */
1830
1860
 
1831
1861
  }, {
1832
- key: "render",
1862
+ key: 'render',
1833
1863
  value: function render() {
1834
- return /*#__PURE__*/React__default.createElement("div", {
1835
- className: this.props.containerClassName
1836
- }, /*#__PURE__*/React__default.createElement("div", {
1837
- id: this.props.id,
1838
- className: this.props.className,
1839
- ref: this.refContainer
1840
- }));
1864
+ return React__default.createElement(
1865
+ 'div',
1866
+ { className: this.props.containerClassName },
1867
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1868
+ );
1841
1869
  }
1842
1870
  }]);
1843
1871
 
1844
1872
  return YouTube;
1845
1873
  }(React__default.Component);
1846
1874
 
1847
- _defineProperty(YouTube, "PlayerState", {
1848
- UNSTARTED: -1,
1849
- ENDED: 0,
1850
- PLAYING: 1,
1851
- PAUSED: 2,
1852
- BUFFERING: 3,
1853
- CUED: 5
1854
- });
1855
-
1856
1875
  YouTube.propTypes = {
1857
1876
  videoId: PropTypes.string,
1877
+
1858
1878
  // custom ID for player element
1859
1879
  id: PropTypes.string,
1880
+
1860
1881
  // custom class name for player element
1861
1882
  className: PropTypes.string,
1862
1883
  // custom class name for player container element
1863
1884
  containerClassName: PropTypes.string,
1885
+
1864
1886
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1865
1887
  opts: PropTypes.objectOf(PropTypes.any),
1888
+
1866
1889
  // event subscriptions
1867
1890
  onReady: PropTypes.func,
1868
1891
  onError: PropTypes.func,
@@ -1874,7 +1897,6 @@ YouTube.propTypes = {
1874
1897
  onPlaybackQualityChange: PropTypes.func
1875
1898
  };
1876
1899
  YouTube.defaultProps = {
1877
- videoId: null,
1878
1900
  id: null,
1879
1901
  className: null,
1880
1902
  opts: {},
@@ -1888,6 +1910,14 @@ YouTube.defaultProps = {
1888
1910
  onPlaybackRateChange: function onPlaybackRateChange() {},
1889
1911
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1890
1912
  };
1913
+ YouTube.PlayerState = {
1914
+ UNSTARTED: -1,
1915
+ ENDED: 0,
1916
+ PLAYING: 1,
1917
+ PAUSED: 2,
1918
+ BUFFERING: 3,
1919
+ CUED: 5
1920
+ };
1891
1921
 
1892
1922
  var YouTubePlayer = function YouTubePlayer(_ref) {
1893
1923
  var url = _ref.url,
@@ -1926,8 +1956,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1926
1956
  var duration = player.getDuration();
1927
1957
  var queue = Math.floor(duration / 10);
1928
1958
  var segment = Math.floor(current / queue);
1929
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
1930
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
1959
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
1960
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
1931
1961
  };
1932
1962
 
1933
1963
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1937,8 +1967,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1937
1967
  var segment = Math.floor(current / queue);
1938
1968
 
1939
1969
  if (!queueProgress.includes(segment)) {
1940
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
1941
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
1970
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
1971
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
1942
1972
  queueProgress.push(segment);
1943
1973
  }
1944
1974
  };
@@ -1951,8 +1981,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1951
1981
  var queue = Math.floor(duration / 10);
1952
1982
  var segment = Math.floor(current / queue);
1953
1983
 
1954
- Beam.report_beam_video('Play', main_18, duration, current, segment);
1955
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
1984
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
1985
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
1956
1986
 
1957
1987
  if (!playReported) {
1958
1988
  setPlayReported(true);
@@ -1971,8 +2001,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1971
2001
  var queue = Math.floor(duration / 10);
1972
2002
  var segment = Math.floor(current / queue);
1973
2003
 
1974
- Beam.report_beam_video('End', main_18, duration, current, segment);
1975
- Segment.report_video_event('Video End', main_18, duration, current, segment);
2004
+ Beam.report_beam_video('End', main_16, duration, current, segment);
2005
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
1976
2006
  setEndReported(true);
1977
2007
  clearInterval(intervalID);
1978
2008
  }
@@ -1985,8 +2015,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1985
2015
  var queue = Math.floor(duration / 10);
1986
2016
  var segment = Math.floor(current / queue);
1987
2017
 
1988
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
1989
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
2018
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
2019
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
1990
2020
  };
1991
2021
 
1992
2022
  return React__default.createElement(
@@ -2175,7 +2205,7 @@ var Media = function Media(_ref) {
2175
2205
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2176
2206
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2177
2207
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2178
- React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2208
+ React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2179
2209
  )
2180
2210
  ),
2181
2211
  caption && React__default.createElement(
@@ -2188,7 +2218,7 @@ var Media = function Media(_ref) {
2188
2218
  } else if (caption && caption !== '') {
2189
2219
  return React__default.createElement(
2190
2220
  'a',
2191
- _extends({}, uploadDoc.downloadMedia ? {
2221
+ _extends$1({}, uploadDoc.downloadMedia ? {
2192
2222
  href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
2193
2223
  } : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2194
2224
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2243,8 +2273,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2243
2273
  var duration = player.duration;
2244
2274
  var queue = Math.floor(duration / 10);
2245
2275
  var segment = Math.floor(current / queue);
2246
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
2247
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
2276
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
2277
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
2248
2278
  };
2249
2279
 
2250
2280
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -2253,8 +2283,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2253
2283
  var queue = Math.floor(duration / 10);
2254
2284
  var segment = Math.floor(current / queue);
2255
2285
  if (!queueProgress.includes(segment)) {
2256
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
2257
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
2286
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
2287
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
2258
2288
  queueProgress.push(segment);
2259
2289
  }
2260
2290
  };
@@ -2266,8 +2296,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2266
2296
  var duration = player.duration;
2267
2297
  var queue = Math.floor(duration / 10);
2268
2298
  var segment = Math.floor(current / queue);
2269
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
2270
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
2299
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
2300
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
2271
2301
 
2272
2302
  if (!playReported) {
2273
2303
  event.persist();
@@ -2287,8 +2317,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2287
2317
  var queue = Math.floor(duration / 10);
2288
2318
  var segment = Math.floor(current / queue);
2289
2319
 
2290
- Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
2291
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
2320
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
2321
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
2292
2322
  setEndReported(true);
2293
2323
  clearInterval(intervalID);
2294
2324
  }
@@ -2300,8 +2330,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2300
2330
  var duration = player.duration - current;
2301
2331
  var queue = Math.floor(duration / 10);
2302
2332
  var segment = Math.floor(current / queue);
2303
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
2304
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
2333
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
2334
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
2305
2335
  };
2306
2336
 
2307
2337
  return React__default.createElement(
@@ -2362,7 +2392,7 @@ var Video = function Video(_ref) {
2362
2392
  var onVideoSuccess = function onVideoSuccess(success) {
2363
2393
  //console.log('success:', success.ref)
2364
2394
  var player = success.ref;
2365
- if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2395
+ if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2366
2396
  player.ima3.settings.debug = true;
2367
2397
  if (targeting.content_placement && targeting.document_url) {
2368
2398
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2390,8 +2420,8 @@ var Video = function Video(_ref) {
2390
2420
  player.pause();
2391
2421
  }
2392
2422
 
2393
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2394
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2423
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2424
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2395
2425
  });
2396
2426
 
2397
2427
  // play
@@ -2400,8 +2430,8 @@ var Video = function Video(_ref) {
2400
2430
  var current = player.currentTime();
2401
2431
  var queue = Math.floor(duration / 10);
2402
2432
  var segment = Math.floor(current / queue);
2403
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2404
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2433
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2434
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2405
2435
  });
2406
2436
 
2407
2437
  // pause
@@ -2410,8 +2440,8 @@ var Video = function Video(_ref) {
2410
2440
  var current = player.currentTime();
2411
2441
  var queue = Math.floor(duration / 10);
2412
2442
  var segment = Math.floor(current / queue);
2413
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2414
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2443
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2444
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2415
2445
  });
2416
2446
 
2417
2447
  // end
@@ -2420,8 +2450,8 @@ var Video = function Video(_ref) {
2420
2450
  var current = player.currentTime();
2421
2451
  var queue = Math.floor(duration / 10);
2422
2452
  var segment = Math.floor(current / queue);
2423
- Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2424
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2453
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2454
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2425
2455
  autoplayNextVideo(evt);
2426
2456
  });
2427
2457
 
@@ -2432,8 +2462,8 @@ var Video = function Video(_ref) {
2432
2462
  var queue = Math.floor(duration / 10);
2433
2463
  var segment = Math.floor(current / queue);
2434
2464
  if (!queueProgress.includes(segment)) {
2435
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2436
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2465
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2466
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2437
2467
  queueProgress.push(segment);
2438
2468
  }
2439
2469
  });
@@ -2444,8 +2474,8 @@ var Video = function Video(_ref) {
2444
2474
  var id = player.ads.ad.id;
2445
2475
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2446
2476
 
2447
- Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
2448
- Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2477
+ Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
2478
+ Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2449
2479
  });
2450
2480
 
2451
2481
  // ad ended
@@ -2453,8 +2483,8 @@ var Video = function Video(_ref) {
2453
2483
  var duration = player.ads.ad.duration;
2454
2484
  var id = player.ads.ad.id;
2455
2485
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2456
- Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
2457
- Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2486
+ Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
2487
+ Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2458
2488
  });
2459
2489
  };
2460
2490
 
@@ -2884,17 +2914,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2884
2914
 
2885
2915
  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; }
2886
2916
 
2887
- 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; } } }; }
2917
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2888
2918
 
2889
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2919
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2890
2920
 
2891
- 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."); }
2892
-
2893
- 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); }
2894
-
2895
- 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; }
2896
-
2897
- 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; }
2921
+ 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; }
2898
2922
 
2899
2923
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2900
2924
 
@@ -3024,12 +3048,12 @@ function getSDK(url, sdkGlobal) {
3024
3048
 
3025
3049
  function getConfig(props$1, defaultProps, showWarning) {
3026
3050
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
3027
-
3028
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
3029
- _step;
3051
+ var _iteratorNormalCompletion = true;
3052
+ var _didIteratorError = false;
3053
+ var _iteratorError = undefined;
3030
3054
 
3031
3055
  try {
3032
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3056
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3033
3057
  var p = _step.value;
3034
3058
 
3035
3059
  if (props$1[p]) {
@@ -3044,9 +3068,18 @@ function getConfig(props$1, defaultProps, showWarning) {
3044
3068
  }
3045
3069
  }
3046
3070
  } catch (err) {
3047
- _iterator.e(err);
3071
+ _didIteratorError = true;
3072
+ _iteratorError = err;
3048
3073
  } finally {
3049
- _iterator.f();
3074
+ try {
3075
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
3076
+ _iterator["return"]();
3077
+ }
3078
+ } finally {
3079
+ if (_didIteratorError) {
3080
+ throw _iteratorError;
3081
+ }
3082
+ }
3050
3083
  }
3051
3084
 
3052
3085
  return config;
@@ -3193,16 +3226,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3193
3226
 
3194
3227
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3195
3228
 
3196
- 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); }; }
3197
-
3198
3229
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3199
3230
 
3200
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3201
-
3202
- 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; } }
3203
-
3204
3231
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3205
3232
 
3233
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3234
+
3206
3235
  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); }
3207
3236
 
3208
3237
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3211,12 +3240,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3211
3240
 
3212
3241
  var SEEK_ON_PLAY_EXPIRY = 5000;
3213
3242
 
3214
- var Player = /*#__PURE__*/function (_Component) {
3243
+ var Player =
3244
+ /*#__PURE__*/
3245
+ function (_Component) {
3215
3246
  _inherits(Player, _Component);
3216
3247
 
3217
- var _super = _createSuper(Player);
3218
-
3219
3248
  function Player() {
3249
+ var _getPrototypeOf2;
3250
+
3220
3251
  var _this;
3221
3252
 
3222
3253
  _classCallCheck(this, Player);
@@ -3225,7 +3256,7 @@ var Player = /*#__PURE__*/function (_Component) {
3225
3256
  _args[_key] = arguments[_key];
3226
3257
  }
3227
3258
 
3228
- _this = _super.call.apply(_super, [this].concat(_args));
3259
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3229
3260
 
3230
3261
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3231
3262
 
@@ -3550,7 +3581,7 @@ var Player = /*#__PURE__*/function (_Component) {
3550
3581
  return null;
3551
3582
  }
3552
3583
 
3553
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3584
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3554
3585
  ref: this.ref,
3555
3586
  onReady: this.handleReady,
3556
3587
  onPlay: this.handlePlay,
@@ -3611,16 +3642,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3611
3642
 
3612
3643
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3613
3644
 
3614
- 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); }; }
3615
-
3616
3645
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3617
3646
 
3618
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3619
-
3620
- 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; } }
3621
-
3622
3647
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3623
3648
 
3649
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3650
+
3624
3651
  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); }
3625
3652
 
3626
3653
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3632,12 +3659,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3632
3659
  function createSinglePlayer(activePlayer) {
3633
3660
  var _class, _temp;
3634
3661
 
3635
- return _temp = _class = /*#__PURE__*/function (_Component) {
3662
+ return _temp = _class =
3663
+ /*#__PURE__*/
3664
+ function (_Component) {
3636
3665
  _inherits(SinglePlayer, _Component);
3637
3666
 
3638
- var _super = _createSuper(SinglePlayer);
3639
-
3640
3667
  function SinglePlayer() {
3668
+ var _getPrototypeOf2;
3669
+
3641
3670
  var _this;
3642
3671
 
3643
3672
  _classCallCheck(this, SinglePlayer);
@@ -3646,7 +3675,7 @@ function createSinglePlayer(activePlayer) {
3646
3675
  args[_key] = arguments[_key];
3647
3676
  }
3648
3677
 
3649
- _this = _super.call.apply(_super, [this].concat(args));
3678
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3650
3679
 
3651
3680
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3652
3681
 
@@ -3714,12 +3743,12 @@ function createSinglePlayer(activePlayer) {
3714
3743
  height = _this$props.height,
3715
3744
  Wrapper = _this$props.wrapper;
3716
3745
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3717
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3746
+ return _react["default"].createElement(Wrapper, _extends({
3718
3747
  style: _objectSpread({}, style, {
3719
3748
  width: width,
3720
3749
  height: height
3721
3750
  })
3722
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3751
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3723
3752
  ref: this.ref,
3724
3753
  activePlayer: activePlayer,
3725
3754
  config: this.config
@@ -3765,31 +3794,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3765
3794
 
3766
3795
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3767
3796
 
3768
- 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); }; }
3769
-
3770
3797
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3771
3798
 
3772
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3773
-
3774
- 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; } }
3775
-
3776
3799
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3777
3800
 
3801
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3802
+
3778
3803
  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); }
3779
3804
 
3780
3805
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3781
3806
 
3782
3807
  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; }
3783
3808
 
3784
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3809
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3785
3810
 
3786
- 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."); }
3811
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3787
3812
 
3788
- 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); }
3789
-
3790
- 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; }
3791
-
3792
- 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; }
3813
+ 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; }
3793
3814
 
3794
3815
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3795
3816
 
@@ -3814,12 +3835,14 @@ function parsePlaylist(url) {
3814
3835
  return {};
3815
3836
  }
3816
3837
 
3817
- var YouTube = /*#__PURE__*/function (_Component) {
3838
+ var YouTube =
3839
+ /*#__PURE__*/
3840
+ function (_Component) {
3818
3841
  _inherits(YouTube, _Component);
3819
3842
 
3820
- var _super = _createSuper(YouTube);
3821
-
3822
3843
  function YouTube() {
3844
+ var _getPrototypeOf2;
3845
+
3823
3846
  var _this;
3824
3847
 
3825
3848
  _classCallCheck(this, YouTube);
@@ -3828,7 +3851,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3828
3851
  args[_key] = arguments[_key];
3829
3852
  }
3830
3853
 
3831
- _this = _super.call.apply(_super, [this].concat(args));
3854
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3832
3855
 
3833
3856
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3834
3857
 
@@ -4016,9 +4039,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
4016
4039
  height: '100%',
4017
4040
  display: display
4018
4041
  };
4019
- return /*#__PURE__*/_react["default"].createElement("div", {
4042
+ return _react["default"].createElement("div", {
4020
4043
  style: style
4021
- }, /*#__PURE__*/_react["default"].createElement("div", {
4044
+ }, _react["default"].createElement("div", {
4022
4045
  ref: this.ref
4023
4046
  }));
4024
4047
  }
@@ -4074,16 +4097,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4074
4097
 
4075
4098
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4076
4099
 
4077
- 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); }; }
4078
-
4079
4100
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4080
4101
 
4081
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4082
-
4083
- 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; } }
4084
-
4085
4102
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4086
4103
 
4104
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4105
+
4087
4106
  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); }
4088
4107
 
4089
4108
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4092,14 +4111,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4092
4111
 
4093
4112
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
4094
4113
  var SDK_GLOBAL = 'SC';
4095
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
4114
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
4096
4115
 
4097
- var SoundCloud = /*#__PURE__*/function (_Component) {
4116
+ var SoundCloud =
4117
+ /*#__PURE__*/
4118
+ function (_Component) {
4098
4119
  _inherits(SoundCloud, _Component);
4099
4120
 
4100
- var _super = _createSuper(SoundCloud);
4101
-
4102
4121
  function SoundCloud() {
4122
+ var _getPrototypeOf2;
4123
+
4103
4124
  var _this;
4104
4125
 
4105
4126
  _classCallCheck(this, SoundCloud);
@@ -4108,7 +4129,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4108
4129
  args[_key] = arguments[_key];
4109
4130
  }
4110
4131
 
4111
- _this = _super.call.apply(_super, [this].concat(args));
4132
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
4112
4133
 
4113
4134
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4114
4135
 
@@ -4229,7 +4250,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4229
4250
  height: '100%',
4230
4251
  display: display
4231
4252
  };
4232
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4253
+ return _react["default"].createElement("iframe", {
4233
4254
  ref: this.ref,
4234
4255
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4235
4256
  style: style,
@@ -4291,16 +4312,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4291
4312
 
4292
4313
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4293
4314
 
4294
- 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); }; }
4295
-
4296
4315
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4297
4316
 
4298
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4299
-
4300
- 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; } }
4301
-
4302
4317
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4303
4318
 
4319
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4320
+
4304
4321
  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); }
4305
4322
 
4306
4323
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4312,12 +4329,14 @@ var SDK_GLOBAL = 'Vimeo';
4312
4329
  var MATCH_URL = /vimeo\.com\/.+/;
4313
4330
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4314
4331
 
4315
- var Vimeo = /*#__PURE__*/function (_Component) {
4332
+ var Vimeo =
4333
+ /*#__PURE__*/
4334
+ function (_Component) {
4316
4335
  _inherits(Vimeo, _Component);
4317
4336
 
4318
- var _super = _createSuper(Vimeo);
4319
-
4320
4337
  function Vimeo() {
4338
+ var _getPrototypeOf2;
4339
+
4321
4340
  var _this;
4322
4341
 
4323
4342
  _classCallCheck(this, Vimeo);
@@ -4326,7 +4345,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4326
4345
  args[_key] = arguments[_key];
4327
4346
  }
4328
4347
 
4329
- _this = _super.call.apply(_super, [this].concat(args));
4348
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4330
4349
 
4331
4350
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4332
4351
 
@@ -4483,7 +4502,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4483
4502
  overflow: 'hidden',
4484
4503
  display: display
4485
4504
  };
4486
- return /*#__PURE__*/_react["default"].createElement("div", {
4505
+ return _react["default"].createElement("div", {
4487
4506
  key: this.props.url,
4488
4507
  ref: this.ref,
4489
4508
  style: style
@@ -4543,16 +4562,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4543
4562
 
4544
4563
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4545
4564
 
4546
- 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); }; }
4547
-
4548
4565
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4549
4566
 
4550
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4551
-
4552
- 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; } }
4553
-
4554
4567
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4555
4568
 
4569
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4570
+
4556
4571
  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); }
4557
4572
 
4558
4573
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4565,12 +4580,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4565
4580
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4566
4581
  var PLAYER_ID_PREFIX = 'facebook-player-';
4567
4582
 
4568
- var Facebook = /*#__PURE__*/function (_Component) {
4583
+ var Facebook =
4584
+ /*#__PURE__*/
4585
+ function (_Component) {
4569
4586
  _inherits(Facebook, _Component);
4570
4587
 
4571
- var _super = _createSuper(Facebook);
4572
-
4573
4588
  function Facebook() {
4589
+ var _getPrototypeOf2;
4590
+
4574
4591
  var _this;
4575
4592
 
4576
4593
  _classCallCheck(this, Facebook);
@@ -4579,7 +4596,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4579
4596
  args[_key] = arguments[_key];
4580
4597
  }
4581
4598
 
4582
- _this = _super.call.apply(_super, [this].concat(args));
4599
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4583
4600
 
4584
4601
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4585
4602
 
@@ -4695,7 +4712,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4695
4712
  width: '100%',
4696
4713
  height: '100%'
4697
4714
  };
4698
- return /*#__PURE__*/_react["default"].createElement("div", {
4715
+ return _react["default"].createElement("div", {
4699
4716
  style: style,
4700
4717
  id: this.playerID,
4701
4718
  className: "fb-video",
@@ -4755,16 +4772,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4755
4772
 
4756
4773
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4757
4774
 
4758
- 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); }; }
4759
-
4760
4775
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4761
4776
 
4762
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4763
-
4764
- 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; } }
4765
-
4766
4777
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4767
4778
 
4779
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4780
+
4768
4781
  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); }
4769
4782
 
4770
4783
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4775,12 +4788,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4775
4788
  var SDK_GLOBAL = 'playerjs';
4776
4789
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4777
4790
 
4778
- var Streamable = /*#__PURE__*/function (_Component) {
4791
+ var Streamable =
4792
+ /*#__PURE__*/
4793
+ function (_Component) {
4779
4794
  _inherits(Streamable, _Component);
4780
4795
 
4781
- var _super = _createSuper(Streamable);
4782
-
4783
4796
  function Streamable() {
4797
+ var _getPrototypeOf2;
4798
+
4784
4799
  var _this;
4785
4800
 
4786
4801
  _classCallCheck(this, Streamable);
@@ -4789,7 +4804,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4789
4804
  args[_key] = arguments[_key];
4790
4805
  }
4791
4806
 
4792
- _this = _super.call.apply(_super, [this].concat(args));
4807
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4793
4808
 
4794
4809
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4795
4810
 
@@ -4909,7 +4924,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4909
4924
  width: '100%',
4910
4925
  height: '100%'
4911
4926
  };
4912
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4927
+ return _react["default"].createElement("iframe", {
4913
4928
  ref: this.ref,
4914
4929
  src: "https://streamable.com/o/".concat(id),
4915
4930
  frameBorder: "0",
@@ -4970,16 +4985,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4970
4985
 
4971
4986
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4972
4987
 
4973
- 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); }; }
4974
-
4975
4988
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4976
4989
 
4977
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4978
-
4979
- 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; } }
4980
-
4981
4990
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4982
4991
 
4992
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4993
+
4983
4994
  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); }
4984
4995
 
4985
4996
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4990,48 +5001,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4990
5001
  var SDK_GLOBAL = 'Wistia';
4991
5002
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4992
5003
 
4993
- var Wistia = /*#__PURE__*/function (_Component) {
5004
+ var Wistia =
5005
+ /*#__PURE__*/
5006
+ function (_Component) {
4994
5007
  _inherits(Wistia, _Component);
4995
5008
 
4996
- var _super = _createSuper(Wistia);
4997
-
4998
5009
  function Wistia() {
5010
+ var _getPrototypeOf2;
5011
+
4999
5012
  var _this;
5000
5013
 
5001
5014
  _classCallCheck(this, Wistia);
5002
5015
 
5003
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
5004
- _args[_key] = arguments[_key];
5016
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5017
+ args[_key] = arguments[_key];
5005
5018
  }
5006
5019
 
5007
- _this = _super.call.apply(_super, [this].concat(_args));
5020
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
5008
5021
 
5009
5022
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5010
5023
 
5011
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
5012
- var _this$props;
5013
-
5014
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
5015
- });
5016
-
5017
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
5018
- var _this$props2;
5019
-
5020
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
5021
- });
5022
-
5023
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
5024
- var _this$props3;
5025
-
5026
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
5027
- });
5028
-
5029
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
5030
- var _this$props4;
5031
-
5032
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
5033
- });
5034
-
5035
5024
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
5036
5025
  _this.callPlayer('mute');
5037
5026
  });
@@ -5053,13 +5042,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
5053
5042
  value: function load(url) {
5054
5043
  var _this2 = this;
5055
5044
 
5056
- var _this$props5 = this.props,
5057
- playing = _this$props5.playing,
5058
- muted = _this$props5.muted,
5059
- controls = _this$props5.controls,
5060
- _onReady = _this$props5.onReady,
5061
- config = _this$props5.config,
5062
- onError = _this$props5.onError;
5045
+ var _this$props = this.props,
5046
+ playing = _this$props.playing,
5047
+ muted = _this$props.muted,
5048
+ controls = _this$props.controls,
5049
+ _onReady = _this$props.onReady,
5050
+ onPlay = _this$props.onPlay,
5051
+ onPause = _this$props.onPause,
5052
+ onSeek = _this$props.onSeek,
5053
+ onEnded = _this$props.onEnded,
5054
+ config = _this$props.config,
5055
+ onError = _this$props.onError;
5063
5056
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
5064
5057
  window._wq = window._wq || [];
5065
5058
 
@@ -5076,28 +5069,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5076
5069
 
5077
5070
  _this2.unbind();
5078
5071
 
5079
- _this2.player.bind('play', _this2.onPlay);
5072
+ _this2.player.bind('play', onPlay);
5080
5073
 
5081
- _this2.player.bind('pause', _this2.onPause);
5074
+ _this2.player.bind('pause', onPause);
5082
5075
 
5083
- _this2.player.bind('seek', _this2.onSeek);
5076
+ _this2.player.bind('seek', onSeek);
5084
5077
 
5085
- _this2.player.bind('end', _this2.onEnded);
5078
+ _this2.player.bind('end', onEnded);
5086
5079
 
5087
5080
  _onReady();
5088
5081
  }
5089
5082
  });
5090
5083
  }, onError);
5091
5084
  }
5092
- }, {
5093
- key: "unbind",
5094
- value: function unbind() {
5095
- this.player.unbind('play', this.onPlay);
5096
- this.player.unbind('pause', this.onPause);
5097
- this.player.unbind('seek', this.onSeek);
5098
- this.player.unbind('end', this.onEnded);
5099
- } // Proxy methods to prevent listener leaks
5100
-
5101
5085
  }, {
5102
5086
  key: "play",
5103
5087
  value: function play() {
@@ -5108,6 +5092,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5108
5092
  value: function pause() {
5109
5093
  this.callPlayer('pause');
5110
5094
  }
5095
+ }, {
5096
+ key: "unbind",
5097
+ value: function unbind() {
5098
+ var _this$props2 = this.props,
5099
+ onPlay = _this$props2.onPlay,
5100
+ onPause = _this$props2.onPause,
5101
+ onSeek = _this$props2.onSeek,
5102
+ onEnded = _this$props2.onEnded;
5103
+ this.player.unbind('play', onPlay);
5104
+ this.player.unbind('pause', onPause);
5105
+ this.player.unbind('seek', onSeek);
5106
+ this.player.unbind('end', onEnded);
5107
+ }
5111
5108
  }, {
5112
5109
  key: "stop",
5113
5110
  value: function stop() {
@@ -5153,7 +5150,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
5153
5150
  width: '100%',
5154
5151
  height: '100%'
5155
5152
  };
5156
- return /*#__PURE__*/_react["default"].createElement("div", {
5153
+ return _react["default"].createElement("div", {
5157
5154
  key: id,
5158
5155
  className: className,
5159
5156
  style: style
@@ -5213,16 +5210,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5213
5210
 
5214
5211
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5215
5212
 
5216
- 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); }; }
5217
-
5218
5213
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5219
5214
 
5220
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5221
-
5222
- 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; } }
5223
-
5224
5215
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5225
5216
 
5217
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5218
+
5226
5219
  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); }
5227
5220
 
5228
5221
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5235,12 +5228,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5235
5228
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5236
5229
  var PLAYER_ID_PREFIX = 'twitch-player-';
5237
5230
 
5238
- var Twitch = /*#__PURE__*/function (_Component) {
5231
+ var Twitch =
5232
+ /*#__PURE__*/
5233
+ function (_Component) {
5239
5234
  _inherits(Twitch, _Component);
5240
5235
 
5241
- var _super = _createSuper(Twitch);
5242
-
5243
5236
  function Twitch() {
5237
+ var _getPrototypeOf2;
5238
+
5244
5239
  var _this;
5245
5240
 
5246
5241
  _classCallCheck(this, Twitch);
@@ -5249,7 +5244,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5249
5244
  args[_key] = arguments[_key];
5250
5245
  }
5251
5246
 
5252
- _this = _super.call.apply(_super, [this].concat(args));
5247
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5253
5248
 
5254
5249
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5255
5250
 
@@ -5370,7 +5365,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5370
5365
  width: '100%',
5371
5366
  height: '100%'
5372
5367
  };
5373
- return /*#__PURE__*/_react["default"].createElement("div", {
5368
+ return _react["default"].createElement("div", {
5374
5369
  style: style,
5375
5370
  id: this.playerID
5376
5371
  });
@@ -5423,15 +5418,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5423
5418
 
5424
5419
  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; }
5425
5420
 
5426
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5427
-
5428
- 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."); }
5421
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5429
5422
 
5430
- 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); }
5423
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5431
5424
 
5432
- 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; }
5433
-
5434
- 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; }
5425
+ 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; }
5435
5426
 
5436
5427
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5437
5428
 
@@ -5441,16 +5432,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5441
5432
 
5442
5433
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5443
5434
 
5444
- 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); }; }
5445
-
5446
5435
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5447
5436
 
5448
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5449
-
5450
- 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; } }
5451
-
5452
5437
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5453
5438
 
5439
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5440
+
5454
5441
  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); }
5455
5442
 
5456
5443
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5462,12 +5449,14 @@ var SDK_GLOBAL = 'DM';
5462
5449
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5463
5450
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5464
5451
 
5465
- var DailyMotion = /*#__PURE__*/function (_Component) {
5452
+ var DailyMotion =
5453
+ /*#__PURE__*/
5454
+ function (_Component) {
5466
5455
  _inherits(DailyMotion, _Component);
5467
5456
 
5468
- var _super = _createSuper(DailyMotion);
5469
-
5470
5457
  function DailyMotion() {
5458
+ var _getPrototypeOf2;
5459
+
5471
5460
  var _this;
5472
5461
 
5473
5462
  _classCallCheck(this, DailyMotion);
@@ -5476,7 +5465,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5476
5465
  args[_key] = arguments[_key];
5477
5466
  }
5478
5467
 
5479
- _this = _super.call.apply(_super, [this].concat(args));
5468
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5480
5469
 
5481
5470
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5482
5471
 
@@ -5605,9 +5594,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5605
5594
  height: '100%',
5606
5595
  display: display
5607
5596
  };
5608
- return /*#__PURE__*/_react["default"].createElement("div", {
5597
+ return _react["default"].createElement("div", {
5609
5598
  style: style
5610
- }, /*#__PURE__*/_react["default"].createElement("div", {
5599
+ }, _react["default"].createElement("div", {
5611
5600
  ref: this.ref
5612
5601
  }));
5613
5602
  }
@@ -5665,16 +5654,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5665
5654
 
5666
5655
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5667
5656
 
5668
- 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); }; }
5669
-
5670
5657
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5671
5658
 
5672
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5673
-
5674
- 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; } }
5675
-
5676
5659
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5677
5660
 
5661
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5662
+
5678
5663
  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); }
5679
5664
 
5680
5665
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5685,12 +5670,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5685
5670
  var SDK_GLOBAL = 'Mixcloud';
5686
5671
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5687
5672
 
5688
- var Mixcloud = /*#__PURE__*/function (_Component) {
5673
+ var Mixcloud =
5674
+ /*#__PURE__*/
5675
+ function (_Component) {
5689
5676
  _inherits(Mixcloud, _Component);
5690
5677
 
5691
- var _super = _createSuper(Mixcloud);
5692
-
5693
5678
  function Mixcloud() {
5679
+ var _getPrototypeOf2;
5680
+
5694
5681
  var _this;
5695
5682
 
5696
5683
  _classCallCheck(this, Mixcloud);
@@ -5699,7 +5686,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5699
5686
  args[_key] = arguments[_key];
5700
5687
  }
5701
5688
 
5702
- _this = _super.call.apply(_super, [this].concat(args));
5689
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5703
5690
 
5704
5691
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5705
5692
 
@@ -5802,7 +5789,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5802
5789
  })); // We have to give the iframe a key here to prevent a
5803
5790
  // weird dialog appearing when loading a new track
5804
5791
 
5805
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5792
+ return _react["default"].createElement("iframe", {
5806
5793
  key: id,
5807
5794
  ref: this.ref,
5808
5795
  style: style,
@@ -5862,33 +5849,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5862
5849
 
5863
5850
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5864
5851
 
5865
- 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); }; }
5866
-
5867
5852
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5868
5853
 
5869
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5870
-
5871
- 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; } }
5872
-
5873
5854
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5874
5855
 
5856
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5857
+
5875
5858
  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); }
5876
5859
 
5877
5860
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5878
5861
 
5879
5862
  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; }
5880
5863
 
5881
- 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; } } }; }
5882
-
5883
- 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); }
5884
-
5885
- 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; }
5886
-
5887
5864
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5888
5865
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5889
5866
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5890
5867
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5891
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5868
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5892
5869
  var HLS_GLOBAL = 'Hls';
5893
5870
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5894
5871
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5897,11 +5874,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5897
5874
 
5898
5875
  function canPlay(url) {
5899
5876
  if (url instanceof Array) {
5900
- var _iterator = _createForOfIteratorHelper(url),
5901
- _step;
5877
+ var _iteratorNormalCompletion = true;
5878
+ var _didIteratorError = false;
5879
+ var _iteratorError = undefined;
5902
5880
 
5903
5881
  try {
5904
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5882
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5905
5883
  var item = _step.value;
5906
5884
 
5907
5885
  if (typeof item === 'string' && canPlay(item)) {
@@ -5913,9 +5891,18 @@ function canPlay(url) {
5913
5891
  }
5914
5892
  }
5915
5893
  } catch (err) {
5916
- _iterator.e(err);
5894
+ _didIteratorError = true;
5895
+ _iteratorError = err;
5917
5896
  } finally {
5918
- _iterator.f();
5897
+ try {
5898
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5899
+ _iterator["return"]();
5900
+ }
5901
+ } finally {
5902
+ if (_didIteratorError) {
5903
+ throw _iteratorError;
5904
+ }
5905
+ }
5919
5906
  }
5920
5907
 
5921
5908
  return false;
@@ -5939,12 +5926,14 @@ function canEnablePIP(url) {
5939
5926
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5940
5927
  }
5941
5928
 
5942
- var FilePlayer = /*#__PURE__*/function (_Component) {
5929
+ var FilePlayer =
5930
+ /*#__PURE__*/
5931
+ function (_Component) {
5943
5932
  _inherits(FilePlayer, _Component);
5944
5933
 
5945
- var _super = _createSuper(FilePlayer);
5946
-
5947
5934
  function FilePlayer() {
5935
+ var _getPrototypeOf2;
5936
+
5948
5937
  var _this;
5949
5938
 
5950
5939
  _classCallCheck(this, FilePlayer);
@@ -5953,7 +5942,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5953
5942
  _args[_key] = arguments[_key];
5954
5943
  }
5955
5944
 
5956
- _this = _super.call.apply(_super, [this].concat(_args));
5945
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5957
5946
 
5958
5947
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5959
5948
  var _this$props;
@@ -6040,19 +6029,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6040
6029
 
6041
6030
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
6042
6031
  if (typeof source === 'string') {
6043
- return /*#__PURE__*/_react["default"].createElement("source", {
6032
+ return _react["default"].createElement("source", {
6044
6033
  key: index,
6045
6034
  src: source
6046
6035
  });
6047
6036
  }
6048
6037
 
6049
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
6038
+ return _react["default"].createElement("source", _extends({
6050
6039
  key: index
6051
6040
  }, source));
6052
6041
  });
6053
6042
 
6054
6043
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
6055
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
6044
+ return _react["default"].createElement("track", _extends({
6056
6045
  key: index
6057
6046
  }, track));
6058
6047
  });
@@ -6090,10 +6079,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6090
6079
  key: "componentWillUnmount",
6091
6080
  value: function componentWillUnmount() {
6092
6081
  this.removeListeners(this.player);
6093
-
6094
- if (this.hls) {
6095
- this.hls.destroy();
6096
- }
6097
6082
  }
6098
6083
  }, {
6099
6084
  key: "addListeners",
@@ -6224,6 +6209,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6224
6209
  value: function stop() {
6225
6210
  this.player.removeAttribute('src');
6226
6211
 
6212
+ if (this.hls) {
6213
+ this.hls.destroy();
6214
+ }
6215
+
6227
6216
  if (this.dash) {
6228
6217
  this.dash.reset();
6229
6218
  }
@@ -6335,7 +6324,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6335
6324
  width: width === 'auto' ? width : '100%',
6336
6325
  height: height === 'auto' ? height : '100%'
6337
6326
  };
6338
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6327
+ return _react["default"].createElement(Element, _extends({
6339
6328
  ref: this.ref,
6340
6329
  src: this.getSource(url),
6341
6330
  style: style,
@@ -6425,16 +6414,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6425
6414
 
6426
6415
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6427
6416
 
6428
- 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); }; }
6429
-
6430
6417
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6431
6418
 
6432
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6433
-
6434
- 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; } }
6435
-
6436
6419
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6437
6420
 
6421
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6422
+
6438
6423
  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); }
6439
6424
 
6440
6425
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6443,12 +6428,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6443
6428
 
6444
6429
  var ICON_SIZE = '64px';
6445
6430
 
6446
- var Preview = /*#__PURE__*/function (_Component) {
6431
+ var Preview =
6432
+ /*#__PURE__*/
6433
+ function (_Component) {
6447
6434
  _inherits(Preview, _Component);
6448
6435
 
6449
- var _super = _createSuper(Preview);
6450
-
6451
6436
  function Preview() {
6437
+ var _getPrototypeOf2;
6438
+
6452
6439
  var _this;
6453
6440
 
6454
6441
  _classCallCheck(this, Preview);
@@ -6457,7 +6444,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6457
6444
  args[_key] = arguments[_key];
6458
6445
  }
6459
6446
 
6460
- _this = _super.call.apply(_super, [this].concat(args));
6447
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6461
6448
 
6462
6449
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6463
6450
 
@@ -6555,15 +6542,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6555
6542
  }
6556
6543
  };
6557
6544
 
6558
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6545
+ var defaultPlayIcon = _react["default"].createElement("div", {
6559
6546
  style: styles.shadow,
6560
6547
  className: "react-player__shadow"
6561
- }, /*#__PURE__*/_react["default"].createElement("div", {
6548
+ }, _react["default"].createElement("div", {
6562
6549
  style: styles.playIcon,
6563
6550
  className: "react-player__play-icon"
6564
6551
  }));
6565
6552
 
6566
- return /*#__PURE__*/_react["default"].createElement("div", {
6553
+ return _react["default"].createElement("div", {
6567
6554
  style: styles.preview,
6568
6555
  className: "react-player__preview",
6569
6556
  onClick: onClick
@@ -6600,12 +6587,6 @@ var _Player = _interopRequireDefault(Player_1);
6600
6587
 
6601
6588
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6602
6589
 
6603
- 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; } } }; }
6604
-
6605
- 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); }
6606
-
6607
- 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; }
6608
-
6609
6590
  var PRELOAD_PLAYERS = [{
6610
6591
  Player: YouTube_1.YouTube,
6611
6592
  configKey: 'youtube',
@@ -6626,16 +6607,16 @@ var PRELOAD_PLAYERS = [{
6626
6607
 
6627
6608
  function renderPreloadPlayers(url, controls, config) {
6628
6609
  var players = [];
6629
-
6630
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6631
- _step;
6610
+ var _iteratorNormalCompletion = true;
6611
+ var _didIteratorError = false;
6612
+ var _iteratorError = undefined;
6632
6613
 
6633
6614
  try {
6634
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6615
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6635
6616
  var player = _step.value;
6636
6617
 
6637
6618
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6638
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6619
+ players.push(_react["default"].createElement(_Player["default"], {
6639
6620
  key: player.Player.displayName,
6640
6621
  activePlayer: player.Player,
6641
6622
  url: player.url,
@@ -6647,9 +6628,18 @@ function renderPreloadPlayers(url, controls, config) {
6647
6628
  }
6648
6629
  }
6649
6630
  } catch (err) {
6650
- _iterator.e(err);
6631
+ _didIteratorError = true;
6632
+ _iteratorError = err;
6651
6633
  } finally {
6652
- _iterator.f();
6634
+ try {
6635
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6636
+ _iterator["return"]();
6637
+ }
6638
+ } finally {
6639
+ if (_didIteratorError) {
6640
+ throw _iteratorError;
6641
+ }
6642
+ }
6653
6643
  }
6654
6644
 
6655
6645
  return players;
@@ -6773,17 +6763,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6773
6763
 
6774
6764
  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); }
6775
6765
 
6776
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6777
-
6778
- 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."); }
6779
-
6780
- 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); }
6766
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6781
6767
 
6782
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6768
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6783
6769
 
6784
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6770
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6785
6771
 
6786
- 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; }
6772
+ 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; } }
6787
6773
 
6788
6774
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6789
6775
 
@@ -6791,16 +6777,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6791
6777
 
6792
6778
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6793
6779
 
6794
- 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); }; }
6795
-
6796
6780
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6797
6781
 
6798
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6799
-
6800
- 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; } }
6801
-
6802
6782
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6803
6783
 
6784
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6785
+
6804
6786
  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); }
6805
6787
 
6806
6788
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6810,12 +6792,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6810
6792
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6811
6793
  var customPlayers = [];
6812
6794
 
6813
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6795
+ var ReactPlayer =
6796
+ /*#__PURE__*/
6797
+ function (_Component) {
6814
6798
  _inherits(ReactPlayer, _Component);
6815
6799
 
6816
- var _super = _createSuper(ReactPlayer);
6817
-
6818
6800
  function ReactPlayer() {
6801
+ var _getPrototypeOf2;
6802
+
6819
6803
  var _this;
6820
6804
 
6821
6805
  _classCallCheck(this, ReactPlayer);
@@ -6824,7 +6808,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6824
6808
  args[_key] = arguments[_key];
6825
6809
  }
6826
6810
 
6827
- _this = _super.call.apply(_super, [this].concat(args));
6811
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6828
6812
 
6829
6813
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6830
6814
 
@@ -6935,7 +6919,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6935
6919
  key: "renderActivePlayer",
6936
6920
  value: function renderActivePlayer(url, activePlayer) {
6937
6921
  if (!url) return null;
6938
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6922
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6939
6923
  key: activePlayer.displayName,
6940
6924
  ref: this.activePlayerRef,
6941
6925
  config: this.config,
@@ -6972,14 +6956,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6972
6956
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6973
6957
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6974
6958
 
6975
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6959
+ var preview = _react["default"].createElement(_Preview["default"], {
6976
6960
  url: url,
6977
6961
  light: light,
6978
6962
  playIcon: playIcon,
6979
6963
  onClick: this.handleClickPreview
6980
6964
  });
6981
6965
 
6982
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6966
+ return _react["default"].createElement(Wrapper, _extends({
6983
6967
  ref: this.wrapperRef,
6984
6968
  style: _objectSpread({}, style, {
6985
6969
  width: width,
@@ -7302,8 +7286,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7302
7286
  var duration = player.getDuration();
7303
7287
  var queue = Math.floor(duration / 10);
7304
7288
  var segment = Math.floor(current / queue);
7305
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
7306
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
7289
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
7290
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
7307
7291
  //autoplay
7308
7292
 
7309
7293
  //Small pause before starting next video
@@ -7323,8 +7307,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7323
7307
  var queue = Math.floor(duration / 10);
7324
7308
  var segment = Math.floor(current / queue);
7325
7309
 
7326
- Beam.report_beam_video('End', main_18, duration, current, segment);
7327
- Segment.report_video_event('Video End', main_18, duration, current, segment);
7310
+ Beam.report_beam_video('End', main_16, duration, current, segment);
7311
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
7328
7312
  setEndReported(true);
7329
7313
  clearInterval(intervalID);
7330
7314
  }
@@ -7374,8 +7358,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7374
7358
  var queue = Math.floor(duration / 10);
7375
7359
  var segment = Math.floor(current / queue);
7376
7360
  if (!queueProgress.includes(segment)) {
7377
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
7378
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
7361
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
7362
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
7379
7363
  queueProgress.push(segment);
7380
7364
  }
7381
7365
  };
@@ -7388,8 +7372,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7388
7372
  var queue = Math.floor(duration / 10);
7389
7373
  var segment = Math.floor(current / queue);
7390
7374
 
7391
- Beam.report_beam_video('Play', main_18, duration, current, segment);
7392
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
7375
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
7376
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
7393
7377
 
7394
7378
  if (!playReported) {
7395
7379
  setPlayReported(true);
@@ -7407,8 +7391,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7407
7391
  var queue = Math.floor(duration / 10);
7408
7392
  var segment = Math.floor(current / queue);
7409
7393
 
7410
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
7411
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
7394
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
7395
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
7412
7396
  };
7413
7397
 
7414
7398
  // Youtube Options
@@ -7526,7 +7510,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7526
7510
  React__default.createElement(
7527
7511
  'div',
7528
7512
  { className: 'vid-text' },
7529
- Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7513
+ Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7530
7514
  ),
7531
7515
  React__default.createElement(
7532
7516
  'style',
@@ -7844,7 +7828,7 @@ var Poll$1 = function Poll(_ref) {
7844
7828
  );
7845
7829
  };
7846
7830
 
7847
- var numberOfPaginations = main_42 ? 4 : 10;
7831
+ var numberOfPaginations = main_35 ? 4 : 10;
7848
7832
 
7849
7833
  var Quiz = function Quiz(_ref) {
7850
7834
  var quizzes = _ref.quizzes,
@@ -7964,7 +7948,7 @@ var Quiz = function Quiz(_ref) {
7964
7948
  var renderPagination = function renderPagination() {
7965
7949
  return React__default.createElement(
7966
7950
  Pagination$1,
7967
- { className: 'p-0 m-0', size: main_42 && 'sm' },
7951
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7968
7952
  React__default.createElement(Pagination$1.First, { onClick: function onClick() {
7969
7953
  return changePage('first');
7970
7954
  }, disabled: currentPage === 1 }),
@@ -8290,7 +8274,7 @@ var MultiMedia = function MultiMedia(props) {
8290
8274
  { xs: 12, md: 12 / medias.length, key: media._key },
8291
8275
  React__default.createElement(
8292
8276
  'a',
8293
- _extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
8277
+ _extends$1({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
8294
8278
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8295
8279
  React__default.createElement(
8296
8280
  'div',
@@ -8585,7 +8569,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8585
8569
 
8586
8570
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8587
8571
  if (biography) {
8588
- return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8572
+ return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
8589
8573
  }
8590
8574
  };
8591
8575
 
@@ -8671,7 +8655,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8671
8655
  //console.log('useLayoutEffect')
8672
8656
  if (!firstLoad) {
8673
8657
  setUpArrowClicked(false);
8674
- if (main_43) {
8658
+ if (main_36) {
8675
8659
  grabLoadedAds();
8676
8660
  } else {
8677
8661
  scrollToArticle();
@@ -8695,7 +8679,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8695
8679
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8696
8680
  if (pageview) pageview(path);
8697
8681
 
8698
- if (!main_43) {
8682
+ if (!main_36) {
8699
8683
  lib_3.getGoogletag().then(function (googletag) {
8700
8684
  if (window.googletag && googletag.pubadsReady) {
8701
8685
  lib_3.refresh();
@@ -8703,7 +8687,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8703
8687
  });
8704
8688
  }
8705
8689
  //Refresh leaderboard ad on mobile
8706
- if (main_43) {
8690
+ if (main_36) {
8707
8691
  var leaderboardSlotId = '';
8708
8692
  lib_3.getGoogletag().then(function (googletag) {
8709
8693
  if (window.googletag && googletag.pubadsReady) {
@@ -8772,7 +8756,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8772
8756
  React__default.createElement(
8773
8757
  'div',
8774
8758
  { className: 'ad-box', style: { textAlign: 'center' } },
8775
- main_43 && Ads.map(function (ad, index) {
8759
+ main_36 && Ads.map(function (ad, index) {
8776
8760
  if (index === 0) {
8777
8761
  return React__default.createElement(
8778
8762
  'div',
@@ -8863,7 +8847,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8863
8847
  React__default.createElement(
8864
8848
  'div',
8865
8849
  { className: 'mt-2 mb-2' },
8866
- React__default.createElement(BlockContent, _extends({
8850
+ React__default.createElement(BlockContent, _extends$1({
8867
8851
  serializers: getSerializers,
8868
8852
  videoAccountIDs: accountIDs,
8869
8853
  blocks: article.text,
@@ -8894,7 +8878,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8894
8878
  React__default.createElement(
8895
8879
  'div',
8896
8880
  { className: 'ad-box', style: { textAlign: 'center' } },
8897
- main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8881
+ main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8898
8882
  if (innerIndex === 0) {
8899
8883
  return React__default.createElement(
8900
8884
  'div',
@@ -8981,7 +8965,7 @@ var FigureImage = React__default.memo(function (_ref2) {
8981
8965
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8982
8966
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8983
8967
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
8984
- React__default.createElement('img', _extends({
8968
+ React__default.createElement('img', _extends$1({
8985
8969
  style: figureImageStyle,
8986
8970
  className: 'figure-image',
8987
8971
  src: urlFor({ source: node, client: client }),
@@ -9049,7 +9033,7 @@ var FigureComponent = function FigureComponent(props) {
9049
9033
  } else {
9050
9034
  return React__default.createElement(
9051
9035
  Tooltip$1,
9052
- _extends({ id: 'button-tooltip' }, props),
9036
+ _extends$1({ id: 'button-tooltip' }, props),
9053
9037
  React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
9054
9038
  );
9055
9039
  }
@@ -9063,32 +9047,32 @@ var FigureComponent = function FigureComponent(props) {
9063
9047
  handleClickFigure = _ref3.handleClickFigure;
9064
9048
 
9065
9049
  var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
9066
- var triggerAction = main_42 ? 'click' : 'hover';
9067
- var placementLocation = main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9050
+ var triggerAction = main_35 ? 'click' : 'hover';
9051
+ var placementLocation = main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9068
9052
  return React__default.createElement(
9069
9053
  'picture',
9070
9054
  null,
9071
9055
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9072
9056
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9073
9057
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
9074
- main_42 && link ? React__default.createElement('img', _extends({
9058
+ main_35 && link ? React__default.createElement('img', _extends$1({
9075
9059
  style: figureImageStyle,
9076
9060
  className: 'figure-image',
9077
9061
  src: urlFor({ source: node, client: client }),
9078
9062
  alt: imgAlt ? imgAlt : 'figure image'
9079
- }, !link && !main_42 && {
9063
+ }, !link && !main_35 && {
9080
9064
  onClick: function onClick() {
9081
9065
  return handleClickFigure(node, client);
9082
9066
  }
9083
9067
  })) : React__default.createElement(
9084
9068
  OverlayTrigger,
9085
9069
  { trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
9086
- React__default.createElement('img', _extends({
9070
+ React__default.createElement('img', _extends$1({
9087
9071
  style: figureImageStyle,
9088
9072
  className: 'figure-image',
9089
9073
  src: urlFor({ source: node, client: client }),
9090
9074
  alt: imgAlt ? imgAlt : 'figure image'
9091
- }, !link && !main_42 && {
9075
+ }, !link && !main_35 && {
9092
9076
  onClick: function onClick() {
9093
9077
  return handleClickFigure(node, client);
9094
9078
  }
@@ -9247,7 +9231,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
9247
9231
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9248
9232
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9249
9233
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9250
- React__default.createElement('img', _extends({
9234
+ React__default.createElement('img', _extends$1({
9251
9235
  'images-count': imagesCount,
9252
9236
  className: 'multi-figure-image',
9253
9237
  src: urlFor({ source: image, client: client }),
@@ -9307,32 +9291,32 @@ var MultiFigure = function MultiFigure(props) {
9307
9291
  link = _ref3.link,
9308
9292
  handleClickFigure = _ref3.handleClickFigure;
9309
9293
 
9310
- var triggerAction = main_42 ? 'click' : 'hover';
9311
- var placementLocation = main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9294
+ var triggerAction = main_35 ? 'click' : 'hover';
9295
+ var placementLocation = main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9312
9296
  return React__default.createElement(
9313
9297
  'picture',
9314
9298
  null,
9315
9299
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9316
9300
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9317
9301
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9318
- main_42 && link ? React__default.createElement('img', _extends({
9302
+ main_35 && link ? React__default.createElement('img', _extends$1({
9319
9303
  'images-count': imagesCount,
9320
9304
  className: 'multi-figure-image',
9321
9305
  src: urlFor({ source: image, client: client }),
9322
9306
  alt: imgAlt ? imgAlt : 'multi figure'
9323
- }, !link && !main_42 && {
9307
+ }, !link && !main_35 && {
9324
9308
  onClick: function onClick() {
9325
9309
  return handleClickFigure(image, client);
9326
9310
  }
9327
9311
  })) : React__default.createElement(
9328
9312
  OverlayTrigger,
9329
9313
  { trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
9330
- React__default.createElement('img', _extends({
9314
+ React__default.createElement('img', _extends$1({
9331
9315
  'images-count': imagesCount,
9332
9316
  className: 'multi-figure-image',
9333
9317
  src: urlFor({ source: image, client: client }),
9334
9318
  alt: imgAlt ? imgAlt : 'multi figure'
9335
- }, !link && !main_42 && {
9319
+ }, !link && !main_35 && {
9336
9320
  onClick: function onClick() {
9337
9321
  return handleClickFigure(image, client);
9338
9322
  }
@@ -9360,7 +9344,7 @@ var MultiFigure = function MultiFigure(props) {
9360
9344
  } else {
9361
9345
  return React__default.createElement(
9362
9346
  Tooltip$1,
9363
- _extends({ id: 'button-tooltip' }, props),
9347
+ _extends$1({ id: 'button-tooltip' }, props),
9364
9348
  React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
9365
9349
  );
9366
9350
  }
@@ -9380,7 +9364,7 @@ var MultiFigure = function MultiFigure(props) {
9380
9364
  { xs: 12, md: 12 / images.length, key: index },
9381
9365
  image.link ? React__default.createElement(
9382
9366
  'a',
9383
- _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9367
+ _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9384
9368
  React__default.createElement(
9385
9369
  'div',
9386
9370
  { className: 'multi-figure-image-container' },
@@ -9408,7 +9392,7 @@ var MultiFigure = function MultiFigure(props) {
9408
9392
  { xs: 12, md: 12 / images.length, key: index },
9409
9393
  image.link ? React__default.createElement(
9410
9394
  'a',
9411
- _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9395
+ _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9412
9396
  React__default.createElement(
9413
9397
  'div',
9414
9398
  { className: 'multi-figure-image-container' },
@@ -9537,7 +9521,7 @@ exports.__esModule = true;
9537
9521
 
9538
9522
 
9539
9523
 
9540
- var _extends3 = _interopRequireDefault(_extends$1);
9524
+ var _extends3 = _interopRequireDefault(_extends$2);
9541
9525
 
9542
9526
 
9543
9527
 
@@ -9850,7 +9834,7 @@ var BlockTable = function BlockTable(props) {
9850
9834
  return React__default.createElement(
9851
9835
  'div',
9852
9836
  { className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
9853
- React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9837
+ React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
9854
9838
  );
9855
9839
  })
9856
9840
  );
@@ -10122,7 +10106,7 @@ var getSerializers = function getSerializers() {
10122
10106
  var isExernalUrl = checkUrlIsExternal(href);
10123
10107
  return href ? React__default.createElement(
10124
10108
  'a',
10125
- _extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10109
+ _extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10126
10110
  children
10127
10111
  ) : children;
10128
10112
  },