@mjhls/mjh-framework 1.0.715 → 1.0.717-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.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +24 -25
- package/dist/cjs/AD300x250x600.js +24 -25
- package/dist/cjs/AD728x90.js +27 -28
- package/dist/cjs/ADFloatingFooter.js +26 -27
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +26 -27
- package/dist/cjs/{ADInfeed-2c7a6dd8.js → ADInfeed-5a561d7c.js} +11 -13
- package/dist/cjs/ADSkyscraper.js +26 -27
- package/dist/cjs/ADSponsoredResources.js +26 -27
- package/dist/cjs/ADWebcast.js +26 -27
- package/dist/cjs/ADWelcome.js +30 -31
- package/dist/cjs/{ADlgInfeed-fb101797.js → ADlgInfeed-c50f81d4.js} +8 -9
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +16 -17
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +24 -27
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +334 -820
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +55 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-a863cf48.js → Dfp-ce7ac168.js} +30 -31
- package/dist/cjs/EventsDeck.js +132 -157
- package/dist/cjs/ExternalResources.js +76 -76
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +157 -0
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +71 -72
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +115 -123
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -105
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +51 -51
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +70 -73
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +46 -47
- package/dist/cjs/VideoSeriesListing.js +74 -75
- package/dist/cjs/View.js +239 -233
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/_object-to-array-5762f850.js +25 -0
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +76 -138
- package/dist/cjs/getSerializers.js +42 -41
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-27f9e7ef.js → index-45cdb0a1.js} +1201 -905
- package/dist/cjs/{index-5ad2b070.js → index-8bf6c863.js} +48 -30
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +133 -132
- package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +22 -22
- package/dist/esm/AD300x250x600.js +22 -22
- package/dist/esm/AD728x90.js +25 -25
- package/dist/esm/ADFloatingFooter.js +24 -24
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +24 -24
- package/dist/esm/{ADInfeed-a9a35a5c.js → ADInfeed-bb62ee44.js} +7 -7
- package/dist/esm/ADSkyscraper.js +24 -24
- package/dist/esm/ADSponsoredResources.js +24 -24
- package/dist/esm/ADWebcast.js +24 -24
- package/dist/esm/ADWelcome.js +28 -28
- package/dist/esm/{ADlgInfeed-ce2e0e3a.js → ADlgInfeed-ef0a892e.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +21 -23
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +317 -799
- package/dist/esm/{AuthorComponent-c29a0075.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +49 -49
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-db06d7dc.js → Dfp-e9a07597.js} +20 -20
- package/dist/esm/EventsDeck.js +84 -102
- package/dist/esm/ExternalResources.js +71 -70
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +152 -0
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +38 -38
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +102 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +273 -273
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-fab3e851.js → SocialSearchComponent-a2ae84d1.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +47 -46
- package/dist/esm/TemplateNormal.js +67 -67
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +61 -60
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +40 -40
- package/dist/esm/VideoSeriesListing.js +68 -68
- package/dist/esm/View.js +224 -214
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-9383b394.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-d4d262ee.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-pie-71ac75a4.js → _object-pie-33c40e79.js} +1 -1
- package/dist/esm/{_object-sap-6a003379.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/_object-to-array-7e804fce.js +23 -0
- package/dist/esm/{_set-species-0b056cff.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-9bef3b62.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-acd1cc47.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-1b116089.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-9a008401.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ddd52c29.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-b24a54f2.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-c2b1c9d7.js → extends-eb69e8ac.js} +2 -2
- package/dist/esm/getRelatedArticle.js +71 -133
- package/dist/esm/getSerializers.js +42 -41
- package/dist/esm/{getTargeting-b1a7be54.js → getTargeting-7211f12c.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-db270302.js → index-3427650c.js} +1142 -839
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-669ff425.js → index-a9e53f80.js} +43 -24
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +110 -109
- package/dist/esm/{inherits-18d4a779.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{keys-9bb7939c.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-34468155.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-8a4f19f7.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-5212fee7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-64422756.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-ca37144a.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/BrowseVideosListing.js +0 -123
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/esm/BrowseVideosListing.js +0 -117
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import { _ as _slicedToArray } from './slicedToArray-34468155.js';
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
-
import { l as lib_3 } from './index-669ff425.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
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 } from './extends-eb69e8ac.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-fb9b6e8f.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-a9e53f80.js';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import Row from 'react-bootstrap/Row';
|
|
11
|
+
import Col from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
+
import { L as LazyLoad } from './index-5f9f807a.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';
|
|
12
19
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-64422756.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
19
24
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
25
|
+
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
26
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
27
|
+
import { u as util } from './util-7700fc59.js';
|
|
28
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
29
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
22
30
|
import Pagination from 'react-bootstrap/Pagination';
|
|
23
31
|
import Button$1 from 'react-bootstrap/Button';
|
|
24
|
-
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
25
|
-
import DFPAdSlot from './AdSlot.js';
|
|
26
|
-
import Row from 'react-bootstrap/Row';
|
|
27
|
-
import Col from 'react-bootstrap/Col';
|
|
28
32
|
import Head from 'next/head';
|
|
29
|
-
import
|
|
30
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
31
|
-
import Figure$2 from 'react-bootstrap/Figure';
|
|
33
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
32
34
|
|
|
33
35
|
var urlFor = function urlFor(source, builder) {
|
|
34
36
|
return builder.image(source).auto('format');
|
|
@@ -69,20 +71,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
71
|
if (pageview) pageview(router.asPath);
|
|
70
72
|
}, [router]);
|
|
71
73
|
|
|
72
|
-
return
|
|
74
|
+
return React__default.createElement(
|
|
73
75
|
'div',
|
|
74
76
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
77
|
+
React__default.createElement(
|
|
76
78
|
Carousel,
|
|
77
79
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
80
|
return onChangeSlide(selectedIndex, router);
|
|
79
81
|
}, interval: null },
|
|
80
82
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
83
|
+
return React__default.createElement(
|
|
82
84
|
Carousel.Item,
|
|
83
85
|
{ key: slide._key },
|
|
84
|
-
|
|
85
|
-
slide.caption &&
|
|
86
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
87
|
+
slide.caption && React__default.createElement(
|
|
86
88
|
'p',
|
|
87
89
|
{ className: 'p-2' },
|
|
88
90
|
slide.caption
|
|
@@ -93,18 +95,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
93
95
|
);
|
|
94
96
|
};
|
|
95
97
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
var isArray = Array.isArray;
|
|
99
|
+
var keyList = Object.keys;
|
|
100
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
99
101
|
|
|
100
102
|
var fastDeepEqual = function equal(a, b) {
|
|
101
103
|
if (a === b) return true;
|
|
102
104
|
|
|
103
105
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
104
|
-
|
|
106
|
+
var arrA = isArray(a)
|
|
107
|
+
, arrB = isArray(b)
|
|
108
|
+
, i
|
|
109
|
+
, length
|
|
110
|
+
, key;
|
|
105
111
|
|
|
106
|
-
|
|
107
|
-
if (Array.isArray(a)) {
|
|
112
|
+
if (arrA && arrB) {
|
|
108
113
|
length = a.length;
|
|
109
114
|
if (length != b.length) return false;
|
|
110
115
|
for (i = length; i-- !== 0;)
|
|
@@ -112,29 +117,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
112
117
|
return true;
|
|
113
118
|
}
|
|
114
119
|
|
|
120
|
+
if (arrA != arrB) return false;
|
|
115
121
|
|
|
122
|
+
var dateA = a instanceof Date
|
|
123
|
+
, dateB = b instanceof Date;
|
|
124
|
+
if (dateA != dateB) return false;
|
|
125
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
116
126
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (
|
|
127
|
+
var regexpA = a instanceof RegExp
|
|
128
|
+
, regexpB = b instanceof RegExp;
|
|
129
|
+
if (regexpA != regexpB) return false;
|
|
130
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
120
131
|
|
|
121
|
-
keys =
|
|
132
|
+
var keys = keyList(a);
|
|
122
133
|
length = keys.length;
|
|
123
|
-
|
|
134
|
+
|
|
135
|
+
if (length !== keyList(b).length)
|
|
136
|
+
return false;
|
|
124
137
|
|
|
125
138
|
for (i = length; i-- !== 0;)
|
|
126
|
-
if (!
|
|
139
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
127
140
|
|
|
128
141
|
for (i = length; i-- !== 0;) {
|
|
129
|
-
|
|
130
|
-
|
|
142
|
+
key = keys[i];
|
|
131
143
|
if (!equal(a[key], b[key])) return false;
|
|
132
144
|
}
|
|
133
145
|
|
|
134
146
|
return true;
|
|
135
147
|
}
|
|
136
148
|
|
|
137
|
-
// true if both NaN, false otherwise
|
|
138
149
|
return a!==a && b!==b;
|
|
139
150
|
};
|
|
140
151
|
|
|
@@ -672,14 +683,14 @@ function coerce(val) {
|
|
|
672
683
|
return val;
|
|
673
684
|
}
|
|
674
685
|
});
|
|
675
|
-
debug.coerce;
|
|
676
|
-
debug.disable;
|
|
677
|
-
debug.enable;
|
|
678
|
-
debug.enabled;
|
|
679
|
-
debug.humanize;
|
|
680
|
-
debug.names;
|
|
681
|
-
debug.skips;
|
|
682
|
-
debug.formatters;
|
|
686
|
+
var debug_1 = debug.coerce;
|
|
687
|
+
var debug_2 = debug.disable;
|
|
688
|
+
var debug_3 = debug.enable;
|
|
689
|
+
var debug_4 = debug.enabled;
|
|
690
|
+
var debug_5 = debug.humanize;
|
|
691
|
+
var debug_6 = debug.names;
|
|
692
|
+
var debug_7 = debug.skips;
|
|
693
|
+
var debug_8 = debug.formatters;
|
|
683
694
|
|
|
684
695
|
var browser = createCommonjsModule(function (module, exports) {
|
|
685
696
|
/**
|
|
@@ -868,13 +879,13 @@ function localstorage() {
|
|
|
868
879
|
} catch (e) {}
|
|
869
880
|
}
|
|
870
881
|
});
|
|
871
|
-
browser.log;
|
|
872
|
-
browser.formatArgs;
|
|
873
|
-
browser.save;
|
|
874
|
-
browser.load;
|
|
875
|
-
browser.useColors;
|
|
876
|
-
browser.storage;
|
|
877
|
-
browser.colors;
|
|
882
|
+
var browser_1 = browser.log;
|
|
883
|
+
var browser_2 = browser.formatArgs;
|
|
884
|
+
var browser_3 = browser.save;
|
|
885
|
+
var browser_4 = browser.load;
|
|
886
|
+
var browser_5 = browser.useColors;
|
|
887
|
+
var browser_6 = browser.storage;
|
|
888
|
+
var browser_7 = browser.colors;
|
|
878
889
|
|
|
879
890
|
// MIT lisence
|
|
880
891
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1149,14 +1160,14 @@ function init (debug) {
|
|
|
1149
1160
|
|
|
1150
1161
|
exports.enable(load());
|
|
1151
1162
|
});
|
|
1152
|
-
node.init;
|
|
1153
|
-
node.log;
|
|
1154
|
-
node.formatArgs;
|
|
1155
|
-
node.save;
|
|
1156
|
-
node.load;
|
|
1157
|
-
node.useColors;
|
|
1158
|
-
node.colors;
|
|
1159
|
-
node.inspectOpts;
|
|
1163
|
+
var node_1 = node.init;
|
|
1164
|
+
var node_2 = node.log;
|
|
1165
|
+
var node_3 = node.formatArgs;
|
|
1166
|
+
var node_4 = node.save;
|
|
1167
|
+
var node_5 = node.load;
|
|
1168
|
+
var node_6 = node.useColors;
|
|
1169
|
+
var node_7 = node.colors;
|
|
1170
|
+
var node_8 = node.inspectOpts;
|
|
1160
1171
|
|
|
1161
1172
|
var src = createCommonjsModule(function (module) {
|
|
1162
1173
|
/**
|
|
@@ -1557,239 +1568,199 @@ module.exports = exports['default'];
|
|
|
1557
1568
|
|
|
1558
1569
|
var youTubePlayer = unwrapExports(dist);
|
|
1559
1570
|
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1562
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1563
|
-
|
|
1564
|
-
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); } }
|
|
1565
|
-
|
|
1566
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1567
|
-
|
|
1568
|
-
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); }
|
|
1569
|
-
|
|
1570
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1571
|
-
|
|
1572
|
-
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); }; }
|
|
1573
|
-
|
|
1574
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1575
|
-
|
|
1576
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1571
|
+
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; }; }();
|
|
1577
1572
|
|
|
1578
|
-
function
|
|
1573
|
+
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; };
|
|
1579
1574
|
|
|
1580
|
-
function
|
|
1575
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
1576
|
|
|
1582
|
-
function
|
|
1577
|
+
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; }
|
|
1583
1578
|
|
|
1584
|
-
function
|
|
1579
|
+
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; }
|
|
1585
1580
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1590
|
-
* @param {Object}
|
|
1591
|
-
* @param {Object} props
|
|
1581
|
+
/**
|
|
1582
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1583
|
+
*
|
|
1584
|
+
* @param {Object} prevProps
|
|
1585
|
+
* @param {Object} props
|
|
1592
1586
|
*/
|
|
1593
|
-
|
|
1594
1587
|
function shouldUpdateVideo(prevProps, props) {
|
|
1595
1588
|
// A changing video should always trigger an update
|
|
1596
1589
|
if (prevProps.videoId !== props.videoId) {
|
|
1597
1590
|
return true;
|
|
1598
|
-
}
|
|
1599
|
-
// update.
|
|
1600
|
-
|
|
1591
|
+
}
|
|
1601
1592
|
|
|
1593
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1594
|
+
// update.
|
|
1602
1595
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1603
1596
|
var vars = props.opts.playerVars || {};
|
|
1597
|
+
|
|
1604
1598
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1605
1599
|
}
|
|
1606
|
-
/**
|
|
1607
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1608
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1609
|
-
* player reset is necessary.
|
|
1610
|
-
*
|
|
1611
|
-
* @param {Object} opts
|
|
1612
|
-
*/
|
|
1613
|
-
|
|
1614
1600
|
|
|
1601
|
+
/**
|
|
1602
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1603
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1604
|
+
* player reset is necessary.
|
|
1605
|
+
*
|
|
1606
|
+
* @param {Object} opts
|
|
1607
|
+
*/
|
|
1615
1608
|
function filterResetOptions(opts) {
|
|
1616
|
-
return
|
|
1617
|
-
playerVars:
|
|
1609
|
+
return _extends({}, opts, {
|
|
1610
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1618
1611
|
autoplay: 0,
|
|
1619
1612
|
start: 0,
|
|
1620
1613
|
end: 0
|
|
1621
|
-
}
|
|
1614
|
+
})
|
|
1622
1615
|
});
|
|
1623
1616
|
}
|
|
1624
|
-
/**
|
|
1625
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1626
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1627
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1628
|
-
* those.
|
|
1629
|
-
*
|
|
1630
|
-
* @param {Object} prevProps
|
|
1631
|
-
* @param {Object} props
|
|
1632
|
-
*/
|
|
1633
|
-
|
|
1634
1617
|
|
|
1618
|
+
/**
|
|
1619
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1620
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1621
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1622
|
+
* those.
|
|
1623
|
+
*
|
|
1624
|
+
* @param {Object} prevProps
|
|
1625
|
+
* @param {Object} props
|
|
1626
|
+
*/
|
|
1635
1627
|
function shouldResetPlayer(prevProps, props) {
|
|
1636
1628
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1637
1629
|
}
|
|
1638
|
-
/**
|
|
1639
|
-
* Check whether a props change should result in an id or className update.
|
|
1640
|
-
*
|
|
1641
|
-
* @param {Object} prevProps
|
|
1642
|
-
* @param {Object} props
|
|
1643
|
-
*/
|
|
1644
|
-
|
|
1645
1630
|
|
|
1631
|
+
/**
|
|
1632
|
+
* Check whether a props change should result in an id or className update.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1636
|
+
*/
|
|
1646
1637
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1647
1638
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1648
1639
|
}
|
|
1649
1640
|
|
|
1650
|
-
var YouTube =
|
|
1641
|
+
var YouTube = function (_React$Component) {
|
|
1651
1642
|
_inherits(YouTube, _React$Component);
|
|
1652
1643
|
|
|
1653
|
-
var _super = _createSuper(YouTube);
|
|
1654
|
-
|
|
1655
|
-
/**
|
|
1656
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1657
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1658
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1659
|
-
*/
|
|
1660
1644
|
function YouTube(props) {
|
|
1661
|
-
var _this;
|
|
1662
|
-
|
|
1663
1645
|
_classCallCheck(this, YouTube);
|
|
1664
1646
|
|
|
1665
|
-
_this =
|
|
1647
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1666
1648
|
|
|
1667
|
-
|
|
1649
|
+
_this.onPlayerReady = function (event) {
|
|
1668
1650
|
return _this.props.onReady(event);
|
|
1669
|
-
}
|
|
1651
|
+
};
|
|
1670
1652
|
|
|
1671
|
-
|
|
1653
|
+
_this.onPlayerError = function (event) {
|
|
1672
1654
|
return _this.props.onError(event);
|
|
1673
|
-
}
|
|
1655
|
+
};
|
|
1674
1656
|
|
|
1675
|
-
|
|
1657
|
+
_this.onPlayerStateChange = function (event) {
|
|
1676
1658
|
_this.props.onStateChange(event);
|
|
1677
|
-
|
|
1678
1659
|
switch (event.data) {
|
|
1660
|
+
|
|
1679
1661
|
case YouTube.PlayerState.ENDED:
|
|
1680
1662
|
_this.props.onEnd(event);
|
|
1681
|
-
|
|
1682
1663
|
break;
|
|
1683
1664
|
|
|
1684
1665
|
case YouTube.PlayerState.PLAYING:
|
|
1685
1666
|
_this.props.onPlay(event);
|
|
1686
|
-
|
|
1687
1667
|
break;
|
|
1688
1668
|
|
|
1689
1669
|
case YouTube.PlayerState.PAUSED:
|
|
1690
1670
|
_this.props.onPause(event);
|
|
1691
|
-
|
|
1692
1671
|
break;
|
|
1693
1672
|
}
|
|
1694
|
-
}
|
|
1673
|
+
};
|
|
1695
1674
|
|
|
1696
|
-
|
|
1675
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1697
1676
|
return _this.props.onPlaybackRateChange(event);
|
|
1698
|
-
}
|
|
1677
|
+
};
|
|
1699
1678
|
|
|
1700
|
-
|
|
1679
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1701
1680
|
return _this.props.onPlaybackQualityChange(event);
|
|
1702
|
-
}
|
|
1681
|
+
};
|
|
1703
1682
|
|
|
1704
|
-
|
|
1683
|
+
_this.createPlayer = function () {
|
|
1705
1684
|
// do not attempt to create a player server-side, it won't work
|
|
1706
|
-
if (typeof document === 'undefined') return;
|
|
1707
|
-
|
|
1708
|
-
var playerOpts =
|
|
1685
|
+
if (typeof document === 'undefined') return;
|
|
1686
|
+
// create player
|
|
1687
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1709
1688
|
// preload the `videoId` video if one is already given
|
|
1710
1689
|
videoId: _this.props.videoId
|
|
1711
1690
|
});
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1691
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1692
|
+
// attach event handlers
|
|
1715
1693
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1716
|
-
|
|
1717
1694
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1718
|
-
|
|
1719
1695
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1720
|
-
|
|
1721
1696
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1722
|
-
|
|
1723
1697
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1724
|
-
}
|
|
1698
|
+
};
|
|
1725
1699
|
|
|
1726
|
-
|
|
1700
|
+
_this.resetPlayer = function () {
|
|
1727
1701
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1728
|
-
}
|
|
1702
|
+
};
|
|
1729
1703
|
|
|
1730
|
-
|
|
1704
|
+
_this.updatePlayer = function () {
|
|
1731
1705
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1732
1706
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1733
1707
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1734
1708
|
});
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1738
|
-
return _this.internalPlayer;
|
|
1739
|
-
});
|
|
1709
|
+
};
|
|
1740
1710
|
|
|
1741
|
-
|
|
1711
|
+
_this.updateVideo = function () {
|
|
1742
1712
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1743
1713
|
_this.internalPlayer.stopVideo();
|
|
1744
|
-
|
|
1745
1714
|
return;
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1715
|
+
}
|
|
1748
1716
|
|
|
1717
|
+
// set queueing options
|
|
1749
1718
|
var autoplay = false;
|
|
1750
1719
|
var opts = {
|
|
1751
1720
|
videoId: _this.props.videoId
|
|
1752
1721
|
};
|
|
1753
|
-
|
|
1754
1722
|
if ('playerVars' in _this.props.opts) {
|
|
1755
1723
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1756
|
-
|
|
1757
1724
|
if ('start' in _this.props.opts.playerVars) {
|
|
1758
1725
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1759
1726
|
}
|
|
1760
|
-
|
|
1761
1727
|
if ('end' in _this.props.opts.playerVars) {
|
|
1762
1728
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1763
1729
|
}
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1730
|
+
}
|
|
1766
1731
|
|
|
1732
|
+
// if autoplay is enabled loadVideoById
|
|
1767
1733
|
if (autoplay) {
|
|
1768
1734
|
_this.internalPlayer.loadVideoById(opts);
|
|
1769
|
-
|
|
1770
1735
|
return;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
|
|
1736
|
+
}
|
|
1737
|
+
// default behaviour just cues the video
|
|
1774
1738
|
_this.internalPlayer.cueVideoById(opts);
|
|
1775
|
-
}
|
|
1739
|
+
};
|
|
1776
1740
|
|
|
1777
|
-
|
|
1741
|
+
_this.refContainer = function (container) {
|
|
1778
1742
|
_this.container = container;
|
|
1779
|
-
}
|
|
1743
|
+
};
|
|
1780
1744
|
|
|
1781
1745
|
_this.container = null;
|
|
1782
1746
|
_this.internalPlayer = null;
|
|
1783
1747
|
return _this;
|
|
1784
1748
|
}
|
|
1785
1749
|
|
|
1750
|
+
/**
|
|
1751
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1752
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1753
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1754
|
+
*/
|
|
1755
|
+
|
|
1756
|
+
|
|
1786
1757
|
_createClass(YouTube, [{
|
|
1787
|
-
key:
|
|
1758
|
+
key: 'componentDidMount',
|
|
1788
1759
|
value: function componentDidMount() {
|
|
1789
1760
|
this.createPlayer();
|
|
1790
1761
|
}
|
|
1791
1762
|
}, {
|
|
1792
|
-
key:
|
|
1763
|
+
key: 'componentDidUpdate',
|
|
1793
1764
|
value: function componentDidUpdate(prevProps) {
|
|
1794
1765
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1795
1766
|
this.updatePlayer();
|
|
@@ -1804,58 +1775,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1804
1775
|
}
|
|
1805
1776
|
}
|
|
1806
1777
|
}, {
|
|
1807
|
-
key:
|
|
1778
|
+
key: 'componentWillUnmount',
|
|
1808
1779
|
value: function componentWillUnmount() {
|
|
1809
|
-
/**
|
|
1810
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1811
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1812
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1813
|
-
* this method isn't quick enough to reset the container element.
|
|
1780
|
+
/**
|
|
1781
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1782
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1783
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1784
|
+
* this method isn't quick enough to reset the container element.
|
|
1814
1785
|
*/
|
|
1815
1786
|
this.internalPlayer.destroy();
|
|
1816
1787
|
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
*
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1791
|
+
*
|
|
1792
|
+
* @param {Object} event
|
|
1793
|
+
* @param {Object} target - player object
|
|
1794
|
+
*/
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1799
|
+
*
|
|
1800
|
+
* @param {Object} event
|
|
1801
|
+
* @param {Integer} data - error type
|
|
1802
|
+
* @param {Object} target - player object
|
|
1803
|
+
*/
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1808
|
+
*
|
|
1809
|
+
* @param {Object} event
|
|
1810
|
+
* @param {Integer} data - status change type
|
|
1811
|
+
* @param {Object} target - actual YT player
|
|
1812
|
+
*/
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1817
|
+
*
|
|
1818
|
+
* @param {Object} event
|
|
1819
|
+
* @param {Float} data - playback rate
|
|
1820
|
+
* @param {Object} target - actual YT player
|
|
1821
|
+
*/
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1826
|
+
*
|
|
1827
|
+
* @param {Object} event
|
|
1828
|
+
* @param {String} data - playback quality
|
|
1829
|
+
* @param {Object} target - actual YT player
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1840
|
+
*/
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1845
|
+
* React should update this automatically but since the Youtube Player API
|
|
1846
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1847
|
+
*/
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1852
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1853
|
+
* Youtube Player API methods to update the video.
|
|
1822
1854
|
*/
|
|
1823
1855
|
|
|
1824
1856
|
}, {
|
|
1825
|
-
key:
|
|
1857
|
+
key: 'render',
|
|
1826
1858
|
value: function render() {
|
|
1827
|
-
return
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
id: this.props.id,
|
|
1831
|
-
|
|
1832
|
-
ref: this.refContainer
|
|
1833
|
-
}));
|
|
1859
|
+
return React__default.createElement(
|
|
1860
|
+
'div',
|
|
1861
|
+
{ className: this.props.containerClassName },
|
|
1862
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1863
|
+
);
|
|
1834
1864
|
}
|
|
1835
1865
|
}]);
|
|
1836
1866
|
|
|
1837
1867
|
return YouTube;
|
|
1838
|
-
}(
|
|
1839
|
-
|
|
1840
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1841
|
-
UNSTARTED: -1,
|
|
1842
|
-
ENDED: 0,
|
|
1843
|
-
PLAYING: 1,
|
|
1844
|
-
PAUSED: 2,
|
|
1845
|
-
BUFFERING: 3,
|
|
1846
|
-
CUED: 5
|
|
1847
|
-
});
|
|
1868
|
+
}(React__default.Component);
|
|
1848
1869
|
|
|
1849
1870
|
YouTube.propTypes = {
|
|
1850
1871
|
videoId: PropTypes.string,
|
|
1872
|
+
|
|
1851
1873
|
// custom ID for player element
|
|
1852
1874
|
id: PropTypes.string,
|
|
1875
|
+
|
|
1853
1876
|
// custom class name for player element
|
|
1854
1877
|
className: PropTypes.string,
|
|
1855
1878
|
// custom class name for player container element
|
|
1856
1879
|
containerClassName: PropTypes.string,
|
|
1880
|
+
|
|
1857
1881
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1858
1882
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1883
|
+
|
|
1859
1884
|
// event subscriptions
|
|
1860
1885
|
onReady: PropTypes.func,
|
|
1861
1886
|
onError: PropTypes.func,
|
|
@@ -1867,7 +1892,6 @@ YouTube.propTypes = {
|
|
|
1867
1892
|
onPlaybackQualityChange: PropTypes.func
|
|
1868
1893
|
};
|
|
1869
1894
|
YouTube.defaultProps = {
|
|
1870
|
-
videoId: null,
|
|
1871
1895
|
id: null,
|
|
1872
1896
|
className: null,
|
|
1873
1897
|
opts: {},
|
|
@@ -1881,6 +1905,14 @@ YouTube.defaultProps = {
|
|
|
1881
1905
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1882
1906
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1883
1907
|
};
|
|
1908
|
+
YouTube.PlayerState = {
|
|
1909
|
+
UNSTARTED: -1,
|
|
1910
|
+
ENDED: 0,
|
|
1911
|
+
PLAYING: 1,
|
|
1912
|
+
PAUSED: 2,
|
|
1913
|
+
BUFFERING: 3,
|
|
1914
|
+
CUED: 5
|
|
1915
|
+
};
|
|
1884
1916
|
|
|
1885
1917
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1886
1918
|
var url = _ref.url;
|
|
@@ -1980,11 +2012,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1980
2012
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1981
2013
|
};
|
|
1982
2014
|
|
|
1983
|
-
return
|
|
2015
|
+
return React__default.createElement(
|
|
1984
2016
|
'div',
|
|
1985
2017
|
{ id: 'fluid-video-container' },
|
|
1986
|
-
|
|
1987
|
-
|
|
2018
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2019
|
+
React__default.createElement(
|
|
1988
2020
|
'style',
|
|
1989
2021
|
{ jsx: 'true' },
|
|
1990
2022
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -1997,20 +2029,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1997
2029
|
content = _ref.content,
|
|
1998
2030
|
getSerializers = _ref.getSerializers;
|
|
1999
2031
|
|
|
2000
|
-
return
|
|
2032
|
+
return React__default.createElement(
|
|
2001
2033
|
'article',
|
|
2002
2034
|
{ className: 'sidebar' },
|
|
2003
|
-
|
|
2035
|
+
React__default.createElement(
|
|
2004
2036
|
'div',
|
|
2005
2037
|
null,
|
|
2006
|
-
|
|
2038
|
+
React__default.createElement(
|
|
2007
2039
|
'h3',
|
|
2008
2040
|
null,
|
|
2009
2041
|
caption
|
|
2010
2042
|
),
|
|
2011
|
-
|
|
2043
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2012
2044
|
),
|
|
2013
|
-
|
|
2045
|
+
React__default.createElement(
|
|
2014
2046
|
'style',
|
|
2015
2047
|
{ jsx: 'true' },
|
|
2016
2048
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2021,18 +2053,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2021
2053
|
var TableShow = function TableShow(_ref) {
|
|
2022
2054
|
var rows = _ref.rows;
|
|
2023
2055
|
|
|
2024
|
-
return
|
|
2056
|
+
return React__default.createElement(
|
|
2025
2057
|
Table,
|
|
2026
2058
|
{ bordered: true, hover: true, responsive: true },
|
|
2027
|
-
|
|
2059
|
+
React__default.createElement(
|
|
2028
2060
|
'tbody',
|
|
2029
2061
|
null,
|
|
2030
2062
|
rows && rows.map(function (row) {
|
|
2031
|
-
return
|
|
2063
|
+
return React__default.createElement(
|
|
2032
2064
|
'tr',
|
|
2033
2065
|
{ key: row._key },
|
|
2034
2066
|
row.cells && row.cells.map(function (cell, index) {
|
|
2035
|
-
return cell &&
|
|
2067
|
+
return cell && React__default.createElement(
|
|
2036
2068
|
'td',
|
|
2037
2069
|
{ key: index },
|
|
2038
2070
|
cell
|
|
@@ -2135,18 +2167,18 @@ var Media = function Media(_ref) {
|
|
|
2135
2167
|
margin: imageMargin
|
|
2136
2168
|
};
|
|
2137
2169
|
|
|
2138
|
-
return
|
|
2170
|
+
return React__default.createElement(
|
|
2139
2171
|
Figure$1,
|
|
2140
2172
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2141
|
-
|
|
2173
|
+
React__default.createElement(
|
|
2142
2174
|
'a',
|
|
2143
2175
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2144
|
-
|
|
2176
|
+
React__default.createElement(
|
|
2145
2177
|
LazyLoad,
|
|
2146
2178
|
{ once: true },
|
|
2147
|
-
|
|
2179
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2148
2180
|
),
|
|
2149
|
-
caption &&
|
|
2181
|
+
caption && React__default.createElement(
|
|
2150
2182
|
Figure$1.Caption,
|
|
2151
2183
|
{ className: 'media-caption' },
|
|
2152
2184
|
caption
|
|
@@ -2154,9 +2186,9 @@ var Media = function Media(_ref) {
|
|
|
2154
2186
|
)
|
|
2155
2187
|
);
|
|
2156
2188
|
} else if (caption && caption !== '') {
|
|
2157
|
-
return
|
|
2189
|
+
return React__default.createElement(
|
|
2158
2190
|
'a',
|
|
2159
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2191
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2160
2192
|
href: uploadDoc.asset.url + '?dl='
|
|
2161
2193
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2162
2194
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2171,10 +2203,10 @@ var Media = function Media(_ref) {
|
|
|
2171
2203
|
var IFrame = function IFrame(_ref) {
|
|
2172
2204
|
var url = _ref.url;
|
|
2173
2205
|
|
|
2174
|
-
return
|
|
2206
|
+
return React__default.createElement(
|
|
2175
2207
|
'div',
|
|
2176
2208
|
{ className: 'd-block text-center mb-3' },
|
|
2177
|
-
|
|
2209
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2178
2210
|
);
|
|
2179
2211
|
};
|
|
2180
2212
|
|
|
@@ -2209,7 +2241,7 @@ var Video = function Video(_ref) {
|
|
|
2209
2241
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2210
2242
|
//console.log('success:', success.ref)
|
|
2211
2243
|
var player = success.ref;
|
|
2212
|
-
if (_typeof
|
|
2244
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2213
2245
|
player.ima3.settings.debug = true;
|
|
2214
2246
|
if (targeting.content_placement && targeting.document_url) {
|
|
2215
2247
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2307,44 +2339,44 @@ var Video = function Video(_ref) {
|
|
|
2307
2339
|
|
|
2308
2340
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2309
2341
|
if (videoID) {
|
|
2310
|
-
return
|
|
2342
|
+
return React__default.createElement(
|
|
2311
2343
|
'div',
|
|
2312
2344
|
null,
|
|
2313
|
-
|
|
2345
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2314
2346
|
onSuccess: onVideoSuccess,
|
|
2315
2347
|
accountId: accountIDs.brightcove.accountId,
|
|
2316
2348
|
videoId: videoID,
|
|
2317
2349
|
playerId: accountIDs.brightcove.playerId,
|
|
2318
2350
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2319
2351
|
}),
|
|
2320
|
-
|
|
2352
|
+
React__default.createElement(
|
|
2321
2353
|
'style',
|
|
2322
2354
|
{ jsx: 'true' },
|
|
2323
2355
|
'\n .brightcove {\n position: relative;\n margin-bottom: 1rem;\n height: 100%;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n min-height: 411px;\n }\n '
|
|
2324
2356
|
)
|
|
2325
2357
|
);
|
|
2326
2358
|
} else if (playlistID) {
|
|
2327
|
-
return
|
|
2359
|
+
return React__default.createElement(
|
|
2328
2360
|
'div',
|
|
2329
2361
|
null,
|
|
2330
|
-
|
|
2362
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2331
2363
|
accountId: accountIDs.brightcove.accountId,
|
|
2332
2364
|
playlistId: playlistID,
|
|
2333
2365
|
playerId: accountIDs.brightcove.playerId,
|
|
2334
2366
|
onSuccess: onVideoSuccess,
|
|
2335
2367
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2336
2368
|
}),
|
|
2337
|
-
|
|
2369
|
+
React__default.createElement(
|
|
2338
2370
|
'style',
|
|
2339
2371
|
{ jsx: 'true' },
|
|
2340
2372
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2341
2373
|
)
|
|
2342
2374
|
);
|
|
2343
2375
|
} else if (experienceID) {
|
|
2344
|
-
return
|
|
2376
|
+
return React__default.createElement(
|
|
2345
2377
|
'div',
|
|
2346
2378
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2347
|
-
videoLoaded &&
|
|
2379
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2348
2380
|
);
|
|
2349
2381
|
}
|
|
2350
2382
|
return null;
|
|
@@ -2557,9 +2589,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2557
2589
|
});
|
|
2558
2590
|
|
|
2559
2591
|
unwrapExports(props);
|
|
2560
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2561
|
-
props.defaultProps;
|
|
2562
|
-
props.propTypes;
|
|
2592
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2593
|
+
var props_2 = props.defaultProps;
|
|
2594
|
+
var props_3 = props.propTypes;
|
|
2563
2595
|
|
|
2564
2596
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2565
2597
|
return isNonNullObject(value)
|
|
@@ -2724,17 +2756,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2724
2756
|
|
|
2725
2757
|
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; }
|
|
2726
2758
|
|
|
2727
|
-
function
|
|
2728
|
-
|
|
2729
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2759
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2730
2760
|
|
|
2731
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
2761
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2732
2762
|
|
|
2733
|
-
function
|
|
2734
|
-
|
|
2735
|
-
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; }
|
|
2736
|
-
|
|
2737
|
-
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; }
|
|
2763
|
+
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; }
|
|
2738
2764
|
|
|
2739
2765
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2740
2766
|
|
|
@@ -2864,12 +2890,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2864
2890
|
|
|
2865
2891
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2866
2892
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2867
|
-
|
|
2868
|
-
var
|
|
2869
|
-
|
|
2893
|
+
var _iteratorNormalCompletion = true;
|
|
2894
|
+
var _didIteratorError = false;
|
|
2895
|
+
var _iteratorError = undefined;
|
|
2870
2896
|
|
|
2871
2897
|
try {
|
|
2872
|
-
for (_iterator.
|
|
2898
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2873
2899
|
var p = _step.value;
|
|
2874
2900
|
|
|
2875
2901
|
if (props$1[p]) {
|
|
@@ -2884,9 +2910,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2884
2910
|
}
|
|
2885
2911
|
}
|
|
2886
2912
|
} catch (err) {
|
|
2887
|
-
|
|
2913
|
+
_didIteratorError = true;
|
|
2914
|
+
_iteratorError = err;
|
|
2888
2915
|
} finally {
|
|
2889
|
-
|
|
2916
|
+
try {
|
|
2917
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2918
|
+
_iterator["return"]();
|
|
2919
|
+
}
|
|
2920
|
+
} finally {
|
|
2921
|
+
if (_didIteratorError) {
|
|
2922
|
+
throw _iteratorError;
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2890
2925
|
}
|
|
2891
2926
|
|
|
2892
2927
|
return config;
|
|
@@ -2951,7 +2986,7 @@ function isEqual(a, b) {
|
|
|
2951
2986
|
return true;
|
|
2952
2987
|
}
|
|
2953
2988
|
|
|
2954
|
-
if ((0,
|
|
2989
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2955
2990
|
return true;
|
|
2956
2991
|
}
|
|
2957
2992
|
|
|
@@ -2994,17 +3029,17 @@ function isMediaStream(url) {
|
|
|
2994
3029
|
});
|
|
2995
3030
|
|
|
2996
3031
|
unwrapExports(utils);
|
|
2997
|
-
utils.parseStartTime;
|
|
2998
|
-
utils.parseEndTime;
|
|
2999
|
-
utils.randomString;
|
|
3000
|
-
utils.queryString;
|
|
3001
|
-
utils.getSDK;
|
|
3002
|
-
utils.getConfig;
|
|
3003
|
-
utils.omit;
|
|
3004
|
-
utils.callPlayer;
|
|
3005
|
-
utils.isObject;
|
|
3006
|
-
utils.isEqual;
|
|
3007
|
-
utils.isMediaStream;
|
|
3032
|
+
var utils_1 = utils.parseStartTime;
|
|
3033
|
+
var utils_2 = utils.parseEndTime;
|
|
3034
|
+
var utils_3 = utils.randomString;
|
|
3035
|
+
var utils_4 = utils.queryString;
|
|
3036
|
+
var utils_5 = utils.getSDK;
|
|
3037
|
+
var utils_6 = utils.getConfig;
|
|
3038
|
+
var utils_7 = utils.omit;
|
|
3039
|
+
var utils_8 = utils.callPlayer;
|
|
3040
|
+
var utils_9 = utils.isObject;
|
|
3041
|
+
var utils_10 = utils.isEqual;
|
|
3042
|
+
var utils_11 = utils.isMediaStream;
|
|
3008
3043
|
|
|
3009
3044
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3010
3045
|
|
|
@@ -3013,7 +3048,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3013
3048
|
});
|
|
3014
3049
|
exports["default"] = void 0;
|
|
3015
3050
|
|
|
3016
|
-
var _react = _interopRequireWildcard(
|
|
3051
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3017
3052
|
|
|
3018
3053
|
|
|
3019
3054
|
|
|
@@ -3033,16 +3068,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3033
3068
|
|
|
3034
3069
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3035
3070
|
|
|
3036
|
-
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); }; }
|
|
3037
|
-
|
|
3038
3071
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3039
3072
|
|
|
3040
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3041
|
-
|
|
3042
|
-
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; } }
|
|
3043
|
-
|
|
3044
3073
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3045
3074
|
|
|
3075
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3076
|
+
|
|
3046
3077
|
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); }
|
|
3047
3078
|
|
|
3048
3079
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3051,12 +3082,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3051
3082
|
|
|
3052
3083
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3053
3084
|
|
|
3054
|
-
var Player =
|
|
3085
|
+
var Player =
|
|
3086
|
+
/*#__PURE__*/
|
|
3087
|
+
function (_Component) {
|
|
3055
3088
|
_inherits(Player, _Component);
|
|
3056
3089
|
|
|
3057
|
-
var _super = _createSuper(Player);
|
|
3058
|
-
|
|
3059
3090
|
function Player() {
|
|
3091
|
+
var _getPrototypeOf2;
|
|
3092
|
+
|
|
3060
3093
|
var _this;
|
|
3061
3094
|
|
|
3062
3095
|
_classCallCheck(this, Player);
|
|
@@ -3065,7 +3098,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3065
3098
|
_args[_key] = arguments[_key];
|
|
3066
3099
|
}
|
|
3067
3100
|
|
|
3068
|
-
_this =
|
|
3101
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3069
3102
|
|
|
3070
3103
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3071
3104
|
|
|
@@ -3390,7 +3423,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3390
3423
|
return null;
|
|
3391
3424
|
}
|
|
3392
3425
|
|
|
3393
|
-
return
|
|
3426
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3394
3427
|
ref: this.ref,
|
|
3395
3428
|
onReady: this.handleReady,
|
|
3396
3429
|
onPlay: this.handlePlay,
|
|
@@ -3423,7 +3456,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3423
3456
|
});
|
|
3424
3457
|
exports["default"] = createSinglePlayer;
|
|
3425
3458
|
|
|
3426
|
-
var _react = _interopRequireWildcard(
|
|
3459
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3427
3460
|
|
|
3428
3461
|
|
|
3429
3462
|
|
|
@@ -3451,16 +3484,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3451
3484
|
|
|
3452
3485
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3453
3486
|
|
|
3454
|
-
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); }; }
|
|
3455
|
-
|
|
3456
3487
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3457
3488
|
|
|
3458
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3459
|
-
|
|
3460
|
-
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; } }
|
|
3461
|
-
|
|
3462
3489
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3463
3490
|
|
|
3491
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3492
|
+
|
|
3464
3493
|
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); }
|
|
3465
3494
|
|
|
3466
3495
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3472,12 +3501,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3472
3501
|
function createSinglePlayer(activePlayer) {
|
|
3473
3502
|
var _class, _temp;
|
|
3474
3503
|
|
|
3475
|
-
return _temp = _class =
|
|
3504
|
+
return _temp = _class =
|
|
3505
|
+
/*#__PURE__*/
|
|
3506
|
+
function (_Component) {
|
|
3476
3507
|
_inherits(SinglePlayer, _Component);
|
|
3477
3508
|
|
|
3478
|
-
var _super = _createSuper(SinglePlayer);
|
|
3479
|
-
|
|
3480
3509
|
function SinglePlayer() {
|
|
3510
|
+
var _getPrototypeOf2;
|
|
3511
|
+
|
|
3481
3512
|
var _this;
|
|
3482
3513
|
|
|
3483
3514
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3486,7 +3517,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3486
3517
|
args[_key] = arguments[_key];
|
|
3487
3518
|
}
|
|
3488
3519
|
|
|
3489
|
-
_this =
|
|
3520
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3490
3521
|
|
|
3491
3522
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3492
3523
|
|
|
@@ -3554,12 +3585,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3554
3585
|
height = _this$props.height,
|
|
3555
3586
|
Wrapper = _this$props.wrapper;
|
|
3556
3587
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3557
|
-
return
|
|
3588
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3558
3589
|
style: _objectSpread({}, style, {
|
|
3559
3590
|
width: width,
|
|
3560
3591
|
height: height
|
|
3561
3592
|
})
|
|
3562
|
-
}, otherProps),
|
|
3593
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3563
3594
|
ref: this.ref,
|
|
3564
3595
|
activePlayer: activePlayer,
|
|
3565
3596
|
config: this.config
|
|
@@ -3581,7 +3612,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3581
3612
|
});
|
|
3582
3613
|
exports["default"] = exports.YouTube = void 0;
|
|
3583
3614
|
|
|
3584
|
-
var _react = _interopRequireWildcard(
|
|
3615
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3585
3616
|
|
|
3586
3617
|
|
|
3587
3618
|
|
|
@@ -3605,31 +3636,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3605
3636
|
|
|
3606
3637
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3607
3638
|
|
|
3608
|
-
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); }; }
|
|
3609
|
-
|
|
3610
3639
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3611
3640
|
|
|
3612
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3613
|
-
|
|
3614
|
-
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; } }
|
|
3615
|
-
|
|
3616
3641
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3617
3642
|
|
|
3643
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3644
|
+
|
|
3618
3645
|
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); }
|
|
3619
3646
|
|
|
3620
3647
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3621
3648
|
|
|
3622
3649
|
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; }
|
|
3623
3650
|
|
|
3624
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3625
|
-
|
|
3626
|
-
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."); }
|
|
3651
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3627
3652
|
|
|
3628
|
-
function
|
|
3653
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3629
3654
|
|
|
3630
|
-
function
|
|
3631
|
-
|
|
3632
|
-
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; }
|
|
3655
|
+
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; }
|
|
3633
3656
|
|
|
3634
3657
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3635
3658
|
|
|
@@ -3654,12 +3677,14 @@ function parsePlaylist(url) {
|
|
|
3654
3677
|
return {};
|
|
3655
3678
|
}
|
|
3656
3679
|
|
|
3657
|
-
var YouTube =
|
|
3680
|
+
var YouTube =
|
|
3681
|
+
/*#__PURE__*/
|
|
3682
|
+
function (_Component) {
|
|
3658
3683
|
_inherits(YouTube, _Component);
|
|
3659
3684
|
|
|
3660
|
-
var _super = _createSuper(YouTube);
|
|
3661
|
-
|
|
3662
3685
|
function YouTube() {
|
|
3686
|
+
var _getPrototypeOf2;
|
|
3687
|
+
|
|
3663
3688
|
var _this;
|
|
3664
3689
|
|
|
3665
3690
|
_classCallCheck(this, YouTube);
|
|
@@ -3668,7 +3693,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3668
3693
|
args[_key] = arguments[_key];
|
|
3669
3694
|
}
|
|
3670
3695
|
|
|
3671
|
-
_this =
|
|
3696
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3672
3697
|
|
|
3673
3698
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3674
3699
|
|
|
@@ -3856,9 +3881,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3856
3881
|
height: '100%',
|
|
3857
3882
|
display: display
|
|
3858
3883
|
};
|
|
3859
|
-
return
|
|
3884
|
+
return _react["default"].createElement("div", {
|
|
3860
3885
|
style: style
|
|
3861
|
-
},
|
|
3886
|
+
}, _react["default"].createElement("div", {
|
|
3862
3887
|
ref: this.ref
|
|
3863
3888
|
}));
|
|
3864
3889
|
}
|
|
@@ -3881,7 +3906,7 @@ exports["default"] = _default;
|
|
|
3881
3906
|
});
|
|
3882
3907
|
|
|
3883
3908
|
unwrapExports(YouTube_1);
|
|
3884
|
-
YouTube_1.YouTube;
|
|
3909
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
3885
3910
|
|
|
3886
3911
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
3887
3912
|
|
|
@@ -3890,7 +3915,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3890
3915
|
});
|
|
3891
3916
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3892
3917
|
|
|
3893
|
-
var _react = _interopRequireWildcard(
|
|
3918
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3894
3919
|
|
|
3895
3920
|
|
|
3896
3921
|
|
|
@@ -3914,16 +3939,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3914
3939
|
|
|
3915
3940
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3916
3941
|
|
|
3917
|
-
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); }; }
|
|
3918
|
-
|
|
3919
3942
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3920
3943
|
|
|
3921
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3922
|
-
|
|
3923
|
-
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; } }
|
|
3924
|
-
|
|
3925
3944
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3926
3945
|
|
|
3946
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3947
|
+
|
|
3927
3948
|
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); }
|
|
3928
3949
|
|
|
3929
3950
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3932,14 +3953,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3932
3953
|
|
|
3933
3954
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3934
3955
|
var SDK_GLOBAL = 'SC';
|
|
3935
|
-
var MATCH_URL = /(
|
|
3956
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3936
3957
|
|
|
3937
|
-
var SoundCloud =
|
|
3958
|
+
var SoundCloud =
|
|
3959
|
+
/*#__PURE__*/
|
|
3960
|
+
function (_Component) {
|
|
3938
3961
|
_inherits(SoundCloud, _Component);
|
|
3939
3962
|
|
|
3940
|
-
var _super = _createSuper(SoundCloud);
|
|
3941
|
-
|
|
3942
3963
|
function SoundCloud() {
|
|
3964
|
+
var _getPrototypeOf2;
|
|
3965
|
+
|
|
3943
3966
|
var _this;
|
|
3944
3967
|
|
|
3945
3968
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3948,7 +3971,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3948
3971
|
args[_key] = arguments[_key];
|
|
3949
3972
|
}
|
|
3950
3973
|
|
|
3951
|
-
_this =
|
|
3974
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3952
3975
|
|
|
3953
3976
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3954
3977
|
|
|
@@ -4069,7 +4092,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4069
4092
|
height: '100%',
|
|
4070
4093
|
display: display
|
|
4071
4094
|
};
|
|
4072
|
-
return
|
|
4095
|
+
return _react["default"].createElement("iframe", {
|
|
4073
4096
|
ref: this.ref,
|
|
4074
4097
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4075
4098
|
style: style,
|
|
@@ -4098,7 +4121,7 @@ exports["default"] = _default;
|
|
|
4098
4121
|
});
|
|
4099
4122
|
|
|
4100
4123
|
unwrapExports(SoundCloud_1);
|
|
4101
|
-
SoundCloud_1.SoundCloud;
|
|
4124
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4102
4125
|
|
|
4103
4126
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4104
4127
|
|
|
@@ -4107,7 +4130,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4107
4130
|
});
|
|
4108
4131
|
exports["default"] = exports.Vimeo = void 0;
|
|
4109
4132
|
|
|
4110
|
-
var _react = _interopRequireWildcard(
|
|
4133
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4111
4134
|
|
|
4112
4135
|
|
|
4113
4136
|
|
|
@@ -4131,16 +4154,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4131
4154
|
|
|
4132
4155
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4133
4156
|
|
|
4134
|
-
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); }; }
|
|
4135
|
-
|
|
4136
4157
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4137
4158
|
|
|
4138
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4139
|
-
|
|
4140
|
-
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; } }
|
|
4141
|
-
|
|
4142
4159
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4143
4160
|
|
|
4161
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4162
|
+
|
|
4144
4163
|
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); }
|
|
4145
4164
|
|
|
4146
4165
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4152,12 +4171,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4152
4171
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4153
4172
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4154
4173
|
|
|
4155
|
-
var Vimeo =
|
|
4174
|
+
var Vimeo =
|
|
4175
|
+
/*#__PURE__*/
|
|
4176
|
+
function (_Component) {
|
|
4156
4177
|
_inherits(Vimeo, _Component);
|
|
4157
4178
|
|
|
4158
|
-
var _super = _createSuper(Vimeo);
|
|
4159
|
-
|
|
4160
4179
|
function Vimeo() {
|
|
4180
|
+
var _getPrototypeOf2;
|
|
4181
|
+
|
|
4161
4182
|
var _this;
|
|
4162
4183
|
|
|
4163
4184
|
_classCallCheck(this, Vimeo);
|
|
@@ -4166,7 +4187,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4166
4187
|
args[_key] = arguments[_key];
|
|
4167
4188
|
}
|
|
4168
4189
|
|
|
4169
|
-
_this =
|
|
4190
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4170
4191
|
|
|
4171
4192
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4172
4193
|
|
|
@@ -4323,7 +4344,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4323
4344
|
overflow: 'hidden',
|
|
4324
4345
|
display: display
|
|
4325
4346
|
};
|
|
4326
|
-
return
|
|
4347
|
+
return _react["default"].createElement("div", {
|
|
4327
4348
|
key: this.props.url,
|
|
4328
4349
|
ref: this.ref,
|
|
4329
4350
|
style: style
|
|
@@ -4354,7 +4375,7 @@ exports["default"] = _default;
|
|
|
4354
4375
|
});
|
|
4355
4376
|
|
|
4356
4377
|
unwrapExports(Vimeo_1);
|
|
4357
|
-
Vimeo_1.Vimeo;
|
|
4378
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4358
4379
|
|
|
4359
4380
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4360
4381
|
|
|
@@ -4363,7 +4384,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4363
4384
|
});
|
|
4364
4385
|
exports["default"] = exports.Facebook = void 0;
|
|
4365
4386
|
|
|
4366
|
-
var _react = _interopRequireWildcard(
|
|
4387
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4367
4388
|
|
|
4368
4389
|
|
|
4369
4390
|
|
|
@@ -4383,16 +4404,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4383
4404
|
|
|
4384
4405
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4385
4406
|
|
|
4386
|
-
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); }; }
|
|
4387
|
-
|
|
4388
4407
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4389
4408
|
|
|
4390
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4391
|
-
|
|
4392
|
-
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; } }
|
|
4393
|
-
|
|
4394
4409
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4395
4410
|
|
|
4411
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4412
|
+
|
|
4396
4413
|
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); }
|
|
4397
4414
|
|
|
4398
4415
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4405,12 +4422,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4405
4422
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4406
4423
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4407
4424
|
|
|
4408
|
-
var Facebook =
|
|
4425
|
+
var Facebook =
|
|
4426
|
+
/*#__PURE__*/
|
|
4427
|
+
function (_Component) {
|
|
4409
4428
|
_inherits(Facebook, _Component);
|
|
4410
4429
|
|
|
4411
|
-
var _super = _createSuper(Facebook);
|
|
4412
|
-
|
|
4413
4430
|
function Facebook() {
|
|
4431
|
+
var _getPrototypeOf2;
|
|
4432
|
+
|
|
4414
4433
|
var _this;
|
|
4415
4434
|
|
|
4416
4435
|
_classCallCheck(this, Facebook);
|
|
@@ -4419,7 +4438,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4419
4438
|
args[_key] = arguments[_key];
|
|
4420
4439
|
}
|
|
4421
4440
|
|
|
4422
|
-
_this =
|
|
4441
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4423
4442
|
|
|
4424
4443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4425
4444
|
|
|
@@ -4535,7 +4554,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4535
4554
|
width: '100%',
|
|
4536
4555
|
height: '100%'
|
|
4537
4556
|
};
|
|
4538
|
-
return
|
|
4557
|
+
return _react["default"].createElement("div", {
|
|
4539
4558
|
style: style,
|
|
4540
4559
|
id: this.playerID,
|
|
4541
4560
|
className: "fb-video",
|
|
@@ -4566,7 +4585,7 @@ exports["default"] = _default;
|
|
|
4566
4585
|
});
|
|
4567
4586
|
|
|
4568
4587
|
unwrapExports(Facebook_1);
|
|
4569
|
-
Facebook_1.Facebook;
|
|
4588
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4570
4589
|
|
|
4571
4590
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4572
4591
|
|
|
@@ -4575,7 +4594,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4575
4594
|
});
|
|
4576
4595
|
exports["default"] = exports.Streamable = void 0;
|
|
4577
4596
|
|
|
4578
|
-
var _react = _interopRequireWildcard(
|
|
4597
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4579
4598
|
|
|
4580
4599
|
|
|
4581
4600
|
|
|
@@ -4595,16 +4614,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4595
4614
|
|
|
4596
4615
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4597
4616
|
|
|
4598
|
-
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); }; }
|
|
4599
|
-
|
|
4600
4617
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4601
4618
|
|
|
4602
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4603
|
-
|
|
4604
|
-
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; } }
|
|
4605
|
-
|
|
4606
4619
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4607
4620
|
|
|
4621
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4622
|
+
|
|
4608
4623
|
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); }
|
|
4609
4624
|
|
|
4610
4625
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4615,12 +4630,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4615
4630
|
var SDK_GLOBAL = 'playerjs';
|
|
4616
4631
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4617
4632
|
|
|
4618
|
-
var Streamable =
|
|
4633
|
+
var Streamable =
|
|
4634
|
+
/*#__PURE__*/
|
|
4635
|
+
function (_Component) {
|
|
4619
4636
|
_inherits(Streamable, _Component);
|
|
4620
4637
|
|
|
4621
|
-
var _super = _createSuper(Streamable);
|
|
4622
|
-
|
|
4623
4638
|
function Streamable() {
|
|
4639
|
+
var _getPrototypeOf2;
|
|
4640
|
+
|
|
4624
4641
|
var _this;
|
|
4625
4642
|
|
|
4626
4643
|
_classCallCheck(this, Streamable);
|
|
@@ -4629,7 +4646,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4629
4646
|
args[_key] = arguments[_key];
|
|
4630
4647
|
}
|
|
4631
4648
|
|
|
4632
|
-
_this =
|
|
4649
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4633
4650
|
|
|
4634
4651
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4635
4652
|
|
|
@@ -4749,7 +4766,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4749
4766
|
width: '100%',
|
|
4750
4767
|
height: '100%'
|
|
4751
4768
|
};
|
|
4752
|
-
return
|
|
4769
|
+
return _react["default"].createElement("iframe", {
|
|
4753
4770
|
ref: this.ref,
|
|
4754
4771
|
src: "https://streamable.com/o/".concat(id),
|
|
4755
4772
|
frameBorder: "0",
|
|
@@ -4777,7 +4794,7 @@ exports["default"] = _default;
|
|
|
4777
4794
|
});
|
|
4778
4795
|
|
|
4779
4796
|
unwrapExports(Streamable_1);
|
|
4780
|
-
Streamable_1.Streamable;
|
|
4797
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4781
4798
|
|
|
4782
4799
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4783
4800
|
|
|
@@ -4786,7 +4803,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4786
4803
|
});
|
|
4787
4804
|
exports["default"] = exports.Wistia = void 0;
|
|
4788
4805
|
|
|
4789
|
-
var _react = _interopRequireWildcard(
|
|
4806
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4790
4807
|
|
|
4791
4808
|
|
|
4792
4809
|
|
|
@@ -4810,16 +4827,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4810
4827
|
|
|
4811
4828
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4812
4829
|
|
|
4813
|
-
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); }; }
|
|
4814
|
-
|
|
4815
4830
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4816
4831
|
|
|
4817
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4818
|
-
|
|
4819
|
-
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; } }
|
|
4820
|
-
|
|
4821
4832
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4822
4833
|
|
|
4834
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4835
|
+
|
|
4823
4836
|
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); }
|
|
4824
4837
|
|
|
4825
4838
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4830,48 +4843,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4830
4843
|
var SDK_GLOBAL = 'Wistia';
|
|
4831
4844
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4832
4845
|
|
|
4833
|
-
var Wistia =
|
|
4846
|
+
var Wistia =
|
|
4847
|
+
/*#__PURE__*/
|
|
4848
|
+
function (_Component) {
|
|
4834
4849
|
_inherits(Wistia, _Component);
|
|
4835
4850
|
|
|
4836
|
-
var _super = _createSuper(Wistia);
|
|
4837
|
-
|
|
4838
4851
|
function Wistia() {
|
|
4852
|
+
var _getPrototypeOf2;
|
|
4853
|
+
|
|
4839
4854
|
var _this;
|
|
4840
4855
|
|
|
4841
4856
|
_classCallCheck(this, Wistia);
|
|
4842
4857
|
|
|
4843
|
-
for (var _len = arguments.length,
|
|
4844
|
-
|
|
4858
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4859
|
+
args[_key] = arguments[_key];
|
|
4845
4860
|
}
|
|
4846
4861
|
|
|
4847
|
-
_this =
|
|
4862
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4848
4863
|
|
|
4849
4864
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4850
4865
|
|
|
4851
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4852
|
-
var _this$props;
|
|
4853
|
-
|
|
4854
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4855
|
-
});
|
|
4856
|
-
|
|
4857
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4858
|
-
var _this$props2;
|
|
4859
|
-
|
|
4860
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4861
|
-
});
|
|
4862
|
-
|
|
4863
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4864
|
-
var _this$props3;
|
|
4865
|
-
|
|
4866
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4867
|
-
});
|
|
4868
|
-
|
|
4869
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4870
|
-
var _this$props4;
|
|
4871
|
-
|
|
4872
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4873
|
-
});
|
|
4874
|
-
|
|
4875
4866
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4876
4867
|
_this.callPlayer('mute');
|
|
4877
4868
|
});
|
|
@@ -4893,13 +4884,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4893
4884
|
value: function load(url) {
|
|
4894
4885
|
var _this2 = this;
|
|
4895
4886
|
|
|
4896
|
-
var _this$
|
|
4897
|
-
playing = _this$
|
|
4898
|
-
muted = _this$
|
|
4899
|
-
controls = _this$
|
|
4900
|
-
_onReady = _this$
|
|
4901
|
-
|
|
4902
|
-
|
|
4887
|
+
var _this$props = this.props,
|
|
4888
|
+
playing = _this$props.playing,
|
|
4889
|
+
muted = _this$props.muted,
|
|
4890
|
+
controls = _this$props.controls,
|
|
4891
|
+
_onReady = _this$props.onReady,
|
|
4892
|
+
onPlay = _this$props.onPlay,
|
|
4893
|
+
onPause = _this$props.onPause,
|
|
4894
|
+
onSeek = _this$props.onSeek,
|
|
4895
|
+
onEnded = _this$props.onEnded,
|
|
4896
|
+
config = _this$props.config,
|
|
4897
|
+
onError = _this$props.onError;
|
|
4903
4898
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4904
4899
|
window._wq = window._wq || [];
|
|
4905
4900
|
|
|
@@ -4916,28 +4911,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4916
4911
|
|
|
4917
4912
|
_this2.unbind();
|
|
4918
4913
|
|
|
4919
|
-
_this2.player.bind('play',
|
|
4914
|
+
_this2.player.bind('play', onPlay);
|
|
4920
4915
|
|
|
4921
|
-
_this2.player.bind('pause',
|
|
4916
|
+
_this2.player.bind('pause', onPause);
|
|
4922
4917
|
|
|
4923
|
-
_this2.player.bind('seek',
|
|
4918
|
+
_this2.player.bind('seek', onSeek);
|
|
4924
4919
|
|
|
4925
|
-
_this2.player.bind('end',
|
|
4920
|
+
_this2.player.bind('end', onEnded);
|
|
4926
4921
|
|
|
4927
4922
|
_onReady();
|
|
4928
4923
|
}
|
|
4929
4924
|
});
|
|
4930
4925
|
}, onError);
|
|
4931
4926
|
}
|
|
4932
|
-
}, {
|
|
4933
|
-
key: "unbind",
|
|
4934
|
-
value: function unbind() {
|
|
4935
|
-
this.player.unbind('play', this.onPlay);
|
|
4936
|
-
this.player.unbind('pause', this.onPause);
|
|
4937
|
-
this.player.unbind('seek', this.onSeek);
|
|
4938
|
-
this.player.unbind('end', this.onEnded);
|
|
4939
|
-
} // Proxy methods to prevent listener leaks
|
|
4940
|
-
|
|
4941
4927
|
}, {
|
|
4942
4928
|
key: "play",
|
|
4943
4929
|
value: function play() {
|
|
@@ -4948,6 +4934,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4948
4934
|
value: function pause() {
|
|
4949
4935
|
this.callPlayer('pause');
|
|
4950
4936
|
}
|
|
4937
|
+
}, {
|
|
4938
|
+
key: "unbind",
|
|
4939
|
+
value: function unbind() {
|
|
4940
|
+
var _this$props2 = this.props,
|
|
4941
|
+
onPlay = _this$props2.onPlay,
|
|
4942
|
+
onPause = _this$props2.onPause,
|
|
4943
|
+
onSeek = _this$props2.onSeek,
|
|
4944
|
+
onEnded = _this$props2.onEnded;
|
|
4945
|
+
this.player.unbind('play', onPlay);
|
|
4946
|
+
this.player.unbind('pause', onPause);
|
|
4947
|
+
this.player.unbind('seek', onSeek);
|
|
4948
|
+
this.player.unbind('end', onEnded);
|
|
4949
|
+
}
|
|
4951
4950
|
}, {
|
|
4952
4951
|
key: "stop",
|
|
4953
4952
|
value: function stop() {
|
|
@@ -4993,7 +4992,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4993
4992
|
width: '100%',
|
|
4994
4993
|
height: '100%'
|
|
4995
4994
|
};
|
|
4996
|
-
return
|
|
4995
|
+
return _react["default"].createElement("div", {
|
|
4997
4996
|
key: id,
|
|
4998
4997
|
className: className,
|
|
4999
4998
|
style: style
|
|
@@ -5020,7 +5019,7 @@ exports["default"] = _default;
|
|
|
5020
5019
|
});
|
|
5021
5020
|
|
|
5022
5021
|
unwrapExports(Wistia_1);
|
|
5023
|
-
Wistia_1.Wistia;
|
|
5022
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5024
5023
|
|
|
5025
5024
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5026
5025
|
|
|
@@ -5029,7 +5028,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5029
5028
|
});
|
|
5030
5029
|
exports["default"] = exports.Twitch = void 0;
|
|
5031
5030
|
|
|
5032
|
-
var _react = _interopRequireWildcard(
|
|
5031
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5033
5032
|
|
|
5034
5033
|
|
|
5035
5034
|
|
|
@@ -5053,16 +5052,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5053
5052
|
|
|
5054
5053
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5055
5054
|
|
|
5056
|
-
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); }; }
|
|
5057
|
-
|
|
5058
5055
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5059
5056
|
|
|
5060
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5061
|
-
|
|
5062
|
-
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; } }
|
|
5063
|
-
|
|
5064
5057
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5065
5058
|
|
|
5059
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5060
|
+
|
|
5066
5061
|
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); }
|
|
5067
5062
|
|
|
5068
5063
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5075,12 +5070,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5075
5070
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5076
5071
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5077
5072
|
|
|
5078
|
-
var Twitch =
|
|
5073
|
+
var Twitch =
|
|
5074
|
+
/*#__PURE__*/
|
|
5075
|
+
function (_Component) {
|
|
5079
5076
|
_inherits(Twitch, _Component);
|
|
5080
5077
|
|
|
5081
|
-
var _super = _createSuper(Twitch);
|
|
5082
|
-
|
|
5083
5078
|
function Twitch() {
|
|
5079
|
+
var _getPrototypeOf2;
|
|
5080
|
+
|
|
5084
5081
|
var _this;
|
|
5085
5082
|
|
|
5086
5083
|
_classCallCheck(this, Twitch);
|
|
@@ -5089,7 +5086,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5089
5086
|
args[_key] = arguments[_key];
|
|
5090
5087
|
}
|
|
5091
5088
|
|
|
5092
|
-
_this =
|
|
5089
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5093
5090
|
|
|
5094
5091
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5095
5092
|
|
|
@@ -5210,7 +5207,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5210
5207
|
width: '100%',
|
|
5211
5208
|
height: '100%'
|
|
5212
5209
|
};
|
|
5213
|
-
return
|
|
5210
|
+
return _react["default"].createElement("div", {
|
|
5214
5211
|
style: style,
|
|
5215
5212
|
id: this.playerID
|
|
5216
5213
|
});
|
|
@@ -5236,7 +5233,7 @@ exports["default"] = _default;
|
|
|
5236
5233
|
});
|
|
5237
5234
|
|
|
5238
5235
|
unwrapExports(Twitch_1);
|
|
5239
|
-
Twitch_1.Twitch;
|
|
5236
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5240
5237
|
|
|
5241
5238
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5242
5239
|
|
|
@@ -5245,7 +5242,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5245
5242
|
});
|
|
5246
5243
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5247
5244
|
|
|
5248
|
-
var _react = _interopRequireWildcard(
|
|
5245
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5249
5246
|
|
|
5250
5247
|
|
|
5251
5248
|
|
|
@@ -5263,15 +5260,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5263
5260
|
|
|
5264
5261
|
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; }
|
|
5265
5262
|
|
|
5266
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5263
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5267
5264
|
|
|
5268
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5265
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5269
5266
|
|
|
5270
|
-
function
|
|
5271
|
-
|
|
5272
|
-
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; }
|
|
5273
|
-
|
|
5274
|
-
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; }
|
|
5267
|
+
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; }
|
|
5275
5268
|
|
|
5276
5269
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5277
5270
|
|
|
@@ -5281,16 +5274,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5281
5274
|
|
|
5282
5275
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5283
5276
|
|
|
5284
|
-
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); }; }
|
|
5285
|
-
|
|
5286
5277
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5287
5278
|
|
|
5288
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5289
|
-
|
|
5290
|
-
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; } }
|
|
5291
|
-
|
|
5292
5279
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5293
5280
|
|
|
5281
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5282
|
+
|
|
5294
5283
|
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); }
|
|
5295
5284
|
|
|
5296
5285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5302,12 +5291,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5302
5291
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5303
5292
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5304
5293
|
|
|
5305
|
-
var DailyMotion =
|
|
5294
|
+
var DailyMotion =
|
|
5295
|
+
/*#__PURE__*/
|
|
5296
|
+
function (_Component) {
|
|
5306
5297
|
_inherits(DailyMotion, _Component);
|
|
5307
5298
|
|
|
5308
|
-
var _super = _createSuper(DailyMotion);
|
|
5309
|
-
|
|
5310
5299
|
function DailyMotion() {
|
|
5300
|
+
var _getPrototypeOf2;
|
|
5301
|
+
|
|
5311
5302
|
var _this;
|
|
5312
5303
|
|
|
5313
5304
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5316,7 +5307,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5316
5307
|
args[_key] = arguments[_key];
|
|
5317
5308
|
}
|
|
5318
5309
|
|
|
5319
|
-
_this =
|
|
5310
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5320
5311
|
|
|
5321
5312
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5322
5313
|
|
|
@@ -5445,9 +5436,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5445
5436
|
height: '100%',
|
|
5446
5437
|
display: display
|
|
5447
5438
|
};
|
|
5448
|
-
return
|
|
5439
|
+
return _react["default"].createElement("div", {
|
|
5449
5440
|
style: style
|
|
5450
|
-
},
|
|
5441
|
+
}, _react["default"].createElement("div", {
|
|
5451
5442
|
ref: this.ref
|
|
5452
5443
|
}));
|
|
5453
5444
|
}
|
|
@@ -5472,7 +5463,7 @@ exports["default"] = _default;
|
|
|
5472
5463
|
});
|
|
5473
5464
|
|
|
5474
5465
|
unwrapExports(DailyMotion_1);
|
|
5475
|
-
DailyMotion_1.DailyMotion;
|
|
5466
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5476
5467
|
|
|
5477
5468
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5478
5469
|
|
|
@@ -5481,7 +5472,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5481
5472
|
});
|
|
5482
5473
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5483
5474
|
|
|
5484
|
-
var _react = _interopRequireWildcard(
|
|
5475
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5485
5476
|
|
|
5486
5477
|
|
|
5487
5478
|
|
|
@@ -5505,16 +5496,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5505
5496
|
|
|
5506
5497
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5507
5498
|
|
|
5508
|
-
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); }; }
|
|
5509
|
-
|
|
5510
5499
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5511
5500
|
|
|
5512
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5513
|
-
|
|
5514
|
-
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; } }
|
|
5515
|
-
|
|
5516
5501
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5517
5502
|
|
|
5503
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5504
|
+
|
|
5518
5505
|
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); }
|
|
5519
5506
|
|
|
5520
5507
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5525,12 +5512,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5525
5512
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5526
5513
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5527
5514
|
|
|
5528
|
-
var Mixcloud =
|
|
5515
|
+
var Mixcloud =
|
|
5516
|
+
/*#__PURE__*/
|
|
5517
|
+
function (_Component) {
|
|
5529
5518
|
_inherits(Mixcloud, _Component);
|
|
5530
5519
|
|
|
5531
|
-
var _super = _createSuper(Mixcloud);
|
|
5532
|
-
|
|
5533
5520
|
function Mixcloud() {
|
|
5521
|
+
var _getPrototypeOf2;
|
|
5522
|
+
|
|
5534
5523
|
var _this;
|
|
5535
5524
|
|
|
5536
5525
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5539,7 +5528,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5539
5528
|
args[_key] = arguments[_key];
|
|
5540
5529
|
}
|
|
5541
5530
|
|
|
5542
|
-
_this =
|
|
5531
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5543
5532
|
|
|
5544
5533
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5545
5534
|
|
|
@@ -5642,7 +5631,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5642
5631
|
})); // We have to give the iframe a key here to prevent a
|
|
5643
5632
|
// weird dialog appearing when loading a new track
|
|
5644
5633
|
|
|
5645
|
-
return
|
|
5634
|
+
return _react["default"].createElement("iframe", {
|
|
5646
5635
|
key: id,
|
|
5647
5636
|
ref: this.ref,
|
|
5648
5637
|
style: style,
|
|
@@ -5671,7 +5660,7 @@ exports["default"] = _default;
|
|
|
5671
5660
|
});
|
|
5672
5661
|
|
|
5673
5662
|
unwrapExports(Mixcloud_1);
|
|
5674
|
-
Mixcloud_1.Mixcloud;
|
|
5663
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5675
5664
|
|
|
5676
5665
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5677
5666
|
|
|
@@ -5680,7 +5669,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5680
5669
|
});
|
|
5681
5670
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5682
5671
|
|
|
5683
|
-
var _react = _interopRequireWildcard(
|
|
5672
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5684
5673
|
|
|
5685
5674
|
|
|
5686
5675
|
|
|
@@ -5702,33 +5691,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5702
5691
|
|
|
5703
5692
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5704
5693
|
|
|
5705
|
-
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); }; }
|
|
5706
|
-
|
|
5707
5694
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5708
5695
|
|
|
5709
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5710
|
-
|
|
5711
|
-
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; } }
|
|
5712
|
-
|
|
5713
5696
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5714
5697
|
|
|
5698
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5699
|
+
|
|
5715
5700
|
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); }
|
|
5716
5701
|
|
|
5717
5702
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5718
5703
|
|
|
5719
5704
|
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; }
|
|
5720
5705
|
|
|
5721
|
-
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; } } }; }
|
|
5722
|
-
|
|
5723
|
-
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); }
|
|
5724
|
-
|
|
5725
|
-
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; }
|
|
5726
|
-
|
|
5727
5706
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5728
5707
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5729
5708
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5730
5709
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5731
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5710
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5732
5711
|
var HLS_GLOBAL = 'Hls';
|
|
5733
5712
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5734
5713
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5737,11 +5716,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5737
5716
|
|
|
5738
5717
|
function canPlay(url) {
|
|
5739
5718
|
if (url instanceof Array) {
|
|
5740
|
-
var
|
|
5741
|
-
|
|
5719
|
+
var _iteratorNormalCompletion = true;
|
|
5720
|
+
var _didIteratorError = false;
|
|
5721
|
+
var _iteratorError = undefined;
|
|
5742
5722
|
|
|
5743
5723
|
try {
|
|
5744
|
-
for (_iterator.
|
|
5724
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5745
5725
|
var item = _step.value;
|
|
5746
5726
|
|
|
5747
5727
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5753,9 +5733,18 @@ function canPlay(url) {
|
|
|
5753
5733
|
}
|
|
5754
5734
|
}
|
|
5755
5735
|
} catch (err) {
|
|
5756
|
-
|
|
5736
|
+
_didIteratorError = true;
|
|
5737
|
+
_iteratorError = err;
|
|
5757
5738
|
} finally {
|
|
5758
|
-
|
|
5739
|
+
try {
|
|
5740
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5741
|
+
_iterator["return"]();
|
|
5742
|
+
}
|
|
5743
|
+
} finally {
|
|
5744
|
+
if (_didIteratorError) {
|
|
5745
|
+
throw _iteratorError;
|
|
5746
|
+
}
|
|
5747
|
+
}
|
|
5759
5748
|
}
|
|
5760
5749
|
|
|
5761
5750
|
return false;
|
|
@@ -5779,12 +5768,14 @@ function canEnablePIP(url) {
|
|
|
5779
5768
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5780
5769
|
}
|
|
5781
5770
|
|
|
5782
|
-
var FilePlayer =
|
|
5771
|
+
var FilePlayer =
|
|
5772
|
+
/*#__PURE__*/
|
|
5773
|
+
function (_Component) {
|
|
5783
5774
|
_inherits(FilePlayer, _Component);
|
|
5784
5775
|
|
|
5785
|
-
var _super = _createSuper(FilePlayer);
|
|
5786
|
-
|
|
5787
5776
|
function FilePlayer() {
|
|
5777
|
+
var _getPrototypeOf2;
|
|
5778
|
+
|
|
5788
5779
|
var _this;
|
|
5789
5780
|
|
|
5790
5781
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5793,7 +5784,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5793
5784
|
_args[_key] = arguments[_key];
|
|
5794
5785
|
}
|
|
5795
5786
|
|
|
5796
|
-
_this =
|
|
5787
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5797
5788
|
|
|
5798
5789
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5799
5790
|
var _this$props;
|
|
@@ -5880,19 +5871,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5880
5871
|
|
|
5881
5872
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5882
5873
|
if (typeof source === 'string') {
|
|
5883
|
-
return
|
|
5874
|
+
return _react["default"].createElement("source", {
|
|
5884
5875
|
key: index,
|
|
5885
5876
|
src: source
|
|
5886
5877
|
});
|
|
5887
5878
|
}
|
|
5888
5879
|
|
|
5889
|
-
return
|
|
5880
|
+
return _react["default"].createElement("source", _extends({
|
|
5890
5881
|
key: index
|
|
5891
5882
|
}, source));
|
|
5892
5883
|
});
|
|
5893
5884
|
|
|
5894
5885
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5895
|
-
return
|
|
5886
|
+
return _react["default"].createElement("track", _extends({
|
|
5896
5887
|
key: index
|
|
5897
5888
|
}, track));
|
|
5898
5889
|
});
|
|
@@ -5930,10 +5921,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5930
5921
|
key: "componentWillUnmount",
|
|
5931
5922
|
value: function componentWillUnmount() {
|
|
5932
5923
|
this.removeListeners(this.player);
|
|
5933
|
-
|
|
5934
|
-
if (this.hls) {
|
|
5935
|
-
this.hls.destroy();
|
|
5936
|
-
}
|
|
5937
5924
|
}
|
|
5938
5925
|
}, {
|
|
5939
5926
|
key: "addListeners",
|
|
@@ -6064,6 +6051,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6064
6051
|
value: function stop() {
|
|
6065
6052
|
this.player.removeAttribute('src');
|
|
6066
6053
|
|
|
6054
|
+
if (this.hls) {
|
|
6055
|
+
this.hls.destroy();
|
|
6056
|
+
}
|
|
6057
|
+
|
|
6067
6058
|
if (this.dash) {
|
|
6068
6059
|
this.dash.reset();
|
|
6069
6060
|
}
|
|
@@ -6175,7 +6166,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6175
6166
|
width: width === 'auto' ? width : '100%',
|
|
6176
6167
|
height: height === 'auto' ? height : '100%'
|
|
6177
6168
|
};
|
|
6178
|
-
return
|
|
6169
|
+
return _react["default"].createElement(Element, _extends({
|
|
6179
6170
|
ref: this.ref,
|
|
6180
6171
|
src: this.getSource(url),
|
|
6181
6172
|
style: style,
|
|
@@ -6205,7 +6196,7 @@ exports["default"] = _default;
|
|
|
6205
6196
|
});
|
|
6206
6197
|
|
|
6207
6198
|
unwrapExports(FilePlayer_1);
|
|
6208
|
-
FilePlayer_1.FilePlayer;
|
|
6199
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6209
6200
|
|
|
6210
6201
|
var players = createCommonjsModule(function (module, exports) {
|
|
6211
6202
|
|
|
@@ -6247,7 +6238,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6247
6238
|
});
|
|
6248
6239
|
exports["default"] = void 0;
|
|
6249
6240
|
|
|
6250
|
-
var _react = _interopRequireWildcard(
|
|
6241
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6251
6242
|
|
|
6252
6243
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6253
6244
|
|
|
@@ -6265,16 +6256,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6265
6256
|
|
|
6266
6257
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6267
6258
|
|
|
6268
|
-
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); }; }
|
|
6269
|
-
|
|
6270
6259
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6271
6260
|
|
|
6272
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6273
|
-
|
|
6274
|
-
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; } }
|
|
6275
|
-
|
|
6276
6261
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6277
6262
|
|
|
6263
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6264
|
+
|
|
6278
6265
|
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); }
|
|
6279
6266
|
|
|
6280
6267
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6283,12 +6270,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6283
6270
|
|
|
6284
6271
|
var ICON_SIZE = '64px';
|
|
6285
6272
|
|
|
6286
|
-
var Preview =
|
|
6273
|
+
var Preview =
|
|
6274
|
+
/*#__PURE__*/
|
|
6275
|
+
function (_Component) {
|
|
6287
6276
|
_inherits(Preview, _Component);
|
|
6288
6277
|
|
|
6289
|
-
var _super = _createSuper(Preview);
|
|
6290
|
-
|
|
6291
6278
|
function Preview() {
|
|
6279
|
+
var _getPrototypeOf2;
|
|
6280
|
+
|
|
6292
6281
|
var _this;
|
|
6293
6282
|
|
|
6294
6283
|
_classCallCheck(this, Preview);
|
|
@@ -6297,7 +6286,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6297
6286
|
args[_key] = arguments[_key];
|
|
6298
6287
|
}
|
|
6299
6288
|
|
|
6300
|
-
_this =
|
|
6289
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6301
6290
|
|
|
6302
6291
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6303
6292
|
|
|
@@ -6395,15 +6384,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6395
6384
|
}
|
|
6396
6385
|
};
|
|
6397
6386
|
|
|
6398
|
-
var defaultPlayIcon =
|
|
6387
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6399
6388
|
style: styles.shadow,
|
|
6400
6389
|
className: "react-player__shadow"
|
|
6401
|
-
},
|
|
6390
|
+
}, _react["default"].createElement("div", {
|
|
6402
6391
|
style: styles.playIcon,
|
|
6403
6392
|
className: "react-player__play-icon"
|
|
6404
6393
|
}));
|
|
6405
6394
|
|
|
6406
|
-
return
|
|
6395
|
+
return _react["default"].createElement("div", {
|
|
6407
6396
|
style: styles.preview,
|
|
6408
6397
|
className: "react-player__preview",
|
|
6409
6398
|
onClick: onClick
|
|
@@ -6426,7 +6415,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6426
6415
|
});
|
|
6427
6416
|
exports["default"] = renderPreloadPlayers;
|
|
6428
6417
|
|
|
6429
|
-
var _react = _interopRequireDefault(
|
|
6418
|
+
var _react = _interopRequireDefault(React__default);
|
|
6430
6419
|
|
|
6431
6420
|
var _Player = _interopRequireDefault(Player_1);
|
|
6432
6421
|
|
|
@@ -6440,12 +6429,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6440
6429
|
|
|
6441
6430
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6442
6431
|
|
|
6443
|
-
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; } } }; }
|
|
6444
|
-
|
|
6445
|
-
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); }
|
|
6446
|
-
|
|
6447
|
-
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; }
|
|
6448
|
-
|
|
6449
6432
|
var PRELOAD_PLAYERS = [{
|
|
6450
6433
|
Player: YouTube_1.YouTube,
|
|
6451
6434
|
configKey: 'youtube',
|
|
@@ -6466,16 +6449,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6466
6449
|
|
|
6467
6450
|
function renderPreloadPlayers(url, controls, config) {
|
|
6468
6451
|
var players = [];
|
|
6469
|
-
|
|
6470
|
-
var
|
|
6471
|
-
|
|
6452
|
+
var _iteratorNormalCompletion = true;
|
|
6453
|
+
var _didIteratorError = false;
|
|
6454
|
+
var _iteratorError = undefined;
|
|
6472
6455
|
|
|
6473
6456
|
try {
|
|
6474
|
-
for (_iterator.
|
|
6457
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6475
6458
|
var player = _step.value;
|
|
6476
6459
|
|
|
6477
6460
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6478
|
-
players.push(
|
|
6461
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6479
6462
|
key: player.Player.displayName,
|
|
6480
6463
|
activePlayer: player.Player,
|
|
6481
6464
|
url: player.url,
|
|
@@ -6487,9 +6470,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6487
6470
|
}
|
|
6488
6471
|
}
|
|
6489
6472
|
} catch (err) {
|
|
6490
|
-
|
|
6473
|
+
_didIteratorError = true;
|
|
6474
|
+
_iteratorError = err;
|
|
6491
6475
|
} finally {
|
|
6492
|
-
|
|
6476
|
+
try {
|
|
6477
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6478
|
+
_iterator["return"]();
|
|
6479
|
+
}
|
|
6480
|
+
} finally {
|
|
6481
|
+
if (_didIteratorError) {
|
|
6482
|
+
throw _iteratorError;
|
|
6483
|
+
}
|
|
6484
|
+
}
|
|
6493
6485
|
}
|
|
6494
6486
|
|
|
6495
6487
|
return players;
|
|
@@ -6565,7 +6557,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6565
6557
|
});
|
|
6566
6558
|
exports["default"] = void 0;
|
|
6567
6559
|
|
|
6568
|
-
var _react = _interopRequireWildcard(
|
|
6560
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6569
6561
|
|
|
6570
6562
|
|
|
6571
6563
|
|
|
@@ -6613,17 +6605,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6613
6605
|
|
|
6614
6606
|
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); }
|
|
6615
6607
|
|
|
6616
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6617
|
-
|
|
6618
|
-
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."); }
|
|
6619
|
-
|
|
6620
|
-
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); }
|
|
6608
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6621
6609
|
|
|
6622
|
-
function
|
|
6610
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6623
6611
|
|
|
6624
|
-
function
|
|
6612
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6625
6613
|
|
|
6626
|
-
function
|
|
6614
|
+
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; } }
|
|
6627
6615
|
|
|
6628
6616
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6629
6617
|
|
|
@@ -6631,16 +6619,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6631
6619
|
|
|
6632
6620
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6633
6621
|
|
|
6634
|
-
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); }; }
|
|
6635
|
-
|
|
6636
6622
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6637
6623
|
|
|
6638
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6639
|
-
|
|
6640
|
-
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; } }
|
|
6641
|
-
|
|
6642
6624
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6643
6625
|
|
|
6626
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6627
|
+
|
|
6644
6628
|
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); }
|
|
6645
6629
|
|
|
6646
6630
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6650,12 +6634,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6650
6634
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6651
6635
|
var customPlayers = [];
|
|
6652
6636
|
|
|
6653
|
-
var ReactPlayer =
|
|
6637
|
+
var ReactPlayer =
|
|
6638
|
+
/*#__PURE__*/
|
|
6639
|
+
function (_Component) {
|
|
6654
6640
|
_inherits(ReactPlayer, _Component);
|
|
6655
6641
|
|
|
6656
|
-
var _super = _createSuper(ReactPlayer);
|
|
6657
|
-
|
|
6658
6642
|
function ReactPlayer() {
|
|
6643
|
+
var _getPrototypeOf2;
|
|
6644
|
+
|
|
6659
6645
|
var _this;
|
|
6660
6646
|
|
|
6661
6647
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6664,7 +6650,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6664
6650
|
args[_key] = arguments[_key];
|
|
6665
6651
|
}
|
|
6666
6652
|
|
|
6667
|
-
_this =
|
|
6653
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6668
6654
|
|
|
6669
6655
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6670
6656
|
|
|
@@ -6775,7 +6761,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6775
6761
|
key: "renderActivePlayer",
|
|
6776
6762
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6777
6763
|
if (!url) return null;
|
|
6778
|
-
return
|
|
6764
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6779
6765
|
key: activePlayer.displayName,
|
|
6780
6766
|
ref: this.activePlayerRef,
|
|
6781
6767
|
config: this.config,
|
|
@@ -6812,14 +6798,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6812
6798
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6813
6799
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6814
6800
|
|
|
6815
|
-
var preview =
|
|
6801
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6816
6802
|
url: url,
|
|
6817
6803
|
light: light,
|
|
6818
6804
|
playIcon: playIcon,
|
|
6819
6805
|
onClick: this.handleClickPreview
|
|
6820
6806
|
});
|
|
6821
6807
|
|
|
6822
|
-
return
|
|
6808
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6823
6809
|
ref: this.wrapperRef,
|
|
6824
6810
|
style: _objectSpread({}, style, {
|
|
6825
6811
|
width: width,
|
|
@@ -6879,20 +6865,20 @@ var Audio = function Audio(_ref) {
|
|
|
6879
6865
|
var node = _ref.node;
|
|
6880
6866
|
|
|
6881
6867
|
if (node.uploadAudio) {
|
|
6882
|
-
return
|
|
6868
|
+
return React__default.createElement(
|
|
6883
6869
|
'div',
|
|
6884
6870
|
{ className: 'audio d-block text-center mb-3' },
|
|
6885
|
-
|
|
6871
|
+
React__default.createElement(
|
|
6886
6872
|
'audio',
|
|
6887
6873
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6888
|
-
|
|
6889
|
-
|
|
6874
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6875
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6890
6876
|
'Your browser does not support the audio element.'
|
|
6891
6877
|
),
|
|
6892
|
-
node.caption &&
|
|
6878
|
+
node.caption && React__default.createElement(
|
|
6893
6879
|
'p',
|
|
6894
6880
|
{ style: { fontSize: '.9rem' } },
|
|
6895
|
-
|
|
6881
|
+
React__default.createElement(
|
|
6896
6882
|
'em',
|
|
6897
6883
|
null,
|
|
6898
6884
|
node.caption
|
|
@@ -6902,15 +6888,15 @@ var Audio = function Audio(_ref) {
|
|
|
6902
6888
|
} else if (node.audioFilePth) {
|
|
6903
6889
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6904
6890
|
if (hostname === 'embeds.audioboom.com') {
|
|
6905
|
-
return
|
|
6891
|
+
return React__default.createElement(
|
|
6906
6892
|
'div',
|
|
6907
6893
|
null,
|
|
6908
|
-
|
|
6894
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6909
6895
|
' ',
|
|
6910
|
-
node.caption &&
|
|
6896
|
+
node.caption && React__default.createElement(
|
|
6911
6897
|
'p',
|
|
6912
6898
|
{ style: { fontSize: '.9rem' } },
|
|
6913
|
-
|
|
6899
|
+
React__default.createElement(
|
|
6914
6900
|
'em',
|
|
6915
6901
|
null,
|
|
6916
6902
|
node.caption
|
|
@@ -6918,14 +6904,14 @@ var Audio = function Audio(_ref) {
|
|
|
6918
6904
|
)
|
|
6919
6905
|
);
|
|
6920
6906
|
}
|
|
6921
|
-
return
|
|
6907
|
+
return React__default.createElement(
|
|
6922
6908
|
'div',
|
|
6923
6909
|
{ className: 'audio' },
|
|
6924
|
-
|
|
6925
|
-
node.caption &&
|
|
6910
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6911
|
+
node.caption && React__default.createElement(
|
|
6926
6912
|
'p',
|
|
6927
6913
|
{ style: { fontSize: '.9rem' } },
|
|
6928
|
-
|
|
6914
|
+
React__default.createElement(
|
|
6929
6915
|
'em',
|
|
6930
6916
|
null,
|
|
6931
6917
|
node.caption
|
|
@@ -7026,10 +7012,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7026
7012
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
7027
7013
|
};
|
|
7028
7014
|
|
|
7029
|
-
return
|
|
7015
|
+
return React__default.createElement(
|
|
7030
7016
|
'div',
|
|
7031
7017
|
null,
|
|
7032
|
-
vidLoaded &&
|
|
7018
|
+
vidLoaded && React__default.createElement(
|
|
7033
7019
|
'video',
|
|
7034
7020
|
{
|
|
7035
7021
|
poster: thumbnail || '',
|
|
@@ -7047,7 +7033,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7047
7033
|
onPlay: function onPlay(e) {
|
|
7048
7034
|
return handleOnPlay(e);
|
|
7049
7035
|
} },
|
|
7050
|
-
|
|
7036
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7051
7037
|
'Your browser does not support the video tag.'
|
|
7052
7038
|
)
|
|
7053
7039
|
);
|
|
@@ -7317,13 +7303,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7317
7303
|
}
|
|
7318
7304
|
};
|
|
7319
7305
|
|
|
7320
|
-
return
|
|
7306
|
+
return React__default.createElement(
|
|
7321
7307
|
'div',
|
|
7322
7308
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7323
|
-
|
|
7309
|
+
React__default.createElement(
|
|
7324
7310
|
'div',
|
|
7325
7311
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7326
|
-
vidUrl && vidType == 'youtube' &&
|
|
7312
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7327
7313
|
className: 'fluid-iframe',
|
|
7328
7314
|
videoId: getYoutubeId(vidUrl),
|
|
7329
7315
|
opts: opts,
|
|
@@ -7334,10 +7320,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7334
7320
|
return handleOnEnd(e);
|
|
7335
7321
|
}
|
|
7336
7322
|
}),
|
|
7337
|
-
vidUrl && vidType == 'mp4' &&
|
|
7338
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7339
|
-
|
|
7340
|
-
series &&
|
|
7323
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7324
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7325
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7326
|
+
series && React__default.createElement(
|
|
7341
7327
|
'div',
|
|
7342
7328
|
{
|
|
7343
7329
|
className: 'vid-series',
|
|
@@ -7347,10 +7333,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7347
7333
|
maxHeight: '100%',
|
|
7348
7334
|
paddingBottom: '0'
|
|
7349
7335
|
} },
|
|
7350
|
-
|
|
7336
|
+
React__default.createElement(
|
|
7351
7337
|
'p',
|
|
7352
7338
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7353
|
-
|
|
7339
|
+
React__default.createElement(
|
|
7354
7340
|
'b',
|
|
7355
7341
|
{ style: { fontSize: '1.25em' } },
|
|
7356
7342
|
'Now Playing:'
|
|
@@ -7358,36 +7344,36 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7358
7344
|
' ',
|
|
7359
7345
|
seriesData[series ? series - 1 : 0].title
|
|
7360
7346
|
),
|
|
7361
|
-
vidUrl &&
|
|
7347
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7362
7348
|
)
|
|
7363
7349
|
),
|
|
7364
|
-
|
|
7365
|
-
|
|
7350
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7351
|
+
React__default.createElement(
|
|
7366
7352
|
'div',
|
|
7367
7353
|
{ className: 'mt-2 mb-5' },
|
|
7368
|
-
series &&
|
|
7354
|
+
series && React__default.createElement(
|
|
7369
7355
|
'h3',
|
|
7370
7356
|
null,
|
|
7371
7357
|
'Episode ',
|
|
7372
7358
|
series
|
|
7373
7359
|
),
|
|
7374
|
-
Videos[series - 1] &&
|
|
7360
|
+
Videos[series - 1] && React__default.createElement(
|
|
7375
7361
|
'h2',
|
|
7376
7362
|
{ className: 'mb-3' },
|
|
7377
7363
|
Videos[series - 1].title
|
|
7378
7364
|
),
|
|
7379
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7365
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7380
7366
|
'p',
|
|
7381
7367
|
{ className: 'mb-3' },
|
|
7382
|
-
|
|
7368
|
+
React__default.createElement(
|
|
7383
7369
|
'em',
|
|
7384
7370
|
null,
|
|
7385
7371
|
Videos[series - 1].intro
|
|
7386
7372
|
)
|
|
7387
7373
|
),
|
|
7388
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7374
|
+
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()))
|
|
7389
7375
|
),
|
|
7390
|
-
|
|
7376
|
+
React__default.createElement(
|
|
7391
7377
|
'style',
|
|
7392
7378
|
{ jsx: 'true' },
|
|
7393
7379
|
'\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7396,13 +7382,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7396
7382
|
};
|
|
7397
7383
|
|
|
7398
7384
|
var Poll = function Poll(_ref) {
|
|
7399
|
-
var node = _ref.node
|
|
7400
|
-
_ref.client
|
|
7401
|
-
_ref.pageview
|
|
7402
|
-
_ref.videoAccountIDs
|
|
7403
|
-
|
|
7404
|
-
_ref.showVotes
|
|
7405
|
-
|
|
7385
|
+
var node = _ref.node,
|
|
7386
|
+
client = _ref.client,
|
|
7387
|
+
pageview = _ref.pageview,
|
|
7388
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7389
|
+
onVote = _ref.onVote,
|
|
7390
|
+
_ref$showVotes = _ref.showVotes,
|
|
7391
|
+
getSerializers = _ref.getSerializers;
|
|
7406
7392
|
|
|
7407
7393
|
var _useState = useState(null),
|
|
7408
7394
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7440,54 +7426,244 @@ var Poll = function Poll(_ref) {
|
|
|
7440
7426
|
return acc;
|
|
7441
7427
|
}
|
|
7442
7428
|
}, 0);
|
|
7443
|
-
return
|
|
7444
|
-
|
|
7429
|
+
return React__default.createElement(
|
|
7430
|
+
React__default.Fragment,
|
|
7445
7431
|
null,
|
|
7446
|
-
question &&
|
|
7432
|
+
question && React__default.createElement(
|
|
7447
7433
|
'p',
|
|
7448
7434
|
{ className: 'font-weight-bold' },
|
|
7449
7435
|
question
|
|
7450
7436
|
),
|
|
7451
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7437
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7452
7438
|
'form',
|
|
7453
7439
|
{ onSubmit: function onSubmit(e) {
|
|
7454
7440
|
return onSubmitPoll(e);
|
|
7455
7441
|
} },
|
|
7456
7442
|
choices && choices.map(function (choice) {
|
|
7457
|
-
return
|
|
7443
|
+
return React__default.createElement(
|
|
7458
7444
|
'div',
|
|
7459
7445
|
{ key: choice._key },
|
|
7460
|
-
|
|
7446
|
+
React__default.createElement(
|
|
7461
7447
|
'label',
|
|
7462
7448
|
{ className: 'pl-2' },
|
|
7463
|
-
|
|
7449
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7464
7450
|
return setSelectedChoice(e.target.value);
|
|
7465
7451
|
} }),
|
|
7466
7452
|
' ' + choice.choiceText
|
|
7467
7453
|
)
|
|
7468
7454
|
);
|
|
7469
7455
|
}),
|
|
7470
|
-
|
|
7456
|
+
React__default.createElement(
|
|
7471
7457
|
Button,
|
|
7472
7458
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7473
7459
|
'Vote'
|
|
7474
7460
|
)
|
|
7475
7461
|
),
|
|
7476
|
-
|
|
7462
|
+
React__default.createElement(
|
|
7477
7463
|
'div',
|
|
7478
7464
|
{ className: 'progress-container' },
|
|
7479
7465
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7480
7466
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7481
|
-
return
|
|
7467
|
+
return React__default.createElement(
|
|
7482
7468
|
'div',
|
|
7483
7469
|
{ key: choice._key, className: 'mb-3' },
|
|
7484
|
-
|
|
7470
|
+
React__default.createElement(
|
|
7471
|
+
'div',
|
|
7472
|
+
{ className: 'correct-answer' },
|
|
7473
|
+
React__default.createElement(
|
|
7474
|
+
'div',
|
|
7475
|
+
null,
|
|
7476
|
+
choice.choiceText
|
|
7477
|
+
),
|
|
7478
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7479
|
+
'div',
|
|
7480
|
+
null,
|
|
7481
|
+
React__default.createElement(
|
|
7482
|
+
'span',
|
|
7483
|
+
{ style: { color: 'limegreen' } },
|
|
7484
|
+
'Correct!'
|
|
7485
|
+
)
|
|
7486
|
+
)
|
|
7487
|
+
),
|
|
7488
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7489
|
+
React__default.createElement(
|
|
7485
7490
|
'span',
|
|
7486
|
-
|
|
7487
|
-
|
|
7491
|
+
{ className: 'float-right' },
|
|
7492
|
+
percentage,
|
|
7493
|
+
'% (',
|
|
7494
|
+
choice.choiceCount ? choice.choiceCount : 0,
|
|
7495
|
+
' Votes)'
|
|
7496
|
+
)
|
|
7497
|
+
);
|
|
7498
|
+
})
|
|
7499
|
+
),
|
|
7500
|
+
showAnswer && React__default.createElement(
|
|
7501
|
+
'h4',
|
|
7502
|
+
{ className: 'text-center small p-3' },
|
|
7503
|
+
'Total Votes: ',
|
|
7504
|
+
choicesTotalCount
|
|
7505
|
+
),
|
|
7506
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7507
|
+
React__default.createElement(
|
|
7508
|
+
'style',
|
|
7509
|
+
{ jsx: 'true' },
|
|
7510
|
+
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
7511
|
+
)
|
|
7512
|
+
);
|
|
7513
|
+
};
|
|
7514
|
+
|
|
7515
|
+
// https://github.com/tc39/proposal-object-values-entries
|
|
7516
|
+
|
|
7517
|
+
var $values = _objectToArray(false);
|
|
7518
|
+
|
|
7519
|
+
_export(_export.S, 'Object', {
|
|
7520
|
+
values: function values(it) {
|
|
7521
|
+
return $values(it);
|
|
7522
|
+
}
|
|
7523
|
+
});
|
|
7524
|
+
|
|
7525
|
+
var values = _core.Object.values;
|
|
7526
|
+
|
|
7527
|
+
var values$1 = createCommonjsModule(function (module) {
|
|
7528
|
+
module.exports = { "default": values, __esModule: true };
|
|
7529
|
+
});
|
|
7530
|
+
|
|
7531
|
+
var _Object$values = unwrapExports(values$1);
|
|
7532
|
+
|
|
7533
|
+
var Poll$1 = function Poll(_ref) {
|
|
7534
|
+
var node = _ref.node,
|
|
7535
|
+
client = _ref.client,
|
|
7536
|
+
pageview = _ref.pageview,
|
|
7537
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7538
|
+
onVote = _ref.onVote,
|
|
7539
|
+
_ref$showVotes = _ref.showVotes,
|
|
7540
|
+
getSerializers = _ref.getSerializers;
|
|
7541
|
+
|
|
7542
|
+
var _useState = useState(null),
|
|
7543
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7544
|
+
selectedChoice = _useState2[0],
|
|
7545
|
+
setSelectedChoice = _useState2[1];
|
|
7546
|
+
|
|
7547
|
+
var _useState3 = useState(false),
|
|
7548
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
7549
|
+
showAnswer = _useState4[0],
|
|
7550
|
+
setShowAnswer = _useState4[1];
|
|
7551
|
+
|
|
7552
|
+
var choices = node.choices,
|
|
7553
|
+
question = node.question,
|
|
7554
|
+
response = node.response,
|
|
7555
|
+
_node$showResults = node.showResults,
|
|
7556
|
+
showResults = _node$showResults === undefined ? false : _node$showResults;
|
|
7557
|
+
|
|
7558
|
+
|
|
7559
|
+
var onSubmitPoll = function onSubmitPoll(e, setShowAnswer) {
|
|
7560
|
+
e.preventDefault();
|
|
7561
|
+
var selections = [];
|
|
7562
|
+
var _iteratorNormalCompletion = true;
|
|
7563
|
+
var _didIteratorError = false;
|
|
7564
|
+
var _iteratorError = undefined;
|
|
7565
|
+
|
|
7566
|
+
try {
|
|
7567
|
+
for (var _iterator = _getIterator(_Object$values(e.currentTarget)), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
7568
|
+
var input = _step.value;
|
|
7569
|
+
|
|
7570
|
+
if (input.nodeName === 'INPUT' && input.checked) {
|
|
7571
|
+
selections.push(input.value);
|
|
7572
|
+
}
|
|
7573
|
+
}
|
|
7574
|
+
} catch (err) {
|
|
7575
|
+
_didIteratorError = true;
|
|
7576
|
+
_iteratorError = err;
|
|
7577
|
+
} finally {
|
|
7578
|
+
try {
|
|
7579
|
+
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
7580
|
+
_iterator.return();
|
|
7581
|
+
}
|
|
7582
|
+
} finally {
|
|
7583
|
+
if (_didIteratorError) {
|
|
7584
|
+
throw _iteratorError;
|
|
7585
|
+
}
|
|
7586
|
+
}
|
|
7587
|
+
}
|
|
7588
|
+
|
|
7589
|
+
onVote(node._key, selections.join(','));
|
|
7590
|
+
//setShowAnswer(true)
|
|
7591
|
+
};
|
|
7592
|
+
useEffect(function () {
|
|
7593
|
+
if (showResults) {
|
|
7594
|
+
setShowAnswer(showResults);
|
|
7595
|
+
}
|
|
7596
|
+
}, [showResults]);
|
|
7597
|
+
|
|
7598
|
+
var choicesTotalCount = choices && choices.reduce(function (acc, choice) {
|
|
7599
|
+
if (choice.choiceCount) {
|
|
7600
|
+
acc = acc + parseInt(choice.choiceCount);
|
|
7601
|
+
return acc;
|
|
7602
|
+
} else {
|
|
7603
|
+
return acc;
|
|
7604
|
+
}
|
|
7605
|
+
}, 0);
|
|
7606
|
+
return React__default.createElement(
|
|
7607
|
+
React__default.Fragment,
|
|
7608
|
+
null,
|
|
7609
|
+
question && React__default.createElement(
|
|
7610
|
+
'p',
|
|
7611
|
+
{ className: 'font-weight-bold' },
|
|
7612
|
+
question
|
|
7613
|
+
),
|
|
7614
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7615
|
+
'form',
|
|
7616
|
+
{ onSubmit: function onSubmit(e) {
|
|
7617
|
+
return onSubmitPoll(e);
|
|
7618
|
+
} },
|
|
7619
|
+
choices && choices.map(function (choice) {
|
|
7620
|
+
return React__default.createElement(
|
|
7621
|
+
'div',
|
|
7622
|
+
{ key: choice._key },
|
|
7623
|
+
React__default.createElement(
|
|
7624
|
+
'label',
|
|
7625
|
+
{ className: 'pl-2' },
|
|
7626
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7627
|
+
return setSelectedChoice(e.target.value);
|
|
7628
|
+
} }),
|
|
7629
|
+
' ' + choice.choiceText
|
|
7630
|
+
)
|
|
7631
|
+
);
|
|
7632
|
+
}),
|
|
7633
|
+
React__default.createElement(
|
|
7634
|
+
Button,
|
|
7635
|
+
{ disabled: !selectedChoice, type: 'submit' },
|
|
7636
|
+
'Vote'
|
|
7637
|
+
)
|
|
7638
|
+
),
|
|
7639
|
+
React__default.createElement(
|
|
7640
|
+
'div',
|
|
7641
|
+
{ className: 'progress-container' },
|
|
7642
|
+
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7643
|
+
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7644
|
+
return React__default.createElement(
|
|
7645
|
+
'div',
|
|
7646
|
+
{ key: choice._key, className: 'mb-3' },
|
|
7647
|
+
React__default.createElement(
|
|
7648
|
+
'div',
|
|
7649
|
+
{ className: 'correct-answer' },
|
|
7650
|
+
React__default.createElement(
|
|
7651
|
+
'div',
|
|
7652
|
+
null,
|
|
7653
|
+
choice.choiceText
|
|
7654
|
+
),
|
|
7655
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7656
|
+
'div',
|
|
7657
|
+
null,
|
|
7658
|
+
React__default.createElement(
|
|
7659
|
+
'span',
|
|
7660
|
+
{ style: { color: 'limegreen' } },
|
|
7661
|
+
'Correct!'
|
|
7662
|
+
)
|
|
7663
|
+
)
|
|
7488
7664
|
),
|
|
7489
|
-
|
|
7490
|
-
|
|
7665
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7666
|
+
React__default.createElement(
|
|
7491
7667
|
'span',
|
|
7492
7668
|
{ className: 'float-right' },
|
|
7493
7669
|
percentage,
|
|
@@ -7498,22 +7674,22 @@ var Poll = function Poll(_ref) {
|
|
|
7498
7674
|
);
|
|
7499
7675
|
})
|
|
7500
7676
|
),
|
|
7501
|
-
showAnswer &&
|
|
7677
|
+
showAnswer && React__default.createElement(
|
|
7502
7678
|
'h4',
|
|
7503
7679
|
{ className: 'text-center small p-3' },
|
|
7504
7680
|
'Total Votes: ',
|
|
7505
7681
|
choicesTotalCount
|
|
7506
7682
|
),
|
|
7507
|
-
showAnswer && response &&
|
|
7508
|
-
|
|
7683
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7684
|
+
React__default.createElement(
|
|
7509
7685
|
'style',
|
|
7510
7686
|
{ jsx: 'true' },
|
|
7511
|
-
'\n .progress-bar {\n color: #fff;\n }\n '
|
|
7687
|
+
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
7512
7688
|
)
|
|
7513
7689
|
);
|
|
7514
7690
|
};
|
|
7515
7691
|
|
|
7516
|
-
var numberOfPaginations =
|
|
7692
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7517
7693
|
|
|
7518
7694
|
var Quiz = function Quiz(_ref) {
|
|
7519
7695
|
var quizzes = _ref.quizzes,
|
|
@@ -7548,6 +7724,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7548
7724
|
pages = _useState10[0],
|
|
7549
7725
|
setPages = _useState10[1];
|
|
7550
7726
|
|
|
7727
|
+
var answersRef = useRef(null);
|
|
7728
|
+
|
|
7729
|
+
var _useState11 = useState(false),
|
|
7730
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
7731
|
+
isDisabled = _useState12[0],
|
|
7732
|
+
setIsDisabled = _useState12[1];
|
|
7733
|
+
|
|
7551
7734
|
useEffect(function () {
|
|
7552
7735
|
var totalPages = _Array$from({ length: pageCount }, function (v, k) {
|
|
7553
7736
|
return k + 1;
|
|
@@ -7624,20 +7807,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7624
7807
|
};
|
|
7625
7808
|
|
|
7626
7809
|
var renderPagination = function renderPagination() {
|
|
7627
|
-
return
|
|
7810
|
+
return React__default.createElement(
|
|
7628
7811
|
Pagination,
|
|
7629
|
-
{ className: 'p-0 m-0', size:
|
|
7630
|
-
|
|
7812
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7813
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7631
7814
|
return changePage('first');
|
|
7632
7815
|
}, disabled: currentPage === 1 }),
|
|
7633
|
-
|
|
7816
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7634
7817
|
return changePage('prev');
|
|
7635
7818
|
}, disabled: currentPage === 1 }),
|
|
7636
|
-
|
|
7819
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7637
7820
|
return renderNewPages('prev');
|
|
7638
7821
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7639
7822
|
pages.map(function (page) {
|
|
7640
|
-
return
|
|
7823
|
+
return React__default.createElement(
|
|
7641
7824
|
Pagination.Item,
|
|
7642
7825
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7643
7826
|
return changePage(page);
|
|
@@ -7645,41 +7828,140 @@ var Quiz = function Quiz(_ref) {
|
|
|
7645
7828
|
page
|
|
7646
7829
|
);
|
|
7647
7830
|
}),
|
|
7648
|
-
|
|
7831
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7649
7832
|
return renderNewPages('next');
|
|
7650
7833
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7651
|
-
|
|
7834
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7652
7835
|
return changePage('next');
|
|
7653
7836
|
}, disabled: currentPage === pageCount }),
|
|
7654
|
-
|
|
7837
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7655
7838
|
return changePage('last');
|
|
7656
7839
|
}, disabled: currentPage === pageCount })
|
|
7657
7840
|
);
|
|
7658
7841
|
};
|
|
7659
7842
|
|
|
7660
|
-
|
|
7661
|
-
|
|
7843
|
+
var checkAnswers = function checkAnswers(e) {
|
|
7844
|
+
if (!quizzes[currentPage - 1].quizAnswers) {
|
|
7845
|
+
setShowAnswer(true);
|
|
7846
|
+
return;
|
|
7847
|
+
}
|
|
7848
|
+
|
|
7849
|
+
var correctAnswers = [];
|
|
7850
|
+
|
|
7851
|
+
var _iteratorNormalCompletion = true;
|
|
7852
|
+
var _didIteratorError = false;
|
|
7853
|
+
var _iteratorError = undefined;
|
|
7854
|
+
|
|
7855
|
+
try {
|
|
7856
|
+
for (var _iterator = _getIterator(quizzes[currentPage - 1].quizAnswers), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
7857
|
+
var answer = _step.value;
|
|
7858
|
+
|
|
7859
|
+
if (answer.correctAnswer === true) {
|
|
7860
|
+
correctAnswers.push(answer._key);
|
|
7861
|
+
}
|
|
7862
|
+
}
|
|
7863
|
+
} catch (err) {
|
|
7864
|
+
_didIteratorError = true;
|
|
7865
|
+
_iteratorError = err;
|
|
7866
|
+
} finally {
|
|
7867
|
+
try {
|
|
7868
|
+
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
7869
|
+
_iterator.return();
|
|
7870
|
+
}
|
|
7871
|
+
} finally {
|
|
7872
|
+
if (_didIteratorError) {
|
|
7873
|
+
throw _iteratorError;
|
|
7874
|
+
}
|
|
7875
|
+
}
|
|
7876
|
+
}
|
|
7877
|
+
|
|
7878
|
+
var _loop = function _loop(input) {
|
|
7879
|
+
var isCorrect = correctAnswers.findIndex(function (value) {
|
|
7880
|
+
return value === input.value;
|
|
7881
|
+
});
|
|
7882
|
+
if (input.nodeName === 'INPUT' && input.checked) {
|
|
7883
|
+
if (isCorrect < 0) {
|
|
7884
|
+
input.parentElement.style.color = '#ea1e1e';
|
|
7885
|
+
}
|
|
7886
|
+
setShowAnswer(true);
|
|
7887
|
+
}
|
|
7888
|
+
if (isCorrect >= 0) {
|
|
7889
|
+
input.parentElement.style.color = 'limegreen';
|
|
7890
|
+
}
|
|
7891
|
+
setIsDisabled(true);
|
|
7892
|
+
};
|
|
7893
|
+
|
|
7894
|
+
var _iteratorNormalCompletion2 = true;
|
|
7895
|
+
var _didIteratorError2 = false;
|
|
7896
|
+
var _iteratorError2 = undefined;
|
|
7897
|
+
|
|
7898
|
+
try {
|
|
7899
|
+
for (var _iterator2 = _getIterator(_Object$values(answersRef.current)), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
7900
|
+
var input = _step2.value;
|
|
7901
|
+
|
|
7902
|
+
_loop(input);
|
|
7903
|
+
}
|
|
7904
|
+
} catch (err) {
|
|
7905
|
+
_didIteratorError2 = true;
|
|
7906
|
+
_iteratorError2 = err;
|
|
7907
|
+
} finally {
|
|
7908
|
+
try {
|
|
7909
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
7910
|
+
_iterator2.return();
|
|
7911
|
+
}
|
|
7912
|
+
} finally {
|
|
7913
|
+
if (_didIteratorError2) {
|
|
7914
|
+
throw _iteratorError2;
|
|
7915
|
+
}
|
|
7916
|
+
}
|
|
7917
|
+
}
|
|
7918
|
+
};
|
|
7919
|
+
|
|
7920
|
+
return React__default.createElement(
|
|
7921
|
+
React__default.Fragment,
|
|
7662
7922
|
null,
|
|
7663
|
-
quizzes[currentPage - 1] &&
|
|
7664
|
-
|
|
7923
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
7924
|
+
React__default.Fragment,
|
|
7925
|
+
null,
|
|
7926
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7927
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
7928
|
+
'form',
|
|
7929
|
+
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
7930
|
+
return e.preventDefault();
|
|
7931
|
+
} },
|
|
7932
|
+
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
7933
|
+
return React__default.createElement(
|
|
7934
|
+
'div',
|
|
7935
|
+
{ key: answer._key },
|
|
7936
|
+
React__default.createElement(
|
|
7937
|
+
'label',
|
|
7938
|
+
{ className: 'pl-2' },
|
|
7939
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
7940
|
+
' ' + answer.answerText
|
|
7941
|
+
)
|
|
7942
|
+
);
|
|
7943
|
+
})
|
|
7944
|
+
)
|
|
7945
|
+
),
|
|
7946
|
+
!showAnswer && React__default.createElement(
|
|
7665
7947
|
Button$1,
|
|
7666
7948
|
{ onClick: function onClick() {
|
|
7667
|
-
return
|
|
7949
|
+
return checkAnswers();
|
|
7668
7950
|
}, variant: 'info', block: true },
|
|
7669
7951
|
'Please click here for answer'
|
|
7670
7952
|
),
|
|
7671
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
7672
|
-
|
|
7953
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
7954
|
+
React__default.Fragment,
|
|
7673
7955
|
null,
|
|
7674
|
-
|
|
7956
|
+
React__default.createElement(
|
|
7675
7957
|
'h4',
|
|
7676
7958
|
null,
|
|
7677
7959
|
'Answer:'
|
|
7678
7960
|
),
|
|
7679
|
-
|
|
7961
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7680
7962
|
),
|
|
7681
|
-
|
|
7682
|
-
pageCount > 1 &&
|
|
7963
|
+
React__default.createElement('br', null),
|
|
7964
|
+
pageCount > 1 && React__default.createElement(
|
|
7683
7965
|
'div',
|
|
7684
7966
|
{ className: 'd-flex justify-content-center' },
|
|
7685
7967
|
renderPagination()
|
|
@@ -7690,10 +7972,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
7690
7972
|
var Leads = function Leads(_ref) {
|
|
7691
7973
|
var url = _ref.url;
|
|
7692
7974
|
|
|
7693
|
-
return
|
|
7975
|
+
return React__default.createElement(
|
|
7694
7976
|
'div',
|
|
7695
7977
|
{ className: 'd-block text-center mb-3' },
|
|
7696
|
-
url &&
|
|
7978
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
7697
7979
|
);
|
|
7698
7980
|
};
|
|
7699
7981
|
|
|
@@ -7714,8 +7996,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7714
7996
|
|
|
7715
7997
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
7716
7998
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7717
|
-
carouselIndex = _useState2[0]
|
|
7718
|
-
_useState2[1];
|
|
7999
|
+
carouselIndex = _useState2[0],
|
|
8000
|
+
setCarouselIndex = _useState2[1];
|
|
7719
8001
|
|
|
7720
8002
|
// useEffect(() => {
|
|
7721
8003
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -7741,42 +8023,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7741
8023
|
}
|
|
7742
8024
|
};
|
|
7743
8025
|
|
|
7744
|
-
return
|
|
8026
|
+
return React__default.createElement(
|
|
7745
8027
|
'div',
|
|
7746
8028
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
7747
|
-
|
|
8029
|
+
React__default.createElement(
|
|
7748
8030
|
Carousel,
|
|
7749
8031
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
7750
8032
|
slides && slides.map(function (slide) {
|
|
7751
8033
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
7752
|
-
return
|
|
8034
|
+
return React__default.createElement(
|
|
7753
8035
|
Carousel.Item,
|
|
7754
8036
|
{ key: slide._key },
|
|
7755
|
-
|
|
8037
|
+
React__default.createElement(
|
|
7756
8038
|
'a',
|
|
7757
8039
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
7758
|
-
|
|
8040
|
+
React__default.createElement(
|
|
7759
8041
|
LazyLoad,
|
|
7760
8042
|
null,
|
|
7761
|
-
|
|
8043
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
7762
8044
|
)
|
|
7763
8045
|
),
|
|
7764
|
-
|
|
8046
|
+
React__default.createElement(
|
|
7765
8047
|
'div',
|
|
7766
8048
|
{ className: 'p-2' },
|
|
7767
|
-
slide.slideshowImage.caption &&
|
|
8049
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
7768
8050
|
'h3',
|
|
7769
8051
|
{ style: { padding: '0px' } },
|
|
7770
8052
|
slide.slideshowImage.caption
|
|
7771
8053
|
),
|
|
7772
|
-
slide.description &&
|
|
8054
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
7773
8055
|
)
|
|
7774
8056
|
);
|
|
7775
8057
|
}
|
|
7776
8058
|
return null;
|
|
7777
8059
|
})
|
|
7778
8060
|
),
|
|
7779
|
-
|
|
8061
|
+
React__default.createElement(
|
|
7780
8062
|
'style',
|
|
7781
8063
|
{ jsx: 'true' },
|
|
7782
8064
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -7795,10 +8077,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
7795
8077
|
sizes = _props$node.sizes,
|
|
7796
8078
|
sizeMapping = _props$node.sizeMapping;
|
|
7797
8079
|
|
|
7798
|
-
return
|
|
8080
|
+
return React__default.createElement(
|
|
7799
8081
|
'div',
|
|
7800
8082
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
7801
|
-
|
|
8083
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
7802
8084
|
);
|
|
7803
8085
|
};
|
|
7804
8086
|
|
|
@@ -7819,15 +8101,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
7819
8101
|
|
|
7820
8102
|
var htmlContent = '\n <script needsegmentsupport="true" type="text/javascript" src="https://mjhlifesciences.formstack.com/forms/js.php/' + FormID + '"></script>\n <noscript><a href="https://mjhlifesciences.formstack.com/forms/' + FormID + '" title="Online Form">' + Caption + '</a></noscript>\n ';
|
|
7821
8103
|
|
|
7822
|
-
return
|
|
8104
|
+
return React__default.createElement(
|
|
7823
8105
|
'div',
|
|
7824
8106
|
{ ref: formstackRef },
|
|
7825
|
-
|
|
8107
|
+
React__default.createElement(
|
|
7826
8108
|
'h4',
|
|
7827
8109
|
{ className: 'formstack-caption' },
|
|
7828
8110
|
Caption
|
|
7829
8111
|
),
|
|
7830
|
-
|
|
8112
|
+
React__default.createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
|
|
7831
8113
|
);
|
|
7832
8114
|
};
|
|
7833
8115
|
|
|
@@ -7847,29 +8129,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7847
8129
|
}
|
|
7848
8130
|
});
|
|
7849
8131
|
if (medias && medias.length > 0) {
|
|
7850
|
-
return
|
|
8132
|
+
return React__default.createElement(
|
|
7851
8133
|
'div',
|
|
7852
8134
|
{ className: 'multi-media-container' },
|
|
7853
|
-
|
|
8135
|
+
React__default.createElement(
|
|
7854
8136
|
Row,
|
|
7855
8137
|
{ noGutters: true },
|
|
7856
8138
|
medias.map(function (media) {
|
|
7857
|
-
return
|
|
8139
|
+
return React__default.createElement(
|
|
7858
8140
|
Col,
|
|
7859
8141
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7860
|
-
|
|
8142
|
+
React__default.createElement(
|
|
7861
8143
|
'a',
|
|
7862
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8144
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7863
8145
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7864
|
-
|
|
8146
|
+
React__default.createElement(
|
|
7865
8147
|
'div',
|
|
7866
8148
|
{ className: 'multi-media-image-container' },
|
|
7867
|
-
imageBox &&
|
|
8149
|
+
imageBox && React__default.createElement(
|
|
7868
8150
|
LazyLoad,
|
|
7869
8151
|
{ once: true },
|
|
7870
|
-
|
|
8152
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
7871
8153
|
),
|
|
7872
|
-
media.caption &&
|
|
8154
|
+
media.caption && React__default.createElement(
|
|
7873
8155
|
'span',
|
|
7874
8156
|
{ className: 'multi-media-caption' },
|
|
7875
8157
|
media.caption
|
|
@@ -7879,7 +8161,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7879
8161
|
);
|
|
7880
8162
|
})
|
|
7881
8163
|
),
|
|
7882
|
-
|
|
8164
|
+
React__default.createElement(
|
|
7883
8165
|
'style',
|
|
7884
8166
|
{ jsx: 'true' },
|
|
7885
8167
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-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-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -7895,34 +8177,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7895
8177
|
var profileImage = arguments[6];
|
|
7896
8178
|
|
|
7897
8179
|
if (authorName && authorURL) {
|
|
7898
|
-
return
|
|
8180
|
+
return React__default.createElement(
|
|
7899
8181
|
'span',
|
|
7900
8182
|
null,
|
|
7901
|
-
|
|
8183
|
+
React__default.createElement(
|
|
7902
8184
|
'a',
|
|
7903
8185
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7904
8186
|
authorName
|
|
7905
8187
|
),
|
|
7906
|
-
|
|
8188
|
+
React__default.createElement(
|
|
7907
8189
|
Card,
|
|
7908
8190
|
{ className: 'author-details-card-' + index },
|
|
7909
|
-
|
|
8191
|
+
React__default.createElement(
|
|
7910
8192
|
Row$1,
|
|
7911
8193
|
null,
|
|
7912
|
-
profileImage &&
|
|
8194
|
+
profileImage && React__default.createElement(
|
|
7913
8195
|
Col$1,
|
|
7914
8196
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7915
|
-
|
|
8197
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7916
8198
|
),
|
|
7917
|
-
|
|
8199
|
+
React__default.createElement(
|
|
7918
8200
|
Col$1,
|
|
7919
8201
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7920
|
-
|
|
8202
|
+
React__default.createElement(
|
|
7921
8203
|
'h5',
|
|
7922
8204
|
null,
|
|
7923
8205
|
authorName
|
|
7924
8206
|
),
|
|
7925
|
-
|
|
8207
|
+
React__default.createElement(
|
|
7926
8208
|
'p',
|
|
7927
8209
|
null,
|
|
7928
8210
|
biography
|
|
@@ -7930,7 +8212,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7930
8212
|
)
|
|
7931
8213
|
)
|
|
7932
8214
|
),
|
|
7933
|
-
|
|
8215
|
+
React__default.createElement(
|
|
7934
8216
|
'style',
|
|
7935
8217
|
{ jsx: 'true' },
|
|
7936
8218
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7938,7 +8220,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7938
8220
|
length !== index + 1 && ' , '
|
|
7939
8221
|
);
|
|
7940
8222
|
} else if (authorName) {
|
|
7941
|
-
return
|
|
8223
|
+
return React__default.createElement(
|
|
7942
8224
|
'span',
|
|
7943
8225
|
{ key: index },
|
|
7944
8226
|
authorName,
|
|
@@ -7984,7 +8266,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
7984
8266
|
}
|
|
7985
8267
|
};
|
|
7986
8268
|
|
|
7987
|
-
_this.wraperRef =
|
|
8269
|
+
_this.wraperRef = React__default.createRef();
|
|
7988
8270
|
_this.visible = false;
|
|
7989
8271
|
return _this;
|
|
7990
8272
|
}
|
|
@@ -8012,7 +8294,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8012
8294
|
_props$id = _props.id,
|
|
8013
8295
|
id = _props$id === undefined ? '' : _props$id;
|
|
8014
8296
|
|
|
8015
|
-
return
|
|
8297
|
+
return React__default.createElement(
|
|
8016
8298
|
'div',
|
|
8017
8299
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8018
8300
|
this.props.children
|
|
@@ -8021,7 +8303,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8021
8303
|
}]);
|
|
8022
8304
|
|
|
8023
8305
|
return InscreenSensor;
|
|
8024
|
-
}(
|
|
8306
|
+
}(React__default.Component);
|
|
8025
8307
|
|
|
8026
8308
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8027
8309
|
var nodes = _ref.nodes,
|
|
@@ -8134,33 +8416,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8134
8416
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8135
8417
|
var showReading = show ? 'showReading' : '';
|
|
8136
8418
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8137
|
-
return
|
|
8419
|
+
return React__default.createElement(
|
|
8138
8420
|
'div',
|
|
8139
8421
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8140
|
-
|
|
8422
|
+
React__default.createElement(
|
|
8141
8423
|
'a',
|
|
8142
8424
|
{ onClick: function onClick(e) {
|
|
8143
8425
|
return articleCardClickHandler(e);
|
|
8144
8426
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8145
|
-
|
|
8427
|
+
React__default.createElement(
|
|
8146
8428
|
'div',
|
|
8147
8429
|
{ className: 'prevNext-thumbnail' },
|
|
8148
|
-
|
|
8149
|
-
|
|
8430
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8431
|
+
React__default.createElement(
|
|
8150
8432
|
'div',
|
|
8151
8433
|
{ className: 'prevNext-reading ' + showReading },
|
|
8152
8434
|
articleLabel
|
|
8153
8435
|
)
|
|
8154
8436
|
),
|
|
8155
|
-
|
|
8437
|
+
React__default.createElement(
|
|
8156
8438
|
'div',
|
|
8157
8439
|
{ className: 'prevNext-summary' },
|
|
8158
|
-
|
|
8440
|
+
React__default.createElement(
|
|
8159
8441
|
'div',
|
|
8160
8442
|
{ className: 'prevNext-publishDate' },
|
|
8161
8443
|
moment(article.published).format('LL')
|
|
8162
8444
|
),
|
|
8163
|
-
|
|
8445
|
+
React__default.createElement(
|
|
8164
8446
|
'h2',
|
|
8165
8447
|
{ className: 'prevNext-title' },
|
|
8166
8448
|
article.title
|
|
@@ -8209,7 +8491,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8209
8491
|
|
|
8210
8492
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8211
8493
|
if (biography) {
|
|
8212
|
-
return
|
|
8494
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8213
8495
|
}
|
|
8214
8496
|
};
|
|
8215
8497
|
|
|
@@ -8295,7 +8577,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8295
8577
|
//console.log('useLayoutEffect')
|
|
8296
8578
|
if (!firstLoad) {
|
|
8297
8579
|
setUpArrowClicked(false);
|
|
8298
|
-
if (
|
|
8580
|
+
if (main_36) {
|
|
8299
8581
|
grabLoadedAds();
|
|
8300
8582
|
} else {
|
|
8301
8583
|
scrollToArticle();
|
|
@@ -8319,7 +8601,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8319
8601
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8320
8602
|
if (pageview) pageview(path);
|
|
8321
8603
|
|
|
8322
|
-
if (!
|
|
8604
|
+
if (!main_36) {
|
|
8323
8605
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8324
8606
|
if (window.googletag && googletag.pubadsReady) {
|
|
8325
8607
|
lib_3.refresh();
|
|
@@ -8327,7 +8609,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8327
8609
|
});
|
|
8328
8610
|
}
|
|
8329
8611
|
//Refresh leaderboard ad on mobile
|
|
8330
|
-
if (
|
|
8612
|
+
if (main_36) {
|
|
8331
8613
|
var leaderboardSlotId = '';
|
|
8332
8614
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8333
8615
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8367,38 +8649,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8367
8649
|
setSensorVisible(false);
|
|
8368
8650
|
};
|
|
8369
8651
|
|
|
8370
|
-
return
|
|
8371
|
-
|
|
8652
|
+
return React__default.createElement(
|
|
8653
|
+
React__default.Fragment,
|
|
8372
8654
|
null,
|
|
8373
|
-
|
|
8655
|
+
React__default.createElement(
|
|
8374
8656
|
'div',
|
|
8375
8657
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8376
|
-
|
|
8658
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8377
8659
|
return handleArrowClick();
|
|
8378
8660
|
} })
|
|
8379
8661
|
),
|
|
8380
|
-
|
|
8381
|
-
|
|
8662
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8663
|
+
React__default.createElement(
|
|
8382
8664
|
'div',
|
|
8383
8665
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8384
|
-
|
|
8666
|
+
React__default.createElement(
|
|
8385
8667
|
'h5',
|
|
8386
8668
|
{ className: 'objective-title' },
|
|
8387
8669
|
nodes.seriesTitle
|
|
8388
8670
|
),
|
|
8389
|
-
|
|
8671
|
+
React__default.createElement(
|
|
8390
8672
|
'div',
|
|
8391
8673
|
{ className: 'prevNextWrapper' },
|
|
8392
8674
|
PrevNextCards(false, -1)
|
|
8393
8675
|
)
|
|
8394
8676
|
),
|
|
8395
|
-
|
|
8396
|
-
|
|
8677
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8678
|
+
React__default.createElement(
|
|
8397
8679
|
'div',
|
|
8398
8680
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8399
|
-
|
|
8681
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8400
8682
|
if (index === 0) {
|
|
8401
|
-
return
|
|
8683
|
+
return React__default.createElement(
|
|
8402
8684
|
'div',
|
|
8403
8685
|
{
|
|
8404
8686
|
key: 'addid-1',
|
|
@@ -8418,14 +8700,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8418
8700
|
}
|
|
8419
8701
|
})
|
|
8420
8702
|
),
|
|
8421
|
-
|
|
8703
|
+
React__default.createElement(
|
|
8422
8704
|
'div',
|
|
8423
8705
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8424
8706
|
Articles.map(function (article, index) {
|
|
8425
|
-
return
|
|
8707
|
+
return React__default.createElement(
|
|
8426
8708
|
'div',
|
|
8427
8709
|
{ key: article.title },
|
|
8428
|
-
|
|
8710
|
+
React__default.createElement(
|
|
8429
8711
|
InscreenSensor,
|
|
8430
8712
|
{
|
|
8431
8713
|
visible: sensorVisible,
|
|
@@ -8443,84 +8725,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8443
8725
|
}
|
|
8444
8726
|
}
|
|
8445
8727
|
} },
|
|
8446
|
-
|
|
8728
|
+
React__default.createElement(
|
|
8447
8729
|
Head,
|
|
8448
8730
|
null,
|
|
8449
|
-
currentTitle !== null &&
|
|
8731
|
+
currentTitle !== null && React__default.createElement(
|
|
8450
8732
|
'title',
|
|
8451
8733
|
{ key: 'title' },
|
|
8452
8734
|
currentTitle
|
|
8453
8735
|
),
|
|
8454
|
-
currentSummary !== null &&
|
|
8455
|
-
currentURL !== null &&
|
|
8456
|
-
currentTitle !== null &&
|
|
8457
|
-
currentThumbnail !== null &&
|
|
8458
|
-
currentSummary !== null &&
|
|
8459
|
-
currentTitle !== null &&
|
|
8460
|
-
currentThumbnail !== null &&
|
|
8461
|
-
currentSummary !== null &&
|
|
8736
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8737
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8738
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8739
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8740
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8741
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8742
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8743
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8462
8744
|
),
|
|
8463
|
-
|
|
8745
|
+
React__default.createElement(
|
|
8464
8746
|
'article',
|
|
8465
8747
|
{ className: 'article-wrapper' },
|
|
8466
|
-
|
|
8748
|
+
React__default.createElement(
|
|
8467
8749
|
'div',
|
|
8468
8750
|
{ className: 'article-publishDate' },
|
|
8469
8751
|
moment(article.published).format('LL')
|
|
8470
8752
|
),
|
|
8471
|
-
|
|
8753
|
+
React__default.createElement(
|
|
8472
8754
|
'div',
|
|
8473
8755
|
{ className: 'author-details-wrapper' },
|
|
8474
8756
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8475
|
-
return
|
|
8757
|
+
return React__default.createElement(
|
|
8476
8758
|
'span',
|
|
8477
8759
|
{ key: index },
|
|
8478
8760
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8479
8761
|
);
|
|
8480
8762
|
})
|
|
8481
8763
|
),
|
|
8482
|
-
|
|
8764
|
+
React__default.createElement(
|
|
8483
8765
|
'h2',
|
|
8484
8766
|
{ className: 'article-title' },
|
|
8485
8767
|
article.title
|
|
8486
8768
|
),
|
|
8487
|
-
|
|
8769
|
+
React__default.createElement(
|
|
8488
8770
|
'div',
|
|
8489
8771
|
{ className: 'mt-2 mb-2' },
|
|
8490
|
-
|
|
8772
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8491
8773
|
serializers: getSerializers,
|
|
8492
8774
|
videoAccountIDs: accountIDs,
|
|
8493
8775
|
blocks: article.text,
|
|
8494
8776
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8495
8777
|
}, client.config())),
|
|
8496
|
-
|
|
8778
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8497
8779
|
),
|
|
8498
|
-
Articles.length > 1 &&
|
|
8499
|
-
|
|
8780
|
+
Articles.length > 1 && React__default.createElement(
|
|
8781
|
+
React__default.Fragment,
|
|
8500
8782
|
null,
|
|
8501
|
-
|
|
8783
|
+
React__default.createElement(
|
|
8502
8784
|
'div',
|
|
8503
8785
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8504
|
-
|
|
8786
|
+
React__default.createElement(
|
|
8505
8787
|
'h5',
|
|
8506
8788
|
{ className: 'objective-title' },
|
|
8507
8789
|
nodes.seriesTitle
|
|
8508
8790
|
),
|
|
8509
|
-
|
|
8791
|
+
React__default.createElement(
|
|
8510
8792
|
'div',
|
|
8511
8793
|
{ className: 'prevNextWrapper' },
|
|
8512
8794
|
PrevNextCards(true, index)
|
|
8513
8795
|
)
|
|
8514
8796
|
),
|
|
8515
|
-
|
|
8797
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8516
8798
|
)
|
|
8517
8799
|
),
|
|
8518
|
-
|
|
8800
|
+
React__default.createElement(
|
|
8519
8801
|
'div',
|
|
8520
8802
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8521
|
-
|
|
8803
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8522
8804
|
if (innerIndex === 0) {
|
|
8523
|
-
return
|
|
8805
|
+
return React__default.createElement(
|
|
8524
8806
|
'div',
|
|
8525
8807
|
{
|
|
8526
8808
|
key: 'addid-' + (index + 2),
|
|
@@ -8543,7 +8825,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8543
8825
|
)
|
|
8544
8826
|
);
|
|
8545
8827
|
}),
|
|
8546
|
-
|
|
8828
|
+
React__default.createElement(
|
|
8547
8829
|
'style',
|
|
8548
8830
|
{ jsx: 'true' },
|
|
8549
8831
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8573,11 +8855,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8573
8855
|
};
|
|
8574
8856
|
}, [handleClickOutside]);
|
|
8575
8857
|
|
|
8576
|
-
return
|
|
8858
|
+
return React__default.createElement(
|
|
8577
8859
|
'div',
|
|
8578
8860
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8579
|
-
|
|
8580
|
-
|
|
8861
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8862
|
+
React__default.createElement(
|
|
8581
8863
|
'style',
|
|
8582
8864
|
{ jsx: 'true' },
|
|
8583
8865
|
'\n /*Eliminates padding, centers the thumbnail */\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 '
|
|
@@ -8671,13 +8953,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8671
8953
|
|
|
8672
8954
|
var FigureCaption = useCallback(function () {
|
|
8673
8955
|
if (imgcaption && imgcaption.length > 0) {
|
|
8674
|
-
return
|
|
8956
|
+
return React__default.createElement(
|
|
8675
8957
|
'div',
|
|
8676
8958
|
{ className: 'figure-caption' },
|
|
8677
|
-
|
|
8959
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8678
8960
|
);
|
|
8679
8961
|
} else if (caption) {
|
|
8680
|
-
return
|
|
8962
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
8681
8963
|
} else return null;
|
|
8682
8964
|
}, [caption, imgcaption]);
|
|
8683
8965
|
|
|
@@ -8689,21 +8971,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8689
8971
|
margin: figureMargin
|
|
8690
8972
|
};
|
|
8691
8973
|
|
|
8692
|
-
return
|
|
8693
|
-
|
|
8974
|
+
return React__default.createElement(
|
|
8975
|
+
React__default.Fragment,
|
|
8694
8976
|
null,
|
|
8695
|
-
|
|
8696
|
-
Figure$
|
|
8977
|
+
React__default.createElement(
|
|
8978
|
+
Figure$1$1,
|
|
8697
8979
|
{ className: '' + class_name, style: figureStyle },
|
|
8698
|
-
link ?
|
|
8980
|
+
link ? React__default.createElement(
|
|
8699
8981
|
'a',
|
|
8700
8982
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
) :
|
|
8704
|
-
|
|
8983
|
+
React__default.createElement(Figure$1$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
8984
|
+
React__default.createElement(FigureCaption, null)
|
|
8985
|
+
) : React__default.createElement(
|
|
8986
|
+
React__default.Fragment,
|
|
8705
8987
|
null,
|
|
8706
|
-
|
|
8988
|
+
React__default.createElement(Figure$1$1.Image, {
|
|
8707
8989
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
8708
8990
|
className: 'figure-image',
|
|
8709
8991
|
src: urlFor$3(node, client).url(),
|
|
@@ -8713,9 +8995,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8713
8995
|
setShowLightbox(true);
|
|
8714
8996
|
}
|
|
8715
8997
|
}),
|
|
8716
|
-
|
|
8998
|
+
React__default.createElement(FigureCaption, null)
|
|
8717
8999
|
),
|
|
8718
|
-
|
|
9000
|
+
React__default.createElement(LightBox, {
|
|
8719
9001
|
showLightbox: showLightbox,
|
|
8720
9002
|
lightboxImgSrc: lightboxImgSrc,
|
|
8721
9003
|
closeLightbox: function closeLightbox() {
|
|
@@ -8724,7 +9006,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8724
9006
|
}
|
|
8725
9007
|
})
|
|
8726
9008
|
),
|
|
8727
|
-
|
|
9009
|
+
React__default.createElement(
|
|
8728
9010
|
'style',
|
|
8729
9011
|
{ jsx: 'true' },
|
|
8730
9012
|
'\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
|
|
@@ -8732,7 +9014,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8732
9014
|
);
|
|
8733
9015
|
};
|
|
8734
9016
|
|
|
8735
|
-
var Figure =
|
|
9017
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
8736
9018
|
|
|
8737
9019
|
var urlFor$4 = function urlFor(source, client) {
|
|
8738
9020
|
var builder = imageUrlBuilder(client);
|
|
@@ -8778,47 +9060,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8778
9060
|
imgcaption = _ref.imgcaption;
|
|
8779
9061
|
|
|
8780
9062
|
if (imgcaption && imgcaption.length > 0) {
|
|
8781
|
-
return
|
|
9063
|
+
return React__default.createElement(
|
|
8782
9064
|
'div',
|
|
8783
9065
|
{ className: 'multi-figure-caption' },
|
|
8784
|
-
|
|
9066
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8785
9067
|
);
|
|
8786
9068
|
} else if (caption) {
|
|
8787
|
-
return
|
|
9069
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
8788
9070
|
} else return null;
|
|
8789
9071
|
};
|
|
8790
9072
|
|
|
8791
9073
|
if (images && images.length > 0) {
|
|
8792
|
-
return
|
|
9074
|
+
return React__default.createElement(
|
|
8793
9075
|
'div',
|
|
8794
9076
|
{ className: 'multi-figure-container' },
|
|
8795
|
-
|
|
9077
|
+
React__default.createElement(
|
|
8796
9078
|
Row,
|
|
8797
9079
|
{ noGutters: true },
|
|
8798
9080
|
images.map(function (image, index) {
|
|
8799
|
-
return
|
|
9081
|
+
return React__default.createElement(
|
|
8800
9082
|
Col,
|
|
8801
9083
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8802
|
-
image.link ?
|
|
9084
|
+
image.link ? React__default.createElement(
|
|
8803
9085
|
'a',
|
|
8804
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8805
|
-
|
|
9086
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9087
|
+
React__default.createElement(
|
|
8806
9088
|
'div',
|
|
8807
9089
|
{ className: 'multi-figure-image-container' },
|
|
8808
|
-
|
|
9090
|
+
React__default.createElement(
|
|
8809
9091
|
LazyLoad,
|
|
8810
9092
|
{ once: true },
|
|
8811
|
-
|
|
9093
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
8812
9094
|
),
|
|
8813
|
-
|
|
9095
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
8814
9096
|
)
|
|
8815
|
-
) :
|
|
9097
|
+
) : React__default.createElement(
|
|
8816
9098
|
'div',
|
|
8817
9099
|
{ className: 'multi-figure-image-container' },
|
|
8818
|
-
|
|
9100
|
+
React__default.createElement(
|
|
8819
9101
|
LazyLoad,
|
|
8820
9102
|
{ once: true },
|
|
8821
|
-
|
|
9103
|
+
React__default.createElement('img', {
|
|
8822
9104
|
'images-count': images.length,
|
|
8823
9105
|
className: 'multi-figure-image',
|
|
8824
9106
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -8829,17 +9111,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8829
9111
|
}
|
|
8830
9112
|
})
|
|
8831
9113
|
),
|
|
8832
|
-
|
|
9114
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
8833
9115
|
)
|
|
8834
9116
|
);
|
|
8835
9117
|
})
|
|
8836
9118
|
),
|
|
8837
|
-
|
|
9119
|
+
React__default.createElement(
|
|
8838
9120
|
'div',
|
|
8839
9121
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
8840
|
-
|
|
9122
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
8841
9123
|
),
|
|
8842
|
-
|
|
9124
|
+
React__default.createElement(
|
|
8843
9125
|
'style',
|
|
8844
9126
|
{ jsx: 'true' },
|
|
8845
9127
|
'\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: cover;\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 height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 '
|
|
@@ -8861,10 +9143,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
8861
9143
|
|
|
8862
9144
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
8863
9145
|
|
|
8864
|
-
return
|
|
9146
|
+
return React__default.createElement(
|
|
8865
9147
|
'div',
|
|
8866
9148
|
{ id: elementId },
|
|
8867
|
-
|
|
9149
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
8868
9150
|
);
|
|
8869
9151
|
};
|
|
8870
9152
|
|
|
@@ -8936,129 +9218,150 @@ var getSerializers = function getSerializers() {
|
|
|
8936
9218
|
var node = _ref.node;
|
|
8937
9219
|
var url = node.url;
|
|
8938
9220
|
|
|
8939
|
-
return
|
|
9221
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
8940
9222
|
},
|
|
8941
9223
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
8942
9224
|
var node = _ref2.node;
|
|
8943
9225
|
|
|
8944
|
-
return
|
|
9226
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
8945
9227
|
},
|
|
8946
9228
|
articleSeries: function articleSeries(_ref3) {
|
|
8947
9229
|
var node = _ref3.node;
|
|
8948
9230
|
|
|
8949
|
-
return
|
|
9231
|
+
return React__default.createElement(ArticleSeries, {
|
|
9232
|
+
nodes: node,
|
|
9233
|
+
accountIDs: videoAccountIDs || {},
|
|
9234
|
+
pageview: pageview,
|
|
9235
|
+
client: client,
|
|
9236
|
+
getSerializers: getSerializers.apply(undefined, props),
|
|
9237
|
+
Ads: Ads || null,
|
|
9238
|
+
rootArticle: article || null
|
|
9239
|
+
});
|
|
8950
9240
|
},
|
|
8951
9241
|
figure: function figure(_ref4) {
|
|
8952
9242
|
var node = _ref4.node;
|
|
8953
9243
|
|
|
8954
|
-
return
|
|
9244
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
8955
9245
|
},
|
|
8956
9246
|
multifigure: function multifigure(_ref5) {
|
|
8957
9247
|
var node = _ref5.node;
|
|
8958
9248
|
|
|
8959
|
-
return
|
|
9249
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
8960
9250
|
},
|
|
8961
9251
|
slideshow: function slideshow(_ref6) {
|
|
8962
9252
|
var node = _ref6.node;
|
|
8963
9253
|
var slides = node.slides;
|
|
8964
9254
|
|
|
8965
|
-
return
|
|
9255
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
8966
9256
|
},
|
|
8967
9257
|
sidebar: function sidebar(_ref7) {
|
|
8968
9258
|
var node = _ref7.node;
|
|
8969
9259
|
var caption = node.caption,
|
|
8970
9260
|
content = node.content;
|
|
8971
9261
|
|
|
8972
|
-
return
|
|
9262
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
8973
9263
|
},
|
|
8974
9264
|
datatable: function datatable(_ref8) {
|
|
8975
9265
|
var node = _ref8.node;
|
|
8976
9266
|
var table = node.table;
|
|
8977
9267
|
|
|
8978
|
-
return
|
|
9268
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
8979
9269
|
},
|
|
8980
9270
|
media: function media(_ref9) {
|
|
8981
9271
|
var node = _ref9.node;
|
|
8982
9272
|
|
|
8983
|
-
return
|
|
9273
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
8984
9274
|
},
|
|
8985
9275
|
iframe: function iframe(_ref10) {
|
|
8986
9276
|
var node = _ref10.node;
|
|
8987
9277
|
|
|
8988
|
-
return
|
|
9278
|
+
return React__default.createElement(IFrame, { url: node.url });
|
|
8989
9279
|
},
|
|
8990
9280
|
video: function video(_ref11) {
|
|
8991
9281
|
var node = _ref11.node;
|
|
8992
9282
|
|
|
8993
|
-
return
|
|
9283
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
8994
9284
|
},
|
|
8995
9285
|
audio: function audio(_ref12) {
|
|
8996
9286
|
var node = _ref12.node;
|
|
8997
9287
|
|
|
8998
|
-
return
|
|
9288
|
+
return React__default.createElement(Audio, { node: node });
|
|
8999
9289
|
},
|
|
9000
9290
|
poll: function poll(_ref13) {
|
|
9001
9291
|
var node = _ref13.node;
|
|
9002
9292
|
|
|
9003
|
-
return
|
|
9293
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9004
9294
|
},
|
|
9005
|
-
|
|
9295
|
+
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9006
9296
|
var node = _ref14.node;
|
|
9007
|
-
var quizzes = node.quizzes;
|
|
9008
9297
|
|
|
9009
|
-
return
|
|
9298
|
+
return React__default.createElement(Poll$1, {
|
|
9299
|
+
node: node,
|
|
9300
|
+
client: client,
|
|
9301
|
+
pageview: pageview,
|
|
9302
|
+
videoAccountIDs: videoAccountIDs,
|
|
9303
|
+
showVotes: showVotes,
|
|
9304
|
+
onVote: onVote,
|
|
9305
|
+
getSerializers: getSerializers(props)
|
|
9306
|
+
});
|
|
9010
9307
|
},
|
|
9011
|
-
|
|
9308
|
+
quiz: function quiz(_ref15) {
|
|
9012
9309
|
var node = _ref15.node;
|
|
9013
|
-
var
|
|
9310
|
+
var quizzes = node.quizzes;
|
|
9014
9311
|
|
|
9015
|
-
|
|
9016
|
-
return React.createElement(Leads, { url: url });
|
|
9312
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9017
9313
|
},
|
|
9018
|
-
|
|
9314
|
+
leads: function leads(_ref16) {
|
|
9019
9315
|
var node = _ref16.node;
|
|
9316
|
+
var leadID = node.leadID;
|
|
9020
9317
|
|
|
9021
|
-
|
|
9318
|
+
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9319
|
+
return React__default.createElement(Leads, { url: url });
|
|
9022
9320
|
},
|
|
9023
|
-
|
|
9321
|
+
slideshows: function slideshows(_ref17) {
|
|
9024
9322
|
var node = _ref17.node;
|
|
9025
9323
|
|
|
9026
|
-
return
|
|
9324
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9027
9325
|
},
|
|
9028
|
-
|
|
9326
|
+
nativeAd: function nativeAd(_ref18) {
|
|
9029
9327
|
var node = _ref18.node;
|
|
9030
9328
|
|
|
9031
|
-
return
|
|
9329
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9330
|
+
},
|
|
9331
|
+
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9332
|
+
var node = _ref19.node;
|
|
9333
|
+
|
|
9334
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9032
9335
|
},
|
|
9033
9336
|
hrtag: function hrtag() {
|
|
9034
|
-
return
|
|
9337
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9035
9338
|
},
|
|
9036
9339
|
brtag: function brtag() {
|
|
9037
|
-
return
|
|
9340
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9038
9341
|
},
|
|
9039
|
-
formstack: function formstack(
|
|
9040
|
-
var node =
|
|
9342
|
+
formstack: function formstack(_ref20) {
|
|
9343
|
+
var node = _ref20.node;
|
|
9041
9344
|
var FormID = node.FormID,
|
|
9042
9345
|
Caption = node.Caption;
|
|
9043
9346
|
|
|
9044
|
-
return
|
|
9347
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption });
|
|
9045
9348
|
},
|
|
9046
|
-
multimedia: function multimedia(
|
|
9047
|
-
var node =
|
|
9349
|
+
multimedia: function multimedia(_ref21) {
|
|
9350
|
+
var node = _ref21.node;
|
|
9048
9351
|
|
|
9049
|
-
return
|
|
9352
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9050
9353
|
}
|
|
9051
9354
|
},
|
|
9052
9355
|
marks: {
|
|
9053
9356
|
superscript: function superscript(props) {
|
|
9054
|
-
return
|
|
9357
|
+
return React__default.createElement(
|
|
9055
9358
|
'sup',
|
|
9056
9359
|
null,
|
|
9057
9360
|
props.children
|
|
9058
9361
|
);
|
|
9059
9362
|
},
|
|
9060
9363
|
subscript: function subscript(props) {
|
|
9061
|
-
return
|
|
9364
|
+
return React__default.createElement(
|
|
9062
9365
|
'sub',
|
|
9063
9366
|
null,
|
|
9064
9367
|
props.children
|
|
@@ -9074,7 +9377,7 @@ var getSerializers = function getSerializers() {
|
|
|
9074
9377
|
if (href && href.charAt(0) === '#') {
|
|
9075
9378
|
var elementId = href.slice(1);
|
|
9076
9379
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9077
|
-
return
|
|
9380
|
+
return React__default.createElement(
|
|
9078
9381
|
'a',
|
|
9079
9382
|
{ onClick: function onClick() {
|
|
9080
9383
|
return ScrollToElement(elementId);
|
|
@@ -9084,39 +9387,39 @@ var getSerializers = function getSerializers() {
|
|
|
9084
9387
|
}
|
|
9085
9388
|
|
|
9086
9389
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9087
|
-
return
|
|
9390
|
+
return React__default.createElement(
|
|
9088
9391
|
'a',
|
|
9089
9392
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9090
9393
|
children
|
|
9091
9394
|
);
|
|
9092
9395
|
},
|
|
9093
|
-
alignleft: function alignleft(
|
|
9094
|
-
var children =
|
|
9095
|
-
return
|
|
9396
|
+
alignleft: function alignleft(_ref22) {
|
|
9397
|
+
var children = _ref22.children;
|
|
9398
|
+
return React__default.createElement(
|
|
9096
9399
|
'div',
|
|
9097
9400
|
{ style: { textAlign: 'left' } },
|
|
9098
9401
|
children
|
|
9099
9402
|
);
|
|
9100
9403
|
},
|
|
9101
|
-
alignright: function alignright(
|
|
9102
|
-
var children =
|
|
9103
|
-
return
|
|
9404
|
+
alignright: function alignright(_ref23) {
|
|
9405
|
+
var children = _ref23.children;
|
|
9406
|
+
return React__default.createElement(
|
|
9104
9407
|
'div',
|
|
9105
9408
|
{ style: { textAlign: 'right' } },
|
|
9106
9409
|
children
|
|
9107
9410
|
);
|
|
9108
9411
|
},
|
|
9109
|
-
aligncenter: function aligncenter(
|
|
9110
|
-
var children =
|
|
9111
|
-
return
|
|
9412
|
+
aligncenter: function aligncenter(_ref24) {
|
|
9413
|
+
var children = _ref24.children;
|
|
9414
|
+
return React__default.createElement(
|
|
9112
9415
|
'div',
|
|
9113
9416
|
{ style: { textAlign: 'center' } },
|
|
9114
9417
|
children
|
|
9115
9418
|
);
|
|
9116
9419
|
},
|
|
9117
|
-
alignjustify: function alignjustify(
|
|
9118
|
-
var children =
|
|
9119
|
-
return
|
|
9420
|
+
alignjustify: function alignjustify(_ref25) {
|
|
9421
|
+
var children = _ref25.children;
|
|
9422
|
+
return React__default.createElement(
|
|
9120
9423
|
'div',
|
|
9121
9424
|
{ style: { textAlign: 'justify' } },
|
|
9122
9425
|
children
|
|
@@ -9126,7 +9429,7 @@ var getSerializers = function getSerializers() {
|
|
|
9126
9429
|
var children = props.children,
|
|
9127
9430
|
color = props.mark.color;
|
|
9128
9431
|
|
|
9129
|
-
return
|
|
9432
|
+
return React__default.createElement(
|
|
9130
9433
|
'span',
|
|
9131
9434
|
{ style: { color: color ? color.hex : null } },
|
|
9132
9435
|
children
|