@mjhls/mjh-framework 1.0.946-formassembly-fix-v1 → 1.0.947

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.
Files changed (86) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AlgoliaSearch.js +15 -131
  3. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  4. package/dist/cjs/AuthWrapper.js +1 -1
  5. package/dist/cjs/ConferenceArticleCard.js +15 -15
  6. package/dist/cjs/ContentCardPaginated.js +2 -1
  7. package/dist/cjs/DeckContent.js +8 -8
  8. package/dist/cjs/DeckQueuePaginated.js +2 -1
  9. package/dist/cjs/EventsDeck.js +17 -17
  10. package/dist/cjs/ExternalResources.js +1 -1
  11. package/dist/cjs/GridContentPaginated.js +2 -1
  12. package/dist/cjs/HamMagazine.js +9 -9
  13. package/dist/cjs/HorizontalArticleListing.js +1 -1
  14. package/dist/cjs/IssueLanding.js +30 -30
  15. package/dist/cjs/KMTracker.js +15 -15
  16. package/dist/cjs/MasterDeck.js +8 -8
  17. package/dist/cjs/MasterDeckPaginated.js +10 -9
  18. package/dist/cjs/{MediaSeriesCard-cb9df4f8.js → MediaSeriesCard-46db6b28.js} +2 -2
  19. package/dist/cjs/MediaSeriesLanding.js +7 -7
  20. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -8
  21. package/dist/cjs/NavMagazine.js +10 -10
  22. package/dist/cjs/NavNative.js +9 -9
  23. package/dist/cjs/Pagination-885dcfbd.js +90 -0
  24. package/dist/cjs/PartnerDetailListing.js +1 -1
  25. package/dist/cjs/PartnerDetailListingPaginated.js +3 -2
  26. package/dist/cjs/PublicationLanding.js +26 -26
  27. package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
  28. package/dist/cjs/RelatedContent.js +28 -28
  29. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  30. package/dist/cjs/SeriesListingDeck.js +1 -1
  31. package/dist/cjs/{SeriesSlider-de93a303.js → SeriesSlider-ba0c5d1a.js} +4 -4
  32. package/dist/cjs/SideFooter.js +2 -2
  33. package/dist/cjs/TaxonomyDescription.js +1 -1
  34. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  35. package/dist/cjs/VideoSeriesCard.js +1 -1
  36. package/dist/cjs/View.js +37 -29
  37. package/dist/cjs/YoutubeGroup.js +4 -4
  38. package/dist/cjs/getSerializers.js +1 -1
  39. package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
  40. package/dist/cjs/getTargeting.js +1 -1
  41. package/dist/cjs/{index-82cc25c0.js → index-5b137d75.js} +7 -17
  42. package/dist/cjs/index.js +4 -3
  43. package/dist/esm/AlgoliaSearch.js +16 -132
  44. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  45. package/dist/esm/AuthWrapper.js +1 -1
  46. package/dist/esm/ConferenceArticleCard.js +15 -15
  47. package/dist/esm/ContentCardPaginated.js +2 -1
  48. package/dist/esm/DeckContent.js +8 -8
  49. package/dist/esm/DeckQueuePaginated.js +2 -1
  50. package/dist/esm/EventsDeck.js +17 -17
  51. package/dist/esm/ExternalResources.js +1 -1
  52. package/dist/esm/GridContentPaginated.js +2 -1
  53. package/dist/esm/HamMagazine.js +9 -9
  54. package/dist/esm/HorizontalArticleListing.js +1 -1
  55. package/dist/esm/IssueLanding.js +30 -30
  56. package/dist/esm/KMTracker.js +15 -15
  57. package/dist/esm/MasterDeck.js +8 -8
  58. package/dist/esm/MasterDeckPaginated.js +10 -9
  59. package/dist/esm/{MediaSeriesCard-e76b2f8f.js → MediaSeriesCard-3cf65f1a.js} +2 -2
  60. package/dist/esm/MediaSeriesLanding.js +7 -7
  61. package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
  62. package/dist/esm/NavMagazine.js +10 -10
  63. package/dist/esm/NavNative.js +9 -9
  64. package/dist/esm/Pagination-59436882.js +82 -0
  65. package/dist/esm/PartnerDetailListing.js +1 -1
  66. package/dist/esm/PartnerDetailListingPaginated.js +3 -2
  67. package/dist/esm/PublicationLanding.js +26 -26
  68. package/dist/esm/QueueDeckExpandedPaginated.js +2 -1
  69. package/dist/esm/RelatedContent.js +28 -28
  70. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  71. package/dist/esm/SeriesListingDeck.js +1 -1
  72. package/dist/esm/{SeriesSlider-98ad6d97.js → SeriesSlider-45adb8dc.js} +4 -4
  73. package/dist/esm/SideFooter.js +2 -2
  74. package/dist/esm/TaxonomyDescription.js +1 -1
  75. package/dist/esm/VideoProgramLandingPage.js +1 -1
  76. package/dist/esm/VideoSeriesCard.js +1 -1
  77. package/dist/esm/View.js +36 -29
  78. package/dist/esm/YoutubeGroup.js +4 -4
  79. package/dist/esm/getSerializers.js +1 -1
  80. package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
  81. package/dist/esm/getTargeting.js +1 -1
  82. package/dist/esm/{index-db6fa53f.js → index-106c4831.js} +7 -17
  83. package/dist/esm/index.js +4 -3
  84. package/package.json +115 -115
  85. package/dist/cjs/Pagination-42f92f7c.js +0 -97
  86. package/dist/esm/Pagination-484b86c5.js +0 -90
@@ -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-98ad6d97.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-45adb8dc.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) {
@@ -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-db6fa53f.js';
7
+ import { g as getSerializers } from './index-106c4831.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-db6fa53f.js';
8
+ import { g as getSerializers } from './index-106c4831.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 {\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";
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";
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-db6fa53f.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-106c4831.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { S as SeriesSlider } from './SeriesSlider-98ad6d97.js';
21
- import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-04d979c9.js';
20
+ import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
21
+ import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-42f9b439.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,13 +28,14 @@ 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 { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
31
+ import FileSaver from 'file-saver';
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';
38
39
  import './core.get-iterator-method-ea258bb1.js';
39
40
  import './web.dom.iterable-ab4dea5c.js';
40
41
  import './_library-528f1934.js';
@@ -339,7 +340,7 @@ var ISI = function ISI(props) {
339
340
  );
340
341
  };
341
342
 
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";
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";
343
344
  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" };
344
345
  styleInject(css$1);
345
346
 
@@ -438,13 +439,7 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
438
439
  return showSocialShare;
439
440
  };
440
441
 
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}";
442
+ var css = ".RecommendedArticles-module_recommendTitle__2kUji {\n border-bottom: 2px solid var(--secondary-blue);\n font-size: 1.5rem;\n font-weight: bold;\n color: #0d335a;\n padding: 0.5rem;\n}\n.RecommendedArticles-module_recommendContainer__sZukI {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin: 0 -0.5rem;\n}\n.RecommendedArticles-module_recommendTop__1_yqw {\n margin: 0.5rem;\n width: 100%;\n flex-basis: 100%;\n display: flex;\n\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu {\n min-width: 55%;\n width: 55%;\n height: 100%;\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.RecommendedArticles-module_recommendTopBody__-13FI {\n margin-left: 1rem;\n line-height: 1.3;\n color: #121212;\n display: flex;\n flex-direction: column;\n}\n.RecommendedArticles-module_topTitle__2EafN {\n font-size: 25px;\n font-weight: bold;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topBody__2_VNi {\n font-size: 19px;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topLink__2RnXu {\n font-size: 19px;\n color: rgb(43, 43, 151);\n text-decoration: underline;\n margin-top: auto;\n}\n.RecommendedArticles-module_smContainer__4byBO {\n width: calc(25% - 1rem);\n margin: 0 0.5rem;\n}\n.RecommendedArticles-module_smImage__TYZGY img {\n width: 100%;\n}\n.RecommendedArticles-module_title__3q1ud {\n margin-top: 1rem;\n line-height: 1.2;\n color: #121212;\n}\n.RecommendedArticles-module_category__2jRto {\n text-transform: uppercase;\n font-size: 16px;\n letter-spacing: 2px;\n margin: 0.25rem 0;\n}\n\n/* media query */\n\n@media screen and (max-width: 1399px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 21px;\n }\n .RecommendedArticles-module_topBody__2_VNi {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 1191px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 23px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 17px;\n }\n}\n@media screen and (max-width: 968px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 18px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 768px) {\n .RecommendedArticles-module_recommendTop__1_yqw {\n flex-direction: column;\n }\n .RecommendedArticles-module_recommendTopImg__1b9gu,\n .RecommendedArticles-module_recommendTopBody__-13FI {\n width: 100%;\n margin: 0;\n }\n .RecommendedArticles-module_recommendTopBody__-13FI {\n margin-bottom: 1rem;\n }\n .RecommendedArticles-module_smContainer__4byBO {\n width: calc(50% - 1rem);\n }\n}";
448
443
  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" };
449
444
  styleInject(css);
450
445
 
@@ -1113,7 +1108,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1113
1108
  var downloadRIS = function downloadRIS() {
1114
1109
  var fileContent = generateRIS();
1115
1110
  var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
1116
- FileSaver_min.saveAs(file, 'citation-' + url + '.ris');
1111
+ FileSaver.saveAs(file, 'citation-' + url + '.ris');
1117
1112
  };
1118
1113
 
1119
1114
  var RelevantTopics = function RelevantTopics() {
@@ -1167,7 +1162,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1167
1162
  React__default.createElement(
1168
1163
  'style',
1169
1164
  { jsx: 'true' },
1170
- '\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
1165
+ '\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
1171
1166
  )
1172
1167
  );
1173
1168
  }
@@ -1266,7 +1261,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1266
1261
  slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
1267
1262
  })
1268
1263
  });
1269
- var selectedIndex = indexes[1] + 1;
1264
+ var selectedIndex = !(indexes.length % 2) ? indexes.length / 2 + 1 : Math.round(indexes.length / 2);
1270
1265
  if (seriesInfo.hasVideo) {
1271
1266
  selectedIndex = seriesInfo.videoIndex;
1272
1267
  }
@@ -1297,9 +1292,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1297
1292
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
1298
1293
  React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
1299
1294
  refreshFlag: refreshFlag
1300
- // checkIsAdFound={previewAd ? null : checkIsAdFound}
1301
1295
  }))
1302
1296
  ),
1297
+ React__default.createElement(
1298
+ 'style',
1299
+ { jsx: 'true' },
1300
+ '\n .contextual-native-ad {\n margin-bottom: 1rem;\n }\n '
1301
+ ),
1303
1302
  React__default.createElement('span', { className: 'clearfix' }),
1304
1303
  React__default.createElement(
1305
1304
  'div',
@@ -1327,7 +1326,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1327
1326
  }, { viewport: [0, 0], sizes: ['fluid', [300, 100]] }] : [{ viewport: [0, 0], sizes: ['fluid', [300, 100]] }]
1328
1327
  })
1329
1328
  });
1330
- var _selectedIndex = indexes[1] + 1;
1329
+ var _selectedIndex = !(indexes.length % 2) ? indexes.length / 2 + 1 : Math.round(indexes.length / 2);
1331
1330
  if (seriesInfo.hasVideo) {
1332
1331
  _selectedIndex = seriesInfo.videoIndex;
1333
1332
  }
@@ -1342,12 +1341,20 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1342
1341
  contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
1343
1342
  article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
1344
1343
  (visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
1345
- 'div',
1346
- { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
1347
- React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
1348
- refreshFlag: refreshFlag
1349
- // checkIsAdFound={previewAd ? null : checkIsAdFound}
1350
- }))
1344
+ React__default.Fragment,
1345
+ null,
1346
+ React__default.createElement(
1347
+ 'div',
1348
+ { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
1349
+ React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
1350
+ refreshFlag: refreshFlag
1351
+ }))
1352
+ ),
1353
+ React__default.createElement(
1354
+ 'style',
1355
+ { jsx: 'true' },
1356
+ '\n .contextual-native-ad {\n margin-bottom: 1rem;\n }\n '
1357
+ )
1351
1358
  ),
1352
1359
  contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
1353
1360
  React__default.createElement(BlockContent, _extends({
@@ -1362,11 +1369,11 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1362
1369
  slotId: (payload.contextualVideoAD.slotId || 'in-context_video') + '-' + payload._id
1363
1370
  })
1364
1371
  });
1365
- var _selectedIndex2 = indexes[1] + 1;
1372
+ var _selectedIndex2 = !(indexes.length % 2) ? indexes.length / 2 + 1 : Math.round(indexes.length / 2);
1366
1373
  if (seriesInfo.hasVideo) {
1367
1374
  _selectedIndex2 = seriesInfo.videoIndex;
1368
1375
  }
1369
- var _checkIsAdFound2 = function _checkIsAdFound2(isFound) {
1376
+ var checkIsAdFound = function checkIsAdFound(isFound) {
1370
1377
  if (!isFound) {
1371
1378
  var parent = document.getElementById('contextual-video-ad-' + payload._id);
1372
1379
  parent.style.height = '0%';
@@ -1393,7 +1400,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1393
1400
  React__default.createElement(
1394
1401
  'div',
1395
1402
  { id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
1396
- React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
1403
+ React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
1397
1404
  ),
1398
1405
  React__default.createElement(BlockContent, _extends({
1399
1406
  serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
@@ -1402,7 +1409,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1402
1409
  }, client.config()))
1403
1410
  );
1404
1411
  } else {
1405
- var _selectedIndex3 = indexes[1] + 1;
1412
+ var _selectedIndex3 = !(indexes.length % 2) ? indexes.length / 2 + 1 : Math.round(indexes.length / 2);
1406
1413
  if (seriesInfo.hasVideo) {
1407
1414
  _selectedIndex3 = seriesInfo.videoIndex;
1408
1415
  }
@@ -1561,7 +1568,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1561
1568
  React__default.createElement(
1562
1569
  'style',
1563
1570
  { jsx: 'true' },
1564
- '\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n '
1571
+ '\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n '
1565
1572
  ),
1566
1573
  React__default.createElement(
1567
1574
  'div',
@@ -1781,7 +1788,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1781
1788
  if (index > 0) {
1782
1789
  return React__default.createElement(
1783
1790
  'div',
1784
- { key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
1791
+ { key: index, id: 'addid-' + index },
1785
1792
  ad.component
1786
1793
  );
1787
1794
  }
@@ -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-db6fa53f.js';
3
+ export { g as default } from './index-106c4831.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
- var cp_url = '';
6
- if (cp.ancestor && typeof cp.ancestor == 'string') {
7
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
- }
5
+ var cp_url = '';
6
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
7
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
+ }
9
9
 
10
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
- }
10
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
+ }
13
13
 
14
- cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
14
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
15
15
 
16
- return cp_url;
16
+ return cp_url;
17
17
  };
18
18
 
19
19
  var getTargeting = function getTargeting(props) {
@@ -1,6 +1,6 @@
1
1
  import './extends-6d8e3924.js';
2
2
  import './toConsumableArray-f7074d7c.js';
3
- export { g as default } from './getTargeting-04d979c9.js';
3
+ export { g as default } from './getTargeting-42f9b439.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './core.get-iterator-method-ea258bb1.js';
6
6
  import './_object-pie-133f504a.js';
@@ -8609,14 +8609,12 @@ var Slideshow = function Slideshow(_ref) {
8609
8609
  // }
8610
8610
  // }, [router])
8611
8611
 
8612
-
8613
8612
  //component reRenders twice due to the implementation of react-bootstrap carousel, will do this inside onChange slide
8614
8613
  // useEffect(() => {
8615
8614
  // DFPManager.refresh()
8616
8615
  // if (pageview) pageview(router.asPath)
8617
8616
  // }, [router])
8618
8617
 
8619
-
8620
8618
  var onChangeSlide = function onChangeSlide(selectedIndex) {
8621
8619
  var pageNumber = selectedIndex + 1;
8622
8620
  var href = '/view/' + router.query.url + '?page=' + pageNumber;
@@ -8644,16 +8642,12 @@ var Slideshow = function Slideshow(_ref) {
8644
8642
  'div',
8645
8643
  { style: { textAlign: 'center' }, className: '' },
8646
8644
  React__default.createElement(
8647
- LazyLoad,
8645
+ 'picture',
8648
8646
  null,
8649
- React__default.createElement(
8650
- 'picture',
8651
- null,
8652
- React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8653
- React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8654
- React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8655
- React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
8656
- )
8647
+ React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
8648
+ React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
8649
+ React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
8650
+ React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
8657
8651
  )
8658
8652
  )
8659
8653
  ),
@@ -10176,8 +10170,6 @@ var FormAssembly = function FormAssembly(props) {
10176
10170
  _props$node$needSegme = _props$node.needSegmentSupport,
10177
10171
  needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme;
10178
10172
 
10179
- var router = useRouter();
10180
-
10181
10173
  var _useState = useState(null),
10182
10174
  _useState2 = _slicedToArray(_useState, 2),
10183
10175
  iframeSrc = _useState2[0],
@@ -10194,17 +10186,15 @@ var FormAssembly = function FormAssembly(props) {
10194
10186
  }
10195
10187
  }, []);
10196
10188
  useEffect(function () {
10197
- var tfa_2 = router.query.tfa_2;
10198
-
10199
10189
  if (FormID) {
10200
10190
  var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
10201
10191
  if (anonymousID && needSegmentSupport) {
10202
10192
  src = src + '?tfa_1=' + anonymousID;
10203
10193
  }
10204
- if (tfa_2 || Promocode) {
10194
+ if (Promocode) {
10205
10195
  var pattern = /\?.+=.*/g;
10206
10196
  var hasQueryString = pattern.test(src);
10207
- src = hasQueryString ? src + '&tfa_2=' + (tfa_2 ? tfa_2 : Promocode) : src + '?tfa_2=' + (tfa_2 ? tfa_2 : Promocode);
10197
+ src = hasQueryString ? src + '&tfa_2=' + Promocode : src + '?tfa_2=' + Promocode;
10208
10198
  }
10209
10199
  setIframeSrc(encodeURI(src));
10210
10200
  }
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-db6fa53f.js';
89
+ export { g as getSerializers } from './index-106c4831.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-04d979c9.js';
104
+ export { g as getTargeting } from './getTargeting-42f9b439.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,9 +191,10 @@ import 'swr';
191
191
  import 'passport-local';
192
192
  import 'mysql';
193
193
  import './md5-4e42248e.js';
194
- import './SeriesSlider-98ad6d97.js';
194
+ import './SeriesSlider-45adb8dc.js';
195
195
  import './style-inject.es-1f59c1d0.js';
196
196
  import 'disqus-react';
197
+ import 'file-saver';
197
198
  import 'react-twitter-embed';
198
199
  import './ImageSlider-f84174cb.js';
199
200
  import './defineProperty-23a8f8cd.js';