@mjhls/mjh-framework 1.0.445 → 1.0.446

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 (238) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +32 -0
  3. package/dist/cjs/AD300x250.js +60 -0
  4. package/dist/cjs/AD300x250x600.js +60 -0
  5. package/dist/cjs/AD728x90.js +134 -0
  6. package/dist/cjs/ADFloatingFooter.js +139 -0
  7. package/dist/cjs/ADFooter.js +45 -0
  8. package/dist/cjs/ADGutter.js +88 -0
  9. package/dist/cjs/{ADInfeed-ae1f348d.js → ADInfeed-7609d929.js} +2 -2
  10. package/dist/cjs/ADSponsoredResources.js +106 -0
  11. package/dist/cjs/ADWelcome.js +150 -0
  12. package/dist/cjs/{ADlgInfeed-f4c4a1bf.js → ADlgInfeed-700551ef.js} +2 -2
  13. package/dist/cjs/AccordionPanel.js +95 -0
  14. package/dist/cjs/AdSlot.js +166 -0
  15. package/dist/cjs/AdSlotsProvider.js +31 -0
  16. package/dist/cjs/AlphabeticList.js +137 -0
  17. package/dist/cjs/ArticleQueue.js +863 -0
  18. package/dist/cjs/Auth.js +3950 -0
  19. package/dist/cjs/{AuthorComponent-b44bb44e.js → AuthorComponent-5bb8f868.js} +1 -1
  20. package/dist/cjs/Beam.js +347 -0
  21. package/dist/cjs/{TaxonomyCard-fa09aac1.js → BlockContent-80608595.js} +0 -236
  22. package/dist/cjs/Breadcrumbs.js +108 -0
  23. package/dist/cjs/CMEDeck.js +454 -0
  24. package/dist/cjs/Column1.js +39 -0
  25. package/dist/cjs/Column2.js +67 -0
  26. package/dist/cjs/Column3.js +141 -0
  27. package/dist/cjs/ConferenceArticleCard.js +91 -0
  28. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  29. package/dist/cjs/DeckContent.js +24 -13
  30. package/dist/cjs/DeckQueue.js +17 -10
  31. package/dist/cjs/{Dfp-d7639f4c.js → Dfp-19f10ad4.js} +8 -5
  32. package/dist/cjs/EventsDeck.js +1999 -0
  33. package/dist/cjs/Feature.js +120 -0
  34. package/dist/cjs/{Figure-cc919c38.js → Figure-ce37247b.js} +3 -2
  35. package/dist/cjs/ForbesHero.js +140 -0
  36. package/dist/cjs/GridContent.js +721 -33
  37. package/dist/cjs/GridHero.js +145 -0
  38. package/dist/cjs/GroupDeck.js +5 -3
  39. package/dist/cjs/HamMagazine.js +477 -0
  40. package/dist/cjs/Header.js +37 -0
  41. package/dist/cjs/Hero.js +56 -0
  42. package/dist/cjs/HighlightenVideo.js +69 -0
  43. package/dist/cjs/HorizontalHero.js +109 -0
  44. package/dist/cjs/InscreenSensor-04a70c60.js +864 -0
  45. package/dist/cjs/IssueContentDeck.js +4 -3
  46. package/dist/cjs/IssueDeck.js +6 -4
  47. package/dist/cjs/IssueLanding.js +115 -0
  48. package/dist/cjs/KMTracker.js +27 -0
  49. package/dist/cjs/LeftNav.js +99 -0
  50. package/dist/cjs/MasterDeck.js +15 -8
  51. package/dist/cjs/NavDvm.js +223 -0
  52. package/dist/cjs/NavFooter-3dcd99a8.js +66 -0
  53. package/dist/cjs/NavMagazine.js +436 -0
  54. package/dist/cjs/NavNative.js +278 -0
  55. package/dist/cjs/NavNormal.js +109 -0
  56. package/dist/cjs/OncliveHero.js +78 -0
  57. package/dist/cjs/OncliveLargeHero.js +243 -0
  58. package/dist/cjs/PageFilter.js +73 -0
  59. package/dist/cjs/PdfDownload.js +28 -0
  60. package/dist/cjs/PopUpModal.js +59 -0
  61. package/dist/cjs/PublicationLanding.js +556 -0
  62. package/dist/cjs/QueueDeckExpanded.js +20 -11
  63. package/dist/cjs/RelatedContent.js +107 -0
  64. package/dist/cjs/RelatedTopicsDropdown.js +90 -0
  65. package/dist/cjs/Search.js +67 -0
  66. package/dist/cjs/Segment.js +225 -0
  67. package/dist/cjs/SetCookie.js +10 -0
  68. package/dist/cjs/SideFooter.js +103 -0
  69. package/dist/cjs/SocialNavFooter-d9ab4d17.js +83 -0
  70. package/dist/cjs/SocialShare.js +72 -0
  71. package/dist/cjs/TaxonomyCard.js +241 -11
  72. package/dist/cjs/TemplateNormal.js +175 -13
  73. package/dist/cjs/Ustream.js +107 -6
  74. package/dist/cjs/VerticalHero.js +75 -0
  75. package/dist/cjs/VideoSeriesFilter.js +133 -0
  76. package/dist/cjs/VideoSeriesListing.js +13 -7
  77. package/dist/cjs/View.js +1156 -0
  78. package/dist/cjs/YahooHero.js +129 -0
  79. package/dist/cjs/YoutubeGroup.js +5 -3
  80. package/dist/cjs/_arrayMap-3b4a0f75.js +91 -0
  81. package/dist/cjs/_is-array-754e012d.js +74 -0
  82. package/dist/cjs/{_iter-detect-234453c3.js → _iter-detect-4d0352f8.js} +4 -4
  83. package/dist/cjs/_object-sap-5e74ba08.js +16 -0
  84. package/dist/cjs/_set-species-4458e975.js +56 -0
  85. package/dist/cjs/{AdSlot-257d8d4e.js → asyncToGenerator-db08763c.js} +1 -710
  86. package/dist/cjs/brightcove-react-player-loader.es-4ba0d3d5.js +2231 -0
  87. package/dist/cjs/{web.dom.iterable-5c889cf1.js → core.get-iterator-method-41e87ec1.js} +0 -46
  88. package/dist/cjs/debounce-32e57002.js +280 -0
  89. package/dist/cjs/{toConsumableArray-25d0e2a3.js → from-ea347372.js} +4 -29
  90. package/dist/cjs/{get-7a75c563.js → get-5dfcdc33.js} +14 -100
  91. package/dist/cjs/getKeywords.js +31 -0
  92. package/dist/cjs/getQuery.js +20 -0
  93. package/dist/cjs/getSerializers.js +8032 -0
  94. package/dist/cjs/getSeriesDetail.js +38 -0
  95. package/dist/cjs/getTargeting-3ced038f.js +108 -0
  96. package/dist/cjs/getTargeting.js +15 -0
  97. package/dist/cjs/iconBase-637d3f1e.js +83 -0
  98. package/dist/cjs/{debounce-420ff8a8.js → index-b2448ff6.js} +0 -483
  99. package/dist/cjs/index.esm-25423c2f.js +16 -0
  100. package/dist/cjs/index.esm-c0d8b44b.js +21 -0
  101. package/dist/cjs/index.esm-fcdbd2c6.js +31 -0
  102. package/dist/cjs/index.js +190 -23088
  103. package/dist/cjs/{inherits-b4036c94.js → inherits-4a2f1cc3.js} +6 -17
  104. package/dist/cjs/isSymbol-488934a7.js +211 -0
  105. package/dist/cjs/js.cookie-a511c430.js +160 -0
  106. package/dist/cjs/keys-a586b7a0.js +25 -0
  107. package/dist/cjs/{promise-0a493c7a.js → promise-074978a7.js} +15 -62
  108. package/dist/cjs/{slicedToArray-419d467a.js → slicedToArray-8063ee51.js} +5 -4
  109. package/dist/cjs/stringify-7c5aff47.js +17 -0
  110. package/dist/cjs/toConsumableArray-ca04303b.js +31 -0
  111. package/dist/cjs/{typeof-0d86b91c.js → typeof-583cdc4b.js} +20 -87
  112. package/dist/cjs/urlFor.js +10 -0
  113. package/dist/cjs/util-f2c1b65b.js +576 -0
  114. package/dist/cjs/web.dom.iterable-43c3e277.js +51 -0
  115. package/dist/esm/AD.js +26 -0
  116. package/dist/esm/AD300x250.js +54 -0
  117. package/dist/esm/AD300x250x600.js +54 -0
  118. package/dist/esm/AD728x90.js +128 -0
  119. package/dist/esm/ADFloatingFooter.js +133 -0
  120. package/dist/esm/ADFooter.js +39 -0
  121. package/dist/esm/ADGutter.js +82 -0
  122. package/dist/esm/{ADInfeed-dff74bbe.js → ADInfeed-1c17dc0e.js} +1 -1
  123. package/dist/esm/ADSponsoredResources.js +100 -0
  124. package/dist/esm/ADWelcome.js +144 -0
  125. package/dist/esm/{ADlgInfeed-7b29db85.js → ADlgInfeed-94d7f5dd.js} +1 -1
  126. package/dist/esm/AccordionPanel.js +88 -0
  127. package/dist/esm/AdSlot.js +159 -0
  128. package/dist/esm/AdSlotsProvider.js +25 -0
  129. package/dist/esm/AlphabeticList.js +131 -0
  130. package/dist/esm/ArticleQueue.js +855 -0
  131. package/dist/esm/Auth.js +3930 -0
  132. package/dist/esm/{AuthorComponent-4f5f15ed.js → AuthorComponent-f67cb027.js} +1 -1
  133. package/dist/esm/Beam.js +345 -0
  134. package/dist/esm/{TaxonomyCard-b22a742f.js → BlockContent-4af2feb9.js} +2 -233
  135. package/dist/esm/Breadcrumbs.js +101 -0
  136. package/dist/esm/CMEDeck.js +448 -0
  137. package/dist/esm/Column1.js +29 -0
  138. package/dist/esm/Column2.js +57 -0
  139. package/dist/esm/Column3.js +131 -0
  140. package/dist/esm/ConferenceArticleCard.js +85 -0
  141. package/dist/esm/ConferenceBanner-9162d0ca.js +18 -0
  142. package/dist/esm/DeckContent.js +24 -13
  143. package/dist/esm/DeckQueue.js +17 -10
  144. package/dist/esm/{Dfp-994cd0ab.js → Dfp-7addbfb1.js} +7 -4
  145. package/dist/esm/EventsDeck.js +1987 -0
  146. package/dist/esm/Feature.js +113 -0
  147. package/dist/esm/{Figure-1c55ebf0.js → Figure-408929f3.js} +4 -3
  148. package/dist/esm/ForbesHero.js +134 -0
  149. package/dist/esm/GridContent.js +714 -30
  150. package/dist/esm/GridHero.js +139 -0
  151. package/dist/esm/GroupDeck.js +6 -4
  152. package/dist/esm/HamMagazine.js +465 -0
  153. package/dist/esm/Header.js +28 -0
  154. package/dist/esm/Hero.js +50 -0
  155. package/dist/esm/HighlightenVideo.js +63 -0
  156. package/dist/esm/HorizontalHero.js +103 -0
  157. package/dist/esm/InscreenSensor-b7f931bf.js +857 -0
  158. package/dist/esm/IssueContentDeck.js +5 -4
  159. package/dist/esm/IssueDeck.js +8 -6
  160. package/dist/esm/IssueLanding.js +109 -0
  161. package/dist/esm/KMTracker.js +25 -0
  162. package/dist/esm/LeftNav.js +90 -0
  163. package/dist/esm/MasterDeck.js +17 -10
  164. package/dist/esm/NavDvm.js +211 -0
  165. package/dist/esm/NavFooter-c29526b7.js +60 -0
  166. package/dist/esm/NavMagazine.js +424 -0
  167. package/dist/esm/NavNative.js +266 -0
  168. package/dist/esm/NavNormal.js +97 -0
  169. package/dist/esm/OncliveHero.js +72 -0
  170. package/dist/esm/OncliveLargeHero.js +237 -0
  171. package/dist/esm/PageFilter.js +67 -0
  172. package/dist/esm/PdfDownload.js +22 -0
  173. package/dist/esm/PopUpModal.js +52 -0
  174. package/dist/esm/PublicationLanding.js +546 -0
  175. package/dist/esm/QueueDeckExpanded.js +22 -13
  176. package/dist/esm/RelatedContent.js +101 -0
  177. package/dist/esm/RelatedTopicsDropdown.js +82 -0
  178. package/dist/esm/Search.js +58 -0
  179. package/dist/esm/Segment.js +223 -0
  180. package/dist/esm/SetCookie.js +8 -0
  181. package/dist/esm/SideFooter.js +97 -0
  182. package/dist/esm/SocialNavFooter-1a531144.js +77 -0
  183. package/dist/esm/SocialShare.js +65 -0
  184. package/dist/esm/TaxonomyCard.js +237 -11
  185. package/dist/esm/TemplateNormal.js +175 -14
  186. package/dist/esm/Ustream.js +107 -6
  187. package/dist/esm/VerticalHero.js +69 -0
  188. package/dist/esm/VideoSeriesFilter.js +127 -0
  189. package/dist/esm/VideoSeriesListing.js +14 -8
  190. package/dist/esm/View.js +1145 -0
  191. package/dist/esm/YahooHero.js +123 -0
  192. package/dist/esm/YoutubeGroup.js +6 -4
  193. package/dist/esm/_arrayMap-a8dd2b2c.js +87 -0
  194. package/dist/esm/_is-array-dd5523d6.js +71 -0
  195. package/dist/esm/{_iter-detect-7c281f0a.js → _iter-detect-6e099a34.js} +2 -2
  196. package/dist/esm/_object-sap-56bb8073.js +14 -0
  197. package/dist/esm/_set-species-6f64f1c1.js +51 -0
  198. package/dist/esm/{_to-object-1b1f7766.js → _to-object-16fd8b46.js} +1 -1
  199. package/dist/esm/{AdSlot-362a1c30.js → asyncToGenerator-204b5a5c.js} +3 -703
  200. package/dist/esm/brightcove-react-player-loader.es-e1c6b0f2.js +2225 -0
  201. package/dist/esm/{web.dom.iterable-e6bf2bf6.js → core.get-iterator-method-f5c0d66a.js} +2 -47
  202. package/dist/esm/debounce-8cd9e09c.js +277 -0
  203. package/dist/esm/{extends-92072fff.js → extends-6e00b262.js} +1 -1
  204. package/dist/esm/{toConsumableArray-c5e2fde8.js → from-2c0a5f49.js} +4 -29
  205. package/dist/esm/{get-bc6cf9fb.js → get-ae817b75.js} +3 -86
  206. package/dist/esm/getKeywords.js +29 -0
  207. package/dist/esm/getQuery.js +18 -0
  208. package/dist/esm/getSerializers.js +8021 -0
  209. package/dist/esm/getSeriesDetail.js +36 -0
  210. package/dist/esm/getTargeting-8f4bd5db.js +105 -0
  211. package/dist/esm/getTargeting.js +9 -0
  212. package/dist/esm/iconBase-6ee2f2fb.js +81 -0
  213. package/dist/esm/{debounce-42a7f724.js → index-fb49124c.js} +2 -476
  214. package/dist/esm/index.esm-9d6faf80.js +17 -0
  215. package/dist/esm/index.esm-a7ad65ba.js +13 -0
  216. package/dist/esm/{index.esm-536609db.js → index.esm-b97cf389.js} +2 -80
  217. package/dist/esm/index.js +137 -23019
  218. package/dist/esm/{inherits-bbec2f34.js → inherits-2758cc14.js} +5 -15
  219. package/dist/esm/isSymbol-c1b9be80.js +203 -0
  220. package/dist/esm/js.cookie-6874175c.js +158 -0
  221. package/dist/esm/keys-04cdec91.js +23 -0
  222. package/dist/esm/{main-cf4930f0.js → main-8c8784b8.js} +1 -1
  223. package/dist/esm/{promise-2592a80a.js → promise-53143c9a.js} +6 -49
  224. package/dist/esm/{slicedToArray-04e02710.js → slicedToArray-f1e40361.js} +3 -2
  225. package/dist/esm/stringify-e30bc114.js +15 -0
  226. package/dist/esm/toConsumableArray-8712d678.js +29 -0
  227. package/dist/esm/{typeof-09bf9211.js → typeof-7e72fee0.js} +5 -70
  228. package/dist/esm/urlFor.js +8 -0
  229. package/dist/esm/util-7700fc59.js +574 -0
  230. package/dist/esm/web.dom.iterable-46c95e52.js +49 -0
  231. package/package.json +1 -1
  232. package/dist/cjs/GridContent-6a0216fb.js +0 -728
  233. package/dist/cjs/Normal-430e8e61.js +0 -2315
  234. package/dist/cjs/Ustream-46288bdf.js +0 -119
  235. package/dist/cjs/index.esm-340d3792.js +0 -110
  236. package/dist/esm/GridContent-7e11f013.js +0 -717
  237. package/dist/esm/Normal-6efd92da.js +0 -2282
  238. package/dist/esm/Ustream-c4f281a3.js +0 -112
@@ -1,31 +1,40 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-1b1f7766.js';
3
- import './web.dom.iterable-e6bf2bf6.js';
2
+ import './_to-object-16fd8b46.js';
3
+ import './core.get-iterator-method-f5c0d66a.js';
4
4
  import './_library-528f1934.js';
5
- import './_iter-detect-7c281f0a.js';
6
- import { _ as _toConsumableArray } from './toConsumableArray-c5e2fde8.js';
5
+ import './_iter-detect-6e099a34.js';
6
+ import './from-2c0a5f49.js';
7
+ import { _ as _toConsumableArray } from './toConsumableArray-8712d678.js';
7
8
  import './_object-pie-33c40e79.js';
8
- import { _ as _extends } from './extends-92072fff.js';
9
+ import { _ as _extends } from './extends-6e00b262.js';
10
+ import './web.dom.iterable-46c95e52.js';
9
11
  import React, { useEffect, useState, useRef } from 'react';
10
- import { l as lib_3 } from './debounce-42a7f724.js';
12
+ import { l as lib_3 } from './index-fb49124c.js';
11
13
  import 'prop-types';
12
14
  import 'react-bootstrap/Card';
13
15
  import { m as moment } from './moment-12415288.js';
14
16
  import { useRouter } from 'next/router';
17
+ import './isSymbol-c1b9be80.js';
18
+ import './debounce-8cd9e09c.js';
15
19
  import { I as InfiniteScroll } from './index.es-27d0bae9.js';
16
20
  import 'react-dom';
17
21
  import { V as VisibilitySensor } from './visibility-sensor-87d6b78c.js';
18
22
  import { i as imageUrlBuilder } from './index-73819142.js';
19
23
  import { L as LazyLoad } from './index-c5fd0af5.js';
20
- import { m as main_36 } from './main-cf4930f0.js';
24
+ import { m as main_36 } from './main-8c8784b8.js';
21
25
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
22
- import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
23
- import './AdSlot-362a1c30.js';
24
- import './promise-2592a80a.js';
25
- import { A as ADInfeed } from './ADInfeed-dff74bbe.js';
26
+ import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
27
+ import './stringify-e30bc114.js';
28
+ import './asyncToGenerator-204b5a5c.js';
29
+ import './_set-species-6f64f1c1.js';
30
+ import './promise-53143c9a.js';
31
+ import './Beam.js';
32
+ import './Segment.js';
33
+ import './AdSlot.js';
34
+ import { A as ADInfeed } from './ADInfeed-1c17dc0e.js';
26
35
  import { l as lodash } from './lodash-17fdfebb.js';
27
- import { A as ADlgInfeed } from './ADlgInfeed-7b29db85.js';
28
- import { A as AuthorComponent } from './AuthorComponent-4f5f15ed.js';
36
+ import { A as ADlgInfeed } from './ADlgInfeed-94d7f5dd.js';
37
+ import { A as AuthorComponent } from './AuthorComponent-f67cb027.js';
29
38
  import { Container, Media } from 'react-bootstrap';
30
39
 
31
40
  var urlFor = function urlFor(source, builder) {
@@ -0,0 +1,101 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import React from 'react';
3
+ import { m as moment } from './moment-12415288.js';
4
+ import { i as imageUrlBuilder } from './index-73819142.js';
5
+ import 'react-bootstrap/Media';
6
+
7
+ /*
8
+ Sample query
9
+ let references = ''
10
+ if(article.taxonomyMapping.length > 0){
11
+ article.taxonomyMapping.forEach((ref, index) => {
12
+ references = references + `references('${ref._ref}') `
13
+ if(index+1 !== article.taxonomyMapping.length){
14
+ references = references + ` && `
15
+ }
16
+ })
17
+ }
18
+
19
+ 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] {
20
+ ...,
21
+ title,
22
+ summary,
23
+ thumbnail,
24
+ url,
25
+ published,
26
+ authorMapping[]->,
27
+ contentCategory->
28
+ }`
29
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
30
+
31
+ Sample usage
32
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
33
+
34
+
35
+ */
36
+ var RelatedContent = function RelatedContent(props) {
37
+ var client = props.client,
38
+ dataRecord = props.dataRecord,
39
+ _props$defaultImage = props.defaultImage,
40
+ defaultImage = _props$defaultImage === undefined ? '' : _props$defaultImage;
41
+
42
+ var builder = imageUrlBuilder(client);
43
+ function urlFor(source) {
44
+ return builder.image(source);
45
+ }
46
+
47
+ return React.createElement(
48
+ 'div',
49
+ null,
50
+ React.createElement(
51
+ 'h1',
52
+ { className: 'mb-4 pb-2', style: { borderBottom: '1px solid #ccc', fontSize: '1.2rem', fontWeight: 'bold', color: '#252525' } },
53
+ 'Related Content'
54
+ ),
55
+ React.createElement(
56
+ 'div',
57
+ { className: 'related-articles-container' },
58
+ dataRecord.map(function (article, index) {
59
+ return React.createElement(
60
+ 'a',
61
+ { key: index, href: '/view/' + article.url.current, className: 'related-article' },
62
+ React.createElement(
63
+ 'figure',
64
+ null,
65
+ React.createElement('img', {
66
+ src: article.thumbnail ? urlFor(article.thumbnail.asset).width(500).url() : defaultImage,
67
+ alt: article.title
68
+ })
69
+ ),
70
+ React.createElement(
71
+ 'div',
72
+ { className: 'related-article-body' },
73
+ React.createElement('h4', { dangerouslySetInnerHTML: { __html: article.title } }),
74
+ props.showPublished && React.createElement(
75
+ 'p',
76
+ { className: 'pb-0 mb-0' },
77
+ moment(article.published).format('MMMM DD, YYYY hh:mma')
78
+ ),
79
+ props.showAuthor && article.authorMapping && article.authorMapping[0] && React.createElement(
80
+ 'p',
81
+ null,
82
+ 'By ',
83
+ React.createElement(
84
+ 'b',
85
+ null,
86
+ article.authorMapping[0].displayName
87
+ )
88
+ )
89
+ )
90
+ );
91
+ }),
92
+ React.createElement(
93
+ 'style',
94
+ { jsx: 'true' },
95
+ '\n .related-article {\n width: 100%;\n display: flex;\n flex-direction: ' + (props.reverse ? 'row-reverse' : 'row') + ';\n margin-bottom: 1rem;\n }\n .related-article figure {\n width: 165px;\n height: 110px;\n min-width: 165px;\n }\n .related-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .related-article-body {\n flex: 1 1 auto;\n padding: 0 1rem;\n }\n .related-article-body h4 {\n font-weight: bold;\n font-size: 1.1rem;\n margin-bottom: 0.25rem;\n line-height: 1.3;\n }\n @media screen and (max-width: 430px) {\n .related-article {\n flex-direction: column;\n }\n .related-article figure {\n width: 80%;\n height: auto;\n min-width: 80%;\n margin: 0 auto;\n }\n .related-article figure img {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n }\n '
96
+ )
97
+ )
98
+ );
99
+ };
100
+
101
+ export default RelatedContent;
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import DropdownButton from 'react-bootstrap/DropdownButton';
3
+ import Dropdown from 'react-bootstrap/Dropdown';
4
+
5
+ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
6
+ var parentTaxonomy = _ref.parentTaxonomy,
7
+ subTaxonomies = _ref.subTaxonomies,
8
+ _ref$page = _ref.page,
9
+ page = _ref$page === undefined ? '/' : _ref$page,
10
+ _ref$exclude = _ref.exclude,
11
+ exclude = _ref$exclude === undefined ? 'clinical' : _ref$exclude,
12
+ _ref$variant = _ref.variant,
13
+ variant = _ref$variant === undefined ? 'primary' : _ref$variant,
14
+ _ref$className = _ref.className,
15
+ className = _ref$className === undefined ? '' : _ref$className;
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
+ />
27
+ */
28
+ if (subTaxonomies.length === 0 && parentTaxonomy) {
29
+ if (parentTaxonomy.identifier == exclude) {
30
+ return '';
31
+ }
32
+ return React.createElement(
33
+ 'div',
34
+ null,
35
+ React.createElement(
36
+ 'style',
37
+ { jsx: true },
38
+ '\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 50vh !important;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n transform: none !important;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n font-size: 0.85em;\n }\n }\n '
39
+ ),
40
+ React.createElement(
41
+ 'div',
42
+ { id: 'related_dropdown', className: className },
43
+ React.createElement(
44
+ DropdownButton,
45
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
46
+ React.createElement(
47
+ Dropdown.Item,
48
+ { href: parentTaxonomy.identifier },
49
+ parentTaxonomy.name
50
+ )
51
+ )
52
+ )
53
+ );
54
+ } else {
55
+ return React.createElement(
56
+ 'div',
57
+ null,
58
+ React.createElement(
59
+ 'style',
60
+ { jsx: true },
61
+ '\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 40vh !important;\n z-index: 9999;\n transform: none !important;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n z-index: 9999;\n font-size: 0.85em;\n }\n }\n '
62
+ ),
63
+ React.createElement(
64
+ 'div',
65
+ { id: 'related_dropdown', className: className },
66
+ React.createElement(
67
+ DropdownButton,
68
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
69
+ subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
70
+ return React.createElement(
71
+ Dropdown.Item,
72
+ { key: index, href: page + '/' + taxonomy.identifier },
73
+ taxonomy.name
74
+ );
75
+ })
76
+ )
77
+ )
78
+ );
79
+ }
80
+ };
81
+
82
+ export default RelatedTopicsDropdown;
@@ -0,0 +1,58 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import './_to-object-16fd8b46.js';
3
+ import './core.get-iterator-method-f5c0d66a.js';
4
+ import './web.dom.iterable-46c95e52.js';
5
+ import React, { useState } from 'react';
6
+ import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
7
+ import Button from 'react-bootstrap/Button';
8
+ import Form from 'react-bootstrap/Form';
9
+ import FormControl from 'react-bootstrap/FormControl';
10
+
11
+ var Search = function Search(props) {
12
+ var _props$placeholder = props.placeholder,
13
+ placeholder = _props$placeholder === undefined ? 'Search' : _props$placeholder,
14
+ _props$btnText = props.btnText,
15
+ btnText = _props$btnText === undefined ? 'Search' : _props$btnText,
16
+ _props$device = props.device,
17
+ device = _props$device === undefined ? 'desktop' : _props$device;
18
+
19
+ var _useState = useState(''),
20
+ _useState2 = _slicedToArray(_useState, 2),
21
+ searchKey = _useState2[0],
22
+ setSearchKey = _useState2[1];
23
+
24
+ var submitSearch = function submitSearch(e) {
25
+ e.preventDefault();
26
+ window.location.href = '/search?searchTerm=' + searchKey;
27
+ };
28
+
29
+ return React.createElement(
30
+ Form,
31
+ { inline: true, onSubmit: function onSubmit(e) {
32
+ return submitSearch(e);
33
+ } },
34
+ React.createElement(FormControl, {
35
+ className: device === 'mobile' ? 'mobile-search mr-sm-2' : 'mr-sm-2',
36
+ type: 'text',
37
+ placeholder: placeholder,
38
+ value: searchKey,
39
+ onChange: function onChange(e) {
40
+ return setSearchKey(e.target.value);
41
+ }
42
+ }),
43
+ React.createElement(
44
+ Button,
45
+ { variant: 'secondary', onClick: function onClick(e) {
46
+ return submitSearch(e);
47
+ } },
48
+ btnText
49
+ ),
50
+ React.createElement(
51
+ 'style',
52
+ { jsx: 'true' },
53
+ '\n .mobile-search {\n width: 75%;\n margin-right: 15px;\n }\n '
54
+ )
55
+ );
56
+ };
57
+
58
+ export default Search;
@@ -0,0 +1,223 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import './_to-object-16fd8b46.js';
3
+ import './core.get-iterator-method-f5c0d66a.js';
4
+ import './_library-528f1934.js';
5
+ import './_iter-detect-6e099a34.js';
6
+ import './web.dom.iterable-46c95e52.js';
7
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-204b5a5c.js';
8
+ import './_set-species-6f64f1c1.js';
9
+ import './promise-53143c9a.js';
10
+
11
+ require("babel-polyfill");
12
+
13
+ var Segment = {
14
+ // onclive default
15
+ init: function init() {
16
+ var apiKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BBbKMoOjmhsxPnbd2nO6osz3zq67DzuN';
17
+
18
+ if (typeof window === 'undefined') {
19
+ throw new Error('window object is not defined');
20
+ }
21
+
22
+ var Analytics = require('@segment/analytics.js-core/build/analytics');
23
+ var SegmentIntegration = require('@segment/analytics.js-integration-segmentio');
24
+
25
+ var analytics = new Analytics();
26
+ analytics.use(SegmentIntegration);
27
+
28
+ var integrationSettings = {
29
+ "Segment.io": {
30
+ apiKey: apiKey,
31
+ retryQueue: true,
32
+ addBundledMetadata: true
33
+ }
34
+ };
35
+
36
+ analytics.initialize(integrationSettings);
37
+ window.$segment = analytics;
38
+ },
39
+ getIDs: function getIDs() {
40
+ var _this = this;
41
+
42
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
43
+ var res, json;
44
+ return regenerator.wrap(function _callee$(_context) {
45
+ while (1) {
46
+ switch (_context.prev = _context.next) {
47
+ case 0:
48
+ _context.next = 2;
49
+ return fetch('https://beam.mjhlifesciences.com/api/beam/id', {
50
+ headers: {
51
+ 'Content-Type': 'application/json',
52
+ Accept: 'application/json'
53
+ },
54
+ method: 'post',
55
+ credentials: 'include'
56
+ });
57
+
58
+ case 2:
59
+ res = _context.sent;
60
+ _context.next = 5;
61
+ return res.json();
62
+
63
+ case 5:
64
+ json = _context.sent;
65
+ return _context.abrupt('return', json);
66
+
67
+ case 7:
68
+ case 'end':
69
+ return _context.stop();
70
+ }
71
+ }
72
+ }, _callee, _this);
73
+ }))();
74
+ },
75
+ pageview: function pageview(domain) {
76
+ var _this2 = this;
77
+
78
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
79
+ var segment, result, beam_id, session_id;
80
+ return regenerator.wrap(function _callee2$(_context2) {
81
+ while (1) {
82
+ switch (_context2.prev = _context2.next) {
83
+ case 0:
84
+ segment = window.$segment;
85
+
86
+ if (segment) {
87
+ _context2.next = 4;
88
+ break;
89
+ }
90
+
91
+ console.error('Segment not initialized', window);
92
+ return _context2.abrupt('return');
93
+
94
+ case 4:
95
+ _context2.next = 6;
96
+ return _this2.getIDs();
97
+
98
+ case 6:
99
+ result = _context2.sent;
100
+ beam_id = result.beam_id ? result.beam_id : '';
101
+ session_id = result.session_id ? result.session_id : '';
102
+
103
+
104
+ segment.track('pageviews', {
105
+ beamid: beam_id,
106
+ sessionid: session_id,
107
+ category: '',
108
+ domain: domain
109
+ });
110
+
111
+ case 10:
112
+ case 'end':
113
+ return _context2.stop();
114
+ }
115
+ }
116
+ }, _callee2, _this2);
117
+ }))();
118
+ },
119
+ adClicked: function adClicked(domain, advertiserid, campaignid, creativeid, itemid, size, isemptyline, sourceAgnosticCreativeId, sourceAgnosticlineId) {
120
+ var _this3 = this;
121
+
122
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3() {
123
+ var segment, result, beam_id, session_id;
124
+ return regenerator.wrap(function _callee3$(_context3) {
125
+ while (1) {
126
+ switch (_context3.prev = _context3.next) {
127
+ case 0:
128
+ segment = window.$segment;
129
+
130
+ if (segment) {
131
+ _context3.next = 4;
132
+ break;
133
+ }
134
+
135
+ console.error('Segment not initialized');
136
+ return _context3.abrupt('return');
137
+
138
+ case 4:
139
+ _context3.next = 6;
140
+ return _this3.getIDs();
141
+
142
+ case 6:
143
+ result = _context3.sent;
144
+ beam_id = result.beam_id ? result.beam_id : '';
145
+ session_id = result.session_id ? result.session_id : '';
146
+
147
+
148
+ segment.track('Ad Clicked', {
149
+ beamid: beam_id,
150
+ sessionid: session_id,
151
+ advertiserid: advertiserid,
152
+ campaignid: campaignid,
153
+ creativeid: creativeid,
154
+ itemid: itemid,
155
+ size: size,
156
+ isemptyline: isemptyline,
157
+ sourceAgnosticCreativeId: sourceAgnosticCreativeId,
158
+ sourceAgnosticlineId: sourceAgnosticlineId,
159
+ domain: domain
160
+ });
161
+
162
+ case 10:
163
+ case 'end':
164
+ return _context3.stop();
165
+ }
166
+ }
167
+ }, _callee3, _this3);
168
+ }))();
169
+ },
170
+ adViewed: function adViewed(domain, advertiserid, campaignid, creativeid, itemid, size, isemptyline, sourceAgnosticCreativeId, sourceAgnosticlineId) {
171
+ var _this4 = this;
172
+
173
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4() {
174
+ var segment, result, beam_id, session_id;
175
+ return regenerator.wrap(function _callee4$(_context4) {
176
+ while (1) {
177
+ switch (_context4.prev = _context4.next) {
178
+ case 0:
179
+ segment = window.$segment;
180
+
181
+ if (segment) {
182
+ _context4.next = 4;
183
+ break;
184
+ }
185
+
186
+ console.error('Segment not initialized');
187
+ return _context4.abrupt('return');
188
+
189
+ case 4:
190
+ _context4.next = 6;
191
+ return _this4.getIDs();
192
+
193
+ case 6:
194
+ result = _context4.sent;
195
+ beam_id = result.beam_id ? result.beam_id : '';
196
+ session_id = result.session_id ? result.session_id : '';
197
+
198
+
199
+ segment.track('Impression Viewed', {
200
+ beamid: beam_id,
201
+ sessionid: session_id,
202
+ advertiserid: advertiserid,
203
+ campaignid: campaignid,
204
+ creativeid: creativeid,
205
+ itemid: itemid,
206
+ size: size,
207
+ isemptyline: isemptyline,
208
+ sourceAgnosticCreativeId: sourceAgnosticCreativeId,
209
+ sourceAgnosticlineId: sourceAgnosticlineId,
210
+ domain: domain
211
+ });
212
+
213
+ case 10:
214
+ case 'end':
215
+ return _context4.stop();
216
+ }
217
+ }
218
+ }, _callee4, _this4);
219
+ }))();
220
+ }
221
+ };
222
+
223
+ export default Segment;
@@ -0,0 +1,8 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import { j as js_cookie } from './js.cookie-6874175c.js';
3
+
4
+ var SetCookie = function SetCookie(key, value) {
5
+ js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
6
+ };
7
+
8
+ export default SetCookie;
@@ -0,0 +1,97 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import React from 'react';
3
+ import 'prop-types';
4
+ import './isSymbol-c1b9be80.js';
5
+ import './_arrayMap-a8dd2b2c.js';
6
+ import { g as get_1 } from './get-ae817b75.js';
7
+ import { r as reactSocialIcons_1 } from './react-social-icons-3822f1ce.js';
8
+
9
+ var year = new Date().getFullYear();
10
+
11
+ var renderLink = function renderLink(row) {
12
+ if (row.blank) {
13
+ return React.createElement(
14
+ 'a',
15
+ { href: row.url, target: '_blank', rel: 'noopener noreferrer' },
16
+ row.title
17
+ );
18
+ }
19
+ return React.createElement(
20
+ 'a',
21
+ { href: row.url },
22
+ row.title
23
+ );
24
+ };
25
+
26
+ var SideFooter = function SideFooter(props) {
27
+ /*
28
+ useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
29
+ */
30
+ var _get = get_1(props, 'cache.siteSettingCache', {}),
31
+ socialLinks = _get.socialLinks,
32
+ footerLinks = _get.footerLinks,
33
+ name = _get.name;
34
+
35
+ var logo = props.logo;
36
+
37
+ return React.createElement(
38
+ 'div',
39
+ { className: 'side-footer' },
40
+ React.createElement(
41
+ 'ul',
42
+ null,
43
+ footerLinks && footerLinks.map(function (row, index) {
44
+ return React.createElement(
45
+ 'li',
46
+ { key: index },
47
+ renderLink(row)
48
+ );
49
+ }),
50
+ React.createElement(
51
+ 'li',
52
+ { style: { marginTop: '10px' } },
53
+ socialLinks && socialLinks.map(function (row, index) {
54
+ return React.createElement(reactSocialIcons_1, {
55
+ target: row.blank ? '_blank' : '_self',
56
+ rel: 'noopener noreferrer',
57
+ key: index,
58
+ index: index,
59
+ url: row.url,
60
+ style: { width: 30, height: 30, marginRight: 5 }
61
+ });
62
+ })
63
+ )
64
+ ),
65
+ logo && React.createElement(
66
+ 'ul',
67
+ null,
68
+ React.createElement(
69
+ 'li',
70
+ { className: 'pt-2' },
71
+ React.createElement(
72
+ 'a',
73
+ { href: 'https://www.mjhlifesciences.com' },
74
+ React.createElement('img', { style: { maxWidth: '100%' }, alt: 'MJHLS Brand Logo', src: logo })
75
+ )
76
+ )
77
+ ),
78
+ React.createElement(
79
+ 'p',
80
+ null,
81
+ '\xA9 ',
82
+ year,
83
+ ' MJH Life Sciences',
84
+ React.createElement(
85
+ 'sup',
86
+ null,
87
+ '\u2122'
88
+ ),
89
+ ' ',
90
+ name && name.toLowerCase().includes(' and ') ? ', ' : ' and ',
91
+ name,
92
+ '. All rights reserved.'
93
+ )
94
+ );
95
+ };
96
+
97
+ export default SideFooter;