@mjhls/mjh-framework 1.0.881 → 1.0.883-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 (288) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +11 -11
  4. package/dist/cjs/AD300x250x600.js +11 -11
  5. package/dist/cjs/AD728x90.js +12 -12
  6. package/dist/cjs/ADFloatingFooter.js +10 -10
  7. package/dist/cjs/ADFooter.js +3 -3
  8. package/dist/cjs/ADGutter.js +10 -10
  9. package/dist/cjs/{ADInfeed-4f661172.js → ADInfeed-2e48af77.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +10 -10
  11. package/dist/cjs/ADSponsoredResources.js +10 -10
  12. package/dist/cjs/ADWebcast.js +10 -10
  13. package/dist/cjs/ADWelcome.js +10 -10
  14. package/dist/cjs/{ADlgInfeed-6242e5b5.js → ADlgInfeed-c39c7131.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +4 -4
  16. package/dist/cjs/AdSlot.js +10 -10
  17. package/dist/cjs/AdSlotsProvider.js +903 -10
  18. package/dist/cjs/AlgoliaSearch.js +264 -391
  19. package/dist/cjs/AlphabeticList.js +6 -6
  20. package/dist/cjs/ArticleCarousel.js +6 -6
  21. package/dist/cjs/ArticleProgramLandingPage.js +25 -25
  22. package/dist/cjs/ArticleSeriesLandingPage.js +22 -22
  23. package/dist/cjs/ArticleSeriesListing.js +16 -16
  24. package/dist/cjs/Auth.js +1297 -469
  25. package/dist/cjs/AuthWrapper.js +390 -1697
  26. package/dist/cjs/{AuthorComponent-421d5ec1.js → AuthorComponent-02e827ae.js} +1 -1
  27. package/dist/cjs/Beam.js +5 -5
  28. package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
  29. package/dist/cjs/Breadcrumbs.js +3 -3
  30. package/dist/cjs/CMEDeck.js +12 -12
  31. package/dist/cjs/Column2.js +6 -6
  32. package/dist/cjs/Column3.js +14 -14
  33. package/dist/cjs/ConferenceArticleCard.js +20 -20
  34. package/dist/cjs/DeckContent.js +30 -30
  35. package/dist/cjs/DeckQueue.js +19 -19
  36. package/dist/cjs/DeckQueuePaginated.js +339 -0
  37. package/dist/cjs/{Dfp-ab12cd55.js → Dfp-f492f985.js} +8 -8
  38. package/dist/cjs/EventsDeck.js +31 -31
  39. package/dist/cjs/ExternalResources.js +25 -25
  40. package/dist/cjs/Feature.js +6 -6
  41. package/dist/cjs/ForbesHero.js +6 -6
  42. package/dist/cjs/GridContent.js +27 -27
  43. package/dist/cjs/GridHero.js +7 -7
  44. package/dist/cjs/GroupDeck.js +6 -6
  45. package/dist/cjs/HamMagazine.js +23 -23
  46. package/dist/cjs/Hero.js +5 -5
  47. package/dist/cjs/HighlightenVideo.js +1 -1
  48. package/dist/cjs/HorizontalArticleListing.js +24 -24
  49. package/dist/cjs/HorizontalHero.js +6 -6
  50. package/dist/cjs/IssueContentDeck.js +6 -6
  51. package/dist/cjs/IssueDeck.js +8 -8
  52. package/dist/cjs/IssueLanding.js +58 -58
  53. package/dist/cjs/KMTracker.js +15 -15
  54. package/dist/cjs/LeftNav.js +10 -10
  55. package/dist/cjs/MasterDeck.js +30 -30
  56. package/dist/cjs/MasterDeckPaginated.js +443 -0
  57. package/dist/cjs/MediaSeriesCard-c6a6bfd3.js +9411 -0
  58. package/dist/cjs/MediaSeriesLanding.js +53 -9534
  59. package/dist/cjs/MediaSeriesLandingPaginated.js +521 -0
  60. package/dist/cjs/NavDvm.js +5 -5
  61. package/dist/cjs/NavMagazine.js +22 -22
  62. package/dist/cjs/NavNative.js +19 -19
  63. package/dist/cjs/OncliveHero.js +6 -5
  64. package/dist/cjs/OncliveLargeHero.js +7 -7
  65. package/dist/cjs/PageFilter.js +3 -3
  66. package/dist/cjs/Pagination-f3ef7bc1.js +59 -0
  67. package/dist/cjs/PartnerDetailListing.js +1233 -160
  68. package/dist/cjs/PdfDownload.js +1 -1
  69. package/dist/cjs/PopUpModal.js +3 -3
  70. package/dist/cjs/PubSection.js +19 -19
  71. package/dist/cjs/PubToc.js +5 -5
  72. package/dist/cjs/PublicationDeck.js +5 -5
  73. package/dist/cjs/PublicationLanding.js +34 -34
  74. package/dist/cjs/QueueDeckExpanded.js +21 -21
  75. package/dist/cjs/QueueDeckExpandedPaginated.js +1377 -0
  76. package/dist/cjs/RecentNews.js +1 -1
  77. package/dist/cjs/RelatedContent.js +33 -33
  78. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  79. package/dist/cjs/Search.js +3 -3
  80. package/dist/cjs/Segment.js +4 -4
  81. package/dist/cjs/SeriesListingDeck.js +10 -10
  82. package/dist/cjs/{SeriesSlider-372e418f.js → SeriesSlider-49b81b0b.js} +11 -11
  83. package/dist/cjs/SideFooter.js +8 -8
  84. package/dist/cjs/{SocialSearchComponent-80a2130a.js → SocialSearchComponent-e8477ca3.js} +7 -7
  85. package/dist/cjs/TaxonomyCard.js +6 -6
  86. package/dist/cjs/TaxonomyDescription.js +24 -24
  87. package/dist/cjs/TemplateNormal.js +16 -16
  88. package/dist/cjs/ThumbnailCard.js +5 -5
  89. package/dist/cjs/Ustream.js +10 -10
  90. package/dist/cjs/VerticalHero.js +5 -5
  91. package/dist/cjs/VideoProgramLandingPage.js +25 -25
  92. package/dist/cjs/VideoSeriesCard.js +9 -9
  93. package/dist/cjs/VideoSeriesFilter.js +5 -5
  94. package/dist/cjs/VideoSeriesLandingPage.js +23 -23
  95. package/dist/cjs/VideoSeriesListing.js +16 -16
  96. package/dist/cjs/View.js +63 -63
  97. package/dist/cjs/YahooHero.js +7 -7
  98. package/dist/cjs/YoutubeGroup.js +14 -14
  99. package/dist/cjs/{_is-array-bd978497.js → _is-array-aa52fa1e.js} +1 -1
  100. package/dist/cjs/{_iter-detect-ee3d4802.js → _iter-detect-05795553.js} +1 -1
  101. package/dist/cjs/{_object-sap-fee50a62.js → _object-sap-171b9ea5.js} +1 -1
  102. package/dist/cjs/{_object-to-array-18379aba.js → _object-to-array-9bac8737.js} +1 -1
  103. package/dist/cjs/{asyncToGenerator-15014394.js → asyncToGenerator-df19209d.js} +3 -3
  104. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  105. package/dist/cjs/{core.get-iterator-method-5cb3af28.js → core.get-iterator-method-f3c44602.js} +2 -2
  106. package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
  107. package/dist/cjs/{define-property-530a5e9e.js → define-property-21887c62.js} +1 -1
  108. package/dist/cjs/{defineProperty-5ca424cd.js → defineProperty-77a37684.js} +1 -1
  109. package/dist/cjs/{entities-fb0c6568.js → entities-310b46ee.js} +0 -4
  110. package/dist/cjs/{extends-1d905ddb.js → extends-eed4f016.js} +1 -1
  111. package/dist/cjs/faundadb.js +5 -5
  112. package/dist/cjs/getRelatedArticle.js +4 -4
  113. package/dist/cjs/getRootDocGroup.js +4 -4
  114. package/dist/cjs/getSerializers.js +24 -24
  115. package/dist/cjs/{getTargeting-41f2f52d.js → getTargeting-8874437b.js} +11 -11
  116. package/dist/cjs/getTargeting.js +5 -5
  117. package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
  118. package/dist/cjs/{index-d3451292.js → index-396089c0.js} +510 -514
  119. package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
  120. package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
  121. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  122. package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
  123. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  124. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  125. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  126. package/dist/cjs/index.js +41 -43
  127. package/dist/cjs/inherits-8d29278d.js +110 -0
  128. package/dist/cjs/{inherits-337c73a7.js → inherits-cba9c846.js} +7 -7
  129. package/dist/cjs/{keys-91f31941.js → keys-d207942e.js} +2 -2
  130. package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
  131. package/dist/cjs/main-02daeefe.js +862 -0
  132. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  133. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  134. package/dist/cjs/{slicedToArray-0a78cdf3.js → slicedToArray-f6d4eaa8.js} +2 -2
  135. package/dist/cjs/{stringify-13405ce2.js → stringify-bbc68047.js} +1 -1
  136. package/dist/cjs/timeDifferenceCalc.js +1 -1
  137. package/dist/cjs/{toConsumableArray-39fd0757.js → toConsumableArray-c9b8a0d0.js} +2 -2
  138. package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
  139. package/dist/cjs/{typeof-3dd6d3df.js → typeof-5f52cf64.js} +3 -3
  140. package/dist/cjs/urlFor.js +4 -4
  141. package/dist/cjs/{ustream-api-5619c1fa.js → ustream-api-9ebe112f.js} +4 -4
  142. package/dist/cjs/{web.dom.iterable-a9359910.js → web.dom.iterable-e34bf324.js} +1 -1
  143. package/dist/esm/AD.js +1 -1
  144. package/dist/esm/AD300x250.js +11 -11
  145. package/dist/esm/AD300x250x600.js +11 -11
  146. package/dist/esm/AD728x90.js +12 -12
  147. package/dist/esm/ADFloatingFooter.js +10 -10
  148. package/dist/esm/ADFooter.js +3 -3
  149. package/dist/esm/ADGutter.js +10 -10
  150. package/dist/esm/{ADInfeed-7db96917.js → ADInfeed-d767ebe2.js} +3 -3
  151. package/dist/esm/ADSkyscraper.js +10 -10
  152. package/dist/esm/ADSponsoredResources.js +10 -10
  153. package/dist/esm/ADWebcast.js +10 -10
  154. package/dist/esm/ADWelcome.js +10 -10
  155. package/dist/esm/{ADlgInfeed-a3931e68.js → ADlgInfeed-cee95aa2.js} +1 -1
  156. package/dist/esm/AccordionPanel.js +4 -4
  157. package/dist/esm/AdSlot.js +10 -10
  158. package/dist/esm/AdSlotsProvider.js +905 -13
  159. package/dist/esm/AlgoliaSearch.js +32 -159
  160. package/dist/esm/AlphabeticList.js +6 -6
  161. package/dist/esm/ArticleCarousel.js +6 -6
  162. package/dist/esm/ArticleProgramLandingPage.js +25 -25
  163. package/dist/esm/ArticleSeriesLandingPage.js +22 -22
  164. package/dist/esm/ArticleSeriesListing.js +18 -18
  165. package/dist/esm/Auth.js +1297 -469
  166. package/dist/esm/AuthWrapper.js +385 -1692
  167. package/dist/esm/{AuthorComponent-2277b67c.js → AuthorComponent-e6f95c2f.js} +1 -1
  168. package/dist/esm/Beam.js +5 -5
  169. package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
  170. package/dist/esm/Breadcrumbs.js +3 -3
  171. package/dist/esm/CMEDeck.js +12 -12
  172. package/dist/esm/Column1.js +4 -4
  173. package/dist/esm/Column2.js +11 -11
  174. package/dist/esm/Column3.js +20 -20
  175. package/dist/esm/ConferenceArticleCard.js +20 -20
  176. package/dist/esm/DeckContent.js +45 -45
  177. package/dist/esm/DeckQueue.js +37 -37
  178. package/dist/esm/DeckQueuePaginated.js +333 -0
  179. package/dist/esm/{Dfp-d6a5629f.js → Dfp-f867d061.js} +5 -5
  180. package/dist/esm/EventsDeck.js +57 -57
  181. package/dist/esm/ExternalResources.js +27 -27
  182. package/dist/esm/Feature.js +6 -6
  183. package/dist/esm/ForbesHero.js +6 -6
  184. package/dist/esm/GridContent.js +71 -71
  185. package/dist/esm/GridHero.js +7 -7
  186. package/dist/esm/GroupDeck.js +6 -6
  187. package/dist/esm/HamMagazine.js +26 -26
  188. package/dist/esm/Hero.js +5 -5
  189. package/dist/esm/HighlightenVideo.js +1 -1
  190. package/dist/esm/HorizontalArticleListing.js +24 -24
  191. package/dist/esm/HorizontalHero.js +6 -6
  192. package/dist/esm/IssueContentDeck.js +20 -20
  193. package/dist/esm/IssueDeck.js +30 -30
  194. package/dist/esm/IssueLanding.js +58 -58
  195. package/dist/esm/KMTracker.js +15 -15
  196. package/dist/esm/LeftNav.js +10 -10
  197. package/dist/esm/MasterDeck.js +33 -33
  198. package/dist/esm/MasterDeckPaginated.js +437 -0
  199. package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
  200. package/dist/esm/MediaSeriesLanding.js +53 -9533
  201. package/dist/esm/MediaSeriesLandingPaginated.js +516 -0
  202. package/dist/esm/NavDvm.js +8 -8
  203. package/dist/esm/NavMagazine.js +25 -25
  204. package/dist/esm/NavNative.js +24 -24
  205. package/dist/esm/OncliveHero.js +6 -5
  206. package/dist/esm/OncliveLargeHero.js +7 -7
  207. package/dist/esm/PageFilter.js +3 -3
  208. package/dist/esm/Pagination-a24855d4.js +54 -0
  209. package/dist/esm/PartnerDetailListing.js +1234 -161
  210. package/dist/esm/PdfDownload.js +1 -1
  211. package/dist/esm/PopUpModal.js +3 -3
  212. package/dist/esm/PubSection.js +19 -19
  213. package/dist/esm/PubToc.js +5 -5
  214. package/dist/esm/PublicationDeck.js +23 -23
  215. package/dist/esm/PublicationLanding.js +56 -56
  216. package/dist/esm/QueueDeckExpanded.js +21 -21
  217. package/dist/esm/QueueDeckExpandedPaginated.js +1371 -0
  218. package/dist/esm/RecentNews.js +1 -1
  219. package/dist/esm/RelatedContent.js +33 -33
  220. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  221. package/dist/esm/RolesDeck.js +12 -12
  222. package/dist/esm/Search.js +5 -5
  223. package/dist/esm/Segment.js +4 -4
  224. package/dist/esm/SeriesListingDeck.js +10 -10
  225. package/dist/esm/{SeriesSlider-88c4133d.js → SeriesSlider-ce19fa25.js} +11 -11
  226. package/dist/esm/SideFooter.js +8 -8
  227. package/dist/esm/{SocialSearchComponent-7f3d6531.js → SocialSearchComponent-dca69151.js} +10 -10
  228. package/dist/esm/TaxonomyCard.js +22 -22
  229. package/dist/esm/TaxonomyDescription.js +24 -24
  230. package/dist/esm/TemplateNormal.js +19 -19
  231. package/dist/esm/ThumbnailCard.js +5 -5
  232. package/dist/esm/Ustream.js +10 -10
  233. package/dist/esm/VerticalHero.js +5 -5
  234. package/dist/esm/VideoProgramLandingPage.js +30 -30
  235. package/dist/esm/VideoSeriesCard.js +8 -8
  236. package/dist/esm/VideoSeriesFilter.js +5 -5
  237. package/dist/esm/VideoSeriesLandingPage.js +22 -22
  238. package/dist/esm/VideoSeriesListing.js +19 -19
  239. package/dist/esm/View.js +38 -38
  240. package/dist/esm/YahooHero.js +7 -7
  241. package/dist/esm/YoutubeGroup.js +14 -14
  242. package/dist/esm/{_is-array-8914b83f.js → _is-array-4df618a6.js} +1 -1
  243. package/dist/esm/{_iter-detect-13e31915.js → _iter-detect-130ee549.js} +1 -1
  244. package/dist/esm/{_object-sap-fc9da7e8.js → _object-sap-8b8ea5a9.js} +1 -1
  245. package/dist/esm/{_object-to-array-ee8f6d98.js → _object-to-array-c54dd835.js} +1 -1
  246. package/dist/esm/{asyncToGenerator-40371743.js → asyncToGenerator-7bf8bc4d.js} +3 -3
  247. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  248. package/dist/esm/{core.get-iterator-method-0fb60d94.js → core.get-iterator-method-86d4db69.js} +2 -2
  249. package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
  250. package/dist/esm/{define-property-73034847.js → define-property-6d26cb48.js} +1 -1
  251. package/dist/esm/{defineProperty-e66a2c7c.js → defineProperty-d7d9b577.js} +1 -1
  252. package/dist/esm/{entities-731f3fdb.js → entities-7cc3bf45.js} +0 -4
  253. package/dist/esm/{extends-9a61581c.js → extends-5b1796d4.js} +1 -1
  254. package/dist/esm/faundadb.js +5 -5
  255. package/dist/esm/getRelatedArticle.js +4 -4
  256. package/dist/esm/getRootDocGroup.js +4 -4
  257. package/dist/esm/getSerializers.js +24 -24
  258. package/dist/esm/{getTargeting-e6820763.js → getTargeting-277c801e.js} +11 -11
  259. package/dist/esm/getTargeting.js +5 -5
  260. package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
  261. package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
  262. package/dist/esm/{index-cf149780.js → index-d1476645.js} +529 -533
  263. package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
  264. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  265. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  266. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  267. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  268. package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
  269. package/dist/esm/index.js +46 -48
  270. package/dist/esm/{inherits-eeaf6740.js → inherits-2409637d.js} +4 -4
  271. package/dist/esm/inherits-77d5e4fc.js +101 -0
  272. package/dist/esm/{keys-a5ffafe7.js → keys-69989821.js} +2 -2
  273. package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
  274. package/dist/esm/main-c0612122.js +851 -0
  275. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  276. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  277. package/dist/esm/{slicedToArray-9c3bb613.js → slicedToArray-67a08c9c.js} +2 -2
  278. package/dist/esm/{stringify-ebc16384.js → stringify-70b72959.js} +1 -1
  279. package/dist/esm/timeDifferenceCalc.js +1 -1
  280. package/dist/esm/{toConsumableArray-e333293f.js → toConsumableArray-32282905.js} +2 -2
  281. package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
  282. package/dist/esm/{typeof-938ae770.js → typeof-c05a82ba.js} +3 -3
  283. package/dist/esm/urlFor.js +4 -4
  284. package/dist/esm/{ustream-api-d325d196.js → ustream-api-4c4fe0ba.js} +4 -4
  285. package/dist/esm/{web.dom.iterable-6b037ff9.js → web.dom.iterable-f8f967cd.js} +1 -1
  286. package/package.json +112 -112
  287. package/dist/cjs/main-bc7d4bf8.js +0 -972
  288. package/dist/esm/main-ede573ee.js +0 -961
@@ -1,41 +1,41 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { _ as _export, a as _core } from './core.get-iterator-method-0fb60d94.js';
3
- import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-e333293f.js';
4
- import { _ as _extends, b as _extends$1 } from './extends-9a61581c.js';
5
- import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-eeaf6740.js';
6
- import { _ as _typeof$1 } from './typeof-938ae770.js';
2
+ import { _ as _export, a as _core } from './core.get-iterator-method-86d4db69.js';
3
+ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-32282905.js';
4
+ import { _ as _extends$1, b as _extends$2 } from './extends-5b1796d4.js';
5
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-2409637d.js';
6
+ import { _ as _typeof } from './typeof-c05a82ba.js';
7
7
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
8
8
  import { l as lib_3 } from './index-41a678ea.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import Row$1 from 'react-bootstrap/Row';
11
11
  import Col$1 from 'react-bootstrap/Col';
12
- import { m as moment } from './moment-b6f49411.js';
12
+ import { m as moment } from './moment-e2f9b20c.js';
13
13
  import Router, { useRouter } from 'next/router';
14
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-9c3bb613.js';
14
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
15
15
  import urlFor from './urlFor.js';
16
16
  import { L as LazyLoad } from './index-5f7e79e7.js';
17
- import { e as main_18, b as main_42, m as main_43 } from './main-ede573ee.js';
18
- import { h as html_decode_1 } from './entities-731f3fdb.js';
19
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-40371743.js';
17
+ import { e as main_16, b as main_35, m as main_36 } from './main-c0612122.js';
18
+ import { h as html_decode_1 } from './entities-7cc3bf45.js';
19
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
20
20
  import Segment from './Segment.js';
21
21
  import './Beam.js';
22
22
  import DFPAdSlot from './AdSlot.js';
23
23
  import Button$1 from 'react-bootstrap/Button';
24
- import { B as BlockContent } from './BlockContent-ea93e8f7.js';
24
+ import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
25
25
  import { g as getYoutubeId } from './index-c7e2ac95.js';
26
26
  import GroupDeck from './GroupDeck.js';
27
27
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
28
- import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
28
+ import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
29
29
  import { u as util } from './util-7700fc59.js';
30
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-e761d404.js';
30
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
31
31
  import Head from 'next/head';
32
32
  import SocialShare from './SocialShare.js';
33
- import { _ as _objectToArray } from './_object-to-array-ee8f6d98.js';
34
- import Pagination$1 from 'react-bootstrap/Pagination';
33
+ import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
34
+ import Pagination from 'react-bootstrap/Pagination';
35
35
  import Figure$1$1 from 'react-bootstrap/Figure';
36
36
  import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
37
- import Tooltip$1 from 'react-bootstrap/Tooltip';
38
- import Popover$1 from 'react-bootstrap/Popover';
37
+ import Tooltip from 'react-bootstrap/Tooltip';
38
+ import Popover from 'react-bootstrap/Popover';
39
39
 
40
40
  var onChangeSlide = function onChangeSlide(selectedIndex, router) {
41
41
  var pageNumber = selectedIndex + 1;
@@ -101,18 +101,21 @@ var Slideshow = function Slideshow(_ref) {
101
101
  );
102
102
  };
103
103
 
104
- // do not edit .js files directly - edit src/index.jst
105
-
106
-
104
+ var isArray = Array.isArray;
105
+ var keyList = Object.keys;
106
+ var hasProp = Object.prototype.hasOwnProperty;
107
107
 
108
108
  var fastDeepEqual = function equal(a, b) {
109
109
  if (a === b) return true;
110
110
 
111
111
  if (a && b && typeof a == 'object' && typeof b == 'object') {
112
- if (a.constructor !== b.constructor) return false;
112
+ var arrA = isArray(a)
113
+ , arrB = isArray(b)
114
+ , i
115
+ , length
116
+ , key;
113
117
 
114
- var length, i, keys;
115
- if (Array.isArray(a)) {
118
+ if (arrA && arrB) {
116
119
  length = a.length;
117
120
  if (length != b.length) return false;
118
121
  for (i = length; i-- !== 0;)
@@ -120,29 +123,35 @@ var fastDeepEqual = function equal(a, b) {
120
123
  return true;
121
124
  }
122
125
 
126
+ if (arrA != arrB) return false;
123
127
 
128
+ var dateA = a instanceof Date
129
+ , dateB = b instanceof Date;
130
+ if (dateA != dateB) return false;
131
+ if (dateA && dateB) return a.getTime() == b.getTime();
124
132
 
125
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
126
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
127
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
133
+ var regexpA = a instanceof RegExp
134
+ , regexpB = b instanceof RegExp;
135
+ if (regexpA != regexpB) return false;
136
+ if (regexpA && regexpB) return a.toString() == b.toString();
128
137
 
129
- keys = Object.keys(a);
138
+ var keys = keyList(a);
130
139
  length = keys.length;
131
- if (length !== Object.keys(b).length) return false;
140
+
141
+ if (length !== keyList(b).length)
142
+ return false;
132
143
 
133
144
  for (i = length; i-- !== 0;)
134
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
145
+ if (!hasProp.call(b, keys[i])) return false;
135
146
 
136
147
  for (i = length; i-- !== 0;) {
137
- var key = keys[i];
138
-
148
+ key = keys[i];
139
149
  if (!equal(a[key], b[key])) return false;
140
150
  }
141
151
 
142
152
  return true;
143
153
  }
144
154
 
145
- // true if both NaN, false otherwise
146
155
  return a!==a && b!==b;
147
156
  };
148
157
 
@@ -1565,239 +1574,199 @@ module.exports = exports['default'];
1565
1574
 
1566
1575
  var youTubePlayer = unwrapExports(dist);
1567
1576
 
1568
- 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); }
1569
-
1570
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1571
-
1572
- 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); } }
1573
-
1574
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1575
-
1576
- 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); }
1577
-
1578
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1579
-
1580
- 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); }; }
1581
-
1582
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1583
-
1584
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1577
+ 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; }; }();
1585
1578
 
1586
- 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; } }
1579
+ 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; };
1587
1580
 
1588
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1581
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1589
1582
 
1590
- 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; }
1583
+ 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; }
1591
1584
 
1592
- 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; }
1585
+ 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; }
1593
1586
 
1594
- 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; }
1595
- /**
1596
- * Check whether a `props` change should result in the video being updated.
1597
- *
1598
- * @param {Object} prevProps
1599
- * @param {Object} props
1587
+ /**
1588
+ * Check whether a `props` change should result in the video being updated.
1589
+ *
1590
+ * @param {Object} prevProps
1591
+ * @param {Object} props
1600
1592
  */
1601
-
1602
1593
  function shouldUpdateVideo(prevProps, props) {
1603
1594
  // A changing video should always trigger an update
1604
1595
  if (prevProps.videoId !== props.videoId) {
1605
1596
  return true;
1606
- } // Otherwise, a change in the start/end time playerVars also requires a player
1607
- // update.
1608
-
1597
+ }
1609
1598
 
1599
+ // Otherwise, a change in the start/end time playerVars also requires a player
1600
+ // update.
1610
1601
  var prevVars = prevProps.opts.playerVars || {};
1611
1602
  var vars = props.opts.playerVars || {};
1603
+
1612
1604
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1613
1605
  }
1614
- /**
1615
- * Neutralize API options that only require a video update, leaving only options
1616
- * that require a player reset. The results can then be compared to see if a
1617
- * player reset is necessary.
1618
- *
1619
- * @param {Object} opts
1620
- */
1621
-
1622
1606
 
1607
+ /**
1608
+ * Neutralise API options that only require a video update, leaving only options
1609
+ * that require a player reset. The results can then be compared to see if a
1610
+ * player reset is necessary.
1611
+ *
1612
+ * @param {Object} opts
1613
+ */
1623
1614
  function filterResetOptions(opts) {
1624
- return _objectSpread(_objectSpread({}, opts), {}, {
1625
- playerVars: _objectSpread({
1615
+ return _extends({}, opts, {
1616
+ playerVars: _extends({}, opts.playerVars, {
1626
1617
  autoplay: 0,
1627
1618
  start: 0,
1628
1619
  end: 0
1629
- }, opts.playerVars)
1620
+ })
1630
1621
  });
1631
1622
  }
1632
- /**
1633
- * Check whether a `props` change should result in the player being reset.
1634
- * The player is reset when the `props.opts` change, except if the only change
1635
- * is in the `start` and `end` playerVars, because a video update can deal with
1636
- * those.
1637
- *
1638
- * @param {Object} prevProps
1639
- * @param {Object} props
1640
- */
1641
-
1642
1623
 
1624
+ /**
1625
+ * Check whether a `props` change should result in the player being reset.
1626
+ * The player is reset when the `props.opts` change, except if the only change
1627
+ * is in the `start` and `end` playerVars, because a video update can deal with
1628
+ * those.
1629
+ *
1630
+ * @param {Object} prevProps
1631
+ * @param {Object} props
1632
+ */
1643
1633
  function shouldResetPlayer(prevProps, props) {
1644
1634
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1645
1635
  }
1646
- /**
1647
- * Check whether a props change should result in an id or className update.
1648
- *
1649
- * @param {Object} prevProps
1650
- * @param {Object} props
1651
- */
1652
-
1653
1636
 
1637
+ /**
1638
+ * Check whether a props change should result in an id or className update.
1639
+ *
1640
+ * @param {Object} prevProps
1641
+ * @param {Object} props
1642
+ */
1654
1643
  function shouldUpdatePlayer(prevProps, props) {
1655
1644
  return prevProps.id !== props.id || prevProps.className !== props.className;
1656
1645
  }
1657
1646
 
1658
- var YouTube = /*#__PURE__*/function (_React$Component) {
1647
+ var YouTube = function (_React$Component) {
1659
1648
  _inherits(YouTube, _React$Component);
1660
1649
 
1661
- var _super = _createSuper(YouTube);
1662
-
1663
- /**
1664
- * Expose PlayerState constants for convenience. These constants can also be
1665
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1666
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1667
- */
1668
1650
  function YouTube(props) {
1669
- var _this;
1670
-
1671
1651
  _classCallCheck(this, YouTube);
1672
1652
 
1673
- _this = _super.call(this, props);
1653
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1674
1654
 
1675
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1655
+ _this.onPlayerReady = function (event) {
1676
1656
  return _this.props.onReady(event);
1677
- });
1657
+ };
1678
1658
 
1679
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1659
+ _this.onPlayerError = function (event) {
1680
1660
  return _this.props.onError(event);
1681
- });
1661
+ };
1682
1662
 
1683
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1663
+ _this.onPlayerStateChange = function (event) {
1684
1664
  _this.props.onStateChange(event);
1685
-
1686
1665
  switch (event.data) {
1666
+
1687
1667
  case YouTube.PlayerState.ENDED:
1688
1668
  _this.props.onEnd(event);
1689
-
1690
1669
  break;
1691
1670
 
1692
1671
  case YouTube.PlayerState.PLAYING:
1693
1672
  _this.props.onPlay(event);
1694
-
1695
1673
  break;
1696
1674
 
1697
1675
  case YouTube.PlayerState.PAUSED:
1698
1676
  _this.props.onPause(event);
1699
-
1700
1677
  break;
1701
1678
  }
1702
- });
1679
+ };
1703
1680
 
1704
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1681
+ _this.onPlayerPlaybackRateChange = function (event) {
1705
1682
  return _this.props.onPlaybackRateChange(event);
1706
- });
1683
+ };
1707
1684
 
1708
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1685
+ _this.onPlayerPlaybackQualityChange = function (event) {
1709
1686
  return _this.props.onPlaybackQualityChange(event);
1710
- });
1687
+ };
1711
1688
 
1712
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1689
+ _this.createPlayer = function () {
1713
1690
  // do not attempt to create a player server-side, it won't work
1714
- if (typeof document === 'undefined') return; // create player
1715
-
1716
- var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
1691
+ if (typeof document === 'undefined') return;
1692
+ // create player
1693
+ var playerOpts = _extends({}, _this.props.opts, {
1717
1694
  // preload the `videoId` video if one is already given
1718
1695
  videoId: _this.props.videoId
1719
1696
  });
1720
-
1721
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1722
-
1697
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1698
+ // attach event handlers
1723
1699
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1724
-
1725
1700
  _this.internalPlayer.on('error', _this.onPlayerError);
1726
-
1727
1701
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1728
-
1729
1702
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1730
-
1731
1703
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1732
- });
1704
+ };
1733
1705
 
1734
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1706
+ _this.resetPlayer = function () {
1735
1707
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1736
- });
1708
+ };
1737
1709
 
1738
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1710
+ _this.updatePlayer = function () {
1739
1711
  _this.internalPlayer.getIframe().then(function (iframe) {
1740
1712
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1741
1713
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1742
1714
  });
1743
- });
1744
-
1745
- _defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
1746
- return _this.internalPlayer;
1747
- });
1715
+ };
1748
1716
 
1749
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1717
+ _this.updateVideo = function () {
1750
1718
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1751
1719
  _this.internalPlayer.stopVideo();
1752
-
1753
1720
  return;
1754
- } // set queueing options
1755
-
1721
+ }
1756
1722
 
1723
+ // set queueing options
1757
1724
  var autoplay = false;
1758
1725
  var opts = {
1759
1726
  videoId: _this.props.videoId
1760
1727
  };
1761
-
1762
1728
  if ('playerVars' in _this.props.opts) {
1763
1729
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1764
-
1765
1730
  if ('start' in _this.props.opts.playerVars) {
1766
1731
  opts.startSeconds = _this.props.opts.playerVars.start;
1767
1732
  }
1768
-
1769
1733
  if ('end' in _this.props.opts.playerVars) {
1770
1734
  opts.endSeconds = _this.props.opts.playerVars.end;
1771
1735
  }
1772
- } // if autoplay is enabled loadVideoById
1773
-
1736
+ }
1774
1737
 
1738
+ // if autoplay is enabled loadVideoById
1775
1739
  if (autoplay) {
1776
1740
  _this.internalPlayer.loadVideoById(opts);
1777
-
1778
1741
  return;
1779
- } // default behaviour just cues the video
1780
-
1781
-
1742
+ }
1743
+ // default behaviour just cues the video
1782
1744
  _this.internalPlayer.cueVideoById(opts);
1783
- });
1745
+ };
1784
1746
 
1785
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1747
+ _this.refContainer = function (container) {
1786
1748
  _this.container = container;
1787
- });
1749
+ };
1788
1750
 
1789
1751
  _this.container = null;
1790
1752
  _this.internalPlayer = null;
1791
1753
  return _this;
1792
1754
  }
1793
1755
 
1756
+ /**
1757
+ * Expose PlayerState constants for convenience. These constants can also be
1758
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1759
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1760
+ */
1761
+
1762
+
1794
1763
  _createClass(YouTube, [{
1795
- key: "componentDidMount",
1764
+ key: 'componentDidMount',
1796
1765
  value: function componentDidMount() {
1797
1766
  this.createPlayer();
1798
1767
  }
1799
1768
  }, {
1800
- key: "componentDidUpdate",
1769
+ key: 'componentDidUpdate',
1801
1770
  value: function componentDidUpdate(prevProps) {
1802
1771
  if (shouldUpdatePlayer(prevProps, this.props)) {
1803
1772
  this.updatePlayer();
@@ -1812,58 +1781,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1812
1781
  }
1813
1782
  }
1814
1783
  }, {
1815
- key: "componentWillUnmount",
1784
+ key: 'componentWillUnmount',
1816
1785
  value: function componentWillUnmount() {
1817
- /**
1818
- * Note: The `youtube-player` package that is used promisifies all YouTube
1819
- * Player API calls, which introduces a delay of a tick before it actually
1820
- * gets destroyed. Since React attempts to remove the element instantly
1821
- * this method isn't quick enough to reset the container element.
1786
+ /**
1787
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1788
+ * Player API calls, which introduces a delay of a tick before it actually
1789
+ * gets destroyed. Since React attempts to remove the element instantly
1790
+ * this method isn't quick enough to reset the container element.
1822
1791
  */
1823
1792
  this.internalPlayer.destroy();
1824
1793
  }
1825
- /**
1826
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1827
- *
1828
- * @param {Object} event
1829
- * @param {Object} target - player object
1794
+
1795
+ /**
1796
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1797
+ *
1798
+ * @param {Object} event
1799
+ * @param {Object} target - player object
1800
+ */
1801
+
1802
+
1803
+ /**
1804
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1805
+ *
1806
+ * @param {Object} event
1807
+ * @param {Integer} data - error type
1808
+ * @param {Object} target - player object
1809
+ */
1810
+
1811
+
1812
+ /**
1813
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1814
+ *
1815
+ * @param {Object} event
1816
+ * @param {Integer} data - status change type
1817
+ * @param {Object} target - actual YT player
1818
+ */
1819
+
1820
+
1821
+ /**
1822
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1823
+ *
1824
+ * @param {Object} event
1825
+ * @param {Float} data - playback rate
1826
+ * @param {Object} target - actual YT player
1827
+ */
1828
+
1829
+
1830
+ /**
1831
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1832
+ *
1833
+ * @param {Object} event
1834
+ * @param {String} data - playback quality
1835
+ * @param {Object} target - actual YT player
1836
+ */
1837
+
1838
+
1839
+ /**
1840
+ * Initialize the Youtube Player API on the container and attach event handlers
1841
+ */
1842
+
1843
+
1844
+ /**
1845
+ * Shorthand for destroying and then re-creating the Youtube Player
1846
+ */
1847
+
1848
+
1849
+ /**
1850
+ * Method to update the id and class of the Youtube Player iframe.
1851
+ * React should update this automatically but since the Youtube Player API
1852
+ * replaced the DIV that is mounted by React we need to do this manually.
1853
+ */
1854
+
1855
+
1856
+ /**
1857
+ * Call Youtube Player API methods to update the currently playing video.
1858
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1859
+ * Youtube Player API methods to update the video.
1830
1860
  */
1831
1861
 
1832
1862
  }, {
1833
- key: "render",
1863
+ key: 'render',
1834
1864
  value: function render() {
1835
- return /*#__PURE__*/React__default.createElement("div", {
1836
- className: this.props.containerClassName
1837
- }, /*#__PURE__*/React__default.createElement("div", {
1838
- id: this.props.id,
1839
- className: this.props.className,
1840
- ref: this.refContainer
1841
- }));
1865
+ return React__default.createElement(
1866
+ 'div',
1867
+ { className: this.props.containerClassName },
1868
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1869
+ );
1842
1870
  }
1843
1871
  }]);
1844
1872
 
1845
1873
  return YouTube;
1846
1874
  }(React__default.Component);
1847
1875
 
1848
- _defineProperty(YouTube, "PlayerState", {
1849
- UNSTARTED: -1,
1850
- ENDED: 0,
1851
- PLAYING: 1,
1852
- PAUSED: 2,
1853
- BUFFERING: 3,
1854
- CUED: 5
1855
- });
1856
-
1857
1876
  YouTube.propTypes = {
1858
1877
  videoId: PropTypes.string,
1878
+
1859
1879
  // custom ID for player element
1860
1880
  id: PropTypes.string,
1881
+
1861
1882
  // custom class name for player element
1862
1883
  className: PropTypes.string,
1863
1884
  // custom class name for player container element
1864
1885
  containerClassName: PropTypes.string,
1886
+
1865
1887
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1866
1888
  opts: PropTypes.objectOf(PropTypes.any),
1889
+
1867
1890
  // event subscriptions
1868
1891
  onReady: PropTypes.func,
1869
1892
  onError: PropTypes.func,
@@ -1875,7 +1898,6 @@ YouTube.propTypes = {
1875
1898
  onPlaybackQualityChange: PropTypes.func
1876
1899
  };
1877
1900
  YouTube.defaultProps = {
1878
- videoId: null,
1879
1901
  id: null,
1880
1902
  className: null,
1881
1903
  opts: {},
@@ -1889,6 +1911,14 @@ YouTube.defaultProps = {
1889
1911
  onPlaybackRateChange: function onPlaybackRateChange() {},
1890
1912
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1891
1913
  };
1914
+ YouTube.PlayerState = {
1915
+ UNSTARTED: -1,
1916
+ ENDED: 0,
1917
+ PLAYING: 1,
1918
+ PAUSED: 2,
1919
+ BUFFERING: 3,
1920
+ CUED: 5
1921
+ };
1892
1922
 
1893
1923
  var YouTubePlayer = function YouTubePlayer(_ref) {
1894
1924
  var url = _ref.url,
@@ -1928,7 +1958,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1928
1958
  var queue = Math.floor(duration / 10);
1929
1959
  var segment = Math.floor(current / queue);
1930
1960
  //Beam.report_beam_video('Ready', deviceType, duration, current, segment)
1931
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
1961
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
1932
1962
  };
1933
1963
 
1934
1964
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1939,7 +1969,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1939
1969
 
1940
1970
  if (!queueProgress.includes(segment)) {
1941
1971
  //Beam.report_beam_video('Segment', deviceType, duration, current, segment)
1942
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
1972
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
1943
1973
  queueProgress.push(segment);
1944
1974
  }
1945
1975
  };
@@ -1953,7 +1983,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1953
1983
  var segment = Math.floor(current / queue);
1954
1984
 
1955
1985
  //Beam.report_beam_video('Play', deviceType, duration, current, segment)
1956
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
1986
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
1957
1987
 
1958
1988
  if (!playReported) {
1959
1989
  setPlayReported(true);
@@ -1973,7 +2003,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1973
2003
  var segment = Math.floor(current / queue);
1974
2004
 
1975
2005
  //Beam.report_beam_video('End', deviceType, duration, current, segment)
1976
- Segment.report_video_event('Video End', main_18, duration, current, segment);
2006
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
1977
2007
  setEndReported(true);
1978
2008
  clearInterval(intervalID);
1979
2009
  }
@@ -1987,7 +2017,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1987
2017
  var segment = Math.floor(current / queue);
1988
2018
 
1989
2019
  //Beam.report_beam_video('Pause', deviceType, duration, current, segment)
1990
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
2020
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
1991
2021
  };
1992
2022
 
1993
2023
  return React__default.createElement(
@@ -2176,7 +2206,7 @@ var Media = function Media(_ref) {
2176
2206
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2177
2207
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2178
2208
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2179
- React__default.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2209
+ React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2180
2210
  )
2181
2211
  ),
2182
2212
  caption && React__default.createElement(
@@ -2189,7 +2219,7 @@ var Media = function Media(_ref) {
2189
2219
  } else if (caption && caption !== '') {
2190
2220
  return React__default.createElement(
2191
2221
  'a',
2192
- _extends({}, uploadDoc.downloadMedia ? {
2222
+ _extends$1({}, uploadDoc.downloadMedia ? {
2193
2223
  href: urlForFile({ asset: uploadDoc.asset }) + '?dl='
2194
2224
  } : { href: urlForFile({ asset: uploadDoc.asset }), target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2195
2225
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2245,7 +2275,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2245
2275
  var queue = Math.floor(duration / 10);
2246
2276
  var segment = Math.floor(current / queue);
2247
2277
  //Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
2248
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
2278
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
2249
2279
  };
2250
2280
 
2251
2281
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -2255,7 +2285,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2255
2285
  var segment = Math.floor(current / queue);
2256
2286
  if (!queueProgress.includes(segment)) {
2257
2287
  //Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
2258
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
2288
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
2259
2289
  queueProgress.push(segment);
2260
2290
  }
2261
2291
  };
@@ -2268,7 +2298,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2268
2298
  var queue = Math.floor(duration / 10);
2269
2299
  var segment = Math.floor(current / queue);
2270
2300
  //Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
2271
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
2301
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
2272
2302
 
2273
2303
  if (!playReported) {
2274
2304
  event.persist();
@@ -2289,7 +2319,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2289
2319
  var segment = Math.floor(current / queue);
2290
2320
 
2291
2321
  //Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
2292
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
2322
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
2293
2323
  setEndReported(true);
2294
2324
  clearInterval(intervalID);
2295
2325
  }
@@ -2302,7 +2332,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2302
2332
  var queue = Math.floor(duration / 10);
2303
2333
  var segment = Math.floor(current / queue);
2304
2334
  //Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
2305
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
2335
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
2306
2336
  };
2307
2337
 
2308
2338
  return React__default.createElement(
@@ -2360,10 +2390,15 @@ var Video = function Video(_ref) {
2360
2390
  setVideoLoaded(true);
2361
2391
  }
2362
2392
  }, []);
2393
+
2394
+ var onVideoFailure = function onVideoFailure(err) {
2395
+ console.log('could not load video', err);
2396
+ };
2397
+
2363
2398
  var onVideoSuccess = function onVideoSuccess(success) {
2364
2399
  //console.log('success:', success.ref)
2365
2400
  var player = success.ref;
2366
- if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2401
+ if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2367
2402
  player.ima3.settings.debug = true;
2368
2403
  if (targeting.content_placement && targeting.document_url) {
2369
2404
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2418,7 +2453,7 @@ var Video = function Video(_ref) {
2418
2453
  }
2419
2454
 
2420
2455
  //Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2421
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2456
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2422
2457
  });
2423
2458
 
2424
2459
  // play
@@ -2428,7 +2463,7 @@ var Video = function Video(_ref) {
2428
2463
  var queue = Math.floor(duration / 10);
2429
2464
  var segment = Math.floor(current / queue);
2430
2465
  //Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2431
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2466
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2432
2467
  });
2433
2468
 
2434
2469
  // pause
@@ -2438,7 +2473,7 @@ var Video = function Video(_ref) {
2438
2473
  var queue = Math.floor(duration / 10);
2439
2474
  var segment = Math.floor(current / queue);
2440
2475
  //Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2441
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2476
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2442
2477
  });
2443
2478
 
2444
2479
  // end
@@ -2448,7 +2483,7 @@ var Video = function Video(_ref) {
2448
2483
  var queue = Math.floor(duration / 10);
2449
2484
  var segment = Math.floor(current / queue);
2450
2485
  //Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2451
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2486
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2452
2487
  autoplayNextVideo(evt);
2453
2488
  });
2454
2489
 
@@ -2460,7 +2495,7 @@ var Video = function Video(_ref) {
2460
2495
  var segment = Math.floor(current / queue);
2461
2496
  if (!queueProgress.includes(segment)) {
2462
2497
  //Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2463
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2498
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2464
2499
  queueProgress.push(segment);
2465
2500
  }
2466
2501
  });
@@ -2472,7 +2507,7 @@ var Video = function Video(_ref) {
2472
2507
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2473
2508
 
2474
2509
  //Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
2475
- Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2510
+ Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2476
2511
  });
2477
2512
 
2478
2513
  // ad ended
@@ -2481,7 +2516,7 @@ var Video = function Video(_ref) {
2481
2516
  var id = player.ads.ad.id;
2482
2517
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2483
2518
  //Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
2484
- Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2519
+ Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2485
2520
  });
2486
2521
  };
2487
2522
 
@@ -2492,6 +2527,7 @@ var Video = function Video(_ref) {
2492
2527
  null,
2493
2528
  React__default.createElement(ReactPlayerLoader, {
2494
2529
  onSuccess: onVideoSuccess,
2530
+ onFailure: onVideoFailure,
2495
2531
  accountId: accountIDs.brightcove.accountId,
2496
2532
  videoId: videoID,
2497
2533
  playerId: accountIDs.brightcove.playerId,
@@ -2911,17 +2947,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2911
2947
 
2912
2948
  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; }
2913
2949
 
2914
- 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; } } }; }
2915
-
2916
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2917
-
2918
- 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."); }
2950
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2919
2951
 
2920
- 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); }
2952
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2921
2953
 
2922
- 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; }
2923
-
2924
- 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; }
2954
+ 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; }
2925
2955
 
2926
2956
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2927
2957
 
@@ -3051,12 +3081,12 @@ function getSDK(url, sdkGlobal) {
3051
3081
 
3052
3082
  function getConfig(props$1, defaultProps, showWarning) {
3053
3083
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
3054
-
3055
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
3056
- _step;
3084
+ var _iteratorNormalCompletion = true;
3085
+ var _didIteratorError = false;
3086
+ var _iteratorError = undefined;
3057
3087
 
3058
3088
  try {
3059
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3089
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3060
3090
  var p = _step.value;
3061
3091
 
3062
3092
  if (props$1[p]) {
@@ -3071,9 +3101,18 @@ function getConfig(props$1, defaultProps, showWarning) {
3071
3101
  }
3072
3102
  }
3073
3103
  } catch (err) {
3074
- _iterator.e(err);
3104
+ _didIteratorError = true;
3105
+ _iteratorError = err;
3075
3106
  } finally {
3076
- _iterator.f();
3107
+ try {
3108
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
3109
+ _iterator["return"]();
3110
+ }
3111
+ } finally {
3112
+ if (_didIteratorError) {
3113
+ throw _iteratorError;
3114
+ }
3115
+ }
3077
3116
  }
3078
3117
 
3079
3118
  return config;
@@ -3220,16 +3259,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3220
3259
 
3221
3260
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3222
3261
 
3223
- 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); }; }
3224
-
3225
3262
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3226
3263
 
3227
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3228
-
3229
- 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; } }
3230
-
3231
3264
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3232
3265
 
3266
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3267
+
3233
3268
  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); }
3234
3269
 
3235
3270
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3238,12 +3273,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3238
3273
 
3239
3274
  var SEEK_ON_PLAY_EXPIRY = 5000;
3240
3275
 
3241
- var Player = /*#__PURE__*/function (_Component) {
3276
+ var Player =
3277
+ /*#__PURE__*/
3278
+ function (_Component) {
3242
3279
  _inherits(Player, _Component);
3243
3280
 
3244
- var _super = _createSuper(Player);
3245
-
3246
3281
  function Player() {
3282
+ var _getPrototypeOf2;
3283
+
3247
3284
  var _this;
3248
3285
 
3249
3286
  _classCallCheck(this, Player);
@@ -3252,7 +3289,7 @@ var Player = /*#__PURE__*/function (_Component) {
3252
3289
  _args[_key] = arguments[_key];
3253
3290
  }
3254
3291
 
3255
- _this = _super.call.apply(_super, [this].concat(_args));
3292
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3256
3293
 
3257
3294
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3258
3295
 
@@ -3577,7 +3614,7 @@ var Player = /*#__PURE__*/function (_Component) {
3577
3614
  return null;
3578
3615
  }
3579
3616
 
3580
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3617
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3581
3618
  ref: this.ref,
3582
3619
  onReady: this.handleReady,
3583
3620
  onPlay: this.handlePlay,
@@ -3638,16 +3675,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3638
3675
 
3639
3676
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3640
3677
 
3641
- 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); }; }
3642
-
3643
3678
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3644
3679
 
3645
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3646
-
3647
- 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; } }
3648
-
3649
3680
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3650
3681
 
3682
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3683
+
3651
3684
  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); }
3652
3685
 
3653
3686
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3659,12 +3692,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3659
3692
  function createSinglePlayer(activePlayer) {
3660
3693
  var _class, _temp;
3661
3694
 
3662
- return _temp = _class = /*#__PURE__*/function (_Component) {
3695
+ return _temp = _class =
3696
+ /*#__PURE__*/
3697
+ function (_Component) {
3663
3698
  _inherits(SinglePlayer, _Component);
3664
3699
 
3665
- var _super = _createSuper(SinglePlayer);
3666
-
3667
3700
  function SinglePlayer() {
3701
+ var _getPrototypeOf2;
3702
+
3668
3703
  var _this;
3669
3704
 
3670
3705
  _classCallCheck(this, SinglePlayer);
@@ -3673,7 +3708,7 @@ function createSinglePlayer(activePlayer) {
3673
3708
  args[_key] = arguments[_key];
3674
3709
  }
3675
3710
 
3676
- _this = _super.call.apply(_super, [this].concat(args));
3711
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3677
3712
 
3678
3713
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3679
3714
 
@@ -3741,12 +3776,12 @@ function createSinglePlayer(activePlayer) {
3741
3776
  height = _this$props.height,
3742
3777
  Wrapper = _this$props.wrapper;
3743
3778
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3744
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3779
+ return _react["default"].createElement(Wrapper, _extends({
3745
3780
  style: _objectSpread({}, style, {
3746
3781
  width: width,
3747
3782
  height: height
3748
3783
  })
3749
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3784
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3750
3785
  ref: this.ref,
3751
3786
  activePlayer: activePlayer,
3752
3787
  config: this.config
@@ -3792,31 +3827,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3792
3827
 
3793
3828
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3794
3829
 
3795
- 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); }; }
3796
-
3797
3830
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3798
3831
 
3799
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3800
-
3801
- 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; } }
3802
-
3803
3832
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3804
3833
 
3834
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3835
+
3805
3836
  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); }
3806
3837
 
3807
3838
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3808
3839
 
3809
3840
  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; }
3810
3841
 
3811
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3842
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3812
3843
 
3813
- 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."); }
3844
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3814
3845
 
3815
- 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); }
3816
-
3817
- 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; }
3818
-
3819
- 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; }
3846
+ 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; }
3820
3847
 
3821
3848
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3822
3849
 
@@ -3841,12 +3868,14 @@ function parsePlaylist(url) {
3841
3868
  return {};
3842
3869
  }
3843
3870
 
3844
- var YouTube = /*#__PURE__*/function (_Component) {
3871
+ var YouTube =
3872
+ /*#__PURE__*/
3873
+ function (_Component) {
3845
3874
  _inherits(YouTube, _Component);
3846
3875
 
3847
- var _super = _createSuper(YouTube);
3848
-
3849
3876
  function YouTube() {
3877
+ var _getPrototypeOf2;
3878
+
3850
3879
  var _this;
3851
3880
 
3852
3881
  _classCallCheck(this, YouTube);
@@ -3855,7 +3884,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3855
3884
  args[_key] = arguments[_key];
3856
3885
  }
3857
3886
 
3858
- _this = _super.call.apply(_super, [this].concat(args));
3887
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3859
3888
 
3860
3889
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3861
3890
 
@@ -4043,9 +4072,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
4043
4072
  height: '100%',
4044
4073
  display: display
4045
4074
  };
4046
- return /*#__PURE__*/_react["default"].createElement("div", {
4075
+ return _react["default"].createElement("div", {
4047
4076
  style: style
4048
- }, /*#__PURE__*/_react["default"].createElement("div", {
4077
+ }, _react["default"].createElement("div", {
4049
4078
  ref: this.ref
4050
4079
  }));
4051
4080
  }
@@ -4101,16 +4130,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4101
4130
 
4102
4131
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4103
4132
 
4104
- 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); }; }
4105
-
4106
4133
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4107
4134
 
4108
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4109
-
4110
- 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; } }
4111
-
4112
4135
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4113
4136
 
4137
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4138
+
4114
4139
  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); }
4115
4140
 
4116
4141
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4119,14 +4144,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4119
4144
 
4120
4145
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
4121
4146
  var SDK_GLOBAL = 'SC';
4122
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
4147
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
4123
4148
 
4124
- var SoundCloud = /*#__PURE__*/function (_Component) {
4149
+ var SoundCloud =
4150
+ /*#__PURE__*/
4151
+ function (_Component) {
4125
4152
  _inherits(SoundCloud, _Component);
4126
4153
 
4127
- var _super = _createSuper(SoundCloud);
4128
-
4129
4154
  function SoundCloud() {
4155
+ var _getPrototypeOf2;
4156
+
4130
4157
  var _this;
4131
4158
 
4132
4159
  _classCallCheck(this, SoundCloud);
@@ -4135,7 +4162,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4135
4162
  args[_key] = arguments[_key];
4136
4163
  }
4137
4164
 
4138
- _this = _super.call.apply(_super, [this].concat(args));
4165
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
4139
4166
 
4140
4167
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4141
4168
 
@@ -4256,7 +4283,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4256
4283
  height: '100%',
4257
4284
  display: display
4258
4285
  };
4259
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4286
+ return _react["default"].createElement("iframe", {
4260
4287
  ref: this.ref,
4261
4288
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4262
4289
  style: style,
@@ -4318,16 +4345,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4318
4345
 
4319
4346
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4320
4347
 
4321
- 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); }; }
4322
-
4323
4348
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4324
4349
 
4325
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4326
-
4327
- 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; } }
4328
-
4329
4350
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4330
4351
 
4352
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4353
+
4331
4354
  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); }
4332
4355
 
4333
4356
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4339,12 +4362,14 @@ var SDK_GLOBAL = 'Vimeo';
4339
4362
  var MATCH_URL = /vimeo\.com\/.+/;
4340
4363
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4341
4364
 
4342
- var Vimeo = /*#__PURE__*/function (_Component) {
4365
+ var Vimeo =
4366
+ /*#__PURE__*/
4367
+ function (_Component) {
4343
4368
  _inherits(Vimeo, _Component);
4344
4369
 
4345
- var _super = _createSuper(Vimeo);
4346
-
4347
4370
  function Vimeo() {
4371
+ var _getPrototypeOf2;
4372
+
4348
4373
  var _this;
4349
4374
 
4350
4375
  _classCallCheck(this, Vimeo);
@@ -4353,7 +4378,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4353
4378
  args[_key] = arguments[_key];
4354
4379
  }
4355
4380
 
4356
- _this = _super.call.apply(_super, [this].concat(args));
4381
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4357
4382
 
4358
4383
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4359
4384
 
@@ -4510,7 +4535,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4510
4535
  overflow: 'hidden',
4511
4536
  display: display
4512
4537
  };
4513
- return /*#__PURE__*/_react["default"].createElement("div", {
4538
+ return _react["default"].createElement("div", {
4514
4539
  key: this.props.url,
4515
4540
  ref: this.ref,
4516
4541
  style: style
@@ -4570,16 +4595,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4570
4595
 
4571
4596
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4572
4597
 
4573
- 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); }; }
4574
-
4575
4598
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4576
4599
 
4577
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4578
-
4579
- 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; } }
4580
-
4581
4600
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4582
4601
 
4602
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4603
+
4583
4604
  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); }
4584
4605
 
4585
4606
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4592,12 +4613,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4592
4613
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4593
4614
  var PLAYER_ID_PREFIX = 'facebook-player-';
4594
4615
 
4595
- var Facebook = /*#__PURE__*/function (_Component) {
4616
+ var Facebook =
4617
+ /*#__PURE__*/
4618
+ function (_Component) {
4596
4619
  _inherits(Facebook, _Component);
4597
4620
 
4598
- var _super = _createSuper(Facebook);
4599
-
4600
4621
  function Facebook() {
4622
+ var _getPrototypeOf2;
4623
+
4601
4624
  var _this;
4602
4625
 
4603
4626
  _classCallCheck(this, Facebook);
@@ -4606,7 +4629,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4606
4629
  args[_key] = arguments[_key];
4607
4630
  }
4608
4631
 
4609
- _this = _super.call.apply(_super, [this].concat(args));
4632
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4610
4633
 
4611
4634
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4612
4635
 
@@ -4722,7 +4745,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4722
4745
  width: '100%',
4723
4746
  height: '100%'
4724
4747
  };
4725
- return /*#__PURE__*/_react["default"].createElement("div", {
4748
+ return _react["default"].createElement("div", {
4726
4749
  style: style,
4727
4750
  id: this.playerID,
4728
4751
  className: "fb-video",
@@ -4782,16 +4805,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4782
4805
 
4783
4806
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4784
4807
 
4785
- 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); }; }
4786
-
4787
4808
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4788
4809
 
4789
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4790
-
4791
- 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; } }
4792
-
4793
4810
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4794
4811
 
4812
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4813
+
4795
4814
  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); }
4796
4815
 
4797
4816
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4802,12 +4821,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4802
4821
  var SDK_GLOBAL = 'playerjs';
4803
4822
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4804
4823
 
4805
- var Streamable = /*#__PURE__*/function (_Component) {
4824
+ var Streamable =
4825
+ /*#__PURE__*/
4826
+ function (_Component) {
4806
4827
  _inherits(Streamable, _Component);
4807
4828
 
4808
- var _super = _createSuper(Streamable);
4809
-
4810
4829
  function Streamable() {
4830
+ var _getPrototypeOf2;
4831
+
4811
4832
  var _this;
4812
4833
 
4813
4834
  _classCallCheck(this, Streamable);
@@ -4816,7 +4837,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4816
4837
  args[_key] = arguments[_key];
4817
4838
  }
4818
4839
 
4819
- _this = _super.call.apply(_super, [this].concat(args));
4840
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4820
4841
 
4821
4842
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4822
4843
 
@@ -4936,7 +4957,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4936
4957
  width: '100%',
4937
4958
  height: '100%'
4938
4959
  };
4939
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4960
+ return _react["default"].createElement("iframe", {
4940
4961
  ref: this.ref,
4941
4962
  src: "https://streamable.com/o/".concat(id),
4942
4963
  frameBorder: "0",
@@ -4997,16 +5018,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4997
5018
 
4998
5019
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4999
5020
 
5000
- 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); }; }
5001
-
5002
5021
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5003
5022
 
5004
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5005
-
5006
- 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; } }
5007
-
5008
5023
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5009
5024
 
5025
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5026
+
5010
5027
  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); }
5011
5028
 
5012
5029
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5017,48 +5034,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
5017
5034
  var SDK_GLOBAL = 'Wistia';
5018
5035
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
5019
5036
 
5020
- var Wistia = /*#__PURE__*/function (_Component) {
5037
+ var Wistia =
5038
+ /*#__PURE__*/
5039
+ function (_Component) {
5021
5040
  _inherits(Wistia, _Component);
5022
5041
 
5023
- var _super = _createSuper(Wistia);
5024
-
5025
5042
  function Wistia() {
5043
+ var _getPrototypeOf2;
5044
+
5026
5045
  var _this;
5027
5046
 
5028
5047
  _classCallCheck(this, Wistia);
5029
5048
 
5030
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
5031
- _args[_key] = arguments[_key];
5049
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5050
+ args[_key] = arguments[_key];
5032
5051
  }
5033
5052
 
5034
- _this = _super.call.apply(_super, [this].concat(_args));
5053
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
5035
5054
 
5036
5055
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5037
5056
 
5038
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
5039
- var _this$props;
5040
-
5041
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
5042
- });
5043
-
5044
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
5045
- var _this$props2;
5046
-
5047
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
5048
- });
5049
-
5050
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
5051
- var _this$props3;
5052
-
5053
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
5054
- });
5055
-
5056
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
5057
- var _this$props4;
5058
-
5059
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
5060
- });
5061
-
5062
5057
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
5063
5058
  _this.callPlayer('mute');
5064
5059
  });
@@ -5080,13 +5075,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
5080
5075
  value: function load(url) {
5081
5076
  var _this2 = this;
5082
5077
 
5083
- var _this$props5 = this.props,
5084
- playing = _this$props5.playing,
5085
- muted = _this$props5.muted,
5086
- controls = _this$props5.controls,
5087
- _onReady = _this$props5.onReady,
5088
- config = _this$props5.config,
5089
- onError = _this$props5.onError;
5078
+ var _this$props = this.props,
5079
+ playing = _this$props.playing,
5080
+ muted = _this$props.muted,
5081
+ controls = _this$props.controls,
5082
+ _onReady = _this$props.onReady,
5083
+ onPlay = _this$props.onPlay,
5084
+ onPause = _this$props.onPause,
5085
+ onSeek = _this$props.onSeek,
5086
+ onEnded = _this$props.onEnded,
5087
+ config = _this$props.config,
5088
+ onError = _this$props.onError;
5090
5089
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
5091
5090
  window._wq = window._wq || [];
5092
5091
 
@@ -5103,28 +5102,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5103
5102
 
5104
5103
  _this2.unbind();
5105
5104
 
5106
- _this2.player.bind('play', _this2.onPlay);
5105
+ _this2.player.bind('play', onPlay);
5107
5106
 
5108
- _this2.player.bind('pause', _this2.onPause);
5107
+ _this2.player.bind('pause', onPause);
5109
5108
 
5110
- _this2.player.bind('seek', _this2.onSeek);
5109
+ _this2.player.bind('seek', onSeek);
5111
5110
 
5112
- _this2.player.bind('end', _this2.onEnded);
5111
+ _this2.player.bind('end', onEnded);
5113
5112
 
5114
5113
  _onReady();
5115
5114
  }
5116
5115
  });
5117
5116
  }, onError);
5118
5117
  }
5119
- }, {
5120
- key: "unbind",
5121
- value: function unbind() {
5122
- this.player.unbind('play', this.onPlay);
5123
- this.player.unbind('pause', this.onPause);
5124
- this.player.unbind('seek', this.onSeek);
5125
- this.player.unbind('end', this.onEnded);
5126
- } // Proxy methods to prevent listener leaks
5127
-
5128
5118
  }, {
5129
5119
  key: "play",
5130
5120
  value: function play() {
@@ -5135,6 +5125,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5135
5125
  value: function pause() {
5136
5126
  this.callPlayer('pause');
5137
5127
  }
5128
+ }, {
5129
+ key: "unbind",
5130
+ value: function unbind() {
5131
+ var _this$props2 = this.props,
5132
+ onPlay = _this$props2.onPlay,
5133
+ onPause = _this$props2.onPause,
5134
+ onSeek = _this$props2.onSeek,
5135
+ onEnded = _this$props2.onEnded;
5136
+ this.player.unbind('play', onPlay);
5137
+ this.player.unbind('pause', onPause);
5138
+ this.player.unbind('seek', onSeek);
5139
+ this.player.unbind('end', onEnded);
5140
+ }
5138
5141
  }, {
5139
5142
  key: "stop",
5140
5143
  value: function stop() {
@@ -5180,7 +5183,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
5180
5183
  width: '100%',
5181
5184
  height: '100%'
5182
5185
  };
5183
- return /*#__PURE__*/_react["default"].createElement("div", {
5186
+ return _react["default"].createElement("div", {
5184
5187
  key: id,
5185
5188
  className: className,
5186
5189
  style: style
@@ -5240,16 +5243,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5240
5243
 
5241
5244
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5242
5245
 
5243
- 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); }; }
5244
-
5245
5246
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5246
5247
 
5247
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5248
-
5249
- 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; } }
5250
-
5251
5248
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5252
5249
 
5250
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5251
+
5253
5252
  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); }
5254
5253
 
5255
5254
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5262,12 +5261,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5262
5261
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5263
5262
  var PLAYER_ID_PREFIX = 'twitch-player-';
5264
5263
 
5265
- var Twitch = /*#__PURE__*/function (_Component) {
5264
+ var Twitch =
5265
+ /*#__PURE__*/
5266
+ function (_Component) {
5266
5267
  _inherits(Twitch, _Component);
5267
5268
 
5268
- var _super = _createSuper(Twitch);
5269
-
5270
5269
  function Twitch() {
5270
+ var _getPrototypeOf2;
5271
+
5271
5272
  var _this;
5272
5273
 
5273
5274
  _classCallCheck(this, Twitch);
@@ -5276,7 +5277,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5276
5277
  args[_key] = arguments[_key];
5277
5278
  }
5278
5279
 
5279
- _this = _super.call.apply(_super, [this].concat(args));
5280
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5280
5281
 
5281
5282
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5282
5283
 
@@ -5397,7 +5398,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5397
5398
  width: '100%',
5398
5399
  height: '100%'
5399
5400
  };
5400
- return /*#__PURE__*/_react["default"].createElement("div", {
5401
+ return _react["default"].createElement("div", {
5401
5402
  style: style,
5402
5403
  id: this.playerID
5403
5404
  });
@@ -5450,15 +5451,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5450
5451
 
5451
5452
  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; }
5452
5453
 
5453
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5454
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5454
5455
 
5455
- 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."); }
5456
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5456
5457
 
5457
- 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); }
5458
-
5459
- 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; }
5460
-
5461
- 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; }
5458
+ 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; }
5462
5459
 
5463
5460
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5464
5461
 
@@ -5468,16 +5465,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5468
5465
 
5469
5466
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5470
5467
 
5471
- 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); }; }
5472
-
5473
5468
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5474
5469
 
5475
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5476
-
5477
- 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; } }
5478
-
5479
5470
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5480
5471
 
5472
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5473
+
5481
5474
  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); }
5482
5475
 
5483
5476
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5489,12 +5482,14 @@ var SDK_GLOBAL = 'DM';
5489
5482
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5490
5483
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5491
5484
 
5492
- var DailyMotion = /*#__PURE__*/function (_Component) {
5485
+ var DailyMotion =
5486
+ /*#__PURE__*/
5487
+ function (_Component) {
5493
5488
  _inherits(DailyMotion, _Component);
5494
5489
 
5495
- var _super = _createSuper(DailyMotion);
5496
-
5497
5490
  function DailyMotion() {
5491
+ var _getPrototypeOf2;
5492
+
5498
5493
  var _this;
5499
5494
 
5500
5495
  _classCallCheck(this, DailyMotion);
@@ -5503,7 +5498,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5503
5498
  args[_key] = arguments[_key];
5504
5499
  }
5505
5500
 
5506
- _this = _super.call.apply(_super, [this].concat(args));
5501
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5507
5502
 
5508
5503
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5509
5504
 
@@ -5632,9 +5627,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5632
5627
  height: '100%',
5633
5628
  display: display
5634
5629
  };
5635
- return /*#__PURE__*/_react["default"].createElement("div", {
5630
+ return _react["default"].createElement("div", {
5636
5631
  style: style
5637
- }, /*#__PURE__*/_react["default"].createElement("div", {
5632
+ }, _react["default"].createElement("div", {
5638
5633
  ref: this.ref
5639
5634
  }));
5640
5635
  }
@@ -5692,16 +5687,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5692
5687
 
5693
5688
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5694
5689
 
5695
- 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); }; }
5696
-
5697
5690
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5698
5691
 
5699
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5700
-
5701
- 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; } }
5702
-
5703
5692
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5704
5693
 
5694
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5695
+
5705
5696
  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); }
5706
5697
 
5707
5698
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5712,12 +5703,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5712
5703
  var SDK_GLOBAL = 'Mixcloud';
5713
5704
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5714
5705
 
5715
- var Mixcloud = /*#__PURE__*/function (_Component) {
5706
+ var Mixcloud =
5707
+ /*#__PURE__*/
5708
+ function (_Component) {
5716
5709
  _inherits(Mixcloud, _Component);
5717
5710
 
5718
- var _super = _createSuper(Mixcloud);
5719
-
5720
5711
  function Mixcloud() {
5712
+ var _getPrototypeOf2;
5713
+
5721
5714
  var _this;
5722
5715
 
5723
5716
  _classCallCheck(this, Mixcloud);
@@ -5726,7 +5719,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5726
5719
  args[_key] = arguments[_key];
5727
5720
  }
5728
5721
 
5729
- _this = _super.call.apply(_super, [this].concat(args));
5722
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5730
5723
 
5731
5724
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5732
5725
 
@@ -5829,7 +5822,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5829
5822
  })); // We have to give the iframe a key here to prevent a
5830
5823
  // weird dialog appearing when loading a new track
5831
5824
 
5832
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5825
+ return _react["default"].createElement("iframe", {
5833
5826
  key: id,
5834
5827
  ref: this.ref,
5835
5828
  style: style,
@@ -5889,33 +5882,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5889
5882
 
5890
5883
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5891
5884
 
5892
- 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); }; }
5893
-
5894
5885
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5895
5886
 
5896
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5897
-
5898
- 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; } }
5899
-
5900
5887
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5901
5888
 
5889
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5890
+
5902
5891
  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); }
5903
5892
 
5904
5893
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5905
5894
 
5906
5895
  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; }
5907
5896
 
5908
- 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; } } }; }
5909
-
5910
- 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); }
5911
-
5912
- 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; }
5913
-
5914
5897
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5915
5898
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5916
5899
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5917
5900
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5918
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5901
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5919
5902
  var HLS_GLOBAL = 'Hls';
5920
5903
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5921
5904
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5924,11 +5907,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5924
5907
 
5925
5908
  function canPlay(url) {
5926
5909
  if (url instanceof Array) {
5927
- var _iterator = _createForOfIteratorHelper(url),
5928
- _step;
5910
+ var _iteratorNormalCompletion = true;
5911
+ var _didIteratorError = false;
5912
+ var _iteratorError = undefined;
5929
5913
 
5930
5914
  try {
5931
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5915
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5932
5916
  var item = _step.value;
5933
5917
 
5934
5918
  if (typeof item === 'string' && canPlay(item)) {
@@ -5940,9 +5924,18 @@ function canPlay(url) {
5940
5924
  }
5941
5925
  }
5942
5926
  } catch (err) {
5943
- _iterator.e(err);
5927
+ _didIteratorError = true;
5928
+ _iteratorError = err;
5944
5929
  } finally {
5945
- _iterator.f();
5930
+ try {
5931
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5932
+ _iterator["return"]();
5933
+ }
5934
+ } finally {
5935
+ if (_didIteratorError) {
5936
+ throw _iteratorError;
5937
+ }
5938
+ }
5946
5939
  }
5947
5940
 
5948
5941
  return false;
@@ -5966,12 +5959,14 @@ function canEnablePIP(url) {
5966
5959
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5967
5960
  }
5968
5961
 
5969
- var FilePlayer = /*#__PURE__*/function (_Component) {
5962
+ var FilePlayer =
5963
+ /*#__PURE__*/
5964
+ function (_Component) {
5970
5965
  _inherits(FilePlayer, _Component);
5971
5966
 
5972
- var _super = _createSuper(FilePlayer);
5973
-
5974
5967
  function FilePlayer() {
5968
+ var _getPrototypeOf2;
5969
+
5975
5970
  var _this;
5976
5971
 
5977
5972
  _classCallCheck(this, FilePlayer);
@@ -5980,7 +5975,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5980
5975
  _args[_key] = arguments[_key];
5981
5976
  }
5982
5977
 
5983
- _this = _super.call.apply(_super, [this].concat(_args));
5978
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5984
5979
 
5985
5980
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5986
5981
  var _this$props;
@@ -6067,19 +6062,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6067
6062
 
6068
6063
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
6069
6064
  if (typeof source === 'string') {
6070
- return /*#__PURE__*/_react["default"].createElement("source", {
6065
+ return _react["default"].createElement("source", {
6071
6066
  key: index,
6072
6067
  src: source
6073
6068
  });
6074
6069
  }
6075
6070
 
6076
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
6071
+ return _react["default"].createElement("source", _extends({
6077
6072
  key: index
6078
6073
  }, source));
6079
6074
  });
6080
6075
 
6081
6076
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
6082
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
6077
+ return _react["default"].createElement("track", _extends({
6083
6078
  key: index
6084
6079
  }, track));
6085
6080
  });
@@ -6117,10 +6112,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6117
6112
  key: "componentWillUnmount",
6118
6113
  value: function componentWillUnmount() {
6119
6114
  this.removeListeners(this.player);
6120
-
6121
- if (this.hls) {
6122
- this.hls.destroy();
6123
- }
6124
6115
  }
6125
6116
  }, {
6126
6117
  key: "addListeners",
@@ -6251,6 +6242,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6251
6242
  value: function stop() {
6252
6243
  this.player.removeAttribute('src');
6253
6244
 
6245
+ if (this.hls) {
6246
+ this.hls.destroy();
6247
+ }
6248
+
6254
6249
  if (this.dash) {
6255
6250
  this.dash.reset();
6256
6251
  }
@@ -6362,7 +6357,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6362
6357
  width: width === 'auto' ? width : '100%',
6363
6358
  height: height === 'auto' ? height : '100%'
6364
6359
  };
6365
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6360
+ return _react["default"].createElement(Element, _extends({
6366
6361
  ref: this.ref,
6367
6362
  src: this.getSource(url),
6368
6363
  style: style,
@@ -6452,16 +6447,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6452
6447
 
6453
6448
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6454
6449
 
6455
- 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); }; }
6456
-
6457
6450
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6458
6451
 
6459
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6460
-
6461
- 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; } }
6462
-
6463
6452
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6464
6453
 
6454
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6455
+
6465
6456
  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); }
6466
6457
 
6467
6458
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6470,12 +6461,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6470
6461
 
6471
6462
  var ICON_SIZE = '64px';
6472
6463
 
6473
- var Preview = /*#__PURE__*/function (_Component) {
6464
+ var Preview =
6465
+ /*#__PURE__*/
6466
+ function (_Component) {
6474
6467
  _inherits(Preview, _Component);
6475
6468
 
6476
- var _super = _createSuper(Preview);
6477
-
6478
6469
  function Preview() {
6470
+ var _getPrototypeOf2;
6471
+
6479
6472
  var _this;
6480
6473
 
6481
6474
  _classCallCheck(this, Preview);
@@ -6484,7 +6477,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6484
6477
  args[_key] = arguments[_key];
6485
6478
  }
6486
6479
 
6487
- _this = _super.call.apply(_super, [this].concat(args));
6480
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6488
6481
 
6489
6482
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6490
6483
 
@@ -6582,15 +6575,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6582
6575
  }
6583
6576
  };
6584
6577
 
6585
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6578
+ var defaultPlayIcon = _react["default"].createElement("div", {
6586
6579
  style: styles.shadow,
6587
6580
  className: "react-player__shadow"
6588
- }, /*#__PURE__*/_react["default"].createElement("div", {
6581
+ }, _react["default"].createElement("div", {
6589
6582
  style: styles.playIcon,
6590
6583
  className: "react-player__play-icon"
6591
6584
  }));
6592
6585
 
6593
- return /*#__PURE__*/_react["default"].createElement("div", {
6586
+ return _react["default"].createElement("div", {
6594
6587
  style: styles.preview,
6595
6588
  className: "react-player__preview",
6596
6589
  onClick: onClick
@@ -6627,12 +6620,6 @@ var _Player = _interopRequireDefault(Player_1);
6627
6620
 
6628
6621
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6629
6622
 
6630
- 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; } } }; }
6631
-
6632
- 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); }
6633
-
6634
- 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; }
6635
-
6636
6623
  var PRELOAD_PLAYERS = [{
6637
6624
  Player: YouTube_1.YouTube,
6638
6625
  configKey: 'youtube',
@@ -6653,16 +6640,16 @@ var PRELOAD_PLAYERS = [{
6653
6640
 
6654
6641
  function renderPreloadPlayers(url, controls, config) {
6655
6642
  var players = [];
6656
-
6657
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6658
- _step;
6643
+ var _iteratorNormalCompletion = true;
6644
+ var _didIteratorError = false;
6645
+ var _iteratorError = undefined;
6659
6646
 
6660
6647
  try {
6661
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6648
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6662
6649
  var player = _step.value;
6663
6650
 
6664
6651
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6665
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6652
+ players.push(_react["default"].createElement(_Player["default"], {
6666
6653
  key: player.Player.displayName,
6667
6654
  activePlayer: player.Player,
6668
6655
  url: player.url,
@@ -6674,9 +6661,18 @@ function renderPreloadPlayers(url, controls, config) {
6674
6661
  }
6675
6662
  }
6676
6663
  } catch (err) {
6677
- _iterator.e(err);
6664
+ _didIteratorError = true;
6665
+ _iteratorError = err;
6678
6666
  } finally {
6679
- _iterator.f();
6667
+ try {
6668
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6669
+ _iterator["return"]();
6670
+ }
6671
+ } finally {
6672
+ if (_didIteratorError) {
6673
+ throw _iteratorError;
6674
+ }
6675
+ }
6680
6676
  }
6681
6677
 
6682
6678
  return players;
@@ -6800,17 +6796,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6800
6796
 
6801
6797
  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); }
6802
6798
 
6803
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6804
-
6805
- 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."); }
6806
-
6807
- 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); }
6799
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6808
6800
 
6809
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6801
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6810
6802
 
6811
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6803
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6812
6804
 
6813
- 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; }
6805
+ 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; } }
6814
6806
 
6815
6807
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6816
6808
 
@@ -6818,16 +6810,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6818
6810
 
6819
6811
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6820
6812
 
6821
- 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); }; }
6822
-
6823
6813
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6824
6814
 
6825
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6826
-
6827
- 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; } }
6828
-
6829
6815
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6830
6816
 
6817
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6818
+
6831
6819
  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); }
6832
6820
 
6833
6821
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6837,12 +6825,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6837
6825
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6838
6826
  var customPlayers = [];
6839
6827
 
6840
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6828
+ var ReactPlayer =
6829
+ /*#__PURE__*/
6830
+ function (_Component) {
6841
6831
  _inherits(ReactPlayer, _Component);
6842
6832
 
6843
- var _super = _createSuper(ReactPlayer);
6844
-
6845
6833
  function ReactPlayer() {
6834
+ var _getPrototypeOf2;
6835
+
6846
6836
  var _this;
6847
6837
 
6848
6838
  _classCallCheck(this, ReactPlayer);
@@ -6851,7 +6841,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6851
6841
  args[_key] = arguments[_key];
6852
6842
  }
6853
6843
 
6854
- _this = _super.call.apply(_super, [this].concat(args));
6844
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6855
6845
 
6856
6846
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6857
6847
 
@@ -6962,7 +6952,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6962
6952
  key: "renderActivePlayer",
6963
6953
  value: function renderActivePlayer(url, activePlayer) {
6964
6954
  if (!url) return null;
6965
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6955
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6966
6956
  key: activePlayer.displayName,
6967
6957
  ref: this.activePlayerRef,
6968
6958
  config: this.config,
@@ -6999,14 +6989,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6999
6989
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
7000
6990
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
7001
6991
 
7002
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6992
+ var preview = _react["default"].createElement(_Preview["default"], {
7003
6993
  url: url,
7004
6994
  light: light,
7005
6995
  playIcon: playIcon,
7006
6996
  onClick: this.handleClickPreview
7007
6997
  });
7008
6998
 
7009
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6999
+ return _react["default"].createElement(Wrapper, _extends({
7010
7000
  ref: this.wrapperRef,
7011
7001
  style: _objectSpread({}, style, {
7012
7002
  width: width,
@@ -7330,7 +7320,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7330
7320
  var queue = Math.floor(duration / 10);
7331
7321
  var segment = Math.floor(current / queue);
7332
7322
  //Beam.report_beam_video('Ready', deviceType, duration, current, segment)
7333
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
7323
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
7334
7324
  //autoplay
7335
7325
 
7336
7326
  //Small pause before starting next video
@@ -7351,7 +7341,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7351
7341
  var segment = Math.floor(current / queue);
7352
7342
 
7353
7343
  //Beam.report_beam_video('End', deviceType, duration, current, segment)
7354
- Segment.report_video_event('Video End', main_18, duration, current, segment);
7344
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
7355
7345
  setEndReported(true);
7356
7346
  clearInterval(intervalID);
7357
7347
  }
@@ -7402,7 +7392,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7402
7392
  var segment = Math.floor(current / queue);
7403
7393
  if (!queueProgress.includes(segment)) {
7404
7394
  //Beam.report_beam_video('Segment', deviceType, duration, current, segment)
7405
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
7395
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
7406
7396
  queueProgress.push(segment);
7407
7397
  }
7408
7398
  };
@@ -7416,7 +7406,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7416
7406
  var segment = Math.floor(current / queue);
7417
7407
 
7418
7408
  //Beam.report_beam_video('Play', deviceType, duration, current, segment)
7419
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
7409
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
7420
7410
 
7421
7411
  if (!playReported) {
7422
7412
  setPlayReported(true);
@@ -7435,7 +7425,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7435
7425
  var segment = Math.floor(current / queue);
7436
7426
 
7437
7427
  //Beam.report_beam_video('Pause', deviceType, duration, current, segment)
7438
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
7428
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
7439
7429
  };
7440
7430
 
7441
7431
  // Youtube Options
@@ -7553,7 +7543,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7553
7543
  React__default.createElement(
7554
7544
  'div',
7555
7545
  { className: 'vid-text' },
7556
- 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()))
7546
+ 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()))
7557
7547
  ),
7558
7548
  React__default.createElement(
7559
7549
  'style',
@@ -7871,7 +7861,7 @@ var Poll$1 = function Poll(_ref) {
7871
7861
  );
7872
7862
  };
7873
7863
 
7874
- var numberOfPaginations = main_42 ? 4 : 10;
7864
+ var numberOfPaginations = main_35 ? 4 : 10;
7875
7865
 
7876
7866
  var Quiz = function Quiz(_ref) {
7877
7867
  var quizzes = _ref.quizzes,
@@ -7990,33 +7980,33 @@ var Quiz = function Quiz(_ref) {
7990
7980
 
7991
7981
  var renderPagination = function renderPagination() {
7992
7982
  return React__default.createElement(
7993
- Pagination$1,
7994
- { className: 'p-0 m-0', size: main_42 && 'sm' },
7995
- React__default.createElement(Pagination$1.First, { onClick: function onClick() {
7983
+ Pagination,
7984
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7985
+ React__default.createElement(Pagination.First, { onClick: function onClick() {
7996
7986
  return changePage('first');
7997
7987
  }, disabled: currentPage === 1 }),
7998
- React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
7988
+ React__default.createElement(Pagination.Prev, { onClick: function onClick() {
7999
7989
  return changePage('prev');
8000
7990
  }, disabled: currentPage === 1 }),
8001
- React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
7991
+ React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
8002
7992
  return renderNewPages('prev');
8003
7993
  }, disabled: !validateIndex(startIndex - numberOfPaginations) }),
8004
7994
  pages.map(function (page) {
8005
7995
  return React__default.createElement(
8006
- Pagination$1.Item,
7996
+ Pagination.Item,
8007
7997
  { key: page, active: page === currentPage, onClick: function onClick() {
8008
7998
  return changePage(page);
8009
7999
  } },
8010
8000
  page
8011
8001
  );
8012
8002
  }),
8013
- React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
8003
+ React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
8014
8004
  return renderNewPages('next');
8015
8005
  }, disabled: !validateIndex(startIndex + numberOfPaginations) }),
8016
- React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
8006
+ React__default.createElement(Pagination.Next, { onClick: function onClick() {
8017
8007
  return changePage('next');
8018
8008
  }, disabled: currentPage === pageCount }),
8019
- React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
8009
+ React__default.createElement(Pagination.Last, { onClick: function onClick() {
8020
8010
  return changePage('last');
8021
8011
  }, disabled: currentPage === pageCount })
8022
8012
  );
@@ -8317,7 +8307,7 @@ var MultiMedia = function MultiMedia(props) {
8317
8307
  { xs: 12, md: 12 / medias.length, key: media._key },
8318
8308
  React__default.createElement(
8319
8309
  'a',
8320
- _extends({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
8310
+ _extends$1({}, media.upload_doc && media.upload_doc.asset && { href: urlForFile({ asset: media.upload_doc.asset }), target: media.blank ? '_blank' : '_self' }, {
8321
8311
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8322
8312
  React__default.createElement(
8323
8313
  'div',
@@ -8612,7 +8602,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8612
8602
 
8613
8603
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8614
8604
  if (biography) {
8615
- return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8605
+ return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
8616
8606
  }
8617
8607
  };
8618
8608
 
@@ -8698,7 +8688,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8698
8688
  //console.log('useLayoutEffect')
8699
8689
  if (!firstLoad) {
8700
8690
  setUpArrowClicked(false);
8701
- if (main_43) {
8691
+ if (main_36) {
8702
8692
  grabLoadedAds();
8703
8693
  } else {
8704
8694
  scrollToArticle();
@@ -8722,7 +8712,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8722
8712
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8723
8713
  if (pageview) pageview(path);
8724
8714
 
8725
- if (!main_43) {
8715
+ if (!main_36) {
8726
8716
  lib_3.getGoogletag().then(function (googletag) {
8727
8717
  if (window.googletag && googletag.pubadsReady) {
8728
8718
  lib_3.refresh();
@@ -8730,7 +8720,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8730
8720
  });
8731
8721
  }
8732
8722
  //Refresh leaderboard ad on mobile
8733
- if (main_43) {
8723
+ if (main_36) {
8734
8724
  var leaderboardSlotId = '';
8735
8725
  lib_3.getGoogletag().then(function (googletag) {
8736
8726
  if (window.googletag && googletag.pubadsReady) {
@@ -8799,7 +8789,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8799
8789
  React__default.createElement(
8800
8790
  'div',
8801
8791
  { className: 'ad-box', style: { textAlign: 'center' } },
8802
- main_43 && Ads.map(function (ad, index) {
8792
+ main_36 && Ads.map(function (ad, index) {
8803
8793
  if (index === 0) {
8804
8794
  return React__default.createElement(
8805
8795
  'div',
@@ -8890,7 +8880,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8890
8880
  React__default.createElement(
8891
8881
  'div',
8892
8882
  { className: 'mt-2 mb-2' },
8893
- React__default.createElement(BlockContent, _extends({
8883
+ React__default.createElement(BlockContent, _extends$1({
8894
8884
  serializers: getSerializers,
8895
8885
  videoAccountIDs: accountIDs,
8896
8886
  blocks: article.text,
@@ -8921,7 +8911,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8921
8911
  React__default.createElement(
8922
8912
  'div',
8923
8913
  { className: 'ad-box', style: { textAlign: 'center' } },
8924
- main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8914
+ main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8925
8915
  if (innerIndex === 0) {
8926
8916
  return React__default.createElement(
8927
8917
  'div',
@@ -9008,7 +8998,7 @@ var FigureImage = React__default.memo(function (_ref2) {
9008
8998
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9009
8999
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9010
9000
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
9011
- React__default.createElement('img', _extends({
9001
+ React__default.createElement('img', _extends$1({
9012
9002
  style: figureImageStyle,
9013
9003
  className: 'figure-image',
9014
9004
  src: urlFor({ source: node, client: client }),
@@ -9060,23 +9050,23 @@ var FigureComponent = function FigureComponent(props) {
9060
9050
  var renderTooltip = function renderTooltip(props) {
9061
9051
  if (infoBox[0].title) {
9062
9052
  return React__default.createElement(
9063
- Popover$1,
9053
+ Popover,
9064
9054
  { id: 'popover-basic-' + infoBox[0].title },
9065
9055
  React__default.createElement(
9066
- Popover$1.Title,
9056
+ Popover.Title,
9067
9057
  { as: 'h3' },
9068
9058
  infoBox[0].title
9069
9059
  ),
9070
9060
  React__default.createElement(
9071
- Popover$1.Content,
9061
+ Popover.Content,
9072
9062
  null,
9073
9063
  React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
9074
9064
  )
9075
9065
  );
9076
9066
  } else {
9077
9067
  return React__default.createElement(
9078
- Tooltip$1,
9079
- _extends({ id: 'button-tooltip' }, props),
9068
+ Tooltip,
9069
+ _extends$1({ id: 'button-tooltip' }, props),
9080
9070
  React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
9081
9071
  );
9082
9072
  }
@@ -9090,32 +9080,32 @@ var FigureComponent = function FigureComponent(props) {
9090
9080
  handleClickFigure = _ref3.handleClickFigure;
9091
9081
 
9092
9082
  var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
9093
- var triggerAction = main_42 ? 'click' : 'hover';
9094
- var placementLocation = main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9083
+ var triggerAction = main_35 ? 'click' : 'hover';
9084
+ var placementLocation = main_35 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9095
9085
  return React__default.createElement(
9096
9086
  'picture',
9097
9087
  null,
9098
9088
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9099
9089
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9100
9090
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
9101
- main_42 && link ? React__default.createElement('img', _extends({
9091
+ main_35 && link ? React__default.createElement('img', _extends$1({
9102
9092
  style: figureImageStyle,
9103
9093
  className: 'figure-image',
9104
9094
  src: urlFor({ source: node, client: client }),
9105
9095
  alt: imgAlt ? imgAlt : 'figure image'
9106
- }, !link && !main_42 && {
9096
+ }, !link && !main_35 && {
9107
9097
  onClick: function onClick() {
9108
9098
  return handleClickFigure(node, client);
9109
9099
  }
9110
9100
  })) : React__default.createElement(
9111
9101
  OverlayTrigger,
9112
9102
  { trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
9113
- React__default.createElement('img', _extends({
9103
+ React__default.createElement('img', _extends$1({
9114
9104
  style: figureImageStyle,
9115
9105
  className: 'figure-image',
9116
9106
  src: urlFor({ source: node, client: client }),
9117
9107
  alt: imgAlt ? imgAlt : 'figure image'
9118
- }, !link && !main_42 && {
9108
+ }, !link && !main_35 && {
9119
9109
  onClick: function onClick() {
9120
9110
  return handleClickFigure(node, client);
9121
9111
  }
@@ -9274,7 +9264,7 @@ var FigureImage$1 = React__default.memo(function (_ref) {
9274
9264
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9275
9265
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9276
9266
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9277
- React__default.createElement('img', _extends({
9267
+ React__default.createElement('img', _extends$1({
9278
9268
  'images-count': imagesCount,
9279
9269
  className: 'multi-figure-image',
9280
9270
  src: urlFor({ source: image, client: client }),
@@ -9334,32 +9324,32 @@ var MultiFigure = function MultiFigure(props) {
9334
9324
  link = _ref3.link,
9335
9325
  handleClickFigure = _ref3.handleClickFigure;
9336
9326
 
9337
- var triggerAction = main_42 ? 'click' : 'hover';
9338
- var placementLocation = main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9327
+ var triggerAction = main_35 ? 'click' : 'hover';
9328
+ var placementLocation = main_35 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9339
9329
  return React__default.createElement(
9340
9330
  'picture',
9341
9331
  null,
9342
9332
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9343
9333
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9344
9334
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9345
- main_42 && link ? React__default.createElement('img', _extends({
9335
+ main_35 && link ? React__default.createElement('img', _extends$1({
9346
9336
  'images-count': imagesCount,
9347
9337
  className: 'multi-figure-image',
9348
9338
  src: urlFor({ source: image, client: client }),
9349
9339
  alt: imgAlt ? imgAlt : 'multi figure'
9350
- }, !link && !main_42 && {
9340
+ }, !link && !main_35 && {
9351
9341
  onClick: function onClick() {
9352
9342
  return handleClickFigure(image, client);
9353
9343
  }
9354
9344
  })) : React__default.createElement(
9355
9345
  OverlayTrigger,
9356
9346
  { trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
9357
- React__default.createElement('img', _extends({
9347
+ React__default.createElement('img', _extends$1({
9358
9348
  'images-count': imagesCount,
9359
9349
  className: 'multi-figure-image',
9360
9350
  src: urlFor({ source: image, client: client }),
9361
9351
  alt: imgAlt ? imgAlt : 'multi figure'
9362
- }, !link && !main_42 && {
9352
+ }, !link && !main_35 && {
9363
9353
  onClick: function onClick() {
9364
9354
  return handleClickFigure(image, client);
9365
9355
  }
@@ -9371,23 +9361,23 @@ var MultiFigure = function MultiFigure(props) {
9371
9361
  var renderTooltip = function renderTooltip(image) {
9372
9362
  if (image.infoBox[0].title) {
9373
9363
  return React__default.createElement(
9374
- Popover$1,
9364
+ Popover,
9375
9365
  { id: 'popover-basic-' + image.infoBox[0].title },
9376
9366
  React__default.createElement(
9377
- Popover$1.Title,
9367
+ Popover.Title,
9378
9368
  { as: 'h3' },
9379
9369
  image.infoBox[0].title
9380
9370
  ),
9381
9371
  React__default.createElement(
9382
- Popover$1.Content,
9372
+ Popover.Content,
9383
9373
  null,
9384
9374
  React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
9385
9375
  )
9386
9376
  );
9387
9377
  } else {
9388
9378
  return React__default.createElement(
9389
- Tooltip$1,
9390
- _extends({ id: 'button-tooltip' }, props),
9379
+ Tooltip,
9380
+ _extends$1({ id: 'button-tooltip' }, props),
9391
9381
  React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
9392
9382
  );
9393
9383
  }
@@ -9407,7 +9397,7 @@ var MultiFigure = function MultiFigure(props) {
9407
9397
  { xs: 12, md: 12 / images.length, key: index },
9408
9398
  image.link ? React__default.createElement(
9409
9399
  'a',
9410
- _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9400
+ _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9411
9401
  React__default.createElement(
9412
9402
  'div',
9413
9403
  { className: 'multi-figure-image-container' },
@@ -9435,7 +9425,7 @@ var MultiFigure = function MultiFigure(props) {
9435
9425
  { xs: 12, md: 12 / images.length, key: index },
9436
9426
  image.link ? React__default.createElement(
9437
9427
  'a',
9438
- _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9428
+ _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9439
9429
  React__default.createElement(
9440
9430
  'div',
9441
9431
  { className: 'multi-figure-image-container' },
@@ -9564,7 +9554,7 @@ exports.__esModule = true;
9564
9554
 
9565
9555
 
9566
9556
 
9567
- var _extends3 = _interopRequireDefault(_extends$1);
9557
+ var _extends3 = _interopRequireDefault(_extends$2);
9568
9558
 
9569
9559
 
9570
9560
 
@@ -9877,7 +9867,7 @@ var BlockTable = function BlockTable(props) {
9877
9867
  return React__default.createElement(
9878
9868
  'div',
9879
9869
  { className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
9880
- React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9870
+ React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
9881
9871
  );
9882
9872
  })
9883
9873
  );
@@ -9954,6 +9944,12 @@ var getSerializers = function getSerializers() {
9954
9944
 
9955
9945
  return {
9956
9946
  types: {
9947
+ undefined: function undefined$1() {
9948
+ return null;
9949
+ },
9950
+ null: function _null() {
9951
+ return null;
9952
+ },
9957
9953
  block: function block(props) {
9958
9954
  props = convertEntities(props);
9959
9955
  return BlockContent.defaultSerializers.types.block(props);
@@ -10149,7 +10145,7 @@ var getSerializers = function getSerializers() {
10149
10145
  var isExernalUrl = checkUrlIsExternal(href);
10150
10146
  return href ? React__default.createElement(
10151
10147
  'a',
10152
- _extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10148
+ _extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10153
10149
  children
10154
10150
  ) : children;
10155
10151
  },