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