@mjhls/mjh-framework 1.0.850-affiliatefix-v1 → 1.0.850-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 (318) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +30 -31
  4. package/dist/cjs/AD300x250x600.js +30 -31
  5. package/dist/cjs/AD728x90.js +33 -34
  6. package/dist/cjs/ADFloatingFooter.js +32 -33
  7. package/dist/cjs/ADFooter.js +14 -15
  8. package/dist/cjs/ADGutter.js +32 -33
  9. package/dist/cjs/{ADInfeed-859820d9.js → ADInfeed-98c71bcd.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +32 -33
  11. package/dist/cjs/ADSponsoredResources.js +32 -33
  12. package/dist/cjs/ADWebcast.js +32 -33
  13. package/dist/cjs/ADWelcome.js +33 -34
  14. package/dist/cjs/{ADlgInfeed-da3a36a6.js → ADlgInfeed-9de32585.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +29 -31
  16. package/dist/cjs/AdSlot.js +101 -34
  17. package/dist/cjs/AdSlotsProvider.js +925 -24
  18. package/dist/cjs/AlgoliaSearch.js +1276 -1371
  19. package/dist/cjs/AlphabeticList.js +25 -26
  20. package/dist/cjs/ArticleCarousel.js +23 -24
  21. package/dist/cjs/ArticleProgramLandingPage.js +59 -60
  22. package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
  23. package/dist/cjs/ArticleSeriesListing.js +61 -62
  24. package/dist/cjs/Auth.js +462 -686
  25. package/dist/cjs/AuthWrapper.js +423 -1739
  26. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
  27. package/dist/cjs/Beam.js +8 -8
  28. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
  29. package/dist/cjs/Breadcrumbs.js +27 -29
  30. package/dist/cjs/CMEDeck.js +83 -83
  31. package/dist/cjs/Column1.js +11 -14
  32. package/dist/cjs/Column2.js +33 -36
  33. package/dist/cjs/Column3.js +59 -62
  34. package/dist/cjs/ConferenceArticleCard.js +37 -38
  35. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  36. package/dist/cjs/DeckContent.js +103 -107
  37. package/dist/cjs/DeckQueue.js +90 -94
  38. package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
  39. package/dist/cjs/EventsDeck.js +152 -159
  40. package/dist/cjs/ExternalResources.js +80 -81
  41. package/dist/cjs/Feature.js +24 -26
  42. package/dist/cjs/ForbesHero.js +42 -43
  43. package/dist/cjs/GridContent.js +304 -190
  44. package/dist/cjs/GridHero.js +44 -45
  45. package/dist/cjs/GroupDeck.js +59 -60
  46. package/dist/cjs/HamMagazine.js +141 -146
  47. package/dist/cjs/Header.js +12 -14
  48. package/dist/cjs/Hero.js +12 -13
  49. package/dist/cjs/HighlightenVideo.js +17 -18
  50. package/dist/cjs/HorizontalArticleListing.js +72 -73
  51. package/dist/cjs/HorizontalHero.js +25 -26
  52. package/dist/cjs/IssueContentDeck.js +73 -78
  53. package/dist/cjs/IssueDeck.js +72 -77
  54. package/dist/cjs/IssueLanding.js +93 -96
  55. package/dist/cjs/KMTracker.js +15 -15
  56. package/dist/cjs/LeftNav.js +39 -41
  57. package/dist/cjs/MasterDeck.js +80 -81
  58. package/dist/cjs/MediaSeriesLanding.js +1137 -1228
  59. package/dist/cjs/NavDvm.js +74 -79
  60. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  61. package/dist/cjs/NavMagazine.js +148 -153
  62. package/dist/cjs/NavNative.js +145 -153
  63. package/dist/cjs/OncliveHero.js +19 -19
  64. package/dist/cjs/OncliveLargeHero.js +72 -73
  65. package/dist/cjs/PageFilter.js +14 -15
  66. package/dist/cjs/PartnerDetailListing.js +1205 -115
  67. package/dist/cjs/PdfDownload.js +9 -10
  68. package/dist/cjs/PopUpModal.js +19 -21
  69. package/dist/cjs/PubSection.js +40 -43
  70. package/dist/cjs/PubToc.js +15 -16
  71. package/dist/cjs/PublicationDeck.js +62 -67
  72. package/dist/cjs/PublicationLanding.js +135 -139
  73. package/dist/cjs/QueueDeckExpanded.js +1150 -1131
  74. package/dist/cjs/RecentNews.js +22 -23
  75. package/dist/cjs/RelatedContent.js +54 -55
  76. package/dist/cjs/RelatedTopicsDropdown.js +29 -32
  77. package/dist/cjs/RolesDeck.js +27 -32
  78. package/dist/cjs/Search.js +18 -22
  79. package/dist/cjs/Segment.js +368 -343
  80. package/dist/cjs/SeriesListingDeck.js +38 -38
  81. package/dist/cjs/{SeriesSlider-34c6cc2b.js → SeriesSlider-8bbc989f.js} +39 -40
  82. package/dist/cjs/SetCookie.js +1 -1
  83. package/dist/cjs/SideFooter.js +38 -39
  84. package/dist/cjs/SocialIcons.js +9 -10
  85. package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
  86. package/dist/cjs/SocialShare.js +29 -31
  87. package/dist/cjs/TaxonomyCard.js +59 -64
  88. package/dist/cjs/TaxonomyDescription.js +55 -56
  89. package/dist/cjs/TemplateNormal.js +74 -75
  90. package/dist/cjs/ThumbnailCard.js +21 -23
  91. package/dist/cjs/Ustream.js +30 -31
  92. package/dist/cjs/VerticalHero.js +16 -17
  93. package/dist/cjs/VideoProgramLandingPage.js +74 -78
  94. package/dist/cjs/VideoSeriesCard.js +32 -33
  95. package/dist/cjs/VideoSeriesFilter.js +18 -18
  96. package/dist/cjs/VideoSeriesLandingPage.js +49 -50
  97. package/dist/cjs/VideoSeriesListing.js +82 -81
  98. package/dist/cjs/View.js +342 -264
  99. package/dist/cjs/YahooHero.js +41 -42
  100. package/dist/cjs/YoutubeGroup.js +66 -67
  101. package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
  102. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
  103. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  104. package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
  105. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
  106. package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
  107. package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
  108. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  109. package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
  110. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  111. package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
  112. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
  113. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  114. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  115. package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
  116. package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
  117. package/dist/cjs/faundadb.js +7 -7
  118. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  119. package/dist/cjs/getQuery.js +2 -2
  120. package/dist/cjs/getRelatedArticle.js +20 -20
  121. package/dist/cjs/getRootDocGroup.js +6 -6
  122. package/dist/cjs/getSerializers.js +45 -45
  123. package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-f1821260.js} +26 -17
  124. package/dist/cjs/getTargeting.js +8 -8
  125. package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
  126. package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
  127. package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
  128. package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
  129. package/dist/cjs/{index-060c5d65.js → index-bc88f898.js} +1039 -1005
  130. package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
  131. package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
  132. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  133. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
  134. package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
  135. package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
  136. package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
  137. package/dist/cjs/index.js +164 -169
  138. package/dist/cjs/{inherits-c2065b95.js → inherits-452ff02c.js} +19 -19
  139. package/dist/cjs/inherits-8d29278d.js +110 -0
  140. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  141. package/dist/cjs/keys-a586b7a0.js +25 -0
  142. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  143. package/dist/cjs/main-02daeefe.js +862 -0
  144. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  145. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  146. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  147. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
  148. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  149. package/dist/cjs/stringify-7c5aff47.js +17 -0
  150. package/dist/cjs/timeDifferenceCalc.js +1 -1
  151. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
  152. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  153. package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
  154. package/dist/cjs/urlFor.js +3 -3
  155. package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
  156. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  157. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  158. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
  159. package/dist/esm/AD.js +1 -1
  160. package/dist/esm/AD300x250.js +24 -24
  161. package/dist/esm/AD300x250x600.js +24 -24
  162. package/dist/esm/AD728x90.js +27 -27
  163. package/dist/esm/ADFloatingFooter.js +23 -23
  164. package/dist/esm/ADFooter.js +6 -6
  165. package/dist/esm/ADGutter.js +23 -23
  166. package/dist/esm/{ADInfeed-4bf3b2f9.js → ADInfeed-bbdd5398.js} +6 -6
  167. package/dist/esm/ADSkyscraper.js +23 -23
  168. package/dist/esm/ADSponsoredResources.js +23 -23
  169. package/dist/esm/ADWebcast.js +23 -23
  170. package/dist/esm/ADWelcome.js +20 -20
  171. package/dist/esm/{ADlgInfeed-a3377c4a.js → ADlgInfeed-4473ee3b.js} +4 -4
  172. package/dist/esm/AccordionPanel.js +8 -8
  173. package/dist/esm/AdSlot.js +92 -24
  174. package/dist/esm/AdSlotsProvider.js +922 -20
  175. package/dist/esm/AlgoliaSearch.js +505 -599
  176. package/dist/esm/AlphabeticList.js +10 -10
  177. package/dist/esm/ArticleCarousel.js +17 -17
  178. package/dist/esm/ArticleProgramLandingPage.js +50 -50
  179. package/dist/esm/ArticleSeriesLandingPage.js +32 -32
  180. package/dist/esm/ArticleSeriesListing.js +34 -34
  181. package/dist/esm/Auth.js +375 -595
  182. package/dist/esm/AuthWrapper.js +396 -1711
  183. package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
  184. package/dist/esm/Beam.js +8 -8
  185. package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
  186. package/dist/esm/Breadcrumbs.js +7 -7
  187. package/dist/esm/CMEDeck.js +24 -24
  188. package/dist/esm/Column1.js +4 -4
  189. package/dist/esm/Column2.js +21 -21
  190. package/dist/esm/Column3.js +39 -39
  191. package/dist/esm/ConferenceArticleCard.js +22 -22
  192. package/dist/esm/DeckContent.js +57 -57
  193. package/dist/esm/DeckQueue.js +50 -50
  194. package/dist/esm/{Dfp-2c43d2a0.js → Dfp-b7236041.js} +15 -15
  195. package/dist/esm/EventsDeck.js +67 -67
  196. package/dist/esm/ExternalResources.js +48 -48
  197. package/dist/esm/Feature.js +4 -4
  198. package/dist/esm/ForbesHero.js +12 -12
  199. package/dist/esm/GridContent.js +200 -82
  200. package/dist/esm/GridHero.js +13 -13
  201. package/dist/esm/GroupDeck.js +14 -14
  202. package/dist/esm/HamMagazine.js +39 -39
  203. package/dist/esm/Hero.js +4 -4
  204. package/dist/esm/HighlightenVideo.js +2 -2
  205. package/dist/esm/HorizontalArticleListing.js +47 -47
  206. package/dist/esm/HorizontalHero.js +5 -5
  207. package/dist/esm/IssueContentDeck.js +27 -27
  208. package/dist/esm/IssueDeck.js +37 -37
  209. package/dist/esm/IssueLanding.js +82 -84
  210. package/dist/esm/KMTracker.js +15 -15
  211. package/dist/esm/LeftNav.js +22 -22
  212. package/dist/esm/MasterDeck.js +45 -45
  213. package/dist/esm/MediaSeriesLanding.js +663 -751
  214. package/dist/esm/NavDvm.js +16 -16
  215. package/dist/esm/NavMagazine.js +44 -44
  216. package/dist/esm/NavNative.js +49 -49
  217. package/dist/esm/OncliveHero.js +5 -4
  218. package/dist/esm/OncliveLargeHero.js +13 -13
  219. package/dist/esm/PageFilter.js +6 -6
  220. package/dist/esm/PartnerDetailListing.js +1155 -65
  221. package/dist/esm/PdfDownload.js +2 -2
  222. package/dist/esm/PopUpModal.js +6 -6
  223. package/dist/esm/PubSection.js +32 -34
  224. package/dist/esm/PubToc.js +8 -8
  225. package/dist/esm/PublicationDeck.js +24 -24
  226. package/dist/esm/PublicationLanding.js +76 -76
  227. package/dist/esm/QueueDeckExpanded.js +1103 -1084
  228. package/dist/esm/RecentNews.js +4 -4
  229. package/dist/esm/RelatedContent.js +35 -35
  230. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  231. package/dist/esm/RolesDeck.js +12 -12
  232. package/dist/esm/Search.js +8 -8
  233. package/dist/esm/Segment.js +368 -343
  234. package/dist/esm/SeriesListingDeck.js +20 -20
  235. package/dist/esm/{SeriesSlider-5d5c08f4.js → SeriesSlider-a866bb21.js} +14 -14
  236. package/dist/esm/SetCookie.js +1 -1
  237. package/dist/esm/SideFooter.js +17 -17
  238. package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
  239. package/dist/esm/TaxonomyCard.js +25 -25
  240. package/dist/esm/TaxonomyDescription.js +46 -46
  241. package/dist/esm/TemplateNormal.js +50 -50
  242. package/dist/esm/ThumbnailCard.js +7 -7
  243. package/dist/esm/Ustream.js +14 -14
  244. package/dist/esm/VerticalHero.js +3 -3
  245. package/dist/esm/VideoProgramLandingPage.js +54 -54
  246. package/dist/esm/VideoSeriesCard.js +14 -14
  247. package/dist/esm/VideoSeriesFilter.js +9 -9
  248. package/dist/esm/VideoSeriesLandingPage.js +38 -38
  249. package/dist/esm/VideoSeriesListing.js +39 -37
  250. package/dist/esm/View.js +174 -92
  251. package/dist/esm/YahooHero.js +15 -15
  252. package/dist/esm/YoutubeGroup.js +26 -26
  253. package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
  254. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
  255. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  256. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
  257. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
  258. package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
  259. package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-4877b617.js} +33 -33
  260. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
  261. package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
  262. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  263. package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
  264. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
  265. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  266. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  267. package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
  268. package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
  269. package/dist/esm/faundadb.js +7 -7
  270. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  271. package/dist/esm/getQuery.js +2 -2
  272. package/dist/esm/getRelatedArticle.js +14 -14
  273. package/dist/esm/getRootDocGroup.js +6 -6
  274. package/dist/esm/getSerializers.js +45 -45
  275. package/dist/esm/{getTargeting-68291ce9.js → getTargeting-bd800589.js} +25 -16
  276. package/dist/esm/getTargeting.js +8 -8
  277. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  278. package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
  279. package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
  280. package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
  281. package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
  282. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  283. package/dist/esm/{index-01d53c17.js → index-f2a0d400.js} +688 -647
  284. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  285. package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
  286. package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
  287. package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
  288. package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
  289. package/dist/esm/index.js +122 -124
  290. package/dist/esm/inherits-77d5e4fc.js +101 -0
  291. package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
  292. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  293. package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
  294. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  295. package/dist/esm/main-e4a934b2.js +851 -0
  296. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  297. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  298. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
  299. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
  300. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  301. package/dist/esm/stringify-4330ccdc.js +15 -0
  302. package/dist/esm/timeDifferenceCalc.js +1 -1
  303. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
  304. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  305. package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
  306. package/dist/esm/urlFor.js +1 -1
  307. package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
  308. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  309. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
  310. package/package.json +111 -110
  311. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  312. package/dist/cjs/keys-7f2c2108.js +0 -25
  313. package/dist/cjs/main-f1c77adb.js +0 -973
  314. package/dist/cjs/stringify-c9ac1214.js +0 -17
  315. package/dist/cjs/typeof-1358762e.js +0 -33
  316. package/dist/esm/main-d4165069.js +0 -961
  317. package/dist/esm/stringify-59c8f690.js +0 -15
  318. package/dist/esm/typeof-2f07d0e8.js +0 -30
@@ -1,37 +1,37 @@
1
+ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
+ import { _ as _export, a as _core } from './_to-object-a4107da3.js';
3
+ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
4
+ import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
5
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-cf8dde54.js';
6
+ import { _ as _typeof } from './typeof-6435ba1c.js';
1
7
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
2
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
3
- import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
4
- import urlFor from './urlFor.js';
5
- import { l as lib_3 } from './index-f0fc23eb.js';
6
- import Router, { useRouter } from 'next/router';
7
- import { g as getYoutubeId } from './index-c7e2ac95.js';
8
+ import { l as lib_3 } from './index-41a678ea.js';
8
9
  import PropTypes from 'prop-types';
9
- import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
10
- import { u as util } from './util-3ab476bf.js';
11
- import Beam from './Beam.js';
12
- import Segment from './Segment.js';
13
- import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
14
- import { B as BlockContent } from './BlockContent-c99c9a8d.js';
15
- import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
16
- import { L as LazyLoad } from './index-755f2cc2.js';
17
- import { _ as _typeof$1 } from './typeof-a286cf0c.js';
18
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
19
- import GroupDeck from './GroupDeck.js';
20
- import { m as moment } from './moment-bc12cb97.js';
21
- import SocialShare from './SocialShare.js';
22
- import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
23
- import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
24
- import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
25
- import Pagination from 'react-bootstrap/Pagination';
26
- import Button$1 from 'react-bootstrap/Button';
27
- import { h as html_decode_1 } from './entities-932b50cf.js';
28
- import DFPAdSlot from './AdSlot.js';
29
10
  import Row$1 from 'react-bootstrap/Row';
30
11
  import Col$1 from 'react-bootstrap/Col';
12
+ import { m as moment } from './moment-e2f9b20c.js';
13
+ import Router, { useRouter } from 'next/router';
14
+ import urlFor from './urlFor.js';
15
+ import { L as LazyLoad } from './index-5f7e79e7.js';
16
+ import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
17
+ import { h as html_decode_1 } from './entities-7cc3bf45.js';
18
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
19
+ import Segment from './Segment.js';
20
+ import Beam from './Beam.js';
21
+ import DFPAdSlot from './AdSlot.js';
22
+ import Button$1 from 'react-bootstrap/Button';
23
+ import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
24
+ import { g as getYoutubeId } from './index-c7e2ac95.js';
25
+ import GroupDeck from './GroupDeck.js';
26
+ import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
27
+ import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
28
+ import { u as util } from './util-7700fc59.js';
29
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
31
30
  import Head from 'next/head';
32
- 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-a41fe93f.js';
33
- import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
34
- import Figure$2 from 'react-bootstrap/Figure';
31
+ import SocialShare from './SocialShare.js';
32
+ import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
33
+ import Pagination$1 from 'react-bootstrap/Pagination';
34
+ import Figure$1$1 from 'react-bootstrap/Figure';
35
35
 
36
36
  var onChangeSlide = function onChangeSlide(selectedIndex, router) {
37
37
  var pageNumber = selectedIndex + 1;
@@ -39,7 +39,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
39
39
  Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
40
40
  };
41
41
 
42
- var Slideshow$1 = function Slideshow(_ref) {
42
+ var Slideshow = function Slideshow(_ref) {
43
43
  var slides = _ref.slides,
44
44
  client = _ref.client,
45
45
  pageview = _ref.pageview;
@@ -78,7 +78,14 @@ var Slideshow$1 = function Slideshow(_ref) {
78
78
  return React__default.createElement(
79
79
  Carousel.Item,
80
80
  { key: slide._key },
81
- React__default.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
81
+ React__default.createElement(
82
+ 'picture',
83
+ null,
84
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
85
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
86
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
87
+ React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
88
+ ),
82
89
  slide.caption && React__default.createElement(
83
90
  'p',
84
91
  { className: 'p-2' },
@@ -90,18 +97,21 @@ var Slideshow$1 = function Slideshow(_ref) {
90
97
  );
91
98
  };
92
99
 
93
- // do not edit .js files directly - edit src/index.jst
94
-
95
-
100
+ var isArray = Array.isArray;
101
+ var keyList = Object.keys;
102
+ var hasProp = Object.prototype.hasOwnProperty;
96
103
 
97
104
  var fastDeepEqual = function equal(a, b) {
98
105
  if (a === b) return true;
99
106
 
100
107
  if (a && b && typeof a == 'object' && typeof b == 'object') {
101
- if (a.constructor !== b.constructor) return false;
108
+ var arrA = isArray(a)
109
+ , arrB = isArray(b)
110
+ , i
111
+ , length
112
+ , key;
102
113
 
103
- var length, i, keys;
104
- if (Array.isArray(a)) {
114
+ if (arrA && arrB) {
105
115
  length = a.length;
106
116
  if (length != b.length) return false;
107
117
  for (i = length; i-- !== 0;)
@@ -109,29 +119,35 @@ var fastDeepEqual = function equal(a, b) {
109
119
  return true;
110
120
  }
111
121
 
122
+ if (arrA != arrB) return false;
112
123
 
124
+ var dateA = a instanceof Date
125
+ , dateB = b instanceof Date;
126
+ if (dateA != dateB) return false;
127
+ if (dateA && dateB) return a.getTime() == b.getTime();
113
128
 
114
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
115
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
116
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
129
+ var regexpA = a instanceof RegExp
130
+ , regexpB = b instanceof RegExp;
131
+ if (regexpA != regexpB) return false;
132
+ if (regexpA && regexpB) return a.toString() == b.toString();
117
133
 
118
- keys = Object.keys(a);
134
+ var keys = keyList(a);
119
135
  length = keys.length;
120
- if (length !== Object.keys(b).length) return false;
136
+
137
+ if (length !== keyList(b).length)
138
+ return false;
121
139
 
122
140
  for (i = length; i-- !== 0;)
123
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
141
+ if (!hasProp.call(b, keys[i])) return false;
124
142
 
125
143
  for (i = length; i-- !== 0;) {
126
- var key = keys[i];
127
-
144
+ key = keys[i];
128
145
  if (!equal(a[key], b[key])) return false;
129
146
  }
130
147
 
131
148
  return true;
132
149
  }
133
150
 
134
- // true if both NaN, false otherwise
135
151
  return a!==a && b!==b;
136
152
  };
137
153
 
@@ -669,14 +685,14 @@ function coerce(val) {
669
685
  return val;
670
686
  }
671
687
  });
672
- debug.coerce;
673
- debug.disable;
674
- debug.enable;
675
- debug.enabled;
676
- debug.humanize;
677
- debug.names;
678
- debug.skips;
679
- debug.formatters;
688
+ var debug_1 = debug.coerce;
689
+ var debug_2 = debug.disable;
690
+ var debug_3 = debug.enable;
691
+ var debug_4 = debug.enabled;
692
+ var debug_5 = debug.humanize;
693
+ var debug_6 = debug.names;
694
+ var debug_7 = debug.skips;
695
+ var debug_8 = debug.formatters;
680
696
 
681
697
  var browser = createCommonjsModule(function (module, exports) {
682
698
  /**
@@ -865,13 +881,13 @@ function localstorage() {
865
881
  } catch (e) {}
866
882
  }
867
883
  });
868
- browser.log;
869
- browser.formatArgs;
870
- browser.save;
871
- browser.load;
872
- browser.useColors;
873
- browser.storage;
874
- browser.colors;
884
+ var browser_1 = browser.log;
885
+ var browser_2 = browser.formatArgs;
886
+ var browser_3 = browser.save;
887
+ var browser_4 = browser.load;
888
+ var browser_5 = browser.useColors;
889
+ var browser_6 = browser.storage;
890
+ var browser_7 = browser.colors;
875
891
 
876
892
  // MIT lisence
877
893
  // from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
@@ -1146,14 +1162,14 @@ function init (debug) {
1146
1162
 
1147
1163
  exports.enable(load());
1148
1164
  });
1149
- node.init;
1150
- node.log;
1151
- node.formatArgs;
1152
- node.save;
1153
- node.load;
1154
- node.useColors;
1155
- node.colors;
1156
- node.inspectOpts;
1165
+ var node_1 = node.init;
1166
+ var node_2 = node.log;
1167
+ var node_3 = node.formatArgs;
1168
+ var node_4 = node.save;
1169
+ var node_5 = node.load;
1170
+ var node_6 = node.useColors;
1171
+ var node_7 = node.colors;
1172
+ var node_8 = node.inspectOpts;
1157
1173
 
1158
1174
  var src = createCommonjsModule(function (module) {
1159
1175
  /**
@@ -1554,239 +1570,199 @@ module.exports = exports['default'];
1554
1570
 
1555
1571
  var youTubePlayer = unwrapExports(dist);
1556
1572
 
1557
- 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); }
1558
-
1559
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1560
-
1561
- 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); } }
1562
-
1563
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1564
-
1565
- 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); }
1566
-
1567
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1568
-
1569
- 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); }; }
1570
-
1571
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1573
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
1572
1574
 
1573
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1575
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
1574
1576
 
1575
- 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; } }
1576
-
1577
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1577
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1578
1578
 
1579
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1579
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
1580
1580
 
1581
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1581
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
1582
1582
 
1583
- 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; }
1584
- /**
1585
- * Check whether a `props` change should result in the video being updated.
1586
- *
1587
- * @param {Object} prevProps
1588
- * @param {Object} props
1583
+ /**
1584
+ * Check whether a `props` change should result in the video being updated.
1585
+ *
1586
+ * @param {Object} prevProps
1587
+ * @param {Object} props
1589
1588
  */
1590
-
1591
1589
  function shouldUpdateVideo(prevProps, props) {
1592
1590
  // A changing video should always trigger an update
1593
1591
  if (prevProps.videoId !== props.videoId) {
1594
1592
  return true;
1595
- } // Otherwise, a change in the start/end time playerVars also requires a player
1596
- // update.
1597
-
1593
+ }
1598
1594
 
1595
+ // Otherwise, a change in the start/end time playerVars also requires a player
1596
+ // update.
1599
1597
  var prevVars = prevProps.opts.playerVars || {};
1600
1598
  var vars = props.opts.playerVars || {};
1599
+
1601
1600
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1602
1601
  }
1603
- /**
1604
- * Neutralize API options that only require a video update, leaving only options
1605
- * that require a player reset. The results can then be compared to see if a
1606
- * player reset is necessary.
1607
- *
1608
- * @param {Object} opts
1609
- */
1610
-
1611
1602
 
1603
+ /**
1604
+ * Neutralise API options that only require a video update, leaving only options
1605
+ * that require a player reset. The results can then be compared to see if a
1606
+ * player reset is necessary.
1607
+ *
1608
+ * @param {Object} opts
1609
+ */
1612
1610
  function filterResetOptions(opts) {
1613
- return _objectSpread(_objectSpread({}, opts), {}, {
1614
- playerVars: _objectSpread({
1611
+ return _extends({}, opts, {
1612
+ playerVars: _extends({}, opts.playerVars, {
1615
1613
  autoplay: 0,
1616
1614
  start: 0,
1617
1615
  end: 0
1618
- }, opts.playerVars)
1616
+ })
1619
1617
  });
1620
1618
  }
1621
- /**
1622
- * Check whether a `props` change should result in the player being reset.
1623
- * The player is reset when the `props.opts` change, except if the only change
1624
- * is in the `start` and `end` playerVars, because a video update can deal with
1625
- * those.
1626
- *
1627
- * @param {Object} prevProps
1628
- * @param {Object} props
1629
- */
1630
-
1631
1619
 
1620
+ /**
1621
+ * Check whether a `props` change should result in the player being reset.
1622
+ * The player is reset when the `props.opts` change, except if the only change
1623
+ * is in the `start` and `end` playerVars, because a video update can deal with
1624
+ * those.
1625
+ *
1626
+ * @param {Object} prevProps
1627
+ * @param {Object} props
1628
+ */
1632
1629
  function shouldResetPlayer(prevProps, props) {
1633
1630
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1634
1631
  }
1635
- /**
1636
- * Check whether a props change should result in an id or className update.
1637
- *
1638
- * @param {Object} prevProps
1639
- * @param {Object} props
1640
- */
1641
-
1642
1632
 
1633
+ /**
1634
+ * Check whether a props change should result in an id or className update.
1635
+ *
1636
+ * @param {Object} prevProps
1637
+ * @param {Object} props
1638
+ */
1643
1639
  function shouldUpdatePlayer(prevProps, props) {
1644
1640
  return prevProps.id !== props.id || prevProps.className !== props.className;
1645
1641
  }
1646
1642
 
1647
- var YouTube = /*#__PURE__*/function (_React$Component) {
1643
+ var YouTube = function (_React$Component) {
1648
1644
  _inherits(YouTube, _React$Component);
1649
1645
 
1650
- var _super = _createSuper(YouTube);
1651
-
1652
- /**
1653
- * Expose PlayerState constants for convenience. These constants can also be
1654
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1655
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1656
- */
1657
1646
  function YouTube(props) {
1658
- var _this;
1659
-
1660
1647
  _classCallCheck(this, YouTube);
1661
1648
 
1662
- _this = _super.call(this, props);
1649
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1663
1650
 
1664
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1651
+ _this.onPlayerReady = function (event) {
1665
1652
  return _this.props.onReady(event);
1666
- });
1653
+ };
1667
1654
 
1668
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1655
+ _this.onPlayerError = function (event) {
1669
1656
  return _this.props.onError(event);
1670
- });
1657
+ };
1671
1658
 
1672
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1659
+ _this.onPlayerStateChange = function (event) {
1673
1660
  _this.props.onStateChange(event);
1674
-
1675
1661
  switch (event.data) {
1662
+
1676
1663
  case YouTube.PlayerState.ENDED:
1677
1664
  _this.props.onEnd(event);
1678
-
1679
1665
  break;
1680
1666
 
1681
1667
  case YouTube.PlayerState.PLAYING:
1682
1668
  _this.props.onPlay(event);
1683
-
1684
1669
  break;
1685
1670
 
1686
1671
  case YouTube.PlayerState.PAUSED:
1687
1672
  _this.props.onPause(event);
1688
-
1689
1673
  break;
1690
1674
  }
1691
- });
1675
+ };
1692
1676
 
1693
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1677
+ _this.onPlayerPlaybackRateChange = function (event) {
1694
1678
  return _this.props.onPlaybackRateChange(event);
1695
- });
1679
+ };
1696
1680
 
1697
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1681
+ _this.onPlayerPlaybackQualityChange = function (event) {
1698
1682
  return _this.props.onPlaybackQualityChange(event);
1699
- });
1683
+ };
1700
1684
 
1701
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1685
+ _this.createPlayer = function () {
1702
1686
  // do not attempt to create a player server-side, it won't work
1703
- if (typeof document === 'undefined') return; // create player
1704
-
1705
- var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
1687
+ if (typeof document === 'undefined') return;
1688
+ // create player
1689
+ var playerOpts = _extends({}, _this.props.opts, {
1706
1690
  // preload the `videoId` video if one is already given
1707
1691
  videoId: _this.props.videoId
1708
1692
  });
1709
-
1710
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1711
-
1693
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1694
+ // attach event handlers
1712
1695
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1713
-
1714
1696
  _this.internalPlayer.on('error', _this.onPlayerError);
1715
-
1716
1697
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1717
-
1718
1698
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1719
-
1720
1699
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1721
- });
1700
+ };
1722
1701
 
1723
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1702
+ _this.resetPlayer = function () {
1724
1703
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1725
- });
1704
+ };
1726
1705
 
1727
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1706
+ _this.updatePlayer = function () {
1728
1707
  _this.internalPlayer.getIframe().then(function (iframe) {
1729
1708
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1730
1709
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1731
1710
  });
1732
- });
1733
-
1734
- _defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
1735
- return _this.internalPlayer;
1736
- });
1711
+ };
1737
1712
 
1738
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1713
+ _this.updateVideo = function () {
1739
1714
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1740
1715
  _this.internalPlayer.stopVideo();
1741
-
1742
1716
  return;
1743
- } // set queueing options
1744
-
1717
+ }
1745
1718
 
1719
+ // set queueing options
1746
1720
  var autoplay = false;
1747
1721
  var opts = {
1748
1722
  videoId: _this.props.videoId
1749
1723
  };
1750
-
1751
1724
  if ('playerVars' in _this.props.opts) {
1752
1725
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1753
-
1754
1726
  if ('start' in _this.props.opts.playerVars) {
1755
1727
  opts.startSeconds = _this.props.opts.playerVars.start;
1756
1728
  }
1757
-
1758
1729
  if ('end' in _this.props.opts.playerVars) {
1759
1730
  opts.endSeconds = _this.props.opts.playerVars.end;
1760
1731
  }
1761
- } // if autoplay is enabled loadVideoById
1762
-
1732
+ }
1763
1733
 
1734
+ // if autoplay is enabled loadVideoById
1764
1735
  if (autoplay) {
1765
1736
  _this.internalPlayer.loadVideoById(opts);
1766
-
1767
1737
  return;
1768
- } // default behaviour just cues the video
1769
-
1770
-
1738
+ }
1739
+ // default behaviour just cues the video
1771
1740
  _this.internalPlayer.cueVideoById(opts);
1772
- });
1741
+ };
1773
1742
 
1774
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1743
+ _this.refContainer = function (container) {
1775
1744
  _this.container = container;
1776
- });
1745
+ };
1777
1746
 
1778
1747
  _this.container = null;
1779
1748
  _this.internalPlayer = null;
1780
1749
  return _this;
1781
1750
  }
1782
1751
 
1752
+ /**
1753
+ * Expose PlayerState constants for convenience. These constants can also be
1754
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1755
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1756
+ */
1757
+
1758
+
1783
1759
  _createClass(YouTube, [{
1784
- key: "componentDidMount",
1760
+ key: 'componentDidMount',
1785
1761
  value: function componentDidMount() {
1786
1762
  this.createPlayer();
1787
1763
  }
1788
1764
  }, {
1789
- key: "componentDidUpdate",
1765
+ key: 'componentDidUpdate',
1790
1766
  value: function componentDidUpdate(prevProps) {
1791
1767
  if (shouldUpdatePlayer(prevProps, this.props)) {
1792
1768
  this.updatePlayer();
@@ -1801,58 +1777,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1801
1777
  }
1802
1778
  }
1803
1779
  }, {
1804
- key: "componentWillUnmount",
1780
+ key: 'componentWillUnmount',
1805
1781
  value: function componentWillUnmount() {
1806
- /**
1807
- * Note: The `youtube-player` package that is used promisifies all YouTube
1808
- * Player API calls, which introduces a delay of a tick before it actually
1809
- * gets destroyed. Since React attempts to remove the element instantly
1810
- * this method isn't quick enough to reset the container element.
1782
+ /**
1783
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1784
+ * Player API calls, which introduces a delay of a tick before it actually
1785
+ * gets destroyed. Since React attempts to remove the element instantly
1786
+ * this method isn't quick enough to reset the container element.
1811
1787
  */
1812
1788
  this.internalPlayer.destroy();
1813
1789
  }
1814
- /**
1815
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1816
- *
1817
- * @param {Object} event
1818
- * @param {Object} target - player object
1790
+
1791
+ /**
1792
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1793
+ *
1794
+ * @param {Object} event
1795
+ * @param {Object} target - player object
1796
+ */
1797
+
1798
+
1799
+ /**
1800
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1801
+ *
1802
+ * @param {Object} event
1803
+ * @param {Integer} data - error type
1804
+ * @param {Object} target - player object
1805
+ */
1806
+
1807
+
1808
+ /**
1809
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1810
+ *
1811
+ * @param {Object} event
1812
+ * @param {Integer} data - status change type
1813
+ * @param {Object} target - actual YT player
1814
+ */
1815
+
1816
+
1817
+ /**
1818
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1819
+ *
1820
+ * @param {Object} event
1821
+ * @param {Float} data - playback rate
1822
+ * @param {Object} target - actual YT player
1823
+ */
1824
+
1825
+
1826
+ /**
1827
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1828
+ *
1829
+ * @param {Object} event
1830
+ * @param {String} data - playback quality
1831
+ * @param {Object} target - actual YT player
1832
+ */
1833
+
1834
+
1835
+ /**
1836
+ * Initialize the Youtube Player API on the container and attach event handlers
1837
+ */
1838
+
1839
+
1840
+ /**
1841
+ * Shorthand for destroying and then re-creating the Youtube Player
1842
+ */
1843
+
1844
+
1845
+ /**
1846
+ * Method to update the id and class of the Youtube Player iframe.
1847
+ * React should update this automatically but since the Youtube Player API
1848
+ * replaced the DIV that is mounted by React we need to do this manually.
1849
+ */
1850
+
1851
+
1852
+ /**
1853
+ * Call Youtube Player API methods to update the currently playing video.
1854
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1855
+ * Youtube Player API methods to update the video.
1819
1856
  */
1820
1857
 
1821
1858
  }, {
1822
- key: "render",
1859
+ key: 'render',
1823
1860
  value: function render() {
1824
- return /*#__PURE__*/React__default.createElement("div", {
1825
- className: this.props.containerClassName
1826
- }, /*#__PURE__*/React__default.createElement("div", {
1827
- id: this.props.id,
1828
- className: this.props.className,
1829
- ref: this.refContainer
1830
- }));
1861
+ return React__default.createElement(
1862
+ 'div',
1863
+ { className: this.props.containerClassName },
1864
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1865
+ );
1831
1866
  }
1832
1867
  }]);
1833
1868
 
1834
1869
  return YouTube;
1835
1870
  }(React__default.Component);
1836
1871
 
1837
- _defineProperty(YouTube, "PlayerState", {
1838
- UNSTARTED: -1,
1839
- ENDED: 0,
1840
- PLAYING: 1,
1841
- PAUSED: 2,
1842
- BUFFERING: 3,
1843
- CUED: 5
1844
- });
1845
-
1846
1872
  YouTube.propTypes = {
1847
1873
  videoId: PropTypes.string,
1874
+
1848
1875
  // custom ID for player element
1849
1876
  id: PropTypes.string,
1877
+
1850
1878
  // custom class name for player element
1851
1879
  className: PropTypes.string,
1852
1880
  // custom class name for player container element
1853
1881
  containerClassName: PropTypes.string,
1882
+
1854
1883
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1855
1884
  opts: PropTypes.objectOf(PropTypes.any),
1885
+
1856
1886
  // event subscriptions
1857
1887
  onReady: PropTypes.func,
1858
1888
  onError: PropTypes.func,
@@ -1864,7 +1894,6 @@ YouTube.propTypes = {
1864
1894
  onPlaybackQualityChange: PropTypes.func
1865
1895
  };
1866
1896
  YouTube.defaultProps = {
1867
- videoId: null,
1868
1897
  id: null,
1869
1898
  className: null,
1870
1899
  opts: {},
@@ -1878,6 +1907,14 @@ YouTube.defaultProps = {
1878
1907
  onPlaybackRateChange: function onPlaybackRateChange() {},
1879
1908
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1880
1909
  };
1910
+ YouTube.PlayerState = {
1911
+ UNSTARTED: -1,
1912
+ ENDED: 0,
1913
+ PLAYING: 1,
1914
+ PAUSED: 2,
1915
+ BUFFERING: 3,
1916
+ CUED: 5
1917
+ };
1881
1918
 
1882
1919
  var YouTubePlayer = function YouTubePlayer(_ref) {
1883
1920
  var url = _ref.url,
@@ -1916,8 +1953,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1916
1953
  var duration = player.getDuration();
1917
1954
  var queue = Math.floor(duration / 10);
1918
1955
  var segment = Math.floor(current / queue);
1919
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
1920
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
1956
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
1957
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
1921
1958
  };
1922
1959
 
1923
1960
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1927,8 +1964,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1927
1964
  var segment = Math.floor(current / queue);
1928
1965
 
1929
1966
  if (!queueProgress.includes(segment)) {
1930
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
1931
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
1967
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
1968
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
1932
1969
  queueProgress.push(segment);
1933
1970
  }
1934
1971
  };
@@ -1941,8 +1978,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1941
1978
  var queue = Math.floor(duration / 10);
1942
1979
  var segment = Math.floor(current / queue);
1943
1980
 
1944
- Beam.report_beam_video('Play', main_18, duration, current, segment);
1945
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
1981
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
1982
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
1946
1983
 
1947
1984
  if (!playReported) {
1948
1985
  setPlayReported(true);
@@ -1961,8 +1998,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1961
1998
  var queue = Math.floor(duration / 10);
1962
1999
  var segment = Math.floor(current / queue);
1963
2000
 
1964
- Beam.report_beam_video('End', main_18, duration, current, segment);
1965
- Segment.report_video_event('Video End', main_18, duration, current, segment);
2001
+ Beam.report_beam_video('End', main_16, duration, current, segment);
2002
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
1966
2003
  setEndReported(true);
1967
2004
  clearInterval(intervalID);
1968
2005
  }
@@ -1975,8 +2012,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1975
2012
  var queue = Math.floor(duration / 10);
1976
2013
  var segment = Math.floor(current / queue);
1977
2014
 
1978
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
1979
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
2015
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
2016
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
1980
2017
  };
1981
2018
 
1982
2019
  return React__default.createElement(
@@ -2138,7 +2175,14 @@ var Media = function Media(_ref) {
2138
2175
  React__default.createElement(
2139
2176
  LazyLoad,
2140
2177
  { once: true },
2141
- React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2178
+ React__default.createElement(
2179
+ 'picture',
2180
+ null,
2181
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
2182
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
2183
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
2184
+ React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
2185
+ )
2142
2186
  ),
2143
2187
  caption && React__default.createElement(
2144
2188
  Figure$1.Caption,
@@ -2150,7 +2194,7 @@ var Media = function Media(_ref) {
2150
2194
  } else if (caption && caption !== '') {
2151
2195
  return React__default.createElement(
2152
2196
  'a',
2153
- _extends({}, uploadDoc.downloadMedia ? {
2197
+ _extends$1({}, uploadDoc.downloadMedia ? {
2154
2198
  href: uploadDoc.asset.url + '?dl='
2155
2199
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2156
2200
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2205,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2205
2249
  var duration = player.duration;
2206
2250
  var queue = Math.floor(duration / 10);
2207
2251
  var segment = Math.floor(current / queue);
2208
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
2209
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
2252
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
2253
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
2210
2254
  };
2211
2255
 
2212
2256
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -2215,8 +2259,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2215
2259
  var queue = Math.floor(duration / 10);
2216
2260
  var segment = Math.floor(current / queue);
2217
2261
  if (!queueProgress.includes(segment)) {
2218
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
2219
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
2262
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
2263
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
2220
2264
  queueProgress.push(segment);
2221
2265
  }
2222
2266
  };
@@ -2228,8 +2272,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2228
2272
  var duration = player.duration;
2229
2273
  var queue = Math.floor(duration / 10);
2230
2274
  var segment = Math.floor(current / queue);
2231
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
2232
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
2275
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
2276
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
2233
2277
 
2234
2278
  if (!playReported) {
2235
2279
  event.persist();
@@ -2249,8 +2293,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2249
2293
  var queue = Math.floor(duration / 10);
2250
2294
  var segment = Math.floor(current / queue);
2251
2295
 
2252
- Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
2253
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
2296
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
2297
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
2254
2298
  setEndReported(true);
2255
2299
  clearInterval(intervalID);
2256
2300
  }
@@ -2262,8 +2306,8 @@ var VideoMp4 = function VideoMp4(_ref) {
2262
2306
  var duration = player.duration - current;
2263
2307
  var queue = Math.floor(duration / 10);
2264
2308
  var segment = Math.floor(current / queue);
2265
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
2266
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
2309
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
2310
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
2267
2311
  };
2268
2312
 
2269
2313
  return React__default.createElement(
@@ -2324,7 +2368,7 @@ var Video = function Video(_ref) {
2324
2368
  var onVideoSuccess = function onVideoSuccess(success) {
2325
2369
  //console.log('success:', success.ref)
2326
2370
  var player = success.ref;
2327
- if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2371
+ if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2328
2372
  player.ima3.settings.debug = true;
2329
2373
  if (targeting.content_placement && targeting.document_url) {
2330
2374
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2352,8 +2396,8 @@ var Video = function Video(_ref) {
2352
2396
  player.pause();
2353
2397
  }
2354
2398
 
2355
- Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2356
- Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2399
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2400
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2357
2401
  });
2358
2402
 
2359
2403
  // play
@@ -2362,8 +2406,8 @@ var Video = function Video(_ref) {
2362
2406
  var current = player.currentTime();
2363
2407
  var queue = Math.floor(duration / 10);
2364
2408
  var segment = Math.floor(current / queue);
2365
- Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2366
- Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2409
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2410
+ Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2367
2411
  });
2368
2412
 
2369
2413
  // pause
@@ -2372,8 +2416,8 @@ var Video = function Video(_ref) {
2372
2416
  var current = player.currentTime();
2373
2417
  var queue = Math.floor(duration / 10);
2374
2418
  var segment = Math.floor(current / queue);
2375
- Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2376
- Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2419
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2420
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2377
2421
  });
2378
2422
 
2379
2423
  // end
@@ -2382,8 +2426,8 @@ var Video = function Video(_ref) {
2382
2426
  var current = player.currentTime();
2383
2427
  var queue = Math.floor(duration / 10);
2384
2428
  var segment = Math.floor(current / queue);
2385
- Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2386
- Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2429
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2430
+ Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2387
2431
  autoplayNextVideo(evt);
2388
2432
  });
2389
2433
 
@@ -2394,8 +2438,8 @@ var Video = function Video(_ref) {
2394
2438
  var queue = Math.floor(duration / 10);
2395
2439
  var segment = Math.floor(current / queue);
2396
2440
  if (!queueProgress.includes(segment)) {
2397
- Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2398
- Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2441
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2442
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2399
2443
  queueProgress.push(segment);
2400
2444
  }
2401
2445
  });
@@ -2406,8 +2450,8 @@ var Video = function Video(_ref) {
2406
2450
  var id = player.ads.ad.id;
2407
2451
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2408
2452
 
2409
- Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
2410
- Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2453
+ Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
2454
+ Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2411
2455
  });
2412
2456
 
2413
2457
  // ad ended
@@ -2415,8 +2459,8 @@ var Video = function Video(_ref) {
2415
2459
  var duration = player.ads.ad.duration;
2416
2460
  var id = player.ads.ad.id;
2417
2461
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2418
- Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
2419
- Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2462
+ Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
2463
+ Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2420
2464
  });
2421
2465
  };
2422
2466
 
@@ -2679,9 +2723,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
2679
2723
  });
2680
2724
 
2681
2725
  unwrapExports(props);
2682
- props.DEPRECATED_CONFIG_PROPS;
2683
- props.defaultProps;
2684
- props.propTypes;
2726
+ var props_1 = props.DEPRECATED_CONFIG_PROPS;
2727
+ var props_2 = props.defaultProps;
2728
+ var props_3 = props.propTypes;
2685
2729
 
2686
2730
  var isMergeableObject = function isMergeableObject(value) {
2687
2731
  return isNonNullObject(value)
@@ -2846,17 +2890,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2846
2890
 
2847
2891
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2848
2892
 
2849
- 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; } } }; }
2850
-
2851
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2852
-
2853
- 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."); }
2893
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2854
2894
 
2855
- 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); }
2895
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2856
2896
 
2857
- 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; }
2858
-
2859
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
2897
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
2860
2898
 
2861
2899
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2862
2900
 
@@ -2986,12 +3024,12 @@ function getSDK(url, sdkGlobal) {
2986
3024
 
2987
3025
  function getConfig(props$1, defaultProps, showWarning) {
2988
3026
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
2989
-
2990
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
2991
- _step;
3027
+ var _iteratorNormalCompletion = true;
3028
+ var _didIteratorError = false;
3029
+ var _iteratorError = undefined;
2992
3030
 
2993
3031
  try {
2994
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3032
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2995
3033
  var p = _step.value;
2996
3034
 
2997
3035
  if (props$1[p]) {
@@ -3006,9 +3044,18 @@ function getConfig(props$1, defaultProps, showWarning) {
3006
3044
  }
3007
3045
  }
3008
3046
  } catch (err) {
3009
- _iterator.e(err);
3047
+ _didIteratorError = true;
3048
+ _iteratorError = err;
3010
3049
  } finally {
3011
- _iterator.f();
3050
+ try {
3051
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
3052
+ _iterator["return"]();
3053
+ }
3054
+ } finally {
3055
+ if (_didIteratorError) {
3056
+ throw _iteratorError;
3057
+ }
3058
+ }
3012
3059
  }
3013
3060
 
3014
3061
  return config;
@@ -3116,17 +3163,17 @@ function isMediaStream(url) {
3116
3163
  });
3117
3164
 
3118
3165
  unwrapExports(utils);
3119
- utils.parseStartTime;
3120
- utils.parseEndTime;
3121
- utils.randomString;
3122
- utils.queryString;
3123
- utils.getSDK;
3124
- utils.getConfig;
3125
- utils.omit;
3126
- utils.callPlayer;
3127
- utils.isObject;
3128
- utils.isEqual;
3129
- utils.isMediaStream;
3166
+ var utils_1 = utils.parseStartTime;
3167
+ var utils_2 = utils.parseEndTime;
3168
+ var utils_3 = utils.randomString;
3169
+ var utils_4 = utils.queryString;
3170
+ var utils_5 = utils.getSDK;
3171
+ var utils_6 = utils.getConfig;
3172
+ var utils_7 = utils.omit;
3173
+ var utils_8 = utils.callPlayer;
3174
+ var utils_9 = utils.isObject;
3175
+ var utils_10 = utils.isEqual;
3176
+ var utils_11 = utils.isMediaStream;
3130
3177
 
3131
3178
  var Player_1 = createCommonjsModule(function (module, exports) {
3132
3179
 
@@ -3155,16 +3202,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3155
3202
 
3156
3203
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3157
3204
 
3158
- 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); }; }
3159
-
3160
3205
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3161
3206
 
3162
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3163
-
3164
- 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; } }
3165
-
3166
3207
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3167
3208
 
3209
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3210
+
3168
3211
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3169
3212
 
3170
3213
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3173,12 +3216,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3173
3216
 
3174
3217
  var SEEK_ON_PLAY_EXPIRY = 5000;
3175
3218
 
3176
- var Player = /*#__PURE__*/function (_Component) {
3219
+ var Player =
3220
+ /*#__PURE__*/
3221
+ function (_Component) {
3177
3222
  _inherits(Player, _Component);
3178
3223
 
3179
- var _super = _createSuper(Player);
3180
-
3181
3224
  function Player() {
3225
+ var _getPrototypeOf2;
3226
+
3182
3227
  var _this;
3183
3228
 
3184
3229
  _classCallCheck(this, Player);
@@ -3187,7 +3232,7 @@ var Player = /*#__PURE__*/function (_Component) {
3187
3232
  _args[_key] = arguments[_key];
3188
3233
  }
3189
3234
 
3190
- _this = _super.call.apply(_super, [this].concat(_args));
3235
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3191
3236
 
3192
3237
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3193
3238
 
@@ -3512,7 +3557,7 @@ var Player = /*#__PURE__*/function (_Component) {
3512
3557
  return null;
3513
3558
  }
3514
3559
 
3515
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3560
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3516
3561
  ref: this.ref,
3517
3562
  onReady: this.handleReady,
3518
3563
  onPlay: this.handlePlay,
@@ -3573,16 +3618,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3573
3618
 
3574
3619
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3575
3620
 
3576
- 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); }; }
3577
-
3578
3621
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3579
3622
 
3580
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3581
-
3582
- 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; } }
3583
-
3584
3623
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3585
3624
 
3625
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3626
+
3586
3627
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3587
3628
 
3588
3629
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3594,12 +3635,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3594
3635
  function createSinglePlayer(activePlayer) {
3595
3636
  var _class, _temp;
3596
3637
 
3597
- return _temp = _class = /*#__PURE__*/function (_Component) {
3638
+ return _temp = _class =
3639
+ /*#__PURE__*/
3640
+ function (_Component) {
3598
3641
  _inherits(SinglePlayer, _Component);
3599
3642
 
3600
- var _super = _createSuper(SinglePlayer);
3601
-
3602
3643
  function SinglePlayer() {
3644
+ var _getPrototypeOf2;
3645
+
3603
3646
  var _this;
3604
3647
 
3605
3648
  _classCallCheck(this, SinglePlayer);
@@ -3608,7 +3651,7 @@ function createSinglePlayer(activePlayer) {
3608
3651
  args[_key] = arguments[_key];
3609
3652
  }
3610
3653
 
3611
- _this = _super.call.apply(_super, [this].concat(args));
3654
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3612
3655
 
3613
3656
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3614
3657
 
@@ -3676,12 +3719,12 @@ function createSinglePlayer(activePlayer) {
3676
3719
  height = _this$props.height,
3677
3720
  Wrapper = _this$props.wrapper;
3678
3721
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3679
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3722
+ return _react["default"].createElement(Wrapper, _extends({
3680
3723
  style: _objectSpread({}, style, {
3681
3724
  width: width,
3682
3725
  height: height
3683
3726
  })
3684
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3727
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3685
3728
  ref: this.ref,
3686
3729
  activePlayer: activePlayer,
3687
3730
  config: this.config
@@ -3727,31 +3770,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3727
3770
 
3728
3771
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3729
3772
 
3730
- 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); }; }
3731
-
3732
3773
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3733
3774
 
3734
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3735
-
3736
- 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; } }
3737
-
3738
3775
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3739
3776
 
3777
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3778
+
3740
3779
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
3741
3780
 
3742
3781
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3743
3782
 
3744
3783
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3745
3784
 
3746
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3747
-
3748
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3785
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3749
3786
 
3750
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3787
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3751
3788
 
3752
- 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; }
3753
-
3754
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
3789
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
3755
3790
 
3756
3791
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3757
3792
 
@@ -3776,12 +3811,14 @@ function parsePlaylist(url) {
3776
3811
  return {};
3777
3812
  }
3778
3813
 
3779
- var YouTube = /*#__PURE__*/function (_Component) {
3814
+ var YouTube =
3815
+ /*#__PURE__*/
3816
+ function (_Component) {
3780
3817
  _inherits(YouTube, _Component);
3781
3818
 
3782
- var _super = _createSuper(YouTube);
3783
-
3784
3819
  function YouTube() {
3820
+ var _getPrototypeOf2;
3821
+
3785
3822
  var _this;
3786
3823
 
3787
3824
  _classCallCheck(this, YouTube);
@@ -3790,7 +3827,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3790
3827
  args[_key] = arguments[_key];
3791
3828
  }
3792
3829
 
3793
- _this = _super.call.apply(_super, [this].concat(args));
3830
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3794
3831
 
3795
3832
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3796
3833
 
@@ -3978,9 +4015,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
3978
4015
  height: '100%',
3979
4016
  display: display
3980
4017
  };
3981
- return /*#__PURE__*/_react["default"].createElement("div", {
4018
+ return _react["default"].createElement("div", {
3982
4019
  style: style
3983
- }, /*#__PURE__*/_react["default"].createElement("div", {
4020
+ }, _react["default"].createElement("div", {
3984
4021
  ref: this.ref
3985
4022
  }));
3986
4023
  }
@@ -4003,7 +4040,7 @@ exports["default"] = _default;
4003
4040
  });
4004
4041
 
4005
4042
  unwrapExports(YouTube_1);
4006
- YouTube_1.YouTube;
4043
+ var YouTube_2 = YouTube_1.YouTube;
4007
4044
 
4008
4045
  var SoundCloud_1 = createCommonjsModule(function (module, exports) {
4009
4046
 
@@ -4036,16 +4073,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4036
4073
 
4037
4074
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4038
4075
 
4039
- 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); }; }
4040
-
4041
4076
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4042
4077
 
4043
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4044
-
4045
- 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; } }
4046
-
4047
4078
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4048
4079
 
4080
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4081
+
4049
4082
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4050
4083
 
4051
4084
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4054,14 +4087,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
4054
4087
 
4055
4088
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
4056
4089
  var SDK_GLOBAL = 'SC';
4057
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
4090
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
4058
4091
 
4059
- var SoundCloud = /*#__PURE__*/function (_Component) {
4092
+ var SoundCloud =
4093
+ /*#__PURE__*/
4094
+ function (_Component) {
4060
4095
  _inherits(SoundCloud, _Component);
4061
4096
 
4062
- var _super = _createSuper(SoundCloud);
4063
-
4064
4097
  function SoundCloud() {
4098
+ var _getPrototypeOf2;
4099
+
4065
4100
  var _this;
4066
4101
 
4067
4102
  _classCallCheck(this, SoundCloud);
@@ -4070,7 +4105,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4070
4105
  args[_key] = arguments[_key];
4071
4106
  }
4072
4107
 
4073
- _this = _super.call.apply(_super, [this].concat(args));
4108
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
4074
4109
 
4075
4110
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4076
4111
 
@@ -4191,7 +4226,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4191
4226
  height: '100%',
4192
4227
  display: display
4193
4228
  };
4194
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4229
+ return _react["default"].createElement("iframe", {
4195
4230
  ref: this.ref,
4196
4231
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4197
4232
  style: style,
@@ -4220,7 +4255,7 @@ exports["default"] = _default;
4220
4255
  });
4221
4256
 
4222
4257
  unwrapExports(SoundCloud_1);
4223
- SoundCloud_1.SoundCloud;
4258
+ var SoundCloud_2 = SoundCloud_1.SoundCloud;
4224
4259
 
4225
4260
  var Vimeo_1 = createCommonjsModule(function (module, exports) {
4226
4261
 
@@ -4253,16 +4288,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4253
4288
 
4254
4289
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4255
4290
 
4256
- 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); }; }
4257
-
4258
4291
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4259
4292
 
4260
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4261
-
4262
- 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; } }
4263
-
4264
4293
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4265
4294
 
4295
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4296
+
4266
4297
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4267
4298
 
4268
4299
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4274,12 +4305,14 @@ var SDK_GLOBAL = 'Vimeo';
4274
4305
  var MATCH_URL = /vimeo\.com\/.+/;
4275
4306
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4276
4307
 
4277
- var Vimeo = /*#__PURE__*/function (_Component) {
4308
+ var Vimeo =
4309
+ /*#__PURE__*/
4310
+ function (_Component) {
4278
4311
  _inherits(Vimeo, _Component);
4279
4312
 
4280
- var _super = _createSuper(Vimeo);
4281
-
4282
4313
  function Vimeo() {
4314
+ var _getPrototypeOf2;
4315
+
4283
4316
  var _this;
4284
4317
 
4285
4318
  _classCallCheck(this, Vimeo);
@@ -4288,7 +4321,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4288
4321
  args[_key] = arguments[_key];
4289
4322
  }
4290
4323
 
4291
- _this = _super.call.apply(_super, [this].concat(args));
4324
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4292
4325
 
4293
4326
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4294
4327
 
@@ -4445,7 +4478,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4445
4478
  overflow: 'hidden',
4446
4479
  display: display
4447
4480
  };
4448
- return /*#__PURE__*/_react["default"].createElement("div", {
4481
+ return _react["default"].createElement("div", {
4449
4482
  key: this.props.url,
4450
4483
  ref: this.ref,
4451
4484
  style: style
@@ -4476,7 +4509,7 @@ exports["default"] = _default;
4476
4509
  });
4477
4510
 
4478
4511
  unwrapExports(Vimeo_1);
4479
- Vimeo_1.Vimeo;
4512
+ var Vimeo_2 = Vimeo_1.Vimeo;
4480
4513
 
4481
4514
  var Facebook_1 = createCommonjsModule(function (module, exports) {
4482
4515
 
@@ -4505,16 +4538,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4505
4538
 
4506
4539
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4507
4540
 
4508
- 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); }; }
4509
-
4510
4541
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4511
4542
 
4512
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4513
-
4514
- 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; } }
4515
-
4516
4543
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4517
4544
 
4545
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4546
+
4518
4547
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4519
4548
 
4520
4549
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4527,12 +4556,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4527
4556
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4528
4557
  var PLAYER_ID_PREFIX = 'facebook-player-';
4529
4558
 
4530
- var Facebook = /*#__PURE__*/function (_Component) {
4559
+ var Facebook =
4560
+ /*#__PURE__*/
4561
+ function (_Component) {
4531
4562
  _inherits(Facebook, _Component);
4532
4563
 
4533
- var _super = _createSuper(Facebook);
4534
-
4535
4564
  function Facebook() {
4565
+ var _getPrototypeOf2;
4566
+
4536
4567
  var _this;
4537
4568
 
4538
4569
  _classCallCheck(this, Facebook);
@@ -4541,7 +4572,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4541
4572
  args[_key] = arguments[_key];
4542
4573
  }
4543
4574
 
4544
- _this = _super.call.apply(_super, [this].concat(args));
4575
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4545
4576
 
4546
4577
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4547
4578
 
@@ -4657,7 +4688,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4657
4688
  width: '100%',
4658
4689
  height: '100%'
4659
4690
  };
4660
- return /*#__PURE__*/_react["default"].createElement("div", {
4691
+ return _react["default"].createElement("div", {
4661
4692
  style: style,
4662
4693
  id: this.playerID,
4663
4694
  className: "fb-video",
@@ -4688,7 +4719,7 @@ exports["default"] = _default;
4688
4719
  });
4689
4720
 
4690
4721
  unwrapExports(Facebook_1);
4691
- Facebook_1.Facebook;
4722
+ var Facebook_2 = Facebook_1.Facebook;
4692
4723
 
4693
4724
  var Streamable_1 = createCommonjsModule(function (module, exports) {
4694
4725
 
@@ -4717,16 +4748,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4717
4748
 
4718
4749
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4719
4750
 
4720
- 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); }; }
4721
-
4722
4751
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4723
4752
 
4724
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4725
-
4726
- 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; } }
4727
-
4728
4753
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4729
4754
 
4755
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4756
+
4730
4757
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4731
4758
 
4732
4759
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4737,12 +4764,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4737
4764
  var SDK_GLOBAL = 'playerjs';
4738
4765
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4739
4766
 
4740
- var Streamable = /*#__PURE__*/function (_Component) {
4767
+ var Streamable =
4768
+ /*#__PURE__*/
4769
+ function (_Component) {
4741
4770
  _inherits(Streamable, _Component);
4742
4771
 
4743
- var _super = _createSuper(Streamable);
4744
-
4745
4772
  function Streamable() {
4773
+ var _getPrototypeOf2;
4774
+
4746
4775
  var _this;
4747
4776
 
4748
4777
  _classCallCheck(this, Streamable);
@@ -4751,7 +4780,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4751
4780
  args[_key] = arguments[_key];
4752
4781
  }
4753
4782
 
4754
- _this = _super.call.apply(_super, [this].concat(args));
4783
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4755
4784
 
4756
4785
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4757
4786
 
@@ -4871,7 +4900,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4871
4900
  width: '100%',
4872
4901
  height: '100%'
4873
4902
  };
4874
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4903
+ return _react["default"].createElement("iframe", {
4875
4904
  ref: this.ref,
4876
4905
  src: "https://streamable.com/o/".concat(id),
4877
4906
  frameBorder: "0",
@@ -4899,7 +4928,7 @@ exports["default"] = _default;
4899
4928
  });
4900
4929
 
4901
4930
  unwrapExports(Streamable_1);
4902
- Streamable_1.Streamable;
4931
+ var Streamable_2 = Streamable_1.Streamable;
4903
4932
 
4904
4933
  var Wistia_1 = createCommonjsModule(function (module, exports) {
4905
4934
 
@@ -4932,16 +4961,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4932
4961
 
4933
4962
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4934
4963
 
4935
- 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); }; }
4936
-
4937
4964
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4938
4965
 
4939
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4940
-
4941
- 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; } }
4942
-
4943
4966
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4944
4967
 
4968
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4969
+
4945
4970
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4946
4971
 
4947
4972
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4952,48 +4977,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4952
4977
  var SDK_GLOBAL = 'Wistia';
4953
4978
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4954
4979
 
4955
- var Wistia = /*#__PURE__*/function (_Component) {
4980
+ var Wistia =
4981
+ /*#__PURE__*/
4982
+ function (_Component) {
4956
4983
  _inherits(Wistia, _Component);
4957
4984
 
4958
- var _super = _createSuper(Wistia);
4959
-
4960
4985
  function Wistia() {
4986
+ var _getPrototypeOf2;
4987
+
4961
4988
  var _this;
4962
4989
 
4963
4990
  _classCallCheck(this, Wistia);
4964
4991
 
4965
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
4966
- _args[_key] = arguments[_key];
4992
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4993
+ args[_key] = arguments[_key];
4967
4994
  }
4968
4995
 
4969
- _this = _super.call.apply(_super, [this].concat(_args));
4996
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
4970
4997
 
4971
4998
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4972
4999
 
4973
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
4974
- var _this$props;
4975
-
4976
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
4977
- });
4978
-
4979
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
4980
- var _this$props2;
4981
-
4982
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
4983
- });
4984
-
4985
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
4986
- var _this$props3;
4987
-
4988
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
4989
- });
4990
-
4991
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
4992
- var _this$props4;
4993
-
4994
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
4995
- });
4996
-
4997
5000
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
4998
5001
  _this.callPlayer('mute');
4999
5002
  });
@@ -5015,13 +5018,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
5015
5018
  value: function load(url) {
5016
5019
  var _this2 = this;
5017
5020
 
5018
- var _this$props5 = this.props,
5019
- playing = _this$props5.playing,
5020
- muted = _this$props5.muted,
5021
- controls = _this$props5.controls,
5022
- _onReady = _this$props5.onReady,
5023
- config = _this$props5.config,
5024
- onError = _this$props5.onError;
5021
+ var _this$props = this.props,
5022
+ playing = _this$props.playing,
5023
+ muted = _this$props.muted,
5024
+ controls = _this$props.controls,
5025
+ _onReady = _this$props.onReady,
5026
+ onPlay = _this$props.onPlay,
5027
+ onPause = _this$props.onPause,
5028
+ onSeek = _this$props.onSeek,
5029
+ onEnded = _this$props.onEnded,
5030
+ config = _this$props.config,
5031
+ onError = _this$props.onError;
5025
5032
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
5026
5033
  window._wq = window._wq || [];
5027
5034
 
@@ -5038,28 +5045,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5038
5045
 
5039
5046
  _this2.unbind();
5040
5047
 
5041
- _this2.player.bind('play', _this2.onPlay);
5048
+ _this2.player.bind('play', onPlay);
5042
5049
 
5043
- _this2.player.bind('pause', _this2.onPause);
5050
+ _this2.player.bind('pause', onPause);
5044
5051
 
5045
- _this2.player.bind('seek', _this2.onSeek);
5052
+ _this2.player.bind('seek', onSeek);
5046
5053
 
5047
- _this2.player.bind('end', _this2.onEnded);
5054
+ _this2.player.bind('end', onEnded);
5048
5055
 
5049
5056
  _onReady();
5050
5057
  }
5051
5058
  });
5052
5059
  }, onError);
5053
5060
  }
5054
- }, {
5055
- key: "unbind",
5056
- value: function unbind() {
5057
- this.player.unbind('play', this.onPlay);
5058
- this.player.unbind('pause', this.onPause);
5059
- this.player.unbind('seek', this.onSeek);
5060
- this.player.unbind('end', this.onEnded);
5061
- } // Proxy methods to prevent listener leaks
5062
-
5063
5061
  }, {
5064
5062
  key: "play",
5065
5063
  value: function play() {
@@ -5070,6 +5068,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
5070
5068
  value: function pause() {
5071
5069
  this.callPlayer('pause');
5072
5070
  }
5071
+ }, {
5072
+ key: "unbind",
5073
+ value: function unbind() {
5074
+ var _this$props2 = this.props,
5075
+ onPlay = _this$props2.onPlay,
5076
+ onPause = _this$props2.onPause,
5077
+ onSeek = _this$props2.onSeek,
5078
+ onEnded = _this$props2.onEnded;
5079
+ this.player.unbind('play', onPlay);
5080
+ this.player.unbind('pause', onPause);
5081
+ this.player.unbind('seek', onSeek);
5082
+ this.player.unbind('end', onEnded);
5083
+ }
5073
5084
  }, {
5074
5085
  key: "stop",
5075
5086
  value: function stop() {
@@ -5115,7 +5126,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
5115
5126
  width: '100%',
5116
5127
  height: '100%'
5117
5128
  };
5118
- return /*#__PURE__*/_react["default"].createElement("div", {
5129
+ return _react["default"].createElement("div", {
5119
5130
  key: id,
5120
5131
  className: className,
5121
5132
  style: style
@@ -5142,7 +5153,7 @@ exports["default"] = _default;
5142
5153
  });
5143
5154
 
5144
5155
  unwrapExports(Wistia_1);
5145
- Wistia_1.Wistia;
5156
+ var Wistia_2 = Wistia_1.Wistia;
5146
5157
 
5147
5158
  var Twitch_1 = createCommonjsModule(function (module, exports) {
5148
5159
 
@@ -5175,16 +5186,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5175
5186
 
5176
5187
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5177
5188
 
5178
- 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); }; }
5179
-
5180
5189
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5181
5190
 
5182
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5183
-
5184
- 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; } }
5185
-
5186
5191
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5187
5192
 
5193
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5194
+
5188
5195
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5189
5196
 
5190
5197
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5197,12 +5204,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5197
5204
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5198
5205
  var PLAYER_ID_PREFIX = 'twitch-player-';
5199
5206
 
5200
- var Twitch = /*#__PURE__*/function (_Component) {
5207
+ var Twitch =
5208
+ /*#__PURE__*/
5209
+ function (_Component) {
5201
5210
  _inherits(Twitch, _Component);
5202
5211
 
5203
- var _super = _createSuper(Twitch);
5204
-
5205
5212
  function Twitch() {
5213
+ var _getPrototypeOf2;
5214
+
5206
5215
  var _this;
5207
5216
 
5208
5217
  _classCallCheck(this, Twitch);
@@ -5211,7 +5220,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5211
5220
  args[_key] = arguments[_key];
5212
5221
  }
5213
5222
 
5214
- _this = _super.call.apply(_super, [this].concat(args));
5223
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5215
5224
 
5216
5225
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5217
5226
 
@@ -5332,7 +5341,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5332
5341
  width: '100%',
5333
5342
  height: '100%'
5334
5343
  };
5335
- return /*#__PURE__*/_react["default"].createElement("div", {
5344
+ return _react["default"].createElement("div", {
5336
5345
  style: style,
5337
5346
  id: this.playerID
5338
5347
  });
@@ -5358,7 +5367,7 @@ exports["default"] = _default;
5358
5367
  });
5359
5368
 
5360
5369
  unwrapExports(Twitch_1);
5361
- Twitch_1.Twitch;
5370
+ var Twitch_2 = Twitch_1.Twitch;
5362
5371
 
5363
5372
  var DailyMotion_1 = createCommonjsModule(function (module, exports) {
5364
5373
 
@@ -5385,15 +5394,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5385
5394
 
5386
5395
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5387
5396
 
5388
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5389
-
5390
- 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."); }
5391
-
5392
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5397
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5393
5398
 
5394
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5399
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5395
5400
 
5396
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
5401
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
5397
5402
 
5398
5403
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5399
5404
 
@@ -5403,16 +5408,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5403
5408
 
5404
5409
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5405
5410
 
5406
- 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); }; }
5407
-
5408
5411
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5409
5412
 
5410
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5411
-
5412
- 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; } }
5413
-
5414
5413
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5415
5414
 
5415
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5416
+
5416
5417
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5417
5418
 
5418
5419
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5424,12 +5425,14 @@ var SDK_GLOBAL = 'DM';
5424
5425
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5425
5426
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5426
5427
 
5427
- var DailyMotion = /*#__PURE__*/function (_Component) {
5428
+ var DailyMotion =
5429
+ /*#__PURE__*/
5430
+ function (_Component) {
5428
5431
  _inherits(DailyMotion, _Component);
5429
5432
 
5430
- var _super = _createSuper(DailyMotion);
5431
-
5432
5433
  function DailyMotion() {
5434
+ var _getPrototypeOf2;
5435
+
5433
5436
  var _this;
5434
5437
 
5435
5438
  _classCallCheck(this, DailyMotion);
@@ -5438,7 +5441,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5438
5441
  args[_key] = arguments[_key];
5439
5442
  }
5440
5443
 
5441
- _this = _super.call.apply(_super, [this].concat(args));
5444
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5442
5445
 
5443
5446
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5444
5447
 
@@ -5567,9 +5570,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5567
5570
  height: '100%',
5568
5571
  display: display
5569
5572
  };
5570
- return /*#__PURE__*/_react["default"].createElement("div", {
5573
+ return _react["default"].createElement("div", {
5571
5574
  style: style
5572
- }, /*#__PURE__*/_react["default"].createElement("div", {
5575
+ }, _react["default"].createElement("div", {
5573
5576
  ref: this.ref
5574
5577
  }));
5575
5578
  }
@@ -5594,7 +5597,7 @@ exports["default"] = _default;
5594
5597
  });
5595
5598
 
5596
5599
  unwrapExports(DailyMotion_1);
5597
- DailyMotion_1.DailyMotion;
5600
+ var DailyMotion_2 = DailyMotion_1.DailyMotion;
5598
5601
 
5599
5602
  var Mixcloud_1 = createCommonjsModule(function (module, exports) {
5600
5603
 
@@ -5627,16 +5630,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5627
5630
 
5628
5631
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5629
5632
 
5630
- 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); }; }
5631
-
5632
5633
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5633
5634
 
5634
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5635
-
5636
- 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; } }
5637
-
5638
5635
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5639
5636
 
5637
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5638
+
5640
5639
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5641
5640
 
5642
5641
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5647,12 +5646,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5647
5646
  var SDK_GLOBAL = 'Mixcloud';
5648
5647
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5649
5648
 
5650
- var Mixcloud = /*#__PURE__*/function (_Component) {
5649
+ var Mixcloud =
5650
+ /*#__PURE__*/
5651
+ function (_Component) {
5651
5652
  _inherits(Mixcloud, _Component);
5652
5653
 
5653
- var _super = _createSuper(Mixcloud);
5654
-
5655
5654
  function Mixcloud() {
5655
+ var _getPrototypeOf2;
5656
+
5656
5657
  var _this;
5657
5658
 
5658
5659
  _classCallCheck(this, Mixcloud);
@@ -5661,7 +5662,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5661
5662
  args[_key] = arguments[_key];
5662
5663
  }
5663
5664
 
5664
- _this = _super.call.apply(_super, [this].concat(args));
5665
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5665
5666
 
5666
5667
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5667
5668
 
@@ -5764,7 +5765,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5764
5765
  })); // We have to give the iframe a key here to prevent a
5765
5766
  // weird dialog appearing when loading a new track
5766
5767
 
5767
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5768
+ return _react["default"].createElement("iframe", {
5768
5769
  key: id,
5769
5770
  ref: this.ref,
5770
5771
  style: style,
@@ -5793,7 +5794,7 @@ exports["default"] = _default;
5793
5794
  });
5794
5795
 
5795
5796
  unwrapExports(Mixcloud_1);
5796
- Mixcloud_1.Mixcloud;
5797
+ var Mixcloud_2 = Mixcloud_1.Mixcloud;
5797
5798
 
5798
5799
  var FilePlayer_1 = createCommonjsModule(function (module, exports) {
5799
5800
 
@@ -5824,33 +5825,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5824
5825
 
5825
5826
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5826
5827
 
5827
- 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); }; }
5828
-
5829
5828
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5830
5829
 
5831
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5832
-
5833
- 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; } }
5834
-
5835
5830
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5836
5831
 
5832
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5833
+
5837
5834
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
5838
5835
 
5839
5836
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5840
5837
 
5841
5838
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5842
5839
 
5843
- 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; } } }; }
5844
-
5845
- 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); }
5846
-
5847
- 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; }
5848
-
5849
5840
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5850
5841
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5851
5842
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5852
5843
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5853
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5844
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5854
5845
  var HLS_GLOBAL = 'Hls';
5855
5846
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5856
5847
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5859,11 +5850,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5859
5850
 
5860
5851
  function canPlay(url) {
5861
5852
  if (url instanceof Array) {
5862
- var _iterator = _createForOfIteratorHelper(url),
5863
- _step;
5853
+ var _iteratorNormalCompletion = true;
5854
+ var _didIteratorError = false;
5855
+ var _iteratorError = undefined;
5864
5856
 
5865
5857
  try {
5866
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5858
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5867
5859
  var item = _step.value;
5868
5860
 
5869
5861
  if (typeof item === 'string' && canPlay(item)) {
@@ -5875,9 +5867,18 @@ function canPlay(url) {
5875
5867
  }
5876
5868
  }
5877
5869
  } catch (err) {
5878
- _iterator.e(err);
5870
+ _didIteratorError = true;
5871
+ _iteratorError = err;
5879
5872
  } finally {
5880
- _iterator.f();
5873
+ try {
5874
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5875
+ _iterator["return"]();
5876
+ }
5877
+ } finally {
5878
+ if (_didIteratorError) {
5879
+ throw _iteratorError;
5880
+ }
5881
+ }
5881
5882
  }
5882
5883
 
5883
5884
  return false;
@@ -5901,12 +5902,14 @@ function canEnablePIP(url) {
5901
5902
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5902
5903
  }
5903
5904
 
5904
- var FilePlayer = /*#__PURE__*/function (_Component) {
5905
+ var FilePlayer =
5906
+ /*#__PURE__*/
5907
+ function (_Component) {
5905
5908
  _inherits(FilePlayer, _Component);
5906
5909
 
5907
- var _super = _createSuper(FilePlayer);
5908
-
5909
5910
  function FilePlayer() {
5911
+ var _getPrototypeOf2;
5912
+
5910
5913
  var _this;
5911
5914
 
5912
5915
  _classCallCheck(this, FilePlayer);
@@ -5915,7 +5918,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5915
5918
  _args[_key] = arguments[_key];
5916
5919
  }
5917
5920
 
5918
- _this = _super.call.apply(_super, [this].concat(_args));
5921
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5919
5922
 
5920
5923
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5921
5924
  var _this$props;
@@ -6002,19 +6005,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6002
6005
 
6003
6006
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
6004
6007
  if (typeof source === 'string') {
6005
- return /*#__PURE__*/_react["default"].createElement("source", {
6008
+ return _react["default"].createElement("source", {
6006
6009
  key: index,
6007
6010
  src: source
6008
6011
  });
6009
6012
  }
6010
6013
 
6011
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
6014
+ return _react["default"].createElement("source", _extends({
6012
6015
  key: index
6013
6016
  }, source));
6014
6017
  });
6015
6018
 
6016
6019
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
6017
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
6020
+ return _react["default"].createElement("track", _extends({
6018
6021
  key: index
6019
6022
  }, track));
6020
6023
  });
@@ -6052,10 +6055,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6052
6055
  key: "componentWillUnmount",
6053
6056
  value: function componentWillUnmount() {
6054
6057
  this.removeListeners(this.player);
6055
-
6056
- if (this.hls) {
6057
- this.hls.destroy();
6058
- }
6059
6058
  }
6060
6059
  }, {
6061
6060
  key: "addListeners",
@@ -6186,6 +6185,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6186
6185
  value: function stop() {
6187
6186
  this.player.removeAttribute('src');
6188
6187
 
6188
+ if (this.hls) {
6189
+ this.hls.destroy();
6190
+ }
6191
+
6189
6192
  if (this.dash) {
6190
6193
  this.dash.reset();
6191
6194
  }
@@ -6297,7 +6300,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6297
6300
  width: width === 'auto' ? width : '100%',
6298
6301
  height: height === 'auto' ? height : '100%'
6299
6302
  };
6300
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6303
+ return _react["default"].createElement(Element, _extends({
6301
6304
  ref: this.ref,
6302
6305
  src: this.getSource(url),
6303
6306
  style: style,
@@ -6327,7 +6330,7 @@ exports["default"] = _default;
6327
6330
  });
6328
6331
 
6329
6332
  unwrapExports(FilePlayer_1);
6330
- FilePlayer_1.FilePlayer;
6333
+ var FilePlayer_2 = FilePlayer_1.FilePlayer;
6331
6334
 
6332
6335
  var players = createCommonjsModule(function (module, exports) {
6333
6336
 
@@ -6387,16 +6390,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6387
6390
 
6388
6391
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6389
6392
 
6390
- 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); }; }
6391
-
6392
6393
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6393
6394
 
6394
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6395
-
6396
- 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; } }
6397
-
6398
6395
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6399
6396
 
6397
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6398
+
6400
6399
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
6401
6400
 
6402
6401
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6405,12 +6404,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6405
6404
 
6406
6405
  var ICON_SIZE = '64px';
6407
6406
 
6408
- var Preview = /*#__PURE__*/function (_Component) {
6407
+ var Preview =
6408
+ /*#__PURE__*/
6409
+ function (_Component) {
6409
6410
  _inherits(Preview, _Component);
6410
6411
 
6411
- var _super = _createSuper(Preview);
6412
-
6413
6412
  function Preview() {
6413
+ var _getPrototypeOf2;
6414
+
6414
6415
  var _this;
6415
6416
 
6416
6417
  _classCallCheck(this, Preview);
@@ -6419,7 +6420,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6419
6420
  args[_key] = arguments[_key];
6420
6421
  }
6421
6422
 
6422
- _this = _super.call.apply(_super, [this].concat(args));
6423
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6423
6424
 
6424
6425
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6425
6426
 
@@ -6517,15 +6518,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6517
6518
  }
6518
6519
  };
6519
6520
 
6520
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6521
+ var defaultPlayIcon = _react["default"].createElement("div", {
6521
6522
  style: styles.shadow,
6522
6523
  className: "react-player__shadow"
6523
- }, /*#__PURE__*/_react["default"].createElement("div", {
6524
+ }, _react["default"].createElement("div", {
6524
6525
  style: styles.playIcon,
6525
6526
  className: "react-player__play-icon"
6526
6527
  }));
6527
6528
 
6528
- return /*#__PURE__*/_react["default"].createElement("div", {
6529
+ return _react["default"].createElement("div", {
6529
6530
  style: styles.preview,
6530
6531
  className: "react-player__preview",
6531
6532
  onClick: onClick
@@ -6562,12 +6563,6 @@ var _Player = _interopRequireDefault(Player_1);
6562
6563
 
6563
6564
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6564
6565
 
6565
- 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; } } }; }
6566
-
6567
- 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); }
6568
-
6569
- 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; }
6570
-
6571
6566
  var PRELOAD_PLAYERS = [{
6572
6567
  Player: YouTube_1.YouTube,
6573
6568
  configKey: 'youtube',
@@ -6588,16 +6583,16 @@ var PRELOAD_PLAYERS = [{
6588
6583
 
6589
6584
  function renderPreloadPlayers(url, controls, config) {
6590
6585
  var players = [];
6591
-
6592
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6593
- _step;
6586
+ var _iteratorNormalCompletion = true;
6587
+ var _didIteratorError = false;
6588
+ var _iteratorError = undefined;
6594
6589
 
6595
6590
  try {
6596
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6591
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6597
6592
  var player = _step.value;
6598
6593
 
6599
6594
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6600
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6595
+ players.push(_react["default"].createElement(_Player["default"], {
6601
6596
  key: player.Player.displayName,
6602
6597
  activePlayer: player.Player,
6603
6598
  url: player.url,
@@ -6609,9 +6604,18 @@ function renderPreloadPlayers(url, controls, config) {
6609
6604
  }
6610
6605
  }
6611
6606
  } catch (err) {
6612
- _iterator.e(err);
6607
+ _didIteratorError = true;
6608
+ _iteratorError = err;
6613
6609
  } finally {
6614
- _iterator.f();
6610
+ try {
6611
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6612
+ _iterator["return"]();
6613
+ }
6614
+ } finally {
6615
+ if (_didIteratorError) {
6616
+ throw _iteratorError;
6617
+ }
6618
+ }
6615
6619
  }
6616
6620
 
6617
6621
  return players;
@@ -6735,17 +6739,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6735
6739
 
6736
6740
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6737
6741
 
6738
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6742
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6739
6743
 
6740
- 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."); }
6744
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6741
6745
 
6742
- 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); }
6746
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6743
6747
 
6744
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6745
-
6746
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6747
-
6748
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6748
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
6749
6749
 
6750
6750
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6751
6751
 
@@ -6753,16 +6753,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6753
6753
 
6754
6754
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6755
6755
 
6756
- 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); }; }
6757
-
6758
6756
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6759
6757
 
6760
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6761
-
6762
- 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; } }
6763
-
6764
6758
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6765
6759
 
6760
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6761
+
6766
6762
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
6767
6763
 
6768
6764
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6772,12 +6768,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6772
6768
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6773
6769
  var customPlayers = [];
6774
6770
 
6775
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6771
+ var ReactPlayer =
6772
+ /*#__PURE__*/
6773
+ function (_Component) {
6776
6774
  _inherits(ReactPlayer, _Component);
6777
6775
 
6778
- var _super = _createSuper(ReactPlayer);
6779
-
6780
6776
  function ReactPlayer() {
6777
+ var _getPrototypeOf2;
6778
+
6781
6779
  var _this;
6782
6780
 
6783
6781
  _classCallCheck(this, ReactPlayer);
@@ -6786,7 +6784,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6786
6784
  args[_key] = arguments[_key];
6787
6785
  }
6788
6786
 
6789
- _this = _super.call.apply(_super, [this].concat(args));
6787
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6790
6788
 
6791
6789
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6792
6790
 
@@ -6897,7 +6895,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6897
6895
  key: "renderActivePlayer",
6898
6896
  value: function renderActivePlayer(url, activePlayer) {
6899
6897
  if (!url) return null;
6900
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6898
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6901
6899
  key: activePlayer.displayName,
6902
6900
  ref: this.activePlayerRef,
6903
6901
  config: this.config,
@@ -6934,14 +6932,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6934
6932
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6935
6933
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6936
6934
 
6937
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6935
+ var preview = _react["default"].createElement(_Preview["default"], {
6938
6936
  url: url,
6939
6937
  light: light,
6940
6938
  playIcon: playIcon,
6941
6939
  onClick: this.handleClickPreview
6942
6940
  });
6943
6941
 
6944
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6942
+ return _react["default"].createElement(Wrapper, _extends({
6945
6943
  ref: this.wrapperRef,
6946
6944
  style: _objectSpread({}, style, {
6947
6945
  width: width,
@@ -7263,8 +7261,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7263
7261
  var duration = player.getDuration();
7264
7262
  var queue = Math.floor(duration / 10);
7265
7263
  var segment = Math.floor(current / queue);
7266
- Beam.report_beam_video('Ready', main_18, duration, current, segment);
7267
- Segment.report_video_event('Video Ready', main_18, duration, current, segment);
7264
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
7265
+ Segment.report_video_event('Video Ready', main_16, duration, current, segment);
7268
7266
  //autoplay
7269
7267
 
7270
7268
  //Small pause before starting next video
@@ -7284,8 +7282,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7284
7282
  var queue = Math.floor(duration / 10);
7285
7283
  var segment = Math.floor(current / queue);
7286
7284
 
7287
- Beam.report_beam_video('End', main_18, duration, current, segment);
7288
- Segment.report_video_event('Video End', main_18, duration, current, segment);
7285
+ Beam.report_beam_video('End', main_16, duration, current, segment);
7286
+ Segment.report_video_event('Video End', main_16, duration, current, segment);
7289
7287
  setEndReported(true);
7290
7288
  clearInterval(intervalID);
7291
7289
  }
@@ -7335,8 +7333,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7335
7333
  var queue = Math.floor(duration / 10);
7336
7334
  var segment = Math.floor(current / queue);
7337
7335
  if (!queueProgress.includes(segment)) {
7338
- Beam.report_beam_video('Segment', main_18, duration, current, segment);
7339
- Segment.report_video_event('Video Segment', main_18, duration, current, segment);
7336
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
7337
+ Segment.report_video_event('Video Segment', main_16, duration, current, segment);
7340
7338
  queueProgress.push(segment);
7341
7339
  }
7342
7340
  };
@@ -7349,8 +7347,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7349
7347
  var queue = Math.floor(duration / 10);
7350
7348
  var segment = Math.floor(current / queue);
7351
7349
 
7352
- Beam.report_beam_video('Play', main_18, duration, current, segment);
7353
- Segment.report_video_event('Video Play', main_18, duration, current, segment);
7350
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
7351
+ Segment.report_video_event('Video Play', main_16, duration, current, segment);
7354
7352
 
7355
7353
  if (!playReported) {
7356
7354
  setPlayReported(true);
@@ -7368,8 +7366,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7368
7366
  var queue = Math.floor(duration / 10);
7369
7367
  var segment = Math.floor(current / queue);
7370
7368
 
7371
- Beam.report_beam_video('Pause', main_18, duration, current, segment);
7372
- Segment.report_video_event('Video Pause', main_18, duration, current, segment);
7369
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
7370
+ Segment.report_video_event('Video Pause', main_16, duration, current, segment);
7373
7371
  };
7374
7372
 
7375
7373
  // Youtube Options
@@ -7487,7 +7485,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7487
7485
  React__default.createElement(
7488
7486
  'div',
7489
7487
  { className: 'vid-text' },
7490
- Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7488
+ Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7491
7489
  ),
7492
7490
  React__default.createElement(
7493
7491
  'style',
@@ -7497,14 +7495,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7497
7495
  );
7498
7496
  };
7499
7497
 
7500
- var Poll$1 = function Poll(_ref) {
7501
- var node = _ref.node;
7502
- _ref.client;
7503
- _ref.pageview;
7504
- _ref.videoAccountIDs;
7505
- var onVote = _ref.onVote;
7506
- _ref.showVotes;
7507
- var getSerializers = _ref.getSerializers;
7498
+ var Poll = function Poll(_ref) {
7499
+ var node = _ref.node,
7500
+ client = _ref.client,
7501
+ pageview = _ref.pageview,
7502
+ videoAccountIDs = _ref.videoAccountIDs,
7503
+ onVote = _ref.onVote,
7504
+ _ref$showVotes = _ref.showVotes,
7505
+ getSerializers = _ref.getSerializers;
7508
7506
 
7509
7507
  var _useState = useState(null),
7510
7508
  _useState2 = _slicedToArray(_useState, 2),
@@ -7638,22 +7636,22 @@ _export(_export.S, 'Object', {
7638
7636
  }
7639
7637
  });
7640
7638
 
7641
- var values$1 = _core.Object.values;
7639
+ var values = _core.Object.values;
7642
7640
 
7643
- var values = createCommonjsModule(function (module) {
7644
- module.exports = { "default": values$1, __esModule: true };
7641
+ var values$1 = createCommonjsModule(function (module) {
7642
+ module.exports = { "default": values, __esModule: true };
7645
7643
  });
7646
7644
 
7647
- var _Object$values = unwrapExports(values);
7645
+ var _Object$values = unwrapExports(values$1);
7648
7646
 
7649
- var Poll = function Poll(_ref) {
7650
- var node = _ref.node;
7651
- _ref.client;
7652
- _ref.pageview;
7653
- _ref.videoAccountIDs;
7654
- var onVote = _ref.onVote;
7655
- _ref.showVotes;
7656
- var getSerializers = _ref.getSerializers;
7647
+ var Poll$1 = function Poll(_ref) {
7648
+ var node = _ref.node,
7649
+ client = _ref.client,
7650
+ pageview = _ref.pageview,
7651
+ videoAccountIDs = _ref.videoAccountIDs,
7652
+ onVote = _ref.onVote,
7653
+ _ref$showVotes = _ref.showVotes,
7654
+ getSerializers = _ref.getSerializers;
7657
7655
 
7658
7656
  var _useState = useState(null),
7659
7657
  _useState2 = _slicedToArray(_useState, 2),
@@ -7805,7 +7803,7 @@ var Poll = function Poll(_ref) {
7805
7803
  );
7806
7804
  };
7807
7805
 
7808
- var numberOfPaginations = main_42 ? 4 : 10;
7806
+ var numberOfPaginations = main_35 ? 4 : 10;
7809
7807
 
7810
7808
  var Quiz = function Quiz(_ref) {
7811
7809
  var quizzes = _ref.quizzes,
@@ -7924,33 +7922,33 @@ var Quiz = function Quiz(_ref) {
7924
7922
 
7925
7923
  var renderPagination = function renderPagination() {
7926
7924
  return React__default.createElement(
7927
- Pagination,
7928
- { className: 'p-0 m-0', size: main_42 && 'sm' },
7929
- React__default.createElement(Pagination.First, { onClick: function onClick() {
7925
+ Pagination$1,
7926
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7927
+ React__default.createElement(Pagination$1.First, { onClick: function onClick() {
7930
7928
  return changePage('first');
7931
7929
  }, disabled: currentPage === 1 }),
7932
- React__default.createElement(Pagination.Prev, { onClick: function onClick() {
7930
+ React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
7933
7931
  return changePage('prev');
7934
7932
  }, disabled: currentPage === 1 }),
7935
- React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
7933
+ React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
7936
7934
  return renderNewPages('prev');
7937
7935
  }, disabled: !validateIndex(startIndex - numberOfPaginations) }),
7938
7936
  pages.map(function (page) {
7939
7937
  return React__default.createElement(
7940
- Pagination.Item,
7938
+ Pagination$1.Item,
7941
7939
  { key: page, active: page === currentPage, onClick: function onClick() {
7942
7940
  return changePage(page);
7943
7941
  } },
7944
7942
  page
7945
7943
  );
7946
7944
  }),
7947
- React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
7945
+ React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
7948
7946
  return renderNewPages('next');
7949
7947
  }, disabled: !validateIndex(startIndex + numberOfPaginations) }),
7950
- React__default.createElement(Pagination.Next, { onClick: function onClick() {
7948
+ React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
7951
7949
  return changePage('next');
7952
7950
  }, disabled: currentPage === pageCount }),
7953
- React__default.createElement(Pagination.Last, { onClick: function onClick() {
7951
+ React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
7954
7952
  return changePage('last');
7955
7953
  }, disabled: currentPage === pageCount })
7956
7954
  );
@@ -8095,20 +8093,19 @@ var Leads = function Leads(_ref) {
8095
8093
  );
8096
8094
  };
8097
8095
 
8098
- var Slideshow = function Slideshow(_ref) {
8096
+ var Slideshow$1 = function Slideshow(_ref) {
8099
8097
  var slides = _ref.node.slides,
8100
8098
  client = _ref.client,
8101
8099
  pageview = _ref.pageview,
8102
8100
  getSerializers = _ref.getSerializers;
8103
8101
 
8104
8102
  var router = useRouter();
8105
- var carouselRef = useRef(null);
8106
8103
  var pageNumber = router && router.asPath && router.asPath.split('?page=')[1];
8107
8104
 
8108
8105
  var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
8109
8106
  _useState2 = _slicedToArray(_useState, 2),
8110
- carouselIndex = _useState2[0];
8111
- _useState2[1];
8107
+ carouselIndex = _useState2[0],
8108
+ setCarouselIndex = _useState2[1];
8112
8109
 
8113
8110
  // useEffect(() => {
8114
8111
  // let itemArr = router.asPath.split('?page=')
@@ -8129,14 +8126,12 @@ var Slideshow = function Slideshow(_ref) {
8129
8126
  var pageNumber = selectedIndex + 1;
8130
8127
  var href = '/view/' + router.query.url + '?page=' + pageNumber;
8131
8128
  router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
8132
- if (carouselRef) {
8133
- carouselRef.current.scrollIntoView();
8134
- }
8129
+ setCarouselIndex(selectedIndex);
8135
8130
  };
8136
8131
 
8137
8132
  return React__default.createElement(
8138
8133
  'div',
8139
- { ref: carouselRef, className: 'mt-3 mb-4' },
8134
+ { className: 'mt-3 mb-4' },
8140
8135
  React__default.createElement(
8141
8136
  Carousel,
8142
8137
  { activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
@@ -8149,9 +8144,25 @@ var Slideshow = function Slideshow(_ref) {
8149
8144
  'a',
8150
8145
  { href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
8151
8146
  React__default.createElement(
8152
- LazyLoad,
8153
- null,
8154
- React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
8147
+ 'div',
8148
+ { className: 'embed-responsive embed-responsive-slide' },
8149
+ React__default.createElement(
8150
+ LazyLoad,
8151
+ null,
8152
+ React__default.createElement(
8153
+ 'picture',
8154
+ null,
8155
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8156
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8157
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8158
+ React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
8159
+ )
8160
+ ),
8161
+ React__default.createElement(
8162
+ 'style',
8163
+ { jsx: 'true' },
8164
+ '\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
8165
+ )
8155
8166
  )
8156
8167
  ),
8157
8168
  React__default.createElement(
@@ -8238,7 +8249,7 @@ var MultiMedia = function MultiMedia(props) {
8238
8249
  { xs: 12, md: 12 / medias.length, key: media._key },
8239
8250
  React__default.createElement(
8240
8251
  'a',
8241
- _extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8252
+ _extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8242
8253
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8243
8254
  React__default.createElement(
8244
8255
  'div',
@@ -8246,7 +8257,14 @@ var MultiMedia = function MultiMedia(props) {
8246
8257
  imageBox && React__default.createElement(
8247
8258
  LazyLoad,
8248
8259
  { once: true },
8249
- React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
8260
+ React__default.createElement(
8261
+ 'picture',
8262
+ null,
8263
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8264
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8265
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
8266
+ React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
8267
+ )
8250
8268
  ),
8251
8269
  media.caption && React__default.createElement(
8252
8270
  'span',
@@ -8526,7 +8544,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8526
8544
 
8527
8545
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8528
8546
  if (biography) {
8529
- return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8547
+ return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
8530
8548
  }
8531
8549
  };
8532
8550
 
@@ -8612,7 +8630,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8612
8630
  //console.log('useLayoutEffect')
8613
8631
  if (!firstLoad) {
8614
8632
  setUpArrowClicked(false);
8615
- if (main_43) {
8633
+ if (main_36) {
8616
8634
  grabLoadedAds();
8617
8635
  } else {
8618
8636
  scrollToArticle();
@@ -8636,7 +8654,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8636
8654
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8637
8655
  if (pageview) pageview(path);
8638
8656
 
8639
- if (!main_43) {
8657
+ if (!main_36) {
8640
8658
  lib_3.getGoogletag().then(function (googletag) {
8641
8659
  if (window.googletag && googletag.pubadsReady) {
8642
8660
  lib_3.refresh();
@@ -8644,7 +8662,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8644
8662
  });
8645
8663
  }
8646
8664
  //Refresh leaderboard ad on mobile
8647
- if (main_43) {
8665
+ if (main_36) {
8648
8666
  var leaderboardSlotId = '';
8649
8667
  lib_3.getGoogletag().then(function (googletag) {
8650
8668
  if (window.googletag && googletag.pubadsReady) {
@@ -8713,7 +8731,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8713
8731
  React__default.createElement(
8714
8732
  'div',
8715
8733
  { className: 'ad-box', style: { textAlign: 'center' } },
8716
- main_43 && Ads.map(function (ad, index) {
8734
+ main_36 && Ads.map(function (ad, index) {
8717
8735
  if (index === 0) {
8718
8736
  return React__default.createElement(
8719
8737
  'div',
@@ -8804,7 +8822,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8804
8822
  React__default.createElement(
8805
8823
  'div',
8806
8824
  { className: 'mt-2 mb-2' },
8807
- React__default.createElement(BlockContent, _extends({
8825
+ React__default.createElement(BlockContent, _extends$1({
8808
8826
  serializers: getSerializers,
8809
8827
  videoAccountIDs: accountIDs,
8810
8828
  blocks: article.text,
@@ -8835,7 +8853,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8835
8853
  React__default.createElement(
8836
8854
  'div',
8837
8855
  { className: 'ad-box', style: { textAlign: 'center' } },
8838
- main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8856
+ main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8839
8857
  if (innerIndex === 0) {
8840
8858
  return React__default.createElement(
8841
8859
  'div',
@@ -8922,7 +8940,7 @@ var FigureImage = React__default.memo(function (_ref2) {
8922
8940
  React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8923
8941
  React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8924
8942
  React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
8925
- React__default.createElement('img', _extends({
8943
+ React__default.createElement('img', _extends$1({
8926
8944
  style: figureImageStyle,
8927
8945
  className: 'figure-image',
8928
8946
  src: urlFor({ source: node, client: client }),
@@ -9037,7 +9055,7 @@ var FigureComponent = function FigureComponent(props) {
9037
9055
  React__default.Fragment,
9038
9056
  null,
9039
9057
  React__default.createElement(
9040
- Figure$2,
9058
+ Figure$1$1,
9041
9059
  { className: '' + class_name, style: figureStyle },
9042
9060
  link ? React__default.createElement(
9043
9061
  'a',
@@ -9084,6 +9102,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
9084
9102
  }, [ref]);
9085
9103
  }
9086
9104
 
9105
+ var FigureImage$1 = React__default.memo(function (_ref) {
9106
+ var imagesCount = _ref.imagesCount,
9107
+ image = _ref.image,
9108
+ client = _ref.client,
9109
+ imgAlt = _ref.imgAlt,
9110
+ link = _ref.link,
9111
+ handleClickFigure = _ref.handleClickFigure;
9112
+
9113
+ return React__default.createElement(
9114
+ 'picture',
9115
+ null,
9116
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9117
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9118
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9119
+ React__default.createElement('img', _extends$1({
9120
+ 'images-count': imagesCount,
9121
+ className: 'multi-figure-image',
9122
+ src: urlFor({ source: image, client: client }),
9123
+ alt: imgAlt ? imgAlt : 'multi figure'
9124
+ }, !link && {
9125
+ onClick: function onClick() {
9126
+ return handleClickFigure(image, client);
9127
+ }
9128
+ }))
9129
+ );
9130
+ });
9131
+
9087
9132
  var MultiFigure = function MultiFigure(props) {
9088
9133
  var images = props.node.images,
9089
9134
  client = props.client,
@@ -9103,9 +9148,9 @@ var MultiFigure = function MultiFigure(props) {
9103
9148
  var lightboxContainer = useRef(null);
9104
9149
  useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
9105
9150
 
9106
- var FigureCaption = function FigureCaption(_ref) {
9107
- var caption = _ref.caption,
9108
- imgcaption = _ref.imgcaption;
9151
+ var FigureCaption = function FigureCaption(_ref2) {
9152
+ var caption = _ref2.caption,
9153
+ imgcaption = _ref2.imgcaption;
9109
9154
 
9110
9155
  if (imgcaption && imgcaption.length > 0) {
9111
9156
  return React__default.createElement(
@@ -9118,6 +9163,11 @@ var MultiFigure = function MultiFigure(props) {
9118
9163
  } else return null;
9119
9164
  };
9120
9165
 
9166
+ var handleClickFigure = useCallback(function (image, client) {
9167
+ setOpenImgSrc(urlFor({ source: image, client: client }));
9168
+ setOpenImg(true);
9169
+ }, [client]);
9170
+
9121
9171
  if (images && images.length > 0) {
9122
9172
  return React__default.createElement(
9123
9173
  'div',
@@ -9131,14 +9181,14 @@ var MultiFigure = function MultiFigure(props) {
9131
9181
  { xs: 12, md: 12 / images.length, key: index },
9132
9182
  image.link ? React__default.createElement(
9133
9183
  'a',
9134
- _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9184
+ _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9135
9185
  React__default.createElement(
9136
9186
  'div',
9137
9187
  { className: 'multi-figure-image-container' },
9138
9188
  React__default.createElement(
9139
9189
  LazyLoad,
9140
9190
  { once: true },
9141
- React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
9191
+ React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
9142
9192
  ),
9143
9193
  React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9144
9194
  )
@@ -9148,16 +9198,7 @@ var MultiFigure = function MultiFigure(props) {
9148
9198
  React__default.createElement(
9149
9199
  LazyLoad,
9150
9200
  { once: true },
9151
- React__default.createElement('img', {
9152
- 'images-count': images.length,
9153
- className: 'multi-figure-image',
9154
- src: urlFor({ source: image.asset, client: client }),
9155
- alt: image.alt,
9156
- onClick: function onClick() {
9157
- setOpenImgSrc(urlFor({ source: image, client: client }));
9158
- setOpenImg(true);
9159
- }
9160
- })
9201
+ React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
9161
9202
  ),
9162
9203
  React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
9163
9204
  )
@@ -9172,7 +9213,7 @@ var MultiFigure = function MultiFigure(props) {
9172
9213
  React__default.createElement(
9173
9214
  'style',
9174
9215
  { jsx: 'true' },
9175
- '\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
9216
+ '\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
9176
9217
  )
9177
9218
  );
9178
9219
  }
@@ -9223,7 +9264,7 @@ exports.__esModule = true;
9223
9264
 
9224
9265
 
9225
9266
 
9226
- var _extends3 = _interopRequireDefault(_extends$1);
9267
+ var _extends3 = _interopRequireDefault(_extends$2);
9227
9268
 
9228
9269
 
9229
9270
 
@@ -9392,9 +9433,9 @@ var ScriptTag = function (_Component) {
9392
9433
 
9393
9434
  // The 'isHydrating' prop must NOT be passed to the script tag
9394
9435
  // eslint-disable-next-line no-unused-vars
9395
- var _props3 = this.props;
9396
- _props3.isHydrating;
9397
- var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
9436
+ var _props3 = this.props,
9437
+ isHydrating = _props3.isHydrating,
9438
+ tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
9398
9439
 
9399
9440
  return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
9400
9441
  return _this2.domRef = tag;
@@ -9467,7 +9508,7 @@ var FormAssembly = function FormAssembly(props) {
9467
9508
  useEffect(function () {
9468
9509
  if (FormID) {
9469
9510
  var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
9470
- var anonymousID = analytics.user() && analytics.user().anonymousId();
9511
+ var anonymousID = typeof analytics !== 'undefined' && analytics.user() && analytics.user().anonymousId();
9471
9512
  if (anonymousID && needSegmentSupport) {
9472
9513
  src = src + '?tfa_1=' + anonymousID;
9473
9514
  }
@@ -9536,7 +9577,7 @@ var BlockTable = function BlockTable(props) {
9536
9577
  return React__default.createElement(
9537
9578
  'div',
9538
9579
  { className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
9539
- React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
9580
+ React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
9540
9581
  );
9541
9582
  })
9542
9583
  );
@@ -9664,7 +9705,7 @@ var getSerializers = function getSerializers() {
9664
9705
  var node = _ref6.node;
9665
9706
  var slides = node.slides;
9666
9707
 
9667
- return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
9708
+ return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
9668
9709
  },
9669
9710
  sidebar: function sidebar(_ref7) {
9670
9711
  var node = _ref7.node;
@@ -9702,12 +9743,12 @@ var getSerializers = function getSerializers() {
9702
9743
  poll: function poll(_ref13) {
9703
9744
  var node = _ref13.node;
9704
9745
 
9705
- return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
9746
+ return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
9706
9747
  },
9707
9748
  pollMultiChoice: function pollMultiChoice(_ref14) {
9708
9749
  var node = _ref14.node;
9709
9750
 
9710
- return React__default.createElement(Poll, {
9751
+ return React__default.createElement(Poll$1, {
9711
9752
  node: node,
9712
9753
  client: client,
9713
9754
  pageview: pageview,
@@ -9733,7 +9774,7 @@ var getSerializers = function getSerializers() {
9733
9774
  slideshows: function slideshows(_ref17) {
9734
9775
  var node = _ref17.node;
9735
9776
 
9736
- return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
9777
+ return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
9737
9778
  },
9738
9779
  nativeAd: function nativeAd(_ref18) {
9739
9780
  var node = _ref18.node;