@mjhls/mjh-framework 1.0.994-invalidelement-v3 → 1.0.994-podcasts

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 (215) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +6 -6
  3. package/dist/cjs/AD300x250.js +5 -5
  4. package/dist/cjs/AD300x250x600.js +5 -5
  5. package/dist/cjs/AD728x90.js +6 -6
  6. package/dist/cjs/ADFloatingFooter.js +8 -8
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +8 -8
  9. package/dist/cjs/{ADInfeed-f316b66a.js → ADInfeed-e87afe8a.js} +5 -5
  10. package/dist/cjs/ADSkyscraper.js +8 -8
  11. package/dist/cjs/ADSponsoredResources.js +8 -8
  12. package/dist/cjs/ADWebcast.js +8 -8
  13. package/dist/cjs/ADWelcome.js +12 -12
  14. package/dist/cjs/{ADlgInfeed-2003306e.js → ADlgInfeed-b5a3d436.js} +3 -3
  15. package/dist/cjs/AccordionPanel.js +17 -17
  16. package/dist/cjs/AdSlot.js +9 -9
  17. package/dist/cjs/AdSlotsProvider.js +5 -5
  18. package/dist/cjs/AlgoliaSearch.js +894 -1078
  19. package/dist/cjs/AlphabeticList.js +12 -12
  20. package/dist/cjs/ArticleCarousel.js +5 -5
  21. package/dist/cjs/ArticleProgramLandingPage.js +14 -14
  22. package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
  23. package/dist/cjs/ArticleSeriesListing.js +29 -29
  24. package/dist/cjs/Auth.js +85 -114
  25. package/dist/cjs/AuthWrapper.js +30 -120
  26. package/dist/cjs/{AuthorComponent-7d00f6d5.js → AuthorComponent-39b37d84.js} +9 -9
  27. package/dist/cjs/{BlockContent-96b44364.js → BlockContent-9ebd251f.js} +18 -18
  28. package/dist/cjs/Breadcrumbs.js +17 -17
  29. package/dist/cjs/CMEDeck.js +61 -61
  30. package/dist/cjs/Column1.js +7 -7
  31. package/dist/cjs/Column2.js +15 -15
  32. package/dist/cjs/Column3.js +27 -27
  33. package/dist/cjs/ConferenceArticleCard.js +27 -27
  34. package/dist/cjs/{ConferenceBanner-213003ce.js → ConferenceBanner-6c9e718a.js} +3 -3
  35. package/dist/cjs/ContentCardPaginated.js +49 -49
  36. package/dist/cjs/DeckContent.js +66 -66
  37. package/dist/cjs/DeckQueue.js +57 -57
  38. package/dist/cjs/DeckQueuePaginated.js +46 -46
  39. package/dist/cjs/{Dfp-c313a700.js → Dfp-9be904d5.js} +17 -17
  40. package/dist/cjs/EventsDeck.js +107 -107
  41. package/dist/cjs/ExternalResources.js +34 -34
  42. package/dist/cjs/Feature.js +17 -17
  43. package/dist/cjs/ForbesHero.js +25 -25
  44. package/dist/cjs/GridContent.js +134 -134
  45. package/dist/cjs/GridContentPaginated.js +121 -121
  46. package/dist/cjs/GridHero.js +26 -26
  47. package/dist/cjs/GroupDeck.js +33 -33
  48. package/dist/cjs/HamMagazine.js +114 -114
  49. package/dist/cjs/Header.js +9 -9
  50. package/dist/cjs/HealthCareProfessionalModal.js +18 -18
  51. package/dist/cjs/Hero.js +5 -5
  52. package/dist/cjs/HighlightenVideo.js +13 -13
  53. package/dist/cjs/HorizontalArticleListing.js +28 -28
  54. package/dist/cjs/HorizontalHero.js +17 -17
  55. package/dist/cjs/{ImageSlider-1ec0408b.js → ImageSlider-6c00b878.js} +172 -212
  56. package/dist/cjs/IssueContentDeck.js +49 -49
  57. package/dist/cjs/IssueDeck.js +48 -48
  58. package/dist/cjs/IssueLanding.js +48 -48
  59. package/dist/cjs/KMTracker.js +15 -15
  60. package/dist/cjs/LeftNav.js +17 -17
  61. package/dist/cjs/MasterDeck.js +47 -47
  62. package/dist/cjs/MasterDeckPaginated.js +37 -37
  63. package/dist/cjs/MediaSeriesCard-443d909e.js +81 -0
  64. package/dist/cjs/MediaSeriesLanding.js +55 -54
  65. package/dist/cjs/MediaSeriesLandingPaginated.js +53 -52
  66. package/dist/cjs/NavDvm.js +57 -57
  67. package/dist/cjs/{NavFooter-880e9d87.js → NavFooter-4799de4b.js} +11 -11
  68. package/dist/cjs/NavMagazine.js +116 -116
  69. package/dist/cjs/NavNative.js +106 -106
  70. package/dist/cjs/OncliveHero.js +11 -11
  71. package/dist/cjs/OncliveLargeHero.js +49 -49
  72. package/dist/cjs/PageFilter.js +5 -5
  73. package/dist/cjs/{Pagination-6359861a.js → Pagination-2a3d0103.js} +13 -13
  74. package/dist/cjs/PartnerDetailListing.js +50 -49
  75. package/dist/cjs/PartnerDetailListingPaginated.js +46 -45
  76. package/dist/cjs/PdfDownload.js +4 -4
  77. package/dist/cjs/PixelTracking.js +9 -9
  78. package/dist/cjs/PodcastsLanding.js +235 -0
  79. package/dist/cjs/PopUpModal.js +9 -9
  80. package/dist/cjs/PtceDeck.js +13 -13
  81. package/dist/cjs/PubSection.js +13 -13
  82. package/dist/cjs/PubToc.js +4 -4
  83. package/dist/cjs/PublicationDeck.js +44 -44
  84. package/dist/cjs/{PublicationFeature-a989a2b3.js → PublicationFeature-5ccf9b13.js} +29 -29
  85. package/dist/cjs/PublicationLanding.js +99 -99
  86. package/dist/cjs/QueueDeckExpanded.js +245 -245
  87. package/dist/cjs/QueueDeckExpandedPaginated.js +222 -222
  88. package/dist/cjs/RecentNews.js +15 -15
  89. package/dist/cjs/RelatedContent.js +42 -42
  90. package/dist/cjs/RelatedTopicsDropdown.js +24 -24
  91. package/dist/cjs/RolesDeck.js +20 -20
  92. package/dist/cjs/Schema.js +52 -54
  93. package/dist/cjs/Search.js +6 -6
  94. package/dist/cjs/SeriesListingDeck.js +18 -18
  95. package/dist/cjs/{SeriesSlider-f5248377.js → SeriesSlider-594b19eb.js} +26 -26
  96. package/dist/cjs/SideFooter.js +20 -20
  97. package/dist/cjs/SocialIcons.js +6 -6
  98. package/dist/cjs/{SocialSearchComponent-ca9c0c45.js → SocialSearchComponent-d2ab3d62.js} +28 -28
  99. package/dist/cjs/SocialShare.js +25 -25
  100. package/dist/cjs/TaxonomyCard.js +44 -44
  101. package/dist/cjs/TaxonomyDescription.js +11 -11
  102. package/dist/cjs/TemplateNormal.js +27 -27
  103. package/dist/cjs/ThumbnailCard.js +10 -10
  104. package/dist/cjs/{MediaSeriesCard-e93c0855.js → Tooltip-f075b7ef.js} +539 -705
  105. package/dist/cjs/Ustream.js +9 -9
  106. package/dist/cjs/VerticalHero.js +10 -10
  107. package/dist/cjs/VideoProgramLandingPage.js +28 -28
  108. package/dist/cjs/VideoSeriesCard.js +14 -14
  109. package/dist/cjs/VideoSeriesFilter.js +5 -5
  110. package/dist/cjs/VideoSeriesLandingPage.js +11 -11
  111. package/dist/cjs/VideoSeriesListing.js +46 -46
  112. package/dist/cjs/View.js +224 -224
  113. package/dist/cjs/YahooHero.js +22 -22
  114. package/dist/cjs/YoutubeGroup.js +37 -37
  115. package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-a195642e.js} +2 -2
  116. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  117. package/dist/cjs/getSerializers.js +6 -6
  118. package/dist/cjs/{getTargeting-4439c99d.js → getTargeting-ba942d9a.js} +9 -9
  119. package/dist/cjs/getTargeting.js +1 -1
  120. package/dist/cjs/iconBase-be4097c0.js +4 -2
  121. package/dist/cjs/{index-9ec837cc.js → index-50be6759.js} +25 -9
  122. package/dist/cjs/{index-64fe6bc7.js → index-e9d3f910.js} +481 -481
  123. package/dist/cjs/{index-65621b6c.js → index-eadd5035.js} +5 -5
  124. package/dist/cjs/{index-96c331fd.js → index-f86bb269.js} +52 -53
  125. package/dist/cjs/{index-d2a6ef75.js → index-fc2f1ca2.js} +4 -4
  126. package/dist/cjs/{index.es-1ab8dda7.js → index.es-f3e47207.js} +4 -4
  127. package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-1461604c.js} +14 -14
  128. package/dist/cjs/index.js +105 -103
  129. package/dist/cjs/{main-6054981e.js → main-f1c77adb.js} +22 -17
  130. package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-af932527.js} +7 -7
  131. package/dist/cjs/typeof-1358762e.js +33 -0
  132. package/dist/cjs/ustream-api-3819e4aa.js +1 -1
  133. package/dist/cjs/{visibility-sensor-56020df6.js → visibility-sensor-eb2c5b69.js} +1 -1
  134. package/dist/esm/AD300x250.js +1 -1
  135. package/dist/esm/AD300x250x600.js +1 -1
  136. package/dist/esm/AD728x90.js +1 -1
  137. package/dist/esm/ADFloatingFooter.js +1 -1
  138. package/dist/esm/ADGutter.js +1 -1
  139. package/dist/esm/ADSkyscraper.js +1 -1
  140. package/dist/esm/ADSponsoredResources.js +1 -1
  141. package/dist/esm/ADWebcast.js +1 -1
  142. package/dist/esm/ADWelcome.js +1 -1
  143. package/dist/esm/AdSlot.js +1 -1
  144. package/dist/esm/AdSlotsProvider.js +1 -1
  145. package/dist/esm/AlgoliaSearch.js +510 -694
  146. package/dist/esm/ArticleCarousel.js +1 -1
  147. package/dist/esm/ArticleProgramLandingPage.js +2 -2
  148. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  149. package/dist/esm/ArticleSeriesListing.js +1 -1
  150. package/dist/esm/Auth.js +11 -40
  151. package/dist/esm/AuthWrapper.js +3 -93
  152. package/dist/esm/CMEDeck.js +1 -1
  153. package/dist/esm/Column3.js +1 -1
  154. package/dist/esm/ConferenceArticleCard.js +15 -15
  155. package/dist/esm/ContentCardPaginated.js +3 -3
  156. package/dist/esm/DeckContent.js +10 -10
  157. package/dist/esm/DeckQueue.js +1 -1
  158. package/dist/esm/DeckQueuePaginated.js +2 -2
  159. package/dist/esm/EventsDeck.js +19 -19
  160. package/dist/esm/ExternalResources.js +3 -3
  161. package/dist/esm/Feature.js +1 -1
  162. package/dist/esm/GridContent.js +3 -3
  163. package/dist/esm/GridContentPaginated.js +4 -4
  164. package/dist/esm/HamMagazine.js +11 -11
  165. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  166. package/dist/esm/HorizontalArticleListing.js +2 -2
  167. package/dist/esm/{ImageSlider-83913c4c.js → ImageSlider-f84174cb.js} +117 -157
  168. package/dist/esm/IssueLanding.js +33 -33
  169. package/dist/esm/KMTracker.js +15 -15
  170. package/dist/esm/LeftNav.js +1 -1
  171. package/dist/esm/MasterDeck.js +11 -11
  172. package/dist/esm/MasterDeckPaginated.js +12 -12
  173. package/dist/esm/MediaSeriesCard-2403a1d3.js +75 -0
  174. package/dist/esm/MediaSeriesLanding.js +17 -16
  175. package/dist/esm/MediaSeriesLandingPaginated.js +17 -16
  176. package/dist/esm/NavMagazine.js +12 -12
  177. package/dist/esm/NavNative.js +10 -10
  178. package/dist/esm/{Pagination-9fe9f61d.js → Pagination-dc30727b.js} +1 -1
  179. package/dist/esm/PartnerDetailListing.js +6 -5
  180. package/dist/esm/PartnerDetailListingPaginated.js +7 -6
  181. package/dist/esm/PodcastsLanding.js +228 -0
  182. package/dist/esm/PubSection.js +3 -3
  183. package/dist/esm/PublicationLanding.js +26 -26
  184. package/dist/esm/QueueDeckExpanded.js +3 -3
  185. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  186. package/dist/esm/RelatedContent.js +28 -28
  187. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  188. package/dist/esm/Schema.js +52 -54
  189. package/dist/esm/SeriesListingDeck.js +2 -2
  190. package/dist/esm/{SeriesSlider-4875823e.js → SeriesSlider-f771e20d.js} +5 -5
  191. package/dist/esm/SideFooter.js +2 -2
  192. package/dist/esm/{SocialSearchComponent-68d948b9.js → SocialSearchComponent-165b4ae7.js} +1 -1
  193. package/dist/esm/TaxonomyDescription.js +2 -2
  194. package/dist/esm/TemplateNormal.js +2 -2
  195. package/dist/esm/{MediaSeriesCard-9a4cc6ac.js → Tooltip-95655b44.js} +258 -423
  196. package/dist/esm/Ustream.js +1 -1
  197. package/dist/esm/VideoProgramLandingPage.js +2 -2
  198. package/dist/esm/VideoSeriesCard.js +1 -1
  199. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  200. package/dist/esm/VideoSeriesListing.js +1 -1
  201. package/dist/esm/View.js +6 -6
  202. package/dist/esm/YoutubeGroup.js +5 -5
  203. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  204. package/dist/esm/getSerializers.js +2 -2
  205. package/dist/esm/{getTargeting-c6884f34.js → getTargeting-9bd28724.js} +9 -9
  206. package/dist/esm/getTargeting.js +1 -1
  207. package/dist/esm/{index-30a6257d.js → index-79cfd25c.js} +52 -53
  208. package/dist/esm/{index-0ce54f8a.js → index-98ca9cec.js} +25 -10
  209. package/dist/esm/{index-19ae7235.js → index-9a58ca55.js} +1 -1
  210. package/dist/esm/index.js +12 -10
  211. package/dist/esm/{main-9f6806ea.js → main-1894c974.js} +9 -4
  212. package/dist/esm/typeof-2f07d0e8.js +30 -0
  213. package/package.json +114 -114
  214. /package/dist/esm/{ADInfeed-777bb0b3.js → ADInfeed-5765a73a.js} +0 -0
  215. /package/dist/esm/{ADlgInfeed-e7fd1bb6.js → ADlgInfeed-5e36f317.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-83913c4c.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-19ae7235.js';
14
+ import { g as getSerializers } from './index-9a58ca55.js';
14
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
16
  import { c as checkSisterSite } from './checkSisterSite-baa4fb6b.js';
16
17
  import './_commonjsHelpers-0c4b6f40.js';
@@ -29,9 +30,9 @@ import 'next/router';
29
30
  import './index-755f2cc2.js';
30
31
  import 'react-dom';
31
32
  import './lodash-f97fd99a.js';
32
- import './main-9f6806ea.js';
33
+ import './main-1894c974.js';
33
34
  import './entities-6d9154b4.js';
34
- import './ADInfeed-777bb0b3.js';
35
+ import './ADInfeed-5765a73a.js';
35
36
  import 'react-bootstrap/Card';
36
37
  import './AdSlot.js';
37
38
  import './debounce-533d9748.js';
@@ -41,10 +42,10 @@ import './Beam.js';
41
42
  import './stringify-2b084bee.js';
42
43
  import './Segment.js';
43
44
  import './AuthorComponent-11adff02.js';
44
- import './ADlgInfeed-e7fd1bb6.js';
45
+ import './ADlgInfeed-5e36f317.js';
45
46
  import './getContentCategory-15dcc413.js';
46
47
  import './timeDifferenceCalc.js';
47
- import './Pagination-9fe9f61d.js';
48
+ import './Pagination-dc30727b.js';
48
49
  import 'react-bootstrap/Button';
49
50
  import './index.esm-1bd8a0a8.js';
50
51
  import './iconBase-ccc56b97.js';
@@ -0,0 +1,228 @@
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
+ import { _ as _extends } from './extends-6d8e3924.js';
3
+ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
+ import React__default, { useState } from 'react';
5
+ import Link from 'next/link';
6
+ import MasterDeck from './MasterDeck.js';
7
+ import { M as MediaSeriesCard } from './MediaSeriesCard-2403a1d3.js';
8
+ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
9
+ import { g as getSerializers } from './index-9a58ca55.js';
10
+ import './_commonjsHelpers-0c4b6f40.js';
11
+ import './core.get-iterator-method-ea258bb1.js';
12
+ import './web.dom.iterable-ab4dea5c.js';
13
+ import './_library-528f1934.js';
14
+ import './_iter-detect-98db3b07.js';
15
+ import './_object-pie-133f504a.js';
16
+ import './toConsumableArray-f7074d7c.js';
17
+ import './inherits-a6ba2ec4.js';
18
+ import './_object-sap-7cee6f84.js';
19
+ import './define-property-5f1bda73.js';
20
+ import './typeof-e9fc0c5d.js';
21
+ import './_is-array-8d21b9e3.js';
22
+ import './index-f0fc23eb.js';
23
+ import './events-6c3a7a63.js';
24
+ import 'prop-types';
25
+ import 'react-bootstrap/Container';
26
+ import 'react-bootstrap/Row';
27
+ import 'react-bootstrap/Col';
28
+ import 'react-bootstrap/Card';
29
+ import './moment-bc12cb97.js';
30
+ import 'next/router';
31
+ import './lodash-f97fd99a.js';
32
+ import './debounce-533d9748.js';
33
+ import './isSymbol-a7e9aafe.js';
34
+ import './toNumber-5aeba6e7.js';
35
+ import './index.es-a6137319.js';
36
+ import './visibility-sensor-72fd8f8b.js';
37
+ import 'react-dom';
38
+ import './index-3f5c03b2.js';
39
+ import './ADlgInfeed-5e36f317.js';
40
+ import './AdSlot.js';
41
+ import './Beam.js';
42
+ import './stringify-2b084bee.js';
43
+ import './Segment.js';
44
+ import './main-1894c974.js';
45
+ import './ADInfeed-5765a73a.js';
46
+ import './index-755f2cc2.js';
47
+ import './urlFor.js';
48
+ import './style-inject.es-1f59c1d0.js';
49
+ import 'react-bootstrap';
50
+ import './index-c7e2ac95.js';
51
+ import './util-8ed16d48.js';
52
+ import './urlForFile-b69adffc.js';
53
+ import './brightcove-react-player-loader.es-57a70a56.js';
54
+ import 'react-bootstrap/Modal';
55
+ import 'react-bootstrap/Button';
56
+ import 'react-bootstrap/Form';
57
+ import 'react-ga';
58
+ import './GroupDeck.js';
59
+ import './smoothscroll-fa4e3f8c.js';
60
+ import './SocialShare.js';
61
+ import 'next/head';
62
+ import 'react-share';
63
+ import './_object-to-array-2300e51b.js';
64
+ import 'react-bootstrap/Pagination';
65
+ import './entities-6d9154b4.js';
66
+ import './index.esm-eb1e8e80.js';
67
+ import './iconBase-ccc56b97.js';
68
+ import 'react-bootstrap/Figure';
69
+ import 'react-bootstrap/OverlayTrigger';
70
+ import 'react-bootstrap/Tooltip';
71
+ import 'react-bootstrap/Popover';
72
+ import './checkSisterSite-baa4fb6b.js';
73
+
74
+ var _this = undefined;
75
+
76
+ var PodcastsLanding = function PodcastsLanding(props) {
77
+ var client = props.client,
78
+ pageview = props.pageview,
79
+ currentPage = props.currentPage;
80
+ props.taxonomyId;
81
+ props.parentUrl;
82
+ var nextPagePostsCount = props.nextPagePostsCount;
83
+
84
+ var _useState = useState(props.seriesData),
85
+ _useState2 = _slicedToArray(_useState, 2),
86
+ seriesData = _useState2[0];
87
+ _useState2[1];
88
+
89
+ var _useState3 = useState(props.params),
90
+ _useState4 = _slicedToArray(_useState3, 2),
91
+ params = _useState4[0];
92
+ _useState4[1];
93
+
94
+ var _useState5 = useState(props.query),
95
+ _useState6 = _slicedToArray(_useState5, 2),
96
+ query = _useState6[0];
97
+ _useState6[1];
98
+
99
+ if (props.statusCode === 404) {
100
+ return React__default.createElement(
101
+ 'div',
102
+ { className: 'd-flex flex-column align-items-center mt-3' },
103
+ React__default.createElement(
104
+ 'h3',
105
+ null,
106
+ '404: Resource not found'
107
+ ),
108
+ React__default.createElement(
109
+ 'p',
110
+ null,
111
+ 'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
112
+ ),
113
+ React__default.createElement(
114
+ 'p',
115
+ null,
116
+ 'Click here to',
117
+ React__default.createElement(
118
+ Link,
119
+ { href: '/' },
120
+ React__default.createElement(
121
+ 'a',
122
+ { style: { color: 'blue', textDecoration: 'underline' } },
123
+ ' return to homepage.'
124
+ )
125
+ )
126
+ )
127
+ );
128
+ }
129
+
130
+ return React__default.createElement(
131
+ 'div',
132
+ { className: 'mb-5' },
133
+ props.taxonomy && props.taxonomy.summary && React__default.createElement(BlockContent, { style: { marginTop: '1rem !important' }, blocks: props.taxonomy.summary, serializers: getSerializers(client) }),
134
+ React__default.createElement('hr', { style: { marginTop: '2rem', marginBottom: 'rem' } }),
135
+ seriesData && React__default.createElement(MasterDeck, {
136
+ deck: MediaSeriesCard,
137
+ variant: 'left',
138
+ defaultImage: '/placeholder.jpg',
139
+ client: client,
140
+ dataRecord: seriesData,
141
+ query: query && query,
142
+ params: params && params,
143
+ currentPage: currentPage,
144
+ pageview: pageview,
145
+ autoScroll: true,
146
+ seoPaginate: true,
147
+ nextPagePostsCount: nextPagePostsCount
148
+ })
149
+ );
150
+ };
151
+
152
+ PodcastsLanding.getInitialData = function () {
153
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(ctx, client, cache) {
154
+ var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, taxonomyId, seriesQuery, seriesData, nextPagePostsCount;
155
+ return regenerator.wrap(function _callee$(_context) {
156
+ while (1) {
157
+ switch (_context.prev = _context.next) {
158
+ case 0:
159
+ urlQuery = ctx.query, pathname = ctx.pathname;
160
+ identifier = pathname.replace('/', '');
161
+ itemsPerPage = 10;
162
+ currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
163
+ start = (currentPage - 1) * itemsPerPage;
164
+ statusCode = 200;
165
+ params = {
166
+ count: itemsPerPage,
167
+ from: start,
168
+ to: start + itemsPerPage,
169
+ url: pathname,
170
+ itemsPerPage: itemsPerPage
171
+ };
172
+ _context.next = 9;
173
+ return client.fetch('*[_type == \'taxonomy\' && identifier == \'' + identifier + '\'][0]{\n _id, \n name,\n summary,\n pixelTrackingCode->\n }');
174
+
175
+ case 9:
176
+ taxonomyId = _context.sent;
177
+
178
+ // const taxonomyId = await client.fetch(`*[_type == 'taxonomy' && _id == '6d748e0d-7946-4a14-968e-ca8182f06c1e']`)
179
+ // console.log('taxonomyId', taxonomyId)
180
+ seriesQuery = '*[_type == \'taxonomy\' && isMainTopic == true && references(\'' + taxonomyId._id + '\')] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n thumbnail{ ..., asset-> },\n summary,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + identifier + '\'\n }';
181
+ _context.next = 13;
182
+ return client.fetch(seriesQuery, params);
183
+
184
+ case 13:
185
+ seriesData = _context.sent;
186
+
187
+ seriesData.forEach(function (seriesObj) {
188
+ seriesObj.description = seriesObj.summary;
189
+ seriesObj.identifier = { _type: 'slug', current: seriesObj.identifier };
190
+ });
191
+ _context.next = 17;
192
+ return client.fetch('count(' + seriesQuery + ')', _extends({}, params, { from: params.to, to: params.to + itemsPerPage }));
193
+
194
+ case 17:
195
+ nextPagePostsCount = _context.sent;
196
+
197
+
198
+ if (currentPage > 1 && seriesData.length === 0) {
199
+ statusCode = 404;
200
+ }
201
+
202
+ return _context.abrupt('return', {
203
+ seriesData: seriesData,
204
+ query: seriesQuery,
205
+ params: params,
206
+ currentPage: currentPage,
207
+ identifier: identifier,
208
+ taxonomyId: taxonomyId,
209
+ parentUrl: identifier,
210
+ statusCode: statusCode,
211
+ taxonomy: taxonomyId,
212
+ nextPagePostsCount: nextPagePostsCount
213
+ });
214
+
215
+ case 20:
216
+ case 'end':
217
+ return _context.stop();
218
+ }
219
+ }
220
+ }, _callee, _this);
221
+ }));
222
+
223
+ return function (_x, _x2, _x3) {
224
+ return _ref.apply(this, arguments);
225
+ };
226
+ }();
227
+
228
+ export { PodcastsLanding as default };
@@ -22,9 +22,9 @@ import './events-6c3a7a63.js';
22
22
  import 'prop-types';
23
23
  import 'next/router';
24
24
  import './index-755f2cc2.js';
25
- import './main-9f6806ea.js';
25
+ import './main-1894c974.js';
26
26
  import './entities-6d9154b4.js';
27
- import './ADInfeed-777bb0b3.js';
27
+ import './ADInfeed-5765a73a.js';
28
28
  import 'react-bootstrap/Card';
29
29
  import './AdSlot.js';
30
30
  import './debounce-533d9748.js';
@@ -35,7 +35,7 @@ import './stringify-2b084bee.js';
35
35
  import './Segment.js';
36
36
  import './AuthorComponent-11adff02.js';
37
37
  import './lodash-f97fd99a.js';
38
- import './ADlgInfeed-e7fd1bb6.js';
38
+ import './ADlgInfeed-5e36f317.js';
39
39
  import './getContentCategory-15dcc413.js';
40
40
  import './timeDifferenceCalc.js';
41
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) {
@@ -10,12 +10,12 @@ import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
10
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
- import { m as main_43 } from './main-9f6806ea.js';
13
+ import { m as main_43 } from './main-1894c974.js';
14
14
  import { c as clean_html_1 } from './entities-6d9154b4.js';
15
- import { A as ADInfeed } from './ADInfeed-777bb0b3.js';
15
+ import { A as ADInfeed } from './ADInfeed-5765a73a.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-e7fd1bb6.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-5e36f317.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,15 +9,15 @@ 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
- import { m as main_43 } from './main-9f6806ea.js';
12
+ import { m as main_43 } from './main-1894c974.js';
13
13
  import { c as clean_html_1 } from './entities-6d9154b4.js';
14
- import { A as ADInfeed } from './ADInfeed-777bb0b3.js';
14
+ import { A as ADInfeed } from './ADInfeed-5765a73a.js';
15
15
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
16
- import { A as ADlgInfeed } from './ADlgInfeed-e7fd1bb6.js';
16
+ import { A as ADlgInfeed } from './ADlgInfeed-5e36f317.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';
@@ -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) {
@@ -33,65 +33,63 @@ function toPlainText() {
33
33
  }
34
34
 
35
35
  function generateSchema(props) {
36
- var _props$article = props.article,
37
- title = _props$article.title,
38
- body = _props$article.body,
39
- summary = _props$article.summary,
40
- url = _props$article.url,
41
- content_placement = _props$article.content_placement,
42
- authorDetails = _props$article.authorDetails,
43
- thumbnail = _props$article.thumbnail,
44
- published = _props$article.published,
45
- _updatedAt = _props$article._updatedAt,
46
- seoTag = _props$article.seoTag,
47
- _props$Website = props.Website,
48
- liveDomain = _props$Website.liveDomain,
49
- websiteTitle = _props$Website.title,
50
- logo = _props$Website.logo,
51
- client = props.client;
36
+ var _props$article = props.article,
37
+ title = _props$article.title,
38
+ body = _props$article.body,
39
+ summary = _props$article.summary,
40
+ url = _props$article.url,
41
+ content_placement = _props$article.content_placement,
42
+ authorDetails = _props$article.authorDetails,
43
+ thumbnail = _props$article.thumbnail,
44
+ published = _props$article.published,
45
+ _updatedAt = _props$article._updatedAt,
46
+ seoTag = _props$article.seoTag,
47
+ _props$Website = props.Website,
48
+ liveDomain = _props$Website.liveDomain,
49
+ websiteTitle = _props$Website.title,
50
+ logo = _props$Website.logo,
51
+ client = props.client;
52
52
 
53
- var authors = authorDetails && authorDetails.length > 0 && authorDetails.reduce(function (result, author) {
54
- if (author.displayName) return [].concat(_toConsumableArray(result), [{
55
- '@type': 'Person',
56
- name: author.displayName
57
- }]);else return result;
58
- }, []);
59
- var articleSection = content_placement && content_placement.map(function (cp) {
60
- return cp.name;
61
- });
62
- var image = thumbnail && thumbnail.asset && client ? urlFor({ source: thumbnail, client: client }) : liveDomain && logo && 'https://' + liveDomain + logo;
53
+ var authors = authorDetails && authorDetails.length > 0 && authorDetails.reduce(function (result, author) {
54
+ if (author.displayName) return [].concat(_toConsumableArray(result), [{
55
+ '@type': 'Person',
56
+ name: author.displayName
57
+ }]);else return result;
58
+ }, []);
59
+ var articleSection = content_placement && content_placement.map(function (cp) {
60
+ return cp.name;
61
+ });
62
+ var image = thumbnail && thumbnail.asset && client ? urlFor({ source: thumbnail, client: client }) : liveDomain && logo && 'https://' + liveDomain + logo;
63
63
 
64
- if (title && published && _updatedAt) {
65
- return _extends({
66
- '@context': 'https://schema.org',
67
- '@type': 'NewsArticle',
68
- headline: title,
69
- datePublished: published,
70
- dateModified: _updatedAt,
71
- inLanguage: 'en-US'
72
- }, image && { image: image }, liveDomain && url && url.current && {
73
- mainEntityOfPage: {
74
- '@type': 'WebPage',
75
- '@id': 'https://' + liveDomain + '/view/' + url.current
76
- }
77
- }, websiteTitle && liveDomain && logo && {
78
- publisher: {
79
- '@type': 'Organization',
80
- name: websiteTitle,
81
- logo: {
82
- '@type': 'ImageObject',
83
- url: 'https://' + liveDomain + logo
84
- }
85
- }
86
- }, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary }, authors && authors.length > 0 && { author: authors });
87
- }
88
- return null;
64
+ if (title && published && _updatedAt) {
65
+ return _extends({
66
+ '@context': 'https://schema.org',
67
+ '@type': 'NewsArticle',
68
+ headline: title,
69
+ datePublished: published,
70
+ dateModified: _updatedAt,
71
+ inLanguage: 'en-US'
72
+ }, image && { image: image }, liveDomain && url && url.current && {
73
+ mainEntityOfPage: {
74
+ '@type': 'WebPage',
75
+ '@id': 'https://' + liveDomain + '/view/' + url.current
76
+ }
77
+ }, websiteTitle && liveDomain && logo && {
78
+ publisher: {
79
+ '@type': 'Organization',
80
+ name: websiteTitle,
81
+ logo: {
82
+ '@type': 'ImageObject',
83
+ url: 'https://' + liveDomain + logo
84
+ }
85
+ }
86
+ }, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary }, authors && authors.length > 0 && { author: authors });
87
+ }
88
+ return null;
89
89
  }
90
90
 
91
91
  var Schema = function Schema(props) {
92
- return generateSchema(props) !== null && React__default.createElement('script', { type: 'application/ld+json',
93
- dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) }
94
- });
92
+ return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
95
93
  };
96
94
 
97
95
  export { Schema as default };
@@ -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-4875823e.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-f771e20d.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';
@@ -20,7 +20,7 @@ import 'react-dom';
20
20
  import './smoothscroll-fa4e3f8c.js';
21
21
  import './urlFor.js';
22
22
  import './index-3f5c03b2.js';
23
- import './main-9f6806ea.js';
23
+ import './main-1894c974.js';
24
24
 
25
25
  var usePrevious = function usePrevious(value) {
26
26
  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-9f6806ea.js';
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) {
@@ -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,