@mjhls/mjh-framework 1.0.1023 → 1.0.1024-segment-fix

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 +2 -1
  4. package/dist/cjs/AD300x250x600.js +2 -1
  5. package/dist/cjs/AD728x90.js +2 -1
  6. package/dist/cjs/ADFloatingFooter.js +2 -1
  7. package/dist/cjs/ADGutter.js +2 -1
  8. package/dist/cjs/ADSkyscraper.js +2 -1
  9. package/dist/cjs/ADSponsoredResources.js +2 -1
  10. package/dist/cjs/ADWebcast.js +2 -1
  11. package/dist/cjs/ADWelcome.js +2 -1
  12. package/dist/cjs/AdSlot.js +2 -1
  13. package/dist/cjs/AdSlotsProvider.js +2 -1
  14. package/dist/cjs/AlgoliaSearch.js +513 -1024
  15. package/dist/cjs/ArticleProgramLandingPage.js +4 -3
  16. package/dist/cjs/ArticleSeriesLandingPage.js +4 -3
  17. package/dist/cjs/ArticleSeriesListing.js +2 -1
  18. package/dist/cjs/Auth.js +1463 -10
  19. package/dist/cjs/AuthWrapper.js +1476 -294
  20. package/dist/cjs/CEDeckSupabase.js +3 -2
  21. package/dist/cjs/CMEDeck.js +2 -1
  22. package/dist/cjs/Column3.js +2 -1
  23. package/dist/cjs/ConferenceArticleCard.js +15 -15
  24. package/dist/cjs/ContentCardPaginated.js +5 -4
  25. package/dist/cjs/DeckContent.js +12 -11
  26. package/dist/cjs/DeckQueue.js +3 -2
  27. package/dist/cjs/DeckQueuePaginated.js +4 -3
  28. package/dist/cjs/{Dfp-67646058.js → Dfp-c313a700.js} +2 -1
  29. package/dist/cjs/EventsDeck.js +18 -18
  30. package/dist/cjs/ExternalResources.js +5 -4
  31. package/dist/cjs/GridContent.js +5 -4
  32. package/dist/cjs/GridContentPaginated.js +6 -5
  33. package/dist/cjs/GridHero.js +1 -1
  34. package/dist/cjs/HamMagazine.js +9 -9
  35. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  36. package/dist/cjs/Hero.js +1 -1
  37. package/dist/cjs/HorizontalArticleListing.js +4 -3
  38. package/dist/cjs/{ImageSlider-fd0cc91c.js → ImageSlider-17fdaf3b.js} +92 -149
  39. package/dist/cjs/IssueLanding.js +35 -34
  40. package/dist/cjs/KMTracker.js +15 -15
  41. package/dist/cjs/LeftNav.js +2 -1
  42. package/dist/cjs/MasterDeck.js +12 -11
  43. package/dist/cjs/MasterDeckPaginated.js +13 -12
  44. package/dist/cjs/{MediaSeriesCard-ae205d40.js → MediaSeriesCard-a90d687a.js} +2 -2
  45. package/dist/cjs/MediaSeriesLanding.js +14 -13
  46. package/dist/cjs/MediaSeriesLandingPaginated.js +15 -14
  47. package/dist/cjs/NavMagazine.js +10 -10
  48. package/dist/cjs/NavNative.js +9 -9
  49. package/dist/cjs/OncliveLargeHero.js +1 -1
  50. package/dist/cjs/{Pagination-6359861a.js → Pagination-842c556f.js} +1 -1
  51. package/dist/cjs/PartnerDetailListing.js +8 -6
  52. package/dist/cjs/PartnerDetailListingPaginated.js +9 -7
  53. package/dist/cjs/PodcastsLanding.js +7 -6
  54. package/dist/cjs/PubSection.js +5 -4
  55. package/dist/cjs/PublicationLanding.js +26 -26
  56. package/dist/cjs/QueueDeckExpanded.js +5 -4
  57. package/dist/cjs/QueueDeckExpandedPaginated.js +6 -5
  58. package/dist/cjs/RelatedContent.js +28 -28
  59. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  60. package/dist/cjs/Segment.js +4 -4
  61. package/dist/cjs/SeriesListingDeck.js +3 -2
  62. package/dist/cjs/{SeriesSlider-0b2a2775.js → SeriesSlider-78004f1c.js} +4 -4
  63. package/dist/cjs/SideFooter.js +2 -2
  64. package/dist/cjs/TaxonomyDescription.js +4 -3
  65. package/dist/cjs/TemplateNormal.js +2 -1
  66. package/dist/cjs/ThumbnailCard.js +1 -1
  67. package/dist/cjs/{Tooltip-980a1d1a.js → Tooltip-4cb8849a.js} +170 -55
  68. package/dist/cjs/VideoProgramLandingPage.js +4 -3
  69. package/dist/cjs/VideoSeriesCard.js +1 -1
  70. package/dist/cjs/VideoSeriesLandingPage.js +4 -3
  71. package/dist/cjs/VideoSeriesListing.js +2 -1
  72. package/dist/cjs/View.js +8 -7
  73. package/dist/cjs/YahooHero.js +1 -1
  74. package/dist/cjs/YoutubeGroup.js +4 -4
  75. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  76. package/dist/cjs/{entities-3f9d0f2f.js → entities-df1aed86.js} +4 -0
  77. package/dist/cjs/events-1b438fe7.js +469 -0
  78. package/dist/cjs/getSerializers.js +4 -3
  79. package/dist/cjs/{getTargeting-4439c99d.js → getTargeting-ba942d9a.js} +9 -9
  80. package/dist/cjs/getTargeting.js +1 -1
  81. package/dist/cjs/{index-8041a4eb.js → index-50be6759.js} +15 -9
  82. package/dist/cjs/{index-b78ce702.js → index-b14fa0e9.js} +2 -2
  83. package/dist/cjs/{index-7435b964.js → index-d2a6ef75.js} +2 -467
  84. package/dist/cjs/{index-96c331fd.js → index-f86bb269.js} +52 -53
  85. package/dist/cjs/index.js +13 -11
  86. package/dist/cjs/typeof-1358762e.js +33 -0
  87. package/dist/esm/AD.js +1 -1
  88. package/dist/esm/AD300x250.js +2 -1
  89. package/dist/esm/AD300x250x600.js +2 -1
  90. package/dist/esm/AD728x90.js +2 -1
  91. package/dist/esm/ADFloatingFooter.js +2 -1
  92. package/dist/esm/ADGutter.js +2 -1
  93. package/dist/esm/ADSkyscraper.js +2 -1
  94. package/dist/esm/ADSponsoredResources.js +2 -1
  95. package/dist/esm/ADWebcast.js +2 -1
  96. package/dist/esm/ADWelcome.js +2 -1
  97. package/dist/esm/AdSlot.js +2 -1
  98. package/dist/esm/AdSlotsProvider.js +2 -1
  99. package/dist/esm/AlgoliaSearch.js +513 -1024
  100. package/dist/esm/ArticleProgramLandingPage.js +4 -3
  101. package/dist/esm/ArticleSeriesLandingPage.js +4 -3
  102. package/dist/esm/ArticleSeriesListing.js +2 -1
  103. package/dist/esm/Auth.js +1463 -9
  104. package/dist/esm/AuthWrapper.js +1470 -288
  105. package/dist/esm/CEDeckSupabase.js +3 -2
  106. package/dist/esm/CMEDeck.js +2 -1
  107. package/dist/esm/Column3.js +2 -1
  108. package/dist/esm/ConferenceArticleCard.js +15 -15
  109. package/dist/esm/ContentCardPaginated.js +5 -4
  110. package/dist/esm/DeckContent.js +12 -11
  111. package/dist/esm/DeckQueue.js +3 -2
  112. package/dist/esm/DeckQueuePaginated.js +4 -3
  113. package/dist/esm/{Dfp-cf85d203.js → Dfp-102f0beb.js} +2 -1
  114. package/dist/esm/EventsDeck.js +18 -18
  115. package/dist/esm/ExternalResources.js +5 -4
  116. package/dist/esm/GridContent.js +5 -4
  117. package/dist/esm/GridContentPaginated.js +6 -5
  118. package/dist/esm/GridHero.js +1 -1
  119. package/dist/esm/HamMagazine.js +9 -9
  120. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  121. package/dist/esm/Hero.js +1 -1
  122. package/dist/esm/HorizontalArticleListing.js +4 -3
  123. package/dist/esm/{ImageSlider-c3a57384.js → ImageSlider-f84174cb.js} +10 -67
  124. package/dist/esm/IssueLanding.js +35 -34
  125. package/dist/esm/KMTracker.js +15 -15
  126. package/dist/esm/LeftNav.js +2 -1
  127. package/dist/esm/MasterDeck.js +12 -11
  128. package/dist/esm/MasterDeckPaginated.js +13 -12
  129. package/dist/esm/{MediaSeriesCard-957b218d.js → MediaSeriesCard-f4676da2.js} +2 -2
  130. package/dist/esm/MediaSeriesLanding.js +14 -13
  131. package/dist/esm/MediaSeriesLandingPaginated.js +15 -14
  132. package/dist/esm/NavMagazine.js +10 -10
  133. package/dist/esm/NavNative.js +9 -9
  134. package/dist/esm/OncliveLargeHero.js +1 -1
  135. package/dist/esm/{Pagination-9fe9f61d.js → Pagination-dc30727b.js} +1 -1
  136. package/dist/esm/PartnerDetailListing.js +8 -6
  137. package/dist/esm/PartnerDetailListingPaginated.js +9 -7
  138. package/dist/esm/PodcastsLanding.js +7 -6
  139. package/dist/esm/PubSection.js +5 -4
  140. package/dist/esm/PublicationLanding.js +26 -26
  141. package/dist/esm/QueueDeckExpanded.js +5 -4
  142. package/dist/esm/QueueDeckExpandedPaginated.js +6 -5
  143. package/dist/esm/RelatedContent.js +28 -28
  144. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  145. package/dist/esm/Segment.js +4 -4
  146. package/dist/esm/SeriesListingDeck.js +3 -2
  147. package/dist/esm/{SeriesSlider-3f4d6012.js → SeriesSlider-d64090f7.js} +4 -4
  148. package/dist/esm/SideFooter.js +2 -2
  149. package/dist/esm/TaxonomyDescription.js +4 -3
  150. package/dist/esm/TemplateNormal.js +2 -1
  151. package/dist/esm/ThumbnailCard.js +1 -1
  152. package/dist/esm/{Tooltip-51957f7c.js → Tooltip-95655b44.js} +170 -55
  153. package/dist/esm/VideoProgramLandingPage.js +4 -3
  154. package/dist/esm/VideoSeriesCard.js +1 -1
  155. package/dist/esm/VideoSeriesLandingPage.js +4 -3
  156. package/dist/esm/VideoSeriesListing.js +2 -1
  157. package/dist/esm/View.js +8 -7
  158. package/dist/esm/YahooHero.js +1 -1
  159. package/dist/esm/YoutubeGroup.js +4 -4
  160. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  161. package/dist/esm/{entities-932b50cf.js → entities-6d9154b4.js} +4 -0
  162. package/dist/esm/events-6c3a7a63.js +467 -0
  163. package/dist/esm/getSerializers.js +4 -3
  164. package/dist/esm/{getTargeting-c6884f34.js → getTargeting-9bd28724.js} +9 -9
  165. package/dist/esm/getTargeting.js +1 -1
  166. package/dist/esm/{index-30a6257d.js → index-79cfd25c.js} +52 -53
  167. package/dist/esm/{index-67e1773f.js → index-98ca9cec.js} +15 -9
  168. package/dist/esm/{index-f2f5b752.js → index-d3548838.js} +2 -2
  169. package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
  170. package/dist/esm/index.js +13 -11
  171. package/dist/esm/typeof-2f07d0e8.js +30 -0
  172. package/package.json +116 -116
  173. /package/dist/cjs/{ADInfeed-5dabd71d.js → ADInfeed-15df327c.js} +0 -0
  174. /package/dist/cjs/{ADlgInfeed-1766ce0a.js → ADlgInfeed-b71569ae.js} +0 -0
  175. /package/dist/esm/{ADInfeed-cfc4f7b2.js → ADInfeed-6fdbe522.js} +0 -0
  176. /package/dist/esm/{ADlgInfeed-74c975b9.js → ADlgInfeed-378fbce7.js} +0 -0
@@ -3,14 +3,15 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.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-c3a57384.js';
6
+ import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-f84174cb.js';
7
+ import './defineProperty-23a8f8cd.js';
7
8
  import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
8
9
  import './moment-bc12cb97.js';
9
10
  import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
10
11
  import Breadcrumbs from './Breadcrumbs.js';
11
12
  import Feature from './Feature.js';
12
13
  import urlFor from './urlFor.js';
13
- import { g as getSerializers } from './index-f2f5b752.js';
14
+ import { g as getSerializers } from './index-d3548838.js';
14
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
16
  import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
16
17
  import './_commonjsHelpers-0c4b6f40.js';
@@ -23,14 +24,15 @@ import 'prop-types';
23
24
  import './smoothscroll-fa4e3f8c.js';
24
25
  import './toConsumableArray-f7074d7c.js';
25
26
  import 'react-bootstrap';
26
- import './index-5cc7b406.js';
27
+ import './index-f0fc23eb.js';
28
+ import './events-6c3a7a63.js';
27
29
  import 'next/router';
28
30
  import './index-755f2cc2.js';
29
31
  import 'react-dom';
30
32
  import './lodash-f97fd99a.js';
31
33
  import './main-f97773b2.js';
32
- import './entities-932b50cf.js';
33
- import './ADInfeed-cfc4f7b2.js';
34
+ import './entities-6d9154b4.js';
35
+ import './ADInfeed-6fdbe522.js';
34
36
  import 'react-bootstrap/Card';
35
37
  import './AdSlot.js';
36
38
  import './debounce-533d9748.js';
@@ -40,10 +42,10 @@ import './Beam.js';
40
42
  import './stringify-2b084bee.js';
41
43
  import './Segment.js';
42
44
  import './AuthorComponent-11adff02.js';
43
- import './ADlgInfeed-74c975b9.js';
45
+ import './ADlgInfeed-378fbce7.js';
44
46
  import './getContentCategory-15dcc413.js';
45
47
  import './timeDifferenceCalc.js';
46
- import './Pagination-9fe9f61d.js';
48
+ import './Pagination-dc30727b.js';
47
49
  import 'react-bootstrap/Button';
48
50
  import './index.esm-1bd8a0a8.js';
49
51
  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-957b218d.js';
7
+ import { M as MediaSeriesCard } from './MediaSeriesCard-f4676da2.js';
8
8
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
9
- import { g as getSerializers } from './index-f2f5b752.js';
9
+ import { g as getSerializers } from './index-d3548838.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,7 +19,8 @@ import './_object-sap-7cee6f84.js';
19
19
  import './define-property-5f1bda73.js';
20
20
  import './typeof-e9fc0c5d.js';
21
21
  import './_is-array-8d21b9e3.js';
22
- import './index-5cc7b406.js';
22
+ import './index-f0fc23eb.js';
23
+ import './events-6c3a7a63.js';
23
24
  import 'prop-types';
24
25
  import 'react-bootstrap/Container';
25
26
  import 'react-bootstrap/Row';
@@ -35,13 +36,13 @@ import './index.es-a6137319.js';
35
36
  import './visibility-sensor-72fd8f8b.js';
36
37
  import 'react-dom';
37
38
  import './index-3f5c03b2.js';
38
- import './ADlgInfeed-74c975b9.js';
39
+ import './ADlgInfeed-378fbce7.js';
39
40
  import './AdSlot.js';
40
41
  import './Beam.js';
41
42
  import './stringify-2b084bee.js';
42
43
  import './Segment.js';
43
44
  import './main-f97773b2.js';
44
- import './ADInfeed-cfc4f7b2.js';
45
+ import './ADInfeed-6fdbe522.js';
45
46
  import './index-755f2cc2.js';
46
47
  import './urlFor.js';
47
48
  import './style-inject.es-1f59c1d0.js';
@@ -62,7 +63,7 @@ import './SocialShare.js';
62
63
  import 'next/head';
63
64
  import 'react-share';
64
65
  import 'react-bootstrap/Pagination';
65
- import './entities-932b50cf.js';
66
+ import './entities-6d9154b4.js';
66
67
  import './index.esm-eb1e8e80.js';
67
68
  import './iconBase-ccc56b97.js';
68
69
  import 'react-bootstrap/Figure';
@@ -17,13 +17,14 @@ 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-5cc7b406.js';
20
+ import './index-f0fc23eb.js';
21
+ import './events-6c3a7a63.js';
21
22
  import 'prop-types';
22
23
  import 'next/router';
23
24
  import './index-755f2cc2.js';
24
25
  import './main-f97773b2.js';
25
- import './entities-932b50cf.js';
26
- import './ADInfeed-cfc4f7b2.js';
26
+ import './entities-6d9154b4.js';
27
+ import './ADInfeed-6fdbe522.js';
27
28
  import 'react-bootstrap/Card';
28
29
  import './AdSlot.js';
29
30
  import './debounce-533d9748.js';
@@ -34,7 +35,7 @@ import './stringify-2b084bee.js';
34
35
  import './Segment.js';
35
36
  import './AuthorComponent-11adff02.js';
36
37
  import './lodash-f97fd99a.js';
37
- import './ADlgInfeed-74c975b9.js';
38
+ import './ADlgInfeed-378fbce7.js';
38
39
  import './getContentCategory-15dcc413.js';
39
40
  import './timeDifferenceCalc.js';
40
41
 
@@ -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) {
@@ -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-5cc7b406.js';
10
+ import { l as lib_3 } from './index-f0fc23eb.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-932b50cf.js';
15
- import { A as ADInfeed } from './ADInfeed-cfc4f7b2.js';
14
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
15
+ import { A as ADInfeed } from './ADInfeed-6fdbe522.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-74c975b9.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-378fbce7.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -25,6 +25,7 @@ import './_iter-detect-98db3b07.js';
25
25
  import './_object-pie-133f504a.js';
26
26
  import './index-3f5c03b2.js';
27
27
  import 'react-dom';
28
+ import './events-6c3a7a63.js';
28
29
  import 'prop-types';
29
30
  import 'react-bootstrap/Card';
30
31
  import './AdSlot.js';
@@ -5,25 +5,26 @@ 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-5cc7b406.js';
8
+ import { l as lib_3 } from './index-f0fc23eb.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-932b50cf.js';
14
- import { A as ADInfeed } from './ADInfeed-cfc4f7b2.js';
13
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
14
+ import { A as ADInfeed } from './ADInfeed-6fdbe522.js';
15
15
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
16
- import { A as ADlgInfeed } from './ADlgInfeed-74c975b9.js';
16
+ import { A as ADlgInfeed } from './ADlgInfeed-378fbce7.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-9fe9f61d.js';
20
+ import { P as Pagination } from './Pagination-dc30727b.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 './_iter-detect-98db3b07.js';
26
26
  import './_object-pie-133f504a.js';
27
+ import './events-6c3a7a63.js';
27
28
  import 'prop-types';
28
29
  import 'react-dom';
29
30
  import 'react-bootstrap/Card';
@@ -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) {
@@ -61,8 +61,7 @@ var Segment = {
61
61
  var buff = Buffer.from(groupId, 'ascii');
62
62
  console.log('buff', buff);
63
63
 
64
- var eKey = buff.toString('base64');
65
- console.log('eKey', eKey);
64
+ buff.toString('base64');
66
65
  _Promise.resolve(analytics.group(groupId, {
67
66
  anonymousId: anonId,
68
67
  name: groupName
@@ -105,19 +104,20 @@ var Segment = {
105
104
  }
106
105
 
107
106
  var user = analytics.user();
107
+
108
108
  if (!user) {
109
109
  console.log('segment user not defined');
110
110
  return url;
111
111
  }
112
112
 
113
113
  var anonymouseId = user.anonymousId();
114
- var eKey = user._getId();
114
+ var eKey = user.id();
115
+
115
116
  if (eKey) {
116
117
  url += (url.includes('?') ? '&' : '?') + 'ekey=' + eKey;
117
118
  } else {
118
119
  url += (url.includes('?') ? '&' : '?') + 'anonymousid=' + anonymouseId;
119
120
  }
120
-
121
121
  return url;
122
122
  },
123
123
  getIDs: function getIDs() {
@@ -3,15 +3,16 @@ import { _ as _extends } from './extends-6d8e3924.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-5cc7b406.js';
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-3f4d6012.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-d64090f7.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 './_object-pie-133f504a.js';
14
14
  import './web.dom.iterable-ab4dea5c.js';
15
+ import './events-6c3a7a63.js';
15
16
  import 'prop-types';
16
17
  import './index-c7e2ac95.js';
17
18
  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) {
@@ -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,
@@ -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-f2f5b752.js';
8
+ import { g as getSerializers } from './index-d3548838.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './_object-pie-133f504a.js';
@@ -16,7 +16,8 @@ import 'prop-types';
16
16
  import './index-3f5c03b2.js';
17
17
  import 'react-bootstrap';
18
18
  import './urlFor.js';
19
- import './index-5cc7b406.js';
19
+ import './index-f0fc23eb.js';
20
+ import './events-6c3a7a63.js';
20
21
  import './index-c7e2ac95.js';
21
22
  import './util-8ed16d48.js';
22
23
  import './Beam.js';
@@ -43,7 +44,7 @@ import './SocialShare.js';
43
44
  import 'react-share';
44
45
  import './toConsumableArray-f7074d7c.js';
45
46
  import 'react-bootstrap/Pagination';
46
- import './entities-932b50cf.js';
47
+ import './entities-6d9154b4.js';
47
48
  import './AdSlot.js';
48
49
  import './debounce-533d9748.js';
49
50
  import './isSymbol-a7e9aafe.js';
@@ -19,7 +19,8 @@ import './AdSlot.js';
19
19
  import './extends-6d8e3924.js';
20
20
  import './_object-pie-133f504a.js';
21
21
  import 'prop-types';
22
- import './index-5cc7b406.js';
22
+ import './index-f0fc23eb.js';
23
+ import './events-6c3a7a63.js';
23
24
  import './debounce-533d9748.js';
24
25
  import './isSymbol-a7e9aafe.js';
25
26
  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-932b50cf.js';
5
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
6
6
  import './slicedToArray-6ebcbfea.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './web.dom.iterable-ab4dea5c.js';