@mjhls/mjh-framework 1.0.940 → 1.0.942-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/AlgoliaSearch.js +131 -15
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +1 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +1 -2
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContentPaginated.js +1 -2
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +30 -30
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +9 -10
- package/dist/cjs/{MediaSeriesCard-9c11cd19.js → MediaSeriesCard-1a49dd20.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +12 -10
- package/dist/cjs/MediaSeriesLandingPaginated.js +13 -12
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-42f92f7c.js +97 -0
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -3
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
- 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 +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +80 -34
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-3fb58417.js → index-afc485e6.js} +11 -2
- package/dist/cjs/index.js +3 -4
- package/dist/esm/AlgoliaSearch.js +132 -16
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +1 -2
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +1 -2
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContentPaginated.js +1 -2
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +30 -30
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +9 -10
- package/dist/esm/{MediaSeriesCard-b864b6d2.js → MediaSeriesCard-4903fc1f.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +12 -10
- package/dist/esm/MediaSeriesLandingPaginated.js +13 -12
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-484b86c5.js +90 -0
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +2 -3
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +1 -2
- 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 +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +80 -33
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-70081f22.js → index-489b46bc.js} +11 -2
- package/dist/esm/index.js +3 -4
- package/package.json +115 -115
- package/dist/cjs/Pagination-885dcfbd.js +0 -90
- package/dist/esm/Pagination-59436882.js +0 -82
|
@@ -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-489b46bc.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
10
10
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -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-489b46bc.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -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
|
|
package/dist/esm/View.js
CHANGED
|
@@ -15,10 +15,10 @@ 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-489b46bc.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
21
|
-
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-98ad6d97.js';
|
|
21
|
+
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-04d979c9.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
@@ -28,14 +28,13 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
28
28
|
import './index-755f2cc2.js';
|
|
29
29
|
import { DiscussionEmbed } from 'disqus-react';
|
|
30
30
|
import Schema from './Schema.js';
|
|
31
|
-
import
|
|
31
|
+
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
32
32
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
33
33
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
34
34
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
35
35
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
36
36
|
import getQuery from './getQuery.js';
|
|
37
37
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
38
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
39
38
|
import './core.get-iterator-method-ea258bb1.js';
|
|
40
39
|
import './web.dom.iterable-ab4dea5c.js';
|
|
41
40
|
import './_library-528f1934.js';
|
|
@@ -340,7 +339,7 @@ var ISI = function ISI(props) {
|
|
|
340
339
|
);
|
|
341
340
|
};
|
|
342
341
|
|
|
343
|
-
var css$1 = ".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";
|
|
342
|
+
var css$1 = ".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";
|
|
344
343
|
var styles$1 = { "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" };
|
|
345
344
|
styleInject(css$1);
|
|
346
345
|
|
|
@@ -439,7 +438,13 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
439
438
|
return showSocialShare;
|
|
440
439
|
};
|
|
441
440
|
|
|
442
|
-
var
|
|
441
|
+
var FileSaver_min = createCommonjsModule(function (module, exports) {
|
|
442
|
+
(function(a,b){b();})(commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
var css = ".RecommendedArticles-module_recommendTitle__2kUji {\r\n border-bottom: 2px solid var(--secondary-blue);\r\n font-size: 1.5rem;\r\n font-weight: bold;\r\n color: #0d335a;\r\n padding: 0.5rem;\r\n}\r\n.RecommendedArticles-module_recommendContainer__sZukI {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n margin: 0 -0.5rem;\r\n}\r\n.RecommendedArticles-module_recommendTop__1_yqw {\r\n margin: 0.5rem;\r\n width: 100%;\r\n flex-basis: 100%;\r\n display: flex;\r\n\r\n}\r\n.RecommendedArticles-module_recommendTopImg__1b9gu {\r\n min-width: 55%;\r\n width: 55%;\r\n height: 100%;\r\n}\r\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\r\n width: 100%;\r\n height: 100%;\r\n object-fit: cover;\r\n}\r\n.RecommendedArticles-module_recommendTopBody__-13FI {\r\n margin-left: 1rem;\r\n line-height: 1.3;\r\n color: #121212;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 25px;\r\n font-weight: bold;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RecommendedArticles-module_topBody__2_VNi {\r\n font-size: 19px;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 19px;\r\n color: rgb(43, 43, 151);\r\n text-decoration: underline;\r\n margin-top: auto;\r\n}\r\n.RecommendedArticles-module_smContainer__4byBO {\r\n width: calc(25% - 1rem);\r\n margin: 0 0.5rem;\r\n}\r\n.RecommendedArticles-module_smImage__TYZGY img {\r\n width: 100%;\r\n}\r\n.RecommendedArticles-module_title__3q1ud {\r\n margin-top: 1rem;\r\n line-height: 1.2;\r\n color: #121212;\r\n}\r\n.RecommendedArticles-module_category__2jRto {\r\n text-transform: uppercase;\r\n font-size: 16px;\r\n letter-spacing: 2px;\r\n margin: 0.25rem 0;\r\n}\r\n\r\n/* media query */\r\n\r\n@media screen and (max-width: 1399px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 21px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi {\r\n font-size: 15px;\r\n }\r\n}\r\n@media screen and (max-width: 1191px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 23px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi,\r\n .RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 17px;\r\n }\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 18px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi,\r\n .RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 15px;\r\n }\r\n}\r\n@media screen and (max-width: 768px) {\r\n .RecommendedArticles-module_recommendTop__1_yqw {\r\n flex-direction: column;\r\n }\r\n .RecommendedArticles-module_recommendTopImg__1b9gu,\r\n .RecommendedArticles-module_recommendTopBody__-13FI {\r\n width: 100%;\r\n margin: 0;\r\n }\r\n .RecommendedArticles-module_recommendTopBody__-13FI {\r\n margin-bottom: 1rem;\r\n }\r\n .RecommendedArticles-module_smContainer__4byBO {\r\n width: calc(50% - 1rem);\r\n }\r\n}";
|
|
443
448
|
var styles = { "recommendTitle": "RecommendedArticles-module_recommendTitle__2kUji", "recommendContainer": "RecommendedArticles-module_recommendContainer__sZukI", "recommendTop": "RecommendedArticles-module_recommendTop__1_yqw", "recommendTopImg": "RecommendedArticles-module_recommendTopImg__1b9gu", "recommendTopBody": "RecommendedArticles-module_recommendTopBody__-13FI", "topTitle": "RecommendedArticles-module_topTitle__2EafN", "topBody": "RecommendedArticles-module_topBody__2_VNi", "topLink": "RecommendedArticles-module_topLink__2RnXu", "smContainer": "RecommendedArticles-module_smContainer__4byBO", "smImage": "RecommendedArticles-module_smImage__TYZGY", "title": "RecommendedArticles-module_title__3q1ud", "category": "RecommendedArticles-module_category__2jRto" };
|
|
444
449
|
styleInject(css);
|
|
445
450
|
|
|
@@ -462,10 +467,11 @@ var Recommended = function Recommended(props) {
|
|
|
462
467
|
articles = _useState4[0],
|
|
463
468
|
setArticles = _useState4[1];
|
|
464
469
|
|
|
465
|
-
var _useState5 = useState(
|
|
470
|
+
var _useState5 = useState('loading'),
|
|
466
471
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
467
472
|
loaded = _useState6[0],
|
|
468
|
-
setLoaded = _useState6[1];
|
|
473
|
+
setLoaded = _useState6[1]; //loading, loaded, failed
|
|
474
|
+
|
|
469
475
|
|
|
470
476
|
var starting = index * 5;
|
|
471
477
|
var contentMapping = {
|
|
@@ -491,32 +497,33 @@ var Recommended = function Recommended(props) {
|
|
|
491
497
|
categories: _JSON$stringify(mainCategories)
|
|
492
498
|
});
|
|
493
499
|
}
|
|
494
|
-
|
|
500
|
+
|
|
495
501
|
// get users traits
|
|
496
502
|
var getSegmentProfile = function () {
|
|
497
503
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
498
|
-
var response, data, addTaxonomyName, favoriteCategories, articlesQuery, videosQuery, podcastQuery, params, _ref2, _ref3, _articles, videos, podcasts;
|
|
504
|
+
var anonymousId, response, data, addTaxonomyName, favoriteCategories, articlesCategory, videosCategory, podcastCategory, taxonomyCategories, taxonomies, articlesQuery, videosQuery, podcastQuery, params, _ref2, _ref3, _articles, videos, podcasts;
|
|
499
505
|
|
|
500
506
|
return regenerator.wrap(function _callee$(_context) {
|
|
501
507
|
while (1) {
|
|
502
508
|
switch (_context.prev = _context.next) {
|
|
503
509
|
case 0:
|
|
504
|
-
|
|
510
|
+
anonymousId = analytics.user().anonymousId();
|
|
511
|
+
_context.next = 3;
|
|
505
512
|
return fetch('/api/getSegmentProfile', {
|
|
506
513
|
method: 'POST',
|
|
507
514
|
body: _JSON$stringify({ anonymousId: anonymousId })
|
|
508
515
|
});
|
|
509
516
|
|
|
510
|
-
case
|
|
517
|
+
case 3:
|
|
511
518
|
response = _context.sent;
|
|
512
|
-
_context.next =
|
|
519
|
+
_context.next = 6;
|
|
513
520
|
return response.json();
|
|
514
521
|
|
|
515
|
-
case
|
|
522
|
+
case 6:
|
|
516
523
|
data = _context.sent;
|
|
517
524
|
|
|
518
525
|
if (!(data && data.traits && data.traits.favorite_article_category)) {
|
|
519
|
-
_context.next =
|
|
526
|
+
_context.next = 40;
|
|
520
527
|
break;
|
|
521
528
|
}
|
|
522
529
|
|
|
@@ -535,30 +542,62 @@ var Recommended = function Recommended(props) {
|
|
|
535
542
|
|
|
536
543
|
query = query + ' )';
|
|
537
544
|
|
|
538
|
-
console.log(query);
|
|
539
|
-
|
|
540
545
|
return query;
|
|
541
546
|
};
|
|
542
547
|
|
|
543
548
|
favoriteCategories = JSON.parse(data.traits.favorite_article_category);
|
|
544
|
-
// grab 3 articles from sanity different from the one currently being read
|
|
545
549
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
550
|
+
//grab contentCategory ID
|
|
551
|
+
|
|
552
|
+
_context.next = 12;
|
|
553
|
+
return client.fetch("*[_type == 'contentCategory' && name == 'Articles'][0]{_id}");
|
|
554
|
+
|
|
555
|
+
case 12:
|
|
556
|
+
articlesCategory = _context.sent;
|
|
557
|
+
_context.next = 15;
|
|
558
|
+
return client.fetch("*[_type == 'contentCategory' && name == 'Videos'][0]{_id}");
|
|
559
|
+
|
|
560
|
+
case 15:
|
|
561
|
+
videosCategory = _context.sent;
|
|
562
|
+
_context.next = 18;
|
|
563
|
+
return client.fetch("*[_type == 'contentCategory' && name == 'Podcasts'][0]{_id}");
|
|
564
|
+
|
|
565
|
+
case 18:
|
|
566
|
+
podcastCategory = _context.sent;
|
|
567
|
+
_context.next = 21;
|
|
568
|
+
return client.fetch('*[_type == \'taxonomy\' ' + addTaxonomyName(favoriteCategories) + ']');
|
|
569
|
+
|
|
570
|
+
case 21:
|
|
571
|
+
taxonomyCategories = _context.sent;
|
|
572
|
+
taxonomies = '';
|
|
573
|
+
|
|
574
|
+
taxonomyCategories.forEach(function (taxonomy, index) {
|
|
575
|
+
if (index === 0) {
|
|
576
|
+
taxonomies = taxonomies + (' && ( references(\'' + taxonomy._id + '\')');
|
|
577
|
+
} else {
|
|
578
|
+
taxonomies = taxonomies + (' || references(\'' + taxonomy._id + '\')');
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
taxonomies = taxonomies + ' )';
|
|
582
|
+
|
|
583
|
+
// grab 3 articles from sanity different from the one currently being read
|
|
584
|
+
articlesQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + articlesCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 5) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
585
|
+
videosQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + videosCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 1) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
586
|
+
podcastQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + podcastCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 2) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
549
587
|
params = {
|
|
550
588
|
id: article._id
|
|
551
589
|
};
|
|
552
|
-
_context.next =
|
|
590
|
+
_context.next = 31;
|
|
553
591
|
return _Promise.all([client.fetch(articlesQuery, params), client.fetch(videosQuery, params), client.fetch(podcastQuery, params)]);
|
|
554
592
|
|
|
555
|
-
case
|
|
593
|
+
case 31:
|
|
556
594
|
_ref2 = _context.sent;
|
|
557
595
|
_ref3 = _slicedToArray(_ref2, 3);
|
|
558
596
|
_articles = _ref3[0];
|
|
559
597
|
videos = _ref3[1];
|
|
560
598
|
podcasts = _ref3[2];
|
|
561
599
|
|
|
600
|
+
if (_articles.length === 0) setLoaded('failed');
|
|
562
601
|
if (_articles) {
|
|
563
602
|
if (videos[0] && _articles[2]) {
|
|
564
603
|
_articles[2] = videos[0];
|
|
@@ -571,8 +610,13 @@ var Recommended = function Recommended(props) {
|
|
|
571
610
|
}
|
|
572
611
|
setArticles(_articles);
|
|
573
612
|
}
|
|
613
|
+
_context.next = 41;
|
|
614
|
+
break;
|
|
574
615
|
|
|
575
|
-
case
|
|
616
|
+
case 40:
|
|
617
|
+
setLoaded('failed');
|
|
618
|
+
|
|
619
|
+
case 41:
|
|
576
620
|
case 'end':
|
|
577
621
|
return _context.stop();
|
|
578
622
|
}
|
|
@@ -588,12 +632,13 @@ var Recommended = function Recommended(props) {
|
|
|
588
632
|
getSegmentProfile();
|
|
589
633
|
} catch (err) {
|
|
590
634
|
console.log(err);
|
|
635
|
+
setLoaded('failed');
|
|
591
636
|
}
|
|
592
637
|
}, [segmentLoaded]);
|
|
593
638
|
|
|
594
639
|
useEffect(function () {
|
|
595
640
|
if (articles && articles.length > 0) {
|
|
596
|
-
setLoaded(
|
|
641
|
+
setLoaded('loaded');
|
|
597
642
|
}
|
|
598
643
|
}, [articles]);
|
|
599
644
|
|
|
@@ -601,18 +646,19 @@ var Recommended = function Recommended(props) {
|
|
|
601
646
|
try {
|
|
602
647
|
analytics.ready(function () {
|
|
603
648
|
setSegmentLoaded(function () {
|
|
604
|
-
return
|
|
649
|
+
return 'loaded';
|
|
605
650
|
});
|
|
606
651
|
});
|
|
607
652
|
} catch (err) {
|
|
608
653
|
console.log(err);
|
|
654
|
+
setLoaded('failed');
|
|
609
655
|
}
|
|
610
656
|
}, []);
|
|
611
657
|
|
|
612
658
|
return React__default.createElement(
|
|
613
659
|
'div',
|
|
614
660
|
{ id: 'recommended' },
|
|
615
|
-
loaded
|
|
661
|
+
loaded === 'loaded' && React__default.createElement(
|
|
616
662
|
React__default.Fragment,
|
|
617
663
|
null,
|
|
618
664
|
React__default.createElement(
|
|
@@ -633,7 +679,7 @@ var Recommended = function Recommended(props) {
|
|
|
633
679
|
{ className: styles.recommendTopImg },
|
|
634
680
|
React__default.createElement(
|
|
635
681
|
'a',
|
|
636
|
-
{ href: '/view/' + article.url.current },
|
|
682
|
+
{ href: '/view/' + article.url.current + '?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit' },
|
|
637
683
|
React__default.createElement('img', { src: urlFor({ source: article.thumbnail, client: client, imageHeight: 306, imageWidth: 544 }) })
|
|
638
684
|
)
|
|
639
685
|
),
|
|
@@ -652,7 +698,7 @@ var Recommended = function Recommended(props) {
|
|
|
652
698
|
),
|
|
653
699
|
React__default.createElement(
|
|
654
700
|
'a',
|
|
655
|
-
{ href: '/view/' + article.url.current, className: styles.topLink },
|
|
701
|
+
{ href: '/view/' + article.url.current + '?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit', className: styles.topLink },
|
|
656
702
|
'>> ',
|
|
657
703
|
'Read Article'
|
|
658
704
|
)
|
|
@@ -669,7 +715,7 @@ var Recommended = function Recommended(props) {
|
|
|
669
715
|
),
|
|
670
716
|
React__default.createElement(
|
|
671
717
|
'a',
|
|
672
|
-
{ href: '/view/' + article.url.current },
|
|
718
|
+
{ href: '/view/' + article.url.current + '?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit' },
|
|
673
719
|
React__default.createElement(
|
|
674
720
|
'div',
|
|
675
721
|
{ className: styles.smImage },
|
|
@@ -685,7 +731,8 @@ var Recommended = function Recommended(props) {
|
|
|
685
731
|
}
|
|
686
732
|
})
|
|
687
733
|
)
|
|
688
|
-
)
|
|
734
|
+
),
|
|
735
|
+
loaded === 'failed' && React__default.createElement(
|
|
689
736
|
'section',
|
|
690
737
|
{ id: 'related-content-section', className: 'my-1' },
|
|
691
738
|
(article.relatedArticle || RelevantTopics({ article: article })) && React__default.createElement(
|
|
@@ -1061,7 +1108,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1061
1108
|
var downloadRIS = function downloadRIS() {
|
|
1062
1109
|
var fileContent = generateRIS();
|
|
1063
1110
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
1064
|
-
|
|
1111
|
+
FileSaver_min.saveAs(file, 'citation-' + url + '.ris');
|
|
1065
1112
|
};
|
|
1066
1113
|
|
|
1067
1114
|
var RelevantTopics = function RelevantTopics() {
|
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-489b46bc.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -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-04d979c9.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './core.get-iterator-method-ea258bb1.js';
|
|
6
6
|
import './_object-pie-133f504a.js';
|
|
@@ -10181,10 +10181,19 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10181
10181
|
iframeSrc = _useState2[0],
|
|
10182
10182
|
setIframeSrc = _useState2[1];
|
|
10183
10183
|
|
|
10184
|
+
var _useState3 = useState(null),
|
|
10185
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
10186
|
+
anonymousID = _useState4[0],
|
|
10187
|
+
setAnonymousID = _useState4[1];
|
|
10188
|
+
|
|
10189
|
+
useEffect(function () {
|
|
10190
|
+
if (typeof analytics !== 'undefined' && typeof analytics.user === 'function' && analytics.user()) {
|
|
10191
|
+
setAnonymousID(analytics.user().anonymousId());
|
|
10192
|
+
}
|
|
10193
|
+
}, []);
|
|
10184
10194
|
useEffect(function () {
|
|
10185
10195
|
if (FormID) {
|
|
10186
10196
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
10187
|
-
var anonymousID = typeof analytics !== 'undefined' && typeof analytics.user === 'function' && analytics.user() && analytics.user().anonymousId();
|
|
10188
10197
|
if (anonymousID && needSegmentSupport) {
|
|
10189
10198
|
src = src + '?tfa_1=' + anonymousID;
|
|
10190
10199
|
}
|
|
@@ -10195,7 +10204,7 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10195
10204
|
}
|
|
10196
10205
|
setIframeSrc(encodeURI(src));
|
|
10197
10206
|
}
|
|
10198
|
-
}, []);
|
|
10207
|
+
}, [anonymousID]);
|
|
10199
10208
|
|
|
10200
10209
|
if (iframeSrc) {
|
|
10201
10210
|
return React__default.createElement(
|
package/dist/esm/index.js
CHANGED
|
@@ -86,7 +86,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
86
86
|
export { default as YahooHero } from './YahooHero.js';
|
|
87
87
|
export { default as GridHero } from './GridHero.js';
|
|
88
88
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
89
|
-
export { g as getSerializers } from './index-
|
|
89
|
+
export { g as getSerializers } from './index-489b46bc.js';
|
|
90
90
|
export { default as Beam } from './Beam.js';
|
|
91
91
|
export { default as Segment } from './Segment.js';
|
|
92
92
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -101,7 +101,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
|
101
101
|
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
102
102
|
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
103
103
|
export { default as Schema } from './Schema.js';
|
|
104
|
-
export { g as getTargeting } from './getTargeting-
|
|
104
|
+
export { g as getTargeting } from './getTargeting-04d979c9.js';
|
|
105
105
|
export { default as getKeywords } from './getKeywords.js';
|
|
106
106
|
export { default as getQuery } from './getQuery.js';
|
|
107
107
|
import './toConsumableArray-f7074d7c.js';
|
|
@@ -191,10 +191,9 @@ import 'swr';
|
|
|
191
191
|
import 'passport-local';
|
|
192
192
|
import 'mysql';
|
|
193
193
|
import './md5-4e42248e.js';
|
|
194
|
-
import './SeriesSlider-
|
|
194
|
+
import './SeriesSlider-98ad6d97.js';
|
|
195
195
|
import './style-inject.es-1f59c1d0.js';
|
|
196
196
|
import 'disqus-react';
|
|
197
|
-
import 'file-saver';
|
|
198
197
|
import 'react-twitter-embed';
|
|
199
198
|
import './ImageSlider-f84174cb.js';
|
|
200
199
|
import './defineProperty-23a8f8cd.js';
|