@mjhls/mjh-framework 1.0.804-beta.3 → 1.0.804-ustream-reporting
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +31 -30
- package/dist/cjs/AD300x250x600.js +31 -30
- package/dist/cjs/AD728x90.js +34 -33
- package/dist/cjs/ADFloatingFooter.js +33 -32
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +33 -32
- package/dist/cjs/{ADInfeed-6c2d52f3.js → ADInfeed-77f334bb.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +33 -32
- package/dist/cjs/ADSponsoredResources.js +33 -32
- package/dist/cjs/ADWebcast.js +33 -32
- package/dist/cjs/ADWelcome.js +34 -33
- package/dist/cjs/{ADlgInfeed-fd573385.js → ADlgInfeed-0664c67f.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +36 -35
- package/dist/cjs/AdSlotsProvider.js +17 -16
- package/dist/cjs/AlgoliaSearch.js +1085 -1066
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +58 -57
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -40
- package/dist/cjs/ArticleSeriesListing.js +61 -60
- package/dist/cjs/Auth.js +686 -662
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +62 -59
- package/dist/cjs/ConferenceArticleCard.js +39 -38
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -103
- package/dist/cjs/DeckQueue.js +92 -88
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-93399f8c.js} +35 -34
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +81 -80
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +182 -178
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +144 -139
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +71 -70
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +76 -71
- package/dist/cjs/IssueLanding.js +72 -71
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +41 -39
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/MediaSeriesLanding.js +1114 -1123
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +152 -147
- package/dist/cjs/NavNative.js +148 -140
- package/dist/cjs/NavNormal.js +52 -47
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +109 -108
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +42 -41
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +142 -138
- package/dist/cjs/QueueDeckExpanded.js +294 -294
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +53 -52
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-4abb21b4.js → SeriesSlider-c022ce04.js} +42 -41
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +39 -38
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-97dd19a5.js → SocialSearchComponent-ecb4f972.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +63 -58
- package/dist/cjs/TaxonomyDescription.js +55 -54
- package/dist/cjs/TemplateNormal.js +77 -76
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +84 -27
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +77 -73
- package/dist/cjs/VideoSeriesCard.js +34 -33
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +50 -49
- package/dist/cjs/VideoSeriesListing.js +78 -77
- package/dist/cjs/View.js +266 -263
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +67 -66
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-60837c34.js → extends-9d158713.js} +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +425 -12
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-34e3ba68.js → getTargeting-c8081c76.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-b53c1261.js → index-667c091e.js} +1007 -984
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +165 -162
- package/dist/cjs/{inherits-513d81cd.js → inherits-3ff1b657.js} +22 -22
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-025fdc78.js +973 -0
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/ustream-api-b2b9092f.js +106 -0
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -27
- package/dist/esm/AD300x250x600.js +27 -27
- package/dist/esm/AD728x90.js +30 -30
- package/dist/esm/ADFloatingFooter.js +29 -29
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -29
- package/dist/esm/{ADInfeed-04878bcc.js → ADInfeed-6ed88032.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-fb45c8cf.js → ADlgInfeed-e02d1d98.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -27
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlgoliaSearch.js +735 -717
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +37 -37
- package/dist/esm/ArticleSeriesListing.js +56 -56
- package/dist/esm/Auth.js +665 -645
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5ae7409f.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-52cf21c5.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +30 -30
- package/dist/esm/Column3.js +56 -56
- package/dist/esm/ConferenceArticleCard.js +34 -34
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +97 -97
- package/dist/esm/DeckQueue.js +82 -82
- package/dist/esm/{Dfp-b7236041.js → Dfp-43f121ff.js} +22 -22
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +170 -170
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +115 -115
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +67 -67
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +60 -60
- package/dist/esm/IssueDeck.js +64 -64
- package/dist/esm/IssueLanding.js +68 -68
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +77 -77
- package/dist/esm/MediaSeriesLanding.js +838 -850
- package/dist/esm/NavDvm.js +59 -59
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +126 -126
- package/dist/esm/NavNative.js +117 -117
- package/dist/esm/NavNormal.js +38 -38
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +104 -104
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +38 -38
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +52 -52
- package/dist/esm/PublicationLanding.js +125 -125
- package/dist/esm/QueueDeckExpanded.js +274 -274
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +47 -47
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +13 -13
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +32 -32
- package/dist/esm/{SeriesSlider-36be7223.js → SeriesSlider-8414085b.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-db5ba548.js → SocialSearchComponent-cd38ae60.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +53 -53
- package/dist/esm/TaxonomyDescription.js +49 -49
- package/dist/esm/TemplateNormal.js +72 -72
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +80 -24
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +66 -66
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +41 -41
- package/dist/esm/VideoSeriesListing.js +73 -73
- package/dist/esm/View.js +246 -247
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +50 -50
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-eb69e8ac.js → extends-f076879e.js} +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +425 -12
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-739e9fed.js → getTargeting-2302c1b4.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-6271cfc8.js → index-d2fb744b.js} +940 -924
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +134 -134
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-f71787cf.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-b5c5aac1.js +961 -0
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/ustream-api-33a866b6.js +104 -0
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +109 -109
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
-
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
-
import { l as lib_3 } from './index-41a678ea.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
1
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
|
|
3
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
13
6
|
import Router, { useRouter } from 'next/router';
|
|
14
|
-
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
-
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
16
|
-
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
20
|
-
import Segment from './Segment.js';
|
|
21
|
-
import Beam from './Beam.js';
|
|
22
|
-
import DFPAdSlot from './AdSlot.js';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
24
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
+
import { u as util } from './util-3ab476bf.js';
|
|
11
|
+
import Beam from './Beam.js';
|
|
12
|
+
import Segment from './Segment.js';
|
|
13
|
+
import { d as main_18, b as main_42, m as main_43 } from './main-b5c5aac1.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
15
|
+
import { _ as _extends } from './extends-f076879e.js';
|
|
16
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
17
|
+
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
25
19
|
import GroupDeck from './GroupDeck.js';
|
|
26
|
-
import {
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
28
|
-
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
30
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
31
21
|
import SocialShare from './SocialShare.js';
|
|
32
|
-
import { _ as
|
|
33
|
-
import
|
|
22
|
+
import { _ as _export, a as _core } from './_to-object-b50e61c3.js';
|
|
23
|
+
import { _ as _objectToArray } from './_object-to-array-0f197f89.js';
|
|
24
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
25
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
34
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
35
|
-
import
|
|
27
|
+
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
+
import DFPAdSlot from './AdSlot.js';
|
|
29
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
+
import Head from 'next/head';
|
|
32
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-f71787cf.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
36
36
|
|
|
37
|
-
var urlFor = function urlFor(source, builder) {
|
|
37
|
+
var urlFor$4 = function urlFor(source, builder) {
|
|
38
38
|
return builder.image(source).auto('format');
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
|
44
44
|
Router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
var Slideshow = function Slideshow(_ref) {
|
|
47
|
+
var Slideshow$1 = function Slideshow(_ref) {
|
|
48
48
|
var slides = _ref.slides,
|
|
49
49
|
client = _ref.client,
|
|
50
50
|
pageview = _ref.pageview;
|
|
@@ -73,20 +73,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
73
73
|
if (pageview) pageview(router.asPath);
|
|
74
74
|
}, [router]);
|
|
75
75
|
|
|
76
|
-
return
|
|
76
|
+
return React.createElement(
|
|
77
77
|
'div',
|
|
78
78
|
{ className: 'mt-3 mb-3' },
|
|
79
|
-
|
|
79
|
+
React.createElement(
|
|
80
80
|
Carousel,
|
|
81
81
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
82
82
|
return onChangeSlide(selectedIndex, router);
|
|
83
83
|
}, interval: null },
|
|
84
84
|
slides && slides.map(function (slide) {
|
|
85
|
-
return
|
|
85
|
+
return React.createElement(
|
|
86
86
|
Carousel.Item,
|
|
87
87
|
{ key: slide._key },
|
|
88
|
-
|
|
89
|
-
slide.caption &&
|
|
88
|
+
React.createElement('img', { src: slide.asset && urlFor$4(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
89
|
+
slide.caption && React.createElement(
|
|
90
90
|
'p',
|
|
91
91
|
{ className: 'p-2' },
|
|
92
92
|
slide.caption
|
|
@@ -97,21 +97,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
97
|
);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
// do not edit .js files directly - edit src/index.jst
|
|
101
|
+
|
|
102
|
+
|
|
103
103
|
|
|
104
104
|
var fastDeepEqual = function equal(a, b) {
|
|
105
105
|
if (a === b) return true;
|
|
106
106
|
|
|
107
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
109
|
-
, arrB = isArray(b)
|
|
110
|
-
, i
|
|
111
|
-
, length
|
|
112
|
-
, key;
|
|
108
|
+
if (a.constructor !== b.constructor) return false;
|
|
113
109
|
|
|
114
|
-
|
|
110
|
+
var length, i, keys;
|
|
111
|
+
if (Array.isArray(a)) {
|
|
115
112
|
length = a.length;
|
|
116
113
|
if (length != b.length) return false;
|
|
117
114
|
for (i = length; i-- !== 0;)
|
|
@@ -119,35 +116,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
116
|
return true;
|
|
120
117
|
}
|
|
121
118
|
|
|
122
|
-
if (arrA != arrB) return false;
|
|
123
119
|
|
|
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();
|
|
128
120
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
121
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
122
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
123
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
133
124
|
|
|
134
|
-
|
|
125
|
+
keys = Object.keys(a);
|
|
135
126
|
length = keys.length;
|
|
136
|
-
|
|
137
|
-
if (length !== keyList(b).length)
|
|
138
|
-
return false;
|
|
127
|
+
if (length !== Object.keys(b).length) return false;
|
|
139
128
|
|
|
140
129
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
130
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
142
131
|
|
|
143
132
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
key = keys[i];
|
|
133
|
+
var key = keys[i];
|
|
134
|
+
|
|
145
135
|
if (!equal(a[key], b[key])) return false;
|
|
146
136
|
}
|
|
147
137
|
|
|
148
138
|
return true;
|
|
149
139
|
}
|
|
150
140
|
|
|
141
|
+
// true if both NaN, false otherwise
|
|
151
142
|
return a!==a && b!==b;
|
|
152
143
|
};
|
|
153
144
|
|
|
@@ -685,14 +676,14 @@ function coerce(val) {
|
|
|
685
676
|
return val;
|
|
686
677
|
}
|
|
687
678
|
});
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
679
|
+
debug.coerce;
|
|
680
|
+
debug.disable;
|
|
681
|
+
debug.enable;
|
|
682
|
+
debug.enabled;
|
|
683
|
+
debug.humanize;
|
|
684
|
+
debug.names;
|
|
685
|
+
debug.skips;
|
|
686
|
+
debug.formatters;
|
|
696
687
|
|
|
697
688
|
var browser = createCommonjsModule(function (module, exports) {
|
|
698
689
|
/**
|
|
@@ -881,13 +872,13 @@ function localstorage() {
|
|
|
881
872
|
} catch (e) {}
|
|
882
873
|
}
|
|
883
874
|
});
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
875
|
+
browser.log;
|
|
876
|
+
browser.formatArgs;
|
|
877
|
+
browser.save;
|
|
878
|
+
browser.load;
|
|
879
|
+
browser.useColors;
|
|
880
|
+
browser.storage;
|
|
881
|
+
browser.colors;
|
|
891
882
|
|
|
892
883
|
// MIT lisence
|
|
893
884
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1162,14 +1153,14 @@ function init (debug) {
|
|
|
1162
1153
|
|
|
1163
1154
|
exports.enable(load());
|
|
1164
1155
|
});
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1156
|
+
node.init;
|
|
1157
|
+
node.log;
|
|
1158
|
+
node.formatArgs;
|
|
1159
|
+
node.save;
|
|
1160
|
+
node.load;
|
|
1161
|
+
node.useColors;
|
|
1162
|
+
node.colors;
|
|
1163
|
+
node.inspectOpts;
|
|
1173
1164
|
|
|
1174
1165
|
var src = createCommonjsModule(function (module) {
|
|
1175
1166
|
/**
|
|
@@ -1570,199 +1561,239 @@ module.exports = exports['default'];
|
|
|
1570
1561
|
|
|
1571
1562
|
var youTubePlayer = unwrapExports(dist);
|
|
1572
1563
|
|
|
1573
|
-
|
|
1574
|
-
|
|
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; };
|
|
1564
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1576
1565
|
|
|
1577
1566
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1567
|
|
|
1579
|
-
function
|
|
1568
|
+
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); } }
|
|
1569
|
+
|
|
1570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
+
|
|
1572
|
+
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
|
+
|
|
1574
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
+
|
|
1576
|
+
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); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
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; } }
|
|
1580
1583
|
|
|
1581
|
-
function
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1582
1587
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
*
|
|
1588
|
+
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; }
|
|
1589
|
+
|
|
1590
|
+
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; }
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
1588
1596
|
*/
|
|
1597
|
+
|
|
1589
1598
|
function shouldUpdateVideo(prevProps, props) {
|
|
1590
1599
|
// A changing video should always trigger an update
|
|
1591
1600
|
if (prevProps.videoId !== props.videoId) {
|
|
1592
1601
|
return true;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
1603
|
// update.
|
|
1604
|
+
|
|
1605
|
+
|
|
1597
1606
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1598
1607
|
var vars = props.opts.playerVars || {};
|
|
1599
|
-
|
|
1600
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1601
1609
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1609
1616
|
*/
|
|
1617
|
+
|
|
1618
|
+
|
|
1610
1619
|
function filterResetOptions(opts) {
|
|
1611
|
-
return
|
|
1612
|
-
playerVars:
|
|
1620
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1621
|
+
playerVars: _objectSpread({
|
|
1613
1622
|
autoplay: 0,
|
|
1614
1623
|
start: 0,
|
|
1615
1624
|
end: 0
|
|
1616
|
-
})
|
|
1625
|
+
}, opts.playerVars)
|
|
1617
1626
|
});
|
|
1618
1627
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object}
|
|
1627
|
-
* @param {Object} props
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1628
1636
|
*/
|
|
1637
|
+
|
|
1638
|
+
|
|
1629
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1630
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1631
1641
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1642
|
+
/**
|
|
1643
|
+
* Check whether a props change should result in an id or className update.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {Object} prevProps
|
|
1646
|
+
* @param {Object} props
|
|
1638
1647
|
*/
|
|
1648
|
+
|
|
1649
|
+
|
|
1639
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1640
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1641
1652
|
}
|
|
1642
1653
|
|
|
1643
|
-
var YouTube = function (_React$Component) {
|
|
1654
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1644
1655
|
_inherits(YouTube, _React$Component);
|
|
1645
1656
|
|
|
1657
|
+
var _super = _createSuper(YouTube);
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
+
*/
|
|
1646
1664
|
function YouTube(props) {
|
|
1665
|
+
var _this;
|
|
1666
|
+
|
|
1647
1667
|
_classCallCheck(this, YouTube);
|
|
1648
1668
|
|
|
1649
|
-
|
|
1669
|
+
_this = _super.call(this, props);
|
|
1650
1670
|
|
|
1651
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1652
1672
|
return _this.props.onReady(event);
|
|
1653
|
-
};
|
|
1673
|
+
});
|
|
1654
1674
|
|
|
1655
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1656
1676
|
return _this.props.onError(event);
|
|
1657
|
-
};
|
|
1677
|
+
});
|
|
1658
1678
|
|
|
1659
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1660
1680
|
_this.props.onStateChange(event);
|
|
1661
|
-
switch (event.data) {
|
|
1662
1681
|
|
|
1682
|
+
switch (event.data) {
|
|
1663
1683
|
case YouTube.PlayerState.ENDED:
|
|
1664
1684
|
_this.props.onEnd(event);
|
|
1685
|
+
|
|
1665
1686
|
break;
|
|
1666
1687
|
|
|
1667
1688
|
case YouTube.PlayerState.PLAYING:
|
|
1668
1689
|
_this.props.onPlay(event);
|
|
1690
|
+
|
|
1669
1691
|
break;
|
|
1670
1692
|
|
|
1671
1693
|
case YouTube.PlayerState.PAUSED:
|
|
1672
1694
|
_this.props.onPause(event);
|
|
1695
|
+
|
|
1673
1696
|
break;
|
|
1674
1697
|
}
|
|
1675
|
-
};
|
|
1698
|
+
});
|
|
1676
1699
|
|
|
1677
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1678
1701
|
return _this.props.onPlaybackRateChange(event);
|
|
1679
|
-
};
|
|
1702
|
+
});
|
|
1680
1703
|
|
|
1681
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1682
1705
|
return _this.props.onPlaybackQualityChange(event);
|
|
1683
|
-
};
|
|
1706
|
+
});
|
|
1684
1707
|
|
|
1685
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1686
1709
|
// do not attempt to create a player server-side, it won't work
|
|
1687
|
-
if (typeof document === 'undefined') return;
|
|
1688
|
-
|
|
1689
|
-
var playerOpts =
|
|
1710
|
+
if (typeof document === 'undefined') return; // create player
|
|
1711
|
+
|
|
1712
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1690
1713
|
// preload the `videoId` video if one is already given
|
|
1691
1714
|
videoId: _this.props.videoId
|
|
1692
1715
|
});
|
|
1693
|
-
|
|
1694
|
-
// attach event handlers
|
|
1716
|
+
|
|
1717
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1718
|
+
|
|
1695
1719
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
+
|
|
1696
1721
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
+
|
|
1697
1723
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
+
|
|
1698
1725
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
+
|
|
1699
1727
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1700
|
-
};
|
|
1728
|
+
});
|
|
1701
1729
|
|
|
1702
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1703
1731
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1707
1735
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1708
1736
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1709
1737
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1710
1738
|
});
|
|
1711
|
-
};
|
|
1739
|
+
});
|
|
1712
1740
|
|
|
1713
|
-
_this
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
+
return _this.internalPlayer;
|
|
1743
|
+
});
|
|
1744
|
+
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1714
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1715
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
1716
1749
|
return;
|
|
1717
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
1718
1752
|
|
|
1719
|
-
// set queueing options
|
|
1720
1753
|
var autoplay = false;
|
|
1721
1754
|
var opts = {
|
|
1722
1755
|
videoId: _this.props.videoId
|
|
1723
1756
|
};
|
|
1757
|
+
|
|
1724
1758
|
if ('playerVars' in _this.props.opts) {
|
|
1725
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
1726
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
1727
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1728
1763
|
}
|
|
1764
|
+
|
|
1729
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
1730
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1731
1767
|
}
|
|
1732
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
1733
1770
|
|
|
1734
|
-
// if autoplay is enabled loadVideoById
|
|
1735
1771
|
if (autoplay) {
|
|
1736
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
1737
1774
|
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
1740
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
1741
|
-
};
|
|
1779
|
+
});
|
|
1742
1780
|
|
|
1743
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1744
1782
|
_this.container = container;
|
|
1745
|
-
};
|
|
1783
|
+
});
|
|
1746
1784
|
|
|
1747
1785
|
_this.container = null;
|
|
1748
1786
|
_this.internalPlayer = null;
|
|
1749
1787
|
return _this;
|
|
1750
1788
|
}
|
|
1751
1789
|
|
|
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
|
-
|
|
1759
1790
|
_createClass(YouTube, [{
|
|
1760
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
1761
1792
|
value: function componentDidMount() {
|
|
1762
1793
|
this.createPlayer();
|
|
1763
1794
|
}
|
|
1764
1795
|
}, {
|
|
1765
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
1766
1797
|
value: function componentDidUpdate(prevProps) {
|
|
1767
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1768
1799
|
this.updatePlayer();
|
|
@@ -1777,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
1777
1808
|
}
|
|
1778
1809
|
}
|
|
1779
1810
|
}, {
|
|
1780
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
1781
1812
|
value: function componentWillUnmount() {
|
|
1782
|
-
/**
|
|
1783
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
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.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
1787
1818
|
*/
|
|
1788
1819
|
this.internalPlayer.destroy();
|
|
1789
1820
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
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.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
1856
1826
|
*/
|
|
1857
1827
|
|
|
1858
1828
|
}, {
|
|
1859
|
-
key:
|
|
1829
|
+
key: "render",
|
|
1860
1830
|
value: function render() {
|
|
1861
|
-
return
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1831
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
1866
1838
|
}
|
|
1867
1839
|
}]);
|
|
1868
1840
|
|
|
1869
1841
|
return YouTube;
|
|
1870
|
-
}(
|
|
1842
|
+
}(React.Component);
|
|
1843
|
+
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
1871
1852
|
|
|
1872
1853
|
YouTube.propTypes = {
|
|
1873
1854
|
videoId: PropTypes.string,
|
|
1874
|
-
|
|
1875
1855
|
// custom ID for player element
|
|
1876
1856
|
id: PropTypes.string,
|
|
1877
|
-
|
|
1878
1857
|
// custom class name for player element
|
|
1879
1858
|
className: PropTypes.string,
|
|
1880
1859
|
// custom class name for player container element
|
|
1881
1860
|
containerClassName: PropTypes.string,
|
|
1882
|
-
|
|
1883
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
1862
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
-
|
|
1886
1863
|
// event subscriptions
|
|
1887
1864
|
onReady: PropTypes.func,
|
|
1888
1865
|
onError: PropTypes.func,
|
|
@@ -1894,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
1894
1871
|
onPlaybackQualityChange: PropTypes.func
|
|
1895
1872
|
};
|
|
1896
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
1897
1875
|
id: null,
|
|
1898
1876
|
className: null,
|
|
1899
1877
|
opts: {},
|
|
@@ -1907,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
1907
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1887
|
};
|
|
1910
|
-
YouTube.PlayerState = {
|
|
1911
|
-
UNSTARTED: -1,
|
|
1912
|
-
ENDED: 0,
|
|
1913
|
-
PLAYING: 1,
|
|
1914
|
-
PAUSED: 2,
|
|
1915
|
-
BUFFERING: 3,
|
|
1916
|
-
CUED: 5
|
|
1917
|
-
};
|
|
1918
1888
|
|
|
1919
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1920
1890
|
var url = _ref.url,
|
|
@@ -1953,8 +1923,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1953
1923
|
var duration = player.getDuration();
|
|
1954
1924
|
var queue = Math.floor(duration / 10);
|
|
1955
1925
|
var segment = Math.floor(current / queue);
|
|
1956
|
-
Beam.report_beam_video('Ready',
|
|
1957
|
-
Segment.report_video_event('Video Ready',
|
|
1926
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
1927
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
1958
1928
|
};
|
|
1959
1929
|
|
|
1960
1930
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1964,8 +1934,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1964
1934
|
var segment = Math.floor(current / queue);
|
|
1965
1935
|
|
|
1966
1936
|
if (!queueProgress.includes(segment)) {
|
|
1967
|
-
Beam.report_beam_video('Segment',
|
|
1968
|
-
Segment.report_video_event('Video Segment',
|
|
1937
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
1938
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
1969
1939
|
queueProgress.push(segment);
|
|
1970
1940
|
}
|
|
1971
1941
|
};
|
|
@@ -1978,8 +1948,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1978
1948
|
var queue = Math.floor(duration / 10);
|
|
1979
1949
|
var segment = Math.floor(current / queue);
|
|
1980
1950
|
|
|
1981
|
-
Beam.report_beam_video('Play',
|
|
1982
|
-
Segment.report_video_event('Video Play',
|
|
1951
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
1952
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
1983
1953
|
|
|
1984
1954
|
if (!playReported) {
|
|
1985
1955
|
setPlayReported(true);
|
|
@@ -1998,8 +1968,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1998
1968
|
var queue = Math.floor(duration / 10);
|
|
1999
1969
|
var segment = Math.floor(current / queue);
|
|
2000
1970
|
|
|
2001
|
-
Beam.report_beam_video('End',
|
|
2002
|
-
Segment.report_video_event('Video End',
|
|
1971
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
1972
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
2003
1973
|
setEndReported(true);
|
|
2004
1974
|
clearInterval(intervalID);
|
|
2005
1975
|
}
|
|
@@ -2012,15 +1982,15 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2012
1982
|
var queue = Math.floor(duration / 10);
|
|
2013
1983
|
var segment = Math.floor(current / queue);
|
|
2014
1984
|
|
|
2015
|
-
Beam.report_beam_video('Pause',
|
|
2016
|
-
Segment.report_video_event('Video Pause',
|
|
1985
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
1986
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
2017
1987
|
};
|
|
2018
1988
|
|
|
2019
|
-
return
|
|
1989
|
+
return React.createElement(
|
|
2020
1990
|
'div',
|
|
2021
1991
|
{ id: 'fluid-video-container' },
|
|
2022
|
-
|
|
2023
|
-
|
|
1992
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1993
|
+
React.createElement(
|
|
2024
1994
|
'style',
|
|
2025
1995
|
{ jsx: 'true' },
|
|
2026
1996
|
'\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 '
|
|
@@ -2033,20 +2003,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2033
2003
|
content = _ref.content,
|
|
2034
2004
|
getSerializers = _ref.getSerializers;
|
|
2035
2005
|
|
|
2036
|
-
return
|
|
2006
|
+
return React.createElement(
|
|
2037
2007
|
'article',
|
|
2038
2008
|
{ className: 'sidebar' },
|
|
2039
|
-
|
|
2009
|
+
React.createElement(
|
|
2040
2010
|
'div',
|
|
2041
2011
|
null,
|
|
2042
|
-
|
|
2012
|
+
React.createElement(
|
|
2043
2013
|
'h3',
|
|
2044
2014
|
null,
|
|
2045
2015
|
caption
|
|
2046
2016
|
),
|
|
2047
|
-
|
|
2017
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2048
2018
|
),
|
|
2049
|
-
|
|
2019
|
+
React.createElement(
|
|
2050
2020
|
'style',
|
|
2051
2021
|
{ jsx: 'true' },
|
|
2052
2022
|
'\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 '
|
|
@@ -2057,18 +2027,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2057
2027
|
var TableShow = function TableShow(_ref) {
|
|
2058
2028
|
var rows = _ref.rows;
|
|
2059
2029
|
|
|
2060
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2061
2031
|
Table,
|
|
2062
2032
|
{ bordered: true, hover: true, responsive: true },
|
|
2063
|
-
|
|
2033
|
+
React.createElement(
|
|
2064
2034
|
'tbody',
|
|
2065
2035
|
null,
|
|
2066
2036
|
rows && rows.map(function (row) {
|
|
2067
|
-
return
|
|
2037
|
+
return React.createElement(
|
|
2068
2038
|
'tr',
|
|
2069
2039
|
{ key: row._key },
|
|
2070
2040
|
row.cells && row.cells.map(function (cell, index) {
|
|
2071
|
-
return cell &&
|
|
2041
|
+
return cell && React.createElement(
|
|
2072
2042
|
'td',
|
|
2073
2043
|
{ key: index },
|
|
2074
2044
|
cell
|
|
@@ -2171,18 +2141,18 @@ var Media = function Media(_ref) {
|
|
|
2171
2141
|
margin: imageMargin
|
|
2172
2142
|
};
|
|
2173
2143
|
|
|
2174
|
-
return
|
|
2144
|
+
return React.createElement(
|
|
2175
2145
|
Figure$1,
|
|
2176
2146
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2177
|
-
|
|
2147
|
+
React.createElement(
|
|
2178
2148
|
'a',
|
|
2179
2149
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2180
|
-
|
|
2150
|
+
React.createElement(
|
|
2181
2151
|
LazyLoad,
|
|
2182
2152
|
{ once: true },
|
|
2183
|
-
|
|
2153
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2184
2154
|
),
|
|
2185
|
-
caption &&
|
|
2155
|
+
caption && React.createElement(
|
|
2186
2156
|
Figure$1.Caption,
|
|
2187
2157
|
{ className: 'media-caption' },
|
|
2188
2158
|
caption
|
|
@@ -2190,9 +2160,9 @@ var Media = function Media(_ref) {
|
|
|
2190
2160
|
)
|
|
2191
2161
|
);
|
|
2192
2162
|
} else if (caption && caption !== '') {
|
|
2193
|
-
return
|
|
2163
|
+
return React.createElement(
|
|
2194
2164
|
'a',
|
|
2195
|
-
_extends
|
|
2165
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2196
2166
|
href: uploadDoc.asset.url + '?dl='
|
|
2197
2167
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2198
2168
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2210,10 +2180,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2210
2180
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2211
2181
|
|
|
2212
2182
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2213
|
-
return
|
|
2183
|
+
return React.createElement(
|
|
2214
2184
|
'div',
|
|
2215
2185
|
{ className: 'd-block text-center mb-3' },
|
|
2216
|
-
|
|
2186
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2217
2187
|
);
|
|
2218
2188
|
};
|
|
2219
2189
|
|
|
@@ -2247,8 +2217,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2247
2217
|
var duration = player.duration;
|
|
2248
2218
|
var queue = Math.floor(duration / 10);
|
|
2249
2219
|
var segment = Math.floor(current / queue);
|
|
2250
|
-
Beam.report_beam_video('Ready',
|
|
2251
|
-
Segment.report_video_event('Video Ready',
|
|
2220
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'MP4');
|
|
2221
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
|
|
2252
2222
|
};
|
|
2253
2223
|
|
|
2254
2224
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -2257,8 +2227,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2257
2227
|
var queue = Math.floor(duration / 10);
|
|
2258
2228
|
var segment = Math.floor(current / queue);
|
|
2259
2229
|
if (!queueProgress.includes(segment)) {
|
|
2260
|
-
Beam.report_beam_video('Segment',
|
|
2261
|
-
Segment.report_video_event('Video Segment',
|
|
2230
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'MP4');
|
|
2231
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
|
|
2262
2232
|
queueProgress.push(segment);
|
|
2263
2233
|
}
|
|
2264
2234
|
};
|
|
@@ -2270,8 +2240,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2270
2240
|
var duration = player.duration;
|
|
2271
2241
|
var queue = Math.floor(duration / 10);
|
|
2272
2242
|
var segment = Math.floor(current / queue);
|
|
2273
|
-
Beam.report_beam_video('Play',
|
|
2274
|
-
Segment.report_video_event('Video Play',
|
|
2243
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'MP4');
|
|
2244
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
|
|
2275
2245
|
|
|
2276
2246
|
if (!playReported) {
|
|
2277
2247
|
event.persist();
|
|
@@ -2291,8 +2261,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2291
2261
|
var queue = Math.floor(duration / 10);
|
|
2292
2262
|
var segment = Math.floor(current / queue);
|
|
2293
2263
|
|
|
2294
|
-
Beam.report_beam_video('End',
|
|
2295
|
-
Segment.report_video_event('Video End',
|
|
2264
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'MP4');
|
|
2265
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
|
|
2296
2266
|
setEndReported(true);
|
|
2297
2267
|
clearInterval(intervalID);
|
|
2298
2268
|
}
|
|
@@ -2304,14 +2274,14 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2304
2274
|
var duration = player.duration - current;
|
|
2305
2275
|
var queue = Math.floor(duration / 10);
|
|
2306
2276
|
var segment = Math.floor(current / queue);
|
|
2307
|
-
Beam.report_beam_video('Pause',
|
|
2308
|
-
Segment.report_video_event('Video Pause',
|
|
2277
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'MP4');
|
|
2278
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
|
|
2309
2279
|
};
|
|
2310
2280
|
|
|
2311
|
-
return
|
|
2281
|
+
return React.createElement(
|
|
2312
2282
|
'div',
|
|
2313
2283
|
null,
|
|
2314
|
-
vidLoaded &&
|
|
2284
|
+
vidLoaded && React.createElement(
|
|
2315
2285
|
'video',
|
|
2316
2286
|
{
|
|
2317
2287
|
poster: thumbnail || '',
|
|
@@ -2329,7 +2299,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2329
2299
|
onPlay: function onPlay(e) {
|
|
2330
2300
|
return handleOnPlay(e);
|
|
2331
2301
|
} },
|
|
2332
|
-
|
|
2302
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2333
2303
|
'Your browser does not support the video tag.'
|
|
2334
2304
|
)
|
|
2335
2305
|
);
|
|
@@ -2366,7 +2336,7 @@ var Video = function Video(_ref) {
|
|
|
2366
2336
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2367
2337
|
//console.log('success:', success.ref)
|
|
2368
2338
|
var player = success.ref;
|
|
2369
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2339
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2370
2340
|
player.ima3.settings.debug = true;
|
|
2371
2341
|
if (targeting.content_placement && targeting.document_url) {
|
|
2372
2342
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2394,8 +2364,8 @@ var Video = function Video(_ref) {
|
|
|
2394
2364
|
player.pause();
|
|
2395
2365
|
}
|
|
2396
2366
|
|
|
2397
|
-
Beam.report_beam_video('Ready',
|
|
2398
|
-
Segment.report_video_event('Video Ready',
|
|
2367
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2368
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2399
2369
|
});
|
|
2400
2370
|
|
|
2401
2371
|
// play
|
|
@@ -2404,8 +2374,8 @@ var Video = function Video(_ref) {
|
|
|
2404
2374
|
var current = player.currentTime();
|
|
2405
2375
|
var queue = Math.floor(duration / 10);
|
|
2406
2376
|
var segment = Math.floor(current / queue);
|
|
2407
|
-
Beam.report_beam_video('Play',
|
|
2408
|
-
Segment.report_video_event('Video Play',
|
|
2377
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2378
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2409
2379
|
});
|
|
2410
2380
|
|
|
2411
2381
|
// pause
|
|
@@ -2414,8 +2384,8 @@ var Video = function Video(_ref) {
|
|
|
2414
2384
|
var current = player.currentTime();
|
|
2415
2385
|
var queue = Math.floor(duration / 10);
|
|
2416
2386
|
var segment = Math.floor(current / queue);
|
|
2417
|
-
Beam.report_beam_video('Pause',
|
|
2418
|
-
Segment.report_video_event('Video Pause',
|
|
2387
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2388
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2419
2389
|
});
|
|
2420
2390
|
|
|
2421
2391
|
// end
|
|
@@ -2424,8 +2394,8 @@ var Video = function Video(_ref) {
|
|
|
2424
2394
|
var current = player.currentTime();
|
|
2425
2395
|
var queue = Math.floor(duration / 10);
|
|
2426
2396
|
var segment = Math.floor(current / queue);
|
|
2427
|
-
Beam.report_beam_video('End',
|
|
2428
|
-
Segment.report_video_event('Video End',
|
|
2397
|
+
Beam.report_beam_video('End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2398
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2429
2399
|
autoplayNextVideo(evt);
|
|
2430
2400
|
});
|
|
2431
2401
|
|
|
@@ -2436,8 +2406,8 @@ var Video = function Video(_ref) {
|
|
|
2436
2406
|
var queue = Math.floor(duration / 10);
|
|
2437
2407
|
var segment = Math.floor(current / queue);
|
|
2438
2408
|
if (!queueProgress.includes(segment)) {
|
|
2439
|
-
Beam.report_beam_video('Segment',
|
|
2440
|
-
Segment.report_video_event('Video Segment',
|
|
2409
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2410
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2441
2411
|
queueProgress.push(segment);
|
|
2442
2412
|
}
|
|
2443
2413
|
});
|
|
@@ -2448,8 +2418,8 @@ var Video = function Video(_ref) {
|
|
|
2448
2418
|
var id = player.ads.ad.id;
|
|
2449
2419
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2450
2420
|
|
|
2451
|
-
Beam.report_beam_ad('AD Started',
|
|
2452
|
-
Segment.report_ad_event('Video Ad Started',
|
|
2421
|
+
Beam.report_beam_ad('AD Started', main_18, '', '', '', '', '', adType, duration, id);
|
|
2422
|
+
Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2453
2423
|
});
|
|
2454
2424
|
|
|
2455
2425
|
// ad ended
|
|
@@ -2457,60 +2427,60 @@ var Video = function Video(_ref) {
|
|
|
2457
2427
|
var duration = player.ads.ad.duration;
|
|
2458
2428
|
var id = player.ads.ad.id;
|
|
2459
2429
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2460
|
-
Beam.report_beam_ad('AD Ended',
|
|
2461
|
-
Segment.report_ad_event('Video Ad Ended',
|
|
2430
|
+
Beam.report_beam_ad('AD Ended', main_18, '', '', '', '', '', adType, duration, id);
|
|
2431
|
+
Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2462
2432
|
});
|
|
2463
2433
|
};
|
|
2464
2434
|
|
|
2465
2435
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2466
2436
|
if (videoID) {
|
|
2467
|
-
return
|
|
2437
|
+
return React.createElement(
|
|
2468
2438
|
'div',
|
|
2469
2439
|
null,
|
|
2470
|
-
|
|
2440
|
+
React.createElement(ReactPlayerLoader, {
|
|
2471
2441
|
onSuccess: onVideoSuccess,
|
|
2472
2442
|
accountId: accountIDs.brightcove.accountId,
|
|
2473
2443
|
videoId: videoID,
|
|
2474
2444
|
playerId: accountIDs.brightcove.playerId,
|
|
2475
2445
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2476
2446
|
}),
|
|
2477
|
-
|
|
2447
|
+
React.createElement(
|
|
2478
2448
|
'style',
|
|
2479
2449
|
{ jsx: 'true' },
|
|
2480
2450
|
'\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 '
|
|
2481
2451
|
)
|
|
2482
2452
|
);
|
|
2483
2453
|
} else if (playlistID) {
|
|
2484
|
-
return
|
|
2454
|
+
return React.createElement(
|
|
2485
2455
|
'div',
|
|
2486
2456
|
null,
|
|
2487
|
-
|
|
2457
|
+
React.createElement(ReactPlayerLoader, {
|
|
2488
2458
|
accountId: accountIDs.brightcove.accountId,
|
|
2489
2459
|
playlistId: playlistID,
|
|
2490
2460
|
playerId: accountIDs.brightcove.playerId,
|
|
2491
2461
|
onSuccess: onVideoSuccess,
|
|
2492
2462
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2493
2463
|
}),
|
|
2494
|
-
|
|
2464
|
+
React.createElement(
|
|
2495
2465
|
'style',
|
|
2496
2466
|
{ jsx: 'true' },
|
|
2497
2467
|
'\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 '
|
|
2498
2468
|
)
|
|
2499
2469
|
);
|
|
2500
2470
|
} else if (experienceID) {
|
|
2501
|
-
return
|
|
2471
|
+
return React.createElement(
|
|
2502
2472
|
'div',
|
|
2503
2473
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2504
|
-
videoLoaded &&
|
|
2474
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2505
2475
|
);
|
|
2506
2476
|
}
|
|
2507
2477
|
return null;
|
|
2508
2478
|
}
|
|
2509
2479
|
if (source === 'mp4') {
|
|
2510
|
-
return
|
|
2480
|
+
return React.createElement(
|
|
2511
2481
|
'div',
|
|
2512
2482
|
null,
|
|
2513
|
-
|
|
2483
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2514
2484
|
);
|
|
2515
2485
|
}
|
|
2516
2486
|
|
|
@@ -2721,9 +2691,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2721
2691
|
});
|
|
2722
2692
|
|
|
2723
2693
|
unwrapExports(props);
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2694
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2695
|
+
props.defaultProps;
|
|
2696
|
+
props.propTypes;
|
|
2727
2697
|
|
|
2728
2698
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2729
2699
|
return isNonNullObject(value)
|
|
@@ -2888,11 +2858,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2888
2858
|
|
|
2889
2859
|
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; }
|
|
2890
2860
|
|
|
2891
|
-
function
|
|
2861
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2862
|
+
|
|
2863
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2892
2864
|
|
|
2893
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2865
|
+
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."); }
|
|
2894
2866
|
|
|
2895
|
-
function
|
|
2867
|
+
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); }
|
|
2868
|
+
|
|
2869
|
+
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; }
|
|
2870
|
+
|
|
2871
|
+
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; }
|
|
2896
2872
|
|
|
2897
2873
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2898
2874
|
|
|
@@ -3022,12 +2998,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3022
2998
|
|
|
3023
2999
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3024
3000
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3025
|
-
|
|
3026
|
-
var
|
|
3027
|
-
|
|
3001
|
+
|
|
3002
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3003
|
+
_step;
|
|
3028
3004
|
|
|
3029
3005
|
try {
|
|
3030
|
-
for (
|
|
3006
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3031
3007
|
var p = _step.value;
|
|
3032
3008
|
|
|
3033
3009
|
if (props$1[p]) {
|
|
@@ -3042,18 +3018,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3042
3018
|
}
|
|
3043
3019
|
}
|
|
3044
3020
|
} catch (err) {
|
|
3045
|
-
|
|
3046
|
-
_iteratorError = err;
|
|
3021
|
+
_iterator.e(err);
|
|
3047
3022
|
} finally {
|
|
3048
|
-
|
|
3049
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3050
|
-
_iterator["return"]();
|
|
3051
|
-
}
|
|
3052
|
-
} finally {
|
|
3053
|
-
if (_didIteratorError) {
|
|
3054
|
-
throw _iteratorError;
|
|
3055
|
-
}
|
|
3056
|
-
}
|
|
3023
|
+
_iterator.f();
|
|
3057
3024
|
}
|
|
3058
3025
|
|
|
3059
3026
|
return config;
|
|
@@ -3118,7 +3085,7 @@ function isEqual(a, b) {
|
|
|
3118
3085
|
return true;
|
|
3119
3086
|
}
|
|
3120
3087
|
|
|
3121
|
-
if ((0,
|
|
3088
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3122
3089
|
return true;
|
|
3123
3090
|
}
|
|
3124
3091
|
|
|
@@ -3161,17 +3128,17 @@ function isMediaStream(url) {
|
|
|
3161
3128
|
});
|
|
3162
3129
|
|
|
3163
3130
|
unwrapExports(utils);
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3131
|
+
utils.parseStartTime;
|
|
3132
|
+
utils.parseEndTime;
|
|
3133
|
+
utils.randomString;
|
|
3134
|
+
utils.queryString;
|
|
3135
|
+
utils.getSDK;
|
|
3136
|
+
utils.getConfig;
|
|
3137
|
+
utils.omit;
|
|
3138
|
+
utils.callPlayer;
|
|
3139
|
+
utils.isObject;
|
|
3140
|
+
utils.isEqual;
|
|
3141
|
+
utils.isMediaStream;
|
|
3175
3142
|
|
|
3176
3143
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3177
3144
|
|
|
@@ -3180,7 +3147,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3180
3147
|
});
|
|
3181
3148
|
exports["default"] = void 0;
|
|
3182
3149
|
|
|
3183
|
-
var _react = _interopRequireWildcard(
|
|
3150
|
+
var _react = _interopRequireWildcard(React);
|
|
3184
3151
|
|
|
3185
3152
|
|
|
3186
3153
|
|
|
@@ -3200,12 +3167,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3200
3167
|
|
|
3201
3168
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3202
3169
|
|
|
3203
|
-
function
|
|
3170
|
+
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); }; }
|
|
3204
3171
|
|
|
3205
|
-
function
|
|
3172
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3206
3173
|
|
|
3207
3174
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3208
3175
|
|
|
3176
|
+
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; } }
|
|
3177
|
+
|
|
3178
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3179
|
+
|
|
3209
3180
|
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); }
|
|
3210
3181
|
|
|
3211
3182
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3214,14 +3185,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3214
3185
|
|
|
3215
3186
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3216
3187
|
|
|
3217
|
-
var Player =
|
|
3218
|
-
/*#__PURE__*/
|
|
3219
|
-
function (_Component) {
|
|
3188
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3220
3189
|
_inherits(Player, _Component);
|
|
3221
3190
|
|
|
3222
|
-
|
|
3223
|
-
var _getPrototypeOf2;
|
|
3191
|
+
var _super = _createSuper(Player);
|
|
3224
3192
|
|
|
3193
|
+
function Player() {
|
|
3225
3194
|
var _this;
|
|
3226
3195
|
|
|
3227
3196
|
_classCallCheck(this, Player);
|
|
@@ -3230,7 +3199,7 @@ function (_Component) {
|
|
|
3230
3199
|
_args[_key] = arguments[_key];
|
|
3231
3200
|
}
|
|
3232
3201
|
|
|
3233
|
-
_this =
|
|
3202
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3234
3203
|
|
|
3235
3204
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3236
3205
|
|
|
@@ -3555,7 +3524,7 @@ function (_Component) {
|
|
|
3555
3524
|
return null;
|
|
3556
3525
|
}
|
|
3557
3526
|
|
|
3558
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3527
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3559
3528
|
ref: this.ref,
|
|
3560
3529
|
onReady: this.handleReady,
|
|
3561
3530
|
onPlay: this.handlePlay,
|
|
@@ -3588,7 +3557,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3588
3557
|
});
|
|
3589
3558
|
exports["default"] = createSinglePlayer;
|
|
3590
3559
|
|
|
3591
|
-
var _react = _interopRequireWildcard(
|
|
3560
|
+
var _react = _interopRequireWildcard(React);
|
|
3592
3561
|
|
|
3593
3562
|
|
|
3594
3563
|
|
|
@@ -3616,12 +3585,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3616
3585
|
|
|
3617
3586
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3618
3587
|
|
|
3619
|
-
function
|
|
3588
|
+
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); }; }
|
|
3620
3589
|
|
|
3621
|
-
function
|
|
3590
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3622
3591
|
|
|
3623
3592
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3624
3593
|
|
|
3594
|
+
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; } }
|
|
3595
|
+
|
|
3596
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3597
|
+
|
|
3625
3598
|
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); }
|
|
3626
3599
|
|
|
3627
3600
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3633,14 +3606,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3633
3606
|
function createSinglePlayer(activePlayer) {
|
|
3634
3607
|
var _class, _temp;
|
|
3635
3608
|
|
|
3636
|
-
return _temp = _class =
|
|
3637
|
-
/*#__PURE__*/
|
|
3638
|
-
function (_Component) {
|
|
3609
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3639
3610
|
_inherits(SinglePlayer, _Component);
|
|
3640
3611
|
|
|
3641
|
-
|
|
3642
|
-
var _getPrototypeOf2;
|
|
3612
|
+
var _super = _createSuper(SinglePlayer);
|
|
3643
3613
|
|
|
3614
|
+
function SinglePlayer() {
|
|
3644
3615
|
var _this;
|
|
3645
3616
|
|
|
3646
3617
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3649,7 +3620,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3649
3620
|
args[_key] = arguments[_key];
|
|
3650
3621
|
}
|
|
3651
3622
|
|
|
3652
|
-
_this =
|
|
3623
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3653
3624
|
|
|
3654
3625
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3655
3626
|
|
|
@@ -3717,12 +3688,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3717
3688
|
height = _this$props.height,
|
|
3718
3689
|
Wrapper = _this$props.wrapper;
|
|
3719
3690
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3720
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3691
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3721
3692
|
style: _objectSpread({}, style, {
|
|
3722
3693
|
width: width,
|
|
3723
3694
|
height: height
|
|
3724
3695
|
})
|
|
3725
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3696
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3726
3697
|
ref: this.ref,
|
|
3727
3698
|
activePlayer: activePlayer,
|
|
3728
3699
|
config: this.config
|
|
@@ -3744,7 +3715,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3744
3715
|
});
|
|
3745
3716
|
exports["default"] = exports.YouTube = void 0;
|
|
3746
3717
|
|
|
3747
|
-
var _react = _interopRequireWildcard(
|
|
3718
|
+
var _react = _interopRequireWildcard(React);
|
|
3748
3719
|
|
|
3749
3720
|
|
|
3750
3721
|
|
|
@@ -3768,23 +3739,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3768
3739
|
|
|
3769
3740
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3770
3741
|
|
|
3771
|
-
function
|
|
3742
|
+
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); }; }
|
|
3772
3743
|
|
|
3773
|
-
function
|
|
3744
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3774
3745
|
|
|
3775
3746
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3776
3747
|
|
|
3748
|
+
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; } }
|
|
3749
|
+
|
|
3750
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3751
|
+
|
|
3777
3752
|
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); }
|
|
3778
3753
|
|
|
3779
3754
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3780
3755
|
|
|
3781
3756
|
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; }
|
|
3782
3757
|
|
|
3783
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3758
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3759
|
+
|
|
3760
|
+
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."); }
|
|
3784
3761
|
|
|
3785
|
-
function
|
|
3762
|
+
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); }
|
|
3786
3763
|
|
|
3787
|
-
function
|
|
3764
|
+
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; }
|
|
3765
|
+
|
|
3766
|
+
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; }
|
|
3788
3767
|
|
|
3789
3768
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3790
3769
|
|
|
@@ -3809,14 +3788,12 @@ function parsePlaylist(url) {
|
|
|
3809
3788
|
return {};
|
|
3810
3789
|
}
|
|
3811
3790
|
|
|
3812
|
-
var YouTube =
|
|
3813
|
-
/*#__PURE__*/
|
|
3814
|
-
function (_Component) {
|
|
3791
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3815
3792
|
_inherits(YouTube, _Component);
|
|
3816
3793
|
|
|
3817
|
-
|
|
3818
|
-
var _getPrototypeOf2;
|
|
3794
|
+
var _super = _createSuper(YouTube);
|
|
3819
3795
|
|
|
3796
|
+
function YouTube() {
|
|
3820
3797
|
var _this;
|
|
3821
3798
|
|
|
3822
3799
|
_classCallCheck(this, YouTube);
|
|
@@ -3825,7 +3802,7 @@ function (_Component) {
|
|
|
3825
3802
|
args[_key] = arguments[_key];
|
|
3826
3803
|
}
|
|
3827
3804
|
|
|
3828
|
-
_this =
|
|
3805
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3829
3806
|
|
|
3830
3807
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3831
3808
|
|
|
@@ -4013,9 +3990,9 @@ function (_Component) {
|
|
|
4013
3990
|
height: '100%',
|
|
4014
3991
|
display: display
|
|
4015
3992
|
};
|
|
4016
|
-
return _react["default"].createElement("div", {
|
|
3993
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4017
3994
|
style: style
|
|
4018
|
-
}, _react["default"].createElement("div", {
|
|
3995
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4019
3996
|
ref: this.ref
|
|
4020
3997
|
}));
|
|
4021
3998
|
}
|
|
@@ -4038,7 +4015,7 @@ exports["default"] = _default;
|
|
|
4038
4015
|
});
|
|
4039
4016
|
|
|
4040
4017
|
unwrapExports(YouTube_1);
|
|
4041
|
-
|
|
4018
|
+
YouTube_1.YouTube;
|
|
4042
4019
|
|
|
4043
4020
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4044
4021
|
|
|
@@ -4047,7 +4024,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4047
4024
|
});
|
|
4048
4025
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4049
4026
|
|
|
4050
|
-
var _react = _interopRequireWildcard(
|
|
4027
|
+
var _react = _interopRequireWildcard(React);
|
|
4051
4028
|
|
|
4052
4029
|
|
|
4053
4030
|
|
|
@@ -4071,12 +4048,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4071
4048
|
|
|
4072
4049
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4073
4050
|
|
|
4074
|
-
function
|
|
4051
|
+
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); }; }
|
|
4075
4052
|
|
|
4076
|
-
function
|
|
4053
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4077
4054
|
|
|
4078
4055
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4079
4056
|
|
|
4057
|
+
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; } }
|
|
4058
|
+
|
|
4059
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4060
|
+
|
|
4080
4061
|
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); }
|
|
4081
4062
|
|
|
4082
4063
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4085,16 +4066,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4085
4066
|
|
|
4086
4067
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4087
4068
|
var SDK_GLOBAL = 'SC';
|
|
4088
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4069
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4089
4070
|
|
|
4090
|
-
var SoundCloud =
|
|
4091
|
-
/*#__PURE__*/
|
|
4092
|
-
function (_Component) {
|
|
4071
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4093
4072
|
_inherits(SoundCloud, _Component);
|
|
4094
4073
|
|
|
4095
|
-
|
|
4096
|
-
var _getPrototypeOf2;
|
|
4074
|
+
var _super = _createSuper(SoundCloud);
|
|
4097
4075
|
|
|
4076
|
+
function SoundCloud() {
|
|
4098
4077
|
var _this;
|
|
4099
4078
|
|
|
4100
4079
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4103,7 +4082,7 @@ function (_Component) {
|
|
|
4103
4082
|
args[_key] = arguments[_key];
|
|
4104
4083
|
}
|
|
4105
4084
|
|
|
4106
|
-
_this =
|
|
4085
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4107
4086
|
|
|
4108
4087
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4109
4088
|
|
|
@@ -4224,7 +4203,7 @@ function (_Component) {
|
|
|
4224
4203
|
height: '100%',
|
|
4225
4204
|
display: display
|
|
4226
4205
|
};
|
|
4227
|
-
return _react["default"].createElement("iframe", {
|
|
4206
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4228
4207
|
ref: this.ref,
|
|
4229
4208
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4230
4209
|
style: style,
|
|
@@ -4253,7 +4232,7 @@ exports["default"] = _default;
|
|
|
4253
4232
|
});
|
|
4254
4233
|
|
|
4255
4234
|
unwrapExports(SoundCloud_1);
|
|
4256
|
-
|
|
4235
|
+
SoundCloud_1.SoundCloud;
|
|
4257
4236
|
|
|
4258
4237
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4259
4238
|
|
|
@@ -4262,7 +4241,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4262
4241
|
});
|
|
4263
4242
|
exports["default"] = exports.Vimeo = void 0;
|
|
4264
4243
|
|
|
4265
|
-
var _react = _interopRequireWildcard(
|
|
4244
|
+
var _react = _interopRequireWildcard(React);
|
|
4266
4245
|
|
|
4267
4246
|
|
|
4268
4247
|
|
|
@@ -4286,12 +4265,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4286
4265
|
|
|
4287
4266
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4288
4267
|
|
|
4289
|
-
function
|
|
4268
|
+
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); }; }
|
|
4290
4269
|
|
|
4291
|
-
function
|
|
4270
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4292
4271
|
|
|
4293
4272
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4294
4273
|
|
|
4274
|
+
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; } }
|
|
4275
|
+
|
|
4276
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4277
|
+
|
|
4295
4278
|
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); }
|
|
4296
4279
|
|
|
4297
4280
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4303,14 +4286,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4303
4286
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4304
4287
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4305
4288
|
|
|
4306
|
-
var Vimeo =
|
|
4307
|
-
/*#__PURE__*/
|
|
4308
|
-
function (_Component) {
|
|
4289
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4309
4290
|
_inherits(Vimeo, _Component);
|
|
4310
4291
|
|
|
4311
|
-
|
|
4312
|
-
var _getPrototypeOf2;
|
|
4292
|
+
var _super = _createSuper(Vimeo);
|
|
4313
4293
|
|
|
4294
|
+
function Vimeo() {
|
|
4314
4295
|
var _this;
|
|
4315
4296
|
|
|
4316
4297
|
_classCallCheck(this, Vimeo);
|
|
@@ -4319,7 +4300,7 @@ function (_Component) {
|
|
|
4319
4300
|
args[_key] = arguments[_key];
|
|
4320
4301
|
}
|
|
4321
4302
|
|
|
4322
|
-
_this =
|
|
4303
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4323
4304
|
|
|
4324
4305
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4325
4306
|
|
|
@@ -4476,7 +4457,7 @@ function (_Component) {
|
|
|
4476
4457
|
overflow: 'hidden',
|
|
4477
4458
|
display: display
|
|
4478
4459
|
};
|
|
4479
|
-
return _react["default"].createElement("div", {
|
|
4460
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4480
4461
|
key: this.props.url,
|
|
4481
4462
|
ref: this.ref,
|
|
4482
4463
|
style: style
|
|
@@ -4507,7 +4488,7 @@ exports["default"] = _default;
|
|
|
4507
4488
|
});
|
|
4508
4489
|
|
|
4509
4490
|
unwrapExports(Vimeo_1);
|
|
4510
|
-
|
|
4491
|
+
Vimeo_1.Vimeo;
|
|
4511
4492
|
|
|
4512
4493
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4513
4494
|
|
|
@@ -4516,7 +4497,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4516
4497
|
});
|
|
4517
4498
|
exports["default"] = exports.Facebook = void 0;
|
|
4518
4499
|
|
|
4519
|
-
var _react = _interopRequireWildcard(
|
|
4500
|
+
var _react = _interopRequireWildcard(React);
|
|
4520
4501
|
|
|
4521
4502
|
|
|
4522
4503
|
|
|
@@ -4536,12 +4517,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4536
4517
|
|
|
4537
4518
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4538
4519
|
|
|
4539
|
-
function
|
|
4520
|
+
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); }; }
|
|
4540
4521
|
|
|
4541
|
-
function
|
|
4522
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4542
4523
|
|
|
4543
4524
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4544
4525
|
|
|
4526
|
+
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; } }
|
|
4527
|
+
|
|
4528
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4529
|
+
|
|
4545
4530
|
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); }
|
|
4546
4531
|
|
|
4547
4532
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4554,14 +4539,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4554
4539
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4555
4540
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4556
4541
|
|
|
4557
|
-
var Facebook =
|
|
4558
|
-
/*#__PURE__*/
|
|
4559
|
-
function (_Component) {
|
|
4542
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4560
4543
|
_inherits(Facebook, _Component);
|
|
4561
4544
|
|
|
4562
|
-
|
|
4563
|
-
var _getPrototypeOf2;
|
|
4545
|
+
var _super = _createSuper(Facebook);
|
|
4564
4546
|
|
|
4547
|
+
function Facebook() {
|
|
4565
4548
|
var _this;
|
|
4566
4549
|
|
|
4567
4550
|
_classCallCheck(this, Facebook);
|
|
@@ -4570,7 +4553,7 @@ function (_Component) {
|
|
|
4570
4553
|
args[_key] = arguments[_key];
|
|
4571
4554
|
}
|
|
4572
4555
|
|
|
4573
|
-
_this =
|
|
4556
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4574
4557
|
|
|
4575
4558
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4576
4559
|
|
|
@@ -4686,7 +4669,7 @@ function (_Component) {
|
|
|
4686
4669
|
width: '100%',
|
|
4687
4670
|
height: '100%'
|
|
4688
4671
|
};
|
|
4689
|
-
return _react["default"].createElement("div", {
|
|
4672
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4690
4673
|
style: style,
|
|
4691
4674
|
id: this.playerID,
|
|
4692
4675
|
className: "fb-video",
|
|
@@ -4717,7 +4700,7 @@ exports["default"] = _default;
|
|
|
4717
4700
|
});
|
|
4718
4701
|
|
|
4719
4702
|
unwrapExports(Facebook_1);
|
|
4720
|
-
|
|
4703
|
+
Facebook_1.Facebook;
|
|
4721
4704
|
|
|
4722
4705
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4723
4706
|
|
|
@@ -4726,7 +4709,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4726
4709
|
});
|
|
4727
4710
|
exports["default"] = exports.Streamable = void 0;
|
|
4728
4711
|
|
|
4729
|
-
var _react = _interopRequireWildcard(
|
|
4712
|
+
var _react = _interopRequireWildcard(React);
|
|
4730
4713
|
|
|
4731
4714
|
|
|
4732
4715
|
|
|
@@ -4746,12 +4729,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4746
4729
|
|
|
4747
4730
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4748
4731
|
|
|
4749
|
-
function
|
|
4732
|
+
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); }; }
|
|
4750
4733
|
|
|
4751
|
-
function
|
|
4734
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4752
4735
|
|
|
4753
4736
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4754
4737
|
|
|
4738
|
+
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; } }
|
|
4739
|
+
|
|
4740
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4741
|
+
|
|
4755
4742
|
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); }
|
|
4756
4743
|
|
|
4757
4744
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4762,14 +4749,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4762
4749
|
var SDK_GLOBAL = 'playerjs';
|
|
4763
4750
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4764
4751
|
|
|
4765
|
-
var Streamable =
|
|
4766
|
-
/*#__PURE__*/
|
|
4767
|
-
function (_Component) {
|
|
4752
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4768
4753
|
_inherits(Streamable, _Component);
|
|
4769
4754
|
|
|
4770
|
-
|
|
4771
|
-
var _getPrototypeOf2;
|
|
4755
|
+
var _super = _createSuper(Streamable);
|
|
4772
4756
|
|
|
4757
|
+
function Streamable() {
|
|
4773
4758
|
var _this;
|
|
4774
4759
|
|
|
4775
4760
|
_classCallCheck(this, Streamable);
|
|
@@ -4778,7 +4763,7 @@ function (_Component) {
|
|
|
4778
4763
|
args[_key] = arguments[_key];
|
|
4779
4764
|
}
|
|
4780
4765
|
|
|
4781
|
-
_this =
|
|
4766
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4782
4767
|
|
|
4783
4768
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4784
4769
|
|
|
@@ -4898,7 +4883,7 @@ function (_Component) {
|
|
|
4898
4883
|
width: '100%',
|
|
4899
4884
|
height: '100%'
|
|
4900
4885
|
};
|
|
4901
|
-
return _react["default"].createElement("iframe", {
|
|
4886
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4902
4887
|
ref: this.ref,
|
|
4903
4888
|
src: "https://streamable.com/o/".concat(id),
|
|
4904
4889
|
frameBorder: "0",
|
|
@@ -4926,7 +4911,7 @@ exports["default"] = _default;
|
|
|
4926
4911
|
});
|
|
4927
4912
|
|
|
4928
4913
|
unwrapExports(Streamable_1);
|
|
4929
|
-
|
|
4914
|
+
Streamable_1.Streamable;
|
|
4930
4915
|
|
|
4931
4916
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4932
4917
|
|
|
@@ -4935,7 +4920,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4935
4920
|
});
|
|
4936
4921
|
exports["default"] = exports.Wistia = void 0;
|
|
4937
4922
|
|
|
4938
|
-
var _react = _interopRequireWildcard(
|
|
4923
|
+
var _react = _interopRequireWildcard(React);
|
|
4939
4924
|
|
|
4940
4925
|
|
|
4941
4926
|
|
|
@@ -4959,12 +4944,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4959
4944
|
|
|
4960
4945
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4961
4946
|
|
|
4962
|
-
function
|
|
4947
|
+
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); }; }
|
|
4963
4948
|
|
|
4964
|
-
function
|
|
4949
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4965
4950
|
|
|
4966
4951
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4967
4952
|
|
|
4953
|
+
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; } }
|
|
4954
|
+
|
|
4955
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4956
|
+
|
|
4968
4957
|
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); }
|
|
4969
4958
|
|
|
4970
4959
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4975,26 +4964,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4975
4964
|
var SDK_GLOBAL = 'Wistia';
|
|
4976
4965
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4977
4966
|
|
|
4978
|
-
var Wistia =
|
|
4979
|
-
/*#__PURE__*/
|
|
4980
|
-
function (_Component) {
|
|
4967
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4981
4968
|
_inherits(Wistia, _Component);
|
|
4982
4969
|
|
|
4983
|
-
|
|
4984
|
-
var _getPrototypeOf2;
|
|
4970
|
+
var _super = _createSuper(Wistia);
|
|
4985
4971
|
|
|
4972
|
+
function Wistia() {
|
|
4986
4973
|
var _this;
|
|
4987
4974
|
|
|
4988
4975
|
_classCallCheck(this, Wistia);
|
|
4989
4976
|
|
|
4990
|
-
for (var _len = arguments.length,
|
|
4991
|
-
|
|
4977
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4978
|
+
_args[_key] = arguments[_key];
|
|
4992
4979
|
}
|
|
4993
4980
|
|
|
4994
|
-
_this =
|
|
4981
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4995
4982
|
|
|
4996
4983
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4997
4984
|
|
|
4985
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4986
|
+
var _this$props;
|
|
4987
|
+
|
|
4988
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4992
|
+
var _this$props2;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
4997
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4998
|
+
var _this$props3;
|
|
4999
|
+
|
|
5000
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5001
|
+
});
|
|
5002
|
+
|
|
5003
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5004
|
+
var _this$props4;
|
|
5005
|
+
|
|
5006
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5007
|
+
});
|
|
5008
|
+
|
|
4998
5009
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4999
5010
|
_this.callPlayer('mute');
|
|
5000
5011
|
});
|
|
@@ -5016,17 +5027,13 @@ function (_Component) {
|
|
|
5016
5027
|
value: function load(url) {
|
|
5017
5028
|
var _this2 = this;
|
|
5018
5029
|
|
|
5019
|
-
var _this$
|
|
5020
|
-
playing = _this$
|
|
5021
|
-
muted = _this$
|
|
5022
|
-
controls = _this$
|
|
5023
|
-
_onReady = _this$
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
onSeek = _this$props.onSeek,
|
|
5027
|
-
onEnded = _this$props.onEnded,
|
|
5028
|
-
config = _this$props.config,
|
|
5029
|
-
onError = _this$props.onError;
|
|
5030
|
+
var _this$props5 = this.props,
|
|
5031
|
+
playing = _this$props5.playing,
|
|
5032
|
+
muted = _this$props5.muted,
|
|
5033
|
+
controls = _this$props5.controls,
|
|
5034
|
+
_onReady = _this$props5.onReady,
|
|
5035
|
+
config = _this$props5.config,
|
|
5036
|
+
onError = _this$props5.onError;
|
|
5030
5037
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5031
5038
|
window._wq = window._wq || [];
|
|
5032
5039
|
|
|
@@ -5043,19 +5050,28 @@ function (_Component) {
|
|
|
5043
5050
|
|
|
5044
5051
|
_this2.unbind();
|
|
5045
5052
|
|
|
5046
|
-
_this2.player.bind('play', onPlay);
|
|
5053
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5047
5054
|
|
|
5048
|
-
_this2.player.bind('pause', onPause);
|
|
5055
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5049
5056
|
|
|
5050
|
-
_this2.player.bind('seek', onSeek);
|
|
5057
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5051
5058
|
|
|
5052
|
-
_this2.player.bind('end', onEnded);
|
|
5059
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5053
5060
|
|
|
5054
5061
|
_onReady();
|
|
5055
5062
|
}
|
|
5056
5063
|
});
|
|
5057
5064
|
}, onError);
|
|
5058
5065
|
}
|
|
5066
|
+
}, {
|
|
5067
|
+
key: "unbind",
|
|
5068
|
+
value: function unbind() {
|
|
5069
|
+
this.player.unbind('play', this.onPlay);
|
|
5070
|
+
this.player.unbind('pause', this.onPause);
|
|
5071
|
+
this.player.unbind('seek', this.onSeek);
|
|
5072
|
+
this.player.unbind('end', this.onEnded);
|
|
5073
|
+
} // Proxy methods to prevent listener leaks
|
|
5074
|
+
|
|
5059
5075
|
}, {
|
|
5060
5076
|
key: "play",
|
|
5061
5077
|
value: function play() {
|
|
@@ -5066,19 +5082,6 @@ function (_Component) {
|
|
|
5066
5082
|
value: function pause() {
|
|
5067
5083
|
this.callPlayer('pause');
|
|
5068
5084
|
}
|
|
5069
|
-
}, {
|
|
5070
|
-
key: "unbind",
|
|
5071
|
-
value: function unbind() {
|
|
5072
|
-
var _this$props2 = this.props,
|
|
5073
|
-
onPlay = _this$props2.onPlay,
|
|
5074
|
-
onPause = _this$props2.onPause,
|
|
5075
|
-
onSeek = _this$props2.onSeek,
|
|
5076
|
-
onEnded = _this$props2.onEnded;
|
|
5077
|
-
this.player.unbind('play', onPlay);
|
|
5078
|
-
this.player.unbind('pause', onPause);
|
|
5079
|
-
this.player.unbind('seek', onSeek);
|
|
5080
|
-
this.player.unbind('end', onEnded);
|
|
5081
|
-
}
|
|
5082
5085
|
}, {
|
|
5083
5086
|
key: "stop",
|
|
5084
5087
|
value: function stop() {
|
|
@@ -5124,7 +5127,7 @@ function (_Component) {
|
|
|
5124
5127
|
width: '100%',
|
|
5125
5128
|
height: '100%'
|
|
5126
5129
|
};
|
|
5127
|
-
return _react["default"].createElement("div", {
|
|
5130
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5128
5131
|
key: id,
|
|
5129
5132
|
className: className,
|
|
5130
5133
|
style: style
|
|
@@ -5151,7 +5154,7 @@ exports["default"] = _default;
|
|
|
5151
5154
|
});
|
|
5152
5155
|
|
|
5153
5156
|
unwrapExports(Wistia_1);
|
|
5154
|
-
|
|
5157
|
+
Wistia_1.Wistia;
|
|
5155
5158
|
|
|
5156
5159
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5157
5160
|
|
|
@@ -5160,7 +5163,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5160
5163
|
});
|
|
5161
5164
|
exports["default"] = exports.Twitch = void 0;
|
|
5162
5165
|
|
|
5163
|
-
var _react = _interopRequireWildcard(
|
|
5166
|
+
var _react = _interopRequireWildcard(React);
|
|
5164
5167
|
|
|
5165
5168
|
|
|
5166
5169
|
|
|
@@ -5184,12 +5187,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5184
5187
|
|
|
5185
5188
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5186
5189
|
|
|
5187
|
-
function
|
|
5190
|
+
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); }; }
|
|
5188
5191
|
|
|
5189
|
-
function
|
|
5192
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5190
5193
|
|
|
5191
5194
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5192
5195
|
|
|
5196
|
+
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; } }
|
|
5197
|
+
|
|
5198
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5199
|
+
|
|
5193
5200
|
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); }
|
|
5194
5201
|
|
|
5195
5202
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5202,14 +5209,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5202
5209
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5203
5210
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5204
5211
|
|
|
5205
|
-
var Twitch =
|
|
5206
|
-
/*#__PURE__*/
|
|
5207
|
-
function (_Component) {
|
|
5212
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5208
5213
|
_inherits(Twitch, _Component);
|
|
5209
5214
|
|
|
5210
|
-
|
|
5211
|
-
var _getPrototypeOf2;
|
|
5215
|
+
var _super = _createSuper(Twitch);
|
|
5212
5216
|
|
|
5217
|
+
function Twitch() {
|
|
5213
5218
|
var _this;
|
|
5214
5219
|
|
|
5215
5220
|
_classCallCheck(this, Twitch);
|
|
@@ -5218,7 +5223,7 @@ function (_Component) {
|
|
|
5218
5223
|
args[_key] = arguments[_key];
|
|
5219
5224
|
}
|
|
5220
5225
|
|
|
5221
|
-
_this =
|
|
5226
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5222
5227
|
|
|
5223
5228
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5224
5229
|
|
|
@@ -5339,7 +5344,7 @@ function (_Component) {
|
|
|
5339
5344
|
width: '100%',
|
|
5340
5345
|
height: '100%'
|
|
5341
5346
|
};
|
|
5342
|
-
return _react["default"].createElement("div", {
|
|
5347
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5343
5348
|
style: style,
|
|
5344
5349
|
id: this.playerID
|
|
5345
5350
|
});
|
|
@@ -5365,7 +5370,7 @@ exports["default"] = _default;
|
|
|
5365
5370
|
});
|
|
5366
5371
|
|
|
5367
5372
|
unwrapExports(Twitch_1);
|
|
5368
|
-
|
|
5373
|
+
Twitch_1.Twitch;
|
|
5369
5374
|
|
|
5370
5375
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5371
5376
|
|
|
@@ -5374,7 +5379,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5374
5379
|
});
|
|
5375
5380
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5376
5381
|
|
|
5377
|
-
var _react = _interopRequireWildcard(
|
|
5382
|
+
var _react = _interopRequireWildcard(React);
|
|
5378
5383
|
|
|
5379
5384
|
|
|
5380
5385
|
|
|
@@ -5392,11 +5397,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5392
5397
|
|
|
5393
5398
|
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; }
|
|
5394
5399
|
|
|
5395
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5400
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5401
|
+
|
|
5402
|
+
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."); }
|
|
5396
5403
|
|
|
5397
|
-
function
|
|
5404
|
+
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); }
|
|
5398
5405
|
|
|
5399
|
-
function
|
|
5406
|
+
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; }
|
|
5407
|
+
|
|
5408
|
+
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; }
|
|
5400
5409
|
|
|
5401
5410
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5402
5411
|
|
|
@@ -5406,12 +5415,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5406
5415
|
|
|
5407
5416
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5408
5417
|
|
|
5409
|
-
function
|
|
5418
|
+
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); }; }
|
|
5410
5419
|
|
|
5411
|
-
function
|
|
5420
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5412
5421
|
|
|
5413
5422
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5414
5423
|
|
|
5424
|
+
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; } }
|
|
5425
|
+
|
|
5426
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5427
|
+
|
|
5415
5428
|
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); }
|
|
5416
5429
|
|
|
5417
5430
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5423,14 +5436,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5423
5436
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5424
5437
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5425
5438
|
|
|
5426
|
-
var DailyMotion =
|
|
5427
|
-
/*#__PURE__*/
|
|
5428
|
-
function (_Component) {
|
|
5439
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5429
5440
|
_inherits(DailyMotion, _Component);
|
|
5430
5441
|
|
|
5431
|
-
|
|
5432
|
-
var _getPrototypeOf2;
|
|
5442
|
+
var _super = _createSuper(DailyMotion);
|
|
5433
5443
|
|
|
5444
|
+
function DailyMotion() {
|
|
5434
5445
|
var _this;
|
|
5435
5446
|
|
|
5436
5447
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5439,7 +5450,7 @@ function (_Component) {
|
|
|
5439
5450
|
args[_key] = arguments[_key];
|
|
5440
5451
|
}
|
|
5441
5452
|
|
|
5442
|
-
_this =
|
|
5453
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5443
5454
|
|
|
5444
5455
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5445
5456
|
|
|
@@ -5568,9 +5579,9 @@ function (_Component) {
|
|
|
5568
5579
|
height: '100%',
|
|
5569
5580
|
display: display
|
|
5570
5581
|
};
|
|
5571
|
-
return _react["default"].createElement("div", {
|
|
5582
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5572
5583
|
style: style
|
|
5573
|
-
}, _react["default"].createElement("div", {
|
|
5584
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5574
5585
|
ref: this.ref
|
|
5575
5586
|
}));
|
|
5576
5587
|
}
|
|
@@ -5595,7 +5606,7 @@ exports["default"] = _default;
|
|
|
5595
5606
|
});
|
|
5596
5607
|
|
|
5597
5608
|
unwrapExports(DailyMotion_1);
|
|
5598
|
-
|
|
5609
|
+
DailyMotion_1.DailyMotion;
|
|
5599
5610
|
|
|
5600
5611
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5601
5612
|
|
|
@@ -5604,7 +5615,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5604
5615
|
});
|
|
5605
5616
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5606
5617
|
|
|
5607
|
-
var _react = _interopRequireWildcard(
|
|
5618
|
+
var _react = _interopRequireWildcard(React);
|
|
5608
5619
|
|
|
5609
5620
|
|
|
5610
5621
|
|
|
@@ -5628,12 +5639,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5628
5639
|
|
|
5629
5640
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5630
5641
|
|
|
5631
|
-
function
|
|
5642
|
+
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); }; }
|
|
5632
5643
|
|
|
5633
|
-
function
|
|
5644
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5634
5645
|
|
|
5635
5646
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5636
5647
|
|
|
5648
|
+
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; } }
|
|
5649
|
+
|
|
5650
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5651
|
+
|
|
5637
5652
|
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); }
|
|
5638
5653
|
|
|
5639
5654
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5644,14 +5659,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5644
5659
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5645
5660
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5646
5661
|
|
|
5647
|
-
var Mixcloud =
|
|
5648
|
-
/*#__PURE__*/
|
|
5649
|
-
function (_Component) {
|
|
5662
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5650
5663
|
_inherits(Mixcloud, _Component);
|
|
5651
5664
|
|
|
5652
|
-
|
|
5653
|
-
var _getPrototypeOf2;
|
|
5665
|
+
var _super = _createSuper(Mixcloud);
|
|
5654
5666
|
|
|
5667
|
+
function Mixcloud() {
|
|
5655
5668
|
var _this;
|
|
5656
5669
|
|
|
5657
5670
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5660,7 +5673,7 @@ function (_Component) {
|
|
|
5660
5673
|
args[_key] = arguments[_key];
|
|
5661
5674
|
}
|
|
5662
5675
|
|
|
5663
|
-
_this =
|
|
5676
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5664
5677
|
|
|
5665
5678
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5666
5679
|
|
|
@@ -5763,7 +5776,7 @@ function (_Component) {
|
|
|
5763
5776
|
})); // We have to give the iframe a key here to prevent a
|
|
5764
5777
|
// weird dialog appearing when loading a new track
|
|
5765
5778
|
|
|
5766
|
-
return _react["default"].createElement("iframe", {
|
|
5779
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5767
5780
|
key: id,
|
|
5768
5781
|
ref: this.ref,
|
|
5769
5782
|
style: style,
|
|
@@ -5792,7 +5805,7 @@ exports["default"] = _default;
|
|
|
5792
5805
|
});
|
|
5793
5806
|
|
|
5794
5807
|
unwrapExports(Mixcloud_1);
|
|
5795
|
-
|
|
5808
|
+
Mixcloud_1.Mixcloud;
|
|
5796
5809
|
|
|
5797
5810
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5798
5811
|
|
|
@@ -5801,7 +5814,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5801
5814
|
});
|
|
5802
5815
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5803
5816
|
|
|
5804
|
-
var _react = _interopRequireWildcard(
|
|
5817
|
+
var _react = _interopRequireWildcard(React);
|
|
5805
5818
|
|
|
5806
5819
|
|
|
5807
5820
|
|
|
@@ -5823,23 +5836,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5823
5836
|
|
|
5824
5837
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5825
5838
|
|
|
5826
|
-
function
|
|
5839
|
+
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); }; }
|
|
5827
5840
|
|
|
5828
|
-
function
|
|
5841
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5829
5842
|
|
|
5830
5843
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5831
5844
|
|
|
5845
|
+
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; } }
|
|
5846
|
+
|
|
5847
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5848
|
+
|
|
5832
5849
|
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); }
|
|
5833
5850
|
|
|
5834
5851
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5835
5852
|
|
|
5836
5853
|
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; }
|
|
5837
5854
|
|
|
5855
|
+
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; } } }; }
|
|
5856
|
+
|
|
5857
|
+
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); }
|
|
5858
|
+
|
|
5859
|
+
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; }
|
|
5860
|
+
|
|
5838
5861
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5839
5862
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5840
5863
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5841
5864
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5842
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5865
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5843
5866
|
var HLS_GLOBAL = 'Hls';
|
|
5844
5867
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5845
5868
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5848,12 +5871,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5848
5871
|
|
|
5849
5872
|
function canPlay(url) {
|
|
5850
5873
|
if (url instanceof Array) {
|
|
5851
|
-
var
|
|
5852
|
-
|
|
5853
|
-
var _iteratorError = undefined;
|
|
5874
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5875
|
+
_step;
|
|
5854
5876
|
|
|
5855
5877
|
try {
|
|
5856
|
-
for (
|
|
5878
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5857
5879
|
var item = _step.value;
|
|
5858
5880
|
|
|
5859
5881
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5865,18 +5887,9 @@ function canPlay(url) {
|
|
|
5865
5887
|
}
|
|
5866
5888
|
}
|
|
5867
5889
|
} catch (err) {
|
|
5868
|
-
|
|
5869
|
-
_iteratorError = err;
|
|
5890
|
+
_iterator.e(err);
|
|
5870
5891
|
} finally {
|
|
5871
|
-
|
|
5872
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5873
|
-
_iterator["return"]();
|
|
5874
|
-
}
|
|
5875
|
-
} finally {
|
|
5876
|
-
if (_didIteratorError) {
|
|
5877
|
-
throw _iteratorError;
|
|
5878
|
-
}
|
|
5879
|
-
}
|
|
5892
|
+
_iterator.f();
|
|
5880
5893
|
}
|
|
5881
5894
|
|
|
5882
5895
|
return false;
|
|
@@ -5900,14 +5913,12 @@ function canEnablePIP(url) {
|
|
|
5900
5913
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5901
5914
|
}
|
|
5902
5915
|
|
|
5903
|
-
var FilePlayer =
|
|
5904
|
-
/*#__PURE__*/
|
|
5905
|
-
function (_Component) {
|
|
5916
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5906
5917
|
_inherits(FilePlayer, _Component);
|
|
5907
5918
|
|
|
5908
|
-
|
|
5909
|
-
var _getPrototypeOf2;
|
|
5919
|
+
var _super = _createSuper(FilePlayer);
|
|
5910
5920
|
|
|
5921
|
+
function FilePlayer() {
|
|
5911
5922
|
var _this;
|
|
5912
5923
|
|
|
5913
5924
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5916,7 +5927,7 @@ function (_Component) {
|
|
|
5916
5927
|
_args[_key] = arguments[_key];
|
|
5917
5928
|
}
|
|
5918
5929
|
|
|
5919
|
-
_this =
|
|
5930
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5920
5931
|
|
|
5921
5932
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5922
5933
|
var _this$props;
|
|
@@ -6003,19 +6014,19 @@ function (_Component) {
|
|
|
6003
6014
|
|
|
6004
6015
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6005
6016
|
if (typeof source === 'string') {
|
|
6006
|
-
return _react["default"].createElement("source", {
|
|
6017
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6007
6018
|
key: index,
|
|
6008
6019
|
src: source
|
|
6009
6020
|
});
|
|
6010
6021
|
}
|
|
6011
6022
|
|
|
6012
|
-
return _react["default"].createElement("source", _extends({
|
|
6023
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6013
6024
|
key: index
|
|
6014
6025
|
}, source));
|
|
6015
6026
|
});
|
|
6016
6027
|
|
|
6017
6028
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6018
|
-
return _react["default"].createElement("track", _extends({
|
|
6029
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6019
6030
|
key: index
|
|
6020
6031
|
}, track));
|
|
6021
6032
|
});
|
|
@@ -6053,6 +6064,10 @@ function (_Component) {
|
|
|
6053
6064
|
key: "componentWillUnmount",
|
|
6054
6065
|
value: function componentWillUnmount() {
|
|
6055
6066
|
this.removeListeners(this.player);
|
|
6067
|
+
|
|
6068
|
+
if (this.hls) {
|
|
6069
|
+
this.hls.destroy();
|
|
6070
|
+
}
|
|
6056
6071
|
}
|
|
6057
6072
|
}, {
|
|
6058
6073
|
key: "addListeners",
|
|
@@ -6183,10 +6198,6 @@ function (_Component) {
|
|
|
6183
6198
|
value: function stop() {
|
|
6184
6199
|
this.player.removeAttribute('src');
|
|
6185
6200
|
|
|
6186
|
-
if (this.hls) {
|
|
6187
|
-
this.hls.destroy();
|
|
6188
|
-
}
|
|
6189
|
-
|
|
6190
6201
|
if (this.dash) {
|
|
6191
6202
|
this.dash.reset();
|
|
6192
6203
|
}
|
|
@@ -6298,7 +6309,7 @@ function (_Component) {
|
|
|
6298
6309
|
width: width === 'auto' ? width : '100%',
|
|
6299
6310
|
height: height === 'auto' ? height : '100%'
|
|
6300
6311
|
};
|
|
6301
|
-
return _react["default"].createElement(Element, _extends({
|
|
6312
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6302
6313
|
ref: this.ref,
|
|
6303
6314
|
src: this.getSource(url),
|
|
6304
6315
|
style: style,
|
|
@@ -6328,7 +6339,7 @@ exports["default"] = _default;
|
|
|
6328
6339
|
});
|
|
6329
6340
|
|
|
6330
6341
|
unwrapExports(FilePlayer_1);
|
|
6331
|
-
|
|
6342
|
+
FilePlayer_1.FilePlayer;
|
|
6332
6343
|
|
|
6333
6344
|
var players = createCommonjsModule(function (module, exports) {
|
|
6334
6345
|
|
|
@@ -6370,7 +6381,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6370
6381
|
});
|
|
6371
6382
|
exports["default"] = void 0;
|
|
6372
6383
|
|
|
6373
|
-
var _react = _interopRequireWildcard(
|
|
6384
|
+
var _react = _interopRequireWildcard(React);
|
|
6374
6385
|
|
|
6375
6386
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6376
6387
|
|
|
@@ -6388,12 +6399,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6388
6399
|
|
|
6389
6400
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6390
6401
|
|
|
6391
|
-
function
|
|
6402
|
+
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); }; }
|
|
6392
6403
|
|
|
6393
|
-
function
|
|
6404
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6394
6405
|
|
|
6395
6406
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6396
6407
|
|
|
6408
|
+
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; } }
|
|
6409
|
+
|
|
6410
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6411
|
+
|
|
6397
6412
|
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); }
|
|
6398
6413
|
|
|
6399
6414
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6402,14 +6417,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6402
6417
|
|
|
6403
6418
|
var ICON_SIZE = '64px';
|
|
6404
6419
|
|
|
6405
|
-
var Preview =
|
|
6406
|
-
/*#__PURE__*/
|
|
6407
|
-
function (_Component) {
|
|
6420
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6408
6421
|
_inherits(Preview, _Component);
|
|
6409
6422
|
|
|
6410
|
-
|
|
6411
|
-
var _getPrototypeOf2;
|
|
6423
|
+
var _super = _createSuper(Preview);
|
|
6412
6424
|
|
|
6425
|
+
function Preview() {
|
|
6413
6426
|
var _this;
|
|
6414
6427
|
|
|
6415
6428
|
_classCallCheck(this, Preview);
|
|
@@ -6418,7 +6431,7 @@ function (_Component) {
|
|
|
6418
6431
|
args[_key] = arguments[_key];
|
|
6419
6432
|
}
|
|
6420
6433
|
|
|
6421
|
-
_this =
|
|
6434
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6422
6435
|
|
|
6423
6436
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6424
6437
|
|
|
@@ -6516,15 +6529,15 @@ function (_Component) {
|
|
|
6516
6529
|
}
|
|
6517
6530
|
};
|
|
6518
6531
|
|
|
6519
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6532
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6520
6533
|
style: styles.shadow,
|
|
6521
6534
|
className: "react-player__shadow"
|
|
6522
|
-
}, _react["default"].createElement("div", {
|
|
6535
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6523
6536
|
style: styles.playIcon,
|
|
6524
6537
|
className: "react-player__play-icon"
|
|
6525
6538
|
}));
|
|
6526
6539
|
|
|
6527
|
-
return _react["default"].createElement("div", {
|
|
6540
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6528
6541
|
style: styles.preview,
|
|
6529
6542
|
className: "react-player__preview",
|
|
6530
6543
|
onClick: onClick
|
|
@@ -6547,7 +6560,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6547
6560
|
});
|
|
6548
6561
|
exports["default"] = renderPreloadPlayers;
|
|
6549
6562
|
|
|
6550
|
-
var _react = _interopRequireDefault(
|
|
6563
|
+
var _react = _interopRequireDefault(React);
|
|
6551
6564
|
|
|
6552
6565
|
var _Player = _interopRequireDefault(Player_1);
|
|
6553
6566
|
|
|
@@ -6561,6 +6574,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6561
6574
|
|
|
6562
6575
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6563
6576
|
|
|
6577
|
+
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; } } }; }
|
|
6578
|
+
|
|
6579
|
+
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); }
|
|
6580
|
+
|
|
6581
|
+
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; }
|
|
6582
|
+
|
|
6564
6583
|
var PRELOAD_PLAYERS = [{
|
|
6565
6584
|
Player: YouTube_1.YouTube,
|
|
6566
6585
|
configKey: 'youtube',
|
|
@@ -6581,16 +6600,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6581
6600
|
|
|
6582
6601
|
function renderPreloadPlayers(url, controls, config) {
|
|
6583
6602
|
var players = [];
|
|
6584
|
-
|
|
6585
|
-
var
|
|
6586
|
-
|
|
6603
|
+
|
|
6604
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6605
|
+
_step;
|
|
6587
6606
|
|
|
6588
6607
|
try {
|
|
6589
|
-
for (
|
|
6608
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6590
6609
|
var player = _step.value;
|
|
6591
6610
|
|
|
6592
6611
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6593
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6612
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6594
6613
|
key: player.Player.displayName,
|
|
6595
6614
|
activePlayer: player.Player,
|
|
6596
6615
|
url: player.url,
|
|
@@ -6602,18 +6621,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6602
6621
|
}
|
|
6603
6622
|
}
|
|
6604
6623
|
} catch (err) {
|
|
6605
|
-
|
|
6606
|
-
_iteratorError = err;
|
|
6624
|
+
_iterator.e(err);
|
|
6607
6625
|
} finally {
|
|
6608
|
-
|
|
6609
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6610
|
-
_iterator["return"]();
|
|
6611
|
-
}
|
|
6612
|
-
} finally {
|
|
6613
|
-
if (_didIteratorError) {
|
|
6614
|
-
throw _iteratorError;
|
|
6615
|
-
}
|
|
6616
|
-
}
|
|
6626
|
+
_iterator.f();
|
|
6617
6627
|
}
|
|
6618
6628
|
|
|
6619
6629
|
return players;
|
|
@@ -6689,7 +6699,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6689
6699
|
});
|
|
6690
6700
|
exports["default"] = void 0;
|
|
6691
6701
|
|
|
6692
|
-
var _react = _interopRequireWildcard(
|
|
6702
|
+
var _react = _interopRequireWildcard(React);
|
|
6693
6703
|
|
|
6694
6704
|
|
|
6695
6705
|
|
|
@@ -6737,13 +6747,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6737
6747
|
|
|
6738
6748
|
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); }
|
|
6739
6749
|
|
|
6740
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6750
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6741
6751
|
|
|
6742
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6752
|
+
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."); }
|
|
6743
6753
|
|
|
6744
|
-
function
|
|
6754
|
+
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); }
|
|
6745
6755
|
|
|
6746
|
-
function
|
|
6756
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6757
|
+
|
|
6758
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6759
|
+
|
|
6760
|
+
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; }
|
|
6747
6761
|
|
|
6748
6762
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6749
6763
|
|
|
@@ -6751,12 +6765,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6751
6765
|
|
|
6752
6766
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6753
6767
|
|
|
6754
|
-
function
|
|
6768
|
+
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); }; }
|
|
6755
6769
|
|
|
6756
|
-
function
|
|
6770
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6757
6771
|
|
|
6758
6772
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6759
6773
|
|
|
6774
|
+
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; } }
|
|
6775
|
+
|
|
6776
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6777
|
+
|
|
6760
6778
|
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); }
|
|
6761
6779
|
|
|
6762
6780
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6766,14 +6784,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6766
6784
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6767
6785
|
var customPlayers = [];
|
|
6768
6786
|
|
|
6769
|
-
var ReactPlayer =
|
|
6770
|
-
/*#__PURE__*/
|
|
6771
|
-
function (_Component) {
|
|
6787
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6772
6788
|
_inherits(ReactPlayer, _Component);
|
|
6773
6789
|
|
|
6774
|
-
|
|
6775
|
-
var _getPrototypeOf2;
|
|
6790
|
+
var _super = _createSuper(ReactPlayer);
|
|
6776
6791
|
|
|
6792
|
+
function ReactPlayer() {
|
|
6777
6793
|
var _this;
|
|
6778
6794
|
|
|
6779
6795
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6782,7 +6798,7 @@ function (_Component) {
|
|
|
6782
6798
|
args[_key] = arguments[_key];
|
|
6783
6799
|
}
|
|
6784
6800
|
|
|
6785
|
-
_this =
|
|
6801
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6786
6802
|
|
|
6787
6803
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6788
6804
|
|
|
@@ -6893,7 +6909,7 @@ function (_Component) {
|
|
|
6893
6909
|
key: "renderActivePlayer",
|
|
6894
6910
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6895
6911
|
if (!url) return null;
|
|
6896
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6912
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6897
6913
|
key: activePlayer.displayName,
|
|
6898
6914
|
ref: this.activePlayerRef,
|
|
6899
6915
|
config: this.config,
|
|
@@ -6930,14 +6946,14 @@ function (_Component) {
|
|
|
6930
6946
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6931
6947
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6932
6948
|
|
|
6933
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6949
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6934
6950
|
url: url,
|
|
6935
6951
|
light: light,
|
|
6936
6952
|
playIcon: playIcon,
|
|
6937
6953
|
onClick: this.handleClickPreview
|
|
6938
6954
|
});
|
|
6939
6955
|
|
|
6940
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6956
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6941
6957
|
ref: this.wrapperRef,
|
|
6942
6958
|
style: _objectSpread({}, style, {
|
|
6943
6959
|
width: width,
|
|
@@ -6997,20 +7013,20 @@ var Audio = function Audio(_ref) {
|
|
|
6997
7013
|
var node = _ref.node;
|
|
6998
7014
|
|
|
6999
7015
|
if (node.uploadAudio) {
|
|
7000
|
-
return
|
|
7016
|
+
return React.createElement(
|
|
7001
7017
|
'div',
|
|
7002
7018
|
{ className: 'audio d-block text-center mb-3' },
|
|
7003
|
-
|
|
7019
|
+
React.createElement(
|
|
7004
7020
|
'audio',
|
|
7005
7021
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7006
|
-
|
|
7007
|
-
|
|
7022
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7023
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7008
7024
|
'Your browser does not support the audio element.'
|
|
7009
7025
|
),
|
|
7010
|
-
node.caption &&
|
|
7026
|
+
node.caption && React.createElement(
|
|
7011
7027
|
'p',
|
|
7012
7028
|
{ style: { fontSize: '.9rem' } },
|
|
7013
|
-
|
|
7029
|
+
React.createElement(
|
|
7014
7030
|
'em',
|
|
7015
7031
|
null,
|
|
7016
7032
|
node.caption
|
|
@@ -7020,15 +7036,15 @@ var Audio = function Audio(_ref) {
|
|
|
7020
7036
|
} else if (node.audioFilePth) {
|
|
7021
7037
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7022
7038
|
if (hostname === 'embeds.audioboom.com') {
|
|
7023
|
-
return
|
|
7039
|
+
return React.createElement(
|
|
7024
7040
|
'div',
|
|
7025
7041
|
null,
|
|
7026
|
-
|
|
7042
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7027
7043
|
' ',
|
|
7028
|
-
node.caption &&
|
|
7044
|
+
node.caption && React.createElement(
|
|
7029
7045
|
'p',
|
|
7030
7046
|
{ style: { fontSize: '.9rem' } },
|
|
7031
|
-
|
|
7047
|
+
React.createElement(
|
|
7032
7048
|
'em',
|
|
7033
7049
|
null,
|
|
7034
7050
|
node.caption
|
|
@@ -7036,14 +7052,14 @@ var Audio = function Audio(_ref) {
|
|
|
7036
7052
|
)
|
|
7037
7053
|
);
|
|
7038
7054
|
}
|
|
7039
|
-
return
|
|
7055
|
+
return React.createElement(
|
|
7040
7056
|
'div',
|
|
7041
7057
|
{ className: 'audio' },
|
|
7042
|
-
|
|
7043
|
-
node.caption &&
|
|
7058
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7059
|
+
node.caption && React.createElement(
|
|
7044
7060
|
'p',
|
|
7045
7061
|
{ style: { fontSize: '.9rem' } },
|
|
7046
|
-
|
|
7062
|
+
React.createElement(
|
|
7047
7063
|
'em',
|
|
7048
7064
|
null,
|
|
7049
7065
|
node.caption
|
|
@@ -7061,34 +7077,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7061
7077
|
var profileImage = arguments[6];
|
|
7062
7078
|
|
|
7063
7079
|
if (authorName && authorURL) {
|
|
7064
|
-
return
|
|
7080
|
+
return React.createElement(
|
|
7065
7081
|
'span',
|
|
7066
7082
|
null,
|
|
7067
|
-
|
|
7083
|
+
React.createElement(
|
|
7068
7084
|
'a',
|
|
7069
7085
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7070
7086
|
authorName
|
|
7071
7087
|
),
|
|
7072
|
-
|
|
7088
|
+
React.createElement(
|
|
7073
7089
|
Card,
|
|
7074
7090
|
{ className: 'author-details-card-' + index },
|
|
7075
|
-
|
|
7091
|
+
React.createElement(
|
|
7076
7092
|
Row,
|
|
7077
7093
|
null,
|
|
7078
|
-
profileImage &&
|
|
7094
|
+
profileImage && React.createElement(
|
|
7079
7095
|
Col,
|
|
7080
7096
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7081
|
-
|
|
7097
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7082
7098
|
),
|
|
7083
|
-
|
|
7099
|
+
React.createElement(
|
|
7084
7100
|
Col,
|
|
7085
7101
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7086
|
-
|
|
7102
|
+
React.createElement(
|
|
7087
7103
|
'div',
|
|
7088
7104
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7089
7105
|
authorName
|
|
7090
7106
|
),
|
|
7091
|
-
|
|
7107
|
+
React.createElement(
|
|
7092
7108
|
'p',
|
|
7093
7109
|
null,
|
|
7094
7110
|
biography
|
|
@@ -7096,7 +7112,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7096
7112
|
)
|
|
7097
7113
|
)
|
|
7098
7114
|
),
|
|
7099
|
-
|
|
7115
|
+
React.createElement(
|
|
7100
7116
|
'style',
|
|
7101
7117
|
{ jsx: 'true' },
|
|
7102
7118
|
'\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 '
|
|
@@ -7104,7 +7120,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7104
7120
|
length !== index + 1 && ' , '
|
|
7105
7121
|
);
|
|
7106
7122
|
} else if (authorName) {
|
|
7107
|
-
return
|
|
7123
|
+
return React.createElement(
|
|
7108
7124
|
'span',
|
|
7109
7125
|
{ key: index },
|
|
7110
7126
|
authorName,
|
|
@@ -7264,8 +7280,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7264
7280
|
var duration = player.getDuration();
|
|
7265
7281
|
var queue = Math.floor(duration / 10);
|
|
7266
7282
|
var segment = Math.floor(current / queue);
|
|
7267
|
-
Beam.report_beam_video('Ready',
|
|
7268
|
-
Segment.report_video_event('Video Ready',
|
|
7283
|
+
Beam.report_beam_video('Ready', main_18, duration, current, segment);
|
|
7284
|
+
Segment.report_video_event('Video Ready', main_18, duration, current, segment);
|
|
7269
7285
|
//autoplay
|
|
7270
7286
|
|
|
7271
7287
|
//Small pause before starting next video
|
|
@@ -7285,8 +7301,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7285
7301
|
var queue = Math.floor(duration / 10);
|
|
7286
7302
|
var segment = Math.floor(current / queue);
|
|
7287
7303
|
|
|
7288
|
-
Beam.report_beam_video('End',
|
|
7289
|
-
Segment.report_video_event('Video End',
|
|
7304
|
+
Beam.report_beam_video('End', main_18, duration, current, segment);
|
|
7305
|
+
Segment.report_video_event('Video End', main_18, duration, current, segment);
|
|
7290
7306
|
setEndReported(true);
|
|
7291
7307
|
clearInterval(intervalID);
|
|
7292
7308
|
}
|
|
@@ -7336,8 +7352,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7336
7352
|
var queue = Math.floor(duration / 10);
|
|
7337
7353
|
var segment = Math.floor(current / queue);
|
|
7338
7354
|
if (!queueProgress.includes(segment)) {
|
|
7339
|
-
Beam.report_beam_video('Segment',
|
|
7340
|
-
Segment.report_video_event('Video Segment',
|
|
7355
|
+
Beam.report_beam_video('Segment', main_18, duration, current, segment);
|
|
7356
|
+
Segment.report_video_event('Video Segment', main_18, duration, current, segment);
|
|
7341
7357
|
queueProgress.push(segment);
|
|
7342
7358
|
}
|
|
7343
7359
|
};
|
|
@@ -7350,8 +7366,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7350
7366
|
var queue = Math.floor(duration / 10);
|
|
7351
7367
|
var segment = Math.floor(current / queue);
|
|
7352
7368
|
|
|
7353
|
-
Beam.report_beam_video('Play',
|
|
7354
|
-
Segment.report_video_event('Video Play',
|
|
7369
|
+
Beam.report_beam_video('Play', main_18, duration, current, segment);
|
|
7370
|
+
Segment.report_video_event('Video Play', main_18, duration, current, segment);
|
|
7355
7371
|
|
|
7356
7372
|
if (!playReported) {
|
|
7357
7373
|
setPlayReported(true);
|
|
@@ -7369,8 +7385,8 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7369
7385
|
var queue = Math.floor(duration / 10);
|
|
7370
7386
|
var segment = Math.floor(current / queue);
|
|
7371
7387
|
|
|
7372
|
-
Beam.report_beam_video('Pause',
|
|
7373
|
-
Segment.report_video_event('Video Pause',
|
|
7388
|
+
Beam.report_beam_video('Pause', main_18, duration, current, segment);
|
|
7389
|
+
Segment.report_video_event('Video Pause', main_18, duration, current, segment);
|
|
7374
7390
|
};
|
|
7375
7391
|
|
|
7376
7392
|
// Youtube Options
|
|
@@ -7381,44 +7397,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7381
7397
|
}
|
|
7382
7398
|
};
|
|
7383
7399
|
|
|
7384
|
-
return
|
|
7400
|
+
return React.createElement(
|
|
7385
7401
|
'div',
|
|
7386
7402
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7387
|
-
|
|
7403
|
+
React.createElement(
|
|
7388
7404
|
'div',
|
|
7389
7405
|
{ className: 'mt-2 mb-5' },
|
|
7390
|
-
series &&
|
|
7406
|
+
series && React.createElement(
|
|
7391
7407
|
'div',
|
|
7392
7408
|
{ style: { fontSize: '0.9rem' } },
|
|
7393
7409
|
article.title,
|
|
7394
7410
|
' - Episode ',
|
|
7395
7411
|
series
|
|
7396
7412
|
),
|
|
7397
|
-
Videos[series - 1] &&
|
|
7413
|
+
Videos[series - 1] && React.createElement(
|
|
7398
7414
|
'h1',
|
|
7399
7415
|
{ className: 'mb-3' },
|
|
7400
7416
|
Videos[series - 1].title
|
|
7401
7417
|
),
|
|
7402
|
-
|
|
7418
|
+
React.createElement(
|
|
7403
7419
|
'div',
|
|
7404
7420
|
null,
|
|
7405
7421
|
moment(article.published).format('LL')
|
|
7406
7422
|
),
|
|
7407
|
-
|
|
7423
|
+
React.createElement(
|
|
7408
7424
|
'div',
|
|
7409
7425
|
{ className: 'mb-3' },
|
|
7410
7426
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7411
|
-
return
|
|
7427
|
+
return React.createElement(
|
|
7412
7428
|
'span',
|
|
7413
7429
|
{ key: index },
|
|
7414
7430
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7415
7431
|
);
|
|
7416
7432
|
})
|
|
7417
7433
|
),
|
|
7418
|
-
|
|
7434
|
+
React.createElement(
|
|
7419
7435
|
'p',
|
|
7420
7436
|
null,
|
|
7421
|
-
|
|
7437
|
+
React.createElement(SocialShare, {
|
|
7422
7438
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7423
7439
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7424
7440
|
shareVia: meta.shareVia,
|
|
@@ -7433,20 +7449,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7433
7449
|
hideFacebook: meta.hideFBShare
|
|
7434
7450
|
})
|
|
7435
7451
|
),
|
|
7436
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7452
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7437
7453
|
'p',
|
|
7438
7454
|
{ className: 'mb-3' },
|
|
7439
|
-
|
|
7455
|
+
React.createElement(
|
|
7440
7456
|
'em',
|
|
7441
7457
|
null,
|
|
7442
7458
|
Videos[series - 1].intro
|
|
7443
7459
|
)
|
|
7444
7460
|
)
|
|
7445
7461
|
),
|
|
7446
|
-
|
|
7462
|
+
React.createElement(
|
|
7447
7463
|
'div',
|
|
7448
7464
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7449
|
-
vidUrl && vidType == 'youtube' &&
|
|
7465
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7450
7466
|
className: 'fluid-iframe',
|
|
7451
7467
|
videoId: getYoutubeId(vidUrl),
|
|
7452
7468
|
opts: opts,
|
|
@@ -7457,10 +7473,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7457
7473
|
return handleOnEnd(e);
|
|
7458
7474
|
}
|
|
7459
7475
|
}),
|
|
7460
|
-
vidUrl && vidType == 'mp4' &&
|
|
7461
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7462
|
-
|
|
7463
|
-
series &&
|
|
7476
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7477
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7478
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7479
|
+
series && React.createElement(
|
|
7464
7480
|
'div',
|
|
7465
7481
|
{
|
|
7466
7482
|
className: 'vid-series',
|
|
@@ -7470,10 +7486,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7470
7486
|
maxHeight: '100%',
|
|
7471
7487
|
paddingBottom: '0'
|
|
7472
7488
|
} },
|
|
7473
|
-
|
|
7489
|
+
React.createElement(
|
|
7474
7490
|
'p',
|
|
7475
7491
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7476
|
-
|
|
7492
|
+
React.createElement(
|
|
7477
7493
|
'b',
|
|
7478
7494
|
{ style: { fontSize: '1.25em' } },
|
|
7479
7495
|
'Now Playing:'
|
|
@@ -7481,16 +7497,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7481
7497
|
' ',
|
|
7482
7498
|
seriesData[series ? series - 1 : 0].title
|
|
7483
7499
|
),
|
|
7484
|
-
vidUrl &&
|
|
7500
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7485
7501
|
)
|
|
7486
7502
|
),
|
|
7487
|
-
|
|
7488
|
-
|
|
7503
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7504
|
+
React.createElement(
|
|
7489
7505
|
'div',
|
|
7490
7506
|
{ className: 'vid-text' },
|
|
7491
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7507
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7492
7508
|
),
|
|
7493
|
-
|
|
7509
|
+
React.createElement(
|
|
7494
7510
|
'style',
|
|
7495
7511
|
{ jsx: 'true' },
|
|
7496
7512
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7498,14 +7514,14 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7498
7514
|
);
|
|
7499
7515
|
};
|
|
7500
7516
|
|
|
7501
|
-
var Poll = function Poll(_ref) {
|
|
7502
|
-
var node = _ref.node
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
onVote = _ref.onVote
|
|
7507
|
-
_ref
|
|
7508
|
-
getSerializers = _ref.getSerializers;
|
|
7517
|
+
var Poll$1 = function Poll(_ref) {
|
|
7518
|
+
var node = _ref.node;
|
|
7519
|
+
_ref.client;
|
|
7520
|
+
_ref.pageview;
|
|
7521
|
+
_ref.videoAccountIDs;
|
|
7522
|
+
var onVote = _ref.onVote;
|
|
7523
|
+
_ref.showVotes;
|
|
7524
|
+
var getSerializers = _ref.getSerializers;
|
|
7509
7525
|
|
|
7510
7526
|
var _useState = useState(null),
|
|
7511
7527
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7543,67 +7559,67 @@ var Poll = function Poll(_ref) {
|
|
|
7543
7559
|
return acc;
|
|
7544
7560
|
}
|
|
7545
7561
|
}, 0);
|
|
7546
|
-
return
|
|
7547
|
-
|
|
7562
|
+
return React.createElement(
|
|
7563
|
+
React.Fragment,
|
|
7548
7564
|
null,
|
|
7549
|
-
question &&
|
|
7565
|
+
question && React.createElement(
|
|
7550
7566
|
'p',
|
|
7551
7567
|
{ className: 'font-weight-bold' },
|
|
7552
7568
|
question
|
|
7553
7569
|
),
|
|
7554
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7570
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7555
7571
|
'form',
|
|
7556
7572
|
{ onSubmit: function onSubmit(e) {
|
|
7557
7573
|
return onSubmitPoll(e);
|
|
7558
7574
|
} },
|
|
7559
7575
|
choices && choices.map(function (choice) {
|
|
7560
|
-
return
|
|
7576
|
+
return React.createElement(
|
|
7561
7577
|
'div',
|
|
7562
7578
|
{ key: choice._key },
|
|
7563
|
-
|
|
7579
|
+
React.createElement(
|
|
7564
7580
|
'label',
|
|
7565
7581
|
{ className: 'pl-2' },
|
|
7566
|
-
|
|
7582
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7567
7583
|
return setSelectedChoice(e.target.value);
|
|
7568
7584
|
} }),
|
|
7569
7585
|
' ' + choice.choiceText
|
|
7570
7586
|
)
|
|
7571
7587
|
);
|
|
7572
7588
|
}),
|
|
7573
|
-
|
|
7589
|
+
React.createElement(
|
|
7574
7590
|
Button,
|
|
7575
7591
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7576
7592
|
'Vote'
|
|
7577
7593
|
)
|
|
7578
7594
|
),
|
|
7579
|
-
|
|
7595
|
+
React.createElement(
|
|
7580
7596
|
'div',
|
|
7581
7597
|
{ className: 'progress-container' },
|
|
7582
7598
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7583
7599
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7584
|
-
return
|
|
7600
|
+
return React.createElement(
|
|
7585
7601
|
'div',
|
|
7586
7602
|
{ key: choice._key, className: 'mb-3' },
|
|
7587
|
-
|
|
7603
|
+
React.createElement(
|
|
7588
7604
|
'div',
|
|
7589
7605
|
{ className: 'correct-answer' },
|
|
7590
|
-
|
|
7606
|
+
React.createElement(
|
|
7591
7607
|
'div',
|
|
7592
7608
|
null,
|
|
7593
7609
|
choice.choiceText
|
|
7594
7610
|
),
|
|
7595
|
-
choice.choiceAnswer === true &&
|
|
7611
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7596
7612
|
'div',
|
|
7597
7613
|
null,
|
|
7598
|
-
|
|
7614
|
+
React.createElement(
|
|
7599
7615
|
'span',
|
|
7600
7616
|
{ style: { color: 'limegreen' } },
|
|
7601
7617
|
'Correct!'
|
|
7602
7618
|
)
|
|
7603
7619
|
)
|
|
7604
7620
|
),
|
|
7605
|
-
|
|
7606
|
-
|
|
7621
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7622
|
+
React.createElement(
|
|
7607
7623
|
'span',
|
|
7608
7624
|
{ className: 'float-right' },
|
|
7609
7625
|
percentage,
|
|
@@ -7614,14 +7630,14 @@ var Poll = function Poll(_ref) {
|
|
|
7614
7630
|
);
|
|
7615
7631
|
})
|
|
7616
7632
|
),
|
|
7617
|
-
showAnswer &&
|
|
7633
|
+
showAnswer && React.createElement(
|
|
7618
7634
|
'h4',
|
|
7619
7635
|
{ className: 'text-center small p-3' },
|
|
7620
7636
|
'Total Votes: ',
|
|
7621
7637
|
choicesTotalCount
|
|
7622
7638
|
),
|
|
7623
|
-
showAnswer && response &&
|
|
7624
|
-
|
|
7639
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7640
|
+
React.createElement(
|
|
7625
7641
|
'style',
|
|
7626
7642
|
{ jsx: 'true' },
|
|
7627
7643
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7639,22 +7655,22 @@ _export(_export.S, 'Object', {
|
|
|
7639
7655
|
}
|
|
7640
7656
|
});
|
|
7641
7657
|
|
|
7642
|
-
var values = _core.Object.values;
|
|
7658
|
+
var values$1 = _core.Object.values;
|
|
7643
7659
|
|
|
7644
|
-
var values
|
|
7645
|
-
module.exports = { "default": values, __esModule: true };
|
|
7660
|
+
var values = createCommonjsModule(function (module) {
|
|
7661
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
7646
7662
|
});
|
|
7647
7663
|
|
|
7648
|
-
var _Object$values = unwrapExports(values
|
|
7664
|
+
var _Object$values = unwrapExports(values);
|
|
7649
7665
|
|
|
7650
|
-
var Poll
|
|
7651
|
-
var node = _ref.node
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
onVote = _ref.onVote
|
|
7656
|
-
_ref
|
|
7657
|
-
getSerializers = _ref.getSerializers;
|
|
7666
|
+
var Poll = function Poll(_ref) {
|
|
7667
|
+
var node = _ref.node;
|
|
7668
|
+
_ref.client;
|
|
7669
|
+
_ref.pageview;
|
|
7670
|
+
_ref.videoAccountIDs;
|
|
7671
|
+
var onVote = _ref.onVote;
|
|
7672
|
+
_ref.showVotes;
|
|
7673
|
+
var getSerializers = _ref.getSerializers;
|
|
7658
7674
|
|
|
7659
7675
|
var _useState = useState(null),
|
|
7660
7676
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7720,67 +7736,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7720
7736
|
return acc;
|
|
7721
7737
|
}
|
|
7722
7738
|
}, 0);
|
|
7723
|
-
return
|
|
7724
|
-
|
|
7739
|
+
return React.createElement(
|
|
7740
|
+
React.Fragment,
|
|
7725
7741
|
null,
|
|
7726
|
-
question &&
|
|
7742
|
+
question && React.createElement(
|
|
7727
7743
|
'p',
|
|
7728
7744
|
{ className: 'font-weight-bold' },
|
|
7729
7745
|
question
|
|
7730
7746
|
),
|
|
7731
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7747
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7732
7748
|
'form',
|
|
7733
7749
|
{ onSubmit: function onSubmit(e) {
|
|
7734
7750
|
return onSubmitPoll(e);
|
|
7735
7751
|
} },
|
|
7736
7752
|
choices && choices.map(function (choice) {
|
|
7737
|
-
return
|
|
7753
|
+
return React.createElement(
|
|
7738
7754
|
'div',
|
|
7739
7755
|
{ key: choice._key },
|
|
7740
|
-
|
|
7756
|
+
React.createElement(
|
|
7741
7757
|
'label',
|
|
7742
7758
|
{ className: 'pl-2' },
|
|
7743
|
-
|
|
7759
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7744
7760
|
return setSelectedChoice(e.target.value);
|
|
7745
7761
|
} }),
|
|
7746
7762
|
' ' + choice.choiceText
|
|
7747
7763
|
)
|
|
7748
7764
|
);
|
|
7749
7765
|
}),
|
|
7750
|
-
|
|
7766
|
+
React.createElement(
|
|
7751
7767
|
Button,
|
|
7752
7768
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7753
7769
|
'Vote'
|
|
7754
7770
|
)
|
|
7755
7771
|
),
|
|
7756
|
-
|
|
7772
|
+
React.createElement(
|
|
7757
7773
|
'div',
|
|
7758
7774
|
{ className: 'progress-container' },
|
|
7759
7775
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7760
7776
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7761
|
-
return
|
|
7777
|
+
return React.createElement(
|
|
7762
7778
|
'div',
|
|
7763
7779
|
{ key: choice._key, className: 'mb-3' },
|
|
7764
|
-
|
|
7780
|
+
React.createElement(
|
|
7765
7781
|
'div',
|
|
7766
7782
|
{ className: 'correct-answer' },
|
|
7767
|
-
|
|
7783
|
+
React.createElement(
|
|
7768
7784
|
'div',
|
|
7769
7785
|
null,
|
|
7770
7786
|
choice.choiceText
|
|
7771
7787
|
),
|
|
7772
|
-
choice.choiceAnswer === true &&
|
|
7788
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7773
7789
|
'div',
|
|
7774
7790
|
null,
|
|
7775
|
-
|
|
7791
|
+
React.createElement(
|
|
7776
7792
|
'span',
|
|
7777
7793
|
{ style: { color: 'limegreen' } },
|
|
7778
7794
|
'Correct!'
|
|
7779
7795
|
)
|
|
7780
7796
|
)
|
|
7781
7797
|
),
|
|
7782
|
-
|
|
7783
|
-
|
|
7798
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7799
|
+
React.createElement(
|
|
7784
7800
|
'span',
|
|
7785
7801
|
{ className: 'float-right' },
|
|
7786
7802
|
percentage,
|
|
@@ -7791,14 +7807,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7791
7807
|
);
|
|
7792
7808
|
})
|
|
7793
7809
|
),
|
|
7794
|
-
showAnswer &&
|
|
7810
|
+
showAnswer && React.createElement(
|
|
7795
7811
|
'h4',
|
|
7796
7812
|
{ className: 'text-center small p-3' },
|
|
7797
7813
|
'Total Votes: ',
|
|
7798
7814
|
choicesTotalCount
|
|
7799
7815
|
),
|
|
7800
|
-
showAnswer && response &&
|
|
7801
|
-
|
|
7816
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7817
|
+
React.createElement(
|
|
7802
7818
|
'style',
|
|
7803
7819
|
{ jsx: 'true' },
|
|
7804
7820
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7806,7 +7822,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7806
7822
|
);
|
|
7807
7823
|
};
|
|
7808
7824
|
|
|
7809
|
-
var numberOfPaginations =
|
|
7825
|
+
var numberOfPaginations = main_42 ? 4 : 10;
|
|
7810
7826
|
|
|
7811
7827
|
var Quiz = function Quiz(_ref) {
|
|
7812
7828
|
var quizzes = _ref.quizzes,
|
|
@@ -7924,34 +7940,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7924
7940
|
};
|
|
7925
7941
|
|
|
7926
7942
|
var renderPagination = function renderPagination() {
|
|
7927
|
-
return
|
|
7928
|
-
Pagination
|
|
7929
|
-
{ className: 'p-0 m-0', size:
|
|
7930
|
-
|
|
7943
|
+
return React.createElement(
|
|
7944
|
+
Pagination,
|
|
7945
|
+
{ className: 'p-0 m-0', size: main_42 && 'sm' },
|
|
7946
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7931
7947
|
return changePage('first');
|
|
7932
7948
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
|
|
7949
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7934
7950
|
return changePage('prev');
|
|
7935
7951
|
}, disabled: currentPage === 1 }),
|
|
7936
|
-
|
|
7952
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7937
7953
|
return renderNewPages('prev');
|
|
7938
7954
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7939
7955
|
pages.map(function (page) {
|
|
7940
|
-
return
|
|
7941
|
-
Pagination
|
|
7956
|
+
return React.createElement(
|
|
7957
|
+
Pagination.Item,
|
|
7942
7958
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7943
7959
|
return changePage(page);
|
|
7944
7960
|
} },
|
|
7945
7961
|
page
|
|
7946
7962
|
);
|
|
7947
7963
|
}),
|
|
7948
|
-
|
|
7964
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7949
7965
|
return renderNewPages('next');
|
|
7950
7966
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7951
|
-
|
|
7967
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7952
7968
|
return changePage('next');
|
|
7953
7969
|
}, disabled: currentPage === pageCount }),
|
|
7954
|
-
|
|
7970
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7955
7971
|
return changePage('last');
|
|
7956
7972
|
}, disabled: currentPage === pageCount })
|
|
7957
7973
|
);
|
|
@@ -8034,51 +8050,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8034
8050
|
}
|
|
8035
8051
|
};
|
|
8036
8052
|
|
|
8037
|
-
return
|
|
8038
|
-
|
|
8053
|
+
return React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8039
8055
|
null,
|
|
8040
|
-
quizzes[currentPage - 1] &&
|
|
8041
|
-
|
|
8056
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8057
|
+
React.Fragment,
|
|
8042
8058
|
null,
|
|
8043
|
-
|
|
8044
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8059
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8060
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8045
8061
|
'form',
|
|
8046
8062
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8047
8063
|
return e.preventDefault();
|
|
8048
8064
|
} },
|
|
8049
8065
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8050
|
-
return
|
|
8066
|
+
return React.createElement(
|
|
8051
8067
|
'div',
|
|
8052
8068
|
{ key: answer._key },
|
|
8053
|
-
|
|
8069
|
+
React.createElement(
|
|
8054
8070
|
'label',
|
|
8055
8071
|
{ className: 'pl-2' },
|
|
8056
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8072
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8057
8073
|
' ' + answer.answerText
|
|
8058
8074
|
)
|
|
8059
8075
|
);
|
|
8060
8076
|
})
|
|
8061
8077
|
)
|
|
8062
8078
|
),
|
|
8063
|
-
!showAnswer &&
|
|
8079
|
+
!showAnswer && React.createElement(
|
|
8064
8080
|
Button$1,
|
|
8065
8081
|
{ onClick: function onClick() {
|
|
8066
8082
|
return checkAnswers();
|
|
8067
8083
|
}, variant: 'info', block: true },
|
|
8068
8084
|
'Please click here for answer'
|
|
8069
8085
|
),
|
|
8070
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8071
|
-
|
|
8086
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8087
|
+
React.Fragment,
|
|
8072
8088
|
null,
|
|
8073
|
-
|
|
8089
|
+
React.createElement(
|
|
8074
8090
|
'h4',
|
|
8075
8091
|
null,
|
|
8076
8092
|
'Answer:'
|
|
8077
8093
|
),
|
|
8078
|
-
quizzes[currentPage - 1].answer &&
|
|
8094
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8079
8095
|
),
|
|
8080
|
-
|
|
8081
|
-
pageCount > 1 &&
|
|
8096
|
+
React.createElement('br', null),
|
|
8097
|
+
pageCount > 1 && React.createElement(
|
|
8082
8098
|
'div',
|
|
8083
8099
|
{ className: 'd-flex justify-content-center' },
|
|
8084
8100
|
renderPagination()
|
|
@@ -8089,19 +8105,19 @@ var Quiz = function Quiz(_ref) {
|
|
|
8089
8105
|
var Leads = function Leads(_ref) {
|
|
8090
8106
|
var url = _ref.url;
|
|
8091
8107
|
|
|
8092
|
-
return
|
|
8108
|
+
return React.createElement(
|
|
8093
8109
|
'div',
|
|
8094
8110
|
{ className: 'd-block text-center mb-3' },
|
|
8095
|
-
url &&
|
|
8111
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8096
8112
|
);
|
|
8097
8113
|
};
|
|
8098
8114
|
|
|
8099
|
-
var urlFor$
|
|
8115
|
+
var urlFor$3 = function urlFor(source, client) {
|
|
8100
8116
|
var builder = imageUrlBuilder(client);
|
|
8101
8117
|
return builder.image(source).auto('format');
|
|
8102
8118
|
};
|
|
8103
8119
|
|
|
8104
|
-
var Slideshow
|
|
8120
|
+
var Slideshow = function Slideshow(_ref) {
|
|
8105
8121
|
var slides = _ref.node.slides,
|
|
8106
8122
|
client = _ref.client,
|
|
8107
8123
|
pageview = _ref.pageview,
|
|
@@ -8113,8 +8129,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8113
8129
|
|
|
8114
8130
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8115
8131
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8116
|
-
carouselIndex = _useState2[0]
|
|
8117
|
-
|
|
8132
|
+
carouselIndex = _useState2[0];
|
|
8133
|
+
_useState2[1];
|
|
8118
8134
|
|
|
8119
8135
|
// useEffect(() => {
|
|
8120
8136
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8140,42 +8156,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8140
8156
|
}
|
|
8141
8157
|
};
|
|
8142
8158
|
|
|
8143
|
-
return
|
|
8159
|
+
return React.createElement(
|
|
8144
8160
|
'div',
|
|
8145
8161
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8146
|
-
|
|
8162
|
+
React.createElement(
|
|
8147
8163
|
Carousel,
|
|
8148
8164
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8149
8165
|
slides && slides.map(function (slide) {
|
|
8150
8166
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8151
|
-
return
|
|
8167
|
+
return React.createElement(
|
|
8152
8168
|
Carousel.Item,
|
|
8153
8169
|
{ key: slide._key },
|
|
8154
|
-
|
|
8170
|
+
React.createElement(
|
|
8155
8171
|
'a',
|
|
8156
8172
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8157
|
-
|
|
8173
|
+
React.createElement(
|
|
8158
8174
|
LazyLoad,
|
|
8159
8175
|
null,
|
|
8160
|
-
|
|
8176
|
+
React.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8161
8177
|
)
|
|
8162
8178
|
),
|
|
8163
|
-
|
|
8179
|
+
React.createElement(
|
|
8164
8180
|
'div',
|
|
8165
8181
|
{ className: 'p-2' },
|
|
8166
|
-
slide.slideshowImage.caption &&
|
|
8182
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8167
8183
|
'h3',
|
|
8168
8184
|
{ style: { padding: '0px' } },
|
|
8169
8185
|
slide.slideshowImage.caption
|
|
8170
8186
|
),
|
|
8171
|
-
slide.description &&
|
|
8187
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8172
8188
|
)
|
|
8173
8189
|
);
|
|
8174
8190
|
}
|
|
8175
8191
|
return null;
|
|
8176
8192
|
})
|
|
8177
8193
|
),
|
|
8178
|
-
|
|
8194
|
+
React.createElement(
|
|
8179
8195
|
'style',
|
|
8180
8196
|
{ jsx: 'true' },
|
|
8181
8197
|
'\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 '
|
|
@@ -8194,10 +8210,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8194
8210
|
sizes = _props$node.sizes,
|
|
8195
8211
|
sizeMapping = _props$node.sizeMapping;
|
|
8196
8212
|
|
|
8197
|
-
return
|
|
8213
|
+
return React.createElement(
|
|
8198
8214
|
'div',
|
|
8199
8215
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8200
|
-
|
|
8216
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8201
8217
|
);
|
|
8202
8218
|
};
|
|
8203
8219
|
|
|
@@ -8208,15 +8224,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8208
8224
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8209
8225
|
|
|
8210
8226
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8211
|
-
return
|
|
8227
|
+
return React.createElement(
|
|
8212
8228
|
'section',
|
|
8213
8229
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8214
|
-
Caption &&
|
|
8230
|
+
Caption && React.createElement(
|
|
8215
8231
|
'h4',
|
|
8216
8232
|
{ className: 'formstack-caption' },
|
|
8217
8233
|
Caption
|
|
8218
8234
|
),
|
|
8219
|
-
|
|
8235
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8220
8236
|
);
|
|
8221
8237
|
};
|
|
8222
8238
|
|
|
@@ -8236,29 +8252,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8236
8252
|
}
|
|
8237
8253
|
});
|
|
8238
8254
|
if (medias && medias.length > 0) {
|
|
8239
|
-
return
|
|
8255
|
+
return React.createElement(
|
|
8240
8256
|
'div',
|
|
8241
8257
|
{ className: 'multi-media-container' },
|
|
8242
|
-
|
|
8258
|
+
React.createElement(
|
|
8243
8259
|
Row$1,
|
|
8244
8260
|
{ noGutters: true },
|
|
8245
8261
|
medias.map(function (media) {
|
|
8246
|
-
return
|
|
8262
|
+
return React.createElement(
|
|
8247
8263
|
Col$1,
|
|
8248
8264
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8249
|
-
|
|
8265
|
+
React.createElement(
|
|
8250
8266
|
'a',
|
|
8251
|
-
_extends
|
|
8267
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8252
8268
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8253
|
-
|
|
8269
|
+
React.createElement(
|
|
8254
8270
|
'div',
|
|
8255
8271
|
{ className: 'multi-media-image-container' },
|
|
8256
|
-
imageBox &&
|
|
8272
|
+
imageBox && React.createElement(
|
|
8257
8273
|
LazyLoad,
|
|
8258
8274
|
{ once: true },
|
|
8259
|
-
|
|
8275
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8260
8276
|
),
|
|
8261
|
-
media.caption &&
|
|
8277
|
+
media.caption && React.createElement(
|
|
8262
8278
|
'span',
|
|
8263
8279
|
{ className: 'multi-media-caption' },
|
|
8264
8280
|
media.caption
|
|
@@ -8268,7 +8284,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8268
8284
|
);
|
|
8269
8285
|
})
|
|
8270
8286
|
),
|
|
8271
|
-
|
|
8287
|
+
React.createElement(
|
|
8272
8288
|
'style',
|
|
8273
8289
|
{ jsx: 'true' },
|
|
8274
8290
|
'\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 '
|
|
@@ -8315,7 +8331,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8315
8331
|
}
|
|
8316
8332
|
};
|
|
8317
8333
|
|
|
8318
|
-
_this.wraperRef =
|
|
8334
|
+
_this.wraperRef = React.createRef();
|
|
8319
8335
|
_this.visible = false;
|
|
8320
8336
|
return _this;
|
|
8321
8337
|
}
|
|
@@ -8343,7 +8359,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8343
8359
|
_props$id = _props.id,
|
|
8344
8360
|
id = _props$id === undefined ? '' : _props$id;
|
|
8345
8361
|
|
|
8346
|
-
return
|
|
8362
|
+
return React.createElement(
|
|
8347
8363
|
'div',
|
|
8348
8364
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8349
8365
|
this.props.children
|
|
@@ -8352,7 +8368,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8352
8368
|
}]);
|
|
8353
8369
|
|
|
8354
8370
|
return InscreenSensor;
|
|
8355
|
-
}(
|
|
8371
|
+
}(React.Component);
|
|
8356
8372
|
|
|
8357
8373
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8358
8374
|
var nodes = _ref.nodes,
|
|
@@ -8465,33 +8481,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8465
8481
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8466
8482
|
var showReading = show ? 'showReading' : '';
|
|
8467
8483
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8468
|
-
return
|
|
8484
|
+
return React.createElement(
|
|
8469
8485
|
'div',
|
|
8470
8486
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8471
|
-
|
|
8487
|
+
React.createElement(
|
|
8472
8488
|
'a',
|
|
8473
8489
|
{ onClick: function onClick(e) {
|
|
8474
8490
|
return articleCardClickHandler(e);
|
|
8475
8491
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8476
|
-
|
|
8492
|
+
React.createElement(
|
|
8477
8493
|
'div',
|
|
8478
8494
|
{ className: 'prevNext-thumbnail' },
|
|
8479
|
-
|
|
8480
|
-
|
|
8495
|
+
React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8496
|
+
React.createElement(
|
|
8481
8497
|
'div',
|
|
8482
8498
|
{ className: 'prevNext-reading ' + showReading },
|
|
8483
8499
|
articleLabel
|
|
8484
8500
|
)
|
|
8485
8501
|
),
|
|
8486
|
-
|
|
8502
|
+
React.createElement(
|
|
8487
8503
|
'div',
|
|
8488
8504
|
{ className: 'prevNext-summary' },
|
|
8489
|
-
|
|
8505
|
+
React.createElement(
|
|
8490
8506
|
'div',
|
|
8491
8507
|
{ className: 'prevNext-publishDate' },
|
|
8492
8508
|
moment(article.published).format('LL')
|
|
8493
8509
|
),
|
|
8494
|
-
|
|
8510
|
+
React.createElement(
|
|
8495
8511
|
'h2',
|
|
8496
8512
|
{ className: 'prevNext-title' },
|
|
8497
8513
|
article.title
|
|
@@ -8540,7 +8556,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8540
8556
|
|
|
8541
8557
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8542
8558
|
if (biography) {
|
|
8543
|
-
return
|
|
8559
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8544
8560
|
}
|
|
8545
8561
|
};
|
|
8546
8562
|
|
|
@@ -8626,7 +8642,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8626
8642
|
//console.log('useLayoutEffect')
|
|
8627
8643
|
if (!firstLoad) {
|
|
8628
8644
|
setUpArrowClicked(false);
|
|
8629
|
-
if (
|
|
8645
|
+
if (main_43) {
|
|
8630
8646
|
grabLoadedAds();
|
|
8631
8647
|
} else {
|
|
8632
8648
|
scrollToArticle();
|
|
@@ -8650,7 +8666,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8650
8666
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8651
8667
|
if (pageview) pageview(path);
|
|
8652
8668
|
|
|
8653
|
-
if (!
|
|
8669
|
+
if (!main_43) {
|
|
8654
8670
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8655
8671
|
if (window.googletag && googletag.pubadsReady) {
|
|
8656
8672
|
lib_3.refresh();
|
|
@@ -8658,7 +8674,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8658
8674
|
});
|
|
8659
8675
|
}
|
|
8660
8676
|
//Refresh leaderboard ad on mobile
|
|
8661
|
-
if (
|
|
8677
|
+
if (main_43) {
|
|
8662
8678
|
var leaderboardSlotId = '';
|
|
8663
8679
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8664
8680
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8698,38 +8714,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8698
8714
|
setSensorVisible(false);
|
|
8699
8715
|
};
|
|
8700
8716
|
|
|
8701
|
-
return
|
|
8702
|
-
|
|
8717
|
+
return React.createElement(
|
|
8718
|
+
React.Fragment,
|
|
8703
8719
|
null,
|
|
8704
|
-
|
|
8720
|
+
React.createElement(
|
|
8705
8721
|
'div',
|
|
8706
8722
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8707
|
-
|
|
8723
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8708
8724
|
return handleArrowClick();
|
|
8709
8725
|
} })
|
|
8710
8726
|
),
|
|
8711
|
-
|
|
8712
|
-
|
|
8727
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8728
|
+
React.createElement(
|
|
8713
8729
|
'div',
|
|
8714
8730
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8715
|
-
|
|
8731
|
+
React.createElement(
|
|
8716
8732
|
'h5',
|
|
8717
8733
|
{ className: 'objective-title' },
|
|
8718
8734
|
nodes.seriesTitle
|
|
8719
8735
|
),
|
|
8720
|
-
|
|
8736
|
+
React.createElement(
|
|
8721
8737
|
'div',
|
|
8722
8738
|
{ className: 'prevNextWrapper' },
|
|
8723
8739
|
PrevNextCards(false, -1)
|
|
8724
8740
|
)
|
|
8725
8741
|
),
|
|
8726
|
-
|
|
8727
|
-
|
|
8742
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8743
|
+
React.createElement(
|
|
8728
8744
|
'div',
|
|
8729
8745
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8730
|
-
|
|
8746
|
+
main_43 && Ads.map(function (ad, index) {
|
|
8731
8747
|
if (index === 0) {
|
|
8732
|
-
return
|
|
8748
|
+
return React.createElement(
|
|
8733
8749
|
'div',
|
|
8734
8750
|
{
|
|
8735
8751
|
key: 'addid-1',
|
|
@@ -8749,14 +8765,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8749
8765
|
}
|
|
8750
8766
|
})
|
|
8751
8767
|
),
|
|
8752
|
-
|
|
8768
|
+
React.createElement(
|
|
8753
8769
|
'div',
|
|
8754
8770
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8755
8771
|
Articles.map(function (article, index) {
|
|
8756
|
-
return
|
|
8772
|
+
return React.createElement(
|
|
8757
8773
|
'div',
|
|
8758
8774
|
{ key: article.title },
|
|
8759
|
-
|
|
8775
|
+
React.createElement(
|
|
8760
8776
|
InscreenSensor,
|
|
8761
8777
|
{
|
|
8762
8778
|
visible: sensorVisible,
|
|
@@ -8774,84 +8790,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8774
8790
|
}
|
|
8775
8791
|
}
|
|
8776
8792
|
} },
|
|
8777
|
-
|
|
8793
|
+
React.createElement(
|
|
8778
8794
|
Head,
|
|
8779
8795
|
null,
|
|
8780
|
-
currentTitle !== null &&
|
|
8796
|
+
currentTitle !== null && React.createElement(
|
|
8781
8797
|
'title',
|
|
8782
8798
|
{ key: 'title' },
|
|
8783
8799
|
currentTitle
|
|
8784
8800
|
),
|
|
8785
|
-
currentSummary !== null &&
|
|
8786
|
-
currentURL !== null &&
|
|
8787
|
-
currentTitle !== null &&
|
|
8788
|
-
currentThumbnail !== null &&
|
|
8789
|
-
currentSummary !== null &&
|
|
8790
|
-
currentTitle !== null &&
|
|
8791
|
-
currentThumbnail !== null &&
|
|
8792
|
-
currentSummary !== null &&
|
|
8801
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8802
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8803
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8804
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8805
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8806
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8807
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8808
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8793
8809
|
),
|
|
8794
|
-
|
|
8810
|
+
React.createElement(
|
|
8795
8811
|
'article',
|
|
8796
8812
|
{ className: 'article-wrapper' },
|
|
8797
|
-
|
|
8813
|
+
React.createElement(
|
|
8798
8814
|
'div',
|
|
8799
8815
|
{ className: 'article-publishDate' },
|
|
8800
8816
|
moment(article.published).format('LL')
|
|
8801
8817
|
),
|
|
8802
|
-
|
|
8818
|
+
React.createElement(
|
|
8803
8819
|
'div',
|
|
8804
8820
|
{ className: 'author-details-wrapper' },
|
|
8805
8821
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8806
|
-
return
|
|
8822
|
+
return React.createElement(
|
|
8807
8823
|
'span',
|
|
8808
8824
|
{ key: index },
|
|
8809
8825
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8810
8826
|
);
|
|
8811
8827
|
})
|
|
8812
8828
|
),
|
|
8813
|
-
|
|
8829
|
+
React.createElement(
|
|
8814
8830
|
'h2',
|
|
8815
8831
|
{ className: 'article-title' },
|
|
8816
8832
|
article.title
|
|
8817
8833
|
),
|
|
8818
|
-
|
|
8834
|
+
React.createElement(
|
|
8819
8835
|
'div',
|
|
8820
8836
|
{ className: 'mt-2 mb-2' },
|
|
8821
|
-
|
|
8837
|
+
React.createElement(BlockContent, _extends({
|
|
8822
8838
|
serializers: getSerializers,
|
|
8823
8839
|
videoAccountIDs: accountIDs,
|
|
8824
8840
|
blocks: article.text,
|
|
8825
8841
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8826
8842
|
}, client.config())),
|
|
8827
|
-
|
|
8843
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8828
8844
|
),
|
|
8829
|
-
Articles.length > 1 &&
|
|
8830
|
-
|
|
8845
|
+
Articles.length > 1 && React.createElement(
|
|
8846
|
+
React.Fragment,
|
|
8831
8847
|
null,
|
|
8832
|
-
|
|
8848
|
+
React.createElement(
|
|
8833
8849
|
'div',
|
|
8834
8850
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8835
|
-
|
|
8851
|
+
React.createElement(
|
|
8836
8852
|
'h5',
|
|
8837
8853
|
{ className: 'objective-title' },
|
|
8838
8854
|
nodes.seriesTitle
|
|
8839
8855
|
),
|
|
8840
|
-
|
|
8856
|
+
React.createElement(
|
|
8841
8857
|
'div',
|
|
8842
8858
|
{ className: 'prevNextWrapper' },
|
|
8843
8859
|
PrevNextCards(true, index)
|
|
8844
8860
|
)
|
|
8845
8861
|
),
|
|
8846
|
-
|
|
8862
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8847
8863
|
)
|
|
8848
8864
|
),
|
|
8849
|
-
|
|
8865
|
+
React.createElement(
|
|
8850
8866
|
'div',
|
|
8851
8867
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8852
|
-
|
|
8868
|
+
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8853
8869
|
if (innerIndex === 0) {
|
|
8854
|
-
return
|
|
8870
|
+
return React.createElement(
|
|
8855
8871
|
'div',
|
|
8856
8872
|
{
|
|
8857
8873
|
key: 'addid-' + (index + 2),
|
|
@@ -8874,7 +8890,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8874
8890
|
)
|
|
8875
8891
|
);
|
|
8876
8892
|
}),
|
|
8877
|
-
|
|
8893
|
+
React.createElement(
|
|
8878
8894
|
'style',
|
|
8879
8895
|
{ jsx: 'true' },
|
|
8880
8896
|
'\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 '
|
|
@@ -8904,11 +8920,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8904
8920
|
};
|
|
8905
8921
|
}, [handleClickOutside]);
|
|
8906
8922
|
|
|
8907
|
-
return
|
|
8923
|
+
return React.createElement(
|
|
8908
8924
|
'div',
|
|
8909
8925
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8910
|
-
|
|
8911
|
-
|
|
8926
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8927
|
+
React.createElement(
|
|
8912
8928
|
'style',
|
|
8913
8929
|
{ jsx: 'true' },
|
|
8914
8930
|
'\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 '
|
|
@@ -8916,7 +8932,7 @@ var LightBox = function LightBox(_ref) {
|
|
|
8916
8932
|
);
|
|
8917
8933
|
};
|
|
8918
8934
|
|
|
8919
|
-
var urlFor$
|
|
8935
|
+
var urlFor$1 = function urlFor(source, client) {
|
|
8920
8936
|
var builder = imageUrlBuilder(client);
|
|
8921
8937
|
return builder.image(source).auto('format');
|
|
8922
8938
|
};
|
|
@@ -8932,7 +8948,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8932
8948
|
}
|
|
8933
8949
|
};
|
|
8934
8950
|
|
|
8935
|
-
var FigureImage =
|
|
8951
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8936
8952
|
var node = _ref2.node,
|
|
8937
8953
|
client = _ref2.client,
|
|
8938
8954
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8940,16 +8956,16 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8940
8956
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8941
8957
|
|
|
8942
8958
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8943
|
-
return
|
|
8959
|
+
return React.createElement(
|
|
8944
8960
|
'picture',
|
|
8945
8961
|
null,
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8962
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: generateSrcSet(node, client, 1500) }),
|
|
8963
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: generateSrcSet(node, client, 1000) }),
|
|
8964
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: generateSrcSet(node, client, 500) }),
|
|
8965
|
+
React.createElement('img', _extends({
|
|
8950
8966
|
style: figureImageStyle,
|
|
8951
8967
|
className: 'figure-image',
|
|
8952
|
-
src: urlFor$
|
|
8968
|
+
src: urlFor$1(node, client).url(),
|
|
8953
8969
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
8954
8970
|
}, !link && {
|
|
8955
8971
|
onClick: function onClick() {
|
|
@@ -9034,13 +9050,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9034
9050
|
|
|
9035
9051
|
var FigureCaption = useCallback(function () {
|
|
9036
9052
|
if (imgcaption && imgcaption.length > 0) {
|
|
9037
|
-
return
|
|
9053
|
+
return React.createElement(
|
|
9038
9054
|
'div',
|
|
9039
9055
|
{ className: 'figure-caption' },
|
|
9040
|
-
|
|
9056
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9041
9057
|
);
|
|
9042
9058
|
} else if (caption) {
|
|
9043
|
-
return
|
|
9059
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9044
9060
|
} else return null;
|
|
9045
9061
|
}, [caption, imgcaption]);
|
|
9046
9062
|
|
|
@@ -9053,28 +9069,28 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9053
9069
|
};
|
|
9054
9070
|
|
|
9055
9071
|
var handleClickFigure = useCallback(function (node, client) {
|
|
9056
|
-
setLightboxImgSrc(urlFor$
|
|
9072
|
+
setLightboxImgSrc(urlFor$1(node, client).url());
|
|
9057
9073
|
setShowLightbox(true);
|
|
9058
9074
|
}, [node, client]);
|
|
9059
9075
|
|
|
9060
|
-
return
|
|
9061
|
-
|
|
9076
|
+
return React.createElement(
|
|
9077
|
+
React.Fragment,
|
|
9062
9078
|
null,
|
|
9063
|
-
|
|
9064
|
-
Figure$
|
|
9079
|
+
React.createElement(
|
|
9080
|
+
Figure$2,
|
|
9065
9081
|
{ className: '' + class_name, style: figureStyle },
|
|
9066
|
-
link ?
|
|
9082
|
+
link ? React.createElement(
|
|
9067
9083
|
'a',
|
|
9068
9084
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
) :
|
|
9072
|
-
|
|
9085
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9086
|
+
React.createElement(FigureCaption, null)
|
|
9087
|
+
) : React.createElement(
|
|
9088
|
+
React.Fragment,
|
|
9073
9089
|
null,
|
|
9074
|
-
|
|
9075
|
-
|
|
9090
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9091
|
+
React.createElement(FigureCaption, null)
|
|
9076
9092
|
),
|
|
9077
|
-
|
|
9093
|
+
React.createElement(LightBox, {
|
|
9078
9094
|
showLightbox: showLightbox,
|
|
9079
9095
|
lightboxImgSrc: lightboxImgSrc,
|
|
9080
9096
|
closeLightbox: function closeLightbox() {
|
|
@@ -9083,7 +9099,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9083
9099
|
}
|
|
9084
9100
|
})
|
|
9085
9101
|
),
|
|
9086
|
-
|
|
9102
|
+
React.createElement(
|
|
9087
9103
|
'style',
|
|
9088
9104
|
{ jsx: 'true' },
|
|
9089
9105
|
'\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 '
|
|
@@ -9091,9 +9107,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9091
9107
|
);
|
|
9092
9108
|
};
|
|
9093
9109
|
|
|
9094
|
-
var Figure =
|
|
9110
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9095
9111
|
|
|
9096
|
-
var urlFor
|
|
9112
|
+
var urlFor = function urlFor(source, client) {
|
|
9097
9113
|
var builder = imageUrlBuilder(client);
|
|
9098
9114
|
return builder.image(source).auto('format');
|
|
9099
9115
|
};
|
|
@@ -9137,68 +9153,68 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9137
9153
|
imgcaption = _ref.imgcaption;
|
|
9138
9154
|
|
|
9139
9155
|
if (imgcaption && imgcaption.length > 0) {
|
|
9140
|
-
return
|
|
9156
|
+
return React.createElement(
|
|
9141
9157
|
'div',
|
|
9142
9158
|
{ className: 'multi-figure-caption' },
|
|
9143
|
-
|
|
9159
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9144
9160
|
);
|
|
9145
9161
|
} else if (caption) {
|
|
9146
|
-
return
|
|
9162
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9147
9163
|
} else return null;
|
|
9148
9164
|
};
|
|
9149
9165
|
|
|
9150
9166
|
if (images && images.length > 0) {
|
|
9151
|
-
return
|
|
9167
|
+
return React.createElement(
|
|
9152
9168
|
'div',
|
|
9153
9169
|
{ className: 'multi-figure-container' },
|
|
9154
|
-
|
|
9170
|
+
React.createElement(
|
|
9155
9171
|
Row$1,
|
|
9156
9172
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9157
9173
|
images.map(function (image, index) {
|
|
9158
|
-
return
|
|
9174
|
+
return React.createElement(
|
|
9159
9175
|
Col$1,
|
|
9160
9176
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9161
|
-
image.link ?
|
|
9177
|
+
image.link ? React.createElement(
|
|
9162
9178
|
'a',
|
|
9163
|
-
_extends
|
|
9164
|
-
|
|
9179
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9180
|
+
React.createElement(
|
|
9165
9181
|
'div',
|
|
9166
9182
|
{ className: 'multi-figure-image-container' },
|
|
9167
|
-
|
|
9183
|
+
React.createElement(
|
|
9168
9184
|
LazyLoad,
|
|
9169
9185
|
{ once: true },
|
|
9170
|
-
|
|
9186
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor(image.asset, client).url(), alt: image.alt })
|
|
9171
9187
|
),
|
|
9172
|
-
|
|
9188
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9173
9189
|
)
|
|
9174
|
-
) :
|
|
9190
|
+
) : React.createElement(
|
|
9175
9191
|
'div',
|
|
9176
9192
|
{ className: 'multi-figure-image-container' },
|
|
9177
|
-
|
|
9193
|
+
React.createElement(
|
|
9178
9194
|
LazyLoad,
|
|
9179
9195
|
{ once: true },
|
|
9180
|
-
|
|
9196
|
+
React.createElement('img', {
|
|
9181
9197
|
'images-count': images.length,
|
|
9182
9198
|
className: 'multi-figure-image',
|
|
9183
|
-
src: urlFor
|
|
9199
|
+
src: urlFor(image.asset, client).url(),
|
|
9184
9200
|
alt: image.alt,
|
|
9185
9201
|
onClick: function onClick() {
|
|
9186
|
-
setOpenImgSrc(urlFor
|
|
9202
|
+
setOpenImgSrc(urlFor(image, client).url());
|
|
9187
9203
|
setOpenImg(true);
|
|
9188
9204
|
}
|
|
9189
9205
|
})
|
|
9190
9206
|
),
|
|
9191
|
-
|
|
9207
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9192
9208
|
)
|
|
9193
9209
|
);
|
|
9194
9210
|
})
|
|
9195
9211
|
),
|
|
9196
|
-
|
|
9212
|
+
React.createElement(
|
|
9197
9213
|
'div',
|
|
9198
9214
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9199
|
-
|
|
9215
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9200
9216
|
),
|
|
9201
|
-
|
|
9217
|
+
React.createElement(
|
|
9202
9218
|
'style',
|
|
9203
9219
|
{ jsx: 'true' },
|
|
9204
9220
|
'\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 '
|
|
@@ -9220,10 +9236,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9220
9236
|
|
|
9221
9237
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9222
9238
|
|
|
9223
|
-
return
|
|
9239
|
+
return React.createElement(
|
|
9224
9240
|
'div',
|
|
9225
9241
|
{ id: elementId },
|
|
9226
|
-
|
|
9242
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9227
9243
|
);
|
|
9228
9244
|
};
|
|
9229
9245
|
|
|
@@ -9292,7 +9308,7 @@ _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
|
9292
9308
|
}, 1000);
|
|
9293
9309
|
}, [htmlSnippet]);
|
|
9294
9310
|
|
|
9295
|
-
return htmlSnippet &&
|
|
9311
|
+
return htmlSnippet && React.createElement('div', { className: 'form-assembly', ref: formAssemblyRef, dangerouslySetInnerHTML: { __html: htmlSnippet } });
|
|
9296
9312
|
};
|
|
9297
9313
|
|
|
9298
9314
|
var BlockTable = function BlockTable(props) {
|
|
@@ -9325,27 +9341,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9325
9341
|
return window.removeEventListener('resize', handleResize);
|
|
9326
9342
|
};
|
|
9327
9343
|
}, []);
|
|
9328
|
-
return
|
|
9344
|
+
return React.createElement(
|
|
9329
9345
|
'div',
|
|
9330
9346
|
{ className: 'blockTableHolder', ref: holder },
|
|
9331
|
-
|
|
9347
|
+
React.createElement(
|
|
9332
9348
|
'div',
|
|
9333
9349
|
{ className: 'blockTable' },
|
|
9334
9350
|
rows && rows.map(function (row) {
|
|
9335
|
-
return
|
|
9351
|
+
return React.createElement(
|
|
9336
9352
|
'div',
|
|
9337
9353
|
{ className: 'blockTableRow' },
|
|
9338
9354
|
row.cells && row.cells.map(function (cell) {
|
|
9339
|
-
return
|
|
9355
|
+
return React.createElement(
|
|
9340
9356
|
'div',
|
|
9341
9357
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9342
|
-
|
|
9358
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9343
9359
|
);
|
|
9344
9360
|
})
|
|
9345
9361
|
);
|
|
9346
9362
|
})
|
|
9347
9363
|
),
|
|
9348
|
-
|
|
9364
|
+
React.createElement(
|
|
9349
9365
|
'style',
|
|
9350
9366
|
{ jsx: true },
|
|
9351
9367
|
'\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 '
|
|
@@ -9424,12 +9440,12 @@ var getSerializers = function getSerializers() {
|
|
|
9424
9440
|
var node = _ref.node;
|
|
9425
9441
|
var url = node.url;
|
|
9426
9442
|
|
|
9427
|
-
return
|
|
9443
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9428
9444
|
},
|
|
9429
9445
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9430
9446
|
var node = _ref2.node;
|
|
9431
9447
|
|
|
9432
|
-
return
|
|
9448
|
+
return React.createElement(YouTubeGallery, {
|
|
9433
9449
|
nodes: node,
|
|
9434
9450
|
article: article,
|
|
9435
9451
|
meta: meta,
|
|
@@ -9443,7 +9459,7 @@ var getSerializers = function getSerializers() {
|
|
|
9443
9459
|
articleSeries: function articleSeries(_ref3) {
|
|
9444
9460
|
var node = _ref3.node;
|
|
9445
9461
|
|
|
9446
|
-
return
|
|
9462
|
+
return React.createElement(ArticleSeries, {
|
|
9447
9463
|
nodes: node,
|
|
9448
9464
|
accountIDs: videoAccountIDs || {},
|
|
9449
9465
|
pageview: pageview,
|
|
@@ -9456,61 +9472,61 @@ var getSerializers = function getSerializers() {
|
|
|
9456
9472
|
figure: function figure(_ref4) {
|
|
9457
9473
|
var node = _ref4.node;
|
|
9458
9474
|
|
|
9459
|
-
return
|
|
9475
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9460
9476
|
},
|
|
9461
9477
|
multifigure: function multifigure(_ref5) {
|
|
9462
9478
|
var node = _ref5.node;
|
|
9463
9479
|
|
|
9464
|
-
return
|
|
9480
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9465
9481
|
},
|
|
9466
9482
|
slideshow: function slideshow(_ref6) {
|
|
9467
9483
|
var node = _ref6.node;
|
|
9468
9484
|
var slides = node.slides;
|
|
9469
9485
|
|
|
9470
|
-
return
|
|
9486
|
+
return React.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
9471
9487
|
},
|
|
9472
9488
|
sidebar: function sidebar(_ref7) {
|
|
9473
9489
|
var node = _ref7.node;
|
|
9474
9490
|
var caption = node.caption,
|
|
9475
9491
|
content = node.content;
|
|
9476
9492
|
|
|
9477
|
-
return
|
|
9493
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9478
9494
|
},
|
|
9479
9495
|
datatable: function datatable(_ref8) {
|
|
9480
9496
|
var node = _ref8.node;
|
|
9481
9497
|
var table = node.table;
|
|
9482
9498
|
|
|
9483
|
-
return
|
|
9499
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9484
9500
|
},
|
|
9485
9501
|
media: function media(_ref9) {
|
|
9486
9502
|
var node = _ref9.node;
|
|
9487
9503
|
|
|
9488
|
-
return
|
|
9504
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9489
9505
|
},
|
|
9490
9506
|
iframe: function iframe(_ref10) {
|
|
9491
9507
|
var node = _ref10.node;
|
|
9492
9508
|
|
|
9493
|
-
return
|
|
9509
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9494
9510
|
},
|
|
9495
9511
|
video: function video(_ref11) {
|
|
9496
9512
|
var node = _ref11.node;
|
|
9497
9513
|
|
|
9498
|
-
return
|
|
9514
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9499
9515
|
},
|
|
9500
9516
|
audio: function audio(_ref12) {
|
|
9501
9517
|
var node = _ref12.node;
|
|
9502
9518
|
|
|
9503
|
-
return
|
|
9519
|
+
return React.createElement(Audio, { node: node });
|
|
9504
9520
|
},
|
|
9505
9521
|
poll: function poll(_ref13) {
|
|
9506
9522
|
var node = _ref13.node;
|
|
9507
9523
|
|
|
9508
|
-
return
|
|
9524
|
+
return React.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9509
9525
|
},
|
|
9510
9526
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9511
9527
|
var node = _ref14.node;
|
|
9512
9528
|
|
|
9513
|
-
return
|
|
9529
|
+
return React.createElement(Poll, {
|
|
9514
9530
|
node: node,
|
|
9515
9531
|
client: client,
|
|
9516
9532
|
pageview: pageview,
|
|
@@ -9524,35 +9540,35 @@ var getSerializers = function getSerializers() {
|
|
|
9524
9540
|
var node = _ref15.node;
|
|
9525
9541
|
var quizzes = node.quizzes;
|
|
9526
9542
|
|
|
9527
|
-
return
|
|
9543
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9528
9544
|
},
|
|
9529
9545
|
leads: function leads(_ref16) {
|
|
9530
9546
|
var node = _ref16.node;
|
|
9531
9547
|
var leadID = node.leadID;
|
|
9532
9548
|
|
|
9533
9549
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9534
|
-
return
|
|
9550
|
+
return React.createElement(Leads, { url: url });
|
|
9535
9551
|
},
|
|
9536
9552
|
slideshows: function slideshows(_ref17) {
|
|
9537
9553
|
var node = _ref17.node;
|
|
9538
9554
|
|
|
9539
|
-
return
|
|
9555
|
+
return React.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9540
9556
|
},
|
|
9541
9557
|
nativeAd: function nativeAd(_ref18) {
|
|
9542
9558
|
var node = _ref18.node;
|
|
9543
9559
|
|
|
9544
|
-
return
|
|
9560
|
+
return React.createElement(NativeAd, { node: node });
|
|
9545
9561
|
},
|
|
9546
9562
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9547
9563
|
var node = _ref19.node;
|
|
9548
9564
|
|
|
9549
|
-
return
|
|
9565
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9550
9566
|
},
|
|
9551
9567
|
hrtag: function hrtag() {
|
|
9552
|
-
return
|
|
9568
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9553
9569
|
},
|
|
9554
9570
|
brtag: function brtag() {
|
|
9555
|
-
return
|
|
9571
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9556
9572
|
},
|
|
9557
9573
|
formstack: function formstack(_ref20) {
|
|
9558
9574
|
var node = _ref20.node;
|
|
@@ -9560,29 +9576,29 @@ var getSerializers = function getSerializers() {
|
|
|
9560
9576
|
Caption = node.Caption,
|
|
9561
9577
|
needSegmentSupport = node.needSegmentSupport;
|
|
9562
9578
|
|
|
9563
|
-
return
|
|
9579
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9564
9580
|
},
|
|
9565
9581
|
formassembly: FormAssembly,
|
|
9566
9582
|
multimedia: function multimedia(_ref21) {
|
|
9567
9583
|
var node = _ref21.node;
|
|
9568
9584
|
|
|
9569
|
-
return
|
|
9585
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9570
9586
|
},
|
|
9571
9587
|
blockTable: function blockTable(_ref22) {
|
|
9572
9588
|
var node = _ref22.node;
|
|
9573
|
-
return
|
|
9589
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9574
9590
|
}
|
|
9575
9591
|
},
|
|
9576
9592
|
marks: {
|
|
9577
9593
|
superscript: function superscript(props) {
|
|
9578
|
-
return
|
|
9594
|
+
return React.createElement(
|
|
9579
9595
|
'sup',
|
|
9580
9596
|
null,
|
|
9581
9597
|
props.children
|
|
9582
9598
|
);
|
|
9583
9599
|
},
|
|
9584
9600
|
subscript: function subscript(props) {
|
|
9585
|
-
return
|
|
9601
|
+
return React.createElement(
|
|
9586
9602
|
'sub',
|
|
9587
9603
|
null,
|
|
9588
9604
|
props.children
|
|
@@ -9598,7 +9614,7 @@ var getSerializers = function getSerializers() {
|
|
|
9598
9614
|
if (href && href.charAt(0) === '#') {
|
|
9599
9615
|
var elementId = href.slice(1);
|
|
9600
9616
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9601
|
-
return
|
|
9617
|
+
return React.createElement(
|
|
9602
9618
|
'a',
|
|
9603
9619
|
{ onClick: function onClick() {
|
|
9604
9620
|
return ScrollToElement(elementId);
|
|
@@ -9608,7 +9624,7 @@ var getSerializers = function getSerializers() {
|
|
|
9608
9624
|
}
|
|
9609
9625
|
|
|
9610
9626
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9611
|
-
return
|
|
9627
|
+
return React.createElement(
|
|
9612
9628
|
'a',
|
|
9613
9629
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9614
9630
|
children
|
|
@@ -9616,7 +9632,7 @@ var getSerializers = function getSerializers() {
|
|
|
9616
9632
|
},
|
|
9617
9633
|
alignleft: function alignleft(_ref23) {
|
|
9618
9634
|
var children = _ref23.children;
|
|
9619
|
-
return
|
|
9635
|
+
return React.createElement(
|
|
9620
9636
|
'div',
|
|
9621
9637
|
{ style: { textAlign: 'left' } },
|
|
9622
9638
|
children
|
|
@@ -9624,7 +9640,7 @@ var getSerializers = function getSerializers() {
|
|
|
9624
9640
|
},
|
|
9625
9641
|
alignright: function alignright(_ref24) {
|
|
9626
9642
|
var children = _ref24.children;
|
|
9627
|
-
return
|
|
9643
|
+
return React.createElement(
|
|
9628
9644
|
'div',
|
|
9629
9645
|
{ style: { textAlign: 'right' } },
|
|
9630
9646
|
children
|
|
@@ -9632,7 +9648,7 @@ var getSerializers = function getSerializers() {
|
|
|
9632
9648
|
},
|
|
9633
9649
|
aligncenter: function aligncenter(_ref25) {
|
|
9634
9650
|
var children = _ref25.children;
|
|
9635
|
-
return
|
|
9651
|
+
return React.createElement(
|
|
9636
9652
|
'div',
|
|
9637
9653
|
{ style: { textAlign: 'center' } },
|
|
9638
9654
|
children
|
|
@@ -9640,7 +9656,7 @@ var getSerializers = function getSerializers() {
|
|
|
9640
9656
|
},
|
|
9641
9657
|
alignjustify: function alignjustify(_ref26) {
|
|
9642
9658
|
var children = _ref26.children;
|
|
9643
|
-
return
|
|
9659
|
+
return React.createElement(
|
|
9644
9660
|
'div',
|
|
9645
9661
|
{ style: { textAlign: 'justify' } },
|
|
9646
9662
|
children
|
|
@@ -9650,7 +9666,7 @@ var getSerializers = function getSerializers() {
|
|
|
9650
9666
|
var children = props.children,
|
|
9651
9667
|
color = props.mark.color;
|
|
9652
9668
|
|
|
9653
|
-
return
|
|
9669
|
+
return React.createElement(
|
|
9654
9670
|
'span',
|
|
9655
9671
|
{ style: { color: color ? color.hex : null } },
|
|
9656
9672
|
children
|