@mjhls/mjh-framework 1.0.891 → 1.0.893-form-assembly-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 +168 -168
- package/dist/cjs/AccordionPanel.js +1 -1
- package/dist/cjs/AlgoliaSearch.js +131 -15
- package/dist/cjs/ArticleProgramLandingPage.js +2 -2
- package/dist/cjs/ArticleSeriesListing.js +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +5 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +2 -3
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +2 -3
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +2 -2
- package/dist/cjs/GridContentPaginated.js +2 -3
- package/dist/cjs/HamMagazine.js +10 -10
- package/dist/cjs/HorizontalArticleListing.js +2 -2
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueLanding.js +31 -31
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +10 -11
- package/dist/cjs/{MediaSeriesCard-8b4efd28.js → MediaSeriesCard-52a642d0.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +8 -8
- package/dist/cjs/MediaSeriesLandingPaginated.js +10 -11
- package/dist/cjs/NavMagazine.js +11 -11
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-42f92f7c.js +97 -0
- package/dist/cjs/PartnerDetailListing.js +2 -2
- package/dist/cjs/PartnerDetailListingPaginated.js +4 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +2 -3
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-de93a303.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/Ustream.js +53 -62
- package/dist/cjs/VideoProgramLandingPage.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +6 -6
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getSerializers.js +2 -2
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-6d59cc5b.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-6f89aea7.js → index-2a3d37a1.js} +3 -2
- package/dist/cjs/{index.esm-8647570b.js → index.esm-d51c9ac6.js} +3 -3
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-d81454e7.js} +0 -3
- package/dist/cjs/index.js +5 -5
- package/dist/esm/AccordionPanel.js +1 -1
- package/dist/esm/AlgoliaSearch.js +132 -16
- package/dist/esm/ArticleProgramLandingPage.js +2 -2
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/CMEDeck.js +5 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +2 -3
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +2 -3
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +2 -2
- package/dist/esm/GridContentPaginated.js +2 -3
- package/dist/esm/HamMagazine.js +10 -10
- package/dist/esm/HorizontalArticleListing.js +2 -2
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueLanding.js +31 -31
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +10 -11
- package/dist/esm/{MediaSeriesCard-51ebf1c0.js → MediaSeriesCard-2a278504.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +8 -8
- package/dist/esm/MediaSeriesLandingPaginated.js +10 -11
- package/dist/esm/NavMagazine.js +11 -11
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-484b86c5.js +90 -0
- package/dist/esm/PartnerDetailListing.js +2 -2
- package/dist/esm/PartnerDetailListingPaginated.js +4 -5
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +2 -3
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-98ad6d97.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/Ustream.js +53 -62
- package/dist/esm/VideoProgramLandingPage.js +2 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +6 -6
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getSerializers.js +2 -2
- package/dist/esm/{getTargeting-4061f839.js → getTargeting-36031a00.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-ca0c9ff5.js → index-681431c9.js} +3 -2
- package/dist/esm/{index.esm-0a31ab97.js → index.esm-1bd8a0a8.js} +3 -3
- package/dist/esm/{index.esm-f6156a57.js → index.esm-eb1e8e80.js} +1 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/package.json +112 -112
- package/dist/cjs/Pagination-4a929dd5.js +0 -90
- package/dist/esm/Pagination-b1ec9ba8.js +0 -82
|
@@ -375,32 +375,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
375
375
|
|
|
376
376
|
var _Set = unwrapExports(set);
|
|
377
377
|
|
|
378
|
-
/* usage & query
|
|
379
|
-
const Publication = (props) => {
|
|
380
|
-
const { cache, pub, year } = props
|
|
381
|
-
const targeting = {
|
|
382
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
383
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
384
|
-
}
|
|
385
|
-
return (
|
|
386
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
387
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
388
|
-
</Shell>
|
|
389
|
-
)
|
|
390
|
-
}
|
|
391
|
-
Publication.getInitialProps = async (ctx) => {
|
|
392
|
-
const { query } = ctx
|
|
393
|
-
const {
|
|
394
|
-
query: { year },
|
|
395
|
-
} = ctx
|
|
396
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
397
|
-
**import urlFor from framework**
|
|
398
|
-
pub.issues.map((issue) => {
|
|
399
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
400
|
-
})
|
|
401
|
-
return { pub, year }
|
|
402
|
-
}
|
|
403
|
-
export default Publication
|
|
378
|
+
/* usage & query
|
|
379
|
+
const Publication = (props) => {
|
|
380
|
+
const { cache, pub, year } = props
|
|
381
|
+
const targeting = {
|
|
382
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
383
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
384
|
+
}
|
|
385
|
+
return (
|
|
386
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
387
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
388
|
+
</Shell>
|
|
389
|
+
)
|
|
390
|
+
}
|
|
391
|
+
Publication.getInitialProps = async (ctx) => {
|
|
392
|
+
const { query } = ctx
|
|
393
|
+
const {
|
|
394
|
+
query: { year },
|
|
395
|
+
} = ctx
|
|
396
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
397
|
+
**import urlFor from framework**
|
|
398
|
+
pub.issues.map((issue) => {
|
|
399
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
400
|
+
})
|
|
401
|
+
return { pub, year }
|
|
402
|
+
}
|
|
403
|
+
export default Publication
|
|
404
404
|
*/
|
|
405
405
|
|
|
406
406
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -17,7 +17,7 @@ import { A as ADlgInfeed } from './ADlgInfeed-013e1f4a.js';
|
|
|
17
17
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
18
18
|
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
19
19
|
import urlFor from './urlFor.js';
|
|
20
|
-
import { P as Pagination } from './Pagination-
|
|
20
|
+
import { P as Pagination } from './Pagination-484b86c5.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
22
|
import './core.get-iterator-method-ea258bb1.js';
|
|
23
23
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -36,9 +36,8 @@ import './Beam.js';
|
|
|
36
36
|
import './stringify-2b084bee.js';
|
|
37
37
|
import './Segment.js';
|
|
38
38
|
import './index-3f5c03b2.js';
|
|
39
|
-
import 'react-paginate';
|
|
40
39
|
import 'react-bootstrap/Button';
|
|
41
|
-
import './index.esm-
|
|
40
|
+
import './index.esm-1bd8a0a8.js';
|
|
42
41
|
import './iconBase-ccc56b97.js';
|
|
43
42
|
|
|
44
43
|
var _this = undefined;
|
package/dist/esm/RecentNews.js
CHANGED
|
@@ -11,34 +11,34 @@ import './index-3f5c03b2.js';
|
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
|
|
14
|
-
/*
|
|
15
|
-
Sample query
|
|
16
|
-
let references = ''
|
|
17
|
-
if(article.taxonomyMapping.length > 0){
|
|
18
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
-
references = references + `references('${ref._ref}') `
|
|
20
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
-
references = references + ` && `
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
27
|
-
...,
|
|
28
|
-
title,
|
|
29
|
-
summary,
|
|
30
|
-
thumbnail,
|
|
31
|
-
url,
|
|
32
|
-
published,
|
|
33
|
-
authorMapping[]->,
|
|
34
|
-
contentCategory->
|
|
35
|
-
}`
|
|
36
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
-
|
|
38
|
-
Sample usage
|
|
39
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
-
|
|
41
|
-
|
|
14
|
+
/*
|
|
15
|
+
Sample query
|
|
16
|
+
let references = ''
|
|
17
|
+
if(article.taxonomyMapping.length > 0){
|
|
18
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
+
references = references + `references('${ref._ref}') `
|
|
20
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
+
references = references + ` && `
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
27
|
+
...,
|
|
28
|
+
title,
|
|
29
|
+
summary,
|
|
30
|
+
thumbnail,
|
|
31
|
+
url,
|
|
32
|
+
published,
|
|
33
|
+
authorMapping[]->,
|
|
34
|
+
contentCategory->
|
|
35
|
+
}`
|
|
36
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
+
|
|
38
|
+
Sample usage
|
|
39
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
+
|
|
41
|
+
|
|
42
42
|
*/
|
|
43
43
|
var RelatedContent = function RelatedContent(props) {
|
|
44
44
|
var client = props.client,
|
|
@@ -14,16 +14,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14
14
|
_ref$className = _ref.className,
|
|
15
15
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
-
example:
|
|
20
|
-
<RelatedTopicDropdown
|
|
21
|
-
page='/clinical'
|
|
22
|
-
exclude="clinical"
|
|
23
|
-
className='mb-3'
|
|
24
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
-
subTaxonomies={props.subTaxonomies}
|
|
26
|
-
/>
|
|
17
|
+
/*
|
|
18
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
+
example:
|
|
20
|
+
<RelatedTopicDropdown
|
|
21
|
+
page='/clinical'
|
|
22
|
+
exclude="clinical"
|
|
23
|
+
className='mb-3'
|
|
24
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
+
subTaxonomies={props.subTaxonomies}
|
|
26
|
+
/>
|
|
27
27
|
*/
|
|
28
28
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
29
29
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect, useRef } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
7
7
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
8
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-98ad6d97.js';
|
|
9
9
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -6,10 +6,10 @@ import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
|
6
6
|
import urlFor from './urlFor.js';
|
|
7
7
|
import { m as main_43, a as main_49, b as main_42 } from './main-1894c974.js';
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
GROQ query -
|
|
11
|
-
accepts an array of title, URL
|
|
12
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
9
|
+
/*
|
|
10
|
+
GROQ query -
|
|
11
|
+
accepts an array of title, URL
|
|
12
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var SeriesSlider = function SeriesSlider(_ref) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -32,8 +32,8 @@ var renderLink = function renderLink(row) {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
var SideFooter = function SideFooter(props) {
|
|
35
|
-
/*
|
|
36
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
35
|
+
/*
|
|
36
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
37
37
|
*/
|
|
38
38
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
39
39
|
socialLinks = _get.socialLinks,
|
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-681431c9.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
10
10
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -48,7 +48,7 @@ import 'react-bootstrap/Col';
|
|
|
48
48
|
import './inherits-a6ba2ec4.js';
|
|
49
49
|
import './_object-sap-7cee6f84.js';
|
|
50
50
|
import './define-property-5f1bda73.js';
|
|
51
|
-
import './index.esm-
|
|
51
|
+
import './index.esm-eb1e8e80.js';
|
|
52
52
|
import './iconBase-ccc56b97.js';
|
|
53
53
|
import 'react-bootstrap/Figure';
|
|
54
54
|
import 'react-bootstrap/OverlayTrigger';
|
|
@@ -52,7 +52,7 @@ import 'react-bootstrap/Navbar';
|
|
|
52
52
|
import 'react-bootstrap/NavDropdown';
|
|
53
53
|
import './index.esm-9b042655.js';
|
|
54
54
|
import './iconBase-ccc56b97.js';
|
|
55
|
-
import './index.esm-
|
|
55
|
+
import './index.esm-eb1e8e80.js';
|
|
56
56
|
import './NavFooter-e27bd93b.js';
|
|
57
57
|
import './index.esm-37268dca.js';
|
|
58
58
|
import './SocialSearchComponent-4b56cd8c.js';
|
package/dist/esm/Ustream.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import { F as FaRegWindowClose } from './index.esm-0a31ab97.js';
|
|
4
|
+
import { F as FaWindowClose } from './index.esm-1bd8a0a8.js';
|
|
6
5
|
import { m as main_43 } from './main-1894c974.js';
|
|
7
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
7
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -15,27 +14,26 @@ var _this = undefined;
|
|
|
15
14
|
|
|
16
15
|
var Ustream = function Ustream(_ref) {
|
|
17
16
|
var _ref$width = _ref.width,
|
|
18
|
-
width = _ref$width === undefined ? '
|
|
17
|
+
width = _ref$width === undefined ? '320px' : _ref$width,
|
|
19
18
|
_ref$height = _ref.height,
|
|
20
|
-
height = _ref$height === undefined ? '
|
|
19
|
+
height = _ref$height === undefined ? 'auto' : _ref$height,
|
|
21
20
|
_ref$close = _ref.close,
|
|
22
|
-
close = _ref$close === undefined ? false : _ref$close
|
|
23
|
-
_ref
|
|
24
|
-
|
|
25
|
-
_ref$src = _ref.src,
|
|
21
|
+
close = _ref$close === undefined ? false : _ref$close;
|
|
22
|
+
_ref.right;
|
|
23
|
+
var _ref$src = _ref.src,
|
|
26
24
|
src = _ref$src === undefined ? 'https://video.ibm.com/embed/23627444?volume=0&autoplay=true' : _ref$src,
|
|
27
25
|
_ref$logEvent = _ref.logEvent,
|
|
28
26
|
logEvent = _ref$logEvent === undefined ? function () {} : _ref$logEvent;
|
|
29
27
|
|
|
30
28
|
var _useState = useState(width),
|
|
31
29
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
-
currentWidth = _useState2[0]
|
|
33
|
-
|
|
30
|
+
currentWidth = _useState2[0];
|
|
31
|
+
_useState2[1];
|
|
34
32
|
|
|
35
33
|
var _useState3 = useState(height),
|
|
36
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
_useState4 = _slicedToArray(_useState3, 2);
|
|
35
|
+
_useState4[0];
|
|
36
|
+
_useState4[1];
|
|
39
37
|
|
|
40
38
|
var _useState5 = useState(true),
|
|
41
39
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
@@ -43,41 +41,35 @@ var Ustream = function Ustream(_ref) {
|
|
|
43
41
|
setIsMuted = _useState6[1];
|
|
44
42
|
|
|
45
43
|
var ustreamContainer = useRef(null);
|
|
44
|
+
var clickableLink = useRef(null);
|
|
45
|
+
var frameUrl = 'https://mjh-web.s3.amazonaws.com/_media/mwn_frame_v2.jpg';
|
|
46
46
|
|
|
47
|
+
function handleClose(ev) {
|
|
48
|
+
ev.preventDefault();
|
|
49
|
+
ev.stopPropagation();
|
|
50
|
+
ustreamContainer.current.remove();
|
|
51
|
+
}
|
|
47
52
|
useEffect(function () {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
58
|
-
} else {
|
|
59
|
-
document.querySelector('.ustream-minimize').addEventListener('click', function (e) {
|
|
60
|
-
container.style.position = 'static';
|
|
61
|
-
container.style.padding = '0 1rem';
|
|
62
|
-
container.classList.add('closed');
|
|
63
|
-
setWidth('100%');
|
|
64
|
-
// aspect ratio
|
|
65
|
-
var newHeight = 9 / 16 * ustreamContainer.current.clientWidth;
|
|
66
|
-
setHeight(newHeight);
|
|
67
|
-
document.querySelector('.ustream-minimize').remove();
|
|
53
|
+
if (!main_43) {
|
|
54
|
+
try {
|
|
55
|
+
var container = document.getElementById('ustream-container');
|
|
56
|
+
var ustream = document.getElementById('ustream-iframe');
|
|
57
|
+
ustream.setAttribute('src', src);
|
|
58
|
+
var referrerUrl = window && window.location.hostname.replace('www.', '').replace('.com', '').replace('.net', '').replace('.vercel.app', '') || ';';
|
|
59
|
+
var mwnUrl = 'https://www.medicalworldnews.com/?utm_source=' + referrerUrl + '&utm_medium=web&utm_campaign=mwn&ultv=true';
|
|
60
|
+
clickableLink.current.href = mwnUrl;
|
|
61
|
+
if (close) {
|
|
68
62
|
var closeBtn = document.querySelector('.ustream-close');
|
|
69
|
-
closeBtn.style.display = 'block';
|
|
70
63
|
closeBtn.addEventListener('click', function () {
|
|
71
64
|
container.remove();
|
|
72
65
|
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
66
|
+
}
|
|
67
|
+
} catch (err) {}
|
|
68
|
+
}
|
|
76
69
|
}, []);
|
|
77
70
|
|
|
78
71
|
useEffect(function () {
|
|
79
|
-
|
|
80
|
-
if (isMuted) {
|
|
72
|
+
if (isMuted && !main_43) {
|
|
81
73
|
var loadUstreamListener = function () {
|
|
82
74
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
83
75
|
var UstreamEmbed, viewer, reporting;
|
|
@@ -120,36 +112,35 @@ var Ustream = function Ustream(_ref) {
|
|
|
120
112
|
if (main_43) {
|
|
121
113
|
return null;
|
|
122
114
|
}
|
|
115
|
+
|
|
123
116
|
return React__default.createElement(
|
|
124
117
|
'div',
|
|
125
|
-
{
|
|
118
|
+
{
|
|
119
|
+
id: 'ustream-container',
|
|
120
|
+
ref: ustreamContainer,
|
|
121
|
+
style: { width: '' + currentWidth, position: 'fixed', bottom: '2rem', left: '2rem', zIndex: '999999', boxShadow: '2px 4px 8px rgba(0,0,0,.35)', borderRadius: '5px', overflow: 'hidden' } },
|
|
126
122
|
React__default.createElement(
|
|
127
|
-
'
|
|
128
|
-
{
|
|
129
|
-
|
|
123
|
+
'a',
|
|
124
|
+
{ ref: clickableLink, target: '_blank', href: '' },
|
|
125
|
+
React__default.createElement(FaWindowClose, { style: { position: 'absolute', top: '0', right: '0', width: '22px', height: '20px', color: '#fff', background: '#000', padding: '2px' }, onClick: function onClick(e) {
|
|
126
|
+
return handleClose(e);
|
|
127
|
+
} }),
|
|
128
|
+
React__default.createElement('img', { src: frameUrl, style: { width: '100%' } }),
|
|
129
|
+
React__default.createElement(
|
|
130
130
|
'div',
|
|
131
|
-
{
|
|
132
|
-
React__default.createElement(FaRegWindowClose, { style: { color: '#fff', fontSize: '1.3rem' } })
|
|
133
|
-
) : React__default.createElement(
|
|
134
|
-
React__default.Fragment,
|
|
135
|
-
null,
|
|
136
|
-
React__default.createElement(
|
|
137
|
-
'div',
|
|
138
|
-
{ className: 'ustream-minimize' },
|
|
139
|
-
React__default.createElement(IoIosOpen, { style: right ? { color: '#fff', fontSize: '1.3rem', transform: 'rotateZ(-90deg)' } : { color: '#fff', fontSize: '1.3rem' } })
|
|
140
|
-
),
|
|
131
|
+
{ style: { position: 'absolute', top: '48px', left: '26px', width: '272px' } },
|
|
141
132
|
React__default.createElement(
|
|
142
133
|
'div',
|
|
143
|
-
{
|
|
144
|
-
React__default.createElement(
|
|
134
|
+
{ style: { position: 'relative', width: '100%', paddingTop: '56.25%', overflow: 'hidden', borderRadius: '10px' } },
|
|
135
|
+
React__default.createElement('iframe', {
|
|
136
|
+
id: 'ustream-iframe',
|
|
137
|
+
webkitallowfullscreen: 'true',
|
|
138
|
+
allowFullScreen: true,
|
|
139
|
+
frameBorder: 'no',
|
|
140
|
+
style: { position: 'absolute', top: '0', bottom: '0', left: '0', right: '0', width: '100%', height: '100%', pointerEvents: 'none', borderRadius: '10px' }
|
|
141
|
+
})
|
|
145
142
|
)
|
|
146
|
-
)
|
|
147
|
-
React__default.createElement('iframe', { id: 'ustream-iframe', webkitallowfullscreen: 'true', allowFullScreen: true, frameBorder: 'no', style: { maxWidth: '100%', height: currentHeight, width: currentWidth } })
|
|
148
|
-
),
|
|
149
|
-
React__default.createElement(
|
|
150
|
-
'style',
|
|
151
|
-
{ jsx: 'true' },
|
|
152
|
-
'\n #ustream-container {\n position: fixed;\n bottom: 0;\n ' + (right ? 'right: 1rem;' : 'left: 1.5rem;') + '\n /* Updating z-index to fix gutter ad over ustream */\n z-index: 999999;\n max-width: 100%;\n }\n .ustream-minimize,\n .ustream-close {\n position: absolute;\n color: white;\n right: 0.5rem;\n top: 0.25rem;\n cursor: pointer;\n font-weight: bold;\n }\n .ustream-close {\n ' + (close ? 'display: block; right: .75rem; top: .5rem; ' : 'display: none; right: .5rem; top: .75rem;') + '\n }\n @media screen and (max-width: 768px) {\n #ustream-container:not(.closed) {\n width: 231px !important;\n height: 130px !important;\n }\n #ustream-container:not(.closed) iframe {\n height: 130px !important;\n }\n }\n '
|
|
143
|
+
)
|
|
153
144
|
)
|
|
154
145
|
);
|
|
155
146
|
};
|
|
@@ -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-681431c9.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -50,7 +50,7 @@ import 'react-bootstrap/Row';
|
|
|
50
50
|
import './inherits-a6ba2ec4.js';
|
|
51
51
|
import './_object-sap-7cee6f84.js';
|
|
52
52
|
import './define-property-5f1bda73.js';
|
|
53
|
-
import './index.esm-
|
|
53
|
+
import './index.esm-eb1e8e80.js';
|
|
54
54
|
import './iconBase-ccc56b97.js';
|
|
55
55
|
import 'react-bootstrap/Figure';
|
|
56
56
|
import 'react-bootstrap/OverlayTrigger';
|
|
@@ -15,7 +15,7 @@ import 'react-dom';
|
|
|
15
15
|
import './slicedToArray-6ebcbfea.js';
|
|
16
16
|
import './index-3f5c03b2.js';
|
|
17
17
|
|
|
18
|
-
var css = ".VideoSeriesCard-module_article__Hlc3e {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.VideoSeriesCard-module_article__Hlc3e a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.VideoSeriesCard-module_thumb__3hGyJ {\n width: 25%;\n}\n.VideoSeriesCard-module_thumb__3hGyJ img {\n width: 100%;\n height: auto;\n}\n.VideoSeriesCard-module_info__2_i1N {\n width: 75%;\n font-size: 1rem;\n}\n.VideoSeriesCard-module_info__2_i1N h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.VideoSeriesCard-module_published__1fI0q {\n color: #6d6d6d;\n margin: 0;\n}\n.VideoSeriesCard-module_summary__3hWJT {\n margin: 0.5rem 0 0 0;\n}\n.VideoSeriesCard-module_author__aU35o {\n margin: 0;\n}\n.VideoSeriesCard-module_author__aU35o span {\n color: #6d6d6d;\n}\n@media only screen and (max-width: 568px) {\n .VideoSeriesCard-module_article__Hlc3e {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .VideoSeriesCard-module_article__Hlc3e a {\n flex-direction: column;\n align-items: center;\n }\n .VideoSeriesCard-module_thumb__3hGyJ {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .VideoSeriesCard-module_thumb__3hGyJ img{\n border-radius: 10px 10px 0 0; \n }\n .VideoSeriesCard-module_thumb__3hGyJ figure {\n margin: 0;\n }\n .VideoSeriesCard-module_info__2_i1N {\n width: 90%;\n padding: 1rem !important;\n }\n .VideoSeriesCard-module_info__2_i1N h2 {\n font-size: 1rem;\n }\n}\n";
|
|
18
|
+
var css = ".VideoSeriesCard-module_article__Hlc3e {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.VideoSeriesCard-module_article__Hlc3e a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ {\r\n width: 25%;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_published__1fI0q {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_summary__3hWJT {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o {\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o span {\r\n color: #6d6d6d;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .VideoSeriesCard-module_article__Hlc3e {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .VideoSeriesCard-module_article__Hlc3e a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ figure {\r\n margin: 0;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N {\r\n width: 90%;\r\n padding: 1rem !important;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N h2 {\r\n font-size: 1rem;\r\n }\r\n}\r\n";
|
|
19
19
|
var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
|
|
20
20
|
styleInject(css);
|
|
21
21
|
|
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
5
5
|
import Container from 'react-bootstrap/Container';
|
|
6
6
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
7
|
-
import { I as IoIosArrowForward } from './index.esm-
|
|
7
|
+
import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
|
|
8
8
|
import { m as moment } from './moment-bc12cb97.js';
|
|
9
9
|
import { withRouter } from 'next/router';
|
|
10
10
|
import YoutubeGroup from './YoutubeGroup.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -15,14 +15,14 @@ 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-681431c9.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-98ad6d97.js';
|
|
21
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-36031a00.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
25
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-
|
|
25
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-1bd8a0a8.js';
|
|
26
26
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
27
27
|
import './index-755f2cc2.js';
|
|
28
28
|
import { DiscussionEmbed } from 'disqus-react';
|
|
@@ -60,7 +60,7 @@ import 'react-bootstrap/Col';
|
|
|
60
60
|
import './inherits-a6ba2ec4.js';
|
|
61
61
|
import './_object-sap-7cee6f84.js';
|
|
62
62
|
import './define-property-5f1bda73.js';
|
|
63
|
-
import './index.esm-
|
|
63
|
+
import './index.esm-eb1e8e80.js';
|
|
64
64
|
import './iconBase-ccc56b97.js';
|
|
65
65
|
import 'react-bootstrap/Figure';
|
|
66
66
|
import 'react-bootstrap/OverlayTrigger';
|
|
@@ -337,7 +337,7 @@ var ISI = function ISI(props) {
|
|
|
337
337
|
);
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
340
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\n";
|
|
341
341
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
342
342
|
styleInject(css);
|
|
343
343
|
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -12,10 +12,10 @@ import 'react-dom';
|
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
import './index-3f5c03b2.js';
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
GROQ query -
|
|
17
|
-
accepts an array of title, URL
|
|
18
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
15
|
+
/*
|
|
16
|
+
GROQ query -
|
|
17
|
+
accepts an array of title, URL
|
|
18
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { g as default } from './index-
|
|
3
|
+
export { g as default } from './index-681431c9.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -48,7 +48,7 @@ import 'react-bootstrap/Col';
|
|
|
48
48
|
import './inherits-a6ba2ec4.js';
|
|
49
49
|
import './_object-sap-7cee6f84.js';
|
|
50
50
|
import './define-property-5f1bda73.js';
|
|
51
|
-
import './index.esm-
|
|
51
|
+
import './index.esm-eb1e8e80.js';
|
|
52
52
|
import './iconBase-ccc56b97.js';
|
|
53
53
|
import 'react-bootstrap/Figure';
|
|
54
54
|
import 'react-bootstrap/OverlayTrigger';
|
|
@@ -2,18 +2,18 @@ import { _ as _extends } from './extends-6d8e3924.js';
|
|
|
2
2
|
import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var cp_url = '';
|
|
6
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
7
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
11
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
return cp_url;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
var getTargeting = function getTargeting(props) {
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import './toConsumableArray-f7074d7c.js';
|
|
3
|
-
export { g as default } from './getTargeting-
|
|
3
|
+
export { g as default } from './getTargeting-36031a00.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './core.get-iterator-method-ea258bb1.js';
|
|
6
6
|
import './_object-pie-133f504a.js';
|
|
@@ -31,7 +31,7 @@ import Row$1 from 'react-bootstrap/Row';
|
|
|
31
31
|
import Col$1 from 'react-bootstrap/Col';
|
|
32
32
|
import Head from 'next/head';
|
|
33
33
|
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a6ba2ec4.js';
|
|
34
|
-
import {
|
|
34
|
+
import { c as IoIosArrowDropupCircle } from './index.esm-eb1e8e80.js';
|
|
35
35
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
36
36
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
37
37
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
@@ -2518,6 +2518,7 @@ var Video = function Video(_ref) {
|
|
|
2518
2518
|
playlistId: playlistID,
|
|
2519
2519
|
playerId: accountIDs.brightcove.playerId,
|
|
2520
2520
|
onSuccess: onVideoSuccess,
|
|
2521
|
+
onFailure: onVideoFailure,
|
|
2521
2522
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2522
2523
|
}),
|
|
2523
2524
|
React__default.createElement(
|
|
@@ -9814,7 +9815,7 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9814
9815
|
useEffect(function () {
|
|
9815
9816
|
if (FormID) {
|
|
9816
9817
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
9817
|
-
var anonymousID = typeof analytics !== 'undefined' && analytics.user() && analytics.user().anonymousId();
|
|
9818
|
+
var anonymousID = typeof analytics !== 'undefined' && typeof analytics.user === 'function' && analytics.user() && analytics.user().anonymousId();
|
|
9818
9819
|
if (anonymousID && needSegmentSupport) {
|
|
9819
9820
|
src = src + '?tfa_1=' + anonymousID;
|
|
9820
9821
|
}
|
|
@@ -11,8 +11,8 @@ function FaArrowLeft (props) {
|
|
|
11
11
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(props);
|
|
12
12
|
}function FaPlus (props) {
|
|
13
13
|
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(props);
|
|
14
|
-
}function
|
|
15
|
-
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-
|
|
14
|
+
}function FaWindowClose (props) {
|
|
15
|
+
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"}}]})(props);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { FaWindowClose as F, FaLongArrowAltRight as a, FaMinus as b, FaPlus as c, FaArrowRight as d, FaArrowLeft as e };
|