@mjhls/mjh-framework 1.0.854-beta.0 → 1.0.854
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-98c71bcd.js → ADInfeed-fb136f1d.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-9de32585.js → ADlgInfeed-d303d27e.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 +1392 -1274
- 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 +682 -1506
- package/dist/cjs/AuthWrapper.js +311 -269
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +62 -59
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -103
- package/dist/cjs/DeckQueue.js +92 -88
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-93399f8c.js} +35 -34
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +81 -80
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +43 -42
- package/dist/cjs/GridContent.js +238 -233
- package/dist/cjs/GridHero.js +45 -44
- package/dist/cjs/GroupDeck.js +60 -59
- package/dist/cjs/HamMagazine.js +145 -140
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +73 -72
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +78 -73
- package/dist/cjs/IssueDeck.js +77 -72
- package/dist/cjs/IssueLanding.js +96 -95
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +41 -39
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/MediaSeriesLanding.js +1120 -1129
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +152 -147
- package/dist/cjs/NavNative.js +147 -139
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +73 -72
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +129 -3958
- 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 +266 -263
- 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-f1821260.js → getTargeting-faf37284.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-276bab5c.js → index-d8793467.js} +1082 -1056
- 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 +171 -166
- 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-1cc9d817.js → ADInfeed-df562a07.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-8c4f129e.js → ADlgInfeed-53992119.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 +820 -703
- 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 +661 -1489
- package/dist/esm/AuthWrapper.js +308 -267
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5ae7409f.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-52cf21c5.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +56 -56
- package/dist/esm/ConferenceArticleCard.js +35 -35
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +98 -98
- package/dist/esm/DeckQueue.js +83 -83
- package/dist/esm/{Dfp-b7236041.js → Dfp-43f121ff.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +201 -201
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +116 -116
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -69
- package/dist/esm/HorizontalHero.js +22 -22
- package/dist/esm/IssueContentDeck.js +61 -61
- package/dist/esm/IssueDeck.js +65 -65
- package/dist/esm/IssueLanding.js +92 -92
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +77 -77
- package/dist/esm/MediaSeriesLanding.js +841 -853
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +116 -116
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +125 -3954
- 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 +247 -248
- 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-bd800589.js → getTargeting-c3401fa7.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-0f6867b9.js → index-ffedd1e8.js} +1031 -1015
- 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 +141 -139
- 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,40 +1,40 @@
|
|
|
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
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip
|
|
37
|
-
import Popover
|
|
36
|
+
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover from 'react-bootstrap/Popover';
|
|
38
38
|
|
|
39
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -42,7 +42,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
42
42
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var Slideshow = function Slideshow(_ref) {
|
|
45
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
46
46
|
var slides = _ref.slides,
|
|
47
47
|
client = _ref.client,
|
|
48
48
|
pageview = _ref.pageview;
|
|
@@ -69,27 +69,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
84
|
+
React.createElement(
|
|
85
85
|
'picture',
|
|
86
86
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
88
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
89
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
90
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
91
|
),
|
|
92
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React.createElement(
|
|
93
93
|
'p',
|
|
94
94
|
{ className: 'p-2' },
|
|
95
95
|
slide.caption
|
|
@@ -100,21 +100,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
// do not edit .js files directly - edit src/index.jst
|
|
104
|
+
|
|
105
|
+
|
|
106
106
|
|
|
107
107
|
var fastDeepEqual = function equal(a, b) {
|
|
108
108
|
if (a === b) return true;
|
|
109
109
|
|
|
110
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
112
|
-
, arrB = isArray(b)
|
|
113
|
-
, i
|
|
114
|
-
, length
|
|
115
|
-
, key;
|
|
111
|
+
if (a.constructor !== b.constructor) return false;
|
|
116
112
|
|
|
117
|
-
|
|
113
|
+
var length, i, keys;
|
|
114
|
+
if (Array.isArray(a)) {
|
|
118
115
|
length = a.length;
|
|
119
116
|
if (length != b.length) return false;
|
|
120
117
|
for (i = length; i-- !== 0;)
|
|
@@ -122,35 +119,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
122
119
|
return true;
|
|
123
120
|
}
|
|
124
121
|
|
|
125
|
-
if (arrA != arrB) return false;
|
|
126
122
|
|
|
127
|
-
var dateA = a instanceof Date
|
|
128
|
-
, dateB = b instanceof Date;
|
|
129
|
-
if (dateA != dateB) return false;
|
|
130
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
131
123
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
124
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
125
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
126
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
136
127
|
|
|
137
|
-
|
|
128
|
+
keys = Object.keys(a);
|
|
138
129
|
length = keys.length;
|
|
139
|
-
|
|
140
|
-
if (length !== keyList(b).length)
|
|
141
|
-
return false;
|
|
130
|
+
if (length !== Object.keys(b).length) return false;
|
|
142
131
|
|
|
143
132
|
for (i = length; i-- !== 0;)
|
|
144
|
-
if (!
|
|
133
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
145
134
|
|
|
146
135
|
for (i = length; i-- !== 0;) {
|
|
147
|
-
key = keys[i];
|
|
136
|
+
var key = keys[i];
|
|
137
|
+
|
|
148
138
|
if (!equal(a[key], b[key])) return false;
|
|
149
139
|
}
|
|
150
140
|
|
|
151
141
|
return true;
|
|
152
142
|
}
|
|
153
143
|
|
|
144
|
+
// true if both NaN, false otherwise
|
|
154
145
|
return a!==a && b!==b;
|
|
155
146
|
};
|
|
156
147
|
|
|
@@ -688,14 +679,14 @@ function coerce(val) {
|
|
|
688
679
|
return val;
|
|
689
680
|
}
|
|
690
681
|
});
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
682
|
+
debug.coerce;
|
|
683
|
+
debug.disable;
|
|
684
|
+
debug.enable;
|
|
685
|
+
debug.enabled;
|
|
686
|
+
debug.humanize;
|
|
687
|
+
debug.names;
|
|
688
|
+
debug.skips;
|
|
689
|
+
debug.formatters;
|
|
699
690
|
|
|
700
691
|
var browser = createCommonjsModule(function (module, exports) {
|
|
701
692
|
/**
|
|
@@ -884,13 +875,13 @@ function localstorage() {
|
|
|
884
875
|
} catch (e) {}
|
|
885
876
|
}
|
|
886
877
|
});
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
878
|
+
browser.log;
|
|
879
|
+
browser.formatArgs;
|
|
880
|
+
browser.save;
|
|
881
|
+
browser.load;
|
|
882
|
+
browser.useColors;
|
|
883
|
+
browser.storage;
|
|
884
|
+
browser.colors;
|
|
894
885
|
|
|
895
886
|
// MIT lisence
|
|
896
887
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1165,14 +1156,14 @@ function init (debug) {
|
|
|
1165
1156
|
|
|
1166
1157
|
exports.enable(load());
|
|
1167
1158
|
});
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1159
|
+
node.init;
|
|
1160
|
+
node.log;
|
|
1161
|
+
node.formatArgs;
|
|
1162
|
+
node.save;
|
|
1163
|
+
node.load;
|
|
1164
|
+
node.useColors;
|
|
1165
|
+
node.colors;
|
|
1166
|
+
node.inspectOpts;
|
|
1176
1167
|
|
|
1177
1168
|
var src = createCommonjsModule(function (module) {
|
|
1178
1169
|
/**
|
|
@@ -1573,199 +1564,239 @@ module.exports = exports['default'];
|
|
|
1573
1564
|
|
|
1574
1565
|
var youTubePlayer = unwrapExports(dist);
|
|
1575
1566
|
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
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; };
|
|
1567
|
+
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); }
|
|
1579
1568
|
|
|
1580
1569
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
1570
|
|
|
1582
|
-
function
|
|
1571
|
+
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); } }
|
|
1572
|
+
|
|
1573
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1574
|
+
|
|
1575
|
+
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); }
|
|
1576
|
+
|
|
1577
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1578
|
+
|
|
1579
|
+
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); }; }
|
|
1583
1580
|
|
|
1584
|
-
function
|
|
1581
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1582
|
+
|
|
1583
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1584
|
+
|
|
1585
|
+
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; } }
|
|
1585
1586
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1587
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1588
|
+
|
|
1589
|
+
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; }
|
|
1590
|
+
|
|
1591
|
+
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; }
|
|
1592
|
+
|
|
1593
|
+
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; }
|
|
1594
|
+
/**
|
|
1595
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1596
|
+
*
|
|
1597
|
+
* @param {Object} prevProps
|
|
1598
|
+
* @param {Object} props
|
|
1591
1599
|
*/
|
|
1600
|
+
|
|
1592
1601
|
function shouldUpdateVideo(prevProps, props) {
|
|
1593
1602
|
// A changing video should always trigger an update
|
|
1594
1603
|
if (prevProps.videoId !== props.videoId) {
|
|
1595
1604
|
return true;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1605
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
1606
|
// update.
|
|
1607
|
+
|
|
1608
|
+
|
|
1600
1609
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1601
1610
|
var vars = props.opts.playerVars || {};
|
|
1602
|
-
|
|
1603
1611
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1604
1612
|
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
*
|
|
1608
|
-
*
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
1611
|
-
* @param {Object} opts
|
|
1613
|
+
/**
|
|
1614
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1615
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
+
* player reset is necessary.
|
|
1617
|
+
*
|
|
1618
|
+
* @param {Object} opts
|
|
1612
1619
|
*/
|
|
1620
|
+
|
|
1621
|
+
|
|
1613
1622
|
function filterResetOptions(opts) {
|
|
1614
|
-
return
|
|
1615
|
-
playerVars:
|
|
1623
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1624
|
+
playerVars: _objectSpread({
|
|
1616
1625
|
autoplay: 0,
|
|
1617
1626
|
start: 0,
|
|
1618
1627
|
end: 0
|
|
1619
|
-
})
|
|
1628
|
+
}, opts.playerVars)
|
|
1620
1629
|
});
|
|
1621
1630
|
}
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object}
|
|
1630
|
-
* @param {Object} props
|
|
1631
|
+
/**
|
|
1632
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
+
* those.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {Object} prevProps
|
|
1638
|
+
* @param {Object} props
|
|
1631
1639
|
*/
|
|
1640
|
+
|
|
1641
|
+
|
|
1632
1642
|
function shouldResetPlayer(prevProps, props) {
|
|
1633
1643
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1634
1644
|
}
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
*
|
|
1638
|
-
*
|
|
1639
|
-
* @param {Object}
|
|
1640
|
-
* @param {Object} props
|
|
1645
|
+
/**
|
|
1646
|
+
* Check whether a props change should result in an id or className update.
|
|
1647
|
+
*
|
|
1648
|
+
* @param {Object} prevProps
|
|
1649
|
+
* @param {Object} props
|
|
1641
1650
|
*/
|
|
1651
|
+
|
|
1652
|
+
|
|
1642
1653
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1643
1654
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1644
1655
|
}
|
|
1645
1656
|
|
|
1646
|
-
var YouTube = function (_React$Component) {
|
|
1657
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1647
1658
|
_inherits(YouTube, _React$Component);
|
|
1648
1659
|
|
|
1660
|
+
var _super = _createSuper(YouTube);
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1664
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1665
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1666
|
+
*/
|
|
1649
1667
|
function YouTube(props) {
|
|
1668
|
+
var _this;
|
|
1669
|
+
|
|
1650
1670
|
_classCallCheck(this, YouTube);
|
|
1651
1671
|
|
|
1652
|
-
|
|
1672
|
+
_this = _super.call(this, props);
|
|
1653
1673
|
|
|
1654
|
-
_this
|
|
1674
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1655
1675
|
return _this.props.onReady(event);
|
|
1656
|
-
};
|
|
1676
|
+
});
|
|
1657
1677
|
|
|
1658
|
-
_this
|
|
1678
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1659
1679
|
return _this.props.onError(event);
|
|
1660
|
-
};
|
|
1680
|
+
});
|
|
1661
1681
|
|
|
1662
|
-
_this
|
|
1682
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1663
1683
|
_this.props.onStateChange(event);
|
|
1664
|
-
switch (event.data) {
|
|
1665
1684
|
|
|
1685
|
+
switch (event.data) {
|
|
1666
1686
|
case YouTube.PlayerState.ENDED:
|
|
1667
1687
|
_this.props.onEnd(event);
|
|
1688
|
+
|
|
1668
1689
|
break;
|
|
1669
1690
|
|
|
1670
1691
|
case YouTube.PlayerState.PLAYING:
|
|
1671
1692
|
_this.props.onPlay(event);
|
|
1693
|
+
|
|
1672
1694
|
break;
|
|
1673
1695
|
|
|
1674
1696
|
case YouTube.PlayerState.PAUSED:
|
|
1675
1697
|
_this.props.onPause(event);
|
|
1698
|
+
|
|
1676
1699
|
break;
|
|
1677
1700
|
}
|
|
1678
|
-
};
|
|
1701
|
+
});
|
|
1679
1702
|
|
|
1680
|
-
_this
|
|
1703
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1681
1704
|
return _this.props.onPlaybackRateChange(event);
|
|
1682
|
-
};
|
|
1705
|
+
});
|
|
1683
1706
|
|
|
1684
|
-
_this
|
|
1707
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1685
1708
|
return _this.props.onPlaybackQualityChange(event);
|
|
1686
|
-
};
|
|
1709
|
+
});
|
|
1687
1710
|
|
|
1688
|
-
_this
|
|
1711
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1689
1712
|
// do not attempt to create a player server-side, it won't work
|
|
1690
|
-
if (typeof document === 'undefined') return;
|
|
1691
|
-
|
|
1692
|
-
var playerOpts =
|
|
1713
|
+
if (typeof document === 'undefined') return; // create player
|
|
1714
|
+
|
|
1715
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1693
1716
|
// preload the `videoId` video if one is already given
|
|
1694
1717
|
videoId: _this.props.videoId
|
|
1695
1718
|
});
|
|
1696
|
-
|
|
1697
|
-
// attach event handlers
|
|
1719
|
+
|
|
1720
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1721
|
+
|
|
1698
1722
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1723
|
+
|
|
1699
1724
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1725
|
+
|
|
1700
1726
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1727
|
+
|
|
1701
1728
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1729
|
+
|
|
1702
1730
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1703
|
-
};
|
|
1731
|
+
});
|
|
1704
1732
|
|
|
1705
|
-
_this
|
|
1733
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1706
1734
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1707
|
-
};
|
|
1735
|
+
});
|
|
1708
1736
|
|
|
1709
|
-
_this
|
|
1737
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1710
1738
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1711
1739
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1712
1740
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1713
1741
|
});
|
|
1714
|
-
};
|
|
1742
|
+
});
|
|
1715
1743
|
|
|
1716
|
-
_this
|
|
1744
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1745
|
+
return _this.internalPlayer;
|
|
1746
|
+
});
|
|
1747
|
+
|
|
1748
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1717
1749
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1718
1750
|
_this.internalPlayer.stopVideo();
|
|
1751
|
+
|
|
1719
1752
|
return;
|
|
1720
|
-
}
|
|
1753
|
+
} // set queueing options
|
|
1754
|
+
|
|
1721
1755
|
|
|
1722
|
-
// set queueing options
|
|
1723
1756
|
var autoplay = false;
|
|
1724
1757
|
var opts = {
|
|
1725
1758
|
videoId: _this.props.videoId
|
|
1726
1759
|
};
|
|
1760
|
+
|
|
1727
1761
|
if ('playerVars' in _this.props.opts) {
|
|
1728
1762
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
+
|
|
1729
1764
|
if ('start' in _this.props.opts.playerVars) {
|
|
1730
1765
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1731
1766
|
}
|
|
1767
|
+
|
|
1732
1768
|
if ('end' in _this.props.opts.playerVars) {
|
|
1733
1769
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1734
1770
|
}
|
|
1735
|
-
}
|
|
1771
|
+
} // if autoplay is enabled loadVideoById
|
|
1772
|
+
|
|
1736
1773
|
|
|
1737
|
-
// if autoplay is enabled loadVideoById
|
|
1738
1774
|
if (autoplay) {
|
|
1739
1775
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
+
|
|
1740
1777
|
return;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1778
|
+
} // default behaviour just cues the video
|
|
1779
|
+
|
|
1780
|
+
|
|
1743
1781
|
_this.internalPlayer.cueVideoById(opts);
|
|
1744
|
-
};
|
|
1782
|
+
});
|
|
1745
1783
|
|
|
1746
|
-
_this
|
|
1784
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1747
1785
|
_this.container = container;
|
|
1748
|
-
};
|
|
1786
|
+
});
|
|
1749
1787
|
|
|
1750
1788
|
_this.container = null;
|
|
1751
1789
|
_this.internalPlayer = null;
|
|
1752
1790
|
return _this;
|
|
1753
1791
|
}
|
|
1754
1792
|
|
|
1755
|
-
/**
|
|
1756
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1757
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1758
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1759
|
-
*/
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
1793
|
_createClass(YouTube, [{
|
|
1763
|
-
key:
|
|
1794
|
+
key: "componentDidMount",
|
|
1764
1795
|
value: function componentDidMount() {
|
|
1765
1796
|
this.createPlayer();
|
|
1766
1797
|
}
|
|
1767
1798
|
}, {
|
|
1768
|
-
key:
|
|
1799
|
+
key: "componentDidUpdate",
|
|
1769
1800
|
value: function componentDidUpdate(prevProps) {
|
|
1770
1801
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1771
1802
|
this.updatePlayer();
|
|
@@ -1780,112 +1811,58 @@ var YouTube = function (_React$Component) {
|
|
|
1780
1811
|
}
|
|
1781
1812
|
}
|
|
1782
1813
|
}, {
|
|
1783
|
-
key:
|
|
1814
|
+
key: "componentWillUnmount",
|
|
1784
1815
|
value: function componentWillUnmount() {
|
|
1785
|
-
/**
|
|
1786
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1787
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1788
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1789
|
-
* this method isn't quick enough to reset the container element.
|
|
1816
|
+
/**
|
|
1817
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1818
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1819
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1820
|
+
* this method isn't quick enough to reset the container element.
|
|
1790
1821
|
*/
|
|
1791
1822
|
this.internalPlayer.destroy();
|
|
1792
1823
|
}
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
*
|
|
1796
|
-
*
|
|
1797
|
-
*
|
|
1798
|
-
* @param {Object} target - player object
|
|
1799
|
-
*/
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
/**
|
|
1803
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1804
|
-
*
|
|
1805
|
-
* @param {Object} event
|
|
1806
|
-
* @param {Integer} data - error type
|
|
1807
|
-
* @param {Object} target - player object
|
|
1808
|
-
*/
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
/**
|
|
1812
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1813
|
-
*
|
|
1814
|
-
* @param {Object} event
|
|
1815
|
-
* @param {Integer} data - status change type
|
|
1816
|
-
* @param {Object} target - actual YT player
|
|
1817
|
-
*/
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
/**
|
|
1821
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1822
|
-
*
|
|
1823
|
-
* @param {Object} event
|
|
1824
|
-
* @param {Float} data - playback rate
|
|
1825
|
-
* @param {Object} target - actual YT player
|
|
1826
|
-
*/
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
/**
|
|
1830
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1831
|
-
*
|
|
1832
|
-
* @param {Object} event
|
|
1833
|
-
* @param {String} data - playback quality
|
|
1834
|
-
* @param {Object} target - actual YT player
|
|
1835
|
-
*/
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1840
|
-
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
/**
|
|
1844
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1845
|
-
*/
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
/**
|
|
1849
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1850
|
-
* React should update this automatically but since the Youtube Player API
|
|
1851
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1852
|
-
*/
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
/**
|
|
1856
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1857
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1858
|
-
* Youtube Player API methods to update the video.
|
|
1824
|
+
/**
|
|
1825
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1826
|
+
*
|
|
1827
|
+
* @param {Object} event
|
|
1828
|
+
* @param {Object} target - player object
|
|
1859
1829
|
*/
|
|
1860
1830
|
|
|
1861
1831
|
}, {
|
|
1862
|
-
key:
|
|
1832
|
+
key: "render",
|
|
1863
1833
|
value: function render() {
|
|
1864
|
-
return
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1834
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1835
|
+
className: this.props.containerClassName
|
|
1836
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1837
|
+
id: this.props.id,
|
|
1838
|
+
className: this.props.className,
|
|
1839
|
+
ref: this.refContainer
|
|
1840
|
+
}));
|
|
1869
1841
|
}
|
|
1870
1842
|
}]);
|
|
1871
1843
|
|
|
1872
1844
|
return YouTube;
|
|
1873
|
-
}(
|
|
1845
|
+
}(React.Component);
|
|
1846
|
+
|
|
1847
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1848
|
+
UNSTARTED: -1,
|
|
1849
|
+
ENDED: 0,
|
|
1850
|
+
PLAYING: 1,
|
|
1851
|
+
PAUSED: 2,
|
|
1852
|
+
BUFFERING: 3,
|
|
1853
|
+
CUED: 5
|
|
1854
|
+
});
|
|
1874
1855
|
|
|
1875
1856
|
YouTube.propTypes = {
|
|
1876
1857
|
videoId: PropTypes.string,
|
|
1877
|
-
|
|
1878
1858
|
// custom ID for player element
|
|
1879
1859
|
id: PropTypes.string,
|
|
1880
|
-
|
|
1881
1860
|
// custom class name for player element
|
|
1882
1861
|
className: PropTypes.string,
|
|
1883
1862
|
// custom class name for player container element
|
|
1884
1863
|
containerClassName: PropTypes.string,
|
|
1885
|
-
|
|
1886
1864
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1887
1865
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
-
|
|
1889
1866
|
// event subscriptions
|
|
1890
1867
|
onReady: PropTypes.func,
|
|
1891
1868
|
onError: PropTypes.func,
|
|
@@ -1897,6 +1874,7 @@ YouTube.propTypes = {
|
|
|
1897
1874
|
onPlaybackQualityChange: PropTypes.func
|
|
1898
1875
|
};
|
|
1899
1876
|
YouTube.defaultProps = {
|
|
1877
|
+
videoId: null,
|
|
1900
1878
|
id: null,
|
|
1901
1879
|
className: null,
|
|
1902
1880
|
opts: {},
|
|
@@ -1910,14 +1888,6 @@ YouTube.defaultProps = {
|
|
|
1910
1888
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1911
1889
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1912
1890
|
};
|
|
1913
|
-
YouTube.PlayerState = {
|
|
1914
|
-
UNSTARTED: -1,
|
|
1915
|
-
ENDED: 0,
|
|
1916
|
-
PLAYING: 1,
|
|
1917
|
-
PAUSED: 2,
|
|
1918
|
-
BUFFERING: 3,
|
|
1919
|
-
CUED: 5
|
|
1920
|
-
};
|
|
1921
1891
|
|
|
1922
1892
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1923
1893
|
var url = _ref.url,
|
|
@@ -1956,8 +1926,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1956
1926
|
var duration = player.getDuration();
|
|
1957
1927
|
var queue = Math.floor(duration / 10);
|
|
1958
1928
|
var segment = Math.floor(current / queue);
|
|
1959
|
-
Beam.report_beam_video('Ready',
|
|
1960
|
-
Segment.report_video_event('Video Ready',
|
|
1929
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1930
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1961
1931
|
};
|
|
1962
1932
|
|
|
1963
1933
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1967,8 +1937,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1967
1937
|
var segment = Math.floor(current / queue);
|
|
1968
1938
|
|
|
1969
1939
|
if (!queueProgress.includes(segment)) {
|
|
1970
|
-
Beam.report_beam_video('Segment',
|
|
1971
|
-
Segment.report_video_event('Video Segment',
|
|
1940
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1941
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1972
1942
|
queueProgress.push(segment);
|
|
1973
1943
|
}
|
|
1974
1944
|
};
|
|
@@ -1981,8 +1951,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1981
1951
|
var queue = Math.floor(duration / 10);
|
|
1982
1952
|
var segment = Math.floor(current / queue);
|
|
1983
1953
|
|
|
1984
|
-
Beam.report_beam_video('Play',
|
|
1985
|
-
Segment.report_video_event('Video Play',
|
|
1954
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1955
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1986
1956
|
|
|
1987
1957
|
if (!playReported) {
|
|
1988
1958
|
setPlayReported(true);
|
|
@@ -2001,8 +1971,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2001
1971
|
var queue = Math.floor(duration / 10);
|
|
2002
1972
|
var segment = Math.floor(current / queue);
|
|
2003
1973
|
|
|
2004
|
-
Beam.report_beam_video('End',
|
|
2005
|
-
Segment.report_video_event('Video End',
|
|
1974
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1975
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2006
1976
|
setEndReported(true);
|
|
2007
1977
|
clearInterval(intervalID);
|
|
2008
1978
|
}
|
|
@@ -2015,15 +1985,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2015
1985
|
var queue = Math.floor(duration / 10);
|
|
2016
1986
|
var segment = Math.floor(current / queue);
|
|
2017
1987
|
|
|
2018
|
-
Beam.report_beam_video('Pause',
|
|
2019
|
-
Segment.report_video_event('Video Pause',
|
|
1988
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1989
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2020
1990
|
};
|
|
2021
1991
|
|
|
2022
|
-
return
|
|
1992
|
+
return React.createElement(
|
|
2023
1993
|
'div',
|
|
2024
1994
|
{ id: 'fluid-video-container' },
|
|
2025
|
-
|
|
2026
|
-
|
|
1995
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1996
|
+
React.createElement(
|
|
2027
1997
|
'style',
|
|
2028
1998
|
{ jsx: 'true' },
|
|
2029
1999
|
'\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 '
|
|
@@ -2036,20 +2006,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2036
2006
|
content = _ref.content,
|
|
2037
2007
|
getSerializers = _ref.getSerializers;
|
|
2038
2008
|
|
|
2039
|
-
return
|
|
2009
|
+
return React.createElement(
|
|
2040
2010
|
'article',
|
|
2041
2011
|
{ className: 'sidebar' },
|
|
2042
|
-
|
|
2012
|
+
React.createElement(
|
|
2043
2013
|
'div',
|
|
2044
2014
|
null,
|
|
2045
|
-
|
|
2015
|
+
React.createElement(
|
|
2046
2016
|
'h3',
|
|
2047
2017
|
null,
|
|
2048
2018
|
caption
|
|
2049
2019
|
),
|
|
2050
|
-
|
|
2020
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2051
2021
|
),
|
|
2052
|
-
|
|
2022
|
+
React.createElement(
|
|
2053
2023
|
'style',
|
|
2054
2024
|
{ jsx: 'true' },
|
|
2055
2025
|
'\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 '
|
|
@@ -2060,18 +2030,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2060
2030
|
var TableShow = function TableShow(_ref) {
|
|
2061
2031
|
var rows = _ref.rows;
|
|
2062
2032
|
|
|
2063
|
-
return
|
|
2033
|
+
return React.createElement(
|
|
2064
2034
|
Table,
|
|
2065
2035
|
{ bordered: true, hover: true, responsive: true },
|
|
2066
|
-
|
|
2036
|
+
React.createElement(
|
|
2067
2037
|
'tbody',
|
|
2068
2038
|
null,
|
|
2069
2039
|
rows && rows.map(function (row) {
|
|
2070
|
-
return
|
|
2040
|
+
return React.createElement(
|
|
2071
2041
|
'tr',
|
|
2072
2042
|
{ key: row._key },
|
|
2073
2043
|
row.cells && row.cells.map(function (cell, index) {
|
|
2074
|
-
return cell &&
|
|
2044
|
+
return cell && React.createElement(
|
|
2075
2045
|
'td',
|
|
2076
2046
|
{ key: index },
|
|
2077
2047
|
cell
|
|
@@ -2169,25 +2139,25 @@ var Media = function Media(_ref) {
|
|
|
2169
2139
|
margin: imageMargin
|
|
2170
2140
|
};
|
|
2171
2141
|
|
|
2172
|
-
return
|
|
2142
|
+
return React.createElement(
|
|
2173
2143
|
Figure$1,
|
|
2174
2144
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2175
|
-
|
|
2145
|
+
React.createElement(
|
|
2176
2146
|
'a',
|
|
2177
2147
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2178
|
-
|
|
2148
|
+
React.createElement(
|
|
2179
2149
|
LazyLoad,
|
|
2180
2150
|
{ once: true },
|
|
2181
|
-
|
|
2151
|
+
React.createElement(
|
|
2182
2152
|
'picture',
|
|
2183
2153
|
null,
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2154
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2155
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2156
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2157
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2188
2158
|
)
|
|
2189
2159
|
),
|
|
2190
|
-
caption &&
|
|
2160
|
+
caption && React.createElement(
|
|
2191
2161
|
Figure$1.Caption,
|
|
2192
2162
|
{ className: 'media-caption' },
|
|
2193
2163
|
caption
|
|
@@ -2195,9 +2165,9 @@ var Media = function Media(_ref) {
|
|
|
2195
2165
|
)
|
|
2196
2166
|
);
|
|
2197
2167
|
} else if (caption && caption !== '') {
|
|
2198
|
-
return
|
|
2168
|
+
return React.createElement(
|
|
2199
2169
|
'a',
|
|
2200
|
-
_extends
|
|
2170
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2201
2171
|
href: uploadDoc.asset.url + '?dl='
|
|
2202
2172
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2203
2173
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2215,10 +2185,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2215
2185
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2216
2186
|
|
|
2217
2187
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2218
|
-
return
|
|
2188
|
+
return React.createElement(
|
|
2219
2189
|
'div',
|
|
2220
2190
|
{ className: 'd-block text-center mb-3' },
|
|
2221
|
-
|
|
2191
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2222
2192
|
);
|
|
2223
2193
|
};
|
|
2224
2194
|
|
|
@@ -2252,8 +2222,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2252
2222
|
var duration = player.duration;
|
|
2253
2223
|
var queue = Math.floor(duration / 10);
|
|
2254
2224
|
var segment = Math.floor(current / queue);
|
|
2255
|
-
Beam.report_beam_video('Ready',
|
|
2256
|
-
Segment.report_video_event('Video Ready',
|
|
2225
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2226
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2257
2227
|
};
|
|
2258
2228
|
|
|
2259
2229
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2262,8 +2232,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2262
2232
|
var queue = Math.floor(duration / 10);
|
|
2263
2233
|
var segment = Math.floor(current / queue);
|
|
2264
2234
|
if (!queueProgress.includes(segment)) {
|
|
2265
|
-
Beam.report_beam_video('Segment',
|
|
2266
|
-
Segment.report_video_event('Video Segment',
|
|
2235
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2236
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2267
2237
|
queueProgress.push(segment);
|
|
2268
2238
|
}
|
|
2269
2239
|
};
|
|
@@ -2275,8 +2245,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2275
2245
|
var duration = player.duration;
|
|
2276
2246
|
var queue = Math.floor(duration / 10);
|
|
2277
2247
|
var segment = Math.floor(current / queue);
|
|
2278
|
-
Beam.report_beam_video('Play',
|
|
2279
|
-
Segment.report_video_event('Video Play',
|
|
2248
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2249
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2280
2250
|
|
|
2281
2251
|
if (!playReported) {
|
|
2282
2252
|
event.persist();
|
|
@@ -2296,8 +2266,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2296
2266
|
var queue = Math.floor(duration / 10);
|
|
2297
2267
|
var segment = Math.floor(current / queue);
|
|
2298
2268
|
|
|
2299
|
-
Beam.report_beam_video('End',
|
|
2300
|
-
Segment.report_video_event('Video End',
|
|
2269
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2270
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2301
2271
|
setEndReported(true);
|
|
2302
2272
|
clearInterval(intervalID);
|
|
2303
2273
|
}
|
|
@@ -2309,14 +2279,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2309
2279
|
var duration = player.duration - current;
|
|
2310
2280
|
var queue = Math.floor(duration / 10);
|
|
2311
2281
|
var segment = Math.floor(current / queue);
|
|
2312
|
-
Beam.report_beam_video('Pause',
|
|
2313
|
-
Segment.report_video_event('Video Pause',
|
|
2282
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2283
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2314
2284
|
};
|
|
2315
2285
|
|
|
2316
|
-
return
|
|
2286
|
+
return React.createElement(
|
|
2317
2287
|
'div',
|
|
2318
2288
|
null,
|
|
2319
|
-
vidLoaded &&
|
|
2289
|
+
vidLoaded && React.createElement(
|
|
2320
2290
|
'video',
|
|
2321
2291
|
{
|
|
2322
2292
|
poster: thumbnail || '',
|
|
@@ -2334,7 +2304,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2334
2304
|
onPlay: function onPlay(e) {
|
|
2335
2305
|
return handleOnPlay(e);
|
|
2336
2306
|
} },
|
|
2337
|
-
|
|
2307
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2338
2308
|
'Your browser does not support the video tag.'
|
|
2339
2309
|
)
|
|
2340
2310
|
);
|
|
@@ -2371,7 +2341,7 @@ var Video = function Video(_ref) {
|
|
|
2371
2341
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2372
2342
|
//console.log('success:', success.ref)
|
|
2373
2343
|
var player = success.ref;
|
|
2374
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2344
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2375
2345
|
player.ima3.settings.debug = true;
|
|
2376
2346
|
if (targeting.content_placement && targeting.document_url) {
|
|
2377
2347
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2399,8 +2369,8 @@ var Video = function Video(_ref) {
|
|
|
2399
2369
|
player.pause();
|
|
2400
2370
|
}
|
|
2401
2371
|
|
|
2402
|
-
Beam.report_beam_video('Ready',
|
|
2403
|
-
Segment.report_video_event('Video Ready',
|
|
2372
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2373
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2404
2374
|
});
|
|
2405
2375
|
|
|
2406
2376
|
// play
|
|
@@ -2409,8 +2379,8 @@ var Video = function Video(_ref) {
|
|
|
2409
2379
|
var current = player.currentTime();
|
|
2410
2380
|
var queue = Math.floor(duration / 10);
|
|
2411
2381
|
var segment = Math.floor(current / queue);
|
|
2412
|
-
Beam.report_beam_video('Play',
|
|
2413
|
-
Segment.report_video_event('Video Play',
|
|
2382
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2383
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2414
2384
|
});
|
|
2415
2385
|
|
|
2416
2386
|
// pause
|
|
@@ -2419,8 +2389,8 @@ var Video = function Video(_ref) {
|
|
|
2419
2389
|
var current = player.currentTime();
|
|
2420
2390
|
var queue = Math.floor(duration / 10);
|
|
2421
2391
|
var segment = Math.floor(current / queue);
|
|
2422
|
-
Beam.report_beam_video('Pause',
|
|
2423
|
-
Segment.report_video_event('Video Pause',
|
|
2392
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2393
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2424
2394
|
});
|
|
2425
2395
|
|
|
2426
2396
|
// end
|
|
@@ -2429,8 +2399,8 @@ var Video = function Video(_ref) {
|
|
|
2429
2399
|
var current = player.currentTime();
|
|
2430
2400
|
var queue = Math.floor(duration / 10);
|
|
2431
2401
|
var segment = Math.floor(current / queue);
|
|
2432
|
-
Beam.report_beam_video('End',
|
|
2433
|
-
Segment.report_video_event('Video End',
|
|
2402
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2403
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2434
2404
|
autoplayNextVideo(evt);
|
|
2435
2405
|
});
|
|
2436
2406
|
|
|
@@ -2441,8 +2411,8 @@ var Video = function Video(_ref) {
|
|
|
2441
2411
|
var queue = Math.floor(duration / 10);
|
|
2442
2412
|
var segment = Math.floor(current / queue);
|
|
2443
2413
|
if (!queueProgress.includes(segment)) {
|
|
2444
|
-
Beam.report_beam_video('Segment',
|
|
2445
|
-
Segment.report_video_event('Video Segment',
|
|
2414
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2415
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2446
2416
|
queueProgress.push(segment);
|
|
2447
2417
|
}
|
|
2448
2418
|
});
|
|
@@ -2453,8 +2423,8 @@ var Video = function Video(_ref) {
|
|
|
2453
2423
|
var id = player.ads.ad.id;
|
|
2454
2424
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2455
2425
|
|
|
2456
|
-
Beam.report_beam_ad('AD Started',
|
|
2457
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2426
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2427
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2458
2428
|
});
|
|
2459
2429
|
|
|
2460
2430
|
// ad ended
|
|
@@ -2462,60 +2432,60 @@ var Video = function Video(_ref) {
|
|
|
2462
2432
|
var duration = player.ads.ad.duration;
|
|
2463
2433
|
var id = player.ads.ad.id;
|
|
2464
2434
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2465
|
-
Beam.report_beam_ad('AD Ended',
|
|
2466
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2435
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2436
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2467
2437
|
});
|
|
2468
2438
|
};
|
|
2469
2439
|
|
|
2470
2440
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2471
2441
|
if (videoID) {
|
|
2472
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2473
2443
|
'div',
|
|
2474
2444
|
null,
|
|
2475
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2476
2446
|
onSuccess: onVideoSuccess,
|
|
2477
2447
|
accountId: accountIDs.brightcove.accountId,
|
|
2478
2448
|
videoId: videoID,
|
|
2479
2449
|
playerId: accountIDs.brightcove.playerId,
|
|
2480
2450
|
attrs: { className: 'brightcove-fluid', 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 (playlistID) {
|
|
2489
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2490
2460
|
'div',
|
|
2491
2461
|
null,
|
|
2492
|
-
|
|
2462
|
+
React.createElement(ReactPlayerLoader, {
|
|
2493
2463
|
accountId: accountIDs.brightcove.accountId,
|
|
2494
2464
|
playlistId: playlistID,
|
|
2495
2465
|
playerId: accountIDs.brightcove.playerId,
|
|
2496
2466
|
onSuccess: onVideoSuccess,
|
|
2497
2467
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2498
2468
|
}),
|
|
2499
|
-
|
|
2469
|
+
React.createElement(
|
|
2500
2470
|
'style',
|
|
2501
2471
|
{ jsx: 'true' },
|
|
2502
2472
|
'\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 '
|
|
2503
2473
|
)
|
|
2504
2474
|
);
|
|
2505
2475
|
} else if (experienceID) {
|
|
2506
|
-
return
|
|
2476
|
+
return React.createElement(
|
|
2507
2477
|
'div',
|
|
2508
2478
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2509
|
-
videoLoaded &&
|
|
2479
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2510
2480
|
);
|
|
2511
2481
|
}
|
|
2512
2482
|
return null;
|
|
2513
2483
|
}
|
|
2514
2484
|
if (source === 'mp4') {
|
|
2515
|
-
return
|
|
2485
|
+
return React.createElement(
|
|
2516
2486
|
'div',
|
|
2517
2487
|
null,
|
|
2518
|
-
|
|
2488
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2519
2489
|
);
|
|
2520
2490
|
}
|
|
2521
2491
|
|
|
@@ -2726,9 +2696,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2726
2696
|
});
|
|
2727
2697
|
|
|
2728
2698
|
unwrapExports(props);
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2699
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2700
|
+
props.defaultProps;
|
|
2701
|
+
props.propTypes;
|
|
2732
2702
|
|
|
2733
2703
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2734
2704
|
return isNonNullObject(value)
|
|
@@ -2893,11 +2863,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2893
2863
|
|
|
2894
2864
|
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; }
|
|
2895
2865
|
|
|
2896
|
-
function
|
|
2866
|
+
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; } } }; }
|
|
2867
|
+
|
|
2868
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2869
|
+
|
|
2870
|
+
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."); }
|
|
2871
|
+
|
|
2872
|
+
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); }
|
|
2897
2873
|
|
|
2898
|
-
function
|
|
2874
|
+
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; }
|
|
2899
2875
|
|
|
2900
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
2876
|
+
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; }
|
|
2901
2877
|
|
|
2902
2878
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2903
2879
|
|
|
@@ -3027,12 +3003,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3027
3003
|
|
|
3028
3004
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3029
3005
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3030
|
-
|
|
3031
|
-
var
|
|
3032
|
-
|
|
3006
|
+
|
|
3007
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3008
|
+
_step;
|
|
3033
3009
|
|
|
3034
3010
|
try {
|
|
3035
|
-
for (
|
|
3011
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3036
3012
|
var p = _step.value;
|
|
3037
3013
|
|
|
3038
3014
|
if (props$1[p]) {
|
|
@@ -3047,18 +3023,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3047
3023
|
}
|
|
3048
3024
|
}
|
|
3049
3025
|
} catch (err) {
|
|
3050
|
-
|
|
3051
|
-
_iteratorError = err;
|
|
3026
|
+
_iterator.e(err);
|
|
3052
3027
|
} finally {
|
|
3053
|
-
|
|
3054
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3055
|
-
_iterator["return"]();
|
|
3056
|
-
}
|
|
3057
|
-
} finally {
|
|
3058
|
-
if (_didIteratorError) {
|
|
3059
|
-
throw _iteratorError;
|
|
3060
|
-
}
|
|
3061
|
-
}
|
|
3028
|
+
_iterator.f();
|
|
3062
3029
|
}
|
|
3063
3030
|
|
|
3064
3031
|
return config;
|
|
@@ -3123,7 +3090,7 @@ function isEqual(a, b) {
|
|
|
3123
3090
|
return true;
|
|
3124
3091
|
}
|
|
3125
3092
|
|
|
3126
|
-
if ((0,
|
|
3093
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3127
3094
|
return true;
|
|
3128
3095
|
}
|
|
3129
3096
|
|
|
@@ -3166,17 +3133,17 @@ function isMediaStream(url) {
|
|
|
3166
3133
|
});
|
|
3167
3134
|
|
|
3168
3135
|
unwrapExports(utils);
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3136
|
+
utils.parseStartTime;
|
|
3137
|
+
utils.parseEndTime;
|
|
3138
|
+
utils.randomString;
|
|
3139
|
+
utils.queryString;
|
|
3140
|
+
utils.getSDK;
|
|
3141
|
+
utils.getConfig;
|
|
3142
|
+
utils.omit;
|
|
3143
|
+
utils.callPlayer;
|
|
3144
|
+
utils.isObject;
|
|
3145
|
+
utils.isEqual;
|
|
3146
|
+
utils.isMediaStream;
|
|
3180
3147
|
|
|
3181
3148
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3182
3149
|
|
|
@@ -3185,7 +3152,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3185
3152
|
});
|
|
3186
3153
|
exports["default"] = void 0;
|
|
3187
3154
|
|
|
3188
|
-
var _react = _interopRequireWildcard(
|
|
3155
|
+
var _react = _interopRequireWildcard(React);
|
|
3189
3156
|
|
|
3190
3157
|
|
|
3191
3158
|
|
|
@@ -3205,12 +3172,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3205
3172
|
|
|
3206
3173
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3207
3174
|
|
|
3208
|
-
function
|
|
3175
|
+
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); }; }
|
|
3209
3176
|
|
|
3210
|
-
function
|
|
3177
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3211
3178
|
|
|
3212
3179
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3213
3180
|
|
|
3181
|
+
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; } }
|
|
3182
|
+
|
|
3183
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3184
|
+
|
|
3214
3185
|
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); }
|
|
3215
3186
|
|
|
3216
3187
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3219,14 +3190,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3219
3190
|
|
|
3220
3191
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3221
3192
|
|
|
3222
|
-
var Player =
|
|
3223
|
-
/*#__PURE__*/
|
|
3224
|
-
function (_Component) {
|
|
3193
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3225
3194
|
_inherits(Player, _Component);
|
|
3226
3195
|
|
|
3227
|
-
|
|
3228
|
-
var _getPrototypeOf2;
|
|
3196
|
+
var _super = _createSuper(Player);
|
|
3229
3197
|
|
|
3198
|
+
function Player() {
|
|
3230
3199
|
var _this;
|
|
3231
3200
|
|
|
3232
3201
|
_classCallCheck(this, Player);
|
|
@@ -3235,7 +3204,7 @@ function (_Component) {
|
|
|
3235
3204
|
_args[_key] = arguments[_key];
|
|
3236
3205
|
}
|
|
3237
3206
|
|
|
3238
|
-
_this =
|
|
3207
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3239
3208
|
|
|
3240
3209
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3241
3210
|
|
|
@@ -3560,7 +3529,7 @@ function (_Component) {
|
|
|
3560
3529
|
return null;
|
|
3561
3530
|
}
|
|
3562
3531
|
|
|
3563
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3532
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3564
3533
|
ref: this.ref,
|
|
3565
3534
|
onReady: this.handleReady,
|
|
3566
3535
|
onPlay: this.handlePlay,
|
|
@@ -3593,7 +3562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3593
3562
|
});
|
|
3594
3563
|
exports["default"] = createSinglePlayer;
|
|
3595
3564
|
|
|
3596
|
-
var _react = _interopRequireWildcard(
|
|
3565
|
+
var _react = _interopRequireWildcard(React);
|
|
3597
3566
|
|
|
3598
3567
|
|
|
3599
3568
|
|
|
@@ -3621,12 +3590,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3621
3590
|
|
|
3622
3591
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3623
3592
|
|
|
3624
|
-
function
|
|
3593
|
+
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); }; }
|
|
3625
3594
|
|
|
3626
|
-
function
|
|
3595
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3627
3596
|
|
|
3628
3597
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3629
3598
|
|
|
3599
|
+
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; } }
|
|
3600
|
+
|
|
3601
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3602
|
+
|
|
3630
3603
|
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); }
|
|
3631
3604
|
|
|
3632
3605
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3638,14 +3611,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3638
3611
|
function createSinglePlayer(activePlayer) {
|
|
3639
3612
|
var _class, _temp;
|
|
3640
3613
|
|
|
3641
|
-
return _temp = _class =
|
|
3642
|
-
/*#__PURE__*/
|
|
3643
|
-
function (_Component) {
|
|
3614
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3644
3615
|
_inherits(SinglePlayer, _Component);
|
|
3645
3616
|
|
|
3646
|
-
|
|
3647
|
-
var _getPrototypeOf2;
|
|
3617
|
+
var _super = _createSuper(SinglePlayer);
|
|
3648
3618
|
|
|
3619
|
+
function SinglePlayer() {
|
|
3649
3620
|
var _this;
|
|
3650
3621
|
|
|
3651
3622
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3654,7 +3625,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3654
3625
|
args[_key] = arguments[_key];
|
|
3655
3626
|
}
|
|
3656
3627
|
|
|
3657
|
-
_this =
|
|
3628
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3658
3629
|
|
|
3659
3630
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3660
3631
|
|
|
@@ -3722,12 +3693,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3722
3693
|
height = _this$props.height,
|
|
3723
3694
|
Wrapper = _this$props.wrapper;
|
|
3724
3695
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3725
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3696
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3726
3697
|
style: _objectSpread({}, style, {
|
|
3727
3698
|
width: width,
|
|
3728
3699
|
height: height
|
|
3729
3700
|
})
|
|
3730
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3701
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3731
3702
|
ref: this.ref,
|
|
3732
3703
|
activePlayer: activePlayer,
|
|
3733
3704
|
config: this.config
|
|
@@ -3749,7 +3720,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3749
3720
|
});
|
|
3750
3721
|
exports["default"] = exports.YouTube = void 0;
|
|
3751
3722
|
|
|
3752
|
-
var _react = _interopRequireWildcard(
|
|
3723
|
+
var _react = _interopRequireWildcard(React);
|
|
3753
3724
|
|
|
3754
3725
|
|
|
3755
3726
|
|
|
@@ -3773,23 +3744,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3773
3744
|
|
|
3774
3745
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3775
3746
|
|
|
3776
|
-
function
|
|
3747
|
+
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); }; }
|
|
3777
3748
|
|
|
3778
|
-
function
|
|
3749
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3779
3750
|
|
|
3780
3751
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3781
3752
|
|
|
3753
|
+
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; } }
|
|
3754
|
+
|
|
3755
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3756
|
+
|
|
3782
3757
|
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); }
|
|
3783
3758
|
|
|
3784
3759
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3785
3760
|
|
|
3786
3761
|
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; }
|
|
3787
3762
|
|
|
3788
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3763
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3789
3764
|
|
|
3790
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3765
|
+
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."); }
|
|
3791
3766
|
|
|
3792
|
-
function
|
|
3767
|
+
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); }
|
|
3768
|
+
|
|
3769
|
+
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; }
|
|
3770
|
+
|
|
3771
|
+
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; }
|
|
3793
3772
|
|
|
3794
3773
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3795
3774
|
|
|
@@ -3814,14 +3793,12 @@ function parsePlaylist(url) {
|
|
|
3814
3793
|
return {};
|
|
3815
3794
|
}
|
|
3816
3795
|
|
|
3817
|
-
var YouTube =
|
|
3818
|
-
/*#__PURE__*/
|
|
3819
|
-
function (_Component) {
|
|
3796
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3820
3797
|
_inherits(YouTube, _Component);
|
|
3821
3798
|
|
|
3822
|
-
|
|
3823
|
-
var _getPrototypeOf2;
|
|
3799
|
+
var _super = _createSuper(YouTube);
|
|
3824
3800
|
|
|
3801
|
+
function YouTube() {
|
|
3825
3802
|
var _this;
|
|
3826
3803
|
|
|
3827
3804
|
_classCallCheck(this, YouTube);
|
|
@@ -3830,7 +3807,7 @@ function (_Component) {
|
|
|
3830
3807
|
args[_key] = arguments[_key];
|
|
3831
3808
|
}
|
|
3832
3809
|
|
|
3833
|
-
_this =
|
|
3810
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3834
3811
|
|
|
3835
3812
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3836
3813
|
|
|
@@ -4018,9 +3995,9 @@ function (_Component) {
|
|
|
4018
3995
|
height: '100%',
|
|
4019
3996
|
display: display
|
|
4020
3997
|
};
|
|
4021
|
-
return _react["default"].createElement("div", {
|
|
3998
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4022
3999
|
style: style
|
|
4023
|
-
}, _react["default"].createElement("div", {
|
|
4000
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4024
4001
|
ref: this.ref
|
|
4025
4002
|
}));
|
|
4026
4003
|
}
|
|
@@ -4043,7 +4020,7 @@ exports["default"] = _default;
|
|
|
4043
4020
|
});
|
|
4044
4021
|
|
|
4045
4022
|
unwrapExports(YouTube_1);
|
|
4046
|
-
|
|
4023
|
+
YouTube_1.YouTube;
|
|
4047
4024
|
|
|
4048
4025
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4049
4026
|
|
|
@@ -4052,7 +4029,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4052
4029
|
});
|
|
4053
4030
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4054
4031
|
|
|
4055
|
-
var _react = _interopRequireWildcard(
|
|
4032
|
+
var _react = _interopRequireWildcard(React);
|
|
4056
4033
|
|
|
4057
4034
|
|
|
4058
4035
|
|
|
@@ -4076,12 +4053,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4076
4053
|
|
|
4077
4054
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4078
4055
|
|
|
4079
|
-
function
|
|
4056
|
+
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); }; }
|
|
4080
4057
|
|
|
4081
|
-
function
|
|
4058
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4082
4059
|
|
|
4083
4060
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4084
4061
|
|
|
4062
|
+
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; } }
|
|
4063
|
+
|
|
4064
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4065
|
+
|
|
4085
4066
|
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); }
|
|
4086
4067
|
|
|
4087
4068
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4090,16 +4071,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4090
4071
|
|
|
4091
4072
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4092
4073
|
var SDK_GLOBAL = 'SC';
|
|
4093
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4074
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4094
4075
|
|
|
4095
|
-
var SoundCloud =
|
|
4096
|
-
/*#__PURE__*/
|
|
4097
|
-
function (_Component) {
|
|
4076
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4098
4077
|
_inherits(SoundCloud, _Component);
|
|
4099
4078
|
|
|
4100
|
-
|
|
4101
|
-
var _getPrototypeOf2;
|
|
4079
|
+
var _super = _createSuper(SoundCloud);
|
|
4102
4080
|
|
|
4081
|
+
function SoundCloud() {
|
|
4103
4082
|
var _this;
|
|
4104
4083
|
|
|
4105
4084
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4108,7 +4087,7 @@ function (_Component) {
|
|
|
4108
4087
|
args[_key] = arguments[_key];
|
|
4109
4088
|
}
|
|
4110
4089
|
|
|
4111
|
-
_this =
|
|
4090
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4112
4091
|
|
|
4113
4092
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4114
4093
|
|
|
@@ -4229,7 +4208,7 @@ function (_Component) {
|
|
|
4229
4208
|
height: '100%',
|
|
4230
4209
|
display: display
|
|
4231
4210
|
};
|
|
4232
|
-
return _react["default"].createElement("iframe", {
|
|
4211
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4233
4212
|
ref: this.ref,
|
|
4234
4213
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4235
4214
|
style: style,
|
|
@@ -4258,7 +4237,7 @@ exports["default"] = _default;
|
|
|
4258
4237
|
});
|
|
4259
4238
|
|
|
4260
4239
|
unwrapExports(SoundCloud_1);
|
|
4261
|
-
|
|
4240
|
+
SoundCloud_1.SoundCloud;
|
|
4262
4241
|
|
|
4263
4242
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4264
4243
|
|
|
@@ -4267,7 +4246,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4267
4246
|
});
|
|
4268
4247
|
exports["default"] = exports.Vimeo = void 0;
|
|
4269
4248
|
|
|
4270
|
-
var _react = _interopRequireWildcard(
|
|
4249
|
+
var _react = _interopRequireWildcard(React);
|
|
4271
4250
|
|
|
4272
4251
|
|
|
4273
4252
|
|
|
@@ -4291,12 +4270,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4291
4270
|
|
|
4292
4271
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4293
4272
|
|
|
4294
|
-
function
|
|
4273
|
+
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); }; }
|
|
4295
4274
|
|
|
4296
|
-
function
|
|
4275
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4297
4276
|
|
|
4298
4277
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4299
4278
|
|
|
4279
|
+
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; } }
|
|
4280
|
+
|
|
4281
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4282
|
+
|
|
4300
4283
|
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); }
|
|
4301
4284
|
|
|
4302
4285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4308,14 +4291,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4308
4291
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4309
4292
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4310
4293
|
|
|
4311
|
-
var Vimeo =
|
|
4312
|
-
/*#__PURE__*/
|
|
4313
|
-
function (_Component) {
|
|
4294
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4314
4295
|
_inherits(Vimeo, _Component);
|
|
4315
4296
|
|
|
4316
|
-
|
|
4317
|
-
var _getPrototypeOf2;
|
|
4297
|
+
var _super = _createSuper(Vimeo);
|
|
4318
4298
|
|
|
4299
|
+
function Vimeo() {
|
|
4319
4300
|
var _this;
|
|
4320
4301
|
|
|
4321
4302
|
_classCallCheck(this, Vimeo);
|
|
@@ -4324,7 +4305,7 @@ function (_Component) {
|
|
|
4324
4305
|
args[_key] = arguments[_key];
|
|
4325
4306
|
}
|
|
4326
4307
|
|
|
4327
|
-
_this =
|
|
4308
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4328
4309
|
|
|
4329
4310
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4330
4311
|
|
|
@@ -4481,7 +4462,7 @@ function (_Component) {
|
|
|
4481
4462
|
overflow: 'hidden',
|
|
4482
4463
|
display: display
|
|
4483
4464
|
};
|
|
4484
|
-
return _react["default"].createElement("div", {
|
|
4465
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4485
4466
|
key: this.props.url,
|
|
4486
4467
|
ref: this.ref,
|
|
4487
4468
|
style: style
|
|
@@ -4512,7 +4493,7 @@ exports["default"] = _default;
|
|
|
4512
4493
|
});
|
|
4513
4494
|
|
|
4514
4495
|
unwrapExports(Vimeo_1);
|
|
4515
|
-
|
|
4496
|
+
Vimeo_1.Vimeo;
|
|
4516
4497
|
|
|
4517
4498
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4518
4499
|
|
|
@@ -4521,7 +4502,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4521
4502
|
});
|
|
4522
4503
|
exports["default"] = exports.Facebook = void 0;
|
|
4523
4504
|
|
|
4524
|
-
var _react = _interopRequireWildcard(
|
|
4505
|
+
var _react = _interopRequireWildcard(React);
|
|
4525
4506
|
|
|
4526
4507
|
|
|
4527
4508
|
|
|
@@ -4541,12 +4522,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4541
4522
|
|
|
4542
4523
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4543
4524
|
|
|
4544
|
-
function
|
|
4525
|
+
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); }; }
|
|
4545
4526
|
|
|
4546
|
-
function
|
|
4527
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4547
4528
|
|
|
4548
4529
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4549
4530
|
|
|
4531
|
+
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; } }
|
|
4532
|
+
|
|
4533
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4534
|
+
|
|
4550
4535
|
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); }
|
|
4551
4536
|
|
|
4552
4537
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4559,14 +4544,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4559
4544
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4560
4545
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4561
4546
|
|
|
4562
|
-
var Facebook =
|
|
4563
|
-
/*#__PURE__*/
|
|
4564
|
-
function (_Component) {
|
|
4547
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4565
4548
|
_inherits(Facebook, _Component);
|
|
4566
4549
|
|
|
4567
|
-
|
|
4568
|
-
var _getPrototypeOf2;
|
|
4550
|
+
var _super = _createSuper(Facebook);
|
|
4569
4551
|
|
|
4552
|
+
function Facebook() {
|
|
4570
4553
|
var _this;
|
|
4571
4554
|
|
|
4572
4555
|
_classCallCheck(this, Facebook);
|
|
@@ -4575,7 +4558,7 @@ function (_Component) {
|
|
|
4575
4558
|
args[_key] = arguments[_key];
|
|
4576
4559
|
}
|
|
4577
4560
|
|
|
4578
|
-
_this =
|
|
4561
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4579
4562
|
|
|
4580
4563
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4581
4564
|
|
|
@@ -4691,7 +4674,7 @@ function (_Component) {
|
|
|
4691
4674
|
width: '100%',
|
|
4692
4675
|
height: '100%'
|
|
4693
4676
|
};
|
|
4694
|
-
return _react["default"].createElement("div", {
|
|
4677
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4695
4678
|
style: style,
|
|
4696
4679
|
id: this.playerID,
|
|
4697
4680
|
className: "fb-video",
|
|
@@ -4722,7 +4705,7 @@ exports["default"] = _default;
|
|
|
4722
4705
|
});
|
|
4723
4706
|
|
|
4724
4707
|
unwrapExports(Facebook_1);
|
|
4725
|
-
|
|
4708
|
+
Facebook_1.Facebook;
|
|
4726
4709
|
|
|
4727
4710
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4728
4711
|
|
|
@@ -4731,7 +4714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4731
4714
|
});
|
|
4732
4715
|
exports["default"] = exports.Streamable = void 0;
|
|
4733
4716
|
|
|
4734
|
-
var _react = _interopRequireWildcard(
|
|
4717
|
+
var _react = _interopRequireWildcard(React);
|
|
4735
4718
|
|
|
4736
4719
|
|
|
4737
4720
|
|
|
@@ -4751,12 +4734,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4751
4734
|
|
|
4752
4735
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4753
4736
|
|
|
4754
|
-
function
|
|
4737
|
+
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); }; }
|
|
4755
4738
|
|
|
4756
|
-
function
|
|
4739
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4757
4740
|
|
|
4758
4741
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4759
4742
|
|
|
4743
|
+
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; } }
|
|
4744
|
+
|
|
4745
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4746
|
+
|
|
4760
4747
|
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); }
|
|
4761
4748
|
|
|
4762
4749
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4767,14 +4754,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4767
4754
|
var SDK_GLOBAL = 'playerjs';
|
|
4768
4755
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4769
4756
|
|
|
4770
|
-
var Streamable =
|
|
4771
|
-
/*#__PURE__*/
|
|
4772
|
-
function (_Component) {
|
|
4757
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4773
4758
|
_inherits(Streamable, _Component);
|
|
4774
4759
|
|
|
4775
|
-
|
|
4776
|
-
var _getPrototypeOf2;
|
|
4760
|
+
var _super = _createSuper(Streamable);
|
|
4777
4761
|
|
|
4762
|
+
function Streamable() {
|
|
4778
4763
|
var _this;
|
|
4779
4764
|
|
|
4780
4765
|
_classCallCheck(this, Streamable);
|
|
@@ -4783,7 +4768,7 @@ function (_Component) {
|
|
|
4783
4768
|
args[_key] = arguments[_key];
|
|
4784
4769
|
}
|
|
4785
4770
|
|
|
4786
|
-
_this =
|
|
4771
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4787
4772
|
|
|
4788
4773
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4789
4774
|
|
|
@@ -4903,7 +4888,7 @@ function (_Component) {
|
|
|
4903
4888
|
width: '100%',
|
|
4904
4889
|
height: '100%'
|
|
4905
4890
|
};
|
|
4906
|
-
return _react["default"].createElement("iframe", {
|
|
4891
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4907
4892
|
ref: this.ref,
|
|
4908
4893
|
src: "https://streamable.com/o/".concat(id),
|
|
4909
4894
|
frameBorder: "0",
|
|
@@ -4931,7 +4916,7 @@ exports["default"] = _default;
|
|
|
4931
4916
|
});
|
|
4932
4917
|
|
|
4933
4918
|
unwrapExports(Streamable_1);
|
|
4934
|
-
|
|
4919
|
+
Streamable_1.Streamable;
|
|
4935
4920
|
|
|
4936
4921
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4937
4922
|
|
|
@@ -4940,7 +4925,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4940
4925
|
});
|
|
4941
4926
|
exports["default"] = exports.Wistia = void 0;
|
|
4942
4927
|
|
|
4943
|
-
var _react = _interopRequireWildcard(
|
|
4928
|
+
var _react = _interopRequireWildcard(React);
|
|
4944
4929
|
|
|
4945
4930
|
|
|
4946
4931
|
|
|
@@ -4964,12 +4949,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4964
4949
|
|
|
4965
4950
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4966
4951
|
|
|
4967
|
-
function
|
|
4952
|
+
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); }; }
|
|
4968
4953
|
|
|
4969
|
-
function
|
|
4954
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4970
4955
|
|
|
4971
4956
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4972
4957
|
|
|
4958
|
+
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; } }
|
|
4959
|
+
|
|
4960
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4961
|
+
|
|
4973
4962
|
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); }
|
|
4974
4963
|
|
|
4975
4964
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4980,26 +4969,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4980
4969
|
var SDK_GLOBAL = 'Wistia';
|
|
4981
4970
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4982
4971
|
|
|
4983
|
-
var Wistia =
|
|
4984
|
-
/*#__PURE__*/
|
|
4985
|
-
function (_Component) {
|
|
4972
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4986
4973
|
_inherits(Wistia, _Component);
|
|
4987
4974
|
|
|
4988
|
-
|
|
4989
|
-
var _getPrototypeOf2;
|
|
4975
|
+
var _super = _createSuper(Wistia);
|
|
4990
4976
|
|
|
4977
|
+
function Wistia() {
|
|
4991
4978
|
var _this;
|
|
4992
4979
|
|
|
4993
4980
|
_classCallCheck(this, Wistia);
|
|
4994
4981
|
|
|
4995
|
-
for (var _len = arguments.length,
|
|
4996
|
-
|
|
4982
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4983
|
+
_args[_key] = arguments[_key];
|
|
4997
4984
|
}
|
|
4998
4985
|
|
|
4999
|
-
_this =
|
|
4986
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5000
4987
|
|
|
5001
4988
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5002
4989
|
|
|
4990
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4991
|
+
var _this$props;
|
|
4992
|
+
|
|
4993
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4994
|
+
});
|
|
4995
|
+
|
|
4996
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4997
|
+
var _this$props2;
|
|
4998
|
+
|
|
4999
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5000
|
+
});
|
|
5001
|
+
|
|
5002
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5003
|
+
var _this$props3;
|
|
5004
|
+
|
|
5005
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5006
|
+
});
|
|
5007
|
+
|
|
5008
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5009
|
+
var _this$props4;
|
|
5010
|
+
|
|
5011
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5012
|
+
});
|
|
5013
|
+
|
|
5003
5014
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5004
5015
|
_this.callPlayer('mute');
|
|
5005
5016
|
});
|
|
@@ -5021,17 +5032,13 @@ function (_Component) {
|
|
|
5021
5032
|
value: function load(url) {
|
|
5022
5033
|
var _this2 = this;
|
|
5023
5034
|
|
|
5024
|
-
var _this$
|
|
5025
|
-
playing = _this$
|
|
5026
|
-
muted = _this$
|
|
5027
|
-
controls = _this$
|
|
5028
|
-
_onReady = _this$
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
onSeek = _this$props.onSeek,
|
|
5032
|
-
onEnded = _this$props.onEnded,
|
|
5033
|
-
config = _this$props.config,
|
|
5034
|
-
onError = _this$props.onError;
|
|
5035
|
+
var _this$props5 = this.props,
|
|
5036
|
+
playing = _this$props5.playing,
|
|
5037
|
+
muted = _this$props5.muted,
|
|
5038
|
+
controls = _this$props5.controls,
|
|
5039
|
+
_onReady = _this$props5.onReady,
|
|
5040
|
+
config = _this$props5.config,
|
|
5041
|
+
onError = _this$props5.onError;
|
|
5035
5042
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5036
5043
|
window._wq = window._wq || [];
|
|
5037
5044
|
|
|
@@ -5048,19 +5055,28 @@ function (_Component) {
|
|
|
5048
5055
|
|
|
5049
5056
|
_this2.unbind();
|
|
5050
5057
|
|
|
5051
|
-
_this2.player.bind('play', onPlay);
|
|
5058
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5052
5059
|
|
|
5053
|
-
_this2.player.bind('pause', onPause);
|
|
5060
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5054
5061
|
|
|
5055
|
-
_this2.player.bind('seek', onSeek);
|
|
5062
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5056
5063
|
|
|
5057
|
-
_this2.player.bind('end', onEnded);
|
|
5064
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5058
5065
|
|
|
5059
5066
|
_onReady();
|
|
5060
5067
|
}
|
|
5061
5068
|
});
|
|
5062
5069
|
}, onError);
|
|
5063
5070
|
}
|
|
5071
|
+
}, {
|
|
5072
|
+
key: "unbind",
|
|
5073
|
+
value: function unbind() {
|
|
5074
|
+
this.player.unbind('play', this.onPlay);
|
|
5075
|
+
this.player.unbind('pause', this.onPause);
|
|
5076
|
+
this.player.unbind('seek', this.onSeek);
|
|
5077
|
+
this.player.unbind('end', this.onEnded);
|
|
5078
|
+
} // Proxy methods to prevent listener leaks
|
|
5079
|
+
|
|
5064
5080
|
}, {
|
|
5065
5081
|
key: "play",
|
|
5066
5082
|
value: function play() {
|
|
@@ -5071,19 +5087,6 @@ function (_Component) {
|
|
|
5071
5087
|
value: function pause() {
|
|
5072
5088
|
this.callPlayer('pause');
|
|
5073
5089
|
}
|
|
5074
|
-
}, {
|
|
5075
|
-
key: "unbind",
|
|
5076
|
-
value: function unbind() {
|
|
5077
|
-
var _this$props2 = this.props,
|
|
5078
|
-
onPlay = _this$props2.onPlay,
|
|
5079
|
-
onPause = _this$props2.onPause,
|
|
5080
|
-
onSeek = _this$props2.onSeek,
|
|
5081
|
-
onEnded = _this$props2.onEnded;
|
|
5082
|
-
this.player.unbind('play', onPlay);
|
|
5083
|
-
this.player.unbind('pause', onPause);
|
|
5084
|
-
this.player.unbind('seek', onSeek);
|
|
5085
|
-
this.player.unbind('end', onEnded);
|
|
5086
|
-
}
|
|
5087
5090
|
}, {
|
|
5088
5091
|
key: "stop",
|
|
5089
5092
|
value: function stop() {
|
|
@@ -5129,7 +5132,7 @@ function (_Component) {
|
|
|
5129
5132
|
width: '100%',
|
|
5130
5133
|
height: '100%'
|
|
5131
5134
|
};
|
|
5132
|
-
return _react["default"].createElement("div", {
|
|
5135
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5133
5136
|
key: id,
|
|
5134
5137
|
className: className,
|
|
5135
5138
|
style: style
|
|
@@ -5156,7 +5159,7 @@ exports["default"] = _default;
|
|
|
5156
5159
|
});
|
|
5157
5160
|
|
|
5158
5161
|
unwrapExports(Wistia_1);
|
|
5159
|
-
|
|
5162
|
+
Wistia_1.Wistia;
|
|
5160
5163
|
|
|
5161
5164
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5162
5165
|
|
|
@@ -5165,7 +5168,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5165
5168
|
});
|
|
5166
5169
|
exports["default"] = exports.Twitch = void 0;
|
|
5167
5170
|
|
|
5168
|
-
var _react = _interopRequireWildcard(
|
|
5171
|
+
var _react = _interopRequireWildcard(React);
|
|
5169
5172
|
|
|
5170
5173
|
|
|
5171
5174
|
|
|
@@ -5189,12 +5192,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5189
5192
|
|
|
5190
5193
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5191
5194
|
|
|
5192
|
-
function
|
|
5195
|
+
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); }; }
|
|
5193
5196
|
|
|
5194
|
-
function
|
|
5197
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5195
5198
|
|
|
5196
5199
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5197
5200
|
|
|
5201
|
+
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; } }
|
|
5202
|
+
|
|
5203
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5204
|
+
|
|
5198
5205
|
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); }
|
|
5199
5206
|
|
|
5200
5207
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5207,14 +5214,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5207
5214
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5208
5215
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5209
5216
|
|
|
5210
|
-
var Twitch =
|
|
5211
|
-
/*#__PURE__*/
|
|
5212
|
-
function (_Component) {
|
|
5217
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5213
5218
|
_inherits(Twitch, _Component);
|
|
5214
5219
|
|
|
5215
|
-
|
|
5216
|
-
var _getPrototypeOf2;
|
|
5220
|
+
var _super = _createSuper(Twitch);
|
|
5217
5221
|
|
|
5222
|
+
function Twitch() {
|
|
5218
5223
|
var _this;
|
|
5219
5224
|
|
|
5220
5225
|
_classCallCheck(this, Twitch);
|
|
@@ -5223,7 +5228,7 @@ function (_Component) {
|
|
|
5223
5228
|
args[_key] = arguments[_key];
|
|
5224
5229
|
}
|
|
5225
5230
|
|
|
5226
|
-
_this =
|
|
5231
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5227
5232
|
|
|
5228
5233
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5229
5234
|
|
|
@@ -5344,7 +5349,7 @@ function (_Component) {
|
|
|
5344
5349
|
width: '100%',
|
|
5345
5350
|
height: '100%'
|
|
5346
5351
|
};
|
|
5347
|
-
return _react["default"].createElement("div", {
|
|
5352
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5348
5353
|
style: style,
|
|
5349
5354
|
id: this.playerID
|
|
5350
5355
|
});
|
|
@@ -5370,7 +5375,7 @@ exports["default"] = _default;
|
|
|
5370
5375
|
});
|
|
5371
5376
|
|
|
5372
5377
|
unwrapExports(Twitch_1);
|
|
5373
|
-
|
|
5378
|
+
Twitch_1.Twitch;
|
|
5374
5379
|
|
|
5375
5380
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5376
5381
|
|
|
@@ -5379,7 +5384,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5379
5384
|
});
|
|
5380
5385
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5381
5386
|
|
|
5382
|
-
var _react = _interopRequireWildcard(
|
|
5387
|
+
var _react = _interopRequireWildcard(React);
|
|
5383
5388
|
|
|
5384
5389
|
|
|
5385
5390
|
|
|
@@ -5397,11 +5402,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5397
5402
|
|
|
5398
5403
|
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; }
|
|
5399
5404
|
|
|
5400
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5405
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5406
|
+
|
|
5407
|
+
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."); }
|
|
5408
|
+
|
|
5409
|
+
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); }
|
|
5401
5410
|
|
|
5402
|
-
function
|
|
5411
|
+
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; }
|
|
5403
5412
|
|
|
5404
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5413
|
+
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; }
|
|
5405
5414
|
|
|
5406
5415
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5407
5416
|
|
|
@@ -5411,12 +5420,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5411
5420
|
|
|
5412
5421
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5413
5422
|
|
|
5414
|
-
function
|
|
5423
|
+
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); }; }
|
|
5415
5424
|
|
|
5416
|
-
function
|
|
5425
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5417
5426
|
|
|
5418
5427
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5419
5428
|
|
|
5429
|
+
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; } }
|
|
5430
|
+
|
|
5431
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5432
|
+
|
|
5420
5433
|
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); }
|
|
5421
5434
|
|
|
5422
5435
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5428,14 +5441,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5428
5441
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5429
5442
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5430
5443
|
|
|
5431
|
-
var DailyMotion =
|
|
5432
|
-
/*#__PURE__*/
|
|
5433
|
-
function (_Component) {
|
|
5444
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5434
5445
|
_inherits(DailyMotion, _Component);
|
|
5435
5446
|
|
|
5436
|
-
|
|
5437
|
-
var _getPrototypeOf2;
|
|
5447
|
+
var _super = _createSuper(DailyMotion);
|
|
5438
5448
|
|
|
5449
|
+
function DailyMotion() {
|
|
5439
5450
|
var _this;
|
|
5440
5451
|
|
|
5441
5452
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5444,7 +5455,7 @@ function (_Component) {
|
|
|
5444
5455
|
args[_key] = arguments[_key];
|
|
5445
5456
|
}
|
|
5446
5457
|
|
|
5447
|
-
_this =
|
|
5458
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5448
5459
|
|
|
5449
5460
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5450
5461
|
|
|
@@ -5573,9 +5584,9 @@ function (_Component) {
|
|
|
5573
5584
|
height: '100%',
|
|
5574
5585
|
display: display
|
|
5575
5586
|
};
|
|
5576
|
-
return _react["default"].createElement("div", {
|
|
5587
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5577
5588
|
style: style
|
|
5578
|
-
}, _react["default"].createElement("div", {
|
|
5589
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5579
5590
|
ref: this.ref
|
|
5580
5591
|
}));
|
|
5581
5592
|
}
|
|
@@ -5600,7 +5611,7 @@ exports["default"] = _default;
|
|
|
5600
5611
|
});
|
|
5601
5612
|
|
|
5602
5613
|
unwrapExports(DailyMotion_1);
|
|
5603
|
-
|
|
5614
|
+
DailyMotion_1.DailyMotion;
|
|
5604
5615
|
|
|
5605
5616
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5606
5617
|
|
|
@@ -5609,7 +5620,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5609
5620
|
});
|
|
5610
5621
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5611
5622
|
|
|
5612
|
-
var _react = _interopRequireWildcard(
|
|
5623
|
+
var _react = _interopRequireWildcard(React);
|
|
5613
5624
|
|
|
5614
5625
|
|
|
5615
5626
|
|
|
@@ -5633,12 +5644,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5633
5644
|
|
|
5634
5645
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5635
5646
|
|
|
5636
|
-
function
|
|
5647
|
+
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); }; }
|
|
5637
5648
|
|
|
5638
|
-
function
|
|
5649
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5639
5650
|
|
|
5640
5651
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5641
5652
|
|
|
5653
|
+
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; } }
|
|
5654
|
+
|
|
5655
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5656
|
+
|
|
5642
5657
|
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); }
|
|
5643
5658
|
|
|
5644
5659
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5649,14 +5664,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5649
5664
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5650
5665
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5651
5666
|
|
|
5652
|
-
var Mixcloud =
|
|
5653
|
-
/*#__PURE__*/
|
|
5654
|
-
function (_Component) {
|
|
5667
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5655
5668
|
_inherits(Mixcloud, _Component);
|
|
5656
5669
|
|
|
5657
|
-
|
|
5658
|
-
var _getPrototypeOf2;
|
|
5670
|
+
var _super = _createSuper(Mixcloud);
|
|
5659
5671
|
|
|
5672
|
+
function Mixcloud() {
|
|
5660
5673
|
var _this;
|
|
5661
5674
|
|
|
5662
5675
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5665,7 +5678,7 @@ function (_Component) {
|
|
|
5665
5678
|
args[_key] = arguments[_key];
|
|
5666
5679
|
}
|
|
5667
5680
|
|
|
5668
|
-
_this =
|
|
5681
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5669
5682
|
|
|
5670
5683
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5671
5684
|
|
|
@@ -5768,7 +5781,7 @@ function (_Component) {
|
|
|
5768
5781
|
})); // We have to give the iframe a key here to prevent a
|
|
5769
5782
|
// weird dialog appearing when loading a new track
|
|
5770
5783
|
|
|
5771
|
-
return _react["default"].createElement("iframe", {
|
|
5784
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5772
5785
|
key: id,
|
|
5773
5786
|
ref: this.ref,
|
|
5774
5787
|
style: style,
|
|
@@ -5797,7 +5810,7 @@ exports["default"] = _default;
|
|
|
5797
5810
|
});
|
|
5798
5811
|
|
|
5799
5812
|
unwrapExports(Mixcloud_1);
|
|
5800
|
-
|
|
5813
|
+
Mixcloud_1.Mixcloud;
|
|
5801
5814
|
|
|
5802
5815
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5803
5816
|
|
|
@@ -5806,7 +5819,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5806
5819
|
});
|
|
5807
5820
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5808
5821
|
|
|
5809
|
-
var _react = _interopRequireWildcard(
|
|
5822
|
+
var _react = _interopRequireWildcard(React);
|
|
5810
5823
|
|
|
5811
5824
|
|
|
5812
5825
|
|
|
@@ -5828,23 +5841,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5828
5841
|
|
|
5829
5842
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5830
5843
|
|
|
5831
|
-
function
|
|
5844
|
+
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); }; }
|
|
5832
5845
|
|
|
5833
|
-
function
|
|
5846
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5834
5847
|
|
|
5835
5848
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5836
5849
|
|
|
5850
|
+
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; } }
|
|
5851
|
+
|
|
5852
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5853
|
+
|
|
5837
5854
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5838
5855
|
|
|
5839
5856
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5840
5857
|
|
|
5841
5858
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5842
5859
|
|
|
5860
|
+
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; } } }; }
|
|
5861
|
+
|
|
5862
|
+
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); }
|
|
5863
|
+
|
|
5864
|
+
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; }
|
|
5865
|
+
|
|
5843
5866
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5844
5867
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5845
5868
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5846
5869
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5847
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5870
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5848
5871
|
var HLS_GLOBAL = 'Hls';
|
|
5849
5872
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5850
5873
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5853,12 +5876,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5853
5876
|
|
|
5854
5877
|
function canPlay(url) {
|
|
5855
5878
|
if (url instanceof Array) {
|
|
5856
|
-
var
|
|
5857
|
-
|
|
5858
|
-
var _iteratorError = undefined;
|
|
5879
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5880
|
+
_step;
|
|
5859
5881
|
|
|
5860
5882
|
try {
|
|
5861
|
-
for (
|
|
5883
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5862
5884
|
var item = _step.value;
|
|
5863
5885
|
|
|
5864
5886
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5870,18 +5892,9 @@ function canPlay(url) {
|
|
|
5870
5892
|
}
|
|
5871
5893
|
}
|
|
5872
5894
|
} catch (err) {
|
|
5873
|
-
|
|
5874
|
-
_iteratorError = err;
|
|
5895
|
+
_iterator.e(err);
|
|
5875
5896
|
} finally {
|
|
5876
|
-
|
|
5877
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5878
|
-
_iterator["return"]();
|
|
5879
|
-
}
|
|
5880
|
-
} finally {
|
|
5881
|
-
if (_didIteratorError) {
|
|
5882
|
-
throw _iteratorError;
|
|
5883
|
-
}
|
|
5884
|
-
}
|
|
5897
|
+
_iterator.f();
|
|
5885
5898
|
}
|
|
5886
5899
|
|
|
5887
5900
|
return false;
|
|
@@ -5905,14 +5918,12 @@ function canEnablePIP(url) {
|
|
|
5905
5918
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5906
5919
|
}
|
|
5907
5920
|
|
|
5908
|
-
var FilePlayer =
|
|
5909
|
-
/*#__PURE__*/
|
|
5910
|
-
function (_Component) {
|
|
5921
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5911
5922
|
_inherits(FilePlayer, _Component);
|
|
5912
5923
|
|
|
5913
|
-
|
|
5914
|
-
var _getPrototypeOf2;
|
|
5924
|
+
var _super = _createSuper(FilePlayer);
|
|
5915
5925
|
|
|
5926
|
+
function FilePlayer() {
|
|
5916
5927
|
var _this;
|
|
5917
5928
|
|
|
5918
5929
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5921,7 +5932,7 @@ function (_Component) {
|
|
|
5921
5932
|
_args[_key] = arguments[_key];
|
|
5922
5933
|
}
|
|
5923
5934
|
|
|
5924
|
-
_this =
|
|
5935
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5925
5936
|
|
|
5926
5937
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5927
5938
|
var _this$props;
|
|
@@ -6008,19 +6019,19 @@ function (_Component) {
|
|
|
6008
6019
|
|
|
6009
6020
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6010
6021
|
if (typeof source === 'string') {
|
|
6011
|
-
return _react["default"].createElement("source", {
|
|
6022
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6012
6023
|
key: index,
|
|
6013
6024
|
src: source
|
|
6014
6025
|
});
|
|
6015
6026
|
}
|
|
6016
6027
|
|
|
6017
|
-
return _react["default"].createElement("source", _extends({
|
|
6028
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6018
6029
|
key: index
|
|
6019
6030
|
}, source));
|
|
6020
6031
|
});
|
|
6021
6032
|
|
|
6022
6033
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6023
|
-
return _react["default"].createElement("track", _extends({
|
|
6034
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6024
6035
|
key: index
|
|
6025
6036
|
}, track));
|
|
6026
6037
|
});
|
|
@@ -6058,6 +6069,10 @@ function (_Component) {
|
|
|
6058
6069
|
key: "componentWillUnmount",
|
|
6059
6070
|
value: function componentWillUnmount() {
|
|
6060
6071
|
this.removeListeners(this.player);
|
|
6072
|
+
|
|
6073
|
+
if (this.hls) {
|
|
6074
|
+
this.hls.destroy();
|
|
6075
|
+
}
|
|
6061
6076
|
}
|
|
6062
6077
|
}, {
|
|
6063
6078
|
key: "addListeners",
|
|
@@ -6188,10 +6203,6 @@ function (_Component) {
|
|
|
6188
6203
|
value: function stop() {
|
|
6189
6204
|
this.player.removeAttribute('src');
|
|
6190
6205
|
|
|
6191
|
-
if (this.hls) {
|
|
6192
|
-
this.hls.destroy();
|
|
6193
|
-
}
|
|
6194
|
-
|
|
6195
6206
|
if (this.dash) {
|
|
6196
6207
|
this.dash.reset();
|
|
6197
6208
|
}
|
|
@@ -6303,7 +6314,7 @@ function (_Component) {
|
|
|
6303
6314
|
width: width === 'auto' ? width : '100%',
|
|
6304
6315
|
height: height === 'auto' ? height : '100%'
|
|
6305
6316
|
};
|
|
6306
|
-
return _react["default"].createElement(Element, _extends({
|
|
6317
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6307
6318
|
ref: this.ref,
|
|
6308
6319
|
src: this.getSource(url),
|
|
6309
6320
|
style: style,
|
|
@@ -6333,7 +6344,7 @@ exports["default"] = _default;
|
|
|
6333
6344
|
});
|
|
6334
6345
|
|
|
6335
6346
|
unwrapExports(FilePlayer_1);
|
|
6336
|
-
|
|
6347
|
+
FilePlayer_1.FilePlayer;
|
|
6337
6348
|
|
|
6338
6349
|
var players = createCommonjsModule(function (module, exports) {
|
|
6339
6350
|
|
|
@@ -6375,7 +6386,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6375
6386
|
});
|
|
6376
6387
|
exports["default"] = void 0;
|
|
6377
6388
|
|
|
6378
|
-
var _react = _interopRequireWildcard(
|
|
6389
|
+
var _react = _interopRequireWildcard(React);
|
|
6379
6390
|
|
|
6380
6391
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6381
6392
|
|
|
@@ -6393,12 +6404,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6393
6404
|
|
|
6394
6405
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6395
6406
|
|
|
6396
|
-
function
|
|
6407
|
+
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); }; }
|
|
6397
6408
|
|
|
6398
|
-
function
|
|
6409
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6399
6410
|
|
|
6400
6411
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6401
6412
|
|
|
6413
|
+
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; } }
|
|
6414
|
+
|
|
6415
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6416
|
+
|
|
6402
6417
|
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); }
|
|
6403
6418
|
|
|
6404
6419
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6407,14 +6422,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6407
6422
|
|
|
6408
6423
|
var ICON_SIZE = '64px';
|
|
6409
6424
|
|
|
6410
|
-
var Preview =
|
|
6411
|
-
/*#__PURE__*/
|
|
6412
|
-
function (_Component) {
|
|
6425
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6413
6426
|
_inherits(Preview, _Component);
|
|
6414
6427
|
|
|
6415
|
-
|
|
6416
|
-
var _getPrototypeOf2;
|
|
6428
|
+
var _super = _createSuper(Preview);
|
|
6417
6429
|
|
|
6430
|
+
function Preview() {
|
|
6418
6431
|
var _this;
|
|
6419
6432
|
|
|
6420
6433
|
_classCallCheck(this, Preview);
|
|
@@ -6423,7 +6436,7 @@ function (_Component) {
|
|
|
6423
6436
|
args[_key] = arguments[_key];
|
|
6424
6437
|
}
|
|
6425
6438
|
|
|
6426
|
-
_this =
|
|
6439
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6427
6440
|
|
|
6428
6441
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6429
6442
|
|
|
@@ -6521,15 +6534,15 @@ function (_Component) {
|
|
|
6521
6534
|
}
|
|
6522
6535
|
};
|
|
6523
6536
|
|
|
6524
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6537
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6525
6538
|
style: styles.shadow,
|
|
6526
6539
|
className: "react-player__shadow"
|
|
6527
|
-
}, _react["default"].createElement("div", {
|
|
6540
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6528
6541
|
style: styles.playIcon,
|
|
6529
6542
|
className: "react-player__play-icon"
|
|
6530
6543
|
}));
|
|
6531
6544
|
|
|
6532
|
-
return _react["default"].createElement("div", {
|
|
6545
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6533
6546
|
style: styles.preview,
|
|
6534
6547
|
className: "react-player__preview",
|
|
6535
6548
|
onClick: onClick
|
|
@@ -6552,7 +6565,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6552
6565
|
});
|
|
6553
6566
|
exports["default"] = renderPreloadPlayers;
|
|
6554
6567
|
|
|
6555
|
-
var _react = _interopRequireDefault(
|
|
6568
|
+
var _react = _interopRequireDefault(React);
|
|
6556
6569
|
|
|
6557
6570
|
var _Player = _interopRequireDefault(Player_1);
|
|
6558
6571
|
|
|
@@ -6566,6 +6579,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6566
6579
|
|
|
6567
6580
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6568
6581
|
|
|
6582
|
+
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; } } }; }
|
|
6583
|
+
|
|
6584
|
+
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); }
|
|
6585
|
+
|
|
6586
|
+
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; }
|
|
6587
|
+
|
|
6569
6588
|
var PRELOAD_PLAYERS = [{
|
|
6570
6589
|
Player: YouTube_1.YouTube,
|
|
6571
6590
|
configKey: 'youtube',
|
|
@@ -6586,16 +6605,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6586
6605
|
|
|
6587
6606
|
function renderPreloadPlayers(url, controls, config) {
|
|
6588
6607
|
var players = [];
|
|
6589
|
-
|
|
6590
|
-
var
|
|
6591
|
-
|
|
6608
|
+
|
|
6609
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6610
|
+
_step;
|
|
6592
6611
|
|
|
6593
6612
|
try {
|
|
6594
|
-
for (
|
|
6613
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6595
6614
|
var player = _step.value;
|
|
6596
6615
|
|
|
6597
6616
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6598
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6617
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6599
6618
|
key: player.Player.displayName,
|
|
6600
6619
|
activePlayer: player.Player,
|
|
6601
6620
|
url: player.url,
|
|
@@ -6607,18 +6626,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6607
6626
|
}
|
|
6608
6627
|
}
|
|
6609
6628
|
} catch (err) {
|
|
6610
|
-
|
|
6611
|
-
_iteratorError = err;
|
|
6629
|
+
_iterator.e(err);
|
|
6612
6630
|
} finally {
|
|
6613
|
-
|
|
6614
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6615
|
-
_iterator["return"]();
|
|
6616
|
-
}
|
|
6617
|
-
} finally {
|
|
6618
|
-
if (_didIteratorError) {
|
|
6619
|
-
throw _iteratorError;
|
|
6620
|
-
}
|
|
6621
|
-
}
|
|
6631
|
+
_iterator.f();
|
|
6622
6632
|
}
|
|
6623
6633
|
|
|
6624
6634
|
return players;
|
|
@@ -6694,7 +6704,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6694
6704
|
});
|
|
6695
6705
|
exports["default"] = void 0;
|
|
6696
6706
|
|
|
6697
|
-
var _react = _interopRequireWildcard(
|
|
6707
|
+
var _react = _interopRequireWildcard(React);
|
|
6698
6708
|
|
|
6699
6709
|
|
|
6700
6710
|
|
|
@@ -6742,13 +6752,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6742
6752
|
|
|
6743
6753
|
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); }
|
|
6744
6754
|
|
|
6745
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6755
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6746
6756
|
|
|
6747
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6757
|
+
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."); }
|
|
6748
6758
|
|
|
6749
|
-
function
|
|
6759
|
+
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); }
|
|
6750
6760
|
|
|
6751
|
-
function
|
|
6761
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6762
|
+
|
|
6763
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6764
|
+
|
|
6765
|
+
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; }
|
|
6752
6766
|
|
|
6753
6767
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6754
6768
|
|
|
@@ -6756,12 +6770,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6756
6770
|
|
|
6757
6771
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6758
6772
|
|
|
6759
|
-
function
|
|
6773
|
+
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); }; }
|
|
6760
6774
|
|
|
6761
|
-
function
|
|
6775
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6762
6776
|
|
|
6763
6777
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6764
6778
|
|
|
6779
|
+
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; } }
|
|
6780
|
+
|
|
6781
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6782
|
+
|
|
6765
6783
|
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); }
|
|
6766
6784
|
|
|
6767
6785
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6771,14 +6789,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6771
6789
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6772
6790
|
var customPlayers = [];
|
|
6773
6791
|
|
|
6774
|
-
var ReactPlayer =
|
|
6775
|
-
/*#__PURE__*/
|
|
6776
|
-
function (_Component) {
|
|
6792
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6777
6793
|
_inherits(ReactPlayer, _Component);
|
|
6778
6794
|
|
|
6779
|
-
|
|
6780
|
-
var _getPrototypeOf2;
|
|
6795
|
+
var _super = _createSuper(ReactPlayer);
|
|
6781
6796
|
|
|
6797
|
+
function ReactPlayer() {
|
|
6782
6798
|
var _this;
|
|
6783
6799
|
|
|
6784
6800
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6787,7 +6803,7 @@ function (_Component) {
|
|
|
6787
6803
|
args[_key] = arguments[_key];
|
|
6788
6804
|
}
|
|
6789
6805
|
|
|
6790
|
-
_this =
|
|
6806
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6791
6807
|
|
|
6792
6808
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6793
6809
|
|
|
@@ -6898,7 +6914,7 @@ function (_Component) {
|
|
|
6898
6914
|
key: "renderActivePlayer",
|
|
6899
6915
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6900
6916
|
if (!url) return null;
|
|
6901
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6917
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6902
6918
|
key: activePlayer.displayName,
|
|
6903
6919
|
ref: this.activePlayerRef,
|
|
6904
6920
|
config: this.config,
|
|
@@ -6935,14 +6951,14 @@ function (_Component) {
|
|
|
6935
6951
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6936
6952
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6937
6953
|
|
|
6938
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6954
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6939
6955
|
url: url,
|
|
6940
6956
|
light: light,
|
|
6941
6957
|
playIcon: playIcon,
|
|
6942
6958
|
onClick: this.handleClickPreview
|
|
6943
6959
|
});
|
|
6944
6960
|
|
|
6945
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6961
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6946
6962
|
ref: this.wrapperRef,
|
|
6947
6963
|
style: _objectSpread({}, style, {
|
|
6948
6964
|
width: width,
|
|
@@ -7002,20 +7018,20 @@ var Audio = function Audio(_ref) {
|
|
|
7002
7018
|
var node = _ref.node;
|
|
7003
7019
|
|
|
7004
7020
|
if (node.uploadAudio) {
|
|
7005
|
-
return
|
|
7021
|
+
return React.createElement(
|
|
7006
7022
|
'div',
|
|
7007
7023
|
{ className: 'audio d-block text-center mb-3' },
|
|
7008
|
-
|
|
7024
|
+
React.createElement(
|
|
7009
7025
|
'audio',
|
|
7010
7026
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7011
|
-
|
|
7012
|
-
|
|
7027
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7028
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7013
7029
|
'Your browser does not support the audio element.'
|
|
7014
7030
|
),
|
|
7015
|
-
node.caption &&
|
|
7031
|
+
node.caption && React.createElement(
|
|
7016
7032
|
'p',
|
|
7017
7033
|
{ style: { fontSize: '.9rem' } },
|
|
7018
|
-
|
|
7034
|
+
React.createElement(
|
|
7019
7035
|
'em',
|
|
7020
7036
|
null,
|
|
7021
7037
|
node.caption
|
|
@@ -7025,15 +7041,15 @@ var Audio = function Audio(_ref) {
|
|
|
7025
7041
|
} else if (node.audioFilePth) {
|
|
7026
7042
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7027
7043
|
if (hostname === 'embeds.audioboom.com') {
|
|
7028
|
-
return
|
|
7044
|
+
return React.createElement(
|
|
7029
7045
|
'div',
|
|
7030
7046
|
null,
|
|
7031
|
-
|
|
7047
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7032
7048
|
' ',
|
|
7033
|
-
node.caption &&
|
|
7049
|
+
node.caption && React.createElement(
|
|
7034
7050
|
'p',
|
|
7035
7051
|
{ style: { fontSize: '.9rem' } },
|
|
7036
|
-
|
|
7052
|
+
React.createElement(
|
|
7037
7053
|
'em',
|
|
7038
7054
|
null,
|
|
7039
7055
|
node.caption
|
|
@@ -7041,14 +7057,14 @@ var Audio = function Audio(_ref) {
|
|
|
7041
7057
|
)
|
|
7042
7058
|
);
|
|
7043
7059
|
}
|
|
7044
|
-
return
|
|
7060
|
+
return React.createElement(
|
|
7045
7061
|
'div',
|
|
7046
7062
|
{ className: 'audio' },
|
|
7047
|
-
|
|
7048
|
-
node.caption &&
|
|
7063
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7064
|
+
node.caption && React.createElement(
|
|
7049
7065
|
'p',
|
|
7050
7066
|
{ style: { fontSize: '.9rem' } },
|
|
7051
|
-
|
|
7067
|
+
React.createElement(
|
|
7052
7068
|
'em',
|
|
7053
7069
|
null,
|
|
7054
7070
|
node.caption
|
|
@@ -7066,34 +7082,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7066
7082
|
var profileImage = arguments[6];
|
|
7067
7083
|
|
|
7068
7084
|
if (authorName && authorURL) {
|
|
7069
|
-
return
|
|
7085
|
+
return React.createElement(
|
|
7070
7086
|
'span',
|
|
7071
7087
|
null,
|
|
7072
|
-
|
|
7088
|
+
React.createElement(
|
|
7073
7089
|
'a',
|
|
7074
7090
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7075
7091
|
authorName
|
|
7076
7092
|
),
|
|
7077
|
-
|
|
7093
|
+
React.createElement(
|
|
7078
7094
|
Card,
|
|
7079
7095
|
{ className: 'author-details-card-' + index },
|
|
7080
|
-
|
|
7096
|
+
React.createElement(
|
|
7081
7097
|
Row,
|
|
7082
7098
|
null,
|
|
7083
|
-
profileImage &&
|
|
7099
|
+
profileImage && React.createElement(
|
|
7084
7100
|
Col,
|
|
7085
7101
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7086
|
-
|
|
7102
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7087
7103
|
),
|
|
7088
|
-
|
|
7104
|
+
React.createElement(
|
|
7089
7105
|
Col,
|
|
7090
7106
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7091
|
-
|
|
7107
|
+
React.createElement(
|
|
7092
7108
|
'div',
|
|
7093
7109
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7094
7110
|
authorName
|
|
7095
7111
|
),
|
|
7096
|
-
|
|
7112
|
+
React.createElement(
|
|
7097
7113
|
'p',
|
|
7098
7114
|
null,
|
|
7099
7115
|
biography
|
|
@@ -7101,7 +7117,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7101
7117
|
)
|
|
7102
7118
|
)
|
|
7103
7119
|
),
|
|
7104
|
-
|
|
7120
|
+
React.createElement(
|
|
7105
7121
|
'style',
|
|
7106
7122
|
{ jsx: 'true' },
|
|
7107
7123
|
'\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 '
|
|
@@ -7109,7 +7125,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7109
7125
|
length !== index + 1 && ' , '
|
|
7110
7126
|
);
|
|
7111
7127
|
} else if (authorName) {
|
|
7112
|
-
return
|
|
7128
|
+
return React.createElement(
|
|
7113
7129
|
'span',
|
|
7114
7130
|
{ key: index },
|
|
7115
7131
|
authorName,
|
|
@@ -7264,8 +7280,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7264
7280
|
var duration = player.getDuration();
|
|
7265
7281
|
var queue = Math.floor(duration / 10);
|
|
7266
7282
|
var segment = Math.floor(current / queue);
|
|
7267
|
-
Beam.report_beam_video('Ready',
|
|
7268
|
-
Segment.report_video_event('Video Ready',
|
|
7283
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7284
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7269
7285
|
//autoplay
|
|
7270
7286
|
|
|
7271
7287
|
//Small pause before starting next video
|
|
@@ -7285,8 +7301,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7285
7301
|
var queue = Math.floor(duration / 10);
|
|
7286
7302
|
var segment = Math.floor(current / queue);
|
|
7287
7303
|
|
|
7288
|
-
Beam.report_beam_video('End',
|
|
7289
|
-
Segment.report_video_event('Video End',
|
|
7304
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7305
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7290
7306
|
setEndReported(true);
|
|
7291
7307
|
clearInterval(intervalID);
|
|
7292
7308
|
}
|
|
@@ -7336,8 +7352,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7336
7352
|
var queue = Math.floor(duration / 10);
|
|
7337
7353
|
var segment = Math.floor(current / queue);
|
|
7338
7354
|
if (!queueProgress.includes(segment)) {
|
|
7339
|
-
Beam.report_beam_video('Segment',
|
|
7340
|
-
Segment.report_video_event('Video Segment',
|
|
7355
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7356
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7341
7357
|
queueProgress.push(segment);
|
|
7342
7358
|
}
|
|
7343
7359
|
};
|
|
@@ -7350,8 +7366,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7350
7366
|
var queue = Math.floor(duration / 10);
|
|
7351
7367
|
var segment = Math.floor(current / queue);
|
|
7352
7368
|
|
|
7353
|
-
Beam.report_beam_video('Play',
|
|
7354
|
-
Segment.report_video_event('Video Play',
|
|
7369
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7370
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7355
7371
|
|
|
7356
7372
|
if (!playReported) {
|
|
7357
7373
|
setPlayReported(true);
|
|
@@ -7369,8 +7385,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7369
7385
|
var queue = Math.floor(duration / 10);
|
|
7370
7386
|
var segment = Math.floor(current / queue);
|
|
7371
7387
|
|
|
7372
|
-
Beam.report_beam_video('Pause',
|
|
7373
|
-
Segment.report_video_event('Video Pause',
|
|
7388
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7389
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7374
7390
|
};
|
|
7375
7391
|
|
|
7376
7392
|
// Youtube Options
|
|
@@ -7381,44 +7397,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7381
7397
|
}
|
|
7382
7398
|
};
|
|
7383
7399
|
|
|
7384
|
-
return
|
|
7400
|
+
return React.createElement(
|
|
7385
7401
|
'div',
|
|
7386
7402
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7387
|
-
|
|
7403
|
+
React.createElement(
|
|
7388
7404
|
'div',
|
|
7389
7405
|
{ className: 'mt-2 mb-5' },
|
|
7390
|
-
series &&
|
|
7406
|
+
series && React.createElement(
|
|
7391
7407
|
'div',
|
|
7392
7408
|
{ style: { fontSize: '0.9rem' } },
|
|
7393
7409
|
article.title,
|
|
7394
7410
|
' - Episode ',
|
|
7395
7411
|
series
|
|
7396
7412
|
),
|
|
7397
|
-
Videos[series - 1] &&
|
|
7413
|
+
Videos[series - 1] && React.createElement(
|
|
7398
7414
|
'h1',
|
|
7399
7415
|
{ className: 'mb-3' },
|
|
7400
7416
|
Videos[series - 1].title
|
|
7401
7417
|
),
|
|
7402
|
-
|
|
7418
|
+
React.createElement(
|
|
7403
7419
|
'div',
|
|
7404
7420
|
null,
|
|
7405
7421
|
moment(article.published).format('LL')
|
|
7406
7422
|
),
|
|
7407
|
-
|
|
7423
|
+
React.createElement(
|
|
7408
7424
|
'div',
|
|
7409
7425
|
{ className: 'mb-3' },
|
|
7410
7426
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7411
|
-
return
|
|
7427
|
+
return React.createElement(
|
|
7412
7428
|
'span',
|
|
7413
7429
|
{ key: index },
|
|
7414
7430
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7415
7431
|
);
|
|
7416
7432
|
})
|
|
7417
7433
|
),
|
|
7418
|
-
|
|
7434
|
+
React.createElement(
|
|
7419
7435
|
'p',
|
|
7420
7436
|
null,
|
|
7421
|
-
|
|
7437
|
+
React.createElement(SocialShare, {
|
|
7422
7438
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7423
7439
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7424
7440
|
shareVia: meta.shareVia,
|
|
@@ -7433,20 +7449,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7433
7449
|
hideFacebook: meta.hideFBShare
|
|
7434
7450
|
})
|
|
7435
7451
|
),
|
|
7436
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7452
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7437
7453
|
'p',
|
|
7438
7454
|
{ className: 'mb-3' },
|
|
7439
|
-
|
|
7455
|
+
React.createElement(
|
|
7440
7456
|
'em',
|
|
7441
7457
|
null,
|
|
7442
7458
|
Videos[series - 1].intro
|
|
7443
7459
|
)
|
|
7444
7460
|
)
|
|
7445
7461
|
),
|
|
7446
|
-
|
|
7462
|
+
React.createElement(
|
|
7447
7463
|
'div',
|
|
7448
7464
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7449
|
-
vidUrl && vidType == 'youtube' &&
|
|
7465
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7450
7466
|
className: 'fluid-iframe',
|
|
7451
7467
|
videoId: getYoutubeId(vidUrl),
|
|
7452
7468
|
opts: opts,
|
|
@@ -7457,10 +7473,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7457
7473
|
return handleOnEnd(e);
|
|
7458
7474
|
}
|
|
7459
7475
|
}),
|
|
7460
|
-
vidUrl && vidType == 'mp4' &&
|
|
7461
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7462
|
-
|
|
7463
|
-
series &&
|
|
7476
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7477
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7478
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7479
|
+
series && React.createElement(
|
|
7464
7480
|
'div',
|
|
7465
7481
|
{
|
|
7466
7482
|
className: 'vid-series',
|
|
@@ -7470,10 +7486,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7470
7486
|
maxHeight: '100%',
|
|
7471
7487
|
paddingBottom: '0'
|
|
7472
7488
|
} },
|
|
7473
|
-
|
|
7489
|
+
React.createElement(
|
|
7474
7490
|
'p',
|
|
7475
7491
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7476
|
-
|
|
7492
|
+
React.createElement(
|
|
7477
7493
|
'b',
|
|
7478
7494
|
{ style: { fontSize: '1.25em' } },
|
|
7479
7495
|
'Now Playing:'
|
|
@@ -7481,16 +7497,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7481
7497
|
' ',
|
|
7482
7498
|
seriesData[series ? series - 1 : 0].title
|
|
7483
7499
|
),
|
|
7484
|
-
vidUrl &&
|
|
7500
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7485
7501
|
)
|
|
7486
7502
|
),
|
|
7487
|
-
|
|
7488
|
-
|
|
7503
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7504
|
+
React.createElement(
|
|
7489
7505
|
'div',
|
|
7490
7506
|
{ className: 'vid-text' },
|
|
7491
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7507
|
+
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()))
|
|
7492
7508
|
),
|
|
7493
|
-
|
|
7509
|
+
React.createElement(
|
|
7494
7510
|
'style',
|
|
7495
7511
|
{ jsx: 'true' },
|
|
7496
7512
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7498,14 +7514,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7498
7514
|
);
|
|
7499
7515
|
};
|
|
7500
7516
|
|
|
7501
|
-
var Poll = function Poll(_ref) {
|
|
7502
|
-
var node = _ref.node
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
onVote = _ref.onVote
|
|
7507
|
-
_ref
|
|
7508
|
-
getSerializers = _ref.getSerializers;
|
|
7517
|
+
var Poll$1 = function Poll(_ref) {
|
|
7518
|
+
var node = _ref.node;
|
|
7519
|
+
_ref.client;
|
|
7520
|
+
_ref.pageview;
|
|
7521
|
+
_ref.videoAccountIDs;
|
|
7522
|
+
var onVote = _ref.onVote;
|
|
7523
|
+
_ref.showVotes;
|
|
7524
|
+
var getSerializers = _ref.getSerializers;
|
|
7509
7525
|
|
|
7510
7526
|
var _useState = useState(null),
|
|
7511
7527
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7543,67 +7559,67 @@ var Poll = function Poll(_ref) {
|
|
|
7543
7559
|
return acc;
|
|
7544
7560
|
}
|
|
7545
7561
|
}, 0);
|
|
7546
|
-
return
|
|
7547
|
-
|
|
7562
|
+
return React.createElement(
|
|
7563
|
+
React.Fragment,
|
|
7548
7564
|
null,
|
|
7549
|
-
question &&
|
|
7565
|
+
question && React.createElement(
|
|
7550
7566
|
'p',
|
|
7551
7567
|
{ className: 'font-weight-bold' },
|
|
7552
7568
|
question
|
|
7553
7569
|
),
|
|
7554
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7570
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7555
7571
|
'form',
|
|
7556
7572
|
{ onSubmit: function onSubmit(e) {
|
|
7557
7573
|
return onSubmitPoll(e);
|
|
7558
7574
|
} },
|
|
7559
7575
|
choices && choices.map(function (choice) {
|
|
7560
|
-
return
|
|
7576
|
+
return React.createElement(
|
|
7561
7577
|
'div',
|
|
7562
7578
|
{ key: choice._key },
|
|
7563
|
-
|
|
7579
|
+
React.createElement(
|
|
7564
7580
|
'label',
|
|
7565
7581
|
{ className: 'pl-2' },
|
|
7566
|
-
|
|
7582
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7567
7583
|
return setSelectedChoice(e.target.value);
|
|
7568
7584
|
} }),
|
|
7569
7585
|
' ' + choice.choiceText
|
|
7570
7586
|
)
|
|
7571
7587
|
);
|
|
7572
7588
|
}),
|
|
7573
|
-
|
|
7589
|
+
React.createElement(
|
|
7574
7590
|
Button,
|
|
7575
7591
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7576
7592
|
'Vote'
|
|
7577
7593
|
)
|
|
7578
7594
|
),
|
|
7579
|
-
|
|
7595
|
+
React.createElement(
|
|
7580
7596
|
'div',
|
|
7581
7597
|
{ className: 'progress-container' },
|
|
7582
7598
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7583
7599
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7584
|
-
return
|
|
7600
|
+
return React.createElement(
|
|
7585
7601
|
'div',
|
|
7586
7602
|
{ key: choice._key, className: 'mb-3' },
|
|
7587
|
-
|
|
7603
|
+
React.createElement(
|
|
7588
7604
|
'div',
|
|
7589
7605
|
{ className: 'correct-answer' },
|
|
7590
|
-
|
|
7606
|
+
React.createElement(
|
|
7591
7607
|
'div',
|
|
7592
7608
|
null,
|
|
7593
7609
|
choice.choiceText
|
|
7594
7610
|
),
|
|
7595
|
-
choice.choiceAnswer === true &&
|
|
7611
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7596
7612
|
'div',
|
|
7597
7613
|
null,
|
|
7598
|
-
|
|
7614
|
+
React.createElement(
|
|
7599
7615
|
'span',
|
|
7600
7616
|
{ style: { color: 'limegreen' } },
|
|
7601
7617
|
'Correct!'
|
|
7602
7618
|
)
|
|
7603
7619
|
)
|
|
7604
7620
|
),
|
|
7605
|
-
|
|
7606
|
-
|
|
7621
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7622
|
+
React.createElement(
|
|
7607
7623
|
'span',
|
|
7608
7624
|
{ className: 'float-right' },
|
|
7609
7625
|
percentage,
|
|
@@ -7614,14 +7630,14 @@ var Poll = function Poll(_ref) {
|
|
|
7614
7630
|
);
|
|
7615
7631
|
})
|
|
7616
7632
|
),
|
|
7617
|
-
showAnswer &&
|
|
7633
|
+
showAnswer && React.createElement(
|
|
7618
7634
|
'h4',
|
|
7619
7635
|
{ className: 'text-center small p-3' },
|
|
7620
7636
|
'Total Votes: ',
|
|
7621
7637
|
choicesTotalCount
|
|
7622
7638
|
),
|
|
7623
|
-
showAnswer && response &&
|
|
7624
|
-
|
|
7639
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7640
|
+
React.createElement(
|
|
7625
7641
|
'style',
|
|
7626
7642
|
{ jsx: 'true' },
|
|
7627
7643
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7639,22 +7655,22 @@ _export(_export.S, 'Object', {
|
|
|
7639
7655
|
}
|
|
7640
7656
|
});
|
|
7641
7657
|
|
|
7642
|
-
var values = _core.Object.values;
|
|
7658
|
+
var values$1 = _core.Object.values;
|
|
7643
7659
|
|
|
7644
|
-
var values
|
|
7645
|
-
module.exports = { "default": values, __esModule: true };
|
|
7660
|
+
var values = createCommonjsModule(function (module) {
|
|
7661
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7646
7662
|
});
|
|
7647
7663
|
|
|
7648
|
-
var _Object$values = unwrapExports(values
|
|
7664
|
+
var _Object$values = unwrapExports(values);
|
|
7649
7665
|
|
|
7650
|
-
var Poll
|
|
7651
|
-
var node = _ref.node
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
onVote = _ref.onVote
|
|
7656
|
-
_ref
|
|
7657
|
-
getSerializers = _ref.getSerializers;
|
|
7666
|
+
var Poll = function Poll(_ref) {
|
|
7667
|
+
var node = _ref.node;
|
|
7668
|
+
_ref.client;
|
|
7669
|
+
_ref.pageview;
|
|
7670
|
+
_ref.videoAccountIDs;
|
|
7671
|
+
var onVote = _ref.onVote;
|
|
7672
|
+
_ref.showVotes;
|
|
7673
|
+
var getSerializers = _ref.getSerializers;
|
|
7658
7674
|
|
|
7659
7675
|
var _useState = useState(null),
|
|
7660
7676
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7720,67 +7736,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7720
7736
|
return acc;
|
|
7721
7737
|
}
|
|
7722
7738
|
}, 0);
|
|
7723
|
-
return
|
|
7724
|
-
|
|
7739
|
+
return React.createElement(
|
|
7740
|
+
React.Fragment,
|
|
7725
7741
|
null,
|
|
7726
|
-
question &&
|
|
7742
|
+
question && React.createElement(
|
|
7727
7743
|
'p',
|
|
7728
7744
|
{ className: 'font-weight-bold' },
|
|
7729
7745
|
question
|
|
7730
7746
|
),
|
|
7731
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7747
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7732
7748
|
'form',
|
|
7733
7749
|
{ onSubmit: function onSubmit(e) {
|
|
7734
7750
|
return onSubmitPoll(e);
|
|
7735
7751
|
} },
|
|
7736
7752
|
choices && choices.map(function (choice) {
|
|
7737
|
-
return
|
|
7753
|
+
return React.createElement(
|
|
7738
7754
|
'div',
|
|
7739
7755
|
{ key: choice._key },
|
|
7740
|
-
|
|
7756
|
+
React.createElement(
|
|
7741
7757
|
'label',
|
|
7742
7758
|
{ className: 'pl-2' },
|
|
7743
|
-
|
|
7759
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7744
7760
|
return setSelectedChoice(e.target.value);
|
|
7745
7761
|
} }),
|
|
7746
7762
|
' ' + choice.choiceText
|
|
7747
7763
|
)
|
|
7748
7764
|
);
|
|
7749
7765
|
}),
|
|
7750
|
-
|
|
7766
|
+
React.createElement(
|
|
7751
7767
|
Button,
|
|
7752
7768
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7753
7769
|
'Vote'
|
|
7754
7770
|
)
|
|
7755
7771
|
),
|
|
7756
|
-
|
|
7772
|
+
React.createElement(
|
|
7757
7773
|
'div',
|
|
7758
7774
|
{ className: 'progress-container' },
|
|
7759
7775
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7760
7776
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7761
|
-
return
|
|
7777
|
+
return React.createElement(
|
|
7762
7778
|
'div',
|
|
7763
7779
|
{ key: choice._key, className: 'mb-3' },
|
|
7764
|
-
|
|
7780
|
+
React.createElement(
|
|
7765
7781
|
'div',
|
|
7766
7782
|
{ className: 'correct-answer' },
|
|
7767
|
-
|
|
7783
|
+
React.createElement(
|
|
7768
7784
|
'div',
|
|
7769
7785
|
null,
|
|
7770
7786
|
choice.choiceText
|
|
7771
7787
|
),
|
|
7772
|
-
choice.choiceAnswer === true &&
|
|
7788
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7773
7789
|
'div',
|
|
7774
7790
|
null,
|
|
7775
|
-
|
|
7791
|
+
React.createElement(
|
|
7776
7792
|
'span',
|
|
7777
7793
|
{ style: { color: 'limegreen' } },
|
|
7778
7794
|
'Correct!'
|
|
7779
7795
|
)
|
|
7780
7796
|
)
|
|
7781
7797
|
),
|
|
7782
|
-
|
|
7783
|
-
|
|
7798
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7799
|
+
React.createElement(
|
|
7784
7800
|
'span',
|
|
7785
7801
|
{ className: 'float-right' },
|
|
7786
7802
|
percentage,
|
|
@@ -7791,14 +7807,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7791
7807
|
);
|
|
7792
7808
|
})
|
|
7793
7809
|
),
|
|
7794
|
-
showAnswer &&
|
|
7810
|
+
showAnswer && React.createElement(
|
|
7795
7811
|
'h4',
|
|
7796
7812
|
{ className: 'text-center small p-3' },
|
|
7797
7813
|
'Total Votes: ',
|
|
7798
7814
|
choicesTotalCount
|
|
7799
7815
|
),
|
|
7800
|
-
showAnswer && response &&
|
|
7801
|
-
|
|
7816
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7817
|
+
React.createElement(
|
|
7802
7818
|
'style',
|
|
7803
7819
|
{ jsx: 'true' },
|
|
7804
7820
|
'\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 '
|
|
@@ -7806,7 +7822,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7806
7822
|
);
|
|
7807
7823
|
};
|
|
7808
7824
|
|
|
7809
|
-
var numberOfPaginations =
|
|
7825
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7810
7826
|
|
|
7811
7827
|
var Quiz = function Quiz(_ref) {
|
|
7812
7828
|
var quizzes = _ref.quizzes,
|
|
@@ -7924,34 +7940,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7924
7940
|
};
|
|
7925
7941
|
|
|
7926
7942
|
var renderPagination = function renderPagination() {
|
|
7927
|
-
return
|
|
7928
|
-
Pagination
|
|
7929
|
-
{ className: 'p-0 m-0', size:
|
|
7930
|
-
|
|
7943
|
+
return React.createElement(
|
|
7944
|
+
Pagination,
|
|
7945
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7946
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7931
7947
|
return changePage('first');
|
|
7932
7948
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
|
|
7949
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7934
7950
|
return changePage('prev');
|
|
7935
7951
|
}, disabled: currentPage === 1 }),
|
|
7936
|
-
|
|
7952
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7937
7953
|
return renderNewPages('prev');
|
|
7938
7954
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7939
7955
|
pages.map(function (page) {
|
|
7940
|
-
return
|
|
7941
|
-
Pagination
|
|
7956
|
+
return React.createElement(
|
|
7957
|
+
Pagination.Item,
|
|
7942
7958
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7943
7959
|
return changePage(page);
|
|
7944
7960
|
} },
|
|
7945
7961
|
page
|
|
7946
7962
|
);
|
|
7947
7963
|
}),
|
|
7948
|
-
|
|
7964
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7949
7965
|
return renderNewPages('next');
|
|
7950
7966
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7951
|
-
|
|
7967
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7952
7968
|
return changePage('next');
|
|
7953
7969
|
}, disabled: currentPage === pageCount }),
|
|
7954
|
-
|
|
7970
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7955
7971
|
return changePage('last');
|
|
7956
7972
|
}, disabled: currentPage === pageCount })
|
|
7957
7973
|
);
|
|
@@ -8034,51 +8050,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8034
8050
|
}
|
|
8035
8051
|
};
|
|
8036
8052
|
|
|
8037
|
-
return
|
|
8038
|
-
|
|
8053
|
+
return React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8039
8055
|
null,
|
|
8040
|
-
quizzes[currentPage - 1] &&
|
|
8041
|
-
|
|
8056
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8057
|
+
React.Fragment,
|
|
8042
8058
|
null,
|
|
8043
|
-
|
|
8044
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8059
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8060
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8045
8061
|
'form',
|
|
8046
8062
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8047
8063
|
return e.preventDefault();
|
|
8048
8064
|
} },
|
|
8049
8065
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8050
|
-
return
|
|
8066
|
+
return React.createElement(
|
|
8051
8067
|
'div',
|
|
8052
8068
|
{ key: answer._key },
|
|
8053
|
-
|
|
8069
|
+
React.createElement(
|
|
8054
8070
|
'label',
|
|
8055
8071
|
{ className: 'pl-2' },
|
|
8056
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8072
|
+
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 }),
|
|
8057
8073
|
' ' + answer.answerText
|
|
8058
8074
|
)
|
|
8059
8075
|
);
|
|
8060
8076
|
})
|
|
8061
8077
|
)
|
|
8062
8078
|
),
|
|
8063
|
-
!showAnswer &&
|
|
8079
|
+
!showAnswer && React.createElement(
|
|
8064
8080
|
Button$1,
|
|
8065
8081
|
{ onClick: function onClick() {
|
|
8066
8082
|
return checkAnswers();
|
|
8067
8083
|
}, variant: 'info', block: true },
|
|
8068
8084
|
'Please click here for answer'
|
|
8069
8085
|
),
|
|
8070
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8071
|
-
|
|
8086
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8087
|
+
React.Fragment,
|
|
8072
8088
|
null,
|
|
8073
|
-
|
|
8089
|
+
React.createElement(
|
|
8074
8090
|
'h4',
|
|
8075
8091
|
null,
|
|
8076
8092
|
'Answer:'
|
|
8077
8093
|
),
|
|
8078
|
-
quizzes[currentPage - 1].answer &&
|
|
8094
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8079
8095
|
),
|
|
8080
|
-
|
|
8081
|
-
pageCount > 1 &&
|
|
8096
|
+
React.createElement('br', null),
|
|
8097
|
+
pageCount > 1 && React.createElement(
|
|
8082
8098
|
'div',
|
|
8083
8099
|
{ className: 'd-flex justify-content-center' },
|
|
8084
8100
|
renderPagination()
|
|
@@ -8089,14 +8105,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8089
8105
|
var Leads = function Leads(_ref) {
|
|
8090
8106
|
var url = _ref.url;
|
|
8091
8107
|
|
|
8092
|
-
return
|
|
8108
|
+
return React.createElement(
|
|
8093
8109
|
'div',
|
|
8094
8110
|
{ className: 'd-block text-center mb-3' },
|
|
8095
|
-
url &&
|
|
8111
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8096
8112
|
);
|
|
8097
8113
|
};
|
|
8098
8114
|
|
|
8099
|
-
var Slideshow
|
|
8115
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8100
8116
|
var slides = _ref.node.slides,
|
|
8101
8117
|
client = _ref.client,
|
|
8102
8118
|
pageview = _ref.pageview,
|
|
@@ -8132,53 +8148,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8132
8148
|
setCarouselIndex(selectedIndex);
|
|
8133
8149
|
};
|
|
8134
8150
|
|
|
8135
|
-
return
|
|
8151
|
+
return React.createElement(
|
|
8136
8152
|
'div',
|
|
8137
8153
|
{ className: 'mt-3 mb-4' },
|
|
8138
|
-
|
|
8154
|
+
React.createElement(
|
|
8139
8155
|
Carousel,
|
|
8140
8156
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8141
8157
|
slides && slides.map(function (slide) {
|
|
8142
8158
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8143
|
-
return
|
|
8159
|
+
return React.createElement(
|
|
8144
8160
|
Carousel.Item,
|
|
8145
8161
|
{ key: slide._key },
|
|
8146
|
-
|
|
8162
|
+
React.createElement(
|
|
8147
8163
|
'a',
|
|
8148
8164
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8149
|
-
|
|
8165
|
+
React.createElement(
|
|
8150
8166
|
'div',
|
|
8151
8167
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8152
|
-
|
|
8168
|
+
React.createElement(
|
|
8153
8169
|
LazyLoad,
|
|
8154
8170
|
null,
|
|
8155
|
-
|
|
8171
|
+
React.createElement(
|
|
8156
8172
|
'picture',
|
|
8157
8173
|
null,
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8174
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8175
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8176
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8177
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8162
8178
|
)
|
|
8163
8179
|
)
|
|
8164
8180
|
)
|
|
8165
8181
|
),
|
|
8166
|
-
|
|
8182
|
+
React.createElement(
|
|
8167
8183
|
'div',
|
|
8168
8184
|
{ className: 'p-2' },
|
|
8169
|
-
slide.slideshowImage.caption &&
|
|
8185
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8170
8186
|
'h3',
|
|
8171
8187
|
{ style: { padding: '0px' } },
|
|
8172
8188
|
slide.slideshowImage.caption
|
|
8173
8189
|
),
|
|
8174
|
-
slide.description &&
|
|
8190
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8175
8191
|
)
|
|
8176
8192
|
);
|
|
8177
8193
|
}
|
|
8178
8194
|
return null;
|
|
8179
8195
|
})
|
|
8180
8196
|
),
|
|
8181
|
-
|
|
8197
|
+
React.createElement(
|
|
8182
8198
|
'style',
|
|
8183
8199
|
{ jsx: 'true' },
|
|
8184
8200
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\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 '
|
|
@@ -8197,10 +8213,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8197
8213
|
sizes = _props$node.sizes,
|
|
8198
8214
|
sizeMapping = _props$node.sizeMapping;
|
|
8199
8215
|
|
|
8200
|
-
return
|
|
8216
|
+
return React.createElement(
|
|
8201
8217
|
'div',
|
|
8202
8218
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8203
|
-
|
|
8219
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8204
8220
|
);
|
|
8205
8221
|
};
|
|
8206
8222
|
|
|
@@ -8211,15 +8227,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8211
8227
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8212
8228
|
|
|
8213
8229
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8214
|
-
return
|
|
8230
|
+
return React.createElement(
|
|
8215
8231
|
'section',
|
|
8216
8232
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8217
|
-
Caption &&
|
|
8233
|
+
Caption && React.createElement(
|
|
8218
8234
|
'h4',
|
|
8219
8235
|
{ className: 'formstack-caption' },
|
|
8220
8236
|
Caption
|
|
8221
8237
|
),
|
|
8222
|
-
|
|
8238
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8223
8239
|
);
|
|
8224
8240
|
};
|
|
8225
8241
|
|
|
@@ -8235,36 +8251,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8235
8251
|
}
|
|
8236
8252
|
});
|
|
8237
8253
|
if (medias && medias.length > 0) {
|
|
8238
|
-
return
|
|
8254
|
+
return React.createElement(
|
|
8239
8255
|
'div',
|
|
8240
8256
|
{ className: 'multi-media-container' },
|
|
8241
|
-
|
|
8257
|
+
React.createElement(
|
|
8242
8258
|
Row$1,
|
|
8243
8259
|
{ noGutters: true },
|
|
8244
8260
|
medias.map(function (media) {
|
|
8245
|
-
return
|
|
8261
|
+
return React.createElement(
|
|
8246
8262
|
Col$1,
|
|
8247
8263
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8248
|
-
|
|
8264
|
+
React.createElement(
|
|
8249
8265
|
'a',
|
|
8250
|
-
_extends
|
|
8266
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8251
8267
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8252
|
-
|
|
8268
|
+
React.createElement(
|
|
8253
8269
|
'div',
|
|
8254
8270
|
{ className: 'multi-media-image-container' },
|
|
8255
|
-
imageBox &&
|
|
8271
|
+
imageBox && React.createElement(
|
|
8256
8272
|
LazyLoad,
|
|
8257
8273
|
{ once: true },
|
|
8258
|
-
|
|
8274
|
+
React.createElement(
|
|
8259
8275
|
'picture',
|
|
8260
8276
|
null,
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8277
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8278
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8279
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8280
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8265
8281
|
)
|
|
8266
8282
|
),
|
|
8267
|
-
media.caption &&
|
|
8283
|
+
media.caption && React.createElement(
|
|
8268
8284
|
'span',
|
|
8269
8285
|
{ className: 'multi-media-caption' },
|
|
8270
8286
|
media.caption
|
|
@@ -8274,7 +8290,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8274
8290
|
);
|
|
8275
8291
|
})
|
|
8276
8292
|
),
|
|
8277
|
-
|
|
8293
|
+
React.createElement(
|
|
8278
8294
|
'style',
|
|
8279
8295
|
{ jsx: 'true' },
|
|
8280
8296
|
'\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 '
|
|
@@ -8321,7 +8337,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8321
8337
|
}
|
|
8322
8338
|
};
|
|
8323
8339
|
|
|
8324
|
-
_this.wraperRef =
|
|
8340
|
+
_this.wraperRef = React.createRef();
|
|
8325
8341
|
_this.visible = false;
|
|
8326
8342
|
return _this;
|
|
8327
8343
|
}
|
|
@@ -8349,7 +8365,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8349
8365
|
_props$id = _props.id,
|
|
8350
8366
|
id = _props$id === undefined ? '' : _props$id;
|
|
8351
8367
|
|
|
8352
|
-
return
|
|
8368
|
+
return React.createElement(
|
|
8353
8369
|
'div',
|
|
8354
8370
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8355
8371
|
this.props.children
|
|
@@ -8358,7 +8374,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8358
8374
|
}]);
|
|
8359
8375
|
|
|
8360
8376
|
return InscreenSensor;
|
|
8361
|
-
}(
|
|
8377
|
+
}(React.Component);
|
|
8362
8378
|
|
|
8363
8379
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8364
8380
|
var nodes = _ref.nodes,
|
|
@@ -8467,33 +8483,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8467
8483
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8468
8484
|
var showReading = show ? 'showReading' : '';
|
|
8469
8485
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8470
|
-
return
|
|
8486
|
+
return React.createElement(
|
|
8471
8487
|
'div',
|
|
8472
8488
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8473
|
-
|
|
8489
|
+
React.createElement(
|
|
8474
8490
|
'a',
|
|
8475
8491
|
{ onClick: function onClick(e) {
|
|
8476
8492
|
return articleCardClickHandler(e);
|
|
8477
8493
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8478
|
-
|
|
8494
|
+
React.createElement(
|
|
8479
8495
|
'div',
|
|
8480
8496
|
{ className: 'prevNext-thumbnail' },
|
|
8481
|
-
|
|
8482
|
-
|
|
8497
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8498
|
+
React.createElement(
|
|
8483
8499
|
'div',
|
|
8484
8500
|
{ className: 'prevNext-reading ' + showReading },
|
|
8485
8501
|
articleLabel
|
|
8486
8502
|
)
|
|
8487
8503
|
),
|
|
8488
|
-
|
|
8504
|
+
React.createElement(
|
|
8489
8505
|
'div',
|
|
8490
8506
|
{ className: 'prevNext-summary' },
|
|
8491
|
-
|
|
8507
|
+
React.createElement(
|
|
8492
8508
|
'div',
|
|
8493
8509
|
{ className: 'prevNext-publishDate' },
|
|
8494
8510
|
moment(article.published).format('LL')
|
|
8495
8511
|
),
|
|
8496
|
-
|
|
8512
|
+
React.createElement(
|
|
8497
8513
|
'h2',
|
|
8498
8514
|
{ className: 'prevNext-title' },
|
|
8499
8515
|
article.title
|
|
@@ -8542,7 +8558,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8542
8558
|
|
|
8543
8559
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8544
8560
|
if (biography) {
|
|
8545
|
-
return
|
|
8561
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8546
8562
|
}
|
|
8547
8563
|
};
|
|
8548
8564
|
|
|
@@ -8628,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8628
8644
|
//console.log('useLayoutEffect')
|
|
8629
8645
|
if (!firstLoad) {
|
|
8630
8646
|
setUpArrowClicked(false);
|
|
8631
|
-
if (
|
|
8647
|
+
if (main_43) {
|
|
8632
8648
|
grabLoadedAds();
|
|
8633
8649
|
} else {
|
|
8634
8650
|
scrollToArticle();
|
|
@@ -8652,7 +8668,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8652
8668
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8653
8669
|
if (pageview) pageview(path);
|
|
8654
8670
|
|
|
8655
|
-
if (!
|
|
8671
|
+
if (!main_43) {
|
|
8656
8672
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8657
8673
|
if (window.googletag && googletag.pubadsReady) {
|
|
8658
8674
|
lib_3.refresh();
|
|
@@ -8660,7 +8676,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8660
8676
|
});
|
|
8661
8677
|
}
|
|
8662
8678
|
//Refresh leaderboard ad on mobile
|
|
8663
|
-
if (
|
|
8679
|
+
if (main_43) {
|
|
8664
8680
|
var leaderboardSlotId = '';
|
|
8665
8681
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8666
8682
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8700,38 +8716,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8700
8716
|
setSensorVisible(false);
|
|
8701
8717
|
};
|
|
8702
8718
|
|
|
8703
|
-
return
|
|
8704
|
-
|
|
8719
|
+
return React.createElement(
|
|
8720
|
+
React.Fragment,
|
|
8705
8721
|
null,
|
|
8706
|
-
|
|
8722
|
+
React.createElement(
|
|
8707
8723
|
'div',
|
|
8708
8724
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8709
|
-
|
|
8725
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8710
8726
|
return handleArrowClick();
|
|
8711
8727
|
} })
|
|
8712
8728
|
),
|
|
8713
|
-
|
|
8714
|
-
|
|
8729
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8730
|
+
React.createElement(
|
|
8715
8731
|
'div',
|
|
8716
8732
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8717
|
-
|
|
8733
|
+
React.createElement(
|
|
8718
8734
|
'h5',
|
|
8719
8735
|
{ className: 'objective-title' },
|
|
8720
8736
|
nodes.seriesTitle
|
|
8721
8737
|
),
|
|
8722
|
-
|
|
8738
|
+
React.createElement(
|
|
8723
8739
|
'div',
|
|
8724
8740
|
{ className: 'prevNextWrapper' },
|
|
8725
8741
|
PrevNextCards(false, -1)
|
|
8726
8742
|
)
|
|
8727
8743
|
),
|
|
8728
|
-
|
|
8729
|
-
|
|
8744
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8745
|
+
React.createElement(
|
|
8730
8746
|
'div',
|
|
8731
8747
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8732
|
-
|
|
8748
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8733
8749
|
if (index === 0) {
|
|
8734
|
-
return
|
|
8750
|
+
return React.createElement(
|
|
8735
8751
|
'div',
|
|
8736
8752
|
{
|
|
8737
8753
|
key: 'addid-1',
|
|
@@ -8751,14 +8767,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8751
8767
|
}
|
|
8752
8768
|
})
|
|
8753
8769
|
),
|
|
8754
|
-
|
|
8770
|
+
React.createElement(
|
|
8755
8771
|
'div',
|
|
8756
8772
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8757
8773
|
Articles.map(function (article, index) {
|
|
8758
|
-
return
|
|
8774
|
+
return React.createElement(
|
|
8759
8775
|
'div',
|
|
8760
8776
|
{ key: article.title },
|
|
8761
|
-
|
|
8777
|
+
React.createElement(
|
|
8762
8778
|
InscreenSensor,
|
|
8763
8779
|
{
|
|
8764
8780
|
visible: sensorVisible,
|
|
@@ -8776,84 +8792,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8776
8792
|
}
|
|
8777
8793
|
}
|
|
8778
8794
|
} },
|
|
8779
|
-
|
|
8795
|
+
React.createElement(
|
|
8780
8796
|
Head,
|
|
8781
8797
|
null,
|
|
8782
|
-
currentTitle !== null &&
|
|
8798
|
+
currentTitle !== null && React.createElement(
|
|
8783
8799
|
'title',
|
|
8784
8800
|
{ key: 'title' },
|
|
8785
8801
|
currentTitle
|
|
8786
8802
|
),
|
|
8787
|
-
currentSummary !== null &&
|
|
8788
|
-
currentURL !== null &&
|
|
8789
|
-
currentTitle !== null &&
|
|
8790
|
-
currentThumbnail !== null &&
|
|
8791
|
-
currentSummary !== null &&
|
|
8792
|
-
currentTitle !== null &&
|
|
8793
|
-
currentThumbnail !== null &&
|
|
8794
|
-
currentSummary !== null &&
|
|
8803
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8804
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8805
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8806
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8807
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8808
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8809
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8810
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8795
8811
|
),
|
|
8796
|
-
|
|
8812
|
+
React.createElement(
|
|
8797
8813
|
'article',
|
|
8798
8814
|
{ className: 'article-wrapper' },
|
|
8799
|
-
|
|
8815
|
+
React.createElement(
|
|
8800
8816
|
'div',
|
|
8801
8817
|
{ className: 'article-publishDate' },
|
|
8802
8818
|
moment(article.published).format('LL')
|
|
8803
8819
|
),
|
|
8804
|
-
|
|
8820
|
+
React.createElement(
|
|
8805
8821
|
'div',
|
|
8806
8822
|
{ className: 'author-details-wrapper' },
|
|
8807
8823
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8808
|
-
return
|
|
8824
|
+
return React.createElement(
|
|
8809
8825
|
'span',
|
|
8810
8826
|
{ key: index },
|
|
8811
8827
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8812
8828
|
);
|
|
8813
8829
|
})
|
|
8814
8830
|
),
|
|
8815
|
-
|
|
8831
|
+
React.createElement(
|
|
8816
8832
|
'h2',
|
|
8817
8833
|
{ className: 'article-title' },
|
|
8818
8834
|
article.title
|
|
8819
8835
|
),
|
|
8820
|
-
|
|
8836
|
+
React.createElement(
|
|
8821
8837
|
'div',
|
|
8822
8838
|
{ className: 'mt-2 mb-2' },
|
|
8823
|
-
|
|
8839
|
+
React.createElement(BlockContent, _extends({
|
|
8824
8840
|
serializers: getSerializers,
|
|
8825
8841
|
videoAccountIDs: accountIDs,
|
|
8826
8842
|
blocks: article.text,
|
|
8827
8843
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8828
8844
|
}, client.config())),
|
|
8829
|
-
|
|
8845
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8830
8846
|
),
|
|
8831
|
-
Articles.length > 1 &&
|
|
8832
|
-
|
|
8847
|
+
Articles.length > 1 && React.createElement(
|
|
8848
|
+
React.Fragment,
|
|
8833
8849
|
null,
|
|
8834
|
-
|
|
8850
|
+
React.createElement(
|
|
8835
8851
|
'div',
|
|
8836
8852
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8837
|
-
|
|
8853
|
+
React.createElement(
|
|
8838
8854
|
'h5',
|
|
8839
8855
|
{ className: 'objective-title' },
|
|
8840
8856
|
nodes.seriesTitle
|
|
8841
8857
|
),
|
|
8842
|
-
|
|
8858
|
+
React.createElement(
|
|
8843
8859
|
'div',
|
|
8844
8860
|
{ className: 'prevNextWrapper' },
|
|
8845
8861
|
PrevNextCards(true, index)
|
|
8846
8862
|
)
|
|
8847
8863
|
),
|
|
8848
|
-
|
|
8864
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8849
8865
|
)
|
|
8850
8866
|
),
|
|
8851
|
-
|
|
8867
|
+
React.createElement(
|
|
8852
8868
|
'div',
|
|
8853
8869
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8854
|
-
|
|
8870
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8855
8871
|
if (innerIndex === 0) {
|
|
8856
|
-
return
|
|
8872
|
+
return React.createElement(
|
|
8857
8873
|
'div',
|
|
8858
8874
|
{
|
|
8859
8875
|
key: 'addid-' + (index + 2),
|
|
@@ -8876,7 +8892,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8876
8892
|
)
|
|
8877
8893
|
);
|
|
8878
8894
|
}),
|
|
8879
|
-
|
|
8895
|
+
React.createElement(
|
|
8880
8896
|
'style',
|
|
8881
8897
|
{ jsx: 'true' },
|
|
8882
8898
|
'\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 '
|
|
@@ -8906,11 +8922,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8906
8922
|
};
|
|
8907
8923
|
}, [handleClickOutside]);
|
|
8908
8924
|
|
|
8909
|
-
return
|
|
8925
|
+
return React.createElement(
|
|
8910
8926
|
'div',
|
|
8911
8927
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8912
|
-
|
|
8913
|
-
|
|
8928
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8929
|
+
React.createElement(
|
|
8914
8930
|
'style',
|
|
8915
8931
|
{ jsx: 'true' },
|
|
8916
8932
|
'\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 '
|
|
@@ -8924,7 +8940,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8924
8940
|
}
|
|
8925
8941
|
};
|
|
8926
8942
|
|
|
8927
|
-
var FigureImage =
|
|
8943
|
+
var FigureImage$1 = React.memo(function (_ref2) {
|
|
8928
8944
|
var node = _ref2.node,
|
|
8929
8945
|
client = _ref2.client,
|
|
8930
8946
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8932,13 +8948,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8932
8948
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8933
8949
|
|
|
8934
8950
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8935
|
-
return
|
|
8951
|
+
return React.createElement(
|
|
8936
8952
|
'picture',
|
|
8937
8953
|
null,
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8954
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8955
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8956
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8957
|
+
React.createElement('img', _extends({
|
|
8942
8958
|
style: figureImageStyle,
|
|
8943
8959
|
className: 'figure-image',
|
|
8944
8960
|
src: urlFor({ source: node, client: client }),
|
|
@@ -8989,30 +9005,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8989
9005
|
|
|
8990
9006
|
var renderTooltip = function renderTooltip(props) {
|
|
8991
9007
|
if (infoBox[0].title) {
|
|
8992
|
-
return
|
|
8993
|
-
Popover
|
|
9008
|
+
return React.createElement(
|
|
9009
|
+
Popover,
|
|
8994
9010
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
8995
|
-
|
|
8996
|
-
Popover
|
|
9011
|
+
React.createElement(
|
|
9012
|
+
Popover.Title,
|
|
8997
9013
|
{ as: 'h3' },
|
|
8998
9014
|
infoBox[0].title
|
|
8999
9015
|
),
|
|
9000
|
-
|
|
9001
|
-
Popover
|
|
9016
|
+
React.createElement(
|
|
9017
|
+
Popover.Content,
|
|
9002
9018
|
null,
|
|
9003
|
-
|
|
9019
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9004
9020
|
)
|
|
9005
9021
|
);
|
|
9006
9022
|
} else {
|
|
9007
|
-
return
|
|
9008
|
-
Tooltip
|
|
9009
|
-
_extends
|
|
9010
|
-
|
|
9023
|
+
return React.createElement(
|
|
9024
|
+
Tooltip,
|
|
9025
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9026
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9011
9027
|
);
|
|
9012
9028
|
}
|
|
9013
9029
|
};
|
|
9014
9030
|
|
|
9015
|
-
var FigureImageWOverLay =
|
|
9031
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9016
9032
|
var node = _ref3.node,
|
|
9017
9033
|
client = _ref3.client,
|
|
9018
9034
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9020,32 +9036,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9020
9036
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9021
9037
|
|
|
9022
9038
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9023
|
-
var triggerAction =
|
|
9024
|
-
var placementLocation =
|
|
9025
|
-
return
|
|
9039
|
+
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9040
|
+
var placementLocation = main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9041
|
+
return React.createElement(
|
|
9026
9042
|
'picture',
|
|
9027
9043
|
null,
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9044
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9045
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9046
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9047
|
+
main_42 && link ? React.createElement('img', _extends({
|
|
9032
9048
|
style: figureImageStyle,
|
|
9033
9049
|
className: 'figure-image',
|
|
9034
9050
|
src: urlFor({ source: node, client: client }),
|
|
9035
9051
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9036
|
-
}, !link && !
|
|
9052
|
+
}, !link && !main_42 && {
|
|
9037
9053
|
onClick: function onClick() {
|
|
9038
9054
|
return handleClickFigure(node, client);
|
|
9039
9055
|
}
|
|
9040
|
-
})) :
|
|
9056
|
+
})) : React.createElement(
|
|
9041
9057
|
OverlayTrigger,
|
|
9042
9058
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9043
|
-
|
|
9059
|
+
React.createElement('img', _extends({
|
|
9044
9060
|
style: figureImageStyle,
|
|
9045
9061
|
className: 'figure-image',
|
|
9046
9062
|
src: urlFor({ source: node, client: client }),
|
|
9047
9063
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9048
|
-
}, !link && !
|
|
9064
|
+
}, !link && !main_42 && {
|
|
9049
9065
|
onClick: function onClick() {
|
|
9050
9066
|
return handleClickFigure(node, client);
|
|
9051
9067
|
}
|
|
@@ -9094,13 +9110,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9094
9110
|
|
|
9095
9111
|
var FigureCaption = useCallback(function () {
|
|
9096
9112
|
if (imgcaption && imgcaption.length > 0) {
|
|
9097
|
-
return
|
|
9113
|
+
return React.createElement(
|
|
9098
9114
|
'div',
|
|
9099
9115
|
{ className: 'figure-caption' },
|
|
9100
|
-
|
|
9116
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9101
9117
|
);
|
|
9102
9118
|
} else if (caption) {
|
|
9103
|
-
return
|
|
9119
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9104
9120
|
} else return null;
|
|
9105
9121
|
}, [caption, imgcaption]);
|
|
9106
9122
|
|
|
@@ -9117,24 +9133,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9117
9133
|
setShowLightbox(true);
|
|
9118
9134
|
}, [node, client]);
|
|
9119
9135
|
|
|
9120
|
-
return
|
|
9121
|
-
|
|
9136
|
+
return React.createElement(
|
|
9137
|
+
React.Fragment,
|
|
9122
9138
|
null,
|
|
9123
|
-
infoBox.length >= 1 ?
|
|
9124
|
-
Figure$
|
|
9139
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9140
|
+
Figure$2,
|
|
9125
9141
|
{ className: '' + class_name, style: figureStyle },
|
|
9126
|
-
link ?
|
|
9142
|
+
link ? React.createElement(
|
|
9127
9143
|
'a',
|
|
9128
9144
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
) :
|
|
9132
|
-
|
|
9145
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9146
|
+
React.createElement(FigureCaption, null)
|
|
9147
|
+
) : React.createElement(
|
|
9148
|
+
React.Fragment,
|
|
9133
9149
|
null,
|
|
9134
|
-
|
|
9135
|
-
|
|
9150
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9151
|
+
React.createElement(FigureCaption, null)
|
|
9136
9152
|
),
|
|
9137
|
-
|
|
9153
|
+
React.createElement(LightBox, {
|
|
9138
9154
|
showLightbox: showLightbox,
|
|
9139
9155
|
lightboxImgSrc: lightboxImgSrc,
|
|
9140
9156
|
closeLightbox: function closeLightbox() {
|
|
@@ -9142,21 +9158,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9142
9158
|
setShowLightbox(false);
|
|
9143
9159
|
}
|
|
9144
9160
|
})
|
|
9145
|
-
) :
|
|
9146
|
-
Figure$
|
|
9161
|
+
) : React.createElement(
|
|
9162
|
+
Figure$2,
|
|
9147
9163
|
{ className: '' + class_name, style: figureStyle },
|
|
9148
|
-
link ?
|
|
9164
|
+
link ? React.createElement(
|
|
9149
9165
|
'a',
|
|
9150
9166
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
) :
|
|
9154
|
-
|
|
9167
|
+
React.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9168
|
+
React.createElement(FigureCaption, null)
|
|
9169
|
+
) : React.createElement(
|
|
9170
|
+
React.Fragment,
|
|
9155
9171
|
null,
|
|
9156
|
-
|
|
9157
|
-
|
|
9172
|
+
React.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9173
|
+
React.createElement(FigureCaption, null)
|
|
9158
9174
|
),
|
|
9159
|
-
|
|
9175
|
+
React.createElement(LightBox, {
|
|
9160
9176
|
showLightbox: showLightbox,
|
|
9161
9177
|
lightboxImgSrc: lightboxImgSrc,
|
|
9162
9178
|
closeLightbox: function closeLightbox() {
|
|
@@ -9165,7 +9181,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9165
9181
|
}
|
|
9166
9182
|
})
|
|
9167
9183
|
),
|
|
9168
|
-
|
|
9184
|
+
React.createElement(
|
|
9169
9185
|
'style',
|
|
9170
9186
|
{ jsx: 'true' },
|
|
9171
9187
|
'\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 '
|
|
@@ -9173,7 +9189,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9173
9189
|
);
|
|
9174
9190
|
};
|
|
9175
9191
|
|
|
9176
|
-
var Figure =
|
|
9192
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9177
9193
|
|
|
9178
9194
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9179
9195
|
useEffect(function () {
|
|
@@ -9190,7 +9206,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9190
9206
|
}, [ref]);
|
|
9191
9207
|
}
|
|
9192
9208
|
|
|
9193
|
-
var FigureImage
|
|
9209
|
+
var FigureImage = React.memo(function (_ref) {
|
|
9194
9210
|
var imagesCount = _ref.imagesCount,
|
|
9195
9211
|
image = _ref.image,
|
|
9196
9212
|
client = _ref.client,
|
|
@@ -9198,13 +9214,13 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9198
9214
|
link = _ref.link,
|
|
9199
9215
|
handleClickFigure = _ref.handleClickFigure;
|
|
9200
9216
|
|
|
9201
|
-
return
|
|
9217
|
+
return React.createElement(
|
|
9202
9218
|
'picture',
|
|
9203
9219
|
null,
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9220
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9221
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9222
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9223
|
+
React.createElement('img', _extends({
|
|
9208
9224
|
'images-count': imagesCount,
|
|
9209
9225
|
className: 'multi-figure-image',
|
|
9210
9226
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9241,13 +9257,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9241
9257
|
imgcaption = _ref2.imgcaption;
|
|
9242
9258
|
|
|
9243
9259
|
if (imgcaption && imgcaption.length > 0) {
|
|
9244
|
-
return
|
|
9260
|
+
return React.createElement(
|
|
9245
9261
|
'div',
|
|
9246
9262
|
{ className: 'multi-figure-caption' },
|
|
9247
|
-
|
|
9263
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9248
9264
|
);
|
|
9249
9265
|
} else if (caption) {
|
|
9250
|
-
return
|
|
9266
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9251
9267
|
} else return null;
|
|
9252
9268
|
};
|
|
9253
9269
|
|
|
@@ -9256,7 +9272,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9256
9272
|
setOpenImg(true);
|
|
9257
9273
|
}, [client]);
|
|
9258
9274
|
|
|
9259
|
-
var FigureImageWOverLay =
|
|
9275
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9260
9276
|
var imagesCount = _ref3.imagesCount,
|
|
9261
9277
|
image = _ref3.image,
|
|
9262
9278
|
client = _ref3.client,
|
|
@@ -9264,32 +9280,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9264
9280
|
link = _ref3.link,
|
|
9265
9281
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9266
9282
|
|
|
9267
|
-
var triggerAction =
|
|
9268
|
-
var placementLocation =
|
|
9269
|
-
return
|
|
9283
|
+
var triggerAction = main_42 ? 'click' : 'hover';
|
|
9284
|
+
var placementLocation = main_42 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9285
|
+
return React.createElement(
|
|
9270
9286
|
'picture',
|
|
9271
9287
|
null,
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9288
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9289
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9290
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9291
|
+
main_42 && link ? React.createElement('img', _extends({
|
|
9276
9292
|
'images-count': imagesCount,
|
|
9277
9293
|
className: 'multi-figure-image',
|
|
9278
9294
|
src: urlFor({ source: image, client: client }),
|
|
9279
9295
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9280
|
-
}, !link && !
|
|
9296
|
+
}, !link && !main_42 && {
|
|
9281
9297
|
onClick: function onClick() {
|
|
9282
9298
|
return handleClickFigure(image, client);
|
|
9283
9299
|
}
|
|
9284
|
-
})) :
|
|
9300
|
+
})) : React.createElement(
|
|
9285
9301
|
OverlayTrigger,
|
|
9286
9302
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9287
|
-
|
|
9303
|
+
React.createElement('img', _extends({
|
|
9288
9304
|
'images-count': imagesCount,
|
|
9289
9305
|
className: 'multi-figure-image',
|
|
9290
9306
|
src: urlFor({ source: image, client: client }),
|
|
9291
9307
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9292
|
-
}, !link && !
|
|
9308
|
+
}, !link && !main_42 && {
|
|
9293
9309
|
onClick: function onClick() {
|
|
9294
9310
|
return handleClickFigure(image, client);
|
|
9295
9311
|
}
|
|
@@ -9300,102 +9316,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9300
9316
|
|
|
9301
9317
|
var renderTooltip = function renderTooltip(image) {
|
|
9302
9318
|
if (image.infoBox[0].title) {
|
|
9303
|
-
return
|
|
9304
|
-
Popover
|
|
9319
|
+
return React.createElement(
|
|
9320
|
+
Popover,
|
|
9305
9321
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9306
|
-
|
|
9307
|
-
Popover
|
|
9322
|
+
React.createElement(
|
|
9323
|
+
Popover.Title,
|
|
9308
9324
|
{ as: 'h3' },
|
|
9309
9325
|
image.infoBox[0].title
|
|
9310
9326
|
),
|
|
9311
|
-
|
|
9312
|
-
Popover
|
|
9327
|
+
React.createElement(
|
|
9328
|
+
Popover.Content,
|
|
9313
9329
|
null,
|
|
9314
|
-
|
|
9330
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9315
9331
|
)
|
|
9316
9332
|
);
|
|
9317
9333
|
} else {
|
|
9318
|
-
return
|
|
9319
|
-
Tooltip
|
|
9320
|
-
_extends
|
|
9321
|
-
|
|
9334
|
+
return React.createElement(
|
|
9335
|
+
Tooltip,
|
|
9336
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9337
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9322
9338
|
);
|
|
9323
9339
|
}
|
|
9324
9340
|
};
|
|
9325
9341
|
|
|
9326
9342
|
if (images && images.length > 0) {
|
|
9327
|
-
return
|
|
9343
|
+
return React.createElement(
|
|
9328
9344
|
'div',
|
|
9329
9345
|
{ className: 'multi-figure-container' },
|
|
9330
|
-
|
|
9346
|
+
React.createElement(
|
|
9331
9347
|
Row$1,
|
|
9332
9348
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9333
9349
|
images.map(function (image, index) {
|
|
9334
9350
|
if (image.infoBox) {
|
|
9335
|
-
return
|
|
9351
|
+
return React.createElement(
|
|
9336
9352
|
Col$1,
|
|
9337
9353
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9338
|
-
image.link ?
|
|
9354
|
+
image.link ? React.createElement(
|
|
9339
9355
|
'a',
|
|
9340
|
-
_extends
|
|
9341
|
-
|
|
9356
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9357
|
+
React.createElement(
|
|
9342
9358
|
'div',
|
|
9343
9359
|
{ className: 'multi-figure-image-container' },
|
|
9344
|
-
|
|
9360
|
+
React.createElement(
|
|
9345
9361
|
LazyLoad,
|
|
9346
9362
|
{ once: true },
|
|
9347
|
-
|
|
9363
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9348
9364
|
),
|
|
9349
|
-
|
|
9365
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9350
9366
|
)
|
|
9351
|
-
) :
|
|
9367
|
+
) : React.createElement(
|
|
9352
9368
|
'div',
|
|
9353
9369
|
{ className: 'multi-figure-image-container' },
|
|
9354
|
-
|
|
9370
|
+
React.createElement(
|
|
9355
9371
|
LazyLoad,
|
|
9356
9372
|
{ once: true },
|
|
9357
|
-
|
|
9373
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9358
9374
|
),
|
|
9359
|
-
|
|
9375
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9360
9376
|
)
|
|
9361
9377
|
);
|
|
9362
9378
|
} else {
|
|
9363
|
-
return
|
|
9379
|
+
return React.createElement(
|
|
9364
9380
|
Col$1,
|
|
9365
9381
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9366
|
-
image.link ?
|
|
9382
|
+
image.link ? React.createElement(
|
|
9367
9383
|
'a',
|
|
9368
|
-
_extends
|
|
9369
|
-
|
|
9384
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9385
|
+
React.createElement(
|
|
9370
9386
|
'div',
|
|
9371
9387
|
{ className: 'multi-figure-image-container' },
|
|
9372
|
-
|
|
9388
|
+
React.createElement(
|
|
9373
9389
|
LazyLoad,
|
|
9374
9390
|
{ once: true },
|
|
9375
|
-
|
|
9391
|
+
React.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9376
9392
|
),
|
|
9377
|
-
|
|
9393
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9378
9394
|
)
|
|
9379
|
-
) :
|
|
9395
|
+
) : React.createElement(
|
|
9380
9396
|
'div',
|
|
9381
9397
|
{ className: 'multi-figure-image-container' },
|
|
9382
|
-
|
|
9398
|
+
React.createElement(
|
|
9383
9399
|
LazyLoad,
|
|
9384
9400
|
{ once: true },
|
|
9385
|
-
|
|
9401
|
+
React.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9386
9402
|
),
|
|
9387
|
-
|
|
9403
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9388
9404
|
)
|
|
9389
9405
|
);
|
|
9390
9406
|
}
|
|
9391
9407
|
})
|
|
9392
9408
|
),
|
|
9393
|
-
|
|
9409
|
+
React.createElement(
|
|
9394
9410
|
'div',
|
|
9395
9411
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9396
|
-
|
|
9412
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9397
9413
|
),
|
|
9398
|
-
|
|
9414
|
+
React.createElement(
|
|
9399
9415
|
'style',
|
|
9400
9416
|
{ jsx: 'true' },
|
|
9401
9417
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9431,11 +9447,11 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9431
9447
|
};
|
|
9432
9448
|
}, []);
|
|
9433
9449
|
|
|
9434
|
-
return
|
|
9450
|
+
return React.createElement(
|
|
9435
9451
|
'div',
|
|
9436
9452
|
{ id: elementId },
|
|
9437
|
-
|
|
9438
|
-
|
|
9453
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9454
|
+
React.createElement(
|
|
9439
9455
|
'style',
|
|
9440
9456
|
{ jsx: 'true' },
|
|
9441
9457
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -100px;\n height: 100px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -9468,7 +9484,7 @@ exports.__esModule = true;
|
|
|
9468
9484
|
|
|
9469
9485
|
|
|
9470
9486
|
|
|
9471
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9487
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9472
9488
|
|
|
9473
9489
|
|
|
9474
9490
|
|
|
@@ -9488,7 +9504,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9488
9504
|
|
|
9489
9505
|
|
|
9490
9506
|
|
|
9491
|
-
var _react2 = _interopRequireDefault(
|
|
9507
|
+
var _react2 = _interopRequireDefault(React);
|
|
9492
9508
|
|
|
9493
9509
|
|
|
9494
9510
|
|
|
@@ -9637,9 +9653,9 @@ var ScriptTag = function (_Component) {
|
|
|
9637
9653
|
|
|
9638
9654
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9639
9655
|
// eslint-disable-next-line no-unused-vars
|
|
9640
|
-
var _props3 = this.props
|
|
9641
|
-
|
|
9642
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9656
|
+
var _props3 = this.props;
|
|
9657
|
+
_props3.isHydrating;
|
|
9658
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9643
9659
|
|
|
9644
9660
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9645
9661
|
return _this2.domRef = tag;
|
|
@@ -9647,7 +9663,7 @@ var ScriptTag = function (_Component) {
|
|
|
9647
9663
|
};
|
|
9648
9664
|
|
|
9649
9665
|
return ScriptTag;
|
|
9650
|
-
}(
|
|
9666
|
+
}(React.Component);
|
|
9651
9667
|
|
|
9652
9668
|
ScriptTag.propTypes = {
|
|
9653
9669
|
/**
|
|
@@ -9726,11 +9742,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9726
9742
|
}, []);
|
|
9727
9743
|
|
|
9728
9744
|
if (iframeSrc) {
|
|
9729
|
-
return
|
|
9745
|
+
return React.createElement(
|
|
9730
9746
|
'section',
|
|
9731
9747
|
{ className: 'form-assembly' },
|
|
9732
|
-
|
|
9733
|
-
|
|
9748
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9749
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9734
9750
|
);
|
|
9735
9751
|
}
|
|
9736
9752
|
|
|
@@ -9767,27 +9783,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9767
9783
|
return window.removeEventListener('resize', handleResize);
|
|
9768
9784
|
};
|
|
9769
9785
|
}, []);
|
|
9770
|
-
return
|
|
9786
|
+
return React.createElement(
|
|
9771
9787
|
'div',
|
|
9772
9788
|
{ className: 'blockTableHolder', ref: holder },
|
|
9773
|
-
|
|
9789
|
+
React.createElement(
|
|
9774
9790
|
'div',
|
|
9775
9791
|
{ className: 'blockTable' },
|
|
9776
9792
|
rows && rows.map(function (row) {
|
|
9777
|
-
return
|
|
9793
|
+
return React.createElement(
|
|
9778
9794
|
'div',
|
|
9779
9795
|
{ className: 'blockTableRow' },
|
|
9780
9796
|
row.cells && row.cells.map(function (cell) {
|
|
9781
|
-
return
|
|
9797
|
+
return React.createElement(
|
|
9782
9798
|
'div',
|
|
9783
9799
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9784
|
-
|
|
9800
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9785
9801
|
);
|
|
9786
9802
|
})
|
|
9787
9803
|
);
|
|
9788
9804
|
})
|
|
9789
9805
|
),
|
|
9790
|
-
|
|
9806
|
+
React.createElement(
|
|
9791
9807
|
'style',
|
|
9792
9808
|
{ jsx: true },
|
|
9793
9809
|
'\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 '
|
|
@@ -9866,12 +9882,12 @@ var getSerializers = function getSerializers() {
|
|
|
9866
9882
|
var node = _ref.node;
|
|
9867
9883
|
var url = node.url;
|
|
9868
9884
|
|
|
9869
|
-
return
|
|
9885
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9870
9886
|
},
|
|
9871
9887
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9872
9888
|
var node = _ref2.node;
|
|
9873
9889
|
|
|
9874
|
-
return
|
|
9890
|
+
return React.createElement(YouTubeGallery, {
|
|
9875
9891
|
nodes: node,
|
|
9876
9892
|
article: article,
|
|
9877
9893
|
meta: meta,
|
|
@@ -9885,7 +9901,7 @@ var getSerializers = function getSerializers() {
|
|
|
9885
9901
|
articleSeries: function articleSeries(_ref3) {
|
|
9886
9902
|
var node = _ref3.node;
|
|
9887
9903
|
|
|
9888
|
-
return
|
|
9904
|
+
return React.createElement(ArticleSeries, {
|
|
9889
9905
|
nodes: node,
|
|
9890
9906
|
accountIDs: videoAccountIDs || {},
|
|
9891
9907
|
pageview: pageview,
|
|
@@ -9898,61 +9914,61 @@ var getSerializers = function getSerializers() {
|
|
|
9898
9914
|
figure: function figure(_ref4) {
|
|
9899
9915
|
var node = _ref4.node;
|
|
9900
9916
|
|
|
9901
|
-
return
|
|
9917
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9902
9918
|
},
|
|
9903
9919
|
multifigure: function multifigure(_ref5) {
|
|
9904
9920
|
var node = _ref5.node;
|
|
9905
9921
|
|
|
9906
|
-
return
|
|
9922
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9907
9923
|
},
|
|
9908
9924
|
slideshow: function slideshow(_ref6) {
|
|
9909
9925
|
var node = _ref6.node;
|
|
9910
9926
|
var slides = node.slides;
|
|
9911
9927
|
|
|
9912
|
-
return
|
|
9928
|
+
return React.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9913
9929
|
},
|
|
9914
9930
|
sidebar: function sidebar(_ref7) {
|
|
9915
9931
|
var node = _ref7.node;
|
|
9916
9932
|
var caption = node.caption,
|
|
9917
9933
|
content = node.content;
|
|
9918
9934
|
|
|
9919
|
-
return
|
|
9935
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9920
9936
|
},
|
|
9921
9937
|
datatable: function datatable(_ref8) {
|
|
9922
9938
|
var node = _ref8.node;
|
|
9923
9939
|
var table = node.table;
|
|
9924
9940
|
|
|
9925
|
-
return
|
|
9941
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9926
9942
|
},
|
|
9927
9943
|
media: function media(_ref9) {
|
|
9928
9944
|
var node = _ref9.node;
|
|
9929
9945
|
|
|
9930
|
-
return
|
|
9946
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9931
9947
|
},
|
|
9932
9948
|
iframe: function iframe(_ref10) {
|
|
9933
9949
|
var node = _ref10.node;
|
|
9934
9950
|
|
|
9935
|
-
return
|
|
9951
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9936
9952
|
},
|
|
9937
9953
|
video: function video(_ref11) {
|
|
9938
9954
|
var node = _ref11.node;
|
|
9939
9955
|
|
|
9940
|
-
return
|
|
9956
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9941
9957
|
},
|
|
9942
9958
|
audio: function audio(_ref12) {
|
|
9943
9959
|
var node = _ref12.node;
|
|
9944
9960
|
|
|
9945
|
-
return
|
|
9961
|
+
return React.createElement(Audio, { node: node });
|
|
9946
9962
|
},
|
|
9947
9963
|
poll: function poll(_ref13) {
|
|
9948
9964
|
var node = _ref13.node;
|
|
9949
9965
|
|
|
9950
|
-
return
|
|
9966
|
+
return React.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9951
9967
|
},
|
|
9952
9968
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9953
9969
|
var node = _ref14.node;
|
|
9954
9970
|
|
|
9955
|
-
return
|
|
9971
|
+
return React.createElement(Poll, {
|
|
9956
9972
|
node: node,
|
|
9957
9973
|
client: client,
|
|
9958
9974
|
pageview: pageview,
|
|
@@ -9966,35 +9982,35 @@ var getSerializers = function getSerializers() {
|
|
|
9966
9982
|
var node = _ref15.node;
|
|
9967
9983
|
var quizzes = node.quizzes;
|
|
9968
9984
|
|
|
9969
|
-
return
|
|
9985
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9970
9986
|
},
|
|
9971
9987
|
leads: function leads(_ref16) {
|
|
9972
9988
|
var node = _ref16.node;
|
|
9973
9989
|
var leadID = node.leadID;
|
|
9974
9990
|
|
|
9975
9991
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9976
|
-
return
|
|
9992
|
+
return React.createElement(Leads, { url: url });
|
|
9977
9993
|
},
|
|
9978
9994
|
slideshows: function slideshows(_ref17) {
|
|
9979
9995
|
var node = _ref17.node;
|
|
9980
9996
|
|
|
9981
|
-
return
|
|
9997
|
+
return React.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9982
9998
|
},
|
|
9983
9999
|
nativeAd: function nativeAd(_ref18) {
|
|
9984
10000
|
var node = _ref18.node;
|
|
9985
10001
|
|
|
9986
|
-
return
|
|
10002
|
+
return React.createElement(NativeAd, { node: node });
|
|
9987
10003
|
},
|
|
9988
10004
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9989
10005
|
var node = _ref19.node;
|
|
9990
10006
|
|
|
9991
|
-
return
|
|
10007
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9992
10008
|
},
|
|
9993
10009
|
hrtag: function hrtag() {
|
|
9994
|
-
return
|
|
10010
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9995
10011
|
},
|
|
9996
10012
|
brtag: function brtag() {
|
|
9997
|
-
return
|
|
10013
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9998
10014
|
},
|
|
9999
10015
|
formstack: function formstack(_ref20) {
|
|
10000
10016
|
var node = _ref20.node;
|
|
@@ -10002,29 +10018,29 @@ var getSerializers = function getSerializers() {
|
|
|
10002
10018
|
Caption = node.Caption,
|
|
10003
10019
|
needSegmentSupport = node.needSegmentSupport;
|
|
10004
10020
|
|
|
10005
|
-
return
|
|
10021
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10006
10022
|
},
|
|
10007
10023
|
formassembly: FormAssembly,
|
|
10008
10024
|
multimedia: function multimedia(_ref21) {
|
|
10009
10025
|
var node = _ref21.node;
|
|
10010
10026
|
|
|
10011
|
-
return
|
|
10027
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10012
10028
|
},
|
|
10013
10029
|
blockTable: function blockTable(_ref22) {
|
|
10014
10030
|
var node = _ref22.node;
|
|
10015
|
-
return
|
|
10031
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10016
10032
|
}
|
|
10017
10033
|
},
|
|
10018
10034
|
marks: {
|
|
10019
10035
|
superscript: function superscript(props) {
|
|
10020
|
-
return
|
|
10036
|
+
return React.createElement(
|
|
10021
10037
|
'sup',
|
|
10022
10038
|
null,
|
|
10023
10039
|
props.children
|
|
10024
10040
|
);
|
|
10025
10041
|
},
|
|
10026
10042
|
subscript: function subscript(props) {
|
|
10027
|
-
return
|
|
10043
|
+
return React.createElement(
|
|
10028
10044
|
'sub',
|
|
10029
10045
|
null,
|
|
10030
10046
|
props.children
|
|
@@ -10040,7 +10056,7 @@ var getSerializers = function getSerializers() {
|
|
|
10040
10056
|
if (href && href.charAt(0) === '#') {
|
|
10041
10057
|
var elementId = href.slice(1);
|
|
10042
10058
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10043
|
-
return
|
|
10059
|
+
return React.createElement(
|
|
10044
10060
|
'a',
|
|
10045
10061
|
{ onClick: function onClick() {
|
|
10046
10062
|
return ScrollToElement(elementId);
|
|
@@ -10050,7 +10066,7 @@ var getSerializers = function getSerializers() {
|
|
|
10050
10066
|
}
|
|
10051
10067
|
|
|
10052
10068
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10053
|
-
return
|
|
10069
|
+
return React.createElement(
|
|
10054
10070
|
'a',
|
|
10055
10071
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
10056
10072
|
children
|
|
@@ -10058,7 +10074,7 @@ var getSerializers = function getSerializers() {
|
|
|
10058
10074
|
},
|
|
10059
10075
|
alignleft: function alignleft(_ref23) {
|
|
10060
10076
|
var children = _ref23.children;
|
|
10061
|
-
return
|
|
10077
|
+
return React.createElement(
|
|
10062
10078
|
'div',
|
|
10063
10079
|
{ style: { textAlign: 'left' } },
|
|
10064
10080
|
children
|
|
@@ -10066,7 +10082,7 @@ var getSerializers = function getSerializers() {
|
|
|
10066
10082
|
},
|
|
10067
10083
|
alignright: function alignright(_ref24) {
|
|
10068
10084
|
var children = _ref24.children;
|
|
10069
|
-
return
|
|
10085
|
+
return React.createElement(
|
|
10070
10086
|
'div',
|
|
10071
10087
|
{ style: { textAlign: 'right' } },
|
|
10072
10088
|
children
|
|
@@ -10074,7 +10090,7 @@ var getSerializers = function getSerializers() {
|
|
|
10074
10090
|
},
|
|
10075
10091
|
aligncenter: function aligncenter(_ref25) {
|
|
10076
10092
|
var children = _ref25.children;
|
|
10077
|
-
return
|
|
10093
|
+
return React.createElement(
|
|
10078
10094
|
'div',
|
|
10079
10095
|
{ style: { textAlign: 'center' } },
|
|
10080
10096
|
children
|
|
@@ -10082,7 +10098,7 @@ var getSerializers = function getSerializers() {
|
|
|
10082
10098
|
},
|
|
10083
10099
|
alignjustify: function alignjustify(_ref26) {
|
|
10084
10100
|
var children = _ref26.children;
|
|
10085
|
-
return
|
|
10101
|
+
return React.createElement(
|
|
10086
10102
|
'div',
|
|
10087
10103
|
{ style: { textAlign: 'justify' } },
|
|
10088
10104
|
children
|
|
@@ -10092,7 +10108,7 @@ var getSerializers = function getSerializers() {
|
|
|
10092
10108
|
var children = props.children,
|
|
10093
10109
|
color = props.mark.color;
|
|
10094
10110
|
|
|
10095
|
-
return
|
|
10111
|
+
return React.createElement(
|
|
10096
10112
|
'span',
|
|
10097
10113
|
{ style: { color: color ? color.hex : null } },
|
|
10098
10114
|
children
|