@mjhls/mjh-framework 1.0.1061 → 1.0.1063-pub-view-update

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 (174) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD300x250.js +1 -1
  3. package/dist/cjs/AD300x250x600.js +1 -1
  4. package/dist/cjs/AD728x90.js +1 -1
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/{ADInfeed-0519664d.js → ADInfeed-98ee4120.js} +1 -1
  8. package/dist/cjs/ADSkyscraper.js +1 -1
  9. package/dist/cjs/ADSponsoredResources.js +1 -1
  10. package/dist/cjs/ADWebcast.js +1 -1
  11. package/dist/cjs/ADWelcome.js +1 -1
  12. package/dist/cjs/{ADlgInfeed-e544ac1c.js → ADlgInfeed-55df7d69.js} +1 -1
  13. package/dist/cjs/AdSlot.js +1 -1
  14. package/dist/cjs/AdSlotsProvider.js +1 -1
  15. package/dist/cjs/AlgoliaSearch.js +63 -91
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +3 -3
  18. package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
  19. package/dist/cjs/ArticleSeriesListing.js +1 -1
  20. package/dist/cjs/AuthWrapper.js +1476 -294
  21. package/dist/cjs/CEDeckSupabase.js +2 -2
  22. package/dist/cjs/CMEDeck.js +1 -1
  23. package/dist/cjs/Column1.js +1 -4
  24. package/dist/cjs/Column2.js +1 -4
  25. package/dist/cjs/Column3.js +2 -5
  26. package/dist/cjs/ConferenceArticleCard.js +15 -15
  27. package/dist/cjs/ContentCardPaginated.js +3 -3
  28. package/dist/cjs/DeckContent.js +11 -11
  29. package/dist/cjs/DeckQueue.js +2 -2
  30. package/dist/cjs/DeckQueuePaginated.js +2 -2
  31. package/dist/cjs/EventsDeck.js +18 -18
  32. package/dist/cjs/ExternalResources.js +3 -3
  33. package/dist/cjs/Feature.js +1 -1
  34. package/dist/cjs/GridContent.js +4 -4
  35. package/dist/cjs/GridContentPaginated.js +4 -4
  36. package/dist/cjs/GridHero.js +1 -1
  37. package/dist/cjs/HamMagazine.js +11 -11
  38. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  39. package/dist/cjs/Hero.js +1 -1
  40. package/dist/cjs/HorizontalArticleListing.js +3 -3
  41. package/dist/cjs/{ImageSlider-62a43659.js → ImageSlider-984a697b.js} +92 -149
  42. package/dist/cjs/IssueLanding.js +34 -34
  43. package/dist/cjs/KMTracker.js +15 -15
  44. package/dist/cjs/LeftNav.js +1 -1
  45. package/dist/cjs/MasterDeck.js +11 -11
  46. package/dist/cjs/MasterDeckPaginated.js +11 -11
  47. package/dist/cjs/{MediaSeriesCard-3cf661c7.js → MediaSeriesCard-2e65fe95.js} +2 -2
  48. package/dist/cjs/MediaSeriesLanding.js +13 -13
  49. package/dist/cjs/MediaSeriesLandingPaginated.js +13 -13
  50. package/dist/cjs/NavMagazine.js +12 -12
  51. package/dist/cjs/NavNative.js +10 -10
  52. package/dist/cjs/OncliveLargeHero.js +1 -1
  53. package/dist/cjs/PartnerDetailListing.js +7 -6
  54. package/dist/cjs/PartnerDetailListingPaginated.js +7 -6
  55. package/dist/cjs/PodcastsLanding.js +6 -6
  56. package/dist/cjs/PubSection.js +4 -4
  57. package/dist/cjs/PublicationLanding.js +38 -28
  58. package/dist/cjs/QueueDeckExpanded.js +4 -4
  59. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
  60. package/dist/cjs/RelatedContent.js +28 -28
  61. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  62. package/dist/cjs/SeriesListingDeck.js +2 -2
  63. package/dist/cjs/{SeriesSlider-edcb8e4b.js → SeriesSlider-086a8319.js} +5 -5
  64. package/dist/cjs/SideFooter.js +2 -2
  65. package/dist/cjs/{SocialSearchComponent-e9ec9c63.js → SocialSearchComponent-d7e5d3a6.js} +1 -1
  66. package/dist/cjs/TaxonomyDescription.js +3 -3
  67. package/dist/cjs/TemplateNormal.js +5 -5
  68. package/dist/cjs/ThumbnailCard.js +1 -1
  69. package/dist/cjs/{Tooltip-980a1d1a.js → Tooltip-96fe6ef6.js} +264 -108
  70. package/dist/cjs/Ustream.js +1 -1
  71. package/dist/cjs/VideoProgramLandingPage.js +3 -3
  72. package/dist/cjs/VideoSeriesCard.js +1 -1
  73. package/dist/cjs/VideoSeriesLandingPage.js +3 -3
  74. package/dist/cjs/VideoSeriesListing.js +1 -1
  75. package/dist/cjs/View.js +7 -7
  76. package/dist/cjs/YahooHero.js +1 -1
  77. package/dist/cjs/YoutubeGroup.js +5 -5
  78. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  79. package/dist/cjs/{entities-3f9d0f2f.js → entities-df1aed86.js} +4 -0
  80. package/dist/cjs/getSerializers.js +3 -3
  81. package/dist/cjs/{getTargeting-45ffbee8.js → getTargeting-5b954783.js} +9 -9
  82. package/dist/cjs/getTargeting.js +1 -1
  83. package/dist/cjs/{index-c19999b7.js → index-4e9a219e.js} +3 -3
  84. package/dist/cjs/{index-8041a4eb.js → index-50be6759.js} +15 -9
  85. package/dist/cjs/index.js +15 -13
  86. package/dist/cjs/{main-47be4f9f.js → main-ae8472f3.js} +4 -9
  87. package/dist/cjs/typeof-1358762e.js +33 -0
  88. package/dist/esm/AD300x250.js +1 -1
  89. package/dist/esm/AD300x250x600.js +1 -1
  90. package/dist/esm/AD728x90.js +1 -1
  91. package/dist/esm/ADFloatingFooter.js +1 -1
  92. package/dist/esm/ADGutter.js +1 -1
  93. package/dist/esm/{ADInfeed-c3f5613e.js → ADInfeed-6d0c0856.js} +1 -1
  94. package/dist/esm/ADSkyscraper.js +1 -1
  95. package/dist/esm/ADSponsoredResources.js +1 -1
  96. package/dist/esm/ADWebcast.js +1 -1
  97. package/dist/esm/ADWelcome.js +1 -1
  98. package/dist/esm/{ADlgInfeed-2b148f3f.js → ADlgInfeed-93bc2250.js} +1 -1
  99. package/dist/esm/AdSlot.js +1 -1
  100. package/dist/esm/AdSlotsProvider.js +1 -1
  101. package/dist/esm/AlgoliaSearch.js +63 -91
  102. package/dist/esm/ArticleCarousel.js +1 -1
  103. package/dist/esm/ArticleProgramLandingPage.js +3 -3
  104. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  105. package/dist/esm/ArticleSeriesListing.js +1 -1
  106. package/dist/esm/AuthWrapper.js +1470 -288
  107. package/dist/esm/CEDeckSupabase.js +2 -2
  108. package/dist/esm/CMEDeck.js +1 -1
  109. package/dist/esm/Column1.js +1 -1
  110. package/dist/esm/Column2.js +1 -1
  111. package/dist/esm/Column3.js +2 -2
  112. package/dist/esm/ConferenceArticleCard.js +15 -15
  113. package/dist/esm/ContentCardPaginated.js +3 -3
  114. package/dist/esm/DeckContent.js +11 -11
  115. package/dist/esm/DeckQueue.js +2 -2
  116. package/dist/esm/DeckQueuePaginated.js +2 -2
  117. package/dist/esm/EventsDeck.js +18 -18
  118. package/dist/esm/ExternalResources.js +3 -3
  119. package/dist/esm/Feature.js +1 -1
  120. package/dist/esm/GridContent.js +4 -4
  121. package/dist/esm/GridContentPaginated.js +4 -4
  122. package/dist/esm/GridHero.js +1 -1
  123. package/dist/esm/HamMagazine.js +11 -11
  124. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  125. package/dist/esm/Hero.js +1 -1
  126. package/dist/esm/HorizontalArticleListing.js +3 -3
  127. package/dist/esm/{ImageSlider-aea3a615.js → ImageSlider-497e9c88.js} +10 -67
  128. package/dist/esm/IssueLanding.js +34 -34
  129. package/dist/esm/KMTracker.js +15 -15
  130. package/dist/esm/LeftNav.js +1 -1
  131. package/dist/esm/MasterDeck.js +11 -11
  132. package/dist/esm/MasterDeckPaginated.js +11 -11
  133. package/dist/esm/{MediaSeriesCard-52a2e1ca.js → MediaSeriesCard-27cce8ea.js} +2 -2
  134. package/dist/esm/MediaSeriesLanding.js +13 -13
  135. package/dist/esm/MediaSeriesLandingPaginated.js +13 -13
  136. package/dist/esm/NavMagazine.js +12 -12
  137. package/dist/esm/NavNative.js +10 -10
  138. package/dist/esm/OncliveLargeHero.js +1 -1
  139. package/dist/esm/PartnerDetailListing.js +7 -6
  140. package/dist/esm/PartnerDetailListingPaginated.js +7 -6
  141. package/dist/esm/PodcastsLanding.js +6 -6
  142. package/dist/esm/PubSection.js +4 -4
  143. package/dist/esm/PublicationLanding.js +38 -28
  144. package/dist/esm/QueueDeckExpanded.js +4 -4
  145. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  146. package/dist/esm/RelatedContent.js +28 -28
  147. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  148. package/dist/esm/SeriesListingDeck.js +2 -2
  149. package/dist/esm/{SeriesSlider-2e83e861.js → SeriesSlider-a6b1d617.js} +5 -5
  150. package/dist/esm/SideFooter.js +2 -2
  151. package/dist/esm/{SocialSearchComponent-020f9e81.js → SocialSearchComponent-6065bff2.js} +1 -1
  152. package/dist/esm/TaxonomyDescription.js +3 -3
  153. package/dist/esm/TemplateNormal.js +5 -5
  154. package/dist/esm/ThumbnailCard.js +1 -1
  155. package/dist/esm/{Tooltip-51957f7c.js → Tooltip-bc98d17e.js} +264 -108
  156. package/dist/esm/Ustream.js +1 -1
  157. package/dist/esm/VideoProgramLandingPage.js +3 -3
  158. package/dist/esm/VideoSeriesCard.js +1 -1
  159. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  160. package/dist/esm/VideoSeriesListing.js +1 -1
  161. package/dist/esm/View.js +7 -7
  162. package/dist/esm/YahooHero.js +1 -1
  163. package/dist/esm/YoutubeGroup.js +5 -5
  164. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  165. package/dist/esm/{entities-932b50cf.js → entities-6d9154b4.js} +4 -0
  166. package/dist/esm/getSerializers.js +3 -3
  167. package/dist/esm/{getTargeting-a569a9cc.js → getTargeting-5a281334.js} +9 -9
  168. package/dist/esm/getTargeting.js +1 -1
  169. package/dist/esm/{index-588abaff.js → index-1fd45cc5.js} +3 -3
  170. package/dist/esm/{index-67e1773f.js → index-98ca9cec.js} +15 -9
  171. package/dist/esm/index.js +15 -13
  172. package/dist/esm/{main-f97773b2.js → main-754d4992.js} +4 -9
  173. package/dist/esm/typeof-2f07d0e8.js +30 -0
  174. package/package.json +116 -116
@@ -4,7 +4,7 @@ import React__default, { useState, useEffect } from 'react';
4
4
  import { Spinner, Container, Row, Col } from 'react-bootstrap';
5
5
  import { I as InfiniteScroll } from './index.es-a6137319.js';
6
6
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
7
- import { m as main_43 } from './main-f97773b2.js';
7
+ import { m as main_43 } from './main-754d4992.js';
8
8
  import { useRouter } from 'next/router';
9
9
  import { l as lib_3 } from './index-5cc7b406.js';
10
10
  import { L as LazyLoad } from './index-755f2cc2.js';
@@ -16,7 +16,7 @@ import './web.dom.iterable-ab4dea5c.js';
16
16
  import 'react-dom';
17
17
  import 'prop-types';
18
18
 
19
- var css = "#CMEDeck-module_ceToggles__1QFCs {\r\n display: flex;\r\n padding: 1rem;\r\n }\r\n #CMEDeck-module_ceToggles__1QFCs div {\r\n box-sizing: border-box;\r\n padding: 0.5rem;\r\n width: 50%;\r\n display: flex;\r\n flex-wrap: wrap;\r\n align-items: flex-end;\r\n justify-content: center;\r\n cursor: pointer;\r\n border-bottom: 3px solid #fff;\r\n }\r\n #CMEDeck-module_ceToggles__1QFCs div:hover {\r\n opacity: 1 !important;\r\n border-color: #cecece;\r\n }\r\n #CMEDeck-module_ceToggles__1QFCs div p {\r\n margin: 0;\r\n font-weight: 700;\r\n width: 100%;\r\n text-align: center;\r\n font-size: 1rem;\r\n }\r\n #CMEDeck-module_ceToggles__1QFCs div img {\r\n width: 100%;\r\n max-width: 10rem;\r\n }\r\n\r\n .CMEDeck-module_cardImage__3yM5u{\r\n width: 268px;\r\n max-width: 100%;\r\n border-radius: 0 0 0 10%;\r\n margin-bottom: 20px;\r\n margin-top: 10px;\r\n border-top: 1px solid #EEE;\r\n }\r\n .CMEDeck-module_cardText__2zCzZ{\r\n font-size:22px;\r\n font-weight: 500;\r\n\r\n }\r\n @media (max-width: 500px){\r\n #CMEDeck-module_ceToggles__1QFCs div img {\r\n width: 131px;\r\n height: 46px;\r\n max-width: 10rem;\r\n }\r\n\r\n .CMEDeck-module_cardText__2zCzZ{\r\n font-size: 12px;\r\n font-weight: 500;\r\n }\r\n }\r\n\r\n .CMEDeck-module_networkLogo__1jFYP {\r\n max-width: 250px;\r\n margin: auto;\r\n }\r\n\r\n @media screen and (max-width: 768px) {\r\n #CMEDeck-module_ceToggles__1QFCs {\r\n flex-wrap: wrap-reverse;\r\n justify-content: center;\r\n }\r\n .CMEDeck-module_networkLogo__1jFYP {\r\n margin: 1rem 0;\r\n }\r\n }";
19
+ var css = "#CMEDeck-module_ceToggles__1QFCs {\n display: flex;\n padding: 1rem;\n }\n #CMEDeck-module_ceToggles__1QFCs div {\n box-sizing: border-box;\n padding: 0.5rem;\n width: 50%;\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n border-bottom: 3px solid #fff;\n }\n #CMEDeck-module_ceToggles__1QFCs div:hover {\n opacity: 1 !important;\n border-color: #cecece;\n }\n #CMEDeck-module_ceToggles__1QFCs div p {\n margin: 0;\n font-weight: 700;\n width: 100%;\n text-align: center;\n font-size: 1rem;\n }\n #CMEDeck-module_ceToggles__1QFCs div img {\n width: 100%;\n max-width: 10rem;\n }\n\n .CMEDeck-module_cardImage__3yM5u{\n width: 268px;\n max-width: 100%;\n border-radius: 0 0 0 10%;\n margin-bottom: 20px;\n margin-top: 10px;\n border-top: 1px solid #EEE;\n }\n .CMEDeck-module_cardText__2zCzZ{\n font-size:22px;\n font-weight: 500;\n\n }\n @media (max-width: 500px){\n #CMEDeck-module_ceToggles__1QFCs div img {\n width: 131px;\n height: 46px;\n max-width: 10rem;\n }\n\n .CMEDeck-module_cardText__2zCzZ{\n font-size: 12px;\n font-weight: 500;\n }\n }\n\n .CMEDeck-module_networkLogo__1jFYP {\n max-width: 250px;\n margin: auto;\n }\n\n @media screen and (max-width: 768px) {\n #CMEDeck-module_ceToggles__1QFCs {\n flex-wrap: wrap-reverse;\n justify-content: center;\n }\n .CMEDeck-module_networkLogo__1jFYP {\n margin: 1rem 0;\n }\n }";
20
20
  var styles = { "ceToggles": "CMEDeck-module_ceToggles__1QFCs", "cardImage": "CMEDeck-module_cardImage__3yM5u", "cardText": "CMEDeck-module_cardText__2zCzZ", "networkLogo": "CMEDeck-module_networkLogo__1jFYP" };
21
21
  styleInject(css);
22
22
 
@@ -6,7 +6,7 @@ import React__default, { useState, useRef, useEffect } from 'react';
6
6
  import { Spinner, Container, Row, Col } from 'react-bootstrap';
7
7
  import { I as InfiniteScroll } from './index.es-a6137319.js';
8
8
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
9
- import { m as main_43 } from './main-f97773b2.js';
9
+ import { m as main_43 } from './main-754d4992.js';
10
10
  import { d as debounce_1 } from './debounce-533d9748.js';
11
11
  import { useRouter } from 'next/router';
12
12
  import { l as lib_3 } from './index-5cc7b406.js';
@@ -25,4 +25,4 @@ var Column1 = function Column1(props) {
25
25
  );
26
26
  };
27
27
 
28
- export { Column1, Column1 as default };
28
+ export { Column1 as default };
@@ -62,4 +62,4 @@ var Column2 = function Column2(props) {
62
62
  );
63
63
  };
64
64
 
65
- export { Column2, Column2 as default };
65
+ export { Column2 as default };
@@ -6,7 +6,7 @@ import LeftNav from './LeftNav.js';
6
6
  import SideFooter from './SideFooter.js';
7
7
  import { C as ConferenceBanner } from './ConferenceBanner-8792ebd2.js';
8
8
  import PageFilter from './PageFilter.js';
9
- import { m as main_43 } from './main-f97773b2.js';
9
+ import { m as main_43 } from './main-754d4992.js';
10
10
  import './slicedToArray-6ebcbfea.js';
11
11
  import './_commonjsHelpers-0c4b6f40.js';
12
12
  import './web.dom.iterable-ab4dea5c.js';
@@ -129,4 +129,4 @@ var Column3 = function Column3(props) {
129
129
  );
130
130
  };
131
131
 
132
- export { Column3, Column3 as default };
132
+ export { Column3 as default };
@@ -8,21 +8,21 @@ import './core.get-iterator-method-ea258bb1.js';
8
8
  import './extends-1559c147.js';
9
9
  import './index-3f5c03b2.js';
10
10
 
11
- /*
12
- Example usage - targetedonc.com/latest-conference
13
- const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
14
- ...,
15
- title,
16
- summary,
17
- thumbnail,
18
- url,
19
- published,
20
- documentGroup->,
21
- contentCategory->,
22
- 'pageNumber': ${currentPage}
23
- }`
24
-
25
- const posts = await client.fetch(query, params)
11
+ /*
12
+ Example usage - targetedonc.com/latest-conference
13
+ const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
14
+ ...,
15
+ title,
16
+ summary,
17
+ thumbnail,
18
+ url,
19
+ published,
20
+ documentGroup->,
21
+ contentCategory->,
22
+ 'pageNumber': ${currentPage}
23
+ }`
24
+
25
+ const posts = await client.fetch(query, params)
26
26
  */
27
27
 
28
28
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -12,9 +12,9 @@ import { m as moment } from './moment-bc12cb97.js';
12
12
  import { withRouter } from 'next/router';
13
13
  import urlFor from './urlFor.js';
14
14
  import { L as LazyLoad } from './index-755f2cc2.js';
15
- import { m as main_43 } from './main-f97773b2.js';
16
- import { c as clean_html_1 } from './entities-932b50cf.js';
17
- import { A as ADInfeed } from './ADInfeed-c3f5613e.js';
15
+ import { m as main_43 } from './main-754d4992.js';
16
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
17
+ import { A as ADInfeed } from './ADInfeed-6d0c0856.js';
18
18
  import { P as Pagination } from './Pagination-9fe9f61d.js';
19
19
  import Spinner from 'react-bootstrap/Spinner';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
@@ -14,9 +14,9 @@ import { I as InfiniteScroll } from './index.es-a6137319.js';
14
14
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
15
15
  import urlFor from './urlFor.js';
16
16
  import { L as LazyLoad } from './index-755f2cc2.js';
17
- import { m as main_43 } from './main-f97773b2.js';
18
- import { c as clean_html_1 } from './entities-932b50cf.js';
19
- import { A as ADInfeed } from './ADInfeed-c3f5613e.js';
17
+ import { m as main_43 } from './main-754d4992.js';
18
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
19
+ import { A as ADInfeed } from './ADInfeed-6d0c0856.js';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
21
21
  import './core.get-iterator-method-ea258bb1.js';
22
22
  import './_iter-detect-98db3b07.js';
@@ -181,14 +181,14 @@ var DeckContent = function (_React$Component) {
181
181
  var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
182
182
 
183
183
  // please leave this for later debug purpose : Yong Jun.
184
- /* console.log('page change reported', {
185
- currentPage: currentPage,
186
- pageNumber: pageNumber,
187
- pathname: pathname,
188
- path: path,
189
- newPath: newPath,
190
- firstPage: pageNumber === 1,
191
- queryString: queryString
184
+ /* console.log('page change reported', {
185
+ currentPage: currentPage,
186
+ pageNumber: pageNumber,
187
+ pathname: pathname,
188
+ path: path,
189
+ newPath: newPath,
190
+ firstPage: pageNumber === 1,
191
+ queryString: queryString
192
192
  }) */
193
193
 
194
194
  if (pageview) {
@@ -15,8 +15,8 @@ import { g as get_1 } from './get-3c308da4.js';
15
15
  import { d as debounce_1 } from './debounce-533d9748.js';
16
16
  import { I as InfiniteScroll } from './index.es-a6137319.js';
17
17
  import urlFor from './urlFor.js';
18
- import { m as main_43 } from './main-f97773b2.js';
19
- import { c as clean_html_1 } from './entities-932b50cf.js';
18
+ import { m as main_43 } from './main-754d4992.js';
19
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
21
21
  import './core.get-iterator-method-ea258bb1.js';
22
22
  import './_iter-detect-98db3b07.js';
@@ -13,9 +13,9 @@ import { m as moment } from './moment-bc12cb97.js';
13
13
  import { withRouter } from 'next/router';
14
14
  import { L as LazyLoad } from './index-755f2cc2.js';
15
15
  import { g as get_1 } from './get-3c308da4.js';
16
- import { m as main_43 } from './main-f97773b2.js';
16
+ import { m as main_43 } from './main-754d4992.js';
17
17
  import urlFor from './urlFor.js';
18
- import { c as clean_html_1 } from './entities-932b50cf.js';
18
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
19
19
  import { P as Pagination } from './Pagination-9fe9f61d.js';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
21
21
  import './core.get-iterator-method-ea258bb1.js';
@@ -15,7 +15,7 @@ import Col from 'react-bootstrap/Col';
15
15
  import Card from 'react-bootstrap/Card';
16
16
  import Form from 'react-bootstrap/Form';
17
17
  import Button from 'react-bootstrap/Button';
18
- import './main-f97773b2.js';
18
+ import './main-754d4992.js';
19
19
  import { m as momentTimezone } from './index-30a6257d.js';
20
20
  import { j as js_cookie } from './js.cookie-6874175c.js';
21
21
  import { useRouter } from 'next/router';
@@ -244,23 +244,23 @@ var EventsDeck = function EventsDeck(_ref) {
244
244
  if (cventAccessToken && cventAccessToken !== 'undefined') {
245
245
  setAccessToken(cventAccessToken);
246
246
  } else {
247
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
248
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
249
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
250
- fetch(url, {
251
- headers: {
252
- 'Content-Type': 'application/x-www-form-urlencoded',
253
- Authorization: `Basic ${encodedData}`
254
- },
255
- method: 'POST',
256
- body: `grant_type=client_credentials&client_id=${clientId}`
257
- })
258
- .then((response) => response.json())
259
- .then((json) => {
260
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
261
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
262
- setAccessToken(json.access_token)
263
- })
247
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
248
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
249
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
250
+ fetch(url, {
251
+ headers: {
252
+ 'Content-Type': 'application/x-www-form-urlencoded',
253
+ Authorization: `Basic ${encodedData}`
254
+ },
255
+ method: 'POST',
256
+ body: `grant_type=client_credentials&client_id=${clientId}`
257
+ })
258
+ .then((response) => response.json())
259
+ .then((json) => {
260
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
261
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
262
+ setAccessToken(json.access_token)
263
+ })
264
264
  .catch((e) => console.log(e))*/
265
265
  // hello
266
266
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-1559c147.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default, { useState, useEffect } from 'react';
4
4
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
- import { g as getSerializers } from './index-588abaff.js';
5
+ import { g as getSerializers } from './index-1fd45cc5.js';
6
6
  import { m as momentTimezone } from './index-30a6257d.js';
7
7
  import { useRouter } from 'next/router';
8
8
  import Button from 'react-bootstrap/Button';
@@ -23,7 +23,7 @@ import './_library-528f1934.js';
23
23
  import './_set-species-2cd9340f.js';
24
24
  import './_iter-detect-98db3b07.js';
25
25
  import './Segment.js';
26
- import './main-f97773b2.js';
26
+ import './main-754d4992.js';
27
27
  import './urlForFile-f6485737.js';
28
28
  import './index-755f2cc2.js';
29
29
  import 'react-dom';
@@ -44,7 +44,7 @@ import 'next/head';
44
44
  import 'react-share';
45
45
  import './toConsumableArray-f7074d7c.js';
46
46
  import 'react-bootstrap/Pagination';
47
- import './entities-932b50cf.js';
47
+ import './entities-6d9154b4.js';
48
48
  import './AdSlot.js';
49
49
  import './debounce-533d9748.js';
50
50
  import './isSymbol-a7e9aafe.js';
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import urlFor from './urlFor.js';
3
- import { m as main_43 } from './main-f97773b2.js';
3
+ import { m as main_43 } from './main-754d4992.js';
4
4
  import Carousel from 'react-bootstrap/Carousel';
5
5
  import './slicedToArray-6ebcbfea.js';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
@@ -11,16 +11,16 @@ import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
11
11
  import { m as moment } from './moment-bc12cb97.js';
12
12
  import { withRouter } from 'next/router';
13
13
  import { L as LazyLoad } from './index-755f2cc2.js';
14
- import { c as clean_html_1 } from './entities-932b50cf.js';
15
- import { A as ADInfeed } from './ADInfeed-c3f5613e.js';
14
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
15
+ import { A as ADInfeed } from './ADInfeed-6d0c0856.js';
16
16
  import { l as lodash } from './lodash-f97fd99a.js';
17
- import { A as ADlgInfeed } from './ADlgInfeed-2b148f3f.js';
17
+ import { A as ADlgInfeed } from './ADlgInfeed-93bc2250.js';
18
18
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
19
19
  import { g as get_1 } from './get-3c308da4.js';
20
20
  import { d as debounce_1 } from './debounce-533d9748.js';
21
21
  import { I as InfiniteScroll } from './index.es-a6137319.js';
22
22
  import urlFor from './urlFor.js';
23
- import { m as main_43 } from './main-f97773b2.js';
23
+ import { m as main_43 } from './main-754d4992.js';
24
24
  import './AD.js';
25
25
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
26
26
  import { P as PublicationFeature } from './PublicationFeature-3cc370de.js';
@@ -12,14 +12,14 @@ import Card from 'react-bootstrap/Card';
12
12
  import { m as moment } from './moment-bc12cb97.js';
13
13
  import { withRouter } from 'next/router';
14
14
  import { L as LazyLoad } from './index-755f2cc2.js';
15
- import { c as clean_html_1 } from './entities-932b50cf.js';
16
- import { A as ADInfeed } from './ADInfeed-c3f5613e.js';
15
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
16
+ import { A as ADInfeed } from './ADInfeed-6d0c0856.js';
17
17
  import { l as lodash } from './lodash-f97fd99a.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-2b148f3f.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-93bc2250.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import { g as get_1 } from './get-3c308da4.js';
21
21
  import urlFor from './urlFor.js';
22
- import { m as main_43 } from './main-f97773b2.js';
22
+ import { m as main_43 } from './main-754d4992.js';
23
23
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
24
24
  import { P as PublicationFeature } from './PublicationFeature-3cc370de.js';
25
25
  import { P as Pagination } from './Pagination-9fe9f61d.js';
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
3
  import urlFor from './urlFor.js';
4
- import { c as clean_html_1 } from './entities-932b50cf.js';
4
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
5
5
  import { L as LazyLoad } from './index-755f2cc2.js';
6
6
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default, { useRef, useState, useEffect } from 'react';
4
4
  import { N as NavFooter } from './NavFooter-1546a102.js';
5
5
  import { S as SocialNavFooter } from './index.esm-35a42e7d.js';
6
- import { S as SocialSearchComponent } from './SocialSearchComponent-020f9e81.js';
6
+ import { S as SocialSearchComponent } from './SocialSearchComponent-6065bff2.js';
7
7
  import 'react-bootstrap/Form';
8
8
  import 'react-bootstrap/FormControl';
9
9
  import 'react-bootstrap/Button';
@@ -15,7 +15,7 @@ import Navbar from 'react-bootstrap/Navbar';
15
15
  import NavDropdown from 'react-bootstrap/NavDropdown';
16
16
  import { M as MdEmail } from './index.esm-9b042655.js';
17
17
  import { b as IoMdLogIn } from './index.esm-eb1e8e80.js';
18
- import { m as main_43, c as main_44 } from './main-f97773b2.js';
18
+ import { m as main_43, c as main_44 } from './main-754d4992.js';
19
19
  import './_commonjsHelpers-0c4b6f40.js';
20
20
  import './core.get-iterator-method-ea258bb1.js';
21
21
  import './web.dom.iterable-ab4dea5c.js';
@@ -29,15 +29,15 @@ import './_set-species-2cd9340f.js';
29
29
  import './_iter-detect-98db3b07.js';
30
30
 
31
31
  var HamMagazine = function HamMagazine(props) {
32
- /*
33
- Example Nav with acceptable props
34
- <MagazineNav
35
- showLogin
36
- logo={props.settings.logo}
37
- dataObject={props.cache.mainNavCache}
38
- website={website}
39
- subNav={props.cache.subNavCache}
40
- />
32
+ /*
33
+ Example Nav with acceptable props
34
+ <MagazineNav
35
+ showLogin
36
+ logo={props.settings.logo}
37
+ dataObject={props.cache.mainNavCache}
38
+ website={website}
39
+ subNav={props.cache.subNavCache}
40
+ />
41
41
  */
42
42
 
43
43
  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
@@ -4,7 +4,7 @@ import Modal from 'react-bootstrap/Modal';
4
4
  import Button from 'react-bootstrap/Button';
5
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
6
6
 
7
- var css = ".HealthcareProfessionalModal-module_container__HUaSr {\r\n position: fixed;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n bottom: 0;\r\n background: rgba(0,0,0,.1);\r\n z-index: 9999999999;\r\n display: grid;\r\n place-items: center;\r\n}\r\n.HealthcareProfessionalModal-module_modal__31CzM{\r\n background: #fff;\r\n padding: 1.5rem;\r\n text-align: center;\r\n position: relative;\r\n width: 400px;\r\n max-width: 90vw;\r\n\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n animation: HealthcareProfessionalModal-module_show__3soMo .5s forwards;\r\n transform: translateY(0);\r\n opacity:1;\r\n}\r\n.HealthcareProfessionalModal-module_header__3uIr7 {\r\n background-color: #0d335a;\r\nposition: absolute;\r\n padding: 1rem;\r\n width: 80%;\r\ntop: 0;\r\nleft: 50%;\r\ntransform: translateX(-50%) translateY(-50%) ;\r\n border-radius: 15px;\r\n}\r\n.HealthcareProfessionalModal-module_body__3bnyN {\r\n color: #202020;\r\n}\r\n.HealthcareProfessionalModal-module_body__3bnyN span{\r\n font-weight: bold;\r\n}\r\n.HealthcareProfessionalModal-module_body__3bnyN .HealthcareProfessionalModal-module_title__27l5n {\r\n font-size: 24px;\r\n margin-bottom: 1rem;\r\n}\r\n.HealthcareProfessionalModal-module_controls__1wXJl button {\r\n margin: 1.5rem 1rem;\r\n border-radius: 5px;\r\n font-size: 1rem;\r\n}\r\n@keyframes HealthcareProfessionalModal-module_show__3soMo {\r\n from{\r\n transform: translateY(25px);\r\n opacity: 0;\r\n }\r\n to {\r\n transform: translateY(0);\r\n opacity:1;\r\n }\r\n}";
7
+ var css = ".HealthcareProfessionalModal-module_container__HUaSr {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0,0,0,.1);\n z-index: 9999999999;\n display: grid;\n place-items: center;\n}\n.HealthcareProfessionalModal-module_modal__31CzM{\n background: #fff;\n padding: 1.5rem;\n text-align: center;\n position: relative;\n width: 400px;\n max-width: 90vw;\n\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n animation: HealthcareProfessionalModal-module_show__3soMo .5s forwards;\n transform: translateY(0);\n opacity:1;\n}\n.HealthcareProfessionalModal-module_header__3uIr7 {\n background-color: #0d335a;\nposition: absolute;\n padding: 1rem;\n width: 80%;\ntop: 0;\nleft: 50%;\ntransform: translateX(-50%) translateY(-50%) ;\n border-radius: 15px;\n}\n.HealthcareProfessionalModal-module_body__3bnyN {\n color: #202020;\n}\n.HealthcareProfessionalModal-module_body__3bnyN span{\n font-weight: bold;\n}\n.HealthcareProfessionalModal-module_body__3bnyN .HealthcareProfessionalModal-module_title__27l5n {\n font-size: 24px;\n margin-bottom: 1rem;\n}\n.HealthcareProfessionalModal-module_controls__1wXJl button {\n margin: 1.5rem 1rem;\n border-radius: 5px;\n font-size: 1rem;\n}\n@keyframes HealthcareProfessionalModal-module_show__3soMo {\n from{\n transform: translateY(25px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity:1;\n }\n}";
8
8
  var styles = { "container": "HealthcareProfessionalModal-module_container__HUaSr", "modal": "HealthcareProfessionalModal-module_modal__31CzM", "show": "HealthcareProfessionalModal-module_show__3soMo", "header": "HealthcareProfessionalModal-module_header__3uIr7", "body": "HealthcareProfessionalModal-module_body__3bnyN", "title": "HealthcareProfessionalModal-module_title__27l5n", "controls": "HealthcareProfessionalModal-module_controls__1wXJl" };
9
9
  styleInject(css);
10
10
 
package/dist/esm/Hero.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import { Card } from 'react-bootstrap';
3
3
  import urlFor from './urlFor.js';
4
- import { c as clean_html_1 } from './entities-932b50cf.js';
4
+ import { c as clean_html_1 } from './entities-6d9154b4.js';
5
5
  import './slicedToArray-6ebcbfea.js';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
7
7
  import './web.dom.iterable-ab4dea5c.js';
@@ -3,7 +3,7 @@ import React__default from 'react';
3
3
  import ArticleCarousel from './ArticleCarousel.js';
4
4
  import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-588abaff.js';
6
+ import { g as getSerializers } from './index-1fd45cc5.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './core.get-iterator-method-ea258bb1.js';
9
9
  import './YoutubeGroup.js';
@@ -16,7 +16,7 @@ import 'prop-types';
16
16
  import './smoothscroll-fa4e3f8c.js';
17
17
  import './urlFor.js';
18
18
  import './index-3f5c03b2.js';
19
- import './main-f97773b2.js';
19
+ import './main-754d4992.js';
20
20
  import './iconBase-ccc56b97.js';
21
21
  import 'react-bootstrap';
22
22
  import './index-5cc7b406.js';
@@ -46,7 +46,7 @@ import 'next/head';
46
46
  import 'react-share';
47
47
  import './toConsumableArray-f7074d7c.js';
48
48
  import 'react-bootstrap/Pagination';
49
- import './entities-932b50cf.js';
49
+ import './entities-6d9154b4.js';
50
50
  import './AdSlot.js';
51
51
  import './debounce-533d9748.js';
52
52
  import './isSymbol-a7e9aafe.js';
@@ -1,3 +1,4 @@
1
+ import { _ as _asyncToGenerator, a as _defineProperty } from './defineProperty-23a8f8cd.js';
1
2
  import React__default, { createContext, Component, forwardRef, PureComponent, useRef, useState, useEffect } from 'react';
2
3
  import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
3
4
  import PropTypes from 'prop-types';
@@ -5,69 +6,6 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
5
6
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
6
7
  import urlFor from './urlFor.js';
7
8
 
8
- var asyncToGenerator = createCommonjsModule(function (module) {
9
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
10
- try {
11
- var info = gen[key](arg);
12
- var value = info.value;
13
- } catch (error) {
14
- reject(error);
15
- return;
16
- }
17
-
18
- if (info.done) {
19
- resolve(value);
20
- } else {
21
- Promise.resolve(value).then(_next, _throw);
22
- }
23
- }
24
-
25
- function _asyncToGenerator(fn) {
26
- return function () {
27
- var self = this,
28
- args = arguments;
29
- return new Promise(function (resolve, reject) {
30
- var gen = fn.apply(self, args);
31
-
32
- function _next(value) {
33
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
34
- }
35
-
36
- function _throw(err) {
37
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
38
- }
39
-
40
- _next(undefined);
41
- });
42
- };
43
- }
44
-
45
- module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
46
- });
47
-
48
- var _asyncToGenerator = unwrapExports(asyncToGenerator);
49
-
50
- var defineProperty = createCommonjsModule(function (module) {
51
- function _defineProperty(obj, key, value) {
52
- if (key in obj) {
53
- Object.defineProperty(obj, key, {
54
- value: value,
55
- enumerable: true,
56
- configurable: true,
57
- writable: true
58
- });
59
- } else {
60
- obj[key] = value;
61
- }
62
-
63
- return obj;
64
- }
65
-
66
- module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
67
- });
68
-
69
- var _defineProperty = unwrapExports(defineProperty);
70
-
71
9
  var canUseDOM = !!(
72
10
  typeof window !== 'undefined' &&
73
11
  window.document &&
@@ -92,7 +30,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
92
30
  return target;
93
31
  }
94
32
 
95
- module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
33
+ module.exports = _objectWithoutPropertiesLoose;
34
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
96
35
  });
97
36
 
98
37
  unwrapExports(objectWithoutPropertiesLoose);
@@ -117,7 +56,8 @@ function _objectWithoutProperties(source, excluded) {
117
56
  return target;
118
57
  }
119
58
 
120
- module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
59
+ module.exports = _objectWithoutProperties;
60
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
121
61
  });
122
62
 
123
63
  var _objectWithoutProperties = unwrapExports(objectWithoutProperties);
@@ -882,11 +822,14 @@ function _extends() {
882
822
  }
883
823
 
884
824
  return target;
885
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
825
+ };
826
+
827
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
886
828
  return _extends.apply(this, arguments);
887
829
  }
888
830
 
889
- module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
831
+ module.exports = _extends;
832
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
890
833
  });
891
834
 
892
835
  var _extends = unwrapExports(_extends_1);
@@ -3,7 +3,7 @@ import React__default from 'react';
3
3
  import QueueDeckExpanded from './QueueDeckExpanded.js';
4
4
  import Breadcrumbs from './Breadcrumbs.js';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-588abaff.js';
6
+ import { g as getSerializers } from './index-1fd45cc5.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './core.get-iterator-method-ea258bb1.js';
9
9
  import './slicedToArray-6ebcbfea.js';
@@ -21,9 +21,9 @@ import './index-5cc7b406.js';
21
21
  import 'prop-types';
22
22
  import 'next/router';
23
23
  import './index-755f2cc2.js';
24
- import './main-f97773b2.js';
25
- import './entities-932b50cf.js';
26
- import './ADInfeed-c3f5613e.js';
24
+ import './main-754d4992.js';
25
+ import './entities-6d9154b4.js';
26
+ import './ADInfeed-6d0c0856.js';
27
27
  import 'react-bootstrap/Card';
28
28
  import './AdSlot.js';
29
29
  import './debounce-533d9748.js';
@@ -37,7 +37,7 @@ import './_set-species-2cd9340f.js';
37
37
  import './Segment.js';
38
38
  import './AuthorComponent-11adff02.js';
39
39
  import './lodash-f97fd99a.js';
40
- import './ADlgInfeed-2b148f3f.js';
40
+ import './ADlgInfeed-93bc2250.js';
41
41
  import './getContentCategory-15dcc413.js';
42
42
  import './timeDifferenceCalc.js';
43
43
  import 'react-bootstrap/Breadcrumb';
@@ -71,35 +71,35 @@ import 'react-bootstrap/Tooltip';
71
71
  import 'react-bootstrap/Popover';
72
72
  import './checkSisterSite-a7218fda.js';
73
73
 
74
- /* usage
75
- import Settings, { Ads } from '../../../../settings'
76
- import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
77
- import client from '../../../../client'
78
- import moment from 'moment'
79
- import Shell from '../../../../components/2.0/Shell'
80
- import { pageview } from '../../../../utilities/gtag'
81
-
82
- const Issue = (props) => {
83
- const { pubIssue, cache } = props
84
- const targeting = {
85
- content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
86
- document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
87
- }
88
- return (
89
- <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
90
- <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
91
- </Shell>
92
- )
93
- }
94
-
95
- Issue.getInitialProps = async (ctx) => {
96
- const { query } = ctx
97
- const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
98
- )
99
- return { pubIssue }
100
- }
101
-
102
- export default Issue
74
+ /* usage
75
+ import Settings, { Ads } from '../../../../settings'
76
+ import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
77
+ import client from '../../../../client'
78
+ import moment from 'moment'
79
+ import Shell from '../../../../components/2.0/Shell'
80
+ import { pageview } from '../../../../utilities/gtag'
81
+
82
+ const Issue = (props) => {
83
+ const { pubIssue, cache } = props
84
+ const targeting = {
85
+ content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
86
+ document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
87
+ }
88
+ return (
89
+ <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
90
+ <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
91
+ </Shell>
92
+ )
93
+ }
94
+
95
+ Issue.getInitialProps = async (ctx) => {
96
+ const { query } = ctx
97
+ const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
98
+ )
99
+ return { pubIssue }
100
+ }
101
+
102
+ export default Issue
103
103
  */
104
104
 
105
105
  var IssueLanding = function IssueLanding(props) {