@mjhls/mjh-framework 1.0.836-beta.0 → 1.0.836
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 +1119 -1128
- 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 -3950
- 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-4cedf2c1.js → index-393c5040.js} +984 -961
- 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 +840 -852
- 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 -3946
- 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-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-a20d9ee5.js → index-f21b15a5.js} +940 -924
- 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,20 +66,20 @@ 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
|
-
|
|
82
|
-
slide.caption &&
|
|
81
|
+
React.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
82
|
+
slide.caption && React.createElement(
|
|
83
83
|
'p',
|
|
84
84
|
{ className: 'p-2' },
|
|
85
85
|
slide.caption
|
|
@@ -90,21 +90,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
// do not edit .js files directly - edit src/index.jst
|
|
94
|
+
|
|
95
|
+
|
|
96
96
|
|
|
97
97
|
var fastDeepEqual = function equal(a, b) {
|
|
98
98
|
if (a === b) return true;
|
|
99
99
|
|
|
100
100
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
101
|
-
|
|
102
|
-
, arrB = isArray(b)
|
|
103
|
-
, i
|
|
104
|
-
, length
|
|
105
|
-
, key;
|
|
101
|
+
if (a.constructor !== b.constructor) return false;
|
|
106
102
|
|
|
107
|
-
|
|
103
|
+
var length, i, keys;
|
|
104
|
+
if (Array.isArray(a)) {
|
|
108
105
|
length = a.length;
|
|
109
106
|
if (length != b.length) return false;
|
|
110
107
|
for (i = length; i-- !== 0;)
|
|
@@ -112,35 +109,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
112
109
|
return true;
|
|
113
110
|
}
|
|
114
111
|
|
|
115
|
-
if (arrA != arrB) return false;
|
|
116
112
|
|
|
117
|
-
var dateA = a instanceof Date
|
|
118
|
-
, dateB = b instanceof Date;
|
|
119
|
-
if (dateA != dateB) return false;
|
|
120
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
121
113
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (
|
|
125
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
114
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
115
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
116
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
126
117
|
|
|
127
|
-
|
|
118
|
+
keys = Object.keys(a);
|
|
128
119
|
length = keys.length;
|
|
129
|
-
|
|
130
|
-
if (length !== keyList(b).length)
|
|
131
|
-
return false;
|
|
120
|
+
if (length !== Object.keys(b).length) return false;
|
|
132
121
|
|
|
133
122
|
for (i = length; i-- !== 0;)
|
|
134
|
-
if (!
|
|
123
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
135
124
|
|
|
136
125
|
for (i = length; i-- !== 0;) {
|
|
137
|
-
key = keys[i];
|
|
126
|
+
var key = keys[i];
|
|
127
|
+
|
|
138
128
|
if (!equal(a[key], b[key])) return false;
|
|
139
129
|
}
|
|
140
130
|
|
|
141
131
|
return true;
|
|
142
132
|
}
|
|
143
133
|
|
|
134
|
+
// true if both NaN, false otherwise
|
|
144
135
|
return a!==a && b!==b;
|
|
145
136
|
};
|
|
146
137
|
|
|
@@ -678,14 +669,14 @@ function coerce(val) {
|
|
|
678
669
|
return val;
|
|
679
670
|
}
|
|
680
671
|
});
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
672
|
+
debug.coerce;
|
|
673
|
+
debug.disable;
|
|
674
|
+
debug.enable;
|
|
675
|
+
debug.enabled;
|
|
676
|
+
debug.humanize;
|
|
677
|
+
debug.names;
|
|
678
|
+
debug.skips;
|
|
679
|
+
debug.formatters;
|
|
689
680
|
|
|
690
681
|
var browser = createCommonjsModule(function (module, exports) {
|
|
691
682
|
/**
|
|
@@ -874,13 +865,13 @@ function localstorage() {
|
|
|
874
865
|
} catch (e) {}
|
|
875
866
|
}
|
|
876
867
|
});
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
868
|
+
browser.log;
|
|
869
|
+
browser.formatArgs;
|
|
870
|
+
browser.save;
|
|
871
|
+
browser.load;
|
|
872
|
+
browser.useColors;
|
|
873
|
+
browser.storage;
|
|
874
|
+
browser.colors;
|
|
884
875
|
|
|
885
876
|
// MIT lisence
|
|
886
877
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1155,14 +1146,14 @@ function init (debug) {
|
|
|
1155
1146
|
|
|
1156
1147
|
exports.enable(load());
|
|
1157
1148
|
});
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1149
|
+
node.init;
|
|
1150
|
+
node.log;
|
|
1151
|
+
node.formatArgs;
|
|
1152
|
+
node.save;
|
|
1153
|
+
node.load;
|
|
1154
|
+
node.useColors;
|
|
1155
|
+
node.colors;
|
|
1156
|
+
node.inspectOpts;
|
|
1166
1157
|
|
|
1167
1158
|
var src = createCommonjsModule(function (module) {
|
|
1168
1159
|
/**
|
|
@@ -1563,199 +1554,239 @@ module.exports = exports['default'];
|
|
|
1563
1554
|
|
|
1564
1555
|
var youTubePlayer = unwrapExports(dist);
|
|
1565
1556
|
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
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; };
|
|
1557
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1569
1558
|
|
|
1570
1559
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1571
1560
|
|
|
1572
|
-
function
|
|
1561
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1562
|
+
|
|
1563
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1564
|
+
|
|
1565
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1566
|
+
|
|
1567
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1568
|
+
|
|
1569
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1570
|
+
|
|
1571
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1572
|
+
|
|
1573
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1574
|
+
|
|
1575
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1573
1576
|
|
|
1574
|
-
function
|
|
1577
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1578
|
+
|
|
1579
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1575
1580
|
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
*
|
|
1581
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1582
|
+
|
|
1583
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1584
|
+
/**
|
|
1585
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1586
|
+
*
|
|
1587
|
+
* @param {Object} prevProps
|
|
1588
|
+
* @param {Object} props
|
|
1581
1589
|
*/
|
|
1590
|
+
|
|
1582
1591
|
function shouldUpdateVideo(prevProps, props) {
|
|
1583
1592
|
// A changing video should always trigger an update
|
|
1584
1593
|
if (prevProps.videoId !== props.videoId) {
|
|
1585
1594
|
return true;
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1589
1596
|
// update.
|
|
1597
|
+
|
|
1598
|
+
|
|
1590
1599
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1591
1600
|
var vars = props.opts.playerVars || {};
|
|
1592
|
-
|
|
1593
1601
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1594
1602
|
}
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
*
|
|
1598
|
-
*
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
* @param {Object} opts
|
|
1603
|
+
/**
|
|
1604
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1605
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
+
* player reset is necessary.
|
|
1607
|
+
*
|
|
1608
|
+
* @param {Object} opts
|
|
1602
1609
|
*/
|
|
1610
|
+
|
|
1611
|
+
|
|
1603
1612
|
function filterResetOptions(opts) {
|
|
1604
|
-
return
|
|
1605
|
-
playerVars:
|
|
1613
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1614
|
+
playerVars: _objectSpread({
|
|
1606
1615
|
autoplay: 0,
|
|
1607
1616
|
start: 0,
|
|
1608
1617
|
end: 0
|
|
1609
|
-
})
|
|
1618
|
+
}, opts.playerVars)
|
|
1610
1619
|
});
|
|
1611
1620
|
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
*
|
|
1615
|
-
*
|
|
1616
|
-
*
|
|
1617
|
-
*
|
|
1618
|
-
*
|
|
1619
|
-
* @param {Object}
|
|
1620
|
-
* @param {Object} props
|
|
1621
|
+
/**
|
|
1622
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1623
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1624
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1625
|
+
* those.
|
|
1626
|
+
*
|
|
1627
|
+
* @param {Object} prevProps
|
|
1628
|
+
* @param {Object} props
|
|
1621
1629
|
*/
|
|
1630
|
+
|
|
1631
|
+
|
|
1622
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1623
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1624
1634
|
}
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object}
|
|
1630
|
-
* @param {Object} props
|
|
1635
|
+
/**
|
|
1636
|
+
* Check whether a props change should result in an id or className update.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1631
1640
|
*/
|
|
1641
|
+
|
|
1642
|
+
|
|
1632
1643
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1633
1644
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1634
1645
|
}
|
|
1635
1646
|
|
|
1636
|
-
var YouTube = function (_React$Component) {
|
|
1647
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1637
1648
|
_inherits(YouTube, _React$Component);
|
|
1638
1649
|
|
|
1650
|
+
var _super = _createSuper(YouTube);
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1654
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1655
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1656
|
+
*/
|
|
1639
1657
|
function YouTube(props) {
|
|
1658
|
+
var _this;
|
|
1659
|
+
|
|
1640
1660
|
_classCallCheck(this, YouTube);
|
|
1641
1661
|
|
|
1642
|
-
|
|
1662
|
+
_this = _super.call(this, props);
|
|
1643
1663
|
|
|
1644
|
-
_this
|
|
1664
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1645
1665
|
return _this.props.onReady(event);
|
|
1646
|
-
};
|
|
1666
|
+
});
|
|
1647
1667
|
|
|
1648
|
-
_this
|
|
1668
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1649
1669
|
return _this.props.onError(event);
|
|
1650
|
-
};
|
|
1670
|
+
});
|
|
1651
1671
|
|
|
1652
|
-
_this
|
|
1672
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1653
1673
|
_this.props.onStateChange(event);
|
|
1654
|
-
switch (event.data) {
|
|
1655
1674
|
|
|
1675
|
+
switch (event.data) {
|
|
1656
1676
|
case YouTube.PlayerState.ENDED:
|
|
1657
1677
|
_this.props.onEnd(event);
|
|
1678
|
+
|
|
1658
1679
|
break;
|
|
1659
1680
|
|
|
1660
1681
|
case YouTube.PlayerState.PLAYING:
|
|
1661
1682
|
_this.props.onPlay(event);
|
|
1683
|
+
|
|
1662
1684
|
break;
|
|
1663
1685
|
|
|
1664
1686
|
case YouTube.PlayerState.PAUSED:
|
|
1665
1687
|
_this.props.onPause(event);
|
|
1688
|
+
|
|
1666
1689
|
break;
|
|
1667
1690
|
}
|
|
1668
|
-
};
|
|
1691
|
+
});
|
|
1669
1692
|
|
|
1670
|
-
_this
|
|
1693
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1671
1694
|
return _this.props.onPlaybackRateChange(event);
|
|
1672
|
-
};
|
|
1695
|
+
});
|
|
1673
1696
|
|
|
1674
|
-
_this
|
|
1697
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1675
1698
|
return _this.props.onPlaybackQualityChange(event);
|
|
1676
|
-
};
|
|
1699
|
+
});
|
|
1677
1700
|
|
|
1678
|
-
_this
|
|
1701
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1679
1702
|
// do not attempt to create a player server-side, it won't work
|
|
1680
|
-
if (typeof document === 'undefined') return;
|
|
1681
|
-
|
|
1682
|
-
var playerOpts =
|
|
1703
|
+
if (typeof document === 'undefined') return; // create player
|
|
1704
|
+
|
|
1705
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1683
1706
|
// preload the `videoId` video if one is already given
|
|
1684
1707
|
videoId: _this.props.videoId
|
|
1685
1708
|
});
|
|
1686
|
-
|
|
1687
|
-
// attach event handlers
|
|
1709
|
+
|
|
1710
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1711
|
+
|
|
1688
1712
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1713
|
+
|
|
1689
1714
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1715
|
+
|
|
1690
1716
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1717
|
+
|
|
1691
1718
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1719
|
+
|
|
1692
1720
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1693
|
-
};
|
|
1721
|
+
});
|
|
1694
1722
|
|
|
1695
|
-
_this
|
|
1723
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1696
1724
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1697
|
-
};
|
|
1725
|
+
});
|
|
1698
1726
|
|
|
1699
|
-
_this
|
|
1727
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1700
1728
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1701
1729
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1702
1730
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1703
1731
|
});
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1735
|
+
return _this.internalPlayer;
|
|
1736
|
+
});
|
|
1737
|
+
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1707
1739
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1708
1740
|
_this.internalPlayer.stopVideo();
|
|
1741
|
+
|
|
1709
1742
|
return;
|
|
1710
|
-
}
|
|
1743
|
+
} // set queueing options
|
|
1744
|
+
|
|
1711
1745
|
|
|
1712
|
-
// set queueing options
|
|
1713
1746
|
var autoplay = false;
|
|
1714
1747
|
var opts = {
|
|
1715
1748
|
videoId: _this.props.videoId
|
|
1716
1749
|
};
|
|
1750
|
+
|
|
1717
1751
|
if ('playerVars' in _this.props.opts) {
|
|
1718
1752
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1753
|
+
|
|
1719
1754
|
if ('start' in _this.props.opts.playerVars) {
|
|
1720
1755
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1721
1756
|
}
|
|
1757
|
+
|
|
1722
1758
|
if ('end' in _this.props.opts.playerVars) {
|
|
1723
1759
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1724
1760
|
}
|
|
1725
|
-
}
|
|
1761
|
+
} // if autoplay is enabled loadVideoById
|
|
1762
|
+
|
|
1726
1763
|
|
|
1727
|
-
// if autoplay is enabled loadVideoById
|
|
1728
1764
|
if (autoplay) {
|
|
1729
1765
|
_this.internalPlayer.loadVideoById(opts);
|
|
1766
|
+
|
|
1730
1767
|
return;
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1768
|
+
} // default behaviour just cues the video
|
|
1769
|
+
|
|
1770
|
+
|
|
1733
1771
|
_this.internalPlayer.cueVideoById(opts);
|
|
1734
|
-
};
|
|
1772
|
+
});
|
|
1735
1773
|
|
|
1736
|
-
_this
|
|
1774
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1737
1775
|
_this.container = container;
|
|
1738
|
-
};
|
|
1776
|
+
});
|
|
1739
1777
|
|
|
1740
1778
|
_this.container = null;
|
|
1741
1779
|
_this.internalPlayer = null;
|
|
1742
1780
|
return _this;
|
|
1743
1781
|
}
|
|
1744
1782
|
|
|
1745
|
-
/**
|
|
1746
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1747
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1748
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1749
|
-
*/
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
1783
|
_createClass(YouTube, [{
|
|
1753
|
-
key:
|
|
1784
|
+
key: "componentDidMount",
|
|
1754
1785
|
value: function componentDidMount() {
|
|
1755
1786
|
this.createPlayer();
|
|
1756
1787
|
}
|
|
1757
1788
|
}, {
|
|
1758
|
-
key:
|
|
1789
|
+
key: "componentDidUpdate",
|
|
1759
1790
|
value: function componentDidUpdate(prevProps) {
|
|
1760
1791
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1761
1792
|
this.updatePlayer();
|
|
@@ -1770,112 +1801,58 @@ var YouTube = function (_React$Component) {
|
|
|
1770
1801
|
}
|
|
1771
1802
|
}
|
|
1772
1803
|
}, {
|
|
1773
|
-
key:
|
|
1804
|
+
key: "componentWillUnmount",
|
|
1774
1805
|
value: function componentWillUnmount() {
|
|
1775
|
-
/**
|
|
1776
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1777
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1778
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1779
|
-
* this method isn't quick enough to reset the container element.
|
|
1806
|
+
/**
|
|
1807
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1808
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1809
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1810
|
+
* this method isn't quick enough to reset the container element.
|
|
1780
1811
|
*/
|
|
1781
1812
|
this.internalPlayer.destroy();
|
|
1782
1813
|
}
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
*
|
|
1786
|
-
*
|
|
1787
|
-
*
|
|
1788
|
-
* @param {Object} target - player object
|
|
1789
|
-
*/
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
/**
|
|
1793
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1794
|
-
*
|
|
1795
|
-
* @param {Object} event
|
|
1796
|
-
* @param {Integer} data - error type
|
|
1797
|
-
* @param {Object} target - player object
|
|
1798
|
-
*/
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
/**
|
|
1802
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1803
|
-
*
|
|
1804
|
-
* @param {Object} event
|
|
1805
|
-
* @param {Integer} data - status change type
|
|
1806
|
-
* @param {Object} target - actual YT player
|
|
1807
|
-
*/
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
/**
|
|
1811
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1812
|
-
*
|
|
1813
|
-
* @param {Object} event
|
|
1814
|
-
* @param {Float} data - playback rate
|
|
1815
|
-
* @param {Object} target - actual YT player
|
|
1816
|
-
*/
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
/**
|
|
1820
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1821
|
-
*
|
|
1822
|
-
* @param {Object} event
|
|
1823
|
-
* @param {String} data - playback quality
|
|
1824
|
-
* @param {Object} target - actual YT player
|
|
1825
|
-
*/
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
/**
|
|
1829
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1830
|
-
*/
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
/**
|
|
1834
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1835
|
-
*/
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1840
|
-
* React should update this automatically but since the Youtube Player API
|
|
1841
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1847
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1848
|
-
* Youtube Player API methods to update the video.
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Object} target - player object
|
|
1849
1819
|
*/
|
|
1850
1820
|
|
|
1851
1821
|
}, {
|
|
1852
|
-
key:
|
|
1822
|
+
key: "render",
|
|
1853
1823
|
value: function render() {
|
|
1854
|
-
return
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1824
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1825
|
+
className: this.props.containerClassName
|
|
1826
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1827
|
+
id: this.props.id,
|
|
1828
|
+
className: this.props.className,
|
|
1829
|
+
ref: this.refContainer
|
|
1830
|
+
}));
|
|
1859
1831
|
}
|
|
1860
1832
|
}]);
|
|
1861
1833
|
|
|
1862
1834
|
return YouTube;
|
|
1863
|
-
}(
|
|
1835
|
+
}(React.Component);
|
|
1836
|
+
|
|
1837
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1838
|
+
UNSTARTED: -1,
|
|
1839
|
+
ENDED: 0,
|
|
1840
|
+
PLAYING: 1,
|
|
1841
|
+
PAUSED: 2,
|
|
1842
|
+
BUFFERING: 3,
|
|
1843
|
+
CUED: 5
|
|
1844
|
+
});
|
|
1864
1845
|
|
|
1865
1846
|
YouTube.propTypes = {
|
|
1866
1847
|
videoId: PropTypes.string,
|
|
1867
|
-
|
|
1868
1848
|
// custom ID for player element
|
|
1869
1849
|
id: PropTypes.string,
|
|
1870
|
-
|
|
1871
1850
|
// custom class name for player element
|
|
1872
1851
|
className: PropTypes.string,
|
|
1873
1852
|
// custom class name for player container element
|
|
1874
1853
|
containerClassName: PropTypes.string,
|
|
1875
|
-
|
|
1876
1854
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1877
1855
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1878
|
-
|
|
1879
1856
|
// event subscriptions
|
|
1880
1857
|
onReady: PropTypes.func,
|
|
1881
1858
|
onError: PropTypes.func,
|
|
@@ -1887,6 +1864,7 @@ YouTube.propTypes = {
|
|
|
1887
1864
|
onPlaybackQualityChange: PropTypes.func
|
|
1888
1865
|
};
|
|
1889
1866
|
YouTube.defaultProps = {
|
|
1867
|
+
videoId: null,
|
|
1890
1868
|
id: null,
|
|
1891
1869
|
className: null,
|
|
1892
1870
|
opts: {},
|
|
@@ -1900,14 +1878,6 @@ YouTube.defaultProps = {
|
|
|
1900
1878
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1901
1879
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1902
1880
|
};
|
|
1903
|
-
YouTube.PlayerState = {
|
|
1904
|
-
UNSTARTED: -1,
|
|
1905
|
-
ENDED: 0,
|
|
1906
|
-
PLAYING: 1,
|
|
1907
|
-
PAUSED: 2,
|
|
1908
|
-
BUFFERING: 3,
|
|
1909
|
-
CUED: 5
|
|
1910
|
-
};
|
|
1911
1881
|
|
|
1912
1882
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1913
1883
|
var url = _ref.url,
|
|
@@ -1946,8 +1916,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1946
1916
|
var duration = player.getDuration();
|
|
1947
1917
|
var queue = Math.floor(duration / 10);
|
|
1948
1918
|
var segment = Math.floor(current / queue);
|
|
1949
|
-
Beam.report_beam_video('Ready',
|
|
1950
|
-
Segment.report_video_event('Video Ready',
|
|
1919
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1920
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1951
1921
|
};
|
|
1952
1922
|
|
|
1953
1923
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1957,8 +1927,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1957
1927
|
var segment = Math.floor(current / queue);
|
|
1958
1928
|
|
|
1959
1929
|
if (!queueProgress.includes(segment)) {
|
|
1960
|
-
Beam.report_beam_video('Segment',
|
|
1961
|
-
Segment.report_video_event('Video Segment',
|
|
1930
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1931
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1962
1932
|
queueProgress.push(segment);
|
|
1963
1933
|
}
|
|
1964
1934
|
};
|
|
@@ -1971,8 +1941,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1971
1941
|
var queue = Math.floor(duration / 10);
|
|
1972
1942
|
var segment = Math.floor(current / queue);
|
|
1973
1943
|
|
|
1974
|
-
Beam.report_beam_video('Play',
|
|
1975
|
-
Segment.report_video_event('Video Play',
|
|
1944
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1945
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1976
1946
|
|
|
1977
1947
|
if (!playReported) {
|
|
1978
1948
|
setPlayReported(true);
|
|
@@ -1991,8 +1961,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1991
1961
|
var queue = Math.floor(duration / 10);
|
|
1992
1962
|
var segment = Math.floor(current / queue);
|
|
1993
1963
|
|
|
1994
|
-
Beam.report_beam_video('End',
|
|
1995
|
-
Segment.report_video_event('Video End',
|
|
1964
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1965
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
1996
1966
|
setEndReported(true);
|
|
1997
1967
|
clearInterval(intervalID);
|
|
1998
1968
|
}
|
|
@@ -2005,15 +1975,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2005
1975
|
var queue = Math.floor(duration / 10);
|
|
2006
1976
|
var segment = Math.floor(current / queue);
|
|
2007
1977
|
|
|
2008
|
-
Beam.report_beam_video('Pause',
|
|
2009
|
-
Segment.report_video_event('Video Pause',
|
|
1978
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1979
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2010
1980
|
};
|
|
2011
1981
|
|
|
2012
|
-
return
|
|
1982
|
+
return React.createElement(
|
|
2013
1983
|
'div',
|
|
2014
1984
|
{ id: 'fluid-video-container' },
|
|
2015
|
-
|
|
2016
|
-
|
|
1985
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1986
|
+
React.createElement(
|
|
2017
1987
|
'style',
|
|
2018
1988
|
{ jsx: 'true' },
|
|
2019
1989
|
'\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 '
|
|
@@ -2026,20 +1996,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2026
1996
|
content = _ref.content,
|
|
2027
1997
|
getSerializers = _ref.getSerializers;
|
|
2028
1998
|
|
|
2029
|
-
return
|
|
1999
|
+
return React.createElement(
|
|
2030
2000
|
'article',
|
|
2031
2001
|
{ className: 'sidebar' },
|
|
2032
|
-
|
|
2002
|
+
React.createElement(
|
|
2033
2003
|
'div',
|
|
2034
2004
|
null,
|
|
2035
|
-
|
|
2005
|
+
React.createElement(
|
|
2036
2006
|
'h3',
|
|
2037
2007
|
null,
|
|
2038
2008
|
caption
|
|
2039
2009
|
),
|
|
2040
|
-
|
|
2010
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2041
2011
|
),
|
|
2042
|
-
|
|
2012
|
+
React.createElement(
|
|
2043
2013
|
'style',
|
|
2044
2014
|
{ jsx: 'true' },
|
|
2045
2015
|
'\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 '
|
|
@@ -2050,18 +2020,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2050
2020
|
var TableShow = function TableShow(_ref) {
|
|
2051
2021
|
var rows = _ref.rows;
|
|
2052
2022
|
|
|
2053
|
-
return
|
|
2023
|
+
return React.createElement(
|
|
2054
2024
|
Table,
|
|
2055
2025
|
{ bordered: true, hover: true, responsive: true },
|
|
2056
|
-
|
|
2026
|
+
React.createElement(
|
|
2057
2027
|
'tbody',
|
|
2058
2028
|
null,
|
|
2059
2029
|
rows && rows.map(function (row) {
|
|
2060
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2061
2031
|
'tr',
|
|
2062
2032
|
{ key: row._key },
|
|
2063
2033
|
row.cells && row.cells.map(function (cell, index) {
|
|
2064
|
-
return cell &&
|
|
2034
|
+
return cell && React.createElement(
|
|
2065
2035
|
'td',
|
|
2066
2036
|
{ key: index },
|
|
2067
2037
|
cell
|
|
@@ -2159,18 +2129,18 @@ var Media = function Media(_ref) {
|
|
|
2159
2129
|
margin: imageMargin
|
|
2160
2130
|
};
|
|
2161
2131
|
|
|
2162
|
-
return
|
|
2132
|
+
return React.createElement(
|
|
2163
2133
|
Figure$1,
|
|
2164
2134
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2165
|
-
|
|
2135
|
+
React.createElement(
|
|
2166
2136
|
'a',
|
|
2167
2137
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2168
|
-
|
|
2138
|
+
React.createElement(
|
|
2169
2139
|
LazyLoad,
|
|
2170
2140
|
{ once: true },
|
|
2171
|
-
|
|
2141
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2172
2142
|
),
|
|
2173
|
-
caption &&
|
|
2143
|
+
caption && React.createElement(
|
|
2174
2144
|
Figure$1.Caption,
|
|
2175
2145
|
{ className: 'media-caption' },
|
|
2176
2146
|
caption
|
|
@@ -2178,9 +2148,9 @@ var Media = function Media(_ref) {
|
|
|
2178
2148
|
)
|
|
2179
2149
|
);
|
|
2180
2150
|
} else if (caption && caption !== '') {
|
|
2181
|
-
return
|
|
2151
|
+
return React.createElement(
|
|
2182
2152
|
'a',
|
|
2183
|
-
_extends
|
|
2153
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2184
2154
|
href: uploadDoc.asset.url + '?dl='
|
|
2185
2155
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2186
2156
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2198,10 +2168,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2198
2168
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2199
2169
|
|
|
2200
2170
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2201
|
-
return
|
|
2171
|
+
return React.createElement(
|
|
2202
2172
|
'div',
|
|
2203
2173
|
{ className: 'd-block text-center mb-3' },
|
|
2204
|
-
|
|
2174
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2205
2175
|
);
|
|
2206
2176
|
};
|
|
2207
2177
|
|
|
@@ -2235,8 +2205,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2235
2205
|
var duration = player.duration;
|
|
2236
2206
|
var queue = Math.floor(duration / 10);
|
|
2237
2207
|
var segment = Math.floor(current / queue);
|
|
2238
|
-
Beam.report_beam_video('Ready',
|
|
2239
|
-
Segment.report_video_event('Video Ready',
|
|
2208
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2209
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2240
2210
|
};
|
|
2241
2211
|
|
|
2242
2212
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2245,8 +2215,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2245
2215
|
var queue = Math.floor(duration / 10);
|
|
2246
2216
|
var segment = Math.floor(current / queue);
|
|
2247
2217
|
if (!queueProgress.includes(segment)) {
|
|
2248
|
-
Beam.report_beam_video('Segment',
|
|
2249
|
-
Segment.report_video_event('Video Segment',
|
|
2218
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2219
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2250
2220
|
queueProgress.push(segment);
|
|
2251
2221
|
}
|
|
2252
2222
|
};
|
|
@@ -2258,8 +2228,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2258
2228
|
var duration = player.duration;
|
|
2259
2229
|
var queue = Math.floor(duration / 10);
|
|
2260
2230
|
var segment = Math.floor(current / queue);
|
|
2261
|
-
Beam.report_beam_video('Play',
|
|
2262
|
-
Segment.report_video_event('Video Play',
|
|
2231
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2232
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2263
2233
|
|
|
2264
2234
|
if (!playReported) {
|
|
2265
2235
|
event.persist();
|
|
@@ -2279,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2279
2249
|
var queue = Math.floor(duration / 10);
|
|
2280
2250
|
var segment = Math.floor(current / queue);
|
|
2281
2251
|
|
|
2282
|
-
Beam.report_beam_video('End',
|
|
2283
|
-
Segment.report_video_event('Video End',
|
|
2252
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2253
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2284
2254
|
setEndReported(true);
|
|
2285
2255
|
clearInterval(intervalID);
|
|
2286
2256
|
}
|
|
@@ -2292,14 +2262,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2292
2262
|
var duration = player.duration - current;
|
|
2293
2263
|
var queue = Math.floor(duration / 10);
|
|
2294
2264
|
var segment = Math.floor(current / queue);
|
|
2295
|
-
Beam.report_beam_video('Pause',
|
|
2296
|
-
Segment.report_video_event('Video Pause',
|
|
2265
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2266
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2297
2267
|
};
|
|
2298
2268
|
|
|
2299
|
-
return
|
|
2269
|
+
return React.createElement(
|
|
2300
2270
|
'div',
|
|
2301
2271
|
null,
|
|
2302
|
-
vidLoaded &&
|
|
2272
|
+
vidLoaded && React.createElement(
|
|
2303
2273
|
'video',
|
|
2304
2274
|
{
|
|
2305
2275
|
poster: thumbnail || '',
|
|
@@ -2317,7 +2287,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2317
2287
|
onPlay: function onPlay(e) {
|
|
2318
2288
|
return handleOnPlay(e);
|
|
2319
2289
|
} },
|
|
2320
|
-
|
|
2290
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2321
2291
|
'Your browser does not support the video tag.'
|
|
2322
2292
|
)
|
|
2323
2293
|
);
|
|
@@ -2354,7 +2324,7 @@ var Video = function Video(_ref) {
|
|
|
2354
2324
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2355
2325
|
//console.log('success:', success.ref)
|
|
2356
2326
|
var player = success.ref;
|
|
2357
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2327
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2358
2328
|
player.ima3.settings.debug = true;
|
|
2359
2329
|
if (targeting.content_placement && targeting.document_url) {
|
|
2360
2330
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2382,8 +2352,8 @@ var Video = function Video(_ref) {
|
|
|
2382
2352
|
player.pause();
|
|
2383
2353
|
}
|
|
2384
2354
|
|
|
2385
|
-
Beam.report_beam_video('Ready',
|
|
2386
|
-
Segment.report_video_event('Video Ready',
|
|
2355
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2356
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2387
2357
|
});
|
|
2388
2358
|
|
|
2389
2359
|
// play
|
|
@@ -2392,8 +2362,8 @@ var Video = function Video(_ref) {
|
|
|
2392
2362
|
var current = player.currentTime();
|
|
2393
2363
|
var queue = Math.floor(duration / 10);
|
|
2394
2364
|
var segment = Math.floor(current / queue);
|
|
2395
|
-
Beam.report_beam_video('Play',
|
|
2396
|
-
Segment.report_video_event('Video Play',
|
|
2365
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2366
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2397
2367
|
});
|
|
2398
2368
|
|
|
2399
2369
|
// pause
|
|
@@ -2402,8 +2372,8 @@ var Video = function Video(_ref) {
|
|
|
2402
2372
|
var current = player.currentTime();
|
|
2403
2373
|
var queue = Math.floor(duration / 10);
|
|
2404
2374
|
var segment = Math.floor(current / queue);
|
|
2405
|
-
Beam.report_beam_video('Pause',
|
|
2406
|
-
Segment.report_video_event('Video Pause',
|
|
2375
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2376
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2407
2377
|
});
|
|
2408
2378
|
|
|
2409
2379
|
// end
|
|
@@ -2412,8 +2382,8 @@ var Video = function Video(_ref) {
|
|
|
2412
2382
|
var current = player.currentTime();
|
|
2413
2383
|
var queue = Math.floor(duration / 10);
|
|
2414
2384
|
var segment = Math.floor(current / queue);
|
|
2415
|
-
Beam.report_beam_video('End',
|
|
2416
|
-
Segment.report_video_event('Video End',
|
|
2385
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2386
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2417
2387
|
autoplayNextVideo(evt);
|
|
2418
2388
|
});
|
|
2419
2389
|
|
|
@@ -2424,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2424
2394
|
var queue = Math.floor(duration / 10);
|
|
2425
2395
|
var segment = Math.floor(current / queue);
|
|
2426
2396
|
if (!queueProgress.includes(segment)) {
|
|
2427
|
-
Beam.report_beam_video('Segment',
|
|
2428
|
-
Segment.report_video_event('Video Segment',
|
|
2397
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2429
2399
|
queueProgress.push(segment);
|
|
2430
2400
|
}
|
|
2431
2401
|
});
|
|
@@ -2436,8 +2406,8 @@ var Video = function Video(_ref) {
|
|
|
2436
2406
|
var id = player.ads.ad.id;
|
|
2437
2407
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2438
2408
|
|
|
2439
|
-
Beam.report_beam_ad('AD Started',
|
|
2440
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2409
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2410
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2441
2411
|
});
|
|
2442
2412
|
|
|
2443
2413
|
// ad ended
|
|
@@ -2445,60 +2415,60 @@ var Video = function Video(_ref) {
|
|
|
2445
2415
|
var duration = player.ads.ad.duration;
|
|
2446
2416
|
var id = player.ads.ad.id;
|
|
2447
2417
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2448
|
-
Beam.report_beam_ad('AD Ended',
|
|
2449
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2418
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2419
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2450
2420
|
});
|
|
2451
2421
|
};
|
|
2452
2422
|
|
|
2453
2423
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2454
2424
|
if (videoID) {
|
|
2455
|
-
return
|
|
2425
|
+
return React.createElement(
|
|
2456
2426
|
'div',
|
|
2457
2427
|
null,
|
|
2458
|
-
|
|
2428
|
+
React.createElement(ReactPlayerLoader, {
|
|
2459
2429
|
onSuccess: onVideoSuccess,
|
|
2460
2430
|
accountId: accountIDs.brightcove.accountId,
|
|
2461
2431
|
videoId: videoID,
|
|
2462
2432
|
playerId: accountIDs.brightcove.playerId,
|
|
2463
2433
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2464
2434
|
}),
|
|
2465
|
-
|
|
2435
|
+
React.createElement(
|
|
2466
2436
|
'style',
|
|
2467
2437
|
{ jsx: 'true' },
|
|
2468
2438
|
'\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 '
|
|
2469
2439
|
)
|
|
2470
2440
|
);
|
|
2471
2441
|
} else if (playlistID) {
|
|
2472
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2473
2443
|
'div',
|
|
2474
2444
|
null,
|
|
2475
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2476
2446
|
accountId: accountIDs.brightcove.accountId,
|
|
2477
2447
|
playlistId: playlistID,
|
|
2478
2448
|
playerId: accountIDs.brightcove.playerId,
|
|
2479
2449
|
onSuccess: onVideoSuccess,
|
|
2480
2450
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2481
2451
|
}),
|
|
2482
|
-
|
|
2452
|
+
React.createElement(
|
|
2483
2453
|
'style',
|
|
2484
2454
|
{ jsx: 'true' },
|
|
2485
2455
|
'\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 '
|
|
2486
2456
|
)
|
|
2487
2457
|
);
|
|
2488
2458
|
} else if (experienceID) {
|
|
2489
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2490
2460
|
'div',
|
|
2491
2461
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2492
|
-
videoLoaded &&
|
|
2462
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2493
2463
|
);
|
|
2494
2464
|
}
|
|
2495
2465
|
return null;
|
|
2496
2466
|
}
|
|
2497
2467
|
if (source === 'mp4') {
|
|
2498
|
-
return
|
|
2468
|
+
return React.createElement(
|
|
2499
2469
|
'div',
|
|
2500
2470
|
null,
|
|
2501
|
-
|
|
2471
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2502
2472
|
);
|
|
2503
2473
|
}
|
|
2504
2474
|
|
|
@@ -2709,9 +2679,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2709
2679
|
});
|
|
2710
2680
|
|
|
2711
2681
|
unwrapExports(props);
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2682
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
+
props.defaultProps;
|
|
2684
|
+
props.propTypes;
|
|
2715
2685
|
|
|
2716
2686
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2717
2687
|
return isNonNullObject(value)
|
|
@@ -2876,11 +2846,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2876
2846
|
|
|
2877
2847
|
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; }
|
|
2878
2848
|
|
|
2879
|
-
function
|
|
2849
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2880
2850
|
|
|
2881
|
-
function
|
|
2851
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2882
2852
|
|
|
2883
|
-
function
|
|
2853
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2854
|
+
|
|
2855
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
2856
|
+
|
|
2857
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2858
|
+
|
|
2859
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2884
2860
|
|
|
2885
2861
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2886
2862
|
|
|
@@ -3010,12 +2986,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3010
2986
|
|
|
3011
2987
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3012
2988
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3013
|
-
|
|
3014
|
-
var
|
|
3015
|
-
|
|
2989
|
+
|
|
2990
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2991
|
+
_step;
|
|
3016
2992
|
|
|
3017
2993
|
try {
|
|
3018
|
-
for (
|
|
2994
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3019
2995
|
var p = _step.value;
|
|
3020
2996
|
|
|
3021
2997
|
if (props$1[p]) {
|
|
@@ -3030,18 +3006,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3030
3006
|
}
|
|
3031
3007
|
}
|
|
3032
3008
|
} catch (err) {
|
|
3033
|
-
|
|
3034
|
-
_iteratorError = err;
|
|
3009
|
+
_iterator.e(err);
|
|
3035
3010
|
} finally {
|
|
3036
|
-
|
|
3037
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3038
|
-
_iterator["return"]();
|
|
3039
|
-
}
|
|
3040
|
-
} finally {
|
|
3041
|
-
if (_didIteratorError) {
|
|
3042
|
-
throw _iteratorError;
|
|
3043
|
-
}
|
|
3044
|
-
}
|
|
3011
|
+
_iterator.f();
|
|
3045
3012
|
}
|
|
3046
3013
|
|
|
3047
3014
|
return config;
|
|
@@ -3106,7 +3073,7 @@ function isEqual(a, b) {
|
|
|
3106
3073
|
return true;
|
|
3107
3074
|
}
|
|
3108
3075
|
|
|
3109
|
-
if ((0,
|
|
3076
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3110
3077
|
return true;
|
|
3111
3078
|
}
|
|
3112
3079
|
|
|
@@ -3149,17 +3116,17 @@ function isMediaStream(url) {
|
|
|
3149
3116
|
});
|
|
3150
3117
|
|
|
3151
3118
|
unwrapExports(utils);
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3119
|
+
utils.parseStartTime;
|
|
3120
|
+
utils.parseEndTime;
|
|
3121
|
+
utils.randomString;
|
|
3122
|
+
utils.queryString;
|
|
3123
|
+
utils.getSDK;
|
|
3124
|
+
utils.getConfig;
|
|
3125
|
+
utils.omit;
|
|
3126
|
+
utils.callPlayer;
|
|
3127
|
+
utils.isObject;
|
|
3128
|
+
utils.isEqual;
|
|
3129
|
+
utils.isMediaStream;
|
|
3163
3130
|
|
|
3164
3131
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3165
3132
|
|
|
@@ -3168,7 +3135,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3168
3135
|
});
|
|
3169
3136
|
exports["default"] = void 0;
|
|
3170
3137
|
|
|
3171
|
-
var _react = _interopRequireWildcard(
|
|
3138
|
+
var _react = _interopRequireWildcard(React);
|
|
3172
3139
|
|
|
3173
3140
|
|
|
3174
3141
|
|
|
@@ -3188,12 +3155,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3188
3155
|
|
|
3189
3156
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3190
3157
|
|
|
3191
|
-
function
|
|
3158
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3192
3159
|
|
|
3193
|
-
function
|
|
3160
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3194
3161
|
|
|
3195
3162
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3196
3163
|
|
|
3164
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3165
|
+
|
|
3166
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3167
|
+
|
|
3197
3168
|
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); }
|
|
3198
3169
|
|
|
3199
3170
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3202,14 +3173,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3202
3173
|
|
|
3203
3174
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3204
3175
|
|
|
3205
|
-
var Player =
|
|
3206
|
-
/*#__PURE__*/
|
|
3207
|
-
function (_Component) {
|
|
3176
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3208
3177
|
_inherits(Player, _Component);
|
|
3209
3178
|
|
|
3210
|
-
|
|
3211
|
-
var _getPrototypeOf2;
|
|
3179
|
+
var _super = _createSuper(Player);
|
|
3212
3180
|
|
|
3181
|
+
function Player() {
|
|
3213
3182
|
var _this;
|
|
3214
3183
|
|
|
3215
3184
|
_classCallCheck(this, Player);
|
|
@@ -3218,7 +3187,7 @@ function (_Component) {
|
|
|
3218
3187
|
_args[_key] = arguments[_key];
|
|
3219
3188
|
}
|
|
3220
3189
|
|
|
3221
|
-
_this =
|
|
3190
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3222
3191
|
|
|
3223
3192
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3224
3193
|
|
|
@@ -3543,7 +3512,7 @@ function (_Component) {
|
|
|
3543
3512
|
return null;
|
|
3544
3513
|
}
|
|
3545
3514
|
|
|
3546
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3515
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3547
3516
|
ref: this.ref,
|
|
3548
3517
|
onReady: this.handleReady,
|
|
3549
3518
|
onPlay: this.handlePlay,
|
|
@@ -3576,7 +3545,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3576
3545
|
});
|
|
3577
3546
|
exports["default"] = createSinglePlayer;
|
|
3578
3547
|
|
|
3579
|
-
var _react = _interopRequireWildcard(
|
|
3548
|
+
var _react = _interopRequireWildcard(React);
|
|
3580
3549
|
|
|
3581
3550
|
|
|
3582
3551
|
|
|
@@ -3604,12 +3573,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3604
3573
|
|
|
3605
3574
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3606
3575
|
|
|
3607
|
-
function
|
|
3576
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3608
3577
|
|
|
3609
|
-
function
|
|
3578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3610
3579
|
|
|
3611
3580
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3612
3581
|
|
|
3582
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3583
|
+
|
|
3584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3585
|
+
|
|
3613
3586
|
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); }
|
|
3614
3587
|
|
|
3615
3588
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3621,14 +3594,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3621
3594
|
function createSinglePlayer(activePlayer) {
|
|
3622
3595
|
var _class, _temp;
|
|
3623
3596
|
|
|
3624
|
-
return _temp = _class =
|
|
3625
|
-
/*#__PURE__*/
|
|
3626
|
-
function (_Component) {
|
|
3597
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3627
3598
|
_inherits(SinglePlayer, _Component);
|
|
3628
3599
|
|
|
3629
|
-
|
|
3630
|
-
var _getPrototypeOf2;
|
|
3600
|
+
var _super = _createSuper(SinglePlayer);
|
|
3631
3601
|
|
|
3602
|
+
function SinglePlayer() {
|
|
3632
3603
|
var _this;
|
|
3633
3604
|
|
|
3634
3605
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3637,7 +3608,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3637
3608
|
args[_key] = arguments[_key];
|
|
3638
3609
|
}
|
|
3639
3610
|
|
|
3640
|
-
_this =
|
|
3611
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3641
3612
|
|
|
3642
3613
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3643
3614
|
|
|
@@ -3705,12 +3676,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3705
3676
|
height = _this$props.height,
|
|
3706
3677
|
Wrapper = _this$props.wrapper;
|
|
3707
3678
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3708
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3679
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3709
3680
|
style: _objectSpread({}, style, {
|
|
3710
3681
|
width: width,
|
|
3711
3682
|
height: height
|
|
3712
3683
|
})
|
|
3713
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3684
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3714
3685
|
ref: this.ref,
|
|
3715
3686
|
activePlayer: activePlayer,
|
|
3716
3687
|
config: this.config
|
|
@@ -3732,7 +3703,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3732
3703
|
});
|
|
3733
3704
|
exports["default"] = exports.YouTube = void 0;
|
|
3734
3705
|
|
|
3735
|
-
var _react = _interopRequireWildcard(
|
|
3706
|
+
var _react = _interopRequireWildcard(React);
|
|
3736
3707
|
|
|
3737
3708
|
|
|
3738
3709
|
|
|
@@ -3756,23 +3727,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3756
3727
|
|
|
3757
3728
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3758
3729
|
|
|
3759
|
-
function
|
|
3730
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3760
3731
|
|
|
3761
|
-
function
|
|
3732
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3762
3733
|
|
|
3763
3734
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3764
3735
|
|
|
3736
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3737
|
+
|
|
3738
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3739
|
+
|
|
3765
3740
|
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); }
|
|
3766
3741
|
|
|
3767
3742
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3768
3743
|
|
|
3769
3744
|
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; }
|
|
3770
3745
|
|
|
3771
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3746
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3747
|
+
|
|
3748
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3749
|
+
|
|
3750
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3772
3751
|
|
|
3773
|
-
function
|
|
3752
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3774
3753
|
|
|
3775
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3754
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3776
3755
|
|
|
3777
3756
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3778
3757
|
|
|
@@ -3797,14 +3776,12 @@ function parsePlaylist(url) {
|
|
|
3797
3776
|
return {};
|
|
3798
3777
|
}
|
|
3799
3778
|
|
|
3800
|
-
var YouTube =
|
|
3801
|
-
/*#__PURE__*/
|
|
3802
|
-
function (_Component) {
|
|
3779
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3803
3780
|
_inherits(YouTube, _Component);
|
|
3804
3781
|
|
|
3805
|
-
|
|
3806
|
-
var _getPrototypeOf2;
|
|
3782
|
+
var _super = _createSuper(YouTube);
|
|
3807
3783
|
|
|
3784
|
+
function YouTube() {
|
|
3808
3785
|
var _this;
|
|
3809
3786
|
|
|
3810
3787
|
_classCallCheck(this, YouTube);
|
|
@@ -3813,7 +3790,7 @@ function (_Component) {
|
|
|
3813
3790
|
args[_key] = arguments[_key];
|
|
3814
3791
|
}
|
|
3815
3792
|
|
|
3816
|
-
_this =
|
|
3793
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3817
3794
|
|
|
3818
3795
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3819
3796
|
|
|
@@ -4001,9 +3978,9 @@ function (_Component) {
|
|
|
4001
3978
|
height: '100%',
|
|
4002
3979
|
display: display
|
|
4003
3980
|
};
|
|
4004
|
-
return _react["default"].createElement("div", {
|
|
3981
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4005
3982
|
style: style
|
|
4006
|
-
}, _react["default"].createElement("div", {
|
|
3983
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4007
3984
|
ref: this.ref
|
|
4008
3985
|
}));
|
|
4009
3986
|
}
|
|
@@ -4026,7 +4003,7 @@ exports["default"] = _default;
|
|
|
4026
4003
|
});
|
|
4027
4004
|
|
|
4028
4005
|
unwrapExports(YouTube_1);
|
|
4029
|
-
|
|
4006
|
+
YouTube_1.YouTube;
|
|
4030
4007
|
|
|
4031
4008
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4032
4009
|
|
|
@@ -4035,7 +4012,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4035
4012
|
});
|
|
4036
4013
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4037
4014
|
|
|
4038
|
-
var _react = _interopRequireWildcard(
|
|
4015
|
+
var _react = _interopRequireWildcard(React);
|
|
4039
4016
|
|
|
4040
4017
|
|
|
4041
4018
|
|
|
@@ -4059,12 +4036,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4059
4036
|
|
|
4060
4037
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4061
4038
|
|
|
4062
|
-
function
|
|
4039
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4063
4040
|
|
|
4064
|
-
function
|
|
4041
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4065
4042
|
|
|
4066
4043
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4067
4044
|
|
|
4045
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4046
|
+
|
|
4047
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4048
|
+
|
|
4068
4049
|
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); }
|
|
4069
4050
|
|
|
4070
4051
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4073,16 +4054,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4073
4054
|
|
|
4074
4055
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4075
4056
|
var SDK_GLOBAL = 'SC';
|
|
4076
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4057
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4077
4058
|
|
|
4078
|
-
var SoundCloud =
|
|
4079
|
-
/*#__PURE__*/
|
|
4080
|
-
function (_Component) {
|
|
4059
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4081
4060
|
_inherits(SoundCloud, _Component);
|
|
4082
4061
|
|
|
4083
|
-
|
|
4084
|
-
var _getPrototypeOf2;
|
|
4062
|
+
var _super = _createSuper(SoundCloud);
|
|
4085
4063
|
|
|
4064
|
+
function SoundCloud() {
|
|
4086
4065
|
var _this;
|
|
4087
4066
|
|
|
4088
4067
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4091,7 +4070,7 @@ function (_Component) {
|
|
|
4091
4070
|
args[_key] = arguments[_key];
|
|
4092
4071
|
}
|
|
4093
4072
|
|
|
4094
|
-
_this =
|
|
4073
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4095
4074
|
|
|
4096
4075
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4097
4076
|
|
|
@@ -4212,7 +4191,7 @@ function (_Component) {
|
|
|
4212
4191
|
height: '100%',
|
|
4213
4192
|
display: display
|
|
4214
4193
|
};
|
|
4215
|
-
return _react["default"].createElement("iframe", {
|
|
4194
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4216
4195
|
ref: this.ref,
|
|
4217
4196
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4218
4197
|
style: style,
|
|
@@ -4241,7 +4220,7 @@ exports["default"] = _default;
|
|
|
4241
4220
|
});
|
|
4242
4221
|
|
|
4243
4222
|
unwrapExports(SoundCloud_1);
|
|
4244
|
-
|
|
4223
|
+
SoundCloud_1.SoundCloud;
|
|
4245
4224
|
|
|
4246
4225
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4247
4226
|
|
|
@@ -4250,7 +4229,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4250
4229
|
});
|
|
4251
4230
|
exports["default"] = exports.Vimeo = void 0;
|
|
4252
4231
|
|
|
4253
|
-
var _react = _interopRequireWildcard(
|
|
4232
|
+
var _react = _interopRequireWildcard(React);
|
|
4254
4233
|
|
|
4255
4234
|
|
|
4256
4235
|
|
|
@@ -4274,12 +4253,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4274
4253
|
|
|
4275
4254
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4276
4255
|
|
|
4277
|
-
function
|
|
4256
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4278
4257
|
|
|
4279
|
-
function
|
|
4258
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4280
4259
|
|
|
4281
4260
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4282
4261
|
|
|
4262
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4263
|
+
|
|
4264
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4265
|
+
|
|
4283
4266
|
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); }
|
|
4284
4267
|
|
|
4285
4268
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4291,14 +4274,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4291
4274
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4292
4275
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4293
4276
|
|
|
4294
|
-
var Vimeo =
|
|
4295
|
-
/*#__PURE__*/
|
|
4296
|
-
function (_Component) {
|
|
4277
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4297
4278
|
_inherits(Vimeo, _Component);
|
|
4298
4279
|
|
|
4299
|
-
|
|
4300
|
-
var _getPrototypeOf2;
|
|
4280
|
+
var _super = _createSuper(Vimeo);
|
|
4301
4281
|
|
|
4282
|
+
function Vimeo() {
|
|
4302
4283
|
var _this;
|
|
4303
4284
|
|
|
4304
4285
|
_classCallCheck(this, Vimeo);
|
|
@@ -4307,7 +4288,7 @@ function (_Component) {
|
|
|
4307
4288
|
args[_key] = arguments[_key];
|
|
4308
4289
|
}
|
|
4309
4290
|
|
|
4310
|
-
_this =
|
|
4291
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4311
4292
|
|
|
4312
4293
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4313
4294
|
|
|
@@ -4464,7 +4445,7 @@ function (_Component) {
|
|
|
4464
4445
|
overflow: 'hidden',
|
|
4465
4446
|
display: display
|
|
4466
4447
|
};
|
|
4467
|
-
return _react["default"].createElement("div", {
|
|
4448
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4468
4449
|
key: this.props.url,
|
|
4469
4450
|
ref: this.ref,
|
|
4470
4451
|
style: style
|
|
@@ -4495,7 +4476,7 @@ exports["default"] = _default;
|
|
|
4495
4476
|
});
|
|
4496
4477
|
|
|
4497
4478
|
unwrapExports(Vimeo_1);
|
|
4498
|
-
|
|
4479
|
+
Vimeo_1.Vimeo;
|
|
4499
4480
|
|
|
4500
4481
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4501
4482
|
|
|
@@ -4504,7 +4485,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4504
4485
|
});
|
|
4505
4486
|
exports["default"] = exports.Facebook = void 0;
|
|
4506
4487
|
|
|
4507
|
-
var _react = _interopRequireWildcard(
|
|
4488
|
+
var _react = _interopRequireWildcard(React);
|
|
4508
4489
|
|
|
4509
4490
|
|
|
4510
4491
|
|
|
@@ -4524,12 +4505,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4524
4505
|
|
|
4525
4506
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4526
4507
|
|
|
4527
|
-
function
|
|
4508
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4528
4509
|
|
|
4529
|
-
function
|
|
4510
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4530
4511
|
|
|
4531
4512
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4532
4513
|
|
|
4514
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4515
|
+
|
|
4516
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4517
|
+
|
|
4533
4518
|
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); }
|
|
4534
4519
|
|
|
4535
4520
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4542,14 +4527,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4542
4527
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4543
4528
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4544
4529
|
|
|
4545
|
-
var Facebook =
|
|
4546
|
-
/*#__PURE__*/
|
|
4547
|
-
function (_Component) {
|
|
4530
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4548
4531
|
_inherits(Facebook, _Component);
|
|
4549
4532
|
|
|
4550
|
-
|
|
4551
|
-
var _getPrototypeOf2;
|
|
4533
|
+
var _super = _createSuper(Facebook);
|
|
4552
4534
|
|
|
4535
|
+
function Facebook() {
|
|
4553
4536
|
var _this;
|
|
4554
4537
|
|
|
4555
4538
|
_classCallCheck(this, Facebook);
|
|
@@ -4558,7 +4541,7 @@ function (_Component) {
|
|
|
4558
4541
|
args[_key] = arguments[_key];
|
|
4559
4542
|
}
|
|
4560
4543
|
|
|
4561
|
-
_this =
|
|
4544
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4562
4545
|
|
|
4563
4546
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4564
4547
|
|
|
@@ -4674,7 +4657,7 @@ function (_Component) {
|
|
|
4674
4657
|
width: '100%',
|
|
4675
4658
|
height: '100%'
|
|
4676
4659
|
};
|
|
4677
|
-
return _react["default"].createElement("div", {
|
|
4660
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4678
4661
|
style: style,
|
|
4679
4662
|
id: this.playerID,
|
|
4680
4663
|
className: "fb-video",
|
|
@@ -4705,7 +4688,7 @@ exports["default"] = _default;
|
|
|
4705
4688
|
});
|
|
4706
4689
|
|
|
4707
4690
|
unwrapExports(Facebook_1);
|
|
4708
|
-
|
|
4691
|
+
Facebook_1.Facebook;
|
|
4709
4692
|
|
|
4710
4693
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4711
4694
|
|
|
@@ -4714,7 +4697,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4714
4697
|
});
|
|
4715
4698
|
exports["default"] = exports.Streamable = void 0;
|
|
4716
4699
|
|
|
4717
|
-
var _react = _interopRequireWildcard(
|
|
4700
|
+
var _react = _interopRequireWildcard(React);
|
|
4718
4701
|
|
|
4719
4702
|
|
|
4720
4703
|
|
|
@@ -4734,12 +4717,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4734
4717
|
|
|
4735
4718
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4736
4719
|
|
|
4737
|
-
function
|
|
4720
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4738
4721
|
|
|
4739
|
-
function
|
|
4722
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4740
4723
|
|
|
4741
4724
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4742
4725
|
|
|
4726
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4727
|
+
|
|
4728
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4729
|
+
|
|
4743
4730
|
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); }
|
|
4744
4731
|
|
|
4745
4732
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4750,14 +4737,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4750
4737
|
var SDK_GLOBAL = 'playerjs';
|
|
4751
4738
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4752
4739
|
|
|
4753
|
-
var Streamable =
|
|
4754
|
-
/*#__PURE__*/
|
|
4755
|
-
function (_Component) {
|
|
4740
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4756
4741
|
_inherits(Streamable, _Component);
|
|
4757
4742
|
|
|
4758
|
-
|
|
4759
|
-
var _getPrototypeOf2;
|
|
4743
|
+
var _super = _createSuper(Streamable);
|
|
4760
4744
|
|
|
4745
|
+
function Streamable() {
|
|
4761
4746
|
var _this;
|
|
4762
4747
|
|
|
4763
4748
|
_classCallCheck(this, Streamable);
|
|
@@ -4766,7 +4751,7 @@ function (_Component) {
|
|
|
4766
4751
|
args[_key] = arguments[_key];
|
|
4767
4752
|
}
|
|
4768
4753
|
|
|
4769
|
-
_this =
|
|
4754
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4770
4755
|
|
|
4771
4756
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4772
4757
|
|
|
@@ -4886,7 +4871,7 @@ function (_Component) {
|
|
|
4886
4871
|
width: '100%',
|
|
4887
4872
|
height: '100%'
|
|
4888
4873
|
};
|
|
4889
|
-
return _react["default"].createElement("iframe", {
|
|
4874
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4890
4875
|
ref: this.ref,
|
|
4891
4876
|
src: "https://streamable.com/o/".concat(id),
|
|
4892
4877
|
frameBorder: "0",
|
|
@@ -4914,7 +4899,7 @@ exports["default"] = _default;
|
|
|
4914
4899
|
});
|
|
4915
4900
|
|
|
4916
4901
|
unwrapExports(Streamable_1);
|
|
4917
|
-
|
|
4902
|
+
Streamable_1.Streamable;
|
|
4918
4903
|
|
|
4919
4904
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4920
4905
|
|
|
@@ -4923,7 +4908,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4923
4908
|
});
|
|
4924
4909
|
exports["default"] = exports.Wistia = void 0;
|
|
4925
4910
|
|
|
4926
|
-
var _react = _interopRequireWildcard(
|
|
4911
|
+
var _react = _interopRequireWildcard(React);
|
|
4927
4912
|
|
|
4928
4913
|
|
|
4929
4914
|
|
|
@@ -4947,12 +4932,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4947
4932
|
|
|
4948
4933
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4949
4934
|
|
|
4950
|
-
function
|
|
4935
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4951
4936
|
|
|
4952
|
-
function
|
|
4937
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4953
4938
|
|
|
4954
4939
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4955
4940
|
|
|
4941
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4942
|
+
|
|
4943
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4944
|
+
|
|
4956
4945
|
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); }
|
|
4957
4946
|
|
|
4958
4947
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4963,26 +4952,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4963
4952
|
var SDK_GLOBAL = 'Wistia';
|
|
4964
4953
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4965
4954
|
|
|
4966
|
-
var Wistia =
|
|
4967
|
-
/*#__PURE__*/
|
|
4968
|
-
function (_Component) {
|
|
4955
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4969
4956
|
_inherits(Wistia, _Component);
|
|
4970
4957
|
|
|
4971
|
-
|
|
4972
|
-
var _getPrototypeOf2;
|
|
4958
|
+
var _super = _createSuper(Wistia);
|
|
4973
4959
|
|
|
4960
|
+
function Wistia() {
|
|
4974
4961
|
var _this;
|
|
4975
4962
|
|
|
4976
4963
|
_classCallCheck(this, Wistia);
|
|
4977
4964
|
|
|
4978
|
-
for (var _len = arguments.length,
|
|
4979
|
-
|
|
4965
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4966
|
+
_args[_key] = arguments[_key];
|
|
4980
4967
|
}
|
|
4981
4968
|
|
|
4982
|
-
_this =
|
|
4969
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4983
4970
|
|
|
4984
4971
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4985
4972
|
|
|
4973
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4974
|
+
var _this$props;
|
|
4975
|
+
|
|
4976
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4977
|
+
});
|
|
4978
|
+
|
|
4979
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4980
|
+
var _this$props2;
|
|
4981
|
+
|
|
4982
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4983
|
+
});
|
|
4984
|
+
|
|
4985
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4986
|
+
var _this$props3;
|
|
4987
|
+
|
|
4988
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4992
|
+
var _this$props4;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
4986
4997
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4987
4998
|
_this.callPlayer('mute');
|
|
4988
4999
|
});
|
|
@@ -5004,17 +5015,13 @@ function (_Component) {
|
|
|
5004
5015
|
value: function load(url) {
|
|
5005
5016
|
var _this2 = this;
|
|
5006
5017
|
|
|
5007
|
-
var _this$
|
|
5008
|
-
playing = _this$
|
|
5009
|
-
muted = _this$
|
|
5010
|
-
controls = _this$
|
|
5011
|
-
_onReady = _this$
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
onSeek = _this$props.onSeek,
|
|
5015
|
-
onEnded = _this$props.onEnded,
|
|
5016
|
-
config = _this$props.config,
|
|
5017
|
-
onError = _this$props.onError;
|
|
5018
|
+
var _this$props5 = this.props,
|
|
5019
|
+
playing = _this$props5.playing,
|
|
5020
|
+
muted = _this$props5.muted,
|
|
5021
|
+
controls = _this$props5.controls,
|
|
5022
|
+
_onReady = _this$props5.onReady,
|
|
5023
|
+
config = _this$props5.config,
|
|
5024
|
+
onError = _this$props5.onError;
|
|
5018
5025
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5019
5026
|
window._wq = window._wq || [];
|
|
5020
5027
|
|
|
@@ -5031,19 +5038,28 @@ function (_Component) {
|
|
|
5031
5038
|
|
|
5032
5039
|
_this2.unbind();
|
|
5033
5040
|
|
|
5034
|
-
_this2.player.bind('play', onPlay);
|
|
5041
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5035
5042
|
|
|
5036
|
-
_this2.player.bind('pause', onPause);
|
|
5043
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5037
5044
|
|
|
5038
|
-
_this2.player.bind('seek', onSeek);
|
|
5045
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5039
5046
|
|
|
5040
|
-
_this2.player.bind('end', onEnded);
|
|
5047
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5041
5048
|
|
|
5042
5049
|
_onReady();
|
|
5043
5050
|
}
|
|
5044
5051
|
});
|
|
5045
5052
|
}, onError);
|
|
5046
5053
|
}
|
|
5054
|
+
}, {
|
|
5055
|
+
key: "unbind",
|
|
5056
|
+
value: function unbind() {
|
|
5057
|
+
this.player.unbind('play', this.onPlay);
|
|
5058
|
+
this.player.unbind('pause', this.onPause);
|
|
5059
|
+
this.player.unbind('seek', this.onSeek);
|
|
5060
|
+
this.player.unbind('end', this.onEnded);
|
|
5061
|
+
} // Proxy methods to prevent listener leaks
|
|
5062
|
+
|
|
5047
5063
|
}, {
|
|
5048
5064
|
key: "play",
|
|
5049
5065
|
value: function play() {
|
|
@@ -5054,19 +5070,6 @@ function (_Component) {
|
|
|
5054
5070
|
value: function pause() {
|
|
5055
5071
|
this.callPlayer('pause');
|
|
5056
5072
|
}
|
|
5057
|
-
}, {
|
|
5058
|
-
key: "unbind",
|
|
5059
|
-
value: function unbind() {
|
|
5060
|
-
var _this$props2 = this.props,
|
|
5061
|
-
onPlay = _this$props2.onPlay,
|
|
5062
|
-
onPause = _this$props2.onPause,
|
|
5063
|
-
onSeek = _this$props2.onSeek,
|
|
5064
|
-
onEnded = _this$props2.onEnded;
|
|
5065
|
-
this.player.unbind('play', onPlay);
|
|
5066
|
-
this.player.unbind('pause', onPause);
|
|
5067
|
-
this.player.unbind('seek', onSeek);
|
|
5068
|
-
this.player.unbind('end', onEnded);
|
|
5069
|
-
}
|
|
5070
5073
|
}, {
|
|
5071
5074
|
key: "stop",
|
|
5072
5075
|
value: function stop() {
|
|
@@ -5112,7 +5115,7 @@ function (_Component) {
|
|
|
5112
5115
|
width: '100%',
|
|
5113
5116
|
height: '100%'
|
|
5114
5117
|
};
|
|
5115
|
-
return _react["default"].createElement("div", {
|
|
5118
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5116
5119
|
key: id,
|
|
5117
5120
|
className: className,
|
|
5118
5121
|
style: style
|
|
@@ -5139,7 +5142,7 @@ exports["default"] = _default;
|
|
|
5139
5142
|
});
|
|
5140
5143
|
|
|
5141
5144
|
unwrapExports(Wistia_1);
|
|
5142
|
-
|
|
5145
|
+
Wistia_1.Wistia;
|
|
5143
5146
|
|
|
5144
5147
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5145
5148
|
|
|
@@ -5148,7 +5151,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5148
5151
|
});
|
|
5149
5152
|
exports["default"] = exports.Twitch = void 0;
|
|
5150
5153
|
|
|
5151
|
-
var _react = _interopRequireWildcard(
|
|
5154
|
+
var _react = _interopRequireWildcard(React);
|
|
5152
5155
|
|
|
5153
5156
|
|
|
5154
5157
|
|
|
@@ -5172,12 +5175,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5172
5175
|
|
|
5173
5176
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5174
5177
|
|
|
5175
|
-
function
|
|
5178
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5176
5179
|
|
|
5177
|
-
function
|
|
5180
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5178
5181
|
|
|
5179
5182
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5180
5183
|
|
|
5184
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5185
|
+
|
|
5186
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5187
|
+
|
|
5181
5188
|
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); }
|
|
5182
5189
|
|
|
5183
5190
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5190,14 +5197,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5190
5197
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5191
5198
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5192
5199
|
|
|
5193
|
-
var Twitch =
|
|
5194
|
-
/*#__PURE__*/
|
|
5195
|
-
function (_Component) {
|
|
5200
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5196
5201
|
_inherits(Twitch, _Component);
|
|
5197
5202
|
|
|
5198
|
-
|
|
5199
|
-
var _getPrototypeOf2;
|
|
5203
|
+
var _super = _createSuper(Twitch);
|
|
5200
5204
|
|
|
5205
|
+
function Twitch() {
|
|
5201
5206
|
var _this;
|
|
5202
5207
|
|
|
5203
5208
|
_classCallCheck(this, Twitch);
|
|
@@ -5206,7 +5211,7 @@ function (_Component) {
|
|
|
5206
5211
|
args[_key] = arguments[_key];
|
|
5207
5212
|
}
|
|
5208
5213
|
|
|
5209
|
-
_this =
|
|
5214
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5210
5215
|
|
|
5211
5216
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5212
5217
|
|
|
@@ -5327,7 +5332,7 @@ function (_Component) {
|
|
|
5327
5332
|
width: '100%',
|
|
5328
5333
|
height: '100%'
|
|
5329
5334
|
};
|
|
5330
|
-
return _react["default"].createElement("div", {
|
|
5335
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5331
5336
|
style: style,
|
|
5332
5337
|
id: this.playerID
|
|
5333
5338
|
});
|
|
@@ -5353,7 +5358,7 @@ exports["default"] = _default;
|
|
|
5353
5358
|
});
|
|
5354
5359
|
|
|
5355
5360
|
unwrapExports(Twitch_1);
|
|
5356
|
-
|
|
5361
|
+
Twitch_1.Twitch;
|
|
5357
5362
|
|
|
5358
5363
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5359
5364
|
|
|
@@ -5362,7 +5367,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5362
5367
|
});
|
|
5363
5368
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5364
5369
|
|
|
5365
|
-
var _react = _interopRequireWildcard(
|
|
5370
|
+
var _react = _interopRequireWildcard(React);
|
|
5366
5371
|
|
|
5367
5372
|
|
|
5368
5373
|
|
|
@@ -5380,11 +5385,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5380
5385
|
|
|
5381
5386
|
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; }
|
|
5382
5387
|
|
|
5383
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5388
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5389
|
+
|
|
5390
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5384
5391
|
|
|
5385
|
-
function
|
|
5392
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5386
5393
|
|
|
5387
|
-
function
|
|
5394
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5395
|
+
|
|
5396
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5388
5397
|
|
|
5389
5398
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5390
5399
|
|
|
@@ -5394,12 +5403,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5394
5403
|
|
|
5395
5404
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5396
5405
|
|
|
5397
|
-
function
|
|
5406
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5398
5407
|
|
|
5399
|
-
function
|
|
5408
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5400
5409
|
|
|
5401
5410
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5402
5411
|
|
|
5412
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5413
|
+
|
|
5414
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5415
|
+
|
|
5403
5416
|
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); }
|
|
5404
5417
|
|
|
5405
5418
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5411,14 +5424,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5411
5424
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5412
5425
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5413
5426
|
|
|
5414
|
-
var DailyMotion =
|
|
5415
|
-
/*#__PURE__*/
|
|
5416
|
-
function (_Component) {
|
|
5427
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5417
5428
|
_inherits(DailyMotion, _Component);
|
|
5418
5429
|
|
|
5419
|
-
|
|
5420
|
-
var _getPrototypeOf2;
|
|
5430
|
+
var _super = _createSuper(DailyMotion);
|
|
5421
5431
|
|
|
5432
|
+
function DailyMotion() {
|
|
5422
5433
|
var _this;
|
|
5423
5434
|
|
|
5424
5435
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5427,7 +5438,7 @@ function (_Component) {
|
|
|
5427
5438
|
args[_key] = arguments[_key];
|
|
5428
5439
|
}
|
|
5429
5440
|
|
|
5430
|
-
_this =
|
|
5441
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5431
5442
|
|
|
5432
5443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5433
5444
|
|
|
@@ -5556,9 +5567,9 @@ function (_Component) {
|
|
|
5556
5567
|
height: '100%',
|
|
5557
5568
|
display: display
|
|
5558
5569
|
};
|
|
5559
|
-
return _react["default"].createElement("div", {
|
|
5570
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5560
5571
|
style: style
|
|
5561
|
-
}, _react["default"].createElement("div", {
|
|
5572
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5562
5573
|
ref: this.ref
|
|
5563
5574
|
}));
|
|
5564
5575
|
}
|
|
@@ -5583,7 +5594,7 @@ exports["default"] = _default;
|
|
|
5583
5594
|
});
|
|
5584
5595
|
|
|
5585
5596
|
unwrapExports(DailyMotion_1);
|
|
5586
|
-
|
|
5597
|
+
DailyMotion_1.DailyMotion;
|
|
5587
5598
|
|
|
5588
5599
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5589
5600
|
|
|
@@ -5592,7 +5603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5592
5603
|
});
|
|
5593
5604
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5594
5605
|
|
|
5595
|
-
var _react = _interopRequireWildcard(
|
|
5606
|
+
var _react = _interopRequireWildcard(React);
|
|
5596
5607
|
|
|
5597
5608
|
|
|
5598
5609
|
|
|
@@ -5616,12 +5627,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5616
5627
|
|
|
5617
5628
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5618
5629
|
|
|
5619
|
-
function
|
|
5630
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5620
5631
|
|
|
5621
|
-
function
|
|
5632
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5622
5633
|
|
|
5623
5634
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5624
5635
|
|
|
5636
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5637
|
+
|
|
5638
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5639
|
+
|
|
5625
5640
|
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); }
|
|
5626
5641
|
|
|
5627
5642
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5632,14 +5647,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5632
5647
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5633
5648
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5634
5649
|
|
|
5635
|
-
var Mixcloud =
|
|
5636
|
-
/*#__PURE__*/
|
|
5637
|
-
function (_Component) {
|
|
5650
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5638
5651
|
_inherits(Mixcloud, _Component);
|
|
5639
5652
|
|
|
5640
|
-
|
|
5641
|
-
var _getPrototypeOf2;
|
|
5653
|
+
var _super = _createSuper(Mixcloud);
|
|
5642
5654
|
|
|
5655
|
+
function Mixcloud() {
|
|
5643
5656
|
var _this;
|
|
5644
5657
|
|
|
5645
5658
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5648,7 +5661,7 @@ function (_Component) {
|
|
|
5648
5661
|
args[_key] = arguments[_key];
|
|
5649
5662
|
}
|
|
5650
5663
|
|
|
5651
|
-
_this =
|
|
5664
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5652
5665
|
|
|
5653
5666
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5654
5667
|
|
|
@@ -5751,7 +5764,7 @@ function (_Component) {
|
|
|
5751
5764
|
})); // We have to give the iframe a key here to prevent a
|
|
5752
5765
|
// weird dialog appearing when loading a new track
|
|
5753
5766
|
|
|
5754
|
-
return _react["default"].createElement("iframe", {
|
|
5767
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5755
5768
|
key: id,
|
|
5756
5769
|
ref: this.ref,
|
|
5757
5770
|
style: style,
|
|
@@ -5780,7 +5793,7 @@ exports["default"] = _default;
|
|
|
5780
5793
|
});
|
|
5781
5794
|
|
|
5782
5795
|
unwrapExports(Mixcloud_1);
|
|
5783
|
-
|
|
5796
|
+
Mixcloud_1.Mixcloud;
|
|
5784
5797
|
|
|
5785
5798
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5786
5799
|
|
|
@@ -5789,7 +5802,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5789
5802
|
});
|
|
5790
5803
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5791
5804
|
|
|
5792
|
-
var _react = _interopRequireWildcard(
|
|
5805
|
+
var _react = _interopRequireWildcard(React);
|
|
5793
5806
|
|
|
5794
5807
|
|
|
5795
5808
|
|
|
@@ -5811,23 +5824,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5811
5824
|
|
|
5812
5825
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5813
5826
|
|
|
5814
|
-
function
|
|
5827
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5815
5828
|
|
|
5816
|
-
function
|
|
5829
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5817
5830
|
|
|
5818
5831
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5819
5832
|
|
|
5833
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5834
|
+
|
|
5835
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5836
|
+
|
|
5820
5837
|
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); }
|
|
5821
5838
|
|
|
5822
5839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5823
5840
|
|
|
5824
5841
|
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; }
|
|
5825
5842
|
|
|
5843
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5844
|
+
|
|
5845
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5846
|
+
|
|
5847
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5848
|
+
|
|
5826
5849
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5827
5850
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5828
5851
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5829
5852
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5830
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5853
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5831
5854
|
var HLS_GLOBAL = 'Hls';
|
|
5832
5855
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5833
5856
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5836,12 +5859,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5836
5859
|
|
|
5837
5860
|
function canPlay(url) {
|
|
5838
5861
|
if (url instanceof Array) {
|
|
5839
|
-
var
|
|
5840
|
-
|
|
5841
|
-
var _iteratorError = undefined;
|
|
5862
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5863
|
+
_step;
|
|
5842
5864
|
|
|
5843
5865
|
try {
|
|
5844
|
-
for (
|
|
5866
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5845
5867
|
var item = _step.value;
|
|
5846
5868
|
|
|
5847
5869
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5853,18 +5875,9 @@ function canPlay(url) {
|
|
|
5853
5875
|
}
|
|
5854
5876
|
}
|
|
5855
5877
|
} catch (err) {
|
|
5856
|
-
|
|
5857
|
-
_iteratorError = err;
|
|
5878
|
+
_iterator.e(err);
|
|
5858
5879
|
} finally {
|
|
5859
|
-
|
|
5860
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5861
|
-
_iterator["return"]();
|
|
5862
|
-
}
|
|
5863
|
-
} finally {
|
|
5864
|
-
if (_didIteratorError) {
|
|
5865
|
-
throw _iteratorError;
|
|
5866
|
-
}
|
|
5867
|
-
}
|
|
5880
|
+
_iterator.f();
|
|
5868
5881
|
}
|
|
5869
5882
|
|
|
5870
5883
|
return false;
|
|
@@ -5888,14 +5901,12 @@ function canEnablePIP(url) {
|
|
|
5888
5901
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5889
5902
|
}
|
|
5890
5903
|
|
|
5891
|
-
var FilePlayer =
|
|
5892
|
-
/*#__PURE__*/
|
|
5893
|
-
function (_Component) {
|
|
5904
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5894
5905
|
_inherits(FilePlayer, _Component);
|
|
5895
5906
|
|
|
5896
|
-
|
|
5897
|
-
var _getPrototypeOf2;
|
|
5907
|
+
var _super = _createSuper(FilePlayer);
|
|
5898
5908
|
|
|
5909
|
+
function FilePlayer() {
|
|
5899
5910
|
var _this;
|
|
5900
5911
|
|
|
5901
5912
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5904,7 +5915,7 @@ function (_Component) {
|
|
|
5904
5915
|
_args[_key] = arguments[_key];
|
|
5905
5916
|
}
|
|
5906
5917
|
|
|
5907
|
-
_this =
|
|
5918
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5908
5919
|
|
|
5909
5920
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5910
5921
|
var _this$props;
|
|
@@ -5991,19 +6002,19 @@ function (_Component) {
|
|
|
5991
6002
|
|
|
5992
6003
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5993
6004
|
if (typeof source === 'string') {
|
|
5994
|
-
return _react["default"].createElement("source", {
|
|
6005
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5995
6006
|
key: index,
|
|
5996
6007
|
src: source
|
|
5997
6008
|
});
|
|
5998
6009
|
}
|
|
5999
6010
|
|
|
6000
|
-
return _react["default"].createElement("source", _extends({
|
|
6011
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6001
6012
|
key: index
|
|
6002
6013
|
}, source));
|
|
6003
6014
|
});
|
|
6004
6015
|
|
|
6005
6016
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6006
|
-
return _react["default"].createElement("track", _extends({
|
|
6017
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6007
6018
|
key: index
|
|
6008
6019
|
}, track));
|
|
6009
6020
|
});
|
|
@@ -6041,6 +6052,10 @@ function (_Component) {
|
|
|
6041
6052
|
key: "componentWillUnmount",
|
|
6042
6053
|
value: function componentWillUnmount() {
|
|
6043
6054
|
this.removeListeners(this.player);
|
|
6055
|
+
|
|
6056
|
+
if (this.hls) {
|
|
6057
|
+
this.hls.destroy();
|
|
6058
|
+
}
|
|
6044
6059
|
}
|
|
6045
6060
|
}, {
|
|
6046
6061
|
key: "addListeners",
|
|
@@ -6171,10 +6186,6 @@ function (_Component) {
|
|
|
6171
6186
|
value: function stop() {
|
|
6172
6187
|
this.player.removeAttribute('src');
|
|
6173
6188
|
|
|
6174
|
-
if (this.hls) {
|
|
6175
|
-
this.hls.destroy();
|
|
6176
|
-
}
|
|
6177
|
-
|
|
6178
6189
|
if (this.dash) {
|
|
6179
6190
|
this.dash.reset();
|
|
6180
6191
|
}
|
|
@@ -6286,7 +6297,7 @@ function (_Component) {
|
|
|
6286
6297
|
width: width === 'auto' ? width : '100%',
|
|
6287
6298
|
height: height === 'auto' ? height : '100%'
|
|
6288
6299
|
};
|
|
6289
|
-
return _react["default"].createElement(Element, _extends({
|
|
6300
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6290
6301
|
ref: this.ref,
|
|
6291
6302
|
src: this.getSource(url),
|
|
6292
6303
|
style: style,
|
|
@@ -6316,7 +6327,7 @@ exports["default"] = _default;
|
|
|
6316
6327
|
});
|
|
6317
6328
|
|
|
6318
6329
|
unwrapExports(FilePlayer_1);
|
|
6319
|
-
|
|
6330
|
+
FilePlayer_1.FilePlayer;
|
|
6320
6331
|
|
|
6321
6332
|
var players = createCommonjsModule(function (module, exports) {
|
|
6322
6333
|
|
|
@@ -6358,7 +6369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6358
6369
|
});
|
|
6359
6370
|
exports["default"] = void 0;
|
|
6360
6371
|
|
|
6361
|
-
var _react = _interopRequireWildcard(
|
|
6372
|
+
var _react = _interopRequireWildcard(React);
|
|
6362
6373
|
|
|
6363
6374
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6364
6375
|
|
|
@@ -6376,12 +6387,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6376
6387
|
|
|
6377
6388
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6378
6389
|
|
|
6379
|
-
function
|
|
6390
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6380
6391
|
|
|
6381
|
-
function
|
|
6392
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6382
6393
|
|
|
6383
6394
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6384
6395
|
|
|
6396
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6397
|
+
|
|
6398
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6399
|
+
|
|
6385
6400
|
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); }
|
|
6386
6401
|
|
|
6387
6402
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6390,14 +6405,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6390
6405
|
|
|
6391
6406
|
var ICON_SIZE = '64px';
|
|
6392
6407
|
|
|
6393
|
-
var Preview =
|
|
6394
|
-
/*#__PURE__*/
|
|
6395
|
-
function (_Component) {
|
|
6408
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6396
6409
|
_inherits(Preview, _Component);
|
|
6397
6410
|
|
|
6398
|
-
|
|
6399
|
-
var _getPrototypeOf2;
|
|
6411
|
+
var _super = _createSuper(Preview);
|
|
6400
6412
|
|
|
6413
|
+
function Preview() {
|
|
6401
6414
|
var _this;
|
|
6402
6415
|
|
|
6403
6416
|
_classCallCheck(this, Preview);
|
|
@@ -6406,7 +6419,7 @@ function (_Component) {
|
|
|
6406
6419
|
args[_key] = arguments[_key];
|
|
6407
6420
|
}
|
|
6408
6421
|
|
|
6409
|
-
_this =
|
|
6422
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6410
6423
|
|
|
6411
6424
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6412
6425
|
|
|
@@ -6504,15 +6517,15 @@ function (_Component) {
|
|
|
6504
6517
|
}
|
|
6505
6518
|
};
|
|
6506
6519
|
|
|
6507
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6520
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6508
6521
|
style: styles.shadow,
|
|
6509
6522
|
className: "react-player__shadow"
|
|
6510
|
-
}, _react["default"].createElement("div", {
|
|
6523
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6511
6524
|
style: styles.playIcon,
|
|
6512
6525
|
className: "react-player__play-icon"
|
|
6513
6526
|
}));
|
|
6514
6527
|
|
|
6515
|
-
return _react["default"].createElement("div", {
|
|
6528
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6516
6529
|
style: styles.preview,
|
|
6517
6530
|
className: "react-player__preview",
|
|
6518
6531
|
onClick: onClick
|
|
@@ -6535,7 +6548,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6535
6548
|
});
|
|
6536
6549
|
exports["default"] = renderPreloadPlayers;
|
|
6537
6550
|
|
|
6538
|
-
var _react = _interopRequireDefault(
|
|
6551
|
+
var _react = _interopRequireDefault(React);
|
|
6539
6552
|
|
|
6540
6553
|
var _Player = _interopRequireDefault(Player_1);
|
|
6541
6554
|
|
|
@@ -6549,6 +6562,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6549
6562
|
|
|
6550
6563
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6551
6564
|
|
|
6565
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6566
|
+
|
|
6567
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6568
|
+
|
|
6569
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6570
|
+
|
|
6552
6571
|
var PRELOAD_PLAYERS = [{
|
|
6553
6572
|
Player: YouTube_1.YouTube,
|
|
6554
6573
|
configKey: 'youtube',
|
|
@@ -6569,16 +6588,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6569
6588
|
|
|
6570
6589
|
function renderPreloadPlayers(url, controls, config) {
|
|
6571
6590
|
var players = [];
|
|
6572
|
-
|
|
6573
|
-
var
|
|
6574
|
-
|
|
6591
|
+
|
|
6592
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6593
|
+
_step;
|
|
6575
6594
|
|
|
6576
6595
|
try {
|
|
6577
|
-
for (
|
|
6596
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6578
6597
|
var player = _step.value;
|
|
6579
6598
|
|
|
6580
6599
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6581
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6600
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6582
6601
|
key: player.Player.displayName,
|
|
6583
6602
|
activePlayer: player.Player,
|
|
6584
6603
|
url: player.url,
|
|
@@ -6590,18 +6609,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6590
6609
|
}
|
|
6591
6610
|
}
|
|
6592
6611
|
} catch (err) {
|
|
6593
|
-
|
|
6594
|
-
_iteratorError = err;
|
|
6612
|
+
_iterator.e(err);
|
|
6595
6613
|
} finally {
|
|
6596
|
-
|
|
6597
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6598
|
-
_iterator["return"]();
|
|
6599
|
-
}
|
|
6600
|
-
} finally {
|
|
6601
|
-
if (_didIteratorError) {
|
|
6602
|
-
throw _iteratorError;
|
|
6603
|
-
}
|
|
6604
|
-
}
|
|
6614
|
+
_iterator.f();
|
|
6605
6615
|
}
|
|
6606
6616
|
|
|
6607
6617
|
return players;
|
|
@@ -6677,7 +6687,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6677
6687
|
});
|
|
6678
6688
|
exports["default"] = void 0;
|
|
6679
6689
|
|
|
6680
|
-
var _react = _interopRequireWildcard(
|
|
6690
|
+
var _react = _interopRequireWildcard(React);
|
|
6681
6691
|
|
|
6682
6692
|
|
|
6683
6693
|
|
|
@@ -6725,13 +6735,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6725
6735
|
|
|
6726
6736
|
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); }
|
|
6727
6737
|
|
|
6728
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6738
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6739
|
+
|
|
6740
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6741
|
+
|
|
6742
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6729
6743
|
|
|
6730
|
-
function
|
|
6744
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6731
6745
|
|
|
6732
|
-
function
|
|
6746
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6733
6747
|
|
|
6734
|
-
function
|
|
6748
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6735
6749
|
|
|
6736
6750
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6737
6751
|
|
|
@@ -6739,12 +6753,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6739
6753
|
|
|
6740
6754
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6741
6755
|
|
|
6742
|
-
function
|
|
6756
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6743
6757
|
|
|
6744
|
-
function
|
|
6758
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6745
6759
|
|
|
6746
6760
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6747
6761
|
|
|
6762
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6763
|
+
|
|
6764
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6765
|
+
|
|
6748
6766
|
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); }
|
|
6749
6767
|
|
|
6750
6768
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6754,14 +6772,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6754
6772
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6755
6773
|
var customPlayers = [];
|
|
6756
6774
|
|
|
6757
|
-
var ReactPlayer =
|
|
6758
|
-
/*#__PURE__*/
|
|
6759
|
-
function (_Component) {
|
|
6775
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6760
6776
|
_inherits(ReactPlayer, _Component);
|
|
6761
6777
|
|
|
6762
|
-
|
|
6763
|
-
var _getPrototypeOf2;
|
|
6778
|
+
var _super = _createSuper(ReactPlayer);
|
|
6764
6779
|
|
|
6780
|
+
function ReactPlayer() {
|
|
6765
6781
|
var _this;
|
|
6766
6782
|
|
|
6767
6783
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6770,7 +6786,7 @@ function (_Component) {
|
|
|
6770
6786
|
args[_key] = arguments[_key];
|
|
6771
6787
|
}
|
|
6772
6788
|
|
|
6773
|
-
_this =
|
|
6789
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6774
6790
|
|
|
6775
6791
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6776
6792
|
|
|
@@ -6881,7 +6897,7 @@ function (_Component) {
|
|
|
6881
6897
|
key: "renderActivePlayer",
|
|
6882
6898
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6883
6899
|
if (!url) return null;
|
|
6884
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6900
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6885
6901
|
key: activePlayer.displayName,
|
|
6886
6902
|
ref: this.activePlayerRef,
|
|
6887
6903
|
config: this.config,
|
|
@@ -6918,14 +6934,14 @@ function (_Component) {
|
|
|
6918
6934
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6919
6935
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6920
6936
|
|
|
6921
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6937
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6922
6938
|
url: url,
|
|
6923
6939
|
light: light,
|
|
6924
6940
|
playIcon: playIcon,
|
|
6925
6941
|
onClick: this.handleClickPreview
|
|
6926
6942
|
});
|
|
6927
6943
|
|
|
6928
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6944
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6929
6945
|
ref: this.wrapperRef,
|
|
6930
6946
|
style: _objectSpread({}, style, {
|
|
6931
6947
|
width: width,
|
|
@@ -6985,20 +7001,20 @@ var Audio = function Audio(_ref) {
|
|
|
6985
7001
|
var node = _ref.node;
|
|
6986
7002
|
|
|
6987
7003
|
if (node.uploadAudio) {
|
|
6988
|
-
return
|
|
7004
|
+
return React.createElement(
|
|
6989
7005
|
'div',
|
|
6990
7006
|
{ className: 'audio d-block text-center mb-3' },
|
|
6991
|
-
|
|
7007
|
+
React.createElement(
|
|
6992
7008
|
'audio',
|
|
6993
7009
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6994
|
-
|
|
6995
|
-
|
|
7010
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7011
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6996
7012
|
'Your browser does not support the audio element.'
|
|
6997
7013
|
),
|
|
6998
|
-
node.caption &&
|
|
7014
|
+
node.caption && React.createElement(
|
|
6999
7015
|
'p',
|
|
7000
7016
|
{ style: { fontSize: '.9rem' } },
|
|
7001
|
-
|
|
7017
|
+
React.createElement(
|
|
7002
7018
|
'em',
|
|
7003
7019
|
null,
|
|
7004
7020
|
node.caption
|
|
@@ -7008,15 +7024,15 @@ var Audio = function Audio(_ref) {
|
|
|
7008
7024
|
} else if (node.audioFilePth) {
|
|
7009
7025
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7010
7026
|
if (hostname === 'embeds.audioboom.com') {
|
|
7011
|
-
return
|
|
7027
|
+
return React.createElement(
|
|
7012
7028
|
'div',
|
|
7013
7029
|
null,
|
|
7014
|
-
|
|
7030
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7015
7031
|
' ',
|
|
7016
|
-
node.caption &&
|
|
7032
|
+
node.caption && React.createElement(
|
|
7017
7033
|
'p',
|
|
7018
7034
|
{ style: { fontSize: '.9rem' } },
|
|
7019
|
-
|
|
7035
|
+
React.createElement(
|
|
7020
7036
|
'em',
|
|
7021
7037
|
null,
|
|
7022
7038
|
node.caption
|
|
@@ -7024,14 +7040,14 @@ var Audio = function Audio(_ref) {
|
|
|
7024
7040
|
)
|
|
7025
7041
|
);
|
|
7026
7042
|
}
|
|
7027
|
-
return
|
|
7043
|
+
return React.createElement(
|
|
7028
7044
|
'div',
|
|
7029
7045
|
{ className: 'audio' },
|
|
7030
|
-
|
|
7031
|
-
node.caption &&
|
|
7046
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7047
|
+
node.caption && React.createElement(
|
|
7032
7048
|
'p',
|
|
7033
7049
|
{ style: { fontSize: '.9rem' } },
|
|
7034
|
-
|
|
7050
|
+
React.createElement(
|
|
7035
7051
|
'em',
|
|
7036
7052
|
null,
|
|
7037
7053
|
node.caption
|
|
@@ -7049,34 +7065,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7049
7065
|
var profileImage = arguments[6];
|
|
7050
7066
|
|
|
7051
7067
|
if (authorName && authorURL) {
|
|
7052
|
-
return
|
|
7068
|
+
return React.createElement(
|
|
7053
7069
|
'span',
|
|
7054
7070
|
null,
|
|
7055
|
-
|
|
7071
|
+
React.createElement(
|
|
7056
7072
|
'a',
|
|
7057
7073
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7058
7074
|
authorName
|
|
7059
7075
|
),
|
|
7060
|
-
|
|
7076
|
+
React.createElement(
|
|
7061
7077
|
Card,
|
|
7062
7078
|
{ className: 'author-details-card-' + index },
|
|
7063
|
-
|
|
7079
|
+
React.createElement(
|
|
7064
7080
|
Row,
|
|
7065
7081
|
null,
|
|
7066
|
-
profileImage &&
|
|
7082
|
+
profileImage && React.createElement(
|
|
7067
7083
|
Col,
|
|
7068
7084
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7069
|
-
|
|
7085
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7070
7086
|
),
|
|
7071
|
-
|
|
7087
|
+
React.createElement(
|
|
7072
7088
|
Col,
|
|
7073
7089
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7074
|
-
|
|
7090
|
+
React.createElement(
|
|
7075
7091
|
'div',
|
|
7076
7092
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7077
7093
|
authorName
|
|
7078
7094
|
),
|
|
7079
|
-
|
|
7095
|
+
React.createElement(
|
|
7080
7096
|
'p',
|
|
7081
7097
|
null,
|
|
7082
7098
|
biography
|
|
@@ -7084,7 +7100,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7084
7100
|
)
|
|
7085
7101
|
)
|
|
7086
7102
|
),
|
|
7087
|
-
|
|
7103
|
+
React.createElement(
|
|
7088
7104
|
'style',
|
|
7089
7105
|
{ jsx: 'true' },
|
|
7090
7106
|
'\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 '
|
|
@@ -7092,7 +7108,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7092
7108
|
length !== index + 1 && ' , '
|
|
7093
7109
|
);
|
|
7094
7110
|
} else if (authorName) {
|
|
7095
|
-
return
|
|
7111
|
+
return React.createElement(
|
|
7096
7112
|
'span',
|
|
7097
7113
|
{ key: index },
|
|
7098
7114
|
authorName,
|
|
@@ -7247,8 +7263,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7247
7263
|
var duration = player.getDuration();
|
|
7248
7264
|
var queue = Math.floor(duration / 10);
|
|
7249
7265
|
var segment = Math.floor(current / queue);
|
|
7250
|
-
Beam.report_beam_video('Ready',
|
|
7251
|
-
Segment.report_video_event('Video Ready',
|
|
7266
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7267
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7252
7268
|
//autoplay
|
|
7253
7269
|
|
|
7254
7270
|
//Small pause before starting next video
|
|
@@ -7268,8 +7284,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7268
7284
|
var queue = Math.floor(duration / 10);
|
|
7269
7285
|
var segment = Math.floor(current / queue);
|
|
7270
7286
|
|
|
7271
|
-
Beam.report_beam_video('End',
|
|
7272
|
-
Segment.report_video_event('Video End',
|
|
7287
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7288
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7273
7289
|
setEndReported(true);
|
|
7274
7290
|
clearInterval(intervalID);
|
|
7275
7291
|
}
|
|
@@ -7319,8 +7335,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7319
7335
|
var queue = Math.floor(duration / 10);
|
|
7320
7336
|
var segment = Math.floor(current / queue);
|
|
7321
7337
|
if (!queueProgress.includes(segment)) {
|
|
7322
|
-
Beam.report_beam_video('Segment',
|
|
7323
|
-
Segment.report_video_event('Video Segment',
|
|
7338
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7339
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7324
7340
|
queueProgress.push(segment);
|
|
7325
7341
|
}
|
|
7326
7342
|
};
|
|
@@ -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
|
|
|
7336
|
-
Beam.report_beam_video('Play',
|
|
7337
|
-
Segment.report_video_event('Video Play',
|
|
7352
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7338
7354
|
|
|
7339
7355
|
if (!playReported) {
|
|
7340
7356
|
setPlayReported(true);
|
|
@@ -7352,8 +7368,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7352
7368
|
var queue = Math.floor(duration / 10);
|
|
7353
7369
|
var segment = Math.floor(current / queue);
|
|
7354
7370
|
|
|
7355
|
-
Beam.report_beam_video('Pause',
|
|
7356
|
-
Segment.report_video_event('Video Pause',
|
|
7371
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7372
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7357
7373
|
};
|
|
7358
7374
|
|
|
7359
7375
|
// Youtube Options
|
|
@@ -7364,44 +7380,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7364
7380
|
}
|
|
7365
7381
|
};
|
|
7366
7382
|
|
|
7367
|
-
return
|
|
7383
|
+
return React.createElement(
|
|
7368
7384
|
'div',
|
|
7369
7385
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7370
|
-
|
|
7386
|
+
React.createElement(
|
|
7371
7387
|
'div',
|
|
7372
7388
|
{ className: 'mt-2 mb-5' },
|
|
7373
|
-
series &&
|
|
7389
|
+
series && React.createElement(
|
|
7374
7390
|
'div',
|
|
7375
7391
|
{ style: { fontSize: '0.9rem' } },
|
|
7376
7392
|
article.title,
|
|
7377
7393
|
' - Episode ',
|
|
7378
7394
|
series
|
|
7379
7395
|
),
|
|
7380
|
-
Videos[series - 1] &&
|
|
7396
|
+
Videos[series - 1] && React.createElement(
|
|
7381
7397
|
'h1',
|
|
7382
7398
|
{ className: 'mb-3' },
|
|
7383
7399
|
Videos[series - 1].title
|
|
7384
7400
|
),
|
|
7385
|
-
|
|
7401
|
+
React.createElement(
|
|
7386
7402
|
'div',
|
|
7387
7403
|
null,
|
|
7388
7404
|
moment(article.published).format('LL')
|
|
7389
7405
|
),
|
|
7390
|
-
|
|
7406
|
+
React.createElement(
|
|
7391
7407
|
'div',
|
|
7392
7408
|
{ className: 'mb-3' },
|
|
7393
7409
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7394
|
-
return
|
|
7410
|
+
return React.createElement(
|
|
7395
7411
|
'span',
|
|
7396
7412
|
{ key: index },
|
|
7397
7413
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7398
7414
|
);
|
|
7399
7415
|
})
|
|
7400
7416
|
),
|
|
7401
|
-
|
|
7417
|
+
React.createElement(
|
|
7402
7418
|
'p',
|
|
7403
7419
|
null,
|
|
7404
|
-
|
|
7420
|
+
React.createElement(SocialShare, {
|
|
7405
7421
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7406
7422
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7407
7423
|
shareVia: meta.shareVia,
|
|
@@ -7416,20 +7432,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7416
7432
|
hideFacebook: meta.hideFBShare
|
|
7417
7433
|
})
|
|
7418
7434
|
),
|
|
7419
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7435
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7420
7436
|
'p',
|
|
7421
7437
|
{ className: 'mb-3' },
|
|
7422
|
-
|
|
7438
|
+
React.createElement(
|
|
7423
7439
|
'em',
|
|
7424
7440
|
null,
|
|
7425
7441
|
Videos[series - 1].intro
|
|
7426
7442
|
)
|
|
7427
7443
|
)
|
|
7428
7444
|
),
|
|
7429
|
-
|
|
7445
|
+
React.createElement(
|
|
7430
7446
|
'div',
|
|
7431
7447
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7432
|
-
vidUrl && vidType == 'youtube' &&
|
|
7448
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7433
7449
|
className: 'fluid-iframe',
|
|
7434
7450
|
videoId: getYoutubeId(vidUrl),
|
|
7435
7451
|
opts: opts,
|
|
@@ -7440,10 +7456,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7440
7456
|
return handleOnEnd(e);
|
|
7441
7457
|
}
|
|
7442
7458
|
}),
|
|
7443
|
-
vidUrl && vidType == 'mp4' &&
|
|
7444
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7445
|
-
|
|
7446
|
-
series &&
|
|
7459
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7460
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7461
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7462
|
+
series && React.createElement(
|
|
7447
7463
|
'div',
|
|
7448
7464
|
{
|
|
7449
7465
|
className: 'vid-series',
|
|
@@ -7453,10 +7469,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7453
7469
|
maxHeight: '100%',
|
|
7454
7470
|
paddingBottom: '0'
|
|
7455
7471
|
} },
|
|
7456
|
-
|
|
7472
|
+
React.createElement(
|
|
7457
7473
|
'p',
|
|
7458
7474
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7459
|
-
|
|
7475
|
+
React.createElement(
|
|
7460
7476
|
'b',
|
|
7461
7477
|
{ style: { fontSize: '1.25em' } },
|
|
7462
7478
|
'Now Playing:'
|
|
@@ -7464,16 +7480,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7464
7480
|
' ',
|
|
7465
7481
|
seriesData[series ? series - 1 : 0].title
|
|
7466
7482
|
),
|
|
7467
|
-
vidUrl &&
|
|
7483
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7468
7484
|
)
|
|
7469
7485
|
),
|
|
7470
|
-
|
|
7471
|
-
|
|
7486
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7487
|
+
React.createElement(
|
|
7472
7488
|
'div',
|
|
7473
7489
|
{ className: 'vid-text' },
|
|
7474
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7490
|
+
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()))
|
|
7475
7491
|
),
|
|
7476
|
-
|
|
7492
|
+
React.createElement(
|
|
7477
7493
|
'style',
|
|
7478
7494
|
{ jsx: 'true' },
|
|
7479
7495
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7481,14 +7497,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7481
7497
|
);
|
|
7482
7498
|
};
|
|
7483
7499
|
|
|
7484
|
-
var Poll = function Poll(_ref) {
|
|
7485
|
-
var node = _ref.node
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
onVote = _ref.onVote
|
|
7490
|
-
_ref
|
|
7491
|
-
getSerializers = _ref.getSerializers;
|
|
7500
|
+
var Poll$1 = function Poll(_ref) {
|
|
7501
|
+
var node = _ref.node;
|
|
7502
|
+
_ref.client;
|
|
7503
|
+
_ref.pageview;
|
|
7504
|
+
_ref.videoAccountIDs;
|
|
7505
|
+
var onVote = _ref.onVote;
|
|
7506
|
+
_ref.showVotes;
|
|
7507
|
+
var getSerializers = _ref.getSerializers;
|
|
7492
7508
|
|
|
7493
7509
|
var _useState = useState(null),
|
|
7494
7510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7526,67 +7542,67 @@ var Poll = function Poll(_ref) {
|
|
|
7526
7542
|
return acc;
|
|
7527
7543
|
}
|
|
7528
7544
|
}, 0);
|
|
7529
|
-
return
|
|
7530
|
-
|
|
7545
|
+
return React.createElement(
|
|
7546
|
+
React.Fragment,
|
|
7531
7547
|
null,
|
|
7532
|
-
question &&
|
|
7548
|
+
question && React.createElement(
|
|
7533
7549
|
'p',
|
|
7534
7550
|
{ className: 'font-weight-bold' },
|
|
7535
7551
|
question
|
|
7536
7552
|
),
|
|
7537
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7553
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7538
7554
|
'form',
|
|
7539
7555
|
{ onSubmit: function onSubmit(e) {
|
|
7540
7556
|
return onSubmitPoll(e);
|
|
7541
7557
|
} },
|
|
7542
7558
|
choices && choices.map(function (choice) {
|
|
7543
|
-
return
|
|
7559
|
+
return React.createElement(
|
|
7544
7560
|
'div',
|
|
7545
7561
|
{ key: choice._key },
|
|
7546
|
-
|
|
7562
|
+
React.createElement(
|
|
7547
7563
|
'label',
|
|
7548
7564
|
{ className: 'pl-2' },
|
|
7549
|
-
|
|
7565
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7550
7566
|
return setSelectedChoice(e.target.value);
|
|
7551
7567
|
} }),
|
|
7552
7568
|
' ' + choice.choiceText
|
|
7553
7569
|
)
|
|
7554
7570
|
);
|
|
7555
7571
|
}),
|
|
7556
|
-
|
|
7572
|
+
React.createElement(
|
|
7557
7573
|
Button,
|
|
7558
7574
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7559
7575
|
'Vote'
|
|
7560
7576
|
)
|
|
7561
7577
|
),
|
|
7562
|
-
|
|
7578
|
+
React.createElement(
|
|
7563
7579
|
'div',
|
|
7564
7580
|
{ className: 'progress-container' },
|
|
7565
7581
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7566
7582
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7567
|
-
return
|
|
7583
|
+
return React.createElement(
|
|
7568
7584
|
'div',
|
|
7569
7585
|
{ key: choice._key, className: 'mb-3' },
|
|
7570
|
-
|
|
7586
|
+
React.createElement(
|
|
7571
7587
|
'div',
|
|
7572
7588
|
{ className: 'correct-answer' },
|
|
7573
|
-
|
|
7589
|
+
React.createElement(
|
|
7574
7590
|
'div',
|
|
7575
7591
|
null,
|
|
7576
7592
|
choice.choiceText
|
|
7577
7593
|
),
|
|
7578
|
-
choice.choiceAnswer === true &&
|
|
7594
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7579
7595
|
'div',
|
|
7580
7596
|
null,
|
|
7581
|
-
|
|
7597
|
+
React.createElement(
|
|
7582
7598
|
'span',
|
|
7583
7599
|
{ style: { color: 'limegreen' } },
|
|
7584
7600
|
'Correct!'
|
|
7585
7601
|
)
|
|
7586
7602
|
)
|
|
7587
7603
|
),
|
|
7588
|
-
|
|
7589
|
-
|
|
7604
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7605
|
+
React.createElement(
|
|
7590
7606
|
'span',
|
|
7591
7607
|
{ className: 'float-right' },
|
|
7592
7608
|
percentage,
|
|
@@ -7597,14 +7613,14 @@ var Poll = function Poll(_ref) {
|
|
|
7597
7613
|
);
|
|
7598
7614
|
})
|
|
7599
7615
|
),
|
|
7600
|
-
showAnswer &&
|
|
7616
|
+
showAnswer && React.createElement(
|
|
7601
7617
|
'h4',
|
|
7602
7618
|
{ className: 'text-center small p-3' },
|
|
7603
7619
|
'Total Votes: ',
|
|
7604
7620
|
choicesTotalCount
|
|
7605
7621
|
),
|
|
7606
|
-
showAnswer && response &&
|
|
7607
|
-
|
|
7622
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7623
|
+
React.createElement(
|
|
7608
7624
|
'style',
|
|
7609
7625
|
{ jsx: 'true' },
|
|
7610
7626
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7622,22 +7638,22 @@ _export(_export.S, 'Object', {
|
|
|
7622
7638
|
}
|
|
7623
7639
|
});
|
|
7624
7640
|
|
|
7625
|
-
var values = _core.Object.values;
|
|
7641
|
+
var values$1 = _core.Object.values;
|
|
7626
7642
|
|
|
7627
|
-
var values
|
|
7628
|
-
module.exports = { "default": values, __esModule: true };
|
|
7643
|
+
var values = createCommonjsModule(function (module) {
|
|
7644
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7629
7645
|
});
|
|
7630
7646
|
|
|
7631
|
-
var _Object$values = unwrapExports(values
|
|
7647
|
+
var _Object$values = unwrapExports(values);
|
|
7632
7648
|
|
|
7633
|
-
var Poll
|
|
7634
|
-
var node = _ref.node
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
onVote = _ref.onVote
|
|
7639
|
-
_ref
|
|
7640
|
-
getSerializers = _ref.getSerializers;
|
|
7649
|
+
var Poll = function Poll(_ref) {
|
|
7650
|
+
var node = _ref.node;
|
|
7651
|
+
_ref.client;
|
|
7652
|
+
_ref.pageview;
|
|
7653
|
+
_ref.videoAccountIDs;
|
|
7654
|
+
var onVote = _ref.onVote;
|
|
7655
|
+
_ref.showVotes;
|
|
7656
|
+
var getSerializers = _ref.getSerializers;
|
|
7641
7657
|
|
|
7642
7658
|
var _useState = useState(null),
|
|
7643
7659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7703,67 +7719,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7703
7719
|
return acc;
|
|
7704
7720
|
}
|
|
7705
7721
|
}, 0);
|
|
7706
|
-
return
|
|
7707
|
-
|
|
7722
|
+
return React.createElement(
|
|
7723
|
+
React.Fragment,
|
|
7708
7724
|
null,
|
|
7709
|
-
question &&
|
|
7725
|
+
question && React.createElement(
|
|
7710
7726
|
'p',
|
|
7711
7727
|
{ className: 'font-weight-bold' },
|
|
7712
7728
|
question
|
|
7713
7729
|
),
|
|
7714
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7730
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7715
7731
|
'form',
|
|
7716
7732
|
{ onSubmit: function onSubmit(e) {
|
|
7717
7733
|
return onSubmitPoll(e);
|
|
7718
7734
|
} },
|
|
7719
7735
|
choices && choices.map(function (choice) {
|
|
7720
|
-
return
|
|
7736
|
+
return React.createElement(
|
|
7721
7737
|
'div',
|
|
7722
7738
|
{ key: choice._key },
|
|
7723
|
-
|
|
7739
|
+
React.createElement(
|
|
7724
7740
|
'label',
|
|
7725
7741
|
{ className: 'pl-2' },
|
|
7726
|
-
|
|
7742
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7727
7743
|
return setSelectedChoice(e.target.value);
|
|
7728
7744
|
} }),
|
|
7729
7745
|
' ' + choice.choiceText
|
|
7730
7746
|
)
|
|
7731
7747
|
);
|
|
7732
7748
|
}),
|
|
7733
|
-
|
|
7749
|
+
React.createElement(
|
|
7734
7750
|
Button,
|
|
7735
7751
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7736
7752
|
'Vote'
|
|
7737
7753
|
)
|
|
7738
7754
|
),
|
|
7739
|
-
|
|
7755
|
+
React.createElement(
|
|
7740
7756
|
'div',
|
|
7741
7757
|
{ className: 'progress-container' },
|
|
7742
7758
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7743
7759
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7744
|
-
return
|
|
7760
|
+
return React.createElement(
|
|
7745
7761
|
'div',
|
|
7746
7762
|
{ key: choice._key, className: 'mb-3' },
|
|
7747
|
-
|
|
7763
|
+
React.createElement(
|
|
7748
7764
|
'div',
|
|
7749
7765
|
{ className: 'correct-answer' },
|
|
7750
|
-
|
|
7766
|
+
React.createElement(
|
|
7751
7767
|
'div',
|
|
7752
7768
|
null,
|
|
7753
7769
|
choice.choiceText
|
|
7754
7770
|
),
|
|
7755
|
-
choice.choiceAnswer === true &&
|
|
7771
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7756
7772
|
'div',
|
|
7757
7773
|
null,
|
|
7758
|
-
|
|
7774
|
+
React.createElement(
|
|
7759
7775
|
'span',
|
|
7760
7776
|
{ style: { color: 'limegreen' } },
|
|
7761
7777
|
'Correct!'
|
|
7762
7778
|
)
|
|
7763
7779
|
)
|
|
7764
7780
|
),
|
|
7765
|
-
|
|
7766
|
-
|
|
7781
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7782
|
+
React.createElement(
|
|
7767
7783
|
'span',
|
|
7768
7784
|
{ className: 'float-right' },
|
|
7769
7785
|
percentage,
|
|
@@ -7774,14 +7790,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7774
7790
|
);
|
|
7775
7791
|
})
|
|
7776
7792
|
),
|
|
7777
|
-
showAnswer &&
|
|
7793
|
+
showAnswer && React.createElement(
|
|
7778
7794
|
'h4',
|
|
7779
7795
|
{ className: 'text-center small p-3' },
|
|
7780
7796
|
'Total Votes: ',
|
|
7781
7797
|
choicesTotalCount
|
|
7782
7798
|
),
|
|
7783
|
-
showAnswer && response &&
|
|
7784
|
-
|
|
7799
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7800
|
+
React.createElement(
|
|
7785
7801
|
'style',
|
|
7786
7802
|
{ jsx: 'true' },
|
|
7787
7803
|
'\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 '
|
|
@@ -7789,7 +7805,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7789
7805
|
);
|
|
7790
7806
|
};
|
|
7791
7807
|
|
|
7792
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7793
7809
|
|
|
7794
7810
|
var Quiz = function Quiz(_ref) {
|
|
7795
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7907,34 +7923,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7907
7923
|
};
|
|
7908
7924
|
|
|
7909
7925
|
var renderPagination = function renderPagination() {
|
|
7910
|
-
return
|
|
7911
|
-
Pagination
|
|
7912
|
-
{ className: 'p-0 m-0', size:
|
|
7913
|
-
|
|
7926
|
+
return React.createElement(
|
|
7927
|
+
Pagination,
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7929
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7914
7930
|
return changePage('first');
|
|
7915
7931
|
}, disabled: currentPage === 1 }),
|
|
7916
|
-
|
|
7932
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7917
7933
|
return changePage('prev');
|
|
7918
7934
|
}, disabled: currentPage === 1 }),
|
|
7919
|
-
|
|
7935
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7920
7936
|
return renderNewPages('prev');
|
|
7921
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7922
7938
|
pages.map(function (page) {
|
|
7923
|
-
return
|
|
7924
|
-
Pagination
|
|
7939
|
+
return React.createElement(
|
|
7940
|
+
Pagination.Item,
|
|
7925
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7926
7942
|
return changePage(page);
|
|
7927
7943
|
} },
|
|
7928
7944
|
page
|
|
7929
7945
|
);
|
|
7930
7946
|
}),
|
|
7931
|
-
|
|
7947
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7932
7948
|
return renderNewPages('next');
|
|
7933
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7934
|
-
|
|
7950
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7935
7951
|
return changePage('next');
|
|
7936
7952
|
}, disabled: currentPage === pageCount }),
|
|
7937
|
-
|
|
7953
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7938
7954
|
return changePage('last');
|
|
7939
7955
|
}, disabled: currentPage === pageCount })
|
|
7940
7956
|
);
|
|
@@ -8017,51 +8033,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8017
8033
|
}
|
|
8018
8034
|
};
|
|
8019
8035
|
|
|
8020
|
-
return
|
|
8021
|
-
|
|
8036
|
+
return React.createElement(
|
|
8037
|
+
React.Fragment,
|
|
8022
8038
|
null,
|
|
8023
|
-
quizzes[currentPage - 1] &&
|
|
8024
|
-
|
|
8039
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8040
|
+
React.Fragment,
|
|
8025
8041
|
null,
|
|
8026
|
-
|
|
8027
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8042
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8043
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8028
8044
|
'form',
|
|
8029
8045
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8030
8046
|
return e.preventDefault();
|
|
8031
8047
|
} },
|
|
8032
8048
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8033
|
-
return
|
|
8049
|
+
return React.createElement(
|
|
8034
8050
|
'div',
|
|
8035
8051
|
{ key: answer._key },
|
|
8036
|
-
|
|
8052
|
+
React.createElement(
|
|
8037
8053
|
'label',
|
|
8038
8054
|
{ className: 'pl-2' },
|
|
8039
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8055
|
+
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 }),
|
|
8040
8056
|
' ' + answer.answerText
|
|
8041
8057
|
)
|
|
8042
8058
|
);
|
|
8043
8059
|
})
|
|
8044
8060
|
)
|
|
8045
8061
|
),
|
|
8046
|
-
!showAnswer &&
|
|
8062
|
+
!showAnswer && React.createElement(
|
|
8047
8063
|
Button$1,
|
|
8048
8064
|
{ onClick: function onClick() {
|
|
8049
8065
|
return checkAnswers();
|
|
8050
8066
|
}, variant: 'info', block: true },
|
|
8051
8067
|
'Please click here for answer'
|
|
8052
8068
|
),
|
|
8053
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8054
|
-
|
|
8069
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8070
|
+
React.Fragment,
|
|
8055
8071
|
null,
|
|
8056
|
-
|
|
8072
|
+
React.createElement(
|
|
8057
8073
|
'h4',
|
|
8058
8074
|
null,
|
|
8059
8075
|
'Answer:'
|
|
8060
8076
|
),
|
|
8061
|
-
quizzes[currentPage - 1].answer &&
|
|
8077
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8062
8078
|
),
|
|
8063
|
-
|
|
8064
|
-
pageCount > 1 &&
|
|
8079
|
+
React.createElement('br', null),
|
|
8080
|
+
pageCount > 1 && React.createElement(
|
|
8065
8081
|
'div',
|
|
8066
8082
|
{ className: 'd-flex justify-content-center' },
|
|
8067
8083
|
renderPagination()
|
|
@@ -8072,14 +8088,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8072
8088
|
var Leads = function Leads(_ref) {
|
|
8073
8089
|
var url = _ref.url;
|
|
8074
8090
|
|
|
8075
|
-
return
|
|
8091
|
+
return React.createElement(
|
|
8076
8092
|
'div',
|
|
8077
8093
|
{ className: 'd-block text-center mb-3' },
|
|
8078
|
-
url &&
|
|
8094
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8079
8095
|
);
|
|
8080
8096
|
};
|
|
8081
8097
|
|
|
8082
|
-
var Slideshow
|
|
8098
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8083
8099
|
var slides = _ref.node.slides,
|
|
8084
8100
|
client = _ref.client,
|
|
8085
8101
|
pageview = _ref.pageview,
|
|
@@ -8091,8 +8107,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8091
8107
|
|
|
8092
8108
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8093
8109
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8094
|
-
carouselIndex = _useState2[0]
|
|
8095
|
-
|
|
8110
|
+
carouselIndex = _useState2[0];
|
|
8111
|
+
_useState2[1];
|
|
8096
8112
|
|
|
8097
8113
|
// useEffect(() => {
|
|
8098
8114
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8118,42 +8134,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8118
8134
|
}
|
|
8119
8135
|
};
|
|
8120
8136
|
|
|
8121
|
-
return
|
|
8137
|
+
return React.createElement(
|
|
8122
8138
|
'div',
|
|
8123
8139
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8124
|
-
|
|
8140
|
+
React.createElement(
|
|
8125
8141
|
Carousel,
|
|
8126
8142
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8127
8143
|
slides && slides.map(function (slide) {
|
|
8128
8144
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8129
|
-
return
|
|
8145
|
+
return React.createElement(
|
|
8130
8146
|
Carousel.Item,
|
|
8131
8147
|
{ key: slide._key },
|
|
8132
|
-
|
|
8148
|
+
React.createElement(
|
|
8133
8149
|
'a',
|
|
8134
8150
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8135
|
-
|
|
8151
|
+
React.createElement(
|
|
8136
8152
|
LazyLoad,
|
|
8137
8153
|
null,
|
|
8138
|
-
|
|
8154
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8139
8155
|
)
|
|
8140
8156
|
),
|
|
8141
|
-
|
|
8157
|
+
React.createElement(
|
|
8142
8158
|
'div',
|
|
8143
8159
|
{ className: 'p-2' },
|
|
8144
|
-
slide.slideshowImage.caption &&
|
|
8160
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8145
8161
|
'h3',
|
|
8146
8162
|
{ style: { padding: '0px' } },
|
|
8147
8163
|
slide.slideshowImage.caption
|
|
8148
8164
|
),
|
|
8149
|
-
slide.description &&
|
|
8165
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8150
8166
|
)
|
|
8151
8167
|
);
|
|
8152
8168
|
}
|
|
8153
8169
|
return null;
|
|
8154
8170
|
})
|
|
8155
8171
|
),
|
|
8156
|
-
|
|
8172
|
+
React.createElement(
|
|
8157
8173
|
'style',
|
|
8158
8174
|
{ jsx: 'true' },
|
|
8159
8175
|
'\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 '
|
|
@@ -8172,10 +8188,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8172
8188
|
sizes = _props$node.sizes,
|
|
8173
8189
|
sizeMapping = _props$node.sizeMapping;
|
|
8174
8190
|
|
|
8175
|
-
return
|
|
8191
|
+
return React.createElement(
|
|
8176
8192
|
'div',
|
|
8177
8193
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8178
|
-
|
|
8194
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8179
8195
|
);
|
|
8180
8196
|
};
|
|
8181
8197
|
|
|
@@ -8186,15 +8202,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8186
8202
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8187
8203
|
|
|
8188
8204
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8189
|
-
return
|
|
8205
|
+
return React.createElement(
|
|
8190
8206
|
'section',
|
|
8191
8207
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8192
|
-
Caption &&
|
|
8208
|
+
Caption && React.createElement(
|
|
8193
8209
|
'h4',
|
|
8194
8210
|
{ className: 'formstack-caption' },
|
|
8195
8211
|
Caption
|
|
8196
8212
|
),
|
|
8197
|
-
|
|
8213
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8198
8214
|
);
|
|
8199
8215
|
};
|
|
8200
8216
|
|
|
@@ -8210,29 +8226,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8210
8226
|
}
|
|
8211
8227
|
});
|
|
8212
8228
|
if (medias && medias.length > 0) {
|
|
8213
|
-
return
|
|
8229
|
+
return React.createElement(
|
|
8214
8230
|
'div',
|
|
8215
8231
|
{ className: 'multi-media-container' },
|
|
8216
|
-
|
|
8232
|
+
React.createElement(
|
|
8217
8233
|
Row$1,
|
|
8218
8234
|
{ noGutters: true },
|
|
8219
8235
|
medias.map(function (media) {
|
|
8220
|
-
return
|
|
8236
|
+
return React.createElement(
|
|
8221
8237
|
Col$1,
|
|
8222
8238
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8223
|
-
|
|
8239
|
+
React.createElement(
|
|
8224
8240
|
'a',
|
|
8225
|
-
_extends
|
|
8241
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8226
8242
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8227
|
-
|
|
8243
|
+
React.createElement(
|
|
8228
8244
|
'div',
|
|
8229
8245
|
{ className: 'multi-media-image-container' },
|
|
8230
|
-
imageBox &&
|
|
8246
|
+
imageBox && React.createElement(
|
|
8231
8247
|
LazyLoad,
|
|
8232
8248
|
{ once: true },
|
|
8233
|
-
|
|
8249
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
|
|
8234
8250
|
),
|
|
8235
|
-
media.caption &&
|
|
8251
|
+
media.caption && React.createElement(
|
|
8236
8252
|
'span',
|
|
8237
8253
|
{ className: 'multi-media-caption' },
|
|
8238
8254
|
media.caption
|
|
@@ -8242,7 +8258,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8242
8258
|
);
|
|
8243
8259
|
})
|
|
8244
8260
|
),
|
|
8245
|
-
|
|
8261
|
+
React.createElement(
|
|
8246
8262
|
'style',
|
|
8247
8263
|
{ jsx: 'true' },
|
|
8248
8264
|
'\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 '
|
|
@@ -8289,7 +8305,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8289
8305
|
}
|
|
8290
8306
|
};
|
|
8291
8307
|
|
|
8292
|
-
_this.wraperRef =
|
|
8308
|
+
_this.wraperRef = React.createRef();
|
|
8293
8309
|
_this.visible = false;
|
|
8294
8310
|
return _this;
|
|
8295
8311
|
}
|
|
@@ -8317,7 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8317
8333
|
_props$id = _props.id,
|
|
8318
8334
|
id = _props$id === undefined ? '' : _props$id;
|
|
8319
8335
|
|
|
8320
|
-
return
|
|
8336
|
+
return React.createElement(
|
|
8321
8337
|
'div',
|
|
8322
8338
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8323
8339
|
this.props.children
|
|
@@ -8326,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8326
8342
|
}]);
|
|
8327
8343
|
|
|
8328
8344
|
return InscreenSensor;
|
|
8329
|
-
}(
|
|
8345
|
+
}(React.Component);
|
|
8330
8346
|
|
|
8331
8347
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8332
8348
|
var nodes = _ref.nodes,
|
|
@@ -8435,33 +8451,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8435
8451
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8436
8452
|
var showReading = show ? 'showReading' : '';
|
|
8437
8453
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8438
|
-
return
|
|
8454
|
+
return React.createElement(
|
|
8439
8455
|
'div',
|
|
8440
8456
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8441
|
-
|
|
8457
|
+
React.createElement(
|
|
8442
8458
|
'a',
|
|
8443
8459
|
{ onClick: function onClick(e) {
|
|
8444
8460
|
return articleCardClickHandler(e);
|
|
8445
8461
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8446
|
-
|
|
8462
|
+
React.createElement(
|
|
8447
8463
|
'div',
|
|
8448
8464
|
{ className: 'prevNext-thumbnail' },
|
|
8449
|
-
|
|
8450
|
-
|
|
8465
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8466
|
+
React.createElement(
|
|
8451
8467
|
'div',
|
|
8452
8468
|
{ className: 'prevNext-reading ' + showReading },
|
|
8453
8469
|
articleLabel
|
|
8454
8470
|
)
|
|
8455
8471
|
),
|
|
8456
|
-
|
|
8472
|
+
React.createElement(
|
|
8457
8473
|
'div',
|
|
8458
8474
|
{ className: 'prevNext-summary' },
|
|
8459
|
-
|
|
8475
|
+
React.createElement(
|
|
8460
8476
|
'div',
|
|
8461
8477
|
{ className: 'prevNext-publishDate' },
|
|
8462
8478
|
moment(article.published).format('LL')
|
|
8463
8479
|
),
|
|
8464
|
-
|
|
8480
|
+
React.createElement(
|
|
8465
8481
|
'h2',
|
|
8466
8482
|
{ className: 'prevNext-title' },
|
|
8467
8483
|
article.title
|
|
@@ -8510,7 +8526,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8510
8526
|
|
|
8511
8527
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8512
8528
|
if (biography) {
|
|
8513
|
-
return
|
|
8529
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8514
8530
|
}
|
|
8515
8531
|
};
|
|
8516
8532
|
|
|
@@ -8596,7 +8612,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8596
8612
|
//console.log('useLayoutEffect')
|
|
8597
8613
|
if (!firstLoad) {
|
|
8598
8614
|
setUpArrowClicked(false);
|
|
8599
|
-
if (
|
|
8615
|
+
if (main_43) {
|
|
8600
8616
|
grabLoadedAds();
|
|
8601
8617
|
} else {
|
|
8602
8618
|
scrollToArticle();
|
|
@@ -8620,7 +8636,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8620
8636
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8621
8637
|
if (pageview) pageview(path);
|
|
8622
8638
|
|
|
8623
|
-
if (!
|
|
8639
|
+
if (!main_43) {
|
|
8624
8640
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8625
8641
|
if (window.googletag && googletag.pubadsReady) {
|
|
8626
8642
|
lib_3.refresh();
|
|
@@ -8628,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8628
8644
|
});
|
|
8629
8645
|
}
|
|
8630
8646
|
//Refresh leaderboard ad on mobile
|
|
8631
|
-
if (
|
|
8647
|
+
if (main_43) {
|
|
8632
8648
|
var leaderboardSlotId = '';
|
|
8633
8649
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8634
8650
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8668,38 +8684,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8668
8684
|
setSensorVisible(false);
|
|
8669
8685
|
};
|
|
8670
8686
|
|
|
8671
|
-
return
|
|
8672
|
-
|
|
8687
|
+
return React.createElement(
|
|
8688
|
+
React.Fragment,
|
|
8673
8689
|
null,
|
|
8674
|
-
|
|
8690
|
+
React.createElement(
|
|
8675
8691
|
'div',
|
|
8676
8692
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8677
|
-
|
|
8693
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8678
8694
|
return handleArrowClick();
|
|
8679
8695
|
} })
|
|
8680
8696
|
),
|
|
8681
|
-
|
|
8682
|
-
|
|
8697
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8698
|
+
React.createElement(
|
|
8683
8699
|
'div',
|
|
8684
8700
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8685
|
-
|
|
8701
|
+
React.createElement(
|
|
8686
8702
|
'h5',
|
|
8687
8703
|
{ className: 'objective-title' },
|
|
8688
8704
|
nodes.seriesTitle
|
|
8689
8705
|
),
|
|
8690
|
-
|
|
8706
|
+
React.createElement(
|
|
8691
8707
|
'div',
|
|
8692
8708
|
{ className: 'prevNextWrapper' },
|
|
8693
8709
|
PrevNextCards(false, -1)
|
|
8694
8710
|
)
|
|
8695
8711
|
),
|
|
8696
|
-
|
|
8697
|
-
|
|
8712
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8713
|
+
React.createElement(
|
|
8698
8714
|
'div',
|
|
8699
8715
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8700
|
-
|
|
8716
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8701
8717
|
if (index === 0) {
|
|
8702
|
-
return
|
|
8718
|
+
return React.createElement(
|
|
8703
8719
|
'div',
|
|
8704
8720
|
{
|
|
8705
8721
|
key: 'addid-1',
|
|
@@ -8719,14 +8735,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8719
8735
|
}
|
|
8720
8736
|
})
|
|
8721
8737
|
),
|
|
8722
|
-
|
|
8738
|
+
React.createElement(
|
|
8723
8739
|
'div',
|
|
8724
8740
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8725
8741
|
Articles.map(function (article, index) {
|
|
8726
|
-
return
|
|
8742
|
+
return React.createElement(
|
|
8727
8743
|
'div',
|
|
8728
8744
|
{ key: article.title },
|
|
8729
|
-
|
|
8745
|
+
React.createElement(
|
|
8730
8746
|
InscreenSensor,
|
|
8731
8747
|
{
|
|
8732
8748
|
visible: sensorVisible,
|
|
@@ -8744,84 +8760,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8744
8760
|
}
|
|
8745
8761
|
}
|
|
8746
8762
|
} },
|
|
8747
|
-
|
|
8763
|
+
React.createElement(
|
|
8748
8764
|
Head,
|
|
8749
8765
|
null,
|
|
8750
|
-
currentTitle !== null &&
|
|
8766
|
+
currentTitle !== null && React.createElement(
|
|
8751
8767
|
'title',
|
|
8752
8768
|
{ key: 'title' },
|
|
8753
8769
|
currentTitle
|
|
8754
8770
|
),
|
|
8755
|
-
currentSummary !== null &&
|
|
8756
|
-
currentURL !== null &&
|
|
8757
|
-
currentTitle !== null &&
|
|
8758
|
-
currentThumbnail !== null &&
|
|
8759
|
-
currentSummary !== null &&
|
|
8760
|
-
currentTitle !== null &&
|
|
8761
|
-
currentThumbnail !== null &&
|
|
8762
|
-
currentSummary !== null &&
|
|
8771
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8772
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8773
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8774
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8775
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8776
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8777
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8778
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8763
8779
|
),
|
|
8764
|
-
|
|
8780
|
+
React.createElement(
|
|
8765
8781
|
'article',
|
|
8766
8782
|
{ className: 'article-wrapper' },
|
|
8767
|
-
|
|
8783
|
+
React.createElement(
|
|
8768
8784
|
'div',
|
|
8769
8785
|
{ className: 'article-publishDate' },
|
|
8770
8786
|
moment(article.published).format('LL')
|
|
8771
8787
|
),
|
|
8772
|
-
|
|
8788
|
+
React.createElement(
|
|
8773
8789
|
'div',
|
|
8774
8790
|
{ className: 'author-details-wrapper' },
|
|
8775
8791
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8776
|
-
return
|
|
8792
|
+
return React.createElement(
|
|
8777
8793
|
'span',
|
|
8778
8794
|
{ key: index },
|
|
8779
8795
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8780
8796
|
);
|
|
8781
8797
|
})
|
|
8782
8798
|
),
|
|
8783
|
-
|
|
8799
|
+
React.createElement(
|
|
8784
8800
|
'h2',
|
|
8785
8801
|
{ className: 'article-title' },
|
|
8786
8802
|
article.title
|
|
8787
8803
|
),
|
|
8788
|
-
|
|
8804
|
+
React.createElement(
|
|
8789
8805
|
'div',
|
|
8790
8806
|
{ className: 'mt-2 mb-2' },
|
|
8791
|
-
|
|
8807
|
+
React.createElement(BlockContent, _extends({
|
|
8792
8808
|
serializers: getSerializers,
|
|
8793
8809
|
videoAccountIDs: accountIDs,
|
|
8794
8810
|
blocks: article.text,
|
|
8795
8811
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8796
8812
|
}, client.config())),
|
|
8797
|
-
|
|
8813
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8798
8814
|
),
|
|
8799
|
-
Articles.length > 1 &&
|
|
8800
|
-
|
|
8815
|
+
Articles.length > 1 && React.createElement(
|
|
8816
|
+
React.Fragment,
|
|
8801
8817
|
null,
|
|
8802
|
-
|
|
8818
|
+
React.createElement(
|
|
8803
8819
|
'div',
|
|
8804
8820
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8805
|
-
|
|
8821
|
+
React.createElement(
|
|
8806
8822
|
'h5',
|
|
8807
8823
|
{ className: 'objective-title' },
|
|
8808
8824
|
nodes.seriesTitle
|
|
8809
8825
|
),
|
|
8810
|
-
|
|
8826
|
+
React.createElement(
|
|
8811
8827
|
'div',
|
|
8812
8828
|
{ className: 'prevNextWrapper' },
|
|
8813
8829
|
PrevNextCards(true, index)
|
|
8814
8830
|
)
|
|
8815
8831
|
),
|
|
8816
|
-
|
|
8832
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8817
8833
|
)
|
|
8818
8834
|
),
|
|
8819
|
-
|
|
8835
|
+
React.createElement(
|
|
8820
8836
|
'div',
|
|
8821
8837
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8822
|
-
|
|
8838
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8823
8839
|
if (innerIndex === 0) {
|
|
8824
|
-
return
|
|
8840
|
+
return React.createElement(
|
|
8825
8841
|
'div',
|
|
8826
8842
|
{
|
|
8827
8843
|
key: 'addid-' + (index + 2),
|
|
@@ -8844,7 +8860,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8844
8860
|
)
|
|
8845
8861
|
);
|
|
8846
8862
|
}),
|
|
8847
|
-
|
|
8863
|
+
React.createElement(
|
|
8848
8864
|
'style',
|
|
8849
8865
|
{ jsx: 'true' },
|
|
8850
8866
|
'\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 '
|
|
@@ -8874,11 +8890,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8874
8890
|
};
|
|
8875
8891
|
}, [handleClickOutside]);
|
|
8876
8892
|
|
|
8877
|
-
return
|
|
8893
|
+
return React.createElement(
|
|
8878
8894
|
'div',
|
|
8879
8895
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8880
|
-
|
|
8881
|
-
|
|
8896
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8897
|
+
React.createElement(
|
|
8882
8898
|
'style',
|
|
8883
8899
|
{ jsx: 'true' },
|
|
8884
8900
|
'\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 '
|
|
@@ -8892,7 +8908,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8892
8908
|
}
|
|
8893
8909
|
};
|
|
8894
8910
|
|
|
8895
|
-
var FigureImage =
|
|
8911
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8896
8912
|
var node = _ref2.node,
|
|
8897
8913
|
client = _ref2.client,
|
|
8898
8914
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8900,13 +8916,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8900
8916
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8901
8917
|
|
|
8902
8918
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8903
|
-
return
|
|
8919
|
+
return React.createElement(
|
|
8904
8920
|
'picture',
|
|
8905
8921
|
null,
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8922
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8923
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8924
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8925
|
+
React.createElement('img', _extends({
|
|
8910
8926
|
style: figureImageStyle,
|
|
8911
8927
|
className: 'figure-image',
|
|
8912
8928
|
src: urlFor({ source: node, client: client }),
|
|
@@ -8994,13 +9010,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8994
9010
|
|
|
8995
9011
|
var FigureCaption = useCallback(function () {
|
|
8996
9012
|
if (imgcaption && imgcaption.length > 0) {
|
|
8997
|
-
return
|
|
9013
|
+
return React.createElement(
|
|
8998
9014
|
'div',
|
|
8999
9015
|
{ className: 'figure-caption' },
|
|
9000
|
-
|
|
9016
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9001
9017
|
);
|
|
9002
9018
|
} else if (caption) {
|
|
9003
|
-
return
|
|
9019
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9004
9020
|
} else return null;
|
|
9005
9021
|
}, [caption, imgcaption]);
|
|
9006
9022
|
|
|
@@ -9017,24 +9033,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9017
9033
|
setShowLightbox(true);
|
|
9018
9034
|
}, [node, client]);
|
|
9019
9035
|
|
|
9020
|
-
return
|
|
9021
|
-
|
|
9036
|
+
return React.createElement(
|
|
9037
|
+
React.Fragment,
|
|
9022
9038
|
null,
|
|
9023
|
-
|
|
9024
|
-
Figure$
|
|
9039
|
+
React.createElement(
|
|
9040
|
+
Figure$2,
|
|
9025
9041
|
{ className: '' + class_name, style: figureStyle },
|
|
9026
|
-
link ?
|
|
9042
|
+
link ? React.createElement(
|
|
9027
9043
|
'a',
|
|
9028
9044
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
) :
|
|
9032
|
-
|
|
9045
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9046
|
+
React.createElement(FigureCaption, null)
|
|
9047
|
+
) : React.createElement(
|
|
9048
|
+
React.Fragment,
|
|
9033
9049
|
null,
|
|
9034
|
-
|
|
9035
|
-
|
|
9050
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9051
|
+
React.createElement(FigureCaption, null)
|
|
9036
9052
|
),
|
|
9037
|
-
|
|
9053
|
+
React.createElement(LightBox, {
|
|
9038
9054
|
showLightbox: showLightbox,
|
|
9039
9055
|
lightboxImgSrc: lightboxImgSrc,
|
|
9040
9056
|
closeLightbox: function closeLightbox() {
|
|
@@ -9043,7 +9059,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9043
9059
|
}
|
|
9044
9060
|
})
|
|
9045
9061
|
),
|
|
9046
|
-
|
|
9062
|
+
React.createElement(
|
|
9047
9063
|
'style',
|
|
9048
9064
|
{ jsx: 'true' },
|
|
9049
9065
|
'\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 '
|
|
@@ -9051,7 +9067,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9051
9067
|
);
|
|
9052
9068
|
};
|
|
9053
9069
|
|
|
9054
|
-
var Figure =
|
|
9070
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9055
9071
|
|
|
9056
9072
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9057
9073
|
useEffect(function () {
|
|
@@ -9092,47 +9108,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9092
9108
|
imgcaption = _ref.imgcaption;
|
|
9093
9109
|
|
|
9094
9110
|
if (imgcaption && imgcaption.length > 0) {
|
|
9095
|
-
return
|
|
9111
|
+
return React.createElement(
|
|
9096
9112
|
'div',
|
|
9097
9113
|
{ className: 'multi-figure-caption' },
|
|
9098
|
-
|
|
9114
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9099
9115
|
);
|
|
9100
9116
|
} else if (caption) {
|
|
9101
|
-
return
|
|
9117
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9102
9118
|
} else return null;
|
|
9103
9119
|
};
|
|
9104
9120
|
|
|
9105
9121
|
if (images && images.length > 0) {
|
|
9106
|
-
return
|
|
9122
|
+
return React.createElement(
|
|
9107
9123
|
'div',
|
|
9108
9124
|
{ className: 'multi-figure-container' },
|
|
9109
|
-
|
|
9125
|
+
React.createElement(
|
|
9110
9126
|
Row$1,
|
|
9111
9127
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9112
9128
|
images.map(function (image, index) {
|
|
9113
|
-
return
|
|
9129
|
+
return React.createElement(
|
|
9114
9130
|
Col$1,
|
|
9115
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9116
|
-
image.link ?
|
|
9132
|
+
image.link ? React.createElement(
|
|
9117
9133
|
'a',
|
|
9118
|
-
_extends
|
|
9119
|
-
|
|
9134
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
|
+
React.createElement(
|
|
9120
9136
|
'div',
|
|
9121
9137
|
{ className: 'multi-figure-image-container' },
|
|
9122
|
-
|
|
9138
|
+
React.createElement(
|
|
9123
9139
|
LazyLoad,
|
|
9124
9140
|
{ once: true },
|
|
9125
|
-
|
|
9141
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
|
|
9126
9142
|
),
|
|
9127
|
-
|
|
9143
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9128
9144
|
)
|
|
9129
|
-
) :
|
|
9145
|
+
) : React.createElement(
|
|
9130
9146
|
'div',
|
|
9131
9147
|
{ className: 'multi-figure-image-container' },
|
|
9132
|
-
|
|
9148
|
+
React.createElement(
|
|
9133
9149
|
LazyLoad,
|
|
9134
9150
|
{ once: true },
|
|
9135
|
-
|
|
9151
|
+
React.createElement('img', {
|
|
9136
9152
|
'images-count': images.length,
|
|
9137
9153
|
className: 'multi-figure-image',
|
|
9138
9154
|
src: urlFor({ source: image.asset, client: client }),
|
|
@@ -9143,17 +9159,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9143
9159
|
}
|
|
9144
9160
|
})
|
|
9145
9161
|
),
|
|
9146
|
-
|
|
9162
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9147
9163
|
)
|
|
9148
9164
|
);
|
|
9149
9165
|
})
|
|
9150
9166
|
),
|
|
9151
|
-
|
|
9167
|
+
React.createElement(
|
|
9152
9168
|
'div',
|
|
9153
9169
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9154
|
-
|
|
9170
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9155
9171
|
),
|
|
9156
|
-
|
|
9172
|
+
React.createElement(
|
|
9157
9173
|
'style',
|
|
9158
9174
|
{ jsx: 'true' },
|
|
9159
9175
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9175,10 +9191,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9175
9191
|
|
|
9176
9192
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9177
9193
|
|
|
9178
|
-
return
|
|
9194
|
+
return React.createElement(
|
|
9179
9195
|
'div',
|
|
9180
9196
|
{ id: elementId },
|
|
9181
|
-
|
|
9197
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9182
9198
|
);
|
|
9183
9199
|
};
|
|
9184
9200
|
|
|
@@ -9207,7 +9223,7 @@ exports.__esModule = true;
|
|
|
9207
9223
|
|
|
9208
9224
|
|
|
9209
9225
|
|
|
9210
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9226
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9211
9227
|
|
|
9212
9228
|
|
|
9213
9229
|
|
|
@@ -9227,7 +9243,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9227
9243
|
|
|
9228
9244
|
|
|
9229
9245
|
|
|
9230
|
-
var _react2 = _interopRequireDefault(
|
|
9246
|
+
var _react2 = _interopRequireDefault(React);
|
|
9231
9247
|
|
|
9232
9248
|
|
|
9233
9249
|
|
|
@@ -9376,9 +9392,9 @@ var ScriptTag = function (_Component) {
|
|
|
9376
9392
|
|
|
9377
9393
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9378
9394
|
// eslint-disable-next-line no-unused-vars
|
|
9379
|
-
var _props3 = this.props
|
|
9380
|
-
|
|
9381
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9395
|
+
var _props3 = this.props;
|
|
9396
|
+
_props3.isHydrating;
|
|
9397
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9382
9398
|
|
|
9383
9399
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9384
9400
|
return _this2.domRef = tag;
|
|
@@ -9386,7 +9402,7 @@ var ScriptTag = function (_Component) {
|
|
|
9386
9402
|
};
|
|
9387
9403
|
|
|
9388
9404
|
return ScriptTag;
|
|
9389
|
-
}(
|
|
9405
|
+
}(React.Component);
|
|
9390
9406
|
|
|
9391
9407
|
ScriptTag.propTypes = {
|
|
9392
9408
|
/**
|
|
@@ -9465,11 +9481,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9465
9481
|
}, []);
|
|
9466
9482
|
|
|
9467
9483
|
if (iframeSrc) {
|
|
9468
|
-
return
|
|
9484
|
+
return React.createElement(
|
|
9469
9485
|
'section',
|
|
9470
9486
|
{ className: 'form-assembly' },
|
|
9471
|
-
|
|
9472
|
-
|
|
9487
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9488
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9473
9489
|
);
|
|
9474
9490
|
}
|
|
9475
9491
|
|
|
@@ -9506,27 +9522,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9506
9522
|
return window.removeEventListener('resize', handleResize);
|
|
9507
9523
|
};
|
|
9508
9524
|
}, []);
|
|
9509
|
-
return
|
|
9525
|
+
return React.createElement(
|
|
9510
9526
|
'div',
|
|
9511
9527
|
{ className: 'blockTableHolder', ref: holder },
|
|
9512
|
-
|
|
9528
|
+
React.createElement(
|
|
9513
9529
|
'div',
|
|
9514
9530
|
{ className: 'blockTable' },
|
|
9515
9531
|
rows && rows.map(function (row) {
|
|
9516
|
-
return
|
|
9532
|
+
return React.createElement(
|
|
9517
9533
|
'div',
|
|
9518
9534
|
{ className: 'blockTableRow' },
|
|
9519
9535
|
row.cells && row.cells.map(function (cell) {
|
|
9520
|
-
return
|
|
9536
|
+
return React.createElement(
|
|
9521
9537
|
'div',
|
|
9522
9538
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9523
|
-
|
|
9539
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9524
9540
|
);
|
|
9525
9541
|
})
|
|
9526
9542
|
);
|
|
9527
9543
|
})
|
|
9528
9544
|
),
|
|
9529
|
-
|
|
9545
|
+
React.createElement(
|
|
9530
9546
|
'style',
|
|
9531
9547
|
{ jsx: true },
|
|
9532
9548
|
'\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 '
|
|
@@ -9605,12 +9621,12 @@ var getSerializers = function getSerializers() {
|
|
|
9605
9621
|
var node = _ref.node;
|
|
9606
9622
|
var url = node.url;
|
|
9607
9623
|
|
|
9608
|
-
return
|
|
9624
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9609
9625
|
},
|
|
9610
9626
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9611
9627
|
var node = _ref2.node;
|
|
9612
9628
|
|
|
9613
|
-
return
|
|
9629
|
+
return React.createElement(YouTubeGallery, {
|
|
9614
9630
|
nodes: node,
|
|
9615
9631
|
article: article,
|
|
9616
9632
|
meta: meta,
|
|
@@ -9624,7 +9640,7 @@ var getSerializers = function getSerializers() {
|
|
|
9624
9640
|
articleSeries: function articleSeries(_ref3) {
|
|
9625
9641
|
var node = _ref3.node;
|
|
9626
9642
|
|
|
9627
|
-
return
|
|
9643
|
+
return React.createElement(ArticleSeries, {
|
|
9628
9644
|
nodes: node,
|
|
9629
9645
|
accountIDs: videoAccountIDs || {},
|
|
9630
9646
|
pageview: pageview,
|
|
@@ -9637,61 +9653,61 @@ var getSerializers = function getSerializers() {
|
|
|
9637
9653
|
figure: function figure(_ref4) {
|
|
9638
9654
|
var node = _ref4.node;
|
|
9639
9655
|
|
|
9640
|
-
return
|
|
9656
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9641
9657
|
},
|
|
9642
9658
|
multifigure: function multifigure(_ref5) {
|
|
9643
9659
|
var node = _ref5.node;
|
|
9644
9660
|
|
|
9645
|
-
return
|
|
9661
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9646
9662
|
},
|
|
9647
9663
|
slideshow: function slideshow(_ref6) {
|
|
9648
9664
|
var node = _ref6.node;
|
|
9649
9665
|
var slides = node.slides;
|
|
9650
9666
|
|
|
9651
|
-
return
|
|
9667
|
+
return React.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9652
9668
|
},
|
|
9653
9669
|
sidebar: function sidebar(_ref7) {
|
|
9654
9670
|
var node = _ref7.node;
|
|
9655
9671
|
var caption = node.caption,
|
|
9656
9672
|
content = node.content;
|
|
9657
9673
|
|
|
9658
|
-
return
|
|
9674
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9659
9675
|
},
|
|
9660
9676
|
datatable: function datatable(_ref8) {
|
|
9661
9677
|
var node = _ref8.node;
|
|
9662
9678
|
var table = node.table;
|
|
9663
9679
|
|
|
9664
|
-
return
|
|
9680
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9665
9681
|
},
|
|
9666
9682
|
media: function media(_ref9) {
|
|
9667
9683
|
var node = _ref9.node;
|
|
9668
9684
|
|
|
9669
|
-
return
|
|
9685
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9670
9686
|
},
|
|
9671
9687
|
iframe: function iframe(_ref10) {
|
|
9672
9688
|
var node = _ref10.node;
|
|
9673
9689
|
|
|
9674
|
-
return
|
|
9690
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9675
9691
|
},
|
|
9676
9692
|
video: function video(_ref11) {
|
|
9677
9693
|
var node = _ref11.node;
|
|
9678
9694
|
|
|
9679
|
-
return
|
|
9695
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9680
9696
|
},
|
|
9681
9697
|
audio: function audio(_ref12) {
|
|
9682
9698
|
var node = _ref12.node;
|
|
9683
9699
|
|
|
9684
|
-
return
|
|
9700
|
+
return React.createElement(Audio, { node: node });
|
|
9685
9701
|
},
|
|
9686
9702
|
poll: function poll(_ref13) {
|
|
9687
9703
|
var node = _ref13.node;
|
|
9688
9704
|
|
|
9689
|
-
return
|
|
9705
|
+
return React.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9690
9706
|
},
|
|
9691
9707
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9692
9708
|
var node = _ref14.node;
|
|
9693
9709
|
|
|
9694
|
-
return
|
|
9710
|
+
return React.createElement(Poll, {
|
|
9695
9711
|
node: node,
|
|
9696
9712
|
client: client,
|
|
9697
9713
|
pageview: pageview,
|
|
@@ -9705,35 +9721,35 @@ var getSerializers = function getSerializers() {
|
|
|
9705
9721
|
var node = _ref15.node;
|
|
9706
9722
|
var quizzes = node.quizzes;
|
|
9707
9723
|
|
|
9708
|
-
return
|
|
9724
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9709
9725
|
},
|
|
9710
9726
|
leads: function leads(_ref16) {
|
|
9711
9727
|
var node = _ref16.node;
|
|
9712
9728
|
var leadID = node.leadID;
|
|
9713
9729
|
|
|
9714
9730
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9715
|
-
return
|
|
9731
|
+
return React.createElement(Leads, { url: url });
|
|
9716
9732
|
},
|
|
9717
9733
|
slideshows: function slideshows(_ref17) {
|
|
9718
9734
|
var node = _ref17.node;
|
|
9719
9735
|
|
|
9720
|
-
return
|
|
9736
|
+
return React.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9721
9737
|
},
|
|
9722
9738
|
nativeAd: function nativeAd(_ref18) {
|
|
9723
9739
|
var node = _ref18.node;
|
|
9724
9740
|
|
|
9725
|
-
return
|
|
9741
|
+
return React.createElement(NativeAd, { node: node });
|
|
9726
9742
|
},
|
|
9727
9743
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9728
9744
|
var node = _ref19.node;
|
|
9729
9745
|
|
|
9730
|
-
return
|
|
9746
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9731
9747
|
},
|
|
9732
9748
|
hrtag: function hrtag() {
|
|
9733
|
-
return
|
|
9749
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9734
9750
|
},
|
|
9735
9751
|
brtag: function brtag() {
|
|
9736
|
-
return
|
|
9752
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9737
9753
|
},
|
|
9738
9754
|
formstack: function formstack(_ref20) {
|
|
9739
9755
|
var node = _ref20.node;
|
|
@@ -9741,29 +9757,29 @@ var getSerializers = function getSerializers() {
|
|
|
9741
9757
|
Caption = node.Caption,
|
|
9742
9758
|
needSegmentSupport = node.needSegmentSupport;
|
|
9743
9759
|
|
|
9744
|
-
return
|
|
9760
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9745
9761
|
},
|
|
9746
9762
|
formassembly: FormAssembly,
|
|
9747
9763
|
multimedia: function multimedia(_ref21) {
|
|
9748
9764
|
var node = _ref21.node;
|
|
9749
9765
|
|
|
9750
|
-
return
|
|
9766
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9751
9767
|
},
|
|
9752
9768
|
blockTable: function blockTable(_ref22) {
|
|
9753
9769
|
var node = _ref22.node;
|
|
9754
|
-
return
|
|
9770
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9755
9771
|
}
|
|
9756
9772
|
},
|
|
9757
9773
|
marks: {
|
|
9758
9774
|
superscript: function superscript(props) {
|
|
9759
|
-
return
|
|
9775
|
+
return React.createElement(
|
|
9760
9776
|
'sup',
|
|
9761
9777
|
null,
|
|
9762
9778
|
props.children
|
|
9763
9779
|
);
|
|
9764
9780
|
},
|
|
9765
9781
|
subscript: function subscript(props) {
|
|
9766
|
-
return
|
|
9782
|
+
return React.createElement(
|
|
9767
9783
|
'sub',
|
|
9768
9784
|
null,
|
|
9769
9785
|
props.children
|
|
@@ -9779,7 +9795,7 @@ var getSerializers = function getSerializers() {
|
|
|
9779
9795
|
if (href && href.charAt(0) === '#') {
|
|
9780
9796
|
var elementId = href.slice(1);
|
|
9781
9797
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9782
|
-
return
|
|
9798
|
+
return React.createElement(
|
|
9783
9799
|
'a',
|
|
9784
9800
|
{ onClick: function onClick() {
|
|
9785
9801
|
return ScrollToElement(elementId);
|
|
@@ -9789,7 +9805,7 @@ var getSerializers = function getSerializers() {
|
|
|
9789
9805
|
}
|
|
9790
9806
|
|
|
9791
9807
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9792
|
-
return
|
|
9808
|
+
return React.createElement(
|
|
9793
9809
|
'a',
|
|
9794
9810
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9795
9811
|
children
|
|
@@ -9797,7 +9813,7 @@ var getSerializers = function getSerializers() {
|
|
|
9797
9813
|
},
|
|
9798
9814
|
alignleft: function alignleft(_ref23) {
|
|
9799
9815
|
var children = _ref23.children;
|
|
9800
|
-
return
|
|
9816
|
+
return React.createElement(
|
|
9801
9817
|
'div',
|
|
9802
9818
|
{ style: { textAlign: 'left' } },
|
|
9803
9819
|
children
|
|
@@ -9805,7 +9821,7 @@ var getSerializers = function getSerializers() {
|
|
|
9805
9821
|
},
|
|
9806
9822
|
alignright: function alignright(_ref24) {
|
|
9807
9823
|
var children = _ref24.children;
|
|
9808
|
-
return
|
|
9824
|
+
return React.createElement(
|
|
9809
9825
|
'div',
|
|
9810
9826
|
{ style: { textAlign: 'right' } },
|
|
9811
9827
|
children
|
|
@@ -9813,7 +9829,7 @@ var getSerializers = function getSerializers() {
|
|
|
9813
9829
|
},
|
|
9814
9830
|
aligncenter: function aligncenter(_ref25) {
|
|
9815
9831
|
var children = _ref25.children;
|
|
9816
|
-
return
|
|
9832
|
+
return React.createElement(
|
|
9817
9833
|
'div',
|
|
9818
9834
|
{ style: { textAlign: 'center' } },
|
|
9819
9835
|
children
|
|
@@ -9821,7 +9837,7 @@ var getSerializers = function getSerializers() {
|
|
|
9821
9837
|
},
|
|
9822
9838
|
alignjustify: function alignjustify(_ref26) {
|
|
9823
9839
|
var children = _ref26.children;
|
|
9824
|
-
return
|
|
9840
|
+
return React.createElement(
|
|
9825
9841
|
'div',
|
|
9826
9842
|
{ style: { textAlign: 'justify' } },
|
|
9827
9843
|
children
|
|
@@ -9831,7 +9847,7 @@ var getSerializers = function getSerializers() {
|
|
|
9831
9847
|
var children = props.children,
|
|
9832
9848
|
color = props.mark.color;
|
|
9833
9849
|
|
|
9834
|
-
return
|
|
9850
|
+
return React.createElement(
|
|
9835
9851
|
'span',
|
|
9836
9852
|
{ style: { color: color ? color.hex : null } },
|
|
9837
9853
|
children
|