@mjhls/mjh-framework 1.0.840-beta.1 → 1.0.840
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 +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +31 -30
- package/dist/cjs/AD300x250x600.js +31 -30
- package/dist/cjs/AD728x90.js +34 -33
- package/dist/cjs/ADFloatingFooter.js +33 -32
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +33 -32
- package/dist/cjs/{ADInfeed-8d621d3c.js → ADInfeed-8b336c67.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +33 -32
- package/dist/cjs/ADSponsoredResources.js +33 -32
- package/dist/cjs/ADWebcast.js +33 -32
- package/dist/cjs/ADWelcome.js +34 -33
- package/dist/cjs/{ADlgInfeed-0e26bccb.js → ADlgInfeed-aedd5e18.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +36 -35
- package/dist/cjs/AdSlotsProvider.js +20 -911
- package/dist/cjs/AlgoliaSearch.js +1391 -1273
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +63 -62
- package/dist/cjs/ArticleSeriesLandingPage.js +43 -42
- package/dist/cjs/ArticleSeriesListing.js +62 -61
- package/dist/cjs/Auth.js +686 -462
- package/dist/cjs/AuthWrapper.js +311 -269
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +62 -59
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -103
- package/dist/cjs/DeckQueue.js +92 -88
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-93399f8c.js} +35 -34
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +81 -80
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +43 -42
- package/dist/cjs/GridContent.js +238 -233
- package/dist/cjs/GridHero.js +45 -44
- package/dist/cjs/GroupDeck.js +60 -59
- package/dist/cjs/HamMagazine.js +145 -140
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +73 -72
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +78 -73
- package/dist/cjs/IssueDeck.js +77 -72
- package/dist/cjs/IssueLanding.js +96 -95
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +41 -39
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/MediaSeriesLanding.js +1120 -1129
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +152 -147
- package/dist/cjs/NavNative.js +147 -139
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +73 -72
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +125 -3957
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +43 -42
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +67 -62
- package/dist/cjs/PublicationLanding.js +139 -135
- package/dist/cjs/QueueDeckExpanded.js +310 -310
- package/dist/cjs/RecentNews.js +22 -21
- package/dist/cjs/RelatedContent.js +55 -54
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-cbab9f0f.js} +40 -39
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +39 -38
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-ecb4f972.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +64 -59
- package/dist/cjs/TaxonomyDescription.js +56 -55
- package/dist/cjs/TemplateNormal.js +75 -74
- package/dist/cjs/ThumbnailCard.js +23 -21
- package/dist/cjs/Ustream.js +30 -29
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoProgramLandingPage.js +80 -76
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +52 -51
- package/dist/cjs/VideoSeriesListing.js +79 -78
- package/dist/cjs/View.js +264 -261
- package/dist/cjs/YahooHero.js +42 -41
- package/dist/cjs/YoutubeGroup.js +67 -66
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
- package/dist/cjs/faundadb.js +21 -21
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +8 -8
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-be6168ad.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-1d6b1687.js → index-0a582ba9.js} +1006 -983
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +168 -164
- package/dist/cjs/{inherits-1f5a1c72.js → inherits-c2065b95.js} +20 -20
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-025fdc78.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -27
- package/dist/esm/AD300x250x600.js +27 -27
- package/dist/esm/AD728x90.js +30 -30
- package/dist/esm/ADFloatingFooter.js +29 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -29
- package/dist/esm/{ADInfeed-b566ce41.js → ADInfeed-28b1e946.js} +11 -11
- package/dist/esm/ADSkyscraper.js +29 -29
- package/dist/esm/ADSponsoredResources.js +29 -29
- package/dist/esm/ADWebcast.js +29 -29
- package/dist/esm/ADWelcome.js +30 -30
- package/dist/esm/{ADlgInfeed-5eb7281d.js → ADlgInfeed-0b474b02.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -27
- package/dist/esm/AdSlotsProvider.js +17 -909
- package/dist/esm/AlgoliaSearch.js +819 -702
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +57 -57
- package/dist/esm/Auth.js +665 -445
- package/dist/esm/AuthWrapper.js +308 -267
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5ae7409f.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-52cf21c5.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +56 -56
- package/dist/esm/ConferenceArticleCard.js +35 -35
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +98 -98
- package/dist/esm/DeckQueue.js +83 -83
- package/dist/esm/{Dfp-b7236041.js → Dfp-43f121ff.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +201 -201
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +116 -116
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -69
- package/dist/esm/HorizontalHero.js +22 -22
- package/dist/esm/IssueContentDeck.js +61 -61
- package/dist/esm/IssueDeck.js +65 -65
- package/dist/esm/IssueLanding.js +92 -92
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +77 -77
- package/dist/esm/MediaSeriesLanding.js +841 -853
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +121 -3953
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +39 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +53 -53
- package/dist/esm/PublicationLanding.js +122 -122
- package/dist/esm/QueueDeckExpanded.js +275 -275
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +48 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-5c62a578.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-cd38ae60.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -54
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +70 -70
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +26 -26
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +67 -67
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +42 -42
- package/dist/esm/VideoSeriesListing.js +74 -74
- package/dist/esm/View.js +245 -246
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +51 -51
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-68291ce9.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-44f4646f.js → index-66ffc224.js} +962 -946
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +138 -137
- package/dist/esm/{inherits-cf8dde54.js → inherits-a41fe93f.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-b5c5aac1.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +110 -111
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-cf8dde54.js';
|
|
6
|
-
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
-
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
-
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
-
import Router, { useRouter } from 'next/router';
|
|
1
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
3
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
14
4
|
import urlFor from './urlFor.js';
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
-
import Segment from './Segment.js';
|
|
20
|
-
import Beam from './Beam.js';
|
|
21
|
-
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
6
|
+
import Router, { useRouter } from 'next/router';
|
|
24
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
+
import { u as util } from './util-3ab476bf.js';
|
|
11
|
+
import Beam from './Beam.js';
|
|
12
|
+
import Segment from './Segment.js';
|
|
13
|
+
import { d as main_18, b as main_42, m as main_43 } from './main-b5c5aac1.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
15
|
+
import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
|
|
16
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
17
|
+
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
25
19
|
import GroupDeck from './GroupDeck.js';
|
|
26
|
-
import {
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
-
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
30
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
31
21
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as
|
|
33
|
-
import
|
|
34
|
-
import
|
|
22
|
+
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
+
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
26
|
+
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
+
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
+
import DFPAdSlot from './AdSlot.js';
|
|
29
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
+
import Head from 'next/head';
|
|
32
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
37
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -39,7 +39,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
39
39
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
var Slideshow = function Slideshow(_ref) {
|
|
42
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
43
43
|
var slides = _ref.slides,
|
|
44
44
|
client = _ref.client,
|
|
45
45
|
pageview = _ref.pageview;
|
|
@@ -66,27 +66,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
66
66
|
if (pageview) pageview(router.asPath);
|
|
67
67
|
}, [router]);
|
|
68
68
|
|
|
69
|
-
return
|
|
69
|
+
return React.createElement(
|
|
70
70
|
'div',
|
|
71
71
|
{ className: 'mt-3 mb-3' },
|
|
72
|
-
|
|
72
|
+
React.createElement(
|
|
73
73
|
Carousel,
|
|
74
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
75
75
|
return onChangeSlide(selectedIndex, router);
|
|
76
76
|
}, interval: null },
|
|
77
77
|
slides && slides.map(function (slide) {
|
|
78
|
-
return
|
|
78
|
+
return React.createElement(
|
|
79
79
|
Carousel.Item,
|
|
80
80
|
{ key: slide._key },
|
|
81
|
-
|
|
81
|
+
React.createElement(
|
|
82
82
|
'picture',
|
|
83
83
|
null,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
88
88
|
),
|
|
89
|
-
slide.caption &&
|
|
89
|
+
slide.caption && React.createElement(
|
|
90
90
|
'p',
|
|
91
91
|
{ className: 'p-2' },
|
|
92
92
|
slide.caption
|
|
@@ -97,21 +97,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
97
|
);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
// do not edit .js files directly - edit src/index.jst
|
|
101
|
+
|
|
102
|
+
|
|
103
103
|
|
|
104
104
|
var fastDeepEqual = function equal(a, b) {
|
|
105
105
|
if (a === b) return true;
|
|
106
106
|
|
|
107
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
109
|
-
, arrB = isArray(b)
|
|
110
|
-
, i
|
|
111
|
-
, length
|
|
112
|
-
, key;
|
|
108
|
+
if (a.constructor !== b.constructor) return false;
|
|
113
109
|
|
|
114
|
-
|
|
110
|
+
var length, i, keys;
|
|
111
|
+
if (Array.isArray(a)) {
|
|
115
112
|
length = a.length;
|
|
116
113
|
if (length != b.length) return false;
|
|
117
114
|
for (i = length; i-- !== 0;)
|
|
@@ -119,35 +116,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
116
|
return true;
|
|
120
117
|
}
|
|
121
118
|
|
|
122
|
-
if (arrA != arrB) return false;
|
|
123
119
|
|
|
124
|
-
var dateA = a instanceof Date
|
|
125
|
-
, dateB = b instanceof Date;
|
|
126
|
-
if (dateA != dateB) return false;
|
|
127
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
128
120
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
121
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
122
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
123
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
133
124
|
|
|
134
|
-
|
|
125
|
+
keys = Object.keys(a);
|
|
135
126
|
length = keys.length;
|
|
136
|
-
|
|
137
|
-
if (length !== keyList(b).length)
|
|
138
|
-
return false;
|
|
127
|
+
if (length !== Object.keys(b).length) return false;
|
|
139
128
|
|
|
140
129
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
130
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
142
131
|
|
|
143
132
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
key = keys[i];
|
|
133
|
+
var key = keys[i];
|
|
134
|
+
|
|
145
135
|
if (!equal(a[key], b[key])) return false;
|
|
146
136
|
}
|
|
147
137
|
|
|
148
138
|
return true;
|
|
149
139
|
}
|
|
150
140
|
|
|
141
|
+
// true if both NaN, false otherwise
|
|
151
142
|
return a!==a && b!==b;
|
|
152
143
|
};
|
|
153
144
|
|
|
@@ -685,14 +676,14 @@ function coerce(val) {
|
|
|
685
676
|
return val;
|
|
686
677
|
}
|
|
687
678
|
});
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
679
|
+
debug.coerce;
|
|
680
|
+
debug.disable;
|
|
681
|
+
debug.enable;
|
|
682
|
+
debug.enabled;
|
|
683
|
+
debug.humanize;
|
|
684
|
+
debug.names;
|
|
685
|
+
debug.skips;
|
|
686
|
+
debug.formatters;
|
|
696
687
|
|
|
697
688
|
var browser = createCommonjsModule(function (module, exports) {
|
|
698
689
|
/**
|
|
@@ -881,13 +872,13 @@ function localstorage() {
|
|
|
881
872
|
} catch (e) {}
|
|
882
873
|
}
|
|
883
874
|
});
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
875
|
+
browser.log;
|
|
876
|
+
browser.formatArgs;
|
|
877
|
+
browser.save;
|
|
878
|
+
browser.load;
|
|
879
|
+
browser.useColors;
|
|
880
|
+
browser.storage;
|
|
881
|
+
browser.colors;
|
|
891
882
|
|
|
892
883
|
// MIT lisence
|
|
893
884
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1162,14 +1153,14 @@ function init (debug) {
|
|
|
1162
1153
|
|
|
1163
1154
|
exports.enable(load());
|
|
1164
1155
|
});
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1156
|
+
node.init;
|
|
1157
|
+
node.log;
|
|
1158
|
+
node.formatArgs;
|
|
1159
|
+
node.save;
|
|
1160
|
+
node.load;
|
|
1161
|
+
node.useColors;
|
|
1162
|
+
node.colors;
|
|
1163
|
+
node.inspectOpts;
|
|
1173
1164
|
|
|
1174
1165
|
var src = createCommonjsModule(function (module) {
|
|
1175
1166
|
/**
|
|
@@ -1570,199 +1561,239 @@ module.exports = exports['default'];
|
|
|
1570
1561
|
|
|
1571
1562
|
var youTubePlayer = unwrapExports(dist);
|
|
1572
1563
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1564
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1576
1565
|
|
|
1577
1566
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1567
|
|
|
1579
|
-
function
|
|
1568
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1569
|
+
|
|
1570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
+
|
|
1572
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1573
|
+
|
|
1574
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
+
|
|
1576
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1580
1583
|
|
|
1581
|
-
function
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1582
1587
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
*
|
|
1588
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1589
|
+
|
|
1590
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
1588
1596
|
*/
|
|
1597
|
+
|
|
1589
1598
|
function shouldUpdateVideo(prevProps, props) {
|
|
1590
1599
|
// A changing video should always trigger an update
|
|
1591
1600
|
if (prevProps.videoId !== props.videoId) {
|
|
1592
1601
|
return true;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
1603
|
// update.
|
|
1604
|
+
|
|
1605
|
+
|
|
1597
1606
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1598
1607
|
var vars = props.opts.playerVars || {};
|
|
1599
|
-
|
|
1600
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1601
1609
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1609
1616
|
*/
|
|
1617
|
+
|
|
1618
|
+
|
|
1610
1619
|
function filterResetOptions(opts) {
|
|
1611
|
-
return
|
|
1612
|
-
playerVars:
|
|
1620
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1621
|
+
playerVars: _objectSpread({
|
|
1613
1622
|
autoplay: 0,
|
|
1614
1623
|
start: 0,
|
|
1615
1624
|
end: 0
|
|
1616
|
-
})
|
|
1625
|
+
}, opts.playerVars)
|
|
1617
1626
|
});
|
|
1618
1627
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object}
|
|
1627
|
-
* @param {Object} props
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1628
1636
|
*/
|
|
1637
|
+
|
|
1638
|
+
|
|
1629
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1630
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1631
1641
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1642
|
+
/**
|
|
1643
|
+
* Check whether a props change should result in an id or className update.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {Object} prevProps
|
|
1646
|
+
* @param {Object} props
|
|
1638
1647
|
*/
|
|
1648
|
+
|
|
1649
|
+
|
|
1639
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1640
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1641
1652
|
}
|
|
1642
1653
|
|
|
1643
|
-
var YouTube = function (_React$Component) {
|
|
1654
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1644
1655
|
_inherits(YouTube, _React$Component);
|
|
1645
1656
|
|
|
1657
|
+
var _super = _createSuper(YouTube);
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
+
*/
|
|
1646
1664
|
function YouTube(props) {
|
|
1665
|
+
var _this;
|
|
1666
|
+
|
|
1647
1667
|
_classCallCheck(this, YouTube);
|
|
1648
1668
|
|
|
1649
|
-
|
|
1669
|
+
_this = _super.call(this, props);
|
|
1650
1670
|
|
|
1651
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1652
1672
|
return _this.props.onReady(event);
|
|
1653
|
-
};
|
|
1673
|
+
});
|
|
1654
1674
|
|
|
1655
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1656
1676
|
return _this.props.onError(event);
|
|
1657
|
-
};
|
|
1677
|
+
});
|
|
1658
1678
|
|
|
1659
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1660
1680
|
_this.props.onStateChange(event);
|
|
1661
|
-
switch (event.data) {
|
|
1662
1681
|
|
|
1682
|
+
switch (event.data) {
|
|
1663
1683
|
case YouTube.PlayerState.ENDED:
|
|
1664
1684
|
_this.props.onEnd(event);
|
|
1685
|
+
|
|
1665
1686
|
break;
|
|
1666
1687
|
|
|
1667
1688
|
case YouTube.PlayerState.PLAYING:
|
|
1668
1689
|
_this.props.onPlay(event);
|
|
1690
|
+
|
|
1669
1691
|
break;
|
|
1670
1692
|
|
|
1671
1693
|
case YouTube.PlayerState.PAUSED:
|
|
1672
1694
|
_this.props.onPause(event);
|
|
1695
|
+
|
|
1673
1696
|
break;
|
|
1674
1697
|
}
|
|
1675
|
-
};
|
|
1698
|
+
});
|
|
1676
1699
|
|
|
1677
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1678
1701
|
return _this.props.onPlaybackRateChange(event);
|
|
1679
|
-
};
|
|
1702
|
+
});
|
|
1680
1703
|
|
|
1681
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1682
1705
|
return _this.props.onPlaybackQualityChange(event);
|
|
1683
|
-
};
|
|
1706
|
+
});
|
|
1684
1707
|
|
|
1685
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1686
1709
|
// do not attempt to create a player server-side, it won't work
|
|
1687
|
-
if (typeof document === 'undefined') return;
|
|
1688
|
-
|
|
1689
|
-
var playerOpts =
|
|
1710
|
+
if (typeof document === 'undefined') return; // create player
|
|
1711
|
+
|
|
1712
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1690
1713
|
// preload the `videoId` video if one is already given
|
|
1691
1714
|
videoId: _this.props.videoId
|
|
1692
1715
|
});
|
|
1693
|
-
|
|
1694
|
-
// attach event handlers
|
|
1716
|
+
|
|
1717
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1718
|
+
|
|
1695
1719
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
+
|
|
1696
1721
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
+
|
|
1697
1723
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
+
|
|
1698
1725
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
+
|
|
1699
1727
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1700
|
-
};
|
|
1728
|
+
});
|
|
1701
1729
|
|
|
1702
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1703
1731
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1707
1735
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1708
1736
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1709
1737
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1710
1738
|
});
|
|
1711
|
-
};
|
|
1739
|
+
});
|
|
1712
1740
|
|
|
1713
|
-
_this
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
+
return _this.internalPlayer;
|
|
1743
|
+
});
|
|
1744
|
+
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1714
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1715
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
1716
1749
|
return;
|
|
1717
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
1718
1752
|
|
|
1719
|
-
// set queueing options
|
|
1720
1753
|
var autoplay = false;
|
|
1721
1754
|
var opts = {
|
|
1722
1755
|
videoId: _this.props.videoId
|
|
1723
1756
|
};
|
|
1757
|
+
|
|
1724
1758
|
if ('playerVars' in _this.props.opts) {
|
|
1725
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
1726
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
1727
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1728
1763
|
}
|
|
1764
|
+
|
|
1729
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
1730
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1731
1767
|
}
|
|
1732
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
1733
1770
|
|
|
1734
|
-
// if autoplay is enabled loadVideoById
|
|
1735
1771
|
if (autoplay) {
|
|
1736
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
1737
1774
|
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
1740
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
1741
|
-
};
|
|
1779
|
+
});
|
|
1742
1780
|
|
|
1743
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1744
1782
|
_this.container = container;
|
|
1745
|
-
};
|
|
1783
|
+
});
|
|
1746
1784
|
|
|
1747
1785
|
_this.container = null;
|
|
1748
1786
|
_this.internalPlayer = null;
|
|
1749
1787
|
return _this;
|
|
1750
1788
|
}
|
|
1751
1789
|
|
|
1752
|
-
/**
|
|
1753
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1754
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1755
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1756
|
-
*/
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
1790
|
_createClass(YouTube, [{
|
|
1760
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
1761
1792
|
value: function componentDidMount() {
|
|
1762
1793
|
this.createPlayer();
|
|
1763
1794
|
}
|
|
1764
1795
|
}, {
|
|
1765
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
1766
1797
|
value: function componentDidUpdate(prevProps) {
|
|
1767
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1768
1799
|
this.updatePlayer();
|
|
@@ -1777,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
1777
1808
|
}
|
|
1778
1809
|
}
|
|
1779
1810
|
}, {
|
|
1780
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
1781
1812
|
value: function componentWillUnmount() {
|
|
1782
|
-
/**
|
|
1783
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1784
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1785
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1786
|
-
* this method isn't quick enough to reset the container element.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
1787
1818
|
*/
|
|
1788
1819
|
this.internalPlayer.destroy();
|
|
1789
1820
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1795
|
-
* @param {Object} target - player object
|
|
1796
|
-
*/
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1801
|
-
*
|
|
1802
|
-
* @param {Object} event
|
|
1803
|
-
* @param {Integer} data - error type
|
|
1804
|
-
* @param {Object} target - player object
|
|
1805
|
-
*/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
/**
|
|
1809
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1810
|
-
*
|
|
1811
|
-
* @param {Object} event
|
|
1812
|
-
* @param {Integer} data - status change type
|
|
1813
|
-
* @param {Object} target - actual YT player
|
|
1814
|
-
*/
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1819
|
-
*
|
|
1820
|
-
* @param {Object} event
|
|
1821
|
-
* @param {Float} data - playback rate
|
|
1822
|
-
* @param {Object} target - actual YT player
|
|
1823
|
-
*/
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1828
|
-
*
|
|
1829
|
-
* @param {Object} event
|
|
1830
|
-
* @param {String} data - playback quality
|
|
1831
|
-
* @param {Object} target - actual YT player
|
|
1832
|
-
*/
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1837
|
-
*/
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1847
|
-
* React should update this automatically but since the Youtube Player API
|
|
1848
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1849
|
-
*/
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1854
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1855
|
-
* Youtube Player API methods to update the video.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
1856
1826
|
*/
|
|
1857
1827
|
|
|
1858
1828
|
}, {
|
|
1859
|
-
key:
|
|
1829
|
+
key: "render",
|
|
1860
1830
|
value: function render() {
|
|
1861
|
-
return
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1831
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
1866
1838
|
}
|
|
1867
1839
|
}]);
|
|
1868
1840
|
|
|
1869
1841
|
return YouTube;
|
|
1870
|
-
}(
|
|
1842
|
+
}(React.Component);
|
|
1843
|
+
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
1871
1852
|
|
|
1872
1853
|
YouTube.propTypes = {
|
|
1873
1854
|
videoId: PropTypes.string,
|
|
1874
|
-
|
|
1875
1855
|
// custom ID for player element
|
|
1876
1856
|
id: PropTypes.string,
|
|
1877
|
-
|
|
1878
1857
|
// custom class name for player element
|
|
1879
1858
|
className: PropTypes.string,
|
|
1880
1859
|
// custom class name for player container element
|
|
1881
1860
|
containerClassName: PropTypes.string,
|
|
1882
|
-
|
|
1883
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
1862
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
-
|
|
1886
1863
|
// event subscriptions
|
|
1887
1864
|
onReady: PropTypes.func,
|
|
1888
1865
|
onError: PropTypes.func,
|
|
@@ -1894,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
1894
1871
|
onPlaybackQualityChange: PropTypes.func
|
|
1895
1872
|
};
|
|
1896
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
1897
1875
|
id: null,
|
|
1898
1876
|
className: null,
|
|
1899
1877
|
opts: {},
|
|
@@ -1907,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
1907
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1887
|
};
|
|
1910
|
-
YouTube.PlayerState = {
|
|
1911
|
-
UNSTARTED: -1,
|
|
1912
|
-
ENDED: 0,
|
|
1913
|
-
PLAYING: 1,
|
|
1914
|
-
PAUSED: 2,
|
|
1915
|
-
BUFFERING: 3,
|
|
1916
|
-
CUED: 5
|
|
1917
|
-
};
|
|
1918
1888
|
|
|
1919
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1920
1890
|
var url = _ref.url,
|
|
@@ -1953,8 +1923,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1953
1923
|
var duration = player.getDuration();
|
|
1954
1924
|
var queue = Math.floor(duration / 10);
|
|
1955
1925
|
var segment = Math.floor(current / queue);
|
|
1956
|
-
Beam.report_beam_video('Ready',
|
|
1957
|
-
Segment.report_video_event('Video Ready',
|
|
1926
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1927
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1958
1928
|
};
|
|
1959
1929
|
|
|
1960
1930
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1964,8 +1934,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1964
1934
|
var segment = Math.floor(current / queue);
|
|
1965
1935
|
|
|
1966
1936
|
if (!queueProgress.includes(segment)) {
|
|
1967
|
-
Beam.report_beam_video('Segment',
|
|
1968
|
-
Segment.report_video_event('Video Segment',
|
|
1937
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1938
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1969
1939
|
queueProgress.push(segment);
|
|
1970
1940
|
}
|
|
1971
1941
|
};
|
|
@@ -1978,8 +1948,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1948
|
var queue = Math.floor(duration / 10);
|
|
1979
1949
|
var segment = Math.floor(current / queue);
|
|
1980
1950
|
|
|
1981
|
-
Beam.report_beam_video('Play',
|
|
1982
|
-
Segment.report_video_event('Video Play',
|
|
1951
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1952
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1983
1953
|
|
|
1984
1954
|
if (!playReported) {
|
|
1985
1955
|
setPlayReported(true);
|
|
@@ -1998,8 +1968,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1998
1968
|
var queue = Math.floor(duration / 10);
|
|
1999
1969
|
var segment = Math.floor(current / queue);
|
|
2000
1970
|
|
|
2001
|
-
Beam.report_beam_video('End',
|
|
2002
|
-
Segment.report_video_event('Video End',
|
|
1971
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1972
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2003
1973
|
setEndReported(true);
|
|
2004
1974
|
clearInterval(intervalID);
|
|
2005
1975
|
}
|
|
@@ -2012,15 +1982,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2012
1982
|
var queue = Math.floor(duration / 10);
|
|
2013
1983
|
var segment = Math.floor(current / queue);
|
|
2014
1984
|
|
|
2015
|
-
Beam.report_beam_video('Pause',
|
|
2016
|
-
Segment.report_video_event('Video Pause',
|
|
1985
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1986
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2017
1987
|
};
|
|
2018
1988
|
|
|
2019
|
-
return
|
|
1989
|
+
return React.createElement(
|
|
2020
1990
|
'div',
|
|
2021
1991
|
{ id: 'fluid-video-container' },
|
|
2022
|
-
|
|
2023
|
-
|
|
1992
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1993
|
+
React.createElement(
|
|
2024
1994
|
'style',
|
|
2025
1995
|
{ jsx: 'true' },
|
|
2026
1996
|
'\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 '
|
|
@@ -2033,20 +2003,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2033
2003
|
content = _ref.content,
|
|
2034
2004
|
getSerializers = _ref.getSerializers;
|
|
2035
2005
|
|
|
2036
|
-
return
|
|
2006
|
+
return React.createElement(
|
|
2037
2007
|
'article',
|
|
2038
2008
|
{ className: 'sidebar' },
|
|
2039
|
-
|
|
2009
|
+
React.createElement(
|
|
2040
2010
|
'div',
|
|
2041
2011
|
null,
|
|
2042
|
-
|
|
2012
|
+
React.createElement(
|
|
2043
2013
|
'h3',
|
|
2044
2014
|
null,
|
|
2045
2015
|
caption
|
|
2046
2016
|
),
|
|
2047
|
-
|
|
2017
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2048
2018
|
),
|
|
2049
|
-
|
|
2019
|
+
React.createElement(
|
|
2050
2020
|
'style',
|
|
2051
2021
|
{ jsx: 'true' },
|
|
2052
2022
|
'\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 '
|
|
@@ -2057,18 +2027,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2057
2027
|
var TableShow = function TableShow(_ref) {
|
|
2058
2028
|
var rows = _ref.rows;
|
|
2059
2029
|
|
|
2060
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2061
2031
|
Table,
|
|
2062
2032
|
{ bordered: true, hover: true, responsive: true },
|
|
2063
|
-
|
|
2033
|
+
React.createElement(
|
|
2064
2034
|
'tbody',
|
|
2065
2035
|
null,
|
|
2066
2036
|
rows && rows.map(function (row) {
|
|
2067
|
-
return
|
|
2037
|
+
return React.createElement(
|
|
2068
2038
|
'tr',
|
|
2069
2039
|
{ key: row._key },
|
|
2070
2040
|
row.cells && row.cells.map(function (cell, index) {
|
|
2071
|
-
return cell &&
|
|
2041
|
+
return cell && React.createElement(
|
|
2072
2042
|
'td',
|
|
2073
2043
|
{ key: index },
|
|
2074
2044
|
cell
|
|
@@ -2166,25 +2136,25 @@ var Media = function Media(_ref) {
|
|
|
2166
2136
|
margin: imageMargin
|
|
2167
2137
|
};
|
|
2168
2138
|
|
|
2169
|
-
return
|
|
2139
|
+
return React.createElement(
|
|
2170
2140
|
Figure$1,
|
|
2171
2141
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2172
|
-
|
|
2142
|
+
React.createElement(
|
|
2173
2143
|
'a',
|
|
2174
2144
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2175
|
-
|
|
2145
|
+
React.createElement(
|
|
2176
2146
|
LazyLoad,
|
|
2177
2147
|
{ once: true },
|
|
2178
|
-
|
|
2148
|
+
React.createElement(
|
|
2179
2149
|
'picture',
|
|
2180
2150
|
null,
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2151
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2152
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2153
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2154
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2185
2155
|
)
|
|
2186
2156
|
),
|
|
2187
|
-
caption &&
|
|
2157
|
+
caption && React.createElement(
|
|
2188
2158
|
Figure$1.Caption,
|
|
2189
2159
|
{ className: 'media-caption' },
|
|
2190
2160
|
caption
|
|
@@ -2192,9 +2162,9 @@ var Media = function Media(_ref) {
|
|
|
2192
2162
|
)
|
|
2193
2163
|
);
|
|
2194
2164
|
} else if (caption && caption !== '') {
|
|
2195
|
-
return
|
|
2165
|
+
return React.createElement(
|
|
2196
2166
|
'a',
|
|
2197
|
-
_extends
|
|
2167
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2198
2168
|
href: uploadDoc.asset.url + '?dl='
|
|
2199
2169
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2200
2170
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2212,10 +2182,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2212
2182
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2213
2183
|
|
|
2214
2184
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2215
|
-
return
|
|
2185
|
+
return React.createElement(
|
|
2216
2186
|
'div',
|
|
2217
2187
|
{ className: 'd-block text-center mb-3' },
|
|
2218
|
-
|
|
2188
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2219
2189
|
);
|
|
2220
2190
|
};
|
|
2221
2191
|
|
|
@@ -2249,8 +2219,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2249
2219
|
var duration = player.duration;
|
|
2250
2220
|
var queue = Math.floor(duration / 10);
|
|
2251
2221
|
var segment = Math.floor(current / queue);
|
|
2252
|
-
Beam.report_beam_video('Ready',
|
|
2253
|
-
Segment.report_video_event('Video Ready',
|
|
2222
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2223
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2254
2224
|
};
|
|
2255
2225
|
|
|
2256
2226
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2259,8 +2229,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2259
2229
|
var queue = Math.floor(duration / 10);
|
|
2260
2230
|
var segment = Math.floor(current / queue);
|
|
2261
2231
|
if (!queueProgress.includes(segment)) {
|
|
2262
|
-
Beam.report_beam_video('Segment',
|
|
2263
|
-
Segment.report_video_event('Video Segment',
|
|
2232
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2233
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2264
2234
|
queueProgress.push(segment);
|
|
2265
2235
|
}
|
|
2266
2236
|
};
|
|
@@ -2272,8 +2242,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2272
2242
|
var duration = player.duration;
|
|
2273
2243
|
var queue = Math.floor(duration / 10);
|
|
2274
2244
|
var segment = Math.floor(current / queue);
|
|
2275
|
-
Beam.report_beam_video('Play',
|
|
2276
|
-
Segment.report_video_event('Video Play',
|
|
2245
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2246
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2277
2247
|
|
|
2278
2248
|
if (!playReported) {
|
|
2279
2249
|
event.persist();
|
|
@@ -2293,8 +2263,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2293
2263
|
var queue = Math.floor(duration / 10);
|
|
2294
2264
|
var segment = Math.floor(current / queue);
|
|
2295
2265
|
|
|
2296
|
-
Beam.report_beam_video('End',
|
|
2297
|
-
Segment.report_video_event('Video End',
|
|
2266
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2267
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2298
2268
|
setEndReported(true);
|
|
2299
2269
|
clearInterval(intervalID);
|
|
2300
2270
|
}
|
|
@@ -2306,14 +2276,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2306
2276
|
var duration = player.duration - current;
|
|
2307
2277
|
var queue = Math.floor(duration / 10);
|
|
2308
2278
|
var segment = Math.floor(current / queue);
|
|
2309
|
-
Beam.report_beam_video('Pause',
|
|
2310
|
-
Segment.report_video_event('Video Pause',
|
|
2279
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2280
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2311
2281
|
};
|
|
2312
2282
|
|
|
2313
|
-
return
|
|
2283
|
+
return React.createElement(
|
|
2314
2284
|
'div',
|
|
2315
2285
|
null,
|
|
2316
|
-
vidLoaded &&
|
|
2286
|
+
vidLoaded && React.createElement(
|
|
2317
2287
|
'video',
|
|
2318
2288
|
{
|
|
2319
2289
|
poster: thumbnail || '',
|
|
@@ -2331,7 +2301,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2331
2301
|
onPlay: function onPlay(e) {
|
|
2332
2302
|
return handleOnPlay(e);
|
|
2333
2303
|
} },
|
|
2334
|
-
|
|
2304
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2335
2305
|
'Your browser does not support the video tag.'
|
|
2336
2306
|
)
|
|
2337
2307
|
);
|
|
@@ -2368,7 +2338,7 @@ var Video = function Video(_ref) {
|
|
|
2368
2338
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2369
2339
|
//console.log('success:', success.ref)
|
|
2370
2340
|
var player = success.ref;
|
|
2371
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2341
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2372
2342
|
player.ima3.settings.debug = true;
|
|
2373
2343
|
if (targeting.content_placement && targeting.document_url) {
|
|
2374
2344
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2396,8 +2366,8 @@ var Video = function Video(_ref) {
|
|
|
2396
2366
|
player.pause();
|
|
2397
2367
|
}
|
|
2398
2368
|
|
|
2399
|
-
Beam.report_beam_video('Ready',
|
|
2400
|
-
Segment.report_video_event('Video Ready',
|
|
2369
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2370
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2401
2371
|
});
|
|
2402
2372
|
|
|
2403
2373
|
// play
|
|
@@ -2406,8 +2376,8 @@ var Video = function Video(_ref) {
|
|
|
2406
2376
|
var current = player.currentTime();
|
|
2407
2377
|
var queue = Math.floor(duration / 10);
|
|
2408
2378
|
var segment = Math.floor(current / queue);
|
|
2409
|
-
Beam.report_beam_video('Play',
|
|
2410
|
-
Segment.report_video_event('Video Play',
|
|
2379
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2380
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2411
2381
|
});
|
|
2412
2382
|
|
|
2413
2383
|
// pause
|
|
@@ -2416,8 +2386,8 @@ var Video = function Video(_ref) {
|
|
|
2416
2386
|
var current = player.currentTime();
|
|
2417
2387
|
var queue = Math.floor(duration / 10);
|
|
2418
2388
|
var segment = Math.floor(current / queue);
|
|
2419
|
-
Beam.report_beam_video('Pause',
|
|
2420
|
-
Segment.report_video_event('Video Pause',
|
|
2389
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2390
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2421
2391
|
});
|
|
2422
2392
|
|
|
2423
2393
|
// end
|
|
@@ -2426,8 +2396,8 @@ var Video = function Video(_ref) {
|
|
|
2426
2396
|
var current = player.currentTime();
|
|
2427
2397
|
var queue = Math.floor(duration / 10);
|
|
2428
2398
|
var segment = Math.floor(current / queue);
|
|
2429
|
-
Beam.report_beam_video('End',
|
|
2430
|
-
Segment.report_video_event('Video End',
|
|
2399
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2400
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2431
2401
|
autoplayNextVideo(evt);
|
|
2432
2402
|
});
|
|
2433
2403
|
|
|
@@ -2438,8 +2408,8 @@ var Video = function Video(_ref) {
|
|
|
2438
2408
|
var queue = Math.floor(duration / 10);
|
|
2439
2409
|
var segment = Math.floor(current / queue);
|
|
2440
2410
|
if (!queueProgress.includes(segment)) {
|
|
2441
|
-
Beam.report_beam_video('Segment',
|
|
2442
|
-
Segment.report_video_event('Video Segment',
|
|
2411
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2412
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2443
2413
|
queueProgress.push(segment);
|
|
2444
2414
|
}
|
|
2445
2415
|
});
|
|
@@ -2450,8 +2420,8 @@ var Video = function Video(_ref) {
|
|
|
2450
2420
|
var id = player.ads.ad.id;
|
|
2451
2421
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2452
2422
|
|
|
2453
|
-
Beam.report_beam_ad('AD Started',
|
|
2454
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2423
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2424
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2455
2425
|
});
|
|
2456
2426
|
|
|
2457
2427
|
// ad ended
|
|
@@ -2459,60 +2429,60 @@ var Video = function Video(_ref) {
|
|
|
2459
2429
|
var duration = player.ads.ad.duration;
|
|
2460
2430
|
var id = player.ads.ad.id;
|
|
2461
2431
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2462
|
-
Beam.report_beam_ad('AD Ended',
|
|
2463
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2432
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2433
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2464
2434
|
});
|
|
2465
2435
|
};
|
|
2466
2436
|
|
|
2467
2437
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2468
2438
|
if (videoID) {
|
|
2469
|
-
return
|
|
2439
|
+
return React.createElement(
|
|
2470
2440
|
'div',
|
|
2471
2441
|
null,
|
|
2472
|
-
|
|
2442
|
+
React.createElement(ReactPlayerLoader, {
|
|
2473
2443
|
onSuccess: onVideoSuccess,
|
|
2474
2444
|
accountId: accountIDs.brightcove.accountId,
|
|
2475
2445
|
videoId: videoID,
|
|
2476
2446
|
playerId: accountIDs.brightcove.playerId,
|
|
2477
2447
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2478
2448
|
}),
|
|
2479
|
-
|
|
2449
|
+
React.createElement(
|
|
2480
2450
|
'style',
|
|
2481
2451
|
{ jsx: 'true' },
|
|
2482
2452
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .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 '
|
|
2483
2453
|
)
|
|
2484
2454
|
);
|
|
2485
2455
|
} else if (playlistID) {
|
|
2486
|
-
return
|
|
2456
|
+
return React.createElement(
|
|
2487
2457
|
'div',
|
|
2488
2458
|
null,
|
|
2489
|
-
|
|
2459
|
+
React.createElement(ReactPlayerLoader, {
|
|
2490
2460
|
accountId: accountIDs.brightcove.accountId,
|
|
2491
2461
|
playlistId: playlistID,
|
|
2492
2462
|
playerId: accountIDs.brightcove.playerId,
|
|
2493
2463
|
onSuccess: onVideoSuccess,
|
|
2494
2464
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2495
2465
|
}),
|
|
2496
|
-
|
|
2466
|
+
React.createElement(
|
|
2497
2467
|
'style',
|
|
2498
2468
|
{ jsx: 'true' },
|
|
2499
2469
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .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 '
|
|
2500
2470
|
)
|
|
2501
2471
|
);
|
|
2502
2472
|
} else if (experienceID) {
|
|
2503
|
-
return
|
|
2473
|
+
return React.createElement(
|
|
2504
2474
|
'div',
|
|
2505
2475
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2506
|
-
videoLoaded &&
|
|
2476
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2507
2477
|
);
|
|
2508
2478
|
}
|
|
2509
2479
|
return null;
|
|
2510
2480
|
}
|
|
2511
2481
|
if (source === 'mp4') {
|
|
2512
|
-
return
|
|
2482
|
+
return React.createElement(
|
|
2513
2483
|
'div',
|
|
2514
2484
|
null,
|
|
2515
|
-
|
|
2485
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2516
2486
|
);
|
|
2517
2487
|
}
|
|
2518
2488
|
|
|
@@ -2723,9 +2693,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2723
2693
|
});
|
|
2724
2694
|
|
|
2725
2695
|
unwrapExports(props);
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2696
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2697
|
+
props.defaultProps;
|
|
2698
|
+
props.propTypes;
|
|
2729
2699
|
|
|
2730
2700
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2731
2701
|
return isNonNullObject(value)
|
|
@@ -2890,11 +2860,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2890
2860
|
|
|
2891
2861
|
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; }
|
|
2892
2862
|
|
|
2893
|
-
function
|
|
2863
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2894
2864
|
|
|
2895
|
-
function
|
|
2865
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2896
2866
|
|
|
2897
|
-
function
|
|
2867
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2868
|
+
|
|
2869
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
2870
|
+
|
|
2871
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2872
|
+
|
|
2873
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2898
2874
|
|
|
2899
2875
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2900
2876
|
|
|
@@ -3024,12 +3000,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3024
3000
|
|
|
3025
3001
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3026
3002
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3027
|
-
|
|
3028
|
-
var
|
|
3029
|
-
|
|
3003
|
+
|
|
3004
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3005
|
+
_step;
|
|
3030
3006
|
|
|
3031
3007
|
try {
|
|
3032
|
-
for (
|
|
3008
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3033
3009
|
var p = _step.value;
|
|
3034
3010
|
|
|
3035
3011
|
if (props$1[p]) {
|
|
@@ -3044,18 +3020,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3044
3020
|
}
|
|
3045
3021
|
}
|
|
3046
3022
|
} catch (err) {
|
|
3047
|
-
|
|
3048
|
-
_iteratorError = err;
|
|
3023
|
+
_iterator.e(err);
|
|
3049
3024
|
} finally {
|
|
3050
|
-
|
|
3051
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3052
|
-
_iterator["return"]();
|
|
3053
|
-
}
|
|
3054
|
-
} finally {
|
|
3055
|
-
if (_didIteratorError) {
|
|
3056
|
-
throw _iteratorError;
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3025
|
+
_iterator.f();
|
|
3059
3026
|
}
|
|
3060
3027
|
|
|
3061
3028
|
return config;
|
|
@@ -3120,7 +3087,7 @@ function isEqual(a, b) {
|
|
|
3120
3087
|
return true;
|
|
3121
3088
|
}
|
|
3122
3089
|
|
|
3123
|
-
if ((0,
|
|
3090
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3124
3091
|
return true;
|
|
3125
3092
|
}
|
|
3126
3093
|
|
|
@@ -3163,17 +3130,17 @@ function isMediaStream(url) {
|
|
|
3163
3130
|
});
|
|
3164
3131
|
|
|
3165
3132
|
unwrapExports(utils);
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3133
|
+
utils.parseStartTime;
|
|
3134
|
+
utils.parseEndTime;
|
|
3135
|
+
utils.randomString;
|
|
3136
|
+
utils.queryString;
|
|
3137
|
+
utils.getSDK;
|
|
3138
|
+
utils.getConfig;
|
|
3139
|
+
utils.omit;
|
|
3140
|
+
utils.callPlayer;
|
|
3141
|
+
utils.isObject;
|
|
3142
|
+
utils.isEqual;
|
|
3143
|
+
utils.isMediaStream;
|
|
3177
3144
|
|
|
3178
3145
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3179
3146
|
|
|
@@ -3182,7 +3149,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3182
3149
|
});
|
|
3183
3150
|
exports["default"] = void 0;
|
|
3184
3151
|
|
|
3185
|
-
var _react = _interopRequireWildcard(
|
|
3152
|
+
var _react = _interopRequireWildcard(React);
|
|
3186
3153
|
|
|
3187
3154
|
|
|
3188
3155
|
|
|
@@ -3202,12 +3169,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3202
3169
|
|
|
3203
3170
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3204
3171
|
|
|
3205
|
-
function
|
|
3172
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3206
3173
|
|
|
3207
|
-
function
|
|
3174
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3208
3175
|
|
|
3209
3176
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3210
3177
|
|
|
3178
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3179
|
+
|
|
3180
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3181
|
+
|
|
3211
3182
|
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); }
|
|
3212
3183
|
|
|
3213
3184
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3216,14 +3187,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3216
3187
|
|
|
3217
3188
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3218
3189
|
|
|
3219
|
-
var Player =
|
|
3220
|
-
/*#__PURE__*/
|
|
3221
|
-
function (_Component) {
|
|
3190
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3222
3191
|
_inherits(Player, _Component);
|
|
3223
3192
|
|
|
3224
|
-
|
|
3225
|
-
var _getPrototypeOf2;
|
|
3193
|
+
var _super = _createSuper(Player);
|
|
3226
3194
|
|
|
3195
|
+
function Player() {
|
|
3227
3196
|
var _this;
|
|
3228
3197
|
|
|
3229
3198
|
_classCallCheck(this, Player);
|
|
@@ -3232,7 +3201,7 @@ function (_Component) {
|
|
|
3232
3201
|
_args[_key] = arguments[_key];
|
|
3233
3202
|
}
|
|
3234
3203
|
|
|
3235
|
-
_this =
|
|
3204
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3236
3205
|
|
|
3237
3206
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3238
3207
|
|
|
@@ -3557,7 +3526,7 @@ function (_Component) {
|
|
|
3557
3526
|
return null;
|
|
3558
3527
|
}
|
|
3559
3528
|
|
|
3560
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3529
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3561
3530
|
ref: this.ref,
|
|
3562
3531
|
onReady: this.handleReady,
|
|
3563
3532
|
onPlay: this.handlePlay,
|
|
@@ -3590,7 +3559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3590
3559
|
});
|
|
3591
3560
|
exports["default"] = createSinglePlayer;
|
|
3592
3561
|
|
|
3593
|
-
var _react = _interopRequireWildcard(
|
|
3562
|
+
var _react = _interopRequireWildcard(React);
|
|
3594
3563
|
|
|
3595
3564
|
|
|
3596
3565
|
|
|
@@ -3618,12 +3587,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3618
3587
|
|
|
3619
3588
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3620
3589
|
|
|
3621
|
-
function
|
|
3590
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3622
3591
|
|
|
3623
|
-
function
|
|
3592
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3624
3593
|
|
|
3625
3594
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3626
3595
|
|
|
3596
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3597
|
+
|
|
3598
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3599
|
+
|
|
3627
3600
|
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); }
|
|
3628
3601
|
|
|
3629
3602
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3635,14 +3608,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3635
3608
|
function createSinglePlayer(activePlayer) {
|
|
3636
3609
|
var _class, _temp;
|
|
3637
3610
|
|
|
3638
|
-
return _temp = _class =
|
|
3639
|
-
/*#__PURE__*/
|
|
3640
|
-
function (_Component) {
|
|
3611
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3641
3612
|
_inherits(SinglePlayer, _Component);
|
|
3642
3613
|
|
|
3643
|
-
|
|
3644
|
-
var _getPrototypeOf2;
|
|
3614
|
+
var _super = _createSuper(SinglePlayer);
|
|
3645
3615
|
|
|
3616
|
+
function SinglePlayer() {
|
|
3646
3617
|
var _this;
|
|
3647
3618
|
|
|
3648
3619
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3651,7 +3622,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3651
3622
|
args[_key] = arguments[_key];
|
|
3652
3623
|
}
|
|
3653
3624
|
|
|
3654
|
-
_this =
|
|
3625
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3655
3626
|
|
|
3656
3627
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3657
3628
|
|
|
@@ -3719,12 +3690,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3719
3690
|
height = _this$props.height,
|
|
3720
3691
|
Wrapper = _this$props.wrapper;
|
|
3721
3692
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3722
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3693
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3723
3694
|
style: _objectSpread({}, style, {
|
|
3724
3695
|
width: width,
|
|
3725
3696
|
height: height
|
|
3726
3697
|
})
|
|
3727
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3698
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3728
3699
|
ref: this.ref,
|
|
3729
3700
|
activePlayer: activePlayer,
|
|
3730
3701
|
config: this.config
|
|
@@ -3746,7 +3717,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3746
3717
|
});
|
|
3747
3718
|
exports["default"] = exports.YouTube = void 0;
|
|
3748
3719
|
|
|
3749
|
-
var _react = _interopRequireWildcard(
|
|
3720
|
+
var _react = _interopRequireWildcard(React);
|
|
3750
3721
|
|
|
3751
3722
|
|
|
3752
3723
|
|
|
@@ -3770,23 +3741,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3770
3741
|
|
|
3771
3742
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3772
3743
|
|
|
3773
|
-
function
|
|
3744
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3774
3745
|
|
|
3775
|
-
function
|
|
3746
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3776
3747
|
|
|
3777
3748
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3778
3749
|
|
|
3750
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3751
|
+
|
|
3752
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3753
|
+
|
|
3779
3754
|
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); }
|
|
3780
3755
|
|
|
3781
3756
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3782
3757
|
|
|
3783
3758
|
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; }
|
|
3784
3759
|
|
|
3785
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3760
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3761
|
+
|
|
3762
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3763
|
+
|
|
3764
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3786
3765
|
|
|
3787
|
-
function
|
|
3766
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3788
3767
|
|
|
3789
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3768
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3790
3769
|
|
|
3791
3770
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3792
3771
|
|
|
@@ -3811,14 +3790,12 @@ function parsePlaylist(url) {
|
|
|
3811
3790
|
return {};
|
|
3812
3791
|
}
|
|
3813
3792
|
|
|
3814
|
-
var YouTube =
|
|
3815
|
-
/*#__PURE__*/
|
|
3816
|
-
function (_Component) {
|
|
3793
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3817
3794
|
_inherits(YouTube, _Component);
|
|
3818
3795
|
|
|
3819
|
-
|
|
3820
|
-
var _getPrototypeOf2;
|
|
3796
|
+
var _super = _createSuper(YouTube);
|
|
3821
3797
|
|
|
3798
|
+
function YouTube() {
|
|
3822
3799
|
var _this;
|
|
3823
3800
|
|
|
3824
3801
|
_classCallCheck(this, YouTube);
|
|
@@ -3827,7 +3804,7 @@ function (_Component) {
|
|
|
3827
3804
|
args[_key] = arguments[_key];
|
|
3828
3805
|
}
|
|
3829
3806
|
|
|
3830
|
-
_this =
|
|
3807
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3831
3808
|
|
|
3832
3809
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3833
3810
|
|
|
@@ -4015,9 +3992,9 @@ function (_Component) {
|
|
|
4015
3992
|
height: '100%',
|
|
4016
3993
|
display: display
|
|
4017
3994
|
};
|
|
4018
|
-
return _react["default"].createElement("div", {
|
|
3995
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4019
3996
|
style: style
|
|
4020
|
-
}, _react["default"].createElement("div", {
|
|
3997
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4021
3998
|
ref: this.ref
|
|
4022
3999
|
}));
|
|
4023
4000
|
}
|
|
@@ -4040,7 +4017,7 @@ exports["default"] = _default;
|
|
|
4040
4017
|
});
|
|
4041
4018
|
|
|
4042
4019
|
unwrapExports(YouTube_1);
|
|
4043
|
-
|
|
4020
|
+
YouTube_1.YouTube;
|
|
4044
4021
|
|
|
4045
4022
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4046
4023
|
|
|
@@ -4049,7 +4026,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4049
4026
|
});
|
|
4050
4027
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4051
4028
|
|
|
4052
|
-
var _react = _interopRequireWildcard(
|
|
4029
|
+
var _react = _interopRequireWildcard(React);
|
|
4053
4030
|
|
|
4054
4031
|
|
|
4055
4032
|
|
|
@@ -4073,12 +4050,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4073
4050
|
|
|
4074
4051
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4075
4052
|
|
|
4076
|
-
function
|
|
4053
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4077
4054
|
|
|
4078
|
-
function
|
|
4055
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4079
4056
|
|
|
4080
4057
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4081
4058
|
|
|
4059
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4060
|
+
|
|
4061
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4062
|
+
|
|
4082
4063
|
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); }
|
|
4083
4064
|
|
|
4084
4065
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4087,16 +4068,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4087
4068
|
|
|
4088
4069
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4089
4070
|
var SDK_GLOBAL = 'SC';
|
|
4090
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4071
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4091
4072
|
|
|
4092
|
-
var SoundCloud =
|
|
4093
|
-
/*#__PURE__*/
|
|
4094
|
-
function (_Component) {
|
|
4073
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4095
4074
|
_inherits(SoundCloud, _Component);
|
|
4096
4075
|
|
|
4097
|
-
|
|
4098
|
-
var _getPrototypeOf2;
|
|
4076
|
+
var _super = _createSuper(SoundCloud);
|
|
4099
4077
|
|
|
4078
|
+
function SoundCloud() {
|
|
4100
4079
|
var _this;
|
|
4101
4080
|
|
|
4102
4081
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4105,7 +4084,7 @@ function (_Component) {
|
|
|
4105
4084
|
args[_key] = arguments[_key];
|
|
4106
4085
|
}
|
|
4107
4086
|
|
|
4108
|
-
_this =
|
|
4087
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4109
4088
|
|
|
4110
4089
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4111
4090
|
|
|
@@ -4226,7 +4205,7 @@ function (_Component) {
|
|
|
4226
4205
|
height: '100%',
|
|
4227
4206
|
display: display
|
|
4228
4207
|
};
|
|
4229
|
-
return _react["default"].createElement("iframe", {
|
|
4208
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4230
4209
|
ref: this.ref,
|
|
4231
4210
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4232
4211
|
style: style,
|
|
@@ -4255,7 +4234,7 @@ exports["default"] = _default;
|
|
|
4255
4234
|
});
|
|
4256
4235
|
|
|
4257
4236
|
unwrapExports(SoundCloud_1);
|
|
4258
|
-
|
|
4237
|
+
SoundCloud_1.SoundCloud;
|
|
4259
4238
|
|
|
4260
4239
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4261
4240
|
|
|
@@ -4264,7 +4243,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4264
4243
|
});
|
|
4265
4244
|
exports["default"] = exports.Vimeo = void 0;
|
|
4266
4245
|
|
|
4267
|
-
var _react = _interopRequireWildcard(
|
|
4246
|
+
var _react = _interopRequireWildcard(React);
|
|
4268
4247
|
|
|
4269
4248
|
|
|
4270
4249
|
|
|
@@ -4288,12 +4267,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4288
4267
|
|
|
4289
4268
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4290
4269
|
|
|
4291
|
-
function
|
|
4270
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4292
4271
|
|
|
4293
|
-
function
|
|
4272
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4294
4273
|
|
|
4295
4274
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4296
4275
|
|
|
4276
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4277
|
+
|
|
4278
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4279
|
+
|
|
4297
4280
|
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); }
|
|
4298
4281
|
|
|
4299
4282
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4305,14 +4288,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4305
4288
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4306
4289
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4307
4290
|
|
|
4308
|
-
var Vimeo =
|
|
4309
|
-
/*#__PURE__*/
|
|
4310
|
-
function (_Component) {
|
|
4291
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4311
4292
|
_inherits(Vimeo, _Component);
|
|
4312
4293
|
|
|
4313
|
-
|
|
4314
|
-
var _getPrototypeOf2;
|
|
4294
|
+
var _super = _createSuper(Vimeo);
|
|
4315
4295
|
|
|
4296
|
+
function Vimeo() {
|
|
4316
4297
|
var _this;
|
|
4317
4298
|
|
|
4318
4299
|
_classCallCheck(this, Vimeo);
|
|
@@ -4321,7 +4302,7 @@ function (_Component) {
|
|
|
4321
4302
|
args[_key] = arguments[_key];
|
|
4322
4303
|
}
|
|
4323
4304
|
|
|
4324
|
-
_this =
|
|
4305
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4325
4306
|
|
|
4326
4307
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4327
4308
|
|
|
@@ -4478,7 +4459,7 @@ function (_Component) {
|
|
|
4478
4459
|
overflow: 'hidden',
|
|
4479
4460
|
display: display
|
|
4480
4461
|
};
|
|
4481
|
-
return _react["default"].createElement("div", {
|
|
4462
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4482
4463
|
key: this.props.url,
|
|
4483
4464
|
ref: this.ref,
|
|
4484
4465
|
style: style
|
|
@@ -4509,7 +4490,7 @@ exports["default"] = _default;
|
|
|
4509
4490
|
});
|
|
4510
4491
|
|
|
4511
4492
|
unwrapExports(Vimeo_1);
|
|
4512
|
-
|
|
4493
|
+
Vimeo_1.Vimeo;
|
|
4513
4494
|
|
|
4514
4495
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4515
4496
|
|
|
@@ -4518,7 +4499,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4518
4499
|
});
|
|
4519
4500
|
exports["default"] = exports.Facebook = void 0;
|
|
4520
4501
|
|
|
4521
|
-
var _react = _interopRequireWildcard(
|
|
4502
|
+
var _react = _interopRequireWildcard(React);
|
|
4522
4503
|
|
|
4523
4504
|
|
|
4524
4505
|
|
|
@@ -4538,12 +4519,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4538
4519
|
|
|
4539
4520
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4540
4521
|
|
|
4541
|
-
function
|
|
4522
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4542
4523
|
|
|
4543
|
-
function
|
|
4524
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4544
4525
|
|
|
4545
4526
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4546
4527
|
|
|
4528
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4529
|
+
|
|
4530
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4531
|
+
|
|
4547
4532
|
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); }
|
|
4548
4533
|
|
|
4549
4534
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4556,14 +4541,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4556
4541
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4557
4542
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4558
4543
|
|
|
4559
|
-
var Facebook =
|
|
4560
|
-
/*#__PURE__*/
|
|
4561
|
-
function (_Component) {
|
|
4544
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4562
4545
|
_inherits(Facebook, _Component);
|
|
4563
4546
|
|
|
4564
|
-
|
|
4565
|
-
var _getPrototypeOf2;
|
|
4547
|
+
var _super = _createSuper(Facebook);
|
|
4566
4548
|
|
|
4549
|
+
function Facebook() {
|
|
4567
4550
|
var _this;
|
|
4568
4551
|
|
|
4569
4552
|
_classCallCheck(this, Facebook);
|
|
@@ -4572,7 +4555,7 @@ function (_Component) {
|
|
|
4572
4555
|
args[_key] = arguments[_key];
|
|
4573
4556
|
}
|
|
4574
4557
|
|
|
4575
|
-
_this =
|
|
4558
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4576
4559
|
|
|
4577
4560
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4578
4561
|
|
|
@@ -4688,7 +4671,7 @@ function (_Component) {
|
|
|
4688
4671
|
width: '100%',
|
|
4689
4672
|
height: '100%'
|
|
4690
4673
|
};
|
|
4691
|
-
return _react["default"].createElement("div", {
|
|
4674
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4692
4675
|
style: style,
|
|
4693
4676
|
id: this.playerID,
|
|
4694
4677
|
className: "fb-video",
|
|
@@ -4719,7 +4702,7 @@ exports["default"] = _default;
|
|
|
4719
4702
|
});
|
|
4720
4703
|
|
|
4721
4704
|
unwrapExports(Facebook_1);
|
|
4722
|
-
|
|
4705
|
+
Facebook_1.Facebook;
|
|
4723
4706
|
|
|
4724
4707
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4725
4708
|
|
|
@@ -4728,7 +4711,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4728
4711
|
});
|
|
4729
4712
|
exports["default"] = exports.Streamable = void 0;
|
|
4730
4713
|
|
|
4731
|
-
var _react = _interopRequireWildcard(
|
|
4714
|
+
var _react = _interopRequireWildcard(React);
|
|
4732
4715
|
|
|
4733
4716
|
|
|
4734
4717
|
|
|
@@ -4748,12 +4731,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4748
4731
|
|
|
4749
4732
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4750
4733
|
|
|
4751
|
-
function
|
|
4734
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4752
4735
|
|
|
4753
|
-
function
|
|
4736
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4754
4737
|
|
|
4755
4738
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4756
4739
|
|
|
4740
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4741
|
+
|
|
4742
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4743
|
+
|
|
4757
4744
|
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); }
|
|
4758
4745
|
|
|
4759
4746
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4764,14 +4751,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4764
4751
|
var SDK_GLOBAL = 'playerjs';
|
|
4765
4752
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4766
4753
|
|
|
4767
|
-
var Streamable =
|
|
4768
|
-
/*#__PURE__*/
|
|
4769
|
-
function (_Component) {
|
|
4754
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4770
4755
|
_inherits(Streamable, _Component);
|
|
4771
4756
|
|
|
4772
|
-
|
|
4773
|
-
var _getPrototypeOf2;
|
|
4757
|
+
var _super = _createSuper(Streamable);
|
|
4774
4758
|
|
|
4759
|
+
function Streamable() {
|
|
4775
4760
|
var _this;
|
|
4776
4761
|
|
|
4777
4762
|
_classCallCheck(this, Streamable);
|
|
@@ -4780,7 +4765,7 @@ function (_Component) {
|
|
|
4780
4765
|
args[_key] = arguments[_key];
|
|
4781
4766
|
}
|
|
4782
4767
|
|
|
4783
|
-
_this =
|
|
4768
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4784
4769
|
|
|
4785
4770
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4786
4771
|
|
|
@@ -4900,7 +4885,7 @@ function (_Component) {
|
|
|
4900
4885
|
width: '100%',
|
|
4901
4886
|
height: '100%'
|
|
4902
4887
|
};
|
|
4903
|
-
return _react["default"].createElement("iframe", {
|
|
4888
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4904
4889
|
ref: this.ref,
|
|
4905
4890
|
src: "https://streamable.com/o/".concat(id),
|
|
4906
4891
|
frameBorder: "0",
|
|
@@ -4928,7 +4913,7 @@ exports["default"] = _default;
|
|
|
4928
4913
|
});
|
|
4929
4914
|
|
|
4930
4915
|
unwrapExports(Streamable_1);
|
|
4931
|
-
|
|
4916
|
+
Streamable_1.Streamable;
|
|
4932
4917
|
|
|
4933
4918
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4934
4919
|
|
|
@@ -4937,7 +4922,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4937
4922
|
});
|
|
4938
4923
|
exports["default"] = exports.Wistia = void 0;
|
|
4939
4924
|
|
|
4940
|
-
var _react = _interopRequireWildcard(
|
|
4925
|
+
var _react = _interopRequireWildcard(React);
|
|
4941
4926
|
|
|
4942
4927
|
|
|
4943
4928
|
|
|
@@ -4961,12 +4946,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4961
4946
|
|
|
4962
4947
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4963
4948
|
|
|
4964
|
-
function
|
|
4949
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4965
4950
|
|
|
4966
|
-
function
|
|
4951
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4967
4952
|
|
|
4968
4953
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4969
4954
|
|
|
4955
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4956
|
+
|
|
4957
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4958
|
+
|
|
4970
4959
|
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); }
|
|
4971
4960
|
|
|
4972
4961
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4977,26 +4966,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4977
4966
|
var SDK_GLOBAL = 'Wistia';
|
|
4978
4967
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4979
4968
|
|
|
4980
|
-
var Wistia =
|
|
4981
|
-
/*#__PURE__*/
|
|
4982
|
-
function (_Component) {
|
|
4969
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4983
4970
|
_inherits(Wistia, _Component);
|
|
4984
4971
|
|
|
4985
|
-
|
|
4986
|
-
var _getPrototypeOf2;
|
|
4972
|
+
var _super = _createSuper(Wistia);
|
|
4987
4973
|
|
|
4974
|
+
function Wistia() {
|
|
4988
4975
|
var _this;
|
|
4989
4976
|
|
|
4990
4977
|
_classCallCheck(this, Wistia);
|
|
4991
4978
|
|
|
4992
|
-
for (var _len = arguments.length,
|
|
4993
|
-
|
|
4979
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4980
|
+
_args[_key] = arguments[_key];
|
|
4994
4981
|
}
|
|
4995
4982
|
|
|
4996
|
-
_this =
|
|
4983
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4997
4984
|
|
|
4998
4985
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4999
4986
|
|
|
4987
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4988
|
+
var _this$props;
|
|
4989
|
+
|
|
4990
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4991
|
+
});
|
|
4992
|
+
|
|
4993
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4994
|
+
var _this$props2;
|
|
4995
|
+
|
|
4996
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4997
|
+
});
|
|
4998
|
+
|
|
4999
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5000
|
+
var _this$props3;
|
|
5001
|
+
|
|
5002
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5003
|
+
});
|
|
5004
|
+
|
|
5005
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5006
|
+
var _this$props4;
|
|
5007
|
+
|
|
5008
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5009
|
+
});
|
|
5010
|
+
|
|
5000
5011
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5001
5012
|
_this.callPlayer('mute');
|
|
5002
5013
|
});
|
|
@@ -5018,17 +5029,13 @@ function (_Component) {
|
|
|
5018
5029
|
value: function load(url) {
|
|
5019
5030
|
var _this2 = this;
|
|
5020
5031
|
|
|
5021
|
-
var _this$
|
|
5022
|
-
playing = _this$
|
|
5023
|
-
muted = _this$
|
|
5024
|
-
controls = _this$
|
|
5025
|
-
_onReady = _this$
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
onSeek = _this$props.onSeek,
|
|
5029
|
-
onEnded = _this$props.onEnded,
|
|
5030
|
-
config = _this$props.config,
|
|
5031
|
-
onError = _this$props.onError;
|
|
5032
|
+
var _this$props5 = this.props,
|
|
5033
|
+
playing = _this$props5.playing,
|
|
5034
|
+
muted = _this$props5.muted,
|
|
5035
|
+
controls = _this$props5.controls,
|
|
5036
|
+
_onReady = _this$props5.onReady,
|
|
5037
|
+
config = _this$props5.config,
|
|
5038
|
+
onError = _this$props5.onError;
|
|
5032
5039
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5033
5040
|
window._wq = window._wq || [];
|
|
5034
5041
|
|
|
@@ -5045,19 +5052,28 @@ function (_Component) {
|
|
|
5045
5052
|
|
|
5046
5053
|
_this2.unbind();
|
|
5047
5054
|
|
|
5048
|
-
_this2.player.bind('play', onPlay);
|
|
5055
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5049
5056
|
|
|
5050
|
-
_this2.player.bind('pause', onPause);
|
|
5057
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5051
5058
|
|
|
5052
|
-
_this2.player.bind('seek', onSeek);
|
|
5059
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5053
5060
|
|
|
5054
|
-
_this2.player.bind('end', onEnded);
|
|
5061
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5055
5062
|
|
|
5056
5063
|
_onReady();
|
|
5057
5064
|
}
|
|
5058
5065
|
});
|
|
5059
5066
|
}, onError);
|
|
5060
5067
|
}
|
|
5068
|
+
}, {
|
|
5069
|
+
key: "unbind",
|
|
5070
|
+
value: function unbind() {
|
|
5071
|
+
this.player.unbind('play', this.onPlay);
|
|
5072
|
+
this.player.unbind('pause', this.onPause);
|
|
5073
|
+
this.player.unbind('seek', this.onSeek);
|
|
5074
|
+
this.player.unbind('end', this.onEnded);
|
|
5075
|
+
} // Proxy methods to prevent listener leaks
|
|
5076
|
+
|
|
5061
5077
|
}, {
|
|
5062
5078
|
key: "play",
|
|
5063
5079
|
value: function play() {
|
|
@@ -5068,19 +5084,6 @@ function (_Component) {
|
|
|
5068
5084
|
value: function pause() {
|
|
5069
5085
|
this.callPlayer('pause');
|
|
5070
5086
|
}
|
|
5071
|
-
}, {
|
|
5072
|
-
key: "unbind",
|
|
5073
|
-
value: function unbind() {
|
|
5074
|
-
var _this$props2 = this.props,
|
|
5075
|
-
onPlay = _this$props2.onPlay,
|
|
5076
|
-
onPause = _this$props2.onPause,
|
|
5077
|
-
onSeek = _this$props2.onSeek,
|
|
5078
|
-
onEnded = _this$props2.onEnded;
|
|
5079
|
-
this.player.unbind('play', onPlay);
|
|
5080
|
-
this.player.unbind('pause', onPause);
|
|
5081
|
-
this.player.unbind('seek', onSeek);
|
|
5082
|
-
this.player.unbind('end', onEnded);
|
|
5083
|
-
}
|
|
5084
5087
|
}, {
|
|
5085
5088
|
key: "stop",
|
|
5086
5089
|
value: function stop() {
|
|
@@ -5126,7 +5129,7 @@ function (_Component) {
|
|
|
5126
5129
|
width: '100%',
|
|
5127
5130
|
height: '100%'
|
|
5128
5131
|
};
|
|
5129
|
-
return _react["default"].createElement("div", {
|
|
5132
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5130
5133
|
key: id,
|
|
5131
5134
|
className: className,
|
|
5132
5135
|
style: style
|
|
@@ -5153,7 +5156,7 @@ exports["default"] = _default;
|
|
|
5153
5156
|
});
|
|
5154
5157
|
|
|
5155
5158
|
unwrapExports(Wistia_1);
|
|
5156
|
-
|
|
5159
|
+
Wistia_1.Wistia;
|
|
5157
5160
|
|
|
5158
5161
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5159
5162
|
|
|
@@ -5162,7 +5165,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5162
5165
|
});
|
|
5163
5166
|
exports["default"] = exports.Twitch = void 0;
|
|
5164
5167
|
|
|
5165
|
-
var _react = _interopRequireWildcard(
|
|
5168
|
+
var _react = _interopRequireWildcard(React);
|
|
5166
5169
|
|
|
5167
5170
|
|
|
5168
5171
|
|
|
@@ -5186,12 +5189,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5186
5189
|
|
|
5187
5190
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5188
5191
|
|
|
5189
|
-
function
|
|
5192
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5190
5193
|
|
|
5191
|
-
function
|
|
5194
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5192
5195
|
|
|
5193
5196
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5194
5197
|
|
|
5198
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5199
|
+
|
|
5200
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5201
|
+
|
|
5195
5202
|
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); }
|
|
5196
5203
|
|
|
5197
5204
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5204,14 +5211,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5204
5211
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5205
5212
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5206
5213
|
|
|
5207
|
-
var Twitch =
|
|
5208
|
-
/*#__PURE__*/
|
|
5209
|
-
function (_Component) {
|
|
5214
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5210
5215
|
_inherits(Twitch, _Component);
|
|
5211
5216
|
|
|
5212
|
-
|
|
5213
|
-
var _getPrototypeOf2;
|
|
5217
|
+
var _super = _createSuper(Twitch);
|
|
5214
5218
|
|
|
5219
|
+
function Twitch() {
|
|
5215
5220
|
var _this;
|
|
5216
5221
|
|
|
5217
5222
|
_classCallCheck(this, Twitch);
|
|
@@ -5220,7 +5225,7 @@ function (_Component) {
|
|
|
5220
5225
|
args[_key] = arguments[_key];
|
|
5221
5226
|
}
|
|
5222
5227
|
|
|
5223
|
-
_this =
|
|
5228
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5224
5229
|
|
|
5225
5230
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5226
5231
|
|
|
@@ -5341,7 +5346,7 @@ function (_Component) {
|
|
|
5341
5346
|
width: '100%',
|
|
5342
5347
|
height: '100%'
|
|
5343
5348
|
};
|
|
5344
|
-
return _react["default"].createElement("div", {
|
|
5349
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5345
5350
|
style: style,
|
|
5346
5351
|
id: this.playerID
|
|
5347
5352
|
});
|
|
@@ -5367,7 +5372,7 @@ exports["default"] = _default;
|
|
|
5367
5372
|
});
|
|
5368
5373
|
|
|
5369
5374
|
unwrapExports(Twitch_1);
|
|
5370
|
-
|
|
5375
|
+
Twitch_1.Twitch;
|
|
5371
5376
|
|
|
5372
5377
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5373
5378
|
|
|
@@ -5376,7 +5381,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5376
5381
|
});
|
|
5377
5382
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5378
5383
|
|
|
5379
|
-
var _react = _interopRequireWildcard(
|
|
5384
|
+
var _react = _interopRequireWildcard(React);
|
|
5380
5385
|
|
|
5381
5386
|
|
|
5382
5387
|
|
|
@@ -5394,11 +5399,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5394
5399
|
|
|
5395
5400
|
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; }
|
|
5396
5401
|
|
|
5397
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5402
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5403
|
+
|
|
5404
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5398
5405
|
|
|
5399
|
-
function
|
|
5406
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5400
5407
|
|
|
5401
|
-
function
|
|
5408
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5409
|
+
|
|
5410
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5402
5411
|
|
|
5403
5412
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5404
5413
|
|
|
@@ -5408,12 +5417,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5408
5417
|
|
|
5409
5418
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5410
5419
|
|
|
5411
|
-
function
|
|
5420
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5412
5421
|
|
|
5413
|
-
function
|
|
5422
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5414
5423
|
|
|
5415
5424
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5416
5425
|
|
|
5426
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5427
|
+
|
|
5428
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5429
|
+
|
|
5417
5430
|
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); }
|
|
5418
5431
|
|
|
5419
5432
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5425,14 +5438,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5425
5438
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5426
5439
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5427
5440
|
|
|
5428
|
-
var DailyMotion =
|
|
5429
|
-
/*#__PURE__*/
|
|
5430
|
-
function (_Component) {
|
|
5441
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5431
5442
|
_inherits(DailyMotion, _Component);
|
|
5432
5443
|
|
|
5433
|
-
|
|
5434
|
-
var _getPrototypeOf2;
|
|
5444
|
+
var _super = _createSuper(DailyMotion);
|
|
5435
5445
|
|
|
5446
|
+
function DailyMotion() {
|
|
5436
5447
|
var _this;
|
|
5437
5448
|
|
|
5438
5449
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5441,7 +5452,7 @@ function (_Component) {
|
|
|
5441
5452
|
args[_key] = arguments[_key];
|
|
5442
5453
|
}
|
|
5443
5454
|
|
|
5444
|
-
_this =
|
|
5455
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5445
5456
|
|
|
5446
5457
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5447
5458
|
|
|
@@ -5570,9 +5581,9 @@ function (_Component) {
|
|
|
5570
5581
|
height: '100%',
|
|
5571
5582
|
display: display
|
|
5572
5583
|
};
|
|
5573
|
-
return _react["default"].createElement("div", {
|
|
5584
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5574
5585
|
style: style
|
|
5575
|
-
}, _react["default"].createElement("div", {
|
|
5586
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5576
5587
|
ref: this.ref
|
|
5577
5588
|
}));
|
|
5578
5589
|
}
|
|
@@ -5597,7 +5608,7 @@ exports["default"] = _default;
|
|
|
5597
5608
|
});
|
|
5598
5609
|
|
|
5599
5610
|
unwrapExports(DailyMotion_1);
|
|
5600
|
-
|
|
5611
|
+
DailyMotion_1.DailyMotion;
|
|
5601
5612
|
|
|
5602
5613
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5603
5614
|
|
|
@@ -5606,7 +5617,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5606
5617
|
});
|
|
5607
5618
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5608
5619
|
|
|
5609
|
-
var _react = _interopRequireWildcard(
|
|
5620
|
+
var _react = _interopRequireWildcard(React);
|
|
5610
5621
|
|
|
5611
5622
|
|
|
5612
5623
|
|
|
@@ -5630,12 +5641,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5630
5641
|
|
|
5631
5642
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5632
5643
|
|
|
5633
|
-
function
|
|
5644
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5634
5645
|
|
|
5635
|
-
function
|
|
5646
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5636
5647
|
|
|
5637
5648
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5638
5649
|
|
|
5650
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5651
|
+
|
|
5652
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5653
|
+
|
|
5639
5654
|
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); }
|
|
5640
5655
|
|
|
5641
5656
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5646,14 +5661,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5646
5661
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5647
5662
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5648
5663
|
|
|
5649
|
-
var Mixcloud =
|
|
5650
|
-
/*#__PURE__*/
|
|
5651
|
-
function (_Component) {
|
|
5664
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5652
5665
|
_inherits(Mixcloud, _Component);
|
|
5653
5666
|
|
|
5654
|
-
|
|
5655
|
-
var _getPrototypeOf2;
|
|
5667
|
+
var _super = _createSuper(Mixcloud);
|
|
5656
5668
|
|
|
5669
|
+
function Mixcloud() {
|
|
5657
5670
|
var _this;
|
|
5658
5671
|
|
|
5659
5672
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5662,7 +5675,7 @@ function (_Component) {
|
|
|
5662
5675
|
args[_key] = arguments[_key];
|
|
5663
5676
|
}
|
|
5664
5677
|
|
|
5665
|
-
_this =
|
|
5678
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5666
5679
|
|
|
5667
5680
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5668
5681
|
|
|
@@ -5765,7 +5778,7 @@ function (_Component) {
|
|
|
5765
5778
|
})); // We have to give the iframe a key here to prevent a
|
|
5766
5779
|
// weird dialog appearing when loading a new track
|
|
5767
5780
|
|
|
5768
|
-
return _react["default"].createElement("iframe", {
|
|
5781
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5769
5782
|
key: id,
|
|
5770
5783
|
ref: this.ref,
|
|
5771
5784
|
style: style,
|
|
@@ -5794,7 +5807,7 @@ exports["default"] = _default;
|
|
|
5794
5807
|
});
|
|
5795
5808
|
|
|
5796
5809
|
unwrapExports(Mixcloud_1);
|
|
5797
|
-
|
|
5810
|
+
Mixcloud_1.Mixcloud;
|
|
5798
5811
|
|
|
5799
5812
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5800
5813
|
|
|
@@ -5803,7 +5816,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5803
5816
|
});
|
|
5804
5817
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5805
5818
|
|
|
5806
|
-
var _react = _interopRequireWildcard(
|
|
5819
|
+
var _react = _interopRequireWildcard(React);
|
|
5807
5820
|
|
|
5808
5821
|
|
|
5809
5822
|
|
|
@@ -5825,23 +5838,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5825
5838
|
|
|
5826
5839
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5827
5840
|
|
|
5828
|
-
function
|
|
5841
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5829
5842
|
|
|
5830
|
-
function
|
|
5843
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5831
5844
|
|
|
5832
5845
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5833
5846
|
|
|
5847
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5848
|
+
|
|
5849
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5850
|
+
|
|
5834
5851
|
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); }
|
|
5835
5852
|
|
|
5836
5853
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5837
5854
|
|
|
5838
5855
|
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; }
|
|
5839
5856
|
|
|
5857
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5858
|
+
|
|
5859
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5860
|
+
|
|
5861
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5862
|
+
|
|
5840
5863
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5841
5864
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5842
5865
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5843
5866
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5844
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5867
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5845
5868
|
var HLS_GLOBAL = 'Hls';
|
|
5846
5869
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5847
5870
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5850,12 +5873,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5850
5873
|
|
|
5851
5874
|
function canPlay(url) {
|
|
5852
5875
|
if (url instanceof Array) {
|
|
5853
|
-
var
|
|
5854
|
-
|
|
5855
|
-
var _iteratorError = undefined;
|
|
5876
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5877
|
+
_step;
|
|
5856
5878
|
|
|
5857
5879
|
try {
|
|
5858
|
-
for (
|
|
5880
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5859
5881
|
var item = _step.value;
|
|
5860
5882
|
|
|
5861
5883
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5867,18 +5889,9 @@ function canPlay(url) {
|
|
|
5867
5889
|
}
|
|
5868
5890
|
}
|
|
5869
5891
|
} catch (err) {
|
|
5870
|
-
|
|
5871
|
-
_iteratorError = err;
|
|
5892
|
+
_iterator.e(err);
|
|
5872
5893
|
} finally {
|
|
5873
|
-
|
|
5874
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5875
|
-
_iterator["return"]();
|
|
5876
|
-
}
|
|
5877
|
-
} finally {
|
|
5878
|
-
if (_didIteratorError) {
|
|
5879
|
-
throw _iteratorError;
|
|
5880
|
-
}
|
|
5881
|
-
}
|
|
5894
|
+
_iterator.f();
|
|
5882
5895
|
}
|
|
5883
5896
|
|
|
5884
5897
|
return false;
|
|
@@ -5902,14 +5915,12 @@ function canEnablePIP(url) {
|
|
|
5902
5915
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5903
5916
|
}
|
|
5904
5917
|
|
|
5905
|
-
var FilePlayer =
|
|
5906
|
-
/*#__PURE__*/
|
|
5907
|
-
function (_Component) {
|
|
5918
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5908
5919
|
_inherits(FilePlayer, _Component);
|
|
5909
5920
|
|
|
5910
|
-
|
|
5911
|
-
var _getPrototypeOf2;
|
|
5921
|
+
var _super = _createSuper(FilePlayer);
|
|
5912
5922
|
|
|
5923
|
+
function FilePlayer() {
|
|
5913
5924
|
var _this;
|
|
5914
5925
|
|
|
5915
5926
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5918,7 +5929,7 @@ function (_Component) {
|
|
|
5918
5929
|
_args[_key] = arguments[_key];
|
|
5919
5930
|
}
|
|
5920
5931
|
|
|
5921
|
-
_this =
|
|
5932
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5922
5933
|
|
|
5923
5934
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5924
5935
|
var _this$props;
|
|
@@ -6005,19 +6016,19 @@ function (_Component) {
|
|
|
6005
6016
|
|
|
6006
6017
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6007
6018
|
if (typeof source === 'string') {
|
|
6008
|
-
return _react["default"].createElement("source", {
|
|
6019
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6009
6020
|
key: index,
|
|
6010
6021
|
src: source
|
|
6011
6022
|
});
|
|
6012
6023
|
}
|
|
6013
6024
|
|
|
6014
|
-
return _react["default"].createElement("source", _extends({
|
|
6025
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6015
6026
|
key: index
|
|
6016
6027
|
}, source));
|
|
6017
6028
|
});
|
|
6018
6029
|
|
|
6019
6030
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6020
|
-
return _react["default"].createElement("track", _extends({
|
|
6031
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6021
6032
|
key: index
|
|
6022
6033
|
}, track));
|
|
6023
6034
|
});
|
|
@@ -6055,6 +6066,10 @@ function (_Component) {
|
|
|
6055
6066
|
key: "componentWillUnmount",
|
|
6056
6067
|
value: function componentWillUnmount() {
|
|
6057
6068
|
this.removeListeners(this.player);
|
|
6069
|
+
|
|
6070
|
+
if (this.hls) {
|
|
6071
|
+
this.hls.destroy();
|
|
6072
|
+
}
|
|
6058
6073
|
}
|
|
6059
6074
|
}, {
|
|
6060
6075
|
key: "addListeners",
|
|
@@ -6185,10 +6200,6 @@ function (_Component) {
|
|
|
6185
6200
|
value: function stop() {
|
|
6186
6201
|
this.player.removeAttribute('src');
|
|
6187
6202
|
|
|
6188
|
-
if (this.hls) {
|
|
6189
|
-
this.hls.destroy();
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
6203
|
if (this.dash) {
|
|
6193
6204
|
this.dash.reset();
|
|
6194
6205
|
}
|
|
@@ -6300,7 +6311,7 @@ function (_Component) {
|
|
|
6300
6311
|
width: width === 'auto' ? width : '100%',
|
|
6301
6312
|
height: height === 'auto' ? height : '100%'
|
|
6302
6313
|
};
|
|
6303
|
-
return _react["default"].createElement(Element, _extends({
|
|
6314
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6304
6315
|
ref: this.ref,
|
|
6305
6316
|
src: this.getSource(url),
|
|
6306
6317
|
style: style,
|
|
@@ -6330,7 +6341,7 @@ exports["default"] = _default;
|
|
|
6330
6341
|
});
|
|
6331
6342
|
|
|
6332
6343
|
unwrapExports(FilePlayer_1);
|
|
6333
|
-
|
|
6344
|
+
FilePlayer_1.FilePlayer;
|
|
6334
6345
|
|
|
6335
6346
|
var players = createCommonjsModule(function (module, exports) {
|
|
6336
6347
|
|
|
@@ -6372,7 +6383,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6372
6383
|
});
|
|
6373
6384
|
exports["default"] = void 0;
|
|
6374
6385
|
|
|
6375
|
-
var _react = _interopRequireWildcard(
|
|
6386
|
+
var _react = _interopRequireWildcard(React);
|
|
6376
6387
|
|
|
6377
6388
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6378
6389
|
|
|
@@ -6390,12 +6401,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6390
6401
|
|
|
6391
6402
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6392
6403
|
|
|
6393
|
-
function
|
|
6404
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6394
6405
|
|
|
6395
|
-
function
|
|
6406
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6396
6407
|
|
|
6397
6408
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6398
6409
|
|
|
6410
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6411
|
+
|
|
6412
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6413
|
+
|
|
6399
6414
|
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); }
|
|
6400
6415
|
|
|
6401
6416
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6404,14 +6419,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6404
6419
|
|
|
6405
6420
|
var ICON_SIZE = '64px';
|
|
6406
6421
|
|
|
6407
|
-
var Preview =
|
|
6408
|
-
/*#__PURE__*/
|
|
6409
|
-
function (_Component) {
|
|
6422
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6410
6423
|
_inherits(Preview, _Component);
|
|
6411
6424
|
|
|
6412
|
-
|
|
6413
|
-
var _getPrototypeOf2;
|
|
6425
|
+
var _super = _createSuper(Preview);
|
|
6414
6426
|
|
|
6427
|
+
function Preview() {
|
|
6415
6428
|
var _this;
|
|
6416
6429
|
|
|
6417
6430
|
_classCallCheck(this, Preview);
|
|
@@ -6420,7 +6433,7 @@ function (_Component) {
|
|
|
6420
6433
|
args[_key] = arguments[_key];
|
|
6421
6434
|
}
|
|
6422
6435
|
|
|
6423
|
-
_this =
|
|
6436
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6424
6437
|
|
|
6425
6438
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6426
6439
|
|
|
@@ -6518,15 +6531,15 @@ function (_Component) {
|
|
|
6518
6531
|
}
|
|
6519
6532
|
};
|
|
6520
6533
|
|
|
6521
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6534
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6522
6535
|
style: styles.shadow,
|
|
6523
6536
|
className: "react-player__shadow"
|
|
6524
|
-
}, _react["default"].createElement("div", {
|
|
6537
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6525
6538
|
style: styles.playIcon,
|
|
6526
6539
|
className: "react-player__play-icon"
|
|
6527
6540
|
}));
|
|
6528
6541
|
|
|
6529
|
-
return _react["default"].createElement("div", {
|
|
6542
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6530
6543
|
style: styles.preview,
|
|
6531
6544
|
className: "react-player__preview",
|
|
6532
6545
|
onClick: onClick
|
|
@@ -6549,7 +6562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6549
6562
|
});
|
|
6550
6563
|
exports["default"] = renderPreloadPlayers;
|
|
6551
6564
|
|
|
6552
|
-
var _react = _interopRequireDefault(
|
|
6565
|
+
var _react = _interopRequireDefault(React);
|
|
6553
6566
|
|
|
6554
6567
|
var _Player = _interopRequireDefault(Player_1);
|
|
6555
6568
|
|
|
@@ -6563,6 +6576,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6563
6576
|
|
|
6564
6577
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6565
6578
|
|
|
6579
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6580
|
+
|
|
6581
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6582
|
+
|
|
6583
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6584
|
+
|
|
6566
6585
|
var PRELOAD_PLAYERS = [{
|
|
6567
6586
|
Player: YouTube_1.YouTube,
|
|
6568
6587
|
configKey: 'youtube',
|
|
@@ -6583,16 +6602,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6583
6602
|
|
|
6584
6603
|
function renderPreloadPlayers(url, controls, config) {
|
|
6585
6604
|
var players = [];
|
|
6586
|
-
|
|
6587
|
-
var
|
|
6588
|
-
|
|
6605
|
+
|
|
6606
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6607
|
+
_step;
|
|
6589
6608
|
|
|
6590
6609
|
try {
|
|
6591
|
-
for (
|
|
6610
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6592
6611
|
var player = _step.value;
|
|
6593
6612
|
|
|
6594
6613
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6595
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6614
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6596
6615
|
key: player.Player.displayName,
|
|
6597
6616
|
activePlayer: player.Player,
|
|
6598
6617
|
url: player.url,
|
|
@@ -6604,18 +6623,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6604
6623
|
}
|
|
6605
6624
|
}
|
|
6606
6625
|
} catch (err) {
|
|
6607
|
-
|
|
6608
|
-
_iteratorError = err;
|
|
6626
|
+
_iterator.e(err);
|
|
6609
6627
|
} finally {
|
|
6610
|
-
|
|
6611
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6612
|
-
_iterator["return"]();
|
|
6613
|
-
}
|
|
6614
|
-
} finally {
|
|
6615
|
-
if (_didIteratorError) {
|
|
6616
|
-
throw _iteratorError;
|
|
6617
|
-
}
|
|
6618
|
-
}
|
|
6628
|
+
_iterator.f();
|
|
6619
6629
|
}
|
|
6620
6630
|
|
|
6621
6631
|
return players;
|
|
@@ -6691,7 +6701,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6691
6701
|
});
|
|
6692
6702
|
exports["default"] = void 0;
|
|
6693
6703
|
|
|
6694
|
-
var _react = _interopRequireWildcard(
|
|
6704
|
+
var _react = _interopRequireWildcard(React);
|
|
6695
6705
|
|
|
6696
6706
|
|
|
6697
6707
|
|
|
@@ -6739,13 +6749,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6739
6749
|
|
|
6740
6750
|
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); }
|
|
6741
6751
|
|
|
6742
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6752
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6753
|
+
|
|
6754
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6755
|
+
|
|
6756
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6743
6757
|
|
|
6744
|
-
function
|
|
6758
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6745
6759
|
|
|
6746
|
-
function
|
|
6760
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6747
6761
|
|
|
6748
|
-
function
|
|
6762
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6749
6763
|
|
|
6750
6764
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6751
6765
|
|
|
@@ -6753,12 +6767,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6753
6767
|
|
|
6754
6768
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6755
6769
|
|
|
6756
|
-
function
|
|
6770
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6757
6771
|
|
|
6758
|
-
function
|
|
6772
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6759
6773
|
|
|
6760
6774
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6761
6775
|
|
|
6776
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6777
|
+
|
|
6778
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6779
|
+
|
|
6762
6780
|
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); }
|
|
6763
6781
|
|
|
6764
6782
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6768,14 +6786,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6768
6786
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6769
6787
|
var customPlayers = [];
|
|
6770
6788
|
|
|
6771
|
-
var ReactPlayer =
|
|
6772
|
-
/*#__PURE__*/
|
|
6773
|
-
function (_Component) {
|
|
6789
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6774
6790
|
_inherits(ReactPlayer, _Component);
|
|
6775
6791
|
|
|
6776
|
-
|
|
6777
|
-
var _getPrototypeOf2;
|
|
6792
|
+
var _super = _createSuper(ReactPlayer);
|
|
6778
6793
|
|
|
6794
|
+
function ReactPlayer() {
|
|
6779
6795
|
var _this;
|
|
6780
6796
|
|
|
6781
6797
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6784,7 +6800,7 @@ function (_Component) {
|
|
|
6784
6800
|
args[_key] = arguments[_key];
|
|
6785
6801
|
}
|
|
6786
6802
|
|
|
6787
|
-
_this =
|
|
6803
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6788
6804
|
|
|
6789
6805
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6790
6806
|
|
|
@@ -6895,7 +6911,7 @@ function (_Component) {
|
|
|
6895
6911
|
key: "renderActivePlayer",
|
|
6896
6912
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6897
6913
|
if (!url) return null;
|
|
6898
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6914
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6899
6915
|
key: activePlayer.displayName,
|
|
6900
6916
|
ref: this.activePlayerRef,
|
|
6901
6917
|
config: this.config,
|
|
@@ -6932,14 +6948,14 @@ function (_Component) {
|
|
|
6932
6948
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6933
6949
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6934
6950
|
|
|
6935
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6951
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6936
6952
|
url: url,
|
|
6937
6953
|
light: light,
|
|
6938
6954
|
playIcon: playIcon,
|
|
6939
6955
|
onClick: this.handleClickPreview
|
|
6940
6956
|
});
|
|
6941
6957
|
|
|
6942
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6958
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6943
6959
|
ref: this.wrapperRef,
|
|
6944
6960
|
style: _objectSpread({}, style, {
|
|
6945
6961
|
width: width,
|
|
@@ -6999,20 +7015,20 @@ var Audio = function Audio(_ref) {
|
|
|
6999
7015
|
var node = _ref.node;
|
|
7000
7016
|
|
|
7001
7017
|
if (node.uploadAudio) {
|
|
7002
|
-
return
|
|
7018
|
+
return React.createElement(
|
|
7003
7019
|
'div',
|
|
7004
7020
|
{ className: 'audio d-block text-center mb-3' },
|
|
7005
|
-
|
|
7021
|
+
React.createElement(
|
|
7006
7022
|
'audio',
|
|
7007
7023
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7008
|
-
|
|
7009
|
-
|
|
7024
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7025
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7010
7026
|
'Your browser does not support the audio element.'
|
|
7011
7027
|
),
|
|
7012
|
-
node.caption &&
|
|
7028
|
+
node.caption && React.createElement(
|
|
7013
7029
|
'p',
|
|
7014
7030
|
{ style: { fontSize: '.9rem' } },
|
|
7015
|
-
|
|
7031
|
+
React.createElement(
|
|
7016
7032
|
'em',
|
|
7017
7033
|
null,
|
|
7018
7034
|
node.caption
|
|
@@ -7022,15 +7038,15 @@ var Audio = function Audio(_ref) {
|
|
|
7022
7038
|
} else if (node.audioFilePth) {
|
|
7023
7039
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7024
7040
|
if (hostname === 'embeds.audioboom.com') {
|
|
7025
|
-
return
|
|
7041
|
+
return React.createElement(
|
|
7026
7042
|
'div',
|
|
7027
7043
|
null,
|
|
7028
|
-
|
|
7044
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7029
7045
|
' ',
|
|
7030
|
-
node.caption &&
|
|
7046
|
+
node.caption && React.createElement(
|
|
7031
7047
|
'p',
|
|
7032
7048
|
{ style: { fontSize: '.9rem' } },
|
|
7033
|
-
|
|
7049
|
+
React.createElement(
|
|
7034
7050
|
'em',
|
|
7035
7051
|
null,
|
|
7036
7052
|
node.caption
|
|
@@ -7038,14 +7054,14 @@ var Audio = function Audio(_ref) {
|
|
|
7038
7054
|
)
|
|
7039
7055
|
);
|
|
7040
7056
|
}
|
|
7041
|
-
return
|
|
7057
|
+
return React.createElement(
|
|
7042
7058
|
'div',
|
|
7043
7059
|
{ className: 'audio' },
|
|
7044
|
-
|
|
7045
|
-
node.caption &&
|
|
7060
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7061
|
+
node.caption && React.createElement(
|
|
7046
7062
|
'p',
|
|
7047
7063
|
{ style: { fontSize: '.9rem' } },
|
|
7048
|
-
|
|
7064
|
+
React.createElement(
|
|
7049
7065
|
'em',
|
|
7050
7066
|
null,
|
|
7051
7067
|
node.caption
|
|
@@ -7063,34 +7079,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7063
7079
|
var profileImage = arguments[6];
|
|
7064
7080
|
|
|
7065
7081
|
if (authorName && authorURL) {
|
|
7066
|
-
return
|
|
7082
|
+
return React.createElement(
|
|
7067
7083
|
'span',
|
|
7068
7084
|
null,
|
|
7069
|
-
|
|
7085
|
+
React.createElement(
|
|
7070
7086
|
'a',
|
|
7071
7087
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7072
7088
|
authorName
|
|
7073
7089
|
),
|
|
7074
|
-
|
|
7090
|
+
React.createElement(
|
|
7075
7091
|
Card,
|
|
7076
7092
|
{ className: 'author-details-card-' + index },
|
|
7077
|
-
|
|
7093
|
+
React.createElement(
|
|
7078
7094
|
Row,
|
|
7079
7095
|
null,
|
|
7080
|
-
profileImage &&
|
|
7096
|
+
profileImage && React.createElement(
|
|
7081
7097
|
Col,
|
|
7082
7098
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7083
|
-
|
|
7099
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7084
7100
|
),
|
|
7085
|
-
|
|
7101
|
+
React.createElement(
|
|
7086
7102
|
Col,
|
|
7087
7103
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7088
|
-
|
|
7104
|
+
React.createElement(
|
|
7089
7105
|
'div',
|
|
7090
7106
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7091
7107
|
authorName
|
|
7092
7108
|
),
|
|
7093
|
-
|
|
7109
|
+
React.createElement(
|
|
7094
7110
|
'p',
|
|
7095
7111
|
null,
|
|
7096
7112
|
biography
|
|
@@ -7098,7 +7114,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7098
7114
|
)
|
|
7099
7115
|
)
|
|
7100
7116
|
),
|
|
7101
|
-
|
|
7117
|
+
React.createElement(
|
|
7102
7118
|
'style',
|
|
7103
7119
|
{ jsx: 'true' },
|
|
7104
7120
|
'\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 '
|
|
@@ -7106,7 +7122,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7106
7122
|
length !== index + 1 && ' , '
|
|
7107
7123
|
);
|
|
7108
7124
|
} else if (authorName) {
|
|
7109
|
-
return
|
|
7125
|
+
return React.createElement(
|
|
7110
7126
|
'span',
|
|
7111
7127
|
{ key: index },
|
|
7112
7128
|
authorName,
|
|
@@ -7261,8 +7277,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7261
7277
|
var duration = player.getDuration();
|
|
7262
7278
|
var queue = Math.floor(duration / 10);
|
|
7263
7279
|
var segment = Math.floor(current / queue);
|
|
7264
|
-
Beam.report_beam_video('Ready',
|
|
7265
|
-
Segment.report_video_event('Video Ready',
|
|
7280
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7281
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7266
7282
|
//autoplay
|
|
7267
7283
|
|
|
7268
7284
|
//Small pause before starting next video
|
|
@@ -7282,8 +7298,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7282
7298
|
var queue = Math.floor(duration / 10);
|
|
7283
7299
|
var segment = Math.floor(current / queue);
|
|
7284
7300
|
|
|
7285
|
-
Beam.report_beam_video('End',
|
|
7286
|
-
Segment.report_video_event('Video End',
|
|
7301
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7302
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7287
7303
|
setEndReported(true);
|
|
7288
7304
|
clearInterval(intervalID);
|
|
7289
7305
|
}
|
|
@@ -7333,8 +7349,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7333
7349
|
var queue = Math.floor(duration / 10);
|
|
7334
7350
|
var segment = Math.floor(current / queue);
|
|
7335
7351
|
if (!queueProgress.includes(segment)) {
|
|
7336
|
-
Beam.report_beam_video('Segment',
|
|
7337
|
-
Segment.report_video_event('Video Segment',
|
|
7352
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7338
7354
|
queueProgress.push(segment);
|
|
7339
7355
|
}
|
|
7340
7356
|
};
|
|
@@ -7347,8 +7363,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7347
7363
|
var queue = Math.floor(duration / 10);
|
|
7348
7364
|
var segment = Math.floor(current / queue);
|
|
7349
7365
|
|
|
7350
|
-
Beam.report_beam_video('Play',
|
|
7351
|
-
Segment.report_video_event('Video Play',
|
|
7366
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7367
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7352
7368
|
|
|
7353
7369
|
if (!playReported) {
|
|
7354
7370
|
setPlayReported(true);
|
|
@@ -7366,8 +7382,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7382
|
var queue = Math.floor(duration / 10);
|
|
7367
7383
|
var segment = Math.floor(current / queue);
|
|
7368
7384
|
|
|
7369
|
-
Beam.report_beam_video('Pause',
|
|
7370
|
-
Segment.report_video_event('Video Pause',
|
|
7385
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7386
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7371
7387
|
};
|
|
7372
7388
|
|
|
7373
7389
|
// Youtube Options
|
|
@@ -7378,44 +7394,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7378
7394
|
}
|
|
7379
7395
|
};
|
|
7380
7396
|
|
|
7381
|
-
return
|
|
7397
|
+
return React.createElement(
|
|
7382
7398
|
'div',
|
|
7383
7399
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7384
|
-
|
|
7400
|
+
React.createElement(
|
|
7385
7401
|
'div',
|
|
7386
7402
|
{ className: 'mt-2 mb-5' },
|
|
7387
|
-
series &&
|
|
7403
|
+
series && React.createElement(
|
|
7388
7404
|
'div',
|
|
7389
7405
|
{ style: { fontSize: '0.9rem' } },
|
|
7390
7406
|
article.title,
|
|
7391
7407
|
' - Episode ',
|
|
7392
7408
|
series
|
|
7393
7409
|
),
|
|
7394
|
-
Videos[series - 1] &&
|
|
7410
|
+
Videos[series - 1] && React.createElement(
|
|
7395
7411
|
'h1',
|
|
7396
7412
|
{ className: 'mb-3' },
|
|
7397
7413
|
Videos[series - 1].title
|
|
7398
7414
|
),
|
|
7399
|
-
|
|
7415
|
+
React.createElement(
|
|
7400
7416
|
'div',
|
|
7401
7417
|
null,
|
|
7402
7418
|
moment(article.published).format('LL')
|
|
7403
7419
|
),
|
|
7404
|
-
|
|
7420
|
+
React.createElement(
|
|
7405
7421
|
'div',
|
|
7406
7422
|
{ className: 'mb-3' },
|
|
7407
7423
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7408
|
-
return
|
|
7424
|
+
return React.createElement(
|
|
7409
7425
|
'span',
|
|
7410
7426
|
{ key: index },
|
|
7411
7427
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7412
7428
|
);
|
|
7413
7429
|
})
|
|
7414
7430
|
),
|
|
7415
|
-
|
|
7431
|
+
React.createElement(
|
|
7416
7432
|
'p',
|
|
7417
7433
|
null,
|
|
7418
|
-
|
|
7434
|
+
React.createElement(SocialShare, {
|
|
7419
7435
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7420
7436
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7421
7437
|
shareVia: meta.shareVia,
|
|
@@ -7430,20 +7446,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7430
7446
|
hideFacebook: meta.hideFBShare
|
|
7431
7447
|
})
|
|
7432
7448
|
),
|
|
7433
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7449
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7434
7450
|
'p',
|
|
7435
7451
|
{ className: 'mb-3' },
|
|
7436
|
-
|
|
7452
|
+
React.createElement(
|
|
7437
7453
|
'em',
|
|
7438
7454
|
null,
|
|
7439
7455
|
Videos[series - 1].intro
|
|
7440
7456
|
)
|
|
7441
7457
|
)
|
|
7442
7458
|
),
|
|
7443
|
-
|
|
7459
|
+
React.createElement(
|
|
7444
7460
|
'div',
|
|
7445
7461
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7446
|
-
vidUrl && vidType == 'youtube' &&
|
|
7462
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7447
7463
|
className: 'fluid-iframe',
|
|
7448
7464
|
videoId: getYoutubeId(vidUrl),
|
|
7449
7465
|
opts: opts,
|
|
@@ -7454,10 +7470,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7454
7470
|
return handleOnEnd(e);
|
|
7455
7471
|
}
|
|
7456
7472
|
}),
|
|
7457
|
-
vidUrl && vidType == 'mp4' &&
|
|
7458
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7459
|
-
|
|
7460
|
-
series &&
|
|
7473
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7474
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7475
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7476
|
+
series && React.createElement(
|
|
7461
7477
|
'div',
|
|
7462
7478
|
{
|
|
7463
7479
|
className: 'vid-series',
|
|
@@ -7467,10 +7483,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7467
7483
|
maxHeight: '100%',
|
|
7468
7484
|
paddingBottom: '0'
|
|
7469
7485
|
} },
|
|
7470
|
-
|
|
7486
|
+
React.createElement(
|
|
7471
7487
|
'p',
|
|
7472
7488
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7473
|
-
|
|
7489
|
+
React.createElement(
|
|
7474
7490
|
'b',
|
|
7475
7491
|
{ style: { fontSize: '1.25em' } },
|
|
7476
7492
|
'Now Playing:'
|
|
@@ -7478,16 +7494,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7478
7494
|
' ',
|
|
7479
7495
|
seriesData[series ? series - 1 : 0].title
|
|
7480
7496
|
),
|
|
7481
|
-
vidUrl &&
|
|
7497
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7482
7498
|
)
|
|
7483
7499
|
),
|
|
7484
|
-
|
|
7485
|
-
|
|
7500
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7501
|
+
React.createElement(
|
|
7486
7502
|
'div',
|
|
7487
7503
|
{ className: 'vid-text' },
|
|
7488
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7504
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7489
7505
|
),
|
|
7490
|
-
|
|
7506
|
+
React.createElement(
|
|
7491
7507
|
'style',
|
|
7492
7508
|
{ jsx: 'true' },
|
|
7493
7509
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7495,14 +7511,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7495
7511
|
);
|
|
7496
7512
|
};
|
|
7497
7513
|
|
|
7498
|
-
var Poll = function Poll(_ref) {
|
|
7499
|
-
var node = _ref.node
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
onVote = _ref.onVote
|
|
7504
|
-
_ref
|
|
7505
|
-
getSerializers = _ref.getSerializers;
|
|
7514
|
+
var Poll$1 = function Poll(_ref) {
|
|
7515
|
+
var node = _ref.node;
|
|
7516
|
+
_ref.client;
|
|
7517
|
+
_ref.pageview;
|
|
7518
|
+
_ref.videoAccountIDs;
|
|
7519
|
+
var onVote = _ref.onVote;
|
|
7520
|
+
_ref.showVotes;
|
|
7521
|
+
var getSerializers = _ref.getSerializers;
|
|
7506
7522
|
|
|
7507
7523
|
var _useState = useState(null),
|
|
7508
7524
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7540,67 +7556,67 @@ var Poll = function Poll(_ref) {
|
|
|
7540
7556
|
return acc;
|
|
7541
7557
|
}
|
|
7542
7558
|
}, 0);
|
|
7543
|
-
return
|
|
7544
|
-
|
|
7559
|
+
return React.createElement(
|
|
7560
|
+
React.Fragment,
|
|
7545
7561
|
null,
|
|
7546
|
-
question &&
|
|
7562
|
+
question && React.createElement(
|
|
7547
7563
|
'p',
|
|
7548
7564
|
{ className: 'font-weight-bold' },
|
|
7549
7565
|
question
|
|
7550
7566
|
),
|
|
7551
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7567
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7552
7568
|
'form',
|
|
7553
7569
|
{ onSubmit: function onSubmit(e) {
|
|
7554
7570
|
return onSubmitPoll(e);
|
|
7555
7571
|
} },
|
|
7556
7572
|
choices && choices.map(function (choice) {
|
|
7557
|
-
return
|
|
7573
|
+
return React.createElement(
|
|
7558
7574
|
'div',
|
|
7559
7575
|
{ key: choice._key },
|
|
7560
|
-
|
|
7576
|
+
React.createElement(
|
|
7561
7577
|
'label',
|
|
7562
7578
|
{ className: 'pl-2' },
|
|
7563
|
-
|
|
7579
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7564
7580
|
return setSelectedChoice(e.target.value);
|
|
7565
7581
|
} }),
|
|
7566
7582
|
' ' + choice.choiceText
|
|
7567
7583
|
)
|
|
7568
7584
|
);
|
|
7569
7585
|
}),
|
|
7570
|
-
|
|
7586
|
+
React.createElement(
|
|
7571
7587
|
Button,
|
|
7572
7588
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7573
7589
|
'Vote'
|
|
7574
7590
|
)
|
|
7575
7591
|
),
|
|
7576
|
-
|
|
7592
|
+
React.createElement(
|
|
7577
7593
|
'div',
|
|
7578
7594
|
{ className: 'progress-container' },
|
|
7579
7595
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7580
7596
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7581
|
-
return
|
|
7597
|
+
return React.createElement(
|
|
7582
7598
|
'div',
|
|
7583
7599
|
{ key: choice._key, className: 'mb-3' },
|
|
7584
|
-
|
|
7600
|
+
React.createElement(
|
|
7585
7601
|
'div',
|
|
7586
7602
|
{ className: 'correct-answer' },
|
|
7587
|
-
|
|
7603
|
+
React.createElement(
|
|
7588
7604
|
'div',
|
|
7589
7605
|
null,
|
|
7590
7606
|
choice.choiceText
|
|
7591
7607
|
),
|
|
7592
|
-
choice.choiceAnswer === true &&
|
|
7608
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7593
7609
|
'div',
|
|
7594
7610
|
null,
|
|
7595
|
-
|
|
7611
|
+
React.createElement(
|
|
7596
7612
|
'span',
|
|
7597
7613
|
{ style: { color: 'limegreen' } },
|
|
7598
7614
|
'Correct!'
|
|
7599
7615
|
)
|
|
7600
7616
|
)
|
|
7601
7617
|
),
|
|
7602
|
-
|
|
7603
|
-
|
|
7618
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7619
|
+
React.createElement(
|
|
7604
7620
|
'span',
|
|
7605
7621
|
{ className: 'float-right' },
|
|
7606
7622
|
percentage,
|
|
@@ -7611,14 +7627,14 @@ var Poll = function Poll(_ref) {
|
|
|
7611
7627
|
);
|
|
7612
7628
|
})
|
|
7613
7629
|
),
|
|
7614
|
-
showAnswer &&
|
|
7630
|
+
showAnswer && React.createElement(
|
|
7615
7631
|
'h4',
|
|
7616
7632
|
{ className: 'text-center small p-3' },
|
|
7617
7633
|
'Total Votes: ',
|
|
7618
7634
|
choicesTotalCount
|
|
7619
7635
|
),
|
|
7620
|
-
showAnswer && response &&
|
|
7621
|
-
|
|
7636
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7637
|
+
React.createElement(
|
|
7622
7638
|
'style',
|
|
7623
7639
|
{ jsx: 'true' },
|
|
7624
7640
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7636,22 +7652,22 @@ _export(_export.S, 'Object', {
|
|
|
7636
7652
|
}
|
|
7637
7653
|
});
|
|
7638
7654
|
|
|
7639
|
-
var values = _core.Object.values;
|
|
7655
|
+
var values$1 = _core.Object.values;
|
|
7640
7656
|
|
|
7641
|
-
var values
|
|
7642
|
-
module.exports = { "default": values, __esModule: true };
|
|
7657
|
+
var values = createCommonjsModule(function (module) {
|
|
7658
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7643
7659
|
});
|
|
7644
7660
|
|
|
7645
|
-
var _Object$values = unwrapExports(values
|
|
7661
|
+
var _Object$values = unwrapExports(values);
|
|
7646
7662
|
|
|
7647
|
-
var Poll
|
|
7648
|
-
var node = _ref.node
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
onVote = _ref.onVote
|
|
7653
|
-
_ref
|
|
7654
|
-
getSerializers = _ref.getSerializers;
|
|
7663
|
+
var Poll = function Poll(_ref) {
|
|
7664
|
+
var node = _ref.node;
|
|
7665
|
+
_ref.client;
|
|
7666
|
+
_ref.pageview;
|
|
7667
|
+
_ref.videoAccountIDs;
|
|
7668
|
+
var onVote = _ref.onVote;
|
|
7669
|
+
_ref.showVotes;
|
|
7670
|
+
var getSerializers = _ref.getSerializers;
|
|
7655
7671
|
|
|
7656
7672
|
var _useState = useState(null),
|
|
7657
7673
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7717,67 +7733,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7717
7733
|
return acc;
|
|
7718
7734
|
}
|
|
7719
7735
|
}, 0);
|
|
7720
|
-
return
|
|
7721
|
-
|
|
7736
|
+
return React.createElement(
|
|
7737
|
+
React.Fragment,
|
|
7722
7738
|
null,
|
|
7723
|
-
question &&
|
|
7739
|
+
question && React.createElement(
|
|
7724
7740
|
'p',
|
|
7725
7741
|
{ className: 'font-weight-bold' },
|
|
7726
7742
|
question
|
|
7727
7743
|
),
|
|
7728
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7744
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7729
7745
|
'form',
|
|
7730
7746
|
{ onSubmit: function onSubmit(e) {
|
|
7731
7747
|
return onSubmitPoll(e);
|
|
7732
7748
|
} },
|
|
7733
7749
|
choices && choices.map(function (choice) {
|
|
7734
|
-
return
|
|
7750
|
+
return React.createElement(
|
|
7735
7751
|
'div',
|
|
7736
7752
|
{ key: choice._key },
|
|
7737
|
-
|
|
7753
|
+
React.createElement(
|
|
7738
7754
|
'label',
|
|
7739
7755
|
{ className: 'pl-2' },
|
|
7740
|
-
|
|
7756
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7741
7757
|
return setSelectedChoice(e.target.value);
|
|
7742
7758
|
} }),
|
|
7743
7759
|
' ' + choice.choiceText
|
|
7744
7760
|
)
|
|
7745
7761
|
);
|
|
7746
7762
|
}),
|
|
7747
|
-
|
|
7763
|
+
React.createElement(
|
|
7748
7764
|
Button,
|
|
7749
7765
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7750
7766
|
'Vote'
|
|
7751
7767
|
)
|
|
7752
7768
|
),
|
|
7753
|
-
|
|
7769
|
+
React.createElement(
|
|
7754
7770
|
'div',
|
|
7755
7771
|
{ className: 'progress-container' },
|
|
7756
7772
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7757
7773
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7758
|
-
return
|
|
7774
|
+
return React.createElement(
|
|
7759
7775
|
'div',
|
|
7760
7776
|
{ key: choice._key, className: 'mb-3' },
|
|
7761
|
-
|
|
7777
|
+
React.createElement(
|
|
7762
7778
|
'div',
|
|
7763
7779
|
{ className: 'correct-answer' },
|
|
7764
|
-
|
|
7780
|
+
React.createElement(
|
|
7765
7781
|
'div',
|
|
7766
7782
|
null,
|
|
7767
7783
|
choice.choiceText
|
|
7768
7784
|
),
|
|
7769
|
-
choice.choiceAnswer === true &&
|
|
7785
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7770
7786
|
'div',
|
|
7771
7787
|
null,
|
|
7772
|
-
|
|
7788
|
+
React.createElement(
|
|
7773
7789
|
'span',
|
|
7774
7790
|
{ style: { color: 'limegreen' } },
|
|
7775
7791
|
'Correct!'
|
|
7776
7792
|
)
|
|
7777
7793
|
)
|
|
7778
7794
|
),
|
|
7779
|
-
|
|
7780
|
-
|
|
7795
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7796
|
+
React.createElement(
|
|
7781
7797
|
'span',
|
|
7782
7798
|
{ className: 'float-right' },
|
|
7783
7799
|
percentage,
|
|
@@ -7788,14 +7804,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7788
7804
|
);
|
|
7789
7805
|
})
|
|
7790
7806
|
),
|
|
7791
|
-
showAnswer &&
|
|
7807
|
+
showAnswer && React.createElement(
|
|
7792
7808
|
'h4',
|
|
7793
7809
|
{ className: 'text-center small p-3' },
|
|
7794
7810
|
'Total Votes: ',
|
|
7795
7811
|
choicesTotalCount
|
|
7796
7812
|
),
|
|
7797
|
-
showAnswer && response &&
|
|
7798
|
-
|
|
7813
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7814
|
+
React.createElement(
|
|
7799
7815
|
'style',
|
|
7800
7816
|
{ jsx: 'true' },
|
|
7801
7817
|
'\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 '
|
|
@@ -7803,7 +7819,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7803
7819
|
);
|
|
7804
7820
|
};
|
|
7805
7821
|
|
|
7806
|
-
var numberOfPaginations =
|
|
7822
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7807
7823
|
|
|
7808
7824
|
var Quiz = function Quiz(_ref) {
|
|
7809
7825
|
var quizzes = _ref.quizzes,
|
|
@@ -7921,34 +7937,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7921
7937
|
};
|
|
7922
7938
|
|
|
7923
7939
|
var renderPagination = function renderPagination() {
|
|
7924
|
-
return
|
|
7925
|
-
Pagination
|
|
7926
|
-
{ className: 'p-0 m-0', size:
|
|
7927
|
-
|
|
7940
|
+
return React.createElement(
|
|
7941
|
+
Pagination,
|
|
7942
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7943
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7928
7944
|
return changePage('first');
|
|
7929
7945
|
}, disabled: currentPage === 1 }),
|
|
7930
|
-
|
|
7946
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7931
7947
|
return changePage('prev');
|
|
7932
7948
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
|
|
7949
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7934
7950
|
return renderNewPages('prev');
|
|
7935
7951
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7936
7952
|
pages.map(function (page) {
|
|
7937
|
-
return
|
|
7938
|
-
Pagination
|
|
7953
|
+
return React.createElement(
|
|
7954
|
+
Pagination.Item,
|
|
7939
7955
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7940
7956
|
return changePage(page);
|
|
7941
7957
|
} },
|
|
7942
7958
|
page
|
|
7943
7959
|
);
|
|
7944
7960
|
}),
|
|
7945
|
-
|
|
7961
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7946
7962
|
return renderNewPages('next');
|
|
7947
7963
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7948
|
-
|
|
7964
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7949
7965
|
return changePage('next');
|
|
7950
7966
|
}, disabled: currentPage === pageCount }),
|
|
7951
|
-
|
|
7967
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7952
7968
|
return changePage('last');
|
|
7953
7969
|
}, disabled: currentPage === pageCount })
|
|
7954
7970
|
);
|
|
@@ -8031,51 +8047,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8031
8047
|
}
|
|
8032
8048
|
};
|
|
8033
8049
|
|
|
8034
|
-
return
|
|
8035
|
-
|
|
8050
|
+
return React.createElement(
|
|
8051
|
+
React.Fragment,
|
|
8036
8052
|
null,
|
|
8037
|
-
quizzes[currentPage - 1] &&
|
|
8038
|
-
|
|
8053
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8039
8055
|
null,
|
|
8040
|
-
|
|
8041
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8056
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8057
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8042
8058
|
'form',
|
|
8043
8059
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8044
8060
|
return e.preventDefault();
|
|
8045
8061
|
} },
|
|
8046
8062
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8047
|
-
return
|
|
8063
|
+
return React.createElement(
|
|
8048
8064
|
'div',
|
|
8049
8065
|
{ key: answer._key },
|
|
8050
|
-
|
|
8066
|
+
React.createElement(
|
|
8051
8067
|
'label',
|
|
8052
8068
|
{ className: 'pl-2' },
|
|
8053
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8069
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8054
8070
|
' ' + answer.answerText
|
|
8055
8071
|
)
|
|
8056
8072
|
);
|
|
8057
8073
|
})
|
|
8058
8074
|
)
|
|
8059
8075
|
),
|
|
8060
|
-
!showAnswer &&
|
|
8076
|
+
!showAnswer && React.createElement(
|
|
8061
8077
|
Button$1,
|
|
8062
8078
|
{ onClick: function onClick() {
|
|
8063
8079
|
return checkAnswers();
|
|
8064
8080
|
}, variant: 'info', block: true },
|
|
8065
8081
|
'Please click here for answer'
|
|
8066
8082
|
),
|
|
8067
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8068
|
-
|
|
8083
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8084
|
+
React.Fragment,
|
|
8069
8085
|
null,
|
|
8070
|
-
|
|
8086
|
+
React.createElement(
|
|
8071
8087
|
'h4',
|
|
8072
8088
|
null,
|
|
8073
8089
|
'Answer:'
|
|
8074
8090
|
),
|
|
8075
|
-
quizzes[currentPage - 1].answer &&
|
|
8091
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8076
8092
|
),
|
|
8077
|
-
|
|
8078
|
-
pageCount > 1 &&
|
|
8093
|
+
React.createElement('br', null),
|
|
8094
|
+
pageCount > 1 && React.createElement(
|
|
8079
8095
|
'div',
|
|
8080
8096
|
{ className: 'd-flex justify-content-center' },
|
|
8081
8097
|
renderPagination()
|
|
@@ -8086,14 +8102,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8086
8102
|
var Leads = function Leads(_ref) {
|
|
8087
8103
|
var url = _ref.url;
|
|
8088
8104
|
|
|
8089
|
-
return
|
|
8105
|
+
return React.createElement(
|
|
8090
8106
|
'div',
|
|
8091
8107
|
{ className: 'd-block text-center mb-3' },
|
|
8092
|
-
url &&
|
|
8108
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8093
8109
|
);
|
|
8094
8110
|
};
|
|
8095
8111
|
|
|
8096
|
-
var Slideshow
|
|
8112
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8097
8113
|
var slides = _ref.node.slides,
|
|
8098
8114
|
client = _ref.client,
|
|
8099
8115
|
pageview = _ref.pageview,
|
|
@@ -8105,8 +8121,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8105
8121
|
|
|
8106
8122
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8107
8123
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8108
|
-
carouselIndex = _useState2[0]
|
|
8109
|
-
|
|
8124
|
+
carouselIndex = _useState2[0];
|
|
8125
|
+
_useState2[1];
|
|
8110
8126
|
|
|
8111
8127
|
// useEffect(() => {
|
|
8112
8128
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8132,49 +8148,49 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8132
8148
|
}
|
|
8133
8149
|
};
|
|
8134
8150
|
|
|
8135
|
-
return
|
|
8151
|
+
return React.createElement(
|
|
8136
8152
|
'div',
|
|
8137
8153
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8138
|
-
|
|
8154
|
+
React.createElement(
|
|
8139
8155
|
Carousel,
|
|
8140
8156
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8141
8157
|
slides && slides.map(function (slide) {
|
|
8142
8158
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8143
|
-
return
|
|
8159
|
+
return React.createElement(
|
|
8144
8160
|
Carousel.Item,
|
|
8145
8161
|
{ key: slide._key },
|
|
8146
|
-
|
|
8162
|
+
React.createElement(
|
|
8147
8163
|
'a',
|
|
8148
8164
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8149
|
-
|
|
8165
|
+
React.createElement(
|
|
8150
8166
|
LazyLoad,
|
|
8151
8167
|
null,
|
|
8152
|
-
|
|
8168
|
+
React.createElement(
|
|
8153
8169
|
'picture',
|
|
8154
8170
|
null,
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8171
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8172
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8173
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8174
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8159
8175
|
)
|
|
8160
8176
|
)
|
|
8161
8177
|
),
|
|
8162
|
-
|
|
8178
|
+
React.createElement(
|
|
8163
8179
|
'div',
|
|
8164
8180
|
{ className: 'p-2' },
|
|
8165
|
-
slide.slideshowImage.caption &&
|
|
8181
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8166
8182
|
'h3',
|
|
8167
8183
|
{ style: { padding: '0px' } },
|
|
8168
8184
|
slide.slideshowImage.caption
|
|
8169
8185
|
),
|
|
8170
|
-
slide.description &&
|
|
8186
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8171
8187
|
)
|
|
8172
8188
|
);
|
|
8173
8189
|
}
|
|
8174
8190
|
return null;
|
|
8175
8191
|
})
|
|
8176
8192
|
),
|
|
8177
|
-
|
|
8193
|
+
React.createElement(
|
|
8178
8194
|
'style',
|
|
8179
8195
|
{ jsx: 'true' },
|
|
8180
8196
|
'\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 '
|
|
@@ -8193,10 +8209,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8193
8209
|
sizes = _props$node.sizes,
|
|
8194
8210
|
sizeMapping = _props$node.sizeMapping;
|
|
8195
8211
|
|
|
8196
|
-
return
|
|
8212
|
+
return React.createElement(
|
|
8197
8213
|
'div',
|
|
8198
8214
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8199
|
-
|
|
8215
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8200
8216
|
);
|
|
8201
8217
|
};
|
|
8202
8218
|
|
|
@@ -8207,15 +8223,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8207
8223
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8208
8224
|
|
|
8209
8225
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8210
|
-
return
|
|
8226
|
+
return React.createElement(
|
|
8211
8227
|
'section',
|
|
8212
8228
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8213
|
-
Caption &&
|
|
8229
|
+
Caption && React.createElement(
|
|
8214
8230
|
'h4',
|
|
8215
8231
|
{ className: 'formstack-caption' },
|
|
8216
8232
|
Caption
|
|
8217
8233
|
),
|
|
8218
|
-
|
|
8234
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8219
8235
|
);
|
|
8220
8236
|
};
|
|
8221
8237
|
|
|
@@ -8231,36 +8247,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8231
8247
|
}
|
|
8232
8248
|
});
|
|
8233
8249
|
if (medias && medias.length > 0) {
|
|
8234
|
-
return
|
|
8250
|
+
return React.createElement(
|
|
8235
8251
|
'div',
|
|
8236
8252
|
{ className: 'multi-media-container' },
|
|
8237
|
-
|
|
8253
|
+
React.createElement(
|
|
8238
8254
|
Row$1,
|
|
8239
8255
|
{ noGutters: true },
|
|
8240
8256
|
medias.map(function (media) {
|
|
8241
|
-
return
|
|
8257
|
+
return React.createElement(
|
|
8242
8258
|
Col$1,
|
|
8243
8259
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8244
|
-
|
|
8260
|
+
React.createElement(
|
|
8245
8261
|
'a',
|
|
8246
|
-
_extends
|
|
8262
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8247
8263
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8248
|
-
|
|
8264
|
+
React.createElement(
|
|
8249
8265
|
'div',
|
|
8250
8266
|
{ className: 'multi-media-image-container' },
|
|
8251
|
-
imageBox &&
|
|
8267
|
+
imageBox && React.createElement(
|
|
8252
8268
|
LazyLoad,
|
|
8253
8269
|
{ once: true },
|
|
8254
|
-
|
|
8270
|
+
React.createElement(
|
|
8255
8271
|
'picture',
|
|
8256
8272
|
null,
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8273
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8274
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8275
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8276
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8261
8277
|
)
|
|
8262
8278
|
),
|
|
8263
|
-
media.caption &&
|
|
8279
|
+
media.caption && React.createElement(
|
|
8264
8280
|
'span',
|
|
8265
8281
|
{ className: 'multi-media-caption' },
|
|
8266
8282
|
media.caption
|
|
@@ -8270,7 +8286,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8270
8286
|
);
|
|
8271
8287
|
})
|
|
8272
8288
|
),
|
|
8273
|
-
|
|
8289
|
+
React.createElement(
|
|
8274
8290
|
'style',
|
|
8275
8291
|
{ jsx: 'true' },
|
|
8276
8292
|
'\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 '
|
|
@@ -8317,7 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8317
8333
|
}
|
|
8318
8334
|
};
|
|
8319
8335
|
|
|
8320
|
-
_this.wraperRef =
|
|
8336
|
+
_this.wraperRef = React.createRef();
|
|
8321
8337
|
_this.visible = false;
|
|
8322
8338
|
return _this;
|
|
8323
8339
|
}
|
|
@@ -8345,7 +8361,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8345
8361
|
_props$id = _props.id,
|
|
8346
8362
|
id = _props$id === undefined ? '' : _props$id;
|
|
8347
8363
|
|
|
8348
|
-
return
|
|
8364
|
+
return React.createElement(
|
|
8349
8365
|
'div',
|
|
8350
8366
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8351
8367
|
this.props.children
|
|
@@ -8354,7 +8370,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8354
8370
|
}]);
|
|
8355
8371
|
|
|
8356
8372
|
return InscreenSensor;
|
|
8357
|
-
}(
|
|
8373
|
+
}(React.Component);
|
|
8358
8374
|
|
|
8359
8375
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8360
8376
|
var nodes = _ref.nodes,
|
|
@@ -8463,33 +8479,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8463
8479
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8464
8480
|
var showReading = show ? 'showReading' : '';
|
|
8465
8481
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8466
|
-
return
|
|
8482
|
+
return React.createElement(
|
|
8467
8483
|
'div',
|
|
8468
8484
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8469
|
-
|
|
8485
|
+
React.createElement(
|
|
8470
8486
|
'a',
|
|
8471
8487
|
{ onClick: function onClick(e) {
|
|
8472
8488
|
return articleCardClickHandler(e);
|
|
8473
8489
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8474
|
-
|
|
8490
|
+
React.createElement(
|
|
8475
8491
|
'div',
|
|
8476
8492
|
{ className: 'prevNext-thumbnail' },
|
|
8477
|
-
|
|
8478
|
-
|
|
8493
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8494
|
+
React.createElement(
|
|
8479
8495
|
'div',
|
|
8480
8496
|
{ className: 'prevNext-reading ' + showReading },
|
|
8481
8497
|
articleLabel
|
|
8482
8498
|
)
|
|
8483
8499
|
),
|
|
8484
|
-
|
|
8500
|
+
React.createElement(
|
|
8485
8501
|
'div',
|
|
8486
8502
|
{ className: 'prevNext-summary' },
|
|
8487
|
-
|
|
8503
|
+
React.createElement(
|
|
8488
8504
|
'div',
|
|
8489
8505
|
{ className: 'prevNext-publishDate' },
|
|
8490
8506
|
moment(article.published).format('LL')
|
|
8491
8507
|
),
|
|
8492
|
-
|
|
8508
|
+
React.createElement(
|
|
8493
8509
|
'h2',
|
|
8494
8510
|
{ className: 'prevNext-title' },
|
|
8495
8511
|
article.title
|
|
@@ -8538,7 +8554,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8538
8554
|
|
|
8539
8555
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8540
8556
|
if (biography) {
|
|
8541
|
-
return
|
|
8557
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8542
8558
|
}
|
|
8543
8559
|
};
|
|
8544
8560
|
|
|
@@ -8624,7 +8640,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8624
8640
|
//console.log('useLayoutEffect')
|
|
8625
8641
|
if (!firstLoad) {
|
|
8626
8642
|
setUpArrowClicked(false);
|
|
8627
|
-
if (
|
|
8643
|
+
if (main_43) {
|
|
8628
8644
|
grabLoadedAds();
|
|
8629
8645
|
} else {
|
|
8630
8646
|
scrollToArticle();
|
|
@@ -8648,7 +8664,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8648
8664
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8649
8665
|
if (pageview) pageview(path);
|
|
8650
8666
|
|
|
8651
|
-
if (!
|
|
8667
|
+
if (!main_43) {
|
|
8652
8668
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8653
8669
|
if (window.googletag && googletag.pubadsReady) {
|
|
8654
8670
|
lib_3.refresh();
|
|
@@ -8656,7 +8672,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8656
8672
|
});
|
|
8657
8673
|
}
|
|
8658
8674
|
//Refresh leaderboard ad on mobile
|
|
8659
|
-
if (
|
|
8675
|
+
if (main_43) {
|
|
8660
8676
|
var leaderboardSlotId = '';
|
|
8661
8677
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8662
8678
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8696,38 +8712,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8696
8712
|
setSensorVisible(false);
|
|
8697
8713
|
};
|
|
8698
8714
|
|
|
8699
|
-
return
|
|
8700
|
-
|
|
8715
|
+
return React.createElement(
|
|
8716
|
+
React.Fragment,
|
|
8701
8717
|
null,
|
|
8702
|
-
|
|
8718
|
+
React.createElement(
|
|
8703
8719
|
'div',
|
|
8704
8720
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8705
|
-
|
|
8721
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8706
8722
|
return handleArrowClick();
|
|
8707
8723
|
} })
|
|
8708
8724
|
),
|
|
8709
|
-
|
|
8710
|
-
|
|
8725
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8726
|
+
React.createElement(
|
|
8711
8727
|
'div',
|
|
8712
8728
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8713
|
-
|
|
8729
|
+
React.createElement(
|
|
8714
8730
|
'h5',
|
|
8715
8731
|
{ className: 'objective-title' },
|
|
8716
8732
|
nodes.seriesTitle
|
|
8717
8733
|
),
|
|
8718
|
-
|
|
8734
|
+
React.createElement(
|
|
8719
8735
|
'div',
|
|
8720
8736
|
{ className: 'prevNextWrapper' },
|
|
8721
8737
|
PrevNextCards(false, -1)
|
|
8722
8738
|
)
|
|
8723
8739
|
),
|
|
8724
|
-
|
|
8725
|
-
|
|
8740
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8741
|
+
React.createElement(
|
|
8726
8742
|
'div',
|
|
8727
8743
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8728
|
-
|
|
8744
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8729
8745
|
if (index === 0) {
|
|
8730
|
-
return
|
|
8746
|
+
return React.createElement(
|
|
8731
8747
|
'div',
|
|
8732
8748
|
{
|
|
8733
8749
|
key: 'addid-1',
|
|
@@ -8747,14 +8763,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8747
8763
|
}
|
|
8748
8764
|
})
|
|
8749
8765
|
),
|
|
8750
|
-
|
|
8766
|
+
React.createElement(
|
|
8751
8767
|
'div',
|
|
8752
8768
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8753
8769
|
Articles.map(function (article, index) {
|
|
8754
|
-
return
|
|
8770
|
+
return React.createElement(
|
|
8755
8771
|
'div',
|
|
8756
8772
|
{ key: article.title },
|
|
8757
|
-
|
|
8773
|
+
React.createElement(
|
|
8758
8774
|
InscreenSensor,
|
|
8759
8775
|
{
|
|
8760
8776
|
visible: sensorVisible,
|
|
@@ -8772,84 +8788,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8772
8788
|
}
|
|
8773
8789
|
}
|
|
8774
8790
|
} },
|
|
8775
|
-
|
|
8791
|
+
React.createElement(
|
|
8776
8792
|
Head,
|
|
8777
8793
|
null,
|
|
8778
|
-
currentTitle !== null &&
|
|
8794
|
+
currentTitle !== null && React.createElement(
|
|
8779
8795
|
'title',
|
|
8780
8796
|
{ key: 'title' },
|
|
8781
8797
|
currentTitle
|
|
8782
8798
|
),
|
|
8783
|
-
currentSummary !== null &&
|
|
8784
|
-
currentURL !== null &&
|
|
8785
|
-
currentTitle !== null &&
|
|
8786
|
-
currentThumbnail !== null &&
|
|
8787
|
-
currentSummary !== null &&
|
|
8788
|
-
currentTitle !== null &&
|
|
8789
|
-
currentThumbnail !== null &&
|
|
8790
|
-
currentSummary !== null &&
|
|
8799
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8800
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8801
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8802
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8803
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8804
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8805
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8806
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8791
8807
|
),
|
|
8792
|
-
|
|
8808
|
+
React.createElement(
|
|
8793
8809
|
'article',
|
|
8794
8810
|
{ className: 'article-wrapper' },
|
|
8795
|
-
|
|
8811
|
+
React.createElement(
|
|
8796
8812
|
'div',
|
|
8797
8813
|
{ className: 'article-publishDate' },
|
|
8798
8814
|
moment(article.published).format('LL')
|
|
8799
8815
|
),
|
|
8800
|
-
|
|
8816
|
+
React.createElement(
|
|
8801
8817
|
'div',
|
|
8802
8818
|
{ className: 'author-details-wrapper' },
|
|
8803
8819
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8804
|
-
return
|
|
8820
|
+
return React.createElement(
|
|
8805
8821
|
'span',
|
|
8806
8822
|
{ key: index },
|
|
8807
8823
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8808
8824
|
);
|
|
8809
8825
|
})
|
|
8810
8826
|
),
|
|
8811
|
-
|
|
8827
|
+
React.createElement(
|
|
8812
8828
|
'h2',
|
|
8813
8829
|
{ className: 'article-title' },
|
|
8814
8830
|
article.title
|
|
8815
8831
|
),
|
|
8816
|
-
|
|
8832
|
+
React.createElement(
|
|
8817
8833
|
'div',
|
|
8818
8834
|
{ className: 'mt-2 mb-2' },
|
|
8819
|
-
|
|
8835
|
+
React.createElement(BlockContent, _extends({
|
|
8820
8836
|
serializers: getSerializers,
|
|
8821
8837
|
videoAccountIDs: accountIDs,
|
|
8822
8838
|
blocks: article.text,
|
|
8823
8839
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8824
8840
|
}, client.config())),
|
|
8825
|
-
|
|
8841
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8826
8842
|
),
|
|
8827
|
-
Articles.length > 1 &&
|
|
8828
|
-
|
|
8843
|
+
Articles.length > 1 && React.createElement(
|
|
8844
|
+
React.Fragment,
|
|
8829
8845
|
null,
|
|
8830
|
-
|
|
8846
|
+
React.createElement(
|
|
8831
8847
|
'div',
|
|
8832
8848
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8833
|
-
|
|
8849
|
+
React.createElement(
|
|
8834
8850
|
'h5',
|
|
8835
8851
|
{ className: 'objective-title' },
|
|
8836
8852
|
nodes.seriesTitle
|
|
8837
8853
|
),
|
|
8838
|
-
|
|
8854
|
+
React.createElement(
|
|
8839
8855
|
'div',
|
|
8840
8856
|
{ className: 'prevNextWrapper' },
|
|
8841
8857
|
PrevNextCards(true, index)
|
|
8842
8858
|
)
|
|
8843
8859
|
),
|
|
8844
|
-
|
|
8860
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8845
8861
|
)
|
|
8846
8862
|
),
|
|
8847
|
-
|
|
8863
|
+
React.createElement(
|
|
8848
8864
|
'div',
|
|
8849
8865
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8850
|
-
|
|
8866
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8851
8867
|
if (innerIndex === 0) {
|
|
8852
|
-
return
|
|
8868
|
+
return React.createElement(
|
|
8853
8869
|
'div',
|
|
8854
8870
|
{
|
|
8855
8871
|
key: 'addid-' + (index + 2),
|
|
@@ -8872,7 +8888,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8872
8888
|
)
|
|
8873
8889
|
);
|
|
8874
8890
|
}),
|
|
8875
|
-
|
|
8891
|
+
React.createElement(
|
|
8876
8892
|
'style',
|
|
8877
8893
|
{ jsx: 'true' },
|
|
8878
8894
|
'\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 '
|
|
@@ -8902,11 +8918,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8902
8918
|
};
|
|
8903
8919
|
}, [handleClickOutside]);
|
|
8904
8920
|
|
|
8905
|
-
return
|
|
8921
|
+
return React.createElement(
|
|
8906
8922
|
'div',
|
|
8907
8923
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8908
|
-
|
|
8909
|
-
|
|
8924
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8925
|
+
React.createElement(
|
|
8910
8926
|
'style',
|
|
8911
8927
|
{ jsx: 'true' },
|
|
8912
8928
|
'\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 '
|
|
@@ -8920,7 +8936,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8920
8936
|
}
|
|
8921
8937
|
};
|
|
8922
8938
|
|
|
8923
|
-
var FigureImage =
|
|
8939
|
+
var FigureImage$1 = React.memo(function (_ref2) {
|
|
8924
8940
|
var node = _ref2.node,
|
|
8925
8941
|
client = _ref2.client,
|
|
8926
8942
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8928,13 +8944,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8928
8944
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8929
8945
|
|
|
8930
8946
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8931
|
-
return
|
|
8947
|
+
return React.createElement(
|
|
8932
8948
|
'picture',
|
|
8933
8949
|
null,
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8950
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8951
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8952
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8953
|
+
React.createElement('img', _extends({
|
|
8938
8954
|
style: figureImageStyle,
|
|
8939
8955
|
className: 'figure-image',
|
|
8940
8956
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9022,13 +9038,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9022
9038
|
|
|
9023
9039
|
var FigureCaption = useCallback(function () {
|
|
9024
9040
|
if (imgcaption && imgcaption.length > 0) {
|
|
9025
|
-
return
|
|
9041
|
+
return React.createElement(
|
|
9026
9042
|
'div',
|
|
9027
9043
|
{ className: 'figure-caption' },
|
|
9028
|
-
|
|
9044
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9029
9045
|
);
|
|
9030
9046
|
} else if (caption) {
|
|
9031
|
-
return
|
|
9047
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9032
9048
|
} else return null;
|
|
9033
9049
|
}, [caption, imgcaption]);
|
|
9034
9050
|
|
|
@@ -9045,24 +9061,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9045
9061
|
setShowLightbox(true);
|
|
9046
9062
|
}, [node, client]);
|
|
9047
9063
|
|
|
9048
|
-
return
|
|
9049
|
-
|
|
9064
|
+
return React.createElement(
|
|
9065
|
+
React.Fragment,
|
|
9050
9066
|
null,
|
|
9051
|
-
|
|
9052
|
-
Figure$
|
|
9067
|
+
React.createElement(
|
|
9068
|
+
Figure$2,
|
|
9053
9069
|
{ className: '' + class_name, style: figureStyle },
|
|
9054
|
-
link ?
|
|
9070
|
+
link ? React.createElement(
|
|
9055
9071
|
'a',
|
|
9056
9072
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
) :
|
|
9060
|
-
|
|
9073
|
+
React.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9074
|
+
React.createElement(FigureCaption, null)
|
|
9075
|
+
) : React.createElement(
|
|
9076
|
+
React.Fragment,
|
|
9061
9077
|
null,
|
|
9062
|
-
|
|
9063
|
-
|
|
9078
|
+
React.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9079
|
+
React.createElement(FigureCaption, null)
|
|
9064
9080
|
),
|
|
9065
|
-
|
|
9081
|
+
React.createElement(LightBox, {
|
|
9066
9082
|
showLightbox: showLightbox,
|
|
9067
9083
|
lightboxImgSrc: lightboxImgSrc,
|
|
9068
9084
|
closeLightbox: function closeLightbox() {
|
|
@@ -9071,7 +9087,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9071
9087
|
}
|
|
9072
9088
|
})
|
|
9073
9089
|
),
|
|
9074
|
-
|
|
9090
|
+
React.createElement(
|
|
9075
9091
|
'style',
|
|
9076
9092
|
{ jsx: 'true' },
|
|
9077
9093
|
'\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 '
|
|
@@ -9079,7 +9095,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9079
9095
|
);
|
|
9080
9096
|
};
|
|
9081
9097
|
|
|
9082
|
-
var Figure =
|
|
9098
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9083
9099
|
|
|
9084
9100
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9085
9101
|
useEffect(function () {
|
|
@@ -9096,7 +9112,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9096
9112
|
}, [ref]);
|
|
9097
9113
|
}
|
|
9098
9114
|
|
|
9099
|
-
var FigureImage
|
|
9115
|
+
var FigureImage = React.memo(function (_ref) {
|
|
9100
9116
|
var imagesCount = _ref.imagesCount,
|
|
9101
9117
|
image = _ref.image,
|
|
9102
9118
|
client = _ref.client,
|
|
@@ -9104,13 +9120,13 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9104
9120
|
link = _ref.link,
|
|
9105
9121
|
handleClickFigure = _ref.handleClickFigure;
|
|
9106
9122
|
|
|
9107
|
-
return
|
|
9123
|
+
return React.createElement(
|
|
9108
9124
|
'picture',
|
|
9109
9125
|
null,
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9126
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9127
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9128
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9129
|
+
React.createElement('img', _extends({
|
|
9114
9130
|
'images-count': imagesCount,
|
|
9115
9131
|
className: 'multi-figure-image',
|
|
9116
9132
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9147,13 +9163,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9147
9163
|
imgcaption = _ref2.imgcaption;
|
|
9148
9164
|
|
|
9149
9165
|
if (imgcaption && imgcaption.length > 0) {
|
|
9150
|
-
return
|
|
9166
|
+
return React.createElement(
|
|
9151
9167
|
'div',
|
|
9152
9168
|
{ className: 'multi-figure-caption' },
|
|
9153
|
-
|
|
9169
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9154
9170
|
);
|
|
9155
9171
|
} else if (caption) {
|
|
9156
|
-
return
|
|
9172
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9157
9173
|
} else return null;
|
|
9158
9174
|
};
|
|
9159
9175
|
|
|
@@ -9163,48 +9179,48 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9163
9179
|
}, [client]);
|
|
9164
9180
|
|
|
9165
9181
|
if (images && images.length > 0) {
|
|
9166
|
-
return
|
|
9182
|
+
return React.createElement(
|
|
9167
9183
|
'div',
|
|
9168
9184
|
{ className: 'multi-figure-container' },
|
|
9169
|
-
|
|
9185
|
+
React.createElement(
|
|
9170
9186
|
Row$1,
|
|
9171
9187
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9172
9188
|
images.map(function (image, index) {
|
|
9173
|
-
return
|
|
9189
|
+
return React.createElement(
|
|
9174
9190
|
Col$1,
|
|
9175
9191
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9176
|
-
image.link ?
|
|
9192
|
+
image.link ? React.createElement(
|
|
9177
9193
|
'a',
|
|
9178
|
-
_extends
|
|
9179
|
-
|
|
9194
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9195
|
+
React.createElement(
|
|
9180
9196
|
'div',
|
|
9181
9197
|
{ className: 'multi-figure-image-container' },
|
|
9182
|
-
|
|
9198
|
+
React.createElement(
|
|
9183
9199
|
LazyLoad,
|
|
9184
9200
|
{ once: true },
|
|
9185
|
-
|
|
9201
|
+
React.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9186
9202
|
),
|
|
9187
|
-
|
|
9203
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9188
9204
|
)
|
|
9189
|
-
) :
|
|
9205
|
+
) : React.createElement(
|
|
9190
9206
|
'div',
|
|
9191
9207
|
{ className: 'multi-figure-image-container' },
|
|
9192
|
-
|
|
9208
|
+
React.createElement(
|
|
9193
9209
|
LazyLoad,
|
|
9194
9210
|
{ once: true },
|
|
9195
|
-
|
|
9211
|
+
React.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9196
9212
|
),
|
|
9197
|
-
|
|
9213
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9198
9214
|
)
|
|
9199
9215
|
);
|
|
9200
9216
|
})
|
|
9201
9217
|
),
|
|
9202
|
-
|
|
9218
|
+
React.createElement(
|
|
9203
9219
|
'div',
|
|
9204
9220
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9205
|
-
|
|
9221
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9206
9222
|
),
|
|
9207
|
-
|
|
9223
|
+
React.createElement(
|
|
9208
9224
|
'style',
|
|
9209
9225
|
{ jsx: 'true' },
|
|
9210
9226
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9226,10 +9242,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9226
9242
|
|
|
9227
9243
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9228
9244
|
|
|
9229
|
-
return
|
|
9245
|
+
return React.createElement(
|
|
9230
9246
|
'div',
|
|
9231
9247
|
{ id: elementId },
|
|
9232
|
-
|
|
9248
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9233
9249
|
);
|
|
9234
9250
|
};
|
|
9235
9251
|
|
|
@@ -9258,7 +9274,7 @@ exports.__esModule = true;
|
|
|
9258
9274
|
|
|
9259
9275
|
|
|
9260
9276
|
|
|
9261
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9277
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9262
9278
|
|
|
9263
9279
|
|
|
9264
9280
|
|
|
@@ -9278,7 +9294,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9278
9294
|
|
|
9279
9295
|
|
|
9280
9296
|
|
|
9281
|
-
var _react2 = _interopRequireDefault(
|
|
9297
|
+
var _react2 = _interopRequireDefault(React);
|
|
9282
9298
|
|
|
9283
9299
|
|
|
9284
9300
|
|
|
@@ -9427,9 +9443,9 @@ var ScriptTag = function (_Component) {
|
|
|
9427
9443
|
|
|
9428
9444
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9429
9445
|
// eslint-disable-next-line no-unused-vars
|
|
9430
|
-
var _props3 = this.props
|
|
9431
|
-
|
|
9432
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9446
|
+
var _props3 = this.props;
|
|
9447
|
+
_props3.isHydrating;
|
|
9448
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9433
9449
|
|
|
9434
9450
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9435
9451
|
return _this2.domRef = tag;
|
|
@@ -9437,7 +9453,7 @@ var ScriptTag = function (_Component) {
|
|
|
9437
9453
|
};
|
|
9438
9454
|
|
|
9439
9455
|
return ScriptTag;
|
|
9440
|
-
}(
|
|
9456
|
+
}(React.Component);
|
|
9441
9457
|
|
|
9442
9458
|
ScriptTag.propTypes = {
|
|
9443
9459
|
/**
|
|
@@ -9516,11 +9532,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9516
9532
|
}, []);
|
|
9517
9533
|
|
|
9518
9534
|
if (iframeSrc) {
|
|
9519
|
-
return
|
|
9535
|
+
return React.createElement(
|
|
9520
9536
|
'section',
|
|
9521
9537
|
{ className: 'form-assembly' },
|
|
9522
|
-
|
|
9523
|
-
|
|
9538
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9539
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9524
9540
|
);
|
|
9525
9541
|
}
|
|
9526
9542
|
|
|
@@ -9557,27 +9573,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9557
9573
|
return window.removeEventListener('resize', handleResize);
|
|
9558
9574
|
};
|
|
9559
9575
|
}, []);
|
|
9560
|
-
return
|
|
9576
|
+
return React.createElement(
|
|
9561
9577
|
'div',
|
|
9562
9578
|
{ className: 'blockTableHolder', ref: holder },
|
|
9563
|
-
|
|
9579
|
+
React.createElement(
|
|
9564
9580
|
'div',
|
|
9565
9581
|
{ className: 'blockTable' },
|
|
9566
9582
|
rows && rows.map(function (row) {
|
|
9567
|
-
return
|
|
9583
|
+
return React.createElement(
|
|
9568
9584
|
'div',
|
|
9569
9585
|
{ className: 'blockTableRow' },
|
|
9570
9586
|
row.cells && row.cells.map(function (cell) {
|
|
9571
|
-
return
|
|
9587
|
+
return React.createElement(
|
|
9572
9588
|
'div',
|
|
9573
9589
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9574
|
-
|
|
9590
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9575
9591
|
);
|
|
9576
9592
|
})
|
|
9577
9593
|
);
|
|
9578
9594
|
})
|
|
9579
9595
|
),
|
|
9580
|
-
|
|
9596
|
+
React.createElement(
|
|
9581
9597
|
'style',
|
|
9582
9598
|
{ jsx: true },
|
|
9583
9599
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -9656,12 +9672,12 @@ var getSerializers = function getSerializers() {
|
|
|
9656
9672
|
var node = _ref.node;
|
|
9657
9673
|
var url = node.url;
|
|
9658
9674
|
|
|
9659
|
-
return
|
|
9675
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9660
9676
|
},
|
|
9661
9677
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9662
9678
|
var node = _ref2.node;
|
|
9663
9679
|
|
|
9664
|
-
return
|
|
9680
|
+
return React.createElement(YouTubeGallery, {
|
|
9665
9681
|
nodes: node,
|
|
9666
9682
|
article: article,
|
|
9667
9683
|
meta: meta,
|
|
@@ -9675,7 +9691,7 @@ var getSerializers = function getSerializers() {
|
|
|
9675
9691
|
articleSeries: function articleSeries(_ref3) {
|
|
9676
9692
|
var node = _ref3.node;
|
|
9677
9693
|
|
|
9678
|
-
return
|
|
9694
|
+
return React.createElement(ArticleSeries, {
|
|
9679
9695
|
nodes: node,
|
|
9680
9696
|
accountIDs: videoAccountIDs || {},
|
|
9681
9697
|
pageview: pageview,
|
|
@@ -9688,61 +9704,61 @@ var getSerializers = function getSerializers() {
|
|
|
9688
9704
|
figure: function figure(_ref4) {
|
|
9689
9705
|
var node = _ref4.node;
|
|
9690
9706
|
|
|
9691
|
-
return
|
|
9707
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9692
9708
|
},
|
|
9693
9709
|
multifigure: function multifigure(_ref5) {
|
|
9694
9710
|
var node = _ref5.node;
|
|
9695
9711
|
|
|
9696
|
-
return
|
|
9712
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9697
9713
|
},
|
|
9698
9714
|
slideshow: function slideshow(_ref6) {
|
|
9699
9715
|
var node = _ref6.node;
|
|
9700
9716
|
var slides = node.slides;
|
|
9701
9717
|
|
|
9702
|
-
return
|
|
9718
|
+
return React.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9703
9719
|
},
|
|
9704
9720
|
sidebar: function sidebar(_ref7) {
|
|
9705
9721
|
var node = _ref7.node;
|
|
9706
9722
|
var caption = node.caption,
|
|
9707
9723
|
content = node.content;
|
|
9708
9724
|
|
|
9709
|
-
return
|
|
9725
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9710
9726
|
},
|
|
9711
9727
|
datatable: function datatable(_ref8) {
|
|
9712
9728
|
var node = _ref8.node;
|
|
9713
9729
|
var table = node.table;
|
|
9714
9730
|
|
|
9715
|
-
return
|
|
9731
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9716
9732
|
},
|
|
9717
9733
|
media: function media(_ref9) {
|
|
9718
9734
|
var node = _ref9.node;
|
|
9719
9735
|
|
|
9720
|
-
return
|
|
9736
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9721
9737
|
},
|
|
9722
9738
|
iframe: function iframe(_ref10) {
|
|
9723
9739
|
var node = _ref10.node;
|
|
9724
9740
|
|
|
9725
|
-
return
|
|
9741
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9726
9742
|
},
|
|
9727
9743
|
video: function video(_ref11) {
|
|
9728
9744
|
var node = _ref11.node;
|
|
9729
9745
|
|
|
9730
|
-
return
|
|
9746
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9731
9747
|
},
|
|
9732
9748
|
audio: function audio(_ref12) {
|
|
9733
9749
|
var node = _ref12.node;
|
|
9734
9750
|
|
|
9735
|
-
return
|
|
9751
|
+
return React.createElement(Audio, { node: node });
|
|
9736
9752
|
},
|
|
9737
9753
|
poll: function poll(_ref13) {
|
|
9738
9754
|
var node = _ref13.node;
|
|
9739
9755
|
|
|
9740
|
-
return
|
|
9756
|
+
return React.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9741
9757
|
},
|
|
9742
9758
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9743
9759
|
var node = _ref14.node;
|
|
9744
9760
|
|
|
9745
|
-
return
|
|
9761
|
+
return React.createElement(Poll, {
|
|
9746
9762
|
node: node,
|
|
9747
9763
|
client: client,
|
|
9748
9764
|
pageview: pageview,
|
|
@@ -9756,35 +9772,35 @@ var getSerializers = function getSerializers() {
|
|
|
9756
9772
|
var node = _ref15.node;
|
|
9757
9773
|
var quizzes = node.quizzes;
|
|
9758
9774
|
|
|
9759
|
-
return
|
|
9775
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9760
9776
|
},
|
|
9761
9777
|
leads: function leads(_ref16) {
|
|
9762
9778
|
var node = _ref16.node;
|
|
9763
9779
|
var leadID = node.leadID;
|
|
9764
9780
|
|
|
9765
9781
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9766
|
-
return
|
|
9782
|
+
return React.createElement(Leads, { url: url });
|
|
9767
9783
|
},
|
|
9768
9784
|
slideshows: function slideshows(_ref17) {
|
|
9769
9785
|
var node = _ref17.node;
|
|
9770
9786
|
|
|
9771
|
-
return
|
|
9787
|
+
return React.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9772
9788
|
},
|
|
9773
9789
|
nativeAd: function nativeAd(_ref18) {
|
|
9774
9790
|
var node = _ref18.node;
|
|
9775
9791
|
|
|
9776
|
-
return
|
|
9792
|
+
return React.createElement(NativeAd, { node: node });
|
|
9777
9793
|
},
|
|
9778
9794
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9779
9795
|
var node = _ref19.node;
|
|
9780
9796
|
|
|
9781
|
-
return
|
|
9797
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9782
9798
|
},
|
|
9783
9799
|
hrtag: function hrtag() {
|
|
9784
|
-
return
|
|
9800
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9785
9801
|
},
|
|
9786
9802
|
brtag: function brtag() {
|
|
9787
|
-
return
|
|
9803
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9788
9804
|
},
|
|
9789
9805
|
formstack: function formstack(_ref20) {
|
|
9790
9806
|
var node = _ref20.node;
|
|
@@ -9792,29 +9808,29 @@ var getSerializers = function getSerializers() {
|
|
|
9792
9808
|
Caption = node.Caption,
|
|
9793
9809
|
needSegmentSupport = node.needSegmentSupport;
|
|
9794
9810
|
|
|
9795
|
-
return
|
|
9811
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9796
9812
|
},
|
|
9797
9813
|
formassembly: FormAssembly,
|
|
9798
9814
|
multimedia: function multimedia(_ref21) {
|
|
9799
9815
|
var node = _ref21.node;
|
|
9800
9816
|
|
|
9801
|
-
return
|
|
9817
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9802
9818
|
},
|
|
9803
9819
|
blockTable: function blockTable(_ref22) {
|
|
9804
9820
|
var node = _ref22.node;
|
|
9805
|
-
return
|
|
9821
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9806
9822
|
}
|
|
9807
9823
|
},
|
|
9808
9824
|
marks: {
|
|
9809
9825
|
superscript: function superscript(props) {
|
|
9810
|
-
return
|
|
9826
|
+
return React.createElement(
|
|
9811
9827
|
'sup',
|
|
9812
9828
|
null,
|
|
9813
9829
|
props.children
|
|
9814
9830
|
);
|
|
9815
9831
|
},
|
|
9816
9832
|
subscript: function subscript(props) {
|
|
9817
|
-
return
|
|
9833
|
+
return React.createElement(
|
|
9818
9834
|
'sub',
|
|
9819
9835
|
null,
|
|
9820
9836
|
props.children
|
|
@@ -9830,7 +9846,7 @@ var getSerializers = function getSerializers() {
|
|
|
9830
9846
|
if (href && href.charAt(0) === '#') {
|
|
9831
9847
|
var elementId = href.slice(1);
|
|
9832
9848
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9833
|
-
return
|
|
9849
|
+
return React.createElement(
|
|
9834
9850
|
'a',
|
|
9835
9851
|
{ onClick: function onClick() {
|
|
9836
9852
|
return ScrollToElement(elementId);
|
|
@@ -9840,7 +9856,7 @@ var getSerializers = function getSerializers() {
|
|
|
9840
9856
|
}
|
|
9841
9857
|
|
|
9842
9858
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9843
|
-
return
|
|
9859
|
+
return React.createElement(
|
|
9844
9860
|
'a',
|
|
9845
9861
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9846
9862
|
children
|
|
@@ -9848,7 +9864,7 @@ var getSerializers = function getSerializers() {
|
|
|
9848
9864
|
},
|
|
9849
9865
|
alignleft: function alignleft(_ref23) {
|
|
9850
9866
|
var children = _ref23.children;
|
|
9851
|
-
return
|
|
9867
|
+
return React.createElement(
|
|
9852
9868
|
'div',
|
|
9853
9869
|
{ style: { textAlign: 'left' } },
|
|
9854
9870
|
children
|
|
@@ -9856,7 +9872,7 @@ var getSerializers = function getSerializers() {
|
|
|
9856
9872
|
},
|
|
9857
9873
|
alignright: function alignright(_ref24) {
|
|
9858
9874
|
var children = _ref24.children;
|
|
9859
|
-
return
|
|
9875
|
+
return React.createElement(
|
|
9860
9876
|
'div',
|
|
9861
9877
|
{ style: { textAlign: 'right' } },
|
|
9862
9878
|
children
|
|
@@ -9864,7 +9880,7 @@ var getSerializers = function getSerializers() {
|
|
|
9864
9880
|
},
|
|
9865
9881
|
aligncenter: function aligncenter(_ref25) {
|
|
9866
9882
|
var children = _ref25.children;
|
|
9867
|
-
return
|
|
9883
|
+
return React.createElement(
|
|
9868
9884
|
'div',
|
|
9869
9885
|
{ style: { textAlign: 'center' } },
|
|
9870
9886
|
children
|
|
@@ -9872,7 +9888,7 @@ var getSerializers = function getSerializers() {
|
|
|
9872
9888
|
},
|
|
9873
9889
|
alignjustify: function alignjustify(_ref26) {
|
|
9874
9890
|
var children = _ref26.children;
|
|
9875
|
-
return
|
|
9891
|
+
return React.createElement(
|
|
9876
9892
|
'div',
|
|
9877
9893
|
{ style: { textAlign: 'justify' } },
|
|
9878
9894
|
children
|
|
@@ -9882,7 +9898,7 @@ var getSerializers = function getSerializers() {
|
|
|
9882
9898
|
var children = props.children,
|
|
9883
9899
|
color = props.mark.color;
|
|
9884
9900
|
|
|
9885
|
-
return
|
|
9901
|
+
return React.createElement(
|
|
9886
9902
|
'span',
|
|
9887
9903
|
{ style: { color: color ? color.hex : null } },
|
|
9888
9904
|
children
|