@mjhls/mjh-framework 1.0.810-disable-social-test → 1.0.811-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -31
- package/dist/cjs/AD300x250x600.js +30 -31
- package/dist/cjs/AD728x90.js +33 -34
- package/dist/cjs/ADFloatingFooter.js +32 -33
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -33
- package/dist/cjs/{ADInfeed-77f334bb.js → ADInfeed-7c4b33b3.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -33
- package/dist/cjs/ADSponsoredResources.js +32 -33
- package/dist/cjs/ADWebcast.js +32 -33
- package/dist/cjs/ADWelcome.js +33 -34
- package/dist/cjs/{ADlgInfeed-0664c67f.js → ADlgInfeed-563e0168.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +35 -36
- package/dist/cjs/AdSlotsProvider.js +911 -20
- package/dist/cjs/AlgoliaSearch.js +1066 -1085
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +57 -58
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/Auth.js +462 -686
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +59 -62
- package/dist/cjs/ConferenceArticleCard.js +38 -39
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +103 -107
- package/dist/cjs/DeckQueue.js +88 -92
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
- package/dist/cjs/EventsDeck.js +152 -159
- package/dist/cjs/ExternalResources.js +80 -81
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +178 -182
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +139 -144
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +70 -71
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +71 -76
- package/dist/cjs/IssueLanding.js +71 -72
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -41
- package/dist/cjs/MasterDeck.js +80 -81
- package/dist/cjs/MediaSeriesLanding.js +1123 -1114
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +147 -152
- package/dist/cjs/NavNative.js +139 -147
- package/dist/cjs/NavNormal.js +47 -52
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +108 -109
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +41 -42
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +138 -142
- package/dist/cjs/QueueDeckExpanded.js +294 -294
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +52 -53
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-4abb21b4.js} +41 -42
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +38 -39
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-97dd19a5.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -65
- package/dist/cjs/TaxonomyDescription.js +54 -55
- package/dist/cjs/TemplateNormal.js +76 -77
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +29 -30
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +73 -77
- package/dist/cjs/VideoSeriesCard.js +33 -34
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +262 -265
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +66 -67
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-9d158713.js → extends-0a918631.js} +8 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-c8081c76.js → getTargeting-021d644c.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-667c091e.js → index-7340b76d.js} +1261 -1059
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +162 -166
- package/dist/cjs/{inherits-3ff1b657.js → inherits-9953db94.js} +25 -22
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.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-6ed88032.js → ADInfeed-31055afd.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-e02d1d98.js → ADlgInfeed-dcb27a6c.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -27
- package/dist/esm/AdSlotsProvider.js +909 -17
- package/dist/esm/AlgoliaSearch.js +717 -735
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +445 -665
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.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 +34 -34
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +97 -97
- package/dist/esm/DeckQueue.js +82 -82
- package/dist/esm/{Dfp-43f121ff.js → Dfp-b7236041.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +170 -170
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +115 -115
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +67 -67
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +60 -60
- package/dist/esm/IssueDeck.js +64 -64
- package/dist/esm/IssueLanding.js +68 -68
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +77 -77
- package/dist/esm/MediaSeriesLanding.js +850 -838
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.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 +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +104 -104
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +38 -38
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +52 -52
- package/dist/esm/PublicationLanding.js +125 -125
- package/dist/esm/QueueDeckExpanded.js +274 -274
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-36be7223.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +34 -34
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db5ba548.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -55
- package/dist/esm/TaxonomyDescription.js +49 -49
- package/dist/esm/TemplateNormal.js +72 -72
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +26 -26
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +66 -66
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +41 -41
- package/dist/esm/VideoSeriesListing.js +73 -73
- package/dist/esm/View.js +246 -245
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +50 -50
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-f076879e.js → extends-6f2fcc99.js} +8 -8
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-2302c1b4.js → getTargeting-82e86707.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-d2fb744b.js → index-73a91c0b.js} +1201 -992
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +134 -135
- package/dist/esm/{inherits-f71787cf.js → inherits-cf8dde54.js} +20 -20
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +109 -109
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-025fdc78.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-b5c5aac1.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,64 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
+
var _toObject = require('./_to-object-329a650b.js');
|
|
7
|
+
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
9
|
+
var inherits$1 = require('./inherits-9953db94.js');
|
|
10
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
3
11
|
var React = require('react');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var index = require('./index-efca863c.js');
|
|
7
|
-
var index$1 = require('./index-fc2f1ca2.js');
|
|
8
|
-
var Router = require('next/router');
|
|
9
|
-
var index$2 = require('./index-187c967e.js');
|
|
12
|
+
var React__default = _interopDefault(React);
|
|
13
|
+
var index = require('./index-98e01cb9.js');
|
|
10
14
|
var PropTypes = require('prop-types');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
15
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
16
|
+
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
17
|
+
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
18
|
+
var moment = require('./moment-575fe24c.js');
|
|
19
|
+
var Router = require('next/router');
|
|
20
|
+
var Router__default = _interopDefault(Router);
|
|
21
|
+
var index$1 = require('./index-be0c82be.js');
|
|
22
|
+
var index$2 = require('./index-96b3db50.js');
|
|
23
|
+
var main = require('./main-02daeefe.js');
|
|
24
|
+
var entities = require('./entities-310b46ee.js');
|
|
25
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
14
26
|
var Segment = require('./Segment.js');
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var index$3 = require('./index-
|
|
19
|
-
var _typeof$1 = require('./typeof-88a668c5.js');
|
|
20
|
-
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-a195642e.js');
|
|
27
|
+
var Beam = require('./Beam.js');
|
|
28
|
+
var AdSlot = require('./AdSlot.js');
|
|
29
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
30
|
+
var index$3 = require('./index-187c967e.js');
|
|
21
31
|
var GroupDeck = require('./GroupDeck.js');
|
|
22
|
-
var
|
|
32
|
+
var reactBootstrap = require('react-bootstrap');
|
|
33
|
+
var index_esm = require('./index.esm-90433435.js');
|
|
34
|
+
var util = require('./util-f2c1b65b.js');
|
|
35
|
+
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
36
|
+
var Head = _interopDefault(require('next/head'));
|
|
23
37
|
var SocialShare = require('./SocialShare.js');
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
var AdSlot = require('./AdSlot.js');
|
|
31
|
-
var Row = require('react-bootstrap/Row');
|
|
32
|
-
var Col = require('react-bootstrap/Col');
|
|
33
|
-
var Head = require('next/head');
|
|
34
|
-
var inherits = require('./inherits-3ff1b657.js');
|
|
35
|
-
var index_esm = require('./index.esm-974f47d9.js');
|
|
36
|
-
var Figure$1 = require('react-bootstrap/Figure');
|
|
37
|
-
var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
|
|
38
|
-
|
|
39
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
40
|
-
|
|
41
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
42
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
43
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
44
|
-
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
45
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
46
|
-
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
|
|
47
|
-
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);
|
|
48
|
-
var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
49
|
-
var Figure__default = /*#__PURE__*/_interopDefaultLegacy(Figure$1);
|
|
50
|
-
|
|
51
|
-
var urlFor$4 = function urlFor(source, builder) {
|
|
38
|
+
var _objectToArray = require('./_object-to-array-5762f850.js');
|
|
39
|
+
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
40
|
+
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
41
|
+
var Figure$1 = _interopDefault(require('react-bootstrap/Figure'));
|
|
42
|
+
|
|
43
|
+
var urlFor = function urlFor(source, builder) {
|
|
52
44
|
return builder.image(source).auto('format');
|
|
53
45
|
};
|
|
54
46
|
|
|
55
47
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
56
48
|
var pageNumber = selectedIndex + 1;
|
|
57
49
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
58
|
-
Router__default
|
|
50
|
+
Router__default.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
59
51
|
};
|
|
60
52
|
|
|
61
|
-
var Slideshow
|
|
53
|
+
var Slideshow = function Slideshow(_ref) {
|
|
62
54
|
var slides = _ref.slides,
|
|
63
55
|
client = _ref.client,
|
|
64
56
|
pageview = _ref.pageview;
|
|
@@ -70,7 +62,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
70
62
|
carouselIndex = _useState2[0],
|
|
71
63
|
setCarouselIndex = _useState2[1];
|
|
72
64
|
|
|
73
|
-
var builder = index.imageUrlBuilder(client);
|
|
65
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
74
66
|
|
|
75
67
|
React.useEffect(function () {
|
|
76
68
|
var itemArr = router.asPath.split('?page=');
|
|
@@ -83,24 +75,24 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
83
75
|
}, [router]);
|
|
84
76
|
|
|
85
77
|
React.useEffect(function () {
|
|
86
|
-
index
|
|
78
|
+
index.lib_3.refresh();
|
|
87
79
|
if (pageview) pageview(router.asPath);
|
|
88
80
|
}, [router]);
|
|
89
81
|
|
|
90
|
-
return React__default
|
|
82
|
+
return React__default.createElement(
|
|
91
83
|
'div',
|
|
92
84
|
{ className: 'mt-3 mb-3' },
|
|
93
|
-
React__default
|
|
85
|
+
React__default.createElement(
|
|
94
86
|
reactBootstrap.Carousel,
|
|
95
87
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
96
88
|
return onChangeSlide(selectedIndex, router);
|
|
97
89
|
}, interval: null },
|
|
98
90
|
slides && slides.map(function (slide) {
|
|
99
|
-
return React__default
|
|
91
|
+
return React__default.createElement(
|
|
100
92
|
reactBootstrap.Carousel.Item,
|
|
101
93
|
{ key: slide._key },
|
|
102
|
-
React__default
|
|
103
|
-
slide.caption && React__default
|
|
94
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
95
|
+
slide.caption && React__default.createElement(
|
|
104
96
|
'p',
|
|
105
97
|
{ className: 'p-2' },
|
|
106
98
|
slide.caption
|
|
@@ -111,18 +103,21 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
111
103
|
);
|
|
112
104
|
};
|
|
113
105
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
var isArray = Array.isArray;
|
|
107
|
+
var keyList = Object.keys;
|
|
108
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
117
109
|
|
|
118
110
|
var fastDeepEqual = function equal(a, b) {
|
|
119
111
|
if (a === b) return true;
|
|
120
112
|
|
|
121
113
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
122
|
-
|
|
114
|
+
var arrA = isArray(a)
|
|
115
|
+
, arrB = isArray(b)
|
|
116
|
+
, i
|
|
117
|
+
, length
|
|
118
|
+
, key;
|
|
123
119
|
|
|
124
|
-
|
|
125
|
-
if (Array.isArray(a)) {
|
|
120
|
+
if (arrA && arrB) {
|
|
126
121
|
length = a.length;
|
|
127
122
|
if (length != b.length) return false;
|
|
128
123
|
for (i = length; i-- !== 0;)
|
|
@@ -130,29 +125,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
130
125
|
return true;
|
|
131
126
|
}
|
|
132
127
|
|
|
128
|
+
if (arrA != arrB) return false;
|
|
133
129
|
|
|
130
|
+
var dateA = a instanceof Date
|
|
131
|
+
, dateB = b instanceof Date;
|
|
132
|
+
if (dateA != dateB) return false;
|
|
133
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
if (
|
|
135
|
+
var regexpA = a instanceof RegExp
|
|
136
|
+
, regexpB = b instanceof RegExp;
|
|
137
|
+
if (regexpA != regexpB) return false;
|
|
138
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
138
139
|
|
|
139
|
-
keys =
|
|
140
|
+
var keys = keyList(a);
|
|
140
141
|
length = keys.length;
|
|
141
|
-
|
|
142
|
+
|
|
143
|
+
if (length !== keyList(b).length)
|
|
144
|
+
return false;
|
|
142
145
|
|
|
143
146
|
for (i = length; i-- !== 0;)
|
|
144
|
-
if (!
|
|
147
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
145
148
|
|
|
146
149
|
for (i = length; i-- !== 0;) {
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
key = keys[i];
|
|
149
151
|
if (!equal(a[key], b[key])) return false;
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
return true;
|
|
153
155
|
}
|
|
154
156
|
|
|
155
|
-
// true if both NaN, false otherwise
|
|
156
157
|
return a!==a && b!==b;
|
|
157
158
|
};
|
|
158
159
|
|
|
@@ -690,14 +691,14 @@ function coerce(val) {
|
|
|
690
691
|
return val;
|
|
691
692
|
}
|
|
692
693
|
});
|
|
693
|
-
debug.coerce;
|
|
694
|
-
debug.disable;
|
|
695
|
-
debug.enable;
|
|
696
|
-
debug.enabled;
|
|
697
|
-
debug.humanize;
|
|
698
|
-
debug.names;
|
|
699
|
-
debug.skips;
|
|
700
|
-
debug.formatters;
|
|
694
|
+
var debug_1 = debug.coerce;
|
|
695
|
+
var debug_2 = debug.disable;
|
|
696
|
+
var debug_3 = debug.enable;
|
|
697
|
+
var debug_4 = debug.enabled;
|
|
698
|
+
var debug_5 = debug.humanize;
|
|
699
|
+
var debug_6 = debug.names;
|
|
700
|
+
var debug_7 = debug.skips;
|
|
701
|
+
var debug_8 = debug.formatters;
|
|
701
702
|
|
|
702
703
|
var browser = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
703
704
|
/**
|
|
@@ -886,13 +887,13 @@ function localstorage() {
|
|
|
886
887
|
} catch (e) {}
|
|
887
888
|
}
|
|
888
889
|
});
|
|
889
|
-
browser.log;
|
|
890
|
-
browser.formatArgs;
|
|
891
|
-
browser.save;
|
|
892
|
-
browser.load;
|
|
893
|
-
browser.useColors;
|
|
894
|
-
browser.storage;
|
|
895
|
-
browser.colors;
|
|
890
|
+
var browser_1 = browser.log;
|
|
891
|
+
var browser_2 = browser.formatArgs;
|
|
892
|
+
var browser_3 = browser.save;
|
|
893
|
+
var browser_4 = browser.load;
|
|
894
|
+
var browser_5 = browser.useColors;
|
|
895
|
+
var browser_6 = browser.storage;
|
|
896
|
+
var browser_7 = browser.colors;
|
|
896
897
|
|
|
897
898
|
// MIT lisence
|
|
898
899
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1167,14 +1168,14 @@ function init (debug) {
|
|
|
1167
1168
|
|
|
1168
1169
|
exports.enable(load());
|
|
1169
1170
|
});
|
|
1170
|
-
node.init;
|
|
1171
|
-
node.log;
|
|
1172
|
-
node.formatArgs;
|
|
1173
|
-
node.save;
|
|
1174
|
-
node.load;
|
|
1175
|
-
node.useColors;
|
|
1176
|
-
node.colors;
|
|
1177
|
-
node.inspectOpts;
|
|
1171
|
+
var node_1 = node.init;
|
|
1172
|
+
var node_2 = node.log;
|
|
1173
|
+
var node_3 = node.formatArgs;
|
|
1174
|
+
var node_4 = node.save;
|
|
1175
|
+
var node_5 = node.load;
|
|
1176
|
+
var node_6 = node.useColors;
|
|
1177
|
+
var node_7 = node.colors;
|
|
1178
|
+
var node_8 = node.inspectOpts;
|
|
1178
1179
|
|
|
1179
1180
|
var src = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
1180
1181
|
/**
|
|
@@ -1575,239 +1576,199 @@ module.exports = exports['default'];
|
|
|
1575
1576
|
|
|
1576
1577
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1577
1578
|
|
|
1578
|
-
function
|
|
1579
|
-
|
|
1580
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
|
-
|
|
1582
|
-
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); } }
|
|
1583
|
-
|
|
1584
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1585
|
-
|
|
1586
|
-
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); }
|
|
1587
|
-
|
|
1588
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1589
|
-
|
|
1590
|
-
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); }; }
|
|
1591
|
-
|
|
1592
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1593
|
-
|
|
1594
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1579
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1595
1580
|
|
|
1596
|
-
function
|
|
1581
|
+
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; };
|
|
1597
1582
|
|
|
1598
|
-
function
|
|
1583
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1599
1584
|
|
|
1600
|
-
function
|
|
1585
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1601
1586
|
|
|
1602
|
-
function
|
|
1587
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1603
1588
|
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object}
|
|
1609
|
-
* @param {Object} props
|
|
1589
|
+
/**
|
|
1590
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1591
|
+
*
|
|
1592
|
+
* @param {Object} prevProps
|
|
1593
|
+
* @param {Object} props
|
|
1610
1594
|
*/
|
|
1611
|
-
|
|
1612
1595
|
function shouldUpdateVideo(prevProps, props) {
|
|
1613
1596
|
// A changing video should always trigger an update
|
|
1614
1597
|
if (prevProps.videoId !== props.videoId) {
|
|
1615
1598
|
return true;
|
|
1616
|
-
}
|
|
1617
|
-
// update.
|
|
1618
|
-
|
|
1599
|
+
}
|
|
1619
1600
|
|
|
1601
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
// update.
|
|
1620
1603
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1621
1604
|
var vars = props.opts.playerVars || {};
|
|
1605
|
+
|
|
1622
1606
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1623
1607
|
}
|
|
1624
|
-
/**
|
|
1625
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1626
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1627
|
-
* player reset is necessary.
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object} opts
|
|
1630
|
-
*/
|
|
1631
|
-
|
|
1632
1608
|
|
|
1609
|
+
/**
|
|
1610
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1611
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1612
|
+
* player reset is necessary.
|
|
1613
|
+
*
|
|
1614
|
+
* @param {Object} opts
|
|
1615
|
+
*/
|
|
1633
1616
|
function filterResetOptions(opts) {
|
|
1634
|
-
return
|
|
1635
|
-
playerVars:
|
|
1617
|
+
return _extends({}, opts, {
|
|
1618
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1636
1619
|
autoplay: 0,
|
|
1637
1620
|
start: 0,
|
|
1638
1621
|
end: 0
|
|
1639
|
-
}
|
|
1622
|
+
})
|
|
1640
1623
|
});
|
|
1641
1624
|
}
|
|
1642
|
-
/**
|
|
1643
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1644
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1645
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1646
|
-
* those.
|
|
1647
|
-
*
|
|
1648
|
-
* @param {Object} prevProps
|
|
1649
|
-
* @param {Object} props
|
|
1650
|
-
*/
|
|
1651
|
-
|
|
1652
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1628
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1629
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1630
|
+
* those.
|
|
1631
|
+
*
|
|
1632
|
+
* @param {Object} prevProps
|
|
1633
|
+
* @param {Object} props
|
|
1634
|
+
*/
|
|
1653
1635
|
function shouldResetPlayer(prevProps, props) {
|
|
1654
1636
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1655
1637
|
}
|
|
1656
|
-
/**
|
|
1657
|
-
* Check whether a props change should result in an id or className update.
|
|
1658
|
-
*
|
|
1659
|
-
* @param {Object} prevProps
|
|
1660
|
-
* @param {Object} props
|
|
1661
|
-
*/
|
|
1662
|
-
|
|
1663
1638
|
|
|
1639
|
+
/**
|
|
1640
|
+
* Check whether a props change should result in an id or className update.
|
|
1641
|
+
*
|
|
1642
|
+
* @param {Object} prevProps
|
|
1643
|
+
* @param {Object} props
|
|
1644
|
+
*/
|
|
1664
1645
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1665
1646
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1666
1647
|
}
|
|
1667
1648
|
|
|
1668
|
-
var YouTube =
|
|
1649
|
+
var YouTube = function (_React$Component) {
|
|
1669
1650
|
_inherits(YouTube, _React$Component);
|
|
1670
1651
|
|
|
1671
|
-
var _super = _createSuper(YouTube);
|
|
1672
|
-
|
|
1673
|
-
/**
|
|
1674
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1675
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1676
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1677
|
-
*/
|
|
1678
1652
|
function YouTube(props) {
|
|
1679
|
-
var _this;
|
|
1680
|
-
|
|
1681
1653
|
_classCallCheck(this, YouTube);
|
|
1682
1654
|
|
|
1683
|
-
_this =
|
|
1655
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1684
1656
|
|
|
1685
|
-
|
|
1657
|
+
_this.onPlayerReady = function (event) {
|
|
1686
1658
|
return _this.props.onReady(event);
|
|
1687
|
-
}
|
|
1659
|
+
};
|
|
1688
1660
|
|
|
1689
|
-
|
|
1661
|
+
_this.onPlayerError = function (event) {
|
|
1690
1662
|
return _this.props.onError(event);
|
|
1691
|
-
}
|
|
1663
|
+
};
|
|
1692
1664
|
|
|
1693
|
-
|
|
1665
|
+
_this.onPlayerStateChange = function (event) {
|
|
1694
1666
|
_this.props.onStateChange(event);
|
|
1695
|
-
|
|
1696
1667
|
switch (event.data) {
|
|
1668
|
+
|
|
1697
1669
|
case YouTube.PlayerState.ENDED:
|
|
1698
1670
|
_this.props.onEnd(event);
|
|
1699
|
-
|
|
1700
1671
|
break;
|
|
1701
1672
|
|
|
1702
1673
|
case YouTube.PlayerState.PLAYING:
|
|
1703
1674
|
_this.props.onPlay(event);
|
|
1704
|
-
|
|
1705
1675
|
break;
|
|
1706
1676
|
|
|
1707
1677
|
case YouTube.PlayerState.PAUSED:
|
|
1708
1678
|
_this.props.onPause(event);
|
|
1709
|
-
|
|
1710
1679
|
break;
|
|
1711
1680
|
}
|
|
1712
|
-
}
|
|
1681
|
+
};
|
|
1713
1682
|
|
|
1714
|
-
|
|
1683
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1715
1684
|
return _this.props.onPlaybackRateChange(event);
|
|
1716
|
-
}
|
|
1685
|
+
};
|
|
1717
1686
|
|
|
1718
|
-
|
|
1687
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1719
1688
|
return _this.props.onPlaybackQualityChange(event);
|
|
1720
|
-
}
|
|
1689
|
+
};
|
|
1721
1690
|
|
|
1722
|
-
|
|
1691
|
+
_this.createPlayer = function () {
|
|
1723
1692
|
// do not attempt to create a player server-side, it won't work
|
|
1724
|
-
if (typeof document === 'undefined') return;
|
|
1725
|
-
|
|
1726
|
-
var playerOpts =
|
|
1693
|
+
if (typeof document === 'undefined') return;
|
|
1694
|
+
// create player
|
|
1695
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1727
1696
|
// preload the `videoId` video if one is already given
|
|
1728
1697
|
videoId: _this.props.videoId
|
|
1729
1698
|
});
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1699
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1700
|
+
// attach event handlers
|
|
1733
1701
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1734
|
-
|
|
1735
1702
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1736
|
-
|
|
1737
1703
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1738
|
-
|
|
1739
1704
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1740
|
-
|
|
1741
1705
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1742
|
-
}
|
|
1706
|
+
};
|
|
1743
1707
|
|
|
1744
|
-
|
|
1708
|
+
_this.resetPlayer = function () {
|
|
1745
1709
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1746
|
-
}
|
|
1710
|
+
};
|
|
1747
1711
|
|
|
1748
|
-
|
|
1712
|
+
_this.updatePlayer = function () {
|
|
1749
1713
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1750
1714
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1751
1715
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1752
1716
|
});
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1756
|
-
return _this.internalPlayer;
|
|
1757
|
-
});
|
|
1717
|
+
};
|
|
1758
1718
|
|
|
1759
|
-
|
|
1719
|
+
_this.updateVideo = function () {
|
|
1760
1720
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1761
1721
|
_this.internalPlayer.stopVideo();
|
|
1762
|
-
|
|
1763
1722
|
return;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1723
|
+
}
|
|
1766
1724
|
|
|
1725
|
+
// set queueing options
|
|
1767
1726
|
var autoplay = false;
|
|
1768
1727
|
var opts = {
|
|
1769
1728
|
videoId: _this.props.videoId
|
|
1770
1729
|
};
|
|
1771
|
-
|
|
1772
1730
|
if ('playerVars' in _this.props.opts) {
|
|
1773
1731
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1774
|
-
|
|
1775
1732
|
if ('start' in _this.props.opts.playerVars) {
|
|
1776
1733
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1777
1734
|
}
|
|
1778
|
-
|
|
1779
1735
|
if ('end' in _this.props.opts.playerVars) {
|
|
1780
1736
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1781
1737
|
}
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1738
|
+
}
|
|
1784
1739
|
|
|
1740
|
+
// if autoplay is enabled loadVideoById
|
|
1785
1741
|
if (autoplay) {
|
|
1786
1742
|
_this.internalPlayer.loadVideoById(opts);
|
|
1787
|
-
|
|
1788
1743
|
return;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1744
|
+
}
|
|
1745
|
+
// default behaviour just cues the video
|
|
1792
1746
|
_this.internalPlayer.cueVideoById(opts);
|
|
1793
|
-
}
|
|
1747
|
+
};
|
|
1794
1748
|
|
|
1795
|
-
|
|
1749
|
+
_this.refContainer = function (container) {
|
|
1796
1750
|
_this.container = container;
|
|
1797
|
-
}
|
|
1751
|
+
};
|
|
1798
1752
|
|
|
1799
1753
|
_this.container = null;
|
|
1800
1754
|
_this.internalPlayer = null;
|
|
1801
1755
|
return _this;
|
|
1802
1756
|
}
|
|
1803
1757
|
|
|
1758
|
+
/**
|
|
1759
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1760
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1761
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1762
|
+
*/
|
|
1763
|
+
|
|
1764
|
+
|
|
1804
1765
|
_createClass(YouTube, [{
|
|
1805
|
-
key:
|
|
1766
|
+
key: 'componentDidMount',
|
|
1806
1767
|
value: function componentDidMount() {
|
|
1807
1768
|
this.createPlayer();
|
|
1808
1769
|
}
|
|
1809
1770
|
}, {
|
|
1810
|
-
key:
|
|
1771
|
+
key: 'componentDidUpdate',
|
|
1811
1772
|
value: function componentDidUpdate(prevProps) {
|
|
1812
1773
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1813
1774
|
this.updatePlayer();
|
|
@@ -1822,70 +1783,123 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1822
1783
|
}
|
|
1823
1784
|
}
|
|
1824
1785
|
}, {
|
|
1825
|
-
key:
|
|
1786
|
+
key: 'componentWillUnmount',
|
|
1826
1787
|
value: function componentWillUnmount() {
|
|
1827
|
-
/**
|
|
1828
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1829
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1830
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1831
|
-
* this method isn't quick enough to reset the container element.
|
|
1788
|
+
/**
|
|
1789
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1790
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1791
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1792
|
+
* this method isn't quick enough to reset the container element.
|
|
1832
1793
|
*/
|
|
1833
1794
|
this.internalPlayer.destroy();
|
|
1834
1795
|
}
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1839
|
-
*
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1799
|
+
*
|
|
1800
|
+
* @param {Object} event
|
|
1801
|
+
* @param {Object} target - player object
|
|
1802
|
+
*/
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1807
|
+
*
|
|
1808
|
+
* @param {Object} event
|
|
1809
|
+
* @param {Integer} data - error type
|
|
1810
|
+
* @param {Object} target - player object
|
|
1811
|
+
*/
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Integer} data - status change type
|
|
1819
|
+
* @param {Object} target - actual YT player
|
|
1820
|
+
*/
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1825
|
+
*
|
|
1826
|
+
* @param {Object} event
|
|
1827
|
+
* @param {Float} data - playback rate
|
|
1828
|
+
* @param {Object} target - actual YT player
|
|
1829
|
+
*/
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1834
|
+
*
|
|
1835
|
+
* @param {Object} event
|
|
1836
|
+
* @param {String} data - playback quality
|
|
1837
|
+
* @param {Object} target - actual YT player
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1853
|
+
* React should update this automatically but since the Youtube Player API
|
|
1854
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1855
|
+
*/
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1860
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1861
|
+
* Youtube Player API methods to update the video.
|
|
1840
1862
|
*/
|
|
1841
1863
|
|
|
1842
1864
|
}, {
|
|
1843
|
-
key:
|
|
1865
|
+
key: 'render',
|
|
1844
1866
|
value: function render() {
|
|
1845
|
-
return
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
id: this.props.id,
|
|
1849
|
-
|
|
1850
|
-
ref: this.refContainer
|
|
1851
|
-
}));
|
|
1867
|
+
return React__default.createElement(
|
|
1868
|
+
'div',
|
|
1869
|
+
{ className: this.props.containerClassName },
|
|
1870
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1871
|
+
);
|
|
1852
1872
|
}
|
|
1853
1873
|
}]);
|
|
1854
1874
|
|
|
1855
1875
|
return YouTube;
|
|
1856
|
-
}(React__default
|
|
1857
|
-
|
|
1858
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1859
|
-
UNSTARTED: -1,
|
|
1860
|
-
ENDED: 0,
|
|
1861
|
-
PLAYING: 1,
|
|
1862
|
-
PAUSED: 2,
|
|
1863
|
-
BUFFERING: 3,
|
|
1864
|
-
CUED: 5
|
|
1865
|
-
});
|
|
1876
|
+
}(React__default.Component);
|
|
1866
1877
|
|
|
1867
1878
|
YouTube.propTypes = {
|
|
1868
|
-
videoId: PropTypes__default
|
|
1879
|
+
videoId: PropTypes__default.string,
|
|
1880
|
+
|
|
1869
1881
|
// custom ID for player element
|
|
1870
|
-
id: PropTypes__default
|
|
1882
|
+
id: PropTypes__default.string,
|
|
1883
|
+
|
|
1871
1884
|
// custom class name for player element
|
|
1872
|
-
className: PropTypes__default
|
|
1885
|
+
className: PropTypes__default.string,
|
|
1873
1886
|
// custom class name for player container element
|
|
1874
|
-
containerClassName: PropTypes__default
|
|
1887
|
+
containerClassName: PropTypes__default.string,
|
|
1888
|
+
|
|
1875
1889
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1876
|
-
opts: PropTypes__default
|
|
1890
|
+
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1891
|
+
|
|
1877
1892
|
// event subscriptions
|
|
1878
|
-
onReady: PropTypes__default
|
|
1879
|
-
onError: PropTypes__default
|
|
1880
|
-
onPlay: PropTypes__default
|
|
1881
|
-
onPause: PropTypes__default
|
|
1882
|
-
onEnd: PropTypes__default
|
|
1883
|
-
onStateChange: PropTypes__default
|
|
1884
|
-
onPlaybackRateChange: PropTypes__default
|
|
1885
|
-
onPlaybackQualityChange: PropTypes__default
|
|
1893
|
+
onReady: PropTypes__default.func,
|
|
1894
|
+
onError: PropTypes__default.func,
|
|
1895
|
+
onPlay: PropTypes__default.func,
|
|
1896
|
+
onPause: PropTypes__default.func,
|
|
1897
|
+
onEnd: PropTypes__default.func,
|
|
1898
|
+
onStateChange: PropTypes__default.func,
|
|
1899
|
+
onPlaybackRateChange: PropTypes__default.func,
|
|
1900
|
+
onPlaybackQualityChange: PropTypes__default.func
|
|
1886
1901
|
};
|
|
1887
1902
|
YouTube.defaultProps = {
|
|
1888
|
-
videoId: null,
|
|
1889
1903
|
id: null,
|
|
1890
1904
|
className: null,
|
|
1891
1905
|
opts: {},
|
|
@@ -1899,12 +1913,20 @@ YouTube.defaultProps = {
|
|
|
1899
1913
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1900
1914
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1901
1915
|
};
|
|
1916
|
+
YouTube.PlayerState = {
|
|
1917
|
+
UNSTARTED: -1,
|
|
1918
|
+
ENDED: 0,
|
|
1919
|
+
PLAYING: 1,
|
|
1920
|
+
PAUSED: 2,
|
|
1921
|
+
BUFFERING: 3,
|
|
1922
|
+
CUED: 5
|
|
1923
|
+
};
|
|
1902
1924
|
|
|
1903
1925
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1904
1926
|
var url = _ref.url,
|
|
1905
1927
|
autoplay = _ref.autoplay;
|
|
1906
1928
|
|
|
1907
|
-
var id = index$
|
|
1929
|
+
var id = index$3.getYoutubeId(url);
|
|
1908
1930
|
|
|
1909
1931
|
var _useState = React.useState(false),
|
|
1910
1932
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -1937,8 +1959,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1937
1959
|
var duration = player.getDuration();
|
|
1938
1960
|
var queue = Math.floor(duration / 10);
|
|
1939
1961
|
var segment = Math.floor(current / queue);
|
|
1940
|
-
Beam.report_beam_video('Ready', main.
|
|
1941
|
-
Segment.report_video_event('Video Ready', main.
|
|
1962
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
1963
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
1942
1964
|
};
|
|
1943
1965
|
|
|
1944
1966
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1948,8 +1970,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1948
1970
|
var segment = Math.floor(current / queue);
|
|
1949
1971
|
|
|
1950
1972
|
if (!queueProgress.includes(segment)) {
|
|
1951
|
-
Beam.report_beam_video('Segment', main.
|
|
1952
|
-
Segment.report_video_event('Video Segment', main.
|
|
1973
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
1974
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
1953
1975
|
queueProgress.push(segment);
|
|
1954
1976
|
}
|
|
1955
1977
|
};
|
|
@@ -1962,8 +1984,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1962
1984
|
var queue = Math.floor(duration / 10);
|
|
1963
1985
|
var segment = Math.floor(current / queue);
|
|
1964
1986
|
|
|
1965
|
-
Beam.report_beam_video('Play', main.
|
|
1966
|
-
Segment.report_video_event('Video Play', main.
|
|
1987
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
1988
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
1967
1989
|
|
|
1968
1990
|
if (!playReported) {
|
|
1969
1991
|
setPlayReported(true);
|
|
@@ -1982,8 +2004,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1982
2004
|
var queue = Math.floor(duration / 10);
|
|
1983
2005
|
var segment = Math.floor(current / queue);
|
|
1984
2006
|
|
|
1985
|
-
Beam.report_beam_video('End', main.
|
|
1986
|
-
Segment.report_video_event('Video End', main.
|
|
2007
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
2008
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
1987
2009
|
setEndReported(true);
|
|
1988
2010
|
clearInterval(intervalID);
|
|
1989
2011
|
}
|
|
@@ -1996,15 +2018,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1996
2018
|
var queue = Math.floor(duration / 10);
|
|
1997
2019
|
var segment = Math.floor(current / queue);
|
|
1998
2020
|
|
|
1999
|
-
Beam.report_beam_video('Pause', main.
|
|
2000
|
-
Segment.report_video_event('Video Pause', main.
|
|
2021
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
2022
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
2001
2023
|
};
|
|
2002
2024
|
|
|
2003
|
-
return React__default
|
|
2025
|
+
return React__default.createElement(
|
|
2004
2026
|
'div',
|
|
2005
2027
|
{ id: 'fluid-video-container' },
|
|
2006
|
-
React__default
|
|
2007
|
-
React__default
|
|
2028
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2029
|
+
React__default.createElement(
|
|
2008
2030
|
'style',
|
|
2009
2031
|
{ jsx: 'true' },
|
|
2010
2032
|
'\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 '
|
|
@@ -2017,20 +2039,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2017
2039
|
content = _ref.content,
|
|
2018
2040
|
getSerializers = _ref.getSerializers;
|
|
2019
2041
|
|
|
2020
|
-
return React__default
|
|
2042
|
+
return React__default.createElement(
|
|
2021
2043
|
'article',
|
|
2022
2044
|
{ className: 'sidebar' },
|
|
2023
|
-
React__default
|
|
2045
|
+
React__default.createElement(
|
|
2024
2046
|
'div',
|
|
2025
2047
|
null,
|
|
2026
|
-
React__default
|
|
2048
|
+
React__default.createElement(
|
|
2027
2049
|
'h3',
|
|
2028
2050
|
null,
|
|
2029
2051
|
caption
|
|
2030
2052
|
),
|
|
2031
|
-
React__default
|
|
2053
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
2032
2054
|
),
|
|
2033
|
-
React__default
|
|
2055
|
+
React__default.createElement(
|
|
2034
2056
|
'style',
|
|
2035
2057
|
{ jsx: 'true' },
|
|
2036
2058
|
'\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 '
|
|
@@ -2041,18 +2063,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2041
2063
|
var TableShow = function TableShow(_ref) {
|
|
2042
2064
|
var rows = _ref.rows;
|
|
2043
2065
|
|
|
2044
|
-
return React__default
|
|
2066
|
+
return React__default.createElement(
|
|
2045
2067
|
reactBootstrap.Table,
|
|
2046
2068
|
{ bordered: true, hover: true, responsive: true },
|
|
2047
|
-
React__default
|
|
2069
|
+
React__default.createElement(
|
|
2048
2070
|
'tbody',
|
|
2049
2071
|
null,
|
|
2050
2072
|
rows && rows.map(function (row) {
|
|
2051
|
-
return React__default
|
|
2073
|
+
return React__default.createElement(
|
|
2052
2074
|
'tr',
|
|
2053
2075
|
{ key: row._key },
|
|
2054
2076
|
row.cells && row.cells.map(function (cell, index) {
|
|
2055
|
-
return cell && React__default
|
|
2077
|
+
return cell && React__default.createElement(
|
|
2056
2078
|
'td',
|
|
2057
2079
|
{ key: index },
|
|
2058
2080
|
cell
|
|
@@ -2080,7 +2102,7 @@ var Media = function Media(_ref) {
|
|
|
2080
2102
|
_node$disableTextWrap = node.disableTextWrap,
|
|
2081
2103
|
disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
|
|
2082
2104
|
|
|
2083
|
-
var builder = index.imageUrlBuilder(client);
|
|
2105
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
2084
2106
|
|
|
2085
2107
|
var urlFor = function urlFor(source) {
|
|
2086
2108
|
return builder.image(source).auto('format');
|
|
@@ -2155,18 +2177,18 @@ var Media = function Media(_ref) {
|
|
|
2155
2177
|
margin: imageMargin
|
|
2156
2178
|
};
|
|
2157
2179
|
|
|
2158
|
-
return React__default
|
|
2180
|
+
return React__default.createElement(
|
|
2159
2181
|
reactBootstrap.Figure,
|
|
2160
2182
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2161
|
-
React__default
|
|
2183
|
+
React__default.createElement(
|
|
2162
2184
|
'a',
|
|
2163
2185
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2164
|
-
React__default
|
|
2165
|
-
index$
|
|
2186
|
+
React__default.createElement(
|
|
2187
|
+
index$2.LazyLoad,
|
|
2166
2188
|
{ once: true },
|
|
2167
|
-
React__default
|
|
2189
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2168
2190
|
),
|
|
2169
|
-
caption && React__default
|
|
2191
|
+
caption && React__default.createElement(
|
|
2170
2192
|
reactBootstrap.Figure.Caption,
|
|
2171
2193
|
{ className: 'media-caption' },
|
|
2172
2194
|
caption
|
|
@@ -2174,9 +2196,9 @@ var Media = function Media(_ref) {
|
|
|
2174
2196
|
)
|
|
2175
2197
|
);
|
|
2176
2198
|
} else if (caption && caption !== '') {
|
|
2177
|
-
return React__default
|
|
2199
|
+
return React__default.createElement(
|
|
2178
2200
|
'a',
|
|
2179
|
-
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2201
|
+
_extends$1._extends({}, uploadDoc.downloadMedia ? {
|
|
2180
2202
|
href: uploadDoc.asset.url + '?dl='
|
|
2181
2203
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2182
2204
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2194,10 +2216,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2194
2216
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2195
2217
|
|
|
2196
2218
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2197
|
-
return React__default
|
|
2219
|
+
return React__default.createElement(
|
|
2198
2220
|
'div',
|
|
2199
2221
|
{ className: 'd-block text-center mb-3' },
|
|
2200
|
-
React__default
|
|
2222
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2201
2223
|
);
|
|
2202
2224
|
};
|
|
2203
2225
|
|
|
@@ -2231,8 +2253,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2231
2253
|
var duration = player.duration;
|
|
2232
2254
|
var queue = Math.floor(duration / 10);
|
|
2233
2255
|
var segment = Math.floor(current / queue);
|
|
2234
|
-
Beam.report_beam_video('Ready', main.
|
|
2235
|
-
Segment.report_video_event('Video Ready', main.
|
|
2256
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2257
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'MP4');
|
|
2236
2258
|
};
|
|
2237
2259
|
|
|
2238
2260
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2241,8 +2263,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2241
2263
|
var queue = Math.floor(duration / 10);
|
|
2242
2264
|
var segment = Math.floor(current / queue);
|
|
2243
2265
|
if (!queueProgress.includes(segment)) {
|
|
2244
|
-
Beam.report_beam_video('Segment', main.
|
|
2245
|
-
Segment.report_video_event('Video Segment', main.
|
|
2266
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2267
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'MP4');
|
|
2246
2268
|
queueProgress.push(segment);
|
|
2247
2269
|
}
|
|
2248
2270
|
};
|
|
@@ -2254,8 +2276,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2254
2276
|
var duration = player.duration;
|
|
2255
2277
|
var queue = Math.floor(duration / 10);
|
|
2256
2278
|
var segment = Math.floor(current / queue);
|
|
2257
|
-
Beam.report_beam_video('Play', main.
|
|
2258
|
-
Segment.report_video_event('Video Play', main.
|
|
2279
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'MP4');
|
|
2280
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'MP4');
|
|
2259
2281
|
|
|
2260
2282
|
if (!playReported) {
|
|
2261
2283
|
event.persist();
|
|
@@ -2275,8 +2297,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2275
2297
|
var queue = Math.floor(duration / 10);
|
|
2276
2298
|
var segment = Math.floor(current / queue);
|
|
2277
2299
|
|
|
2278
|
-
Beam.report_beam_video('End', main.
|
|
2279
|
-
Segment.report_video_event('Video End', main.
|
|
2300
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'MP4');
|
|
2301
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'MP4');
|
|
2280
2302
|
setEndReported(true);
|
|
2281
2303
|
clearInterval(intervalID);
|
|
2282
2304
|
}
|
|
@@ -2288,14 +2310,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2288
2310
|
var duration = player.duration - current;
|
|
2289
2311
|
var queue = Math.floor(duration / 10);
|
|
2290
2312
|
var segment = Math.floor(current / queue);
|
|
2291
|
-
Beam.report_beam_video('Pause', main.
|
|
2292
|
-
Segment.report_video_event('Video Pause', main.
|
|
2313
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2314
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'MP4');
|
|
2293
2315
|
};
|
|
2294
2316
|
|
|
2295
|
-
return React__default
|
|
2317
|
+
return React__default.createElement(
|
|
2296
2318
|
'div',
|
|
2297
2319
|
null,
|
|
2298
|
-
vidLoaded && React__default
|
|
2320
|
+
vidLoaded && React__default.createElement(
|
|
2299
2321
|
'video',
|
|
2300
2322
|
{
|
|
2301
2323
|
poster: thumbnail || '',
|
|
@@ -2313,7 +2335,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2313
2335
|
onPlay: function onPlay(e) {
|
|
2314
2336
|
return handleOnPlay(e);
|
|
2315
2337
|
} },
|
|
2316
|
-
React__default
|
|
2338
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2317
2339
|
'Your browser does not support the video tag.'
|
|
2318
2340
|
)
|
|
2319
2341
|
);
|
|
@@ -2378,8 +2400,8 @@ var Video = function Video(_ref) {
|
|
|
2378
2400
|
player.pause();
|
|
2379
2401
|
}
|
|
2380
2402
|
|
|
2381
|
-
Beam.report_beam_video('Ready', main.
|
|
2382
|
-
Segment.report_video_event('Video Ready', main.
|
|
2403
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2404
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2383
2405
|
});
|
|
2384
2406
|
|
|
2385
2407
|
// play
|
|
@@ -2388,8 +2410,8 @@ var Video = function Video(_ref) {
|
|
|
2388
2410
|
var current = player.currentTime();
|
|
2389
2411
|
var queue = Math.floor(duration / 10);
|
|
2390
2412
|
var segment = Math.floor(current / queue);
|
|
2391
|
-
Beam.report_beam_video('Play', main.
|
|
2392
|
-
Segment.report_video_event('Video Play', main.
|
|
2413
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2414
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2393
2415
|
});
|
|
2394
2416
|
|
|
2395
2417
|
// pause
|
|
@@ -2398,8 +2420,8 @@ var Video = function Video(_ref) {
|
|
|
2398
2420
|
var current = player.currentTime();
|
|
2399
2421
|
var queue = Math.floor(duration / 10);
|
|
2400
2422
|
var segment = Math.floor(current / queue);
|
|
2401
|
-
Beam.report_beam_video('Pause', main.
|
|
2402
|
-
Segment.report_video_event('Video Pause', main.
|
|
2423
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2424
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2403
2425
|
});
|
|
2404
2426
|
|
|
2405
2427
|
// end
|
|
@@ -2408,8 +2430,8 @@ var Video = function Video(_ref) {
|
|
|
2408
2430
|
var current = player.currentTime();
|
|
2409
2431
|
var queue = Math.floor(duration / 10);
|
|
2410
2432
|
var segment = Math.floor(current / queue);
|
|
2411
|
-
Beam.report_beam_video('End', main.
|
|
2412
|
-
Segment.report_video_event('Video End', main.
|
|
2433
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2434
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2413
2435
|
autoplayNextVideo(evt);
|
|
2414
2436
|
});
|
|
2415
2437
|
|
|
@@ -2420,8 +2442,8 @@ var Video = function Video(_ref) {
|
|
|
2420
2442
|
var queue = Math.floor(duration / 10);
|
|
2421
2443
|
var segment = Math.floor(current / queue);
|
|
2422
2444
|
if (!queueProgress.includes(segment)) {
|
|
2423
|
-
Beam.report_beam_video('Segment', main.
|
|
2424
|
-
Segment.report_video_event('Video Segment', main.
|
|
2445
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2446
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2425
2447
|
queueProgress.push(segment);
|
|
2426
2448
|
}
|
|
2427
2449
|
});
|
|
@@ -2432,8 +2454,8 @@ var Video = function Video(_ref) {
|
|
|
2432
2454
|
var id = player.ads.ad.id;
|
|
2433
2455
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2434
2456
|
|
|
2435
|
-
Beam.report_beam_ad('AD Started', main.
|
|
2436
|
-
Segment.report_ad_event('Video Ad Started', main.
|
|
2457
|
+
Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2458
|
+
Segment.report_ad_event('Video Ad Started', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2437
2459
|
});
|
|
2438
2460
|
|
|
2439
2461
|
// ad ended
|
|
@@ -2441,60 +2463,60 @@ var Video = function Video(_ref) {
|
|
|
2441
2463
|
var duration = player.ads.ad.duration;
|
|
2442
2464
|
var id = player.ads.ad.id;
|
|
2443
2465
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2444
|
-
Beam.report_beam_ad('AD Ended', main.
|
|
2445
|
-
Segment.report_ad_event('Video Ad Ended', main.
|
|
2466
|
+
Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
|
|
2467
|
+
Segment.report_ad_event('Video Ad Ended', main.main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2446
2468
|
});
|
|
2447
2469
|
};
|
|
2448
2470
|
|
|
2449
2471
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2450
2472
|
if (videoID) {
|
|
2451
|
-
return React__default
|
|
2473
|
+
return React__default.createElement(
|
|
2452
2474
|
'div',
|
|
2453
2475
|
null,
|
|
2454
|
-
React__default
|
|
2476
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2455
2477
|
onSuccess: onVideoSuccess,
|
|
2456
2478
|
accountId: accountIDs.brightcove.accountId,
|
|
2457
2479
|
videoId: videoID,
|
|
2458
2480
|
playerId: accountIDs.brightcove.playerId,
|
|
2459
2481
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2460
2482
|
}),
|
|
2461
|
-
React__default
|
|
2483
|
+
React__default.createElement(
|
|
2462
2484
|
'style',
|
|
2463
2485
|
{ jsx: 'true' },
|
|
2464
2486
|
'\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 '
|
|
2465
2487
|
)
|
|
2466
2488
|
);
|
|
2467
2489
|
} else if (playlistID) {
|
|
2468
|
-
return React__default
|
|
2490
|
+
return React__default.createElement(
|
|
2469
2491
|
'div',
|
|
2470
2492
|
null,
|
|
2471
|
-
React__default
|
|
2493
|
+
React__default.createElement(brightcoveReactPlayerLoader_es.ReactPlayerLoader, {
|
|
2472
2494
|
accountId: accountIDs.brightcove.accountId,
|
|
2473
2495
|
playlistId: playlistID,
|
|
2474
2496
|
playerId: accountIDs.brightcove.playerId,
|
|
2475
2497
|
onSuccess: onVideoSuccess,
|
|
2476
2498
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2477
2499
|
}),
|
|
2478
|
-
React__default
|
|
2500
|
+
React__default.createElement(
|
|
2479
2501
|
'style',
|
|
2480
2502
|
{ jsx: 'true' },
|
|
2481
2503
|
'\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 '
|
|
2482
2504
|
)
|
|
2483
2505
|
);
|
|
2484
2506
|
} else if (experienceID) {
|
|
2485
|
-
return React__default
|
|
2507
|
+
return React__default.createElement(
|
|
2486
2508
|
'div',
|
|
2487
2509
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2488
|
-
videoLoaded && React__default
|
|
2510
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2489
2511
|
);
|
|
2490
2512
|
}
|
|
2491
2513
|
return null;
|
|
2492
2514
|
}
|
|
2493
2515
|
if (source === 'mp4') {
|
|
2494
|
-
return React__default
|
|
2516
|
+
return React__default.createElement(
|
|
2495
2517
|
'div',
|
|
2496
2518
|
null,
|
|
2497
|
-
React__default
|
|
2519
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2498
2520
|
);
|
|
2499
2521
|
}
|
|
2500
2522
|
|
|
@@ -2509,7 +2531,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2509
2531
|
});
|
|
2510
2532
|
exports.DEPRECATED_CONFIG_PROPS = exports.defaultProps = exports.propTypes = void 0;
|
|
2511
2533
|
|
|
2512
|
-
var _propTypes = _interopRequireDefault(PropTypes__default
|
|
2534
|
+
var _propTypes = _interopRequireDefault(PropTypes__default);
|
|
2513
2535
|
|
|
2514
2536
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
2515
2537
|
|
|
@@ -2705,9 +2727,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2705
2727
|
});
|
|
2706
2728
|
|
|
2707
2729
|
_commonjsHelpers.unwrapExports(props);
|
|
2708
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2709
|
-
props.defaultProps;
|
|
2710
|
-
props.propTypes;
|
|
2730
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2731
|
+
var props_2 = props.defaultProps;
|
|
2732
|
+
var props_3 = props.propTypes;
|
|
2711
2733
|
|
|
2712
2734
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2713
2735
|
return isNonNullObject(value)
|
|
@@ -2872,17 +2894,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2872
2894
|
|
|
2873
2895
|
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; }
|
|
2874
2896
|
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2877
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2878
|
-
|
|
2879
|
-
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."); }
|
|
2880
|
-
|
|
2881
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
2897
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2882
2898
|
|
|
2883
|
-
function
|
|
2899
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2884
2900
|
|
|
2885
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
2901
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2886
2902
|
|
|
2887
2903
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2888
2904
|
|
|
@@ -3012,12 +3028,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3012
3028
|
|
|
3013
3029
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3014
3030
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3015
|
-
|
|
3016
|
-
var
|
|
3017
|
-
|
|
3031
|
+
var _iteratorNormalCompletion = true;
|
|
3032
|
+
var _didIteratorError = false;
|
|
3033
|
+
var _iteratorError = undefined;
|
|
3018
3034
|
|
|
3019
3035
|
try {
|
|
3020
|
-
for (_iterator.
|
|
3036
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3021
3037
|
var p = _step.value;
|
|
3022
3038
|
|
|
3023
3039
|
if (props$1[p]) {
|
|
@@ -3032,9 +3048,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3032
3048
|
}
|
|
3033
3049
|
}
|
|
3034
3050
|
} catch (err) {
|
|
3035
|
-
|
|
3051
|
+
_didIteratorError = true;
|
|
3052
|
+
_iteratorError = err;
|
|
3036
3053
|
} finally {
|
|
3037
|
-
|
|
3054
|
+
try {
|
|
3055
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3056
|
+
_iterator["return"]();
|
|
3057
|
+
}
|
|
3058
|
+
} finally {
|
|
3059
|
+
if (_didIteratorError) {
|
|
3060
|
+
throw _iteratorError;
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3038
3063
|
}
|
|
3039
3064
|
|
|
3040
3065
|
return config;
|
|
@@ -3099,7 +3124,7 @@ function isEqual(a, b) {
|
|
|
3099
3124
|
return true;
|
|
3100
3125
|
}
|
|
3101
3126
|
|
|
3102
|
-
if ((0, React__default
|
|
3127
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3103
3128
|
return true;
|
|
3104
3129
|
}
|
|
3105
3130
|
|
|
@@ -3142,17 +3167,17 @@ function isMediaStream(url) {
|
|
|
3142
3167
|
});
|
|
3143
3168
|
|
|
3144
3169
|
_commonjsHelpers.unwrapExports(utils);
|
|
3145
|
-
utils.parseStartTime;
|
|
3146
|
-
utils.parseEndTime;
|
|
3147
|
-
utils.randomString;
|
|
3148
|
-
utils.queryString;
|
|
3149
|
-
utils.getSDK;
|
|
3150
|
-
utils.getConfig;
|
|
3151
|
-
utils.omit;
|
|
3152
|
-
utils.callPlayer;
|
|
3153
|
-
utils.isObject;
|
|
3154
|
-
utils.isEqual;
|
|
3155
|
-
utils.isMediaStream;
|
|
3170
|
+
var utils_1 = utils.parseStartTime;
|
|
3171
|
+
var utils_2 = utils.parseEndTime;
|
|
3172
|
+
var utils_3 = utils.randomString;
|
|
3173
|
+
var utils_4 = utils.queryString;
|
|
3174
|
+
var utils_5 = utils.getSDK;
|
|
3175
|
+
var utils_6 = utils.getConfig;
|
|
3176
|
+
var utils_7 = utils.omit;
|
|
3177
|
+
var utils_8 = utils.callPlayer;
|
|
3178
|
+
var utils_9 = utils.isObject;
|
|
3179
|
+
var utils_10 = utils.isEqual;
|
|
3180
|
+
var utils_11 = utils.isMediaStream;
|
|
3156
3181
|
|
|
3157
3182
|
var Player_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
3158
3183
|
|
|
@@ -3161,7 +3186,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3161
3186
|
});
|
|
3162
3187
|
exports["default"] = void 0;
|
|
3163
3188
|
|
|
3164
|
-
var _react = _interopRequireWildcard(React__default
|
|
3189
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3165
3190
|
|
|
3166
3191
|
|
|
3167
3192
|
|
|
@@ -3181,16 +3206,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3181
3206
|
|
|
3182
3207
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3183
3208
|
|
|
3184
|
-
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); }; }
|
|
3185
|
-
|
|
3186
3209
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3187
3210
|
|
|
3188
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3189
|
-
|
|
3190
|
-
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; } }
|
|
3191
|
-
|
|
3192
3211
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3193
3212
|
|
|
3213
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3214
|
+
|
|
3194
3215
|
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); }
|
|
3195
3216
|
|
|
3196
3217
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3199,12 +3220,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3199
3220
|
|
|
3200
3221
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3201
3222
|
|
|
3202
|
-
var Player =
|
|
3223
|
+
var Player =
|
|
3224
|
+
/*#__PURE__*/
|
|
3225
|
+
function (_Component) {
|
|
3203
3226
|
_inherits(Player, _Component);
|
|
3204
3227
|
|
|
3205
|
-
var _super = _createSuper(Player);
|
|
3206
|
-
|
|
3207
3228
|
function Player() {
|
|
3229
|
+
var _getPrototypeOf2;
|
|
3230
|
+
|
|
3208
3231
|
var _this;
|
|
3209
3232
|
|
|
3210
3233
|
_classCallCheck(this, Player);
|
|
@@ -3213,7 +3236,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3213
3236
|
_args[_key] = arguments[_key];
|
|
3214
3237
|
}
|
|
3215
3238
|
|
|
3216
|
-
_this =
|
|
3239
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3217
3240
|
|
|
3218
3241
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3219
3242
|
|
|
@@ -3538,7 +3561,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3538
3561
|
return null;
|
|
3539
3562
|
}
|
|
3540
3563
|
|
|
3541
|
-
return
|
|
3564
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3542
3565
|
ref: this.ref,
|
|
3543
3566
|
onReady: this.handleReady,
|
|
3544
3567
|
onPlay: this.handlePlay,
|
|
@@ -3571,7 +3594,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3571
3594
|
});
|
|
3572
3595
|
exports["default"] = createSinglePlayer;
|
|
3573
3596
|
|
|
3574
|
-
var _react = _interopRequireWildcard(React__default
|
|
3597
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3575
3598
|
|
|
3576
3599
|
|
|
3577
3600
|
|
|
@@ -3599,16 +3622,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3599
3622
|
|
|
3600
3623
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3601
3624
|
|
|
3602
|
-
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); }; }
|
|
3603
|
-
|
|
3604
3625
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3605
3626
|
|
|
3606
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3607
|
-
|
|
3608
|
-
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; } }
|
|
3609
|
-
|
|
3610
3627
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3611
3628
|
|
|
3629
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3630
|
+
|
|
3612
3631
|
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); }
|
|
3613
3632
|
|
|
3614
3633
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3620,12 +3639,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3620
3639
|
function createSinglePlayer(activePlayer) {
|
|
3621
3640
|
var _class, _temp;
|
|
3622
3641
|
|
|
3623
|
-
return _temp = _class =
|
|
3642
|
+
return _temp = _class =
|
|
3643
|
+
/*#__PURE__*/
|
|
3644
|
+
function (_Component) {
|
|
3624
3645
|
_inherits(SinglePlayer, _Component);
|
|
3625
3646
|
|
|
3626
|
-
var _super = _createSuper(SinglePlayer);
|
|
3627
|
-
|
|
3628
3647
|
function SinglePlayer() {
|
|
3648
|
+
var _getPrototypeOf2;
|
|
3649
|
+
|
|
3629
3650
|
var _this;
|
|
3630
3651
|
|
|
3631
3652
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3634,7 +3655,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3634
3655
|
args[_key] = arguments[_key];
|
|
3635
3656
|
}
|
|
3636
3657
|
|
|
3637
|
-
_this =
|
|
3658
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3638
3659
|
|
|
3639
3660
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3640
3661
|
|
|
@@ -3702,12 +3723,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3702
3723
|
height = _this$props.height,
|
|
3703
3724
|
Wrapper = _this$props.wrapper;
|
|
3704
3725
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3705
|
-
return
|
|
3726
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3706
3727
|
style: _objectSpread({}, style, {
|
|
3707
3728
|
width: width,
|
|
3708
3729
|
height: height
|
|
3709
3730
|
})
|
|
3710
|
-
}, otherProps),
|
|
3731
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3711
3732
|
ref: this.ref,
|
|
3712
3733
|
activePlayer: activePlayer,
|
|
3713
3734
|
config: this.config
|
|
@@ -3729,7 +3750,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3729
3750
|
});
|
|
3730
3751
|
exports["default"] = exports.YouTube = void 0;
|
|
3731
3752
|
|
|
3732
|
-
var _react = _interopRequireWildcard(React__default
|
|
3753
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3733
3754
|
|
|
3734
3755
|
|
|
3735
3756
|
|
|
@@ -3753,31 +3774,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3753
3774
|
|
|
3754
3775
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3755
3776
|
|
|
3756
|
-
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); }; }
|
|
3757
|
-
|
|
3758
3777
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3759
3778
|
|
|
3760
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3761
|
-
|
|
3762
|
-
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; } }
|
|
3763
|
-
|
|
3764
3779
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3765
3780
|
|
|
3781
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3782
|
+
|
|
3766
3783
|
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); }
|
|
3767
3784
|
|
|
3768
3785
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3769
3786
|
|
|
3770
3787
|
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; }
|
|
3771
3788
|
|
|
3772
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3773
|
-
|
|
3774
|
-
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."); }
|
|
3789
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3775
3790
|
|
|
3776
|
-
function
|
|
3791
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3777
3792
|
|
|
3778
|
-
function
|
|
3779
|
-
|
|
3780
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3793
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3781
3794
|
|
|
3782
3795
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3783
3796
|
|
|
@@ -3802,12 +3815,14 @@ function parsePlaylist(url) {
|
|
|
3802
3815
|
return {};
|
|
3803
3816
|
}
|
|
3804
3817
|
|
|
3805
|
-
var YouTube =
|
|
3818
|
+
var YouTube =
|
|
3819
|
+
/*#__PURE__*/
|
|
3820
|
+
function (_Component) {
|
|
3806
3821
|
_inherits(YouTube, _Component);
|
|
3807
3822
|
|
|
3808
|
-
var _super = _createSuper(YouTube);
|
|
3809
|
-
|
|
3810
3823
|
function YouTube() {
|
|
3824
|
+
var _getPrototypeOf2;
|
|
3825
|
+
|
|
3811
3826
|
var _this;
|
|
3812
3827
|
|
|
3813
3828
|
_classCallCheck(this, YouTube);
|
|
@@ -3816,7 +3831,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3816
3831
|
args[_key] = arguments[_key];
|
|
3817
3832
|
}
|
|
3818
3833
|
|
|
3819
|
-
_this =
|
|
3834
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3820
3835
|
|
|
3821
3836
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3822
3837
|
|
|
@@ -4004,9 +4019,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
4004
4019
|
height: '100%',
|
|
4005
4020
|
display: display
|
|
4006
4021
|
};
|
|
4007
|
-
return
|
|
4022
|
+
return _react["default"].createElement("div", {
|
|
4008
4023
|
style: style
|
|
4009
|
-
},
|
|
4024
|
+
}, _react["default"].createElement("div", {
|
|
4010
4025
|
ref: this.ref
|
|
4011
4026
|
}));
|
|
4012
4027
|
}
|
|
@@ -4029,7 +4044,7 @@ exports["default"] = _default;
|
|
|
4029
4044
|
});
|
|
4030
4045
|
|
|
4031
4046
|
_commonjsHelpers.unwrapExports(YouTube_1);
|
|
4032
|
-
YouTube_1.YouTube;
|
|
4047
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4033
4048
|
|
|
4034
4049
|
var SoundCloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4035
4050
|
|
|
@@ -4038,7 +4053,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4038
4053
|
});
|
|
4039
4054
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4040
4055
|
|
|
4041
|
-
var _react = _interopRequireWildcard(React__default
|
|
4056
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4042
4057
|
|
|
4043
4058
|
|
|
4044
4059
|
|
|
@@ -4062,16 +4077,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4062
4077
|
|
|
4063
4078
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4064
4079
|
|
|
4065
|
-
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); }; }
|
|
4066
|
-
|
|
4067
4080
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4068
4081
|
|
|
4069
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4070
|
-
|
|
4071
|
-
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; } }
|
|
4072
|
-
|
|
4073
4082
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4074
4083
|
|
|
4084
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4085
|
+
|
|
4075
4086
|
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); }
|
|
4076
4087
|
|
|
4077
4088
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4080,14 +4091,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4080
4091
|
|
|
4081
4092
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4082
4093
|
var SDK_GLOBAL = 'SC';
|
|
4083
|
-
var MATCH_URL = /(
|
|
4094
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4084
4095
|
|
|
4085
|
-
var SoundCloud =
|
|
4096
|
+
var SoundCloud =
|
|
4097
|
+
/*#__PURE__*/
|
|
4098
|
+
function (_Component) {
|
|
4086
4099
|
_inherits(SoundCloud, _Component);
|
|
4087
4100
|
|
|
4088
|
-
var _super = _createSuper(SoundCloud);
|
|
4089
|
-
|
|
4090
4101
|
function SoundCloud() {
|
|
4102
|
+
var _getPrototypeOf2;
|
|
4103
|
+
|
|
4091
4104
|
var _this;
|
|
4092
4105
|
|
|
4093
4106
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4096,7 +4109,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4096
4109
|
args[_key] = arguments[_key];
|
|
4097
4110
|
}
|
|
4098
4111
|
|
|
4099
|
-
_this =
|
|
4112
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4100
4113
|
|
|
4101
4114
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4102
4115
|
|
|
@@ -4217,7 +4230,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4217
4230
|
height: '100%',
|
|
4218
4231
|
display: display
|
|
4219
4232
|
};
|
|
4220
|
-
return
|
|
4233
|
+
return _react["default"].createElement("iframe", {
|
|
4221
4234
|
ref: this.ref,
|
|
4222
4235
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4223
4236
|
style: style,
|
|
@@ -4246,7 +4259,7 @@ exports["default"] = _default;
|
|
|
4246
4259
|
});
|
|
4247
4260
|
|
|
4248
4261
|
_commonjsHelpers.unwrapExports(SoundCloud_1);
|
|
4249
|
-
SoundCloud_1.SoundCloud;
|
|
4262
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4250
4263
|
|
|
4251
4264
|
var Vimeo_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4252
4265
|
|
|
@@ -4255,7 +4268,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4255
4268
|
});
|
|
4256
4269
|
exports["default"] = exports.Vimeo = void 0;
|
|
4257
4270
|
|
|
4258
|
-
var _react = _interopRequireWildcard(React__default
|
|
4271
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4259
4272
|
|
|
4260
4273
|
|
|
4261
4274
|
|
|
@@ -4279,16 +4292,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4279
4292
|
|
|
4280
4293
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4281
4294
|
|
|
4282
|
-
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); }; }
|
|
4283
|
-
|
|
4284
4295
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4285
4296
|
|
|
4286
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4287
|
-
|
|
4288
|
-
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; } }
|
|
4289
|
-
|
|
4290
4297
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4291
4298
|
|
|
4299
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4300
|
+
|
|
4292
4301
|
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); }
|
|
4293
4302
|
|
|
4294
4303
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4300,12 +4309,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4300
4309
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4301
4310
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4302
4311
|
|
|
4303
|
-
var Vimeo =
|
|
4312
|
+
var Vimeo =
|
|
4313
|
+
/*#__PURE__*/
|
|
4314
|
+
function (_Component) {
|
|
4304
4315
|
_inherits(Vimeo, _Component);
|
|
4305
4316
|
|
|
4306
|
-
var _super = _createSuper(Vimeo);
|
|
4307
|
-
|
|
4308
4317
|
function Vimeo() {
|
|
4318
|
+
var _getPrototypeOf2;
|
|
4319
|
+
|
|
4309
4320
|
var _this;
|
|
4310
4321
|
|
|
4311
4322
|
_classCallCheck(this, Vimeo);
|
|
@@ -4314,7 +4325,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4314
4325
|
args[_key] = arguments[_key];
|
|
4315
4326
|
}
|
|
4316
4327
|
|
|
4317
|
-
_this =
|
|
4328
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4318
4329
|
|
|
4319
4330
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4320
4331
|
|
|
@@ -4471,7 +4482,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4471
4482
|
overflow: 'hidden',
|
|
4472
4483
|
display: display
|
|
4473
4484
|
};
|
|
4474
|
-
return
|
|
4485
|
+
return _react["default"].createElement("div", {
|
|
4475
4486
|
key: this.props.url,
|
|
4476
4487
|
ref: this.ref,
|
|
4477
4488
|
style: style
|
|
@@ -4502,7 +4513,7 @@ exports["default"] = _default;
|
|
|
4502
4513
|
});
|
|
4503
4514
|
|
|
4504
4515
|
_commonjsHelpers.unwrapExports(Vimeo_1);
|
|
4505
|
-
Vimeo_1.Vimeo;
|
|
4516
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4506
4517
|
|
|
4507
4518
|
var Facebook_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4508
4519
|
|
|
@@ -4511,7 +4522,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4511
4522
|
});
|
|
4512
4523
|
exports["default"] = exports.Facebook = void 0;
|
|
4513
4524
|
|
|
4514
|
-
var _react = _interopRequireWildcard(React__default
|
|
4525
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4515
4526
|
|
|
4516
4527
|
|
|
4517
4528
|
|
|
@@ -4531,16 +4542,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4531
4542
|
|
|
4532
4543
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4533
4544
|
|
|
4534
|
-
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); }; }
|
|
4535
|
-
|
|
4536
4545
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4537
4546
|
|
|
4538
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4539
|
-
|
|
4540
|
-
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; } }
|
|
4541
|
-
|
|
4542
4547
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4543
4548
|
|
|
4549
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4550
|
+
|
|
4544
4551
|
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
4552
|
|
|
4546
4553
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4553,12 +4560,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4553
4560
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4554
4561
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4555
4562
|
|
|
4556
|
-
var Facebook =
|
|
4563
|
+
var Facebook =
|
|
4564
|
+
/*#__PURE__*/
|
|
4565
|
+
function (_Component) {
|
|
4557
4566
|
_inherits(Facebook, _Component);
|
|
4558
4567
|
|
|
4559
|
-
var _super = _createSuper(Facebook);
|
|
4560
|
-
|
|
4561
4568
|
function Facebook() {
|
|
4569
|
+
var _getPrototypeOf2;
|
|
4570
|
+
|
|
4562
4571
|
var _this;
|
|
4563
4572
|
|
|
4564
4573
|
_classCallCheck(this, Facebook);
|
|
@@ -4567,7 +4576,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4567
4576
|
args[_key] = arguments[_key];
|
|
4568
4577
|
}
|
|
4569
4578
|
|
|
4570
|
-
_this =
|
|
4579
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4571
4580
|
|
|
4572
4581
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4573
4582
|
|
|
@@ -4683,7 +4692,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4683
4692
|
width: '100%',
|
|
4684
4693
|
height: '100%'
|
|
4685
4694
|
};
|
|
4686
|
-
return
|
|
4695
|
+
return _react["default"].createElement("div", {
|
|
4687
4696
|
style: style,
|
|
4688
4697
|
id: this.playerID,
|
|
4689
4698
|
className: "fb-video",
|
|
@@ -4714,7 +4723,7 @@ exports["default"] = _default;
|
|
|
4714
4723
|
});
|
|
4715
4724
|
|
|
4716
4725
|
_commonjsHelpers.unwrapExports(Facebook_1);
|
|
4717
|
-
Facebook_1.Facebook;
|
|
4726
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4718
4727
|
|
|
4719
4728
|
var Streamable_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4720
4729
|
|
|
@@ -4723,7 +4732,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4723
4732
|
});
|
|
4724
4733
|
exports["default"] = exports.Streamable = void 0;
|
|
4725
4734
|
|
|
4726
|
-
var _react = _interopRequireWildcard(React__default
|
|
4735
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4727
4736
|
|
|
4728
4737
|
|
|
4729
4738
|
|
|
@@ -4743,16 +4752,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4743
4752
|
|
|
4744
4753
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4745
4754
|
|
|
4746
|
-
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); }; }
|
|
4747
|
-
|
|
4748
4755
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4749
4756
|
|
|
4750
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4751
|
-
|
|
4752
|
-
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; } }
|
|
4753
|
-
|
|
4754
4757
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4755
4758
|
|
|
4759
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4760
|
+
|
|
4756
4761
|
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); }
|
|
4757
4762
|
|
|
4758
4763
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4763,12 +4768,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4763
4768
|
var SDK_GLOBAL = 'playerjs';
|
|
4764
4769
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4765
4770
|
|
|
4766
|
-
var Streamable =
|
|
4771
|
+
var Streamable =
|
|
4772
|
+
/*#__PURE__*/
|
|
4773
|
+
function (_Component) {
|
|
4767
4774
|
_inherits(Streamable, _Component);
|
|
4768
4775
|
|
|
4769
|
-
var _super = _createSuper(Streamable);
|
|
4770
|
-
|
|
4771
4776
|
function Streamable() {
|
|
4777
|
+
var _getPrototypeOf2;
|
|
4778
|
+
|
|
4772
4779
|
var _this;
|
|
4773
4780
|
|
|
4774
4781
|
_classCallCheck(this, Streamable);
|
|
@@ -4777,7 +4784,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4777
4784
|
args[_key] = arguments[_key];
|
|
4778
4785
|
}
|
|
4779
4786
|
|
|
4780
|
-
_this =
|
|
4787
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4781
4788
|
|
|
4782
4789
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4783
4790
|
|
|
@@ -4897,7 +4904,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4897
4904
|
width: '100%',
|
|
4898
4905
|
height: '100%'
|
|
4899
4906
|
};
|
|
4900
|
-
return
|
|
4907
|
+
return _react["default"].createElement("iframe", {
|
|
4901
4908
|
ref: this.ref,
|
|
4902
4909
|
src: "https://streamable.com/o/".concat(id),
|
|
4903
4910
|
frameBorder: "0",
|
|
@@ -4925,7 +4932,7 @@ exports["default"] = _default;
|
|
|
4925
4932
|
});
|
|
4926
4933
|
|
|
4927
4934
|
_commonjsHelpers.unwrapExports(Streamable_1);
|
|
4928
|
-
Streamable_1.Streamable;
|
|
4935
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4929
4936
|
|
|
4930
4937
|
var Wistia_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4931
4938
|
|
|
@@ -4934,7 +4941,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4934
4941
|
});
|
|
4935
4942
|
exports["default"] = exports.Wistia = void 0;
|
|
4936
4943
|
|
|
4937
|
-
var _react = _interopRequireWildcard(React__default
|
|
4944
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4938
4945
|
|
|
4939
4946
|
|
|
4940
4947
|
|
|
@@ -4958,16 +4965,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4958
4965
|
|
|
4959
4966
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4960
4967
|
|
|
4961
|
-
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
|
-
|
|
4963
4968
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4964
4969
|
|
|
4965
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4966
|
-
|
|
4967
|
-
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; } }
|
|
4968
|
-
|
|
4969
4970
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4970
4971
|
|
|
4972
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4973
|
+
|
|
4971
4974
|
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); }
|
|
4972
4975
|
|
|
4973
4976
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4978,48 +4981,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4978
4981
|
var SDK_GLOBAL = 'Wistia';
|
|
4979
4982
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4980
4983
|
|
|
4981
|
-
var Wistia =
|
|
4984
|
+
var Wistia =
|
|
4985
|
+
/*#__PURE__*/
|
|
4986
|
+
function (_Component) {
|
|
4982
4987
|
_inherits(Wistia, _Component);
|
|
4983
4988
|
|
|
4984
|
-
var _super = _createSuper(Wistia);
|
|
4985
|
-
|
|
4986
4989
|
function Wistia() {
|
|
4990
|
+
var _getPrototypeOf2;
|
|
4991
|
+
|
|
4987
4992
|
var _this;
|
|
4988
4993
|
|
|
4989
4994
|
_classCallCheck(this, Wistia);
|
|
4990
4995
|
|
|
4991
|
-
for (var _len = arguments.length,
|
|
4992
|
-
|
|
4996
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4997
|
+
args[_key] = arguments[_key];
|
|
4993
4998
|
}
|
|
4994
4999
|
|
|
4995
|
-
_this =
|
|
5000
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4996
5001
|
|
|
4997
5002
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4998
5003
|
|
|
4999
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
5000
|
-
var _this$props;
|
|
5001
|
-
|
|
5002
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
5003
|
-
});
|
|
5004
|
-
|
|
5005
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
5006
|
-
var _this$props2;
|
|
5007
|
-
|
|
5008
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5009
|
-
});
|
|
5010
|
-
|
|
5011
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5012
|
-
var _this$props3;
|
|
5013
|
-
|
|
5014
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5015
|
-
});
|
|
5016
|
-
|
|
5017
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5018
|
-
var _this$props4;
|
|
5019
|
-
|
|
5020
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5021
|
-
});
|
|
5022
|
-
|
|
5023
5004
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5024
5005
|
_this.callPlayer('mute');
|
|
5025
5006
|
});
|
|
@@ -5041,13 +5022,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5041
5022
|
value: function load(url) {
|
|
5042
5023
|
var _this2 = this;
|
|
5043
5024
|
|
|
5044
|
-
var _this$
|
|
5045
|
-
playing = _this$
|
|
5046
|
-
muted = _this$
|
|
5047
|
-
controls = _this$
|
|
5048
|
-
_onReady = _this$
|
|
5049
|
-
|
|
5050
|
-
|
|
5025
|
+
var _this$props = this.props,
|
|
5026
|
+
playing = _this$props.playing,
|
|
5027
|
+
muted = _this$props.muted,
|
|
5028
|
+
controls = _this$props.controls,
|
|
5029
|
+
_onReady = _this$props.onReady,
|
|
5030
|
+
onPlay = _this$props.onPlay,
|
|
5031
|
+
onPause = _this$props.onPause,
|
|
5032
|
+
onSeek = _this$props.onSeek,
|
|
5033
|
+
onEnded = _this$props.onEnded,
|
|
5034
|
+
config = _this$props.config,
|
|
5035
|
+
onError = _this$props.onError;
|
|
5051
5036
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5052
5037
|
window._wq = window._wq || [];
|
|
5053
5038
|
|
|
@@ -5064,28 +5049,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5064
5049
|
|
|
5065
5050
|
_this2.unbind();
|
|
5066
5051
|
|
|
5067
|
-
_this2.player.bind('play',
|
|
5052
|
+
_this2.player.bind('play', onPlay);
|
|
5068
5053
|
|
|
5069
|
-
_this2.player.bind('pause',
|
|
5054
|
+
_this2.player.bind('pause', onPause);
|
|
5070
5055
|
|
|
5071
|
-
_this2.player.bind('seek',
|
|
5056
|
+
_this2.player.bind('seek', onSeek);
|
|
5072
5057
|
|
|
5073
|
-
_this2.player.bind('end',
|
|
5058
|
+
_this2.player.bind('end', onEnded);
|
|
5074
5059
|
|
|
5075
5060
|
_onReady();
|
|
5076
5061
|
}
|
|
5077
5062
|
});
|
|
5078
5063
|
}, onError);
|
|
5079
5064
|
}
|
|
5080
|
-
}, {
|
|
5081
|
-
key: "unbind",
|
|
5082
|
-
value: function unbind() {
|
|
5083
|
-
this.player.unbind('play', this.onPlay);
|
|
5084
|
-
this.player.unbind('pause', this.onPause);
|
|
5085
|
-
this.player.unbind('seek', this.onSeek);
|
|
5086
|
-
this.player.unbind('end', this.onEnded);
|
|
5087
|
-
} // Proxy methods to prevent listener leaks
|
|
5088
|
-
|
|
5089
5065
|
}, {
|
|
5090
5066
|
key: "play",
|
|
5091
5067
|
value: function play() {
|
|
@@ -5096,6 +5072,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5096
5072
|
value: function pause() {
|
|
5097
5073
|
this.callPlayer('pause');
|
|
5098
5074
|
}
|
|
5075
|
+
}, {
|
|
5076
|
+
key: "unbind",
|
|
5077
|
+
value: function unbind() {
|
|
5078
|
+
var _this$props2 = this.props,
|
|
5079
|
+
onPlay = _this$props2.onPlay,
|
|
5080
|
+
onPause = _this$props2.onPause,
|
|
5081
|
+
onSeek = _this$props2.onSeek,
|
|
5082
|
+
onEnded = _this$props2.onEnded;
|
|
5083
|
+
this.player.unbind('play', onPlay);
|
|
5084
|
+
this.player.unbind('pause', onPause);
|
|
5085
|
+
this.player.unbind('seek', onSeek);
|
|
5086
|
+
this.player.unbind('end', onEnded);
|
|
5087
|
+
}
|
|
5099
5088
|
}, {
|
|
5100
5089
|
key: "stop",
|
|
5101
5090
|
value: function stop() {
|
|
@@ -5141,7 +5130,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5141
5130
|
width: '100%',
|
|
5142
5131
|
height: '100%'
|
|
5143
5132
|
};
|
|
5144
|
-
return
|
|
5133
|
+
return _react["default"].createElement("div", {
|
|
5145
5134
|
key: id,
|
|
5146
5135
|
className: className,
|
|
5147
5136
|
style: style
|
|
@@ -5168,7 +5157,7 @@ exports["default"] = _default;
|
|
|
5168
5157
|
});
|
|
5169
5158
|
|
|
5170
5159
|
_commonjsHelpers.unwrapExports(Wistia_1);
|
|
5171
|
-
Wistia_1.Wistia;
|
|
5160
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5172
5161
|
|
|
5173
5162
|
var Twitch_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5174
5163
|
|
|
@@ -5177,7 +5166,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5177
5166
|
});
|
|
5178
5167
|
exports["default"] = exports.Twitch = void 0;
|
|
5179
5168
|
|
|
5180
|
-
var _react = _interopRequireWildcard(React__default
|
|
5169
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5181
5170
|
|
|
5182
5171
|
|
|
5183
5172
|
|
|
@@ -5201,16 +5190,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5201
5190
|
|
|
5202
5191
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5203
5192
|
|
|
5204
|
-
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); }; }
|
|
5205
|
-
|
|
5206
5193
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5207
5194
|
|
|
5208
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5209
|
-
|
|
5210
|
-
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; } }
|
|
5211
|
-
|
|
5212
5195
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5213
5196
|
|
|
5197
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5198
|
+
|
|
5214
5199
|
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); }
|
|
5215
5200
|
|
|
5216
5201
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5223,12 +5208,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5223
5208
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5224
5209
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5225
5210
|
|
|
5226
|
-
var Twitch =
|
|
5211
|
+
var Twitch =
|
|
5212
|
+
/*#__PURE__*/
|
|
5213
|
+
function (_Component) {
|
|
5227
5214
|
_inherits(Twitch, _Component);
|
|
5228
5215
|
|
|
5229
|
-
var _super = _createSuper(Twitch);
|
|
5230
|
-
|
|
5231
5216
|
function Twitch() {
|
|
5217
|
+
var _getPrototypeOf2;
|
|
5218
|
+
|
|
5232
5219
|
var _this;
|
|
5233
5220
|
|
|
5234
5221
|
_classCallCheck(this, Twitch);
|
|
@@ -5237,7 +5224,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5237
5224
|
args[_key] = arguments[_key];
|
|
5238
5225
|
}
|
|
5239
5226
|
|
|
5240
|
-
_this =
|
|
5227
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5241
5228
|
|
|
5242
5229
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5243
5230
|
|
|
@@ -5358,7 +5345,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5358
5345
|
width: '100%',
|
|
5359
5346
|
height: '100%'
|
|
5360
5347
|
};
|
|
5361
|
-
return
|
|
5348
|
+
return _react["default"].createElement("div", {
|
|
5362
5349
|
style: style,
|
|
5363
5350
|
id: this.playerID
|
|
5364
5351
|
});
|
|
@@ -5384,7 +5371,7 @@ exports["default"] = _default;
|
|
|
5384
5371
|
});
|
|
5385
5372
|
|
|
5386
5373
|
_commonjsHelpers.unwrapExports(Twitch_1);
|
|
5387
|
-
Twitch_1.Twitch;
|
|
5374
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5388
5375
|
|
|
5389
5376
|
var DailyMotion_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5390
5377
|
|
|
@@ -5393,7 +5380,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5393
5380
|
});
|
|
5394
5381
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5395
5382
|
|
|
5396
|
-
var _react = _interopRequireWildcard(React__default
|
|
5383
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5397
5384
|
|
|
5398
5385
|
|
|
5399
5386
|
|
|
@@ -5411,15 +5398,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5411
5398
|
|
|
5412
5399
|
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; }
|
|
5413
5400
|
|
|
5414
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5415
|
-
|
|
5416
|
-
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."); }
|
|
5401
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5417
5402
|
|
|
5418
|
-
function
|
|
5403
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5419
5404
|
|
|
5420
|
-
function
|
|
5421
|
-
|
|
5422
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5405
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5423
5406
|
|
|
5424
5407
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5425
5408
|
|
|
@@ -5429,16 +5412,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5429
5412
|
|
|
5430
5413
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5431
5414
|
|
|
5432
|
-
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); }; }
|
|
5433
|
-
|
|
5434
5415
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5435
5416
|
|
|
5436
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5437
|
-
|
|
5438
|
-
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; } }
|
|
5439
|
-
|
|
5440
5417
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5441
5418
|
|
|
5419
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5420
|
+
|
|
5442
5421
|
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); }
|
|
5443
5422
|
|
|
5444
5423
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5450,12 +5429,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5450
5429
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5451
5430
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5452
5431
|
|
|
5453
|
-
var DailyMotion =
|
|
5432
|
+
var DailyMotion =
|
|
5433
|
+
/*#__PURE__*/
|
|
5434
|
+
function (_Component) {
|
|
5454
5435
|
_inherits(DailyMotion, _Component);
|
|
5455
5436
|
|
|
5456
|
-
var _super = _createSuper(DailyMotion);
|
|
5457
|
-
|
|
5458
5437
|
function DailyMotion() {
|
|
5438
|
+
var _getPrototypeOf2;
|
|
5439
|
+
|
|
5459
5440
|
var _this;
|
|
5460
5441
|
|
|
5461
5442
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5464,7 +5445,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5464
5445
|
args[_key] = arguments[_key];
|
|
5465
5446
|
}
|
|
5466
5447
|
|
|
5467
|
-
_this =
|
|
5448
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5468
5449
|
|
|
5469
5450
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5470
5451
|
|
|
@@ -5593,9 +5574,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5593
5574
|
height: '100%',
|
|
5594
5575
|
display: display
|
|
5595
5576
|
};
|
|
5596
|
-
return
|
|
5577
|
+
return _react["default"].createElement("div", {
|
|
5597
5578
|
style: style
|
|
5598
|
-
},
|
|
5579
|
+
}, _react["default"].createElement("div", {
|
|
5599
5580
|
ref: this.ref
|
|
5600
5581
|
}));
|
|
5601
5582
|
}
|
|
@@ -5620,7 +5601,7 @@ exports["default"] = _default;
|
|
|
5620
5601
|
});
|
|
5621
5602
|
|
|
5622
5603
|
_commonjsHelpers.unwrapExports(DailyMotion_1);
|
|
5623
|
-
DailyMotion_1.DailyMotion;
|
|
5604
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5624
5605
|
|
|
5625
5606
|
var Mixcloud_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5626
5607
|
|
|
@@ -5629,7 +5610,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5629
5610
|
});
|
|
5630
5611
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5631
5612
|
|
|
5632
|
-
var _react = _interopRequireWildcard(React__default
|
|
5613
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5633
5614
|
|
|
5634
5615
|
|
|
5635
5616
|
|
|
@@ -5653,16 +5634,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5653
5634
|
|
|
5654
5635
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5655
5636
|
|
|
5656
|
-
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); }; }
|
|
5657
|
-
|
|
5658
5637
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5659
5638
|
|
|
5660
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5661
|
-
|
|
5662
|
-
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; } }
|
|
5663
|
-
|
|
5664
5639
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5665
5640
|
|
|
5641
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5642
|
+
|
|
5666
5643
|
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); }
|
|
5667
5644
|
|
|
5668
5645
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5673,12 +5650,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5673
5650
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5674
5651
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5675
5652
|
|
|
5676
|
-
var Mixcloud =
|
|
5653
|
+
var Mixcloud =
|
|
5654
|
+
/*#__PURE__*/
|
|
5655
|
+
function (_Component) {
|
|
5677
5656
|
_inherits(Mixcloud, _Component);
|
|
5678
5657
|
|
|
5679
|
-
var _super = _createSuper(Mixcloud);
|
|
5680
|
-
|
|
5681
5658
|
function Mixcloud() {
|
|
5659
|
+
var _getPrototypeOf2;
|
|
5660
|
+
|
|
5682
5661
|
var _this;
|
|
5683
5662
|
|
|
5684
5663
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5687,7 +5666,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5687
5666
|
args[_key] = arguments[_key];
|
|
5688
5667
|
}
|
|
5689
5668
|
|
|
5690
|
-
_this =
|
|
5669
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5691
5670
|
|
|
5692
5671
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5693
5672
|
|
|
@@ -5790,7 +5769,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5790
5769
|
})); // We have to give the iframe a key here to prevent a
|
|
5791
5770
|
// weird dialog appearing when loading a new track
|
|
5792
5771
|
|
|
5793
|
-
return
|
|
5772
|
+
return _react["default"].createElement("iframe", {
|
|
5794
5773
|
key: id,
|
|
5795
5774
|
ref: this.ref,
|
|
5796
5775
|
style: style,
|
|
@@ -5819,7 +5798,7 @@ exports["default"] = _default;
|
|
|
5819
5798
|
});
|
|
5820
5799
|
|
|
5821
5800
|
_commonjsHelpers.unwrapExports(Mixcloud_1);
|
|
5822
|
-
Mixcloud_1.Mixcloud;
|
|
5801
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5823
5802
|
|
|
5824
5803
|
var FilePlayer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5825
5804
|
|
|
@@ -5828,7 +5807,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5828
5807
|
});
|
|
5829
5808
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5830
5809
|
|
|
5831
|
-
var _react = _interopRequireWildcard(React__default
|
|
5810
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5832
5811
|
|
|
5833
5812
|
|
|
5834
5813
|
|
|
@@ -5850,33 +5829,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5850
5829
|
|
|
5851
5830
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5852
5831
|
|
|
5853
|
-
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); }; }
|
|
5854
|
-
|
|
5855
5832
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5856
5833
|
|
|
5857
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5858
|
-
|
|
5859
|
-
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; } }
|
|
5860
|
-
|
|
5861
5834
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5862
5835
|
|
|
5836
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5837
|
+
|
|
5863
5838
|
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); }
|
|
5864
5839
|
|
|
5865
5840
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5866
5841
|
|
|
5867
5842
|
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; }
|
|
5868
5843
|
|
|
5869
|
-
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; } } }; }
|
|
5870
|
-
|
|
5871
|
-
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); }
|
|
5872
|
-
|
|
5873
|
-
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; }
|
|
5874
|
-
|
|
5875
5844
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5876
5845
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5877
5846
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5878
5847
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5879
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5848
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5880
5849
|
var HLS_GLOBAL = 'Hls';
|
|
5881
5850
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5882
5851
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5885,11 +5854,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5885
5854
|
|
|
5886
5855
|
function canPlay(url) {
|
|
5887
5856
|
if (url instanceof Array) {
|
|
5888
|
-
var
|
|
5889
|
-
|
|
5857
|
+
var _iteratorNormalCompletion = true;
|
|
5858
|
+
var _didIteratorError = false;
|
|
5859
|
+
var _iteratorError = undefined;
|
|
5890
5860
|
|
|
5891
5861
|
try {
|
|
5892
|
-
for (_iterator.
|
|
5862
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5893
5863
|
var item = _step.value;
|
|
5894
5864
|
|
|
5895
5865
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5901,9 +5871,18 @@ function canPlay(url) {
|
|
|
5901
5871
|
}
|
|
5902
5872
|
}
|
|
5903
5873
|
} catch (err) {
|
|
5904
|
-
|
|
5874
|
+
_didIteratorError = true;
|
|
5875
|
+
_iteratorError = err;
|
|
5905
5876
|
} finally {
|
|
5906
|
-
|
|
5877
|
+
try {
|
|
5878
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5879
|
+
_iterator["return"]();
|
|
5880
|
+
}
|
|
5881
|
+
} finally {
|
|
5882
|
+
if (_didIteratorError) {
|
|
5883
|
+
throw _iteratorError;
|
|
5884
|
+
}
|
|
5885
|
+
}
|
|
5907
5886
|
}
|
|
5908
5887
|
|
|
5909
5888
|
return false;
|
|
@@ -5927,12 +5906,14 @@ function canEnablePIP(url) {
|
|
|
5927
5906
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5928
5907
|
}
|
|
5929
5908
|
|
|
5930
|
-
var FilePlayer =
|
|
5909
|
+
var FilePlayer =
|
|
5910
|
+
/*#__PURE__*/
|
|
5911
|
+
function (_Component) {
|
|
5931
5912
|
_inherits(FilePlayer, _Component);
|
|
5932
5913
|
|
|
5933
|
-
var _super = _createSuper(FilePlayer);
|
|
5934
|
-
|
|
5935
5914
|
function FilePlayer() {
|
|
5915
|
+
var _getPrototypeOf2;
|
|
5916
|
+
|
|
5936
5917
|
var _this;
|
|
5937
5918
|
|
|
5938
5919
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5941,7 +5922,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5941
5922
|
_args[_key] = arguments[_key];
|
|
5942
5923
|
}
|
|
5943
5924
|
|
|
5944
|
-
_this =
|
|
5925
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5945
5926
|
|
|
5946
5927
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5947
5928
|
var _this$props;
|
|
@@ -6028,19 +6009,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6028
6009
|
|
|
6029
6010
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6030
6011
|
if (typeof source === 'string') {
|
|
6031
|
-
return
|
|
6012
|
+
return _react["default"].createElement("source", {
|
|
6032
6013
|
key: index,
|
|
6033
6014
|
src: source
|
|
6034
6015
|
});
|
|
6035
6016
|
}
|
|
6036
6017
|
|
|
6037
|
-
return
|
|
6018
|
+
return _react["default"].createElement("source", _extends({
|
|
6038
6019
|
key: index
|
|
6039
6020
|
}, source));
|
|
6040
6021
|
});
|
|
6041
6022
|
|
|
6042
6023
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6043
|
-
return
|
|
6024
|
+
return _react["default"].createElement("track", _extends({
|
|
6044
6025
|
key: index
|
|
6045
6026
|
}, track));
|
|
6046
6027
|
});
|
|
@@ -6078,10 +6059,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6078
6059
|
key: "componentWillUnmount",
|
|
6079
6060
|
value: function componentWillUnmount() {
|
|
6080
6061
|
this.removeListeners(this.player);
|
|
6081
|
-
|
|
6082
|
-
if (this.hls) {
|
|
6083
|
-
this.hls.destroy();
|
|
6084
|
-
}
|
|
6085
6062
|
}
|
|
6086
6063
|
}, {
|
|
6087
6064
|
key: "addListeners",
|
|
@@ -6212,6 +6189,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6212
6189
|
value: function stop() {
|
|
6213
6190
|
this.player.removeAttribute('src');
|
|
6214
6191
|
|
|
6192
|
+
if (this.hls) {
|
|
6193
|
+
this.hls.destroy();
|
|
6194
|
+
}
|
|
6195
|
+
|
|
6215
6196
|
if (this.dash) {
|
|
6216
6197
|
this.dash.reset();
|
|
6217
6198
|
}
|
|
@@ -6323,7 +6304,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6323
6304
|
width: width === 'auto' ? width : '100%',
|
|
6324
6305
|
height: height === 'auto' ? height : '100%'
|
|
6325
6306
|
};
|
|
6326
|
-
return
|
|
6307
|
+
return _react["default"].createElement(Element, _extends({
|
|
6327
6308
|
ref: this.ref,
|
|
6328
6309
|
src: this.getSource(url),
|
|
6329
6310
|
style: style,
|
|
@@ -6353,7 +6334,7 @@ exports["default"] = _default;
|
|
|
6353
6334
|
});
|
|
6354
6335
|
|
|
6355
6336
|
_commonjsHelpers.unwrapExports(FilePlayer_1);
|
|
6356
|
-
FilePlayer_1.FilePlayer;
|
|
6337
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6357
6338
|
|
|
6358
6339
|
var players = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
6359
6340
|
|
|
@@ -6395,7 +6376,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6395
6376
|
});
|
|
6396
6377
|
exports["default"] = void 0;
|
|
6397
6378
|
|
|
6398
|
-
var _react = _interopRequireWildcard(React__default
|
|
6379
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6399
6380
|
|
|
6400
6381
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6401
6382
|
|
|
@@ -6413,16 +6394,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6413
6394
|
|
|
6414
6395
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6415
6396
|
|
|
6416
|
-
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); }; }
|
|
6417
|
-
|
|
6418
6397
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6419
6398
|
|
|
6420
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6421
|
-
|
|
6422
|
-
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; } }
|
|
6423
|
-
|
|
6424
6399
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6425
6400
|
|
|
6401
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6402
|
+
|
|
6426
6403
|
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); }
|
|
6427
6404
|
|
|
6428
6405
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6431,12 +6408,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6431
6408
|
|
|
6432
6409
|
var ICON_SIZE = '64px';
|
|
6433
6410
|
|
|
6434
|
-
var Preview =
|
|
6411
|
+
var Preview =
|
|
6412
|
+
/*#__PURE__*/
|
|
6413
|
+
function (_Component) {
|
|
6435
6414
|
_inherits(Preview, _Component);
|
|
6436
6415
|
|
|
6437
|
-
var _super = _createSuper(Preview);
|
|
6438
|
-
|
|
6439
6416
|
function Preview() {
|
|
6417
|
+
var _getPrototypeOf2;
|
|
6418
|
+
|
|
6440
6419
|
var _this;
|
|
6441
6420
|
|
|
6442
6421
|
_classCallCheck(this, Preview);
|
|
@@ -6445,7 +6424,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6445
6424
|
args[_key] = arguments[_key];
|
|
6446
6425
|
}
|
|
6447
6426
|
|
|
6448
|
-
_this =
|
|
6427
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6449
6428
|
|
|
6450
6429
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6451
6430
|
|
|
@@ -6543,15 +6522,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6543
6522
|
}
|
|
6544
6523
|
};
|
|
6545
6524
|
|
|
6546
|
-
var defaultPlayIcon =
|
|
6525
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6547
6526
|
style: styles.shadow,
|
|
6548
6527
|
className: "react-player__shadow"
|
|
6549
|
-
},
|
|
6528
|
+
}, _react["default"].createElement("div", {
|
|
6550
6529
|
style: styles.playIcon,
|
|
6551
6530
|
className: "react-player__play-icon"
|
|
6552
6531
|
}));
|
|
6553
6532
|
|
|
6554
|
-
return
|
|
6533
|
+
return _react["default"].createElement("div", {
|
|
6555
6534
|
style: styles.preview,
|
|
6556
6535
|
className: "react-player__preview",
|
|
6557
6536
|
onClick: onClick
|
|
@@ -6574,7 +6553,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6574
6553
|
});
|
|
6575
6554
|
exports["default"] = renderPreloadPlayers;
|
|
6576
6555
|
|
|
6577
|
-
var _react = _interopRequireDefault(React__default
|
|
6556
|
+
var _react = _interopRequireDefault(React__default);
|
|
6578
6557
|
|
|
6579
6558
|
var _Player = _interopRequireDefault(Player_1);
|
|
6580
6559
|
|
|
@@ -6588,12 +6567,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6588
6567
|
|
|
6589
6568
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6590
6569
|
|
|
6591
|
-
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; } } }; }
|
|
6592
|
-
|
|
6593
|
-
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); }
|
|
6594
|
-
|
|
6595
|
-
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; }
|
|
6596
|
-
|
|
6597
6570
|
var PRELOAD_PLAYERS = [{
|
|
6598
6571
|
Player: YouTube_1.YouTube,
|
|
6599
6572
|
configKey: 'youtube',
|
|
@@ -6614,16 +6587,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6614
6587
|
|
|
6615
6588
|
function renderPreloadPlayers(url, controls, config) {
|
|
6616
6589
|
var players = [];
|
|
6617
|
-
|
|
6618
|
-
var
|
|
6619
|
-
|
|
6590
|
+
var _iteratorNormalCompletion = true;
|
|
6591
|
+
var _didIteratorError = false;
|
|
6592
|
+
var _iteratorError = undefined;
|
|
6620
6593
|
|
|
6621
6594
|
try {
|
|
6622
|
-
for (_iterator.
|
|
6595
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6623
6596
|
var player = _step.value;
|
|
6624
6597
|
|
|
6625
6598
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6626
|
-
players.push(
|
|
6599
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6627
6600
|
key: player.Player.displayName,
|
|
6628
6601
|
activePlayer: player.Player,
|
|
6629
6602
|
url: player.url,
|
|
@@ -6635,9 +6608,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6635
6608
|
}
|
|
6636
6609
|
}
|
|
6637
6610
|
} catch (err) {
|
|
6638
|
-
|
|
6611
|
+
_didIteratorError = true;
|
|
6612
|
+
_iteratorError = err;
|
|
6639
6613
|
} finally {
|
|
6640
|
-
|
|
6614
|
+
try {
|
|
6615
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6616
|
+
_iterator["return"]();
|
|
6617
|
+
}
|
|
6618
|
+
} finally {
|
|
6619
|
+
if (_didIteratorError) {
|
|
6620
|
+
throw _iteratorError;
|
|
6621
|
+
}
|
|
6622
|
+
}
|
|
6641
6623
|
}
|
|
6642
6624
|
|
|
6643
6625
|
return players;
|
|
@@ -6713,7 +6695,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6713
6695
|
});
|
|
6714
6696
|
exports["default"] = void 0;
|
|
6715
6697
|
|
|
6716
|
-
var _react = _interopRequireWildcard(React__default
|
|
6698
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6717
6699
|
|
|
6718
6700
|
|
|
6719
6701
|
|
|
@@ -6761,17 +6743,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6761
6743
|
|
|
6762
6744
|
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); }
|
|
6763
6745
|
|
|
6764
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6765
|
-
|
|
6766
|
-
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."); }
|
|
6746
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6767
6747
|
|
|
6768
|
-
function
|
|
6748
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6769
6749
|
|
|
6770
|
-
function _iterableToArray(iter) { if (
|
|
6750
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6771
6751
|
|
|
6772
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6773
|
-
|
|
6774
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6752
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6775
6753
|
|
|
6776
6754
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6777
6755
|
|
|
@@ -6779,16 +6757,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6779
6757
|
|
|
6780
6758
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6781
6759
|
|
|
6782
|
-
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); }; }
|
|
6783
|
-
|
|
6784
6760
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6785
6761
|
|
|
6786
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6787
|
-
|
|
6788
|
-
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; } }
|
|
6789
|
-
|
|
6790
6762
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6791
6763
|
|
|
6764
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6765
|
+
|
|
6792
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); }
|
|
6793
6767
|
|
|
6794
6768
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6798,12 +6772,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6798
6772
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6799
6773
|
var customPlayers = [];
|
|
6800
6774
|
|
|
6801
|
-
var ReactPlayer =
|
|
6775
|
+
var ReactPlayer =
|
|
6776
|
+
/*#__PURE__*/
|
|
6777
|
+
function (_Component) {
|
|
6802
6778
|
_inherits(ReactPlayer, _Component);
|
|
6803
6779
|
|
|
6804
|
-
var _super = _createSuper(ReactPlayer);
|
|
6805
|
-
|
|
6806
6780
|
function ReactPlayer() {
|
|
6781
|
+
var _getPrototypeOf2;
|
|
6782
|
+
|
|
6807
6783
|
var _this;
|
|
6808
6784
|
|
|
6809
6785
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6812,7 +6788,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6812
6788
|
args[_key] = arguments[_key];
|
|
6813
6789
|
}
|
|
6814
6790
|
|
|
6815
|
-
_this =
|
|
6791
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6816
6792
|
|
|
6817
6793
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6818
6794
|
|
|
@@ -6923,7 +6899,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6923
6899
|
key: "renderActivePlayer",
|
|
6924
6900
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6925
6901
|
if (!url) return null;
|
|
6926
|
-
return
|
|
6902
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6927
6903
|
key: activePlayer.displayName,
|
|
6928
6904
|
ref: this.activePlayerRef,
|
|
6929
6905
|
config: this.config,
|
|
@@ -6960,14 +6936,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6960
6936
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6961
6937
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6962
6938
|
|
|
6963
|
-
var preview =
|
|
6939
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6964
6940
|
url: url,
|
|
6965
6941
|
light: light,
|
|
6966
6942
|
playIcon: playIcon,
|
|
6967
6943
|
onClick: this.handleClickPreview
|
|
6968
6944
|
});
|
|
6969
6945
|
|
|
6970
|
-
return
|
|
6946
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6971
6947
|
ref: this.wrapperRef,
|
|
6972
6948
|
style: _objectSpread({}, style, {
|
|
6973
6949
|
width: width,
|
|
@@ -7027,20 +7003,20 @@ var Audio = function Audio(_ref) {
|
|
|
7027
7003
|
var node = _ref.node;
|
|
7028
7004
|
|
|
7029
7005
|
if (node.uploadAudio) {
|
|
7030
|
-
return React__default
|
|
7006
|
+
return React__default.createElement(
|
|
7031
7007
|
'div',
|
|
7032
7008
|
{ className: 'audio d-block text-center mb-3' },
|
|
7033
|
-
React__default
|
|
7009
|
+
React__default.createElement(
|
|
7034
7010
|
'audio',
|
|
7035
7011
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7036
|
-
React__default
|
|
7037
|
-
React__default
|
|
7012
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7013
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7038
7014
|
'Your browser does not support the audio element.'
|
|
7039
7015
|
),
|
|
7040
|
-
node.caption && React__default
|
|
7016
|
+
node.caption && React__default.createElement(
|
|
7041
7017
|
'p',
|
|
7042
7018
|
{ style: { fontSize: '.9rem' } },
|
|
7043
|
-
React__default
|
|
7019
|
+
React__default.createElement(
|
|
7044
7020
|
'em',
|
|
7045
7021
|
null,
|
|
7046
7022
|
node.caption
|
|
@@ -7050,15 +7026,15 @@ var Audio = function Audio(_ref) {
|
|
|
7050
7026
|
} else if (node.audioFilePth) {
|
|
7051
7027
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7052
7028
|
if (hostname === 'embeds.audioboom.com') {
|
|
7053
|
-
return React__default
|
|
7029
|
+
return React__default.createElement(
|
|
7054
7030
|
'div',
|
|
7055
7031
|
null,
|
|
7056
|
-
React__default
|
|
7032
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7057
7033
|
' ',
|
|
7058
|
-
node.caption && React__default
|
|
7034
|
+
node.caption && React__default.createElement(
|
|
7059
7035
|
'p',
|
|
7060
7036
|
{ style: { fontSize: '.9rem' } },
|
|
7061
|
-
React__default
|
|
7037
|
+
React__default.createElement(
|
|
7062
7038
|
'em',
|
|
7063
7039
|
null,
|
|
7064
7040
|
node.caption
|
|
@@ -7066,14 +7042,14 @@ var Audio = function Audio(_ref) {
|
|
|
7066
7042
|
)
|
|
7067
7043
|
);
|
|
7068
7044
|
}
|
|
7069
|
-
return React__default
|
|
7045
|
+
return React__default.createElement(
|
|
7070
7046
|
'div',
|
|
7071
7047
|
{ className: 'audio' },
|
|
7072
|
-
React__default
|
|
7073
|
-
node.caption && React__default
|
|
7048
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7049
|
+
node.caption && React__default.createElement(
|
|
7074
7050
|
'p',
|
|
7075
7051
|
{ style: { fontSize: '.9rem' } },
|
|
7076
|
-
React__default
|
|
7052
|
+
React__default.createElement(
|
|
7077
7053
|
'em',
|
|
7078
7054
|
null,
|
|
7079
7055
|
node.caption
|
|
@@ -7091,34 +7067,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7091
7067
|
var profileImage = arguments[6];
|
|
7092
7068
|
|
|
7093
7069
|
if (authorName && authorURL) {
|
|
7094
|
-
return React__default
|
|
7070
|
+
return React__default.createElement(
|
|
7095
7071
|
'span',
|
|
7096
7072
|
null,
|
|
7097
|
-
React__default
|
|
7073
|
+
React__default.createElement(
|
|
7098
7074
|
'a',
|
|
7099
7075
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7100
7076
|
authorName
|
|
7101
7077
|
),
|
|
7102
|
-
React__default
|
|
7078
|
+
React__default.createElement(
|
|
7103
7079
|
reactBootstrap.Card,
|
|
7104
7080
|
{ className: 'author-details-card-' + index },
|
|
7105
|
-
React__default
|
|
7081
|
+
React__default.createElement(
|
|
7106
7082
|
reactBootstrap.Row,
|
|
7107
7083
|
null,
|
|
7108
|
-
profileImage && React__default
|
|
7084
|
+
profileImage && React__default.createElement(
|
|
7109
7085
|
reactBootstrap.Col,
|
|
7110
7086
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7111
|
-
React__default
|
|
7087
|
+
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7112
7088
|
),
|
|
7113
|
-
React__default
|
|
7089
|
+
React__default.createElement(
|
|
7114
7090
|
reactBootstrap.Col,
|
|
7115
7091
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7116
|
-
React__default
|
|
7092
|
+
React__default.createElement(
|
|
7117
7093
|
'div',
|
|
7118
7094
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7119
7095
|
authorName
|
|
7120
7096
|
),
|
|
7121
|
-
React__default
|
|
7097
|
+
React__default.createElement(
|
|
7122
7098
|
'p',
|
|
7123
7099
|
null,
|
|
7124
7100
|
biography
|
|
@@ -7126,7 +7102,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7126
7102
|
)
|
|
7127
7103
|
)
|
|
7128
7104
|
),
|
|
7129
|
-
React__default
|
|
7105
|
+
React__default.createElement(
|
|
7130
7106
|
'style',
|
|
7131
7107
|
{ jsx: 'true' },
|
|
7132
7108
|
'\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 '
|
|
@@ -7134,7 +7110,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7134
7110
|
length !== index + 1 && ' , '
|
|
7135
7111
|
);
|
|
7136
7112
|
} else if (authorName) {
|
|
7137
|
-
return React__default
|
|
7113
|
+
return React__default.createElement(
|
|
7138
7114
|
'span',
|
|
7139
7115
|
{ key: index },
|
|
7140
7116
|
authorName,
|
|
@@ -7166,7 +7142,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7166
7142
|
}
|
|
7167
7143
|
});
|
|
7168
7144
|
|
|
7169
|
-
var builder = index.imageUrlBuilder(client);
|
|
7145
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
7170
7146
|
function urlFor(source) {
|
|
7171
7147
|
return builder.image(source);
|
|
7172
7148
|
}
|
|
@@ -7241,7 +7217,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7241
7217
|
if (vid.thumbnail && vid.thumbnail.asset) {
|
|
7242
7218
|
data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset).url(), url: vid.url });
|
|
7243
7219
|
} else {
|
|
7244
|
-
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$
|
|
7220
|
+
data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + index$3.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
|
|
7245
7221
|
}
|
|
7246
7222
|
}
|
|
7247
7223
|
});
|
|
@@ -7294,14 +7270,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7294
7270
|
var duration = player.getDuration();
|
|
7295
7271
|
var queue = Math.floor(duration / 10);
|
|
7296
7272
|
var segment = Math.floor(current / queue);
|
|
7297
|
-
Beam.report_beam_video('Ready', main.
|
|
7298
|
-
Segment.report_video_event('Video Ready', main.
|
|
7273
|
+
Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
7274
|
+
Segment.report_video_event('Video Ready', main.main_16, duration, current, segment);
|
|
7299
7275
|
//autoplay
|
|
7300
7276
|
|
|
7301
7277
|
//Small pause before starting next video
|
|
7302
7278
|
setTimeout(function () {
|
|
7303
7279
|
//Youtube API to start video playing automatically
|
|
7304
|
-
var id = index$
|
|
7280
|
+
var id = index$3.getYoutubeId(vidUrl);
|
|
7305
7281
|
event.target.loadVideoById(id);
|
|
7306
7282
|
}, 1500);
|
|
7307
7283
|
};
|
|
@@ -7315,8 +7291,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7315
7291
|
var queue = Math.floor(duration / 10);
|
|
7316
7292
|
var segment = Math.floor(current / queue);
|
|
7317
7293
|
|
|
7318
|
-
Beam.report_beam_video('End', main.
|
|
7319
|
-
Segment.report_video_event('Video End', main.
|
|
7294
|
+
Beam.report_beam_video('End', main.main_16, duration, current, segment);
|
|
7295
|
+
Segment.report_video_event('Video End', main.main_16, duration, current, segment);
|
|
7320
7296
|
setEndReported(true);
|
|
7321
7297
|
clearInterval(intervalID);
|
|
7322
7298
|
}
|
|
@@ -7366,8 +7342,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7366
7342
|
var queue = Math.floor(duration / 10);
|
|
7367
7343
|
var segment = Math.floor(current / queue);
|
|
7368
7344
|
if (!queueProgress.includes(segment)) {
|
|
7369
|
-
Beam.report_beam_video('Segment', main.
|
|
7370
|
-
Segment.report_video_event('Video Segment', main.
|
|
7345
|
+
Beam.report_beam_video('Segment', main.main_16, duration, current, segment);
|
|
7346
|
+
Segment.report_video_event('Video Segment', main.main_16, duration, current, segment);
|
|
7371
7347
|
queueProgress.push(segment);
|
|
7372
7348
|
}
|
|
7373
7349
|
};
|
|
@@ -7380,8 +7356,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7380
7356
|
var queue = Math.floor(duration / 10);
|
|
7381
7357
|
var segment = Math.floor(current / queue);
|
|
7382
7358
|
|
|
7383
|
-
Beam.report_beam_video('Play', main.
|
|
7384
|
-
Segment.report_video_event('Video Play', main.
|
|
7359
|
+
Beam.report_beam_video('Play', main.main_16, duration, current, segment);
|
|
7360
|
+
Segment.report_video_event('Video Play', main.main_16, duration, current, segment);
|
|
7385
7361
|
|
|
7386
7362
|
if (!playReported) {
|
|
7387
7363
|
setPlayReported(true);
|
|
@@ -7399,8 +7375,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7399
7375
|
var queue = Math.floor(duration / 10);
|
|
7400
7376
|
var segment = Math.floor(current / queue);
|
|
7401
7377
|
|
|
7402
|
-
Beam.report_beam_video('Pause', main.
|
|
7403
|
-
Segment.report_video_event('Video Pause', main.
|
|
7378
|
+
Beam.report_beam_video('Pause', main.main_16, duration, current, segment);
|
|
7379
|
+
Segment.report_video_event('Video Pause', main.main_16, duration, current, segment);
|
|
7404
7380
|
};
|
|
7405
7381
|
|
|
7406
7382
|
// Youtube Options
|
|
@@ -7411,44 +7387,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7411
7387
|
}
|
|
7412
7388
|
};
|
|
7413
7389
|
|
|
7414
|
-
return React__default
|
|
7390
|
+
return React__default.createElement(
|
|
7415
7391
|
'div',
|
|
7416
7392
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7417
|
-
React__default
|
|
7393
|
+
React__default.createElement(
|
|
7418
7394
|
'div',
|
|
7419
7395
|
{ className: 'mt-2 mb-5' },
|
|
7420
|
-
series && React__default
|
|
7396
|
+
series && React__default.createElement(
|
|
7421
7397
|
'div',
|
|
7422
7398
|
{ style: { fontSize: '0.9rem' } },
|
|
7423
7399
|
article.title,
|
|
7424
7400
|
' - Episode ',
|
|
7425
7401
|
series
|
|
7426
7402
|
),
|
|
7427
|
-
Videos[series - 1] && React__default
|
|
7403
|
+
Videos[series - 1] && React__default.createElement(
|
|
7428
7404
|
'h1',
|
|
7429
7405
|
{ className: 'mb-3' },
|
|
7430
7406
|
Videos[series - 1].title
|
|
7431
7407
|
),
|
|
7432
|
-
React__default
|
|
7408
|
+
React__default.createElement(
|
|
7433
7409
|
'div',
|
|
7434
7410
|
null,
|
|
7435
7411
|
moment.moment(article.published).format('LL')
|
|
7436
7412
|
),
|
|
7437
|
-
React__default
|
|
7413
|
+
React__default.createElement(
|
|
7438
7414
|
'div',
|
|
7439
7415
|
{ className: 'mb-3' },
|
|
7440
7416
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7441
|
-
return React__default
|
|
7417
|
+
return React__default.createElement(
|
|
7442
7418
|
'span',
|
|
7443
7419
|
{ key: index },
|
|
7444
7420
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7445
7421
|
);
|
|
7446
7422
|
})
|
|
7447
7423
|
),
|
|
7448
|
-
React__default
|
|
7424
|
+
React__default.createElement(
|
|
7449
7425
|
'p',
|
|
7450
7426
|
null,
|
|
7451
|
-
React__default
|
|
7427
|
+
React__default.createElement(SocialShare, {
|
|
7452
7428
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7453
7429
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7454
7430
|
shareVia: meta.shareVia,
|
|
@@ -7463,22 +7439,22 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7463
7439
|
hideFacebook: meta.hideFBShare
|
|
7464
7440
|
})
|
|
7465
7441
|
),
|
|
7466
|
-
Videos[series - 1] && Videos[series - 1].intro && React__default
|
|
7442
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7467
7443
|
'p',
|
|
7468
7444
|
{ className: 'mb-3' },
|
|
7469
|
-
React__default
|
|
7445
|
+
React__default.createElement(
|
|
7470
7446
|
'em',
|
|
7471
7447
|
null,
|
|
7472
7448
|
Videos[series - 1].intro
|
|
7473
7449
|
)
|
|
7474
7450
|
)
|
|
7475
7451
|
),
|
|
7476
|
-
React__default
|
|
7452
|
+
React__default.createElement(
|
|
7477
7453
|
'div',
|
|
7478
7454
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7479
|
-
vidUrl && vidType == 'youtube' && React__default
|
|
7455
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7480
7456
|
className: 'fluid-iframe',
|
|
7481
|
-
videoId: index$
|
|
7457
|
+
videoId: index$3.getYoutubeId(vidUrl),
|
|
7482
7458
|
opts: opts,
|
|
7483
7459
|
onReady: handleOnReady,
|
|
7484
7460
|
onPlay: handleOnPlay,
|
|
@@ -7487,10 +7463,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7487
7463
|
return handleOnEnd(e);
|
|
7488
7464
|
}
|
|
7489
7465
|
}),
|
|
7490
|
-
vidUrl && vidType == 'mp4' && React__default
|
|
7491
|
-
vidUrl && vidType == 'brightcove' && React__default
|
|
7492
|
-
React__default
|
|
7493
|
-
series && React__default
|
|
7466
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7467
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7468
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7469
|
+
series && React__default.createElement(
|
|
7494
7470
|
'div',
|
|
7495
7471
|
{
|
|
7496
7472
|
className: 'vid-series',
|
|
@@ -7500,10 +7476,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7500
7476
|
maxHeight: '100%',
|
|
7501
7477
|
paddingBottom: '0'
|
|
7502
7478
|
} },
|
|
7503
|
-
React__default
|
|
7479
|
+
React__default.createElement(
|
|
7504
7480
|
'p',
|
|
7505
7481
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7506
|
-
React__default
|
|
7482
|
+
React__default.createElement(
|
|
7507
7483
|
'b',
|
|
7508
7484
|
{ style: { fontSize: '1.25em' } },
|
|
7509
7485
|
'Now Playing:'
|
|
@@ -7511,16 +7487,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7511
7487
|
' ',
|
|
7512
7488
|
seriesData[series ? series - 1 : 0].title
|
|
7513
7489
|
),
|
|
7514
|
-
vidUrl && React__default
|
|
7490
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7515
7491
|
)
|
|
7516
7492
|
),
|
|
7517
|
-
React__default
|
|
7518
|
-
React__default
|
|
7493
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7494
|
+
React__default.createElement(
|
|
7519
7495
|
'div',
|
|
7520
7496
|
{ className: 'vid-text' },
|
|
7521
|
-
Videos[series - 1] && Videos[series - 1].text && React__default
|
|
7497
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7522
7498
|
),
|
|
7523
|
-
React__default
|
|
7499
|
+
React__default.createElement(
|
|
7524
7500
|
'style',
|
|
7525
7501
|
{ jsx: 'true' },
|
|
7526
7502
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7528,14 +7504,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7528
7504
|
);
|
|
7529
7505
|
};
|
|
7530
7506
|
|
|
7531
|
-
var Poll
|
|
7532
|
-
var node = _ref.node
|
|
7533
|
-
_ref.client
|
|
7534
|
-
_ref.pageview
|
|
7535
|
-
_ref.videoAccountIDs
|
|
7536
|
-
|
|
7537
|
-
_ref.showVotes
|
|
7538
|
-
|
|
7507
|
+
var Poll = function Poll(_ref) {
|
|
7508
|
+
var node = _ref.node,
|
|
7509
|
+
client = _ref.client,
|
|
7510
|
+
pageview = _ref.pageview,
|
|
7511
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7512
|
+
onVote = _ref.onVote,
|
|
7513
|
+
_ref$showVotes = _ref.showVotes,
|
|
7514
|
+
getSerializers = _ref.getSerializers;
|
|
7539
7515
|
|
|
7540
7516
|
var _useState = React.useState(null),
|
|
7541
7517
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7573,67 +7549,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7573
7549
|
return acc;
|
|
7574
7550
|
}
|
|
7575
7551
|
}, 0);
|
|
7576
|
-
return React__default
|
|
7577
|
-
React__default
|
|
7552
|
+
return React__default.createElement(
|
|
7553
|
+
React__default.Fragment,
|
|
7578
7554
|
null,
|
|
7579
|
-
question && React__default
|
|
7555
|
+
question && React__default.createElement(
|
|
7580
7556
|
'p',
|
|
7581
7557
|
{ className: 'font-weight-bold' },
|
|
7582
7558
|
question
|
|
7583
7559
|
),
|
|
7584
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7560
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7585
7561
|
'form',
|
|
7586
7562
|
{ onSubmit: function onSubmit(e) {
|
|
7587
7563
|
return onSubmitPoll(e);
|
|
7588
7564
|
} },
|
|
7589
7565
|
choices && choices.map(function (choice) {
|
|
7590
|
-
return React__default
|
|
7566
|
+
return React__default.createElement(
|
|
7591
7567
|
'div',
|
|
7592
7568
|
{ key: choice._key },
|
|
7593
|
-
React__default
|
|
7569
|
+
React__default.createElement(
|
|
7594
7570
|
'label',
|
|
7595
7571
|
{ className: 'pl-2' },
|
|
7596
|
-
React__default
|
|
7572
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7597
7573
|
return setSelectedChoice(e.target.value);
|
|
7598
7574
|
} }),
|
|
7599
7575
|
' ' + choice.choiceText
|
|
7600
7576
|
)
|
|
7601
7577
|
);
|
|
7602
7578
|
}),
|
|
7603
|
-
React__default
|
|
7579
|
+
React__default.createElement(
|
|
7604
7580
|
reactBootstrap.Button,
|
|
7605
7581
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7606
7582
|
'Vote'
|
|
7607
7583
|
)
|
|
7608
7584
|
),
|
|
7609
|
-
React__default
|
|
7585
|
+
React__default.createElement(
|
|
7610
7586
|
'div',
|
|
7611
7587
|
{ className: 'progress-container' },
|
|
7612
7588
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7613
7589
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7614
|
-
return React__default
|
|
7590
|
+
return React__default.createElement(
|
|
7615
7591
|
'div',
|
|
7616
7592
|
{ key: choice._key, className: 'mb-3' },
|
|
7617
|
-
React__default
|
|
7593
|
+
React__default.createElement(
|
|
7618
7594
|
'div',
|
|
7619
7595
|
{ className: 'correct-answer' },
|
|
7620
|
-
React__default
|
|
7596
|
+
React__default.createElement(
|
|
7621
7597
|
'div',
|
|
7622
7598
|
null,
|
|
7623
7599
|
choice.choiceText
|
|
7624
7600
|
),
|
|
7625
|
-
choice.choiceAnswer === true && React__default
|
|
7601
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7626
7602
|
'div',
|
|
7627
7603
|
null,
|
|
7628
|
-
React__default
|
|
7604
|
+
React__default.createElement(
|
|
7629
7605
|
'span',
|
|
7630
7606
|
{ style: { color: 'limegreen' } },
|
|
7631
7607
|
'Correct!'
|
|
7632
7608
|
)
|
|
7633
7609
|
)
|
|
7634
7610
|
),
|
|
7635
|
-
React__default
|
|
7636
|
-
React__default
|
|
7611
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7612
|
+
React__default.createElement(
|
|
7637
7613
|
'span',
|
|
7638
7614
|
{ className: 'float-right' },
|
|
7639
7615
|
percentage,
|
|
@@ -7644,14 +7620,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7644
7620
|
);
|
|
7645
7621
|
})
|
|
7646
7622
|
),
|
|
7647
|
-
showAnswer && React__default
|
|
7623
|
+
showAnswer && React__default.createElement(
|
|
7648
7624
|
'h4',
|
|
7649
7625
|
{ className: 'text-center small p-3' },
|
|
7650
7626
|
'Total Votes: ',
|
|
7651
7627
|
choicesTotalCount
|
|
7652
7628
|
),
|
|
7653
|
-
showAnswer && response && React__default
|
|
7654
|
-
React__default
|
|
7629
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7630
|
+
React__default.createElement(
|
|
7655
7631
|
'style',
|
|
7656
7632
|
{ jsx: 'true' },
|
|
7657
7633
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7669,22 +7645,22 @@ _toObject._export(_toObject._export.S, 'Object', {
|
|
|
7669
7645
|
}
|
|
7670
7646
|
});
|
|
7671
7647
|
|
|
7672
|
-
var values
|
|
7648
|
+
var values = _toObject._core.Object.values;
|
|
7673
7649
|
|
|
7674
|
-
var values = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7675
|
-
module.exports = { "default": values
|
|
7650
|
+
var values$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
7651
|
+
module.exports = { "default": values, __esModule: true };
|
|
7676
7652
|
});
|
|
7677
7653
|
|
|
7678
|
-
var _Object$values = _commonjsHelpers.unwrapExports(values);
|
|
7654
|
+
var _Object$values = _commonjsHelpers.unwrapExports(values$1);
|
|
7679
7655
|
|
|
7680
|
-
var Poll = function Poll(_ref) {
|
|
7681
|
-
var node = _ref.node
|
|
7682
|
-
_ref.client
|
|
7683
|
-
_ref.pageview
|
|
7684
|
-
_ref.videoAccountIDs
|
|
7685
|
-
|
|
7686
|
-
_ref.showVotes
|
|
7687
|
-
|
|
7656
|
+
var Poll$1 = function Poll(_ref) {
|
|
7657
|
+
var node = _ref.node,
|
|
7658
|
+
client = _ref.client,
|
|
7659
|
+
pageview = _ref.pageview,
|
|
7660
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7661
|
+
onVote = _ref.onVote,
|
|
7662
|
+
_ref$showVotes = _ref.showVotes,
|
|
7663
|
+
getSerializers = _ref.getSerializers;
|
|
7688
7664
|
|
|
7689
7665
|
var _useState = React.useState(null),
|
|
7690
7666
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -7750,67 +7726,67 @@ var Poll = function Poll(_ref) {
|
|
|
7750
7726
|
return acc;
|
|
7751
7727
|
}
|
|
7752
7728
|
}, 0);
|
|
7753
|
-
return React__default
|
|
7754
|
-
React__default
|
|
7729
|
+
return React__default.createElement(
|
|
7730
|
+
React__default.Fragment,
|
|
7755
7731
|
null,
|
|
7756
|
-
question && React__default
|
|
7732
|
+
question && React__default.createElement(
|
|
7757
7733
|
'p',
|
|
7758
7734
|
{ className: 'font-weight-bold' },
|
|
7759
7735
|
question
|
|
7760
7736
|
),
|
|
7761
|
-
!showAnswer && choices && choices.length > 0 && React__default
|
|
7737
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7762
7738
|
'form',
|
|
7763
7739
|
{ onSubmit: function onSubmit(e) {
|
|
7764
7740
|
return onSubmitPoll(e);
|
|
7765
7741
|
} },
|
|
7766
7742
|
choices && choices.map(function (choice) {
|
|
7767
|
-
return React__default
|
|
7743
|
+
return React__default.createElement(
|
|
7768
7744
|
'div',
|
|
7769
7745
|
{ key: choice._key },
|
|
7770
|
-
React__default
|
|
7746
|
+
React__default.createElement(
|
|
7771
7747
|
'label',
|
|
7772
7748
|
{ className: 'pl-2' },
|
|
7773
|
-
React__default
|
|
7749
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7774
7750
|
return setSelectedChoice(e.target.value);
|
|
7775
7751
|
} }),
|
|
7776
7752
|
' ' + choice.choiceText
|
|
7777
7753
|
)
|
|
7778
7754
|
);
|
|
7779
7755
|
}),
|
|
7780
|
-
React__default
|
|
7756
|
+
React__default.createElement(
|
|
7781
7757
|
reactBootstrap.Button,
|
|
7782
7758
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7783
7759
|
'Vote'
|
|
7784
7760
|
)
|
|
7785
7761
|
),
|
|
7786
|
-
React__default
|
|
7762
|
+
React__default.createElement(
|
|
7787
7763
|
'div',
|
|
7788
7764
|
{ className: 'progress-container' },
|
|
7789
7765
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7790
7766
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7791
|
-
return React__default
|
|
7767
|
+
return React__default.createElement(
|
|
7792
7768
|
'div',
|
|
7793
7769
|
{ key: choice._key, className: 'mb-3' },
|
|
7794
|
-
React__default
|
|
7770
|
+
React__default.createElement(
|
|
7795
7771
|
'div',
|
|
7796
7772
|
{ className: 'correct-answer' },
|
|
7797
|
-
React__default
|
|
7773
|
+
React__default.createElement(
|
|
7798
7774
|
'div',
|
|
7799
7775
|
null,
|
|
7800
7776
|
choice.choiceText
|
|
7801
7777
|
),
|
|
7802
|
-
choice.choiceAnswer === true && React__default
|
|
7778
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7803
7779
|
'div',
|
|
7804
7780
|
null,
|
|
7805
|
-
React__default
|
|
7781
|
+
React__default.createElement(
|
|
7806
7782
|
'span',
|
|
7807
7783
|
{ style: { color: 'limegreen' } },
|
|
7808
7784
|
'Correct!'
|
|
7809
7785
|
)
|
|
7810
7786
|
)
|
|
7811
7787
|
),
|
|
7812
|
-
React__default
|
|
7813
|
-
React__default
|
|
7788
|
+
React__default.createElement(reactBootstrap.ProgressBar, { now: percentage }),
|
|
7789
|
+
React__default.createElement(
|
|
7814
7790
|
'span',
|
|
7815
7791
|
{ className: 'float-right' },
|
|
7816
7792
|
percentage,
|
|
@@ -7821,14 +7797,14 @@ var Poll = function Poll(_ref) {
|
|
|
7821
7797
|
);
|
|
7822
7798
|
})
|
|
7823
7799
|
),
|
|
7824
|
-
showAnswer && React__default
|
|
7800
|
+
showAnswer && React__default.createElement(
|
|
7825
7801
|
'h4',
|
|
7826
7802
|
{ className: 'text-center small p-3' },
|
|
7827
7803
|
'Total Votes: ',
|
|
7828
7804
|
choicesTotalCount
|
|
7829
7805
|
),
|
|
7830
|
-
showAnswer && response && React__default
|
|
7831
|
-
React__default
|
|
7806
|
+
showAnswer && response && React__default.createElement(BlockContent.BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7807
|
+
React__default.createElement(
|
|
7832
7808
|
'style',
|
|
7833
7809
|
{ jsx: 'true' },
|
|
7834
7810
|
'\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 '
|
|
@@ -7836,7 +7812,7 @@ var Poll = function Poll(_ref) {
|
|
|
7836
7812
|
);
|
|
7837
7813
|
};
|
|
7838
7814
|
|
|
7839
|
-
var numberOfPaginations = main.
|
|
7815
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
7840
7816
|
|
|
7841
7817
|
var Quiz = function Quiz(_ref) {
|
|
7842
7818
|
var quizzes = _ref.quizzes,
|
|
@@ -7900,7 +7876,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7900
7876
|
setEndIndex(numberOfPaginations - 1);
|
|
7901
7877
|
newPath = window.location.pathname;
|
|
7902
7878
|
window.history.pushState(null, null, newPath);
|
|
7903
|
-
index
|
|
7879
|
+
index.lib_3.refresh();
|
|
7904
7880
|
if (pageview) pageview(newPath);
|
|
7905
7881
|
break;
|
|
7906
7882
|
case 'last':
|
|
@@ -7909,7 +7885,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7909
7885
|
setEndIndex(pageCount - pageCount % numberOfPaginations + numberOfPaginations - 1);
|
|
7910
7886
|
newPath = window.location.pathname + '?page=' + pageCount;
|
|
7911
7887
|
window.history.pushState(null, null, newPath);
|
|
7912
|
-
index
|
|
7888
|
+
index.lib_3.refresh();
|
|
7913
7889
|
if (pageview) pageview(newPath);
|
|
7914
7890
|
break;
|
|
7915
7891
|
case 'next':
|
|
@@ -7920,7 +7896,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7920
7896
|
}
|
|
7921
7897
|
newPath = window.location.pathname + '?page=' + (currentPage + 1);
|
|
7922
7898
|
window.history.pushState(null, null, newPath);
|
|
7923
|
-
index
|
|
7899
|
+
index.lib_3.refresh();
|
|
7924
7900
|
if (pageview) pageview(newPath);
|
|
7925
7901
|
break;
|
|
7926
7902
|
case 'prev':
|
|
@@ -7931,14 +7907,14 @@ var Quiz = function Quiz(_ref) {
|
|
|
7931
7907
|
}
|
|
7932
7908
|
newPath = window.location.pathname + '?page=' + (currentPage - 1);
|
|
7933
7909
|
window.history.pushState(null, null, newPath);
|
|
7934
|
-
index
|
|
7910
|
+
index.lib_3.refresh();
|
|
7935
7911
|
if (pageview) pageview(newPath);
|
|
7936
7912
|
break;
|
|
7937
7913
|
default:
|
|
7938
7914
|
setCurrentPage(control);
|
|
7939
7915
|
newPath = window.location.pathname + '?page=' + control;
|
|
7940
7916
|
window.history.pushState(null, null, newPath);
|
|
7941
|
-
index
|
|
7917
|
+
index.lib_3.refresh();
|
|
7942
7918
|
if (pageview) pageview(newPath);
|
|
7943
7919
|
}
|
|
7944
7920
|
};
|
|
@@ -7954,34 +7930,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7954
7930
|
};
|
|
7955
7931
|
|
|
7956
7932
|
var renderPagination = function renderPagination() {
|
|
7957
|
-
return React__default
|
|
7958
|
-
|
|
7959
|
-
{ className: 'p-0 m-0', size: main.
|
|
7960
|
-
React__default
|
|
7933
|
+
return React__default.createElement(
|
|
7934
|
+
Pagination,
|
|
7935
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
7936
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7961
7937
|
return changePage('first');
|
|
7962
7938
|
}, disabled: currentPage === 1 }),
|
|
7963
|
-
React__default
|
|
7939
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7964
7940
|
return changePage('prev');
|
|
7965
7941
|
}, disabled: currentPage === 1 }),
|
|
7966
|
-
React__default
|
|
7942
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7967
7943
|
return renderNewPages('prev');
|
|
7968
7944
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7969
7945
|
pages.map(function (page) {
|
|
7970
|
-
return React__default
|
|
7971
|
-
|
|
7946
|
+
return React__default.createElement(
|
|
7947
|
+
Pagination.Item,
|
|
7972
7948
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7973
7949
|
return changePage(page);
|
|
7974
7950
|
} },
|
|
7975
7951
|
page
|
|
7976
7952
|
);
|
|
7977
7953
|
}),
|
|
7978
|
-
React__default
|
|
7954
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7979
7955
|
return renderNewPages('next');
|
|
7980
7956
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7981
|
-
React__default
|
|
7957
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7982
7958
|
return changePage('next');
|
|
7983
7959
|
}, disabled: currentPage === pageCount }),
|
|
7984
|
-
React__default
|
|
7960
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7985
7961
|
return changePage('last');
|
|
7986
7962
|
}, disabled: currentPage === pageCount })
|
|
7987
7963
|
);
|
|
@@ -8064,51 +8040,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8064
8040
|
}
|
|
8065
8041
|
};
|
|
8066
8042
|
|
|
8067
|
-
return React__default
|
|
8068
|
-
React__default
|
|
8043
|
+
return React__default.createElement(
|
|
8044
|
+
React__default.Fragment,
|
|
8069
8045
|
null,
|
|
8070
|
-
quizzes[currentPage - 1] && React__default
|
|
8071
|
-
React__default
|
|
8046
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8047
|
+
React__default.Fragment,
|
|
8072
8048
|
null,
|
|
8073
|
-
React__default
|
|
8074
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default
|
|
8049
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8050
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8075
8051
|
'form',
|
|
8076
8052
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8077
8053
|
return e.preventDefault();
|
|
8078
8054
|
} },
|
|
8079
8055
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8080
|
-
return React__default
|
|
8056
|
+
return React__default.createElement(
|
|
8081
8057
|
'div',
|
|
8082
8058
|
{ key: answer._key },
|
|
8083
|
-
React__default
|
|
8059
|
+
React__default.createElement(
|
|
8084
8060
|
'label',
|
|
8085
8061
|
{ className: 'pl-2' },
|
|
8086
|
-
quizzes[currentPage - 1].multiAnswer ? React__default
|
|
8062
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8087
8063
|
' ' + answer.answerText
|
|
8088
8064
|
)
|
|
8089
8065
|
);
|
|
8090
8066
|
})
|
|
8091
8067
|
)
|
|
8092
8068
|
),
|
|
8093
|
-
!showAnswer && React__default
|
|
8094
|
-
|
|
8069
|
+
!showAnswer && React__default.createElement(
|
|
8070
|
+
Button,
|
|
8095
8071
|
{ onClick: function onClick() {
|
|
8096
8072
|
return checkAnswers();
|
|
8097
8073
|
}, variant: 'info', block: true },
|
|
8098
8074
|
'Please click here for answer'
|
|
8099
8075
|
),
|
|
8100
|
-
quizzes[currentPage - 1] && showAnswer && React__default
|
|
8101
|
-
React__default
|
|
8076
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8077
|
+
React__default.Fragment,
|
|
8102
8078
|
null,
|
|
8103
|
-
React__default
|
|
8079
|
+
React__default.createElement(
|
|
8104
8080
|
'h4',
|
|
8105
8081
|
null,
|
|
8106
8082
|
'Answer:'
|
|
8107
8083
|
),
|
|
8108
|
-
quizzes[currentPage - 1].answer && React__default
|
|
8084
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent.BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8109
8085
|
),
|
|
8110
|
-
React__default
|
|
8111
|
-
pageCount > 1 && React__default
|
|
8086
|
+
React__default.createElement('br', null),
|
|
8087
|
+
pageCount > 1 && React__default.createElement(
|
|
8112
8088
|
'div',
|
|
8113
8089
|
{ className: 'd-flex justify-content-center' },
|
|
8114
8090
|
renderPagination()
|
|
@@ -8119,19 +8095,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8119
8095
|
var Leads = function Leads(_ref) {
|
|
8120
8096
|
var url = _ref.url;
|
|
8121
8097
|
|
|
8122
|
-
return React__default
|
|
8098
|
+
return React__default.createElement(
|
|
8123
8099
|
'div',
|
|
8124
8100
|
{ className: 'd-block text-center mb-3' },
|
|
8125
|
-
url && React__default
|
|
8101
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8126
8102
|
);
|
|
8127
8103
|
};
|
|
8128
8104
|
|
|
8129
|
-
var urlFor$
|
|
8130
|
-
var builder = index.imageUrlBuilder(client);
|
|
8105
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8106
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8131
8107
|
return builder.image(source).auto('format');
|
|
8132
8108
|
};
|
|
8133
8109
|
|
|
8134
|
-
var Slideshow = function Slideshow(_ref) {
|
|
8110
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
8135
8111
|
var slides = _ref.node.slides,
|
|
8136
8112
|
client = _ref.client,
|
|
8137
8113
|
pageview = _ref.pageview,
|
|
@@ -8143,8 +8119,8 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8143
8119
|
|
|
8144
8120
|
var _useState = React.useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8145
8121
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
8146
|
-
carouselIndex = _useState2[0]
|
|
8147
|
-
_useState2[1];
|
|
8122
|
+
carouselIndex = _useState2[0],
|
|
8123
|
+
setCarouselIndex = _useState2[1];
|
|
8148
8124
|
|
|
8149
8125
|
// useEffect(() => {
|
|
8150
8126
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8157,7 +8133,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8157
8133
|
// }, [router])
|
|
8158
8134
|
|
|
8159
8135
|
React.useEffect(function () {
|
|
8160
|
-
index
|
|
8136
|
+
index.lib_3.refresh();
|
|
8161
8137
|
if (pageview) pageview(router.asPath);
|
|
8162
8138
|
}, [router]);
|
|
8163
8139
|
|
|
@@ -8170,42 +8146,42 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8170
8146
|
}
|
|
8171
8147
|
};
|
|
8172
8148
|
|
|
8173
|
-
return React__default
|
|
8149
|
+
return React__default.createElement(
|
|
8174
8150
|
'div',
|
|
8175
8151
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8176
|
-
React__default
|
|
8152
|
+
React__default.createElement(
|
|
8177
8153
|
reactBootstrap.Carousel,
|
|
8178
8154
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8179
8155
|
slides && slides.map(function (slide) {
|
|
8180
8156
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8181
|
-
return React__default
|
|
8157
|
+
return React__default.createElement(
|
|
8182
8158
|
reactBootstrap.Carousel.Item,
|
|
8183
8159
|
{ key: slide._key },
|
|
8184
|
-
React__default
|
|
8160
|
+
React__default.createElement(
|
|
8185
8161
|
'a',
|
|
8186
8162
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8187
|
-
React__default
|
|
8188
|
-
index$
|
|
8163
|
+
React__default.createElement(
|
|
8164
|
+
index$2.LazyLoad,
|
|
8189
8165
|
null,
|
|
8190
|
-
React__default
|
|
8166
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8191
8167
|
)
|
|
8192
8168
|
),
|
|
8193
|
-
React__default
|
|
8169
|
+
React__default.createElement(
|
|
8194
8170
|
'div',
|
|
8195
8171
|
{ className: 'p-2' },
|
|
8196
|
-
slide.slideshowImage.caption && React__default
|
|
8172
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8197
8173
|
'h3',
|
|
8198
8174
|
{ style: { padding: '0px' } },
|
|
8199
8175
|
slide.slideshowImage.caption
|
|
8200
8176
|
),
|
|
8201
|
-
slide.description && React__default
|
|
8177
|
+
slide.description && React__default.createElement(BlockContent.BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8202
8178
|
)
|
|
8203
8179
|
);
|
|
8204
8180
|
}
|
|
8205
8181
|
return null;
|
|
8206
8182
|
})
|
|
8207
8183
|
),
|
|
8208
|
-
React__default
|
|
8184
|
+
React__default.createElement(
|
|
8209
8185
|
'style',
|
|
8210
8186
|
{ jsx: 'true' },
|
|
8211
8187
|
'\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 '
|
|
@@ -8224,10 +8200,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8224
8200
|
sizes = _props$node.sizes,
|
|
8225
8201
|
sizeMapping = _props$node.sizeMapping;
|
|
8226
8202
|
|
|
8227
|
-
return React__default
|
|
8203
|
+
return React__default.createElement(
|
|
8228
8204
|
'div',
|
|
8229
8205
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8230
|
-
React__default
|
|
8206
|
+
React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8231
8207
|
);
|
|
8232
8208
|
};
|
|
8233
8209
|
|
|
@@ -8238,20 +8214,20 @@ var Formstack = function Formstack(_ref) {
|
|
|
8238
8214
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8239
8215
|
|
|
8240
8216
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8241
|
-
return React__default
|
|
8217
|
+
return React__default.createElement(
|
|
8242
8218
|
'section',
|
|
8243
8219
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8244
|
-
Caption && React__default
|
|
8220
|
+
Caption && React__default.createElement(
|
|
8245
8221
|
'h4',
|
|
8246
8222
|
{ className: 'formstack-caption' },
|
|
8247
8223
|
Caption
|
|
8248
8224
|
),
|
|
8249
|
-
React__default
|
|
8225
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8250
8226
|
);
|
|
8251
8227
|
};
|
|
8252
8228
|
|
|
8253
8229
|
var urlFor$2 = function urlFor(source, client) {
|
|
8254
|
-
var builder = index.imageUrlBuilder(client);
|
|
8230
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8255
8231
|
return builder.image(source).auto('format');
|
|
8256
8232
|
};
|
|
8257
8233
|
var MultiMedia = function MultiMedia(props) {
|
|
@@ -8266,29 +8242,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8266
8242
|
}
|
|
8267
8243
|
});
|
|
8268
8244
|
if (medias && medias.length > 0) {
|
|
8269
|
-
return React__default
|
|
8245
|
+
return React__default.createElement(
|
|
8270
8246
|
'div',
|
|
8271
8247
|
{ className: 'multi-media-container' },
|
|
8272
|
-
React__default
|
|
8273
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8249
|
+
Row,
|
|
8274
8250
|
{ noGutters: true },
|
|
8275
8251
|
medias.map(function (media) {
|
|
8276
|
-
return React__default
|
|
8277
|
-
|
|
8252
|
+
return React__default.createElement(
|
|
8253
|
+
Col,
|
|
8278
8254
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8279
|
-
React__default
|
|
8255
|
+
React__default.createElement(
|
|
8280
8256
|
'a',
|
|
8281
|
-
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8257
|
+
_extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8282
8258
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8283
|
-
React__default
|
|
8259
|
+
React__default.createElement(
|
|
8284
8260
|
'div',
|
|
8285
8261
|
{ className: 'multi-media-image-container' },
|
|
8286
|
-
imageBox && React__default
|
|
8287
|
-
index$
|
|
8262
|
+
imageBox && React__default.createElement(
|
|
8263
|
+
index$2.LazyLoad,
|
|
8288
8264
|
{ once: true },
|
|
8289
|
-
React__default
|
|
8265
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8290
8266
|
),
|
|
8291
|
-
media.caption && React__default
|
|
8267
|
+
media.caption && React__default.createElement(
|
|
8292
8268
|
'span',
|
|
8293
8269
|
{ className: 'multi-media-caption' },
|
|
8294
8270
|
media.caption
|
|
@@ -8298,7 +8274,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8298
8274
|
);
|
|
8299
8275
|
})
|
|
8300
8276
|
),
|
|
8301
|
-
React__default
|
|
8277
|
+
React__default.createElement(
|
|
8302
8278
|
'style',
|
|
8303
8279
|
{ jsx: 'true' },
|
|
8304
8280
|
'\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 '
|
|
@@ -8309,12 +8285,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8309
8285
|
};
|
|
8310
8286
|
|
|
8311
8287
|
var InscreenSensor = function (_React$Component) {
|
|
8312
|
-
inherits._inherits(InscreenSensor, _React$Component);
|
|
8288
|
+
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8313
8289
|
|
|
8314
8290
|
function InscreenSensor(props) {
|
|
8315
|
-
inherits._classCallCheck(this, InscreenSensor);
|
|
8291
|
+
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8316
8292
|
|
|
8317
|
-
var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8293
|
+
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8318
8294
|
|
|
8319
8295
|
_this.scrollHandler = function () {
|
|
8320
8296
|
var visible = _this.checkInside();
|
|
@@ -8345,12 +8321,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8345
8321
|
}
|
|
8346
8322
|
};
|
|
8347
8323
|
|
|
8348
|
-
_this.wraperRef = React__default
|
|
8324
|
+
_this.wraperRef = React__default.createRef();
|
|
8349
8325
|
_this.visible = false;
|
|
8350
8326
|
return _this;
|
|
8351
8327
|
}
|
|
8352
8328
|
|
|
8353
|
-
inherits._createClass(InscreenSensor, [{
|
|
8329
|
+
inherits$1._createClass(InscreenSensor, [{
|
|
8354
8330
|
key: 'componentDidMount',
|
|
8355
8331
|
value: function componentDidMount() {
|
|
8356
8332
|
this.visible = this.checkInside();
|
|
@@ -8373,7 +8349,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8373
8349
|
_props$id = _props.id,
|
|
8374
8350
|
id = _props$id === undefined ? '' : _props$id;
|
|
8375
8351
|
|
|
8376
|
-
return React__default
|
|
8352
|
+
return React__default.createElement(
|
|
8377
8353
|
'div',
|
|
8378
8354
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8379
8355
|
this.props.children
|
|
@@ -8382,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8382
8358
|
}]);
|
|
8383
8359
|
|
|
8384
8360
|
return InscreenSensor;
|
|
8385
|
-
}(React__default
|
|
8361
|
+
}(React__default.Component);
|
|
8386
8362
|
|
|
8387
8363
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8388
8364
|
var nodes = _ref.nodes,
|
|
@@ -8400,7 +8376,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8400
8376
|
var today = moment.moment().utc().format();
|
|
8401
8377
|
|
|
8402
8378
|
var authorPrefix = 'authors';
|
|
8403
|
-
var builder = index.imageUrlBuilder(client);
|
|
8379
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8404
8380
|
function urlFor(source) {
|
|
8405
8381
|
return builder.image(source);
|
|
8406
8382
|
}
|
|
@@ -8495,33 +8471,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8495
8471
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8496
8472
|
var showReading = show ? 'showReading' : '';
|
|
8497
8473
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8498
|
-
return React__default
|
|
8474
|
+
return React__default.createElement(
|
|
8499
8475
|
'div',
|
|
8500
8476
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8501
|
-
React__default
|
|
8477
|
+
React__default.createElement(
|
|
8502
8478
|
'a',
|
|
8503
8479
|
{ onClick: function onClick(e) {
|
|
8504
8480
|
return articleCardClickHandler(e);
|
|
8505
8481
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8506
|
-
React__default
|
|
8482
|
+
React__default.createElement(
|
|
8507
8483
|
'div',
|
|
8508
8484
|
{ className: 'prevNext-thumbnail' },
|
|
8509
|
-
React__default
|
|
8510
|
-
React__default
|
|
8485
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8486
|
+
React__default.createElement(
|
|
8511
8487
|
'div',
|
|
8512
8488
|
{ className: 'prevNext-reading ' + showReading },
|
|
8513
8489
|
articleLabel
|
|
8514
8490
|
)
|
|
8515
8491
|
),
|
|
8516
|
-
React__default
|
|
8492
|
+
React__default.createElement(
|
|
8517
8493
|
'div',
|
|
8518
8494
|
{ className: 'prevNext-summary' },
|
|
8519
|
-
React__default
|
|
8495
|
+
React__default.createElement(
|
|
8520
8496
|
'div',
|
|
8521
8497
|
{ className: 'prevNext-publishDate' },
|
|
8522
8498
|
moment.moment(article.published).format('LL')
|
|
8523
8499
|
),
|
|
8524
|
-
React__default
|
|
8500
|
+
React__default.createElement(
|
|
8525
8501
|
'h2',
|
|
8526
8502
|
{ className: 'prevNext-title' },
|
|
8527
8503
|
article.title
|
|
@@ -8570,7 +8546,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8570
8546
|
|
|
8571
8547
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8572
8548
|
if (biography) {
|
|
8573
|
-
return React__default
|
|
8549
|
+
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8574
8550
|
}
|
|
8575
8551
|
};
|
|
8576
8552
|
|
|
@@ -8656,7 +8632,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8656
8632
|
//console.log('useLayoutEffect')
|
|
8657
8633
|
if (!firstLoad) {
|
|
8658
8634
|
setUpArrowClicked(false);
|
|
8659
|
-
if (main.
|
|
8635
|
+
if (main.main_36) {
|
|
8660
8636
|
grabLoadedAds();
|
|
8661
8637
|
} else {
|
|
8662
8638
|
scrollToArticle();
|
|
@@ -8665,7 +8641,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8665
8641
|
});
|
|
8666
8642
|
|
|
8667
8643
|
var grabLoadedAds = function grabLoadedAds() {
|
|
8668
|
-
index
|
|
8644
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8669
8645
|
var checkIfReady = window.setInterval(function () {
|
|
8670
8646
|
if (window.googletag && googletag.pubadsReady) {
|
|
8671
8647
|
clearInterval(checkIfReady);
|
|
@@ -8680,19 +8656,19 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8680
8656
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8681
8657
|
if (pageview) pageview(path);
|
|
8682
8658
|
|
|
8683
|
-
if (!main.
|
|
8684
|
-
index
|
|
8659
|
+
if (!main.main_36) {
|
|
8660
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8685
8661
|
if (window.googletag && googletag.pubadsReady) {
|
|
8686
|
-
index
|
|
8662
|
+
index.lib_3.refresh();
|
|
8687
8663
|
}
|
|
8688
8664
|
});
|
|
8689
8665
|
}
|
|
8690
8666
|
//Refresh leaderboard ad on mobile
|
|
8691
|
-
if (main.
|
|
8667
|
+
if (main.main_36) {
|
|
8692
8668
|
var leaderboardSlotId = '';
|
|
8693
|
-
index
|
|
8669
|
+
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8694
8670
|
if (window.googletag && googletag.pubadsReady) {
|
|
8695
|
-
index
|
|
8671
|
+
index.lib_3.refresh(leaderboardSlotId);
|
|
8696
8672
|
}
|
|
8697
8673
|
});
|
|
8698
8674
|
}
|
|
@@ -8728,38 +8704,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8728
8704
|
setSensorVisible(false);
|
|
8729
8705
|
};
|
|
8730
8706
|
|
|
8731
|
-
return React__default
|
|
8732
|
-
React__default
|
|
8707
|
+
return React__default.createElement(
|
|
8708
|
+
React__default.Fragment,
|
|
8733
8709
|
null,
|
|
8734
|
-
React__default
|
|
8710
|
+
React__default.createElement(
|
|
8735
8711
|
'div',
|
|
8736
8712
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8737
|
-
React__default
|
|
8713
|
+
React__default.createElement(index_esm.IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8738
8714
|
return handleArrowClick();
|
|
8739
8715
|
} })
|
|
8740
8716
|
),
|
|
8741
|
-
React__default
|
|
8742
|
-
React__default
|
|
8717
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8718
|
+
React__default.createElement(
|
|
8743
8719
|
'div',
|
|
8744
8720
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8745
|
-
React__default
|
|
8721
|
+
React__default.createElement(
|
|
8746
8722
|
'h5',
|
|
8747
8723
|
{ className: 'objective-title' },
|
|
8748
8724
|
nodes.seriesTitle
|
|
8749
8725
|
),
|
|
8750
|
-
React__default
|
|
8726
|
+
React__default.createElement(
|
|
8751
8727
|
'div',
|
|
8752
8728
|
{ className: 'prevNextWrapper' },
|
|
8753
8729
|
PrevNextCards(false, -1)
|
|
8754
8730
|
)
|
|
8755
8731
|
),
|
|
8756
|
-
React__default
|
|
8757
|
-
React__default
|
|
8732
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8733
|
+
React__default.createElement(
|
|
8758
8734
|
'div',
|
|
8759
8735
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8760
|
-
main.
|
|
8736
|
+
main.main_36 && Ads.map(function (ad, index) {
|
|
8761
8737
|
if (index === 0) {
|
|
8762
|
-
return React__default
|
|
8738
|
+
return React__default.createElement(
|
|
8763
8739
|
'div',
|
|
8764
8740
|
{
|
|
8765
8741
|
key: 'addid-1',
|
|
@@ -8779,14 +8755,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8779
8755
|
}
|
|
8780
8756
|
})
|
|
8781
8757
|
),
|
|
8782
|
-
React__default
|
|
8758
|
+
React__default.createElement(
|
|
8783
8759
|
'div',
|
|
8784
8760
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8785
8761
|
Articles.map(function (article, index) {
|
|
8786
|
-
return React__default
|
|
8762
|
+
return React__default.createElement(
|
|
8787
8763
|
'div',
|
|
8788
8764
|
{ key: article.title },
|
|
8789
|
-
React__default
|
|
8765
|
+
React__default.createElement(
|
|
8790
8766
|
InscreenSensor,
|
|
8791
8767
|
{
|
|
8792
8768
|
visible: sensorVisible,
|
|
@@ -8804,84 +8780,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8804
8780
|
}
|
|
8805
8781
|
}
|
|
8806
8782
|
} },
|
|
8807
|
-
React__default
|
|
8808
|
-
|
|
8783
|
+
React__default.createElement(
|
|
8784
|
+
Head,
|
|
8809
8785
|
null,
|
|
8810
|
-
currentTitle !== null && React__default
|
|
8786
|
+
currentTitle !== null && React__default.createElement(
|
|
8811
8787
|
'title',
|
|
8812
8788
|
{ key: 'title' },
|
|
8813
8789
|
currentTitle
|
|
8814
8790
|
),
|
|
8815
|
-
currentSummary !== null && React__default
|
|
8816
|
-
currentURL !== null && React__default
|
|
8817
|
-
currentTitle !== null && React__default
|
|
8818
|
-
currentThumbnail !== null && React__default
|
|
8819
|
-
currentSummary !== null && React__default
|
|
8820
|
-
currentTitle !== null && React__default
|
|
8821
|
-
currentThumbnail !== null && React__default
|
|
8822
|
-
currentSummary !== null && React__default
|
|
8791
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8792
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8793
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8794
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8795
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8796
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8797
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8798
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8823
8799
|
),
|
|
8824
|
-
React__default
|
|
8800
|
+
React__default.createElement(
|
|
8825
8801
|
'article',
|
|
8826
8802
|
{ className: 'article-wrapper' },
|
|
8827
|
-
React__default
|
|
8803
|
+
React__default.createElement(
|
|
8828
8804
|
'div',
|
|
8829
8805
|
{ className: 'article-publishDate' },
|
|
8830
8806
|
moment.moment(article.published).format('LL')
|
|
8831
8807
|
),
|
|
8832
|
-
React__default
|
|
8808
|
+
React__default.createElement(
|
|
8833
8809
|
'div',
|
|
8834
8810
|
{ className: 'author-details-wrapper' },
|
|
8835
8811
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8836
|
-
return React__default
|
|
8812
|
+
return React__default.createElement(
|
|
8837
8813
|
'span',
|
|
8838
8814
|
{ key: index },
|
|
8839
8815
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8840
8816
|
);
|
|
8841
8817
|
})
|
|
8842
8818
|
),
|
|
8843
|
-
React__default
|
|
8819
|
+
React__default.createElement(
|
|
8844
8820
|
'h2',
|
|
8845
8821
|
{ className: 'article-title' },
|
|
8846
8822
|
article.title
|
|
8847
8823
|
),
|
|
8848
|
-
React__default
|
|
8824
|
+
React__default.createElement(
|
|
8849
8825
|
'div',
|
|
8850
8826
|
{ className: 'mt-2 mb-2' },
|
|
8851
|
-
React__default
|
|
8827
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
8852
8828
|
serializers: getSerializers,
|
|
8853
8829
|
videoAccountIDs: accountIDs,
|
|
8854
8830
|
blocks: article.text,
|
|
8855
8831
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8856
8832
|
}, client.config())),
|
|
8857
|
-
React__default
|
|
8833
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8858
8834
|
),
|
|
8859
|
-
Articles.length > 1 && React__default
|
|
8860
|
-
React__default
|
|
8835
|
+
Articles.length > 1 && React__default.createElement(
|
|
8836
|
+
React__default.Fragment,
|
|
8861
8837
|
null,
|
|
8862
|
-
React__default
|
|
8838
|
+
React__default.createElement(
|
|
8863
8839
|
'div',
|
|
8864
8840
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8865
|
-
React__default
|
|
8841
|
+
React__default.createElement(
|
|
8866
8842
|
'h5',
|
|
8867
8843
|
{ className: 'objective-title' },
|
|
8868
8844
|
nodes.seriesTitle
|
|
8869
8845
|
),
|
|
8870
|
-
React__default
|
|
8846
|
+
React__default.createElement(
|
|
8871
8847
|
'div',
|
|
8872
8848
|
{ className: 'prevNextWrapper' },
|
|
8873
8849
|
PrevNextCards(true, index)
|
|
8874
8850
|
)
|
|
8875
8851
|
),
|
|
8876
|
-
React__default
|
|
8852
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8877
8853
|
)
|
|
8878
8854
|
),
|
|
8879
|
-
React__default
|
|
8855
|
+
React__default.createElement(
|
|
8880
8856
|
'div',
|
|
8881
8857
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8882
|
-
main.
|
|
8858
|
+
main.main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8883
8859
|
if (innerIndex === 0) {
|
|
8884
|
-
return React__default
|
|
8860
|
+
return React__default.createElement(
|
|
8885
8861
|
'div',
|
|
8886
8862
|
{
|
|
8887
8863
|
key: 'addid-' + (index + 2),
|
|
@@ -8904,7 +8880,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8904
8880
|
)
|
|
8905
8881
|
);
|
|
8906
8882
|
}),
|
|
8907
|
-
React__default
|
|
8883
|
+
React__default.createElement(
|
|
8908
8884
|
'style',
|
|
8909
8885
|
{ jsx: 'true' },
|
|
8910
8886
|
'\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 '
|
|
@@ -8934,11 +8910,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8934
8910
|
};
|
|
8935
8911
|
}, [handleClickOutside]);
|
|
8936
8912
|
|
|
8937
|
-
return React__default
|
|
8913
|
+
return React__default.createElement(
|
|
8938
8914
|
'div',
|
|
8939
8915
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8940
|
-
React__default
|
|
8941
|
-
React__default
|
|
8916
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8917
|
+
React__default.createElement(
|
|
8942
8918
|
'style',
|
|
8943
8919
|
{ jsx: 'true' },
|
|
8944
8920
|
'\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 '
|
|
@@ -8946,13 +8922,13 @@ var LightBox = function LightBox(_ref) {
|
|
|
8946
8922
|
);
|
|
8947
8923
|
};
|
|
8948
8924
|
|
|
8949
|
-
var urlFor$
|
|
8950
|
-
var builder = index.imageUrlBuilder(client);
|
|
8925
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8926
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8951
8927
|
return builder.image(source).auto('format');
|
|
8952
8928
|
};
|
|
8953
8929
|
|
|
8954
8930
|
var generateSrcSet = function generateSrcSet(source, client, width) {
|
|
8955
|
-
var builder = index.imageUrlBuilder(client);
|
|
8931
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
8956
8932
|
return builder.image(source).width(width).fit('max').auto('format').url();
|
|
8957
8933
|
};
|
|
8958
8934
|
|
|
@@ -8962,7 +8938,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8962
8938
|
}
|
|
8963
8939
|
};
|
|
8964
8940
|
|
|
8965
|
-
var FigureImage = React__default
|
|
8941
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8966
8942
|
var node = _ref2.node,
|
|
8967
8943
|
client = _ref2.client,
|
|
8968
8944
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8970,16 +8946,16 @@ var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
|
8970
8946
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8971
8947
|
|
|
8972
8948
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8973
|
-
return React__default
|
|
8949
|
+
return React__default.createElement(
|
|
8974
8950
|
'picture',
|
|
8975
8951
|
null,
|
|
8976
|
-
React__default
|
|
8977
|
-
React__default
|
|
8978
|
-
React__default
|
|
8979
|
-
React__default
|
|
8952
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8953
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8954
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8955
|
+
React__default.createElement('img', _extends$1._extends({
|
|
8980
8956
|
style: figureImageStyle,
|
|
8981
8957
|
className: 'figure-image',
|
|
8982
|
-
src: urlFor$
|
|
8958
|
+
src: urlFor$3(node, client).url(),
|
|
8983
8959
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
8984
8960
|
}, !link && {
|
|
8985
8961
|
onClick: function onClick() {
|
|
@@ -9064,13 +9040,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9064
9040
|
|
|
9065
9041
|
var FigureCaption = React.useCallback(function () {
|
|
9066
9042
|
if (imgcaption && imgcaption.length > 0) {
|
|
9067
|
-
return React__default
|
|
9043
|
+
return React__default.createElement(
|
|
9068
9044
|
'div',
|
|
9069
9045
|
{ className: 'figure-caption' },
|
|
9070
|
-
React__default
|
|
9046
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9071
9047
|
);
|
|
9072
9048
|
} else if (caption) {
|
|
9073
|
-
return React__default
|
|
9049
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9074
9050
|
} else return null;
|
|
9075
9051
|
}, [caption, imgcaption]);
|
|
9076
9052
|
|
|
@@ -9083,28 +9059,28 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9083
9059
|
};
|
|
9084
9060
|
|
|
9085
9061
|
var handleClickFigure = React.useCallback(function (node, client) {
|
|
9086
|
-
setLightboxImgSrc(urlFor$
|
|
9062
|
+
setLightboxImgSrc(urlFor$3(node, client).url());
|
|
9087
9063
|
setShowLightbox(true);
|
|
9088
9064
|
}, [node, client]);
|
|
9089
9065
|
|
|
9090
|
-
return React__default
|
|
9091
|
-
React__default
|
|
9066
|
+
return React__default.createElement(
|
|
9067
|
+
React__default.Fragment,
|
|
9092
9068
|
null,
|
|
9093
|
-
React__default
|
|
9094
|
-
|
|
9069
|
+
React__default.createElement(
|
|
9070
|
+
Figure$1,
|
|
9095
9071
|
{ className: '' + class_name, style: figureStyle },
|
|
9096
|
-
link ? React__default
|
|
9072
|
+
link ? React__default.createElement(
|
|
9097
9073
|
'a',
|
|
9098
9074
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9099
|
-
React__default
|
|
9100
|
-
React__default
|
|
9101
|
-
) : React__default
|
|
9102
|
-
React__default
|
|
9075
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9076
|
+
React__default.createElement(FigureCaption, null)
|
|
9077
|
+
) : React__default.createElement(
|
|
9078
|
+
React__default.Fragment,
|
|
9103
9079
|
null,
|
|
9104
|
-
React__default
|
|
9105
|
-
React__default
|
|
9080
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9081
|
+
React__default.createElement(FigureCaption, null)
|
|
9106
9082
|
),
|
|
9107
|
-
React__default
|
|
9083
|
+
React__default.createElement(LightBox, {
|
|
9108
9084
|
showLightbox: showLightbox,
|
|
9109
9085
|
lightboxImgSrc: lightboxImgSrc,
|
|
9110
9086
|
closeLightbox: function closeLightbox() {
|
|
@@ -9113,7 +9089,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9113
9089
|
}
|
|
9114
9090
|
})
|
|
9115
9091
|
),
|
|
9116
|
-
React__default
|
|
9092
|
+
React__default.createElement(
|
|
9117
9093
|
'style',
|
|
9118
9094
|
{ jsx: 'true' },
|
|
9119
9095
|
'\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 '
|
|
@@ -9121,10 +9097,10 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9121
9097
|
);
|
|
9122
9098
|
};
|
|
9123
9099
|
|
|
9124
|
-
var Figure = React__default
|
|
9100
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9125
9101
|
|
|
9126
|
-
var urlFor = function urlFor(source, client) {
|
|
9127
|
-
var builder = index.imageUrlBuilder(client);
|
|
9102
|
+
var urlFor$4 = function urlFor(source, client) {
|
|
9103
|
+
var builder = index$1.imageUrlBuilder(client);
|
|
9128
9104
|
return builder.image(source).auto('format');
|
|
9129
9105
|
};
|
|
9130
9106
|
|
|
@@ -9167,68 +9143,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9167
9143
|
imgcaption = _ref.imgcaption;
|
|
9168
9144
|
|
|
9169
9145
|
if (imgcaption && imgcaption.length > 0) {
|
|
9170
|
-
return React__default
|
|
9146
|
+
return React__default.createElement(
|
|
9171
9147
|
'div',
|
|
9172
9148
|
{ className: 'multi-figure-caption' },
|
|
9173
|
-
React__default
|
|
9149
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9174
9150
|
);
|
|
9175
9151
|
} else if (caption) {
|
|
9176
|
-
return React__default
|
|
9152
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9177
9153
|
} else return null;
|
|
9178
9154
|
};
|
|
9179
9155
|
|
|
9180
9156
|
if (images && images.length > 0) {
|
|
9181
|
-
return React__default
|
|
9157
|
+
return React__default.createElement(
|
|
9182
9158
|
'div',
|
|
9183
9159
|
{ className: 'multi-figure-container' },
|
|
9184
|
-
React__default
|
|
9185
|
-
|
|
9160
|
+
React__default.createElement(
|
|
9161
|
+
Row,
|
|
9186
9162
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9187
9163
|
images.map(function (image, index) {
|
|
9188
|
-
return React__default
|
|
9189
|
-
|
|
9164
|
+
return React__default.createElement(
|
|
9165
|
+
Col,
|
|
9190
9166
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9191
|
-
image.link ? React__default
|
|
9167
|
+
image.link ? React__default.createElement(
|
|
9192
9168
|
'a',
|
|
9193
|
-
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9194
|
-
React__default
|
|
9169
|
+
_extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9170
|
+
React__default.createElement(
|
|
9195
9171
|
'div',
|
|
9196
9172
|
{ className: 'multi-figure-image-container' },
|
|
9197
|
-
React__default
|
|
9198
|
-
index$
|
|
9173
|
+
React__default.createElement(
|
|
9174
|
+
index$2.LazyLoad,
|
|
9199
9175
|
{ once: true },
|
|
9200
|
-
React__default
|
|
9176
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9201
9177
|
),
|
|
9202
|
-
React__default
|
|
9178
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9203
9179
|
)
|
|
9204
|
-
) : React__default
|
|
9180
|
+
) : React__default.createElement(
|
|
9205
9181
|
'div',
|
|
9206
9182
|
{ className: 'multi-figure-image-container' },
|
|
9207
|
-
React__default
|
|
9208
|
-
index$
|
|
9183
|
+
React__default.createElement(
|
|
9184
|
+
index$2.LazyLoad,
|
|
9209
9185
|
{ once: true },
|
|
9210
|
-
React__default
|
|
9186
|
+
React__default.createElement('img', {
|
|
9211
9187
|
'images-count': images.length,
|
|
9212
9188
|
className: 'multi-figure-image',
|
|
9213
|
-
src: urlFor(image.asset, client).url(),
|
|
9189
|
+
src: urlFor$4(image.asset, client).url(),
|
|
9214
9190
|
alt: image.alt,
|
|
9215
9191
|
onClick: function onClick() {
|
|
9216
|
-
setOpenImgSrc(urlFor(image, client).url());
|
|
9192
|
+
setOpenImgSrc(urlFor$4(image, client).url());
|
|
9217
9193
|
setOpenImg(true);
|
|
9218
9194
|
}
|
|
9219
9195
|
})
|
|
9220
9196
|
),
|
|
9221
|
-
React__default
|
|
9197
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9222
9198
|
)
|
|
9223
9199
|
);
|
|
9224
9200
|
})
|
|
9225
9201
|
),
|
|
9226
|
-
React__default
|
|
9202
|
+
React__default.createElement(
|
|
9227
9203
|
'div',
|
|
9228
9204
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9229
|
-
React__default
|
|
9205
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9230
9206
|
),
|
|
9231
|
-
React__default
|
|
9207
|
+
React__default.createElement(
|
|
9232
9208
|
'style',
|
|
9233
9209
|
{ jsx: 'true' },
|
|
9234
9210
|
'\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 '
|
|
@@ -9250,13 +9226,267 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9250
9226
|
|
|
9251
9227
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9252
9228
|
|
|
9253
|
-
return React__default
|
|
9229
|
+
return React__default.createElement(
|
|
9254
9230
|
'div',
|
|
9255
9231
|
{ id: elementId },
|
|
9256
|
-
React__default
|
|
9232
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: content, serializers: getSerializers })
|
|
9257
9233
|
);
|
|
9258
9234
|
};
|
|
9259
9235
|
|
|
9236
|
+
var objectWithoutProperties = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9237
|
+
|
|
9238
|
+
exports.__esModule = true;
|
|
9239
|
+
|
|
9240
|
+
exports.default = function (obj, keys) {
|
|
9241
|
+
var target = {};
|
|
9242
|
+
|
|
9243
|
+
for (var i in obj) {
|
|
9244
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9245
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9246
|
+
target[i] = obj[i];
|
|
9247
|
+
}
|
|
9248
|
+
|
|
9249
|
+
return target;
|
|
9250
|
+
};
|
|
9251
|
+
});
|
|
9252
|
+
|
|
9253
|
+
_commonjsHelpers.unwrapExports(objectWithoutProperties);
|
|
9254
|
+
|
|
9255
|
+
var ScriptTag_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9256
|
+
|
|
9257
|
+
exports.__esModule = true;
|
|
9258
|
+
|
|
9259
|
+
|
|
9260
|
+
|
|
9261
|
+
var _extends3 = _interopRequireDefault(_extends$1._extends$1);
|
|
9262
|
+
|
|
9263
|
+
|
|
9264
|
+
|
|
9265
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9266
|
+
|
|
9267
|
+
|
|
9268
|
+
|
|
9269
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9270
|
+
|
|
9271
|
+
|
|
9272
|
+
|
|
9273
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9274
|
+
|
|
9275
|
+
|
|
9276
|
+
|
|
9277
|
+
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9278
|
+
|
|
9279
|
+
|
|
9280
|
+
|
|
9281
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9282
|
+
|
|
9283
|
+
|
|
9284
|
+
|
|
9285
|
+
var _propTypes2 = _interopRequireDefault(PropTypes__default);
|
|
9286
|
+
|
|
9287
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9288
|
+
var noop = function noop() {};
|
|
9289
|
+
|
|
9290
|
+
var ScriptTag = function (_Component) {
|
|
9291
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9292
|
+
|
|
9293
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9294
|
+
if (node) {
|
|
9295
|
+
node.parentNode.removeChild(node);
|
|
9296
|
+
}
|
|
9297
|
+
};
|
|
9298
|
+
|
|
9299
|
+
function ScriptTag(props, context) {
|
|
9300
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9301
|
+
|
|
9302
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9303
|
+
|
|
9304
|
+
_this.domRef = null;
|
|
9305
|
+
_this.state = {
|
|
9306
|
+
isHydrated: props.isHydrating,
|
|
9307
|
+
additionalNode: null,
|
|
9308
|
+
removeAdditionalNode: null
|
|
9309
|
+
};
|
|
9310
|
+
return _this;
|
|
9311
|
+
}
|
|
9312
|
+
|
|
9313
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9314
|
+
var _props = this.props,
|
|
9315
|
+
onError = _props.onError,
|
|
9316
|
+
onLoad = _props.onLoad,
|
|
9317
|
+
nonce = _props.nonce;
|
|
9318
|
+
|
|
9319
|
+
// Create a new HTML script element
|
|
9320
|
+
|
|
9321
|
+
var newElement = document.createElement("script");
|
|
9322
|
+
|
|
9323
|
+
// Copy all attribute values
|
|
9324
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9325
|
+
var attr = this.domRef.attributes[i];
|
|
9326
|
+
if (attr.nodeName === 'nonce') {
|
|
9327
|
+
// The browser clears the nonce value - grab from props
|
|
9328
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9329
|
+
} else {
|
|
9330
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9331
|
+
}
|
|
9332
|
+
}
|
|
9333
|
+
|
|
9334
|
+
// Copy the inner script
|
|
9335
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9336
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9337
|
+
}
|
|
9338
|
+
|
|
9339
|
+
// Bind event listeners
|
|
9340
|
+
newElement.addEventListener('load', onLoad);
|
|
9341
|
+
newElement.addEventListener('error', onError);
|
|
9342
|
+
|
|
9343
|
+
// Append the new script tag
|
|
9344
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9345
|
+
return newElement;
|
|
9346
|
+
};
|
|
9347
|
+
|
|
9348
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9349
|
+
var isHydrated = this.state.isHydrated;
|
|
9350
|
+
|
|
9351
|
+
if (isHydrated) {
|
|
9352
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9353
|
+
return;
|
|
9354
|
+
}
|
|
9355
|
+
|
|
9356
|
+
this.setState({
|
|
9357
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9358
|
+
removeAdditionalNode: null
|
|
9359
|
+
});
|
|
9360
|
+
};
|
|
9361
|
+
|
|
9362
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9363
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9364
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9365
|
+
|
|
9366
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9367
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9368
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9369
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9370
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9371
|
+
var _props2 = this.props,
|
|
9372
|
+
src = _props2.src,
|
|
9373
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9374
|
+
|
|
9375
|
+
if (src && src === nextProps.src) {
|
|
9376
|
+
// The 'src' attribute has not changed
|
|
9377
|
+
return;
|
|
9378
|
+
}
|
|
9379
|
+
|
|
9380
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9381
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9382
|
+
return;
|
|
9383
|
+
}
|
|
9384
|
+
|
|
9385
|
+
this.setState({
|
|
9386
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9387
|
+
additionalNode: null
|
|
9388
|
+
});
|
|
9389
|
+
};
|
|
9390
|
+
|
|
9391
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9392
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9393
|
+
};
|
|
9394
|
+
|
|
9395
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9396
|
+
var _state = this.state,
|
|
9397
|
+
additionalNode = _state.additionalNode,
|
|
9398
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9399
|
+
|
|
9400
|
+
if (additionalNode === null) {
|
|
9401
|
+
this.setState({
|
|
9402
|
+
additionalNode: this.appendAdditionalElement()
|
|
9403
|
+
});
|
|
9404
|
+
}
|
|
9405
|
+
|
|
9406
|
+
if (removeAdditionalNode !== null) {
|
|
9407
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9408
|
+
this.setState({
|
|
9409
|
+
removeAdditionalNode: null
|
|
9410
|
+
});
|
|
9411
|
+
}
|
|
9412
|
+
};
|
|
9413
|
+
|
|
9414
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9415
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9416
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9417
|
+
};
|
|
9418
|
+
|
|
9419
|
+
ScriptTag.prototype.render = function render() {
|
|
9420
|
+
var _this2 = this;
|
|
9421
|
+
|
|
9422
|
+
var additionalNode = this.state.additionalNode;
|
|
9423
|
+
|
|
9424
|
+
if (additionalNode !== null) {
|
|
9425
|
+
return null;
|
|
9426
|
+
}
|
|
9427
|
+
|
|
9428
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9429
|
+
// eslint-disable-next-line no-unused-vars
|
|
9430
|
+
var _props3 = this.props,
|
|
9431
|
+
isHydrating = _props3.isHydrating,
|
|
9432
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9433
|
+
|
|
9434
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9435
|
+
return _this2.domRef = tag;
|
|
9436
|
+
} }));
|
|
9437
|
+
};
|
|
9438
|
+
|
|
9439
|
+
return ScriptTag;
|
|
9440
|
+
}(React__default.Component);
|
|
9441
|
+
|
|
9442
|
+
ScriptTag.propTypes = {
|
|
9443
|
+
/**
|
|
9444
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9445
|
+
*/
|
|
9446
|
+
isHydrating: _propTypes2.default.bool,
|
|
9447
|
+
|
|
9448
|
+
// Standard <script> tag props
|
|
9449
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9450
|
+
crossOrigin: _propTypes2.default.string,
|
|
9451
|
+
defer: _propTypes2.default.bool,
|
|
9452
|
+
integrity: _propTypes2.default.string,
|
|
9453
|
+
nonce: _propTypes2.default.string,
|
|
9454
|
+
src: _propTypes2.default.string,
|
|
9455
|
+
text: _propTypes2.default.string,
|
|
9456
|
+
type: _propTypes2.default.string,
|
|
9457
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9458
|
+
|
|
9459
|
+
// globals
|
|
9460
|
+
onError: _propTypes2.default.func,
|
|
9461
|
+
onLoad: _propTypes2.default.func
|
|
9462
|
+
};
|
|
9463
|
+
ScriptTag.defaultProps = {
|
|
9464
|
+
isHydrating: false,
|
|
9465
|
+
onError: noop,
|
|
9466
|
+
onLoad: noop
|
|
9467
|
+
};
|
|
9468
|
+
exports.default = ScriptTag;
|
|
9469
|
+
});
|
|
9470
|
+
|
|
9471
|
+
_commonjsHelpers.unwrapExports(ScriptTag_1);
|
|
9472
|
+
|
|
9473
|
+
var lib = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
9474
|
+
|
|
9475
|
+
exports.__esModule = true;
|
|
9476
|
+
|
|
9477
|
+
|
|
9478
|
+
|
|
9479
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9480
|
+
|
|
9481
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9482
|
+
|
|
9483
|
+
exports.default = _ScriptTag2.default;
|
|
9484
|
+
});
|
|
9485
|
+
|
|
9486
|
+
var ScriptTag = _commonjsHelpers.unwrapExports(lib);
|
|
9487
|
+
|
|
9488
|
+
var enterpriseDomainName = 'mjhlifesciences';
|
|
9489
|
+
|
|
9260
9490
|
var FormAssembly = function FormAssembly(props) {
|
|
9261
9491
|
var _props$node = props.node,
|
|
9262
9492
|
FormID = _props$node.FormID,
|
|
@@ -9264,65 +9494,37 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9264
9494
|
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
9265
9495
|
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme;
|
|
9266
9496
|
|
|
9267
|
-
var formAssemblyRef = React.useRef(null);
|
|
9268
|
-
|
|
9269
9497
|
var _useState = React.useState(null),
|
|
9270
9498
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
9271
|
-
|
|
9272
|
-
|
|
9499
|
+
iframeSrc = _useState2[0],
|
|
9500
|
+
setIframeSrc = _useState2[1];
|
|
9273
9501
|
|
|
9274
9502
|
React.useEffect(function () {
|
|
9275
|
-
|
|
9276
|
-
var
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
return response.json();
|
|
9289
|
-
|
|
9290
|
-
case 6:
|
|
9291
|
-
result = _context.sent;
|
|
9292
|
-
|
|
9293
|
-
setHtmlSnippet(result.data);
|
|
9294
|
-
_context.next = 13;
|
|
9295
|
-
break;
|
|
9296
|
-
|
|
9297
|
-
case 10:
|
|
9298
|
-
_context.prev = 10;
|
|
9299
|
-
_context.t0 = _context['catch'](0);
|
|
9300
|
-
|
|
9301
|
-
console.error(_context.t0);
|
|
9302
|
-
|
|
9303
|
-
case 13:
|
|
9304
|
-
case 'end':
|
|
9305
|
-
return _context.stop();
|
|
9306
|
-
}
|
|
9307
|
-
}
|
|
9308
|
-
}, _callee, this, [[0, 10]]);
|
|
9309
|
-
}))();
|
|
9503
|
+
if (FormID) {
|
|
9504
|
+
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
9505
|
+
var anonymousID = analytics.user() && analytics.user().anonymousId();
|
|
9506
|
+
if (anonymousID && needSegmentSupport) {
|
|
9507
|
+
src = src + '?tfa_1=' + anonymousID;
|
|
9508
|
+
}
|
|
9509
|
+
if (Promocode) {
|
|
9510
|
+
var pattern = /\?.+=.*/g;
|
|
9511
|
+
var hasQueryString = pattern.test(src);
|
|
9512
|
+
src = hasQueryString ? src + '&tfa_2=' + Promocode : src + '?tfa_2=' + Promocode;
|
|
9513
|
+
}
|
|
9514
|
+
setIframeSrc(encodeURI(src));
|
|
9515
|
+
}
|
|
9310
9516
|
}, []);
|
|
9311
9517
|
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
}, 1000);
|
|
9323
|
-
}, [htmlSnippet]);
|
|
9324
|
-
|
|
9325
|
-
return htmlSnippet && React__default['default'].createElement('div', { className: 'form-assembly', ref: formAssemblyRef, dangerouslySetInnerHTML: { __html: htmlSnippet } });
|
|
9518
|
+
if (iframeSrc) {
|
|
9519
|
+
return React__default.createElement(
|
|
9520
|
+
'section',
|
|
9521
|
+
{ className: 'form-assembly' },
|
|
9522
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9523
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9524
|
+
);
|
|
9525
|
+
}
|
|
9526
|
+
|
|
9527
|
+
return null;
|
|
9326
9528
|
};
|
|
9327
9529
|
|
|
9328
9530
|
var BlockTable = function BlockTable(props) {
|
|
@@ -9355,27 +9557,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9355
9557
|
return window.removeEventListener('resize', handleResize);
|
|
9356
9558
|
};
|
|
9357
9559
|
}, []);
|
|
9358
|
-
return React__default
|
|
9560
|
+
return React__default.createElement(
|
|
9359
9561
|
'div',
|
|
9360
9562
|
{ className: 'blockTableHolder', ref: holder },
|
|
9361
|
-
React__default
|
|
9563
|
+
React__default.createElement(
|
|
9362
9564
|
'div',
|
|
9363
9565
|
{ className: 'blockTable' },
|
|
9364
9566
|
rows && rows.map(function (row) {
|
|
9365
|
-
return React__default
|
|
9567
|
+
return React__default.createElement(
|
|
9366
9568
|
'div',
|
|
9367
9569
|
{ className: 'blockTableRow' },
|
|
9368
9570
|
row.cells && row.cells.map(function (cell) {
|
|
9369
|
-
return React__default
|
|
9571
|
+
return React__default.createElement(
|
|
9370
9572
|
'div',
|
|
9371
9573
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9372
|
-
React__default
|
|
9574
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9373
9575
|
);
|
|
9374
9576
|
})
|
|
9375
9577
|
);
|
|
9376
9578
|
})
|
|
9377
9579
|
),
|
|
9378
|
-
React__default
|
|
9580
|
+
React__default.createElement(
|
|
9379
9581
|
'style',
|
|
9380
9582
|
{ jsx: true },
|
|
9381
9583
|
'\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 '
|
|
@@ -9454,12 +9656,12 @@ var getSerializers = function getSerializers() {
|
|
|
9454
9656
|
var node = _ref.node;
|
|
9455
9657
|
var url = node.url;
|
|
9456
9658
|
|
|
9457
|
-
return React__default
|
|
9659
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9458
9660
|
},
|
|
9459
9661
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9460
9662
|
var node = _ref2.node;
|
|
9461
9663
|
|
|
9462
|
-
return React__default
|
|
9664
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9463
9665
|
nodes: node,
|
|
9464
9666
|
article: article,
|
|
9465
9667
|
meta: meta,
|
|
@@ -9473,7 +9675,7 @@ var getSerializers = function getSerializers() {
|
|
|
9473
9675
|
articleSeries: function articleSeries(_ref3) {
|
|
9474
9676
|
var node = _ref3.node;
|
|
9475
9677
|
|
|
9476
|
-
return React__default
|
|
9678
|
+
return React__default.createElement(ArticleSeries, {
|
|
9477
9679
|
nodes: node,
|
|
9478
9680
|
accountIDs: videoAccountIDs || {},
|
|
9479
9681
|
pageview: pageview,
|
|
@@ -9486,61 +9688,61 @@ var getSerializers = function getSerializers() {
|
|
|
9486
9688
|
figure: function figure(_ref4) {
|
|
9487
9689
|
var node = _ref4.node;
|
|
9488
9690
|
|
|
9489
|
-
return React__default
|
|
9691
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9490
9692
|
},
|
|
9491
9693
|
multifigure: function multifigure(_ref5) {
|
|
9492
9694
|
var node = _ref5.node;
|
|
9493
9695
|
|
|
9494
|
-
return React__default
|
|
9696
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9495
9697
|
},
|
|
9496
9698
|
slideshow: function slideshow(_ref6) {
|
|
9497
9699
|
var node = _ref6.node;
|
|
9498
9700
|
var slides = node.slides;
|
|
9499
9701
|
|
|
9500
|
-
return React__default
|
|
9702
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9501
9703
|
},
|
|
9502
9704
|
sidebar: function sidebar(_ref7) {
|
|
9503
9705
|
var node = _ref7.node;
|
|
9504
9706
|
var caption = node.caption,
|
|
9505
9707
|
content = node.content;
|
|
9506
9708
|
|
|
9507
|
-
return React__default
|
|
9709
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9508
9710
|
},
|
|
9509
9711
|
datatable: function datatable(_ref8) {
|
|
9510
9712
|
var node = _ref8.node;
|
|
9511
9713
|
var table = node.table;
|
|
9512
9714
|
|
|
9513
|
-
return React__default
|
|
9715
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9514
9716
|
},
|
|
9515
9717
|
media: function media(_ref9) {
|
|
9516
9718
|
var node = _ref9.node;
|
|
9517
9719
|
|
|
9518
|
-
return React__default
|
|
9720
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9519
9721
|
},
|
|
9520
9722
|
iframe: function iframe(_ref10) {
|
|
9521
9723
|
var node = _ref10.node;
|
|
9522
9724
|
|
|
9523
|
-
return React__default
|
|
9725
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9524
9726
|
},
|
|
9525
9727
|
video: function video(_ref11) {
|
|
9526
9728
|
var node = _ref11.node;
|
|
9527
9729
|
|
|
9528
|
-
return React__default
|
|
9730
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9529
9731
|
},
|
|
9530
9732
|
audio: function audio(_ref12) {
|
|
9531
9733
|
var node = _ref12.node;
|
|
9532
9734
|
|
|
9533
|
-
return React__default
|
|
9735
|
+
return React__default.createElement(Audio, { node: node });
|
|
9534
9736
|
},
|
|
9535
9737
|
poll: function poll(_ref13) {
|
|
9536
9738
|
var node = _ref13.node;
|
|
9537
9739
|
|
|
9538
|
-
return React__default
|
|
9740
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9539
9741
|
},
|
|
9540
9742
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9541
9743
|
var node = _ref14.node;
|
|
9542
9744
|
|
|
9543
|
-
return React__default
|
|
9745
|
+
return React__default.createElement(Poll$1, {
|
|
9544
9746
|
node: node,
|
|
9545
9747
|
client: client,
|
|
9546
9748
|
pageview: pageview,
|
|
@@ -9554,35 +9756,35 @@ var getSerializers = function getSerializers() {
|
|
|
9554
9756
|
var node = _ref15.node;
|
|
9555
9757
|
var quizzes = node.quizzes;
|
|
9556
9758
|
|
|
9557
|
-
return React__default
|
|
9759
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9558
9760
|
},
|
|
9559
9761
|
leads: function leads(_ref16) {
|
|
9560
9762
|
var node = _ref16.node;
|
|
9561
9763
|
var leadID = node.leadID;
|
|
9562
9764
|
|
|
9563
9765
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9564
|
-
return React__default
|
|
9766
|
+
return React__default.createElement(Leads, { url: url });
|
|
9565
9767
|
},
|
|
9566
9768
|
slideshows: function slideshows(_ref17) {
|
|
9567
9769
|
var node = _ref17.node;
|
|
9568
9770
|
|
|
9569
|
-
return React__default
|
|
9771
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9570
9772
|
},
|
|
9571
9773
|
nativeAd: function nativeAd(_ref18) {
|
|
9572
9774
|
var node = _ref18.node;
|
|
9573
9775
|
|
|
9574
|
-
return React__default
|
|
9776
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9575
9777
|
},
|
|
9576
9778
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9577
9779
|
var node = _ref19.node;
|
|
9578
9780
|
|
|
9579
|
-
return React__default
|
|
9781
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9580
9782
|
},
|
|
9581
9783
|
hrtag: function hrtag() {
|
|
9582
|
-
return React__default
|
|
9784
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9583
9785
|
},
|
|
9584
9786
|
brtag: function brtag() {
|
|
9585
|
-
return React__default
|
|
9787
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9586
9788
|
},
|
|
9587
9789
|
formstack: function formstack(_ref20) {
|
|
9588
9790
|
var node = _ref20.node;
|
|
@@ -9590,29 +9792,29 @@ var getSerializers = function getSerializers() {
|
|
|
9590
9792
|
Caption = node.Caption,
|
|
9591
9793
|
needSegmentSupport = node.needSegmentSupport;
|
|
9592
9794
|
|
|
9593
|
-
return React__default
|
|
9795
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9594
9796
|
},
|
|
9595
9797
|
formassembly: FormAssembly,
|
|
9596
9798
|
multimedia: function multimedia(_ref21) {
|
|
9597
9799
|
var node = _ref21.node;
|
|
9598
9800
|
|
|
9599
|
-
return React__default
|
|
9801
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9600
9802
|
},
|
|
9601
9803
|
blockTable: function blockTable(_ref22) {
|
|
9602
9804
|
var node = _ref22.node;
|
|
9603
|
-
return React__default
|
|
9805
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9604
9806
|
}
|
|
9605
9807
|
},
|
|
9606
9808
|
marks: {
|
|
9607
9809
|
superscript: function superscript(props) {
|
|
9608
|
-
return React__default
|
|
9810
|
+
return React__default.createElement(
|
|
9609
9811
|
'sup',
|
|
9610
9812
|
null,
|
|
9611
9813
|
props.children
|
|
9612
9814
|
);
|
|
9613
9815
|
},
|
|
9614
9816
|
subscript: function subscript(props) {
|
|
9615
|
-
return React__default
|
|
9817
|
+
return React__default.createElement(
|
|
9616
9818
|
'sub',
|
|
9617
9819
|
null,
|
|
9618
9820
|
props.children
|
|
@@ -9628,7 +9830,7 @@ var getSerializers = function getSerializers() {
|
|
|
9628
9830
|
if (href && href.charAt(0) === '#') {
|
|
9629
9831
|
var elementId = href.slice(1);
|
|
9630
9832
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9631
|
-
return React__default
|
|
9833
|
+
return React__default.createElement(
|
|
9632
9834
|
'a',
|
|
9633
9835
|
{ onClick: function onClick() {
|
|
9634
9836
|
return ScrollToElement(elementId);
|
|
@@ -9638,7 +9840,7 @@ var getSerializers = function getSerializers() {
|
|
|
9638
9840
|
}
|
|
9639
9841
|
|
|
9640
9842
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9641
|
-
return React__default
|
|
9843
|
+
return React__default.createElement(
|
|
9642
9844
|
'a',
|
|
9643
9845
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9644
9846
|
children
|
|
@@ -9646,7 +9848,7 @@ var getSerializers = function getSerializers() {
|
|
|
9646
9848
|
},
|
|
9647
9849
|
alignleft: function alignleft(_ref23) {
|
|
9648
9850
|
var children = _ref23.children;
|
|
9649
|
-
return React__default
|
|
9851
|
+
return React__default.createElement(
|
|
9650
9852
|
'div',
|
|
9651
9853
|
{ style: { textAlign: 'left' } },
|
|
9652
9854
|
children
|
|
@@ -9654,7 +9856,7 @@ var getSerializers = function getSerializers() {
|
|
|
9654
9856
|
},
|
|
9655
9857
|
alignright: function alignright(_ref24) {
|
|
9656
9858
|
var children = _ref24.children;
|
|
9657
|
-
return React__default
|
|
9859
|
+
return React__default.createElement(
|
|
9658
9860
|
'div',
|
|
9659
9861
|
{ style: { textAlign: 'right' } },
|
|
9660
9862
|
children
|
|
@@ -9662,7 +9864,7 @@ var getSerializers = function getSerializers() {
|
|
|
9662
9864
|
},
|
|
9663
9865
|
aligncenter: function aligncenter(_ref25) {
|
|
9664
9866
|
var children = _ref25.children;
|
|
9665
|
-
return React__default
|
|
9867
|
+
return React__default.createElement(
|
|
9666
9868
|
'div',
|
|
9667
9869
|
{ style: { textAlign: 'center' } },
|
|
9668
9870
|
children
|
|
@@ -9670,7 +9872,7 @@ var getSerializers = function getSerializers() {
|
|
|
9670
9872
|
},
|
|
9671
9873
|
alignjustify: function alignjustify(_ref26) {
|
|
9672
9874
|
var children = _ref26.children;
|
|
9673
|
-
return React__default
|
|
9875
|
+
return React__default.createElement(
|
|
9674
9876
|
'div',
|
|
9675
9877
|
{ style: { textAlign: 'justify' } },
|
|
9676
9878
|
children
|
|
@@ -9680,7 +9882,7 @@ var getSerializers = function getSerializers() {
|
|
|
9680
9882
|
var children = props.children,
|
|
9681
9883
|
color = props.mark.color;
|
|
9682
9884
|
|
|
9683
|
-
return React__default
|
|
9885
|
+
return React__default.createElement(
|
|
9684
9886
|
'span',
|
|
9685
9887
|
{ style: { color: color ? color.hex : null } },
|
|
9686
9888
|
children
|