@mjhls/mjh-framework 1.0.1067-iframe-test → 1.0.1067

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 (176) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +1 -2
  4. package/dist/cjs/AD300x250x600.js +1 -2
  5. package/dist/cjs/AD728x90.js +1 -2
  6. package/dist/cjs/ADFloatingFooter.js +1 -2
  7. package/dist/cjs/ADGutter.js +1 -2
  8. package/dist/cjs/ADSkyscraper.js +1 -2
  9. package/dist/cjs/ADSponsoredResources.js +1 -2
  10. package/dist/cjs/ADWebcast.js +1 -2
  11. package/dist/cjs/ADWelcome.js +1 -2
  12. package/dist/cjs/AdSlot.js +1 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -2
  14. package/dist/cjs/AlgoliaSearch.js +1024 -513
  15. package/dist/cjs/ArticleProgramLandingPage.js +3 -4
  16. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/AuthWrapper.js +294 -1476
  19. package/dist/cjs/CEDeckSupabase.js +2 -3
  20. package/dist/cjs/CMEDeck.js +1 -2
  21. package/dist/cjs/Column3.js +1 -2
  22. package/dist/cjs/ConferenceArticleCard.js +15 -15
  23. package/dist/cjs/ContentCardPaginated.js +4 -5
  24. package/dist/cjs/DeckContent.js +11 -12
  25. package/dist/cjs/DeckQueue.js +2 -3
  26. package/dist/cjs/DeckQueuePaginated.js +3 -4
  27. package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
  28. package/dist/cjs/EventsDeck.js +18 -18
  29. package/dist/cjs/ExternalResources.js +4 -5
  30. package/dist/cjs/GridContent.js +5 -6
  31. package/dist/cjs/GridContentPaginated.js +6 -7
  32. package/dist/cjs/GridHero.js +1 -1
  33. package/dist/cjs/HamMagazine.js +9 -9
  34. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  35. package/dist/cjs/Hero.js +1 -1
  36. package/dist/cjs/HorizontalArticleListing.js +3 -4
  37. package/dist/cjs/{ImageSlider-68db9d26.js → ImageSlider-62a43659.js} +149 -92
  38. package/dist/cjs/IssueLanding.js +34 -35
  39. package/dist/cjs/KMTracker.js +15 -15
  40. package/dist/cjs/LeftNav.js +1 -2
  41. package/dist/cjs/MasterDeck.js +11 -12
  42. package/dist/cjs/MasterDeckPaginated.js +12 -13
  43. package/dist/cjs/{MediaSeriesCard-20fb87c6.js → MediaSeriesCard-ce34b9ee.js} +2 -2
  44. package/dist/cjs/MediaSeriesLanding.js +13 -14
  45. package/dist/cjs/MediaSeriesLandingPaginated.js +14 -15
  46. package/dist/cjs/NavMagazine.js +10 -10
  47. package/dist/cjs/NavNative.js +9 -9
  48. package/dist/cjs/OncliveLargeHero.js +1 -1
  49. package/dist/cjs/{Pagination-842c556f.js → Pagination-6359861a.js} +1 -1
  50. package/dist/cjs/PartnerDetailListing.js +6 -8
  51. package/dist/cjs/PartnerDetailListingPaginated.js +7 -9
  52. package/dist/cjs/PodcastsLanding.js +6 -7
  53. package/dist/cjs/PubSection.js +4 -5
  54. package/dist/cjs/PublicationLanding.js +26 -26
  55. package/dist/cjs/QueueDeckExpanded.js +4 -5
  56. package/dist/cjs/QueueDeckExpandedPaginated.js +5 -6
  57. package/dist/cjs/RelatedContent.js +28 -28
  58. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  59. package/dist/cjs/SeriesListingDeck.js +2 -3
  60. package/dist/cjs/{SeriesSlider-a3d45f7b.js → SeriesSlider-edcb8e4b.js} +4 -4
  61. package/dist/cjs/SideFooter.js +2 -2
  62. package/dist/cjs/TaxonomyDescription.js +3 -4
  63. package/dist/cjs/TemplateNormal.js +1 -2
  64. package/dist/cjs/ThumbnailCard.js +1 -1
  65. package/dist/cjs/{Tooltip-4cb8849a.js → Tooltip-980a1d1a.js} +55 -170
  66. package/dist/cjs/VideoProgramLandingPage.js +3 -4
  67. package/dist/cjs/VideoSeriesCard.js +1 -1
  68. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  69. package/dist/cjs/VideoSeriesListing.js +1 -2
  70. package/dist/cjs/View.js +7 -8
  71. package/dist/cjs/YahooHero.js +1 -1
  72. package/dist/cjs/YoutubeGroup.js +4 -4
  73. package/dist/cjs/{entities-df1aed86.js → entities-3f9d0f2f.js} +0 -4
  74. package/dist/cjs/getSerializers.js +3 -4
  75. package/dist/cjs/{getTargeting-5b954783.js → getTargeting-45ffbee8.js} +9 -9
  76. package/dist/cjs/getTargeting.js +1 -1
  77. package/dist/cjs/{index-825c2c02.js → index-58778b87.js} +19 -33
  78. package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
  79. package/dist/cjs/{index-50be6759.js → index-8041a4eb.js} +9 -15
  80. package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
  81. package/dist/cjs/index.js +11 -14
  82. package/dist/cjs/urlFor.js +0 -1
  83. package/dist/esm/AD.js +1 -1
  84. package/dist/esm/AD300x250.js +1 -2
  85. package/dist/esm/AD300x250x600.js +1 -2
  86. package/dist/esm/AD728x90.js +1 -2
  87. package/dist/esm/ADFloatingFooter.js +1 -2
  88. package/dist/esm/ADGutter.js +1 -2
  89. package/dist/esm/ADSkyscraper.js +1 -2
  90. package/dist/esm/ADSponsoredResources.js +1 -2
  91. package/dist/esm/ADWebcast.js +1 -2
  92. package/dist/esm/ADWelcome.js +1 -2
  93. package/dist/esm/AdSlot.js +1 -2
  94. package/dist/esm/AdSlotsProvider.js +1 -2
  95. package/dist/esm/AlgoliaSearch.js +1024 -513
  96. package/dist/esm/ArticleProgramLandingPage.js +3 -4
  97. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  98. package/dist/esm/ArticleSeriesListing.js +1 -2
  99. package/dist/esm/AuthWrapper.js +288 -1470
  100. package/dist/esm/CEDeckSupabase.js +2 -3
  101. package/dist/esm/CMEDeck.js +1 -2
  102. package/dist/esm/Column3.js +1 -2
  103. package/dist/esm/ConferenceArticleCard.js +15 -15
  104. package/dist/esm/ContentCardPaginated.js +4 -5
  105. package/dist/esm/DeckContent.js +11 -12
  106. package/dist/esm/DeckQueue.js +2 -3
  107. package/dist/esm/DeckQueuePaginated.js +3 -4
  108. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  109. package/dist/esm/EventsDeck.js +18 -18
  110. package/dist/esm/ExternalResources.js +4 -5
  111. package/dist/esm/GridContent.js +5 -6
  112. package/dist/esm/GridContentPaginated.js +6 -7
  113. package/dist/esm/GridHero.js +1 -1
  114. package/dist/esm/HamMagazine.js +9 -9
  115. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  116. package/dist/esm/Hero.js +1 -1
  117. package/dist/esm/HorizontalArticleListing.js +3 -4
  118. package/dist/esm/{ImageSlider-788daebb.js → ImageSlider-aea3a615.js} +67 -10
  119. package/dist/esm/IssueLanding.js +34 -35
  120. package/dist/esm/KMTracker.js +15 -15
  121. package/dist/esm/LeftNav.js +1 -2
  122. package/dist/esm/MasterDeck.js +11 -12
  123. package/dist/esm/MasterDeckPaginated.js +12 -13
  124. package/dist/esm/{MediaSeriesCard-cfdc313b.js → MediaSeriesCard-6a972372.js} +2 -2
  125. package/dist/esm/MediaSeriesLanding.js +13 -14
  126. package/dist/esm/MediaSeriesLandingPaginated.js +14 -15
  127. package/dist/esm/NavMagazine.js +10 -10
  128. package/dist/esm/NavNative.js +9 -9
  129. package/dist/esm/OncliveLargeHero.js +1 -1
  130. package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
  131. package/dist/esm/PartnerDetailListing.js +6 -8
  132. package/dist/esm/PartnerDetailListingPaginated.js +7 -9
  133. package/dist/esm/PodcastsLanding.js +6 -7
  134. package/dist/esm/PubSection.js +4 -5
  135. package/dist/esm/PublicationLanding.js +26 -26
  136. package/dist/esm/QueueDeckExpanded.js +4 -5
  137. package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
  138. package/dist/esm/RelatedContent.js +28 -28
  139. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  140. package/dist/esm/SeriesListingDeck.js +2 -3
  141. package/dist/esm/{SeriesSlider-2eda1e45.js → SeriesSlider-2e83e861.js} +4 -4
  142. package/dist/esm/SideFooter.js +2 -2
  143. package/dist/esm/TaxonomyDescription.js +3 -4
  144. package/dist/esm/TemplateNormal.js +1 -2
  145. package/dist/esm/ThumbnailCard.js +1 -1
  146. package/dist/esm/{Tooltip-95655b44.js → Tooltip-51957f7c.js} +55 -170
  147. package/dist/esm/VideoProgramLandingPage.js +3 -4
  148. package/dist/esm/VideoSeriesCard.js +1 -1
  149. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  150. package/dist/esm/VideoSeriesListing.js +1 -2
  151. package/dist/esm/View.js +7 -8
  152. package/dist/esm/YahooHero.js +1 -1
  153. package/dist/esm/YoutubeGroup.js +4 -4
  154. package/dist/esm/{entities-6d9154b4.js → entities-932b50cf.js} +0 -4
  155. package/dist/esm/getSerializers.js +3 -4
  156. package/dist/esm/{getTargeting-5a281334.js → getTargeting-a569a9cc.js} +9 -9
  157. package/dist/esm/getTargeting.js +1 -1
  158. package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
  159. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  160. package/dist/esm/{index-98ca9cec.js → index-67e1773f.js} +9 -15
  161. package/dist/esm/{index-30b512d6.js → index-b672e697.js} +23 -37
  162. package/dist/esm/index.js +11 -14
  163. package/dist/esm/urlFor.js +0 -1
  164. package/package.json +116 -116
  165. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  166. package/dist/cjs/events-1b438fe7.js +0 -469
  167. package/dist/cjs/typeof-1358762e.js +0 -33
  168. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  169. package/dist/esm/events-6c3a7a63.js +0 -467
  170. package/dist/esm/typeof-2f07d0e8.js +0 -30
  171. /package/dist/cjs/{ADInfeed-93cad44d.js → ADInfeed-0519664d.js} +0 -0
  172. /package/dist/cjs/{ADlgInfeed-80062861.js → ADlgInfeed-e544ac1c.js} +0 -0
  173. /package/dist/cjs/{PublicationFeature-2e15f1bb.js → PublicationFeature-e945bd55.js} +0 -0
  174. /package/dist/esm/{ADInfeed-74cc728c.js → ADInfeed-c3f5613e.js} +0 -0
  175. /package/dist/esm/{ADlgInfeed-b6217567.js → ADlgInfeed-2b148f3f.js} +0 -0
  176. /package/dist/esm/{PublicationFeature-b44a69eb.js → PublicationFeature-3cc370de.js} +0 -0
@@ -3,15 +3,14 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import { _ as _extends } from './extends-1559c147.js';
4
4
  import React__default from 'react';
5
5
  import { TwitterTimelineEmbed } from 'react-twitter-embed';
6
- import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-788daebb.js';
7
- import './defineProperty-23a8f8cd.js';
6
+ import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-aea3a615.js';
8
7
  import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
9
8
  import './moment-bc12cb97.js';
10
9
  import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
11
10
  import Breadcrumbs from './Breadcrumbs.js';
12
11
  import Feature from './Feature.js';
13
12
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-30b512d6.js';
13
+ import { g as getSerializers } from './index-b672e697.js';
15
14
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
15
  import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
17
16
  import './_commonjsHelpers-0c4b6f40.js';
@@ -24,15 +23,14 @@ import 'prop-types';
24
23
  import './smoothscroll-fa4e3f8c.js';
25
24
  import './toConsumableArray-f7074d7c.js';
26
25
  import 'react-bootstrap';
27
- import './index-f0fc23eb.js';
28
- import './events-6c3a7a63.js';
26
+ import './index-5cc7b406.js';
29
27
  import 'next/router';
30
28
  import './index-755f2cc2.js';
31
29
  import 'react-dom';
32
30
  import './lodash-f97fd99a.js';
33
31
  import './main-f97773b2.js';
34
- import './entities-6d9154b4.js';
35
- import './ADInfeed-74cc728c.js';
32
+ import './entities-932b50cf.js';
33
+ import './ADInfeed-c3f5613e.js';
36
34
  import 'react-bootstrap/Card';
37
35
  import './AdSlot.js';
38
36
  import './debounce-533d9748.js';
@@ -42,10 +40,10 @@ import './Beam.js';
42
40
  import './stringify-2b084bee.js';
43
41
  import './Segment.js';
44
42
  import './AuthorComponent-11adff02.js';
45
- import './ADlgInfeed-b6217567.js';
43
+ import './ADlgInfeed-2b148f3f.js';
46
44
  import './getContentCategory-15dcc413.js';
47
45
  import './timeDifferenceCalc.js';
48
- import './Pagination-dc30727b.js';
46
+ import './Pagination-9fe9f61d.js';
49
47
  import 'react-bootstrap/Button';
50
48
  import './index.esm-1bd8a0a8.js';
51
49
  import './iconBase-ccc56b97.js';
@@ -4,9 +4,9 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
4
  import React__default, { useState } from 'react';
5
5
  import Link from 'next/link';
6
6
  import MasterDeck from './MasterDeck.js';
7
- import { M as MediaSeriesCard } from './MediaSeriesCard-cfdc313b.js';
7
+ import { M as MediaSeriesCard } from './MediaSeriesCard-6a972372.js';
8
8
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
9
- import { g as getSerializers } from './index-30b512d6.js';
9
+ import { g as getSerializers } from './index-b672e697.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
12
12
  import './web.dom.iterable-ab4dea5c.js';
@@ -19,8 +19,7 @@ import './_object-sap-7cee6f84.js';
19
19
  import './define-property-5f1bda73.js';
20
20
  import './typeof-657f25da.js';
21
21
  import './_is-array-8d21b9e3.js';
22
- import './index-f0fc23eb.js';
23
- import './events-6c3a7a63.js';
22
+ import './index-5cc7b406.js';
24
23
  import 'prop-types';
25
24
  import 'react-bootstrap/Container';
26
25
  import 'react-bootstrap/Row';
@@ -36,13 +35,13 @@ import './index.es-a6137319.js';
36
35
  import './visibility-sensor-72fd8f8b.js';
37
36
  import 'react-dom';
38
37
  import './index-3f5c03b2.js';
39
- import './ADlgInfeed-b6217567.js';
38
+ import './ADlgInfeed-2b148f3f.js';
40
39
  import './AdSlot.js';
41
40
  import './Beam.js';
42
41
  import './stringify-2b084bee.js';
43
42
  import './Segment.js';
44
43
  import './main-f97773b2.js';
45
- import './ADInfeed-74cc728c.js';
44
+ import './ADInfeed-c3f5613e.js';
46
45
  import './index-755f2cc2.js';
47
46
  import './urlFor.js';
48
47
  import './style-inject.es-1f59c1d0.js';
@@ -62,7 +61,7 @@ import './SocialShare.js';
62
61
  import 'next/head';
63
62
  import 'react-share';
64
63
  import 'react-bootstrap/Pagination';
65
- import './entities-6d9154b4.js';
64
+ import './entities-932b50cf.js';
66
65
  import './index.esm-eb1e8e80.js';
67
66
  import './iconBase-ccc56b97.js';
68
67
  import 'react-bootstrap/Figure';
@@ -17,14 +17,13 @@ import './index.es-a6137319.js';
17
17
  import './moment-bc12cb97.js';
18
18
  import './visibility-sensor-72fd8f8b.js';
19
19
  import 'react-dom';
20
- import './index-f0fc23eb.js';
21
- import './events-6c3a7a63.js';
20
+ import './index-5cc7b406.js';
22
21
  import 'prop-types';
23
22
  import 'next/router';
24
23
  import './index-755f2cc2.js';
25
24
  import './main-f97773b2.js';
26
- import './entities-6d9154b4.js';
27
- import './ADInfeed-74cc728c.js';
25
+ import './entities-932b50cf.js';
26
+ import './ADInfeed-c3f5613e.js';
28
27
  import 'react-bootstrap/Card';
29
28
  import './AdSlot.js';
30
29
  import './debounce-533d9748.js';
@@ -35,7 +34,7 @@ import './stringify-2b084bee.js';
35
34
  import './Segment.js';
36
35
  import './AuthorComponent-11adff02.js';
37
36
  import './lodash-f97fd99a.js';
38
- import './ADlgInfeed-b6217567.js';
37
+ import './ADlgInfeed-2b148f3f.js';
39
38
  import './getContentCategory-15dcc413.js';
40
39
  import './timeDifferenceCalc.js';
41
40
 
@@ -373,32 +373,32 @@ module.exports = { "default": set$1, __esModule: true };
373
373
 
374
374
  var _Set = unwrapExports(set);
375
375
 
376
- /* usage & query
377
- const Publication = (props) => {
378
- const { cache, pub, year } = props
379
- const targeting = {
380
- content_placement: [`/journals/${pub.identifier.current}`],
381
- document_url: [`/journals/${pub.identifier.current}`],
382
- }
383
- return (
384
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
385
- <PublicationLanding publication={pub} year={year} href={'journals'} />
386
- </Shell>
387
- )
388
- }
389
- Publication.getInitialProps = async (ctx) => {
390
- const { query } = ctx
391
- const {
392
- query: { year },
393
- } = ctx
394
- const pub = await client.fetch(getQuery('publication'), query)
395
- **import urlFor from framework**
396
- pub.issues.map((issue) => {
397
- issue.thumbnail = urlFor({client, source: issue.thumbnail})
398
- })
399
- return { pub, year }
400
- }
401
- export default Publication
376
+ /* usage & query
377
+ const Publication = (props) => {
378
+ const { cache, pub, year } = props
379
+ const targeting = {
380
+ content_placement: [`/journals/${pub.identifier.current}`],
381
+ document_url: [`/journals/${pub.identifier.current}`],
382
+ }
383
+ return (
384
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
385
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
386
+ </Shell>
387
+ )
388
+ }
389
+ Publication.getInitialProps = async (ctx) => {
390
+ const { query } = ctx
391
+ const {
392
+ query: { year },
393
+ } = ctx
394
+ const pub = await client.fetch(getQuery('publication'), query)
395
+ **import urlFor from framework**
396
+ pub.issues.map((issue) => {
397
+ issue.thumbnail = urlFor({client, source: issue.thumbnail})
398
+ })
399
+ return { pub, year }
400
+ }
401
+ export default Publication
402
402
  */
403
403
 
404
404
  var generateContentPlacements = function generateContentPlacements(issues) {
@@ -7,15 +7,15 @@ import urlFor from './urlFor.js';
7
7
  import { I as InfiniteScroll } from './index.es-a6137319.js';
8
8
  import { m as moment } from './moment-bc12cb97.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
10
- import { l as lib_3 } from './index-f0fc23eb.js';
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
13
  import { m as main_43 } from './main-f97773b2.js';
14
- import { c as clean_html_1 } from './entities-6d9154b4.js';
15
- import { A as ADInfeed } from './ADInfeed-74cc728c.js';
14
+ import { c as clean_html_1 } from './entities-932b50cf.js';
15
+ import { A as ADInfeed } from './ADInfeed-c3f5613e.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-b6217567.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-2b148f3f.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -24,7 +24,6 @@ import './core.get-iterator-method-ea258bb1.js';
24
24
  import './_iter-detect-98db3b07.js';
25
25
  import './index-3f5c03b2.js';
26
26
  import 'react-dom';
27
- import './events-6c3a7a63.js';
28
27
  import 'prop-types';
29
28
  import 'react-bootstrap/Card';
30
29
  import './AdSlot.js';
@@ -5,26 +5,25 @@ import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
5
5
  import React__default, { useState, useEffect, useRef } from 'react';
6
6
  import { Spinner, Container, Media } from 'react-bootstrap';
7
7
  import { m as moment } from './moment-bc12cb97.js';
8
- import { l as lib_3 } from './index-f0fc23eb.js';
8
+ 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
12
  import { m as main_43 } from './main-f97773b2.js';
13
- import { c as clean_html_1 } from './entities-6d9154b4.js';
14
- import { A as ADInfeed } from './ADInfeed-74cc728c.js';
13
+ import { c as clean_html_1 } from './entities-932b50cf.js';
14
+ import { A as ADInfeed } from './ADInfeed-c3f5613e.js';
15
15
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
16
- import { A as ADlgInfeed } from './ADlgInfeed-b6217567.js';
16
+ import { A as ADlgInfeed } from './ADlgInfeed-2b148f3f.js';
17
17
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
18
18
  import timeDifferenceCalc from './timeDifferenceCalc.js';
19
19
  import urlFor from './urlFor.js';
20
- import { P as Pagination } from './Pagination-dc30727b.js';
20
+ import { P as Pagination } from './Pagination-9fe9f61d.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
22
22
  import './core.get-iterator-method-ea258bb1.js';
23
23
  import './web.dom.iterable-ab4dea5c.js';
24
24
  import './_library-528f1934.js';
25
25
  import './_set-species-2cd9340f.js';
26
26
  import './_iter-detect-98db3b07.js';
27
- import './events-6c3a7a63.js';
28
27
  import 'prop-types';
29
28
  import 'react-dom';
30
29
  import 'react-bootstrap/Card';
@@ -12,34 +12,34 @@ import './index-3f5c03b2.js';
12
12
  import 'react-dom';
13
13
  import 'prop-types';
14
14
 
15
- /*
16
- Sample query
17
- let references = ''
18
- if(article.taxonomyMapping.length > 0){
19
- article.taxonomyMapping.forEach((ref, index) => {
20
- references = references + `references('${ref._ref}') `
21
- if(index+1 !== article.taxonomyMapping.length){
22
- references = references + ` && `
23
- }
24
- })
25
- }
26
-
27
- 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] {
28
- ...,
29
- title,
30
- summary,
31
- thumbnail,
32
- url,
33
- published,
34
- authorMapping[]->,
35
- contentCategory->
36
- }`
37
- const relatedArticles = await client.fetch(relatedArticlesQuery)
38
-
39
- Sample usage
40
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
41
-
42
-
15
+ /*
16
+ Sample query
17
+ let references = ''
18
+ if(article.taxonomyMapping.length > 0){
19
+ article.taxonomyMapping.forEach((ref, index) => {
20
+ references = references + `references('${ref._ref}') `
21
+ if(index+1 !== article.taxonomyMapping.length){
22
+ references = references + ` && `
23
+ }
24
+ })
25
+ }
26
+
27
+ 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] {
28
+ ...,
29
+ title,
30
+ summary,
31
+ thumbnail,
32
+ url,
33
+ published,
34
+ authorMapping[]->,
35
+ contentCategory->
36
+ }`
37
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
38
+
39
+ Sample usage
40
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
41
+
42
+
43
43
  */
44
44
  var RelatedContent = function RelatedContent(props) {
45
45
  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) {
@@ -3,15 +3,14 @@ import { _ as _extends } from './extends-1559c147.js';
3
3
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
4
  import React__default, { useState, useEffect, useRef } from 'react';
5
5
  import { useRouter } from 'next/router';
6
- import { l as lib_3 } from './index-f0fc23eb.js';
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-2eda1e45.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-2e83e861.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';
12
12
  import './_iter-detect-98db3b07.js';
13
13
  import './web.dom.iterable-ab4dea5c.js';
14
- import './events-6c3a7a63.js';
15
14
  import 'prop-types';
16
15
  import './index-c7e2ac95.js';
17
16
  import './index-755f2cc2.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-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) {
@@ -33,8 +33,8 @@ var renderLink = function renderLink(row) {
33
33
  };
34
34
 
35
35
  var SideFooter = function SideFooter(props) {
36
- /*
37
- useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
36
+ /*
37
+ useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
38
38
  */
39
39
  var _get = get_1(props, 'cache.siteSettingCache', {}),
40
40
  socialLinks = _get.socialLinks,
@@ -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-30b512d6.js';
8
+ import { g as getSerializers } from './index-b672e697.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './web.dom.iterable-ab4dea5c.js';
@@ -16,8 +16,7 @@ import 'prop-types';
16
16
  import './index-3f5c03b2.js';
17
17
  import 'react-bootstrap';
18
18
  import './urlFor.js';
19
- import './index-f0fc23eb.js';
20
- import './events-6c3a7a63.js';
19
+ import './index-5cc7b406.js';
21
20
  import './index-c7e2ac95.js';
22
21
  import './Beam.js';
23
22
  import './stringify-2b084bee.js';
@@ -43,7 +42,7 @@ import './SocialShare.js';
43
42
  import 'react-share';
44
43
  import './toConsumableArray-f7074d7c.js';
45
44
  import 'react-bootstrap/Pagination';
46
- import './entities-6d9154b4.js';
45
+ import './entities-932b50cf.js';
47
46
  import './AdSlot.js';
48
47
  import './debounce-533d9748.js';
49
48
  import './isSymbol-a7e9aafe.js';
@@ -18,8 +18,7 @@ import './core.get-iterator-method-ea258bb1.js';
18
18
  import './AdSlot.js';
19
19
  import './extends-1559c147.js';
20
20
  import 'prop-types';
21
- import './index-f0fc23eb.js';
22
- import './events-6c3a7a63.js';
21
+ import './index-5cc7b406.js';
23
22
  import './debounce-533d9748.js';
24
23
  import './isSymbol-a7e9aafe.js';
25
24
  import './toNumber-5aeba6e7.js';
@@ -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';