@mjhls/mjh-framework 1.0.816-beta.1 → 1.0.817-image-crop-test
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 +170 -170
- 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-7c4b33b3.js → ADInfeed-1ac86856.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-563e0168.js → ADlgInfeed-2ee46b09.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +36 -35
- package/dist/cjs/AdSlotsProvider.js +17 -909
- package/dist/cjs/AlgoliaSearch.js +1088 -1068
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +25 -23
- package/dist/cjs/ArticleProgramLandingPage.js +60 -58
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -40
- package/dist/cjs/ArticleSeriesListing.js +62 -60
- package/dist/cjs/Auth.js +686 -662
- 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 +40 -44
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +110 -112
- package/dist/cjs/DeckQueue.js +95 -98
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-93399f8c.js} +35 -34
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +82 -80
- package/dist/cjs/Feature.js +30 -32
- package/dist/cjs/ForbesHero.js +46 -47
- package/dist/cjs/GridContent.js +194 -293
- package/dist/cjs/GridHero.js +50 -60
- package/dist/cjs/GroupDeck.js +62 -65
- package/dist/cjs/HamMagazine.js +144 -139
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +11 -21
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +73 -71
- package/dist/cjs/HorizontalHero.js +29 -29
- package/dist/cjs/IssueContentDeck.js +83 -95
- package/dist/cjs/IssueDeck.js +85 -82
- package/dist/cjs/IssueLanding.js +96 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +41 -39
- package/dist/cjs/MasterDeck.js +82 -81
- package/dist/cjs/MediaSeriesLanding.js +1117 -1126
- 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/NavNormal.js +52 -47
- package/dist/cjs/OncliveHero.js +23 -24
- package/dist/cjs/OncliveLargeHero.js +79 -79
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +112 -115
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +43 -41
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +75 -72
- package/dist/cjs/PublicationLanding.js +139 -138
- package/dist/cjs/QueueDeckExpanded.js +329 -328
- package/dist/cjs/RecentNews.js +23 -25
- package/dist/cjs/RelatedContent.js +56 -58
- 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 +39 -38
- package/dist/cjs/{SeriesSlider-4abb21b4.js → SeriesSlider-4862d8c4.js} +42 -46
- 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 +70 -68
- package/dist/cjs/TaxonomyDescription.js +57 -55
- package/dist/cjs/TemplateNormal.js +77 -76
- package/dist/cjs/ThumbnailCard.js +23 -25
- package/dist/cjs/Ustream.js +30 -29
- package/dist/cjs/VerticalHero.js +19 -22
- package/dist/cjs/VideoProgramLandingPage.js +78 -73
- package/dist/cjs/VideoSeriesCard.js +35 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +51 -49
- package/dist/cjs/VideoSeriesListing.js +79 -77
- package/dist/cjs/View.js +272 -269
- package/dist/cjs/YahooHero.js +45 -46
- package/dist/cjs/YoutubeGroup.js +69 -72
- 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 +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +425 -12
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +45 -44
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-be6168ad.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-a8c4e3fd.js → index-6741b269.js} +996 -1017
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/index-bd6c9f56.js +211 -0
- 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-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- 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 +167 -177
- package/dist/cjs/{inherits-9953db94.js → inherits-c2065b95.js} +22 -22
- 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 +27 -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-31055afd.js → ADInfeed-7aaa47e1.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-dcb27a6c.js → ADlgInfeed-78f95e78.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 +737 -718
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +21 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -55
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +665 -645
- 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 +37 -42
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +101 -107
- package/dist/esm/DeckQueue.js +86 -93
- package/dist/esm/{Dfp-b7236041.js → Dfp-43f121ff.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +75 -74
- package/dist/esm/Feature.js +22 -26
- package/dist/esm/ForbesHero.js +38 -40
- package/dist/esm/GridContent.js +176 -279
- package/dist/esm/GridHero.js +42 -53
- package/dist/esm/GroupDeck.js +49 -53
- package/dist/esm/HamMagazine.js +115 -115
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -21
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -68
- package/dist/esm/HorizontalHero.js +25 -26
- package/dist/esm/IssueContentDeck.js +68 -85
- package/dist/esm/IssueDeck.js +73 -75
- package/dist/esm/IssueLanding.js +92 -91
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +78 -78
- 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/NavNormal.js +38 -38
- package/dist/esm/OncliveHero.js +20 -22
- package/dist/esm/OncliveLargeHero.js +66 -67
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +108 -112
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +39 -38
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +61 -63
- package/dist/esm/PublicationLanding.js +122 -125
- package/dist/esm/QueueDeckExpanded.js +288 -287
- package/dist/esm/RecentNews.js +20 -23
- package/dist/esm/RelatedContent.js +49 -52
- 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 +33 -32
- package/dist/esm/{SeriesSlider-36be7223.js → SeriesSlider-38cca5eb.js} +32 -37
- 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 +60 -63
- package/dist/esm/TaxonomyDescription.js +51 -50
- package/dist/esm/TemplateNormal.js +72 -72
- package/dist/esm/ThumbnailCard.js +14 -18
- package/dist/esm/Ustream.js +26 -26
- package/dist/esm/VerticalHero.js +15 -19
- package/dist/esm/VideoProgramLandingPage.js +67 -66
- package/dist/esm/VideoSeriesCard.js +28 -27
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +42 -41
- package/dist/esm/VideoSeriesListing.js +74 -73
- package/dist/esm/View.js +252 -253
- package/dist/esm/YahooHero.js +38 -40
- package/dist/esm/YoutubeGroup.js +53 -57
- 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 +425 -12
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -44
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-68291ce9.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-782e414a.js → index-c1bcae0f.js} +953 -981
- package/dist/esm/index-db3bb315.js +207 -0
- 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-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +137 -149
- 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 +27 -3
- 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 -110
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- 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/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,41 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
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';
|
|
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';
|
|
4
|
+
import urlFor from './urlFor.js';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
13
6
|
import Router, { useRouter } from 'next/router';
|
|
14
|
-
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
-
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
16
|
-
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
-
import Segment from './Segment.js';
|
|
20
|
-
import Beam from './Beam.js';
|
|
21
|
-
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
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
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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';
|
|
39
35
|
|
|
40
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
41
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -43,7 +39,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
43
39
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
44
40
|
};
|
|
45
41
|
|
|
46
|
-
var Slideshow = function Slideshow(_ref) {
|
|
42
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
47
43
|
var slides = _ref.slides,
|
|
48
44
|
client = _ref.client,
|
|
49
45
|
pageview = _ref.pageview;
|
|
@@ -55,8 +51,6 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
55
51
|
carouselIndex = _useState2[0],
|
|
56
52
|
setCarouselIndex = _useState2[1];
|
|
57
53
|
|
|
58
|
-
var builder = imageUrlBuilder(client);
|
|
59
|
-
|
|
60
54
|
useEffect(function () {
|
|
61
55
|
var itemArr = router.asPath.split('?page=');
|
|
62
56
|
var pageNumber = parseInt(itemArr[1]);
|
|
@@ -72,20 +66,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
72
66
|
if (pageview) pageview(router.asPath);
|
|
73
67
|
}, [router]);
|
|
74
68
|
|
|
75
|
-
return
|
|
69
|
+
return React.createElement(
|
|
76
70
|
'div',
|
|
77
71
|
{ className: 'mt-3 mb-3' },
|
|
78
|
-
|
|
72
|
+
React.createElement(
|
|
79
73
|
Carousel,
|
|
80
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
81
75
|
return onChangeSlide(selectedIndex, router);
|
|
82
76
|
}, interval: null },
|
|
83
77
|
slides && slides.map(function (slide) {
|
|
84
|
-
return
|
|
78
|
+
return React.createElement(
|
|
85
79
|
Carousel.Item,
|
|
86
80
|
{ key: slide._key },
|
|
87
|
-
|
|
88
|
-
slide.caption &&
|
|
81
|
+
React.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
82
|
+
slide.caption && React.createElement(
|
|
89
83
|
'p',
|
|
90
84
|
{ className: 'p-2' },
|
|
91
85
|
slide.caption
|
|
@@ -96,21 +90,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
96
90
|
);
|
|
97
91
|
};
|
|
98
92
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
93
|
+
// do not edit .js files directly - edit src/index.jst
|
|
94
|
+
|
|
95
|
+
|
|
102
96
|
|
|
103
97
|
var fastDeepEqual = function equal(a, b) {
|
|
104
98
|
if (a === b) return true;
|
|
105
99
|
|
|
106
100
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
107
|
-
|
|
108
|
-
, arrB = isArray(b)
|
|
109
|
-
, i
|
|
110
|
-
, length
|
|
111
|
-
, key;
|
|
101
|
+
if (a.constructor !== b.constructor) return false;
|
|
112
102
|
|
|
113
|
-
|
|
103
|
+
var length, i, keys;
|
|
104
|
+
if (Array.isArray(a)) {
|
|
114
105
|
length = a.length;
|
|
115
106
|
if (length != b.length) return false;
|
|
116
107
|
for (i = length; i-- !== 0;)
|
|
@@ -118,35 +109,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
118
109
|
return true;
|
|
119
110
|
}
|
|
120
111
|
|
|
121
|
-
if (arrA != arrB) return false;
|
|
122
112
|
|
|
123
|
-
var dateA = a instanceof Date
|
|
124
|
-
, dateB = b instanceof Date;
|
|
125
|
-
if (dateA != dateB) return false;
|
|
126
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
127
113
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (
|
|
131
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
114
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
115
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
116
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
132
117
|
|
|
133
|
-
|
|
118
|
+
keys = Object.keys(a);
|
|
134
119
|
length = keys.length;
|
|
135
|
-
|
|
136
|
-
if (length !== keyList(b).length)
|
|
137
|
-
return false;
|
|
120
|
+
if (length !== Object.keys(b).length) return false;
|
|
138
121
|
|
|
139
122
|
for (i = length; i-- !== 0;)
|
|
140
|
-
if (!
|
|
123
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
141
124
|
|
|
142
125
|
for (i = length; i-- !== 0;) {
|
|
143
|
-
key = keys[i];
|
|
126
|
+
var key = keys[i];
|
|
127
|
+
|
|
144
128
|
if (!equal(a[key], b[key])) return false;
|
|
145
129
|
}
|
|
146
130
|
|
|
147
131
|
return true;
|
|
148
132
|
}
|
|
149
133
|
|
|
134
|
+
// true if both NaN, false otherwise
|
|
150
135
|
return a!==a && b!==b;
|
|
151
136
|
};
|
|
152
137
|
|
|
@@ -684,14 +669,14 @@ function coerce(val) {
|
|
|
684
669
|
return val;
|
|
685
670
|
}
|
|
686
671
|
});
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
672
|
+
debug.coerce;
|
|
673
|
+
debug.disable;
|
|
674
|
+
debug.enable;
|
|
675
|
+
debug.enabled;
|
|
676
|
+
debug.humanize;
|
|
677
|
+
debug.names;
|
|
678
|
+
debug.skips;
|
|
679
|
+
debug.formatters;
|
|
695
680
|
|
|
696
681
|
var browser = createCommonjsModule(function (module, exports) {
|
|
697
682
|
/**
|
|
@@ -880,13 +865,13 @@ function localstorage() {
|
|
|
880
865
|
} catch (e) {}
|
|
881
866
|
}
|
|
882
867
|
});
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
868
|
+
browser.log;
|
|
869
|
+
browser.formatArgs;
|
|
870
|
+
browser.save;
|
|
871
|
+
browser.load;
|
|
872
|
+
browser.useColors;
|
|
873
|
+
browser.storage;
|
|
874
|
+
browser.colors;
|
|
890
875
|
|
|
891
876
|
// MIT lisence
|
|
892
877
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1161,14 +1146,14 @@ function init (debug) {
|
|
|
1161
1146
|
|
|
1162
1147
|
exports.enable(load());
|
|
1163
1148
|
});
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1149
|
+
node.init;
|
|
1150
|
+
node.log;
|
|
1151
|
+
node.formatArgs;
|
|
1152
|
+
node.save;
|
|
1153
|
+
node.load;
|
|
1154
|
+
node.useColors;
|
|
1155
|
+
node.colors;
|
|
1156
|
+
node.inspectOpts;
|
|
1172
1157
|
|
|
1173
1158
|
var src = createCommonjsModule(function (module) {
|
|
1174
1159
|
/**
|
|
@@ -1569,199 +1554,239 @@ module.exports = exports['default'];
|
|
|
1569
1554
|
|
|
1570
1555
|
var youTubePlayer = unwrapExports(dist);
|
|
1571
1556
|
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1557
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1575
1558
|
|
|
1576
1559
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1577
1560
|
|
|
1578
|
-
function
|
|
1561
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1562
|
+
|
|
1563
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1564
|
+
|
|
1565
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1566
|
+
|
|
1567
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1579
1568
|
|
|
1580
|
-
function
|
|
1569
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1581
1570
|
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1571
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1572
|
+
|
|
1573
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1574
|
+
|
|
1575
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1576
|
+
|
|
1577
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1578
|
+
|
|
1579
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1580
|
+
|
|
1581
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1582
|
+
|
|
1583
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1584
|
+
/**
|
|
1585
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1586
|
+
*
|
|
1587
|
+
* @param {Object} prevProps
|
|
1588
|
+
* @param {Object} props
|
|
1587
1589
|
*/
|
|
1590
|
+
|
|
1588
1591
|
function shouldUpdateVideo(prevProps, props) {
|
|
1589
1592
|
// A changing video should always trigger an update
|
|
1590
1593
|
if (prevProps.videoId !== props.videoId) {
|
|
1591
1594
|
return true;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
1596
|
// update.
|
|
1597
|
+
|
|
1598
|
+
|
|
1596
1599
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1597
1600
|
var vars = props.opts.playerVars || {};
|
|
1598
|
-
|
|
1599
1601
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1600
1602
|
}
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @param {Object} opts
|
|
1603
|
+
/**
|
|
1604
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1605
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
+
* player reset is necessary.
|
|
1607
|
+
*
|
|
1608
|
+
* @param {Object} opts
|
|
1608
1609
|
*/
|
|
1610
|
+
|
|
1611
|
+
|
|
1609
1612
|
function filterResetOptions(opts) {
|
|
1610
|
-
return
|
|
1611
|
-
playerVars:
|
|
1613
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1614
|
+
playerVars: _objectSpread({
|
|
1612
1615
|
autoplay: 0,
|
|
1613
1616
|
start: 0,
|
|
1614
1617
|
end: 0
|
|
1615
|
-
})
|
|
1618
|
+
}, opts.playerVars)
|
|
1616
1619
|
});
|
|
1617
1620
|
}
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
* @param {Object}
|
|
1626
|
-
* @param {Object} props
|
|
1621
|
+
/**
|
|
1622
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1623
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1624
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1625
|
+
* those.
|
|
1626
|
+
*
|
|
1627
|
+
* @param {Object} prevProps
|
|
1628
|
+
* @param {Object} props
|
|
1627
1629
|
*/
|
|
1630
|
+
|
|
1631
|
+
|
|
1628
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1629
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1630
1634
|
}
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
*
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object}
|
|
1636
|
-
* @param {Object} props
|
|
1635
|
+
/**
|
|
1636
|
+
* Check whether a props change should result in an id or className update.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1637
1640
|
*/
|
|
1641
|
+
|
|
1642
|
+
|
|
1638
1643
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1639
1644
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1640
1645
|
}
|
|
1641
1646
|
|
|
1642
|
-
var YouTube = function (_React$Component) {
|
|
1647
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1643
1648
|
_inherits(YouTube, _React$Component);
|
|
1644
1649
|
|
|
1650
|
+
var _super = _createSuper(YouTube);
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1654
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1655
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1656
|
+
*/
|
|
1645
1657
|
function YouTube(props) {
|
|
1658
|
+
var _this;
|
|
1659
|
+
|
|
1646
1660
|
_classCallCheck(this, YouTube);
|
|
1647
1661
|
|
|
1648
|
-
|
|
1662
|
+
_this = _super.call(this, props);
|
|
1649
1663
|
|
|
1650
|
-
_this
|
|
1664
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1651
1665
|
return _this.props.onReady(event);
|
|
1652
|
-
};
|
|
1666
|
+
});
|
|
1653
1667
|
|
|
1654
|
-
_this
|
|
1668
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1655
1669
|
return _this.props.onError(event);
|
|
1656
|
-
};
|
|
1670
|
+
});
|
|
1657
1671
|
|
|
1658
|
-
_this
|
|
1672
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1659
1673
|
_this.props.onStateChange(event);
|
|
1660
|
-
switch (event.data) {
|
|
1661
1674
|
|
|
1675
|
+
switch (event.data) {
|
|
1662
1676
|
case YouTube.PlayerState.ENDED:
|
|
1663
1677
|
_this.props.onEnd(event);
|
|
1678
|
+
|
|
1664
1679
|
break;
|
|
1665
1680
|
|
|
1666
1681
|
case YouTube.PlayerState.PLAYING:
|
|
1667
1682
|
_this.props.onPlay(event);
|
|
1683
|
+
|
|
1668
1684
|
break;
|
|
1669
1685
|
|
|
1670
1686
|
case YouTube.PlayerState.PAUSED:
|
|
1671
1687
|
_this.props.onPause(event);
|
|
1688
|
+
|
|
1672
1689
|
break;
|
|
1673
1690
|
}
|
|
1674
|
-
};
|
|
1691
|
+
});
|
|
1675
1692
|
|
|
1676
|
-
_this
|
|
1693
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1677
1694
|
return _this.props.onPlaybackRateChange(event);
|
|
1678
|
-
};
|
|
1695
|
+
});
|
|
1679
1696
|
|
|
1680
|
-
_this
|
|
1697
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1681
1698
|
return _this.props.onPlaybackQualityChange(event);
|
|
1682
|
-
};
|
|
1699
|
+
});
|
|
1683
1700
|
|
|
1684
|
-
_this
|
|
1701
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1685
1702
|
// do not attempt to create a player server-side, it won't work
|
|
1686
|
-
if (typeof document === 'undefined') return;
|
|
1687
|
-
|
|
1688
|
-
var playerOpts =
|
|
1703
|
+
if (typeof document === 'undefined') return; // create player
|
|
1704
|
+
|
|
1705
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1689
1706
|
// preload the `videoId` video if one is already given
|
|
1690
1707
|
videoId: _this.props.videoId
|
|
1691
1708
|
});
|
|
1692
|
-
|
|
1693
|
-
// attach event handlers
|
|
1709
|
+
|
|
1710
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1711
|
+
|
|
1694
1712
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1713
|
+
|
|
1695
1714
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1715
|
+
|
|
1696
1716
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1717
|
+
|
|
1697
1718
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1719
|
+
|
|
1698
1720
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1699
|
-
};
|
|
1721
|
+
});
|
|
1700
1722
|
|
|
1701
|
-
_this
|
|
1723
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1702
1724
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1703
|
-
};
|
|
1725
|
+
});
|
|
1704
1726
|
|
|
1705
|
-
_this
|
|
1727
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1706
1728
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1707
1729
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1708
1730
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1709
1731
|
});
|
|
1710
|
-
};
|
|
1732
|
+
});
|
|
1711
1733
|
|
|
1712
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1735
|
+
return _this.internalPlayer;
|
|
1736
|
+
});
|
|
1737
|
+
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1713
1739
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1714
1740
|
_this.internalPlayer.stopVideo();
|
|
1741
|
+
|
|
1715
1742
|
return;
|
|
1716
|
-
}
|
|
1743
|
+
} // set queueing options
|
|
1744
|
+
|
|
1717
1745
|
|
|
1718
|
-
// set queueing options
|
|
1719
1746
|
var autoplay = false;
|
|
1720
1747
|
var opts = {
|
|
1721
1748
|
videoId: _this.props.videoId
|
|
1722
1749
|
};
|
|
1750
|
+
|
|
1723
1751
|
if ('playerVars' in _this.props.opts) {
|
|
1724
1752
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1753
|
+
|
|
1725
1754
|
if ('start' in _this.props.opts.playerVars) {
|
|
1726
1755
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1727
1756
|
}
|
|
1757
|
+
|
|
1728
1758
|
if ('end' in _this.props.opts.playerVars) {
|
|
1729
1759
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1730
1760
|
}
|
|
1731
|
-
}
|
|
1761
|
+
} // if autoplay is enabled loadVideoById
|
|
1762
|
+
|
|
1732
1763
|
|
|
1733
|
-
// if autoplay is enabled loadVideoById
|
|
1734
1764
|
if (autoplay) {
|
|
1735
1765
|
_this.internalPlayer.loadVideoById(opts);
|
|
1766
|
+
|
|
1736
1767
|
return;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1768
|
+
} // default behaviour just cues the video
|
|
1769
|
+
|
|
1770
|
+
|
|
1739
1771
|
_this.internalPlayer.cueVideoById(opts);
|
|
1740
|
-
};
|
|
1772
|
+
});
|
|
1741
1773
|
|
|
1742
|
-
_this
|
|
1774
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1743
1775
|
_this.container = container;
|
|
1744
|
-
};
|
|
1776
|
+
});
|
|
1745
1777
|
|
|
1746
1778
|
_this.container = null;
|
|
1747
1779
|
_this.internalPlayer = null;
|
|
1748
1780
|
return _this;
|
|
1749
1781
|
}
|
|
1750
1782
|
|
|
1751
|
-
/**
|
|
1752
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1753
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1754
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1755
|
-
*/
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
1783
|
_createClass(YouTube, [{
|
|
1759
|
-
key:
|
|
1784
|
+
key: "componentDidMount",
|
|
1760
1785
|
value: function componentDidMount() {
|
|
1761
1786
|
this.createPlayer();
|
|
1762
1787
|
}
|
|
1763
1788
|
}, {
|
|
1764
|
-
key:
|
|
1789
|
+
key: "componentDidUpdate",
|
|
1765
1790
|
value: function componentDidUpdate(prevProps) {
|
|
1766
1791
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1767
1792
|
this.updatePlayer();
|
|
@@ -1776,112 +1801,58 @@ var YouTube = function (_React$Component) {
|
|
|
1776
1801
|
}
|
|
1777
1802
|
}
|
|
1778
1803
|
}, {
|
|
1779
|
-
key:
|
|
1804
|
+
key: "componentWillUnmount",
|
|
1780
1805
|
value: function componentWillUnmount() {
|
|
1781
|
-
/**
|
|
1782
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1783
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1784
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1785
|
-
* this method isn't quick enough to reset the container element.
|
|
1806
|
+
/**
|
|
1807
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1808
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1809
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1810
|
+
* this method isn't quick enough to reset the container element.
|
|
1786
1811
|
*/
|
|
1787
1812
|
this.internalPlayer.destroy();
|
|
1788
1813
|
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
* @param {Object} target - player object
|
|
1795
|
-
*/
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1800
|
-
*
|
|
1801
|
-
* @param {Object} event
|
|
1802
|
-
* @param {Integer} data - error type
|
|
1803
|
-
* @param {Object} target - player object
|
|
1804
|
-
*/
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1809
|
-
*
|
|
1810
|
-
* @param {Object} event
|
|
1811
|
-
* @param {Integer} data - status change type
|
|
1812
|
-
* @param {Object} target - actual YT player
|
|
1813
|
-
*/
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1818
|
-
*
|
|
1819
|
-
* @param {Object} event
|
|
1820
|
-
* @param {Float} data - playback rate
|
|
1821
|
-
* @param {Object} target - actual YT player
|
|
1822
|
-
*/
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
/**
|
|
1826
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1827
|
-
*
|
|
1828
|
-
* @param {Object} event
|
|
1829
|
-
* @param {String} data - playback quality
|
|
1830
|
-
* @param {Object} target - actual YT player
|
|
1831
|
-
*/
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
/**
|
|
1835
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1836
|
-
*/
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1841
|
-
*/
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
/**
|
|
1845
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1846
|
-
* React should update this automatically but since the Youtube Player API
|
|
1847
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1848
|
-
*/
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1853
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1854
|
-
* Youtube Player API methods to update the video.
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Object} target - player object
|
|
1855
1819
|
*/
|
|
1856
1820
|
|
|
1857
1821
|
}, {
|
|
1858
|
-
key:
|
|
1822
|
+
key: "render",
|
|
1859
1823
|
value: function render() {
|
|
1860
|
-
return
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1824
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1825
|
+
className: this.props.containerClassName
|
|
1826
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1827
|
+
id: this.props.id,
|
|
1828
|
+
className: this.props.className,
|
|
1829
|
+
ref: this.refContainer
|
|
1830
|
+
}));
|
|
1865
1831
|
}
|
|
1866
1832
|
}]);
|
|
1867
1833
|
|
|
1868
1834
|
return YouTube;
|
|
1869
|
-
}(
|
|
1835
|
+
}(React.Component);
|
|
1836
|
+
|
|
1837
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1838
|
+
UNSTARTED: -1,
|
|
1839
|
+
ENDED: 0,
|
|
1840
|
+
PLAYING: 1,
|
|
1841
|
+
PAUSED: 2,
|
|
1842
|
+
BUFFERING: 3,
|
|
1843
|
+
CUED: 5
|
|
1844
|
+
});
|
|
1870
1845
|
|
|
1871
1846
|
YouTube.propTypes = {
|
|
1872
1847
|
videoId: PropTypes.string,
|
|
1873
|
-
|
|
1874
1848
|
// custom ID for player element
|
|
1875
1849
|
id: PropTypes.string,
|
|
1876
|
-
|
|
1877
1850
|
// custom class name for player element
|
|
1878
1851
|
className: PropTypes.string,
|
|
1879
1852
|
// custom class name for player container element
|
|
1880
1853
|
containerClassName: PropTypes.string,
|
|
1881
|
-
|
|
1882
1854
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1883
1855
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1884
|
-
|
|
1885
1856
|
// event subscriptions
|
|
1886
1857
|
onReady: PropTypes.func,
|
|
1887
1858
|
onError: PropTypes.func,
|
|
@@ -1893,6 +1864,7 @@ YouTube.propTypes = {
|
|
|
1893
1864
|
onPlaybackQualityChange: PropTypes.func
|
|
1894
1865
|
};
|
|
1895
1866
|
YouTube.defaultProps = {
|
|
1867
|
+
videoId: null,
|
|
1896
1868
|
id: null,
|
|
1897
1869
|
className: null,
|
|
1898
1870
|
opts: {},
|
|
@@ -1906,14 +1878,6 @@ YouTube.defaultProps = {
|
|
|
1906
1878
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1907
1879
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1908
1880
|
};
|
|
1909
|
-
YouTube.PlayerState = {
|
|
1910
|
-
UNSTARTED: -1,
|
|
1911
|
-
ENDED: 0,
|
|
1912
|
-
PLAYING: 1,
|
|
1913
|
-
PAUSED: 2,
|
|
1914
|
-
BUFFERING: 3,
|
|
1915
|
-
CUED: 5
|
|
1916
|
-
};
|
|
1917
1881
|
|
|
1918
1882
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1919
1883
|
var url = _ref.url,
|
|
@@ -1952,8 +1916,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1952
1916
|
var duration = player.getDuration();
|
|
1953
1917
|
var queue = Math.floor(duration / 10);
|
|
1954
1918
|
var segment = Math.floor(current / queue);
|
|
1955
|
-
Beam.report_beam_video('Ready',
|
|
1956
|
-
Segment.report_video_event('Video Ready',
|
|
1919
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1920
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1957
1921
|
};
|
|
1958
1922
|
|
|
1959
1923
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1963,8 +1927,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1963
1927
|
var segment = Math.floor(current / queue);
|
|
1964
1928
|
|
|
1965
1929
|
if (!queueProgress.includes(segment)) {
|
|
1966
|
-
Beam.report_beam_video('Segment',
|
|
1967
|
-
Segment.report_video_event('Video Segment',
|
|
1930
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1931
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1968
1932
|
queueProgress.push(segment);
|
|
1969
1933
|
}
|
|
1970
1934
|
};
|
|
@@ -1977,8 +1941,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1977
1941
|
var queue = Math.floor(duration / 10);
|
|
1978
1942
|
var segment = Math.floor(current / queue);
|
|
1979
1943
|
|
|
1980
|
-
Beam.report_beam_video('Play',
|
|
1981
|
-
Segment.report_video_event('Video Play',
|
|
1944
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1945
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1982
1946
|
|
|
1983
1947
|
if (!playReported) {
|
|
1984
1948
|
setPlayReported(true);
|
|
@@ -1997,8 +1961,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1997
1961
|
var queue = Math.floor(duration / 10);
|
|
1998
1962
|
var segment = Math.floor(current / queue);
|
|
1999
1963
|
|
|
2000
|
-
Beam.report_beam_video('End',
|
|
2001
|
-
Segment.report_video_event('Video End',
|
|
1964
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1965
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2002
1966
|
setEndReported(true);
|
|
2003
1967
|
clearInterval(intervalID);
|
|
2004
1968
|
}
|
|
@@ -2011,15 +1975,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2011
1975
|
var queue = Math.floor(duration / 10);
|
|
2012
1976
|
var segment = Math.floor(current / queue);
|
|
2013
1977
|
|
|
2014
|
-
Beam.report_beam_video('Pause',
|
|
2015
|
-
Segment.report_video_event('Video Pause',
|
|
1978
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1979
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2016
1980
|
};
|
|
2017
1981
|
|
|
2018
|
-
return
|
|
1982
|
+
return React.createElement(
|
|
2019
1983
|
'div',
|
|
2020
1984
|
{ id: 'fluid-video-container' },
|
|
2021
|
-
|
|
2022
|
-
|
|
1985
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1986
|
+
React.createElement(
|
|
2023
1987
|
'style',
|
|
2024
1988
|
{ jsx: 'true' },
|
|
2025
1989
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2032,20 +1996,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2032
1996
|
content = _ref.content,
|
|
2033
1997
|
getSerializers = _ref.getSerializers;
|
|
2034
1998
|
|
|
2035
|
-
return
|
|
1999
|
+
return React.createElement(
|
|
2036
2000
|
'article',
|
|
2037
2001
|
{ className: 'sidebar' },
|
|
2038
|
-
|
|
2002
|
+
React.createElement(
|
|
2039
2003
|
'div',
|
|
2040
2004
|
null,
|
|
2041
|
-
|
|
2005
|
+
React.createElement(
|
|
2042
2006
|
'h3',
|
|
2043
2007
|
null,
|
|
2044
2008
|
caption
|
|
2045
2009
|
),
|
|
2046
|
-
|
|
2010
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2047
2011
|
),
|
|
2048
|
-
|
|
2012
|
+
React.createElement(
|
|
2049
2013
|
'style',
|
|
2050
2014
|
{ jsx: 'true' },
|
|
2051
2015
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2056,18 +2020,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2056
2020
|
var TableShow = function TableShow(_ref) {
|
|
2057
2021
|
var rows = _ref.rows;
|
|
2058
2022
|
|
|
2059
|
-
return
|
|
2023
|
+
return React.createElement(
|
|
2060
2024
|
Table,
|
|
2061
2025
|
{ bordered: true, hover: true, responsive: true },
|
|
2062
|
-
|
|
2026
|
+
React.createElement(
|
|
2063
2027
|
'tbody',
|
|
2064
2028
|
null,
|
|
2065
2029
|
rows && rows.map(function (row) {
|
|
2066
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2067
2031
|
'tr',
|
|
2068
2032
|
{ key: row._key },
|
|
2069
2033
|
row.cells && row.cells.map(function (cell, index) {
|
|
2070
|
-
return cell &&
|
|
2034
|
+
return cell && React.createElement(
|
|
2071
2035
|
'td',
|
|
2072
2036
|
{ key: index },
|
|
2073
2037
|
cell
|
|
@@ -2095,11 +2059,6 @@ var Media = function Media(_ref) {
|
|
|
2095
2059
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2096
2060
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2097
2061
|
|
|
2098
|
-
var builder = imageUrlBuilder(client);
|
|
2099
|
-
|
|
2100
|
-
var urlFor = function urlFor(source) {
|
|
2101
|
-
return builder.image(source).auto('format');
|
|
2102
|
-
};
|
|
2103
2062
|
|
|
2104
2063
|
if (typeof window === 'undefined') {
|
|
2105
2064
|
return null;
|
|
@@ -2170,18 +2129,18 @@ var Media = function Media(_ref) {
|
|
|
2170
2129
|
margin: imageMargin
|
|
2171
2130
|
};
|
|
2172
2131
|
|
|
2173
|
-
return
|
|
2132
|
+
return React.createElement(
|
|
2174
2133
|
Figure$1,
|
|
2175
2134
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2176
|
-
|
|
2135
|
+
React.createElement(
|
|
2177
2136
|
'a',
|
|
2178
2137
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2179
|
-
|
|
2138
|
+
React.createElement(
|
|
2180
2139
|
LazyLoad,
|
|
2181
2140
|
{ once: true },
|
|
2182
|
-
|
|
2141
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ sorce: poster, client: client }) }, alt && { alt: alt }))
|
|
2183
2142
|
),
|
|
2184
|
-
caption &&
|
|
2143
|
+
caption && React.createElement(
|
|
2185
2144
|
Figure$1.Caption,
|
|
2186
2145
|
{ className: 'media-caption' },
|
|
2187
2146
|
caption
|
|
@@ -2189,9 +2148,9 @@ var Media = function Media(_ref) {
|
|
|
2189
2148
|
)
|
|
2190
2149
|
);
|
|
2191
2150
|
} else if (caption && caption !== '') {
|
|
2192
|
-
return
|
|
2151
|
+
return React.createElement(
|
|
2193
2152
|
'a',
|
|
2194
|
-
_extends
|
|
2153
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2195
2154
|
href: uploadDoc.asset.url + '?dl='
|
|
2196
2155
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2197
2156
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2209,10 +2168,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2209
2168
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2210
2169
|
|
|
2211
2170
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2212
|
-
return
|
|
2171
|
+
return React.createElement(
|
|
2213
2172
|
'div',
|
|
2214
2173
|
{ className: 'd-block text-center mb-3' },
|
|
2215
|
-
|
|
2174
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2216
2175
|
);
|
|
2217
2176
|
};
|
|
2218
2177
|
|
|
@@ -2246,8 +2205,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2246
2205
|
var duration = player.duration;
|
|
2247
2206
|
var queue = Math.floor(duration / 10);
|
|
2248
2207
|
var segment = Math.floor(current / queue);
|
|
2249
|
-
Beam.report_beam_video('Ready',
|
|
2250
|
-
Segment.report_video_event('Video Ready',
|
|
2208
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2209
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2251
2210
|
};
|
|
2252
2211
|
|
|
2253
2212
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2256,8 +2215,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2256
2215
|
var queue = Math.floor(duration / 10);
|
|
2257
2216
|
var segment = Math.floor(current / queue);
|
|
2258
2217
|
if (!queueProgress.includes(segment)) {
|
|
2259
|
-
Beam.report_beam_video('Segment',
|
|
2260
|
-
Segment.report_video_event('Video Segment',
|
|
2218
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2219
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2261
2220
|
queueProgress.push(segment);
|
|
2262
2221
|
}
|
|
2263
2222
|
};
|
|
@@ -2269,8 +2228,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2269
2228
|
var duration = player.duration;
|
|
2270
2229
|
var queue = Math.floor(duration / 10);
|
|
2271
2230
|
var segment = Math.floor(current / queue);
|
|
2272
|
-
Beam.report_beam_video('Play',
|
|
2273
|
-
Segment.report_video_event('Video Play',
|
|
2231
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2232
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2274
2233
|
|
|
2275
2234
|
if (!playReported) {
|
|
2276
2235
|
event.persist();
|
|
@@ -2290,8 +2249,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2290
2249
|
var queue = Math.floor(duration / 10);
|
|
2291
2250
|
var segment = Math.floor(current / queue);
|
|
2292
2251
|
|
|
2293
|
-
Beam.report_beam_video('End',
|
|
2294
|
-
Segment.report_video_event('Video End',
|
|
2252
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2253
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2295
2254
|
setEndReported(true);
|
|
2296
2255
|
clearInterval(intervalID);
|
|
2297
2256
|
}
|
|
@@ -2303,14 +2262,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2303
2262
|
var duration = player.duration - current;
|
|
2304
2263
|
var queue = Math.floor(duration / 10);
|
|
2305
2264
|
var segment = Math.floor(current / queue);
|
|
2306
|
-
Beam.report_beam_video('Pause',
|
|
2307
|
-
Segment.report_video_event('Video Pause',
|
|
2265
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2266
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2308
2267
|
};
|
|
2309
2268
|
|
|
2310
|
-
return
|
|
2269
|
+
return React.createElement(
|
|
2311
2270
|
'div',
|
|
2312
2271
|
null,
|
|
2313
|
-
vidLoaded &&
|
|
2272
|
+
vidLoaded && React.createElement(
|
|
2314
2273
|
'video',
|
|
2315
2274
|
{
|
|
2316
2275
|
poster: thumbnail || '',
|
|
@@ -2328,7 +2287,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2328
2287
|
onPlay: function onPlay(e) {
|
|
2329
2288
|
return handleOnPlay(e);
|
|
2330
2289
|
} },
|
|
2331
|
-
|
|
2290
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2332
2291
|
'Your browser does not support the video tag.'
|
|
2333
2292
|
)
|
|
2334
2293
|
);
|
|
@@ -2365,7 +2324,7 @@ var Video = function Video(_ref) {
|
|
|
2365
2324
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2366
2325
|
//console.log('success:', success.ref)
|
|
2367
2326
|
var player = success.ref;
|
|
2368
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2327
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2369
2328
|
player.ima3.settings.debug = true;
|
|
2370
2329
|
if (targeting.content_placement && targeting.document_url) {
|
|
2371
2330
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2393,8 +2352,8 @@ var Video = function Video(_ref) {
|
|
|
2393
2352
|
player.pause();
|
|
2394
2353
|
}
|
|
2395
2354
|
|
|
2396
|
-
Beam.report_beam_video('Ready',
|
|
2397
|
-
Segment.report_video_event('Video Ready',
|
|
2355
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2356
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
2357
|
});
|
|
2399
2358
|
|
|
2400
2359
|
// play
|
|
@@ -2403,8 +2362,8 @@ var Video = function Video(_ref) {
|
|
|
2403
2362
|
var current = player.currentTime();
|
|
2404
2363
|
var queue = Math.floor(duration / 10);
|
|
2405
2364
|
var segment = Math.floor(current / queue);
|
|
2406
|
-
Beam.report_beam_video('Play',
|
|
2407
|
-
Segment.report_video_event('Video Play',
|
|
2365
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2366
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2408
2367
|
});
|
|
2409
2368
|
|
|
2410
2369
|
// pause
|
|
@@ -2413,8 +2372,8 @@ var Video = function Video(_ref) {
|
|
|
2413
2372
|
var current = player.currentTime();
|
|
2414
2373
|
var queue = Math.floor(duration / 10);
|
|
2415
2374
|
var segment = Math.floor(current / queue);
|
|
2416
|
-
Beam.report_beam_video('Pause',
|
|
2417
|
-
Segment.report_video_event('Video Pause',
|
|
2375
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2376
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2418
2377
|
});
|
|
2419
2378
|
|
|
2420
2379
|
// end
|
|
@@ -2423,8 +2382,8 @@ var Video = function Video(_ref) {
|
|
|
2423
2382
|
var current = player.currentTime();
|
|
2424
2383
|
var queue = Math.floor(duration / 10);
|
|
2425
2384
|
var segment = Math.floor(current / queue);
|
|
2426
|
-
Beam.report_beam_video('End',
|
|
2427
|
-
Segment.report_video_event('Video End',
|
|
2385
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2386
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2428
2387
|
autoplayNextVideo(evt);
|
|
2429
2388
|
});
|
|
2430
2389
|
|
|
@@ -2435,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2435
2394
|
var queue = Math.floor(duration / 10);
|
|
2436
2395
|
var segment = Math.floor(current / queue);
|
|
2437
2396
|
if (!queueProgress.includes(segment)) {
|
|
2438
|
-
Beam.report_beam_video('Segment',
|
|
2439
|
-
Segment.report_video_event('Video Segment',
|
|
2397
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2440
2399
|
queueProgress.push(segment);
|
|
2441
2400
|
}
|
|
2442
2401
|
});
|
|
@@ -2447,8 +2406,8 @@ var Video = function Video(_ref) {
|
|
|
2447
2406
|
var id = player.ads.ad.id;
|
|
2448
2407
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2449
2408
|
|
|
2450
|
-
Beam.report_beam_ad('AD Started',
|
|
2451
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2409
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2410
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2452
2411
|
});
|
|
2453
2412
|
|
|
2454
2413
|
// ad ended
|
|
@@ -2456,60 +2415,60 @@ var Video = function Video(_ref) {
|
|
|
2456
2415
|
var duration = player.ads.ad.duration;
|
|
2457
2416
|
var id = player.ads.ad.id;
|
|
2458
2417
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2459
|
-
Beam.report_beam_ad('AD Ended',
|
|
2460
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2418
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2419
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2461
2420
|
});
|
|
2462
2421
|
};
|
|
2463
2422
|
|
|
2464
2423
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2465
2424
|
if (videoID) {
|
|
2466
|
-
return
|
|
2425
|
+
return React.createElement(
|
|
2467
2426
|
'div',
|
|
2468
2427
|
null,
|
|
2469
|
-
|
|
2428
|
+
React.createElement(ReactPlayerLoader, {
|
|
2470
2429
|
onSuccess: onVideoSuccess,
|
|
2471
2430
|
accountId: accountIDs.brightcove.accountId,
|
|
2472
2431
|
videoId: videoID,
|
|
2473
2432
|
playerId: accountIDs.brightcove.playerId,
|
|
2474
2433
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2475
2434
|
}),
|
|
2476
|
-
|
|
2435
|
+
React.createElement(
|
|
2477
2436
|
'style',
|
|
2478
2437
|
{ jsx: 'true' },
|
|
2479
2438
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2480
2439
|
)
|
|
2481
2440
|
);
|
|
2482
2441
|
} else if (playlistID) {
|
|
2483
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2484
2443
|
'div',
|
|
2485
2444
|
null,
|
|
2486
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2487
2446
|
accountId: accountIDs.brightcove.accountId,
|
|
2488
2447
|
playlistId: playlistID,
|
|
2489
2448
|
playerId: accountIDs.brightcove.playerId,
|
|
2490
2449
|
onSuccess: onVideoSuccess,
|
|
2491
2450
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2492
2451
|
}),
|
|
2493
|
-
|
|
2452
|
+
React.createElement(
|
|
2494
2453
|
'style',
|
|
2495
2454
|
{ jsx: 'true' },
|
|
2496
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 '
|
|
2497
2456
|
)
|
|
2498
2457
|
);
|
|
2499
2458
|
} else if (experienceID) {
|
|
2500
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2501
2460
|
'div',
|
|
2502
2461
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2503
|
-
videoLoaded &&
|
|
2462
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2504
2463
|
);
|
|
2505
2464
|
}
|
|
2506
2465
|
return null;
|
|
2507
2466
|
}
|
|
2508
2467
|
if (source === 'mp4') {
|
|
2509
|
-
return
|
|
2468
|
+
return React.createElement(
|
|
2510
2469
|
'div',
|
|
2511
2470
|
null,
|
|
2512
|
-
|
|
2471
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2513
2472
|
);
|
|
2514
2473
|
}
|
|
2515
2474
|
|
|
@@ -2720,9 +2679,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2720
2679
|
});
|
|
2721
2680
|
|
|
2722
2681
|
unwrapExports(props);
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2682
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2683
|
+
props.defaultProps;
|
|
2684
|
+
props.propTypes;
|
|
2726
2685
|
|
|
2727
2686
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2728
2687
|
return isNonNullObject(value)
|
|
@@ -2887,11 +2846,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2887
2846
|
|
|
2888
2847
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2889
2848
|
|
|
2890
|
-
function
|
|
2849
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2850
|
+
|
|
2851
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2891
2852
|
|
|
2892
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2853
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2893
2854
|
|
|
2894
|
-
function
|
|
2855
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
2856
|
+
|
|
2857
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2858
|
+
|
|
2859
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2895
2860
|
|
|
2896
2861
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2897
2862
|
|
|
@@ -3021,12 +2986,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3021
2986
|
|
|
3022
2987
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3023
2988
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3024
|
-
|
|
3025
|
-
var
|
|
3026
|
-
|
|
2989
|
+
|
|
2990
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2991
|
+
_step;
|
|
3027
2992
|
|
|
3028
2993
|
try {
|
|
3029
|
-
for (
|
|
2994
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3030
2995
|
var p = _step.value;
|
|
3031
2996
|
|
|
3032
2997
|
if (props$1[p]) {
|
|
@@ -3041,18 +3006,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3041
3006
|
}
|
|
3042
3007
|
}
|
|
3043
3008
|
} catch (err) {
|
|
3044
|
-
|
|
3045
|
-
_iteratorError = err;
|
|
3009
|
+
_iterator.e(err);
|
|
3046
3010
|
} finally {
|
|
3047
|
-
|
|
3048
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3049
|
-
_iterator["return"]();
|
|
3050
|
-
}
|
|
3051
|
-
} finally {
|
|
3052
|
-
if (_didIteratorError) {
|
|
3053
|
-
throw _iteratorError;
|
|
3054
|
-
}
|
|
3055
|
-
}
|
|
3011
|
+
_iterator.f();
|
|
3056
3012
|
}
|
|
3057
3013
|
|
|
3058
3014
|
return config;
|
|
@@ -3117,7 +3073,7 @@ function isEqual(a, b) {
|
|
|
3117
3073
|
return true;
|
|
3118
3074
|
}
|
|
3119
3075
|
|
|
3120
|
-
if ((0,
|
|
3076
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3121
3077
|
return true;
|
|
3122
3078
|
}
|
|
3123
3079
|
|
|
@@ -3160,17 +3116,17 @@ function isMediaStream(url) {
|
|
|
3160
3116
|
});
|
|
3161
3117
|
|
|
3162
3118
|
unwrapExports(utils);
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3119
|
+
utils.parseStartTime;
|
|
3120
|
+
utils.parseEndTime;
|
|
3121
|
+
utils.randomString;
|
|
3122
|
+
utils.queryString;
|
|
3123
|
+
utils.getSDK;
|
|
3124
|
+
utils.getConfig;
|
|
3125
|
+
utils.omit;
|
|
3126
|
+
utils.callPlayer;
|
|
3127
|
+
utils.isObject;
|
|
3128
|
+
utils.isEqual;
|
|
3129
|
+
utils.isMediaStream;
|
|
3174
3130
|
|
|
3175
3131
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3176
3132
|
|
|
@@ -3179,7 +3135,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3179
3135
|
});
|
|
3180
3136
|
exports["default"] = void 0;
|
|
3181
3137
|
|
|
3182
|
-
var _react = _interopRequireWildcard(
|
|
3138
|
+
var _react = _interopRequireWildcard(React);
|
|
3183
3139
|
|
|
3184
3140
|
|
|
3185
3141
|
|
|
@@ -3199,12 +3155,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3199
3155
|
|
|
3200
3156
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3201
3157
|
|
|
3202
|
-
function
|
|
3158
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3203
3159
|
|
|
3204
|
-
function
|
|
3160
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3205
3161
|
|
|
3206
3162
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3207
3163
|
|
|
3164
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3165
|
+
|
|
3166
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3167
|
+
|
|
3208
3168
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3209
3169
|
|
|
3210
3170
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3213,14 +3173,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3213
3173
|
|
|
3214
3174
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3215
3175
|
|
|
3216
|
-
var Player =
|
|
3217
|
-
/*#__PURE__*/
|
|
3218
|
-
function (_Component) {
|
|
3176
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3219
3177
|
_inherits(Player, _Component);
|
|
3220
3178
|
|
|
3221
|
-
|
|
3222
|
-
var _getPrototypeOf2;
|
|
3179
|
+
var _super = _createSuper(Player);
|
|
3223
3180
|
|
|
3181
|
+
function Player() {
|
|
3224
3182
|
var _this;
|
|
3225
3183
|
|
|
3226
3184
|
_classCallCheck(this, Player);
|
|
@@ -3229,7 +3187,7 @@ function (_Component) {
|
|
|
3229
3187
|
_args[_key] = arguments[_key];
|
|
3230
3188
|
}
|
|
3231
3189
|
|
|
3232
|
-
_this =
|
|
3190
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3233
3191
|
|
|
3234
3192
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3235
3193
|
|
|
@@ -3554,7 +3512,7 @@ function (_Component) {
|
|
|
3554
3512
|
return null;
|
|
3555
3513
|
}
|
|
3556
3514
|
|
|
3557
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3515
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3558
3516
|
ref: this.ref,
|
|
3559
3517
|
onReady: this.handleReady,
|
|
3560
3518
|
onPlay: this.handlePlay,
|
|
@@ -3587,7 +3545,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3587
3545
|
});
|
|
3588
3546
|
exports["default"] = createSinglePlayer;
|
|
3589
3547
|
|
|
3590
|
-
var _react = _interopRequireWildcard(
|
|
3548
|
+
var _react = _interopRequireWildcard(React);
|
|
3591
3549
|
|
|
3592
3550
|
|
|
3593
3551
|
|
|
@@ -3615,12 +3573,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3615
3573
|
|
|
3616
3574
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3617
3575
|
|
|
3618
|
-
function
|
|
3576
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3619
3577
|
|
|
3620
|
-
function
|
|
3578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3621
3579
|
|
|
3622
3580
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3623
3581
|
|
|
3582
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3583
|
+
|
|
3584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3585
|
+
|
|
3624
3586
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3625
3587
|
|
|
3626
3588
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3632,14 +3594,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3632
3594
|
function createSinglePlayer(activePlayer) {
|
|
3633
3595
|
var _class, _temp;
|
|
3634
3596
|
|
|
3635
|
-
return _temp = _class =
|
|
3636
|
-
/*#__PURE__*/
|
|
3637
|
-
function (_Component) {
|
|
3597
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3638
3598
|
_inherits(SinglePlayer, _Component);
|
|
3639
3599
|
|
|
3640
|
-
|
|
3641
|
-
var _getPrototypeOf2;
|
|
3600
|
+
var _super = _createSuper(SinglePlayer);
|
|
3642
3601
|
|
|
3602
|
+
function SinglePlayer() {
|
|
3643
3603
|
var _this;
|
|
3644
3604
|
|
|
3645
3605
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3648,7 +3608,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3648
3608
|
args[_key] = arguments[_key];
|
|
3649
3609
|
}
|
|
3650
3610
|
|
|
3651
|
-
_this =
|
|
3611
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3652
3612
|
|
|
3653
3613
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3654
3614
|
|
|
@@ -3716,12 +3676,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3716
3676
|
height = _this$props.height,
|
|
3717
3677
|
Wrapper = _this$props.wrapper;
|
|
3718
3678
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3719
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3679
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3720
3680
|
style: _objectSpread({}, style, {
|
|
3721
3681
|
width: width,
|
|
3722
3682
|
height: height
|
|
3723
3683
|
})
|
|
3724
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3684
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3725
3685
|
ref: this.ref,
|
|
3726
3686
|
activePlayer: activePlayer,
|
|
3727
3687
|
config: this.config
|
|
@@ -3743,7 +3703,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3743
3703
|
});
|
|
3744
3704
|
exports["default"] = exports.YouTube = void 0;
|
|
3745
3705
|
|
|
3746
|
-
var _react = _interopRequireWildcard(
|
|
3706
|
+
var _react = _interopRequireWildcard(React);
|
|
3747
3707
|
|
|
3748
3708
|
|
|
3749
3709
|
|
|
@@ -3767,23 +3727,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3767
3727
|
|
|
3768
3728
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3769
3729
|
|
|
3770
|
-
function
|
|
3730
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3771
3731
|
|
|
3772
|
-
function
|
|
3732
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3773
3733
|
|
|
3774
3734
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3775
3735
|
|
|
3736
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3737
|
+
|
|
3738
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3739
|
+
|
|
3776
3740
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3777
3741
|
|
|
3778
3742
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3779
3743
|
|
|
3780
3744
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3781
3745
|
|
|
3782
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3746
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3783
3747
|
|
|
3784
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3748
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3785
3749
|
|
|
3786
|
-
function
|
|
3750
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3751
|
+
|
|
3752
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3753
|
+
|
|
3754
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3787
3755
|
|
|
3788
3756
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3789
3757
|
|
|
@@ -3808,14 +3776,12 @@ function parsePlaylist(url) {
|
|
|
3808
3776
|
return {};
|
|
3809
3777
|
}
|
|
3810
3778
|
|
|
3811
|
-
var YouTube =
|
|
3812
|
-
/*#__PURE__*/
|
|
3813
|
-
function (_Component) {
|
|
3779
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3814
3780
|
_inherits(YouTube, _Component);
|
|
3815
3781
|
|
|
3816
|
-
|
|
3817
|
-
var _getPrototypeOf2;
|
|
3782
|
+
var _super = _createSuper(YouTube);
|
|
3818
3783
|
|
|
3784
|
+
function YouTube() {
|
|
3819
3785
|
var _this;
|
|
3820
3786
|
|
|
3821
3787
|
_classCallCheck(this, YouTube);
|
|
@@ -3824,7 +3790,7 @@ function (_Component) {
|
|
|
3824
3790
|
args[_key] = arguments[_key];
|
|
3825
3791
|
}
|
|
3826
3792
|
|
|
3827
|
-
_this =
|
|
3793
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3828
3794
|
|
|
3829
3795
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3830
3796
|
|
|
@@ -4012,9 +3978,9 @@ function (_Component) {
|
|
|
4012
3978
|
height: '100%',
|
|
4013
3979
|
display: display
|
|
4014
3980
|
};
|
|
4015
|
-
return _react["default"].createElement("div", {
|
|
3981
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4016
3982
|
style: style
|
|
4017
|
-
}, _react["default"].createElement("div", {
|
|
3983
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4018
3984
|
ref: this.ref
|
|
4019
3985
|
}));
|
|
4020
3986
|
}
|
|
@@ -4037,7 +4003,7 @@ exports["default"] = _default;
|
|
|
4037
4003
|
});
|
|
4038
4004
|
|
|
4039
4005
|
unwrapExports(YouTube_1);
|
|
4040
|
-
|
|
4006
|
+
YouTube_1.YouTube;
|
|
4041
4007
|
|
|
4042
4008
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4043
4009
|
|
|
@@ -4046,7 +4012,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4046
4012
|
});
|
|
4047
4013
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4048
4014
|
|
|
4049
|
-
var _react = _interopRequireWildcard(
|
|
4015
|
+
var _react = _interopRequireWildcard(React);
|
|
4050
4016
|
|
|
4051
4017
|
|
|
4052
4018
|
|
|
@@ -4070,12 +4036,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4070
4036
|
|
|
4071
4037
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4072
4038
|
|
|
4073
|
-
function
|
|
4039
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4074
4040
|
|
|
4075
|
-
function
|
|
4041
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4076
4042
|
|
|
4077
4043
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4078
4044
|
|
|
4045
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4046
|
+
|
|
4047
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4048
|
+
|
|
4079
4049
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4080
4050
|
|
|
4081
4051
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4084,16 +4054,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4084
4054
|
|
|
4085
4055
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4086
4056
|
var SDK_GLOBAL = 'SC';
|
|
4087
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4057
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4088
4058
|
|
|
4089
|
-
var SoundCloud =
|
|
4090
|
-
/*#__PURE__*/
|
|
4091
|
-
function (_Component) {
|
|
4059
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4092
4060
|
_inherits(SoundCloud, _Component);
|
|
4093
4061
|
|
|
4094
|
-
|
|
4095
|
-
var _getPrototypeOf2;
|
|
4062
|
+
var _super = _createSuper(SoundCloud);
|
|
4096
4063
|
|
|
4064
|
+
function SoundCloud() {
|
|
4097
4065
|
var _this;
|
|
4098
4066
|
|
|
4099
4067
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4102,7 +4070,7 @@ function (_Component) {
|
|
|
4102
4070
|
args[_key] = arguments[_key];
|
|
4103
4071
|
}
|
|
4104
4072
|
|
|
4105
|
-
_this =
|
|
4073
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4106
4074
|
|
|
4107
4075
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4108
4076
|
|
|
@@ -4223,7 +4191,7 @@ function (_Component) {
|
|
|
4223
4191
|
height: '100%',
|
|
4224
4192
|
display: display
|
|
4225
4193
|
};
|
|
4226
|
-
return _react["default"].createElement("iframe", {
|
|
4194
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4227
4195
|
ref: this.ref,
|
|
4228
4196
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4229
4197
|
style: style,
|
|
@@ -4252,7 +4220,7 @@ exports["default"] = _default;
|
|
|
4252
4220
|
});
|
|
4253
4221
|
|
|
4254
4222
|
unwrapExports(SoundCloud_1);
|
|
4255
|
-
|
|
4223
|
+
SoundCloud_1.SoundCloud;
|
|
4256
4224
|
|
|
4257
4225
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4258
4226
|
|
|
@@ -4261,7 +4229,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4261
4229
|
});
|
|
4262
4230
|
exports["default"] = exports.Vimeo = void 0;
|
|
4263
4231
|
|
|
4264
|
-
var _react = _interopRequireWildcard(
|
|
4232
|
+
var _react = _interopRequireWildcard(React);
|
|
4265
4233
|
|
|
4266
4234
|
|
|
4267
4235
|
|
|
@@ -4285,12 +4253,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4285
4253
|
|
|
4286
4254
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4287
4255
|
|
|
4288
|
-
function
|
|
4256
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4289
4257
|
|
|
4290
|
-
function
|
|
4258
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4291
4259
|
|
|
4292
4260
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4293
4261
|
|
|
4262
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4263
|
+
|
|
4264
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4265
|
+
|
|
4294
4266
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4295
4267
|
|
|
4296
4268
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4302,14 +4274,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4302
4274
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4303
4275
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4304
4276
|
|
|
4305
|
-
var Vimeo =
|
|
4306
|
-
/*#__PURE__*/
|
|
4307
|
-
function (_Component) {
|
|
4277
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4308
4278
|
_inherits(Vimeo, _Component);
|
|
4309
4279
|
|
|
4310
|
-
|
|
4311
|
-
var _getPrototypeOf2;
|
|
4280
|
+
var _super = _createSuper(Vimeo);
|
|
4312
4281
|
|
|
4282
|
+
function Vimeo() {
|
|
4313
4283
|
var _this;
|
|
4314
4284
|
|
|
4315
4285
|
_classCallCheck(this, Vimeo);
|
|
@@ -4318,7 +4288,7 @@ function (_Component) {
|
|
|
4318
4288
|
args[_key] = arguments[_key];
|
|
4319
4289
|
}
|
|
4320
4290
|
|
|
4321
|
-
_this =
|
|
4291
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4322
4292
|
|
|
4323
4293
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4324
4294
|
|
|
@@ -4475,7 +4445,7 @@ function (_Component) {
|
|
|
4475
4445
|
overflow: 'hidden',
|
|
4476
4446
|
display: display
|
|
4477
4447
|
};
|
|
4478
|
-
return _react["default"].createElement("div", {
|
|
4448
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4479
4449
|
key: this.props.url,
|
|
4480
4450
|
ref: this.ref,
|
|
4481
4451
|
style: style
|
|
@@ -4506,7 +4476,7 @@ exports["default"] = _default;
|
|
|
4506
4476
|
});
|
|
4507
4477
|
|
|
4508
4478
|
unwrapExports(Vimeo_1);
|
|
4509
|
-
|
|
4479
|
+
Vimeo_1.Vimeo;
|
|
4510
4480
|
|
|
4511
4481
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4512
4482
|
|
|
@@ -4515,7 +4485,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4515
4485
|
});
|
|
4516
4486
|
exports["default"] = exports.Facebook = void 0;
|
|
4517
4487
|
|
|
4518
|
-
var _react = _interopRequireWildcard(
|
|
4488
|
+
var _react = _interopRequireWildcard(React);
|
|
4519
4489
|
|
|
4520
4490
|
|
|
4521
4491
|
|
|
@@ -4535,12 +4505,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4535
4505
|
|
|
4536
4506
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4537
4507
|
|
|
4538
|
-
function
|
|
4508
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4539
4509
|
|
|
4540
|
-
function
|
|
4510
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4541
4511
|
|
|
4542
4512
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4543
4513
|
|
|
4514
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4515
|
+
|
|
4516
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4517
|
+
|
|
4544
4518
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4545
4519
|
|
|
4546
4520
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4553,14 +4527,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4553
4527
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4554
4528
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4555
4529
|
|
|
4556
|
-
var Facebook =
|
|
4557
|
-
/*#__PURE__*/
|
|
4558
|
-
function (_Component) {
|
|
4530
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4559
4531
|
_inherits(Facebook, _Component);
|
|
4560
4532
|
|
|
4561
|
-
|
|
4562
|
-
var _getPrototypeOf2;
|
|
4533
|
+
var _super = _createSuper(Facebook);
|
|
4563
4534
|
|
|
4535
|
+
function Facebook() {
|
|
4564
4536
|
var _this;
|
|
4565
4537
|
|
|
4566
4538
|
_classCallCheck(this, Facebook);
|
|
@@ -4569,7 +4541,7 @@ function (_Component) {
|
|
|
4569
4541
|
args[_key] = arguments[_key];
|
|
4570
4542
|
}
|
|
4571
4543
|
|
|
4572
|
-
_this =
|
|
4544
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4573
4545
|
|
|
4574
4546
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4575
4547
|
|
|
@@ -4685,7 +4657,7 @@ function (_Component) {
|
|
|
4685
4657
|
width: '100%',
|
|
4686
4658
|
height: '100%'
|
|
4687
4659
|
};
|
|
4688
|
-
return _react["default"].createElement("div", {
|
|
4660
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4689
4661
|
style: style,
|
|
4690
4662
|
id: this.playerID,
|
|
4691
4663
|
className: "fb-video",
|
|
@@ -4716,7 +4688,7 @@ exports["default"] = _default;
|
|
|
4716
4688
|
});
|
|
4717
4689
|
|
|
4718
4690
|
unwrapExports(Facebook_1);
|
|
4719
|
-
|
|
4691
|
+
Facebook_1.Facebook;
|
|
4720
4692
|
|
|
4721
4693
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4722
4694
|
|
|
@@ -4725,7 +4697,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4725
4697
|
});
|
|
4726
4698
|
exports["default"] = exports.Streamable = void 0;
|
|
4727
4699
|
|
|
4728
|
-
var _react = _interopRequireWildcard(
|
|
4700
|
+
var _react = _interopRequireWildcard(React);
|
|
4729
4701
|
|
|
4730
4702
|
|
|
4731
4703
|
|
|
@@ -4745,12 +4717,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4745
4717
|
|
|
4746
4718
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4747
4719
|
|
|
4748
|
-
function
|
|
4720
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4749
4721
|
|
|
4750
|
-
function
|
|
4722
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4751
4723
|
|
|
4752
4724
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4753
4725
|
|
|
4726
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4727
|
+
|
|
4728
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4729
|
+
|
|
4754
4730
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4755
4731
|
|
|
4756
4732
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4761,14 +4737,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4761
4737
|
var SDK_GLOBAL = 'playerjs';
|
|
4762
4738
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4763
4739
|
|
|
4764
|
-
var Streamable =
|
|
4765
|
-
/*#__PURE__*/
|
|
4766
|
-
function (_Component) {
|
|
4740
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4767
4741
|
_inherits(Streamable, _Component);
|
|
4768
4742
|
|
|
4769
|
-
|
|
4770
|
-
var _getPrototypeOf2;
|
|
4743
|
+
var _super = _createSuper(Streamable);
|
|
4771
4744
|
|
|
4745
|
+
function Streamable() {
|
|
4772
4746
|
var _this;
|
|
4773
4747
|
|
|
4774
4748
|
_classCallCheck(this, Streamable);
|
|
@@ -4777,7 +4751,7 @@ function (_Component) {
|
|
|
4777
4751
|
args[_key] = arguments[_key];
|
|
4778
4752
|
}
|
|
4779
4753
|
|
|
4780
|
-
_this =
|
|
4754
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4781
4755
|
|
|
4782
4756
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4783
4757
|
|
|
@@ -4897,7 +4871,7 @@ function (_Component) {
|
|
|
4897
4871
|
width: '100%',
|
|
4898
4872
|
height: '100%'
|
|
4899
4873
|
};
|
|
4900
|
-
return _react["default"].createElement("iframe", {
|
|
4874
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4901
4875
|
ref: this.ref,
|
|
4902
4876
|
src: "https://streamable.com/o/".concat(id),
|
|
4903
4877
|
frameBorder: "0",
|
|
@@ -4925,7 +4899,7 @@ exports["default"] = _default;
|
|
|
4925
4899
|
});
|
|
4926
4900
|
|
|
4927
4901
|
unwrapExports(Streamable_1);
|
|
4928
|
-
|
|
4902
|
+
Streamable_1.Streamable;
|
|
4929
4903
|
|
|
4930
4904
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4931
4905
|
|
|
@@ -4934,7 +4908,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4934
4908
|
});
|
|
4935
4909
|
exports["default"] = exports.Wistia = void 0;
|
|
4936
4910
|
|
|
4937
|
-
var _react = _interopRequireWildcard(
|
|
4911
|
+
var _react = _interopRequireWildcard(React);
|
|
4938
4912
|
|
|
4939
4913
|
|
|
4940
4914
|
|
|
@@ -4958,12 +4932,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4958
4932
|
|
|
4959
4933
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4960
4934
|
|
|
4961
|
-
function
|
|
4935
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4962
4936
|
|
|
4963
|
-
function
|
|
4937
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4964
4938
|
|
|
4965
4939
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4966
4940
|
|
|
4941
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4942
|
+
|
|
4943
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4944
|
+
|
|
4967
4945
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4968
4946
|
|
|
4969
4947
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4974,26 +4952,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4974
4952
|
var SDK_GLOBAL = 'Wistia';
|
|
4975
4953
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4976
4954
|
|
|
4977
|
-
var Wistia =
|
|
4978
|
-
/*#__PURE__*/
|
|
4979
|
-
function (_Component) {
|
|
4955
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4980
4956
|
_inherits(Wistia, _Component);
|
|
4981
4957
|
|
|
4982
|
-
|
|
4983
|
-
var _getPrototypeOf2;
|
|
4958
|
+
var _super = _createSuper(Wistia);
|
|
4984
4959
|
|
|
4960
|
+
function Wistia() {
|
|
4985
4961
|
var _this;
|
|
4986
4962
|
|
|
4987
4963
|
_classCallCheck(this, Wistia);
|
|
4988
4964
|
|
|
4989
|
-
for (var _len = arguments.length,
|
|
4990
|
-
|
|
4965
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4966
|
+
_args[_key] = arguments[_key];
|
|
4991
4967
|
}
|
|
4992
4968
|
|
|
4993
|
-
_this =
|
|
4969
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4994
4970
|
|
|
4995
4971
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4996
4972
|
|
|
4973
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4974
|
+
var _this$props;
|
|
4975
|
+
|
|
4976
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4977
|
+
});
|
|
4978
|
+
|
|
4979
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4980
|
+
var _this$props2;
|
|
4981
|
+
|
|
4982
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4983
|
+
});
|
|
4984
|
+
|
|
4985
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4986
|
+
var _this$props3;
|
|
4987
|
+
|
|
4988
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4992
|
+
var _this$props4;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
4997
4997
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4998
4998
|
_this.callPlayer('mute');
|
|
4999
4999
|
});
|
|
@@ -5015,17 +5015,13 @@ function (_Component) {
|
|
|
5015
5015
|
value: function load(url) {
|
|
5016
5016
|
var _this2 = this;
|
|
5017
5017
|
|
|
5018
|
-
var _this$
|
|
5019
|
-
playing = _this$
|
|
5020
|
-
muted = _this$
|
|
5021
|
-
controls = _this$
|
|
5022
|
-
_onReady = _this$
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
onSeek = _this$props.onSeek,
|
|
5026
|
-
onEnded = _this$props.onEnded,
|
|
5027
|
-
config = _this$props.config,
|
|
5028
|
-
onError = _this$props.onError;
|
|
5018
|
+
var _this$props5 = this.props,
|
|
5019
|
+
playing = _this$props5.playing,
|
|
5020
|
+
muted = _this$props5.muted,
|
|
5021
|
+
controls = _this$props5.controls,
|
|
5022
|
+
_onReady = _this$props5.onReady,
|
|
5023
|
+
config = _this$props5.config,
|
|
5024
|
+
onError = _this$props5.onError;
|
|
5029
5025
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5030
5026
|
window._wq = window._wq || [];
|
|
5031
5027
|
|
|
@@ -5042,19 +5038,28 @@ function (_Component) {
|
|
|
5042
5038
|
|
|
5043
5039
|
_this2.unbind();
|
|
5044
5040
|
|
|
5045
|
-
_this2.player.bind('play', onPlay);
|
|
5041
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5046
5042
|
|
|
5047
|
-
_this2.player.bind('pause', onPause);
|
|
5043
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5048
5044
|
|
|
5049
|
-
_this2.player.bind('seek', onSeek);
|
|
5045
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5050
5046
|
|
|
5051
|
-
_this2.player.bind('end', onEnded);
|
|
5047
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5052
5048
|
|
|
5053
5049
|
_onReady();
|
|
5054
5050
|
}
|
|
5055
5051
|
});
|
|
5056
5052
|
}, onError);
|
|
5057
5053
|
}
|
|
5054
|
+
}, {
|
|
5055
|
+
key: "unbind",
|
|
5056
|
+
value: function unbind() {
|
|
5057
|
+
this.player.unbind('play', this.onPlay);
|
|
5058
|
+
this.player.unbind('pause', this.onPause);
|
|
5059
|
+
this.player.unbind('seek', this.onSeek);
|
|
5060
|
+
this.player.unbind('end', this.onEnded);
|
|
5061
|
+
} // Proxy methods to prevent listener leaks
|
|
5062
|
+
|
|
5058
5063
|
}, {
|
|
5059
5064
|
key: "play",
|
|
5060
5065
|
value: function play() {
|
|
@@ -5065,19 +5070,6 @@ function (_Component) {
|
|
|
5065
5070
|
value: function pause() {
|
|
5066
5071
|
this.callPlayer('pause');
|
|
5067
5072
|
}
|
|
5068
|
-
}, {
|
|
5069
|
-
key: "unbind",
|
|
5070
|
-
value: function unbind() {
|
|
5071
|
-
var _this$props2 = this.props,
|
|
5072
|
-
onPlay = _this$props2.onPlay,
|
|
5073
|
-
onPause = _this$props2.onPause,
|
|
5074
|
-
onSeek = _this$props2.onSeek,
|
|
5075
|
-
onEnded = _this$props2.onEnded;
|
|
5076
|
-
this.player.unbind('play', onPlay);
|
|
5077
|
-
this.player.unbind('pause', onPause);
|
|
5078
|
-
this.player.unbind('seek', onSeek);
|
|
5079
|
-
this.player.unbind('end', onEnded);
|
|
5080
|
-
}
|
|
5081
5073
|
}, {
|
|
5082
5074
|
key: "stop",
|
|
5083
5075
|
value: function stop() {
|
|
@@ -5123,7 +5115,7 @@ function (_Component) {
|
|
|
5123
5115
|
width: '100%',
|
|
5124
5116
|
height: '100%'
|
|
5125
5117
|
};
|
|
5126
|
-
return _react["default"].createElement("div", {
|
|
5118
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5127
5119
|
key: id,
|
|
5128
5120
|
className: className,
|
|
5129
5121
|
style: style
|
|
@@ -5150,7 +5142,7 @@ exports["default"] = _default;
|
|
|
5150
5142
|
});
|
|
5151
5143
|
|
|
5152
5144
|
unwrapExports(Wistia_1);
|
|
5153
|
-
|
|
5145
|
+
Wistia_1.Wistia;
|
|
5154
5146
|
|
|
5155
5147
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5156
5148
|
|
|
@@ -5159,7 +5151,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5159
5151
|
});
|
|
5160
5152
|
exports["default"] = exports.Twitch = void 0;
|
|
5161
5153
|
|
|
5162
|
-
var _react = _interopRequireWildcard(
|
|
5154
|
+
var _react = _interopRequireWildcard(React);
|
|
5163
5155
|
|
|
5164
5156
|
|
|
5165
5157
|
|
|
@@ -5183,12 +5175,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5183
5175
|
|
|
5184
5176
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5185
5177
|
|
|
5186
|
-
function
|
|
5178
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5187
5179
|
|
|
5188
|
-
function
|
|
5180
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5189
5181
|
|
|
5190
5182
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5191
5183
|
|
|
5184
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5185
|
+
|
|
5186
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5187
|
+
|
|
5192
5188
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5193
5189
|
|
|
5194
5190
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5201,14 +5197,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5201
5197
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5202
5198
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5203
5199
|
|
|
5204
|
-
var Twitch =
|
|
5205
|
-
/*#__PURE__*/
|
|
5206
|
-
function (_Component) {
|
|
5200
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5207
5201
|
_inherits(Twitch, _Component);
|
|
5208
5202
|
|
|
5209
|
-
|
|
5210
|
-
var _getPrototypeOf2;
|
|
5203
|
+
var _super = _createSuper(Twitch);
|
|
5211
5204
|
|
|
5205
|
+
function Twitch() {
|
|
5212
5206
|
var _this;
|
|
5213
5207
|
|
|
5214
5208
|
_classCallCheck(this, Twitch);
|
|
@@ -5217,7 +5211,7 @@ function (_Component) {
|
|
|
5217
5211
|
args[_key] = arguments[_key];
|
|
5218
5212
|
}
|
|
5219
5213
|
|
|
5220
|
-
_this =
|
|
5214
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5221
5215
|
|
|
5222
5216
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5223
5217
|
|
|
@@ -5338,7 +5332,7 @@ function (_Component) {
|
|
|
5338
5332
|
width: '100%',
|
|
5339
5333
|
height: '100%'
|
|
5340
5334
|
};
|
|
5341
|
-
return _react["default"].createElement("div", {
|
|
5335
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5342
5336
|
style: style,
|
|
5343
5337
|
id: this.playerID
|
|
5344
5338
|
});
|
|
@@ -5364,7 +5358,7 @@ exports["default"] = _default;
|
|
|
5364
5358
|
});
|
|
5365
5359
|
|
|
5366
5360
|
unwrapExports(Twitch_1);
|
|
5367
|
-
|
|
5361
|
+
Twitch_1.Twitch;
|
|
5368
5362
|
|
|
5369
5363
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5370
5364
|
|
|
@@ -5373,7 +5367,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5373
5367
|
});
|
|
5374
5368
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5375
5369
|
|
|
5376
|
-
var _react = _interopRequireWildcard(
|
|
5370
|
+
var _react = _interopRequireWildcard(React);
|
|
5377
5371
|
|
|
5378
5372
|
|
|
5379
5373
|
|
|
@@ -5391,11 +5385,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5391
5385
|
|
|
5392
5386
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5393
5387
|
|
|
5394
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5388
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5389
|
+
|
|
5390
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5391
|
+
|
|
5392
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5395
5393
|
|
|
5396
|
-
function
|
|
5394
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5397
5395
|
|
|
5398
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5396
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5399
5397
|
|
|
5400
5398
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5401
5399
|
|
|
@@ -5405,12 +5403,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5405
5403
|
|
|
5406
5404
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5407
5405
|
|
|
5408
|
-
function
|
|
5406
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5409
5407
|
|
|
5410
|
-
function
|
|
5408
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5411
5409
|
|
|
5412
5410
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5413
5411
|
|
|
5412
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5413
|
+
|
|
5414
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5415
|
+
|
|
5414
5416
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5415
5417
|
|
|
5416
5418
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5422,14 +5424,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5422
5424
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5423
5425
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5424
5426
|
|
|
5425
|
-
var DailyMotion =
|
|
5426
|
-
/*#__PURE__*/
|
|
5427
|
-
function (_Component) {
|
|
5427
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5428
5428
|
_inherits(DailyMotion, _Component);
|
|
5429
5429
|
|
|
5430
|
-
|
|
5431
|
-
var _getPrototypeOf2;
|
|
5430
|
+
var _super = _createSuper(DailyMotion);
|
|
5432
5431
|
|
|
5432
|
+
function DailyMotion() {
|
|
5433
5433
|
var _this;
|
|
5434
5434
|
|
|
5435
5435
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5438,7 +5438,7 @@ function (_Component) {
|
|
|
5438
5438
|
args[_key] = arguments[_key];
|
|
5439
5439
|
}
|
|
5440
5440
|
|
|
5441
|
-
_this =
|
|
5441
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5442
5442
|
|
|
5443
5443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5444
5444
|
|
|
@@ -5567,9 +5567,9 @@ function (_Component) {
|
|
|
5567
5567
|
height: '100%',
|
|
5568
5568
|
display: display
|
|
5569
5569
|
};
|
|
5570
|
-
return _react["default"].createElement("div", {
|
|
5570
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5571
5571
|
style: style
|
|
5572
|
-
}, _react["default"].createElement("div", {
|
|
5572
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5573
5573
|
ref: this.ref
|
|
5574
5574
|
}));
|
|
5575
5575
|
}
|
|
@@ -5594,7 +5594,7 @@ exports["default"] = _default;
|
|
|
5594
5594
|
});
|
|
5595
5595
|
|
|
5596
5596
|
unwrapExports(DailyMotion_1);
|
|
5597
|
-
|
|
5597
|
+
DailyMotion_1.DailyMotion;
|
|
5598
5598
|
|
|
5599
5599
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5600
5600
|
|
|
@@ -5603,7 +5603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5603
5603
|
});
|
|
5604
5604
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5605
5605
|
|
|
5606
|
-
var _react = _interopRequireWildcard(
|
|
5606
|
+
var _react = _interopRequireWildcard(React);
|
|
5607
5607
|
|
|
5608
5608
|
|
|
5609
5609
|
|
|
@@ -5627,12 +5627,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5627
5627
|
|
|
5628
5628
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5629
5629
|
|
|
5630
|
-
function
|
|
5630
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5631
5631
|
|
|
5632
|
-
function
|
|
5632
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5633
5633
|
|
|
5634
5634
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5635
5635
|
|
|
5636
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5637
|
+
|
|
5638
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5639
|
+
|
|
5636
5640
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5637
5641
|
|
|
5638
5642
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5643,14 +5647,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5643
5647
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5644
5648
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5645
5649
|
|
|
5646
|
-
var Mixcloud =
|
|
5647
|
-
/*#__PURE__*/
|
|
5648
|
-
function (_Component) {
|
|
5650
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5649
5651
|
_inherits(Mixcloud, _Component);
|
|
5650
5652
|
|
|
5651
|
-
|
|
5652
|
-
var _getPrototypeOf2;
|
|
5653
|
+
var _super = _createSuper(Mixcloud);
|
|
5653
5654
|
|
|
5655
|
+
function Mixcloud() {
|
|
5654
5656
|
var _this;
|
|
5655
5657
|
|
|
5656
5658
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5659,7 +5661,7 @@ function (_Component) {
|
|
|
5659
5661
|
args[_key] = arguments[_key];
|
|
5660
5662
|
}
|
|
5661
5663
|
|
|
5662
|
-
_this =
|
|
5664
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5663
5665
|
|
|
5664
5666
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5665
5667
|
|
|
@@ -5762,7 +5764,7 @@ function (_Component) {
|
|
|
5762
5764
|
})); // We have to give the iframe a key here to prevent a
|
|
5763
5765
|
// weird dialog appearing when loading a new track
|
|
5764
5766
|
|
|
5765
|
-
return _react["default"].createElement("iframe", {
|
|
5767
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5766
5768
|
key: id,
|
|
5767
5769
|
ref: this.ref,
|
|
5768
5770
|
style: style,
|
|
@@ -5791,7 +5793,7 @@ exports["default"] = _default;
|
|
|
5791
5793
|
});
|
|
5792
5794
|
|
|
5793
5795
|
unwrapExports(Mixcloud_1);
|
|
5794
|
-
|
|
5796
|
+
Mixcloud_1.Mixcloud;
|
|
5795
5797
|
|
|
5796
5798
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5797
5799
|
|
|
@@ -5800,7 +5802,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5800
5802
|
});
|
|
5801
5803
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5802
5804
|
|
|
5803
|
-
var _react = _interopRequireWildcard(
|
|
5805
|
+
var _react = _interopRequireWildcard(React);
|
|
5804
5806
|
|
|
5805
5807
|
|
|
5806
5808
|
|
|
@@ -5822,23 +5824,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5822
5824
|
|
|
5823
5825
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5824
5826
|
|
|
5825
|
-
function
|
|
5827
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5826
5828
|
|
|
5827
|
-
function
|
|
5829
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5828
5830
|
|
|
5829
5831
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5830
5832
|
|
|
5833
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5834
|
+
|
|
5835
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5836
|
+
|
|
5831
5837
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5832
5838
|
|
|
5833
5839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5834
5840
|
|
|
5835
5841
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5836
5842
|
|
|
5843
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5844
|
+
|
|
5845
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5846
|
+
|
|
5847
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5848
|
+
|
|
5837
5849
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5838
5850
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5839
5851
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5840
5852
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5841
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5853
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5842
5854
|
var HLS_GLOBAL = 'Hls';
|
|
5843
5855
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5844
5856
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5847,12 +5859,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5847
5859
|
|
|
5848
5860
|
function canPlay(url) {
|
|
5849
5861
|
if (url instanceof Array) {
|
|
5850
|
-
var
|
|
5851
|
-
|
|
5852
|
-
var _iteratorError = undefined;
|
|
5862
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5863
|
+
_step;
|
|
5853
5864
|
|
|
5854
5865
|
try {
|
|
5855
|
-
for (
|
|
5866
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5856
5867
|
var item = _step.value;
|
|
5857
5868
|
|
|
5858
5869
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5864,18 +5875,9 @@ function canPlay(url) {
|
|
|
5864
5875
|
}
|
|
5865
5876
|
}
|
|
5866
5877
|
} catch (err) {
|
|
5867
|
-
|
|
5868
|
-
_iteratorError = err;
|
|
5878
|
+
_iterator.e(err);
|
|
5869
5879
|
} finally {
|
|
5870
|
-
|
|
5871
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5872
|
-
_iterator["return"]();
|
|
5873
|
-
}
|
|
5874
|
-
} finally {
|
|
5875
|
-
if (_didIteratorError) {
|
|
5876
|
-
throw _iteratorError;
|
|
5877
|
-
}
|
|
5878
|
-
}
|
|
5880
|
+
_iterator.f();
|
|
5879
5881
|
}
|
|
5880
5882
|
|
|
5881
5883
|
return false;
|
|
@@ -5899,14 +5901,12 @@ function canEnablePIP(url) {
|
|
|
5899
5901
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5900
5902
|
}
|
|
5901
5903
|
|
|
5902
|
-
var FilePlayer =
|
|
5903
|
-
/*#__PURE__*/
|
|
5904
|
-
function (_Component) {
|
|
5904
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5905
5905
|
_inherits(FilePlayer, _Component);
|
|
5906
5906
|
|
|
5907
|
-
|
|
5908
|
-
var _getPrototypeOf2;
|
|
5907
|
+
var _super = _createSuper(FilePlayer);
|
|
5909
5908
|
|
|
5909
|
+
function FilePlayer() {
|
|
5910
5910
|
var _this;
|
|
5911
5911
|
|
|
5912
5912
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5915,7 +5915,7 @@ function (_Component) {
|
|
|
5915
5915
|
_args[_key] = arguments[_key];
|
|
5916
5916
|
}
|
|
5917
5917
|
|
|
5918
|
-
_this =
|
|
5918
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5919
5919
|
|
|
5920
5920
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5921
5921
|
var _this$props;
|
|
@@ -6002,19 +6002,19 @@ function (_Component) {
|
|
|
6002
6002
|
|
|
6003
6003
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6004
6004
|
if (typeof source === 'string') {
|
|
6005
|
-
return _react["default"].createElement("source", {
|
|
6005
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6006
6006
|
key: index,
|
|
6007
6007
|
src: source
|
|
6008
6008
|
});
|
|
6009
6009
|
}
|
|
6010
6010
|
|
|
6011
|
-
return _react["default"].createElement("source", _extends({
|
|
6011
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6012
6012
|
key: index
|
|
6013
6013
|
}, source));
|
|
6014
6014
|
});
|
|
6015
6015
|
|
|
6016
6016
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6017
|
-
return _react["default"].createElement("track", _extends({
|
|
6017
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6018
6018
|
key: index
|
|
6019
6019
|
}, track));
|
|
6020
6020
|
});
|
|
@@ -6052,6 +6052,10 @@ function (_Component) {
|
|
|
6052
6052
|
key: "componentWillUnmount",
|
|
6053
6053
|
value: function componentWillUnmount() {
|
|
6054
6054
|
this.removeListeners(this.player);
|
|
6055
|
+
|
|
6056
|
+
if (this.hls) {
|
|
6057
|
+
this.hls.destroy();
|
|
6058
|
+
}
|
|
6055
6059
|
}
|
|
6056
6060
|
}, {
|
|
6057
6061
|
key: "addListeners",
|
|
@@ -6182,10 +6186,6 @@ function (_Component) {
|
|
|
6182
6186
|
value: function stop() {
|
|
6183
6187
|
this.player.removeAttribute('src');
|
|
6184
6188
|
|
|
6185
|
-
if (this.hls) {
|
|
6186
|
-
this.hls.destroy();
|
|
6187
|
-
}
|
|
6188
|
-
|
|
6189
6189
|
if (this.dash) {
|
|
6190
6190
|
this.dash.reset();
|
|
6191
6191
|
}
|
|
@@ -6297,7 +6297,7 @@ function (_Component) {
|
|
|
6297
6297
|
width: width === 'auto' ? width : '100%',
|
|
6298
6298
|
height: height === 'auto' ? height : '100%'
|
|
6299
6299
|
};
|
|
6300
|
-
return _react["default"].createElement(Element, _extends({
|
|
6300
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6301
6301
|
ref: this.ref,
|
|
6302
6302
|
src: this.getSource(url),
|
|
6303
6303
|
style: style,
|
|
@@ -6327,7 +6327,7 @@ exports["default"] = _default;
|
|
|
6327
6327
|
});
|
|
6328
6328
|
|
|
6329
6329
|
unwrapExports(FilePlayer_1);
|
|
6330
|
-
|
|
6330
|
+
FilePlayer_1.FilePlayer;
|
|
6331
6331
|
|
|
6332
6332
|
var players = createCommonjsModule(function (module, exports) {
|
|
6333
6333
|
|
|
@@ -6369,7 +6369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6369
6369
|
});
|
|
6370
6370
|
exports["default"] = void 0;
|
|
6371
6371
|
|
|
6372
|
-
var _react = _interopRequireWildcard(
|
|
6372
|
+
var _react = _interopRequireWildcard(React);
|
|
6373
6373
|
|
|
6374
6374
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6375
6375
|
|
|
@@ -6387,12 +6387,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6387
6387
|
|
|
6388
6388
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6389
6389
|
|
|
6390
|
-
function
|
|
6390
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6391
6391
|
|
|
6392
|
-
function
|
|
6392
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6393
6393
|
|
|
6394
6394
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6395
6395
|
|
|
6396
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6397
|
+
|
|
6398
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6399
|
+
|
|
6396
6400
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6397
6401
|
|
|
6398
6402
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6401,14 +6405,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6401
6405
|
|
|
6402
6406
|
var ICON_SIZE = '64px';
|
|
6403
6407
|
|
|
6404
|
-
var Preview =
|
|
6405
|
-
/*#__PURE__*/
|
|
6406
|
-
function (_Component) {
|
|
6408
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6407
6409
|
_inherits(Preview, _Component);
|
|
6408
6410
|
|
|
6409
|
-
|
|
6410
|
-
var _getPrototypeOf2;
|
|
6411
|
+
var _super = _createSuper(Preview);
|
|
6411
6412
|
|
|
6413
|
+
function Preview() {
|
|
6412
6414
|
var _this;
|
|
6413
6415
|
|
|
6414
6416
|
_classCallCheck(this, Preview);
|
|
@@ -6417,7 +6419,7 @@ function (_Component) {
|
|
|
6417
6419
|
args[_key] = arguments[_key];
|
|
6418
6420
|
}
|
|
6419
6421
|
|
|
6420
|
-
_this =
|
|
6422
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6421
6423
|
|
|
6422
6424
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6423
6425
|
|
|
@@ -6515,15 +6517,15 @@ function (_Component) {
|
|
|
6515
6517
|
}
|
|
6516
6518
|
};
|
|
6517
6519
|
|
|
6518
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6520
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6519
6521
|
style: styles.shadow,
|
|
6520
6522
|
className: "react-player__shadow"
|
|
6521
|
-
}, _react["default"].createElement("div", {
|
|
6523
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6522
6524
|
style: styles.playIcon,
|
|
6523
6525
|
className: "react-player__play-icon"
|
|
6524
6526
|
}));
|
|
6525
6527
|
|
|
6526
|
-
return _react["default"].createElement("div", {
|
|
6528
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6527
6529
|
style: styles.preview,
|
|
6528
6530
|
className: "react-player__preview",
|
|
6529
6531
|
onClick: onClick
|
|
@@ -6546,7 +6548,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6546
6548
|
});
|
|
6547
6549
|
exports["default"] = renderPreloadPlayers;
|
|
6548
6550
|
|
|
6549
|
-
var _react = _interopRequireDefault(
|
|
6551
|
+
var _react = _interopRequireDefault(React);
|
|
6550
6552
|
|
|
6551
6553
|
var _Player = _interopRequireDefault(Player_1);
|
|
6552
6554
|
|
|
@@ -6560,6 +6562,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6560
6562
|
|
|
6561
6563
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6562
6564
|
|
|
6565
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6566
|
+
|
|
6567
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6568
|
+
|
|
6569
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6570
|
+
|
|
6563
6571
|
var PRELOAD_PLAYERS = [{
|
|
6564
6572
|
Player: YouTube_1.YouTube,
|
|
6565
6573
|
configKey: 'youtube',
|
|
@@ -6580,16 +6588,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6580
6588
|
|
|
6581
6589
|
function renderPreloadPlayers(url, controls, config) {
|
|
6582
6590
|
var players = [];
|
|
6583
|
-
|
|
6584
|
-
var
|
|
6585
|
-
|
|
6591
|
+
|
|
6592
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6593
|
+
_step;
|
|
6586
6594
|
|
|
6587
6595
|
try {
|
|
6588
|
-
for (
|
|
6596
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6589
6597
|
var player = _step.value;
|
|
6590
6598
|
|
|
6591
6599
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6592
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6600
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6593
6601
|
key: player.Player.displayName,
|
|
6594
6602
|
activePlayer: player.Player,
|
|
6595
6603
|
url: player.url,
|
|
@@ -6601,18 +6609,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6601
6609
|
}
|
|
6602
6610
|
}
|
|
6603
6611
|
} catch (err) {
|
|
6604
|
-
|
|
6605
|
-
_iteratorError = err;
|
|
6612
|
+
_iterator.e(err);
|
|
6606
6613
|
} finally {
|
|
6607
|
-
|
|
6608
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6609
|
-
_iterator["return"]();
|
|
6610
|
-
}
|
|
6611
|
-
} finally {
|
|
6612
|
-
if (_didIteratorError) {
|
|
6613
|
-
throw _iteratorError;
|
|
6614
|
-
}
|
|
6615
|
-
}
|
|
6614
|
+
_iterator.f();
|
|
6616
6615
|
}
|
|
6617
6616
|
|
|
6618
6617
|
return players;
|
|
@@ -6688,7 +6687,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6688
6687
|
});
|
|
6689
6688
|
exports["default"] = void 0;
|
|
6690
6689
|
|
|
6691
|
-
var _react = _interopRequireWildcard(
|
|
6690
|
+
var _react = _interopRequireWildcard(React);
|
|
6692
6691
|
|
|
6693
6692
|
|
|
6694
6693
|
|
|
@@ -6736,13 +6735,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6736
6735
|
|
|
6737
6736
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6738
6737
|
|
|
6739
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6738
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6740
6739
|
|
|
6741
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6740
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6742
6741
|
|
|
6743
|
-
function
|
|
6742
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6744
6743
|
|
|
6745
|
-
function
|
|
6744
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6745
|
+
|
|
6746
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6747
|
+
|
|
6748
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6746
6749
|
|
|
6747
6750
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6748
6751
|
|
|
@@ -6750,12 +6753,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6750
6753
|
|
|
6751
6754
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6752
6755
|
|
|
6753
|
-
function
|
|
6756
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6754
6757
|
|
|
6755
|
-
function
|
|
6758
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6756
6759
|
|
|
6757
6760
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6758
6761
|
|
|
6762
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6763
|
+
|
|
6764
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6765
|
+
|
|
6759
6766
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6760
6767
|
|
|
6761
6768
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6765,14 +6772,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6765
6772
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6766
6773
|
var customPlayers = [];
|
|
6767
6774
|
|
|
6768
|
-
var ReactPlayer =
|
|
6769
|
-
/*#__PURE__*/
|
|
6770
|
-
function (_Component) {
|
|
6775
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6771
6776
|
_inherits(ReactPlayer, _Component);
|
|
6772
6777
|
|
|
6773
|
-
|
|
6774
|
-
var _getPrototypeOf2;
|
|
6778
|
+
var _super = _createSuper(ReactPlayer);
|
|
6775
6779
|
|
|
6780
|
+
function ReactPlayer() {
|
|
6776
6781
|
var _this;
|
|
6777
6782
|
|
|
6778
6783
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6781,7 +6786,7 @@ function (_Component) {
|
|
|
6781
6786
|
args[_key] = arguments[_key];
|
|
6782
6787
|
}
|
|
6783
6788
|
|
|
6784
|
-
_this =
|
|
6789
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6785
6790
|
|
|
6786
6791
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6787
6792
|
|
|
@@ -6892,7 +6897,7 @@ function (_Component) {
|
|
|
6892
6897
|
key: "renderActivePlayer",
|
|
6893
6898
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6894
6899
|
if (!url) return null;
|
|
6895
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6900
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6896
6901
|
key: activePlayer.displayName,
|
|
6897
6902
|
ref: this.activePlayerRef,
|
|
6898
6903
|
config: this.config,
|
|
@@ -6929,14 +6934,14 @@ function (_Component) {
|
|
|
6929
6934
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6930
6935
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6931
6936
|
|
|
6932
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6937
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6933
6938
|
url: url,
|
|
6934
6939
|
light: light,
|
|
6935
6940
|
playIcon: playIcon,
|
|
6936
6941
|
onClick: this.handleClickPreview
|
|
6937
6942
|
});
|
|
6938
6943
|
|
|
6939
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6944
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6940
6945
|
ref: this.wrapperRef,
|
|
6941
6946
|
style: _objectSpread({}, style, {
|
|
6942
6947
|
width: width,
|
|
@@ -6996,20 +7001,20 @@ var Audio = function Audio(_ref) {
|
|
|
6996
7001
|
var node = _ref.node;
|
|
6997
7002
|
|
|
6998
7003
|
if (node.uploadAudio) {
|
|
6999
|
-
return
|
|
7004
|
+
return React.createElement(
|
|
7000
7005
|
'div',
|
|
7001
7006
|
{ className: 'audio d-block text-center mb-3' },
|
|
7002
|
-
|
|
7007
|
+
React.createElement(
|
|
7003
7008
|
'audio',
|
|
7004
7009
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7005
|
-
|
|
7006
|
-
|
|
7010
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7011
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7007
7012
|
'Your browser does not support the audio element.'
|
|
7008
7013
|
),
|
|
7009
|
-
node.caption &&
|
|
7014
|
+
node.caption && React.createElement(
|
|
7010
7015
|
'p',
|
|
7011
7016
|
{ style: { fontSize: '.9rem' } },
|
|
7012
|
-
|
|
7017
|
+
React.createElement(
|
|
7013
7018
|
'em',
|
|
7014
7019
|
null,
|
|
7015
7020
|
node.caption
|
|
@@ -7019,15 +7024,15 @@ var Audio = function Audio(_ref) {
|
|
|
7019
7024
|
} else if (node.audioFilePth) {
|
|
7020
7025
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7021
7026
|
if (hostname === 'embeds.audioboom.com') {
|
|
7022
|
-
return
|
|
7027
|
+
return React.createElement(
|
|
7023
7028
|
'div',
|
|
7024
7029
|
null,
|
|
7025
|
-
|
|
7030
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7026
7031
|
' ',
|
|
7027
|
-
node.caption &&
|
|
7032
|
+
node.caption && React.createElement(
|
|
7028
7033
|
'p',
|
|
7029
7034
|
{ style: { fontSize: '.9rem' } },
|
|
7030
|
-
|
|
7035
|
+
React.createElement(
|
|
7031
7036
|
'em',
|
|
7032
7037
|
null,
|
|
7033
7038
|
node.caption
|
|
@@ -7035,14 +7040,14 @@ var Audio = function Audio(_ref) {
|
|
|
7035
7040
|
)
|
|
7036
7041
|
);
|
|
7037
7042
|
}
|
|
7038
|
-
return
|
|
7043
|
+
return React.createElement(
|
|
7039
7044
|
'div',
|
|
7040
7045
|
{ className: 'audio' },
|
|
7041
|
-
|
|
7042
|
-
node.caption &&
|
|
7046
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7047
|
+
node.caption && React.createElement(
|
|
7043
7048
|
'p',
|
|
7044
7049
|
{ style: { fontSize: '.9rem' } },
|
|
7045
|
-
|
|
7050
|
+
React.createElement(
|
|
7046
7051
|
'em',
|
|
7047
7052
|
null,
|
|
7048
7053
|
node.caption
|
|
@@ -7060,34 +7065,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7060
7065
|
var profileImage = arguments[6];
|
|
7061
7066
|
|
|
7062
7067
|
if (authorName && authorURL) {
|
|
7063
|
-
return
|
|
7068
|
+
return React.createElement(
|
|
7064
7069
|
'span',
|
|
7065
7070
|
null,
|
|
7066
|
-
|
|
7071
|
+
React.createElement(
|
|
7067
7072
|
'a',
|
|
7068
7073
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7069
7074
|
authorName
|
|
7070
7075
|
),
|
|
7071
|
-
|
|
7076
|
+
React.createElement(
|
|
7072
7077
|
Card,
|
|
7073
7078
|
{ className: 'author-details-card-' + index },
|
|
7074
|
-
|
|
7079
|
+
React.createElement(
|
|
7075
7080
|
Row,
|
|
7076
7081
|
null,
|
|
7077
|
-
profileImage &&
|
|
7082
|
+
profileImage && React.createElement(
|
|
7078
7083
|
Col,
|
|
7079
7084
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7080
|
-
|
|
7085
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7081
7086
|
),
|
|
7082
|
-
|
|
7087
|
+
React.createElement(
|
|
7083
7088
|
Col,
|
|
7084
7089
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7085
|
-
|
|
7090
|
+
React.createElement(
|
|
7086
7091
|
'div',
|
|
7087
7092
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7088
7093
|
authorName
|
|
7089
7094
|
),
|
|
7090
|
-
|
|
7095
|
+
React.createElement(
|
|
7091
7096
|
'p',
|
|
7092
7097
|
null,
|
|
7093
7098
|
biography
|
|
@@ -7095,7 +7100,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7095
7100
|
)
|
|
7096
7101
|
)
|
|
7097
7102
|
),
|
|
7098
|
-
|
|
7103
|
+
React.createElement(
|
|
7099
7104
|
'style',
|
|
7100
7105
|
{ jsx: 'true' },
|
|
7101
7106
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7103,7 +7108,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7103
7108
|
length !== index + 1 && ' , '
|
|
7104
7109
|
);
|
|
7105
7110
|
} else if (authorName) {
|
|
7106
|
-
return
|
|
7111
|
+
return React.createElement(
|
|
7107
7112
|
'span',
|
|
7108
7113
|
{ key: index },
|
|
7109
7114
|
authorName,
|
|
@@ -7135,11 +7140,6 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7135
7140
|
}
|
|
7136
7141
|
});
|
|
7137
7142
|
|
|
7138
|
-
var builder = imageUrlBuilder(client);
|
|
7139
|
-
function urlFor(source) {
|
|
7140
|
-
return builder.image(source);
|
|
7141
|
-
}
|
|
7142
|
-
|
|
7143
7143
|
var router = useRouter();
|
|
7144
7144
|
|
|
7145
7145
|
var _useState = useState(false),
|
|
@@ -7205,10 +7205,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7205
7205
|
|
|
7206
7206
|
Videos.forEach(function (vid) {
|
|
7207
7207
|
if (vid.type == 'mp4') {
|
|
7208
|
-
data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset)
|
|
7208
|
+
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7209
7209
|
} else {
|
|
7210
7210
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7211
|
-
data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset)
|
|
7211
|
+
data.push({ title: vid.title, thumbnail: urlFor({ client: client, source: vid.thumbnail.asset }), url: vid.url });
|
|
7212
7212
|
} else {
|
|
7213
7213
|
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7214
7214
|
}
|
|
@@ -7219,7 +7219,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7219
7219
|
if (data.length < seriesVid || !seriesVid) {
|
|
7220
7220
|
setSeries(1);
|
|
7221
7221
|
setVidUrl(Videos[0].url);
|
|
7222
|
-
setVidThumbnail(Videos[0].thumbnail && Videos[0].thumbnail.asset ? urlFor(Videos[0].thumbnail.asset)
|
|
7222
|
+
setVidThumbnail(Videos[0].thumbnail && Videos[0].thumbnail.asset ? urlFor({ client: client, source: Videos[0].thumbnail.asset }) : '');
|
|
7223
7223
|
if (Videos[0].type) {
|
|
7224
7224
|
setVidType(Videos[0].type);
|
|
7225
7225
|
}
|
|
@@ -7230,7 +7230,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7230
7230
|
} else {
|
|
7231
7231
|
setSeries(seriesVid);
|
|
7232
7232
|
setVidUrl(Videos[seriesVid - 1].url);
|
|
7233
|
-
setVidThumbnail(Videos[seriesVid - 1].thumbnail && Videos[seriesVid - 1].thumbnail.asset ? urlFor(Videos[seriesVid - 1].thumbnail.asset)
|
|
7233
|
+
setVidThumbnail(Videos[seriesVid - 1].thumbnail && Videos[seriesVid - 1].thumbnail.asset ? urlFor({ client: client, source: Videos[seriesVid - 1].thumbnail.asset }) : '');
|
|
7234
7234
|
if (Videos[0].type) {
|
|
7235
7235
|
setVidType(Videos[seriesVid - 1].type);
|
|
7236
7236
|
}
|
|
@@ -7263,8 +7263,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7263
7263
|
var duration = player.getDuration();
|
|
7264
7264
|
var queue = Math.floor(duration / 10);
|
|
7265
7265
|
var segment = Math.floor(current / queue);
|
|
7266
|
-
Beam.report_beam_video('Ready',
|
|
7267
|
-
Segment.report_video_event('Video Ready',
|
|
7266
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7267
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7268
7268
|
//autoplay
|
|
7269
7269
|
|
|
7270
7270
|
//Small pause before starting next video
|
|
@@ -7284,8 +7284,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7284
7284
|
var queue = Math.floor(duration / 10);
|
|
7285
7285
|
var segment = Math.floor(current / queue);
|
|
7286
7286
|
|
|
7287
|
-
Beam.report_beam_video('End',
|
|
7288
|
-
Segment.report_video_event('Video End',
|
|
7287
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7288
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7289
7289
|
setEndReported(true);
|
|
7290
7290
|
clearInterval(intervalID);
|
|
7291
7291
|
}
|
|
@@ -7335,8 +7335,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7335
|
var queue = Math.floor(duration / 10);
|
|
7336
7336
|
var segment = Math.floor(current / queue);
|
|
7337
7337
|
if (!queueProgress.includes(segment)) {
|
|
7338
|
-
Beam.report_beam_video('Segment',
|
|
7339
|
-
Segment.report_video_event('Video Segment',
|
|
7338
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7339
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7340
7340
|
queueProgress.push(segment);
|
|
7341
7341
|
}
|
|
7342
7342
|
};
|
|
@@ -7349,8 +7349,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7349
|
var queue = Math.floor(duration / 10);
|
|
7350
7350
|
var segment = Math.floor(current / queue);
|
|
7351
7351
|
|
|
7352
|
-
Beam.report_beam_video('Play',
|
|
7353
|
-
Segment.report_video_event('Video Play',
|
|
7352
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7353
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7354
7354
|
|
|
7355
7355
|
if (!playReported) {
|
|
7356
7356
|
setPlayReported(true);
|
|
@@ -7368,8 +7368,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7368
7368
|
var queue = Math.floor(duration / 10);
|
|
7369
7369
|
var segment = Math.floor(current / queue);
|
|
7370
7370
|
|
|
7371
|
-
Beam.report_beam_video('Pause',
|
|
7372
|
-
Segment.report_video_event('Video Pause',
|
|
7371
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7372
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7373
7373
|
};
|
|
7374
7374
|
|
|
7375
7375
|
// Youtube Options
|
|
@@ -7380,44 +7380,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7380
7380
|
}
|
|
7381
7381
|
};
|
|
7382
7382
|
|
|
7383
|
-
return
|
|
7383
|
+
return React.createElement(
|
|
7384
7384
|
'div',
|
|
7385
7385
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7386
|
-
|
|
7386
|
+
React.createElement(
|
|
7387
7387
|
'div',
|
|
7388
7388
|
{ className: 'mt-2 mb-5' },
|
|
7389
|
-
series &&
|
|
7389
|
+
series && React.createElement(
|
|
7390
7390
|
'div',
|
|
7391
7391
|
{ style: { fontSize: '0.9rem' } },
|
|
7392
7392
|
article.title,
|
|
7393
7393
|
' - Episode ',
|
|
7394
7394
|
series
|
|
7395
7395
|
),
|
|
7396
|
-
Videos[series - 1] &&
|
|
7396
|
+
Videos[series - 1] && React.createElement(
|
|
7397
7397
|
'h1',
|
|
7398
7398
|
{ className: 'mb-3' },
|
|
7399
7399
|
Videos[series - 1].title
|
|
7400
7400
|
),
|
|
7401
|
-
|
|
7401
|
+
React.createElement(
|
|
7402
7402
|
'div',
|
|
7403
7403
|
null,
|
|
7404
7404
|
moment(article.published).format('LL')
|
|
7405
7405
|
),
|
|
7406
|
-
|
|
7406
|
+
React.createElement(
|
|
7407
7407
|
'div',
|
|
7408
7408
|
{ className: 'mb-3' },
|
|
7409
7409
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7410
|
-
return
|
|
7410
|
+
return React.createElement(
|
|
7411
7411
|
'span',
|
|
7412
7412
|
{ key: index },
|
|
7413
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage
|
|
7413
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7414
7414
|
);
|
|
7415
7415
|
})
|
|
7416
7416
|
),
|
|
7417
|
-
|
|
7417
|
+
React.createElement(
|
|
7418
7418
|
'p',
|
|
7419
7419
|
null,
|
|
7420
|
-
|
|
7420
|
+
React.createElement(SocialShare, {
|
|
7421
7421
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7422
7422
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7423
7423
|
shareVia: meta.shareVia,
|
|
@@ -7432,20 +7432,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7432
7432
|
hideFacebook: meta.hideFBShare
|
|
7433
7433
|
})
|
|
7434
7434
|
),
|
|
7435
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7435
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7436
7436
|
'p',
|
|
7437
7437
|
{ className: 'mb-3' },
|
|
7438
|
-
|
|
7438
|
+
React.createElement(
|
|
7439
7439
|
'em',
|
|
7440
7440
|
null,
|
|
7441
7441
|
Videos[series - 1].intro
|
|
7442
7442
|
)
|
|
7443
7443
|
)
|
|
7444
7444
|
),
|
|
7445
|
-
|
|
7445
|
+
React.createElement(
|
|
7446
7446
|
'div',
|
|
7447
7447
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7448
|
-
vidUrl && vidType == 'youtube' &&
|
|
7448
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7449
7449
|
className: 'fluid-iframe',
|
|
7450
7450
|
videoId: getYoutubeId(vidUrl),
|
|
7451
7451
|
opts: opts,
|
|
@@ -7456,10 +7456,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7456
7456
|
return handleOnEnd(e);
|
|
7457
7457
|
}
|
|
7458
7458
|
}),
|
|
7459
|
-
vidUrl && vidType == 'mp4' &&
|
|
7460
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7461
|
-
|
|
7462
|
-
series &&
|
|
7459
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7460
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7461
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7462
|
+
series && React.createElement(
|
|
7463
7463
|
'div',
|
|
7464
7464
|
{
|
|
7465
7465
|
className: 'vid-series',
|
|
@@ -7469,10 +7469,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7469
7469
|
maxHeight: '100%',
|
|
7470
7470
|
paddingBottom: '0'
|
|
7471
7471
|
} },
|
|
7472
|
-
|
|
7472
|
+
React.createElement(
|
|
7473
7473
|
'p',
|
|
7474
7474
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7475
|
-
|
|
7475
|
+
React.createElement(
|
|
7476
7476
|
'b',
|
|
7477
7477
|
{ style: { fontSize: '1.25em' } },
|
|
7478
7478
|
'Now Playing:'
|
|
@@ -7480,16 +7480,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7480
7480
|
' ',
|
|
7481
7481
|
seriesData[series ? series - 1 : 0].title
|
|
7482
7482
|
),
|
|
7483
|
-
vidUrl &&
|
|
7483
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7484
7484
|
)
|
|
7485
7485
|
),
|
|
7486
|
-
|
|
7487
|
-
|
|
7486
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7487
|
+
React.createElement(
|
|
7488
7488
|
'div',
|
|
7489
7489
|
{ className: 'vid-text' },
|
|
7490
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7490
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7491
7491
|
),
|
|
7492
|
-
|
|
7492
|
+
React.createElement(
|
|
7493
7493
|
'style',
|
|
7494
7494
|
{ jsx: 'true' },
|
|
7495
7495
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7497,14 +7497,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
7497
|
);
|
|
7498
7498
|
};
|
|
7499
7499
|
|
|
7500
|
-
var Poll = function Poll(_ref) {
|
|
7501
|
-
var node = _ref.node
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
onVote = _ref.onVote
|
|
7506
|
-
_ref
|
|
7507
|
-
getSerializers = _ref.getSerializers;
|
|
7500
|
+
var Poll$1 = function Poll(_ref) {
|
|
7501
|
+
var node = _ref.node;
|
|
7502
|
+
_ref.client;
|
|
7503
|
+
_ref.pageview;
|
|
7504
|
+
_ref.videoAccountIDs;
|
|
7505
|
+
var onVote = _ref.onVote;
|
|
7506
|
+
_ref.showVotes;
|
|
7507
|
+
var getSerializers = _ref.getSerializers;
|
|
7508
7508
|
|
|
7509
7509
|
var _useState = useState(null),
|
|
7510
7510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7542,67 +7542,67 @@ var Poll = function Poll(_ref) {
|
|
|
7542
7542
|
return acc;
|
|
7543
7543
|
}
|
|
7544
7544
|
}, 0);
|
|
7545
|
-
return
|
|
7546
|
-
|
|
7545
|
+
return React.createElement(
|
|
7546
|
+
React.Fragment,
|
|
7547
7547
|
null,
|
|
7548
|
-
question &&
|
|
7548
|
+
question && React.createElement(
|
|
7549
7549
|
'p',
|
|
7550
7550
|
{ className: 'font-weight-bold' },
|
|
7551
7551
|
question
|
|
7552
7552
|
),
|
|
7553
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7553
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7554
7554
|
'form',
|
|
7555
7555
|
{ onSubmit: function onSubmit(e) {
|
|
7556
7556
|
return onSubmitPoll(e);
|
|
7557
7557
|
} },
|
|
7558
7558
|
choices && choices.map(function (choice) {
|
|
7559
|
-
return
|
|
7559
|
+
return React.createElement(
|
|
7560
7560
|
'div',
|
|
7561
7561
|
{ key: choice._key },
|
|
7562
|
-
|
|
7562
|
+
React.createElement(
|
|
7563
7563
|
'label',
|
|
7564
7564
|
{ className: 'pl-2' },
|
|
7565
|
-
|
|
7565
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7566
7566
|
return setSelectedChoice(e.target.value);
|
|
7567
7567
|
} }),
|
|
7568
7568
|
' ' + choice.choiceText
|
|
7569
7569
|
)
|
|
7570
7570
|
);
|
|
7571
7571
|
}),
|
|
7572
|
-
|
|
7572
|
+
React.createElement(
|
|
7573
7573
|
Button,
|
|
7574
7574
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7575
7575
|
'Vote'
|
|
7576
7576
|
)
|
|
7577
7577
|
),
|
|
7578
|
-
|
|
7578
|
+
React.createElement(
|
|
7579
7579
|
'div',
|
|
7580
7580
|
{ className: 'progress-container' },
|
|
7581
7581
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7582
7582
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7583
|
-
return
|
|
7583
|
+
return React.createElement(
|
|
7584
7584
|
'div',
|
|
7585
7585
|
{ key: choice._key, className: 'mb-3' },
|
|
7586
|
-
|
|
7586
|
+
React.createElement(
|
|
7587
7587
|
'div',
|
|
7588
7588
|
{ className: 'correct-answer' },
|
|
7589
|
-
|
|
7589
|
+
React.createElement(
|
|
7590
7590
|
'div',
|
|
7591
7591
|
null,
|
|
7592
7592
|
choice.choiceText
|
|
7593
7593
|
),
|
|
7594
|
-
choice.choiceAnswer === true &&
|
|
7594
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7595
7595
|
'div',
|
|
7596
7596
|
null,
|
|
7597
|
-
|
|
7597
|
+
React.createElement(
|
|
7598
7598
|
'span',
|
|
7599
7599
|
{ style: { color: 'limegreen' } },
|
|
7600
7600
|
'Correct!'
|
|
7601
7601
|
)
|
|
7602
7602
|
)
|
|
7603
7603
|
),
|
|
7604
|
-
|
|
7605
|
-
|
|
7604
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7605
|
+
React.createElement(
|
|
7606
7606
|
'span',
|
|
7607
7607
|
{ className: 'float-right' },
|
|
7608
7608
|
percentage,
|
|
@@ -7613,14 +7613,14 @@ var Poll = function Poll(_ref) {
|
|
|
7613
7613
|
);
|
|
7614
7614
|
})
|
|
7615
7615
|
),
|
|
7616
|
-
showAnswer &&
|
|
7616
|
+
showAnswer && React.createElement(
|
|
7617
7617
|
'h4',
|
|
7618
7618
|
{ className: 'text-center small p-3' },
|
|
7619
7619
|
'Total Votes: ',
|
|
7620
7620
|
choicesTotalCount
|
|
7621
7621
|
),
|
|
7622
|
-
showAnswer && response &&
|
|
7623
|
-
|
|
7622
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7623
|
+
React.createElement(
|
|
7624
7624
|
'style',
|
|
7625
7625
|
{ jsx: 'true' },
|
|
7626
7626
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7638,22 +7638,22 @@ _export(_export.S, 'Object', {
|
|
|
7638
7638
|
}
|
|
7639
7639
|
});
|
|
7640
7640
|
|
|
7641
|
-
var values = _core.Object.values;
|
|
7641
|
+
var values$1 = _core.Object.values;
|
|
7642
7642
|
|
|
7643
|
-
var values
|
|
7644
|
-
module.exports = { "default": values, __esModule: true };
|
|
7643
|
+
var values = createCommonjsModule(function (module) {
|
|
7644
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7645
7645
|
});
|
|
7646
7646
|
|
|
7647
|
-
var _Object$values = unwrapExports(values
|
|
7647
|
+
var _Object$values = unwrapExports(values);
|
|
7648
7648
|
|
|
7649
|
-
var Poll
|
|
7650
|
-
var node = _ref.node
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
onVote = _ref.onVote
|
|
7655
|
-
_ref
|
|
7656
|
-
getSerializers = _ref.getSerializers;
|
|
7649
|
+
var Poll = function Poll(_ref) {
|
|
7650
|
+
var node = _ref.node;
|
|
7651
|
+
_ref.client;
|
|
7652
|
+
_ref.pageview;
|
|
7653
|
+
_ref.videoAccountIDs;
|
|
7654
|
+
var onVote = _ref.onVote;
|
|
7655
|
+
_ref.showVotes;
|
|
7656
|
+
var getSerializers = _ref.getSerializers;
|
|
7657
7657
|
|
|
7658
7658
|
var _useState = useState(null),
|
|
7659
7659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7719,67 +7719,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7719
7719
|
return acc;
|
|
7720
7720
|
}
|
|
7721
7721
|
}, 0);
|
|
7722
|
-
return
|
|
7723
|
-
|
|
7722
|
+
return React.createElement(
|
|
7723
|
+
React.Fragment,
|
|
7724
7724
|
null,
|
|
7725
|
-
question &&
|
|
7725
|
+
question && React.createElement(
|
|
7726
7726
|
'p',
|
|
7727
7727
|
{ className: 'font-weight-bold' },
|
|
7728
7728
|
question
|
|
7729
7729
|
),
|
|
7730
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7730
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7731
7731
|
'form',
|
|
7732
7732
|
{ onSubmit: function onSubmit(e) {
|
|
7733
7733
|
return onSubmitPoll(e);
|
|
7734
7734
|
} },
|
|
7735
7735
|
choices && choices.map(function (choice) {
|
|
7736
|
-
return
|
|
7736
|
+
return React.createElement(
|
|
7737
7737
|
'div',
|
|
7738
7738
|
{ key: choice._key },
|
|
7739
|
-
|
|
7739
|
+
React.createElement(
|
|
7740
7740
|
'label',
|
|
7741
7741
|
{ className: 'pl-2' },
|
|
7742
|
-
|
|
7742
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7743
7743
|
return setSelectedChoice(e.target.value);
|
|
7744
7744
|
} }),
|
|
7745
7745
|
' ' + choice.choiceText
|
|
7746
7746
|
)
|
|
7747
7747
|
);
|
|
7748
7748
|
}),
|
|
7749
|
-
|
|
7749
|
+
React.createElement(
|
|
7750
7750
|
Button,
|
|
7751
7751
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7752
7752
|
'Vote'
|
|
7753
7753
|
)
|
|
7754
7754
|
),
|
|
7755
|
-
|
|
7755
|
+
React.createElement(
|
|
7756
7756
|
'div',
|
|
7757
7757
|
{ className: 'progress-container' },
|
|
7758
7758
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7759
7759
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7760
|
-
return
|
|
7760
|
+
return React.createElement(
|
|
7761
7761
|
'div',
|
|
7762
7762
|
{ key: choice._key, className: 'mb-3' },
|
|
7763
|
-
|
|
7763
|
+
React.createElement(
|
|
7764
7764
|
'div',
|
|
7765
7765
|
{ className: 'correct-answer' },
|
|
7766
|
-
|
|
7766
|
+
React.createElement(
|
|
7767
7767
|
'div',
|
|
7768
7768
|
null,
|
|
7769
7769
|
choice.choiceText
|
|
7770
7770
|
),
|
|
7771
|
-
choice.choiceAnswer === true &&
|
|
7771
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7772
7772
|
'div',
|
|
7773
7773
|
null,
|
|
7774
|
-
|
|
7774
|
+
React.createElement(
|
|
7775
7775
|
'span',
|
|
7776
7776
|
{ style: { color: 'limegreen' } },
|
|
7777
7777
|
'Correct!'
|
|
7778
7778
|
)
|
|
7779
7779
|
)
|
|
7780
7780
|
),
|
|
7781
|
-
|
|
7782
|
-
|
|
7781
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7782
|
+
React.createElement(
|
|
7783
7783
|
'span',
|
|
7784
7784
|
{ className: 'float-right' },
|
|
7785
7785
|
percentage,
|
|
@@ -7790,14 +7790,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7790
7790
|
);
|
|
7791
7791
|
})
|
|
7792
7792
|
),
|
|
7793
|
-
showAnswer &&
|
|
7793
|
+
showAnswer && React.createElement(
|
|
7794
7794
|
'h4',
|
|
7795
7795
|
{ className: 'text-center small p-3' },
|
|
7796
7796
|
'Total Votes: ',
|
|
7797
7797
|
choicesTotalCount
|
|
7798
7798
|
),
|
|
7799
|
-
showAnswer && response &&
|
|
7800
|
-
|
|
7799
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7800
|
+
React.createElement(
|
|
7801
7801
|
'style',
|
|
7802
7802
|
{ jsx: 'true' },
|
|
7803
7803
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7805,7 +7805,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7805
7805
|
);
|
|
7806
7806
|
};
|
|
7807
7807
|
|
|
7808
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7809
7809
|
|
|
7810
7810
|
var Quiz = function Quiz(_ref) {
|
|
7811
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7923,34 +7923,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7923
7923
|
};
|
|
7924
7924
|
|
|
7925
7925
|
var renderPagination = function renderPagination() {
|
|
7926
|
-
return
|
|
7927
|
-
Pagination
|
|
7928
|
-
{ className: 'p-0 m-0', size:
|
|
7929
|
-
|
|
7926
|
+
return React.createElement(
|
|
7927
|
+
Pagination,
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7929
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7930
7930
|
return changePage('first');
|
|
7931
7931
|
}, disabled: currentPage === 1 }),
|
|
7932
|
-
|
|
7932
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7933
7933
|
return changePage('prev');
|
|
7934
7934
|
}, disabled: currentPage === 1 }),
|
|
7935
|
-
|
|
7935
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7936
7936
|
return renderNewPages('prev');
|
|
7937
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7938
7938
|
pages.map(function (page) {
|
|
7939
|
-
return
|
|
7940
|
-
Pagination
|
|
7939
|
+
return React.createElement(
|
|
7940
|
+
Pagination.Item,
|
|
7941
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7942
7942
|
return changePage(page);
|
|
7943
7943
|
} },
|
|
7944
7944
|
page
|
|
7945
7945
|
);
|
|
7946
7946
|
}),
|
|
7947
|
-
|
|
7947
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7948
7948
|
return renderNewPages('next');
|
|
7949
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7950
|
-
|
|
7950
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7951
7951
|
return changePage('next');
|
|
7952
7952
|
}, disabled: currentPage === pageCount }),
|
|
7953
|
-
|
|
7953
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7954
7954
|
return changePage('last');
|
|
7955
7955
|
}, disabled: currentPage === pageCount })
|
|
7956
7956
|
);
|
|
@@ -8033,51 +8033,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8033
8033
|
}
|
|
8034
8034
|
};
|
|
8035
8035
|
|
|
8036
|
-
return
|
|
8037
|
-
|
|
8036
|
+
return React.createElement(
|
|
8037
|
+
React.Fragment,
|
|
8038
8038
|
null,
|
|
8039
|
-
quizzes[currentPage - 1] &&
|
|
8040
|
-
|
|
8039
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8040
|
+
React.Fragment,
|
|
8041
8041
|
null,
|
|
8042
|
-
|
|
8043
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8042
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8043
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8044
8044
|
'form',
|
|
8045
8045
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8046
8046
|
return e.preventDefault();
|
|
8047
8047
|
} },
|
|
8048
8048
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8049
|
-
return
|
|
8049
|
+
return React.createElement(
|
|
8050
8050
|
'div',
|
|
8051
8051
|
{ key: answer._key },
|
|
8052
|
-
|
|
8052
|
+
React.createElement(
|
|
8053
8053
|
'label',
|
|
8054
8054
|
{ className: 'pl-2' },
|
|
8055
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8055
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8056
8056
|
' ' + answer.answerText
|
|
8057
8057
|
)
|
|
8058
8058
|
);
|
|
8059
8059
|
})
|
|
8060
8060
|
)
|
|
8061
8061
|
),
|
|
8062
|
-
!showAnswer &&
|
|
8062
|
+
!showAnswer && React.createElement(
|
|
8063
8063
|
Button$1,
|
|
8064
8064
|
{ onClick: function onClick() {
|
|
8065
8065
|
return checkAnswers();
|
|
8066
8066
|
}, variant: 'info', block: true },
|
|
8067
8067
|
'Please click here for answer'
|
|
8068
8068
|
),
|
|
8069
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8070
|
-
|
|
8069
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8070
|
+
React.Fragment,
|
|
8071
8071
|
null,
|
|
8072
|
-
|
|
8072
|
+
React.createElement(
|
|
8073
8073
|
'h4',
|
|
8074
8074
|
null,
|
|
8075
8075
|
'Answer:'
|
|
8076
8076
|
),
|
|
8077
|
-
quizzes[currentPage - 1].answer &&
|
|
8077
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8078
8078
|
),
|
|
8079
|
-
|
|
8080
|
-
pageCount > 1 &&
|
|
8079
|
+
React.createElement('br', null),
|
|
8080
|
+
pageCount > 1 && React.createElement(
|
|
8081
8081
|
'div',
|
|
8082
8082
|
{ className: 'd-flex justify-content-center' },
|
|
8083
8083
|
renderPagination()
|
|
@@ -8088,19 +8088,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
8088
8088
|
var Leads = function Leads(_ref) {
|
|
8089
8089
|
var url = _ref.url;
|
|
8090
8090
|
|
|
8091
|
-
return
|
|
8091
|
+
return React.createElement(
|
|
8092
8092
|
'div',
|
|
8093
8093
|
{ className: 'd-block text-center mb-3' },
|
|
8094
|
-
url &&
|
|
8094
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8095
8095
|
);
|
|
8096
8096
|
};
|
|
8097
8097
|
|
|
8098
|
-
var
|
|
8099
|
-
var builder = imageUrlBuilder(client);
|
|
8100
|
-
return builder.image(source).auto('format');
|
|
8101
|
-
};
|
|
8102
|
-
|
|
8103
|
-
var Slideshow$1 = function Slideshow(_ref) {
|
|
8098
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8104
8099
|
var slides = _ref.node.slides,
|
|
8105
8100
|
client = _ref.client,
|
|
8106
8101
|
pageview = _ref.pageview,
|
|
@@ -8112,8 +8107,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8112
8107
|
|
|
8113
8108
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8114
8109
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8115
|
-
carouselIndex = _useState2[0]
|
|
8116
|
-
|
|
8110
|
+
carouselIndex = _useState2[0];
|
|
8111
|
+
_useState2[1];
|
|
8117
8112
|
|
|
8118
8113
|
// useEffect(() => {
|
|
8119
8114
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8139,42 +8134,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8139
8134
|
}
|
|
8140
8135
|
};
|
|
8141
8136
|
|
|
8142
|
-
return
|
|
8137
|
+
return React.createElement(
|
|
8143
8138
|
'div',
|
|
8144
8139
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8145
|
-
|
|
8140
|
+
React.createElement(
|
|
8146
8141
|
Carousel,
|
|
8147
8142
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8148
8143
|
slides && slides.map(function (slide) {
|
|
8149
8144
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8150
|
-
return
|
|
8145
|
+
return React.createElement(
|
|
8151
8146
|
Carousel.Item,
|
|
8152
8147
|
{ key: slide._key },
|
|
8153
|
-
|
|
8148
|
+
React.createElement(
|
|
8154
8149
|
'a',
|
|
8155
8150
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8156
|
-
|
|
8151
|
+
React.createElement(
|
|
8157
8152
|
LazyLoad,
|
|
8158
8153
|
null,
|
|
8159
|
-
|
|
8154
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8160
8155
|
)
|
|
8161
8156
|
),
|
|
8162
|
-
|
|
8157
|
+
React.createElement(
|
|
8163
8158
|
'div',
|
|
8164
8159
|
{ className: 'p-2' },
|
|
8165
|
-
slide.slideshowImage.caption &&
|
|
8160
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8166
8161
|
'h3',
|
|
8167
8162
|
{ style: { padding: '0px' } },
|
|
8168
8163
|
slide.slideshowImage.caption
|
|
8169
8164
|
),
|
|
8170
|
-
slide.description &&
|
|
8165
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8171
8166
|
)
|
|
8172
8167
|
);
|
|
8173
8168
|
}
|
|
8174
8169
|
return null;
|
|
8175
8170
|
})
|
|
8176
8171
|
),
|
|
8177
|
-
|
|
8172
|
+
React.createElement(
|
|
8178
8173
|
'style',
|
|
8179
8174
|
{ jsx: 'true' },
|
|
8180
8175
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -8193,10 +8188,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8193
8188
|
sizes = _props$node.sizes,
|
|
8194
8189
|
sizeMapping = _props$node.sizeMapping;
|
|
8195
8190
|
|
|
8196
|
-
return
|
|
8191
|
+
return React.createElement(
|
|
8197
8192
|
'div',
|
|
8198
8193
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8199
|
-
|
|
8194
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8200
8195
|
);
|
|
8201
8196
|
};
|
|
8202
8197
|
|
|
@@ -8207,22 +8202,18 @@ var Formstack = function Formstack(_ref) {
|
|
|
8207
8202
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8208
8203
|
|
|
8209
8204
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8210
|
-
return
|
|
8205
|
+
return React.createElement(
|
|
8211
8206
|
'section',
|
|
8212
8207
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8213
|
-
Caption &&
|
|
8208
|
+
Caption && React.createElement(
|
|
8214
8209
|
'h4',
|
|
8215
8210
|
{ className: 'formstack-caption' },
|
|
8216
8211
|
Caption
|
|
8217
8212
|
),
|
|
8218
|
-
|
|
8213
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8219
8214
|
);
|
|
8220
8215
|
};
|
|
8221
8216
|
|
|
8222
|
-
var urlFor$2 = function urlFor(source, client) {
|
|
8223
|
-
var builder = imageUrlBuilder(client);
|
|
8224
|
-
return builder.image(source).auto('format');
|
|
8225
|
-
};
|
|
8226
8217
|
var MultiMedia = function MultiMedia(props) {
|
|
8227
8218
|
var medias = props.node.medias,
|
|
8228
8219
|
client = props.client;
|
|
@@ -8235,29 +8226,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8235
8226
|
}
|
|
8236
8227
|
});
|
|
8237
8228
|
if (medias && medias.length > 0) {
|
|
8238
|
-
return
|
|
8229
|
+
return React.createElement(
|
|
8239
8230
|
'div',
|
|
8240
8231
|
{ className: 'multi-media-container' },
|
|
8241
|
-
|
|
8232
|
+
React.createElement(
|
|
8242
8233
|
Row$1,
|
|
8243
8234
|
{ noGutters: true },
|
|
8244
8235
|
medias.map(function (media) {
|
|
8245
|
-
return
|
|
8236
|
+
return React.createElement(
|
|
8246
8237
|
Col$1,
|
|
8247
8238
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8248
|
-
|
|
8239
|
+
React.createElement(
|
|
8249
8240
|
'a',
|
|
8250
|
-
_extends
|
|
8241
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8251
8242
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8252
|
-
|
|
8243
|
+
React.createElement(
|
|
8253
8244
|
'div',
|
|
8254
8245
|
{ className: 'multi-media-image-container' },
|
|
8255
|
-
imageBox &&
|
|
8246
|
+
imageBox && React.createElement(
|
|
8256
8247
|
LazyLoad,
|
|
8257
8248
|
{ once: true },
|
|
8258
|
-
|
|
8249
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
|
|
8259
8250
|
),
|
|
8260
|
-
media.caption &&
|
|
8251
|
+
media.caption && React.createElement(
|
|
8261
8252
|
'span',
|
|
8262
8253
|
{ className: 'multi-media-caption' },
|
|
8263
8254
|
media.caption
|
|
@@ -8267,7 +8258,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8267
8258
|
);
|
|
8268
8259
|
})
|
|
8269
8260
|
),
|
|
8270
|
-
|
|
8261
|
+
React.createElement(
|
|
8271
8262
|
'style',
|
|
8272
8263
|
{ jsx: 'true' },
|
|
8273
8264
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -8314,7 +8305,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8314
8305
|
}
|
|
8315
8306
|
};
|
|
8316
8307
|
|
|
8317
|
-
_this.wraperRef =
|
|
8308
|
+
_this.wraperRef = React.createRef();
|
|
8318
8309
|
_this.visible = false;
|
|
8319
8310
|
return _this;
|
|
8320
8311
|
}
|
|
@@ -8342,7 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8342
8333
|
_props$id = _props.id,
|
|
8343
8334
|
id = _props$id === undefined ? '' : _props$id;
|
|
8344
8335
|
|
|
8345
|
-
return
|
|
8336
|
+
return React.createElement(
|
|
8346
8337
|
'div',
|
|
8347
8338
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8348
8339
|
this.props.children
|
|
@@ -8351,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8351
8342
|
}]);
|
|
8352
8343
|
|
|
8353
8344
|
return InscreenSensor;
|
|
8354
|
-
}(
|
|
8345
|
+
}(React.Component);
|
|
8355
8346
|
|
|
8356
8347
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8357
8348
|
var nodes = _ref.nodes,
|
|
@@ -8369,10 +8360,6 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8369
8360
|
var today = moment().utc().format();
|
|
8370
8361
|
|
|
8371
8362
|
var authorPrefix = 'authors';
|
|
8372
|
-
var builder = imageUrlBuilder(client);
|
|
8373
|
-
function urlFor(source) {
|
|
8374
|
-
return builder.image(source);
|
|
8375
|
-
}
|
|
8376
8363
|
var router = useRouter();
|
|
8377
8364
|
|
|
8378
8365
|
var refArray = useRef([]);
|
|
@@ -8464,33 +8451,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8464
8451
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8465
8452
|
var showReading = show ? 'showReading' : '';
|
|
8466
8453
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8467
|
-
return
|
|
8454
|
+
return React.createElement(
|
|
8468
8455
|
'div',
|
|
8469
8456
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8470
|
-
|
|
8457
|
+
React.createElement(
|
|
8471
8458
|
'a',
|
|
8472
8459
|
{ onClick: function onClick(e) {
|
|
8473
8460
|
return articleCardClickHandler(e);
|
|
8474
8461
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8475
|
-
|
|
8462
|
+
React.createElement(
|
|
8476
8463
|
'div',
|
|
8477
8464
|
{ className: 'prevNext-thumbnail' },
|
|
8478
|
-
|
|
8479
|
-
|
|
8465
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8466
|
+
React.createElement(
|
|
8480
8467
|
'div',
|
|
8481
8468
|
{ className: 'prevNext-reading ' + showReading },
|
|
8482
8469
|
articleLabel
|
|
8483
8470
|
)
|
|
8484
8471
|
),
|
|
8485
|
-
|
|
8472
|
+
React.createElement(
|
|
8486
8473
|
'div',
|
|
8487
8474
|
{ className: 'prevNext-summary' },
|
|
8488
|
-
|
|
8475
|
+
React.createElement(
|
|
8489
8476
|
'div',
|
|
8490
8477
|
{ className: 'prevNext-publishDate' },
|
|
8491
8478
|
moment(article.published).format('LL')
|
|
8492
8479
|
),
|
|
8493
|
-
|
|
8480
|
+
React.createElement(
|
|
8494
8481
|
'h2',
|
|
8495
8482
|
{ className: 'prevNext-title' },
|
|
8496
8483
|
article.title
|
|
@@ -8539,13 +8526,13 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8539
8526
|
|
|
8540
8527
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8541
8528
|
if (biography) {
|
|
8542
|
-
return
|
|
8529
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8543
8530
|
}
|
|
8544
8531
|
};
|
|
8545
8532
|
|
|
8546
8533
|
useEffect(function () {
|
|
8547
8534
|
if (articleClicked === true) {
|
|
8548
|
-
onChangeArticle(Articles[articleIndex].param.current, 'top', Articles[articleIndex].title, Articles[articleIndex].summary, urlFor(Articles[articleIndex].thumbnail.asset)
|
|
8535
|
+
onChangeArticle(Articles[articleIndex].param.current, 'top', Articles[articleIndex].title, Articles[articleIndex].summary, urlFor({ client: client, source: Articles[articleIndex].thumbnail.asset }));
|
|
8549
8536
|
}
|
|
8550
8537
|
}, [articleClicked]);
|
|
8551
8538
|
|
|
@@ -8625,7 +8612,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8625
8612
|
//console.log('useLayoutEffect')
|
|
8626
8613
|
if (!firstLoad) {
|
|
8627
8614
|
setUpArrowClicked(false);
|
|
8628
|
-
if (
|
|
8615
|
+
if (main_43) {
|
|
8629
8616
|
grabLoadedAds();
|
|
8630
8617
|
} else {
|
|
8631
8618
|
scrollToArticle();
|
|
@@ -8649,7 +8636,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8649
8636
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8650
8637
|
if (pageview) pageview(path);
|
|
8651
8638
|
|
|
8652
|
-
if (!
|
|
8639
|
+
if (!main_43) {
|
|
8653
8640
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8654
8641
|
if (window.googletag && googletag.pubadsReady) {
|
|
8655
8642
|
lib_3.refresh();
|
|
@@ -8657,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8657
8644
|
});
|
|
8658
8645
|
}
|
|
8659
8646
|
//Refresh leaderboard ad on mobile
|
|
8660
|
-
if (
|
|
8647
|
+
if (main_43) {
|
|
8661
8648
|
var leaderboardSlotId = '';
|
|
8662
8649
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8663
8650
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8683,7 +8670,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8683
8670
|
setCurrentTitle(title);
|
|
8684
8671
|
if (rootArticle) {
|
|
8685
8672
|
setCurrentSummary(rootArticle.summary ? rootArticle.summary : '');
|
|
8686
|
-
setCurrentThumbnail(urlFor(rootArticle.thumbnail.asset)
|
|
8673
|
+
setCurrentThumbnail(urlFor({ client: client, source: rootArticle.thumbnail.asset }));
|
|
8687
8674
|
} else {
|
|
8688
8675
|
setCurrentSummary('');
|
|
8689
8676
|
setCurrentThumbnail('');
|
|
@@ -8697,38 +8684,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8697
8684
|
setSensorVisible(false);
|
|
8698
8685
|
};
|
|
8699
8686
|
|
|
8700
|
-
return
|
|
8701
|
-
|
|
8687
|
+
return React.createElement(
|
|
8688
|
+
React.Fragment,
|
|
8702
8689
|
null,
|
|
8703
|
-
|
|
8690
|
+
React.createElement(
|
|
8704
8691
|
'div',
|
|
8705
8692
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8706
|
-
|
|
8693
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8707
8694
|
return handleArrowClick();
|
|
8708
8695
|
} })
|
|
8709
8696
|
),
|
|
8710
|
-
|
|
8711
|
-
|
|
8697
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8698
|
+
React.createElement(
|
|
8712
8699
|
'div',
|
|
8713
8700
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8714
|
-
|
|
8701
|
+
React.createElement(
|
|
8715
8702
|
'h5',
|
|
8716
8703
|
{ className: 'objective-title' },
|
|
8717
8704
|
nodes.seriesTitle
|
|
8718
8705
|
),
|
|
8719
|
-
|
|
8706
|
+
React.createElement(
|
|
8720
8707
|
'div',
|
|
8721
8708
|
{ className: 'prevNextWrapper' },
|
|
8722
8709
|
PrevNextCards(false, -1)
|
|
8723
8710
|
)
|
|
8724
8711
|
),
|
|
8725
|
-
|
|
8726
|
-
|
|
8712
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8713
|
+
React.createElement(
|
|
8727
8714
|
'div',
|
|
8728
8715
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8729
|
-
|
|
8716
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8730
8717
|
if (index === 0) {
|
|
8731
|
-
return
|
|
8718
|
+
return React.createElement(
|
|
8732
8719
|
'div',
|
|
8733
8720
|
{
|
|
8734
8721
|
key: 'addid-1',
|
|
@@ -8748,14 +8735,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8748
8735
|
}
|
|
8749
8736
|
})
|
|
8750
8737
|
),
|
|
8751
|
-
|
|
8738
|
+
React.createElement(
|
|
8752
8739
|
'div',
|
|
8753
8740
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8754
8741
|
Articles.map(function (article, index) {
|
|
8755
|
-
return
|
|
8742
|
+
return React.createElement(
|
|
8756
8743
|
'div',
|
|
8757
8744
|
{ key: article.title },
|
|
8758
|
-
|
|
8745
|
+
React.createElement(
|
|
8759
8746
|
InscreenSensor,
|
|
8760
8747
|
{
|
|
8761
8748
|
visible: sensorVisible,
|
|
@@ -8769,88 +8756,88 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8769
8756
|
onChange: function onChange(visible) {
|
|
8770
8757
|
if (upArrowClicked === false && articleClicked === false) {
|
|
8771
8758
|
if (visible === 'top' || visible === 'bottom' || visible === 'small-top') {
|
|
8772
|
-
onChangeArticle(article.param.current, visible, article.title, article.summary, urlFor(article.thumbnail.asset)
|
|
8759
|
+
onChangeArticle(article.param.current, visible, article.title, article.summary, urlFor({ client: client, source: article.thumbnail.asset }));
|
|
8773
8760
|
}
|
|
8774
8761
|
}
|
|
8775
8762
|
} },
|
|
8776
|
-
|
|
8763
|
+
React.createElement(
|
|
8777
8764
|
Head,
|
|
8778
8765
|
null,
|
|
8779
|
-
currentTitle !== null &&
|
|
8766
|
+
currentTitle !== null && React.createElement(
|
|
8780
8767
|
'title',
|
|
8781
8768
|
{ key: 'title' },
|
|
8782
8769
|
currentTitle
|
|
8783
8770
|
),
|
|
8784
|
-
currentSummary !== null &&
|
|
8785
|
-
currentURL !== null &&
|
|
8786
|
-
currentTitle !== null &&
|
|
8787
|
-
currentThumbnail !== null &&
|
|
8788
|
-
currentSummary !== null &&
|
|
8789
|
-
currentTitle !== null &&
|
|
8790
|
-
currentThumbnail !== null &&
|
|
8791
|
-
currentSummary !== null &&
|
|
8771
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8772
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8773
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8774
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8775
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8776
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8777
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8778
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8792
8779
|
),
|
|
8793
|
-
|
|
8780
|
+
React.createElement(
|
|
8794
8781
|
'article',
|
|
8795
8782
|
{ className: 'article-wrapper' },
|
|
8796
|
-
|
|
8783
|
+
React.createElement(
|
|
8797
8784
|
'div',
|
|
8798
8785
|
{ className: 'article-publishDate' },
|
|
8799
8786
|
moment(article.published).format('LL')
|
|
8800
8787
|
),
|
|
8801
|
-
|
|
8788
|
+
React.createElement(
|
|
8802
8789
|
'div',
|
|
8803
8790
|
{ className: 'author-details-wrapper' },
|
|
8804
8791
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8805
|
-
return
|
|
8792
|
+
return React.createElement(
|
|
8806
8793
|
'span',
|
|
8807
8794
|
{ key: index },
|
|
8808
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage)
|
|
8795
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8809
8796
|
);
|
|
8810
8797
|
})
|
|
8811
8798
|
),
|
|
8812
|
-
|
|
8799
|
+
React.createElement(
|
|
8813
8800
|
'h2',
|
|
8814
8801
|
{ className: 'article-title' },
|
|
8815
8802
|
article.title
|
|
8816
8803
|
),
|
|
8817
|
-
|
|
8804
|
+
React.createElement(
|
|
8818
8805
|
'div',
|
|
8819
8806
|
{ className: 'mt-2 mb-2' },
|
|
8820
|
-
|
|
8807
|
+
React.createElement(BlockContent, _extends({
|
|
8821
8808
|
serializers: getSerializers,
|
|
8822
8809
|
videoAccountIDs: accountIDs,
|
|
8823
8810
|
blocks: article.text,
|
|
8824
8811
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8825
8812
|
}, client.config())),
|
|
8826
|
-
|
|
8813
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8827
8814
|
),
|
|
8828
|
-
Articles.length > 1 &&
|
|
8829
|
-
|
|
8815
|
+
Articles.length > 1 && React.createElement(
|
|
8816
|
+
React.Fragment,
|
|
8830
8817
|
null,
|
|
8831
|
-
|
|
8818
|
+
React.createElement(
|
|
8832
8819
|
'div',
|
|
8833
8820
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8834
|
-
|
|
8821
|
+
React.createElement(
|
|
8835
8822
|
'h5',
|
|
8836
8823
|
{ className: 'objective-title' },
|
|
8837
8824
|
nodes.seriesTitle
|
|
8838
8825
|
),
|
|
8839
|
-
|
|
8826
|
+
React.createElement(
|
|
8840
8827
|
'div',
|
|
8841
8828
|
{ className: 'prevNextWrapper' },
|
|
8842
8829
|
PrevNextCards(true, index)
|
|
8843
8830
|
)
|
|
8844
8831
|
),
|
|
8845
|
-
|
|
8832
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8846
8833
|
)
|
|
8847
8834
|
),
|
|
8848
|
-
|
|
8835
|
+
React.createElement(
|
|
8849
8836
|
'div',
|
|
8850
8837
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8851
|
-
|
|
8838
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8852
8839
|
if (innerIndex === 0) {
|
|
8853
|
-
return
|
|
8840
|
+
return React.createElement(
|
|
8854
8841
|
'div',
|
|
8855
8842
|
{
|
|
8856
8843
|
key: 'addid-' + (index + 2),
|
|
@@ -8873,7 +8860,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8873
8860
|
)
|
|
8874
8861
|
);
|
|
8875
8862
|
}),
|
|
8876
|
-
|
|
8863
|
+
React.createElement(
|
|
8877
8864
|
'style',
|
|
8878
8865
|
{ jsx: 'true' },
|
|
8879
8866
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8903,11 +8890,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8903
8890
|
};
|
|
8904
8891
|
}, [handleClickOutside]);
|
|
8905
8892
|
|
|
8906
|
-
return
|
|
8893
|
+
return React.createElement(
|
|
8907
8894
|
'div',
|
|
8908
8895
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8909
|
-
|
|
8910
|
-
|
|
8896
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8897
|
+
React.createElement(
|
|
8911
8898
|
'style',
|
|
8912
8899
|
{ jsx: 'true' },
|
|
8913
8900
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8915,23 +8902,13 @@ var LightBox = function LightBox(_ref) {
|
|
|
8915
8902
|
);
|
|
8916
8903
|
};
|
|
8917
8904
|
|
|
8918
|
-
var urlFor$3 = function urlFor(source, client) {
|
|
8919
|
-
var builder = imageUrlBuilder(client);
|
|
8920
|
-
return builder.image(source).auto('format');
|
|
8921
|
-
};
|
|
8922
|
-
|
|
8923
|
-
var generateSrcSet = function generateSrcSet(source, client, width) {
|
|
8924
|
-
var builder = imageUrlBuilder(client);
|
|
8925
|
-
return builder.image(source).width(width).fit('max').auto('format').url();
|
|
8926
|
-
};
|
|
8927
|
-
|
|
8928
8905
|
var compareProps = function compareProps(prevProps, nextProps) {
|
|
8929
8906
|
if (nextProps.node.asset && nextProps.node.asset._ref) {
|
|
8930
8907
|
return prevProps.node.asset._ref === nextProps.node.asset._ref;
|
|
8931
8908
|
}
|
|
8932
8909
|
};
|
|
8933
8910
|
|
|
8934
|
-
var FigureImage =
|
|
8911
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8935
8912
|
var node = _ref2.node,
|
|
8936
8913
|
client = _ref2.client,
|
|
8937
8914
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8939,16 +8916,16 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8939
8916
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8940
8917
|
|
|
8941
8918
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8942
|
-
return
|
|
8919
|
+
return React.createElement(
|
|
8943
8920
|
'picture',
|
|
8944
8921
|
null,
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8922
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8923
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8924
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8925
|
+
React.createElement('img', _extends({
|
|
8949
8926
|
style: figureImageStyle,
|
|
8950
8927
|
className: 'figure-image',
|
|
8951
|
-
src: urlFor
|
|
8928
|
+
src: urlFor({ source: node, client: client }),
|
|
8952
8929
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
8953
8930
|
}, !link && {
|
|
8954
8931
|
onClick: function onClick() {
|
|
@@ -9033,13 +9010,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9033
9010
|
|
|
9034
9011
|
var FigureCaption = useCallback(function () {
|
|
9035
9012
|
if (imgcaption && imgcaption.length > 0) {
|
|
9036
|
-
return
|
|
9013
|
+
return React.createElement(
|
|
9037
9014
|
'div',
|
|
9038
9015
|
{ className: 'figure-caption' },
|
|
9039
|
-
|
|
9016
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9040
9017
|
);
|
|
9041
9018
|
} else if (caption) {
|
|
9042
|
-
return
|
|
9019
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9043
9020
|
} else return null;
|
|
9044
9021
|
}, [caption, imgcaption]);
|
|
9045
9022
|
|
|
@@ -9052,28 +9029,28 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9052
9029
|
};
|
|
9053
9030
|
|
|
9054
9031
|
var handleClickFigure = useCallback(function (node, client) {
|
|
9055
|
-
setLightboxImgSrc(urlFor
|
|
9032
|
+
setLightboxImgSrc(urlFor({ source: node, client: client }));
|
|
9056
9033
|
setShowLightbox(true);
|
|
9057
9034
|
}, [node, client]);
|
|
9058
9035
|
|
|
9059
|
-
return
|
|
9060
|
-
|
|
9036
|
+
return React.createElement(
|
|
9037
|
+
React.Fragment,
|
|
9061
9038
|
null,
|
|
9062
|
-
|
|
9063
|
-
Figure$
|
|
9039
|
+
React.createElement(
|
|
9040
|
+
Figure$2,
|
|
9064
9041
|
{ className: '' + class_name, style: figureStyle },
|
|
9065
|
-
link ?
|
|
9042
|
+
link ? React.createElement(
|
|
9066
9043
|
'a',
|
|
9067
9044
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
) :
|
|
9071
|
-
|
|
9045
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9046
|
+
React.createElement(FigureCaption, null)
|
|
9047
|
+
) : React.createElement(
|
|
9048
|
+
React.Fragment,
|
|
9072
9049
|
null,
|
|
9073
|
-
|
|
9074
|
-
|
|
9050
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9051
|
+
React.createElement(FigureCaption, null)
|
|
9075
9052
|
),
|
|
9076
|
-
|
|
9053
|
+
React.createElement(LightBox, {
|
|
9077
9054
|
showLightbox: showLightbox,
|
|
9078
9055
|
lightboxImgSrc: lightboxImgSrc,
|
|
9079
9056
|
closeLightbox: function closeLightbox() {
|
|
@@ -9082,7 +9059,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9082
9059
|
}
|
|
9083
9060
|
})
|
|
9084
9061
|
),
|
|
9085
|
-
|
|
9062
|
+
React.createElement(
|
|
9086
9063
|
'style',
|
|
9087
9064
|
{ jsx: 'true' },
|
|
9088
9065
|
'\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
|
|
@@ -9090,12 +9067,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9090
9067
|
);
|
|
9091
9068
|
};
|
|
9092
9069
|
|
|
9093
|
-
var Figure =
|
|
9094
|
-
|
|
9095
|
-
var urlFor$4 = function urlFor(source, client) {
|
|
9096
|
-
var builder = imageUrlBuilder(client);
|
|
9097
|
-
return builder.image(source).auto('format');
|
|
9098
|
-
};
|
|
9070
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9099
9071
|
|
|
9100
9072
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9101
9073
|
useEffect(function () {
|
|
@@ -9136,68 +9108,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9136
9108
|
imgcaption = _ref.imgcaption;
|
|
9137
9109
|
|
|
9138
9110
|
if (imgcaption && imgcaption.length > 0) {
|
|
9139
|
-
return
|
|
9111
|
+
return React.createElement(
|
|
9140
9112
|
'div',
|
|
9141
9113
|
{ className: 'multi-figure-caption' },
|
|
9142
|
-
|
|
9114
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9143
9115
|
);
|
|
9144
9116
|
} else if (caption) {
|
|
9145
|
-
return
|
|
9117
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9146
9118
|
} else return null;
|
|
9147
9119
|
};
|
|
9148
9120
|
|
|
9149
9121
|
if (images && images.length > 0) {
|
|
9150
|
-
return
|
|
9122
|
+
return React.createElement(
|
|
9151
9123
|
'div',
|
|
9152
9124
|
{ className: 'multi-figure-container' },
|
|
9153
|
-
|
|
9125
|
+
React.createElement(
|
|
9154
9126
|
Row$1,
|
|
9155
9127
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9156
9128
|
images.map(function (image, index) {
|
|
9157
|
-
return
|
|
9129
|
+
return React.createElement(
|
|
9158
9130
|
Col$1,
|
|
9159
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9160
|
-
image.link ?
|
|
9132
|
+
image.link ? React.createElement(
|
|
9161
9133
|
'a',
|
|
9162
|
-
_extends
|
|
9163
|
-
|
|
9134
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
|
+
React.createElement(
|
|
9164
9136
|
'div',
|
|
9165
9137
|
{ className: 'multi-figure-image-container' },
|
|
9166
|
-
|
|
9138
|
+
React.createElement(
|
|
9167
9139
|
LazyLoad,
|
|
9168
9140
|
{ once: true },
|
|
9169
|
-
|
|
9141
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
|
|
9170
9142
|
),
|
|
9171
|
-
|
|
9143
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9172
9144
|
)
|
|
9173
|
-
) :
|
|
9145
|
+
) : React.createElement(
|
|
9174
9146
|
'div',
|
|
9175
9147
|
{ className: 'multi-figure-image-container' },
|
|
9176
|
-
|
|
9148
|
+
React.createElement(
|
|
9177
9149
|
LazyLoad,
|
|
9178
9150
|
{ once: true },
|
|
9179
|
-
|
|
9151
|
+
React.createElement('img', {
|
|
9180
9152
|
'images-count': images.length,
|
|
9181
9153
|
className: 'multi-figure-image',
|
|
9182
|
-
src: urlFor
|
|
9154
|
+
src: urlFor({ source: image.asset, client: client }),
|
|
9183
9155
|
alt: image.alt,
|
|
9184
9156
|
onClick: function onClick() {
|
|
9185
|
-
setOpenImgSrc(urlFor
|
|
9157
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9186
9158
|
setOpenImg(true);
|
|
9187
9159
|
}
|
|
9188
9160
|
})
|
|
9189
9161
|
),
|
|
9190
|
-
|
|
9162
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9191
9163
|
)
|
|
9192
9164
|
);
|
|
9193
9165
|
})
|
|
9194
9166
|
),
|
|
9195
|
-
|
|
9167
|
+
React.createElement(
|
|
9196
9168
|
'div',
|
|
9197
9169
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9198
|
-
|
|
9170
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9199
9171
|
),
|
|
9200
|
-
|
|
9172
|
+
React.createElement(
|
|
9201
9173
|
'style',
|
|
9202
9174
|
{ jsx: 'true' },
|
|
9203
9175
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9219,10 +9191,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9219
9191
|
|
|
9220
9192
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9221
9193
|
|
|
9222
|
-
return
|
|
9194
|
+
return React.createElement(
|
|
9223
9195
|
'div',
|
|
9224
9196
|
{ id: elementId },
|
|
9225
|
-
|
|
9197
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9226
9198
|
);
|
|
9227
9199
|
};
|
|
9228
9200
|
|
|
@@ -9251,7 +9223,7 @@ exports.__esModule = true;
|
|
|
9251
9223
|
|
|
9252
9224
|
|
|
9253
9225
|
|
|
9254
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9226
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9255
9227
|
|
|
9256
9228
|
|
|
9257
9229
|
|
|
@@ -9271,7 +9243,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9271
9243
|
|
|
9272
9244
|
|
|
9273
9245
|
|
|
9274
|
-
var _react2 = _interopRequireDefault(
|
|
9246
|
+
var _react2 = _interopRequireDefault(React);
|
|
9275
9247
|
|
|
9276
9248
|
|
|
9277
9249
|
|
|
@@ -9420,9 +9392,9 @@ var ScriptTag = function (_Component) {
|
|
|
9420
9392
|
|
|
9421
9393
|
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9422
9394
|
// eslint-disable-next-line no-unused-vars
|
|
9423
|
-
var _props3 = this.props
|
|
9424
|
-
|
|
9425
|
-
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9395
|
+
var _props3 = this.props;
|
|
9396
|
+
_props3.isHydrating;
|
|
9397
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9426
9398
|
|
|
9427
9399
|
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9428
9400
|
return _this2.domRef = tag;
|
|
@@ -9430,7 +9402,7 @@ var ScriptTag = function (_Component) {
|
|
|
9430
9402
|
};
|
|
9431
9403
|
|
|
9432
9404
|
return ScriptTag;
|
|
9433
|
-
}(
|
|
9405
|
+
}(React.Component);
|
|
9434
9406
|
|
|
9435
9407
|
ScriptTag.propTypes = {
|
|
9436
9408
|
/**
|
|
@@ -9509,11 +9481,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9509
9481
|
}, []);
|
|
9510
9482
|
|
|
9511
9483
|
if (iframeSrc) {
|
|
9512
|
-
return
|
|
9484
|
+
return React.createElement(
|
|
9513
9485
|
'section',
|
|
9514
9486
|
{ className: 'form-assembly' },
|
|
9515
|
-
|
|
9516
|
-
|
|
9487
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9488
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9517
9489
|
);
|
|
9518
9490
|
}
|
|
9519
9491
|
|
|
@@ -9550,27 +9522,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9550
9522
|
return window.removeEventListener('resize', handleResize);
|
|
9551
9523
|
};
|
|
9552
9524
|
}, []);
|
|
9553
|
-
return
|
|
9525
|
+
return React.createElement(
|
|
9554
9526
|
'div',
|
|
9555
9527
|
{ className: 'blockTableHolder', ref: holder },
|
|
9556
|
-
|
|
9528
|
+
React.createElement(
|
|
9557
9529
|
'div',
|
|
9558
9530
|
{ className: 'blockTable' },
|
|
9559
9531
|
rows && rows.map(function (row) {
|
|
9560
|
-
return
|
|
9532
|
+
return React.createElement(
|
|
9561
9533
|
'div',
|
|
9562
9534
|
{ className: 'blockTableRow' },
|
|
9563
9535
|
row.cells && row.cells.map(function (cell) {
|
|
9564
|
-
return
|
|
9536
|
+
return React.createElement(
|
|
9565
9537
|
'div',
|
|
9566
9538
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9567
|
-
|
|
9539
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9568
9540
|
);
|
|
9569
9541
|
})
|
|
9570
9542
|
);
|
|
9571
9543
|
})
|
|
9572
9544
|
),
|
|
9573
|
-
|
|
9545
|
+
React.createElement(
|
|
9574
9546
|
'style',
|
|
9575
9547
|
{ jsx: true },
|
|
9576
9548
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -9649,12 +9621,12 @@ var getSerializers = function getSerializers() {
|
|
|
9649
9621
|
var node = _ref.node;
|
|
9650
9622
|
var url = node.url;
|
|
9651
9623
|
|
|
9652
|
-
return
|
|
9624
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9653
9625
|
},
|
|
9654
9626
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9655
9627
|
var node = _ref2.node;
|
|
9656
9628
|
|
|
9657
|
-
return
|
|
9629
|
+
return React.createElement(YouTubeGallery, {
|
|
9658
9630
|
nodes: node,
|
|
9659
9631
|
article: article,
|
|
9660
9632
|
meta: meta,
|
|
@@ -9668,7 +9640,7 @@ var getSerializers = function getSerializers() {
|
|
|
9668
9640
|
articleSeries: function articleSeries(_ref3) {
|
|
9669
9641
|
var node = _ref3.node;
|
|
9670
9642
|
|
|
9671
|
-
return
|
|
9643
|
+
return React.createElement(ArticleSeries, {
|
|
9672
9644
|
nodes: node,
|
|
9673
9645
|
accountIDs: videoAccountIDs || {},
|
|
9674
9646
|
pageview: pageview,
|
|
@@ -9681,61 +9653,61 @@ var getSerializers = function getSerializers() {
|
|
|
9681
9653
|
figure: function figure(_ref4) {
|
|
9682
9654
|
var node = _ref4.node;
|
|
9683
9655
|
|
|
9684
|
-
return
|
|
9656
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9685
9657
|
},
|
|
9686
9658
|
multifigure: function multifigure(_ref5) {
|
|
9687
9659
|
var node = _ref5.node;
|
|
9688
9660
|
|
|
9689
|
-
return
|
|
9661
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9690
9662
|
},
|
|
9691
9663
|
slideshow: function slideshow(_ref6) {
|
|
9692
9664
|
var node = _ref6.node;
|
|
9693
9665
|
var slides = node.slides;
|
|
9694
9666
|
|
|
9695
|
-
return
|
|
9667
|
+
return React.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9696
9668
|
},
|
|
9697
9669
|
sidebar: function sidebar(_ref7) {
|
|
9698
9670
|
var node = _ref7.node;
|
|
9699
9671
|
var caption = node.caption,
|
|
9700
9672
|
content = node.content;
|
|
9701
9673
|
|
|
9702
|
-
return
|
|
9674
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9703
9675
|
},
|
|
9704
9676
|
datatable: function datatable(_ref8) {
|
|
9705
9677
|
var node = _ref8.node;
|
|
9706
9678
|
var table = node.table;
|
|
9707
9679
|
|
|
9708
|
-
return
|
|
9680
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9709
9681
|
},
|
|
9710
9682
|
media: function media(_ref9) {
|
|
9711
9683
|
var node = _ref9.node;
|
|
9712
9684
|
|
|
9713
|
-
return
|
|
9685
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9714
9686
|
},
|
|
9715
9687
|
iframe: function iframe(_ref10) {
|
|
9716
9688
|
var node = _ref10.node;
|
|
9717
9689
|
|
|
9718
|
-
return
|
|
9690
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9719
9691
|
},
|
|
9720
9692
|
video: function video(_ref11) {
|
|
9721
9693
|
var node = _ref11.node;
|
|
9722
9694
|
|
|
9723
|
-
return
|
|
9695
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9724
9696
|
},
|
|
9725
9697
|
audio: function audio(_ref12) {
|
|
9726
9698
|
var node = _ref12.node;
|
|
9727
9699
|
|
|
9728
|
-
return
|
|
9700
|
+
return React.createElement(Audio, { node: node });
|
|
9729
9701
|
},
|
|
9730
9702
|
poll: function poll(_ref13) {
|
|
9731
9703
|
var node = _ref13.node;
|
|
9732
9704
|
|
|
9733
|
-
return
|
|
9705
|
+
return React.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9734
9706
|
},
|
|
9735
9707
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9736
9708
|
var node = _ref14.node;
|
|
9737
9709
|
|
|
9738
|
-
return
|
|
9710
|
+
return React.createElement(Poll, {
|
|
9739
9711
|
node: node,
|
|
9740
9712
|
client: client,
|
|
9741
9713
|
pageview: pageview,
|
|
@@ -9749,35 +9721,35 @@ var getSerializers = function getSerializers() {
|
|
|
9749
9721
|
var node = _ref15.node;
|
|
9750
9722
|
var quizzes = node.quizzes;
|
|
9751
9723
|
|
|
9752
|
-
return
|
|
9724
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9753
9725
|
},
|
|
9754
9726
|
leads: function leads(_ref16) {
|
|
9755
9727
|
var node = _ref16.node;
|
|
9756
9728
|
var leadID = node.leadID;
|
|
9757
9729
|
|
|
9758
9730
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9759
|
-
return
|
|
9731
|
+
return React.createElement(Leads, { url: url });
|
|
9760
9732
|
},
|
|
9761
9733
|
slideshows: function slideshows(_ref17) {
|
|
9762
9734
|
var node = _ref17.node;
|
|
9763
9735
|
|
|
9764
|
-
return
|
|
9736
|
+
return React.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9765
9737
|
},
|
|
9766
9738
|
nativeAd: function nativeAd(_ref18) {
|
|
9767
9739
|
var node = _ref18.node;
|
|
9768
9740
|
|
|
9769
|
-
return
|
|
9741
|
+
return React.createElement(NativeAd, { node: node });
|
|
9770
9742
|
},
|
|
9771
9743
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9772
9744
|
var node = _ref19.node;
|
|
9773
9745
|
|
|
9774
|
-
return
|
|
9746
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9775
9747
|
},
|
|
9776
9748
|
hrtag: function hrtag() {
|
|
9777
|
-
return
|
|
9749
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9778
9750
|
},
|
|
9779
9751
|
brtag: function brtag() {
|
|
9780
|
-
return
|
|
9752
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9781
9753
|
},
|
|
9782
9754
|
formstack: function formstack(_ref20) {
|
|
9783
9755
|
var node = _ref20.node;
|
|
@@ -9785,29 +9757,29 @@ var getSerializers = function getSerializers() {
|
|
|
9785
9757
|
Caption = node.Caption,
|
|
9786
9758
|
needSegmentSupport = node.needSegmentSupport;
|
|
9787
9759
|
|
|
9788
|
-
return
|
|
9760
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9789
9761
|
},
|
|
9790
9762
|
formassembly: FormAssembly,
|
|
9791
9763
|
multimedia: function multimedia(_ref21) {
|
|
9792
9764
|
var node = _ref21.node;
|
|
9793
9765
|
|
|
9794
|
-
return
|
|
9766
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9795
9767
|
},
|
|
9796
9768
|
blockTable: function blockTable(_ref22) {
|
|
9797
9769
|
var node = _ref22.node;
|
|
9798
|
-
return
|
|
9770
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9799
9771
|
}
|
|
9800
9772
|
},
|
|
9801
9773
|
marks: {
|
|
9802
9774
|
superscript: function superscript(props) {
|
|
9803
|
-
return
|
|
9775
|
+
return React.createElement(
|
|
9804
9776
|
'sup',
|
|
9805
9777
|
null,
|
|
9806
9778
|
props.children
|
|
9807
9779
|
);
|
|
9808
9780
|
},
|
|
9809
9781
|
subscript: function subscript(props) {
|
|
9810
|
-
return
|
|
9782
|
+
return React.createElement(
|
|
9811
9783
|
'sub',
|
|
9812
9784
|
null,
|
|
9813
9785
|
props.children
|
|
@@ -9823,7 +9795,7 @@ var getSerializers = function getSerializers() {
|
|
|
9823
9795
|
if (href && href.charAt(0) === '#') {
|
|
9824
9796
|
var elementId = href.slice(1);
|
|
9825
9797
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9826
|
-
return
|
|
9798
|
+
return React.createElement(
|
|
9827
9799
|
'a',
|
|
9828
9800
|
{ onClick: function onClick() {
|
|
9829
9801
|
return ScrollToElement(elementId);
|
|
@@ -9833,7 +9805,7 @@ var getSerializers = function getSerializers() {
|
|
|
9833
9805
|
}
|
|
9834
9806
|
|
|
9835
9807
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9836
|
-
return
|
|
9808
|
+
return React.createElement(
|
|
9837
9809
|
'a',
|
|
9838
9810
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9839
9811
|
children
|
|
@@ -9841,7 +9813,7 @@ var getSerializers = function getSerializers() {
|
|
|
9841
9813
|
},
|
|
9842
9814
|
alignleft: function alignleft(_ref23) {
|
|
9843
9815
|
var children = _ref23.children;
|
|
9844
|
-
return
|
|
9816
|
+
return React.createElement(
|
|
9845
9817
|
'div',
|
|
9846
9818
|
{ style: { textAlign: 'left' } },
|
|
9847
9819
|
children
|
|
@@ -9849,7 +9821,7 @@ var getSerializers = function getSerializers() {
|
|
|
9849
9821
|
},
|
|
9850
9822
|
alignright: function alignright(_ref24) {
|
|
9851
9823
|
var children = _ref24.children;
|
|
9852
|
-
return
|
|
9824
|
+
return React.createElement(
|
|
9853
9825
|
'div',
|
|
9854
9826
|
{ style: { textAlign: 'right' } },
|
|
9855
9827
|
children
|
|
@@ -9857,7 +9829,7 @@ var getSerializers = function getSerializers() {
|
|
|
9857
9829
|
},
|
|
9858
9830
|
aligncenter: function aligncenter(_ref25) {
|
|
9859
9831
|
var children = _ref25.children;
|
|
9860
|
-
return
|
|
9832
|
+
return React.createElement(
|
|
9861
9833
|
'div',
|
|
9862
9834
|
{ style: { textAlign: 'center' } },
|
|
9863
9835
|
children
|
|
@@ -9865,7 +9837,7 @@ var getSerializers = function getSerializers() {
|
|
|
9865
9837
|
},
|
|
9866
9838
|
alignjustify: function alignjustify(_ref26) {
|
|
9867
9839
|
var children = _ref26.children;
|
|
9868
|
-
return
|
|
9840
|
+
return React.createElement(
|
|
9869
9841
|
'div',
|
|
9870
9842
|
{ style: { textAlign: 'justify' } },
|
|
9871
9843
|
children
|
|
@@ -9875,7 +9847,7 @@ var getSerializers = function getSerializers() {
|
|
|
9875
9847
|
var children = props.children,
|
|
9876
9848
|
color = props.mark.color;
|
|
9877
9849
|
|
|
9878
|
-
return
|
|
9850
|
+
return React.createElement(
|
|
9879
9851
|
'span',
|
|
9880
9852
|
{ style: { color: color ? color.hex : null } },
|
|
9881
9853
|
children
|