@mjhls/mjh-framework 1.0.1020 → 1.0.1022

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 (168) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD300x250.js +1 -1
  3. package/dist/cjs/AD300x250x600.js +1 -1
  4. package/dist/cjs/AD728x90.js +1 -1
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/{ADInfeed-89488c41.js → ADInfeed-5dabd71d.js} +1 -1
  8. package/dist/cjs/ADSkyscraper.js +1 -1
  9. package/dist/cjs/ADSponsoredResources.js +1 -1
  10. package/dist/cjs/ADWebcast.js +1 -1
  11. package/dist/cjs/ADWelcome.js +1 -1
  12. package/dist/cjs/{ADlgInfeed-9d62050b.js → ADlgInfeed-1766ce0a.js} +1 -1
  13. package/dist/cjs/AdSlot.js +1 -1
  14. package/dist/cjs/AdSlotsProvider.js +1 -1
  15. package/dist/cjs/AlgoliaSearch.js +72 -108
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +3 -3
  18. package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
  19. package/dist/cjs/ArticleSeriesListing.js +1 -1
  20. package/dist/cjs/Auth.js +10 -1492
  21. package/dist/cjs/AuthWrapper.js +294 -1546
  22. package/dist/cjs/CEDeckSupabase.js +2 -2
  23. package/dist/cjs/CMEDeck.js +1 -1
  24. package/dist/cjs/Column3.js +1 -1
  25. package/dist/cjs/ConferenceArticleCard.js +15 -15
  26. package/dist/cjs/ContentCardPaginated.js +3 -3
  27. package/dist/cjs/DeckContent.js +11 -11
  28. package/dist/cjs/DeckQueue.js +2 -2
  29. package/dist/cjs/DeckQueuePaginated.js +2 -2
  30. package/dist/cjs/EventsDeck.js +18 -18
  31. package/dist/cjs/ExternalResources.js +3 -3
  32. package/dist/cjs/Feature.js +1 -1
  33. package/dist/cjs/GridContent.js +4 -4
  34. package/dist/cjs/GridContentPaginated.js +4 -4
  35. package/dist/cjs/GridHero.js +1 -1
  36. package/dist/cjs/HamMagazine.js +11 -11
  37. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  38. package/dist/cjs/Hero.js +1 -1
  39. package/dist/cjs/HorizontalArticleListing.js +3 -3
  40. package/dist/cjs/{ImageSlider-1ec0408b.js → ImageSlider-fd0cc91c.js} +123 -106
  41. package/dist/cjs/IssueLanding.js +34 -34
  42. package/dist/cjs/KMTracker.js +15 -15
  43. package/dist/cjs/LeftNav.js +1 -1
  44. package/dist/cjs/MasterDeck.js +11 -11
  45. package/dist/cjs/MasterDeckPaginated.js +11 -11
  46. package/dist/cjs/{MediaSeriesCard-de7f7fcc.js → MediaSeriesCard-ae205d40.js} +2 -2
  47. package/dist/cjs/MediaSeriesLanding.js +13 -13
  48. package/dist/cjs/MediaSeriesLandingPaginated.js +13 -13
  49. package/dist/cjs/NavMagazine.js +12 -12
  50. package/dist/cjs/NavNative.js +10 -10
  51. package/dist/cjs/OncliveLargeHero.js +1 -1
  52. package/dist/cjs/PartnerDetailListing.js +6 -6
  53. package/dist/cjs/PartnerDetailListingPaginated.js +6 -6
  54. package/dist/cjs/PodcastsLanding.js +6 -6
  55. package/dist/cjs/PubSection.js +4 -4
  56. package/dist/cjs/PublicationLanding.js +26 -26
  57. package/dist/cjs/QueueDeckExpanded.js +4 -4
  58. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
  59. package/dist/cjs/RelatedContent.js +28 -28
  60. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  61. package/dist/cjs/SeriesListingDeck.js +2 -2
  62. package/dist/cjs/{SeriesSlider-fc6dd07d.js → SeriesSlider-0b2a2775.js} +5 -5
  63. package/dist/cjs/SideFooter.js +2 -2
  64. package/dist/cjs/{SocialSearchComponent-b99947d4.js → SocialSearchComponent-6924a853.js} +1 -1
  65. package/dist/cjs/TaxonomyDescription.js +17 -15
  66. package/dist/cjs/TemplateNormal.js +2 -2
  67. package/dist/cjs/ThumbnailCard.js +1 -1
  68. package/dist/cjs/{Tooltip-71754b2a.js → Tooltip-980a1d1a.js} +313 -511
  69. package/dist/cjs/Ustream.js +1 -1
  70. package/dist/cjs/VideoProgramLandingPage.js +3 -3
  71. package/dist/cjs/VideoSeriesCard.js +1 -1
  72. package/dist/cjs/VideoSeriesLandingPage.js +3 -3
  73. package/dist/cjs/VideoSeriesListing.js +1 -1
  74. package/dist/cjs/View.js +7 -7
  75. package/dist/cjs/YahooHero.js +2 -2
  76. package/dist/cjs/YoutubeGroup.js +5 -5
  77. package/dist/cjs/{entities-df1aed86.js → entities-3f9d0f2f.js} +0 -4
  78. package/dist/cjs/getSerializers.js +3 -3
  79. package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-4439c99d.js} +9 -9
  80. package/dist/cjs/getTargeting.js +1 -1
  81. package/dist/cjs/{index-b95410f0.js → index-8041a4eb.js} +45 -0
  82. package/dist/cjs/{index-3111bc4e.js → index-b78ce702.js} +2 -2
  83. package/dist/cjs/index.js +11 -10
  84. package/dist/cjs/{main-ae8472f3.js → main-47be4f9f.js} +9 -4
  85. package/dist/esm/AD300x250.js +1 -1
  86. package/dist/esm/AD300x250x600.js +1 -1
  87. package/dist/esm/AD728x90.js +1 -1
  88. package/dist/esm/ADFloatingFooter.js +1 -1
  89. package/dist/esm/ADGutter.js +1 -1
  90. package/dist/esm/{ADInfeed-fb3b056f.js → ADInfeed-cfc4f7b2.js} +1 -1
  91. package/dist/esm/ADSkyscraper.js +1 -1
  92. package/dist/esm/ADSponsoredResources.js +1 -1
  93. package/dist/esm/ADWebcast.js +1 -1
  94. package/dist/esm/ADWelcome.js +1 -1
  95. package/dist/esm/{ADlgInfeed-29f7b84c.js → ADlgInfeed-74c975b9.js} +1 -1
  96. package/dist/esm/AdSlot.js +1 -1
  97. package/dist/esm/AdSlotsProvider.js +1 -1
  98. package/dist/esm/AlgoliaSearch.js +59 -95
  99. package/dist/esm/ArticleCarousel.js +1 -1
  100. package/dist/esm/ArticleProgramLandingPage.js +3 -3
  101. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  102. package/dist/esm/ArticleSeriesListing.js +1 -1
  103. package/dist/esm/Auth.js +9 -1492
  104. package/dist/esm/AuthWrapper.js +288 -1540
  105. package/dist/esm/CEDeckSupabase.js +2 -2
  106. package/dist/esm/CMEDeck.js +1 -1
  107. package/dist/esm/Column3.js +1 -1
  108. package/dist/esm/ConferenceArticleCard.js +15 -15
  109. package/dist/esm/ContentCardPaginated.js +3 -3
  110. package/dist/esm/DeckContent.js +11 -11
  111. package/dist/esm/DeckQueue.js +2 -2
  112. package/dist/esm/DeckQueuePaginated.js +2 -2
  113. package/dist/esm/EventsDeck.js +18 -18
  114. package/dist/esm/ExternalResources.js +3 -3
  115. package/dist/esm/Feature.js +1 -1
  116. package/dist/esm/GridContent.js +4 -4
  117. package/dist/esm/GridContentPaginated.js +4 -4
  118. package/dist/esm/GridHero.js +1 -1
  119. package/dist/esm/HamMagazine.js +11 -11
  120. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  121. package/dist/esm/Hero.js +1 -1
  122. package/dist/esm/HorizontalArticleListing.js +3 -3
  123. package/dist/esm/{ImageSlider-83913c4c.js → ImageSlider-c3a57384.js} +124 -107
  124. package/dist/esm/IssueLanding.js +34 -34
  125. package/dist/esm/KMTracker.js +15 -15
  126. package/dist/esm/LeftNav.js +1 -1
  127. package/dist/esm/MasterDeck.js +11 -11
  128. package/dist/esm/MasterDeckPaginated.js +11 -11
  129. package/dist/esm/{MediaSeriesCard-8ec69f60.js → MediaSeriesCard-957b218d.js} +2 -2
  130. package/dist/esm/MediaSeriesLanding.js +13 -13
  131. package/dist/esm/MediaSeriesLandingPaginated.js +13 -13
  132. package/dist/esm/NavMagazine.js +12 -12
  133. package/dist/esm/NavNative.js +10 -10
  134. package/dist/esm/OncliveLargeHero.js +1 -1
  135. package/dist/esm/PartnerDetailListing.js +6 -6
  136. package/dist/esm/PartnerDetailListingPaginated.js +6 -6
  137. package/dist/esm/PodcastsLanding.js +6 -6
  138. package/dist/esm/PubSection.js +4 -4
  139. package/dist/esm/PublicationLanding.js +26 -26
  140. package/dist/esm/QueueDeckExpanded.js +4 -4
  141. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  142. package/dist/esm/RelatedContent.js +28 -28
  143. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  144. package/dist/esm/SeriesListingDeck.js +2 -2
  145. package/dist/esm/{SeriesSlider-771918ce.js → SeriesSlider-3f4d6012.js} +5 -5
  146. package/dist/esm/SideFooter.js +2 -2
  147. package/dist/esm/{SocialSearchComponent-aedf8322.js → SocialSearchComponent-2451acd2.js} +1 -1
  148. package/dist/esm/TaxonomyDescription.js +17 -15
  149. package/dist/esm/TemplateNormal.js +2 -2
  150. package/dist/esm/ThumbnailCard.js +1 -1
  151. package/dist/esm/{Tooltip-8307d9d1.js → Tooltip-51957f7c.js} +108 -306
  152. package/dist/esm/Ustream.js +1 -1
  153. package/dist/esm/VideoProgramLandingPage.js +3 -3
  154. package/dist/esm/VideoSeriesCard.js +1 -1
  155. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  156. package/dist/esm/VideoSeriesListing.js +1 -1
  157. package/dist/esm/View.js +7 -7
  158. package/dist/esm/YahooHero.js +2 -2
  159. package/dist/esm/YoutubeGroup.js +5 -5
  160. package/dist/esm/{entities-6d9154b4.js → entities-932b50cf.js} +0 -4
  161. package/dist/esm/getSerializers.js +3 -3
  162. package/dist/esm/{getTargeting-9bd28724.js → getTargeting-c6884f34.js} +9 -9
  163. package/dist/esm/getTargeting.js +1 -1
  164. package/dist/esm/{index-174b5baf.js → index-67e1773f.js} +43 -1
  165. package/dist/esm/{index-a71a6cc7.js → index-f2f5b752.js} +2 -2
  166. package/dist/esm/index.js +11 -10
  167. package/dist/esm/{main-754d4992.js → main-f97773b2.js} +9 -4
  168. package/package.json +116 -116
@@ -376,32 +376,32 @@ module.exports = { "default": set$1, __esModule: true };
376
376
 
377
377
  var _Set = unwrapExports(set);
378
378
 
379
- /* usage & query
380
- const Publication = (props) => {
381
- const { cache, pub, year } = props
382
- const targeting = {
383
- content_placement: [`/journals/${pub.identifier.current}`],
384
- document_url: [`/journals/${pub.identifier.current}`],
385
- }
386
- return (
387
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
388
- <PublicationLanding publication={pub} year={year} href={'journals'} />
389
- </Shell>
390
- )
391
- }
392
- Publication.getInitialProps = async (ctx) => {
393
- const { query } = ctx
394
- const {
395
- query: { year },
396
- } = ctx
397
- const pub = await client.fetch(getQuery('publication'), query)
398
- **import urlFor from framework**
399
- pub.issues.map((issue) => {
400
- issue.thumbnail = urlFor({client, source: issue.thumbnail})
401
- })
402
- return { pub, year }
403
- }
404
- export default Publication
379
+ /* usage & query
380
+ const Publication = (props) => {
381
+ const { cache, pub, year } = props
382
+ const targeting = {
383
+ content_placement: [`/journals/${pub.identifier.current}`],
384
+ document_url: [`/journals/${pub.identifier.current}`],
385
+ }
386
+ return (
387
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
388
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
389
+ </Shell>
390
+ )
391
+ }
392
+ Publication.getInitialProps = async (ctx) => {
393
+ const { query } = ctx
394
+ const {
395
+ query: { year },
396
+ } = ctx
397
+ const pub = await client.fetch(getQuery('publication'), query)
398
+ **import urlFor from framework**
399
+ pub.issues.map((issue) => {
400
+ issue.thumbnail = urlFor({client, source: issue.thumbnail})
401
+ })
402
+ return { pub, year }
403
+ }
404
+ export default Publication
405
405
  */
406
406
 
407
407
  var generateContentPlacements = function generateContentPlacements(issues) {
@@ -10,12 +10,12 @@ import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
10
10
  import { l as lib_3 } from './index-5cc7b406.js';
11
11
  import { useRouter } from 'next/router';
12
12
  import { L as LazyLoad } from './index-755f2cc2.js';
13
- import { m as main_43 } from './main-754d4992.js';
14
- import { c as clean_html_1 } from './entities-6d9154b4.js';
15
- import { A as ADInfeed } from './ADInfeed-fb3b056f.js';
13
+ import { m as main_43 } from './main-f97773b2.js';
14
+ import { c as clean_html_1 } from './entities-932b50cf.js';
15
+ import { A as ADInfeed } from './ADInfeed-cfc4f7b2.js';
16
16
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
17
17
  import { l as lodash } from './lodash-f97fd99a.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-29f7b84c.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-74c975b9.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -9,11 +9,11 @@ import { l as lib_3 } from './index-5cc7b406.js';
9
9
  import { useRouter } from 'next/router';
10
10
  import { L as LazyLoad } from './index-755f2cc2.js';
11
11
  import { l as lodash } from './lodash-f97fd99a.js';
12
- import { m as main_43 } from './main-754d4992.js';
13
- import { c as clean_html_1 } from './entities-6d9154b4.js';
14
- import { A as ADInfeed } from './ADInfeed-fb3b056f.js';
12
+ import { m as main_43 } from './main-f97773b2.js';
13
+ import { c as clean_html_1 } from './entities-932b50cf.js';
14
+ import { A as ADInfeed } from './ADInfeed-cfc4f7b2.js';
15
15
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
16
- import { A as ADlgInfeed } from './ADlgInfeed-29f7b84c.js';
16
+ import { A as ADlgInfeed } from './ADlgInfeed-74c975b9.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';
@@ -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-5cc7b406.js';
7
7
  import { I as InfiniteScroll } from './index.es-a6137319.js';
8
- import { S as SeriesSlider } from './SeriesSlider-771918ce.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-3f4d6012.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';
@@ -19,7 +19,7 @@ import 'react-dom';
19
19
  import './smoothscroll-fa4e3f8c.js';
20
20
  import './urlFor.js';
21
21
  import './index-3f5c03b2.js';
22
- import './main-754d4992.js';
22
+ import './main-f97773b2.js';
23
23
 
24
24
  var usePrevious = function usePrevious(value) {
25
25
  var ref = useRef();
@@ -4,12 +4,12 @@ import { g as getYoutubeId } from './index-c7e2ac95.js';
4
4
  import { L as LazyLoad } from './index-755f2cc2.js';
5
5
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
6
6
  import urlFor from './urlFor.js';
7
- import { m as main_43, a as main_49, b as main_42 } from './main-754d4992.js';
7
+ import { m as main_43, a as main_49, b as main_42 } from './main-f97773b2.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) {
@@ -31,8 +31,8 @@ var renderLink = function renderLink(row) {
31
31
  };
32
32
 
33
33
  var SideFooter = function SideFooter(props) {
34
- /*
35
- useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
34
+ /*
35
+ useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
36
36
  */
37
37
  var _get = get_1(props, 'cache.siteSettingCache', {}),
38
38
  socialLinks = _get.socialLinks,
@@ -6,7 +6,7 @@ import { I as IconContext } from './iconBase-ccc56b97.js';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import FormControl from 'react-bootstrap/FormControl';
8
8
  import Button from 'react-bootstrap/Button';
9
- import { g as main_34, c as main_44 } from './main-754d4992.js';
9
+ import { g as main_34, c as main_44 } from './main-f97773b2.js';
10
10
 
11
11
  var SocialSearchComponent = function SocialSearchComponent(_ref) {
12
12
  var type = _ref.type,
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
5
5
  import { useRouter } from 'next/router';
6
6
  import Head from 'next/head';
7
7
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
8
- import { g as getSerializers } from './index-a71a6cc7.js';
8
+ import { g as getSerializers } from './index-f2f5b752.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './_object-pie-133f504a.js';
@@ -22,7 +22,7 @@ import './util-8ed16d48.js';
22
22
  import './Beam.js';
23
23
  import './stringify-2b084bee.js';
24
24
  import './Segment.js';
25
- import './main-754d4992.js';
25
+ import './main-f97773b2.js';
26
26
  import './urlForFile-b69adffc.js';
27
27
  import './index-755f2cc2.js';
28
28
  import 'react-dom';
@@ -43,7 +43,7 @@ import './SocialShare.js';
43
43
  import 'react-share';
44
44
  import './toConsumableArray-f7074d7c.js';
45
45
  import 'react-bootstrap/Pagination';
46
- import './entities-6d9154b4.js';
46
+ import './entities-932b50cf.js';
47
47
  import './AdSlot.js';
48
48
  import './debounce-533d9748.js';
49
49
  import './isSymbol-a7e9aafe.js';
@@ -156,41 +156,43 @@ TaxonomyDescription.getDescription = function () {
156
156
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
157
157
  var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
158
158
  var client = arguments[1];
159
- var query, summary, taxonomyData;
159
+ var parent_id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
160
+ var parent_query, query, summary, taxonomyData;
160
161
  return regenerator.wrap(function _callee2$(_context2) {
161
162
  while (1) {
162
163
  switch (_context2.prev = _context2.next) {
163
164
  case 0:
164
- query = '*[_type == \'taxonomy\' && identifier == \'' + url + '\'][0]{summary,pixelTrackingCode->}';
165
+ parent_query = parent_id ? ' && parent._ref == \'' + parent_id + '\' ' : '';
166
+ query = '*[_type == \'taxonomy\' && identifier == \'' + url + '\' ' + parent_query + '][0]{summary,pixelTrackingCode->}';
165
167
  summary = [];
166
- _context2.prev = 2;
167
- _context2.next = 5;
168
+ _context2.prev = 3;
169
+ _context2.next = 6;
168
170
  return client.fetch(query);
169
171
 
170
- case 5:
172
+ case 6:
171
173
  taxonomyData = _context2.sent;
172
174
 
173
175
  if (taxonomyData.summary) {
174
176
  summary = taxonomyData.summary;
175
177
  }
176
- _context2.next = 12;
178
+ _context2.next = 13;
177
179
  break;
178
180
 
179
- case 9:
180
- _context2.prev = 9;
181
- _context2.t0 = _context2['catch'](2);
181
+ case 10:
182
+ _context2.prev = 10;
183
+ _context2.t0 = _context2['catch'](3);
182
184
 
183
185
  console.error(_context2.t0);
184
186
 
185
- case 12:
187
+ case 13:
186
188
  return _context2.abrupt('return', summary);
187
189
 
188
- case 13:
190
+ case 14:
189
191
  case 'end':
190
192
  return _context2.stop();
191
193
  }
192
194
  }
193
- }, _callee2, _this, [[2, 9]]);
195
+ }, _callee2, _this, [[3, 10]]);
194
196
  }));
195
197
 
196
198
  return function () {
@@ -29,7 +29,7 @@ import './asyncToGenerator-958ef5fc.js';
29
29
  import './_library-528f1934.js';
30
30
  import './_iter-detect-98db3b07.js';
31
31
  import './Segment.js';
32
- import './main-754d4992.js';
32
+ import './main-f97773b2.js';
33
33
  import 'next/head';
34
34
  import '@mjhls/mjh-framework/dist/cjs/urlFor';
35
35
  import 'react-bootstrap/Row';
@@ -54,7 +54,7 @@ import './iconBase-ccc56b97.js';
54
54
  import './index.esm-eb1e8e80.js';
55
55
  import './NavFooter-27a16f65.js';
56
56
  import './index.esm-06bf63a3.js';
57
- import './SocialSearchComponent-aedf8322.js';
57
+ import './SocialSearchComponent-2451acd2.js';
58
58
  import './SocialIcons.js';
59
59
  import 'react-bootstrap/Form';
60
60
  import 'react-bootstrap/FormControl';
@@ -2,7 +2,7 @@ import React__default from 'react';
2
2
  import Media from 'react-bootstrap/Media';
3
3
  import urlFor from './urlFor.js';
4
4
  import { L as LazyLoad } from './index-755f2cc2.js';
5
- import { c as clean_html_1 } from './entities-6d9154b4.js';
5
+ import { c as clean_html_1 } from './entities-932b50cf.js';
6
6
  import './slicedToArray-6ebcbfea.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './web.dom.iterable-ab4dea5c.js';