@mjhls/mjh-framework 1.0.843 → 1.0.844-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 (280) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +13 -13
  4. package/dist/cjs/AD300x250x600.js +13 -13
  5. package/dist/cjs/AD728x90.js +14 -14
  6. package/dist/cjs/ADFloatingFooter.js +12 -12
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +12 -12
  9. package/dist/cjs/{ADInfeed-6810812f.js → ADInfeed-9b50464b.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +12 -12
  11. package/dist/cjs/ADSponsoredResources.js +12 -12
  12. package/dist/cjs/ADWebcast.js +12 -12
  13. package/dist/cjs/ADWelcome.js +12 -12
  14. package/dist/cjs/{ADlgInfeed-12b1f200.js → ADlgInfeed-65e48ce7.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +6 -6
  16. package/dist/cjs/AdSlot.js +14 -14
  17. package/dist/cjs/AdSlotsProvider.js +905 -12
  18. package/dist/cjs/AlgoliaSearch.js +264 -391
  19. package/dist/cjs/AlphabeticList.js +8 -8
  20. package/dist/cjs/ArticleCarousel.js +10 -10
  21. package/dist/cjs/ArticleProgramLandingPage.js +27 -27
  22. package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
  23. package/dist/cjs/ArticleSeriesListing.js +18 -18
  24. package/dist/cjs/Auth.js +451 -471
  25. package/dist/cjs/AuthWrapper.js +242 -283
  26. package/dist/cjs/{AuthorComponent-0c464248.js → AuthorComponent-bb831b74.js} +1 -1
  27. package/dist/cjs/Beam.js +7 -7
  28. package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
  29. package/dist/cjs/Breadcrumbs.js +5 -5
  30. package/dist/cjs/CMEDeck.js +14 -14
  31. package/dist/cjs/Column2.js +8 -8
  32. package/dist/cjs/Column3.js +16 -16
  33. package/dist/cjs/ConferenceArticleCard.js +17 -17
  34. package/dist/cjs/DeckContent.js +31 -31
  35. package/dist/cjs/DeckQueue.js +19 -19
  36. package/dist/cjs/{Dfp-ac0c1cc6.js → Dfp-26baccf1.js} +7 -7
  37. package/dist/cjs/EventsDeck.js +33 -33
  38. package/dist/cjs/ExternalResources.js +26 -26
  39. package/dist/cjs/Feature.js +3 -3
  40. package/dist/cjs/ForbesHero.js +8 -8
  41. package/dist/cjs/GridContent.js +28 -28
  42. package/dist/cjs/GridHero.js +8 -8
  43. package/dist/cjs/GroupDeck.js +8 -8
  44. package/dist/cjs/HamMagazine.js +25 -25
  45. package/dist/cjs/Hero.js +1 -1
  46. package/dist/cjs/HighlightenVideo.js +1 -1
  47. package/dist/cjs/HorizontalArticleListing.js +25 -25
  48. package/dist/cjs/HorizontalHero.js +3 -3
  49. package/dist/cjs/IssueContentDeck.js +8 -8
  50. package/dist/cjs/IssueDeck.js +10 -10
  51. package/dist/cjs/IssueLanding.js +59 -59
  52. package/dist/cjs/KMTracker.js +15 -15
  53. package/dist/cjs/LeftNav.js +12 -12
  54. package/dist/cjs/MasterDeck.js +32 -32
  55. package/dist/cjs/MediaSeriesLanding.js +209 -208
  56. package/dist/cjs/NavDvm.js +7 -7
  57. package/dist/cjs/NavMagazine.js +24 -24
  58. package/dist/cjs/NavNative.js +21 -21
  59. package/dist/cjs/OncliveHero.js +3 -2
  60. package/dist/cjs/OncliveLargeHero.js +8 -8
  61. package/dist/cjs/PageFilter.js +5 -5
  62. package/dist/cjs/PartnerDetailListing.js +1133 -35
  63. package/dist/cjs/PdfDownload.js +1 -1
  64. package/dist/cjs/PopUpModal.js +5 -5
  65. package/dist/cjs/PubSection.js +20 -20
  66. package/dist/cjs/PubToc.js +7 -7
  67. package/dist/cjs/PublicationDeck.js +2 -2
  68. package/dist/cjs/PublicationLanding.js +36 -36
  69. package/dist/cjs/QueueDeckExpanded.js +22 -22
  70. package/dist/cjs/RecentNews.js +1 -1
  71. package/dist/cjs/RelatedContent.js +30 -30
  72. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  73. package/dist/cjs/Search.js +5 -5
  74. package/dist/cjs/Segment.js +6 -6
  75. package/dist/cjs/SeriesListingDeck.js +15 -15
  76. package/dist/cjs/{SeriesSlider-dad08884.js → SeriesSlider-8bbc989f.js} +11 -11
  77. package/dist/cjs/SideFooter.js +10 -10
  78. package/dist/cjs/{SocialSearchComponent-ad15dd61.js → SocialSearchComponent-cea213aa.js} +7 -7
  79. package/dist/cjs/TaxonomyCard.js +4 -4
  80. package/dist/cjs/TaxonomyDescription.js +25 -25
  81. package/dist/cjs/TemplateNormal.js +18 -18
  82. package/dist/cjs/ThumbnailCard.js +1 -1
  83. package/dist/cjs/Ustream.js +12 -12
  84. package/dist/cjs/VerticalHero.js +2 -2
  85. package/dist/cjs/VideoProgramLandingPage.js +27 -27
  86. package/dist/cjs/VideoSeriesCard.js +9 -9
  87. package/dist/cjs/VideoSeriesFilter.js +7 -7
  88. package/dist/cjs/VideoSeriesLandingPage.js +25 -25
  89. package/dist/cjs/VideoSeriesListing.js +18 -18
  90. package/dist/cjs/View.js +63 -63
  91. package/dist/cjs/YahooHero.js +8 -8
  92. package/dist/cjs/YoutubeGroup.js +18 -18
  93. package/dist/cjs/{_is-array-39ff55dd.js → _is-array-754e012d.js} +1 -1
  94. package/dist/cjs/{_iter-detect-ef35661e.js → _iter-detect-60b2f026.js} +2 -2
  95. package/dist/cjs/{_object-sap-b231f928.js → _object-sap-5e74ba08.js} +1 -1
  96. package/dist/cjs/{_object-to-array-c3aeb51d.js → _object-to-array-5762f850.js} +1 -1
  97. package/dist/cjs/{_to-object-7a3ce269.js → _to-object-329a650b.js} +2 -2
  98. package/dist/cjs/{asyncToGenerator-8ae2191c.js → asyncToGenerator-140e5f89.js} +5 -5
  99. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  100. package/dist/cjs/{core.get-iterator-method-6cd7682d.js → core.get-iterator-method-f62321d4.js} +2 -2
  101. package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
  102. package/dist/cjs/{define-property-fc002cec.js → define-property-f4d12f4e.js} +1 -1
  103. package/dist/cjs/{defineProperty-03c4c82e.js → defineProperty-55548b25.js} +1 -1
  104. package/dist/cjs/{es6.string.iterator-ab94a594.js → es6.string.iterator-cc0bbaa4.js} +1 -1
  105. package/dist/cjs/{extends-acc1318d.js → extends-0a918631.js} +1 -1
  106. package/dist/cjs/faundadb.js +7 -7
  107. package/dist/cjs/getQuery.js +2 -2
  108. package/dist/cjs/getRelatedArticle.js +11 -424
  109. package/dist/cjs/getRootDocGroup.js +6 -6
  110. package/dist/cjs/getSerializers.js +25 -25
  111. package/dist/cjs/{getTargeting-98ab97f7.js → getTargeting-021d644c.js} +12 -12
  112. package/dist/cjs/getTargeting.js +7 -7
  113. package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
  114. package/dist/cjs/{index-52c2d039.js → index-45f8b70b.js} +540 -531
  115. package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
  116. package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
  117. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  118. package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
  119. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  120. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  121. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  122. package/dist/cjs/index.js +45 -46
  123. package/dist/cjs/{inherits-bfdb22af.js → inherits-452ff02c.js} +8 -8
  124. package/dist/cjs/inherits-8d29278d.js +110 -0
  125. package/dist/cjs/{keys-62e097ca.js → keys-a586b7a0.js} +2 -2
  126. package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
  127. package/dist/cjs/main-02daeefe.js +862 -0
  128. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  129. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  130. package/dist/cjs/{slicedToArray-41819145.js → slicedToArray-8f385299.js} +4 -4
  131. package/dist/cjs/{stringify-7ccc8524.js → stringify-7c5aff47.js} +1 -1
  132. package/dist/cjs/timeDifferenceCalc.js +1 -1
  133. package/dist/cjs/{toConsumableArray-4fdb72e2.js → toConsumableArray-9a3476fe.js} +4 -4
  134. package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
  135. package/dist/cjs/{typeof-e83d4a26.js → typeof-725500bc.js} +4 -4
  136. package/dist/cjs/urlFor.js +1 -1
  137. package/dist/cjs/{ustream-api-c30d203c.js → ustream-api-d092dc31.js} +4 -4
  138. package/dist/cjs/{web.dom.iterable-68e3aaf2.js → web.dom.iterable-a0e279c1.js} +2 -2
  139. package/dist/esm/AD.js +1 -1
  140. package/dist/esm/AD300x250.js +13 -13
  141. package/dist/esm/AD300x250x600.js +13 -13
  142. package/dist/esm/AD728x90.js +14 -14
  143. package/dist/esm/ADFloatingFooter.js +12 -12
  144. package/dist/esm/ADFooter.js +5 -5
  145. package/dist/esm/ADGutter.js +12 -12
  146. package/dist/esm/{ADInfeed-9e41b90e.js → ADInfeed-99535410.js} +1 -1
  147. package/dist/esm/ADSkyscraper.js +12 -12
  148. package/dist/esm/ADSponsoredResources.js +12 -12
  149. package/dist/esm/ADWebcast.js +12 -12
  150. package/dist/esm/ADWelcome.js +12 -12
  151. package/dist/esm/{ADlgInfeed-519eade4.js → ADlgInfeed-0d359144.js} +1 -1
  152. package/dist/esm/AccordionPanel.js +6 -6
  153. package/dist/esm/AdSlot.js +14 -14
  154. package/dist/esm/AdSlotsProvider.js +907 -15
  155. package/dist/esm/AlgoliaSearch.js +32 -159
  156. package/dist/esm/AlphabeticList.js +8 -8
  157. package/dist/esm/ArticleCarousel.js +10 -10
  158. package/dist/esm/ArticleProgramLandingPage.js +26 -26
  159. package/dist/esm/ArticleSeriesLandingPage.js +24 -24
  160. package/dist/esm/ArticleSeriesListing.js +18 -18
  161. package/dist/esm/Auth.js +445 -465
  162. package/dist/esm/AuthWrapper.js +242 -283
  163. package/dist/esm/{AuthorComponent-5cab1f6b.js → AuthorComponent-34b16174.js} +1 -1
  164. package/dist/esm/Beam.js +7 -7
  165. package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
  166. package/dist/esm/Breadcrumbs.js +5 -5
  167. package/dist/esm/CMEDeck.js +14 -14
  168. package/dist/esm/Column2.js +8 -8
  169. package/dist/esm/Column3.js +16 -16
  170. package/dist/esm/ConferenceArticleCard.js +17 -17
  171. package/dist/esm/DeckContent.js +31 -31
  172. package/dist/esm/DeckQueue.js +19 -19
  173. package/dist/esm/{Dfp-4b94fbd4.js → Dfp-b7236041.js} +7 -7
  174. package/dist/esm/EventsDeck.js +33 -33
  175. package/dist/esm/ExternalResources.js +26 -26
  176. package/dist/esm/Feature.js +3 -3
  177. package/dist/esm/ForbesHero.js +8 -8
  178. package/dist/esm/GridContent.js +28 -28
  179. package/dist/esm/GridHero.js +8 -8
  180. package/dist/esm/GroupDeck.js +8 -8
  181. package/dist/esm/HamMagazine.js +25 -25
  182. package/dist/esm/Hero.js +1 -1
  183. package/dist/esm/HighlightenVideo.js +1 -1
  184. package/dist/esm/HorizontalArticleListing.js +25 -25
  185. package/dist/esm/HorizontalHero.js +3 -3
  186. package/dist/esm/IssueContentDeck.js +8 -8
  187. package/dist/esm/IssueDeck.js +10 -10
  188. package/dist/esm/IssueLanding.js +59 -59
  189. package/dist/esm/KMTracker.js +15 -15
  190. package/dist/esm/LeftNav.js +12 -12
  191. package/dist/esm/MasterDeck.js +32 -32
  192. package/dist/esm/MediaSeriesLanding.js +365 -364
  193. package/dist/esm/NavDvm.js +7 -7
  194. package/dist/esm/NavMagazine.js +24 -24
  195. package/dist/esm/NavNative.js +21 -21
  196. package/dist/esm/OncliveHero.js +3 -2
  197. package/dist/esm/OncliveLargeHero.js +8 -8
  198. package/dist/esm/PageFilter.js +5 -5
  199. package/dist/esm/PartnerDetailListing.js +1131 -34
  200. package/dist/esm/PdfDownload.js +1 -1
  201. package/dist/esm/PopUpModal.js +5 -5
  202. package/dist/esm/PubSection.js +20 -20
  203. package/dist/esm/PubToc.js +7 -7
  204. package/dist/esm/PublicationDeck.js +2 -2
  205. package/dist/esm/PublicationLanding.js +36 -36
  206. package/dist/esm/QueueDeckExpanded.js +22 -22
  207. package/dist/esm/RecentNews.js +1 -1
  208. package/dist/esm/RelatedContent.js +30 -30
  209. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  210. package/dist/esm/Search.js +5 -5
  211. package/dist/esm/Segment.js +6 -6
  212. package/dist/esm/SeriesListingDeck.js +12 -12
  213. package/dist/esm/{SeriesSlider-5ba2e521.js → SeriesSlider-a866bb21.js} +11 -11
  214. package/dist/esm/SideFooter.js +10 -10
  215. package/dist/esm/{SocialSearchComponent-9cc36413.js → SocialSearchComponent-03c3e869.js} +7 -7
  216. package/dist/esm/TaxonomyCard.js +4 -4
  217. package/dist/esm/TaxonomyDescription.js +25 -25
  218. package/dist/esm/TemplateNormal.js +18 -18
  219. package/dist/esm/ThumbnailCard.js +1 -1
  220. package/dist/esm/Ustream.js +12 -12
  221. package/dist/esm/VerticalHero.js +2 -2
  222. package/dist/esm/VideoProgramLandingPage.js +26 -26
  223. package/dist/esm/VideoSeriesCard.js +8 -8
  224. package/dist/esm/VideoSeriesFilter.js +7 -7
  225. package/dist/esm/VideoSeriesLandingPage.js +24 -24
  226. package/dist/esm/VideoSeriesListing.js +18 -18
  227. package/dist/esm/View.js +39 -39
  228. package/dist/esm/YahooHero.js +8 -8
  229. package/dist/esm/YoutubeGroup.js +18 -18
  230. package/dist/esm/{_is-array-328b85b7.js → _is-array-58e95429.js} +1 -1
  231. package/dist/esm/{_iter-detect-0fa1c752.js → _iter-detect-5d49a330.js} +2 -2
  232. package/dist/esm/{_object-sap-1b84e2bf.js → _object-sap-964b6feb.js} +1 -1
  233. package/dist/esm/{_object-to-array-c8f72bf1.js → _object-to-array-7e804fce.js} +1 -1
  234. package/dist/esm/{_to-object-cedb5b78.js → _to-object-a4107da3.js} +2 -2
  235. package/dist/esm/{asyncToGenerator-e1a2f43a.js → asyncToGenerator-fc1c2e29.js} +5 -5
  236. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  237. package/dist/esm/{core.get-iterator-method-227107e6.js → core.get-iterator-method-e1de7503.js} +2 -2
  238. package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
  239. package/dist/esm/{define-property-2f35af22.js → define-property-8af5f002.js} +1 -1
  240. package/dist/esm/{defineProperty-eb9699c0.js → defineProperty-94fd8bfc.js} +1 -1
  241. package/dist/esm/{es6.string.iterator-1577cb76.js → es6.string.iterator-c990c18c.js} +1 -1
  242. package/dist/esm/{extends-be71a29a.js → extends-6f2fcc99.js} +1 -1
  243. package/dist/esm/faundadb.js +7 -7
  244. package/dist/esm/getQuery.js +2 -2
  245. package/dist/esm/getRelatedArticle.js +11 -424
  246. package/dist/esm/getRootDocGroup.js +6 -6
  247. package/dist/esm/getSerializers.js +25 -25
  248. package/dist/esm/{getTargeting-93bb872d.js → getTargeting-82e86707.js} +11 -11
  249. package/dist/esm/getTargeting.js +7 -7
  250. package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
  251. package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
  252. package/dist/esm/{index-4f60bd57.js → index-ea86ff20.js} +540 -531
  253. package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
  254. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  255. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  256. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  257. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  258. package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
  259. package/dist/esm/index.js +44 -45
  260. package/dist/esm/inherits-77d5e4fc.js +101 -0
  261. package/dist/esm/{inherits-2cf82c38.js → inherits-cf8dde54.js} +5 -5
  262. package/dist/esm/{keys-526daf0a.js → keys-8eda7a5c.js} +2 -2
  263. package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
  264. package/dist/esm/main-e4a934b2.js +851 -0
  265. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  266. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  267. package/dist/esm/{slicedToArray-f0edf3d6.js → slicedToArray-641f241f.js} +4 -4
  268. package/dist/esm/{stringify-d1b9276a.js → stringify-4330ccdc.js} +1 -1
  269. package/dist/esm/timeDifferenceCalc.js +1 -1
  270. package/dist/esm/{toConsumableArray-81605212.js → toConsumableArray-43aa614d.js} +4 -4
  271. package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
  272. package/dist/esm/{typeof-ad2c7a21.js → typeof-6435ba1c.js} +4 -4
  273. package/dist/esm/urlFor.js +1 -1
  274. package/dist/esm/{ustream-api-cf90f7e6.js → ustream-api-9a50644d.js} +4 -4
  275. package/dist/esm/{web.dom.iterable-ace8ed30.js → web.dom.iterable-4439f05a.js} +2 -2
  276. package/package.json +110 -110
  277. package/dist/cjs/index-bd6c9f56.js +0 -211
  278. package/dist/cjs/main-bc7d4bf8.js +0 -972
  279. package/dist/esm/index-db3bb315.js +0 -207
  280. 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 './_to-object-cedb5b78.js';
3
- import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-81605212.js';
4
- import { _ as _extends, b as _extends$1 } from './extends-be71a29a.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-2cf82c38.js';
6
- import { _ as _typeof$1 } from './typeof-ad2c7a21.js';
2
+ import { _ as _export, a as _core } from './_to-object-a4107da3.js';
3
+ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
4
+ import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
5
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-cf8dde54.js';
6
+ import { _ as _typeof } from './typeof-6435ba1c.js';
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
14
  import urlFor from './urlFor.js';
15
15
  import { L as LazyLoad } from './index-5f7e79e7.js';
16
- import { d as main_18, b as main_42, m as main_43 } from './main-ae902629.js';
16
+ import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
17
17
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
18
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-f0edf3d6.js';
18
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.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-c8f72bf1.js';
32
+ import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
33
33
  import Pagination$1 from 'react-bootstrap/Pagination';
34
34
  import Figure$1$1 from 'react-bootstrap/Figure';
35
35
 
@@ -97,18 +97,21 @@ var Slideshow = function Slideshow(_ref) {
97
97
  );
98
98
  };
99
99
 
100
- // do not edit .js files directly - edit src/index.jst
101
-
102
-
100
+ var isArray = Array.isArray;
101
+ var keyList = Object.keys;
102
+ var hasProp = Object.prototype.hasOwnProperty;
103
103
 
104
104
  var fastDeepEqual = function equal(a, b) {
105
105
  if (a === b) return true;
106
106
 
107
107
  if (a && b && typeof a == 'object' && typeof b == 'object') {
108
- if (a.constructor !== b.constructor) return false;
108
+ var arrA = isArray(a)
109
+ , arrB = isArray(b)
110
+ , i
111
+ , length
112
+ , key;
109
113
 
110
- var length, i, keys;
111
- if (Array.isArray(a)) {
114
+ if (arrA && arrB) {
112
115
  length = a.length;
113
116
  if (length != b.length) return false;
114
117
  for (i = length; i-- !== 0;)
@@ -116,29 +119,35 @@ var fastDeepEqual = function equal(a, b) {
116
119
  return true;
117
120
  }
118
121
 
122
+ if (arrA != arrB) return false;
119
123
 
124
+ var dateA = a instanceof Date
125
+ , dateB = b instanceof Date;
126
+ if (dateA != dateB) return false;
127
+ if (dateA && dateB) return a.getTime() == b.getTime();
120
128
 
121
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
122
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
123
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
129
+ var regexpA = a instanceof RegExp
130
+ , regexpB = b instanceof RegExp;
131
+ if (regexpA != regexpB) return false;
132
+ if (regexpA && regexpB) return a.toString() == b.toString();
124
133
 
125
- keys = Object.keys(a);
134
+ var keys = keyList(a);
126
135
  length = keys.length;
127
- if (length !== Object.keys(b).length) return false;
136
+
137
+ if (length !== keyList(b).length)
138
+ return false;
128
139
 
129
140
  for (i = length; i-- !== 0;)
130
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
141
+ if (!hasProp.call(b, keys[i])) return false;
131
142
 
132
143
  for (i = length; i-- !== 0;) {
133
- var key = keys[i];
134
-
144
+ key = keys[i];
135
145
  if (!equal(a[key], b[key])) return false;
136
146
  }
137
147
 
138
148
  return true;
139
149
  }
140
150
 
141
- // true if both NaN, false otherwise
142
151
  return a!==a && b!==b;
143
152
  };
144
153
 
@@ -1561,239 +1570,199 @@ module.exports = exports['default'];
1561
1570
 
1562
1571
  var youTubePlayer = unwrapExports(dist);
1563
1572
 
1564
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1573
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
1565
1574
 
1566
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1567
-
1568
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1569
-
1570
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1571
-
1572
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
1575
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
1573
1576
 
1574
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1575
-
1576
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
1577
-
1578
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1579
-
1580
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1581
-
1582
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1583
-
1584
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1577
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1585
1578
 
1586
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1579
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
1587
1580
 
1588
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1581
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
1589
1582
 
1590
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1591
- /**
1592
- * Check whether a `props` change should result in the video being updated.
1593
- *
1594
- * @param {Object} prevProps
1595
- * @param {Object} props
1583
+ /**
1584
+ * Check whether a `props` change should result in the video being updated.
1585
+ *
1586
+ * @param {Object} prevProps
1587
+ * @param {Object} props
1596
1588
  */
1597
-
1598
1589
  function shouldUpdateVideo(prevProps, props) {
1599
1590
  // A changing video should always trigger an update
1600
1591
  if (prevProps.videoId !== props.videoId) {
1601
1592
  return true;
1602
- } // Otherwise, a change in the start/end time playerVars also requires a player
1603
- // update.
1604
-
1593
+ }
1605
1594
 
1595
+ // Otherwise, a change in the start/end time playerVars also requires a player
1596
+ // update.
1606
1597
  var prevVars = prevProps.opts.playerVars || {};
1607
1598
  var vars = props.opts.playerVars || {};
1599
+
1608
1600
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1609
1601
  }
1610
- /**
1611
- * Neutralize API options that only require a video update, leaving only options
1612
- * that require a player reset. The results can then be compared to see if a
1613
- * player reset is necessary.
1614
- *
1615
- * @param {Object} opts
1616
- */
1617
-
1618
1602
 
1603
+ /**
1604
+ * Neutralise API options that only require a video update, leaving only options
1605
+ * that require a player reset. The results can then be compared to see if a
1606
+ * player reset is necessary.
1607
+ *
1608
+ * @param {Object} opts
1609
+ */
1619
1610
  function filterResetOptions(opts) {
1620
- return _objectSpread(_objectSpread({}, opts), {}, {
1621
- playerVars: _objectSpread({
1611
+ return _extends({}, opts, {
1612
+ playerVars: _extends({}, opts.playerVars, {
1622
1613
  autoplay: 0,
1623
1614
  start: 0,
1624
1615
  end: 0
1625
- }, opts.playerVars)
1616
+ })
1626
1617
  });
1627
1618
  }
1628
- /**
1629
- * Check whether a `props` change should result in the player being reset.
1630
- * The player is reset when the `props.opts` change, except if the only change
1631
- * is in the `start` and `end` playerVars, because a video update can deal with
1632
- * those.
1633
- *
1634
- * @param {Object} prevProps
1635
- * @param {Object} props
1636
- */
1637
-
1638
1619
 
1620
+ /**
1621
+ * Check whether a `props` change should result in the player being reset.
1622
+ * The player is reset when the `props.opts` change, except if the only change
1623
+ * is in the `start` and `end` playerVars, because a video update can deal with
1624
+ * those.
1625
+ *
1626
+ * @param {Object} prevProps
1627
+ * @param {Object} props
1628
+ */
1639
1629
  function shouldResetPlayer(prevProps, props) {
1640
1630
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1641
1631
  }
1642
- /**
1643
- * Check whether a props change should result in an id or className update.
1644
- *
1645
- * @param {Object} prevProps
1646
- * @param {Object} props
1647
- */
1648
-
1649
1632
 
1633
+ /**
1634
+ * Check whether a props change should result in an id or className update.
1635
+ *
1636
+ * @param {Object} prevProps
1637
+ * @param {Object} props
1638
+ */
1650
1639
  function shouldUpdatePlayer(prevProps, props) {
1651
1640
  return prevProps.id !== props.id || prevProps.className !== props.className;
1652
1641
  }
1653
1642
 
1654
- var YouTube = /*#__PURE__*/function (_React$Component) {
1643
+ var YouTube = function (_React$Component) {
1655
1644
  _inherits(YouTube, _React$Component);
1656
1645
 
1657
- var _super = _createSuper(YouTube);
1658
-
1659
- /**
1660
- * Expose PlayerState constants for convenience. These constants can also be
1661
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1662
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1663
- */
1664
1646
  function YouTube(props) {
1665
- var _this;
1666
-
1667
1647
  _classCallCheck(this, YouTube);
1668
1648
 
1669
- _this = _super.call(this, props);
1649
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1670
1650
 
1671
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1651
+ _this.onPlayerReady = function (event) {
1672
1652
  return _this.props.onReady(event);
1673
- });
1653
+ };
1674
1654
 
1675
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1655
+ _this.onPlayerError = function (event) {
1676
1656
  return _this.props.onError(event);
1677
- });
1657
+ };
1678
1658
 
1679
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1659
+ _this.onPlayerStateChange = function (event) {
1680
1660
  _this.props.onStateChange(event);
1681
-
1682
1661
  switch (event.data) {
1662
+
1683
1663
  case YouTube.PlayerState.ENDED:
1684
1664
  _this.props.onEnd(event);
1685
-
1686
1665
  break;
1687
1666
 
1688
1667
  case YouTube.PlayerState.PLAYING:
1689
1668
  _this.props.onPlay(event);
1690
-
1691
1669
  break;
1692
1670
 
1693
1671
  case YouTube.PlayerState.PAUSED:
1694
1672
  _this.props.onPause(event);
1695
-
1696
1673
  break;
1697
1674
  }
1698
- });
1675
+ };
1699
1676
 
1700
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1677
+ _this.onPlayerPlaybackRateChange = function (event) {
1701
1678
  return _this.props.onPlaybackRateChange(event);
1702
- });
1679
+ };
1703
1680
 
1704
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1681
+ _this.onPlayerPlaybackQualityChange = function (event) {
1705
1682
  return _this.props.onPlaybackQualityChange(event);
1706
- });
1683
+ };
1707
1684
 
1708
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1685
+ _this.createPlayer = function () {
1709
1686
  // do not attempt to create a player server-side, it won't work
1710
- if (typeof document === 'undefined') return; // create player
1711
-
1712
- var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
1687
+ if (typeof document === 'undefined') return;
1688
+ // create player
1689
+ var playerOpts = _extends({}, _this.props.opts, {
1713
1690
  // preload the `videoId` video if one is already given
1714
1691
  videoId: _this.props.videoId
1715
1692
  });
1716
-
1717
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1718
-
1693
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1694
+ // attach event handlers
1719
1695
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1720
-
1721
1696
  _this.internalPlayer.on('error', _this.onPlayerError);
1722
-
1723
1697
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1724
-
1725
1698
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1726
-
1727
1699
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1728
- });
1700
+ };
1729
1701
 
1730
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1702
+ _this.resetPlayer = function () {
1731
1703
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1732
- });
1704
+ };
1733
1705
 
1734
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1706
+ _this.updatePlayer = function () {
1735
1707
  _this.internalPlayer.getIframe().then(function (iframe) {
1736
1708
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1737
1709
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1738
1710
  });
1739
- });
1740
-
1741
- _defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
1742
- return _this.internalPlayer;
1743
- });
1711
+ };
1744
1712
 
1745
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1713
+ _this.updateVideo = function () {
1746
1714
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1747
1715
  _this.internalPlayer.stopVideo();
1748
-
1749
1716
  return;
1750
- } // set queueing options
1751
-
1717
+ }
1752
1718
 
1719
+ // set queueing options
1753
1720
  var autoplay = false;
1754
1721
  var opts = {
1755
1722
  videoId: _this.props.videoId
1756
1723
  };
1757
-
1758
1724
  if ('playerVars' in _this.props.opts) {
1759
1725
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1760
-
1761
1726
  if ('start' in _this.props.opts.playerVars) {
1762
1727
  opts.startSeconds = _this.props.opts.playerVars.start;
1763
1728
  }
1764
-
1765
1729
  if ('end' in _this.props.opts.playerVars) {
1766
1730
  opts.endSeconds = _this.props.opts.playerVars.end;
1767
1731
  }
1768
- } // if autoplay is enabled loadVideoById
1769
-
1732
+ }
1770
1733
 
1734
+ // if autoplay is enabled loadVideoById
1771
1735
  if (autoplay) {
1772
1736
  _this.internalPlayer.loadVideoById(opts);
1773
-
1774
1737
  return;
1775
- } // default behaviour just cues the video
1776
-
1777
-
1738
+ }
1739
+ // default behaviour just cues the video
1778
1740
  _this.internalPlayer.cueVideoById(opts);
1779
- });
1741
+ };
1780
1742
 
1781
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1743
+ _this.refContainer = function (container) {
1782
1744
  _this.container = container;
1783
- });
1745
+ };
1784
1746
 
1785
1747
  _this.container = null;
1786
1748
  _this.internalPlayer = null;
1787
1749
  return _this;
1788
1750
  }
1789
1751
 
1752
+ /**
1753
+ * Expose PlayerState constants for convenience. These constants can also be
1754
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1755
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1756
+ */
1757
+
1758
+
1790
1759
  _createClass(YouTube, [{
1791
- key: "componentDidMount",
1760
+ key: 'componentDidMount',
1792
1761
  value: function componentDidMount() {
1793
1762
  this.createPlayer();
1794
1763
  }
1795
1764
  }, {
1796
- key: "componentDidUpdate",
1765
+ key: 'componentDidUpdate',
1797
1766
  value: function componentDidUpdate(prevProps) {
1798
1767
  if (shouldUpdatePlayer(prevProps, this.props)) {
1799
1768
  this.updatePlayer();
@@ -1808,58 +1777,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1808
1777
  }
1809
1778
  }
1810
1779
  }, {
1811
- key: "componentWillUnmount",
1780
+ key: 'componentWillUnmount',
1812
1781
  value: function componentWillUnmount() {
1813
- /**
1814
- * Note: The `youtube-player` package that is used promisifies all YouTube
1815
- * Player API calls, which introduces a delay of a tick before it actually
1816
- * gets destroyed. Since React attempts to remove the element instantly
1817
- * this method isn't quick enough to reset the container element.
1782
+ /**
1783
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1784
+ * Player API calls, which introduces a delay of a tick before it actually
1785
+ * gets destroyed. Since React attempts to remove the element instantly
1786
+ * this method isn't quick enough to reset the container element.
1818
1787
  */
1819
1788
  this.internalPlayer.destroy();
1820
1789
  }
1821
- /**
1822
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1823
- *
1824
- * @param {Object} event
1825
- * @param {Object} target - player object
1790
+
1791
+ /**
1792
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1793
+ *
1794
+ * @param {Object} event
1795
+ * @param {Object} target - player object
1796
+ */
1797
+
1798
+
1799
+ /**
1800
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1801
+ *
1802
+ * @param {Object} event
1803
+ * @param {Integer} data - error type
1804
+ * @param {Object} target - player object
1805
+ */
1806
+
1807
+
1808
+ /**
1809
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1810
+ *
1811
+ * @param {Object} event
1812
+ * @param {Integer} data - status change type
1813
+ * @param {Object} target - actual YT player
1814
+ */
1815
+
1816
+
1817
+ /**
1818
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1819
+ *
1820
+ * @param {Object} event
1821
+ * @param {Float} data - playback rate
1822
+ * @param {Object} target - actual YT player
1823
+ */
1824
+
1825
+
1826
+ /**
1827
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1828
+ *
1829
+ * @param {Object} event
1830
+ * @param {String} data - playback quality
1831
+ * @param {Object} target - actual YT player
1832
+ */
1833
+
1834
+
1835
+ /**
1836
+ * Initialize the Youtube Player API on the container and attach event handlers
1837
+ */
1838
+
1839
+
1840
+ /**
1841
+ * Shorthand for destroying and then re-creating the Youtube Player
1842
+ */
1843
+
1844
+
1845
+ /**
1846
+ * Method to update the id and class of the Youtube Player iframe.
1847
+ * React should update this automatically but since the Youtube Player API
1848
+ * replaced the DIV that is mounted by React we need to do this manually.
1849
+ */
1850
+
1851
+
1852
+ /**
1853
+ * Call Youtube Player API methods to update the currently playing video.
1854
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1855
+ * Youtube Player API methods to update the video.
1826
1856
  */
1827
1857
 
1828
1858
  }, {
1829
- key: "render",
1859
+ key: 'render',
1830
1860
  value: function render() {
1831
- return /*#__PURE__*/React__default.createElement("div", {
1832
- className: this.props.containerClassName
1833
- }, /*#__PURE__*/React__default.createElement("div", {
1834
- id: this.props.id,
1835
- className: this.props.className,
1836
- ref: this.refContainer
1837
- }));
1861
+ return React__default.createElement(
1862
+ 'div',
1863
+ { className: this.props.containerClassName },
1864
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1865
+ );
1838
1866
  }
1839
1867
  }]);
1840
1868
 
1841
1869
  return YouTube;
1842
1870
  }(React__default.Component);
1843
1871
 
1844
- _defineProperty(YouTube, "PlayerState", {
1845
- UNSTARTED: -1,
1846
- ENDED: 0,
1847
- PLAYING: 1,
1848
- PAUSED: 2,
1849
- BUFFERING: 3,
1850
- CUED: 5
1851
- });
1852
-
1853
1872
  YouTube.propTypes = {
1854
1873
  videoId: PropTypes.string,
1874
+
1855
1875
  // custom ID for player element
1856
1876
  id: PropTypes.string,
1877
+
1857
1878
  // custom class name for player element
1858
1879
  className: PropTypes.string,
1859
1880
  // custom class name for player container element
1860
1881
  containerClassName: PropTypes.string,
1882
+
1861
1883
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1862
1884
  opts: PropTypes.objectOf(PropTypes.any),
1885
+
1863
1886
  // event subscriptions
1864
1887
  onReady: PropTypes.func,
1865
1888
  onError: PropTypes.func,
@@ -1871,7 +1894,6 @@ YouTube.propTypes = {
1871
1894
  onPlaybackQualityChange: PropTypes.func
1872
1895
  };
1873
1896
  YouTube.defaultProps = {
1874
- videoId: null,
1875
1897
  id: null,
1876
1898
  className: null,
1877
1899
  opts: {},
@@ -1885,6 +1907,14 @@ YouTube.defaultProps = {
1885
1907
  onPlaybackRateChange: function onPlaybackRateChange() {},
1886
1908
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1887
1909
  };
1910
+ YouTube.PlayerState = {
1911
+ UNSTARTED: -1,
1912
+ ENDED: 0,
1913
+ PLAYING: 1,
1914
+ PAUSED: 2,
1915
+ BUFFERING: 3,
1916
+ CUED: 5
1917
+ };
1888
1918
 
1889
1919
  var YouTubePlayer = function YouTubePlayer(_ref) {
1890
1920
  var url = _ref.url,
@@ -1923,8 +1953,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1923
1953
  var duration = player.getDuration();
1924
1954
  var queue = Math.floor(duration / 10);
1925
1955
  var segment = Math.floor(current / queue);
1926
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
1927
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
1956
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
1957
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
1928
1958
  };
1929
1959
 
1930
1960
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1934,8 +1964,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1934
1964
  var segment = Math.floor(current / queue);
1935
1965
 
1936
1966
  if (!queueProgress.includes(segment)) {
1937
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
1938
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
1967
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
1968
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
1939
1969
  queueProgress.push(segment);
1940
1970
  }
1941
1971
  };
@@ -1948,8 +1978,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1948
1978
  var queue = Math.floor(duration / 10);
1949
1979
  var segment = Math.floor(current / queue);
1950
1980
 
1951
- Beam.report_beam_video('Play', main_18, duration, current, segment);
1952
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
1981
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
1982
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
1953
1983
 
1954
1984
  if (!playReported) {
1955
1985
  setPlayReported(true);
@@ -1968,8 +1998,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1968
1998
  var queue = Math.floor(duration / 10);
1969
1999
  var segment = Math.floor(current / queue);
1970
2000
 
1971
- Beam.report_beam_video('End', main_18, duration, current, segment);
1972
- Segment.report_video_event('Video End', main_18, duration, current, segment);
2001
+ Beam.report_beam_video('End', main_16, duration, current, segment);
2002
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
1973
2003
  setEndReported(true);
1974
2004
  clearInterval(intervalID);
1975
2005
  }
@@ -1982,8 +2012,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1982
2012
  var queue = Math.floor(duration / 10);
1983
2013
  var segment = Math.floor(current / queue);
1984
2014
 
1985
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
1986
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
2015
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
2016
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
1987
2017
  };
1988
2018
 
1989
2019
  return React__default.createElement(
@@ -2151,7 +2181,7 @@ var Media = function Media(_ref) {
2151
2181
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2152
2182
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2153
2183
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2154
- React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2184
+ React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2155
2185
  )
2156
2186
  ),
2157
2187
  caption && React__default.createElement(
@@ -2164,7 +2194,7 @@ var Media = function Media(_ref) {
2164
2194
  } else if (caption && caption !== '') {
2165
2195
  return React__default.createElement(
2166
2196
  'a',
2167
- _extends({}, uploadDoc.downloadMedia ? {
2197
+ _extends$1({}, uploadDoc.downloadMedia ? {
2168
2198
  href: uploadDoc.asset.url + '?dl='
2169
2199
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2170
2200
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2219,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2219
2249
  var duration = player.duration;
2220
2250
  var queue = Math.floor(duration / 10);
2221
2251
  var segment = Math.floor(current / queue);
2222
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
2223
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
2252
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
2253
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
2224
2254
  };
2225
2255
 
2226
2256
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -2229,8 +2259,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2229
2259
  var queue = Math.floor(duration / 10);
2230
2260
  var segment = Math.floor(current / queue);
2231
2261
  if (!queueProgress.includes(segment)) {
2232
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
2233
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
2262
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
2263
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
2234
2264
  queueProgress.push(segment);
2235
2265
  }
2236
2266
  };
@@ -2242,8 +2272,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2242
2272
  var duration = player.duration;
2243
2273
  var queue = Math.floor(duration / 10);
2244
2274
  var segment = Math.floor(current / queue);
2245
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
2246
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
2275
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
2276
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
2247
2277
 
2248
2278
  if (!playReported) {
2249
2279
  event.persist();
@@ -2263,8 +2293,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2263
2293
  var queue = Math.floor(duration / 10);
2264
2294
  var segment = Math.floor(current / queue);
2265
2295
 
2266
- Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
2267
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
2296
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
2297
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
2268
2298
  setEndReported(true);
2269
2299
  clearInterval(intervalID);
2270
2300
  }
@@ -2276,8 +2306,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2276
2306
  var duration = player.duration - current;
2277
2307
  var queue = Math.floor(duration / 10);
2278
2308
  var segment = Math.floor(current / queue);
2279
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
2280
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
2309
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
2310
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
2281
2311
  };
2282
2312
 
2283
2313
  return React__default.createElement(
@@ -2338,7 +2368,7 @@ var Video = function Video(_ref) {
2338
2368
  var onVideoSuccess = function onVideoSuccess(success) {
2339
2369
  //console.log('success:', success.ref)
2340
2370
  var player = success.ref;
2341
- if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2371
+ if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2342
2372
  player.ima3.settings.debug = true;
2343
2373
  if (targeting.content_placement && targeting.document_url) {
2344
2374
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2366,8 +2396,8 @@ var Video = function Video(_ref) {
2366
2396
  player.pause();
2367
2397
  }
2368
2398
 
2369
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2370
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2399
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2400
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2371
2401
  });
2372
2402
 
2373
2403
  // play
@@ -2376,8 +2406,8 @@ var Video = function Video(_ref) {
2376
2406
  var current = player.currentTime();
2377
2407
  var queue = Math.floor(duration / 10);
2378
2408
  var segment = Math.floor(current / queue);
2379
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2380
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2409
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2410
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2381
2411
  });
2382
2412
 
2383
2413
  // pause
@@ -2386,8 +2416,8 @@ var Video = function Video(_ref) {
2386
2416
  var current = player.currentTime();
2387
2417
  var queue = Math.floor(duration / 10);
2388
2418
  var segment = Math.floor(current / queue);
2389
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2390
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2419
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2420
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2391
2421
  });
2392
2422
 
2393
2423
  // end
@@ -2396,8 +2426,8 @@ var Video = function Video(_ref) {
2396
2426
  var current = player.currentTime();
2397
2427
  var queue = Math.floor(duration / 10);
2398
2428
  var segment = Math.floor(current / queue);
2399
- Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2400
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2429
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2430
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2401
2431
  autoplayNextVideo(evt);
2402
2432
  });
2403
2433
 
@@ -2408,8 +2438,8 @@ var Video = function Video(_ref) {
2408
2438
  var queue = Math.floor(duration / 10);
2409
2439
  var segment = Math.floor(current / queue);
2410
2440
  if (!queueProgress.includes(segment)) {
2411
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2412
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2441
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2442
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2413
2443
  queueProgress.push(segment);
2414
2444
  }
2415
2445
  });
@@ -2420,8 +2450,8 @@ var Video = function Video(_ref) {
2420
2450
  var id = player.ads.ad.id;
2421
2451
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2422
2452
 
2423
- Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
2424
- Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2453
+ Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
2454
+ Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2425
2455
  });
2426
2456
 
2427
2457
  // ad ended
@@ -2429,8 +2459,8 @@ var Video = function Video(_ref) {
2429
2459
  var duration = player.ads.ad.duration;
2430
2460
  var id = player.ads.ad.id;
2431
2461
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2432
- Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
2433
- Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2462
+ Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
2463
+ Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2434
2464
  });
2435
2465
  };
2436
2466
 
@@ -2860,17 +2890,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2860
2890
 
2861
2891
  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; }
2862
2892
 
2863
- 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; } } }; }
2864
-
2865
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2866
-
2867
- 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."); }
2868
-
2869
- 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); }
2893
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2870
2894
 
2871
- 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; }
2895
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2872
2896
 
2873
- 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; }
2897
+ 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; }
2874
2898
 
2875
2899
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2876
2900
 
@@ -3000,12 +3024,12 @@ function getSDK(url, sdkGlobal) {
3000
3024
 
3001
3025
  function getConfig(props$1, defaultProps, showWarning) {
3002
3026
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
3003
-
3004
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
3005
- _step;
3027
+ var _iteratorNormalCompletion = true;
3028
+ var _didIteratorError = false;
3029
+ var _iteratorError = undefined;
3006
3030
 
3007
3031
  try {
3008
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3032
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3009
3033
  var p = _step.value;
3010
3034
 
3011
3035
  if (props$1[p]) {
@@ -3020,9 +3044,18 @@ function getConfig(props$1, defaultProps, showWarning) {
3020
3044
  }
3021
3045
  }
3022
3046
  } catch (err) {
3023
- _iterator.e(err);
3047
+ _didIteratorError = true;
3048
+ _iteratorError = err;
3024
3049
  } finally {
3025
- _iterator.f();
3050
+ try {
3051
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
3052
+ _iterator["return"]();
3053
+ }
3054
+ } finally {
3055
+ if (_didIteratorError) {
3056
+ throw _iteratorError;
3057
+ }
3058
+ }
3026
3059
  }
3027
3060
 
3028
3061
  return config;
@@ -3169,16 +3202,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3169
3202
 
3170
3203
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3171
3204
 
3172
- 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); }; }
3173
-
3174
3205
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3175
3206
 
3176
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3177
-
3178
- 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; } }
3179
-
3180
3207
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3181
3208
 
3209
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3210
+
3182
3211
  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); }
3183
3212
 
3184
3213
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3187,12 +3216,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3187
3216
 
3188
3217
  var SEEK_ON_PLAY_EXPIRY = 5000;
3189
3218
 
3190
- var Player = /*#__PURE__*/function (_Component) {
3219
+ var Player =
3220
+ /*#__PURE__*/
3221
+ function (_Component) {
3191
3222
  _inherits(Player, _Component);
3192
3223
 
3193
- var _super = _createSuper(Player);
3194
-
3195
3224
  function Player() {
3225
+ var _getPrototypeOf2;
3226
+
3196
3227
  var _this;
3197
3228
 
3198
3229
  _classCallCheck(this, Player);
@@ -3201,7 +3232,7 @@ var Player = /*#__PURE__*/function (_Component) {
3201
3232
  _args[_key] = arguments[_key];
3202
3233
  }
3203
3234
 
3204
- _this = _super.call.apply(_super, [this].concat(_args));
3235
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3205
3236
 
3206
3237
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3207
3238
 
@@ -3526,7 +3557,7 @@ var Player = /*#__PURE__*/function (_Component) {
3526
3557
  return null;
3527
3558
  }
3528
3559
 
3529
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3560
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3530
3561
  ref: this.ref,
3531
3562
  onReady: this.handleReady,
3532
3563
  onPlay: this.handlePlay,
@@ -3587,16 +3618,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3587
3618
 
3588
3619
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3589
3620
 
3590
- 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); }; }
3591
-
3592
3621
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3593
3622
 
3594
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3595
-
3596
- 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; } }
3597
-
3598
3623
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3599
3624
 
3625
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3626
+
3600
3627
  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); }
3601
3628
 
3602
3629
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3608,12 +3635,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3608
3635
  function createSinglePlayer(activePlayer) {
3609
3636
  var _class, _temp;
3610
3637
 
3611
- return _temp = _class = /*#__PURE__*/function (_Component) {
3638
+ return _temp = _class =
3639
+ /*#__PURE__*/
3640
+ function (_Component) {
3612
3641
  _inherits(SinglePlayer, _Component);
3613
3642
 
3614
- var _super = _createSuper(SinglePlayer);
3615
-
3616
3643
  function SinglePlayer() {
3644
+ var _getPrototypeOf2;
3645
+
3617
3646
  var _this;
3618
3647
 
3619
3648
  _classCallCheck(this, SinglePlayer);
@@ -3622,7 +3651,7 @@ function createSinglePlayer(activePlayer) {
3622
3651
  args[_key] = arguments[_key];
3623
3652
  }
3624
3653
 
3625
- _this = _super.call.apply(_super, [this].concat(args));
3654
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3626
3655
 
3627
3656
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3628
3657
 
@@ -3690,12 +3719,12 @@ function createSinglePlayer(activePlayer) {
3690
3719
  height = _this$props.height,
3691
3720
  Wrapper = _this$props.wrapper;
3692
3721
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3693
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3722
+ return _react["default"].createElement(Wrapper, _extends({
3694
3723
  style: _objectSpread({}, style, {
3695
3724
  width: width,
3696
3725
  height: height
3697
3726
  })
3698
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3727
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3699
3728
  ref: this.ref,
3700
3729
  activePlayer: activePlayer,
3701
3730
  config: this.config
@@ -3741,31 +3770,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3741
3770
 
3742
3771
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3743
3772
 
3744
- 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); }; }
3745
-
3746
3773
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3747
3774
 
3748
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3749
-
3750
- 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; } }
3751
-
3752
3775
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3753
3776
 
3777
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3778
+
3754
3779
  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); }
3755
3780
 
3756
3781
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3757
3782
 
3758
3783
  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; }
3759
3784
 
3760
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3761
-
3762
- 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."); }
3785
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3763
3786
 
3764
- 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); }
3787
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3765
3788
 
3766
- 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; }
3767
-
3768
- 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; }
3789
+ 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; }
3769
3790
 
3770
3791
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3771
3792
 
@@ -3790,12 +3811,14 @@ function parsePlaylist(url) {
3790
3811
  return {};
3791
3812
  }
3792
3813
 
3793
- var YouTube = /*#__PURE__*/function (_Component) {
3814
+ var YouTube =
3815
+ /*#__PURE__*/
3816
+ function (_Component) {
3794
3817
  _inherits(YouTube, _Component);
3795
3818
 
3796
- var _super = _createSuper(YouTube);
3797
-
3798
3819
  function YouTube() {
3820
+ var _getPrototypeOf2;
3821
+
3799
3822
  var _this;
3800
3823
 
3801
3824
  _classCallCheck(this, YouTube);
@@ -3804,7 +3827,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3804
3827
  args[_key] = arguments[_key];
3805
3828
  }
3806
3829
 
3807
- _this = _super.call.apply(_super, [this].concat(args));
3830
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3808
3831
 
3809
3832
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3810
3833
 
@@ -3992,9 +4015,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
3992
4015
  height: '100%',
3993
4016
  display: display
3994
4017
  };
3995
- return /*#__PURE__*/_react["default"].createElement("div", {
4018
+ return _react["default"].createElement("div", {
3996
4019
  style: style
3997
- }, /*#__PURE__*/_react["default"].createElement("div", {
4020
+ }, _react["default"].createElement("div", {
3998
4021
  ref: this.ref
3999
4022
  }));
4000
4023
  }
@@ -4050,16 +4073,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4050
4073
 
4051
4074
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4052
4075
 
4053
- 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); }; }
4054
-
4055
4076
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4056
4077
 
4057
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4058
-
4059
- 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; } }
4060
-
4061
4078
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4062
4079
 
4080
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4081
+
4063
4082
  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); }
4064
4083
 
4065
4084
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4068,14 +4087,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4068
4087
 
4069
4088
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
4070
4089
  var SDK_GLOBAL = 'SC';
4071
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
4090
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
4072
4091
 
4073
- var SoundCloud = /*#__PURE__*/function (_Component) {
4092
+ var SoundCloud =
4093
+ /*#__PURE__*/
4094
+ function (_Component) {
4074
4095
  _inherits(SoundCloud, _Component);
4075
4096
 
4076
- var _super = _createSuper(SoundCloud);
4077
-
4078
4097
  function SoundCloud() {
4098
+ var _getPrototypeOf2;
4099
+
4079
4100
  var _this;
4080
4101
 
4081
4102
  _classCallCheck(this, SoundCloud);
@@ -4084,7 +4105,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4084
4105
  args[_key] = arguments[_key];
4085
4106
  }
4086
4107
 
4087
- _this = _super.call.apply(_super, [this].concat(args));
4108
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
4088
4109
 
4089
4110
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4090
4111
 
@@ -4205,7 +4226,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4205
4226
  height: '100%',
4206
4227
  display: display
4207
4228
  };
4208
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4229
+ return _react["default"].createElement("iframe", {
4209
4230
  ref: this.ref,
4210
4231
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4211
4232
  style: style,
@@ -4267,16 +4288,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4267
4288
 
4268
4289
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4269
4290
 
4270
- 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); }; }
4271
-
4272
4291
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4273
4292
 
4274
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4275
-
4276
- 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; } }
4277
-
4278
4293
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4279
4294
 
4295
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4296
+
4280
4297
  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); }
4281
4298
 
4282
4299
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4288,12 +4305,14 @@ var SDK_GLOBAL = 'Vimeo';
4288
4305
  var MATCH_URL = /vimeo\.com\/.+/;
4289
4306
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4290
4307
 
4291
- var Vimeo = /*#__PURE__*/function (_Component) {
4308
+ var Vimeo =
4309
+ /*#__PURE__*/
4310
+ function (_Component) {
4292
4311
  _inherits(Vimeo, _Component);
4293
4312
 
4294
- var _super = _createSuper(Vimeo);
4295
-
4296
4313
  function Vimeo() {
4314
+ var _getPrototypeOf2;
4315
+
4297
4316
  var _this;
4298
4317
 
4299
4318
  _classCallCheck(this, Vimeo);
@@ -4302,7 +4321,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4302
4321
  args[_key] = arguments[_key];
4303
4322
  }
4304
4323
 
4305
- _this = _super.call.apply(_super, [this].concat(args));
4324
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4306
4325
 
4307
4326
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4308
4327
 
@@ -4459,7 +4478,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4459
4478
  overflow: 'hidden',
4460
4479
  display: display
4461
4480
  };
4462
- return /*#__PURE__*/_react["default"].createElement("div", {
4481
+ return _react["default"].createElement("div", {
4463
4482
  key: this.props.url,
4464
4483
  ref: this.ref,
4465
4484
  style: style
@@ -4519,16 +4538,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4519
4538
 
4520
4539
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4521
4540
 
4522
- 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); }; }
4523
-
4524
4541
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4525
4542
 
4526
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4527
-
4528
- 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; } }
4529
-
4530
4543
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4531
4544
 
4545
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4546
+
4532
4547
  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); }
4533
4548
 
4534
4549
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4541,12 +4556,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4541
4556
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4542
4557
  var PLAYER_ID_PREFIX = 'facebook-player-';
4543
4558
 
4544
- var Facebook = /*#__PURE__*/function (_Component) {
4559
+ var Facebook =
4560
+ /*#__PURE__*/
4561
+ function (_Component) {
4545
4562
  _inherits(Facebook, _Component);
4546
4563
 
4547
- var _super = _createSuper(Facebook);
4548
-
4549
4564
  function Facebook() {
4565
+ var _getPrototypeOf2;
4566
+
4550
4567
  var _this;
4551
4568
 
4552
4569
  _classCallCheck(this, Facebook);
@@ -4555,7 +4572,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4555
4572
  args[_key] = arguments[_key];
4556
4573
  }
4557
4574
 
4558
- _this = _super.call.apply(_super, [this].concat(args));
4575
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4559
4576
 
4560
4577
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4561
4578
 
@@ -4671,7 +4688,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4671
4688
  width: '100%',
4672
4689
  height: '100%'
4673
4690
  };
4674
- return /*#__PURE__*/_react["default"].createElement("div", {
4691
+ return _react["default"].createElement("div", {
4675
4692
  style: style,
4676
4693
  id: this.playerID,
4677
4694
  className: "fb-video",
@@ -4731,16 +4748,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4731
4748
 
4732
4749
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4733
4750
 
4734
- 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); }; }
4735
-
4736
4751
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4737
4752
 
4738
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4739
-
4740
- 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; } }
4741
-
4742
4753
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4743
4754
 
4755
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4756
+
4744
4757
  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); }
4745
4758
 
4746
4759
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4751,12 +4764,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4751
4764
  var SDK_GLOBAL = 'playerjs';
4752
4765
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4753
4766
 
4754
- var Streamable = /*#__PURE__*/function (_Component) {
4767
+ var Streamable =
4768
+ /*#__PURE__*/
4769
+ function (_Component) {
4755
4770
  _inherits(Streamable, _Component);
4756
4771
 
4757
- var _super = _createSuper(Streamable);
4758
-
4759
4772
  function Streamable() {
4773
+ var _getPrototypeOf2;
4774
+
4760
4775
  var _this;
4761
4776
 
4762
4777
  _classCallCheck(this, Streamable);
@@ -4765,7 +4780,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4765
4780
  args[_key] = arguments[_key];
4766
4781
  }
4767
4782
 
4768
- _this = _super.call.apply(_super, [this].concat(args));
4783
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4769
4784
 
4770
4785
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4771
4786
 
@@ -4885,7 +4900,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4885
4900
  width: '100%',
4886
4901
  height: '100%'
4887
4902
  };
4888
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4903
+ return _react["default"].createElement("iframe", {
4889
4904
  ref: this.ref,
4890
4905
  src: "https://streamable.com/o/".concat(id),
4891
4906
  frameBorder: "0",
@@ -4946,16 +4961,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4946
4961
 
4947
4962
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4948
4963
 
4949
- 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); }; }
4950
-
4951
4964
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4952
4965
 
4953
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4954
-
4955
- 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; } }
4956
-
4957
4966
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4958
4967
 
4968
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4969
+
4959
4970
  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); }
4960
4971
 
4961
4972
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4966,48 +4977,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4966
4977
  var SDK_GLOBAL = 'Wistia';
4967
4978
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4968
4979
 
4969
- var Wistia = /*#__PURE__*/function (_Component) {
4980
+ var Wistia =
4981
+ /*#__PURE__*/
4982
+ function (_Component) {
4970
4983
  _inherits(Wistia, _Component);
4971
4984
 
4972
- var _super = _createSuper(Wistia);
4973
-
4974
4985
  function Wistia() {
4986
+ var _getPrototypeOf2;
4987
+
4975
4988
  var _this;
4976
4989
 
4977
4990
  _classCallCheck(this, Wistia);
4978
4991
 
4979
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
4980
- _args[_key] = arguments[_key];
4992
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4993
+ args[_key] = arguments[_key];
4981
4994
  }
4982
4995
 
4983
- _this = _super.call.apply(_super, [this].concat(_args));
4996
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
4984
4997
 
4985
4998
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4986
4999
 
4987
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
4988
- var _this$props;
4989
-
4990
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
4991
- });
4992
-
4993
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
4994
- var _this$props2;
4995
-
4996
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
4997
- });
4998
-
4999
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
5000
- var _this$props3;
5001
-
5002
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
5003
- });
5004
-
5005
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
5006
- var _this$props4;
5007
-
5008
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
5009
- });
5010
-
5011
5000
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
5012
5001
  _this.callPlayer('mute');
5013
5002
  });
@@ -5029,13 +5018,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
5029
5018
  value: function load(url) {
5030
5019
  var _this2 = this;
5031
5020
 
5032
- var _this$props5 = this.props,
5033
- playing = _this$props5.playing,
5034
- muted = _this$props5.muted,
5035
- controls = _this$props5.controls,
5036
- _onReady = _this$props5.onReady,
5037
- config = _this$props5.config,
5038
- onError = _this$props5.onError;
5021
+ var _this$props = this.props,
5022
+ playing = _this$props.playing,
5023
+ muted = _this$props.muted,
5024
+ controls = _this$props.controls,
5025
+ _onReady = _this$props.onReady,
5026
+ onPlay = _this$props.onPlay,
5027
+ onPause = _this$props.onPause,
5028
+ onSeek = _this$props.onSeek,
5029
+ onEnded = _this$props.onEnded,
5030
+ config = _this$props.config,
5031
+ onError = _this$props.onError;
5039
5032
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
5040
5033
  window._wq = window._wq || [];
5041
5034
 
@@ -5052,28 +5045,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5052
5045
 
5053
5046
  _this2.unbind();
5054
5047
 
5055
- _this2.player.bind('play', _this2.onPlay);
5048
+ _this2.player.bind('play', onPlay);
5056
5049
 
5057
- _this2.player.bind('pause', _this2.onPause);
5050
+ _this2.player.bind('pause', onPause);
5058
5051
 
5059
- _this2.player.bind('seek', _this2.onSeek);
5052
+ _this2.player.bind('seek', onSeek);
5060
5053
 
5061
- _this2.player.bind('end', _this2.onEnded);
5054
+ _this2.player.bind('end', onEnded);
5062
5055
 
5063
5056
  _onReady();
5064
5057
  }
5065
5058
  });
5066
5059
  }, onError);
5067
5060
  }
5068
- }, {
5069
- key: "unbind",
5070
- value: function unbind() {
5071
- this.player.unbind('play', this.onPlay);
5072
- this.player.unbind('pause', this.onPause);
5073
- this.player.unbind('seek', this.onSeek);
5074
- this.player.unbind('end', this.onEnded);
5075
- } // Proxy methods to prevent listener leaks
5076
-
5077
5061
  }, {
5078
5062
  key: "play",
5079
5063
  value: function play() {
@@ -5084,6 +5068,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5084
5068
  value: function pause() {
5085
5069
  this.callPlayer('pause');
5086
5070
  }
5071
+ }, {
5072
+ key: "unbind",
5073
+ value: function unbind() {
5074
+ var _this$props2 = this.props,
5075
+ onPlay = _this$props2.onPlay,
5076
+ onPause = _this$props2.onPause,
5077
+ onSeek = _this$props2.onSeek,
5078
+ onEnded = _this$props2.onEnded;
5079
+ this.player.unbind('play', onPlay);
5080
+ this.player.unbind('pause', onPause);
5081
+ this.player.unbind('seek', onSeek);
5082
+ this.player.unbind('end', onEnded);
5083
+ }
5087
5084
  }, {
5088
5085
  key: "stop",
5089
5086
  value: function stop() {
@@ -5129,7 +5126,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
5129
5126
  width: '100%',
5130
5127
  height: '100%'
5131
5128
  };
5132
- return /*#__PURE__*/_react["default"].createElement("div", {
5129
+ return _react["default"].createElement("div", {
5133
5130
  key: id,
5134
5131
  className: className,
5135
5132
  style: style
@@ -5189,16 +5186,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5189
5186
 
5190
5187
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5191
5188
 
5192
- 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); }; }
5193
-
5194
5189
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5195
5190
 
5196
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5197
-
5198
- 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; } }
5199
-
5200
5191
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5201
5192
 
5193
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5194
+
5202
5195
  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); }
5203
5196
 
5204
5197
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5211,12 +5204,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5211
5204
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5212
5205
  var PLAYER_ID_PREFIX = 'twitch-player-';
5213
5206
 
5214
- var Twitch = /*#__PURE__*/function (_Component) {
5207
+ var Twitch =
5208
+ /*#__PURE__*/
5209
+ function (_Component) {
5215
5210
  _inherits(Twitch, _Component);
5216
5211
 
5217
- var _super = _createSuper(Twitch);
5218
-
5219
5212
  function Twitch() {
5213
+ var _getPrototypeOf2;
5214
+
5220
5215
  var _this;
5221
5216
 
5222
5217
  _classCallCheck(this, Twitch);
@@ -5225,7 +5220,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5225
5220
  args[_key] = arguments[_key];
5226
5221
  }
5227
5222
 
5228
- _this = _super.call.apply(_super, [this].concat(args));
5223
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5229
5224
 
5230
5225
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5231
5226
 
@@ -5346,7 +5341,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5346
5341
  width: '100%',
5347
5342
  height: '100%'
5348
5343
  };
5349
- return /*#__PURE__*/_react["default"].createElement("div", {
5344
+ return _react["default"].createElement("div", {
5350
5345
  style: style,
5351
5346
  id: this.playerID
5352
5347
  });
@@ -5399,15 +5394,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5399
5394
 
5400
5395
  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; }
5401
5396
 
5402
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5403
-
5404
- 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."); }
5405
-
5406
- 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); }
5397
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5407
5398
 
5408
- 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; }
5399
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5409
5400
 
5410
- 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; }
5401
+ 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; }
5411
5402
 
5412
5403
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5413
5404
 
@@ -5417,16 +5408,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5417
5408
 
5418
5409
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5419
5410
 
5420
- 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); }; }
5421
-
5422
5411
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5423
5412
 
5424
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5425
-
5426
- 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; } }
5427
-
5428
5413
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5429
5414
 
5415
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5416
+
5430
5417
  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); }
5431
5418
 
5432
5419
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5438,12 +5425,14 @@ var SDK_GLOBAL = 'DM';
5438
5425
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5439
5426
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5440
5427
 
5441
- var DailyMotion = /*#__PURE__*/function (_Component) {
5428
+ var DailyMotion =
5429
+ /*#__PURE__*/
5430
+ function (_Component) {
5442
5431
  _inherits(DailyMotion, _Component);
5443
5432
 
5444
- var _super = _createSuper(DailyMotion);
5445
-
5446
5433
  function DailyMotion() {
5434
+ var _getPrototypeOf2;
5435
+
5447
5436
  var _this;
5448
5437
 
5449
5438
  _classCallCheck(this, DailyMotion);
@@ -5452,7 +5441,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5452
5441
  args[_key] = arguments[_key];
5453
5442
  }
5454
5443
 
5455
- _this = _super.call.apply(_super, [this].concat(args));
5444
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5456
5445
 
5457
5446
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5458
5447
 
@@ -5581,9 +5570,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5581
5570
  height: '100%',
5582
5571
  display: display
5583
5572
  };
5584
- return /*#__PURE__*/_react["default"].createElement("div", {
5573
+ return _react["default"].createElement("div", {
5585
5574
  style: style
5586
- }, /*#__PURE__*/_react["default"].createElement("div", {
5575
+ }, _react["default"].createElement("div", {
5587
5576
  ref: this.ref
5588
5577
  }));
5589
5578
  }
@@ -5641,16 +5630,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5641
5630
 
5642
5631
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5643
5632
 
5644
- 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); }; }
5645
-
5646
5633
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5647
5634
 
5648
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5649
-
5650
- 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; } }
5651
-
5652
5635
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5653
5636
 
5637
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5638
+
5654
5639
  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); }
5655
5640
 
5656
5641
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5661,12 +5646,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5661
5646
  var SDK_GLOBAL = 'Mixcloud';
5662
5647
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5663
5648
 
5664
- var Mixcloud = /*#__PURE__*/function (_Component) {
5649
+ var Mixcloud =
5650
+ /*#__PURE__*/
5651
+ function (_Component) {
5665
5652
  _inherits(Mixcloud, _Component);
5666
5653
 
5667
- var _super = _createSuper(Mixcloud);
5668
-
5669
5654
  function Mixcloud() {
5655
+ var _getPrototypeOf2;
5656
+
5670
5657
  var _this;
5671
5658
 
5672
5659
  _classCallCheck(this, Mixcloud);
@@ -5675,7 +5662,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5675
5662
  args[_key] = arguments[_key];
5676
5663
  }
5677
5664
 
5678
- _this = _super.call.apply(_super, [this].concat(args));
5665
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5679
5666
 
5680
5667
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5681
5668
 
@@ -5778,7 +5765,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5778
5765
  })); // We have to give the iframe a key here to prevent a
5779
5766
  // weird dialog appearing when loading a new track
5780
5767
 
5781
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5768
+ return _react["default"].createElement("iframe", {
5782
5769
  key: id,
5783
5770
  ref: this.ref,
5784
5771
  style: style,
@@ -5838,33 +5825,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5838
5825
 
5839
5826
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5840
5827
 
5841
- 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); }; }
5842
-
5843
5828
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5844
5829
 
5845
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5846
-
5847
- 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; } }
5848
-
5849
5830
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5850
5831
 
5832
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5833
+
5851
5834
  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); }
5852
5835
 
5853
5836
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5854
5837
 
5855
5838
  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; }
5856
5839
 
5857
- 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; } } }; }
5858
-
5859
- 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); }
5860
-
5861
- 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; }
5862
-
5863
5840
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5864
5841
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5865
5842
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5866
5843
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5867
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5844
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5868
5845
  var HLS_GLOBAL = 'Hls';
5869
5846
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5870
5847
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5873,11 +5850,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5873
5850
 
5874
5851
  function canPlay(url) {
5875
5852
  if (url instanceof Array) {
5876
- var _iterator = _createForOfIteratorHelper(url),
5877
- _step;
5853
+ var _iteratorNormalCompletion = true;
5854
+ var _didIteratorError = false;
5855
+ var _iteratorError = undefined;
5878
5856
 
5879
5857
  try {
5880
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5858
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5881
5859
  var item = _step.value;
5882
5860
 
5883
5861
  if (typeof item === 'string' && canPlay(item)) {
@@ -5889,9 +5867,18 @@ function canPlay(url) {
5889
5867
  }
5890
5868
  }
5891
5869
  } catch (err) {
5892
- _iterator.e(err);
5870
+ _didIteratorError = true;
5871
+ _iteratorError = err;
5893
5872
  } finally {
5894
- _iterator.f();
5873
+ try {
5874
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5875
+ _iterator["return"]();
5876
+ }
5877
+ } finally {
5878
+ if (_didIteratorError) {
5879
+ throw _iteratorError;
5880
+ }
5881
+ }
5895
5882
  }
5896
5883
 
5897
5884
  return false;
@@ -5915,12 +5902,14 @@ function canEnablePIP(url) {
5915
5902
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5916
5903
  }
5917
5904
 
5918
- var FilePlayer = /*#__PURE__*/function (_Component) {
5905
+ var FilePlayer =
5906
+ /*#__PURE__*/
5907
+ function (_Component) {
5919
5908
  _inherits(FilePlayer, _Component);
5920
5909
 
5921
- var _super = _createSuper(FilePlayer);
5922
-
5923
5910
  function FilePlayer() {
5911
+ var _getPrototypeOf2;
5912
+
5924
5913
  var _this;
5925
5914
 
5926
5915
  _classCallCheck(this, FilePlayer);
@@ -5929,7 +5918,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5929
5918
  _args[_key] = arguments[_key];
5930
5919
  }
5931
5920
 
5932
- _this = _super.call.apply(_super, [this].concat(_args));
5921
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5933
5922
 
5934
5923
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5935
5924
  var _this$props;
@@ -6016,19 +6005,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6016
6005
 
6017
6006
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
6018
6007
  if (typeof source === 'string') {
6019
- return /*#__PURE__*/_react["default"].createElement("source", {
6008
+ return _react["default"].createElement("source", {
6020
6009
  key: index,
6021
6010
  src: source
6022
6011
  });
6023
6012
  }
6024
6013
 
6025
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
6014
+ return _react["default"].createElement("source", _extends({
6026
6015
  key: index
6027
6016
  }, source));
6028
6017
  });
6029
6018
 
6030
6019
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
6031
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
6020
+ return _react["default"].createElement("track", _extends({
6032
6021
  key: index
6033
6022
  }, track));
6034
6023
  });
@@ -6066,10 +6055,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6066
6055
  key: "componentWillUnmount",
6067
6056
  value: function componentWillUnmount() {
6068
6057
  this.removeListeners(this.player);
6069
-
6070
- if (this.hls) {
6071
- this.hls.destroy();
6072
- }
6073
6058
  }
6074
6059
  }, {
6075
6060
  key: "addListeners",
@@ -6200,6 +6185,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6200
6185
  value: function stop() {
6201
6186
  this.player.removeAttribute('src');
6202
6187
 
6188
+ if (this.hls) {
6189
+ this.hls.destroy();
6190
+ }
6191
+
6203
6192
  if (this.dash) {
6204
6193
  this.dash.reset();
6205
6194
  }
@@ -6311,7 +6300,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6311
6300
  width: width === 'auto' ? width : '100%',
6312
6301
  height: height === 'auto' ? height : '100%'
6313
6302
  };
6314
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6303
+ return _react["default"].createElement(Element, _extends({
6315
6304
  ref: this.ref,
6316
6305
  src: this.getSource(url),
6317
6306
  style: style,
@@ -6401,16 +6390,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6401
6390
 
6402
6391
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6403
6392
 
6404
- 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); }; }
6405
-
6406
6393
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6407
6394
 
6408
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6409
-
6410
- 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; } }
6411
-
6412
6395
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6413
6396
 
6397
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6398
+
6414
6399
  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); }
6415
6400
 
6416
6401
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6419,12 +6404,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6419
6404
 
6420
6405
  var ICON_SIZE = '64px';
6421
6406
 
6422
- var Preview = /*#__PURE__*/function (_Component) {
6407
+ var Preview =
6408
+ /*#__PURE__*/
6409
+ function (_Component) {
6423
6410
  _inherits(Preview, _Component);
6424
6411
 
6425
- var _super = _createSuper(Preview);
6426
-
6427
6412
  function Preview() {
6413
+ var _getPrototypeOf2;
6414
+
6428
6415
  var _this;
6429
6416
 
6430
6417
  _classCallCheck(this, Preview);
@@ -6433,7 +6420,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6433
6420
  args[_key] = arguments[_key];
6434
6421
  }
6435
6422
 
6436
- _this = _super.call.apply(_super, [this].concat(args));
6423
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6437
6424
 
6438
6425
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6439
6426
 
@@ -6531,15 +6518,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6531
6518
  }
6532
6519
  };
6533
6520
 
6534
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6521
+ var defaultPlayIcon = _react["default"].createElement("div", {
6535
6522
  style: styles.shadow,
6536
6523
  className: "react-player__shadow"
6537
- }, /*#__PURE__*/_react["default"].createElement("div", {
6524
+ }, _react["default"].createElement("div", {
6538
6525
  style: styles.playIcon,
6539
6526
  className: "react-player__play-icon"
6540
6527
  }));
6541
6528
 
6542
- return /*#__PURE__*/_react["default"].createElement("div", {
6529
+ return _react["default"].createElement("div", {
6543
6530
  style: styles.preview,
6544
6531
  className: "react-player__preview",
6545
6532
  onClick: onClick
@@ -6576,12 +6563,6 @@ var _Player = _interopRequireDefault(Player_1);
6576
6563
 
6577
6564
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6578
6565
 
6579
- 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; } } }; }
6580
-
6581
- 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); }
6582
-
6583
- 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; }
6584
-
6585
6566
  var PRELOAD_PLAYERS = [{
6586
6567
  Player: YouTube_1.YouTube,
6587
6568
  configKey: 'youtube',
@@ -6602,16 +6583,16 @@ var PRELOAD_PLAYERS = [{
6602
6583
 
6603
6584
  function renderPreloadPlayers(url, controls, config) {
6604
6585
  var players = [];
6605
-
6606
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6607
- _step;
6586
+ var _iteratorNormalCompletion = true;
6587
+ var _didIteratorError = false;
6588
+ var _iteratorError = undefined;
6608
6589
 
6609
6590
  try {
6610
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6591
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6611
6592
  var player = _step.value;
6612
6593
 
6613
6594
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6614
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6595
+ players.push(_react["default"].createElement(_Player["default"], {
6615
6596
  key: player.Player.displayName,
6616
6597
  activePlayer: player.Player,
6617
6598
  url: player.url,
@@ -6623,9 +6604,18 @@ function renderPreloadPlayers(url, controls, config) {
6623
6604
  }
6624
6605
  }
6625
6606
  } catch (err) {
6626
- _iterator.e(err);
6607
+ _didIteratorError = true;
6608
+ _iteratorError = err;
6627
6609
  } finally {
6628
- _iterator.f();
6610
+ try {
6611
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6612
+ _iterator["return"]();
6613
+ }
6614
+ } finally {
6615
+ if (_didIteratorError) {
6616
+ throw _iteratorError;
6617
+ }
6618
+ }
6629
6619
  }
6630
6620
 
6631
6621
  return players;
@@ -6749,17 +6739,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6749
6739
 
6750
6740
  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); }
6751
6741
 
6752
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6753
-
6754
- 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."); }
6742
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6755
6743
 
6756
- 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); }
6744
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6757
6745
 
6758
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6746
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6759
6747
 
6760
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6761
-
6762
- 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; }
6748
+ 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; } }
6763
6749
 
6764
6750
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6765
6751
 
@@ -6767,16 +6753,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6767
6753
 
6768
6754
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6769
6755
 
6770
- 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); }; }
6771
-
6772
6756
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6773
6757
 
6774
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6775
-
6776
- 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; } }
6777
-
6778
6758
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6779
6759
 
6760
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6761
+
6780
6762
  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); }
6781
6763
 
6782
6764
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6786,12 +6768,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6786
6768
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6787
6769
  var customPlayers = [];
6788
6770
 
6789
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6771
+ var ReactPlayer =
6772
+ /*#__PURE__*/
6773
+ function (_Component) {
6790
6774
  _inherits(ReactPlayer, _Component);
6791
6775
 
6792
- var _super = _createSuper(ReactPlayer);
6793
-
6794
6776
  function ReactPlayer() {
6777
+ var _getPrototypeOf2;
6778
+
6795
6779
  var _this;
6796
6780
 
6797
6781
  _classCallCheck(this, ReactPlayer);
@@ -6800,7 +6784,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6800
6784
  args[_key] = arguments[_key];
6801
6785
  }
6802
6786
 
6803
- _this = _super.call.apply(_super, [this].concat(args));
6787
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6804
6788
 
6805
6789
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6806
6790
 
@@ -6911,7 +6895,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6911
6895
  key: "renderActivePlayer",
6912
6896
  value: function renderActivePlayer(url, activePlayer) {
6913
6897
  if (!url) return null;
6914
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6898
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6915
6899
  key: activePlayer.displayName,
6916
6900
  ref: this.activePlayerRef,
6917
6901
  config: this.config,
@@ -6948,14 +6932,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6948
6932
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6949
6933
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6950
6934
 
6951
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6935
+ var preview = _react["default"].createElement(_Preview["default"], {
6952
6936
  url: url,
6953
6937
  light: light,
6954
6938
  playIcon: playIcon,
6955
6939
  onClick: this.handleClickPreview
6956
6940
  });
6957
6941
 
6958
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6942
+ return _react["default"].createElement(Wrapper, _extends({
6959
6943
  ref: this.wrapperRef,
6960
6944
  style: _objectSpread({}, style, {
6961
6945
  width: width,
@@ -7277,8 +7261,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7277
7261
  var duration = player.getDuration();
7278
7262
  var queue = Math.floor(duration / 10);
7279
7263
  var segment = Math.floor(current / queue);
7280
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
7281
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
7264
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
7265
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
7282
7266
  //autoplay
7283
7267
 
7284
7268
  //Small pause before starting next video
@@ -7298,8 +7282,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7298
7282
  var queue = Math.floor(duration / 10);
7299
7283
  var segment = Math.floor(current / queue);
7300
7284
 
7301
- Beam.report_beam_video('End', main_18, duration, current, segment);
7302
- Segment.report_video_event('Video End', main_18, duration, current, segment);
7285
+ Beam.report_beam_video('End', main_16, duration, current, segment);
7286
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
7303
7287
  setEndReported(true);
7304
7288
  clearInterval(intervalID);
7305
7289
  }
@@ -7349,8 +7333,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7349
7333
  var queue = Math.floor(duration / 10);
7350
7334
  var segment = Math.floor(current / queue);
7351
7335
  if (!queueProgress.includes(segment)) {
7352
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
7353
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
7336
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
7337
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
7354
7338
  queueProgress.push(segment);
7355
7339
  }
7356
7340
  };
@@ -7363,8 +7347,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7363
7347
  var queue = Math.floor(duration / 10);
7364
7348
  var segment = Math.floor(current / queue);
7365
7349
 
7366
- Beam.report_beam_video('Play', main_18, duration, current, segment);
7367
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
7350
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
7351
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
7368
7352
 
7369
7353
  if (!playReported) {
7370
7354
  setPlayReported(true);
@@ -7382,8 +7366,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7382
7366
  var queue = Math.floor(duration / 10);
7383
7367
  var segment = Math.floor(current / queue);
7384
7368
 
7385
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
7386
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
7369
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
7370
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
7387
7371
  };
7388
7372
 
7389
7373
  // Youtube Options
@@ -7501,7 +7485,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7501
7485
  React__default.createElement(
7502
7486
  'div',
7503
7487
  { className: 'vid-text' },
7504
- 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()))
7488
+ 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()))
7505
7489
  ),
7506
7490
  React__default.createElement(
7507
7491
  'style',
@@ -7819,7 +7803,7 @@ var Poll$1 = function Poll(_ref) {
7819
7803
  );
7820
7804
  };
7821
7805
 
7822
- var numberOfPaginations = main_42 ? 4 : 10;
7806
+ var numberOfPaginations = main_35 ? 4 : 10;
7823
7807
 
7824
7808
  var Quiz = function Quiz(_ref) {
7825
7809
  var quizzes = _ref.quizzes,
@@ -7939,7 +7923,7 @@ var Quiz = function Quiz(_ref) {
7939
7923
  var renderPagination = function renderPagination() {
7940
7924
  return React__default.createElement(
7941
7925
  Pagination$1,
7942
- { className: 'p-0 m-0', size: main_42 && 'sm' },
7926
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7943
7927
  React__default.createElement(Pagination$1.First, { onClick: function onClick() {
7944
7928
  return changePage('first');
7945
7929
  }, disabled: currentPage === 1 }),
@@ -8116,7 +8100,6 @@ var Slideshow$1 = function Slideshow(_ref) {
8116
8100
  getSerializers = _ref.getSerializers;
8117
8101
 
8118
8102
  var router = useRouter();
8119
- var carouselRef = useRef(null);
8120
8103
  var pageNumber = router && router.asPath && router.asPath.split('?page=')[1];
8121
8104
 
8122
8105
  var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
@@ -8143,14 +8126,12 @@ var Slideshow$1 = function Slideshow(_ref) {
8143
8126
  var pageNumber = selectedIndex + 1;
8144
8127
  var href = '/view/' + router.query.url + '?page=' + pageNumber;
8145
8128
  router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
8146
- if (carouselRef) {
8147
- carouselRef.current.scrollIntoView();
8148
- }
8129
+ setCarouselIndex(selectedIndex);
8149
8130
  };
8150
8131
 
8151
8132
  return React__default.createElement(
8152
8133
  'div',
8153
- { ref: carouselRef, className: 'mt-3 mb-4' },
8134
+ { className: 'mt-3 mb-4' },
8154
8135
  React__default.createElement(
8155
8136
  Carousel,
8156
8137
  { activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
@@ -8163,15 +8144,24 @@ var Slideshow$1 = function Slideshow(_ref) {
8163
8144
  'a',
8164
8145
  { href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
8165
8146
  React__default.createElement(
8166
- LazyLoad,
8167
- null,
8147
+ 'div',
8148
+ { className: 'embed-responsive embed-responsive-slide' },
8168
8149
  React__default.createElement(
8169
- 'picture',
8150
+ LazyLoad,
8170
8151
  null,
8171
- React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8172
- React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8173
- React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8174
- React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8152
+ React__default.createElement(
8153
+ 'picture',
8154
+ null,
8155
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8156
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8157
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8158
+ React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
8159
+ )
8160
+ ),
8161
+ React__default.createElement(
8162
+ 'style',
8163
+ { jsx: 'true' },
8164
+ '\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
8175
8165
  )
8176
8166
  )
8177
8167
  ),
@@ -8259,7 +8249,7 @@ var MultiMedia = function MultiMedia(props) {
8259
8249
  { xs: 12, md: 12 / medias.length, key: media._key },
8260
8250
  React__default.createElement(
8261
8251
  'a',
8262
- _extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8252
+ _extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8263
8253
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8264
8254
  React__default.createElement(
8265
8255
  'div',
@@ -8554,7 +8544,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8554
8544
 
8555
8545
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8556
8546
  if (biography) {
8557
- return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8547
+ return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
8558
8548
  }
8559
8549
  };
8560
8550
 
@@ -8640,7 +8630,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8640
8630
  //console.log('useLayoutEffect')
8641
8631
  if (!firstLoad) {
8642
8632
  setUpArrowClicked(false);
8643
- if (main_43) {
8633
+ if (main_36) {
8644
8634
  grabLoadedAds();
8645
8635
  } else {
8646
8636
  scrollToArticle();
@@ -8664,7 +8654,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8664
8654
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8665
8655
  if (pageview) pageview(path);
8666
8656
 
8667
- if (!main_43) {
8657
+ if (!main_36) {
8668
8658
  lib_3.getGoogletag().then(function (googletag) {
8669
8659
  if (window.googletag && googletag.pubadsReady) {
8670
8660
  lib_3.refresh();
@@ -8672,7 +8662,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8672
8662
  });
8673
8663
  }
8674
8664
  //Refresh leaderboard ad on mobile
8675
- if (main_43) {
8665
+ if (main_36) {
8676
8666
  var leaderboardSlotId = '';
8677
8667
  lib_3.getGoogletag().then(function (googletag) {
8678
8668
  if (window.googletag && googletag.pubadsReady) {
@@ -8741,7 +8731,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8741
8731
  React__default.createElement(
8742
8732
  'div',
8743
8733
  { className: 'ad-box', style: { textAlign: 'center' } },
8744
- main_43 && Ads.map(function (ad, index) {
8734
+ main_36 && Ads.map(function (ad, index) {
8745
8735
  if (index === 0) {
8746
8736
  return React__default.createElement(
8747
8737
  'div',
@@ -8832,7 +8822,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8832
8822
  React__default.createElement(
8833
8823
  'div',
8834
8824
  { className: 'mt-2 mb-2' },
8835
- React__default.createElement(BlockContent, _extends({
8825
+ React__default.createElement(BlockContent, _extends$1({
8836
8826
  serializers: getSerializers,
8837
8827
  videoAccountIDs: accountIDs,
8838
8828
  blocks: article.text,
@@ -8863,7 +8853,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8863
8853
  React__default.createElement(
8864
8854
  'div',
8865
8855
  { className: 'ad-box', style: { textAlign: 'center' } },
8866
- main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8856
+ main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8867
8857
  if (innerIndex === 0) {
8868
8858
  return React__default.createElement(
8869
8859
  'div',
@@ -8950,7 +8940,7 @@ var FigureImage = React__default.memo(function (_ref2) {
8950
8940
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8951
8941
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8952
8942
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
8953
- React__default.createElement('img', _extends({
8943
+ React__default.createElement('img', _extends$1({
8954
8944
  style: figureImageStyle,
8955
8945
  className: 'figure-image',
8956
8946
  src: urlFor({ source: node, client: client }),
@@ -9126,7 +9116,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
9126
9116
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9127
9117
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9128
9118
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9129
- React__default.createElement('img', _extends({
9119
+ React__default.createElement('img', _extends$1({
9130
9120
  'images-count': imagesCount,
9131
9121
  className: 'multi-figure-image',
9132
9122
  src: urlFor({ source: image, client: client }),
@@ -9191,7 +9181,7 @@ var MultiFigure = function MultiFigure(props) {
9191
9181
  { xs: 12, md: 12 / images.length, key: index },
9192
9182
  image.link ? React__default.createElement(
9193
9183
  'a',
9194
- _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9184
+ _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9195
9185
  React__default.createElement(
9196
9186
  'div',
9197
9187
  { className: 'multi-figure-image-container' },
@@ -9242,10 +9232,29 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
9242
9232
 
9243
9233
  var elementId = articleId ? id + '-' + articleId : id;
9244
9234
 
9235
+ useEffect(function () {
9236
+ var timer = setTimeout(function () {
9237
+ var hash = window.location.hash;
9238
+ if (hash) {
9239
+ var _elementId = hash.slice(1);
9240
+ var element = document.getElementById(_elementId);
9241
+ element && element.scrollIntoView();
9242
+ }
9243
+ }, 3000);
9244
+ return function () {
9245
+ clearTimeout(timer);
9246
+ };
9247
+ }, []);
9248
+
9245
9249
  return React__default.createElement(
9246
9250
  'div',
9247
9251
  { id: elementId },
9248
- React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
9252
+ React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
9253
+ React__default.createElement(
9254
+ 'style',
9255
+ { jsx: 'true' },
9256
+ '\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -100px;\n height: 100px;\n visibility: hidden;\n pointer-events: none;\n }\n '
9257
+ )
9249
9258
  );
9250
9259
  };
9251
9260
 
@@ -9274,7 +9283,7 @@ exports.__esModule = true;
9274
9283
 
9275
9284
 
9276
9285
 
9277
- var _extends3 = _interopRequireDefault(_extends$1);
9286
+ var _extends3 = _interopRequireDefault(_extends$2);
9278
9287
 
9279
9288
 
9280
9289
 
@@ -9587,7 +9596,7 @@ var BlockTable = function BlockTable(props) {
9587
9596
  return React__default.createElement(
9588
9597
  'div',
9589
9598
  { className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
9590
- React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9599
+ React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
9591
9600
  );
9592
9601
  })
9593
9602
  );