@mjhls/mjh-framework 1.0.1001-popup-polls → 1.0.1002-docgroup-fix-v1
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 +1 -1
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -5
- package/dist/cjs/AD300x250x600.js +5 -5
- package/dist/cjs/AD728x90.js +6 -6
- package/dist/cjs/ADFloatingFooter.js +8 -8
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -8
- package/dist/cjs/{ADInfeed-0394f391.js → ADInfeed-e87afe8a.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +8 -8
- package/dist/cjs/ADSponsoredResources.js +8 -8
- package/dist/cjs/ADWebcast.js +8 -8
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-759969d6.js → ADlgInfeed-b5a3d436.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -9
- package/dist/cjs/AdSlotsProvider.js +5 -5
- package/dist/cjs/AlgoliaSearch.js +573 -575
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +16 -17
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
- package/dist/cjs/ArticleSeriesListing.js +29 -29
- package/dist/cjs/Auth.js +74 -74
- package/dist/cjs/AuthWrapper.js +24 -24
- package/dist/cjs/{AuthorComponent-7d00f6d5.js → AuthorComponent-39b37d84.js} +9 -9
- package/dist/cjs/{BlockContent-96b44364.js → BlockContent-9ebd251f.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +27 -27
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-213003ce.js → ConferenceBanner-6c9e718a.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -49
- package/dist/cjs/DeckContent.js +58 -58
- package/dist/cjs/DeckQueue.js +57 -57
- package/dist/cjs/DeckQueuePaginated.js +46 -46
- package/dist/cjs/{Dfp-c313a700.js → Dfp-9be904d5.js} +17 -17
- package/dist/cjs/EventsDeck.js +89 -89
- package/dist/cjs/ExternalResources.js +35 -36
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -134
- package/dist/cjs/GridContentPaginated.js +121 -121
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +105 -105
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +17 -17
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +30 -31
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-17fdaf3b.js → ImageSlider-6c00b878.js} +72 -72
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +21 -22
- package/dist/cjs/LeftNav.js +17 -17
- package/dist/cjs/MasterDeck.js +39 -39
- package/dist/cjs/MasterDeckPaginated.js +29 -29
- package/dist/cjs/{MediaSeriesCard-eacea66a.js → MediaSeriesCard-2e5cd247.js} +16 -16
- package/dist/cjs/MediaSeriesLanding.js +37 -38
- package/dist/cjs/MediaSeriesLandingPaginated.js +36 -37
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-880e9d87.js → NavFooter-4799de4b.js} +11 -11
- package/dist/cjs/NavMagazine.js +106 -106
- package/dist/cjs/NavNative.js +97 -97
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-842c556f.js → Pagination-2a3d0103.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +51 -52
- package/dist/cjs/PartnerDetailListingPaginated.js +50 -51
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +23 -24
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -13
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-a989a2b3.js → PublicationFeature-5ccf9b13.js} +29 -29
- package/dist/cjs/PublicationLanding.js +73 -73
- package/dist/cjs/QueueDeckExpanded.js +245 -245
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -222
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +14 -14
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +54 -52
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -18
- package/dist/cjs/{SeriesSlider-3d57985d.js → SeriesSlider-594b19eb.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-62bceb87.js → SocialSearchComponent-d2ab3d62.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +13 -14
- package/dist/cjs/TemplateNormal.js +27 -27
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/{Tooltip-4cb8849a.js → Tooltip-f075b7ef.js} +440 -440
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +30 -31
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -11
- package/dist/cjs/VideoSeriesListing.js +46 -46
- package/dist/cjs/View.js +230 -224
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +33 -33
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-a195642e.js} +2 -2
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +8 -9
- package/dist/cjs/iconBase-be4097c0.js +4 -2
- package/dist/cjs/{index-65621b6c.js → index-eadd5035.js} +5 -5
- package/dist/cjs/{index-19fbbcea.js → index-f95a3c0f.js} +571 -621
- package/dist/cjs/{index-d2a6ef75.js → index-fc2f1ca2.js} +4 -4
- package/dist/cjs/{index.es-1ab8dda7.js → index.es-f3e47207.js} +4 -4
- package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-1461604c.js} +14 -14
- package/dist/cjs/index.js +100 -100
- package/dist/cjs/{main-3643d499.js → main-f1c77adb.js} +13 -13
- package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-af932527.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-56020df6.js → visibility-sensor-eb2c5b69.js} +1 -1
- package/dist/esm/AlgoliaSearch.js +0 -2
- package/dist/esm/ArticleProgramLandingPage.js +3 -4
- package/dist/esm/ExternalResources.js +3 -4
- package/dist/esm/HorizontalArticleListing.js +3 -4
- package/dist/esm/IssueLanding.js +3 -4
- package/dist/esm/{MediaSeriesCard-f56c8274.js → MediaSeriesCard-afb517a5.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +3 -4
- package/dist/esm/MediaSeriesLandingPaginated.js +3 -4
- package/dist/esm/PartnerDetailListing.js +3 -4
- package/dist/esm/PartnerDetailListingPaginated.js +3 -4
- package/dist/esm/PodcastsLanding.js +3 -4
- package/dist/esm/Schema.js +54 -52
- package/dist/esm/TaxonomyDescription.js +3 -4
- package/dist/esm/VideoProgramLandingPage.js +3 -4
- package/dist/esm/View.js +10 -4
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +3 -4
- package/dist/esm/{index-5d8b0a9d.js → index-04817712.js} +91 -141
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Form from 'react-bootstrap/Form';
|
|
7
7
|
import Button from 'react-bootstrap/Button';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-04817712.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -33,9 +33,6 @@ import 'react-dom';
|
|
|
33
33
|
import './typeof-e9fc0c5d.js';
|
|
34
34
|
import './_is-array-8d21b9e3.js';
|
|
35
35
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
36
|
-
import './_object-to-array-2300e51b.js';
|
|
37
|
-
import './keys-31dcdb31.js';
|
|
38
|
-
import './_object-sap-7cee6f84.js';
|
|
39
36
|
import 'react-bootstrap/Modal';
|
|
40
37
|
import 'react-ga';
|
|
41
38
|
import './GroupDeck.js';
|
|
@@ -44,6 +41,7 @@ import './moment-bc12cb97.js';
|
|
|
44
41
|
import './SocialShare.js';
|
|
45
42
|
import 'next/head';
|
|
46
43
|
import 'react-share';
|
|
44
|
+
import './_object-to-array-2300e51b.js';
|
|
47
45
|
import './toConsumableArray-f7074d7c.js';
|
|
48
46
|
import 'react-bootstrap/Pagination';
|
|
49
47
|
import './entities-6d9154b4.js';
|
|
@@ -53,6 +51,7 @@ import './isSymbol-a7e9aafe.js';
|
|
|
53
51
|
import './toNumber-5aeba6e7.js';
|
|
54
52
|
import 'react-bootstrap/Row';
|
|
55
53
|
import './inherits-a6ba2ec4.js';
|
|
54
|
+
import './_object-sap-7cee6f84.js';
|
|
56
55
|
import './define-property-5f1bda73.js';
|
|
57
56
|
import './index.esm-eb1e8e80.js';
|
|
58
57
|
import './iconBase-ccc56b97.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
|
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-04817712.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-f771e20d.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-9bd28724.js';
|
|
@@ -51,12 +51,12 @@ import './index-c7e2ac95.js';
|
|
|
51
51
|
import './util-8ed16d48.js';
|
|
52
52
|
import './Beam.js';
|
|
53
53
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
54
|
-
import './_object-to-array-2300e51b.js';
|
|
55
54
|
import 'react-bootstrap/Modal';
|
|
56
55
|
import 'react-ga';
|
|
57
56
|
import './GroupDeck.js';
|
|
58
57
|
import './smoothscroll-fa4e3f8c.js';
|
|
59
58
|
import './_is-array-8d21b9e3.js';
|
|
59
|
+
import './_object-to-array-2300e51b.js';
|
|
60
60
|
import 'react-bootstrap/Pagination';
|
|
61
61
|
import './entities-6d9154b4.js';
|
|
62
62
|
import 'react-bootstrap/Row';
|
|
@@ -149,7 +149,13 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
149
149
|
var article = _ref.article,
|
|
150
150
|
client = _ref.client;
|
|
151
151
|
|
|
152
|
+
|
|
152
153
|
var mediaSeriesGroup = null;
|
|
154
|
+
var disableThumbnail = false;
|
|
155
|
+
|
|
156
|
+
if (article.documentGroup && article.documentGroup.hideThumbnail === true) {
|
|
157
|
+
disableThumbnail = true;
|
|
158
|
+
}
|
|
153
159
|
|
|
154
160
|
if (article.documentGroup && article.documentGroup.isShow !== false && article.documentGroup.isSeries !== true) {
|
|
155
161
|
mediaSeriesGroup = article.documentGroup;
|
|
@@ -181,8 +187,8 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
181
187
|
href: url,
|
|
182
188
|
className: 'doc-group',
|
|
183
189
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
184
|
-
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
185
|
-
!thumbnailUrl && React__default.createElement('p', {
|
|
190
|
+
thumbnailUrl && !disableThumbnail && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
191
|
+
(disableThumbnail || !thumbnailUrl) && React__default.createElement('p', {
|
|
186
192
|
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
187
193
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
188
194
|
main_43 && !thumbnailUrl && React__default.createElement(
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -9,9 +9,9 @@ var getQuery = function getQuery(type) {
|
|
|
9
9
|
switch (type) {
|
|
10
10
|
// quiz video series and slideshow
|
|
11
11
|
case 'related':
|
|
12
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && isHealthcareProfessional != true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
|
|
12
|
+
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && isHealthcareProfessional != true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
|
|
13
13
|
case 'article':
|
|
14
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, showIssueNameOnly, showPageNumber, parent-> },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n disableEpisodeNumber,\n excludeRelatedContents,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n isSeries,\n disableEpisodeNumber,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n excludeRelatedContents,\n \'path\': identifier.current,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n year,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
|
|
14
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, showIssueNameOnly, showPageNumber, parent-> },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n disableEpisodeNumber,\n excludeRelatedContents,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n isSeries,\n disableEpisodeNumber,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n excludeRelatedContents,\n \'path\': identifier.current,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n year,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
|
|
15
15
|
case 'publication':
|
|
16
16
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
17
17
|
case 'issue':
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { g as default } from './index-
|
|
2
|
+
export { g as default } from './index-04817712.js';
|
|
3
3
|
import './BlockContent-1e73bd2c.js';
|
|
4
4
|
import './entities-6d9154b4.js';
|
|
5
5
|
import './slicedToArray-6ebcbfea.js';
|
|
@@ -30,9 +30,6 @@ import 'react-dom';
|
|
|
30
30
|
import './typeof-e9fc0c5d.js';
|
|
31
31
|
import './_is-array-8d21b9e3.js';
|
|
32
32
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
33
|
-
import './_object-to-array-2300e51b.js';
|
|
34
|
-
import './keys-31dcdb31.js';
|
|
35
|
-
import './_object-sap-7cee6f84.js';
|
|
36
33
|
import 'react-bootstrap/Modal';
|
|
37
34
|
import 'react-bootstrap/Button';
|
|
38
35
|
import 'react-bootstrap/Form';
|
|
@@ -43,6 +40,7 @@ import './moment-bc12cb97.js';
|
|
|
43
40
|
import './SocialShare.js';
|
|
44
41
|
import 'next/head';
|
|
45
42
|
import 'react-share';
|
|
43
|
+
import './_object-to-array-2300e51b.js';
|
|
46
44
|
import './toConsumableArray-f7074d7c.js';
|
|
47
45
|
import 'react-bootstrap/Pagination';
|
|
48
46
|
import './AdSlot.js';
|
|
@@ -52,6 +50,7 @@ import './toNumber-5aeba6e7.js';
|
|
|
52
50
|
import 'react-bootstrap/Row';
|
|
53
51
|
import 'react-bootstrap/Col';
|
|
54
52
|
import './inherits-a6ba2ec4.js';
|
|
53
|
+
import './_object-sap-7cee6f84.js';
|
|
55
54
|
import './define-property-5f1bda73.js';
|
|
56
55
|
import './index.esm-eb1e8e80.js';
|
|
57
56
|
import './iconBase-ccc56b97.js';
|
|
@@ -19,9 +19,6 @@ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958
|
|
|
19
19
|
import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
|
|
20
20
|
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
21
21
|
import { _ as _JSON$stringify } from './stringify-2b084bee.js';
|
|
22
|
-
import { _ as _export, a as _core } from './core.get-iterator-method-ea258bb1.js';
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-2300e51b.js';
|
|
24
|
-
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
25
22
|
import Modal from 'react-bootstrap/Modal';
|
|
26
23
|
import Button from 'react-bootstrap/Button';
|
|
27
24
|
import Form from 'react-bootstrap/Form';
|
|
@@ -29,6 +26,8 @@ import ReactGA from 'react-ga';
|
|
|
29
26
|
import GroupDeck from './GroupDeck.js';
|
|
30
27
|
import { m as moment } from './moment-bc12cb97.js';
|
|
31
28
|
import SocialShare from './SocialShare.js';
|
|
29
|
+
import { _ as _export, a as _core } from './core.get-iterator-method-ea258bb1.js';
|
|
30
|
+
import { _ as _objectToArray } from './_object-to-array-2300e51b.js';
|
|
32
31
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
33
32
|
import Pagination from 'react-bootstrap/Pagination';
|
|
34
33
|
import { h as html_decode_1 } from './entities-6d9154b4.js';
|
|
@@ -2212,24 +2211,6 @@ var IFrame = function IFrame(_ref) {
|
|
|
2212
2211
|
);
|
|
2213
2212
|
};
|
|
2214
2213
|
|
|
2215
|
-
// https://github.com/tc39/proposal-object-values-entries
|
|
2216
|
-
|
|
2217
|
-
var $values = _objectToArray(false);
|
|
2218
|
-
|
|
2219
|
-
_export(_export.S, 'Object', {
|
|
2220
|
-
values: function values(it) {
|
|
2221
|
-
return $values(it);
|
|
2222
|
-
}
|
|
2223
|
-
});
|
|
2224
|
-
|
|
2225
|
-
var values$1 = _core.Object.values;
|
|
2226
|
-
|
|
2227
|
-
var values = createCommonjsModule(function (module) {
|
|
2228
|
-
module.exports = { "default": values$1, __esModule: true };
|
|
2229
|
-
});
|
|
2230
|
-
|
|
2231
|
-
var _Object$values = unwrapExports(values);
|
|
2232
|
-
|
|
2233
2214
|
var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
2234
2215
|
var question = _ref.question,
|
|
2235
2216
|
choices = _ref.choices,
|
|
@@ -2240,7 +2221,7 @@ var PopupMultiChoice = function PopupMultiChoice(_ref) {
|
|
|
2240
2221
|
inline: true,
|
|
2241
2222
|
label: choice.choiceText,
|
|
2242
2223
|
value: choice.choiceText,
|
|
2243
|
-
name:
|
|
2224
|
+
name: 'radioButton',
|
|
2244
2225
|
type: 'radio',
|
|
2245
2226
|
className: 'radioButton',
|
|
2246
2227
|
onClick: handlePollAnswer
|
|
@@ -2310,15 +2291,10 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2310
2291
|
pollAnswer = _useState2[0],
|
|
2311
2292
|
setPollAnswer = _useState2[1];
|
|
2312
2293
|
|
|
2313
|
-
var _useState3 = useState(
|
|
2294
|
+
var _useState3 = useState(''),
|
|
2314
2295
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
var _useState5 = useState(''),
|
|
2319
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
2320
|
-
textAnswer = _useState6[0],
|
|
2321
|
-
setTextAnswer = _useState6[1];
|
|
2296
|
+
textAnswer = _useState4[0],
|
|
2297
|
+
setTextAnswer = _useState4[1];
|
|
2322
2298
|
|
|
2323
2299
|
useEffect(function () {
|
|
2324
2300
|
var modal = document.getElementById('modalDiv');
|
|
@@ -2333,98 +2309,77 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2333
2309
|
setPollAnswer(e.target.value);
|
|
2334
2310
|
};
|
|
2335
2311
|
|
|
2336
|
-
var handleMultiItemPollAnswers = function handleMultiItemPollAnswers(e) {
|
|
2337
|
-
var question = e.target.name;
|
|
2338
|
-
var answer = e.target.value;
|
|
2339
|
-
var tempObj = {};
|
|
2340
|
-
tempObj[question] = answer;
|
|
2341
|
-
setMultiItemPollAnswers(function (prev) {
|
|
2342
|
-
return _extends({}, prev, tempObj);
|
|
2343
|
-
});
|
|
2344
|
-
};
|
|
2345
|
-
|
|
2346
2312
|
var handleSubmit = function handleSubmit(e) {
|
|
2347
2313
|
var currentDate = new Date(Date.now()).toUTCString();
|
|
2348
2314
|
// eslint-disable-next-line no-undef
|
|
2349
2315
|
var anonymousID = typeof analytics !== 'undefined' && typeof analytics.user === 'function' && analytics.user() && analytics.user().anonymousId();
|
|
2350
|
-
var formData = {};
|
|
2351
|
-
|
|
2352
2316
|
pollItems.forEach(function (item) {
|
|
2353
|
-
|
|
2317
|
+
var submitAnswer = void 0;
|
|
2318
|
+
if (item.format === 'multiChoice') submitAnswer = pollAnswer;
|
|
2319
|
+
if (item.format === 'textInput') submitAnswer = textAnswer;
|
|
2320
|
+
var formData = {
|
|
2354
2321
|
uuid: anonymousID,
|
|
2355
2322
|
url: pollUrl,
|
|
2356
2323
|
date: currentDate,
|
|
2357
|
-
|
|
2358
|
-
|
|
2324
|
+
question: item.question,
|
|
2325
|
+
answer: submitAnswer
|
|
2359
2326
|
};
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
case 8:
|
|
2394
|
-
case 'end':
|
|
2395
|
-
return _context.stop();
|
|
2327
|
+
var requestOptions = {
|
|
2328
|
+
method: 'POST',
|
|
2329
|
+
headers: { 'content-type': 'application/json' },
|
|
2330
|
+
body: _JSON$stringify({ data: formData })
|
|
2331
|
+
};
|
|
2332
|
+
var insertData = function () {
|
|
2333
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
2334
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
2335
|
+
while (1) {
|
|
2336
|
+
switch (_context.prev = _context.next) {
|
|
2337
|
+
case 0:
|
|
2338
|
+
_context.prev = 0;
|
|
2339
|
+
_context.next = 3;
|
|
2340
|
+
return fetch('/api/popup_polls', requestOptions).then(function (res) {
|
|
2341
|
+
return res.json();
|
|
2342
|
+
}).then(function (res) {
|
|
2343
|
+
return console.log(res);
|
|
2344
|
+
});
|
|
2345
|
+
|
|
2346
|
+
case 3:
|
|
2347
|
+
_context.next = 8;
|
|
2348
|
+
break;
|
|
2349
|
+
|
|
2350
|
+
case 5:
|
|
2351
|
+
_context.prev = 5;
|
|
2352
|
+
_context.t0 = _context['catch'](0);
|
|
2353
|
+
|
|
2354
|
+
if (_context.t0) console.log('There was an error in insertData in PopupPollModal.js: ' + _context.t0);
|
|
2355
|
+
|
|
2356
|
+
case 8:
|
|
2357
|
+
case 'end':
|
|
2358
|
+
return _context.stop();
|
|
2359
|
+
}
|
|
2396
2360
|
}
|
|
2397
|
-
}
|
|
2398
|
-
}
|
|
2399
|
-
}));
|
|
2361
|
+
}, _callee, _this, [[0, 5]]);
|
|
2362
|
+
}));
|
|
2400
2363
|
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2364
|
+
return function insertData() {
|
|
2365
|
+
return _ref.apply(this, arguments);
|
|
2366
|
+
};
|
|
2367
|
+
}();
|
|
2368
|
+
console.log('formData', formData);
|
|
2369
|
+
insertData();
|
|
2370
|
+
});
|
|
2407
2371
|
restartPlayer();
|
|
2372
|
+
// setIsPollingTime(false)
|
|
2408
2373
|
e.preventDefault();
|
|
2409
2374
|
};
|
|
2410
2375
|
|
|
2411
2376
|
var pollArray = [];
|
|
2412
|
-
|
|
2413
2377
|
pollItems.forEach(function (item, ind) {
|
|
2414
|
-
if (
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
pollArray.push(React__default.createElement(PopupPollTextInput, { textInputQuestion: item.question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
2420
|
-
}
|
|
2421
|
-
} else {
|
|
2422
|
-
if (item.pollItems[0] && item.pollItems[0].format === 'multiChoice') {
|
|
2423
|
-
pollArray.push(React__default.createElement(PopupMultiChoice, { question: item.pollItems[0].question, choices: item.pollItems[0].choices, handlePollAnswer: handleMultiItemPollAnswers, key: ind }));
|
|
2424
|
-
}
|
|
2425
|
-
if (item.pollItems[0] && item.pollItems[0].format === 'textInput') {
|
|
2426
|
-
pollArray.push(React__default.createElement(PopupPollTextInput, { textInputQuestion: item.pollItems[0].question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
2427
|
-
}
|
|
2378
|
+
if (item.format === 'multiChoice') {
|
|
2379
|
+
pollArray.push(React__default.createElement(PopupMultiChoice, { question: item.question, choices: item.choices, handlePollAnswer: handlePollAnswer, key: ind }));
|
|
2380
|
+
}
|
|
2381
|
+
if (item.format === 'textInput') {
|
|
2382
|
+
pollArray.push(React__default.createElement(PopupPollTextInput, { textInputQuestion: item.question, textanswer: textAnswer, handleTextAnswer: handleTextAnswer, key: ind }));
|
|
2428
2383
|
}
|
|
2429
2384
|
});
|
|
2430
2385
|
|
|
@@ -2433,10 +2388,7 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2433
2388
|
{ className: 'modalDiv', id: 'modalDiv' },
|
|
2434
2389
|
React__default.createElement(
|
|
2435
2390
|
Modal.Dialog,
|
|
2436
|
-
|
|
2437
|
-
props.closeable && React__default.createElement(Modal.Header, { closeButton: true, onClick: function onClick() {
|
|
2438
|
-
return restartPlayer();
|
|
2439
|
-
} }),
|
|
2391
|
+
null,
|
|
2440
2392
|
React__default.createElement(
|
|
2441
2393
|
Modal.Body,
|
|
2442
2394
|
null,
|
|
@@ -2448,13 +2400,9 @@ var PopupPollModal = function PopupPollModal(props) {
|
|
|
2448
2400
|
Button,
|
|
2449
2401
|
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !textAnswer },
|
|
2450
2402
|
'Submit'
|
|
2451
|
-
) : !textInputRender && multiChoiceRender ? React__default.createElement(
|
|
2452
|
-
Button,
|
|
2453
|
-
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !pollAnswer },
|
|
2454
|
-
'Submit'
|
|
2455
2403
|
) : React__default.createElement(
|
|
2456
2404
|
Button,
|
|
2457
|
-
{ className: 'submitButton', type: 'submit', variant: 'success' },
|
|
2405
|
+
{ className: 'submitButton', type: 'submit', variant: 'success', disabled: !pollAnswer },
|
|
2458
2406
|
'Submit'
|
|
2459
2407
|
)
|
|
2460
2408
|
)
|
|
@@ -2674,7 +2622,6 @@ var Video = function Video(_ref) {
|
|
|
2674
2622
|
experienceID = node.experienceID;
|
|
2675
2623
|
|
|
2676
2624
|
var polls = void 0;
|
|
2677
|
-
|
|
2678
2625
|
if (node.polls) polls = node.polls;
|
|
2679
2626
|
|
|
2680
2627
|
var _useState = useState(false),
|
|
@@ -2719,16 +2666,10 @@ var Video = function Video(_ref) {
|
|
|
2719
2666
|
return minutes * 60 + seconds;
|
|
2720
2667
|
};
|
|
2721
2668
|
var modalTimes = [];
|
|
2722
|
-
var initPolls = [];
|
|
2723
|
-
var nonInitPolls = [];
|
|
2724
2669
|
if (polls) {
|
|
2725
2670
|
polls.forEach(function (pollObj) {
|
|
2726
|
-
return
|
|
2671
|
+
return modalTimes.push(convertTime(pollObj.timestamp));
|
|
2727
2672
|
});
|
|
2728
|
-
polls.forEach(function (pollObj) {
|
|
2729
|
-
return pollObj.atStart ? initPolls.push(pollObj) : nonInitPolls.push(pollObj);
|
|
2730
|
-
});
|
|
2731
|
-
if (nonInitPolls.length > 0) polls = nonInitPolls;
|
|
2732
2673
|
}
|
|
2733
2674
|
|
|
2734
2675
|
var restartPlayer = function restartPlayer() {
|
|
@@ -2803,14 +2744,7 @@ var Video = function Video(_ref) {
|
|
|
2803
2744
|
return _ref2.apply(this, arguments);
|
|
2804
2745
|
};
|
|
2805
2746
|
}();
|
|
2806
|
-
|
|
2807
|
-
if (initPolls.length > 0) {
|
|
2808
|
-
player.pause();
|
|
2809
|
-
setPollItems(initPolls);
|
|
2810
|
-
setPollUrl(targeting.document_url[0]);
|
|
2811
|
-
setIsPollingTime(true);
|
|
2812
|
-
initPolls = [];
|
|
2813
|
-
}
|
|
2747
|
+
|
|
2814
2748
|
if (autoplay) {
|
|
2815
2749
|
autoPlayVideo();
|
|
2816
2750
|
}
|
|
@@ -2818,15 +2752,20 @@ var Video = function Video(_ref) {
|
|
|
2818
2752
|
// Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2819
2753
|
Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2820
2754
|
});
|
|
2821
|
-
|
|
2755
|
+
// let intId
|
|
2756
|
+
// const convertTime = (timeStr) => {
|
|
2757
|
+
// const minutes = parseInt(timeStr.slice(0, 2))
|
|
2758
|
+
// const seconds = parseInt(timeStr.slice(3))
|
|
2759
|
+
// return minutes * 60 + seconds
|
|
2760
|
+
// }
|
|
2761
|
+
// const modalTimes = []
|
|
2762
|
+
// polls.forEach(pollObj => modalTimes.push(convertTime(pollObj.timestamp)))
|
|
2822
2763
|
player.on('play', function (evt) {
|
|
2823
|
-
console.log('in player.on');
|
|
2824
2764
|
var duration = player.mediainfo.duration;
|
|
2825
2765
|
var current = player.currentTime();
|
|
2826
2766
|
var queue = Math.floor(duration / 10);
|
|
2827
2767
|
var segment = Math.floor(current / queue);
|
|
2828
|
-
|
|
2829
|
-
if (polls && initPolls.length === 0) {
|
|
2768
|
+
if (polls) {
|
|
2830
2769
|
var vidPlayer = this;
|
|
2831
2770
|
intId = setInterval(function () {
|
|
2832
2771
|
var ct = player.currentTime();
|
|
@@ -2927,8 +2866,6 @@ var Video = function Video(_ref) {
|
|
|
2927
2866
|
, textInputRender: textInputRender
|
|
2928
2867
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2929
2868
|
, multiChoiceRender: multiChoiceRender
|
|
2930
|
-
// eslint-disable-next-line react/jsx-indent-props
|
|
2931
|
-
, closeable: node.polls && node.polls[0] ? node.polls[0].closeable : null
|
|
2932
2869
|
}) : null,
|
|
2933
2870
|
React__default.createElement(ReactPlayerLoader, {
|
|
2934
2871
|
onSuccess: onVideoSuccess,
|
|
@@ -2961,8 +2898,6 @@ var Video = function Video(_ref) {
|
|
|
2961
2898
|
, textInputRender: textInputRender
|
|
2962
2899
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2963
2900
|
, multiChoiceRender: multiChoiceRender
|
|
2964
|
-
// eslint-disable-next-line react/jsx-indent-props
|
|
2965
|
-
, closeable: node.polls && node.polls[0] ? node.polls[0].closeable : null
|
|
2966
2901
|
}) : null,
|
|
2967
2902
|
React__default.createElement(ReactPlayerLoader, {
|
|
2968
2903
|
accountId: accountIDs.brightcove.accountId,
|
|
@@ -2996,9 +2931,6 @@ var Video = function Video(_ref) {
|
|
|
2996
2931
|
, textInputRender: textInputRender
|
|
2997
2932
|
// eslint-disable-next-line react/jsx-indent-props
|
|
2998
2933
|
, multiChoiceRender: multiChoiceRender
|
|
2999
|
-
// eslint-disable-next-line react/jsx-indent-props
|
|
3000
|
-
, closeable: node.polls && node.polls[0] ? node.polls[0].closeable : null
|
|
3001
|
-
|
|
3002
2934
|
}) : null
|
|
3003
2935
|
);
|
|
3004
2936
|
}
|
|
@@ -8215,6 +8147,24 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8215
8147
|
);
|
|
8216
8148
|
};
|
|
8217
8149
|
|
|
8150
|
+
// https://github.com/tc39/proposal-object-values-entries
|
|
8151
|
+
|
|
8152
|
+
var $values = _objectToArray(false);
|
|
8153
|
+
|
|
8154
|
+
_export(_export.S, 'Object', {
|
|
8155
|
+
values: function values(it) {
|
|
8156
|
+
return $values(it);
|
|
8157
|
+
}
|
|
8158
|
+
});
|
|
8159
|
+
|
|
8160
|
+
var values$1 = _core.Object.values;
|
|
8161
|
+
|
|
8162
|
+
var values = createCommonjsModule(function (module) {
|
|
8163
|
+
module.exports = { "default": values$1, __esModule: true };
|
|
8164
|
+
});
|
|
8165
|
+
|
|
8166
|
+
var _Object$values = unwrapExports(values);
|
|
8167
|
+
|
|
8218
8168
|
var Poll = function Poll(_ref) {
|
|
8219
8169
|
var node = _ref.node;
|
|
8220
8170
|
_ref.client;
|
package/dist/esm/index.js
CHANGED
|
@@ -87,7 +87,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
87
87
|
export { default as YahooHero } from './YahooHero.js';
|
|
88
88
|
export { default as GridHero } from './GridHero.js';
|
|
89
89
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
90
|
-
export { g as getSerializers } from './index-
|
|
90
|
+
export { g as getSerializers } from './index-04817712.js';
|
|
91
91
|
export { default as Beam } from './Beam.js';
|
|
92
92
|
export { default as Segment } from './Segment.js';
|
|
93
93
|
export { default as KMTracker } from './KMTracker.js';
|